.wrap{
  .timing_caution{
    strong{
      color:red;
    }
  }

  .authorize_caution+table,.type_caution+table{
    th{
      width: 100px;
    }
  }

  .timing_caution+table{
    th{
      display: none;
    }
  }

  .permalink_caution{
    strong{
      color:red;
    }
  }

	.authorize_caution+table{
    th{
      display: none;
    }
  }
  // 翻訳 API の認証情報（選んだ API の枠だけ、JS で表示する）
  .sl_trans_apirow{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .regist{
    display: none;
    box-sizing: border-box;
    max-width: 960px;
    padding: 14px 16px 6px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;

    .regist_caution{
      margin: 0 0 16px;
      color: #50575e;
      line-height: 1.7;

      strong{
        color: red;
      }
    }
  }

  // セクションの見出しと説明文
  form > h2{
    margin: 2.4em 0 0.6em;
    padding-top: 1.6em;
    border-top: 1px solid #dcdcde;
    font-size: 1.3em;

    &:first-of-type{
      margin-top: 1.2em;
      padding-top: 0;
      border-top: 0;
    }
  }

  .authorize_caution,
  .timing_caution,
  .permalink_caution,
  .type_caution,
  .content_caution{
    max-width: 960px;
    margin: 0 0 1em;
    color: #50575e;
    line-height: 1.7;
  }

  .form-table{
    // 内容（格子や長い文）に引きずられて、表が画面より広がらないようにする
    width: 100%;
    table-layout: fixed;

    th{
      padding: 16px 16px 16px 0;
    }

    td{
      padding: 10px 0;
    }
  }
  // 言語・ブロックのチェック一覧（カードを格子に並べる）
  .sl_trans_checklist{
    display: grid;
    gap: 8px 12px;
    max-width: 960px;

    &--lang{
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    &--block{
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    &--item{
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    &--single{
      grid-template-columns: minmax(0, 420px);
    }
  }

  .sl_trans_check{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    box-sizing: border-box;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    line-height: 1.4;
    cursor: pointer;

    input{
      flex: none;
      margin: 2px 0 0;
    }

    &:hover{
      border-color: #2271b1;
    }

    &:has(input:checked){
      background: #f0f6fc;
      border-color: #2271b1;
    }

    .sl_trans_check_text{
      min-width: 0;
      overflow-wrap: anywhere;

      small{
        display: block;
        margin-top: 2px;
        color: #646970;
        font-size: 12px;
      }
    }
  }

  // 設定項目の説明（箇条書き）
  .sl_trans_note{
    max-width: 960px;
    margin: 0 0 12px;
    padding-left: 1.4em;
    list-style: disc;
    color: #50575e;
    line-height: 1.7;

    li{
      margin: 0 0 2px;
    }

    strong{
      color: #1d2327;
    }
  }

  .sl_trans_checklist + .sl_trans_note{
    margin: 12px 0 0;
  }

  .sl_trans_group{
    margin-bottom: 16px;

    &:last-child{
      margin-bottom: 0;
    }
  }

  .sl_trans_group_title{
    margin: 0 0 6px;
    font-weight: 600;
  }
  // サイトタイトルとキャッチフレーズ（言語ごとの枠。ラベルと入力欄を2列にそろえる）
  .sl_trans_sitetext{
    box-sizing: border-box;
    max-width: 960px;
    margin: 12px 0 0;
    padding: 12px 16px 6px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;

    &:first-of-type{
      margin-top: 8px;
    }
  }

  .sl_trans_sitetext_lang{
    margin: 0 0 10px;
    font-weight: 600;
  }

  .sl_trans_sitetext_row{
    display: grid;
    grid-template-columns: 9em minmax(0, 1fr);
    align-items: center;
    gap: 0 12px;
    margin-bottom: 10px;

    label{
      font-weight: 400;
    }

    input{
      width: 100%;
      max-width: 560px;
      margin: 0;
    }

    @media (max-width: 600px){
      grid-template-columns: 1fr;
      gap: 4px;
    }
  }
}

#api_check{
	position: relative;
	&:hover{
		cursor: pointer;
	}
	&.checking{
		padding-right: 3rem;
		&::after {
			content: "";
			position: absolute;
			top: 50%;
			transform: translateY(-50%);
			right: 0.5rem;
			width: 1.5rem;
			height: 1.5rem;
			background: transparent url('../img/transloading.gif') no-repeat center center / cover;
		}
	}
  
}