/* リセット */
body,
html,
img,
section {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* 全セクション共通 */
.section img {
    width: 100%;
    height: auto;
    display: block;
}

/* PC画像はデフォルト表示、SPは非表示 */
.img-pc {
    display: block;
}

.img-sp {
    display: none;
}

/* ヘッダー */
.site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    transform: translateY(-100%);
    transition: transform 280ms cubic-bezier(.2, .9, .2, 1), box-shadow 280ms;
    z-index: 1000;
    background: #F2F2F2;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #111;
    pointer-events: none;
}

.site-header.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
}

#site-header .logo {
    width: 200px;
    padding: 15px 0 15px 40px;
}

.site-header__right {
    display: flex;
    text-align: center;
}

.site-header .cta {
    background-color: unset !important;
    text-decoration: unset;
    color: #C62E4A;
    font-size: 18px;
    padding: 0 !important;
}

.reserve {
    border-left: #000 1px solid;
    border-right: #000 1px solid;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 42px;
}


/* --- ハンバーガーメニュー--- */
.hamburger {
    height: 100%;
}

.hamburger img {
    width: 34px;
    padding: 7px 39px 0;
}

.hamburger__bar {
    display: block;
    width: 24px;
    height: 3px;
    background: #111;
    border-radius: 2px;
    margin: 3px 0;
    /* バー間隔 */
}

.hamburger button {
    padding: 0;
}

.menu-close {
    width: 30px;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
}

.menu-close img {
    width: 30px;
    height: auto;
    display: block;
}

.menu-logo {
    width: 250px;
}

.pc_menu-cta img {
    width: 300px;
}

.menu-left {
    display: grid;
    justify-items: center;
    gap: 30px;
}

.menu-nav ul li {
    padding: 13px 0;
}

.menu-nav ul li a {
    text-decoration: unset;
    color: #303030;
}

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 600px) {
    #site-header .logo {
        width: 166px;
        padding: 15px 0 15px 15px;
    }

    .site-header .cta {
        font-size: 15px;
        padding: 0 !important;
    }

    .reserve {
        padding: 0 22px;
    }

    .hamburger img {
        padding: 7px 19px 0;
    }

}

/* --- オーバーレイ / パネルの改善 --- */
.menu-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: stretch;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.45);
    z-index: 12000;
}

.menu-overlay.is-open {
    display: flex;
}

/* パネル幅の調整 */
.menu-panel {
    width: 60%;
    max-width: 1000px;
    min-width: 300px;
    background: #efede6;
    transform: translateX(100%);
    transition: transform 360ms cubic-bezier(.2, .9, .2, 1);
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.22);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    height: 100vh;
    overflow: hidden;
}

/* 開いたとき */
.menu-overlay.is-open .menu-panel {
    transform: translateX(0);
}

.menu-panel__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5vw;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
}

.sp_menu-cta {
    max-width: 305px;
    margin: 0 auto 0;
}

@media (max-width: 900px) {
    .menu-panel {
        width: 100%;
        max-width: none;
        padding: 28px 20px;
    }

    .menu-panel__inner {
        flex-direction: column;
        gap: 20px;
    }

    .menu-left {
        order: 1;
    }

    .menu-nav {
        order: 2;
        margin-left: -65px;
    }

    .pc_menu-cta {
        display: none;
    }
}

@media (min-width: 901px) {
    .sp_menu-cta {
        display: none;
    }
}


/* 小さめ画面でのちょっとした調整 */
@media (max-width: 760px) {}


/* FV 全体のラッパー（そのまま） */
.fv-wrapper {
    position: relative;
    width: 100%;
}

/* オーバーレイ本体（中央合わせ） */
.overlay-content {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: #fff;
    pointer-events: none;
    /* 画面幅が狭くなったら縦位置を少し上げる */
}

