/* 基本設定と変数 */
:root {
    --fm-green: #00a33e;
    --fm-blue: #008cd6;
    --fm-dark: #333333;
    --fm-light: #f8fafc;
    --white: #ffffff;
    --text-gray: #4b5563;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --space-section: clamp(64px, 10vw, 120px);
    --space-container: clamp(16px, 5vw, 24px);
}
p{
    margin: 0;
}

.contact-about-bike{
    padding-top: clamp(9rem, 24vw, 12rem);
}
.contact-about-car{
    padding-top: clamp(9rem, 24vw, 12rem);
    display: flex;
    justify-content: center;
}

.site-header .nav-item:nth-child(5)  {
    color: var(--fm-green) !important;
    font-weight: 600;
    /* pointer-events: none; */
}

/* --- ヒーローセクション --- */
.hero-section {
    position: relative;
    max-height: 90%;
    display: flex;
    padding-top: 5rem; /* pt-20 相当 */
}

.about-hero {
    position: relative;
    min-height: 500px;
    height: 70vh; /* 画面高に合わせる */
    max-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    background-image: url('../image/demo_1.png');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.top-container{
    width: 100%;
}

.hero-background-image {
    position: absolute;
    inset: 0;
    background-image: url('../image/image_3.png');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    display: block;
    height: 100%;
}

.hero-main-content {
    display: inline-table;
    height: 50%;
    backdrop-filter: blur(4px); /* backdrop-blur-md 相当 */
    padding: 2rem; /* p-8 相当 */
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-white);
    border-radius: 5%;
    max-width: 100%; /* md:w-full lg:w-11/12 xl:w-full を考慮し、レスポンシブで調整 */
    transform: translateY(1rem) scale(0.9);
}

@media (min-width: 768px) {
    .hero-content-wrapper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* md:grid-cols-2 相当 */
        gap: 3rem; /* gap-12 相当 */
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-white);
    border: 1px solid var(--fm-blue);
    color: var(--fm-blue);
    padding: 0.375rem 1rem; /* px-4 py-1.5 相当 */
    border-radius: 9999px;
    font-weight: bold;
    margin-bottom: 1.5rem; /* mb-6 相当 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm 相当 */
}

.hero-badge span {
    font-size: 17px;
}

.hero-title {
    font-size: 2.5rem; /* 3xl/5xl / style="font-size: 2.5rem;" */
    font-weight: 900; /* font-black 相当 */
    line-height: 1.5;
    margin-bottom: 1.5rem; /* mb-6 相当 */
    color: var(--color-gray-800);
}

.hero-title .text-highlight {
    color: var(--fm-green);
    background-color: #f0fff4; /* green-50 相当 */
    padding: 0 0.5rem; /* px-2 相当 */
}

.hero-subtitle {
    color: var(--color-gray-600);
    font-size: 1.125rem; /* text-lg 相当 */
    margin-bottom: 2rem; /* mb-8 相当 */
    line-height: 1.625; /* leading-relaxed 相当 */
}

.hero-action {
    display: flex;
    flex-direction: column; /* flex-col 相当 */
    gap: 1rem; /* gap-4 相当 */
}

@media (min-width: 640px) {
    .hero-action {
        flex-direction: row; /* sm:flex-row 相当 */
    }
}
.label-green-border {
    display: inline-block;
    border-bottom: 2px solid var(--fm-green);
    margin-bottom: 24px;
    padding-bottom: 4px;
}

