/* =========================================
   BASE SETTINGS (Light Theme with Dark FV)
   ========================================= */
:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --text-main: #111111; /* 本文は黒 */
    --line-color: rgba(0, 0, 0, 0.1); /* 線の色は薄い黒 */

    /* =====================================================
       差し色パレット（デザイナー的なビビットカラー）

       全体のトーンはグレースケールのままで、構造／ホバー／選択
       といった「機能の文脈」ごとに役割を割り当てる。
       役割を固定することで、サイト全体で意味の一貫性が出る。
       ===================================================== */
    --accent-coral:   #FF5A3C; /* ホバー時のアクション色（矢印・リンク・hover-trigger） */
    --accent-cobalt:  #2547FF; /* 構造色（セクション番号 "01"〜などの小ラベル） */
    --accent-lime:    #C7F032; /* 選択／アクティブ色（フィルターのactive状態など） */

    /* フォント設定（Futura風 + Zen角ゴシック） */
    --font-display: 'Jost', sans-serif;
    --font-main: 'Jost', 'Zen Kaku Gothic New', sans-serif;

    /* =====================================================
       Liquid Glass トークン（共有値）
       - 暗背景用（FVなど）と明背景用（下層など）で2系統
       - 各サーフェスはこれを参照しつつ、必要に応じて
         背景の透明度／borderだけ個別調整する
       ===================================================== */

    /* ブラー＋彩度ブースト：frostではなくlens寄り */
    --glass-filter: blur(14px) saturate(220%) contrast(1.1) brightness(1.05);

    /* 暗背景用：FVなど黒/暗色の上に乗るガラス */
    --glass-dark-bg: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.06) 100%
    );
    --glass-dark-border: rgba(255, 255, 255, 0.45);
    --glass-dark-rim:
        inset 0 0 0 1px rgba(255, 255, 255, 0.25),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(255, 255, 255, 0.4),
        inset 0 0 24px rgba(255, 255, 255, 0.08),
        0 16px 40px -10px rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.18);

    /* 明背景用：白〜淡色の上に乗るガラス */
    --glass-light-bg: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.45) 100%
    );
    --glass-light-border: rgba(255, 255, 255, 0.75);
    --glass-light-rim:
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),
        inset 0 1.5px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06),
        inset 0 0 24px rgba(255, 255, 255, 0.18),
        0 16px 40px -12px rgba(0, 0, 0, 0.18),
        0 4px 10px rgba(0, 0, 0, 0.07);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none; /* カスタムカーソル用 */
}

html {
    font-size: 16px;
    /* scroll-behavior は Lenis が制御するため auto。
       smooth にすると window.scrollTo(0,0) がアニメーションし、
       ScrollTrigger 初期化時の「scroll=0」リセットが間に合わず、
       FV pin が中途状態で固定されて FV 上に空白が出る不具合になる。 */
    scroll-behavior: auto;
}

body {
    /* ▼▼▼ ここを変更：基本背景を白に ▼▼▼ */
    background-color: var(--white);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.8;
    letter-spacing: 0.08em;
}

/* =========================================
   レスポンシブ改行ユーティリティ
   - MacBook Pro（14"=1512px / 16"=1728px）基準で組んだ改行を、
     SP では自然折り返しに切り替えるためのクラス。
   - <br>             ：全画面で改行（住所など機械的な改行のみ）
   - <br class="br-pc">：PC（≥769px）でのみ改行。SP では消える
   - <br class="br-sp">：SP（<769px）でのみ改行。PC では消える
   ========================================= */
br.br-sp { display: none; }
@media (max-width: 768px) {
    br.br-pc { display: none; }
    br.br-sp { display: inline; }
}

/* 主要テキストブロックの孤立行を抑える（widow / orphan の見映え改善） */
.section-lead,
.contact-lead,
.company-page__story,
.company-mini__lead,
.company-mini__sub,
.works-page__intro-jp,
.process-flow__desc,
.services-cta__lead,
.service-row__short,
.service-row__jp,
.hero-subtext-jp,
.sd-hero__lead,
.sd-deliv-card__desc,
.process-step__desc {
    text-wrap: pretty;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
li { list-style: none; }

/* =========================================
   CUSTOM CURSOR (Blend Mode)
   ========================================= */
.cursor, .cursor-follower {
    position: fixed; top: 0; left: 0; border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); transition: transform 0.1s;
    /* 背景色に合わせて色が変わる魔法の設定 */
    mix-blend-mode: difference;
}
.cursor { width: 8px; height: 8px; background-color: #fff; }
.cursor-follower {
    width: 40px; height: 40px; border: 1px solid #fff;
    transition: transform 0.15s, width 0.3s, height 0.3s;
}
.cursor-hover .cursor-follower {
    width: 60px; height: 60px; background-color: rgba(255,255,255,1);
}

/* =========================================
   GRID LINES (Light Version)
   ========================================= */
.grid-lines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; display: flex; justify-content: space-around;
}
.line {
    width: 1px; height: 100%;
    /* 白背景用に薄いグレーの線に変更 */
    background: rgba(0, 0, 0, 0.05);
}

/* =========================================
   HEADER (Dynamic Glass Capsule)
   ========================================= */
.header {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 90%; max-width: 1000px;
    height: 64px;

    /* ▼▼▼ FV時：Liquid Glass（透明な凸レンズ寄り） ▼▼▼ */
    /* 白オーバーレイを極限まで薄く → 背後の動画がしっかり透けて見える */
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(255, 255, 255, 0.06) 100%
        );
    /* ブラーを抑え、彩度・コントラストで「色が濃く歪んで通る」感を作る */
    backdrop-filter: blur(14px) saturate(220%) contrast(1.12) brightness(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(220%) contrast(1.12) brightness(1.08);

    /* 透過が強い分、ガラス感は縁で語る → 外周リムをさらに強化 */
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        /* 外周内側リング（肉厚感） */
        inset 0 0 0 1px rgba(255, 255, 255, 0.25),
        /* 上端の強い白リム */
        inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
        /* 下端のリム反射 */
        inset 0 -1px 0 rgba(255, 255, 255, 0.4),
        /* 内側の柔らかいグロウ：レンズ内部の散乱光 */
        inset 0 0 24px rgba(255, 255, 255, 0.08),
        /* 浮遊感のあるドロップシャドウ */
        0 16px 40px -10px rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.18);

    border-radius: 100px;

    display: flex; justify-content: space-between; align-items: center;
    padding: 0 30px; z-index: 1000;

    /* 文字色は「白」 */
    color: #fff;
    transition: all 0.4s ease;
}

/* ▼▼▼ ロゴの設定（FV時は白にする） ▼▼▼ */
.logo img { 
    height: 28px; width: auto; display: block; 
    transition: 0.4s;
    
    /* 黒いロゴ画像を強制的に「真っ白」にするフィルタ */
    filter: brightness(0) invert(1);
}

/* ▼▼▼ スクロール後（FV越え）：透明レンズ寄りのガラス ▼▼▼ */
.header.scrolled {
    /* 白オーバーレイを大幅に薄く → 背後の本文がしっかり透ける */
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 0.18) 50%,
            rgba(255, 255, 255, 0.35) 100%
        );
    /* ブラー控えめ＋彩度・コントラスト強で「歪んで通る」感 */
    backdrop-filter: blur(14px) saturate(220%) contrast(1.1) brightness(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(220%) contrast(1.1) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.75);

    /* 文字色を「黒」に戻す */
    color: #000;

    box-shadow:
        /* 外周内側リング（肉厚） */
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),
        /* 上端の強い白リム */
        inset 0 1.5px 0 rgba(255, 255, 255, 1),
        /* 下端の暗リム（コバの陰） */
        inset 0 -1px 0 rgba(0, 0, 0, 0.06),
        /* 内側ソフトグロウ */
        inset 0 0 24px rgba(255, 255, 255, 0.18),
        /* 浮遊感のあるドロップシャドウ */
        0 16px 40px -12px rgba(0, 0, 0, 0.18),
        0 4px 10px rgba(0, 0, 0, 0.07);
}

/* スクロール後はロゴを「元の色（黒）」に戻す */
.header.scrolled .logo img {
    filter: none; 
}

/* --- 以下、ナビゲーションのスタイル（そのまま） --- */
.pc-nav { margin-right: -17px; } /* ヘッダー右端に少し近づける（少し右にずらす） */
.pc-nav ul { display: flex; gap: 40px; }
.pc-nav a {
    font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.05em; position: relative;
    color: inherit; /* 親の色（白or黒）に従う */
}
.pc-nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width 0.3s;
}
.pc-nav a:hover::after { width: 100%; }

.hamburger { display: none; width: 30px; height: 14px; position: relative; cursor: none; }
.hamburger span {
    position: absolute; width: 100%; height: 2px;
    background: currentColor; /* 親の色（白or黒）に従う */
    transition: 0.4s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { bottom: 0; }

/* =========================================
   HEADER CONTACT BUTTON (High CTR Design)
   ========================================= */

/* 1. ボタンの基本形状（FV時：白背景・黒文字） */
.pc-nav a.nav-btn {
    background: #fff;       /* 背景を白に */
    color: #000 !important; /* 文字を黒に */
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid #fff;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.pc-nav a.nav-btn::after { display: none; }

/* ホバー時（少し浮く） */
.pc-nav a.nav-btn:hover {
    background: transparent;
    color: #fff !important;
    transform: translateY(-2px);
}

/* 2. スクロール後 OR 下層ページ（黒背景・白文字に反転） */
/* ▼▼▼ ここを修正：下層ページ(.lower-page)の時も対象にする ▼▼▼ */
.header.scrolled .pc-nav a.nav-btn,
body:has(.lower-page) .pc-nav a.nav-btn {
    background: #000;       /* 背景を黒に */
    color: #fff !important; /* 文字を白に */
    border-color: #000;     /* 枠線も黒に */
}

/* その状態でのホバー（枠線だけのボタンに変化） */
.header.scrolled .pc-nav a.nav-btn:hover,
body:has(.lower-page) .pc-nav a.nav-btn:hover {
    background: transparent;    /* 背景透明 */
    color: #000 !important;     /* 文字は黒 */
    border-color: #000;         /* 枠線は黒 */
}

/* =========================================
   RESPONSIVE SETTINGS (Final Version)
   ========================================= */

/* 1. 基本設定：PC画面ではスマホメニューを「完全に」消す */
/* これがないとPC画面で変な文字が表示されてしまいます */
.sp-nav-menu {
    display: none;
}

/* 2. スマホ画面（768px以下）だけの特別ルール */
@media screen and (max-width: 768px) {
    
    /* ヘッダーをスマホサイズに */
    .header { 
        width: 92%; 
        padding: 0 20px; 
        height: 56px; 
    }

    /* PC用のメニューを消す */
    .pc-nav { display: none; }
    
    /* ハンバーガーボタンを表示する */
    .hamburger { display: block; }
    
    /* 下層ページの余白調整 */
    .contact-page-wrapper, .legal-page {
        padding-top: 120px;
    }

    /* ▼▼▼ 重要：スマホメニューの復活とデザイン（Liquid Glass） ▼▼▼ */
    .sp-nav-menu {
        /* display: none を display: flex に上書きして復活させる */
        display: flex;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        /* 後ろのページがうっすら歪んで透ける Liquid Glass */
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.82) 0%,
            rgba(255, 255, 255, 0.68) 100%
        );
        backdrop-filter: blur(30px) saturate(220%) contrast(1.1) brightness(1.05);
        -webkit-backdrop-filter: blur(30px) saturate(220%) contrast(1.1) brightness(1.05);
        z-index: 999;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        /* アニメーションの初期状態（隠しておく） */
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    }

    /* ハンバーガーが押された時（activeクラスがついた時） */
    .sp-nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    /* ハンバーガーメニュー展開時はスクロール位置に関係なくロゴと線を黒に
       （FV位置で白×白背景になり視認性が悪くなるのを防ぐ） */
    .header:has(.hamburger.open) .logo img {
        filter: none;
    }
    .header .hamburger.open span {
        background: #000;
    }

    /* メニュー内のリンク文字 */
    .nav-links a {
        display: block; 
        font-family: var(--font-display); 
        font-size: 2.5rem; /* 大きく押しやすく */
        color: #000; 
        margin: 15px 0;
        text-decoration: none;
        font-weight: 500;
    }
}

/* =========================================
   FIRST VIEW (FV) - Always Dark
   ========================================= */
.fv {
    position: relative; height: 100vh; width: 100%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    /* FVだけは黒背景・白文字の世界 */
    background: #000;
    color: #fff;
}
.video-wrap { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); }

.fv-content { position: relative; z-index: 2; width: 100%; padding: 0 5%; }
.hero-text {
    font-family: var(--font-display); 
    font-size: 8vw; 
    line-height: 0.9;
    font-weight: 500; 
    letter-spacing: 0.1em; 
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.9);
    
    /* アニメーション初期状態 */
    opacity: 0; 
    /* ここでは transform を指定しない（個別の設定に任せる） */
    
    animation: textReveal 1.5s forwards 1s ease-out;
}
/* 文字全体を包む枠：ここで画面中央に配置する */
.hero-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* 左右中央揃え */
    width: 100%;
}

/* 1行目 (ARCHITECTURE): 中央から少し「左」へずらす */
.hero-text:nth-child(1) {
    transform: translateX(-6vw); /* 左へ6vw移動 */
    --final-x: -6vw;
}

/* 2行目 (OF THE FUTURE): 中央から少し「右」へずらす */
.hero-text:nth-child(2) {
    color: #fff;
    -webkit-text-stroke: 0;
    transform: translateX(6vw); /* 右へ6vw移動 */
    --final-x: 6vw;
}
@keyframes textReveal { 
    0% { 
        opacity: 0; 
        transform: translate(var(--final-x), 50px); /* 指定位置より下から */
    }
    100% { 
        opacity: 1; 
        transform: translate(var(--final-x), 0); /* 指定位置へ */
    } 
}


/* =========================================
   LOWER PAGE HEADER FIX (全メニューの修正)
   ========================================= */

/* 1. 下層ページでは、ヘッダー背景を最初から「白」にする
      （top 位置はトップページと同じ 20px で揃え、ページ間で
       見た目のジャンプが起きないようにする） */
body:has(.lower-page) .header {
    /* 下層ページ用：透明レンズ寄りに揃える */
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.50) 0%,
            rgba(255, 255, 255, 0.22) 50%,
            rgba(255, 255, 255, 0.40) 100%
        );
    backdrop-filter: blur(14px) saturate(220%) contrast(1.1) brightness(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(220%) contrast(1.1) brightness(1.05);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),
        inset 0 1.5px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.07),
        inset 0 0 24px rgba(255, 255, 255, 0.18),
        0 16px 40px -12px rgba(0, 0, 0, 0.18),
        0 4px 10px rgba(0, 0, 0, 0.07);
}

/* 2. ロゴの色を「黒」に戻す（フィルター解除） */
body:has(.lower-page) .header .logo img {
    filter: none; /* 反転なし＝元の黒い画像を表示 */
}

/* 3. メニュー文字（SERVICE, COMPANY等）を「黒」にする */
body:has(.lower-page) .header .pc-nav a {
    color: #000;
}
/* ホバー時の下線も黒に */
body:has(.lower-page) .header .pc-nav a::after {
    background: #000;
}

/* 4. ハンバーガーボタン（スマホ用）の線を「黒」にする */
body:has(.lower-page) .header .hamburger span {
    background: #000;
}

/* 5. コンタクトボタン（さきほどの修正の念押し） */
body:has(.lower-page) .header .pc-nav a.nav-btn {
    background: #000;       /* 黒ボタン */
    color: #fff !important; /* 白文字 */
    border-color: #000;
}
body:has(.lower-page) .header .pc-nav a.nav-btn:hover {
    background: transparent;
    color: #000 !important;
}

/* ▼▼▼ スクロールインジケーター（中央配置・建築的ミニマル） ▼▼▼ */
.scroll-down {
    position: absolute;
    bottom: 36px;
    /* 中央寄せ：transform を使わず GSAP のアニメーションと干渉させない */
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    z-index: 10;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-display);
    gap: 18px;
    padding: 0;
}

.scroll-down span {
    font-size: 0.7rem;
    /* 横書きに（writing-mode は initial で打ち消し） */
    writing-mode: horizontal-tb;
    letter-spacing: 0.5em;
    text-indent: 0.5em; /* 文字列末尾の letter-spacing を視覚的に補正 */
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
}

