/*
Theme Name: Sato Dental Clinic
Description: 佐藤歯科医院 インプラント治療用ランディングページ
Author: RE:LIGHT STUDIO
Version: 1.0.0
*/

@charset "utf-8";

/* ========================================================
   1. Base Styles (PC向け基本スタイル: 2560px / 1920px / 1440px共通)
   ※下部のメディアクエリで上書きされない限り、すべてのサイズに適用されます
======================================================== */
:root {
    --c-navy: #1B2A47;
    --c-navy-dark: #121d33;
    --c-wine: #722F37;
    --c-gold: #D4AF37;
    --c-gold-light: #F4E5A1;
    --c-bg: #F9F8F6;
    --c-text: #333333;
    --c-white: #FFFFFF;
    --font-base: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-title: 'fot-tsuku-min-pr6n', '筑紫明朝', 'TsukuMin Pr6N', serif;
    --font-en: 'Libre Baskerville', serif;
    
    /* Z-index */
    --z-header: 100;
    --z-drawer: 90;
    --z-floating: 80;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

/* ========================================================
   背景動画設定
======================================================== */
.bg-video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* 一番後ろに配置 */
    overflow: hidden;
    background-color: var(--c-navy); /* 動画読み込み前のプレースホルダー色 */
    transform: translateZ(0); /* スクロール時のチラつき防止 */
}

.bg-video-wrapper video {
    width: 100%;
    height: 100%;
    /* PCでは横幅に、SPでは高さに合わせて自動トリミングされます */
    object-fit: cover; 
}

body {
    font-family: var(--font-base);
    color: var(--c-text);
    /* ▼変更：bodyの背景を透明にして背面の動画を見えるようにする */
    background-color: transparent; 
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

main {
    padding-top: 80px;
}

img { max-width: 100%; height: auto; vertical-align: bottom; }
a { text-decoration: none; color: inherit; transition: opacity 0.3s ease; }
a:hover { opacity: 0.7; }
ul { list-style: none; }

.inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-gray { background-color: var(--c-bg); }
.bg-navy { background-color: var(--c-navy); color: var(--c-white); }
.bg-wine { background-color: var(--c-wine); color: var(--c-white); }

/* Display Utilities (Base) */
.sp-only { display: none; }
.sp-only-500 { display: none; }

/* Typography */
.sec-title {
    font-family: var(--font-title);
    font-size: clamp(24px, 3vw, 36px);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.5;
    color: var(--c-navy);
}
.sec-title--white { color: var(--c-white); }
.sec-title--en span {
    display: block;
    font-family: var(--font-en);
    font-size: 16px;
    color: var(--c-gold);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}
.sec-title small { display: block; font-size: 16px; font-family: var(--font-base); margin-top: 15px; }

/* Buttons */
/* ========================================================
   Buttons (立体・角丸四角形デザイン)
======================================================== */
.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* ベースのゴールドグラデーション（少し立体感を出すために調整） */
    background: linear-gradient(180deg, var(--c-gold-light) 0%, var(--c-gold) 45%, #b89326 100%);
    color: var(--c-navy-dark);
    font-weight: bold;
    /* ▼ 変更: 角の丸みを弱める (80px -> 12px程度) */
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* ▼ 変更: 立体感を出すための影とボーダー */
    border: 1px solid #a68420; /* 縁取りを少し濃く */
    box-shadow: 
        0 6px 0 #9c7b1c, /* 下部の厚み（3D効果） */
        0 10px 15px rgba(0,0,0,0.3), /* 全体のドロップシャドウ */
        inset 0 2px 0 rgba(255,255,255,0.6); /* 上部のハイライト（内側の光） */
    transition: all 0.2s ease; /* クリック時の沈み込み用 */
}

/* ボタン上部のツヤ（画像のようなガラスっぽいハイライト）を追加 */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%; /* ボタンの上半分にハイライトを入れる */
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 12px 12px 0 0;
    pointer-events: none; /* クリックの邪魔にならないように */
}

/* クリック（アクティブ）時の押し込みアニメーション */
.btn:active {
    transform: translateY(4px); /* 下に4px沈む */
    box-shadow: 
        0 2px 0 #9c7b1c, /* 厚みを減らす */
        0 4px 6px rgba(0,0,0,0.2), /* 影を小さく */
        inset 0 2px 0 rgba(255,255,255,0.6);
}

.btn--header { 
    padding: 10px 20px; 
    font-size: 14px; 
    /* ヘッダー用は少し角丸を小さく、厚みも薄くする */
    border-radius: 8px;
    box-shadow: 0 4px 0 #9c7b1c, 0 6px 10px rgba(0,0,0,0.2), inset 0 2px 0 rgba(255,255,255,0.6);
}
.btn--header::after { border-radius: 8px 8px 0 0; }
.btn--header:active { transform: translateY(2px); box-shadow: 0 2px 0 #9c7b1c, 0 3px 5px rgba(0,0,0,0.2), inset 0 2px 0 rgba(255,255,255,0.6); }

.btn--l { 
    padding: 20px 60px; 
    font-size: 22px; /* 文字を少し大きく */
    letter-spacing: 0.1em;
}
.btn--l small { 
    font-size: 14px; 
    font-weight: 700;
    font-weight: normal; 
    opacity: 0.9;
}

/* 既存の光沢が走るアニメーションは維持（z-indexだけ調整） */
.btn--shine::before {
    content: ''; 
    position: absolute; 
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
    z-index: 2; /* ハイライト(after)より上に表示 */
}
@keyframes shine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }

/* Header & Nav */
.header {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: #f4f1eb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: var(--z-header);
    backdrop-filter: blur(5px);
}
.header__inner {
    display: flex; justify-content: space-between; align-items: center;
    height: 80px; max-width: 1440px; margin: 0 auto; padding: 0 20px;
}
.header__logo img {
    height: 50px; /* 45px から 32px 程度に縮小（お好みで調整してください） */
    width: auto;
    display: block; /* 余白の微調整用 */
}
.header__nav ul { display: flex; gap: 20px; }
.header__nav a { font-size: 14px; font-weight: bold; color: var(--c-navy); }
.header__contact { display: flex; align-items: center; gap: 20px; }
.header__tel { display: flex; flex-direction: column; align-items: flex-end; color: var(--c-navy); }
.header__tel .tel-text { font-size: 12px; font-weight: bold; color: var(--c-wine); }
.header__tel .tel-num { 
    font-size: 20px; 
    font-weight: 900; 
    font-family: var(--font-en); 
    line-height: 1; 
    display: flex;        /* アイコンと数字を横並びにする */
    align-items: center;  /* 縦の中央で揃える */
}
.header__tel .tel-icon { 
    width: 18px; 
    height: 18px; 
    margin-right: 5px; 
    fill: var(--c-navy);  /* アイコンの色をヘッダーの文字色に合わせる */
}

/* Hamburger & Drawer Menu */
.hamburger {
    display: none; width: 40px; height: 40px; position: relative;
    background: none; border: none; cursor: pointer; z-index: calc(var(--z-header) + 1);
}
.hamburger span {
    position: absolute; left: 5px; width: 30px; height: 2px; background-color: var(--c-navy);
    transition: all 0.3s ease;
}
.hamburger span:nth-of-type(1) { top: 10px; }
.hamburger span:nth-of-type(2) { top: 19px; }
.hamburger span:nth-of-type(3) { top: 28px; }
.hamburger.is-active span:nth-of-type(1) { top: 19px; transform: rotate(45deg); }
.hamburger.is-active span:nth-of-type(2) { opacity: 0; }
.hamburger.is-active span:nth-of-type(3) { top: 19px; transform: rotate(-45deg); }

.drawer-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: rgba(255,255,255,0.98); z-index: var(--z-drawer);
    padding-top: 100px; transform: translateX(100%); transition: transform 0.3s ease;
}
.drawer-menu.is-active { transform: translateX(0); }
.drawer-menu ul { text-align: center; }
.drawer-menu li { margin-bottom: 20px; }
.drawer-menu a { font-size: 18px; font-weight: bold; color: var(--c-navy); display: block; padding: 10px; }
.drawer-menu__btn { margin-top: 30px; padding: 0 20px; }

/* Sections Layout Base */
section { padding: 100px 0; }

/* FV */
.fv {
    position: relative;
    width: 100%;
    background: transparent;
    display: flex;
    align-items: flex-end; 
    overflow: hidden;
    padding: 0 0 100px 0; 
}

/* ▼ 追加：FV専用動画レイヤー ▼ */
.fv__video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* コンテンツの奥に配置 */
}

.fv__video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせて動画をはみ出さないようにクロップ */
}

.fv__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    /* ▼ 変更：ブロック全体を右側に寄せる */
    /* ※全体を「左下」にしたい場合は、下の flex-end を flex-start に変更してください */
    justify-content: flex-end; 
}

.fv__content {
    width: 100%;
    max-width: 1200px;
    /* ▼ 変更：中央揃えを解除して左揃えに */
    text-align: left; 
    margin: 0; 
}

.fv__badge {
    display: flex;
    flex-wrap: wrap;
    /* ▼ 変更：バッジも左寄せに */
    justify-content: flex-start; 
    gap: 15px;
    margin-bottom: 40px; 
}

/* バッジのスタイルはそのまま維持 */
.badge-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid var(--c-gold);
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.badge-item::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px; right: 3px; bottom: 3px;
    border: 1px solid var(--c-wine);
    border-radius: 50%;
    pointer-events: none;
}
.badge-item span {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
    color: var(--c-navy); 
    line-height: 1.4;
    letter-spacing: 0.05em;
}

/* ▼ 変更：コピー（テキスト）の色と発光エフェクト ▼ */
.fv__copy { 
    font-family: var(--font-title); 
    /* 文字色を白に変更 */
    color: var(--c-white); 
    margin-bottom: 30px; 
    
    /* ネイビーのドロップシャドウをかけて可読性を高める */
    text-shadow: 
        0 2px 4px rgba(27, 42, 71, 0.9),   /* 文字の輪郭を際立たせる濃い影 */
        0 4px 10px rgba(27, 42, 71, 0.7),  /* 少し下に落ちる自然な影 */
        0 0 20px rgba(27, 42, 71, 0.5);    /* 背景から文字を浮かせるふんわりとした影 */
}