.label-en {
    color: var(--fm-green);
    font-weight: bold;
    letter-spacing: 0.15em;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.page-title {
    /* 画面幅に応じて40px〜56pxに変化 */
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    word-break: keep-all; /* 変な位置での改行を防ぐ */
    font-weight: bold;
    color: #374151;
}

.text-blue {
    color: var(--fm-blue);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 40px;
    fill: white;
}

/* 線消す */
main::before,main::after,.main-border::before,.main-border::after{
    opacity: 0;
}


/* お問い合わせのページタイトル */
.contact-form-title{
    font-size: 1.8rem;
    text-align: center;
    color: var(--fm-dark);
}

/* お問い合わせフォーム全体 */
.contact-form-section{
    padding-top: clamp(6rem, 12vw, 12rem);
}
.contact-thanks-section{
    padding-top: clamp(6rem, 20vw, 100rem);
    padding-bottom: 10rem;
}

/* バイク保険に関する案内 */
.about-bike{
    /* width: 50%; */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem 25% 0;
    padding: 2.5rem 2rem;
    text-align: center;
    font-size: clamp(15px,1.2vh,1.2rem);
}

/* バイク保険の見出し */
.about-bike-heading{
    color: var(--fm-blue);
    font-size: clamp(18px,2.8vh,2.8rem);
    font-weight: 700;
    text-align: center;
}

/* バイク保険の横並びの親要素 */
.about-bike-flex{
    display: flex;
    margin: 5rem 0 2.5rem;
}

/* バイク保険の横並びの子要素 */
.about-bike-flex-child{
    width: calc(50% - 2rem);
    padding: 0 1rem 1rem;
    text-align: center;
}

/* 区切り線用 */
.bike-left{
    border-right: 1px solid var(--fm-dark);
}

/* 問い合わせ内容の見出し */
.about-bike-heading2{
    color: var(--fm-green);
    font-size: clamp(17px,2.3vh,2.3rem);
    font-weight: 700;
    margin: 0.5rem 0 2rem;
}

/* 連絡先の名称 */
.about-bike-heading3{
    font-size: clamp(16px,1.3vh,1.3rem);
    color: var(--fm-dark);
    font-weight: 700;
}

/* 電話番号 */
.about-bike-heading4{
    font-size: clamp(20px,4.0vh,4.0rem);
    line-height: 2.5;
    font-weight: 700;
}

/* 但し書きの部分 */
.about-bike-heading5{
    font-size: clamp(16px 1.5vw, 18px);
    color: #707070;
    margin-bottom: 1rem;
}

/* 画面縮小時「ファミリーマート」「バイク自賠責～」の間に改行 */
.bike-content-br{
    display: none;
}


.about-car{
    width: 55%;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    /* margin: 2rem 25% 0; */
    padding: 2.5rem 2rem;
    text-align: center;
    font-size: clamp(15px,1.2vh,1.2rem);
}

.about-car-flex{
    display: flex;
    margin: 1.5rem 0 1rem;
    justify-content: space-between;
}

.about-car-flex-child {
    border-top: #e53935 5px solid;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 20px;
    display: grid;
    align-items: end;
    border-radius: 5px;
    width: 25%;
}
.about-car-flex-child-cont{
    display: flex;
    align-items: center;
    gap: 20px;
}

.about-car-heading2{
    margin: 0.5rem 0 0.5rem;
}

/* 連絡先の名称 */
.about-car-heading3{
    font-size: clamp(12px, 1.2vw, 15px);
    color: var(--fm-dark);
    word-break: keep-all;
    font-weight: 700;
    text-align: left;
}

/* 電話番号 */
.about-car-heading4{
    font-size: clamp(20px, 2.5vh, 1.8rem);
    line-height: 2;
    font-weight: 700;
    color: #e53935;
}
.about-car-flex-child-cont i{
    font-size: 2rem;
}


@media(max-width:1285px){
    .about-bike{
        width: 70%;
        margin: 2rem auto 0;
        padding: 2.0rem 2rem;
        font-size: clamp(15px,1.2vh,1.2rem);
    }
    .about-car{
        width: 80%;
        margin: 2rem 10% 0;
        padding: 2.0rem 2rem;
        font-size: clamp(15px,1.2vh,1.2rem);
    }
}

@media(max-width:920px){
    .about-bike{
        width: calc(90% - 2rem);
        margin: 2rem 5% 0;
        padding: 2.0rem 1rem;
        font-size: clamp(15px,1.2vh,1.2rem);
    }
    .about-car{
        width: calc(90% - 2rem);
        margin: 2rem 5% 0;
        padding: 2.0rem 1rem;
        font-size: clamp(15px,1.2vh,1.2rem);
    }

    .bike-content-br{
        display: block;
    }

    .about-bike-flex-child{
        width: 50%;
        padding: 0 0 1rem;
        text-align: center;
    }
}
@media(max-width:767px){
    .about-car-flex {
        display: block;
        margin: 1.5rem 0 1rem;
    }
    .about-car-flex-child {
        width: 90%;
        margin: 20px auto;
    }
    
    .about-car-flex-child-cont {
        display: block;
        align-items: center;
        gap: 20px;
    }
    .about-car-heading3 {
        font-size: clamp(14px, 3vw, 20px);
        margin: 10px 0;
        color: var(--fm-dark);
        word-break: keep-all;
        font-weight: 700;
        text-align: center;
    }
}

/* 画面縮小時、タブレット等 */
@media(max-width:600px){

.about-bike{
    width: calc(90% - 3rem);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem 5% 0;
    padding: 1.5rem;
    text-align: center;
    font-size: clamp(15px,1.2vh,1.2rem);
}
.about-car{
    width: calc(90% - 3rem);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem 5% 0;
    padding: 1.5rem;
    text-align: center;
    font-size: clamp(15px,1.2vh,1.2rem);
}

.about-bike-heading{
    font-size: clamp(18px,2.5vh,2.5rem);
}

/* 横並びの要素を縦配置 */
.about-bike-flex{
    display: block;
    margin: 1.5rem 0 1rem;
    border-top: 1px solid var(--fm-dark);
    border-bottom: 1px solid var(--fm-dark);
}

/* 子要素 */
.about-bike-flex-child{
    width: 80%;
    padding: 1rem 10%;
    text-align: center;
}

/* 区切り線用 */
.bike-left{
    border-right: none;
    border-bottom: 1px solid var(--fm-dark);
}

/* 問い合わせ内容の見出し（緑の文字） */
.about-bike-heading2{
    margin: 0.5rem 0 1.5rem;
}

/* 連絡先の名称 */
.about-bike-heading3{
    font-size: clamp(16px,1.3vh,1.3rem);
    color: var(--fm-dark);
    font-weight: 700;
}

/* 電話番号 */
.about-bike-heading4{
    font-size: clamp(20px,4.0vh,4.0rem);
    line-height: 2;
    font-weight: 700;
}

/* 但し書きの部分 */
.about-bike-heading5{
    font-size: clamp(16px 1.5vh, 1.5rem);
    color: #707070;
    margin-bottom: 1rem;
}

}


/* モバイル表示 */
@media(max-width:499px){

/* バイク保険に関する案内 */
.about-bike{
    width: calc(100% - 4rem);
    margin: 9rem 0 0;
    padding: 0.5rem 2rem;
    font-size: clamp(14px,1.0vh,1.0rem);
    box-shadow: none;
}

/* バイク保険の見出し */
.about-bike-heading{
    font-size: clamp(19px,1.8vh,1.8rem);
}

/* バイク保険の横並びの親要素 */
.about-bike-flex{
    margin: 2rem 0;
}

/* バイク保険の横並びの子要素 */
.about-bike-flex-child{
    width: calc(100% - 1rem);
    padding: 1rem 0.5rem 0.5rem;
    text-align: center;
}

/* 問い合わせ内容の見出し */
.about-bike-heading2{
    color: var(--fm-green);
    font-size: clamp(17px,1.8vh,1.8rem);
    font-weight: 700;
    margin: 0.5rem 0 1rem;
}

/* 連絡先の名称 */
.about-bike-heading3{
    font-size: clamp(15px,1.3vh,1.3rem);
}

/* 電話番号 */
.about-bike-heading4{
    font-size: 3.5vh;
    line-height: 2.0;
}

/* 但し書きの部分 */
.about-bike-heading5{
    font-size: clamp(15px,1.5vh,1.5rem);
    color: #707070;
    margin-bottom: 1rem;
}

}




/* ========================================
   Contact Form 7 用フォーム調整
======================================== */

/* フォーム本体 */
.contact-form {
    width: 60%;
    margin: 3rem 20%;
}

.contact-form .wpcf7 {
    width: 100%;
}

.contact-form .wpcf7 form {
    margin: 0;
}

.contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* 説明文 */
.form-explanation {
    margin-bottom: 3.5rem;
}

.form-explanation p {
    font-size: 1rem;
    line-height: 2;
}

/* 必須 */
.form-required {
    font-weight: 700;
    color: #e53935;
    margin-left: 0.25em;
}

/* 各項目 */
.form__item {
    /* display: flex; */
    align-items: flex-start;
    margin-bottom: 2.75rem;
}

.form__item > label,
.form__item > .sp {
    width: 220px;
    min-width: 220px;
    font-size: clamp(16px, 2.1vh, 1.8rem);
    line-height: 1.8;
    padding-left: 0.5rem;
    box-sizing: border-box;
}

.form__item > label span {
    color: #e53935;
    font-weight: 700;
    margin-left: 0.25em;
}

/* 入力欄側 */
.contact__area {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.contact__area input[type="text"],
.contact__area input[type="email"],
.contact__area input[type="tel"],
.contact__area textarea,
.contact__area select {
    display: block;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #bfc8d2;
    background: #fff;
    color: var(--fm-dark);
    font: inherit;
}

/* 入力欄 */
.contact__area input[type="text"],
.contact__area input[type="email"],
.contact__area input[type="tel"] {
    height: 2.75rem;
    border-radius: 10px;
    font-size: clamp(15px, 2vh, 1.7rem);
    line-height: 1.4;
    padding: 0 0.75rem;
}

/* 項目ごとの幅 */
#name,
#name_kana {
    width: 50%;
}

#company {
    width: 100%;
}

