/* リセット or Normalize は reset.css に記述 */


body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #000;
}

/* 500px センター寄せ＋内部は白 */
.sp-frame {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    /* ←中央寄せ */
    background: #fff;
    /* ←中身は白 */
    min-height: 100vh;
    /* 縦に余白が出ないように */
    overflow: hidden;
    /* 横スクロール防止 */
}

/* ヘッダー共通 */
.header {
    display: flex;

    /* Flexbox モードにする */
    :contentReference[oaicite:0] {
        index=0
    }

    justify-content: center;

    /* 子要素を水平方向の中央に配置 */
    :contentReference[oaicite:1] {
        index=1
    }

    align-items: center;
    /* 垂直方向も中央揃え */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    z-index: 1000;
    padding: 0;
}

.header img {
    max-width: 100%;
    max-height: 100%;
    object-position: center center;
    display: block;
}


/* SP表示用：デフォルトで表示 */
.sp-only {
    display: block;
}

.pc-only {
    display: none;
}

/* ヒーローセクション共通 */
.section-hero {
    background-color: #000;
    text-align: center;
}

/* 画像は幅100%でフルワイド */
.section-hero .hero-image {
    width: 100%;
    height: auto;
}

.section-cta a {
    width: 100%;

    /* セクション全幅を確保 */
    :contentReference[oaicite:0] {
        index=0
    }

    background-color: #000;
    /* 黒背景 */
    display: flex;
    /* Flexコンテナ化 */
    justify-content: center;
    /* 水平方向中央寄せ */
    align-items: center;
    /* 垂直方向中央寄せ */
    padding: 35px 0;
    /* 上下余白（元のマージン相当） */
    box-sizing: border-box;
    /* パディングを幅に含める */
}

.section-cta a .sp-cta {
    max-width: 82%;
    /* 横幅を親の82%までに制限 */
    height: auto;
    /* 高さはアスペクト比維持 */
    display: block;
    /* ブロックレベルで扱う */
    object-fit: contain;
    /* 画像全体を表示、はみ出し防止 */
}

.section-campaign {
    background-color: #04381E;
}

.section-care {
    background-color: #fff;
}

.section-cost {
    background-color: #fff;
    padding-top: 40px;
}

.section-qa {
    padding: 40px 16px;
}

.qa-header p {
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    margin: 0 0 24px;
}

.accordion {
    max-width: 600px;
    margin: 0 auto;
}

/* ②各アイテム --------------------------------------- */
.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    display: flex;
    /* ← 左寄せなので flex-start */
    justify-content: flex-start;
    text-align: left;
    /* テキストは左寄せ */
    position: relative;
    /* ::after を絶対配置するため */
    width: 100%;
    padding: 16px 40px 16px 16px;
    /* 右側 40px の余白で矢印スペース確保 */
    background: #fff;
    border: none;
    cursor: pointer;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
}

/* ▼矢印はそのまま absolute で 16px のマージン */
.accordion-header::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-left: 3px solid #045C33;
    border-bottom: 3px solid #045C33;
    transform: translateY(-50%) rotate(-45deg);
    transition: transform 0.25s ease;
}

.accordion-header.active::after {
    transform: translateY(-50%) rotate(135deg);
}


/* ③本文エリア --------------------------------------- */
.accordion-body {
    overflow: hidden;
    max-height: 0;
    padding: 0 16px;
    font-size: 14px;
    transition: max-height .25s ease;
}

.accordion-body.open {
    /* padding は JS で高さを計算したあとに効かせたいので class 側で付与 */
    padding-top: 12px;
    padding-bottom: 16px;
}


/* ① マップ */
.section-map iframe {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* 高さは自動調整 */
    border-radius: 4px;
    overflow: hidden;
}

.section-address {
    padding: 24px 10%;
    font-size: 14px;
}

/* ② 住所 */
.section-address .zip,
.section-address .address {
    margin: 0;
    line-height: 1.5;
    color: #111;
}

.section-address .address {
    margin-top: 4px;
}