.fv__copy-sub { display: block; font-size: 18px; margin-bottom: 15px; font-weight: 600; }
.fv__copy-main { display: block; font-size: clamp(32px, 4vw, 48px); line-height: 1.4; }

.fv__text { font-size: 16px; margin-bottom: 30px; font-weight: 500; }

.fv__btn-wrap {
    /* ▼ 変更：ボタンも左寄せに */
    text-align: left;
}

.fv__btn-wrap .btn--l {
    width: 360px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* ========================================================
   Scroll Indicator (全サイズ共通・常に右端配置)
======================================================== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    /* 計算式の仕組み：
       1. 画面中央(50%)からコンテンツ幅の半分(500px)右へ。
       2. そこから内側に20px余白を取る。
       3. 画面が1040px以下になったら、単純に画面端から20pxの位置で止まる（max関数）
    */
    right: max(20px, calc(50% - 500px + 20px));
    
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    transform: none; /* 中央寄せを解除 */
    
    /* 上下にふわふわ動くアニメーション */
    animation: scrollFloatSimple 3s ease-in-out infinite;
}

.scroll-text {
    font-family: var(--font-en);
    font-size: 12px;
    color: var(--c-white);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    /* ふんわり点滅 */
    animation: scrollBlink 3s ease-in-out infinite;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

/* --- アニメーション --- */
@keyframes scrollFloatSimple {
    0%   { bottom: 30px; }
    50%  { bottom: 45px; } /* 15px浮き上がる */
    100% { bottom: 30px; }
}

@keyframes scrollBlink {
    0%   { opacity: 0.3; }
    50%  { opacity: 1; }
    100% { opacity: 0.3; }
}

.gnav-bar {
    background-color: var(--c-navy);
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    position: sticky; /* スクロール時に固定 */
    top: 80px;        /* メインヘッダーの下に固定 */
    z-index: 99;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gnav-bar ul {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.gnav-bar a {
    color: var(--c-white);
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

.gnav-bar a:hover {
    color: var(--c-gold);
    opacity: 1;
}

/* Agitation */
/* Agitation */
.agitation {
    position: relative;
    /* ▼ 背景画像のパスを実際のファイル名に合わせて変更してください ▼ */
    background-image: url('img/sdc_about_back.jpg'); 
    background-size: cover;
    background-position: center;
}

/* 背景画像の上に半透明の白いフィルターを重ねる（文字を読みやすくするため） */
.agitation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* 0.7の部分で白の濃さを調整（1が真っ白、0が透明） */
    z-index: 1;
}

/* コンテンツをフィルターより手前に配置する */
.agitation .inner {
    position: relative;
    z-index: 2;
}

/* 以下は元からある記述をそのまま残します */

.agitation__list { 
    background: rgba(255, 255, 255, 0.5); /* 0.8の部分で透け感を調整 */
    padding: 40px; 
    border-top: 4px solid var(--c-wine); 
    margin-bottom: 30px; 
}
.agitation__list li {
    position: relative;
    padding-left: 30px;
    padding-bottom: 15px; /* テキストと下線の間の余白  */
    margin-bottom: 15px;   /* 次の項目との間の余白  */
    font-size: 18px;
    font-weight: bold;
    color: var(--c-navy);
    border-bottom: 1px solid #e0e0e0; /* グレーの罫線を追加（枠の端まで伸びます）  */
}

.agitation__list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.agitation__list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--c-gold); font-size: 20px; }
.agitation__lead {
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    line-height: 1.8;
    font-family: var(--font-title); /* ←これを追加 */
}

/* Concept */
.concept__head { text-align: center; margin-bottom: 50px; }
.concept__lead { font-size: 18px; font-weight: bold; color: var(--c-wine); }
.concept__list { display: flex; flex-direction: column; gap: 40px; }
.concept__item { background: var(--c-bg); padding: 40px; border-radius: 5px; position: relative; }
.concept__num { position: absolute; top: -15px; left: 20px; background: var(--c-gold); color: var(--c-navy); font-family: var(--font-en); font-weight: bold; padding: 5px 20px; }
.concept__title { font-size: 20px; color: var(--c-navy); margin-bottom: 15px; border-bottom: 1px solid #ccc; padding-bottom: 10px; }

/* Reason */
.reason-block { display: flex; align-items: center; gap: 40px; margin-bottom: 60px; }
.reason-block--reverse { flex-direction: row-reverse; }

.reason-block__img { 
    width: 50%; 
    aspect-ratio: 16 / 9; /* 常に16:9の比率を維持する */
    overflow: hidden;     /* はみ出た画像を隠す */
    border-radius: 5px;   /* 少しだけ角を丸くして柔らかい印象に */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* 軽い影をつける */
}
.reason-block__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* 16:9の枠に合わせて画像を自動で綺麗にトリミング */
}

.reason-block__text { width: 50%; }
.reason-block__title { font-size: 22px; font-family: var(--font-title); color: var(--c-navy); margin-bottom: 20px; border-bottom: 2px solid var(--c-gold); padding-bottom: 10px; }

/* ========================================================
   Cost (価格・支払いセクション)
======================================================== */
.cost__text { text-align: left; margin-bottom: 60px; font-size: 16px; line-height: 2; }

/* メインの価格表示（巨大な数字とゴールドグラデーション） */
.cost__price-hero {
    text-align: center;
    margin-bottom: 50px;
}
.price-hero__top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}
.price-hero__top .line {
    width: 80px;
    height: 1px;
    background-color: var(--c-gold);
    opacity: 0.6;
}
.price-hero__top .text {
    font-family: var(--font-title);
    font-size: 24px;
    color: var(--c-gold-light);
    letter-spacing: 0.1em;

    /* ▼ 確実に改行させ、中央に揃えるための重要な指定 ▼ */
    display: inline-block;  /* 要素をブロック化して改行を有効にする */
    text-align: center;     /* 2行になったテキストを左右中央に揃える */
    line-height: 1.3;       /* 行間が広がりすぎないよう調整 */
    vertical-align: middle; /* 左右の「線」との垂直方向の中心を合わせる */
}

