body {
    overflow-x: hidden;
    padding-bottom: 80px;
    /* 必須 */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg.png');
    /* 微細なノイズ画像 */
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

/* --- カスタムカーソル本体 --- */
#cursor,
#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    /* マウスイベントを邪魔しない */
    z-index: 10000;
    transition: transform 0.1s ease-out, opacity 0.3s ease;
    mix-blend-mode: exclusion;
    /* 背景色に合わせて色を反転させる（高級感アップ） */
}

/* 中心点 */
#cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
}

/* 追いかける外輪 */
#cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-gold);
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s, background 0.3s;
}

/* --- ボタンに乗った時の変化 --- */
/* aタグやbuttonにホバーした時、JSでこのクラスを付与します */
#cursor-follower.is-active {
    width: 80px;
    height: 80px;
    background-color: rgba(212, 175, 55, 0.2);
    /* ゴールドの薄い塗り */
    border-color: transparent;
}

/* PC以外（スマホ・タブレット）では非表示にする */
@media (max-width: 1024px) {

    #cursor,
    #cursor-follower {
        display: none;
    }
}



/* --- Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1c1c1c;
    color: var(--text-white);
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
}

/* --- Variables (更新) --- */
:root {
    --rich-black: #121214;
    /* コンテンツエリアの背景（少しだけ明るく） */
    --sidebar-bg: #2c2c2e;
    /* ★ここを明るめのグレーに変更 */
    --accent-gold: #C9A96E;
    /* ゴールドを少し鮮やかに */
    --text-white: #ffffff;
    --text-gray: #c0c0c0;
    /* ★ナビゲーションの文字色を明るく */
    --card-bg: #1e1e20;
    --sidebar-width: 280px;
    --border-color: #3e3e40;
    /* ★境界線用のグレー */
}


/* --- サイドバー全体の調整 --- */
.sidebar {
    width: 280px;
    /* 必要に応じて調整 */
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: visible;
    background: rgba(0, 0, 0, 0.8);
    /* 余白のリセット */
    display: flex;
    flex-direction: column;
    padding: 0;
    /* サイドバー自体のパディングをなくす */
    overflow-y: auto;
    /* 縦方向のスクロールを許可 */
    overflow-x: hidden;
    /* 横方向は隠す */
    scrollbar-width: thin;
    /* Firefox用の設定 (細め) */
    scrollbar-color: var(--accent-gold) rgba(0, 0, 0, 0.2);
    /* Firefox用 (バーの色 背景の色) */
    border: solid 1px var(--border-color);
}

/* --- スクロールバーのカスタマイズ (Chrome, Safari, Edge用) --- */

/* 1. バー全体の幅 */
.sidebar::-webkit-scrollbar {
    width: 6px;
    /* 細めに設定 */
}

/* 2. スクロールバーの通り道 (レール) */
.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    /* 背景になじむ薄い黒 */
}

/* 3. 動くバー本体 (つまみ) */
.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    /* 既存のゴールド変数を使用 */
    background: linear-gradient(to bottom, #d4af37, #f1dca7);
    /* グラデーションで金属感を出す場合 */
    border-radius: 10px;
    /* 角丸にする */
    border: 1px solid rgba(0, 0, 0, 0.3);
    /* 少し立体感を出す */
}

/* 4. ホバーした時に少し明るくする */
.sidebar::-webkit-scrollbar-thumb:hover {
    background: #f1dca7;
    /* 明るいゴールド */
}

/* --- サイドバー内のメニューリセット --- */
.nav-menu {
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
    width: 100%;
    height: 100px;
    /* メニューの高さを均等に（お好みで調整） */
    overflow: hidden;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;

}

/* 画像の上に重ねる暗いフィルター（文字を浮かせるため） */
.nav-menu li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* 40%の黒 */
    z-index: 1;
    transition: background 0.3s ease;
}

/* ホバー時に画像を少し明るく（または色付け） */
.nav-menu li:hover::before {
    background: rgba(212, 175, 55, 0.3);
    /* ゴールドがかった透過 */
}