#email,
#email_confirm {
    width: 80%;
}

#tel {
    width: 45%;
}

/* 補足文 */
.form__item--mail-confirm .contact__area p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
}

/* テキストエリア */
.contact__area textarea {
    width: 90%;
    min-height: 20rem;
    border-radius: 10px;
    font-size: clamp(16px, 2.2vh, 1.8rem);
    line-height: 1.6;
    padding: 0.75rem;
    resize: vertical;
}

/* 個人情報同意 */
.form__item.privacy__policy {
    display: block;
    margin-bottom: 0;
}

.privacy_policy__btn {
    padding-left: 1rem;
    font-size: clamp(16px, 2.1vh, 1.8rem);
}

.privacy_policy__btn .wpcf7-form-control-wrap {
    display: inline;
    width: auto;
}

.privacy_policy__btn .wpcf7-list-item {
    margin: 0;
}

.privacy_policy__btn input[type="checkbox"] {
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ボタン */
.button {
    margin-top: 4rem;
    margin-bottom: 9rem;
    text-align: center;
}

.button .form-button,
.button input[type="submit"] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    height: 3rem;
    padding: 0 2rem;
    border: 0px solid var(--fm-dark);
    border-radius: 999px;
    background-color: var(--fm-green);
    color: #fff;
    font-size: clamp(18px, 2.2vh, 1.4rem);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
    appearance: none;
    -webkit-appearance: none;
}