.scroll-down .line {
    width: 1px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-down .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateY(-100%);
    animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollLine {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* スマホでも中央配置・少しコンパクトに */
@media screen and (max-width: 768px) {
    .scroll-down {
        bottom: 26px;
        gap: 14px;
    }
    .scroll-down span {
        font-size: 0.62rem;
        letter-spacing: 0.4em;
        text-indent: 0.4em;
    }
    .scroll-down .line {
        height: 48px;
    }
}

/* =========================================
   SECTIONS COMMON (Light)
   ========================================= */
.section { padding: 120px 5%; position: relative; z-index: 2; }
.container { max-width: 1200px; margin: 0 auto; }

/* 見出しも黒に変更 */
.section-header {
    display: flex; align-items: baseline; margin-bottom: 80px;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 20px;
}
.section-num {
    font-family: var(--font-display); font-size: 1rem;
    color: var(--accent-cobalt);
    margin-right: 20px;
    letter-spacing: 0.12em;
}
.section-title {
    font-family: var(--font-display); font-size: 3rem; font-weight: 500; color: #000;
}

/* =========================================
   SERVICE (Grid - Light Ver)
   ========================================= */

.service-card {
    border: 1px solid var(--line-color); /* 薄い黒線 */
    padding: 40px; transition: 0.4s; position: relative; overflow: hidden;
    background: #fff;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; /* ホバー時は黒背景になる */
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1); z-index: 0;
}
.service-card:hover::before { transform: scaleX(1); }

.card-inner { position: relative; z-index: 1; transition: 0.4s; color: #000; }
.service-card:hover .card-inner { color: #fff; /* ホバー時は白文字 */ }

.service-card h4 {
    font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 10px;
    font-weight: 500; letter-spacing: 0.05em;
}
.jp-text { font-size: 0.85rem; color: #666; transition: 0.4s; }
.service-card:hover .jp-text { color: #aaa; }
.arrow { display: block; margin-top: 30px; font-size: 1.5rem; opacity: 0; transform: translateX(-20px); transition: 0.4s; }
.service-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* =========================================
   COMPANY (Table - Light Ver)
   ========================================= */
.company-table { border-top: 1px solid var(--line-color); }
.c-row {
    display: flex; padding: 30px 0; border-bottom: 1px solid var(--line-color);
    transition: 0.3s;
}
.c-row:hover { background: rgba(0,0,0,0.02); padding-left: 20px; }
.c-label { width: 30%; font-family: var(--font-display); color: #666; font-weight: 500; }
.c-data { width: 70%; font-weight: 400; color: #000; }
.status-blink { color: #000; animation: blinkStatus 2s infinite; font-family: monospace; }
@keyframes blinkStatus { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* =========================================
   CONTACT (Form - Light Ver)
   ========================================= */
.modern-form { max-width: 800px; margin: 0 auto; }
.input-group { position: relative; margin-bottom: 50px; }
.input-group input, .input-group textarea {
    width: 100%; background: transparent; border: none;
    color: #000; /* 黒文字 */
    font-size: 1.5rem; font-family: var(--font-display);
    padding: 10px 0; outline: none;
}
.input-group textarea { height: 50px; resize: none; }
.input-group input::placeholder, .input-group textarea::placeholder {
    color: rgba(0,0,0,0.3); /* 薄い黒 */
}
.border-line {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
    background: rgba(0,0,0,0.2);
}
.input-group input:focus + .border-line,
.input-group textarea:focus + .border-line {
    background: #000; height: 2px; transition: 0.3s;
}

.send-btn {
    display: block; width: 100%; padding: 20px; border: 1px solid #000;
    background: transparent; color: #000; font-size: 1.2rem;
    font-family: var(--font-display); position: relative; overflow: hidden;
    transition: 0.4s; margin-top: 60px;
}
.send-btn:hover { color: #fff; }
.btn-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; /* ホバー背景黒 */
    transform: translateY(100%); transition: 0.4s; z-index: -1;
}
.send-btn:hover .btn-bg { transform: translateY(0); }

/* =========================================
   /* =========================================
   FOOTER (Dark Mode)
   ========================================= */
.footer {
    padding: 80px 5% 40px;
    /* ▼変更：背景を黒、文字を白に */
    background: #000;
    color: #fff;
    /* ▼変更：上の線を薄い白に変更 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

/* 左側：ロゴと住所 */
.footer-info {
    width: 40%;
    padding-right: 40px;
}

.footer-logo a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #fff; /* ロゴは白 */
    display: inline-block;
    height: 40px; 
    margin-bottom: 20px;
}

.footer-logo img {
    height: 100%;
    width: auto;
    display: block;
    
    /* 黒い画像を「真っ白」にするフィルタ */
    filter: brightness(0) invert(1);
}

.footer-address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #999; /* 住所は少しグレーに */
}
.footer-address a {
    display: inline-block;
    margin-top: 10px;
    color: #fff; /* リンクは白 */
    border-bottom: 1px solid #fff; /* 下線も白 */
}

/* 右側：リンク集 */
.footer-links {
    width: 55%;
    display: flex;
    justify-content: space-between;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #fff; /* 見出しは白 */
    letter-spacing: 0.1em;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: #888; /* リンクはグレー */
    position: relative;
    transition: 0.3s;
    display: inline-block; 
}

/* ホバー時 */
.footer-col ul li a:hover {
    color: #fff; /* ホバーで白く光る */
    transform: translateX(10px); 
}

/* 最下部：コピーライト */
.footer-bottom {
    /* 線を薄い白に変更 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #666; /* コピーライトは暗めのグレー */
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .footer { padding: 60px 5% 30px; }
    
    .footer-content { flex-direction: column; gap: 40px; }
    
    .footer-info { width: 100%; padding-right: 0; }
    
    .footer-links { 
        width: 100%; 
        flex-wrap: wrap; 
        gap: 30px 0;
    }
    
    .footer-col {
        width: 50%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .header { width: 92%; padding: 0 20px; height: 56px; }
    .pc-nav { display: none; }
    .hamburger { display: block; }
    
    .cursor, .cursor-follower { display: none; }
    *, *::before, *::after { cursor: auto; }

    .hero-text { font-size: 14vw; }
    .c-row { flex-direction: column; gap: 10px; }
    .c-label { width: 100%; }
    .c-data { width: 100%; }
    
    .sp-nav-menu {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        /* Liquid Glass */
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.82) 0%,
            rgba(255, 255, 255, 0.68) 100%
        );
        backdrop-filter: blur(30px) saturate(220%) contrast(1.1) brightness(1.05);
        -webkit-backdrop-filter: blur(30px) saturate(220%) contrast(1.1) brightness(1.05);
        z-index: 999; display: flex; flex-direction: column;
        justify-content: center; align-items: center;
        opacity: 0; visibility: hidden; transition: 0.5s;
    }
    .sp-nav-menu.active { opacity: 1; visibility: visible; }
    .nav-links a {
        display: block; font-family: var(--font-display); font-size: 2.5rem;
        color: #000; margin: 15px 0;
    }
}

/* ▼▼▼ 追加するコード：PCではスマホメニューを完全に消す ▼▼▼ */
.sp-nav-menu {
    display: none;
}

/* =========================================
   LEGAL PAGES (Privacy & Terms)
   ========================================= */
.legal-page {
    padding-top: 180px; /* ヘッダーとかぶらないように下げる */
    min-height: 80vh;   /* コンテンツが少なくても画面を埋める */
}

.legal-content {
    max-width: 800px;
    margin: 0 auto; /* 中央寄せ */
    font-family: var(--font-main);
}

.legal-content p {
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: 40px;
    color: #333;
}

.legal-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 2px solid #000; /* 左に黒いアクセント線 */
    font-family: var(--font-display); /* 見出しは英語フォントの雰囲気で */
}

.contact-info {
    background: #f9f9f9; /* 薄いグレーの背景 */
    padding: 30px;
    border: 1px solid var(--line-color);
}

/* =========================================
   CONTACT PAGE DESIGN
   ========================================= */
/* 固定ヘッダーに被らないように上部に余白を設ける */
.contact-page-wrapper {
    padding-top: 180px; 
    min-height: 80vh; /* コンテンツが少なくても画面下まで白くする */
}

/* フォーム上のリード文のデザイン */
.contact-lead {
    margin-bottom: 60px;
    font-size: 1rem;
    line-height: 2;
    color: #666; /* 本文色より少し薄く上品に */
    font-family: var(--font-main);
}

/* フォームのメッセージエリア（送信完了時の表示） */
.form-message {
    margin-top: 30px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .contact-page-wrapper {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .contact-lead {
        font-size: 0.9rem;
        margin-bottom: 40px;
    }
}

/* =========================================
   CONTACT FORM UPDATE (Pro Version)
   ========================================= */

/* ラベルと必須・任意マーク */
.input-label {
    display: block;
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: #999;
}

/* 必須マーク（日本語・赤） */
.required-badge {
    color: #e60012; /* 鮮やかな赤 */
    font-size: 0.7rem; /* 日本語なので少し大きめに */
    margin-left: 8px;
    border: 1px solid #e60012;
    padding: 2px 6px;
    vertical-align: middle;
    font-family: var(--font-ja); /* 日本語フォント */
    font-weight: 500;
}

/* 任意マーク（日本語・グレー） */
.optional-badge {
    color: #999;
    font-size: 0.7rem;
    margin-left: 8px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 2px 6px;
    vertical-align: middle;
    font-family: var(--font-ja);
    font-weight: 500;
}

/* お問い合わせ種別：チェックボックスグループ（複数選択可） */
.input-label .input-note {
    margin-left: 8px;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: #999;
    font-family: var(--font-ja);
}
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    padding: 8px 0 4px;
}
.checkbox-item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}
.checkbox-item input {
    display: none; /* 既定のチェックボックスは隠す */
}
/* カスタムチェックボックス（プライバシー同意と同じ見た目） */
.checkbox-item .check-box {
    width: 20px;
    height: 20px;
    border: 1px solid #999;
    margin-right: 10px;
    position: relative;
    transition: 0.3s;
    flex-shrink: 0;
}
.checkbox-item input:checked + .check-box {
    background: #000;
    border-color: #000;
}
.checkbox-item input:checked + .check-box::after {
    content: '';
    position: absolute;
    top: 45%; left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px; height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
}
.checkbox-text {
    font-size: 1rem;
    color: #000;
    font-family: var(--font-ja);
}
/* チェックボックス版 input-group はアンダーラインを持たないので余白を調整 */
.input-group--checkbox { margin-bottom: 50px; }
/* エラー時：チェックボックスの枠を赤く */
.input-group--checkbox.error .check-box { border-color: #e60012; }

/* SP：種別チェックボックスは縦並びで見やすく */
@media screen and (max-width: 768px) {
    .checkbox-group { flex-direction: column; gap: 16px; }
}

/* セレクトボックス（ドロップダウン）のデザイン */
.select-wrap {
    position: relative;
    width: 100%;
}
.select-wrap select {
    width: 100%;
    padding: 10px 0;
    border: none;
    background: transparent;
    font-size: 1.1rem; /* スマホで大きく見やすく */
    color: #000;
    font-family: var(--font-ja);
    appearance: none; /* デフォルトの矢印を消す */
    cursor: pointer;
    outline: none;
    border-radius: 0;
}
/* カスタム矢印 */
.select-wrap::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #999;
    pointer-events: none;
}

/* プライバシーポリシーチェックボックス */
.privacy-check {
    margin: 40px 0 60px;
    text-align: center;
}

.privacy-check label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.privacy-check input {
    display: none; /* 元のチェックボックスは隠す */
}

/* カスタムチェックボックスの四角 */
.privacy-check .check-box {
    width: 20px;
    height: 20px;
    border: 1px solid #999;
    margin-right: 10px;
    position: relative;
    transition: 0.3s;
}

/* チェックされた時のスタイル */
.privacy-check input:checked + .check-box {
    background: #000;
    border-color: #000;
}

/* チェックマーク */
.privacy-check input:checked + .check-box::after {
    content: '';
    position: absolute;
    top: 45%; left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px; height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
}

.privacy-text {
    font-size: 0.9rem;
    color: #333;
}
.privacy-text a {
    text-decoration: underline;
    color: #000;
    font-weight: 500;
}

/* =========================================
   FORM ERROR STYLES
   ========================================= */

/* エラー時の入力エリア（赤線にする） */
.input-group.error .border-line {
    background: #e60012 !important;
    height: 2px;
}

/* エラー時のセレクトボックス */
.input-group.error select {
    color: #e60012;
}

/* エラーメッセージ（各項目の下に出す） */
.input-group.error::after {
    content: '※必須項目です';
    display: block;
    color: #e60012;
    font-size: 0.75rem;
    margin-top: 5px;
    font-family: var(--font-ja);
}

/* プライバシーポリシーのチェックボックスのエラー */
.privacy-check.error .check-box {
    border-color: #e60012 !important;
    background: rgba(230, 0, 18, 0.05);
}
.privacy-check.error .privacy-text {
    color: #e60012;
    font-weight: 600;
}

/* フォーム全体のエラーメッセージ */
.form-message.error {
    color: #e60012;
    font-weight: 600;
    margin-top: 20px;
    padding: 15px;
    background: rgba(230, 0, 18, 0.05);
    border: 1px solid rgba(230, 0, 18, 0.2);
}

/* =========================================
   reCAPTCHA v2（「私はロボットではありません」）
   送信ボタン直前に中央寄せで配置。
   ========================================= */
.recaptcha-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 10px;
}
/* 未完了エラー時の視覚フィードバック（既存 .error 配色に合わせる） */
.recaptcha-group.error {
    outline: 1px solid rgba(230, 0, 18, 0.4);
    outline-offset: 6px;
    border-radius: 2px;
}
.recaptcha-group.error::after {
    content: '※reCAPTCHA認証を完了してください';
    display: block;
    text-align: center;
    color: #e60012;
    font-size: 0.75rem;
    margin-top: 10px;
    font-family: var(--font-ja);
}
/* SP：reCAPTCHA iframe は 304px 固定幅。狭い端末でも横にはみ出さないよう縮小 */
@media screen and (max-width: 360px) {
    .recaptcha-group .js-recaptcha {
        transform: scale(0.88);
        transform-origin: center top;
    }
}

/* =========================================
   お問い合わせ：入力 → 確認 → 完了 のステップ表示
   ========================================= */
.form-step { display: none; }
.form-step.is-active { display: block; }

/* 確認・完了ステップでは、フォーム上部のリード文（入力案内）を隠す。
   完了画面で「3営業日以内に…」等が重複するのを防ぐ。 */
.contact-page-wrapper[data-form-step="confirm"] .contact-lead,
.contact-page-wrapper[data-form-step="complete"] .contact-lead {
    display: none;
}

/* 確認ステップ：お問い合わせ内容と reCAPTCHA の間に余白を確保 */
.form-step--confirm .recaptcha-group {
    margin-top: 44px;
}

/* ---- 確認ステップ ---- */
.confirm-lead {
    margin-bottom: 40px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.9;
    color: #666;
    text-align: center;
}
.confirm-list {
    margin: 0;
}
.confirm-list .confirm-row {
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.confirm-list dt {
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 8px;
}
.confirm-list dd {
    margin: 0;
    font-family: var(--font-ja);
    font-size: 1.05rem;
    line-height: 1.8;
    color: #000;
    white-space: pre-wrap;   /* お問い合わせ内容の改行を保持 */
    word-break: break-word;  /* 長い URL・連続文字の折り返し */
}

/* 確認ステップのボタン列（修正する／送信する） */
.confirm-actions {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}
.confirm-actions .send-btn {
    margin-top: 0;
    flex: 1;
}
.back-btn {
    flex: 1;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: transparent;
    color: #555;
    font-size: 1.2rem;
    font-family: var(--font-display);
    cursor: pointer;
    transition: 0.3s;
}
.back-btn:hover {
    border-color: #000;
    color: #000;
}

/* ---- 完了ステップ ---- */
.form-step--complete {
    text-align: center;
    padding: 40px 0 20px;
}
.complete-title {
    font-family: var(--font-en);
    font-size: 1.8rem;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
    color: #000;
}
.complete-text {
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 2;
    color: #666;
    margin-bottom: 36px;
}
.complete-home-link {
    display: inline-block;
    padding: 16px 48px;
    border: 1px solid #000;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: #000;
    text-decoration: none;
    transition: 0.4s;
}
.complete-home-link:hover {
    background: #000;
    color: #fff;
}

/* SP：ボタンは縦並び（送信するを上に） */
@media screen and (max-width: 768px) {
    .confirm-actions {
        flex-direction: column-reverse;
        gap: 14px;
        margin-top: 40px;
    }
    .complete-title { font-size: 1.5rem; }
    .complete-home-link { padding: 14px 40px; }
}

/* ▼▼▼ プレイスホルダー（薄い文字）の設定を変更 ▼▼▼ */
.input-group input::placeholder, 
.input-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.3); 
    transition: var(--transition-base);
    
    /* サイズを小さくする（入力文字は1.2remですが、これは0.9remに） */
    font-size: 0.9rem; 
    
    /* 薄文字は日本語が多いので、日本語フォントを指定して綺麗に見せる */
    font-family: var(--font-ja);
    
    /* 少し下にズレて見えることがあるので、位置を微調整 */
    line-height: normal;
}

/* （参考）入力した時の文字は大きいまま（1.2rem）です */

/* =========================================
   LOADER: Blueprint Architecture (v2)

   - 初回訪問・リロード時のみ表示（判定は meta.php の inline script）
   - ブループリント風の縦グリッド + 四隅の図面メタ + 中央ロゴ + 進捗カウンター
   ========================================= */

/* サイト内ナビゲーションでは即座に非表示 */
html.no-preloader .loader-architect { display: none !important; }

.loader-architect {
    position: fixed; inset: 0;
    background: #fff; z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
}
.loader-architect.loaded {
    transform: translateY(-100%);
}

/* 背景のブループリント縦グリッド */
.loader-grid {
    position: absolute; inset: 0;
    display: flex; justify-content: space-around;
    pointer-events: none;
}
.loader-grid span {
    width: 1px; height: 100%;
    background: rgba(0, 0, 0, 0.04);
    transform: scaleY(0);
    transform-origin: top;
    animation: loaderGridDraw 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
.loader-grid span:nth-child(2) { animation-delay: 0.05s; }
.loader-grid span:nth-child(3) { animation-delay: 0.1s; }
.loader-grid span:nth-child(4) { animation-delay: 0.15s; }
@keyframes loaderGridDraw { 100% { transform: scaleY(1); } }

/* 四隅の図面メタデータ */
.loader-corner {
    position: absolute;
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(8px);
    animation: loaderFadeUp 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.25s;
    text-transform: uppercase;
}
.loader-corner--tl { top: 28px; left: 32px; align-items: flex-start; text-align: left; }
.loader-corner--tr { top: 28px; right: 32px; align-items: flex-end; text-align: right; }
.loader-corner--bl { bottom: 28px; left: 32px; align-items: flex-start; text-align: left; }
.loader-corner--br { bottom: 28px; right: 32px; align-items: flex-end; text-align: right; }

.loader-corner__tag {
    color: var(--accent-cobalt);
    font-weight: 600;
}
.loader-corner__value {
    color: #222;
}

@keyframes loaderFadeUp {
    100% { opacity: 1; transform: translateY(0); }
}

/* ローディングステータス（4段階を順にスライド表示） */
.loader-status {
    position: relative;
    height: 0.85rem;
    width: 130px;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
}
.loader-status li {
    position: absolute; top: 0; left: 0;
    width: 100%;
    color: #222;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1),
                opacity 0.45s ease-out;
}
.loader-status li.is-active {
    opacity: 1;
    transform: translateY(0);
}
.loader-status li.is-past {
    opacity: 0;
    transform: translateY(-100%);
}

/* 中央コンテンツ */
.loader-content {
    position: relative;
    padding: 20px 0;
    text-align: center;
    z-index: 2;
}
.text-mask {
    overflow: hidden;
    margin-bottom: 12px;
}
.loader-logo {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.6rem;
    letter-spacing: 0.1em;
    color: #000;
    transform: translateY(110%);
    animation: textRise 0.7s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.1s;
}
@keyframes textRise {
    100% { transform: translateY(0); }
}

.loader-sub { margin-bottom: 32px; }
.loader-sub__text {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: #777;
    text-transform: uppercase;
    transform: translateY(110%);
    animation: textRise 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.3s;
}

/* プログレス（バー + カウンター） */
.loader-progress {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    justify-content: center;
}
.progress-bar-wrap {
    width: 220px; height: 2px;
    background: rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards 0.45s;
}
.progress-bar {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--accent-cobalt);
    transform: translateX(-100%);
    animation: fillProgress 0.9s cubic-bezier(0.8, 0, 0.2, 1) forwards 0.55s;
}
@keyframes fadeIn { 100% { opacity: 1; } }
@keyframes fillProgress { 100% { transform: translateX(0); } }

.loader-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    min-width: 46px;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards 0.5s;
    font-variant-numeric: tabular-nums;
}
.loader-counter__num {
    color: var(--accent-cobalt);
    font-weight: 600;
}
.loader-counter__pct {
    color: #888;
    margin-left: 2px;
}


/* =========================================
   RESPONSIVE SETTINGS (Final Version)
   ========================================= */

/* PCではスマホメニューを隠す */
.sp-nav-menu {
    display: none;
}

/* スマホ画面（768px以下） */
@media screen and (max-width: 768px) {
    
    /* ローダー調整 */
    .loader-logo { font-size: 1.75rem; }
    .loader-sub__text { font-size: 0.58rem; letter-spacing: 0.28em; }
    .loader-sub { margin-bottom: 28px; }
    .progress-bar-wrap { width: 140px; }
    .loader-progress { gap: 14px; }
    .loader-corner { font-size: 0.52rem; gap: 2px; letter-spacing: 0.2em; }
    .loader-corner--tl, .loader-corner--bl { left: 20px; }
    .loader-corner--tr, .loader-corner--br { right: 20px; }
    .loader-corner--tl, .loader-corner--tr { top: 20px; }
    .loader-corner--bl, .loader-corner--br { bottom: 20px; }
    .loader-status { width: 100px; }

    /* ヘッダー調整 */
    .header { width: 92%; padding: 0 20px; height: 56px; }
    .pc-nav { display: none; }
    .hamburger { display: block; }
    
    /* エフェクト無効化 */
    .cursor, .cursor-follower { display: none; }
    *, *::before, *::after { cursor: auto; }

    .hero-text { font-size: 14vw; }
    .c-row { flex-direction: column; gap: 10px; }
    .c-label { width: 100%; }
    .c-data { width: 100%; }
    
    .contact-page-wrapper, .legal-page {
        padding-top: 120px;
    }

    /* スマホメニューの設定（Liquid Glass） */
    .sp-nav-menu {
        display: flex;
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.82) 0%,
            rgba(255, 255, 255, 0.68) 100%
        );
        backdrop-filter: blur(30px) saturate(220%) contrast(1.1) brightness(1.05);
        -webkit-backdrop-filter: blur(30px) saturate(220%) contrast(1.1) brightness(1.05);
        z-index: 999;
        flex-direction: column; justify-content: center; align-items: center;
        opacity: 0; visibility: hidden; transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    }
    .sp-nav-menu.active { opacity: 1; visibility: visible; }
    .nav-links a {
        display: block; font-family: var(--font-display); font-size: 2.5rem;
        color: #000; margin: 15px 0; text-decoration: none; font-weight: 500;
    }
}