/* リンクエリアを全面に広げる */
.nav-menu li a {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    padding: 0 30px;
    /* 左右のテキスト位置調整 */
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 100px;
    /* 高さと同じにすると中央揃えになります */
    text-shadow:
        0 0 2px rgba(0, 0, 0, 1),
        /* 輪郭をクッキリさせる */
        2px 2px 4px rgba(0, 0, 0, 0.6),
        /* 直近の影 */
        0 10px 20px rgba(0, 0, 0, 0.4),
        /* 広い範囲の暗がり（白を浮かせる） */
        0 20px 40px rgba(0, 0, 0, 0.8);
}

/* アクティブ（現在地）の強調 */
.nav-menu li:has(a.active)::before {
    background: rgba(212, 175, 55, 0.5);
}

/* --- 各メニューの背景画像指定 --- */
/* パスは実際の画像フォルダに合わせて調整してください */
.nav-item-top {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url('../img/main01.png');
}

.nav-item-about {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url('../img/about.png');
}

.nav-item-cases {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url('../img/img01.png');
}

.nav-item-shop {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url('../img/flow01.png');
}

.nav-item-price {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url('../img/nav_price.jpg');
}

.nav-item-contact {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url('../img/contact.png');
}

.nav-item-partner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), url('../img/partner.png');
}

/* アクティブなページのスタイル */
.nav-menu li a.active {
    background-color: rgba(212, 175, 55, 0.3);
    border-left: 4px solid var(--accent-gold);
}

.nav-menu-sp {
    display: none;
}

/* ロゴエリアの調整（画像に被らないよう背景を少し透かすなど） */
.sidebar-header-mobile {
    padding: 20px 10px;
    text-align: center;
    justify-content: center;
}


.logo {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    /* ロゴの下に繊細なラインを追加 */
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

/* --- 下部固定見積ボタンの背景も合わせる --- */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    padding: 30px 0;
    /* 背景を少し透過させて高級感を出す */
    background: linear-gradient(to top, var(--rich-black) 70%, transparent);
    z-index: 1000;
    text-align: center;
}

.cta-button {
    background-color: #000;
    /* ボタン自体は黒で引き締める */
    color: var(--accent-gold);
    /* 文字をゴールドに */
    padding: 20px 80px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid var(--accent-gold);
    /* 境界線を太くして高級感を */
    transition: 0.4s;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.cta-button:hover {
    background-color: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.nav-menu ul {
    list-style: none;
}


.sidebar-footer {
    margin-top: auto;
    font-size: 0.7rem;
    color: #666;
    padding-left: 1rem;
}


.sidebar-footer ul {
    display: flex;
    padding-left: 0;
    padding-top: 1rem;
}

.sidebar-footer ul li {
    list-style: none;
    margin-right: 0.8em;
}

.sidebar-footer ul li a {
    color: #777;
    text-decoration: none;
}


/* --- Main Content --- */
.content {

    margin-left: var(--sidebar-width);
    flex: 1;
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
    /* ★これが最重要：子要素の暴走を止めます */
    overflow-x: hidden;
    /* ★念のため横はみ出しをカット */
}



.subtitle {
    color: var(--accent-gold);
    font-weight: bold;
    letter-spacing: 0.4em;
    margin-bottom: 15px;
}

/* --- Hero Section (コントラスト・視認性強化版) --- */
.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: 0.05em;

    /* ★白文字を際立たせるための重厚なシャドウ */
    /* 文字の輪郭を黒で縁取りつつ、大きな影で背景から切り離します */
    color: #ffffff;
    text-shadow:
        0 0 2px rgba(0, 0, 0, 1),
        /* 輪郭をクッキリさせる */
        2px 2px 4px rgba(0, 0, 0, 0.8),
        /* 直近の影 */
        0 10px 20px rgba(0, 0, 0, 0.6),
        /* 広い範囲の暗がり（白を浮かせる） */
        0 20px 40px rgba(0, 0, 0, 0.4);
    /* 最深部の影 */
}

.hero h1 span {
    /* ★明るさを維持したゴールドグラデーション */
    /* 上部をより白に近いゴールド (#fff9e6) にして、輝きを強調 */
    background: linear-gradient(to bottom, #fff9e6 2%, #f0d592 80%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;

    /* ★ゴールド専用：明るさを殺さないシャドウ */
    /* 黒い影を少し遠ざけ、代わりにゴールドの「光彩」を近くに配置 */
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.2),
        /* 影は最小限に */
        0 10px 20px rgba(0, 0, 0, 0.5);
    /* 奥行きだけを確保 */
}



/* --- Section Design (見出し影強化版) --- */
.section-container {
    padding: 90px 8%;
}

.section-title {
    font-size: 2.8rem;
    /* 少し大きく */
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 70px;
    position: relative;
    padding-left: 25px;
    display: inline-block;
    /* 影の範囲を文字幅に合わせる */
    color: var(--text-white);

    /* ★ここが今回のポイント：マルチ・テキストシャドウ */
    /* 1層目: 近い影（くっきり） / 2層目: 中くらいの影 / 3層目: 遠い影（ぼかし） */
    text-shadow:
        1px 1px 1px rgba(0, 0, 0, 0.8),
        2px 4px 4px rgba(0, 0, 0, 0.5),
        4px 8px 12px rgba(0, 0, 0, 0.3);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    /* 少し太く */
    height: 70%;
    /* 線の長さを調整 */
    background-color: var(--accent-gold);
    border-radius: 3px;

    /* ★アクセントの線にも影をつけて立体感を */
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
}

/* --- Section Sub-English --- */
.section-sub-en {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-gold);
    /* ゴールドでアクセントに */
    margin-bottom: 8px;
    /* タイトルとの距離 */
    padding-left: 2px;
    /* わずかに透過させて上品に */
    letter-spacing: 0.4em;
    /* かなり広めにとる */
    font-weight: 300;
    text-transform: uppercase;
    /* すべて大文字に */
    opacity: 0.7;
}