.price-hero__main {
    font-family: var(--font-title);
    margin-bottom: 20px;
    /* テキスト自体にゴールドのグラデーションをかける高度な処理 */
    background: linear-gradient(135deg, var(--c-gold-light) 0%, var(--c-gold) 50%, #b89326 100%);
    -webkit-background-clip: text;
    background-clip: text; /* ←これを追加 */
    -webkit-text-fill-color: transparent;
    color: var(--c-gold); /* 非対応ブラウザ用のフォールバック */
}
.price-hero__main .num {
    font-size: clamp(60px, 8vw, 110px); /* 画面幅に合わせてダイナミックに拡大縮小 */
    line-height: 1;
    letter-spacing: 0.05em;
}
.price-hero__main .unit {
    font-size: clamp(20px, 3vw, 30px);
    margin-left: 5px;
}
.price-hero__main .unit small {
    font-size: 0.6em;
}
.price-hero__sub {
    font-size: 14px;
    color: #ccc;
    letter-spacing: 0.05em;
}

/* 保証内容（枠線で囲む） */
.cost__guarantee {
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3); /* 薄いゴールドの枠線 */
    padding: 30px;
    margin-bottom: 60px;
}
.cost__guarantee h4 {
    color: var(--c-gold);
    font-size: 20px;
    margin-bottom: 10px;
}
.cost__guarantee p {
    font-size: 14px;
    color: #ddd;
}

/* 支払い方法（画像のような光沢のあるアイボリーのボックス） */
.cost__payment {
    background-color: var(--c-bg);
    background-image: linear-gradient(to bottom, #ffffff 0%, #f4f1eb 100%);
    color: var(--c-navy-dark);
    text-align: center;
    padding: 50px 20px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.payment-text {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
}
.payment-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}
.card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden; /* はみ出し防止 */
    padding: 5px;    /* ロゴと枠線の間に少し余白を作る（お好みで調整） */
}

.card-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* 縦横比を維持したまま枠内に収める */
}

.payment-note {
    font-size: 14px;
    color: #555;
}
.payment-note strong {
    color: var(--c-wine);
}

/* Flow */
.flow__list { display: flex; flex-direction: column; gap: 20px; }
.flow__item { 
    display: flex; 
    background: var(--c-bg); 
    border: 1px solid #ddd; 
    overflow: hidden; /* 画像が枠からはみ出すのを防ぐ */
}
.flow__head { 
    background: var(--c-navy); 
    color: var(--c-gold); 
    font-family: var(--font-en); 
    font-weight: bold; 
    padding: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 120px; 
    flex-shrink: 0; /* 幅が縮むのを防ぐ */
    font-size: 18px; 
    text-align: center; 
}
/* ▼ 追加：画像エリアのスタイル ▼ */
.flow__img {
    width: 220px; /* PCでの画像の横幅 */
    flex-shrink: 0;
}
.flow__img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせて画像を綺麗に切り抜く */
}
/* ▲ ここまで ▲ */

.flow__body { 
    padding: 25px 30px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
.flow__body h4 { 
    font-size: 18px; 
    color: var(--c-wine); 
    margin-bottom: 10px;         /* 下のテキストとの余白を少し広げる */
    padding-bottom: 10px;        /* テキストと罫線の間の余白 */
    border-bottom: 1px solid #e0e0e0; /* 薄いグレーの罫線を追加（枠の幅いっぱいまで広がります） */
}

/* FAQ (アコーディオン) */
.faq__item { 
    background: var(--c-white); 
    margin-bottom: 15px; 
    border-radius: 5px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden; 
}
.faq__q { 
    width: 100%;
    text-align: left;
    background: var(--c-navy); 
    color: var(--c-white); 
    padding: 20px; 
    font-family: var(--font-base);
    font-size: 16px;
    font-weight: bold; 
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}
.faq__q:hover { background: var(--c-navy-dark); }

/* 開閉アイコン (+) */
.faq__q::after {
    content: '+';
    font-size: 24px;
    font-weight: normal;
    color: var(--c-gold);
    transition: transform 0.3s ease;
}
/* 開いている時はアイコンを (×) に回転させる */
.faq__item.is-open .faq__q::after {
    transform: rotate(45deg);
}

/* 回答エリアの開閉アニメーション (CSS Grid活用) */
.faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}
.faq__item.is-open .faq__a {
    grid-template-rows: 1fr;
}
.faq__a-inner {
    overflow: hidden;
}
.faq__a-content { 
    padding: 20px; 
    line-height: 1.8;
    border-top: 1px solid #eee;
}