/* --- 英語コピー：横一列のアウトラインデザイン --- */
.hero-text.one-line-outline {
    font-family: var(--font-display);
    font-size: 4.5vw; /* 1行でインパクトのあるサイズ */
    font-weight: 400;
    letter-spacing: 0.1em;
    color: transparent; /* 中を透明に */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8); /* 白のアウトライン */
    text-align: center;
    white-space: nowrap;

    /* アニメーション：下からふわっと（プリローダー後の登場演出） */
    opacity: 0;
    transform: translateY(30px);
    animation: fvReveal 1.2s forwards 1s ease-out;
}

/* サイト内ナビ（プリローダー非表示）時は FV のエントリーアニメーションをスキップ。
   ロゴクリックで TOP に戻った際の「一旦消えて再フェードイン」を防ぐ。
   初回訪問・リロード時の登場演出は維持。 */
html.no-preloader .hero-text,
html.no-preloader .hero-text.one-line-outline,
html.no-preloader .hero-subtext-jp {
    opacity: 1;
    transform: none;
    animation: none;
}

/* --- 日本語コピー：装飾なし・中央配置 --- */
.hero-subtext-jp {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    
    /* 英語の少し後に表示 */
    opacity: 0;
    transform: translateY(20px);
    animation: fvReveal 1.2s forwards 1.6s ease-out;
}

/* 共通のアニメーション */
@keyframes fvReveal {
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* スマホ用の調整 */
@media screen and (max-width: 768px) {
    .hero-text.one-line-outline {
        font-size: 8.5vw; /* スマホでも1行に収まるサイズ */
        -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.8);
    }
    .hero-subtext-jp {
        font-size: 0.9rem;
        letter-spacing: 0.15em;
        margin-top: 15px;
    }
}

/* =========================================
   ▼▼▼ 2026 RENEWAL ▼▼▼
   建築・図面トーン強化／GSAP+Lenis 連動
   ========================================= */

/* セクション共通の薄い天地ライン（寸法線風） */
.section + .section,
.marquee + .section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* セクションヘッダーに「右端の小さな英文ラベル」を追加 */
.section-header { position: relative; }
.section-meta {
    margin-left: auto;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: #999;
    align-self: center;
}

/* セクションリード文 */
.section-lead {
    font-size: 0.95rem;
    line-height: 2;
    color: #555;
    max-width: 640px;
    margin-bottom: 100px;
    letter-spacing: 0.05em;
}

/* =========================================
   SCROLL PROGRESS BAR（右端の縦寸法線）
   ========================================= */
.scroll-progress {
    position: fixed;
    top: 0; right: 26px;
    width: 1px; height: 100vh;
    z-index: 90;
    pointer-events: none;
    display: none;
}
@media (min-width: 769px) {
    .scroll-progress { display: block; }
}
.scroll-progress__track {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.08);
    transition: background 0.4s;
}
.scroll-progress__bar {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 0;
    background: var(--accent-cobalt);
    transition: background 0.4s;
}
.scroll-progress__label {
    position: absolute;
    bottom: 60px; right: 14px;
    writing-mode: vertical-rl;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: rgba(0, 0, 0, 0.45);
    transition: color 0.4s;
}
/* FV 内（黒背景）では白く反転 */
body.is-fv .scroll-progress__track { background: rgba(255, 255, 255, 0.18); }
body.is-fv .scroll-progress__bar   { background: #fff; }
body.is-fv .scroll-progress__label { color: rgba(255, 255, 255, 0.7); }

/* =========================================
   COORDINATE HUD（左下の図面風 HUD）
   ========================================= */
.coord-hud {
    position: fixed;
    bottom: 28px; left: 28px;
    z-index: 90;
    pointer-events: none;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: rgba(0, 0, 0, 0.55);
    display: none;
    flex-direction: column;
    gap: 4px;
    transition: color 0.4s;
}
@media (min-width: 769px) {
    .coord-hud { display: flex; }
}
.coord-hud__row { display: flex; gap: 14px; }
.coord-hud__row em {
    font-style: normal;
    color: rgba(0, 0, 0, 0.35);
    width: 30px;
    transition: color 0.4s;
}
body.is-fv .coord-hud           { color: rgba(255, 255, 255, 0.7); }
body.is-fv .coord-hud__row em   { color: rgba(255, 255, 255, 0.45); }

/* =========================================
   MARQUEE（FV直下の横流れ英文）
   ========================================= */
.marquee {
    overflow: hidden;
    background: #000;
    color: #fff;
    padding: 26px 0;
    position: relative;
    z-index: 3;
}
.marquee__track {
    display: flex;
    white-space: nowrap;
    gap: 56px;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    font-weight: 400;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}
.marquee__track > span { flex-shrink: 0; }
.marquee__dot {
    font-size: 0.45rem;
    opacity: 0.5;
    transform: translateY(-3px);
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .marquee { padding: 18px 0; }
    .marquee__track { font-size: 0.85rem; gap: 36px; }
}

/* =========================================
   PROCESS（縦タイムライン）
   ========================================= */
.section--process { background: #fafafa; }

.process-list {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}
.process-step {
    position: relative;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;
    padding: 70px 0;
    align-items: start;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}
.process-step:last-child { border-bottom: none; }

.process-step__num {
    font-family: var(--font-display);
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #000;
}
.process-step__index {
    font-size: 5rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
}
.process-step__total {
    font-size: 1rem;
    color: #999;
}
.process-step__body {
    position: relative;
    padding-left: 40px;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
}
.process-step__title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: #000;
}
.process-step__jp {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 28px;
    letter-spacing: 0.25em;
}
.process-step__desc {
    font-size: 0.95rem;
    line-height: 2;
    color: #333;
    max-width: 580px;
}

@media (max-width: 768px) {
    .process-step {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 50px 0;
    }
    .process-step__index { font-size: 3.4rem; }
    .process-step__title { font-size: 1.6rem; }
    .process-step__body  { padding-left: 20px; }
}

/* =========================================
   SERVICES: カードに左上ナンバー
   ========================================= */
.service-card {
    position: relative;
    padding: 50px 40px 40px;
}
.service-card__num {
    position: absolute;
    top: 22px; right: 28px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--accent-cobalt);
    z-index: 2;
    transition: color 0.4s;
    font-weight: 600;
}
/* ホバー時はカードが黒背景になる。コバルトのままだと沈むのでライムへ */
.service-card:hover .service-card__num {
    color: var(--accent-lime);
}

/* =========================================
   WORKS（Coming Soon・図面風グリッド）
   ========================================= */
.section--works { background: #fafafa; }

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 80px;
}
.works-cell {
    background: #fafafa;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-display);
    letter-spacing: 0.25em;
    position: relative;
    overflow: hidden;
}
/* 図面風の対角線（バツ印） */
.works-cell::before,
.works-cell::after {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 141.4%;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    transform-origin: left center;
}
.works-cell::before { transform: rotate(33.69deg); }
.works-cell::after  { transform: rotate(-33.69deg); transform-origin: left top; top: 0; }
.works-cell span {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 8px;
    z-index: 2;
}
.works-cell em {
    position: relative;
    font-style: normal;
    font-size: 0.65rem;
    color: #999;
    z-index: 2;
}
.works-message {
    text-align: center;
    font-family: var(--font-display);
}
.works-message__en {
    display: block;
    font-size: 1.4rem;
    font-weight: 400;
    color: #000;
    letter-spacing: 0.2em;
    margin-bottom: 14px;
}
.works-message__jp {
    display: block;
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 0.4em;
    font-family: var(--font-main);
}
@media (max-width: 768px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .works-message__en { font-size: 1.1rem; }
}

/* =========================================
   COMPANY（図面ドラフト風レイアウト）
   ========================================= */
.section--company { background: #fff; }

/* =========================================
   SCROLL REVEAL 初期状態（GSAPで is-visible 付与）
   ========================================= */
.js-reveal,
.js-step {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 1.1s cubic-bezier(0.19, 1, 0.22, 1),
        transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}
.js-reveal.is-visible,
.js-step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   ▼▼▼ DRAMATIC SCROLL EFFECTS（後発上書き） ▼▼▼
   ========================================= */


/* =========================================
   FV CORNER LABELS（4隅に分散・被らない）
   ========================================= */
.fv-corner {
    position: absolute;
    z-index: 5;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: none;
    text-transform: uppercase;
    white-space: nowrap;
}
.fv-corner--tl { top: 110px; left: 5%; }
.fv-corner--tr { top: 110px; right: 5%; }

.fv-corner__sep {
    width: 32px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}
.fv-corner__bracket {
    font-size: 1rem;
    opacity: 0.4;
}

@media (max-width: 768px) {
    .fv-corner { font-size: 0.55rem; gap: 10px; letter-spacing: 0.2em; }
    .fv-corner--tl { top: 88px; max-width: 60%; }
    .fv-corner--tl .fv-corner__sep,
    .fv-corner--tl .fv-corner__bracket { display: none; }
    .fv-corner--tr { top: 88px; }
}

/* FV: pin中もスクロール表示が崩れないように */
.fv { will-change: transform; }
.js-fv-video { will-change: transform; }

/* ヒーローテキスト 1文字ずつ用 */
.hero-text .hero-text__char {
    display: inline-block;
    will-change: transform, opacity;
}
.hero-text .hero-text__char--space { width: 0.4em; }

/* スクロールインジケーター：透過時のための準備 */
.scroll-down { will-change: opacity, transform; }

/* =========================================
   SECTION HEADER 強化（巨大タイトル）
   ========================================= */
.section-header {
    display: block !important; /* 旧 flex を上書き */
    margin-bottom: 100px;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 32px;
    position: relative;
    z-index: 2;
}
.section-header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.section-num,
.section-meta {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    color: #888;
    margin: 0 !important;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 9vw, 11rem) !important;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 0.92;
    color: #000;
    position: relative;
    will-change: transform;
}
@media (max-width: 768px) {
    .section-header { margin-bottom: 60px; padding-bottom: 20px; }
    .section-header__top { margin-bottom: 24px; }
    .section-title { font-size: 16vw !important; line-height: 0.95; }
}

/* =========================================
   SECTION GHOST TEXT（背景の超巨大英文）
   ========================================= */
/* body 側の overflow-x: hidden で水平方向は十分クリップされる。
   .section に overflow: hidden を入れると company セクションの sticky が崩れるので付けない。 */
.section-ghost {
    position: absolute;
    top: 50%;
    font-family: var(--font-display);
    font-size: clamp(12rem, 28vw, 28rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    color: rgba(0, 0, 0, 0.04);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    transform: translateY(-50%);
    will-change: transform;
}
.section-ghost[data-ghost-dir="left"]  { left: -8vw; }
.section-ghost[data-ghost-dir="right"] { right: -8vw; }

/* COMPANY セクションの ghost は白背景なので少しだけ濃く */
.section--company .section-ghost { color: rgba(0, 0, 0, 0.05); }

/* =========================================
   PROCESS: 縦のスパイン（線描画）
   ========================================= */
.process-list {
    position: relative;
}
.process-spine {
    position: absolute;
    top: 0;
    left: 220px; /* 1列目の幅と一致 */
    width: 1px;
    height: 100%;
    background: rgba(0, 0, 0, 0.08);
    z-index: 0;
    pointer-events: none;
}
.process-spine__fill {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 0%;
    background: #000;
    will-change: height;
}
.process-step {
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .process-spine { display: none; }
}

/* PROCESS: 数字をさらに巨大化 */
.process-step__index {
    font-size: clamp(4rem, 7vw, 8rem);
}

/* =========================================
   SERVICES: 横スクロールレール
   ========================================= */
.section--service { padding-bottom: 0; overflow: visible; }

.services-rail {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #fafafa;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.services-rail__counter {
    position: absolute;
    top: 50px; right: 5%;
    z-index: 10;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: #999;
    display: flex;
    gap: 8px;
}
.services-rail__counter .js-rail-current {
    color: #000;
    font-weight: 500;
    transition: color 0.3s;
    min-width: 24px;
    text-align: right;
}
.services-rail__divider { opacity: 0.5; }

.services-rail__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 100%;
    width: max-content;
    padding-left: 5%;
    padding-right: 50vw;
    gap: 60px;
    will-change: transform;
}

.services-rail .service-card {
    flex: 0 0 460px;
    width: 460px;
    height: 60vh;
    min-height: 480px;
    padding: 50px 44px 44px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.19,1,0.22,1);
}
.services-rail .service-card:hover { transform: translateY(-10px); }

.services-rail .service-card .card-inner {
    position: absolute;
    bottom: 44px; left: 44px; right: 44px;
}
.services-rail .service-card h4 {
    font-size: 2.4rem;
    line-height: 1.1;
    margin-bottom: 14px;
}
.services-rail .service-card .arrow {
    position: absolute;
    bottom: -10px;
    right: 0;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .services-rail {
        height: auto;
        padding: 40px 0;
        overflow: visible;
    }
    .services-rail__counter { display: none; }
    .services-rail__track {
        flex-direction: column;
        width: 100%;
        padding: 0 5%;
        gap: 24px;
    }
    .services-rail .service-card {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        min-height: auto;
        aspect-ratio: 4 / 3;
    }
}

/* =========================================
   WORKS: ホバー強化
   ========================================= */
.works-cell {
    transition: background 0.4s, color 0.4s;
}
.works-cell:hover {
    background: #000;
}
.works-cell:hover span,
.works-cell:hover em {
    color: #fff;
}
.works-cell:hover::before,
.works-cell:hover::after {
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   MARQUEE: パララックス（GSAPで二重化）
   ========================================= */
.marquee { z-index: 4; }

/* =========================================
   セクション余白（巨大化したタイトルに合わせて）
   ========================================= */
.section { padding: 160px 5% 160px; }
.section--service { padding: 160px 5% 0; }
@media (max-width: 768px) {
    .section { padding: 100px 5% 100px; }
    .section--service { padding: 100px 5% 0; }
}

/* =========================================
   ▼▼▼ RESPONSIVE 強化 ▼▼▼
   ========================================= */

/* --- ヒーローテキスト：小型画面でも一行に収める --- */
@media (max-width: 768px) {
    .hero-text.one-line-outline {
        font-size: 6.2vw;
        letter-spacing: 0.04em;
        -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.85);
    }
    .hero-subtext-jp {
        font-size: 0.85rem;
        letter-spacing: 0.18em;
    }
}

/* =========================================
   タブレット（769 - 1024px）：中間サイズ
   ========================================= */
@media (min-width: 769px) and (max-width: 1024px) {
    .section { padding: 120px 5%; }
    .section--service { padding: 120px 5% 0; }

    .section-title { font-size: clamp(2.8rem, 8.5vw, 8rem) !important; }
    .section-header { margin-bottom: 70px; padding-bottom: 24px; }
    .section-header__top { margin-bottom: 28px; }
    .section-lead { font-size: 0.92rem; margin-bottom: 70px; }

    .process-step {
        grid-template-columns: 160px 1fr;
        gap: 40px;
        padding: 56px 0;
    }
    .process-step__index { font-size: clamp(3rem, 5.5vw, 5rem); }
    .process-step__title { font-size: 1.8rem; }
    .process-step__body { padding-left: 32px; }
    .process-spine { left: 160px; }

    .services-rail .service-card {
        flex: 0 0 380px;
        width: 380px;
        height: 56vh;
        min-height: 420px;
        padding: 44px 36px 36px;
    }
    .services-rail .service-card h4 { font-size: 2rem; }
    .services-rail .service-card .card-inner { bottom: 36px; left: 36px; right: 36px; }

    .works-cell { aspect-ratio: 5 / 4; }

    .fv-corner { font-size: 0.65rem; gap: 12px; }
    .fv-corner--tl { max-width: 50%; }

    .marquee__track { font-size: 0.95rem; gap: 48px; }
}

/* =========================================
   小型スマホ（480px以下）：さらにコンパクト
   ========================================= */