/* 背景の半透明の箱 */
.back-gray {
    background-color: rgba(0, 0, 0, 0.4);
    display: inline-block;
    padding: 30px 80px;
    border-radius: 5px;
    margin-bottom: 40px;
}

/* --- ここが肝：clampでレスポンシブ化 --- */
/* それぞれ「最小px、理想はvwベース、最大px」を指定 */
.pc_fv_text {
    width: clamp(260px, 38vw, 490px);
    /* 小さければ260px、広ければ最大490px、中央は38vw */
    height: auto;
    display: block;
    margin: 0 auto;
}

.fv_btn {
    width: clamp(220px, 36vw, 467px);
    height: auto;
    display: block;
    margin: 12px auto 0;
}

.pc_fv_three {
    width: clamp(300px, 44vw, 530px);
    height: auto;
    display: block;
    margin: auto;
}

.overlay-content a,
.overlay-content button {
    pointer-events: auto;
    display: inline-block;
    z-index: 20;
}

.overlay-content a img,
.overlay-content button img {
    pointer-events: none;
    display: block;
}



@media (max-width: 1130px) {
    .overlay-content {
        top: 52%;
    }

    .back-gray {
        margin-bottom: 28px;
    }
}

@media (max-width: 700px) {
    .back-gray {
        margin-bottom: 2vw;
        padding: 3vw 8vw;
    }
}


/* アコーディオン */
.accordion-wrapper {
    width: 100%;
    margin: auto;
    padding: 40px 0;
    background-color: #F2F2F2;
}

.include-accordion {
    max-width: 720px;
    margin: auto;
}

.include-accordion li {
    margin: auto;
}

ul {
    padding: 0;
    color: #000;
}

li {
    list-style: none;
}

ul ul {
    height: 0;
    padding: 0;
    overflow: hidden;
    transition: .5s;
    border-top: 1px solid #F2F2F2;
    background-color: #F2F2F2;
    margin: 0;
}

ul li li {
    border-bottom: 1px dotted #F2F2F2;
    padding: 15px 0 15px 10px;
    margin-left: 15px;
}

ul:nth-of-type(1) li.active li:last-child {
    border-bottom: 1px solid #F2F2F2;
}

button {
    position: relative;
    border: none;
    width: 100%;
    background-color: inherit;
    color: #000;
    cursor: pointer;
    text-align: left;
    padding: 15px 0 15px 20px;
    font-size: 1em;
}

li.active button::before {
    transform: rotate(-180deg);
    transition: .5s;
}

ul.active {
    overflow-y: auto;
}

.accordionBtn {
    position: relative;
    width: 100%;
    text-align: left;
    padding: 20px 48px 15px 0;
    font-size: 16px;
    border: none;
    background: none;
    cursor: pointer;
}

/* 丸の部分はそのままでもOK、矢印を画像に置き換える */
.accordionBtn::before {
    content: "";
    position: absolute;
    right: 7px;
    top: 39%;
    width: 16px;
    height: 16px;
    background: url('./images/arrow-down.png') no-repeat center center;
    background-size: contain;
    transition: 0.3s ease;
}

/* アコーディオン開いたときの矢印回転 */
.accordionBtn.active::before {
    transform: translateY(-50%) rotate(180deg);
    /* 画像が回転する */
}

/* アコーディオンが開いたときの矢印回転 */
.accordionBtn.active::before {
    transform: translateY(-35%) rotate(-135deg);
}

@media (max-width: 500px) {
    .img-pc {
        display: none;
    }

    .img-sp {
        display: block;
    }
}





/* Q画像を左側に配置 */
.accordionBtn {
    position: relative;
    padding-left: 40px;
    /* Qぶん余白 */
}

.accordionBtn::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 54%;
    width: 25px;
    height: 25px;
    background: url('./images/q.png') no-repeat center center;
    background-size: contain;
    transform: translateY(-50%);
}


/* A画像を左側に配置 */
.include-accordion ul li {
    position: relative;
    padding-left: 40px;
}