/* 既存の .section-title の調整 */
.section-title {
    /* margin-bottom を少し調整して小見出しとのバランスを取る */
    margin-top: 0;
    margin-bottom: 60px;
    /* ... 既存のスタイル ... */
}

/* レスポンシブ時の調整 */
@media (max-width: 1024px) {
    .section-sub-en {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
        margin-bottom: 5px;
    }
}

/* レスポンシブ時の見出しサイズ調整 */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 50px;
        padding-left: 20px;
    }
}

#about {
    width: 100%;
    height: auto;
    background: url(../img/about.png);
    background-size: cover;
    background-repeat: no-repeat;
}

.about-content p {
    font-size: 17px;
    line-height: 1.7;
}


#cases {
    background: #333;
}

/* --- Case Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.case-card {
    /* --- 必須：大きさを変えるための土台 --- */
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid transparent;

    /* --- 必須：アニメーションの定義（0.3sで速めに設定） --- */
    /* transform を含めるのを忘れないでください */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;

    /* これを入れると動きが滑らかになります */
    will-change: transform;
}

/* --- ホバー時の動き --- */
.case-card:hover {
    /* 浮かす(translateY) と 大きくする(scale) を同時に指定 */
    transform: translateY(-12px) scale(1.06) !important;

    /* 影を強くして浮遊感を出す */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    border-color: var(--accent-gold);

    /* 重なり順を一番上にする（隣のカードに隠れないように） */
    z-index: 10;
}

.case-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    filter: grayscale(20%);
    transition: 0.5s;
}

.case-card:hover .case-img {
    filter: grayscale(0%);
}

.case-info {
    padding: 18px;
}

.case-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--accent-gold);
}

.case-info p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* --- Ideal Section --- */
.ideal-section {
    padding: 30px 8%;
    position: relative;
    margin-top: 50px;
    background: #222;
}


.ideal-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-align: center;
}

.gold-text {
    color: var(--accent-gold);
}

.ideal-lead {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 2;
    text-align: center;
}



/* レスポンシブ */
@media (max-width: 1024px) {
    .ideal-title {
        font-size: 2rem;
    }

    .ideal-features {
        flex-direction: column;
        gap: 30px;
    }
}

/* --- 加盟店一覧への誘導セクション --- */
.shop-list-cta {
    position: relative;
    width: 100%;
    height: 380px;
    /* セクションの高さ */
    display: flex;
    align-items: center;
    padding: 0 100px;
    overflow: hidden;
    background-image: url('../img/shop-list.png');
    background-attachment: fixed;
    /* パララックス効果（背景固定） */
    background-size: cover;
    background-position: center;
}