/* Closing & CTA */
.closing__text-wrap { text-align: center; font-size: 18px; font-weight: bold; }
.closing__text-wrap p { margin-bottom: 20px; }

/* ========================================================
   CTA Area (画像レイアウト風)
======================================================== */
.cta-area { 
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    
    /* ▼ 1. ワインレッドの高級感あるグラデーション ▼ */
    background: linear-gradient(135deg, #943d48 0%, var(--c-wine) 100%);
    
    /* ▼ 2. 上下にゴールドの枠線をつける ▼ */
    border-top: 3px solid var(--c-gold);
    border-bottom: 3px solid var(--c-gold);
    
    /* ▼ 3. 内側のハイライトと外側の影で立体感を演出 ▼ */
    box-shadow: 
        inset 0 2px 0 rgba(255, 255, 255, 0.3),  /* 枠の内側上部に白い光沢 */
        inset 0 -5px 15px rgba(0, 0, 0, 0.4),    /* 枠の内側下部に落ちる暗い影 */
        0 10px 20px rgba(0, 0, 0, 0.15);         /* セクション全体の外側に落ちる影 */
}

.cta-area .inner { position: relative; max-width: 1100px; }

.cta-area__wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-right: 0; /* 右側の余白を解除して、コンテンツを真ん中に配置可能にする */
}

.cta-area__lead {
    font-size: clamp(20px, 4vw, 32px); /* ←ここを変更 */
    color: #ffffff;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    text-align: center;
    font-family: var(--font-title);
}

.cta-area__content {
    display: flex;
    align-items: center;
    justify-content: center; /* 両方の要素を中央に寄せる */
    gap: 80px; /* 電話番号とボタンの間の距離（お好みで調整してください） */
}

/* 左側（電話番号）の幅固定を解除 */
.cta-area__left {
    flex: none; 
}
.cta-area__title {
    font-size: 18px;
    font-weight: bold;
    color: var(--c-gold-light); /* 落ち着いたゴールドブラウン */
    margin-bottom: 5px;
}
.cta-area__tel {
    display: inline-flex;
    align-items: center;
    color: var(--c-gold-light);
    text-decoration: none;
    margin-bottom: 10px;
    transition: opacity 0.3s;
}
.cta-area__tel:hover { opacity: 0.7; }
.tel-icon { width: 32px; height: 32px; margin-right: 10px; fill: var(--c-gold-light); }

.cta-area__tel .tel-num {
    font-size: clamp(36px, 4vw, 48px);
    font-family: var(--font-en);
    font-weight: bold;
    line-height: 1;
    letter-spacing: 0.05em;
}
.cta-area__time {
    font-size: 13px;
    color: #ffffff;
    letter-spacing: 0.05em;
}

/* 右側（ボタン） */
.cta-area__right {
    flex: none;
    width: 320px; /* ボタンが細くなりすぎないよう横幅を指定 */
}

.cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 10px;
    
    /* .btnと共通のスタイル */
    background: linear-gradient(180deg, var(--c-gold-light) 0%, var(--c-gold) 45%, #b89326 100%);
    color: var(--c-navy-dark);
    font-weight: bold;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #a68420;
    box-shadow: 
        0 6px 0 #9c7b1c,
        0 10px 15px rgba(0,0,0,0.3),
        inset 0 2px 0 rgba(255,255,255,0.6);
    transition: all 0.2s ease;
    text-decoration: none;
}

/* ボタン上部のツヤ（ハイライト） */
.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 12px 12px 0 0;
    pointer-events: none;
}

/* 光沢が走るアニメーション */
.cta-btn::before {
    content: ''; 
    position: absolute; 
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
    z-index: 2;
}

/* クリック（アクティブ）時の押し込み */
.cta-btn:active {
    transform: translateY(4px);
    box-shadow: 
        0 2px 0 #9c7b1c,
        0 4px 6px rgba(0,0,0,0.2),
        inset 0 2px 0 rgba(255,255,255,0.6);
}

.cta-btn__icon { 
    font-size: 24px; 
    margin-bottom: 8px; 
    position: relative;
    z-index: 3; /* 文字とアイコンを光沢より上に */
}

.cta-btn__text {
    font-size: 16px;
    line-height: 1.4;
    position: relative;
    z-index: 3;
}



/* Footer */
.footer { 
    background: #f4f1eb; 
    color: var(--c-white); 
    padding: 60px 0 130px; /* ここを変更 */
}
.footer__contents { display: flex; gap: 40px; margin-bottom: 40px; }
.footer__info { width: 50%; }
.footer__map { width: 50%; }
/* Footer */
.footer__logo { 
    margin-bottom: 20px; /* 下の住所との間隔を少し広げる */
}

