/*
 * sub-pages.css  v2.0
 * 下層ページ共通スタイル — レスポンシブ完全対応
 * ブレークポイント: SP ~767px / TB 768~1023px / PC 1024px~
 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --bg:             #0b0b0b;
    --bg2:            #111;
    --bg3:            #161616;
    --text:           #fff;
    --muted:          rgba(255,255,255,0.45);
    --border:         rgba(255,255,255,0.1);
    --input-bg:       rgba(255,255,255,0.04);
    --input-border:   rgba(255,255,255,0.15);
    --input-focus:    rgba(255,255,255,0.35);
    --red:            rgba(197,35,47,0.95);

    --hd-h-pc:        90px;
    --hd-h-sp:        58px;
    --drawer-w:       280px;
    --radius:         2px;
    --transition:     0.25s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Zen Old Mincho', serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }


/* ============================================================
   HEADER — PC
   ============================================================ */
#header-sub {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

/* PCレイアウト */
.pc-hd {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--hd-h-pc);
    padding: 0 40px 0 28px;
}

.hd-logo {
    flex-shrink: 0;
    width: 36px;
}
.hd-logo img { width: 100%; height: auto; }

.hd-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hd-nav {
    display: flex;
    gap: 28px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    width: 100%;
    justify-content: center;
}
.hd-nav li a {
    font-size: 14px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
    white-space: nowrap;
}
.hd-nav li a:hover,
.hd-nav li a.active { color: #fff; }
.hd-nav li a.active {
    border-bottom: 1px solid var(--red);
    padding-bottom: 2px;
}

.hd-tel {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}
.tel-label { color: var(--muted); letter-spacing: 0.06em; }
.tel-num {
    font-size: 17px;
    letter-spacing: 0.14em;
    color: #fff;
    transition: color var(--transition);
}
.tel-num:hover { color: rgba(255,255,255,0.65); }

/* SP専用要素はデフォルトですべて非表示（PCで誤表示しないよう明示） */
.sp-hd,
.sp-drawer,
.sp-overlay,
.sp-cta-bar { display: none; }

/* ============================================================
   SP HEADER — HAMBURGER + DRAWER
   ============================================================ */
@media screen and (max-width: 767px) {
    .pc-hd { display: none; }

    .sp-hd {
        display: flex;
        align-items: center;
        height: var(--hd-h-sp);
        padding: 0 16px;
        gap: 12px;
    }

    .sp-logo { flex-shrink: 0; width: 22px; }
    .sp-logo img { width: 100%; }

    .sp-sitename {
        flex: 1;
        font-size: 15px;
        letter-spacing: 0.2em;
        color: rgba(255,255,255,0.9);
    }

    /* ハンバーガーボタン */
    .sp-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        padding: 6px 8px;
        flex-shrink: 0;
    }
    .sp-hamburger .bar {
        display: block;
        width: 100%;
        height: 1px;
        background: #fff;
        transition: transform var(--transition), opacity var(--transition);
        transform-origin: center;
    }
    /* アクティブ時：× */
    .sp-hamburger.is-active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .sp-hamburger.is-active .bar:nth-child(2) { opacity: 0; }
    .sp-hamburger.is-active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    /* ドロワー */
    .sp-drawer {
        display: flex; /* SP時のみ表示・デフォルトは画面外 */
        position: fixed;
        top: 0;
        right: 0;
        width: var(--drawer-w);
        height: 100%;
        background: var(--bg2);
        border-left: 1px solid var(--border);
        padding: 72px 0 40px;
        flex-direction: column;
        z-index: 200;
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sp-drawer.is-open {
        transform: translateX(0);
    }

    .sp-drawer-nav { flex: 1; }
    .sp-drawer-nav li {
        border-bottom: 1px solid var(--border);
    }
    .sp-drawer-nav li a {
        display: block;
        padding: 16px 28px;
        font-size: 15px;
        letter-spacing: 0.18em;
        color: rgba(255,255,255,0.8);
        transition: color var(--transition), padding-left var(--transition);
    }
    .sp-drawer-nav li a:hover,
    .sp-drawer-nav li a:active {
        color: #fff;
        padding-left: 36px;
    }

    .sp-drawer-tel {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 32px 28px 0;
        padding: 16px;
        border: 1px solid var(--border);
        font-size: 18px;
        letter-spacing: 0.12em;
        color: rgba(255,255,255,0.75);
        transition: color var(--transition);
    }
    .sp-drawer-tel svg { flex-shrink: 0; }
    .sp-drawer-tel:hover { color: #fff; }

    /* オーバーレイ */
    .sp-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 150;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    .sp-overlay.is-active { display: block; }
}


/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
    text-align: center;
    padding: 64px 24px 52px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}
.page-hero .ttl-eng {
    display: block;
    font-size: 11px;
    letter-spacing: 0.45em;
    color: var(--muted);
    margin-bottom: 16px;
    text-transform: uppercase;
}
.page-hero h1 {
    font-size: 28px;
    letter-spacing: 0.3em;
    font-weight: 400;
    line-height: 1.4;
}

/* パンくず */
.breadcrumb {
    margin-top: 20px;
}
.breadcrumb ol {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--muted);
}
.breadcrumb ol li:not(:last-child)::after {
    content: "／";
    margin-left: 8px;
    opacity: 0.4;
}
.breadcrumb ol li a {
    color: var(--muted);
    transition: color var(--transition);
}
.breadcrumb ol li a:hover { color: rgba(255,255,255,0.7); }
.breadcrumb ol li[aria-current="page"] { color: rgba(255,255,255,0.6); }