/* 背景を暗くして文字を浮かせる */
.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    color: #fff;
}


/* --- スタイリッシュなゴールドボタン --- */
.btn-gold-outline {
    position: relative;
    display: inline-block;
    padding: 20px 50px;
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.2em;
    border: 1px solid #d4af37;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.3);
}

/* ホバー時に光が走る演出 */
.btn-gold-outline::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: all 0.6s;
}

.btn-gold-outline:hover::before {
    left: 100%;
}

.btn-gold-outline:hover {
    background: #d4af37;
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px);
}

.btn-gold-outline span {
    position: relative;
    z-index: 1;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .shop-list-cta {
        height: 400px;
        background-attachment: scroll;
        /* スマホでは固定を解除（動作安定のため） */
    }

    .btn-gold-outline {
        padding: 15px 30px;
        width: 80%;
    }
}

@media (max-width: 768px) {
    .shop-list-cta {
        padding: 0 50px;
    }
}

/* --- Price Table --- */

#price {
    background: #333;
}

.price-table-wrapper {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th {
    text-align: left;
    color: var(--accent-gold);
    border-bottom: 2px solid #333;
    padding: 20px;
}

.price-table td {
    padding: 25px 20px;
    border-bottom: 1px solid #333;
}

/* --- Floating CTA --- */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    padding: 25px 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 50%, transparent);
    z-index: 1000;
    text-align: center;
}

.cta-button {
    background-color: #000;
    color: #fff;
    padding: 22px 80px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border: 1px solid var(--accent-gold);
    transition: 0.4s;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    letter-spacing: 0.1em;
}

.cta-button:hover {
    background-color: var(--accent-gold);
    color: #000;
}

.btn-arrow {
    font-size: 1.5rem;
}

.bottom-spacer {
    height: 150px;
}

/* --- Tablet/Mobile --- */
@media (max-width: 1024px) {
    .sidebar {

        height: auto;
        position: relative;
        padding: 20px;
    }

    .content {
        margin-left: 0;
    }

    .floating-cta {
        left: 0;
    }


}

/* --- Responsive Design --- */

/* タブレット・スマホ共通 (1024px以下) */
@media (max-width: 1024px) {
    body {
        flex-direction: column;
        /* 縦並びに変更 */
    }

    /* サイドバーを上部ナビゲーションに変換 */
    .sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        /* スクロールしても上部に残る */
        top: 0;
        left: 0;
        padding: 15px 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    .logo {
        width: 170px;
        margin-bottom: 0;
        font-size: 1.5rem;
        border-bottom: none;
        padding-bottom: 0;
    }

    /* PC用メニューを隠す（必要に応じてJSでトグルボタン化） */
    .nav-menu {
        display: none;
    }

    .sidebar-footer {
        display: none;
    }

    /* メインコンテンツの余白をリセット */
    .content {
        margin-left: 0;
    }


    .hero h1 {
        font-size: 2.2rem;
    }

    .section-container {
        padding: 80px 5%;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    /* 下部固定見積ボタンの調整 */
    .floating-cta {
        left: 0;
        padding: 15px;
    }

    .cta-button {
        width: 90%;
        padding: 15px 0;
        font-size: 1rem;
        justify-content: center;
    }
}

/* 小型スマホ (480px以下) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .grid {
        grid-template-columns: 1fr;
        /* 1列に強制 */
    }

    .price-table th,
    .price-table td {
        padding: 12px 10px;
        font-size: 0.8rem;
    }

    .price-table-wrapper {
        padding: 15px;
        overflow-x: auto;
        /* テーブルがはみ出さないように */
    }
}

/* --- Hamburger Menu Styles --- */

/* スマホ用ヘッダーのレイアウト調整 */

/* ボタンの外観 */
.menu-trigger {
    display: none;
    /* PCでは隠す */
    position: relative;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-trigger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
    transition: all 0.4s;
}

.menu-trigger span:nth-child(1) {
    top: 0;
}

.menu-trigger span:nth-child(2) {
    top: 11px;
}

