/* ==========================================================================
   I'M KITCHEN - AQUARIUM CAFE & ACAI
   Main Stylesheet
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body, 'Noto Sans JP', sans-serif);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-dark, #1e3a5f);
    /* 背景画像は body ではなく固定 div (.page-bg) で表現
       → 長いページで巨大画像を全域に描画する問題を回避 */
    background-color: var(--color-background, #faeddf);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ビューポート固定の背景レイヤー(ページの長さに左右されない・描画負荷が一定) */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url('../../images/background/backimg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    /* GPU レイヤー化 → スクロール時の再描画コストを排除 */
    will-change: transform;
    transform: translateZ(0);
}

/* main / section のデフォルト余白排除 */
main { margin: 0; padding: 0; display: block; }

/* SVG defs は inline 要素として line-box を取らないよう絶対配置 */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ============================================================
   「トップへ戻る」ボタン (右下固定)
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 95;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    /* backdrop-filter は GPU 重く、スクロール毎に処理されるため不透明度を上げて代替 */
    background: rgba(10, 47, 92, 0.95);
    color: #ffffff;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(20px) scale(0.85);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.back-to-top:hover {
    background: #0a2f5c;
    transform: translateY(-3px) scale(1.06);
}
.back-to-top:active {
    transform: translateY(0) scale(0.98);
}
.back-to-top svg {
    width: 22px;
    height: 22px;
}
@media (max-width: 560px) {
    .back-to-top {
        bottom: 18px;
        right: 18px;
        width: 46px;
        height: 46px;
    }
    .back-to-top svg { width: 20px; height: 20px; }
}

/* (body は背景画像を持たず、.page-bg で表現) */

/* アニメーション抑制設定を尊重 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* content-visibility: 画面外のセクションはレンダリングをスキップ → 軽量化
   ※ ABOUT / MENU はヒーロー直下で頻繁に視野に入るため、スクロール時の活性化jank を避けるため除外。
   下部セクション(GALLERY/ACCESS/RESERVATION)のみ適用 */