@media screen and (max-width: 767px) {
    .page-hero {
        padding: 44px 20px 36px;
    }
    .page-hero h1 { font-size: 22px; letter-spacing: 0.2em; }
    .page-hero .ttl-eng { letter-spacing: 0.35em; }
}


/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 56px 40px 48px;
    text-align: center;
}
#footer .wrap { max-width: 900px; margin: 0 auto; }
#footer .logo { width: 44px; margin: 0 auto 28px; }
#footer .logo img { width: 100%; height: auto; }

#footer .nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-bottom: 28px;
}
#footer .nav li a {
    font-size: 13px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
    padding: 4px 0;
}
#footer .nav li a:hover { color: rgba(255,255,255,0.85); }

#footer .copy {
    font-size: 11px;
    color: rgba(255,255,255,0.18);
    letter-spacing: 0.1em;
}

@media screen and (max-width: 767px) {
    #footer {
        padding: 44px 20px 40px;
    }
    #footer .nav {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    #footer .nav li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    #footer .nav li a {
        display: block;
        padding: 14px 0;
        font-size: 14px;
    }
    #footer .nav li:first-child { border-top: 1px solid var(--border); }
    #footer .logo { margin-bottom: 32px; }
    #footer .copy { margin-top: 28px; }
}


/* ============================================================
   SP固定フッターCTA（電話＋予約ボタン）
   ============================================================ */
.sp-cta-bar {
    display: none;
}

@media screen and (max-width: 767px) {
    .sp-cta-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 90;
        height: 56px;
        background: var(--bg2);
        border-top: 1px solid var(--border);
    }
    .sp-cta-bar a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 13px;
        letter-spacing: 0.1em;
        color: rgba(255,255,255,0.8);
        transition: background var(--transition);
    }
    .sp-cta-bar a:first-child {
        border-right: 1px solid var(--border);
    }
    .sp-cta-bar a:last-child {
        background: var(--red);
        color: #fff;
    }
    .sp-cta-bar a:hover { opacity: 0.85; }

    /* CTAバーの分、コンテンツ下部にpadding */
    body { padding-bottom: 56px; }
}


/* ============================================================
   UTILITY
   ============================================================ */
@media screen and (max-width: 767px) { .pc-only { display: none !important; } }
@media screen and (min-width: 768px) { .sp-only { display: none !important; } }


/* ============================================================
   追従WEB予約ボタン .hd-reserve-btn
   PC: ヘッダー右端に固定 / SP: 非表示（CTAバーで代替）
   ============================================================ */
.hd-reserve-btn {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 110;                          /* ヘッダーより前面 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 88px;
    min-height: var(--hd-h-pc);
    padding: 14px 10px;
    background: var(--red);
    color: #fff;
    font-family: 'Zen Old Mincho', serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    line-height: 1.6;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
}
.hd-reserve-btn:hover { opacity: 0.85; }
.hd-reserve-btn svg   { flex-shrink: 0; }
.hd-reserve-btn span  { display: block; }

/* ヘッダーナビがボタンに被らないよう右側にpadding確保 */
.pc-hd { padding-right: 104px; }

@media screen and (max-width: 767px) {
    /* SPはCTAバーの「お問い合わせ」ボタンで代替するので非表示 */
    .hd-reserve-btn { display: none; }
    .pc-hd { padding-right: 40px; }

    /* SP CTAバーの左側ボタンをWEB予約に変更 */
    .sp-cta-bar a:last-child { background: var(--red); color: #fff; }
}


/* ============================================================
   404ページ
   ============================================================ */
.not-found-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 40px 120px;
    text-align: center;
}

.not-found-code {
    font-size: 120px;
    letter-spacing: 0.1em;
    line-height: 1;
    color: rgba(255,255,255,0.06);
    font-weight: 400;
    margin-bottom: 0;
}

.not-found-title {
    font-size: 20px;
    letter-spacing: 0.25em;
    font-weight: 400;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.8);
}

.not-found-text {
    font-size: 13px;
    letter-spacing: 0.1em;
    line-height: 2.2;
    color: var(--muted);
    margin-bottom: 52px;
}

.not-found-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.not-found-btn {
    display: inline-block;
    padding: 16px 48px;
    background: var(--red);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.2em;
    transition: opacity 0.2s;
}
.not-found-btn:hover { opacity: 0.82; }

.not-found-link {
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--muted);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 2px;
    transition: color 0.2s;
}
.not-found-link:hover { color: rgba(255,255,255,0.7); }

@media screen and (max-width: 767px) {
    .not-found-wrap { padding: 60px 24px 100px; }
    .not-found-code { font-size: 80px; }
    .not-found-title { font-size: 17px; }
}