.menu-trigger span:nth-child(3) {
    bottom: 0;
}

/* ボタンがアクティブな時（×印に変化） */
.menu-trigger.active span:nth-child(1) {
    transform: translateY(11px) rotate(-45deg);
}

.menu-trigger.active span:nth-child(2) {
    opacity: 0;
}

.menu-trigger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(45deg);
}

/* レスポンシブ時の挙動 (1024px以下) */
@media (max-width: 1024px) {

    .sidebar-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .menu-trigger {
        display: block;
        /* スマホで表示 */
    }

    .nav-menu {
        display: block;
        /* 消していたのを解除 */
        position: fixed;
        top: 0;
        right: -100%;
        /* 初期位置は画面の外（右） */
        width: 80%;
        height: 100vh;
        background-color: var(--sidebar-bg);
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    /* メニューが開いた時 */
    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul li a {
        font-size: 1.2rem;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        padding-left: 2rem;
    }

    .nav-menu-sp {
        display: contents;
        margin-top: 0.5rem;
    }

    .nav-menu ul .nav-menu-sp p a {
        margin-top: auto;
        font-size: 0.7rem;
        padding-left: 2rem;
        color: #777;
        text-decoration: none;

    }

    .nav-menu ul .nav-menu-sp p {
        margin-bottom: 0.5em;
    }
}

/* Step Number Style */
.step-num {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.2);
    /* 薄いゴールド */
    display: block;
    margin-bottom: -20px;
}

/* Data Section */
.data-flex {
    display: flex;
    justify-content: space-around;
    text-align: center;
    background: var(--card-bg);
    padding: 60px 0;
    border-radius: 4px;
}

.data-label {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-gold);
    letter-spacing: 0.2em;
}

.data-value {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-white);
}

.data-value span {
    font-size: 1.2rem;
    margin-left: 5px;
}

/* --- Flow Section Style --- */
.flow-container {
    position: relative;
    padding-left: 20px;
    /* 左側の番号エリアのスペース */
    margin-top: 40px;
}

/* 縦のタイムライン線 */
.flow-line {
    position: absolute;
    left: 40px;
    /* 番号の円の中心に合わせる */
    top: 10px;
    bottom: 50px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-gold) 10%, var(--accent-gold) 90%, transparent);
    opacity: 0.3;
}

.flow-item {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    /* ステップ間の距離 */
    position: relative;
}

/* 左側：番号エリア */
.flow-left {
    flex: 0 0 42px;
    /* 円の幅を固定 */
}

.flow-num {
    width: 42px;
    height: 42px;
    background-color: var(--card-bg);
    /* 背景色に合わせて */
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 2;
    /* 縦線より上に */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    /* 番号を発光させる */
}

/* 右側：テキストと画像 */
.flow-right {
    flex: 1;
    display: flex;
    gap: 40px;
    align-items: center;
}


.flow-text {
    flex: 1;
}

.flow-text h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.flow-text p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* 画像エリア */
.flow-img {
    flex: 0 0 320px;
    /* 画像の幅を固定 */
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: 0.5s;
    filter: grayscale(30%);
    /* 少し彩度を落として高級感を */
}

