@charset "UTF-8";

/* =========================================================
   style.css - お問い合わせ（contact）専用
   ページタイトル帯 / フッターは base.css 側にある

   このページはお問い合わせ本体なので、下層共通の .contact-cta は使わない。
   ========================================================= */

/* =========================================================
   ページタイトル帯の英字ラベル
   このページだけ日本語見出しの上に「Contact」が入る（他ページには無い）
   ========================================================= */

.page-hero__body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-hero__en {
    color: #b8976a;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.45;
}

/* =========================================================
   導入文
   ========================================================= */

.contact-form {
    padding-top: 131px;
    padding-bottom: 305px;
}

/* 行送りは Figma のとおり 35px 固定。段落の間も 1 行ぶん空ける */
.contact-form__lead {
    color: #3b2a1a;
    font-family: "Zen Old Mincho", serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 35px;
    text-align: center;
}

.contact-form__lead + .contact-form__lead {
    margin-top: 35px;
}

/* 呼びかけの 2 行だけ大きく・緑に */
.contact-form__lead--strong {
    color: #5a6b4a;
    font-weight: 700;
    font-size: 24px;
}

.contact-form__lead em {
    color: #5a6b4a;
    font-style: normal;
}

/* =========================================================
   フォーム
   ========================================================= */

.form {
    margin-top: 164px;
}

.form__row {
    display: flex;
    align-items: flex-start;
}

.form__row + .form__row {
    margin-top: 52px;
}

/* ラベル列は 336px（Figma: 202px 〜 538px）。入力欄の高さに対して 5px 下げる */
.form__label {
    flex: 0 0 336px;
    padding-top: 5px;
    color: #3b2a1a;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.45;
}

/* 「（必須）」「（任意）」だけ赤 */
.form__label em {
    color: #d42626;
    font-style: normal;
}

.form__field {
    flex: 1;
}

/*
    destyle.css が input / textarea の見た目を全部消しているので、
    枠線ではなく地色（#d9d9d9）だけで見せる Figma のデザインをここで作る。
*/
.form__input,
.form__textarea {
    width: 100%;
    max-width: 481px;
    padding: 0 12px;
    background-color: #d9d9d9;
    color: #3b2a1a;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

.form__input {
    height: 40px;
}

.form__textarea {
    height: 254px;
    padding: 10px 12px;
    resize: vertical;
}

.form__input:focus-visible,
.form__textarea:focus-visible,
.form__checkbox:focus-visible {
    outline: 2px solid #5a6b4a;
    outline-offset: 2px;
}

/* 入力欄の下に添える選択肢の例。入力欄が無い行では先頭に来るので余白を分けている */
.form__note {
    margin-top: 5px;
    padding-left: 10px;
    color: #3b2a1a;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.45;
}

.form__input + .form__note {
    margin-top: 15px;
}

/* --- プライバシーポリシー同意 --- */

.form__agree {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 112px;
}

/*
    Figma のチェックボックスは 20px の灰色の四角。
    素のチェックマークだと灰色に埋もれるので、チェック時は緑地に白のレ点を出す。
*/
.form__checkbox {
    /* destyle.css はチェックボックスの既定の見た目を残すので、ここで消してから作り直す */
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-color: #d9d9d9;
    cursor: pointer;
}

.form__checkbox:checked {
    background-color: #5a6b4a;
}

.form__checkbox:checked::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fffcf6;
    border-bottom: 2px solid #fffcf6;
    transform: rotate(45deg);
}

.form__agree-label {
    color: #3b2a1a;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

/* --- 送信ボタン --- */

/*
    共通の .button（216x57・右端に「>」）とは別物。
    このページのボタンだけ 347x67 で矢印が無い。
*/
.form__submit {
    display: flex;
    justify-content: center;
    margin-top: 21px;
}

.form__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 347px;
    height: 67px;
    border-radius: 10px;
    background-color: #5a6b4a;
    color: #fffcf6;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.45;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

@media (any-hover: hover) {
    .form__button:hover {
        background-color: #6d7f5b;
    }
}

/* =========================================================
   SP（768px 以下）
   ========================================================= */

@media (max-width: 768px) {

    .page-hero__en {
        font-size: 16px;
    }

    .contact-form {
        padding-top: 56px;
        padding-bottom: 90px;
    }

    .contact-form__lead {
        width: 88%;
        margin-inline: auto;
        font-size: 16px;
        line-height: 1.8;
    }

    .contact-form__lead + .contact-form__lead {
        margin-top: 24px;
    }

    .contact-form__lead--strong {
        font-size: 18px;
    }

    .form {
        width: 88%;
        margin-top: 48px;
    }

    /* ラベル列を 336px 取ると入力欄が入らないので、SP はラベルを上に積む */
    .form__row {
        flex-direction: column;
    }

    .form__row + .form__row {
        margin-top: 24px;
    }

    .form__label {
        flex: 0 0 auto;
        padding-top: 0;
        font-size: 16px;
    }

    .form__field {
        width: 100%;
        margin-top: 8px;
    }

    .form__input,
    .form__textarea {
        max-width: none;
    }

    .form__textarea {
        height: 180px;
    }

    .form__note {
        padding-left: 0;
        font-size: 14px;
    }

    .form__input + .form__note {
        margin-top: 8px;
    }

    .form__agree {
        margin-top: 48px;
    }

    .form__submit {
        margin-top: 24px;
    }

    .form__button {
        width: 100%;
        max-width: 347px;
        height: 58px;
    }
}

/* =========================================================
   小さめのスマホ（480px 以下）
   デザインどおりの改行位置だと 1 行が画面幅を超えるので、
   このサイズからは <br> を無効にして自然折り返しに任せる。
   ========================================================= */

@media (max-width: 480px) {

    .contact-form__lead br {
        display: none;
    }
}
