/* ===========================================
   Contact Form Styles
   =========================================== */

/* フォーム全体のボックス */
.form-container {
    background-color: var(--color-white);
    max-width: var(--container-width);
    width: 100%;
/*   margin: 0 auto;
    padding: 40px 0;
*/
    margin: 40px auto;
    }

/*フォームタイトル*/
.block-header {
    text-align: center; /* 親コンテナで中央揃え */
    margin: 40px 32px;
}

.block-header .headline {
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-body-1);
    line-height: 160%;
    color: #272D37;
}

.block-header .subtitle {
    font-family: "Inter", sans-serif;
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-title-4);
    line-height: 24px;
    letter-spacing: -0.1px;
    color: #5F6D7E;
}

/* 入力フォーム */
form {
    display: flex;           
    flex-direction: column;   
    gap: 24px;              
    padding: 32px;     
    margin: 0 32px;   
    border-radius: 8px;     
    background-color: #F8F9FB;        
}

.horizontal-container{
    width:100%;
    display: flex;  
/*    justify-content: flex-start; /* 左詰め */
    flex-wrap: wrap;             /* 画面幅が狭いと自動で折り返す */        
    gap: 24px;            
}

.field {
    display: flex;
    flex-direction: column; 
    gap: 8px;             
}

.field.full {
    flex: 1; /* 親の横幅を均等に分ける */
}

.field.half {
 /* flex: 0 0 50%; */
  flex: 1 1 calc(50% - 12px);
  max-width: calc(50% - 12px);
}

/*エラーメッセージ　なぜか適用されずindex.phpに直接書いている*/
.error-message {
    color: #FF0000;
    font-size: 0.9em;
    margin-top: 2px;
}

/* ラベル */
label,
.link-item {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: var(--font-size-body-5);
    line-height: 20px;
    letter-spacing: -0.1px;
}

label .required {
    color: #FF0000;
}

/* 入力欄 */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #DAE0E6;
    border-radius: 6px;
    box-shadow: 0px 1px 2px 0px #1018280A;
    box-sizing: border-box;

    font-family: 'Inter', sans-serif;
    font-weight: var(--font-weight-normal);
    font-size: 15px;
    line-height: 22px;
    letter-spacing: -0.1px;
    color: #272D37;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(97,33,161,0.2);
}

/* テキストエリア */
textarea {
    min-height: 120px;
    resize: vertical;
}

/* チェックボックス */
.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;           
    padding: 2px;
}

.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid #DAE0E6;
    background-color: #FFFFFF;
    appearance: none;      /* デフォルトのチェックボックススタイルを消す */
    cursor: pointer;
    position: relative;
}

/* チェック時の塗りつぶし */
.checkbox input[type="checkbox"]:checked {
    background-color: var(--primary-color); /* チェックされたときの色 */
    border-color: var(--primary-color);
}

/* チェックマーク */
.checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.checkbox-label-wrapper {
    display: flex;
    flex-direction: column;
}


/* 送信ボタン */
button {
    width: 262px;
    max-width: 100%;
    padding: 12px 18px;      
    border-radius: 6px;
    background-color: var(--primary-color);
    color: var(--color-white);           
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: var(--font-size-body-4);
    line-height: 22px;
    letter-spacing: -0.1px;
    box-shadow: 0px 1px 2px 0px #1018280A;
    border: none;              /* デフォルトの枠線を消す */
    cursor: pointer;
    opacity: 1;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* ホバー時の変化用 */
}

/* ホバー時 */
button:hover {
    background-color: #7C36B8; /* 少し明るくする */
    box-shadow: 0px 2px 4px 0px #1018281A;
}

/* フォーカス時 */
button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(97,33,161,0.3);
}

/* ===========================================
   Confirm Form Styles - SP対応
   =========================================== */

/* SP向けメディアクエリ（スマホ縦向き想定 767px以下） */
@media (max-width: 767px) {
    .horizontal-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
    }

    .horizontal-container > .field {
        flex: 0 0 100% !important;  /* flexリセット */
        max-width: 100% !important; /* halfクラス対策 */
        width: 100% !important;
    }

    /* フォームボタンも縦並び */
    .form-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
    }

    .form-buttons button {
        width: 100% !important;
        box-sizing: border-box;
    }
}



/*
モーダル表示なしへ変更

モーダル用
.links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  background: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  z-index: 1050;
  padding: 20px;
  border-radius: 10px;
}

.modal.active {
  display: block;
}

.modal-content {
  margin: 20px 0;
}

.modal-footer {
  text-align: right;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.modal-backdrop.active {
  display: block;
}

.iframe-container {
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
*/