/* 画像ホバー時の効果 */
.flow-item:hover .flow-img {
    filter: grayscale(0%);
    transform: scale(1.03);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* 画像内のダミーテキスト（画像がない場合） */
.flow-img span {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 0.7rem;
    color: #444;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: bold;
}

/* --- レスポンシブ (タブレット・スマホ) --- */
@media (max-width: 1024px) {
    .flow-line {
        left: 36px;
    }

    .flow-item {
        margin-bottom: 60px;
        gap: 20px;
    }

    .flow-left {
        flex: 0 0 36px;
    }

    .flow-num {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .flow-right {
        flex-direction: column;
        /* テキストと画像を縦並びに */
        gap: 25px;
        align-items: flex-start;
    }

    .flow-text h3 {
        font-size: 1.4rem;
    }

    .flow-img {
        width: 100%;
        /* 全幅に */
        flex: 0 0 200px;
        /* 高さを固定 */
        max-width: 500px;
        /* 大きくなりすぎないように */
    }
}

@media (max-width: 480px) {
    .nav-menu li {
        height: 80px;
    }

    .flow-container {
        padding-left: 0;
        /* スマホでは左の余白をなくす */
        margin-top: 50px;
    }

    .flow-line {
        display: none;
        /* スマホでは縦線を隠す */
    }

    .flow-item {
        flex-direction: column;
        /* 全体を縦並びに */
        gap: 15px;
    }

    .flow-num {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .flow-right {
        padding-left: 0;
    }

    .flow-text h3 {
        font-size: 1.2rem;
    }
}

/* --- スライダー部分の修正 --- */
.infinite-slider-section {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    position: relative;
    display: block;
    /* Flexの干渉を防ぐ */
    background: #333;
}

.slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.slider-inner {
    display: flex;
    width: max-content;
    /* ★中身の長さに合わせて自動で広げる */
}

.slide-item {
    width: 350px;
    height: 250px;
    margin-right: 25px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* レスポンシブ：JSが自動計算するので、サイズだけ変えればOK */
@media (max-width: 1024px) {
    .slide-item {
        width: 280px;
        height: 200px;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .slide-item {
        width: 200px;
        height: 150px;
        margin-right: 10px;
    }
}



/* --- CTA Section Styles --- */

.cta-section {
    padding: 100px 8%;
    background-color: var(--rich-black);
    position: relative;
    overflow: hidden;
}

/* 背景に薄くロゴや装飾を入れる演出（オプション） */
.cta-section::before {
    content: 'UKIDASU';
    position: absolute;
    right: -5%;
    bottom: -10%;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    line-height: 1;
}

.cta-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--border-color);
    padding: 80px 40px;
    background: linear-gradient(145deg, #1e1e20, #121214);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
}

.cta-lead {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* ボタンエリア */
.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* メインボタン（見積もり） */
.main-cta-btn {
    display: flex;
    flex-direction: column;
    background: var(--accent-gold);
    color: #000;
    text-decoration: none;
    padding: 20px 60px;
    border-radius: 4px;
    font-weight: 900;
    transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.main-cta-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5);
    background: #fff;
    /* ホバーで白く光る */
    color: #333;
}

.btn-label {
    font-size: 1.2rem;
}

.btn-sub {
    font-size: 0.75rem;
    font-weight: normal;
    margin-top: 5px;
    opacity: 0.8;
}

/* サブボタン（電話） */
.sub-cta-btn {
    display: flex;
    flex-direction: column;
    color: var(--text-white);
    text-decoration: none;
    transition: 0.3s;
}

.sub-cta-btn:hover {
    color: var(--accent-gold);
}

.phone-number {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 5px 0;
}

.phone-time {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .cta-inner {
        padding: 60px 20px;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .main-cta-btn {
        width: 100%;
        padding: 20px;
    }

    .phone-number {
        font-size: 1.5rem;
    }
}

/* --- スクロールアニメーション共通設定 --- */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    /* 滑らかな動き */
    will-change: transform, opacity;
}

/* 1. フェードアップ（下から上へ） */
.fade-up {
    transform: translateY(50px);
}

/* 2. ズームイン（少し小さめから元のサイズへ） */
.zoom-in {
    transform: scale(0.9);
}

/* 3. 左からフェードイン */
.fade-left {
    transform: translateX(-50px);
}

/* ★JSによってこのクラスが付与された時にアニメーションが実行される */
.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* 遅延用（1枚ずつ順番に出したい時用） */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

.delay-7 {
    transition-delay: 0.7s;
}

.delay-8 {
    transition-delay: 0.8s;
}

.delay-9 {
    transition-delay: 1s;
}

/* --- Modal Styles --- */
.modal {
    display: none;
    /* 初期状態は非表示 */
    position: fixed;
    z-index: 9999;
    /* サイドバーやコンテンツより上に */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* 背景を真っ暗に */
    cursor: zoom-out;
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--accent-gold);
    /* 枠線にブランドカラーを */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--accent-gold);
}

/* カードを「クリックできる」ようにマウスカーソルを変更 */
.case-card {
    cursor: pointer;
}

/* --- Heroセクションの土台 --- */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    /* 画面の高さいっぱいにする */
    min-height: 500px;
    /* 小さな画面でも潰れないように */
    overflow: hidden;
    /* はみ出た画像を隠す */
    display: flex;
    align-items: center;

    background-color: #000;
}

/* --- 背景スライダーコンテナ --- */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* 背面に配置 */
}