.button .form-button:hover,
.button input[type="submit"]:hover {
    transform: translateY(2px);
    transition: all 0.1s;
    box-shadow: none;
}

/* フォーカス */
.contact__area input:focus,
.contact__area textarea:focus,
.contact__area select:focus {
    outline: none;
    border: 2px solid var(--fm-green);
    box-shadow: 0 0 0 2px rgba(0, 163, 62, 0.15);
}

/* エラー表示 */
.contact-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.5rem;
    font-size: 14px;
    line-height: 1.6;
    color: #d63638;
}

.contact-form .wpcf7-response-output {
    margin: 2rem 0 0;
    line-height: 1.7;
}

.contact-form .wpcf7-spinner {
    display: block;
    margin: 0.75rem auto 0;
}

/* 自動挿入の空p対策 */
.contact-form p:empty {
    display: none;
}

/* ========================================
   Tablet
======================================== */
@media (max-width: 768px) {
    .contact-form {
        width: 80%;
        margin: 0 10%;
    }

    .form__item {
        display: block;
        margin-bottom: 2rem;
    }

    .form__item > label,
    .form__item > .sp {
        display: block;
        width: 100%;
        min-width: 0;
        margin-bottom: 0.75rem;
        padding-left: 0;
    }

    #name,
    #name_kana,
    #company,
    #email,
    #email_confirm,
    #tel,
    .contact__area textarea {
        width: 100%;
    }

    .privacy_policy__btn {
        padding-left: 0;
    }
}

/* ========================================
   Mobile
======================================== */
@media (max-width: 499px) {
    .contact-form {
        width: 100%;
        margin: 0;
    }

    .form-explanation {
        margin-bottom: 2.5rem;
    }

    .contact__area input[type="text"],
    .contact__area input[type="email"],
    .contact__area input[type="tel"] {
        height: 2.5rem;
        font-size: 16px;
    }

    .contact__area textarea {
        min-height: 15rem;
        font-size: 16px;
        line-height: 1.5;
    }

    .button {
        margin-top: 3rem;
        margin-bottom: 7rem;
    }

    .button .form-button,
    .button input[type="submit"] {
        width: 200px;
        height: 2.75rem;
        min-width: 0;
    }
}

.wpcf7-turnstile{
    margin: 20px 0 0;
}