.footer__logo img {
    height: 50px; /* ロゴの高さ（ヘッダーより少し控えめに設定） */
    width: auto;
    display: block;
}
.footer__address { margin-bottom: 15px; color:var(--c-text);}
/* 変更前: .footer__tel a { font-size: 24px; font-weight: bold; ... display: block; ... } */

/* ▼ 以下に変更・追記 ▼ */
.footer__tel a { 
    font-size: 24px; 
    font-weight: bold; 
    font-family: var(--font-en); 
    color: var(--c-gold); 
    display: flex;       /* blockからflexに変更して横並びに */
    align-items: center; /* 縦の中央で揃える */
    margin-bottom: 20px; 
}
.footer__tel .tel-icon { 
    width: 24px; 
    height: 24px; 
    margin-right: 8px; 
    fill: var(--c-gold); /* アイコンの色をゴールドに合わせる */
}
.footer__schedule table { width: 100%; border-collapse: collapse; background: #fff; color: #333; text-align: center; font-size: 14px; }
.footer__schedule th, .footer__schedule td { border: 1px solid #ccc; padding: 5px; }
.footer__schedule th { background: #eee; }
.schedule-note { font-size: 12px; margin-top: 5px; color:var(--c-text); }
.access-text { margin-top: 10px; font-size: 14px; text-align: center;color:var(--c-text); }
.copyright { text-align: center; margin-top: 40px; font-size: 12px; color: #888; }

/* Floating Elements */
.floating { position: fixed; bottom: 20px; right: 20px; z-index: var(--z-floating); display: flex; flex-direction: column; align-items: flex-end; gap: 15px; }
.floating__pagetop {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; background: var(--c-navy); color: var(--c-white);
    border-radius: 50%; font-size: 20px; opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.floating__pagetop.is-show { opacity: 1; visibility: visible; }

/* Animation Utility */
.slideUpParent { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slideUpParent.is-visible { opacity: 1; transform: translateY(0); }

.concept, .flow {
    position: relative;
    background-color: rgba(255, 255, 255, 0.75); 
}

.closing {
    position: relative;
    /* ▼ 背景画像のパスを実際のファイル名に合わせて変更してください ▼ */
    background-image: url('img/sdc_closing_back.jpg'); 
    background-size: cover;
    background-position: center;
}

/* 帯本体のデザイン */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f4f1eb; /* フッターと同じ色に変更 */
    border-top: 3px solid var(--c-gold);
    z-index: var(--z-floating);
    padding: 15px 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15); /* 色に合わせて影を少し弱めに */
    
    /* 初期状態は下に隠しておき、スクロールでフワッと表示させるための設定 */
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* JSで付与されるクラス。これがつくと画面に現れる */
.bottom-bar.is-active {
    transform: translateY(0);
}

.bottom-bar__inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
    /* position: relative; を削除し、ページトップボタンが画面右端基準になるように変更 */
}

.bottom-bar__buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

/* 帯の中のボタンサイズ調整 */
.bottom-bar .floating-btn {
    width: 340px;
    padding: 12px 10px;
}

/* ▼ ネイビーボタン（電話）専用のスタイル ▼ */
.btn--navy {
    background: linear-gradient(180deg, #2A3F66 0%, var(--c-navy) 45%, var(--c-navy-dark) 100%);
    color: var(--c-white);
    border: 1px solid #121d33;
    box-shadow: 
        0 6px 0 #0a111f, 
        0 10px 15px rgba(0,0,0,0.3), 
        inset 0 2px 0 rgba(255,255,255,0.3);
}
.btn--navy:active {
    box-shadow: 
        0 2px 0 #0a111f, 
        0 4px 6px rgba(0,0,0,0.2), 
        inset 0 2px 0 rgba(255,255,255,0.3);
}
/* ネイビーボタンの上部ハイライト */
.btn--navy::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
}

/* PCサイズ：電話番号のフォントと配置の調整 */
.btn--navy .floating-btn__main {
    font-family: var(--font-en);
    font-size: 26px; /* 電話番号を大きく */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* アイコンとの隙間 */
}
.btn--navy .tel-icon {
    width: 24px;
    height: 24px;
    margin-right: 0;
}

/* ========================================================
   帯の上に乗る「上に戻るボタン」
======================================================== */
.bottom-bar__pagetop {
    position: absolute; /* .bottom-bar基準になるのでコンテンツ幅に縛られない */
    top: -70px;
    right: 20px; /* 画面の右端から20px（外側に配置） */
    width: 50px;
    height: 50px;
    background-color: var(--c-navy);
    color: var(--c-white);
    border: none; /* 枠線を削除 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}

.bottom-bar__pagetop:hover {
    transform: translateY(-3px);
}
.bottom-bar__pagetop.is-show {
    opacity: 1;
    visibility: visible;
}


/* ========================================================
   2. Media Queries (画面サイズごとのスタイル調整)
======================================================== */

/* PCサイズ: 2560px */
@media (max-width: 2560px) {
.fv { aspect-ratio: 24 / 9; }
    .fv__inner {
        margin-top: 0;          
        display: flex;
        /* ▼ 変更：右寄せにする */
        justify-content: flex-end; 
    }

    .fv__content {
        margin: 0;              /* 中央配置を解除 */
        text-align: left;       /* テキストを左揃え */
        max-width: 1440px;       
    }

    .fv__badge {
        justify-content: flex-start; /* バッジを左寄せ */
    }

    .fv__btn-wrap {
        text-align: left;      /* ボタンを左寄せ */
    }
}

/* PCサイズ: 1920px */
@media (max-width: 1920px) {
    /* 現在はベーススタイルでカバーできているため追記なし */
    .fv { aspect-ratio: 16 / 9; }
}

/* PCサイズ: 1440px */
@media (max-width: 1440px) {
    /* 現在はベーススタイルでカバーできているため追記なし */
    .fv { aspect-ratio: 16 / 9; }
    .fv__copy-sub { font-size: 16px; margin-bottom: 10px; }
    .fv__copy-main { font-size: clamp(32px, 3.5vw, 42px); }
    .badge-item { width: 100px; height: 100px; }
    .badge-item span { font-size: 11px; }
    .btn--l { padding: 16px 50px; font-size: 18px; }
    .btn--l small { font-size: 13px; }
    .fv__badge { margin-bottom: 30px; }
    .fv__btn-wrap .btn--l {
        width: 330px;
    }
}

/* PCサイズ / タブレット横: 1024px */
@media (max-width: 1024px) {
    .header__logo img {
    height: 40px; /* 45px から 32px 程度に縮小（お好みで調整してください） */
    width: auto;
    display: block; /* 余白の微調整用 */
    
}

    .fv {
            /* aspect-ratio: 16 / 9; は維持 */
            /* 下部の余白を100pxから30px程度に減らすことで、さらに下に配置されます */
            padding-bottom: 30px; 
        }
    .fv__inner {
        flex-direction: column;
        text-align: left;
        padding: 0 20px; /* 左右の余白を調整 */
        /* ブロック全体を右に寄せたままにしたい場合は justify-content: flex-end を維持 */
        justify-content: flex-end; 
    }
    .fv__content, .fv__images { width: 100%; }
    .fv__badge {
        margin-bottom: 25px; 
    }
    .fv__images { height: 400px; margin-top: 40px; }

    .fv__btn-wrap .btn--l {
        width: 300px;
    }

    .fv__copy-sub { font-size: 14px; margin-bottom: 10px; }
    .fv__copy-main { font-size: 34px; line-height: 1.5; }
    .badge-item { width: 90px; height: 90px; }
    .badge-item span { font-size: 10.5px; }
    .btn--l { padding: 15px 40px; font-size: 16px; }
    .btn--l small { font-size: 12px; }

    .scroll-indicator {
        left: auto; /* 中央寄せ解除 */
        /* コンテンツ幅1000pxを下回るサイズなので、画面の右端を基準に固定する */
        right: 20px; /* 画面右端から20px内側 */
        transform: none; /* 中央寄せ用のtransformを解除 */
        animation: scrollFloatSimple 3s ease-in-out infinite; /* 横移動なしのアニメーション */
    }

    .cta-area__wrapper { padding-right: 0; }
    .cta-area__content {
        flex-direction: column; /* 縦並び */
        text-align: center;
        gap: 40px;
    }
    .cta-area__right {
        width: 100%;
        max-width: 340px; /* スマホでボタンが広がりすぎないように制限 */
    }
    .cta-area__left { display: flex; flex-direction: column; align-items: center; }
}

/* タブレットサイズ: 768px */
@media (max-width: 768px) {
    /* Display Utilities */
    html {
        scroll-padding-top: 80px;
    }

    .pc-only { display: none ; }
    .sp-only { display: block; }

    .fv { aspect-ratio: 1 / 1; }
    .fv__inner { margin-top: 0; }

    .scroll-indicator {
        left: auto;
        right: 20px; /* コンテンツ左右のpaddingに合わせる */
        transform: none;
        animation: scrollFloatSimple 3s ease-in-out infinite;
    }

    .gnav-bar {
        display: none ;
    }

    /* Header & Nav */
    .hamburger { display: block; }

    /* Sections Layout Base */
    section { padding: 60px 0; }

    .agitation {
        background-image: url('img/sdc_about_back_1_1.jpg'); /* タブレット用の画像名に変更してください */
    }

    /* Reason */
    .reason-block { flex-direction: column; }
    .reason-block--reverse { flex-direction: column; }
    .reason-block__img, .reason-block__text { width: 100%; }

    /* Footer */
    .footer__contents { flex-direction: column; }
    .footer__info, .footer__map { width: 100%; }

    .btn--navy .floating-btn__main {
    font-family: var(--font-en);
    font-size: 18px; /* 電話番号を大きく */
}
.btn--navy .tel-icon {
    width: 20px;
    height: 20px;
    margin-right: 0;
}
}

/* スマホサイズ: 500px */
@media (max-width: 500px) {
    /* Display Utilities */
    .header__logo img {
    height: 30px; /* 45px から 32px 程度に縮小（お好みで調整してください） */
    width: auto;
    display: block; /* 余白の微調整用 */
}
    .sp-only-500 { display: flex; }

    .sec-title {
        font-size: 20px;
    }

    .fv { aspect-ratio: 4 / 5; }
    .fv__inner { margin-top: 0; text-align: left; }
    .fv__content { margin: 0; text-align: left; }

    .fv__btn-wrap .btn--l {
        width: 260px;
    }
    
    /* ▼ 数値を調整 ▼ */
    .fv__copy-main { font-size: 26px; }
    .fv__badge { justify-content: flex-start; gap: 10px; margin-bottom: 25px; }
    .badge-item { width: 80px; height: 80px; } /* 95pxから80pxへ変更 */
    .badge-item span { font-size: 9.5px; } /* 11pxから9.5pxへ変更 */
    .btn--l { padding: 15px 30px; font-size: 15px; }

    /* FV Scroll Indicator SP調整 */
    .scroll-indicator { bottom: 15px; }
    .scroll-indicator::after { height: 40px; }
    .scroll-text { font-size: 10px; margin-bottom: 5px; }

    /* Agitation */
    .agitation {
        background-image: url('img/sdc_about_back_500.jpg'); /* スマホ用の画像名に変更してください */
    }
    .agitation__list li { font-size: 15px; }
    .agitation__lead { font-size: 18px; text-align: center; }

    /* Cost */
    .cost__table th, .cost__table td { display: block; width: 100%; padding: 10px; }
    .cost__table th { border-bottom: none; padding-bottom: 0; }

    .price-hero__top .text {
    font-size: 18px;
    }

    /* Flow (スマホサイズ: 500px用) */
    .flow__item { flex-direction: column; }
    .flow__head { width: 100%; padding: 10px; }
    
    /* スマホでは画像を横幅いっぱいに広げ、高さを固定 */
    .flow__img { width: 100%; height: 200px; } 
    
    .flow__body { padding: 20px; }

    /* ========================================================
       スマホ版 固定ボトムバーの調整
    ======================================================== */
    
    /* スマホサイズに合わせてフッターの余白を縮小 */
    .footer { 
        padding: 60px 0 90px; 
    }
    
    .bottom-bar {
        padding: 10px 0;
    }
    
    .bottom-bar__inner {
        padding: 0 10px;
    }
    
    .bottom-bar__buttons {
        gap: 10px;
    }
    
    .bottom-bar .floating-btn {
        width: 50%;
        padding: 10px 5px;
        border-radius: 8px; 
    }
    
    /* テキストの縮小と改行防止 */
    .bottom-bar .floating-btn__sub {
        font-size: 12px;
        margin-bottom: 2px;
        white-space: nowrap; /* 1行に収める */
    }
    .bottom-bar .floating-btn__main {
        font-size: 12px;
        white-space: nowrap; /* 1行に収める */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 電話番号専用のサイズ調整（スマホ） */
    .bottom-bar .btn--navy .floating-btn__main {
        font-size: 15px; /* 数字なので少し大きめに維持 */
        gap: 4px;
    }
    .bottom-bar .btn--navy .tel-icon {
        width: 14px;
        height: 14px;
    }

    .bottom-bar__pagetop {
        top: -55px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 14px;
        border: none;
    }

    .closing__text-wrap { text-align: center; font-size: 14px; font-weight: bold; }

    
    /* ▼これを追加▼ */
    .cta-area__lead { text-align: center; font-size: 16px; }
    .cta-area__right { flex-direction: column; width: 100%; }
    .cta-btn { padding: 15px; flex-direction: row; gap: 10px; }
    .cta-btn__icon { margin-bottom: 0; font-size: 20px; }
    .cta-btn__text br { display: none; } /* スマホではボタンテキストを1行にする */
    .cta-area__tel .tel-num {font-size: 20px;}
}

/* スマホサイズ: 375px */
@media (max-width: 375px) {
    /* FV */
    .fv__copy-sub { 
        font-size: 13px; /* サブコピーを少し小さく */
        margin-bottom: 10px; 
    }
    .fv__copy-main { 
        font-size: 22px; /* メインコピーを縮小 */
        line-height: 1.35; 
    }
    
    /* バッジの縮小 */
    .fv__badge { 
        gap: 8px; /* バッジ同士の隙間を狭く */
        margin-bottom: 20px; 
    }

.fv__btn-wrap .btn--l {
        width: 211px;
    }

    .badge-item { 
        width: 65px;  
        height: 65px; 
    }
    .badge-item span { 
        font-size: 8px; 
    }
    
    /* CTAボタンの縮小 */
    .btn--l { 
        padding: 12px 20px; 
        font-size: 14px;    
        border-radius: 8px; 
    }
    .btn--l small { 
        font-size: 11px; 
        margin-top: 3px; 
    }
    
    /* 画像の高さ調整 */
    .fv__images { height: 250px; }

    .agitation {
        background-image: url('img/sdc_about_back_375.jpg'); /* スマホ用の画像名に変更してください */
    }

    /* 375px以下の極小スマホで、ボタン内の文字がはみ出さないようにさらに縮小 */
    .bottom-bar .floating-btn__sub { font-size: 10px; }
    .bottom-bar .floating-btn__main { font-size: 10px; }
    .bottom-bar .btn--navy .floating-btn__main { font-size: 13px; }
    
}