.include-accordion .active ul li {
    border-top: #BCBCBC 1px solid;
}

.include-accordion ul li::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 14px;
    width: 27px;
    height: 27px;
    background: url('./images/a.png') no-repeat center center;
    background-size: contain;
}

.iframe-wrapper {
    width: 50%;
    max-width: 720px;
    margin: 0 auto 120px;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
}

/* フォールバック：aspect-ratio がないブラウザ向けの高さ確保
   720x434 の元サイズを維持したいなら 434/720*100 = 60.28% を指定 */
@supports not (aspect-ratio: 1/1) {
    .iframe-wrapper {
        height: 0;
        padding-top: 60.3%;
        /* 元の比率に合わせる（必要なら調整） */
    }
}

/* iframe は wrapper にフィットさせる */
.iframe-wrapper iframe {
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; と同義 */
    width: 100% !important;
    /* !important は既存のグローバル iframe 指定を上書きしたいときのみ */
    height: 100% !important;
    border: 0;
    display: block;
}

.cta {
    background-color: #E8E7DE;
    padding-bottom: 30px;
}

.cta img {
    width: 36%;
    height: auto;
    display: block;
    margin: 0 auto 0;
}

/* wrapper */
.plan-tabs {
    max-width: 820px;
    margin: 32px auto;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* タブ列 */
.tabs {
    display: flex;
    gap: 9px;
    margin: 0px 21px 3px 17px;
    align-items: flex-end;
}

/* タブボタン共通 */
.tab-btn {
    background: #e9e9e9;
    border-bottom: 0;
    padding: 12px 28px;
    border-radius: 5px 5px 0 0;
    font-size: 18px;
    color: #777;
    cursor: pointer;
    box-shadow: none;
    transition: all 180ms ease;
    outline: none;
    text-align: center;
}

/* アクティブタブ */
.tab-btn.active {
    border: 1px solid #a58467;
    border-bottom: 0;
    z-index: 99;
    background: #fff;
    color: #a58467;
}

/* タブの「切り欠き」っぽい少し伸ばす見た目（左側と右側の隣接で浮かせる） */
.tab-btn:first-child {
    margin-left: 6px;
}

/* パネル（カード本体）*/
.tab-panels {
    border: 1px solid #a58467;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* タブ内の画像 */
.tab-panel img {
    width: 100%;
    height: auto;
    display: block;
}

/* レイアウト微調整（タブが上に重なる見た目） */
.plan-tabs .tabs+.tab-panels {
    margin-top: -4px;
}

/* モバイルでタブを小さく */
@media (max-width: 600px) {
    .tab-btn {
        padding: 7px 14px;
        font-size: 17px;
    }

    .plan-tabs {
        padding: 0 12px;
    }
}



@media (max-width: 500px) {
    .cta img {
        width: 95%;
    }

    .voice .card {
        padding: 0px;
    }

    .iframe-wrapper {
        width: 83%;
        margin: 20px auto 60px;
    }

    .include-accordion {
        width: 90%;
    }

    .img-sp.pc_fv_text {
        width: 58vw;
    }

    .back-gray {
        padding: 7vw 1vw;
    }

    .img-sp.fv_btn {
        width: 71vw;
    }

    .pc_fv_three {
        width: 89vw !important;
        position: absolute;
        left: -11%;
        margin-top: 28vw;
    }

    .menu-panel {
        justify-content: flex-start;
    }


}

@media (max-width: 430px) {
    #site-header .logo {
        width: 140px;
        padding: 10px 0 10px 10px;
    }

    .site-header .cta {
        font-size: 13px;
    }

    .reserve {
        padding: 0 16px;
    }

    .hamburger img {
        width: 31px;
    }
}

.media-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    line-height: 0;
}


.pc-media,
.sp-media {
    width: 100%;
    height: auto;
}

.pc-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}