@media (max-width: 480px) {
    .section { padding: 80px 5%; }
    .section--service { padding: 80px 5% 0; }

    .section-header { margin-bottom: 44px; padding-bottom: 16px; }
    .section-header__top { margin-bottom: 18px; }
    .section-num, .section-meta { font-size: 0.62rem; letter-spacing: 0.25em; }
    .section-lead { font-size: 0.85rem; margin-bottom: 50px; line-height: 1.9; }

    .process-step { padding: 40px 0; }
    .process-step__index { font-size: 2.8rem; }
    .process-step__title { font-size: 1.4rem; margin-bottom: 4px; }
    .process-step__jp { font-size: 0.74rem; margin-bottom: 18px; letter-spacing: 0.18em; }
    .process-step__desc { font-size: 0.84rem; line-height: 1.9; }
    .process-step__body { padding-left: 16px; }

    .services-rail { padding: 30px 0; }
    .services-rail__track { gap: 18px; padding: 0 5%; }
    .services-rail .service-card { padding: 30px 26px 26px; }
    .services-rail .service-card h4 { font-size: 1.55rem; }

    .marquee { padding: 14px 0; }
    .marquee__track { font-size: 0.7rem; gap: 24px; letter-spacing: 0.18em; }

    .works-grid { grid-template-columns: 1fr; }
    .works-cell { aspect-ratio: 16 / 9; }
    .works-cell span { font-size: 0.78rem; }
    .works-message__en { font-size: 1rem; letter-spacing: 0.15em; margin-bottom: 8px; }
    .works-message__jp { font-size: 0.7rem; letter-spacing: 0.25em; }

    .scroll-down { bottom: 20px; gap: 12px; }
    .scroll-down span { font-size: 0.58rem; letter-spacing: 0.35em; text-indent: 0.35em; }
    .scroll-down .line { height: 40px; }

    .fv-corner { font-size: 0.5rem; letter-spacing: 0.15em; gap: 8px; }
    .fv-corner--tl { max-width: 65%; }
}

/* =========================================
   タッチデバイス：カスタムカーソル＆ホバー前提を無効化
   （iPad など hover を持たないデバイスをカバー）
   ========================================= */
@media (hover: none), (pointer: coarse) {
    .cursor, .cursor-follower { display: none !important; }
    *, *::before, *::after { cursor: auto !important; }
}

/* =========================================
   横方向はみ出しの安全策
   ghost text などを section 内でクリップ
   （overflow: clip は scroll コンテナを作らないので sticky を壊さない）
   ========================================= */
.section { overflow-x: clip; }

/* =========================================
   prefers-reduced-motion: 派手な動きを抑える
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee__track,
    .scroll-down .line::after,
    .status-blink {
        animation: none !important;
    }
    .js-reveal,
    .js-step {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================
   ▼▼▼ COMPANY MINI (TOP 用最小版)  ▼▼▼
   ========================================= */
.section--company-mini { padding: 160px 5%; }

.company-mini {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0 0;
}

/* company-mini 専用のリビールアニメーション。
   GSAP/ScrollTrigger に依存せず、IntersectionObserver + @keyframes で
   確実に動かす。 */
.cm-item {
    opacity: 0;
    transform: translateY(80px) scale(0.94);
    will-change: opacity, transform;
}
.company-mini.cm-active .cm-item {
    animation: cmReveal 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.company-mini.cm-active .cm-item:nth-child(1) { animation-delay: 0s;    }
.company-mini.cm-active .cm-item:nth-child(2) { animation-delay: 0.15s; }
.company-mini.cm-active .cm-item:nth-child(3) { animation-delay: 0.30s; }

@keyframes cmReveal {
    0%   { opacity: 0; transform: translateY(80px) scale(0.94); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .cm-item {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

.company-mini__lead {
    font-size: 1.15rem;
    line-height: 2.1;
    color: #111;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}

.company-mini__sub {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 70px;
}

.company-mini__cta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 20px 44px;
    border: 1px solid #000;
    color: #000;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.company-mini__cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    transform: translateY(101%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.company-mini__cta:hover { color: #fff; }
.company-mini__cta:hover::before { transform: translateY(0); }

.company-mini__cta-arrow {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.company-mini__cta:hover .company-mini__cta-arrow {
    transform: translateX(8px);
}

@media (max-width: 768px) {
    .section--company-mini { padding: 100px 5%; }
    .company-mini { padding: 10px 0 0; }
    .company-mini__lead { font-size: 0.98rem; line-height: 1.95; }
    .company-mini__sub { font-size: 0.72rem; letter-spacing: 0.3em; margin-bottom: 50px; }
    .company-mini__cta { padding: 16px 32px; font-size: 0.72rem; gap: 14px; }
}

/* =========================================
   CONTACT (TOP最終セクション)

   ・サイト共通の section-header パターン（CONTACT / お問い合わせ）
   ・黒背景でコントラストを取り、視線を集める
   ・本体は中央寄せの「リード文 + 主ボタン + メール」のみ
   ・スクロール到達で .cta-active が付与されると、4要素が順次フェードアップ
   ========================================= */
.section--contact-cta {
    background: #0a0a0a;
    color: #fff;
    padding: 120px 5% 130px;
    position: relative;
    overflow: hidden;
}
.section--contact-cta .section-ghost {
    color: rgba(255, 255, 255, 0.04);
}

/* セクションヘッダーをダーク背景用に上書き */
.section--contact-cta .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}
.section--contact-cta .section-title { color: #fff; }
.section--contact-cta .section-title .section-title-jp { color: rgba(255, 255, 255, 0.65); }
.section--contact-cta .section-meta { color: rgba(255, 255, 255, 0.55); }
/* section-num はコバルト（基本ルール）のまま映える */

.contact-cta {
    position: relative;
    z-index: 1;
}

/* スクロール演出：親の .cta-active トリガで item を順次フェードアップ */
.contact-cta__item {
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
}
.contact-cta.cta-active .contact-cta__item {
    animation: ctaReveal 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.contact-cta.cta-active .contact-cta__item:nth-child(1) { animation-delay: 0.00s; }
.contact-cta.cta-active .contact-cta__body .contact-cta__item:nth-child(1) { animation-delay: 0.18s; }
.contact-cta.cta-active .contact-cta__body .contact-cta__item:nth-child(2) { animation-delay: 0.30s; }
.contact-cta.cta-active .contact-cta__body .contact-cta__item:nth-child(3) { animation-delay: 0.42s; }

@keyframes ctaReveal {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .contact-cta__item {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* 本体：中央寄せの縦並び */
.contact-cta__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    gap: 36px;
}
.contact-cta__lead {
    font-size: 0.98rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.08em;
    margin: 0;
}

/* 主ボタン：Liquid Glass → ホバーでコバルト塗り潰し */
.contact-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 22px 48px;
    /* 暗背景セクションの上の Liquid Glass（明るめにチューニング） */
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.32) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.22) 100%
    );
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.92rem;
    letter-spacing: 0.18em;
    font-weight: 500;
    border: 1px solid var(--glass-dark-border);
    box-shadow: var(--glass-dark-rim);
    position: relative;
    overflow: hidden;
    transition: color 0.5s cubic-bezier(0.19, 1, 0.22, 1),
                border-color 0.5s cubic-bezier(0.19, 1, 0.22, 1),
                transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}
.contact-cta__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-cobalt);
    transform: translateY(101%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}
.contact-cta__btn:hover {
    color: #fff;
    border-color: var(--accent-cobalt);
    transform: translateY(-2px);
}
.contact-cta__btn:hover::before { transform: translateY(0); }
.contact-cta__btn-arrow {
    font-size: 1.05rem;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.contact-cta__btn:hover .contact-cta__btn-arrow { transform: translateX(8px); }

/* セカンダリ：メール直リンク */
.contact-cta__alt-link {
    font-family: var(--font-display);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}
.contact-cta__alt-link:hover {
    color: var(--accent-cobalt);
    border-bottom-color: var(--accent-cobalt);
}

@media (max-width: 768px) {
    .section--contact-cta { padding: 80px 5% 90px; }
    .contact-cta__body { gap: 28px; }
    .contact-cta__lead { font-size: 0.88rem; line-height: 1.9; }
    .contact-cta__btn { padding: 18px 32px; font-size: 0.82rem; gap: 14px; width: 100%; max-width: 320px; justify-content: center; }
}

/* =========================================================
   ▼▼▼ WORKS / COMPANY ドラマチック・スクロール演出 ▼▼▼
   PROCESS の線描画 / SERVICES の横スライドと同じテイストで、
   「製図線が引かれる → セルがずれて立ち上がる → 文字が組まれる」
   という建築設計図風の所作で見せる。
   ========================================================= */

/* ---------- WORKS ---------- */

/* セルの初期状態：sealed（製図ボックスがまだ閉じている） */
.section--works .works-cell.js-reveal {
    opacity: 0;
    transform: translateY(80px) scale(0.94);
    transition:
        opacity 1.1s cubic-bezier(0.19, 1, 0.22, 1),
        transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
}

/* 中身（年号と UNDER CONSTRUCTION）はマスクで持ち上げ */
.section--works .works-cell.js-reveal span,
.section--works .works-cell.js-reveal em {
    transform: translateY(140%);
    opacity: 0;
    transition:
        transform 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.5s,
        opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
}
.section--works .works-cell.js-reveal em {
    transition-delay: 0.62s;
}

/* 製図線（X バツ印）：開始時は左端から幅 0 → 引かれて伸びる */
.section--works .works-cell.js-reveal::before,
.section--works .works-cell.js-reveal::after {
    transform-origin: left center;
    transition: transform 1.3s cubic-bezier(0.19, 1, 0.22, 1) 0.25s;
}
.section--works .works-cell.js-reveal::before {
    transform: rotate(33.69deg) scaleX(0);
}
.section--works .works-cell.js-reveal::after {
    transform: rotate(-33.69deg) scaleX(0);
    transform-origin: left top;
}

/* is-visible 時 ─ スタガー付きで開く */
.section--works .works-cell.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.section--works .works-cell.js-reveal.is-visible::before {
    transform: rotate(33.69deg) scaleX(1);
}
.section--works .works-cell.js-reveal.is-visible::after {
    transform: rotate(-33.69deg) scaleX(1);
}
.section--works .works-cell.js-reveal.is-visible span,
.section--works .works-cell.js-reveal.is-visible em {
    transform: translateY(0);
    opacity: 1;
}
.section--works .works-cell.js-reveal.is-visible em {
    opacity: 0.6;
}

/* セル間スタガー（JS で is-visible は同時付与でも、CSS 側で時差） */
.section--works .works-cell.js-reveal:nth-child(1)  { transition-delay: 0.00s; }
.section--works .works-cell.js-reveal:nth-child(2)  { transition-delay: 0.08s; }
.section--works .works-cell.js-reveal:nth-child(3)  { transition-delay: 0.16s; }
.section--works .works-cell.js-reveal:nth-child(4)  { transition-delay: 0.24s; }
.section--works .works-cell.js-reveal:nth-child(5)  { transition-delay: 0.32s; }
.section--works .works-cell.js-reveal:nth-child(6)  { transition-delay: 0.40s; }
.section--works .works-cell.js-reveal:nth-child(1)::before,
.section--works .works-cell.js-reveal:nth-child(1)::after { transition-delay: 0.20s; }
.section--works .works-cell.js-reveal:nth-child(2)::before,
.section--works .works-cell.js-reveal:nth-child(2)::after { transition-delay: 0.28s; }
.section--works .works-cell.js-reveal:nth-child(3)::before,
.section--works .works-cell.js-reveal:nth-child(3)::after { transition-delay: 0.36s; }
.section--works .works-cell.js-reveal:nth-child(4)::before,
.section--works .works-cell.js-reveal:nth-child(4)::after { transition-delay: 0.44s; }
.section--works .works-cell.js-reveal:nth-child(5)::before,
.section--works .works-cell.js-reveal:nth-child(5)::after { transition-delay: 0.52s; }
.section--works .works-cell.js-reveal:nth-child(6)::before,
.section--works .works-cell.js-reveal:nth-child(6)::after { transition-delay: 0.60s; }

/* WORKS メッセージ：行ごとマスクで立ち上がる */
.works-message {
    overflow: visible;
}
.works-message__en,
.works-message__jp {
    position: relative;
    overflow: hidden;
}
.works-message__en > span,
.works-message__jp > span {
    display: inline-block;
    transform: translateY(120%);
    opacity: 0;
    transition:
        transform 1.0s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 1.0s cubic-bezier(0.19, 1, 0.22, 1);
}
.works-message.is-visible .works-message__en > span {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.05s;
}
.works-message.is-visible .works-message__jp > span {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.20s;
}

/* 縮小モーション設定の方は静的表示 */
@media (prefers-reduced-motion: reduce) {
    .section--works .works-cell.js-reveal,
    .section--works .works-cell.js-reveal::before,
    .section--works .works-cell.js-reveal::after,
    .section--works .works-cell.js-reveal span,
    .section--works .works-cell.js-reveal em,
    .works-message__en > span,
    .works-message__jp > span {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .section--works .works-cell.js-reveal::before { transform: rotate(33.69deg) !important; }
    .section--works .works-cell.js-reveal::after  { transform: rotate(-33.69deg) !important; }
}

/* ---------- COMPANY MINI 強化 ---------- */

/* lead 文：行ごとにマスク内から押し上げ（JSで cm-line を生成） */
.company-mini__lead .cm-line {
    display: inline-block;
    overflow: hidden;
    line-height: inherit;
    vertical-align: top;
}
.company-mini__lead .cm-line > span {
    display: inline-block;
    transform: translateY(115%);
    transition: transform 1.0s cubic-bezier(0.19, 1, 0.22, 1);
}
.company-mini.cm-active .company-mini__lead .cm-line > span {
    transform: translateY(0);
}
.company-mini.cm-active .company-mini__lead .cm-line--1 > span { transition-delay: 0.55s; }
.company-mini.cm-active .company-mini__lead .cm-line--2 > span { transition-delay: 0.70s; }

/* sub テキスト：letter-spacing がじわっと開く */
.company-mini__sub {
    letter-spacing: 0.2em;
    transition: letter-spacing 1.4s cubic-bezier(0.19, 1, 0.22, 1) 0.65s;
}
.company-mini.cm-active .company-mini__sub {
    letter-spacing: 0.4em;
}

/* CTA：下から線が立ち上がる */
.company-mini__cta {
    position: relative;
}
.company-mini__cta::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: #000;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.95s;
    z-index: 2;
}
.company-mini.cm-active .company-mini__cta::after {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    .company-mini__lead .cm-line > span {
        transform: none !important;
        transition: none !important;
    }
    .company-mini__sub { letter-spacing: 0.4em !important; transition: none !important; }
    .company-mini__cta::after { transform: scaleX(1) !important; transition: none !important; }
}

/* =========================================
   ▼▼▼ LOWER PAGE 共通レイアウト（上書き強化） ▼▼▼
   ========================================= */
main.lower-page {
    padding-top: 180px;  /* ヘッダー回避 */
    min-height: 70vh;
}
@media (max-width: 768px) {
    main.lower-page { padding-top: 120px; }
}

/* ローワーページ用セクションヘッダー */
main.lower-page .section-header {
    margin-bottom: 100px;
}
main.lower-page .section-num,
main.lower-page .section-meta {
    color: #888;
}

/* =========================================
   ▼▼▼ /company ページ ▼▼▼
   ========================================= */
.company-page__intro {
    max-width: 880px;
    margin: 0 auto 120px;
    text-align: center;
}
.company-page__lead-en {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #000;
    line-height: 1.4;
    margin-bottom: 16px;
}
.company-page__lead-jp {
    font-size: 0.95rem;
    letter-spacing: 0.3em;
    color: #888;
    margin-bottom: 50px;
}
.company-page__story {
    font-size: 1rem;
    line-height: 2.1;
    color: #333;
    letter-spacing: 0.05em;
}

.company-page__block {
    max-width: 1000px;
    margin: 0 auto 100px;
}
.company-page__heading {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-color);
}

.company-page__heading-num {
    color: var(--accent-cobalt);
    margin-right: 24px;
    font-weight: 600;
}

/* 業務領域リスト */
.business-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.business-list__item {
    background: #fff;
    padding: 36px 64px 36px 32px; /* 右側に矢印スペース */
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    color: inherit;
    text-decoration: none;
    transition: background 0.4s;
}
.business-list__item:hover {
    background: #fafafa;
}
.business-list__num {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 0.3em;
    transition: color 0.4s;
}
.business-list__item:hover .business-list__num {
    color: var(--accent-cobalt, #1a4ad8);
}
.business-list__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.business-list__desc {
    font-size: 0.85rem;
    color: #666;
}
/* リンク矢印：右端に縦中央配置、ホバーで右にスライド */
.business-list__arrow {
    position: absolute;
    top: 50%;
    right: 28px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1;
    color: #999;
    transform: translateY(-50%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), color 0.4s;
    pointer-events: none;
}
.business-list__item:hover .business-list__arrow {
    color: #000;
    transform: translate(8px, -50%);
}

@media (max-width: 768px) {
    .business-list { grid-template-columns: 1fr; }
    .business-list__item { padding: 28px 54px 28px 22px; }
    .business-list__title { font-size: 1.2rem; }
    .business-list__arrow { right: 22px; font-size: 1rem; }
}

/* 戻るCTA */
.lower-page__back {
    text-align: center;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--line-color);
}
.lower-page__back a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: #000;
    text-transform: uppercase;
    transition: gap 0.3s;
}
.lower-page__back a:hover { gap: 22px; }
.lower-page__back-arrow {
    display: inline-block;
    transition: transform 0.3s;
}
.lower-page__back a:hover .lower-page__back-arrow {
    transform: translateX(-6px);
}

/* =========================================
   ▼▼▼ /works ページ ▼▼▼
   ========================================= */
.works-page__intro {
    max-width: 720px;
    margin: 0 auto 100px;
    text-align: center;
}
.works-page__intro-en {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #000;
    margin-bottom: 16px;
}
.works-page__intro-jp {
    font-size: 0.92rem;
    line-height: 2.1;
    color: #666;
    letter-spacing: 0.08em;
}


/* =========================================
   /works ページ : Filter (装飾用)
   ========================================= */
.works-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 auto 60px;
    max-width: 900px;
}
.works-filter__btn {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #555;
    padding: 10px 22px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.works-filter__btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #000;
    border-color: rgba(0, 0, 0, 0.3);
}
.works-filter__btn.is-active {
    background: var(--accent-lime);
    color: #0a0a0a;
    border-color: var(--accent-lime);
    font-weight: 600;
}

/* =========================================
   /works ページ : Project listing
   ========================================= */
.project-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列グリッド */
    gap: 60px 28px;
}
.project-card {
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.project-card:hover {
    transform: translateY(-8px);
}

/* Card Visual */
.project-card__visual {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    overflow: hidden;
    margin-bottom: 24px;
    transition: background 0.4s;
}
/* 図面風の対角線 */
.project-card__visual::before,
.project-card__visual::after {
    content: '';
    position: absolute;
    background: rgba(0, 0, 0, 0.06);
    transition: background 0.4s;
}
.project-card__visual::before {
    top: 0; left: 0;
    width: 141.4%;
    height: 1px;
    transform-origin: left top;
    transform: rotate(36.87deg);
}
.project-card__visual::after {
    top: 0; right: 0;
    width: 141.4%;
    height: 1px;
    transform-origin: right top;
    transform: rotate(-36.87deg);
}
.project-card:hover .project-card__visual {
    background: #000;
}
.project-card:hover .project-card__visual::before,
.project-card:hover .project-card__visual::after {
    background: rgba(255, 255, 255, 0.12);
}

.project-card__num {
    position: absolute;
    top: 24px; left: 28px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: #000;
    z-index: 2;
    transition: color 0.4s;
}
.project-card__year {
    position: absolute;
    top: 24px; right: 28px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: #999;
    z-index: 2;
    transition: color 0.4s;
}
.project-card__placeholder {
    position: absolute;
    bottom: 24px; left: 28px;
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    color: #aaa;
    z-index: 2;
    transition: color 0.4s;
    text-transform: uppercase;
}
.project-card:hover .project-card__num,
.project-card:hover .project-card__year,
.project-card:hover .project-card__placeholder {
    color: rgba(255, 255, 255, 0.85);
}

/* Card Meta */
.project-card__category {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.project-card__title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #000;
    margin-bottom: 14px;
    transition: color 0.3s;
}
.project-card:hover .project-card__title {
    color: #000;
}
.project-card__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: #999;
    text-transform: uppercase;
}
.project-card__status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-coral);
    border-radius: 50%;
    opacity: 0.9;
    animation: blinkStatus 2s ease-in-out infinite;
}