/* 黒いオーバーレイ（文字を読みやすくする） */
.hero-slider::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* 40%の暗幕 */
    z-index: 2;
    /* 画像より上、文字より下 */
}

/* --- 各スライド画像 --- */
.hero-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* コンテナいっぱいに広げる */
    height: 100%;
    /* コンテナいっぱいに広げる */
    background-size: cover;
    /* 隙間なく埋める */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    animation: hero-fade 15s infinite;
    /* 15秒ループ */
}

/* 画像パスの指定（適宜変更してください） */
.item1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1)), url('../img/main01.png');
    animation-delay: 0s;
}

.item2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2)), url('../img/main02.png');
    animation-delay: 4s;
}

.item3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1)), url('../img/main03.png');
    animation-delay: 8s;
}

/* --- フェード & ズームアニメーション --- */
@keyframes hero-fade {
    0% {
        opacity: 0;
        transform: scale(1.0);
    }

    10% {
        opacity: 1;
        /* ふわっと出る */
    }

    33% {
        opacity: 1;
        /* 表示維持 */
    }

    45% {
        opacity: 0;
        transform: scale(1.1);
        /* 消えながら少し拡大 */
    }

    100% {
        opacity: 0;
    }
}

/* --- 前面コンテンツ --- */
.hero-inner {
    position: relative;
    z-index: 10;
    /* 最前面に配置 */
    color: #fff;
    margin-left: 10%;
}

@media (max-width: 540px) {
    .hero-inner {
        margin-left: 5%;
    }
}

/* レスポンシブ (1024px以下) */
@media (max-width: 1024px) {

    .hero {
        height: 60vh;
    }


    .hero h1 {
        font-size: 2rem;
        /* スマホでも白文字が背景に負けないよう、影の濃度を維持 */
        text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    }

}

.hero .description {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* --- 運営会社ページのレイアウト --- */
.company-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
    border-top: 1px solid var(--accent-gold);
    /* 上部にライン */
}

.company-table th,
.company-table td {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    vertical-align: top;
}

.company-table th {
    width: 30%;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.company-table td {
    color: #fff;
    line-height: 1.8;
}

.company-table td ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* マップエリア */
.company-map {
    width: 100%;
    filter: grayscale(1) invert(1);
    /* マップをサイトに合わせてダークモード化（任意） */
    opacity: 0.8;
    transition: 0.3s;
}

.company-map:hover {
    filter: grayscale(0) invert(0);
    opacity: 1;
}

/* スマホ対応 */
@media (max-width: 768px) {

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        padding: 15px 0;
    }

    .company-table th {
        padding-bottom: 5px;
        color: var(--accent-gold);
    }
}

/* --- プライバシーポリシーのレイアウト --- */
.privacy-wrapper {
    max-width: 800px;
    margin: 0 auto;
    color: #ccc;
    /* 本文は少し柔らかい白 */
    line-height: 1.8;
    text-align: left;
}

.privacy-intro {
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.privacy-item {
    margin-bottom: 50px;
}

.privacy-item h2 {
    color: var(--accent-gold);
    /* 見出しをゴールドに */
    font-size: 1.2rem;
    border-left: 3px solid var(--accent-gold);
    padding-left: 15px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.privacy-item p {
    margin-bottom: 15px;
}

.privacy-item ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.privacy-item li {
    margin-bottom: 10px;
    list-style-type: disc;
}

/* 窓口情報のボックス */
.contact-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-top: 20px;
}

.contact-box p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .privacy-item h2 {
        font-size: 1.1rem;
    }
}

/* Lenis推奨設定：スクロールのガタつきを防止 */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

.btn-gold-outline {
    position: relative;
    overflow: hidden;
}

/* 光の筋 */
.btn-gold-outline::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: none;
}

/* ホバーした時に一瞬で光が通り過ぎる */
.btn-gold-outline:hover::after {
    left: 150%;
    transition: all 0.6s ease-in-out;
}