/* ==================================================
   お問い合わせ共通
   入力・確認・完了
================================================== */


/* ==================================================
   セクション見出し
================================================== */

.custom-underline {
    position: relative;
    display: inline-block;
}

.custom-underline::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 80px;
    height: 4px;
    border-radius: 9999px;
    background-color: #7CC644;
    transform: translateX(-50%);
}


/* ==================================================
   お問い合わせ種別ラジオボタン
   入力画面のみ使用
================================================== */

.inquiry-radio {
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.inquiry-radio input {
    accent-color: #7CC644;
}

.inquiry-radio:has(input:checked) {
    border-color: #7CC644;
    background: #F0FAEA;
    box-shadow: 0 0 0 3px rgba(124, 198, 68, 0.16);
}


/* ==================================================
   HERO
================================================== */

.contact-hero {
    position: relative;
    overflow: hidden;
    background-image: url("/assets/images/contact/main.png");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(255, 248, 238, 0.95) 0%,
            rgba(255, 248, 238, 0.88) 38%,
            rgba(255, 248, 238, 0.42) 68%,
            rgba(255, 248, 238, 0.08) 100%
        );
    z-index: 1;
}

.contact-hero::after {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border-radius: 9999px;
    background: rgba(124, 198, 68, 0.18);
    z-index: 1;
}

.contact-hero-title {
    color: #8C5A3C;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
}

.contact-hero-text {
    color: #4A2E1E;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.80);
}


/* ==================================================
   HERO：スマートフォン
================================================== */

@media (max-width: 767px) {
    .contact-hero {
        background-position: center right;
    }

    .contact-hero::before {
        background:
            linear-gradient(
                90deg,
                rgba(255, 248, 238, 0.96) 0%,
                rgba(255, 248, 238, 0.90) 62%,
                rgba(255, 248, 238, 0.55) 100%
            );
    }

    /*
     * 確認画面の長い見出しが画面からはみ出さないようにする。
     * Blade側のwhitespace-nowrapより優先させる。
     */
    .contact-hero-title {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }
}