/* タブレット：2列に */
@media (max-width: 1024px) {
    .project-list { grid-template-columns: repeat(2, 1fr); gap: 50px 24px; }
}

@media (max-width: 768px) {
    .project-card__title { font-size: 1.3rem; }
}

/* スマホ：1列に */
@media (max-width: 600px) {
    .project-list { grid-template-columns: 1fr; gap: 40px 0; }
}

/* 3列時の card 内部の調整 */
.project-card__num {
    font-size: 0.78rem;
}
.project-card__title {
    font-size: 1.35rem;
}

/* =========================================
   PROJECT MODAL（クリックで開く詳細ポップアップ）
   ========================================= */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.project-modal.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.45s ease, visibility 0s linear 0s;
}

.project-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.project-modal__container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.96);
    width: 92%;
    max-width: 920px;
    max-height: 88vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Liquid Glass のモーダル：暗いオーバーレイ越しに浮かぶ */
    /* 本文の可読性を保つため、ヘッダーよりは濃いめ（0.75付近）に設定 */
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(255, 255, 255, 0.58) 50%,
        rgba(255, 255, 255, 0.7) 100%
    );
    backdrop-filter: blur(24px) saturate(220%) contrast(1.1) brightness(1.05);
    -webkit-backdrop-filter: blur(24px) saturate(220%) contrast(1.1) brightness(1.05);
    color: #000;
    border: 1px solid var(--glass-light-border);
    border-radius: 20px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),
        inset 0 1.5px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06),
        inset 0 0 40px rgba(255, 255, 255, 0.2),
        0 40px 80px -20px rgba(0, 0, 0, 0.45),
        0 12px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.55s cubic-bezier(0.19, 1, 0.22, 1);
}
.project-modal.is-open .project-modal__container {
    transform: translate(-50%, -50%) scale(1);
}

/* Close button (×印を CSS で描画) — Liquid Glass の小さい円形ボタン */
.project-modal__close {
    position: absolute;
    top: 20px; right: 20px;
    width: 44px; height: 44px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.25) 100%
    );
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        0 6px 16px -4px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s, transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.project-modal__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 1px;
    background: #000;
    transition: background 0.3s;
}
.project-modal__close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.project-modal__close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.project-modal__close:hover {
    background: #000;
    border-color: #000;
    transform: rotate(90deg);
}
.project-modal__close:hover span {
    background: #fff;
}

/* Modal Visual area（カードと同じ図面風プレースホルダ） */
.project-modal__visual {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f5f5f5;
    overflow: hidden;
}
.project-modal__visual::before,
.project-modal__visual::after {
    content: '';
    position: absolute;
    background: rgba(0, 0, 0, 0.06);
}
.project-modal__visual::before {
    top: 0; left: 0;
    width: 200%;
    height: 1px;
    transform-origin: left top;
    transform: rotate(29deg);
}
.project-modal__visual::after {
    top: 0; right: 0;
    width: 200%;
    height: 1px;
    transform-origin: right top;
    transform: rotate(-29deg);
}
.project-modal__num {
    position: absolute;
    top: 28px; left: 32px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    color: #000;
    z-index: 2;
}
.project-modal__year {
    position: absolute;
    top: 28px; right: 80px; /* close ボタンと被らないよう余白 */
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #777;
    z-index: 2;
}
.project-modal__placeholder {
    position: absolute;
    bottom: 28px; left: 32px;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: #999;
    text-transform: uppercase;
    z-index: 2;
}

/* Modal Body */
.project-modal__body {
    padding: 56px 56px 64px;
}
.project-modal__category {
    display: block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.project-modal__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #000;
    line-height: 1.2;
    margin-bottom: 18px;
}
.project-modal__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 36px;
}
.project-modal__status::before {
    content: '';
    width: 7px; height: 7px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.5;
    animation: blinkStatus 2s ease-in-out infinite;
}

.project-modal__description {
    font-size: 0.95rem;
    line-height: 2;
    color: #333;
    letter-spacing: 0.04em;
    margin-bottom: 36px;
}

.project-modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 44px;
}
.project-modal__tag {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #555;
    padding: 6px 14px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 100px;
    text-transform: uppercase;
}

.project-modal__info {
    border-top: 1px solid var(--line-color);
}
.project-modal__info-row {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-color);
}
.project-modal__info-row dt {
    width: 30%;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    color: #888;
    text-transform: uppercase;
}
.project-modal__info-row dd {
    width: 70%;
    font-size: 0.92rem;
    color: #000;
}

@media (max-width: 768px) {
    .project-modal__container { width: 94%; max-height: 92vh; }
    .project-modal__close { top: 12px; right: 12px; width: 38px; height: 38px; }
    .project-modal__year { right: 64px; }
    .project-modal__body { padding: 36px 28px 40px; }
    .project-modal__num { top: 18px; left: 20px; }
    .project-modal__year { top: 18px; right: 60px; }
    .project-modal__placeholder { bottom: 18px; left: 20px; }
    .project-modal__info-row { flex-direction: column; gap: 4px; }
    .project-modal__info-row dt,
    .project-modal__info-row dd { width: 100%; }
}

/* スクロールロック中の補助 */
body.modal-open { overflow: hidden; }


/* =====================================================================
   ============================ JP 小見出し =============================
   英語の大見出しに「日本語の補助小見出し」を必ず添える。全ページ統一。
   ===================================================================== */

/* セクションタイトル直下の JP 小見出し（H3 内の span として配置） */
.section-title .section-title-jp,
.sd-hero__en .section-title-jp {
    display: block;
    font-family: var(--font-main);
    font-size: clamp(0.78rem, 1.1vw, 1.05rem);
    font-weight: 400;
    letter-spacing: 0.32em;
    color: #777;
    margin-top: 18px;
    line-height: 1.5;
    text-transform: none;
}
.sd-hero__en .section-title-jp {
    color: #555;
    letter-spacing: 0.28em;
    margin-top: 12px;
}

/* 詳細ページの Deliverables カードのタイトル直下に JP */
.sd-deliv-card__title-jp {
    display: block;
    font-size: 0.74rem;
    color: #888;
    letter-spacing: 0.16em;
    line-height: 1.6;
    margin: -4px 0 14px;
}

/* Approach の phase 名（英語）の下に JP を出す既存 .process-step__jp を流用 */
.sd-approach .process-step__jp {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: #777;
    margin-top: 4px;
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .section-title .section-title-jp,
    .sd-hero__en .section-title-jp {
        font-size: 0.72rem;
        letter-spacing: 0.22em;
        margin-top: 12px;
    }
    .sd-deliv-card__title-jp {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
    }
}

/* =====================================================================
   サービス系ページ：日本語メイン + 英語サブの見出しパターン
   - TOP の SERVICES セクション
   - /service ハブ
   - /service/<slug> 詳細ページ
   ===================================================================== */