.gallery,
.access,
.reservation {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

/* ===========================================================
   スマホ向け軽量化: 常時アニメーション・装飾を停止
   =========================================================== */
@media (max-width: 720px) {
    /* 浮遊アニメは CPU を継続消費するため停止 */
    .menu-card-float,
    .gallery-item-card {
        animation: none !important;
    }
    /* 泡(bubble)アニメは hover でのみ発火するが、要素自体を消す */
    .menu-card-bubbles,
    .gallery-bubbles,
    .hero-bubbles {
        display: none !important;
    }
    /* HEROのデコレーション波形などスマホでは不要な装飾 */
    .menu-cat-deco,
    .gallery-wave-top,
    .gallery-wave-bottom,
    .menu-wave-top,
    .menu-wave-bottom {
        display: none !important;
    }
    /* スマホでは GALLERY セクション自体を非表示
       → 画像/動画ファイルが一切ダウンロードされず、大幅軽量化 */
    .gallery {
        display: none !important;
    }
    /* GALLERY のナビゲーションリンクもスマホでは隠す(押しても飛び先が無いため) */
    .nav-list li a[href="#gallery"],
    .nav-list li a[href="/#gallery"] {
        display: none;
    }
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s, color 0.2s;
}

a:hover {
    opacity: 0.85;
}

ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

main {
    overflow-x: hidden;
}

section {
    padding: 100px 0;
    position: relative;
}

/* ---------- Common: Section Heading ---------- */
.section-heading {
    text-align: center;
    margin-bottom: 64px;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-logo, 'Cormorant Garamond', serif);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--color-secondary, #1e5a8e);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading, 'Noto Serif JP', serif);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 500;
    color: var(--color-text-dark, #1e3a5f);
    margin-bottom: 18px;
    letter-spacing: 0.05em;
}

.section-divider {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-highlight, #f5d7a3), transparent);
}

.section-lead {
    text-align: center;
    color: var(--color-text-muted, #6b7c93);
    margin-top: -32px;
    margin-bottom: 56px;
    font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

.btn-pill { border-radius: 999px; }

.btn-primary {
    background: var(--color-primary-dark, #051a3d);
    color: var(--color-text-light, #fff);
    border-color: var(--color-primary-dark, #051a3d);
}

.btn-primary:hover {
    background: var(--color-primary, #0a2f5c);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(5, 26, 61, 0.25);
    opacity: 1;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-light, #fff);
    border-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-text-light, #fff);
    transform: translateY(-2px);
    opacity: 1;
}

.btn-large { padding: 18px 48px; font-size: 1.05rem; }

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.site-header.scrolled {
    /* 軽量化: backdrop-filter は GPU コストが高く、特にモバイルで重いため除去。
       不透明度を上げて視認性を確保 */
    background: rgba(10, 47, 92, 0.94);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.site-header.menu-open {
    background: rgba(10, 47, 92, 0.95);
    /* backdrop-filter は position:fixed の子(ドロワー)を閉じ込めてしまうため、
       メニュー開時は解除して、ドロワーを正しくビューポート全体に固定できるようにする */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    min-height: 56px;
    position: relative;
}

/* ロゴはナビと独立した絶対配置 → ロゴが大きくなってもナビ行は動かない */
.header-logo {
    position: absolute;
    /* 下方向に+1cm: 上が隠れないように */
    top: calc(50% + 1cm);
    /* 元の32px(=約0.85cm)から2cm左へ移動 → 約-1.15cm(=-44px) */
    left: calc(32px - 2cm);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--color-primary-dark, #051a3d);
    z-index: 2;
    transition: top 0.3s ease, left 0.3s ease, color 0.3s ease;
}

.site-header.scrolled .header-logo {
    color: var(--color-text-light, #fff);
    /* スクロール時はヘッダーがコンパクトになるので、ロゴ位置もヘッダー内に収まるよう中央へリセット */
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
}

.logo-icon {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: transparent;
    transition: width 0.3s ease, height 0.3s ease;
}

.logo-icon svg { width: 70%; height: 70%; }

/* ロゴ画像をクリップして白マージンを消すためのラッパー */
.logo-img-wrap {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    transition: width 0.3s ease, height 0.3s ease;
    background: transparent;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像内の白マージンを消すため、少し拡大してクロップ */
    transform: scale(1.12);
    display: block;
}

/* テキストロゴ (logo2.png) - 中央寄せ */
.logo-img-text {
    height: 140px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
    margin-left: 8px;
    align-self: center;
}

/* スクロール時はロゴをやや小さく(コンパクトに) */
.site-header.scrolled .logo-icon,
.site-header.scrolled .logo-img-wrap {
    width: 64px;
    height: 64px;
}

.site-header.scrolled .logo-img-text {
    height: 110px;
    /* スクロール時は背景が紺色になるので、紺色のテキストロゴを白く反転 */
    filter: brightness(0) invert(1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--font-logo, 'Cormorant Garamond', serif);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

.logo-sub {
    font-family: var(--font-logo, 'Cormorant Garamond', serif);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.3);
}

.site-header.scrolled .logo-main,
.site-header.scrolled .logo-sub {
    text-shadow: none;
}

.site-header.scrolled .logo-main {
    font-size: 1.4rem;
}
.site-header.scrolled .logo-sub {
    font-size: 0.7rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--color-primary-dark, #051a3d);
    font-family: var(--font-logo, 'Cormorant Garamond', serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    position: relative;
    padding: 4px 0;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.site-header.scrolled .nav-link {
    color: var(--color-text-light, #fff);
    text-shadow: none;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: var(--color-highlight, #f5d7a3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after { transform: scaleX(1); }

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1px solid var(--color-primary-dark, #051a3d);
    border-radius: 999px;
    color: var(--color-text-light, #fff);
    font-size: 0.88rem;
    font-weight: 500;
    background: var(--color-primary-dark, #051a3d);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.site-header.scrolled .header-cta {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

.header-cta:hover {
    background: var(--color-text-light, #fff);
    color: var(--color-primary-dark, #051a3d);
    opacity: 1;
}

.cta-flag { font-size: 0.85em; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--color-primary-dark, #051a3d);
    padding: 8px;
}

.site-header.scrolled .nav-toggle {
    color: var(--color-text-light, #fff);
}

.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--color-text-light, #fff);
}

/* Image-only hero (no overlay text) → 画像全体が見えるように */
.hero-image-only {
    min-height: 0;
    aspect-ratio: 3 / 2;          /* hero.jpegの実寸比に合わせる(1536:1024) */
    background: transparent;       /* 切り抜き部分から背景画像を透けさせる */
    /* 下端を SVG の滑らかな波形でクリップ → カット部分は body の背景画像が見える */
    clip-path: url(#heroWaveClip);
    -webkit-clip-path: url(#heroWaveClip);
}

.hero-image-only .hero-bg-img {
    object-fit: contain;          /* 画像全体が見えるように(切れない) */
    object-position: center;
}

/* スライドショー: クロスフェード */
.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2.2s ease-in-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Hero 右側パネル(ヘッドライン + 特徴 + ボタン) */
.hero-right-panel {
    position: absolute;
    /* 上から12%の位置(ヘッダーの下、ヘッドラインが見やすい高さ) */
    top: 12%;
    right: 4%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    color: var(--color-primary-dark, #051a3d);
    width: min(46%, 600px);
    text-align: center;
}

/* 右側ヘッドラインブロック(幻想的) */
.hero-headline-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    /* 浮遊アニメは継続的に transform 計算するため削除(スクロール負荷回避) */
}

/* PC: trio はそのままインラインで配置 */
.hero-headline-trio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* モバイル時: JS が trio を hero-bg 内に移動 → 画像の中央にオーバーレイ */
.hero-bg.hero-bg-has-trio {
    position: relative;
}
.hero-bg.hero-bg-has-trio .hero-headline-trio {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    pointer-events: none;
    gap: 12px;
    /* 文字を読みやすくするため、画像上に薄いグラデーション影 */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.18) 100%);
}
.hero-bg.hero-bg-has-trio .hero-headline-trio > * {
    pointer-events: auto;
}

/* スマホ時のみ表示する logo2 (ヘッドライン上に中央配置) */
.headline-mobile-logo {
    display: none;
    height: 56px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
}

/* ロゴブロック (シェル画像 + タイトル + サブ) - PCは非表示、スマホで中央表示 */
.hero-logo-block {
    display: none;
}
.hero-logo-shell {
    display: block;
    margin: 0 auto 4px;
    height: 60px;
    width: auto;
}
.hero-logo-title {
    margin: 0;
    font-family: var(--font-logo, 'Cormorant Garamond', serif);
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-align: center;
    /* ロゴ専用色 → 未設定なら HERO ヘッドライン色 → テーマ濃色 */
    color: var(--hero-logo-color, var(--hero-headline-color, var(--color-primary-dark, #051a3d)));
}
.hero-logo-sub {
    margin: 6px 0 0;
    font-family: var(--font-logo, 'Cormorant Garamond', serif);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    text-align: center;
    color: var(--hero-logo-color, var(--hero-headline-color, var(--color-primary-dark, #051a3d)));
    opacity: 0.75;
}

@keyframes heroHeadlineFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.headline-prefix,
.headline-suffix {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-heading, 'Noto Serif JP', serif);
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--hero-headline-color, var(--color-primary-dark, #051a3d));
    text-shadow:
        0 0 14px rgba(255, 255, 255, 0.95),
        0 0 28px rgba(245, 215, 163, 0.6);
}

.headline-prefix .deco-line,
.headline-suffix .deco-line {
    display: block;
    width: 48px;
    height: 1px;
    /* ゴールド系のフェードライン */
    background: linear-gradient(90deg, transparent, rgba(245, 215, 163, 0.95), transparent);
    box-shadow: 0 0 6px rgba(245, 215, 163, 0.6);
}

.headline-main {
    font-family: var(--font-heading, 'Noto Serif JP', serif);
    font-size: clamp(2.1rem, 3.8vw, 3.4rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.4;
    /* HEROヘッドライン専用色: admin で個別指定があればそれ、無ければテーマ濃色 */
    color: var(--hero-headline-color, var(--color-primary-dark, #051a3d));
    margin: 0;
    white-space: nowrap;
    /* 幻想的な多層光彩 - 白×ゴールド×水色(静的) */
    text-shadow:
        0 0 8px rgba(255, 255, 255, 1),
        0 0 16px rgba(255, 255, 255, 0.95),
        0 0 32px rgba(245, 215, 163, 0.7),
        0 0 50px rgba(184, 226, 236, 0.6),
        0 0 80px rgba(130, 204, 221, 0.4);
    position: relative;
    /* shimmer アニメは text-shadow 5層を毎フレーム再描画するため CPU/GPU を継続的に消費する。
       スクロール時のカクつき主犯のため削除。静的な多層シャドウは維持して幻想感を保つ */
}

@keyframes shimmer {
    0%, 100% {
        text-shadow:
            0 0 8px rgba(255, 255, 255, 1),
            0 0 16px rgba(255, 255, 255, 0.95),
            0 0 32px rgba(245, 215, 163, 0.7),
            0 0 50px rgba(184, 226, 236, 0.6),
            0 0 80px rgba(130, 204, 221, 0.4);
    }
    50% {
        text-shadow:
            0 0 12px rgba(255, 255, 255, 1),
            0 0 24px rgba(255, 255, 255, 1),
            0 0 48px rgba(245, 215, 163, 0.85),
            0 0 70px rgba(184, 226, 236, 0.75),
            0 0 100px rgba(130, 204, 221, 0.55);
    }
}

.headline-sub {
    margin: 8px 0 0 0;
    font-family: var(--font-body, 'Noto Sans JP', sans-serif);
    font-size: clamp(0.78rem, 1vw, 0.95rem);
    line-height: 2;
    letter-spacing: 0.08em;
    /* サブヘッドライン専用色: admin 設定があれば優先、なければ白 */
    color: var(--hero-sub-color, #ffffff);
    /* 暗い背景でも文字が読みやすいよう柔らかい影 */
    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.45),
        0 0 16px rgba(5, 26, 61, 0.35);
}

/* Hero 内 特徴アイコン (元の features セクションを Hero 内に移動) */
.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 540px;
    margin: 8px 0 0;
}

.hero-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 6px 4px;
    color: var(--color-primary-dark, #051a3d);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
}

.hero-feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.45);
}

.hero-feature-svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary-dark, #051a3d);
}

.hero-feature-title {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.hero-feature-desc {
    font-size: 0.7rem;
    line-height: 1.3;
    opacity: 0.85;
}

/* Hero ボタン */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin-top: 4px;
}

/* 横並びの小さめボタン配置 */
.hero-buttons-horizontal {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
    max-width: 100%;
    flex-wrap: wrap;
}

.hero-buttons-horizontal .btn-image {
    width: auto;
    flex: 0 1 auto;
}

.hero-buttons-horizontal .btn-image img {
    /* ボタン画像サイズ */
    height: 84px;
    width: auto;
}

/* 画像ボタン (botann01/02.png) */
.btn-image {
    display: inline-block;
    width: 100%;
    transition: transform 0.3s ease, filter 0.3s ease;
    line-height: 0;
    border-radius: 999px;
    /* ふんわりした浮き上がり */
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}

.btn-image:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
    opacity: 1;
}

.btn-image img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary-dark, #051a3d);
    border-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(5, 26, 61, 0.25);
    opacity: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(130, 204, 221, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(184, 226, 236, 0.25) 0%, transparent 60%),
        linear-gradient(180deg, var(--color-secondary, #1e5a8e) 0%, var(--color-primary-dark, #051a3d) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 26, 61, 0.2) 0%, rgba(5, 26, 61, 0.55) 100%);
}

.hero-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1));
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.5);
    animation: float-up 12s linear infinite;
    opacity: 0;
}

.bubble-0 { width: 12px; height: 12px; left: 8%; animation-delay: 0s; animation-duration: 14s; }
.bubble-1 { width: 8px; height: 8px; left: 18%; animation-delay: 2s; animation-duration: 11s; }
.bubble-2 { width: 16px; height: 16px; left: 25%; animation-delay: 4s; animation-duration: 16s; }
.bubble-3 { width: 6px; height: 6px; left: 35%; animation-delay: 1s; animation-duration: 9s; }
.bubble-4 { width: 14px; height: 14px; left: 45%; animation-delay: 5s; animation-duration: 13s; }
.bubble-5 { width: 10px; height: 10px; left: 55%; animation-delay: 3s; animation-duration: 15s; }
.bubble-6 { width: 18px; height: 18px; left: 65%; animation-delay: 6s; animation-duration: 17s; }
.bubble-7 { width: 8px; height: 8px; left: 75%; animation-delay: 2s; animation-duration: 12s; }
.bubble-8 { width: 12px; height: 12px; left: 82%; animation-delay: 4s; animation-duration: 14s; }
.bubble-9 { width: 6px; height: 6px; left: 90%; animation-delay: 0s; animation-duration: 10s; }
.bubble-10 { width: 20px; height: 20px; left: 12%; animation-delay: 7s; animation-duration: 18s; }
.bubble-11 { width: 10px; height: 10px; left: 60%; animation-delay: 9s; animation-duration: 11s; }

@keyframes float-up {
    0% {
        transform: translateY(110vh) translateX(0) scale(0.8);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    50% { transform: translateY(50vh) translateX(20px) scale(1); opacity: 0.8; }
    90% { opacity: 0.4; }
    100% {
        transform: translateY(-10vh) translateX(-10px) scale(0.6);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-headline {
    font-family: var(--font-heading, 'Noto Serif JP', serif);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px auto;
    color: var(--color-highlight, #f5d7a3);
}

.hero-divider span {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor);
}

.hero-divider span:last-child {
    background: linear-gradient(90deg, currentColor, transparent);
}

.hero-divider svg { width: 18px; height: 18px; }

.hero-subheadline {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 2;
    margin-bottom: 48px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-decor-bottom {
    /* clip-path に置き換えたため非表示(SVG波形は不要) */
    display: none;
}

/* ---------- Features Section ---------- */
.features {
    padding: 80px 0;
    background: transparent;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 32px 16px;
    border-left: 1px solid rgba(30, 90, 142, 0.15);
}

.feature-item:first-child { border-left: 0; }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent, #82ccdd), var(--color-secondary, #1e5a8e));
    color: var(--color-text-light, #fff);
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(30, 90, 142, 0.18);
}

.feature-svg { width: 28px; height: 28px; }

.feature-title {
    font-family: var(--font-heading, 'Noto Serif JP', serif);
    font-size: 0.95rem;
    color: var(--color-text-dark, #1e3a5f);
    margin-bottom: 6px;
    font-weight: 500;
    line-height: 1.5;
}

.feature-desc {
    color: var(--color-text-muted, #6b7c93);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---------- HERO 動画(任意) - TV風 横長フレーム ---------- */
.hero-video-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
    /* 0.5cm 上に持ち上げて、下が切れないように */
    margin: -0.5cm auto 0;
    aspect-ratio: 16 / 9;     /* TV画面比率 */
}
.hero-video-frame-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 8px 16px rgba(10, 47, 92, 0.2));
}
/* フレームありの場合: 動画はTVスクリーン部分(中央寄せの矩形)に配置 */
.hero-video-framed .hero-video-media {
    position: absolute;
    /* 一般的なTVフレームのスクリーン位置 (縁が約8%幅、上部メニューバーや下部スタンドで縦は少し狭め) */
    left: 8%;
    top: 10%;
    width: 84%;
    height: 70%;
    border-radius: 4px;        /* TVスクリーンらしい控えめな角丸 */
    overflow: hidden;
    z-index: 1;
}
/* フレームなしの場合: 動画をシンプルな角丸+影で全面表示 */
.hero-video-wrap:not(.hero-video-framed) .hero-video-media {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(10, 47, 92, 0.25);
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* スマホでは動画自体を非表示(通信量・パフォーマンス節約) */
@media (max-width: 720px) {
    .hero-video-wrap {
        display: none !important;
    }
}

/* ---------- About Section ---------- */
.about {
    background: transparent;
    position: relative;
    /* Heroセクションに近づける(上の余白をぐっと減らす) */
    padding-top: 40px;
    padding-bottom: 80px;
}

/* 左テキスト + 右3つの丸画像レイアウト */
.about-content {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 48px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    /* container内padding分を吸収して、テキストを更に左へ寄せる */
    padding-left: 0;
}

/* 左: テキストブロック */
.about-text-block {
    text-align: left;
    /* 左に少し寄せる */
    padding-left: 12px;
}

.about-text-block .section-subtitle {
    text-align: left;
    margin-bottom: 8px;
}

.section-title-left {
    text-align: left;
    margin-bottom: 16px;
    /* 小さめに調整 */
    font-size: clamp(1.3rem, 2.8vw, 1.9rem);
}

.section-divider-left {
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-highlight, #f5d7a3), transparent);
    margin: 0 0 28px 0;
}

.about-description {
    line-height: 2.2;
    font-size: 1rem;
    color: var(--color-text-dark, #1e3a5f);
    max-width: 380px;
}

/* 右: 3つの丸型画像枠 - 横並び山型配置 */
.about-circles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    padding: 60px 0; /* 上下を山の高低差ぶん確保 */
}

.about-circle {
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-accent-light, #b8e2ec), var(--color-accent, #82ccdd));
    box-shadow: 0 16px 36px rgba(10, 47, 92, 0.18);
    aspect-ratio: 1;
    flex: 0 0 auto;
    width: 32%;
    max-width: 220px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.about-circle:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(10, 47, 92, 0.25);
}

.about-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-circle-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.7);
}

/* 山型の高低差: 真ん中が高くなる(山頂) */
.about-circle-0 {
    transform: translateY(28px);  /* 左: やや低い */
}

.about-circle-1 {
    transform: translateY(-32px); /* 中央: 山頂(高い) */
    width: 36%;
    max-width: 240px;
}

.about-circle-2 {
    transform: translateY(28px);  /* 右: やや低い */
}

/* ホバー時もtranslateを維持 */
.about-circle-0:hover { transform: translateY(22px); }
.about-circle-1:hover { transform: translateY(-38px); }
.about-circle-2:hover { transform: translateY(22px); }

/* ---------- Menu Section (海テイスト: 浮遊+波形+シェル) ---------- */
.menu {
    background: transparent;
    position: relative;
    padding: 100px 0 120px;
}

/* セクションの上下波形デコレ */
.menu-wave-top, .menu-wave-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    color: var(--color-secondary, #1e5a8e);
    pointer-events: none;
}
.menu-wave-top { top: 0; }
.menu-wave-bottom { bottom: 0; }
.menu-wave-top svg, .menu-wave-bottom svg { width: 100%; height: 100%; display: block; }

.menu-categories { display: grid; gap: 80px; }

/* カテゴリタイトル: シェル+波線 装飾 */
.menu-cat-title {
    font-family: var(--font-heading, 'Noto Serif JP', serif);
    font-size: 1.35rem;
    font-weight: 500;
    text-align: center;
    color: var(--color-text-dark, #1e3a5f);
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    letter-spacing: 0.08em;
}

.menu-cat-deco {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-highlight, #f5d7a3);
}

.menu-cat-shell {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--color-highlight, #f5d7a3);
    animation: menuShellFloat 5s ease-in-out infinite;
}

.menu-cat-deco-right .menu-cat-shell { animation-delay: 1.5s; }

@keyframes menuShellFloat {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-3px) rotate(4deg); }
}

.menu-cat-wave-wrap {
    width: 80px;
    height: 14px;
    display: inline-block;
    color: var(--color-highlight, #f5d7a3);
}

.menu-cat-wave-svg { width: 100%; height: 100%; display: block; }

.menu-cat-name {
    padding: 0 4px;
    color: var(--color-text-dark, #1e3a5f);
}

/* メニュー: 横スクロール(自動スクロール) */
.menu-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 28px 16px 36px;
    /* PC でも 3〜3.5 枚に制限して、4枚目からスクロールが必要に */
    max-width: 1020px;
    margin: 0 auto;
    /* scroll-snap は自動スクロールと相性が悪いため無効化 */
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 16px;
    justify-content: flex-start;
}

/* スクロールバー(細め) */
.menu-grid::-webkit-scrollbar {
    height: 6px;
}
.menu-grid::-webkit-scrollbar-track {
    background: rgba(30, 90, 142, 0.08);
    border-radius: 3px;
}
.menu-grid::-webkit-scrollbar-thumb {
    background: rgba(30, 90, 142, 0.35);
    border-radius: 3px;
}
.menu-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 90, 142, 0.6);
}

/* カードは固定幅 */
.menu-card {
    flex: 0 0 280px;
    max-width: 280px;
}

/* 縦カード - 透過窓フレーム形式(menu_back.png) */
.menu-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    position: relative;
    padding: 8px 6px 16px;
    transition: transform 0.4s ease;
}

/* フレーム+画像のラッパー(正方形) */
.menu-card-frame-wrap {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
}

/* 透過窓のあるフレーム背景画像 */
.menu-card-frame-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 8px 16px rgba(10, 47, 92, 0.15));
}

/* フレーム形式の場合: 画像を透過窓位置に配置 */
.menu-card-framed .menu-card-image {
    position: absolute;
    /* menu_back.png の透過窓: 中心 44.5% × 56.7%, サイズ 39% × 36% */
    left: 25%;
    top: 38.5%;
    width: 39%;
    height: 36.5%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    aspect-ratio: auto;
    margin: 0;
    box-shadow: none;
    transition: transform 0.4s ease;
}

.menu-card-framed .menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-card-framed:hover .menu-card-image {
    transform: scale(1.05);
}

/* バッジをフレーム上に重ねる(フレーム形式のとき) */
.menu-badge-on-frame {
    position: absolute;
    top: 5%;
    right: 0;
    left: auto;
    z-index: 3;
}

/* 通常カード(フレームなし時): 有機的な角丸 */
.menu-card:not(.menu-card-framed) .menu-card-image {
    border-radius: 32% 68% 68% 32% / 30% 32% 68% 70%;
    overflow: hidden;
    aspect-ratio: 4/3;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 12px 32px rgba(10, 47, 92, 0.18);
    transition: border-radius 0.6s ease, transform 0.4s ease;
}

.menu-card:not(.menu-card-framed):hover .menu-card-image {
    border-radius: 50% 50% 40% 60% / 40% 60% 40% 60%;
    transform: translateY(-2px);
}

/* 浮遊アニメーション(4パターンの位相差で自然に揺れる) */
.menu-card-float {
    animation: menuCardFloat 6s ease-in-out infinite;
    will-change: transform;
}
.menu-card-float-1 { animation-delay: 0s; }
.menu-card-float-2 { animation-delay: 1.2s; animation-duration: 7s; }
.menu-card-float-3 { animation-delay: 2.4s; animation-duration: 6.5s; }
.menu-card-float-4 { animation-delay: 3.6s; animation-duration: 7.5s; }

@keyframes menuCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.menu-card:hover {
    box-shadow:
        0 24px 48px rgba(10, 47, 92, 0.18),
        0 0 0 1px rgba(184, 226, 236, 0.5) inset;
}

/* コーナーのシェル装飾 - 小型カード用 */
.menu-card-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    color: var(--color-highlight, #f5d7a3);
    z-index: 3;
    pointer-events: none;
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.menu-card-corner-tl {
    top: -8px;
    left: -8px;
    transform: rotate(-20deg);
    animation: menuCornerWobble 5s ease-in-out infinite;
}

@keyframes menuCornerWobble {
    0%, 100% { transform: rotate(-20deg) translateY(0); }
    50% { transform: rotate(-15deg) translateY(-2px); }
}

.menu-corner-icon { width: 100%; height: 100%; display: block; }

/* ホバー時に立ち上がる泡 */
.menu-card-bubbles {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 2;
}

.menu-bubble {
    position: absolute;
    bottom: 10%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(184, 226, 236, 0.5));
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: none;
}

.menu-bubble-1 { width: 8px; height: 8px; left: 30%; }
.menu-bubble-2 { width: 6px; height: 6px; left: 50%; }
.menu-bubble-3 { width: 10px; height: 10px; left: 70%; }

.menu-card:hover .menu-bubble {
    animation: menuBubbleRise 1.6s ease-out infinite;
}
.menu-card:hover .menu-bubble-1 { animation-delay: 0s; }
.menu-card:hover .menu-bubble-2 { animation-delay: 0.4s; animation-duration: 1.4s; }
.menu-card:hover .menu-bubble-3 { animation-delay: 0.8s; animation-duration: 1.8s; }

@keyframes menuBubbleRise {
    0% { transform: translateY(0) translateX(0) scale(0.7); opacity: 0; }
    20% { opacity: 0.8; }
    100% { transform: translateY(-160px) translateX(-8px) scale(1); opacity: 0; }
}

.menu-card-image {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-accent-light, #b8e2ec), var(--color-accent, #82ccdd));
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.menu-card:hover .menu-card-image img { transform: scale(1.05); }

.menu-card-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.6);
}

.placeholder-icon { width: 48px; height: 48px; }

.menu-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--color-highlight, #f5d7a3);
    color: var(--color-text-dark, #1e3a5f);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
}

/* スターフィッシュ型バッジ(海テイスト) */
.menu-badge-starfish {
    position: absolute;
    top: -12px;
    left: -8px;
    right: auto;
    width: 56px;
    height: 56px;
    background: transparent;
    color: var(--color-text-dark, #1e3a5f);
    padding: 0;
    border-radius: 0;
    display: grid;
    place-items: center;
    z-index: 4;
    animation: badgeWobble 4s ease-in-out infinite;
    filter: drop-shadow(0 3px 6px rgba(10, 47, 92, 0.25));
}

.menu-badge-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--color-highlight, #f5d7a3);
    z-index: 1;
}

.menu-badge-text {
    position: relative;
    z-index: 2;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.1;
    color: var(--color-text-dark, #1e3a5f);
    padding: 2px 4px;
}

@keyframes badgeWobble {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
}

.menu-card-body {
    padding: 18px 12px 0;
    text-align: center;
}

.menu-card-title {
    font-family: var(--font-heading, 'Noto Serif JP', serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-dark, #1e3a5f);
    margin-bottom: 6px;
    line-height: 1.4;
}

.menu-card-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted, #6b7c93);
    line-height: 1.7;
    margin-bottom: 10px;
}

.menu-card-price {
    font-family: var(--font-logo, 'Cormorant Garamond', serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-secondary, #1e5a8e);
}

/* ============================================================
   MENU ホーム用 4カテゴリショーケース (section-menu-home.php)
   ============================================================ */
.menu-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 40px auto 0;
}
.menu-home-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease;
}
.menu-home-card:hover {
    transform: translateY(-6px);
    opacity: 1;
}
.menu-home-card-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-accent-light, #b8e2ec), var(--color-accent, #82ccdd));
    box-shadow: 0 12px 32px rgba(10, 47, 92, 0.18);
    transition: box-shadow 0.4s ease;
}
.menu-home-card:hover .menu-home-card-image {
    box-shadow: 0 18px 40px rgba(10, 47, 92, 0.25);
}
.menu-home-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.menu-home-card:hover .menu-home-card-image img {
    transform: scale(1.06);
}
.menu-home-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,47,92,0) 50%, rgba(10,47,92,0.45) 100%);
    pointer-events: none;
    transition: opacity 0.3s;
}
.menu-home-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.7);
}
.menu-home-card-name {
    margin: 16px 0 0;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-dark, #1e3a5f);
    letter-spacing: 0.06em;
}
.menu-home-cta {
    text-align: center;
    margin-top: 40px;
}

/* タブレット */
@media (max-width: 900px) {
    .menu-home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .menu-home-card-name { font-size: 0.95rem; }
}
/* スマホ */
@media (max-width: 480px) {
    .menu-home-grid { gap: 12px; }
    .menu-home-card-name { font-size: 0.9rem; margin-top: 10px; }
}

/* ============================================================
   MENU 詳細ページ (カテゴリ別)
   ============================================================ */

/* カテゴリ切替タブ */
.menu-cat-tabs {
    padding: 110px 0 0;
    max-width: 1100px;
    margin: 0 auto;
}
.menu-cat-tabs ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0 16px;
}
.menu-cat-tab {
    display: inline-block;
    padding: 10px 22px;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--color-text-dark, #1e3a5f);
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(30, 90, 142, 0.18);
    border-radius: 999px;
    transition: all 0.25s ease;
}
.menu-cat-tab:hover {
    background: var(--color-accent-light, #b8e2ec);
    border-color: var(--color-secondary, #1e5a8e);
    opacity: 1;
}
.menu-cat-tab.is-active {
    /* テーマ色変更の影響を受けないよう、明確な濃色を直接指定 */
    background: #0a2f5c;
    color: #ffffff;
    border-color: #0a2f5c;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* カテゴリヒーロー */
.menu-cat-hero {
    position: relative;
    margin: 30px auto 40px;
    max-width: 1280px;
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
}
.menu-cat-hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-secondary, #1e5a8e), var(--color-primary, #0a2f5c));
}
.menu-cat-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.menu-cat-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(10,47,92,0.55) 100%);
    pointer-events: none;
}
.menu-cat-hero-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    color: #fff;
    z-index: 1;
}
.menu-cat-hero-text .section-subtitle {
    color: var(--color-highlight, #f5d7a3);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.menu-cat-hero-title {
    font-family: var(--font-heading, 'Noto Serif JP', serif);
    font-size: 2.6rem;
    font-weight: 600;
    margin: 8px 0;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.08em;
}
.menu-cat-hero-text .section-divider {
    background: var(--color-highlight, #f5d7a3);
    margin: 8px auto 0;
    display: block;
    width: 60px;
    height: 2px;
}
/* ヒーロー画像なしの場合: テキスト位置をセンターに(クラス指定で全ブラウザ対応) */
.menu-cat-hero-noimg {
    padding: 50px 20px 30px;
    background: transparent;
    text-align: center;
}
.menu-cat-hero-noimg .menu-cat-hero-text {
    position: relative;
    bottom: auto;
    /* 文字色: 白(暗背景の上で読めるように) + 影で可読性 */
    color: #ffffff;
}
.menu-cat-hero-noimg .menu-cat-hero-title {
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.menu-cat-hero-noimg .section-subtitle {
    color: var(--color-highlight, #f5d7a3);
}
.menu-cat-hero-noimg .section-divider {
    background: var(--color-highlight, #f5d7a3);
}

/* 商品リスト (グリッド: 丸画像 + ピルバッジ + 価格) */
.menu-cat-items {
    list-style: none;
    margin: 0 auto;
    padding: 30px 16px 50px;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 24px;
}
.menu-cat-item {
    position: relative;       /* バッジを「商品全体」基準で位置指定するため */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}
.menu-cat-item:hover {
    transform: translateY(-4px);
}

/* 丸い商品画像 + ハイライトカラーのリング */
.menu-cat-item-image {
    position: relative;
    width: min(180px, 40vw);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--menu-item-bg, #fff);  /* カテゴリ毎にadminから設定可 */
    border: 4px solid var(--color-highlight, #f5d7a3);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    z-index: 1;
}
.menu-cat-item:hover .menu-cat-item-image {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
    border-color: #fff;
}
.menu-cat-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.menu-cat-item:hover .menu-cat-item-image img {
    transform: scale(1.06);
}
.menu-cat-item-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(30, 90, 142, 0.4);
    background: var(--color-accent-light, #b8e2ec);
}

/* バッジ(人気No.1 等)を丸画像の縁の外側にはみ出して配置 */
.menu-cat-item-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - min(90px, 20vw) - 12px);  /* 画像右上の縁の少し外 */
    background: #e63946;                          /* 人気が際立つ赤 */
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 999px;
    border: 2px solid #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 5;                                   /* 全要素より前面 */
    transform: rotate(8deg);                      /* ちょっと斜めに */
}

.menu-cat-item-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: -22px;  /* 名前ピルが画像と少し重なるように */
    position: relative;
    z-index: 3;         /* 画像より前面に表示 */
}

/* 商品名: 白ピル + ハイライトリング */
.menu-cat-item-name {
    margin: 0;
    background: #ffffff;
    color: #1e3a5f;
    padding: 9px 22px;
    border-radius: 999px;
    border: 2px solid var(--color-highlight, #f5d7a3);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    max-width: calc(100% - 16px);
    position: relative;
    z-index: 4;        /* 画像より絶対前面 */
}

/* 説明文: 暗背景上で読めるよう白文字 */
.menu-cat-item-desc {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    max-width: 240px;
    /* 2行に省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 価格: 大きめ白文字 */
.menu-cat-item-price {
    margin: 4px 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.menu-cat-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* 商品クリック可能を示すカーソル */
.menu-cat-item[data-modal-trigger] {
    cursor: pointer;
}

/* ============================================================
   商品詳細モーダル
   ============================================================ */
.menu-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    animation: menuModalFadeIn 0.25s ease;
}
.menu-modal[hidden] { display: none; }

@keyframes menuModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.menu-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 26, 61, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.menu-modal-card {
    position: relative;
    z-index: 1;
    width: min(880px, 96vw);
    max-height: 92vh;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    display: grid;
    grid-template-columns: 1fr 1fr;
    animation: menuModalSlideUp 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes menuModalSlideUp {
    from { transform: translateY(30px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.menu-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a5f;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background 0.2s;
}
.menu-modal-close:hover {
    transform: scale(1.1);
    background: #fff;
}

.menu-modal-image {
    position: relative;
    background: linear-gradient(135deg, var(--color-accent-light, #b8e2ec), var(--color-accent, #82ccdd));
    overflow: hidden;
}
.menu-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.menu-modal-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #e63946;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    border: 2px solid #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: rotate(-4deg);
}

.menu-modal-body {
    padding: 36px 32px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #1e3a5f;
}
.menu-modal-name {
    margin: 0;
    font-family: var(--font-heading, 'Noto Serif JP', serif);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.menu-modal-desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.85;
    color: #4a6584;
    white-space: pre-wrap;
}
.menu-modal-price {
    margin: 8px 0 0;
    font-family: var(--font-heading, 'Noto Serif JP', serif);
    font-size: 1.7rem;
    font-weight: 700;
    /* テーマ色に左右されない濃色を直接指定(白背景上で確実に可読) */
    color: #0a2f5c;
    letter-spacing: 0.04em;
    border-top: 1px solid rgba(30, 90, 142, 0.15);
    padding-top: 14px;
}
.menu-modal-price:empty { display: none; }
.menu-modal-tax {
    color: #6b7c93;
    font-size: 0.75rem;
}

/* タブレット */
@media (max-width: 768px) {
    .menu-modal-card {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }
    .menu-modal-image {
        aspect-ratio: 4 / 3;
    }
    .menu-modal-body {
        padding: 24px 22px 28px;
        gap: 10px;
    }
    .menu-modal-name { font-size: 1.35rem; }
    .menu-modal-price { font-size: 1.45rem; }
}

/* ボトム CTA */
.menu-page-footer-cta {
    padding: 60px 0 90px;
}
.menu-page-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.btn-outline-light {
    background: transparent;
    border: 1.5px solid var(--color-secondary, #1e5a8e);
    color: var(--color-secondary, #1e5a8e);
}
.btn-outline-light:hover {
    background: var(--color-secondary, #1e5a8e);
    color: #fff;
    opacity: 1;
}

/* 空ページ */
.menu-page-empty {
    padding: 140px 20px 100px;
    text-align: center;
}
.menu-page-empty h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

/* タブレット */
@media (max-width: 900px) {
    .menu-cat-hero-title { font-size: 2rem; }
    .menu-cat-hero-image { aspect-ratio: 16 / 7; }
    .menu-cat-items { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
}

/* スマホ */
@media (max-width: 560px) {
    .menu-cat-tabs { padding-top: 80px; }
    .menu-cat-tab { padding: 8px 16px; font-size: 0.82rem; }
    .menu-cat-hero { margin: 20px 12px; border-radius: 16px; }
    .menu-cat-hero-image { aspect-ratio: 4 / 3; }
    .menu-cat-hero-title { font-size: 1.5rem; }

    .menu-cat-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 12px;
        padding: 16px 12px 40px;
    }
    .menu-cat-item-image { width: min(140px, 38vw); border-width: 3px; }
    .menu-cat-item-name { font-size: 0.85rem; padding: 7px 16px; }
    .menu-cat-item-desc { font-size: 0.78rem; }
    .menu-cat-item-price { font-size: 1rem; }
    .menu-cat-item-badge {
        right: calc(50% - min(70px, 19vw) - 8px);
        font-size: 0.62rem;
        padding: 4px 10px;
    }
}

/* 小さいスマホ */
@media (max-width: 380px) {
    .menu-cat-items { grid-template-columns: 1fr; gap: 28px; }
    .menu-cat-item-image { width: 60vw; max-width: 200px; }
}

/* ============================================================
   MENU style: square (スタイリッシュ四角 + B&W→ホバーでカラー化)
   ============================================================ */
.menu-style-square .menu-grid {
    /* 自動スクロール継続(横並び) */
    padding: 24px 16px 32px;
}
.menu-style-square .menu-card {
    flex: 0 0 280px;
    max-width: 280px;
    /* カード自体の背景は透過 (white box を消す) */
    background: transparent !important;
    border-radius: 14px;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease;
    /* round スタイルで使う浮遊アニメは無効化(スタイリッシュ感) */
    animation: none !important;
}
.menu-style-square .menu-card:hover {
    transform: translateY(-4px);
}
/* 円形やフレーム形のスタイルを上書き */
.menu-style-square .menu-card-frame-bg,
.menu-style-square .menu-card-corner,
.menu-style-square .menu-card-bubbles { display: none; }

.menu-style-square .menu-card-frame-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    width: 100%;
}
.menu-style-square .menu-card-image {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    overflow: hidden;
    margin: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    /* 水色のグラデ背景を上書きして透過に */
    background: transparent !important;
}
.menu-style-square .menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}
.menu-style-square .menu-card:hover .menu-card-image img {
    transform: scale(1.06);
}
/* 半分グレースケール+黒タイント: 後ろの背景や透明部分を黒く塗りつぶしながら、商品はグレーで残す
   - backdrop-filter: 後ろにある画像の見た目をモノクロ化
   - background-color: 透過部分を黒く塗りつぶし
   - mix-blend-mode を使うと黒が商品まで暗くするので、ここでは backdrop-filter のみ */
.menu-style-square .menu-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    /* 後ろの画像はグレーに、暗めにシフト */
    backdrop-filter: grayscale(100%) brightness(0.85);
    -webkit-backdrop-filter: grayscale(100%) brightness(0.85);
    /* 透過してる部分を黒で塗りつぶす */
    background-color: rgba(0, 0, 0, 0.92);
    /* このレイヤー自体に「商品(画像不透過部分)を抜く」効果は付けられないため、
       下に複層構造で対応(::before で同じ画像をグレーで重ねる) */
    /* 右半分(対角に近い直線)を覆う */
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 35% 100%);
    transition: clip-path 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 2;
}
/* グレースケール化された商品画像を黒の上に重ねる(同じ画像を複製して重ねるため style 属性で対応) */
.menu-style-square .menu-card-image .menu-square-overlay-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.95);
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 35% 100%);
    transition: clip-path 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 3;
}
.menu-style-square .menu-card:hover .menu-square-overlay-img {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}
.menu-style-square .menu-card:hover .menu-card-image::after {
    /* ホバーでカット領域を消す → 全面カラー */
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}

/* バッジ位置(四角カード用) */
.menu-style-square .menu-badge-starfish {
    top: 8px;
    left: 8px;
    width: 52px;
    height: 52px;
    z-index: 3;
}
.menu-style-square .menu-badge-on-frame { display: none; }

/* カード本文 */
.menu-style-square .menu-card-body {
    padding: 16px 18px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* 白背景を透過に */
    background: transparent;
}
.menu-style-square .menu-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-dark, #1e3a5f);
    margin: 0;
    letter-spacing: 0.02em;
}
.menu-style-square .menu-card-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted, #6b7c93);
    margin: 0;
    line-height: 1.55;
    /* 2行に省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.menu-style-square .menu-card-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-secondary, #1e5a8e);
    margin: 4px 0 0;
    letter-spacing: 0.04em;
}

/* スマホ調整 */
@media (max-width: 560px) {
    .menu-style-square .menu-card {
        flex: 0 0 240px;
        max-width: 240px;
    }
    .menu-style-square .menu-card-title { font-size: 0.95rem; }
    .menu-style-square .menu-card-price { font-size: 0.95rem; }
}

/* ---------- Gallery Section (潜水艦フレーム+動画対応) ---------- */
.gallery {
    background: transparent;
    position: relative;
    padding: 100px 0 110px;
    color: var(--color-secondary, #1e5a8e);
}

.gallery-wave-top,
.gallery-wave-bottom {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 40px;
    pointer-events: none;
    color: var(--color-secondary, #1e5a8e);
}
.gallery-wave-top { top: 0; }
.gallery-wave-bottom { bottom: 0; }
.gallery-wave-top svg,
.gallery-wave-bottom svg { display: block; width: 100%; height: 100%; }

/* グリッド: 通常時は3列、フレーム使用時は同じグリッド */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
    max-width: 1080px;
    margin: 40px auto 0;
    padding: 28px 16px 36px;
}

/* カード本体 */
.gallery-item-card {
    position: relative;
    text-align: center;
    padding: 8px 6px 16px;
    transition: transform 0.4s ease;
    animation: galleryFloat 6s ease-in-out infinite;
    will-change: transform;
}
.gallery-item-card:nth-child(4n+1) { animation-delay: 0s; }
.gallery-item-card:nth-child(4n+2) { animation-delay: -1.5s; }
.gallery-item-card:nth-child(4n+3) { animation-delay: -3s; }
.gallery-item-card:nth-child(4n+4) { animation-delay: -4.5s; }

@keyframes galleryFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* 泡(ホバー時に立ち上がる) */
.gallery-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.gallery-bubble {
    position: absolute;
    bottom: 14%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(184, 226, 236, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-bubble-1 { left: 14%; }
.gallery-bubble-2 { left: 50%; width: 6px; height: 6px; }
.gallery-bubble-3 { left: 80%; width: 5px; height: 5px; }
.gallery-item-card:hover .gallery-bubble {
    animation: bubbleRise 1.6s ease-out infinite;
    opacity: 1;
}
.gallery-item-card:hover .gallery-bubble-2 { animation-delay: 0.3s; }
.gallery-item-card:hover .gallery-bubble-3 { animation-delay: 0.6s; }
@keyframes bubbleRise {
    0% { transform: translateY(0); opacity: 0.6; }
    100% { transform: translateY(-90px); opacity: 0; }
}

/* フレーム+メディアのラッパー(正方形) */
.gallery-item-frame-wrap {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
}

/* 透過窓のあるフレーム背景画像 */
.gallery-item-frame-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 8px 16px rgba(10, 47, 92, 0.15));
}

/* フレーム形式の場合: メディアを透過窓位置に配置 */
.gallery-item-framed .gallery-item-media {
    position: absolute;
    /* gallery-frame.png の透過窓 想定: 中心 44.5% × 56.7%, サイズ 39% × 36% (menu と同等) */
    left: 25%;
    top: 38.5%;
    width: 39%;
    height: 36.5%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    box-shadow: none;
    transition: transform 0.4s ease;
}
.gallery-item-framed:hover .gallery-item-media {
    transform: scale(1.05);
}

/* 通常カード(フレームなし時): 有機的な角丸 */
.gallery-item-card:not(.gallery-item-framed) .gallery-item-media {
    border-radius: 32% 68% 68% 32% / 30% 32% 68% 70%;
    overflow: hidden;
    aspect-ratio: 1;
    width: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 0 12px 32px rgba(10, 47, 92, 0.18);
    transition: border-radius 0.6s ease, transform 0.4s ease;
}
.gallery-item-card:not(.gallery-item-framed):hover .gallery-item-media {
    border-radius: 50% 50% 40% 60% / 40% 60% 40% 60%;
    transform: translateY(-2px);
}

/* メディア(画像/動画/プレースホルダー)共通 */
.gallery-item-media img,
.gallery-item-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* PC: モバイル用ポスター画像は非表示(動画が再生されるため) */
.gallery-mobile-poster {
    display: none;
    position: absolute;
    inset: 0;
}
.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}
.gallery-item-card:hover .gallery-item-media img,
.gallery-item-card:hover .gallery-item-media video {
    transform: scale(1.06);
}

/* 動画 再生バッジ */
.gallery-video-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 3;
    pointer-events: none;
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.3s;
}
.gallery-video-badge svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    background: rgba(10, 47, 92, 0.55);
    border-radius: 50%;
    padding: 6px 5px 6px 7px;
    box-sizing: content-box;
}
.gallery-item-video:hover .gallery-video-badge {
    opacity: 0;
    transform: scale(0.8);
}

/* キャプション */
.gallery-item-caption {
    margin: 12px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-dark, #1e3a5f);
    letter-spacing: 0.04em;
}

/* プレースホルダー */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: var(--color-accent-light, #b8e2ec);
    color: rgba(30, 90, 142, 0.4);
}

/* タブレット */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
}

/* モバイル */
@media (max-width: 560px) {
    .gallery {
        padding: 70px 0 80px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 12px;
        padding: 20px 8px 24px;
    }
    .gallery-item-caption {
        font-size: 12px;
    }
}

/* ---------- Access Section ---------- */
.access {
    background: transparent;
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: stretch;
}

.access-info {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(10, 47, 92, 0.08);
}

.access-list { display: grid; gap: 20px; }

.access-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(30, 90, 142, 0.15);
}

.access-row:last-child { border-bottom: 0; padding-bottom: 0; }

.access-row dt {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-secondary, #1e5a8e);
    font-weight: 500;
    font-size: 0.9rem;
}

.access-icon { width: 18px; height: 18px; flex-shrink: 0; }

.access-row dd {
    font-size: 0.95rem;
    color: var(--color-text-dark, #1e3a5f);
    line-height: 1.7;
}

.access-row a {
    color: var(--color-secondary, #1e5a8e);
    text-decoration: underline;
    text-decoration-color: rgba(30, 90, 142, 0.3);
}

/* 店舗情報枠カスタム色設定: 内部すべてのテキストを継承色に */
.access-info-custom dt,
.access-info-custom dd,
.access-info-custom .access-row a {
    color: inherit;
}
.access-info-custom .access-row {
    border-bottom-color: rgba(127, 127, 127, 0.15);
}
.access-info-custom .access-icon { color: inherit; opacity: 0.9; }
.access-info-custom dt { opacity: 0.92; }

.access-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 47, 92, 0.08);
    background: var(--color-accent-light, #b8e2ec);
    min-height: 360px;
    position: relative;
}

.access-map iframe { width: 100%; height: 100%; border: 0; min-height: 360px; }

.map-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--color-text-muted, #6b7c93);
    text-align: center;
    padding: 32px;
    gap: 16px;
}

.map-icon { width: 48px; height: 48px; }

/* ---------- Reservation Section ---------- */
.reservation {
    background: transparent;
}

.reservation-form {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(10, 47, 92, 0.12);
}

/* カスタム色適用時はインライン style で background-image / background-color / color を上書き
   テキスト色をフォーム内のラベルや注記にも伝搬 */
.reservation-form-custom .form-label,
.reservation-form-custom .form-note,
.reservation-form-custom .required-mark {
    color: inherit;
}

/* セクション全体にカスタムテキスト色を適用 (見出し・説明文も同じ色に) */
.reservation-custom-text .section-subtitle,
.reservation-custom-text .section-title,
.reservation-custom-text .section-lead {
    color: inherit;
}
.reservation-custom-text .section-divider {
    background-color: currentColor;
    opacity: 0.6;
}

/* 入力欄内のテキストは常に読みやすい暗色を維持 (読めなくなる事故を防止) */
.reservation-form-custom .form-control {
    color: #1e3a5f;
    background: #ffffff;
}
.reservation-form-custom .form-control::placeholder {
    color: rgba(30, 58, 95, 0.45);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.form-row { display: flex; flex-direction: column; gap: 6px; }

.form-row-textarea, .form-row-email, .form-row-tel {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-dark, #1e3a5f);
}

.required-mark {
    color: #e63946;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;            /* padding/border を width に含める = 100% で枠ピッタリ */
    padding: 12px 16px;
    border: 1.5px solid rgba(30, 90, 142, 0.2);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text-dark, #1e3a5f);
    background: var(--color-background, #f7faff);
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* iOS Safari の date / time 入力は独自のネイティブUIで枠からはみ出るため、
   appearance リセット + min-width:0 で枠内に収める */
input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control,
input[type="week"].form-control {
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
    /* iOS で内部余白が増えるのを抑える */
    line-height: 1.4;
}
/* 中の日付値スタイルも揃える */
input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
    text-align: left;
}

.form-control:focus {
    outline: 0;
    border-color: var(--color-secondary, #1e5a8e);
    box-shadow: 0 0 0 4px rgba(30, 90, 142, 0.12);
}

.form-honey {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.form-submit {
    text-align: center;
    margin-bottom: 16px;
}

.form-note {
    text-align: center;
    color: var(--color-text-muted, #6b7c93);
    font-size: 0.85rem;
}

.form-success {
    text-align: center;
    padding: 64px 32px;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--color-secondary, #1e5a8e);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background: var(--color-primary-dark, #051a3d);
    color: var(--color-text-light, #fff);
    padding: 80px 0 40px;
    overflow: hidden;
}

.footer-decor {
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path d='M0,0 C200,60 400,20 600,40 C800,60 1000,20 1200,50 L1200,80 L0,80 Z' fill='%23051a3d'/></svg>") no-repeat top;
    background-size: cover;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-brand-name {
    font-family: var(--font-logo, 'Cormorant Garamond', serif);
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    margin-top: 12px;
}

.footer-brand-sub {
    font-family: var(--font-logo, 'Cormorant Garamond', serif);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    opacity: 0.7;
}

.footer-logo {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
}

.footer-sns {
    display: flex;
    gap: 20px;
}

.footer-sns a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
}

.footer-sns a:hover {
    background: var(--color-text-light, #fff);
    color: var(--color-primary-dark, #051a3d);
    transform: translateY(-3px);
    opacity: 1;
}

.sns-icon { width: 20px; height: 20px; }

.footer-copy {
    margin-top: 16px;
    font-size: 0.85rem;
    opacity: 0.7;
    letter-spacing: 0.05em;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    section { padding: 70px 0; }

    .header-inner { padding: 0 20px; }

    .nav-toggle { display: block; }

    .header-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80%;
        max-width: 360px;
        background: var(--color-primary-dark, #051a3d);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 32px 32px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        gap: 0;
    }

    .header-nav.open { transform: translateX(0); }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 1.1rem;
        color: #ffffff;        /* スマホのドロワーは紺色背景なので白文字に */
        text-shadow: none;
    }

    /* スクロール時のクラスでも白を維持 (ドロワーは常に紺色背景のため) */
    .site-header.scrolled .header-nav .nav-link {
        color: #ffffff;
    }

    .header-cta { margin-top: 24px; justify-content: center; }

    .features-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .feature-item:nth-child(odd) { border-left: 0; }
    .feature-item:nth-child(3) { border-top: 1px solid rgba(30, 90, 142, 0.15); }
    .feature-item:nth-child(4) { border-top: 1px solid rgba(30, 90, 142, 0.15); }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .access-content {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-row-textarea, .form-row-email, .form-row-tel {
        grid-column: auto;
    }

    .reservation-form { padding: 32px 24px; }

    .access-info { padding: 28px; }

    .access-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }

    /* ----- スマホ時のヘッダーをコンパクトに ----- */
    .site-header { padding: 8px 0; }
    .site-header.scrolled { padding: 8px 0; }
    .header-inner { min-height: 48px; }

    .logo-img-wrap { width: 44px; height: 44px; }
    /* スマホでは ヘッダーの logo2(テキストロゴ) は非表示。Hero内のlogo2のみ表示する */
    .logo-img-text { display: none; }
    .header-logo {
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        gap: 8px;
        justify-content: center;
    }
    .site-header.scrolled .header-logo {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .site-header.scrolled .logo-img-wrap { width: 40px; height: 40px; }

    /* ----- スマホ時の Hero 調整(中央配置・文字小さく) ----- */
    .hero,
    .hero-image-only {
        aspect-ratio: auto;
        min-height: auto;
        max-height: none;
        height: auto;
        display: block;
        padding-bottom: 60px;
        /* スマホでは画像下のグラデ背景は不要(body の cream 背景を見せる) */
        background: transparent;
    }

    /* 画像エリア: 画像の自然なアスペクト比に合わせる(コンテナで強制比率を作らない)
       → ヘッダーと画像の間に空白が出ない */
    .hero-bg {
        position: relative;
        aspect-ratio: auto !important;
        height: auto !important;
        clip-path: none;
        -webkit-clip-path: none;
    }
    .hero-image-only {
        clip-path: none;
        -webkit-clip-path: none;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    /* スライドショーとスライドも自然な高さに(absolute だと親が 0 になるため) */
    .hero-slideshow {
        position: relative !important;
        height: auto !important;
    }
    .hero-slide {
        position: relative !important;
        height: auto !important;
    }
    .hero-slide:not(.active) {
        display: none;  /* スマホは1枚目だけ表示(2枚目以降は不要) */
    }
    /* 画像自体: 横幅100%、高さは自然 = 画像のアスペクトに従う */
    .hero-image-only .hero-bg-img {
        position: relative;
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        margin: 0;
    }

    /* テキストパネルは画像の下に通常フロー配置 */
    .hero-right-panel {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        padding: 22px 18px 0;
        align-items: center;
        text-align: center;
        gap: 16px;
        transform: none;
    }

    /* スマホでは clip-path に置き換えたため、 hero-decor-bottom と ::after の波形は不要 */
    .hero-decor-bottom { display: none; }
    .hero-bg::after { display: none; }

    /* スマホで旧 logo2 画像は廃止(代わりに hero-logo-block を使用) */
    .headline-mobile-logo {
        display: none;
    }
    /* 新ロゴブロック(シェル画像 + I'M KITCHEN + AQUARIUM CAFE & ACAI) */
    .hero-logo-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-bottom: 12px;
        align-self: center;
        width: 100%;
    }
    .hero-logo-shell { height: 50px; }
    .hero-logo-title {
        font-size: 2rem;
    }
    .hero-logo-sub {
        font-size: 0.82rem;
        letter-spacing: 0.28em;
    }

    /* ヘッドライン: スマホ用 (少し大きめに調整) */
    .headline-prefix,
    .headline-suffix {
        font-size: 1.05rem !important;
        gap: 12px;
        letter-spacing: 0.25em;
    }
    .headline-prefix .deco-line,
    .headline-suffix .deco-line {
        width: 32px;
    }
    .headline-main {
        font-size: 1.85rem !important;
        white-space: normal !important;
        letter-spacing: 0.04em;
    }
    .headline-sub {
        font-size: 0.92rem !important;
        line-height: 1.7;
        letter-spacing: 0.04em;
        /* スマホはクリーム背景なので、admin 設定があれば優先、なければ紺色 */
        color: var(--hero-sub-color, var(--color-primary-dark, #051a3d)) !important;
        text-shadow: none !important;
    }

    /* hero block の gap を狭く */
    .hero-headline-block { gap: 10px; }

    /* 4特徴アイコン: 2x2 grid に */
    .hero-features {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        max-width: 100%;
        margin-top: 6px;
    }
    .hero-feature-icon {
        width: 32px;
        height: 32px;
    }
    .hero-feature-svg { width: 16px; height: 16px; }
    .hero-feature-title { font-size: 0.6rem; line-height: 1.2; }
    .hero-feature-desc { font-size: 0.58rem; line-height: 1.2; }

    /* ボタン: 横並び小さめ */
    .hero-buttons-horizontal { gap: 8px; }
    .hero-buttons-horizontal .btn-image img {
        height: 50px;
    }

    /* MENU: スマホで装飾を控えめに */
    .menu { padding: 60px 0 80px; }
    .menu-categories { gap: 60px; }
    .menu-cat-title {
        font-size: 1.1rem;
        gap: 8px;
        margin-bottom: 24px;
    }
    .menu-cat-wave-wrap {
        width: 50px;
        height: 12px;
    }
    .menu-cat-shell { width: 18px; height: 18px; }
    .menu-grid {
        gap: 16px;
        padding: 20px 8px 28px;
    }
    .menu-card {
        flex: 0 0 240px;
        max-width: 240px;
    }
    .menu-card-float {
        animation-duration: 8s; /* スマホはゆっくりめ */
    }
    .menu-card-corner {
        width: 22px;
        height: 22px;
        top: -8px;
        left: -8px;
    }
    .menu-badge-starfish {
        width: 52px;
        height: 52px;
        top: -10px;
    }
    .menu-badge-text { font-size: 0.55rem; }
    .menu-wave-top, .menu-wave-bottom { height: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .logo-main { font-size: 1.1rem; }
    .logo-sub { font-size: 0.6rem; }
    .logo-icon, .logo-img-wrap { width: 44px; height: 44px; }
    /* logo-img-text(ヘッダーのlogo2)はスマホで非表示 */

    /* ヘッダーロゴ位置を中央維持(720px breakpoint で設定済み) */
    .site-header.scrolled .logo-img-wrap { width: 40px; height: 40px; }

    .features-list { grid-template-columns: 1fr; gap: 0; }
    .feature-item:nth-child(n) { border-left: 0; border-top: 1px solid rgba(30, 90, 142, 0.15); }
    .feature-item:first-child { border-top: 0; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    /* 480px以下: ヘッドラインを少し縮小(ただし読みやすさ優先で大きめキープ) */
    /* 480px 以下: ロゴブロックを少しコンパクトに */
    .hero-logo-shell { height: 42px; }
    .hero-logo-title { font-size: 1.7rem; }
    .hero-logo-sub { font-size: 0.72rem; letter-spacing: 0.25em; }
    .headline-main { font-size: 1.6rem !important; }
    .headline-prefix, .headline-suffix { font-size: 0.95rem !important; }
    .headline-sub { font-size: 0.85rem !important; }

    .hero-buttons-horizontal .btn-image img { height: 44px; }

    .hero-feature-icon { width: 28px; height: 28px; }
    .hero-feature-svg { width: 14px; height: 14px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 26, 61, 0.92);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.lightbox.open { display: flex; }

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

/* ---------- Fade-in animations ---------- */
/* JSが.pre-fadeクラスを付与した時のみ非表示 → in-viewで表示
   モバイルでは描画コスト削減のためフェード無効化(瞬時に表示) */
@media (prefers-reduced-motion: no-preference) and (min-width: 721px) {
    .pre-fade {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .pre-fade.in-view {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        transition-duration: 0.01s !important;
    }
}