.section-hours,
.section-phone,
.section-email {
    padding: 20px 10% 0px 10%;
}

.section-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: bold;
    color: #015E34;
}

.section-text {
    margin: 0;
    font-size: 14px;
    color: #111;
    line-height: 1;
}

.section-footer-logo {
    padding: 40px 0 20px;
    background-color: #fff;
    text-align: center;
    margin: 0 auto;
    width: 80%;
}

.section-footer-logo img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.full-width {
    text-align: center;
}

/* 画像は幅100%でフルワイド */
.full-width img {
    width: 100%;
    height: auto;
}


/* コンテナ幅：PCでは最大1200pxで中央寄せ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0;
    padding: 0;
    /* SP時の左右パディング */
}

/* ─── 動画セクション用スタイル ─── */
.section-video {
    position: relative;
    /* 上下にずらせるように */
    width: 100%;
    background-color: #000;
    padding: 16px 0;
    /* 上下の余白そのまま */
    box-sizing: border-box;
}

.video-title {
    position: absolute;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
    left: 50%;
    transform: translateX(-50%);
    top: 10%;
    width: 100%;
    text-shadow: 0 0 4px rgba(0, 0, 0, 1);
}

.video-auto {
    width: calc(246 / 375 * 100%);
    height: auto;
    margin: 25px auto 0;
    /* ↑上マージン 10px、左右 auto、下 0 */
    display: block;
    object-fit: contain;
    border: none;
}

.video-text {
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    margin: 25px auto;
    padding: 0 16px;
    /* 左右の余白 */
    text-align: center;
    /* 中央寄せ */
}

/* ─── ここまで ─── */

/* ─── セクション共通の余白リセット ─── */
section {
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

/* ─── 画像は必ずブロック要素に ─── */
.full-width img {
    display: block;
    width: 100%;
    height: auto;
}

/* 背景用 */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #04381E, #000000, #07422A, #001F10);
    background-size: 400% 400%;
    animation: slide-bg 20s ease infinite;
    z-index: -1;
    /* コンテンツの後ろ */
}

@keyframes slide-bg {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* sp-frame はそのまま既存スタイル */
.sp-frame {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    /* 背景 DIV と重なるため */
    z-index: 1;
}


/* ============ PC 右端固定バー ============ */
.pc-contact-bar {
    position: fixed;
    top: 80%;
    right: calc(50vw - 250px - 63.5px);
    transform: translateY(-50%);
    z-index: 1000;
    display: none;
    /* SP では非表示 */
}

@media (min-width: 768px) {

    /* PC 表示開始幅はお好みで */
    .pc-contact-bar {
        display: block;
    }
}

.pc-contact-bar button {
    writing-mode: vertical-rl;
    /* 文字縦書き */
    background: linear-gradient(135deg, #06c755 0%, #0DBD03 100%);
    /* LINE グリーン */
    color: #fff;
    border: none;
    padding: 12px 8px;
    font-size: 14px;
    cursor: pointer;
}

/* ===== モーダル ===== */
.qr-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 1001;
}

.qr-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    max-width: 300px;
    width: 90%;
}

.qr-modal-content img {
    width: 100%;
    height: auto;
}

.qr-close {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 28px;
    cursor: pointer;
}

/* ============ SP 画面下固定バー ============ */
.sp-contact-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    /* 中央寄せ */
    z-index: 999;

    display: inline-block;
    /* コンテンツ幅に合わせる */
    white-space: nowrap;
    /* 改行させない */
    padding: 14px 24px;
    /* 横に余白を確保 */

    background: linear-gradient(135deg, #06c755 0%, #0DBD03 100%);
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    border-radius: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
    transition: transform .15s, box-shadow .15s;

    max-width: calc(100% - 32px);
    /* 画面が極端に狭くてもはみ出さない */
}

.sp-contact-bar:active {
    transform: translate(-50%, 2px);
    /* 下へ2px */
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

@media(min-width:768px) {
    .sp-contact-bar {
        display: none;
    }

    /* PC では非表示 */
}