/* セクションタイトル：JP メイン版（modifier 適用時） */
.section-title.section-title--jp {
    font-family: 'Zen Kaku Gothic New', var(--font-main);
    font-size: clamp(2rem, 5.5vw, 4.8rem) !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: none;
}
.section-title--jp .section-title__jp {
    display: block;
}
.section-title--jp .section-title__en {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(0.7rem, 1vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.35em;
    color: #777;
    margin-top: 18px;
    text-transform: uppercase;
}

/* HERO 見出し：JP メイン版 */
.sd-hero__en.sd-hero__en--jp {
    font-family: 'Zen Kaku Gothic New', var(--font-main);
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.03em;
}
.sd-hero__en--jp .section-title__jp {
    display: block;
}
.sd-hero__en--jp .section-title__en {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(0.72rem, 1vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.32em;
    color: #555;
    margin-top: 14px;
    text-transform: uppercase;
}

/* TOP のサービスレールカード：JP メイン + EN サブ */
.service-card .service-card__jp {
    font-family: 'Zen Kaku Gothic New', var(--font-main);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    color: inherit;
}
.service-card .service-card__en {
    font-family: var(--font-display);
    font-size: 0.78rem;
    color: #666;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: color 0.4s;
    margin: 0;
}
.service-card:hover .service-card__en { color: #aaa; }

.services-rail .service-card .service-card__jp {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* /service ハブカード：visual roles を反転（JP がメイン、EN がサブ） */
.service-hub-card__jp {
    font-family: 'Zen Kaku Gothic New', var(--font-main) !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.3 !important;
    color: #000 !important;
    margin-bottom: 6px !important;
    transition: color 0.5s;
}
.service-hub-card__link:hover .service-hub-card__jp { color: #fff !important; }

.service-hub-card__en {
    font-family: var(--font-display) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: #777 !important;
    letter-spacing: 0.28em !important;
    line-height: 1.5 !important;
    text-transform: uppercase;
    margin-bottom: 18px !important;
    transition: color 0.5s;
}
.service-hub-card__link:hover .service-hub-card__en { color: #bbb !important; }

/* Deliverables カード：JP メイン + EN サブ */
.sd-deliv-card__title.sd-deliv-card__title--jp {
    font-family: 'Zen Kaku Gothic New', var(--font-main);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.sd-deliv-card__title-en {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: #888;
    text-transform: uppercase;
    margin: 0 0 14px;
    font-weight: 500;
}

/* Approach プロセスステップ：JP メイン + EN サブ */
.process-step__title.process-step__title--jp {
    font-family: 'Zen Kaku Gothic New', var(--font-main);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin-bottom: 4px;
}
.process-step__en {
    font-family: var(--font-display);
    font-size: 0.78rem;
    color: #777;
    letter-spacing: 0.28em;
    margin-bottom: 22px;
    text-transform: uppercase;
    font-weight: 500;
}
.sd-approach .process-step__title.process-step__title--jp { font-size: 1.5rem; }
.sd-approach .process-step__en { font-size: 0.78rem; margin-bottom: 16px; }

/* Other Services prev/next カード：visual roles を反転 */
.sd-other-card .sd-other-card__jp {
    font-family: 'Zen Kaku Gothic New', var(--font-main);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.03em;
    color: inherit;
    margin-top: 4px;
    transition: color 0.5s;
}
.sd-other-card .sd-other-card__en {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: #777;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0;
    transition: color 0.5s;
}
.sd-other-card:hover .sd-other-card__jp { color: #fff; }
.sd-other-card:hover .sd-other-card__en { color: #bbb; }

/* SP（768px 以下）の調整 */
@media (max-width: 768px) {
    .section-title.section-title--jp {
        font-size: clamp(1.6rem, 6.5vw, 2.6rem) !important;
        line-height: 1.3;
    }
    .section-title--jp .section-title__en {
        font-size: 0.65rem;
        letter-spacing: 0.25em;
        margin-top: 10px;
    }
    .sd-hero__en.sd-hero__en--jp { font-size: clamp(1.6rem, 7vw, 2.6rem); }
    .sd-hero__en--jp .section-title__en {
        font-size: 0.7rem;
        letter-spacing: 0.22em;
        margin-top: 10px;
    }
    .services-rail .service-card .service-card__jp { font-size: 1.3rem; }
    .service-card .service-card__en { font-size: 0.7rem; letter-spacing: 0.18em; }
    .service-hub-card__jp { font-size: 1.25rem !important; }
    .service-hub-card__en { font-size: 0.7rem !important; }
    .sd-deliv-card__title.sd-deliv-card__title--jp { font-size: 1rem; }
    .sd-deliv-card__title-en { font-size: 0.65rem; letter-spacing: 0.18em; }
    .process-step__title.process-step__title--jp,
    .sd-approach .process-step__title.process-step__title--jp { font-size: 1.25rem; }
    .process-step__en { font-size: 0.7rem; letter-spacing: 0.22em; margin-bottom: 14px; }
    .sd-other-card .sd-other-card__jp { font-size: 1.15rem; }
    .sd-other-card .sd-other-card__en { font-size: 0.68rem; }
}

@media (max-width: 1024px) {
    .services-rail .service-card .service-card__jp { font-size: 1.7rem; }
    .process-step__title.process-step__title--jp { font-size: 1.4rem; }
}

/* =====================================================================
   NEWS（お知らせ）：TOP 直近3件 + /news 一覧ページ共通
   - 編集デザイン的なフラットリスト
   - 日付・カテゴリ・タイトルを横並びで、罫線で区切る
   - カテゴリは小型バッジ（INFO / PRESS / NOTICE / MEDIA）
   ===================================================================== */
.section--news {
    background: #fff;
}
.news-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.news-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.news-item__inner {
    display: grid;
    grid-template-columns: 110px 90px 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 22px 4px;
    color: #000;
    text-decoration: none;
    transition: background 0.4s, padding 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}
.news-item__inner--link:hover {
    background: rgba(0, 0, 0, 0.02);
    padding-left: 16px;
}
.news-item__date {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #555;
}
.news-item__cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* 日本語ラベルなので JP フォントを優先、letter-spacing は控えめに */
    font-family: 'Zen Kaku Gothic New', var(--font-main);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 5px 11px;
    line-height: 1;
    white-space: nowrap;
}
/* カテゴリ別カラーアクセント（任意） */
.news-item__cat--press {
    color: var(--accent-cobalt, #1a4ad8);
    border-color: var(--accent-cobalt, #1a4ad8);
}
.news-item__cat--media {
    color: #c25b00;
    border-color: #c25b00;
}
.news-item__cat--notice {
    background: rgba(0, 0, 0, 0.04);
}
.news-item__title {
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.04em;
    line-height: 1.5;
}
.news-item__arrow {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: #777;
    transition: transform 0.4s, color 0.4s;
}
.news-item__inner--link:hover .news-item__arrow {
    color: #000;
    transform: translate(3px, -3px);
}

/* TOP の「View All News」リンク */
.news-list__all {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 50px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    padding: 6px 0;
    border-bottom: 1px solid currentColor;
    transition: gap 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.news-list__all:hover {
    gap: 24px;
}
.news-list__all-arrow {
    transition: transform 0.4s;
}
.news-list__all:hover .news-list__all-arrow {
    transform: translateX(6px);
}

/* ---- /news 一覧ページ専用：日付+カテゴリを上段、タイトル+抜粋を本文段 ---- */
.news-page__intro {
    margin-bottom: 60px;
}
.news-page__intro-jp {
    font-size: 0.95rem;
    line-height: 2;
    color: #555;
    max-width: 640px;
    letter-spacing: 0.05em;
    text-wrap: pretty;
}
.news-list--full {
    margin-top: 0;
}
.news-item__inner--full {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: start;
    gap: 40px;
    padding: 32px 4px;
}
/* 一覧ページの矢印は枠の右端に縦中央配置（TOPと揃える） */
.news-item__arrow--full {
    align-self: center;
    font-size: 1rem;
    color: #777;
    padding-left: 20px;
}
.news-item__inner--link:hover .news-item__arrow--full {
    color: #000;
    transform: translateX(8px);
}
.news-item__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding-top: 4px;
}
.news-item__title--full {
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 12px;
    color: #000;
    letter-spacing: 0.04em;
}
.news-item__excerpt {
    font-size: 0.9rem;
    line-height: 1.95;
    color: #444;
    letter-spacing: 0.04em;
    max-width: 720px;
    text-wrap: pretty;
}
.news-page__empty {
    margin-top: 60px;
    padding: 48px 0;
    text-align: center;
    color: #777;
    font-size: 0.95rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.news-page__back {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.news-page__back-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    transition: gap 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.news-page__back-link:hover { gap: 24px; }
.news-page__back-arrow { transition: transform 0.4s; }
.news-page__back-link:hover .news-page__back-arrow { transform: translateX(-6px); }

/* ---- /news/<slug> 詳細ページ ---- */
.news-detail {
    padding-top: 60px;
}
.news-detail__crumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 60px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: #888;
    text-transform: uppercase;
    flex-wrap: wrap;
}
.news-detail__crumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}
.news-detail__crumb a:hover {
    color: #000;
}
.news-detail__crumb-sep {
    color: rgba(0, 0, 0, 0.2);
}
.news-detail__crumb-current {
    color: #000;
    font-family: 'Zen Kaku Gothic New', var(--font-main);
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 0.78rem;
    max-width: 50ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-detail__head {
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.news-detail__meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}
.news-detail__date {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #555;
}
.news-detail__title {
    font-family: 'Zen Kaku Gothic New', var(--font-main);
    font-size: clamp(1.5rem, 3.6vw, 2.6rem) !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    color: #000;
    text-wrap: pretty;
}

.news-detail__body {
    font-size: 0.98rem;
    line-height: 2.1;
    color: #222;
    letter-spacing: 0.04em;
    max-width: 720px;
}
.news-detail__body p {
    margin: 0 0 1.6em;
    text-wrap: pretty;
}
.news-detail__body p:last-child {
    margin-bottom: 0;
}
.news-detail__body strong {
    font-weight: 700;
    color: #000;
}
.news-detail__body a {
    color: var(--accent-cobalt, #1a4ad8);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.3s;
}
.news-detail__body a:hover {
    opacity: 0.7;
}
.news-detail__body ul,
.news-detail__body ol {
    margin: 0 0 1.6em;
    padding-left: 1.4em;
}
.news-detail__body li {
    margin-bottom: 0.4em;
    line-height: 1.95;
}

/* 前後の記事ナビゲーション */
.news-detail__nav {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.news-detail__nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    text-decoration: none;
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fafafa;
    transition: background 0.4s, transform 0.4s;
}
.news-detail__nav-link:hover {
    background: #fff;
    transform: translateY(-2px);
}
.news-detail__nav-link--next {
    text-align: right;
}
.news-detail__nav-dir {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    color: #888;
    text-transform: uppercase;
}
.news-detail__nav-title {
    font-family: 'Zen Kaku Gothic New', var(--font-main);
    font-size: 0.92rem;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.03em;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-detail__back {
    margin-top: 60px;
}
.news-detail__back-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    padding: 6px 0;
    border-bottom: 1px solid currentColor;
    transition: gap 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.news-detail__back-link:hover { gap: 24px; }
.news-detail__back-arrow { transition: transform 0.4s; }
.news-detail__back-link:hover .news-detail__back-arrow { transform: translateX(-6px); }

@media (max-width: 1024px) {
    .news-detail { padding-top: 40px; }
    .news-detail__head { margin-bottom: 40px; padding-bottom: 32px; }
}
@media (max-width: 768px) {
    .news-detail { padding-top: 24px; }
    .news-detail__crumb { margin-bottom: 40px; font-size: 0.62rem; }
    .news-detail__crumb-current { font-size: 0.7rem; max-width: 20ch; }
    .news-detail__head { margin-bottom: 36px; padding-bottom: 24px; }
    .news-detail__meta { gap: 14px; margin-bottom: 18px; }
    .news-detail__date { font-size: 0.85rem; }
    .news-detail__body { font-size: 0.9rem; line-height: 1.95; }
    .news-detail__body p { margin-bottom: 1.4em; }
    .news-detail__nav { grid-template-columns: 1fr; gap: 14px; margin-top: 56px; }
    .news-detail__nav-link { padding: 18px; }
    .news-detail__nav-link--next { text-align: left; }
    .news-detail__back { margin-top: 40px; }
}

/* ---- /works/<slug> 制作実績詳細：アイキャッチ + Client/Role 情報 ---- */
.works-detail__visual {
    margin: 0 0 48px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.10) 100%);
}
.works-detail__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.works-detail__info {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 48px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.works-detail__info-row {
    display: flex;
    align-items: baseline;
    gap: 20px;
    min-width: 240px;
    flex: 1;
    padding: 18px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.works-detail__info-row dt {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    color: #888;
    text-transform: uppercase;
    min-width: 64px;
}
.works-detail__info-row dd {
    margin: 0;
    font-size: 0.92rem;
    color: #1a1a1a;
    letter-spacing: 0.04em;
}
.works-detail__ext-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-cobalt, #1a4ad8);
    transition: opacity 0.3s;
}
.works-detail__ext-link:hover { opacity: 0.7; }

@media (max-width: 768px) {
    .works-detail__visual { margin-bottom: 32px; }
    .works-detail__info { margin-bottom: 32px; }
    .works-detail__info-row {
        min-width: 100%;
        gap: 14px;
        padding: 14px 4px;
    }
    .works-detail__info-row dd { font-size: 0.86rem; }
}

@media (max-width: 1024px) {
    .news-item__inner { grid-template-columns: 100px 80px 1fr auto; gap: 20px; }
    .news-item__inner--full { grid-template-columns: 180px 1fr auto; gap: 32px; }
    .news-item__arrow--full { padding-left: 14px; }
}
@media (max-width: 768px) {
    .news-list { margin-top: 24px; }
    .news-item__inner {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px 4px;
        align-items: flex-start;
    }
    .news-item__inner--link:hover { padding-left: 4px; }
    .news-item__inner > :nth-child(1),
    .news-item__inner > :nth-child(2) {
        display: inline-flex;
    }
    /* SP: 日付とカテゴリは1段目で横並び、タイトルは2段目 */
    .news-item__date,
    .news-item__cat {
        font-size: 0.7rem;
    }
    .news-item__title { font-size: 0.92rem; }
    .news-item__arrow { position: absolute; top: 20px; right: 4px; }
    /* /news 一覧（SP）: 矢印は右上に絶対配置でコンパクト化 */
    .news-item__inner--full {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 24px 28px 24px 4px;
        position: relative;
    }
    .news-item__arrow--full {
        position: absolute;
        top: 24px;
        right: 0;
        padding-left: 0;
        align-self: auto;
    }
    .news-item__head { flex-direction: row; align-items: center; gap: 14px; }
    .news-item__title--full { font-size: 1.02rem; }
    .news-item__excerpt { font-size: 0.85rem; line-height: 1.85; }
    .news-list__all { margin-top: 32px; font-size: 0.7rem; letter-spacing: 0.22em; }
    .news-page__intro-jp { font-size: 0.85rem; }
}


/* =====================================================================
   TOP - PROCESS（水平フロー + スクロール描画線版）：モダン・アート方向
   - PC: 4ステップを横一列、上部の水平線が左→右にスクロール描画
   - SP: 縦一列、左端の縦線がスクロール描画
   - 大きなアウトライン番号を背景にレイヤード
   ===================================================================== */
.process-flow {
    margin-top: 20px;
    position: relative;
    padding-top: 70px;
}
.process-flow__line {
    position: absolute;
    top: 70px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
}
.process-flow__line-track {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}
.process-flow__line-fill {
    position: absolute;
    inset: 0;
    background: var(--accent-cobalt, #1a4ad8);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}
.process-flow__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.process-flow__step {
    position: relative;
    padding-top: 36px;
    text-align: center;
}
.process-flow__node {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #000;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: transform 0.4s, background 0.4s;
}
.process-flow__step.is-visible .process-flow__node {
    background: var(--accent-cobalt, #1a4ad8);
    transform: translateX(-50%) scale(1.25);
}
.process-flow__bignum {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 500;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.07);
    line-height: 1;
    letter-spacing: -0.02em;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}
.process-flow__content {
    position: relative;
    z-index: 1;
    padding: 12px 8px 0;
}
.process-flow__label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.4em;
    color: var(--accent-cobalt, #1a4ad8);
    margin-bottom: 16px;
    text-transform: uppercase;
}
.process-flow__title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #000;
    margin-bottom: 6px;
    line-height: 1.15;
}
.process-flow__jp {
    font-size: 0.82rem;
    color: #666;
    letter-spacing: 0.18em;
    margin-bottom: 20px;
}
.process-flow__desc {
    font-size: 0.88rem;
    line-height: 1.95;
    color: #333;
    max-width: 240px;
    margin: 0 auto;
}

/* PROCESS CTA：マーケ目線で離脱前に行動を促す */
.process-cta {
    /* リード文を撤去し、ボタンのみが残る構成。
       横線で挟まれた中で button が浮く形に整える。 */
    margin-top: 80px;
    padding: 44px 24px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.process-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background: #000;
    color: #fff;
    padding: 18px 36px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.28em;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid #000;
    transition: background 0.4s, color 0.4s, padding 0.4s cubic-bezier(0.19,1,0.22,1);
}
.process-cta__btn:hover {
    background: transparent;
    color: #000;
    padding-left: 44px;
    padding-right: 44px;
}
.process-cta__arrow {
    display: inline-block;
    transition: transform 0.4s;
}
.process-cta__btn:hover .process-cta__arrow {
    transform: translateX(6px);
}

@media (max-width: 1024px) {
    .process-flow { margin-top: 10px; }
    .process-flow__bignum { font-size: 6rem; }
    .process-flow__title { font-size: 1.35rem; }
}
@media (max-width: 768px) {
    .process-flow {
        margin-top: 10px;
        padding-top: 0;
        padding-left: 36px;
    }
    .process-flow__line {
        top: 14px;
        left: 17px;
        right: auto;
        bottom: 14px;
        width: 1px;
        height: auto;
    }
    .process-flow__line-fill {
        transform: scaleY(0);
        transform-origin: top center;
    }
    .process-flow__steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .process-flow__step {
        text-align: left;
        padding-top: 8px;
        padding-left: 0;
        position: relative;
    }
    .process-flow__node {
        top: 14px;
        left: -25px;
        transform: none;
    }
    .process-flow__step.is-visible .process-flow__node {
        transform: scale(1.2);
    }
    .process-flow__bignum {
        top: -10px;
        left: auto;
        right: 0;
        transform: none;
        font-size: 4.5rem;
    }
    .process-flow__content { padding: 0; text-align: left; }
    .process-flow__label { margin-bottom: 8px; }
    .process-flow__title { font-size: 1.4rem; }
    .process-flow__jp { font-size: 0.78rem; margin-bottom: 14px; }
    .process-flow__desc { font-size: 0.88rem; line-height: 1.85; max-width: none; margin: 0; }
    .process-cta { margin-top: 56px; padding: 32px 16px; }
    .process-cta__btn { padding: 16px 28px; font-size: 0.72rem; letter-spacing: 0.22em; }
}

/* =====================================================================
   TOP - SERVICES（Editorial 縦長ロウ版）：写真付き + 左端スクロール描画スパイン
   ===================================================================== */
.services-editorial {
    margin-top: 20px;
    position: relative;
    padding-left: 80px;
}

/* 左端のスクロール描画スパイン線 */
.services-editorial__spine {
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 36px;
    width: 1px;
}
.services-editorial__spine-track {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}
.services-editorial__spine-fill {
    position: absolute;
    inset: 0;
    background: var(--accent-cobalt, #1a4ad8);
    transform: scaleY(0);
    transform-origin: top center;
    will-change: transform;
}

.service-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 40px;
    padding: 64px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #000;
    text-decoration: none;
    position: relative;
    transition: background 0.4s;
}
.service-row:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.service-row:hover {
    background: rgba(0, 0, 0, 0.015);
}
.service-row__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding-top: 4px;
    position: relative;
}
/* スパイン線上に乗るノード（行頭の点） */
.service-row__node {
    position: absolute;
    top: 14px;
    left: -52px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #000;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: transform 0.4s, background 0.4s;
}
.service-row.is-visible .service-row__node {
    background: var(--accent-cobalt, #1a4ad8);
    transform: scale(1.25);
}
.service-row__num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #000;
}
.service-row__meta {
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    color: #888;
    text-transform: uppercase;
}
.service-row__body {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    align-items: center;
}
.service-row__en {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.05;
    margin-bottom: 14px;
    color: #000;
}
.service-row__jp {
    font-family: var(--font-main);
    font-size: 0.92rem;
    color: #666;
    letter-spacing: 0.08em;
    margin-bottom: 26px;
}
.service-row__short {
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 2;
    color: #333;
    margin-bottom: 24px;
    max-width: 540px;
    letter-spacing: 0.04em;
}
.service-row__tags {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.service-row__tags li {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: #777;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 5px 10px;
    text-transform: uppercase;
}
.service-row__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    color: #000;
    text-transform: uppercase;
}
.service-row__arrow {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.service-row:hover .service-row__arrow {
    transform: translateX(12px);
}

/* 写真スロット：CSS プレースホルダー（画像が無い／読み込み失敗時に表示） */
.service-row__photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.10) 100%),
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 14px,
            rgba(0, 0, 0, 0.03) 14px,
            rgba(0, 0, 0, 0.03) 15px
        );
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.service-row__photo::before {
    content: 'PHOTO · ' attr(data-photo-num);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    color: rgba(0, 0, 0, 0.32);
    pointer-events: none;
    z-index: 0;
}
.service-row__photo img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
    display: block;
}
.service-row:hover .service-row__photo img {
    transform: scale(1.06);
}

/* SERVICES CTA：6サービスの後に売り込み */
.services-cta {
    margin-top: 72px;
    padding: 56px 24px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.services-cta__lead {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.1vw, 1.55rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #000;
    margin-bottom: 28px;
    line-height: 1.5;
}
.services-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: transparent;
    color: #000;
    padding: 16px 32px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.26em;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid #000;
    transition: background 0.4s, color 0.4s, padding 0.4s cubic-bezier(0.19,1,0.22,1);
}
.services-cta__btn:hover {
    background: #000;
    color: #fff;
    padding-left: 40px;
    padding-right: 40px;
}
.services-cta__arrow {
    display: inline-block;
    transition: transform 0.4s;
}
.services-cta__btn:hover .services-cta__arrow {
    transform: translateX(6px);
}

@media (max-width: 1024px) {
    .services-editorial { margin-top: 10px; padding-left: 60px; }
    .services-editorial__spine { left: 24px; }
    .service-row__node { left: -42px; }
    .service-row { grid-template-columns: 100px 1fr; gap: 28px; padding: 52px 0; }
    .service-row__body { grid-template-columns: 1fr 300px; gap: 40px; }
    .service-row__en { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .services-editorial { margin-top: 10px; padding-left: 32px; }
    .services-editorial__spine { left: 12px; top: 24px; bottom: 24px; }
    .service-row__node { top: 8px; left: -23px; width: 10px; height: 10px; }
    .service-row {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 44px 0;
    }
    .service-row__head {
        flex-direction: row;
        align-items: baseline;
        gap: 16px;
    }
    .service-row__num { font-size: 1.6rem; }
    .service-row__meta { font-size: 0.6rem; }
    .service-row__body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .service-row__photo { order: -1; aspect-ratio: 16 / 10; }
    .service-row__en { font-size: 1.6rem; margin-bottom: 8px; }
    .service-row__jp { font-size: 0.82rem; margin-bottom: 18px; }
    .service-row__short {
        font-size: 0.88rem;
        line-height: 1.85;
        margin-bottom: 18px;
    }
    .service-row__tags { margin-bottom: 22px; }
    .service-row__tags li { font-size: 0.6rem; padding: 4px 8px; }
    .service-row__cta { font-size: 0.72rem; }
    .services-cta { margin-top: 50px; padding: 40px 16px; }
    .services-cta__lead { margin-bottom: 22px; }
    .services-cta__btn { padding: 14px 26px; font-size: 0.7rem; letter-spacing: 0.22em; }
}


/* =====================================================================
   ============================ SERVICE 強化 ============================

   ・ヘッダーの SERVICE ドロップダウン（PC）／SP メニュー内のサブリスト
   ・フッターの SERVICE 列
   ・サービスハブページ（/service）の 6 枚のカード
   ・サービス詳細ページ（/service/<slug>）の hero / deliverables /
     approach / tools / cta / others 各セクション
   ===================================================================== */

/* ---------- ヘッダー：PC ドロップダウン ---------- */

.pc-nav__item--has-sub { position: relative; }

.pc-nav__top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pc-nav__caret {
    display: inline-block;
    font-size: 0.65rem;
    transform: translateY(1px);
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.pc-nav__item--has-sub:hover .pc-nav__caret,
.pc-nav__item--has-sub:focus-within .pc-nav__caret,
.pc-nav__item--has-sub.is-open .pc-nav__caret {
    transform: translateY(1px) rotate(180deg);
}

.pc-nav__sub {
    position: absolute;
    top: calc(100% + 22px);
    left: 50%;
    transform: translate(-50%, -8px);
    width: min(720px, calc(100vw - 60px));
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* 視認性優先：背景は実質白で固定。
       わずかな blur と内側ハイライトでヘッダーのガラス言語との繋がりは残しつつ、
       透過は最小限にして本文背景に左右されない可読性を確保する。 */
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    box-shadow:
        /* 上端のごく薄い白リム（ガラス感の名残） */
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        /* 深いドロップシャドウで浮遊感を維持 */
        0 30px 60px -20px rgba(0, 0, 0, 0.28),
        0 10px 20px rgba(0, 0, 0, 0.08);
    padding: 24px 28px 26px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        visibility 0s linear 0.4s;
    z-index: 100;
}

/* 親メニューと干渉しないように、見えない接続ブリッジを敷く
   （SERVICEリンク直下から確実につながるよう、横幅と高さは大きめに） */
.pc-nav__sub::before {
    content: '';
    position: absolute;
    top: -24px;
    left: -40px;
    right: -40px;
    height: 26px;
}

.pc-nav__item--has-sub:hover .pc-nav__sub,
.pc-nav__item--has-sub:focus-within .pc-nav__sub,
.pc-nav__item--has-sub.is-open .pc-nav__sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition:
        opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.pc-nav__sub-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 14px;
    margin-bottom: 14px;
}
.pc-nav__sub-heading-en {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    font-weight: 600;
}
.pc-nav__sub-heading-jp {
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 0.18em;
}

/* 横3 × 縦2 のグリッドレイアウト */
.pc-nav__sub-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.pc-nav__sub-list li {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
/* 各行の右端セル：右ボーダー無し */
.pc-nav__sub-list li:nth-child(3n) { border-right: 0; }
/* 最終行（後ろ3つ）：下ボーダー無し */
.pc-nav__sub-list li:nth-last-child(-n+3) { border-bottom: 0; }

.pc-nav__sub-link {
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 6px;
    align-items: center;
    padding: 14px 14px;
    min-height: 76px;
    color: #000 !important;
    transition: background 0.3s, color 0.3s;
}
.pc-nav__sub-link::after { display: none !important; }

.pc-nav__sub-link:hover {
    background: rgba(0, 0, 0, 0.035);
}

.pc-nav__sub-num {
    grid-column: 1;
    grid-row: 1;
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--accent-cobalt);
    letter-spacing: 0.15em;
    font-weight: 600;
}
.pc-nav__sub-text {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    /* JP をメイン（上）／EN をサブ（下）に配置するため、HTML の順序に
       関わらず flex-direction で並びを明示する。EN が後ろに来るので
       column-reverse は使わず、column のまま order で制御。 */
    flex-direction: column;
    gap: 3px;
}
/* メイン：日本語 */
.pc-nav__sub-jp {
    order: 1;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #000;
    line-height: 1.35;
}
/* サブ：英語（小さく、ミュート） */
.pc-nav__sub-en {
    order: 2;
    font-family: var(--font-display);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    font-weight: 500;
    text-transform: uppercase;
    color: #888;
    line-height: 1.3;
}
.pc-nav__sub-arrow {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: #ccc;
    transition: transform 0.3s, color 0.3s;
}
.pc-nav__sub-link:hover .pc-nav__sub-arrow {
    color: #000;
    transform: translateX(4px);
}

.pc-nav__sub-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-family: var(--font-display);
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    color: #000 !important;
    text-transform: uppercase;
    width: 100%;
    justify-content: flex-end;
}
.pc-nav__sub-cta::after { display: none !important; }
.pc-nav__sub-cta:hover { color: #444 !important; }

/* ---------- ヘッダー：SP ハンバーガーメニュー（JP メイン + EN サブ、SERVICE アコーディオン） ---------- */
@media screen and (max-width: 768px) {

    /* メニュー本体：1画面に収まるレイアウト。サービス展開時のみスクロール可 */
    .sp-nav-menu {
        justify-content: flex-start;
        padding: 88px 24px 32px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sp-nav-menu .nav-links {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
    }

    /* 各メイン項目（TOP / WORKS / COMPANY / CONTACT）と SERVICE トグル共通 */
    .sp-nav-menu .nav-links .sp-nav-item,
    .sp-nav-menu .nav-links .sp-nav-group__toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 100%;
        margin: 0;
        padding: 14px 8px;
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 500;
        color: #000;
        text-decoration: none;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        line-height: 1.2;
        position: relative;
        text-align: center;
        cursor: pointer;
    }
    .sp-nav-menu .nav-links .sp-nav-item:last-child {
        border-bottom: none;
    }

    .sp-nav-item__jp {
        font-family: var(--font-jp, "Noto Sans JP", sans-serif);
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        color: #000;
    }
    .sp-nav-item__en {
        font-family: var(--font-display);
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 0.28em;
        color: rgba(0, 0, 0, 0.45);
        text-transform: uppercase;
    }

    /* SERVICE グループ全体 */
    .sp-nav-menu .nav-links .sp-nav-group {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    /* SERVICE トグルボタンの右側に出す ＋ / − アイコン */
    .sp-nav-group__caret {
        position: absolute;
        right: 14px;
        top: 50%;
        width: 14px;
        height: 14px;
        transform: translateY(-50%);
        pointer-events: none;
    }
    .sp-nav-group__caret::before,
    .sp-nav-group__caret::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        background: #000;
        transition: transform 0.3s ease;
    }
    .sp-nav-group__caret::before {
        width: 14px; height: 1px;
        transform: translate(-50%, -50%);
    }
    .sp-nav-group__caret::after {
        width: 1px; height: 14px;
        transform: translate(-50%, -50%);
    }
    .sp-nav-group.is-open .sp-nav-group__caret::after {
        transform: translate(-50%, -50%) scaleY(0);
    }

    /* サービスサブリスト：閉じている時は高さ 0 で隠す */
    .sp-nav-menu .sp-nav-group__list {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        max-width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .sp-nav-group.is-open .sp-nav-group__list {
        max-height: 560px;
        padding: 4px 0 12px;
    }
    .sp-nav-menu .sp-nav-group__list li {
        list-style: none;
    }

    /* サブリンク（各サービス） */
    .sp-nav-menu .sp-nav-sub-link {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 9px 8px 9px 16px;
        font-size: 0.85rem !important;
        color: #1a1a1a !important;
        margin: 0 !important;
        text-align: left;
        line-height: 1.3;
        text-decoration: none;
    }
    .sp-nav-sub-num {
        font-family: var(--font-display);
        font-size: 0.65rem;
        color: var(--accent-cobalt);
        letter-spacing: 0.18em;
        min-width: 22px;
        font-weight: 700;
        flex-shrink: 0;
    }
    .sp-nav-sub-text {
        display: flex;
        flex-direction: column;
        gap: 1px;
        min-width: 0;
    }
    .sp-nav-sub-jp {
        font-family: var(--font-jp, "Noto Sans JP", sans-serif);
        font-size: 0.88rem;
        color: #1a1a1a;
        letter-spacing: 0.03em;
        font-weight: 500;
    }
    .sp-nav-sub-en {
        font-family: var(--font-display);
        font-size: 0.55rem;
        letter-spacing: 0.2em;
        color: rgba(0, 0, 0, 0.45);
        text-transform: uppercase;
        font-weight: 500;
    }

    /* 「サービス一覧」リンクは区切り線で他のサブから分離 */
    .sp-nav-menu .sp-nav-sub-link--all {
        margin-top: 4px !important;
        padding-top: 12px !important;
        border-top: 1px dashed rgba(0, 0, 0, 0.1);
    }
    .sp-nav-sub-link--all .sp-nav-sub-num {
        color: #000;
    }
}

/* PC では SP メニューは元々非表示なので追加ルールは不要 */

/* ---------- フッター：SERVICE 列 ---------- */

.footer-col--service .footer-num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    color: var(--accent-cobalt);
    letter-spacing: 0.18em;
    margin-right: 10px;
    min-width: 22px;
    font-weight: 600;
}
.footer-col--service ul li a {
    display: inline-flex;
    align-items: baseline;
}

/* ---------- サービスハブページ（/service） ---------- */

.service-hub-page .section.service-hub {
    padding-bottom: 80px;
}

.service-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 60px 0 80px;
    list-style: none;
    padding: 0;
}

.service-hub-card {
    background: #fff;
    position: relative;
    transition:
        opacity 1.0s cubic-bezier(0.19, 1, 0.22, 1),
        transform 1.0s cubic-bezier(0.19, 1, 0.22, 1);
}
.service-hub-card.js-reveal {
    transition-delay: var(--delay, 0s);
}

.service-hub-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
    padding: 0 32px 30px;       /* 上 padding は image 後ろに移譲 */
    color: #000;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background 0.5s cubic-bezier(0.19, 1, 0.22, 1),
                color 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

/* カード上部のビジュアル：4:3、ホバーで microzoom。
   画像が無いと is-empty が付与され、製図グリッド風のプレースホルダだけ残る。 */
.service-hub-card__visual {
    position: relative;
    margin: 0 -32px 28px;       /* link の左右 padding を打ち消してフルブリード */
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.10) 100%),
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 14px,
            rgba(0, 0, 0, 0.03) 14px,
            rgba(0, 0, 0, 0.03) 15px
        );
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.service-hub-card__visual::before {
    content: 'IMG · ' attr(data-photo-num);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: rgba(0, 0, 0, 0.28);
    pointer-events: none;
    z-index: 0;
}
.service-hub-card__visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.1s cubic-bezier(0.19, 1, 0.22, 1),
                filter 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.service-hub-card__link:hover .service-hub-card__visual img {
    transform: scale(1.06);
    /* ホバー時はカード全体が黒に反転するので画像も少し暗く沈める */
    filter: brightness(0.55) saturate(1.05);
}
/* タイトル行との接続：visual の直後に top メタが来るので、top の margin-top を 0 に */
.service-hub-card__visual + .service-hub-card__top {
    margin-top: 0;
}

/* 角の製図記号は画像があるカードでは画像端と重なるので隠す。
   画像自体が十分強い視覚要素を担うため、装飾は不要。 */
.service-hub-card__link:has(.service-hub-card__visual) .service-hub-card__corner {
    display: none;
}

.service-hub-card__link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    transform: translateY(101%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}
.service-hub-card__link:hover { color: #fff; }
.service-hub-card__link:hover::before { transform: translateY(0); }

.service-hub-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.service-hub-card__num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--accent-cobalt);
    transition: color 0.5s;
}
/* カード反転（黒背景）時は番号をライムに切り替え、コントラストを保ちつつ差し色を継続 */
.service-hub-card__link:hover .service-hub-card__num { color: var(--accent-lime); }
.service-hub-card__meta {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: #888;
    transition: color 0.5s;
}
.service-hub-card__link:hover .service-hub-card__meta { color: #bbb; }

.service-hub-card__body { flex: 1; }
.service-hub-card__en {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin-bottom: 6px;
}
.service-hub-card__jp {
    font-size: 0.78rem;
    color: #777;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
    transition: color 0.5s;
}
.service-hub-card__link:hover .service-hub-card__jp { color: #bbb; }

.service-hub-card__short {
    font-size: 0.85rem;
    line-height: 1.85;
    color: #444;
    transition: color 0.5s;
}
.service-hub-card__link:hover .service-hub-card__short { color: #ddd; }

.service-hub-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 22px 0 24px;
}
.service-hub-card__tag {
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 4px 10px;
    transition: border-color 0.5s, color 0.5s;
}
.service-hub-card__link:hover .service-hub-card__tag {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.service-hub-card__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}
.service-hub-card__arrow {
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.service-hub-card__link:hover .service-hub-card__arrow { transform: translateX(10px); }

/* 角の製図記号 */
.service-hub-card__corner {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.25);
    border-right: 1px solid rgba(0, 0, 0, 0.25);
    transition: border-color 0.5s;
}
.service-hub-card__link:hover .service-hub-card__corner {
    border-color: rgba(255, 255, 255, 0.4);
}

.service-hub__cta {
    margin: 30px auto 90px;
    text-align: center;
}
.service-hub__cta-lead {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 28px;
    line-height: 1.9;
}
.service-hub__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 20px 44px;
    border: 1px solid #000;
    color: #000;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: color 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}
.service-hub__cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    transform: translateY(101%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}
.service-hub__cta-btn:hover { color: #fff; }
.service-hub__cta-btn:hover::before { transform: translateY(0); }

/* レスポンシブ：サービスハブ */
@media (max-width: 1024px) {
    .service-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .service-hub-grid { grid-template-columns: 1fr; margin: 40px 0 60px; }
    .service-hub-card__link { min-height: 280px; padding: 28px 24px 24px; }
    .service-hub-card__en { font-size: 1.3rem; }
    .service-hub-card__num { font-size: 1.4rem; }
}

/* ---------- サービス詳細ページ（/service/<slug>） ---------- */

.service-detail-page .section { padding: 100px 5% 100px; }
.service-detail-page .section.sd-hero {
    padding-top: 60px;
}
.service-detail-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* パンくず */
.sd-hero__crumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #888;
    margin-bottom: 60px;
    text-transform: uppercase;
}
.sd-hero__crumb a {
    color: #888;
    transition: color 0.3s;
}
.sd-hero__crumb a:hover { color: #000; }
.sd-hero__crumb-sep { color: #ccc; }
.sd-hero__crumb-current { color: #000; }

/* Hero */
.sd-hero {
    position: relative;
    background: #fff;
    overflow: hidden;
}

/* Hero 2カラム：左テキスト / 右ビジュアル。
   max-width 1200 の container 内で、テキスト 1.15 / 画像 1。
   モバイルは下にスタックする（@media 640px 以下）。 */
.sd-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}
.sd-hero__main {
    min-width: 0;   /* grid 子要素のはみ出し防止 */
}

/* Hero ビジュアル（右側のキービジュアル） */
.sd-hero__visual {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.10) 100%),
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 14px,
            rgba(0, 0, 0, 0.03) 14px,
            rgba(0, 0, 0, 0.03) 15px
        );
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* 製図記号風の角マーク（FV コーナーと同じ言語）*/
}
.sd-hero__visual::before {
    content: '';
    position: absolute;
    top: 10px; right: 10px;
    width: 22px; height: 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.35);
    border-right: 1px solid rgba(0, 0, 0, 0.35);
    z-index: 2;
    pointer-events: none;
}
.sd-hero__visual::after {
    content: 'KEY · ' attr(data-photo-num);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    color: rgba(0, 0, 0, 0.28);
    pointer-events: none;
    z-index: 0;
}
.sd-hero__visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 画像なしのときは img 要素が JS で remove され、
   背景の製図グリッドとラベルだけが残る（追加スタイル不要） */

.sd-hero__head {
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 50px;
}
.sd-hero__meta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    font-family: var(--font-display);
}
.sd-hero__num {
    font-size: 0.82rem;
    letter-spacing: 0.3em;
    color: var(--accent-cobalt);
    font-weight: 600;
}
.sd-hero__meta {
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: #888;
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    padding-left: 24px;
}
.sd-hero__en {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    color: #000;
    position: relative;
    z-index: 1;
}
.sd-hero__lead {
    font-size: 1rem;
    line-height: 2.1;
    color: #222;
    max-width: 780px;
    letter-spacing: 0.06em;
    margin-bottom: 40px;
}
.sd-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}
.sd-hero__tag {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 8px 16px;
}

/* セクション共通（詳細） */
.service-detail-page .sd-section {
    position: relative;
}
.sd-section { background: #fff; }
.sd-section .section-header { margin-bottom: 60px; }

/* Deliverables */
.sd-deliverables { background: #fafafa; }
.sd-deliv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    list-style: none;
    padding: 0;
}
.sd-deliv-card {
    background: #fafafa;
    padding: 40px 32px 36px;
    position: relative;
    transition: background 0.4s;
}
.sd-deliv-card:hover { background: #fff; }
.sd-deliv-card__index {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    color: var(--accent-cobalt);
    margin-bottom: 18px;
    font-weight: 600;
}
.sd-deliv-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.3;
}
.sd-deliv-card__desc {
    font-size: 0.87rem;
    line-height: 1.9;
    color: #555;
    letter-spacing: 0.04em;
}

/* Approach — 既存の .process-step 系を流用しつつ詳細用に微調整 */
.sd-approach .process-step {
    grid-template-columns: 160px 1fr;
    column-gap: 80px;
}
/* スパイン線は「番号列」と「本文列」の間のギャップの中央に配置 */
.sd-approach .process-spine { left: 200px; }
/* base の .process-step__body の border-left / padding-left は
   .sd-approach では二重線になってしまうので解除し、
   .process-spine を唯一の縦線として機能させる */
.sd-approach .process-step__body {
    border-left: 0;
    padding-left: 0;
}
.sd-approach .process-step__index {
    font-size: clamp(2.5rem, 4vw, 4rem);
}
.sd-approach .process-step__title {
    font-size: 1.6rem;
    margin-bottom: 6px;
}
.sd-approach .process-step__desc {
    font-size: 0.92rem;
    line-height: 2;
    color: #444;
}
.sd-approach-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
/* スパイン線の絶対位置の基準となるラッパー（valid HTML を維持するため
   <ol>の外側に出している） */
.sd-approach-wrap {
    position: relative;
}

/* Tools / Tech */
.sd-tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
}
.sd-tool {
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    padding: 14px 22px;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #222;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
.sd-tool:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* Other Services */
.sd-others-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}
.sd-other-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: stretch;
    gap: 0;
    background: #fafafa;
    color: #000;
    text-decoration: none;
    transition: background 0.5s, color 0.5s;
    position: relative;
    overflow: hidden;
}

/* prev/next カードのサムネ：左端固定（next も含めて左側に統一して並びを揃える） */
.sd-other-card__visual {
    position: relative;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 10px,
            rgba(0, 0, 0, 0.04) 10px,
            rgba(0, 0, 0, 0.04) 11px
        );
}
.sd-other-card__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1),
                filter 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.sd-other-card:hover .sd-other-card__visual img {
    transform: scale(1.06);
    filter: brightness(0.55);
}

.sd-other-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 36px 32px;
    min-width: 0;
    position: relative;
    overflow: hidden;
}
/* 黒オーバーレイは body 側にスコープ。画像は filter で暗転するため二重で覆わない。 */
.sd-other-card__body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    transform: translateY(101%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}
.sd-other-card:hover { color: #fff; }
.sd-other-card:hover .sd-other-card__body::before { transform: translateY(0); }
.sd-other-card__body > * { position: relative; z-index: 1; }
/* 旧構造の互換用に残っていた card 直下要素の z-index 上げは、
   visual / body のレイヤ意図と競合するため visual には適用しない。 */
.sd-other-card > .sd-other-card__visual { z-index: 0; }

.sd-other-card__dir {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: #888;
    text-transform: uppercase;
    transition: color 0.5s;
}
.sd-other-card:hover .sd-other-card__dir { color: #bbb; }
.sd-other-card__num {
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: #888;
}
.sd-other-card:hover .sd-other-card__num { color: #bbb; }
.sd-other-card__en {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 4px;
}
.sd-other-card__jp {
    font-size: 0.78rem;
    color: #555;
    letter-spacing: 0.12em;
    transition: color 0.5s;
}
.sd-other-card:hover .sd-other-card__jp { color: #ccc; }

/* --next は画像を右、テキストを左に配置して向きを示す。
   元の text-align:right は body 内で適用するように変更。 */
.sd-other-card--next {
    grid-template-columns: 1fr 140px;
}
.sd-other-card--next .sd-other-card__visual { order: 2; }
.sd-other-card--next .sd-other-card__body {
    order: 1;
    text-align: right;
    align-items: flex-end;
}

.sd-others__index-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #000;
    padding: 14px 0;
    transition: gap 0.3s;
}
.sd-others__index-link:hover { gap: 22px; }
.sd-others__index-arrow {
    display: inline-block;
    transition: transform 0.3s;
}
.sd-others__index-link:hover .sd-others__index-arrow {
    transform: translateX(-4px);
}

/* レスポンシブ：詳細ページ */
@media (max-width: 1024px) {
    .sd-deliv-grid { grid-template-columns: repeat(2, 1fr); }
    .sd-approach .process-step { grid-template-columns: 120px 1fr; column-gap: 60px; }
    .sd-approach .process-spine { left: 150px; }
    /* Hero ビジュアルを少し小さく */
    .sd-hero__grid { gap: 40px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
@media (max-width: 768px) {
    /* Hero を縦積みに：タイトル → ビジュアル → リード → タグ の順は崩さず、
       grid 全体を1カラム化する。ビジュアルは head と lead の間に来る方が
       説明よりキービジュアルが先に目に入って印象的なので、order で挟み込む。 */
    .sd-hero__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .sd-hero__visual {
        margin: 0 0 40px;
    }
}
@media (max-width: 640px) {
    .service-detail-page .section { padding: 70px 5%; }
    .sd-hero__crumb { font-size: 0.62rem; margin-bottom: 40px; flex-wrap: wrap; }
    .sd-hero__meta-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .sd-hero__meta { border-left: 0; padding-left: 0; }
    .sd-hero__lead { font-size: 0.92rem; line-height: 1.95; }
    .sd-hero__head { margin-bottom: 36px; padding-bottom: 36px; }
    .sd-hero__visual { margin-bottom: 32px; }

    .sd-deliv-grid { grid-template-columns: 1fr; }
    .sd-deliv-card { padding: 30px 24px 28px; }
    .sd-deliv-card__title { font-size: 1.1rem; }

    .sd-approach .process-spine { display: none; }
    .sd-approach .process-step { grid-template-columns: 1fr; gap: 6px; padding: 30px 0; }

    /* Other Services：SP では画像を上に、テキストを下にスタック */
    .sd-others-grid { grid-template-columns: 1fr; }
    .sd-other-card,
    .sd-other-card--next {
        grid-template-columns: 1fr;
    }
    .sd-other-card__visual { aspect-ratio: 16 / 9; }
    .sd-other-card--next .sd-other-card__visual { order: 0; }
    .sd-other-card--next .sd-other-card__body {
        order: 1;
        text-align: left;
        align-items: flex-start;
    }
    .sd-other-card__body { padding: 28px 24px; }
}

/* SP 用：ドロップダウン無効化（PC ナビごと非表示なので念のため） */
@media screen and (max-width: 768px) {
    .pc-nav__sub { display: none !important; }
}


/* =====================================================================
   404 ページ
   ===================================================================== */
.error-404-page {
    padding-top: 80px;
    padding-bottom: 120px;
}
.error-404-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 60px;
}
.error-404-link {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 36px 32px;
    color: #000;
    text-decoration: none;
    transition: background 0.4s, padding 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}
.error-404-link:hover {
    background: #fafafa;
    padding-left: 44px;
}
.error-404-link__num {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--accent-cobalt, #1a4ad8);
    min-width: 28px;
    font-weight: 600;
}
.error-404-link__label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.error-404-link__jp {
    font-family: 'Zen Kaku Gothic New', var(--font-main);
    font-size: 1.05rem;
    font-weight: 600;
    color: #000;
    letter-spacing: 0.04em;
}
.error-404-link__en {
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    color: #888;
    text-transform: uppercase;
}
.error-404-link__arrow {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #999;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), color 0.4s;
}
.error-404-link:hover .error-404-link__arrow {
    color: #000;
    transform: translateX(8px);
}
@media (max-width: 768px) {
    .error-404-page { padding-top: 40px; padding-bottom: 80px; }
    .error-404-links { grid-template-columns: 1fr; margin-top: 40px; }
    .error-404-link { padding: 24px 22px; gap: 16px; }
    .error-404-link:hover { padding-left: 30px; }
    .error-404-link__jp { font-size: 0.95rem; }
    .error-404-link__en { font-size: 0.58rem; }
}


/* ============================================================
   BISSELL BLOG — 本体ブランド準拠・白基調メディア
   ロゴ / フォント（Jost + Zen角ゴ）/ 配色は本体と共通。
   プリローダー・カスタムカーソル等の演出は持たず、白基調で読みやすく。
   すべて .blog-shell 配下にスコープし、本体グローバル指定を上書きする。
   ============================================================ */
.blog-shell {
    background: var(--white);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.9;
    letter-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
/* 本体の cursor:none を打ち消し、通常カーソルに戻す */
html:has(.blog-shell),
body:has(.blog-shell) { cursor: auto; background: var(--white); }
.blog-shell,
.blog-shell *,
.blog-shell *::before,
.blog-shell *::after { cursor: auto; box-sizing: border-box; }
.blog-shell a,
.blog-shell button { cursor: pointer; }
.blog-shell img { max-width: 100%; height: auto; display: block; }
.blog-shell a { color: inherit; text-decoration: none; }

.bb-container { max-width: 1160px; margin: 0 auto; padding: 0 5%; }
.bb-container--narrow { max-width: 760px; }

/* =========================================
   ヘッダー（白・スティッキー・正式ロゴ）
   ========================================= */
.bb-head {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-color);
}
.bb-head__inner {
    max-width: 1160px; margin: 0 auto; padding: 16px 5%;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.bb-head__logo img { height: 26px; width: auto; filter: none; }
.bb-head__nav {
    display: flex; align-items: center; gap: 26px;
    font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.14em;
}
.bb-head__nav a { color: #111; transition: color 0.25s; position: relative; white-space: nowrap; }
.bb-head__nav a:not(.bb-head__cta)::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--accent-coral); transition: width 0.25s;
}
.bb-head__nav a:not(.bb-head__cta):hover { color: var(--accent-coral); }
.bb-head__nav a:not(.bb-head__cta):hover::after { width: 100%; }
.bb-head__nav a.is-active { color: var(--accent-coral); }
.bb-head__nav a.is-active::after { width: 100%; }
.bb-head__cta {
    background: var(--black); color: #fff !important; padding: 9px 20px; border: 1px solid var(--black); transition: 0.25s;
}
.bb-head__cta:hover { background: transparent; color: var(--black) !important; }
.bb-head__cta::after { display: none; }

/* =========================================
   ヒーロー（誌名マストヘッド）
   ========================================= */
.bb-hero { padding: 84px 0 56px; border-bottom: 1px solid var(--line-color); }
.bb-hero__kicker {
    font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.3em;
    color: var(--accent-cobalt); margin-bottom: 22px;
}
.bb-hero__kicker a { color: inherit; }
.bb-hero__kicker a:hover { color: var(--accent-coral); }
.bb-hero__title {
    font-family: var(--font-main); font-weight: 700;
    font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.25; letter-spacing: 0.02em;
    color: #0a0a0a; margin-bottom: 22px;
}
.bb-hero--tax .bb-hero__title { letter-spacing: 0.01em; }
.bb-hero__lead {
    max-width: 640px; font-size: 0.98rem; line-height: 2; color: #555;
}

/* =========================================
   カテゴリフィルター
   ========================================= */
.bb-filter { border-bottom: 1px solid var(--line-color); background: var(--white); }
.bb-filter__inner { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; padding-bottom: 22px; }
.bb-filter__chip {
    font-family: var(--font-main); font-size: 0.84rem; letter-spacing: 0.04em;
    padding: 8px 18px; border: 1px solid var(--line-color); border-radius: 100px;
    color: #333; transition: 0.25s; white-space: nowrap;
}
.bb-filter__chip:hover { border-color: #111; color: #111; }
.bb-filter__chip.is-active { background: var(--black); border-color: var(--black); color: #fff; }

/* =========================================
   記事カードグリッド
   ========================================= */
.bb-list { padding: 64px 0 110px; }
.bb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 36px; }

.bb-card__link { display: block; }
.bb-card__thumb {
    position: relative; aspect-ratio: 3 / 2; overflow: hidden;
    background: #f1f1f1; border: 1px solid var(--line-color); margin-bottom: 18px;
}
.bb-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.bb-card__link:hover .bb-card__thumb img { transform: scale(1.05); }
.bb-card__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #f1f1f1; }
.bb-card__noimg img { width: 92px; height: auto; opacity: 0.22; filter: none; }
.bb-card__cat {
    position: absolute; left: 12px; top: 12px;
    font-family: var(--font-main); font-size: 0.7rem; letter-spacing: 0.06em;
    background: rgba(10,10,10,0.86); color: #fff; padding: 6px 12px;
}
.bb-card__date {
    display: block; font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.14em;
    color: #999; margin-bottom: 10px;
}
.bb-card__title {
    font-family: var(--font-main); font-weight: 700; font-size: 1.16rem; line-height: 1.6;
    color: #111; margin-bottom: 12px; transition: color 0.25s; letter-spacing: 0.02em;
}
.bb-card__link:hover .bb-card__title { color: var(--accent-coral); }
.bb-card__excerpt { font-size: 0.86rem; line-height: 1.9; color: #666; margin-bottom: 16px; }
.bb-card__more {
    font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.1em; color: #111;
    display: inline-flex; align-items: center; gap: 7px; transition: color 0.25s;
}
.bb-card__more span { transition: transform 0.25s; }
.bb-card__link:hover .bb-card__more { color: var(--accent-coral); }
.bb-card__link:hover .bb-card__more span { transform: translateX(4px); }

/* 空状態 */
.bb-empty { padding: 60px 0 80px; text-align: center; }
.bb-empty__en { font-family: var(--font-display); font-size: 1.7rem; color: #111; margin-bottom: 16px; }
.bb-empty__jp { font-size: 0.92rem; line-height: 2; color: #777; }
.bb-empty__jp a { color: var(--accent-coral); }

/* ページネーション */
.bb-pagination { margin-top: 72px; }
.bb-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.bb-pagination .page-numbers {
    font-family: var(--font-display); font-size: 0.85rem; min-width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 12px;
    border: 1px solid var(--line-color); color: #333; transition: 0.25s;
}
.bb-pagination .page-numbers:hover { border-color: #111; color: #111; }
.bb-pagination .page-numbers.current { background: var(--black); border-color: var(--black); color: #fff; }
.bb-pagination .page-numbers.dots { border-color: transparent; }

/* =========================================
   記事詳細（single）
   ========================================= */
.bb-article { padding-top: 56px; }
.bb-article__crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.12em; color: #999; margin-bottom: 32px;
}
.bb-article__crumb a { color: #999; transition: color 0.25s; }
.bb-article__crumb a:hover { color: var(--accent-coral); }
.bb-article__crumb-sep { color: #ccc; }

.bb-article__head { margin-bottom: 40px; }
.bb-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.bb-article__cat {
    font-family: var(--font-main); font-size: 0.74rem; letter-spacing: 0.06em;
    background: var(--accent-cobalt); color: #fff; padding: 6px 14px; transition: background 0.25s;
}
.bb-article__cat:hover { background: var(--accent-coral); }
.bb-article__date, .bb-article__read {
    font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.1em; color: #999;
}
.bb-article__read::before { content: '·'; margin-right: 14px; color: #ccc; }
.bb-article__title {
    font-family: var(--font-main); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1.5; letter-spacing: 0.02em; color: #0a0a0a; margin-bottom: 16px;
}
.bb-article__byline { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.08em; color: #777; }

.bb-article__hero { margin: 0 0 52px; }
.bb-article__hero img { width: 100%; max-height: 560px; object-fit: cover; }

/* 本文 */
.bb-article__body { font-size: 1.04rem; line-height: 2.05; color: #2a2a2a; }
.bb-article__body > * + * { margin-top: 1.5em; }
.bb-article__body h2 {
    font-family: var(--font-main); font-weight: 700; font-size: 1.5rem; line-height: 1.55; color: #0a0a0a;
    margin-top: 2.2em; padding-bottom: 0.4em; border-bottom: 1px solid var(--line-color); letter-spacing: 0.02em;
}
.bb-article__body h3 {
    font-family: var(--font-main); font-weight: 700; font-size: 1.22rem; line-height: 1.6; color: #111; margin-top: 1.9em;
}
.bb-article__body h2 + *, .bb-article__body h3 + * { margin-top: 0.8em; }
.bb-article__body a { color: var(--accent-cobalt); text-decoration: underline; text-underline-offset: 3px; }
.bb-article__body a:hover { color: var(--accent-coral); }
.bb-article__body strong { font-weight: 700; }
.bb-article__body figure { margin-top: 1.8em; margin-bottom: 1.8em; }
.bb-article__body figcaption { font-family: var(--font-display); font-size: 0.78rem; color: #999; margin-top: 8px; text-align: center; }
.bb-article__body ul, .bb-article__body ol { padding-left: 1.4em; }
.bb-article__body li { margin-top: 0.5em; }
.bb-article__body ul li { list-style: disc; }
.bb-article__body ol li { list-style: decimal; }
.bb-article__body blockquote {
    border-left: 3px solid var(--accent-coral); margin-left: 0; padding: 6px 0 6px 24px; color: #555; font-style: italic;
}
.bb-article__body pre {
    background: #0f0f0f; color: #f2f2f2; padding: 22px 24px; overflow: auto; border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88rem; line-height: 1.7; letter-spacing: 0;
}
.bb-article__body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em;
    background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 3px; letter-spacing: 0;
}
.bb-article__body pre code { background: none; padding: 0; }
.bb-article__body hr { border: none; border-top: 1px solid var(--line-color); margin: 2.4em 0; }
.bb-article__body img { margin-left: auto; margin-right: auto; }

/* 記事フッター */
.bb-article__foot {
    margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--line-color);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.bb-article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bb-article__tags-label { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.14em; color: #aaa; }
.bb-article__tag {
    font-size: 0.84rem; color: #333; border: 1px solid var(--line-color); border-radius: 100px; padding: 5px 14px; transition: 0.25s;
}
.bb-article__tag:hover { border-color: #111; color: #111; }
.bb-article__back { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.1em; color: #111; }
.bb-article__back:hover { color: var(--accent-coral); }

/* 前後の記事 */
.bb-article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.bb-article__nav-link { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1px solid var(--line-color); transition: 0.25s; }
.bb-article__nav-link--next { text-align: right; align-items: flex-end; }
.bb-article__nav-link:hover { border-color: #111; background: #fafafa; }
.bb-article__nav-dir { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--accent-coral); }
.bb-article__nav-title { font-size: 0.92rem; line-height: 1.6; color: #222; }
.bb-article__nav-placeholder { display: block; }

/* =========================================
   関連記事
   ========================================= */
.bb-related { margin-top: 90px; padding: 76px 0 104px; background: #f7f6f4; border-top: 1px solid var(--line-color); }
.bb-related__heading {
    font-family: var(--font-main); font-weight: 700; font-size: 1.5rem; color: #111; margin-bottom: 44px;
    display: flex; align-items: baseline; gap: 14px; letter-spacing: 0.02em;
}
.bb-related__heading span { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.18em; color: #aaa; font-weight: 400; }

/* =========================================
   フッター（白・正式ロゴ）
   ========================================= */
.bb-foot { background: var(--white); border-top: 1px solid var(--line-color); padding: 72px 0 36px; }
.bb-foot__inner {
    max-width: 1160px; margin: 0 auto; padding: 0 5%;
    display: grid; grid-template-columns: 1.4fr 2fr; gap: 56px;
}
.bb-foot__logo img { height: 24px; width: auto; filter: none; margin-bottom: 18px; }
.bb-foot__tagline { font-size: 0.9rem; line-height: 1.95; color: #666; max-width: 30ch; }
.bb-foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.bb-foot__col { display: flex; flex-direction: column; gap: 12px; }
.bb-foot__col-title { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.2em; color: #999; margin-bottom: 4px; }
.bb-foot__col a { font-size: 0.9rem; color: #333; transition: color 0.25s; }
.bb-foot__col a:hover { color: var(--accent-coral); }
.bb-foot__base {
    max-width: 1160px; margin: 56px auto 0; padding: 24px 5% 0; border-top: 1px solid var(--line-color);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.12em; color: #999;
}

/* =========================================
   レスポンシブ
   ========================================= */
@media (max-width: 1024px) {
    .bb-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 28px; }
}
@media (max-width: 768px) {
    .bb-head__inner { padding: 13px 5%; gap: 14px; }
    .bb-head__logo img { height: 22px; }
    .bb-head__nav {
        gap: 18px; font-size: 0.72rem; letter-spacing: 0.1em;
        overflow-x: auto; -webkit-overflow-scrolling: touch; margin-left: 8px;
    }
    .bb-head__nav::-webkit-scrollbar { display: none; }
    .bb-head__cta { padding: 8px 14px; }
    .bb-hero { padding: 56px 0 40px; }
    .bb-list { padding: 48px 0 80px; }
    .bb-article { padding-top: 40px; }
    .bb-article__hero { margin-bottom: 40px; }
    .bb-article__nav { grid-template-columns: 1fr; }
    .bb-related { margin-top: 64px; padding: 56px 0 80px; }
    .bb-foot__inner { grid-template-columns: 1fr; gap: 40px; }
    .bb-foot__base { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 560px) {
    .bb-grid { grid-template-columns: 1fr; gap: 44px; }
    .bb-foot__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ============================================================
   BISSELL BLOG — 2カラム（コンテンツ + サイドバー）& ウィジェット
   ============================================================ */
.bb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.bb-content { min-width: 0; }
.bb-content .bb-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 32px; }

/* サイドバー */
.bb-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 40px; }
.bb-widget__title {
    font-family: var(--font-main); font-weight: 700; font-size: 1.05rem; color: #111;
    padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid #111;
    display: flex; align-items: baseline; gap: 10px; letter-spacing: 0.04em;
}
.bb-widget__title span { font-family: var(--font-display); font-size: 0.64rem; letter-spacing: 0.2em; color: var(--accent-cobalt); font-weight: 400; }

/* 検索ボックス */
.bb-search { display: flex; border: 1px solid var(--line-color); }
.bb-search__input {
    flex: 1; min-width: 0; border: none; background: transparent; padding: 12px 14px;
    font-family: var(--font-main); font-size: 0.9rem; color: #111; letter-spacing: 0.02em;
}
.bb-search__input:focus { outline: none; }
.bb-search__btn {
    border: none; background: var(--black); color: #fff; padding: 0 18px;
    font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.08em; transition: background 0.25s;
}
.bb-search__btn:hover { background: var(--accent-coral); }

/* 人気記事ランキング */
.bb-rank { list-style: none; display: flex; flex-direction: column; gap: 16px; padding: 0; margin: 0; }
.bb-rank__link { display: grid; grid-template-columns: 20px 64px 1fr; gap: 12px; align-items: center; }
.bb-rank__num { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--accent-coral); text-align: center; }
.bb-rank__item:nth-child(n+4) .bb-rank__num { color: #c2c2c2; }
.bb-rank__thumb { width: 64px; height: 48px; overflow: hidden; background: #f1f1f1; }
.bb-rank__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bb-rank__body { min-width: 0; }
.bb-rank__title {
    font-size: 0.86rem; line-height: 1.5; color: #222; transition: color 0.25s;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bb-rank__link:hover .bb-rank__title { color: var(--accent-coral); }
.bb-rank__date { display: block; font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.1em; color: #aaa; margin-top: 3px; }

/* おすすめ */
.bb-pick { list-style: none; display: flex; flex-direction: column; gap: 18px; padding: 0; margin: 0; }
.bb-pick__thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #f1f1f1; margin-bottom: 8px; }
.bb-pick__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.bb-pick__link:hover .bb-pick__thumb img { transform: scale(1.05); }
.bb-pick__title { font-size: 0.9rem; line-height: 1.55; color: #222; transition: color 0.25s; }
.bb-pick__link:hover .bb-pick__title { color: var(--accent-coral); }

/* カテゴリ一覧 */
.bb-catlist { list-style: none; display: flex; flex-direction: column; padding: 0; margin: 0; }
.bb-catlist li { border-bottom: 1px solid var(--line-color); }
.bb-catlist a { display: flex; justify-content: space-between; align-items: center; padding: 11px 2px; font-size: 0.9rem; color: #333; transition: color 0.25s; }
.bb-catlist a:hover { color: var(--accent-coral); }
.bb-catlist__count { font-family: var(--font-display); font-size: 0.74rem; color: #aaa; }

/* 運営会社 */
.bb-widget--company .bb-company { display: block; border: 1px solid var(--line-color); padding: 24px 20px; text-align: center; transition: border-color 0.25s; }
.bb-widget--company .bb-company:hover { border-color: #111; }
.bb-company img { height: 22px; width: auto; margin: 0 auto 12px; }
.bb-company__name { display: block; font-size: 0.92rem; color: #111; margin-bottom: 8px; letter-spacing: 0.04em; }
.bb-company__link { display: inline-flex; gap: 6px; font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--accent-cobalt); }

/* ヘッダーのロゴ脇「ブログ」ラベル */
.bb-head__logo { display: inline-flex; align-items: baseline; gap: 10px; }
.bb-head__logo-label { font-family: var(--font-main); font-weight: 700; font-size: 0.92rem; color: #111; letter-spacing: 0.1em; }

/* 検索結果ヒーロー */
.bb-hero--search .bb-hero__title { letter-spacing: 0; }

/* レスポンシブ（2カラム / サイドバー） */
@media (max-width: 1024px) {
    .bb-layout { grid-template-columns: 1fr; gap: 0; }
    .bb-sidebar { position: static; margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
    .bb-content .bb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .bb-sidebar { grid-template-columns: 1fr; gap: 36px; }
    .bb-content .bb-grid { grid-template-columns: 1fr; }
    .bb-head__logo-label { display: none; }
}
