/* =========================================================
   全体レイアウト・タイポグラフィ
   - ページ全体の基本スタイル
   ========================================================= */
body {
    font-family:
        "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro",
        "MS PMincho", "MS Mincho", serif;
    margin: 0;
    padding: 0;
    padding-bottom: 120px; /* フッター分の余白（高さに合わせて調整） */
    background: #f5f5f5;
    transition: background-color 1s;
    text-align: center;
    z-index: 300;
}

header {
    padding: 20px;
    background: #ccc;
    position: relative;
}


/* =========================================================
   Found U（#about）: 影響範囲を最小にする宇宙背景（画像）
   - body直下のレイヤーは使わない（TOPの3枚カード等へ干渉しやすい）
   ========================================================= */

/* 以前の全画面レイヤー（もし残っていても無効化） */
#space-scene,
#wash-bg {
  display: none !important;
}

/* Found U セクションだけ背景画像を敷く */
#about.content-section {
  position: relative;
  background-image: url("images/fu-space.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* 読みやすさのための白いベール（固定ではなくセクション内だけ）
   上部は白強め → 下にいくほど薄くして“見えてくる感”を出す */
#about.content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 640px at 18% 8%, rgba(59, 130, 246, 0.18), transparent 62%),
    radial-gradient(900px 520px at 82% 34%, rgba(168, 85, 247, 0.16), transparent 58%),
    radial-gradient(980px 720px at 50% 92%, rgba(16, 185, 129, 0.10), transparent 60%),
    linear-gradient(
      180deg,
      rgba(245, 245, 245, 0.86) 0%,
      rgba(245, 245, 245, 0.56) 38%,
      rgba(245, 245, 245, 0.18) 100%
    );
}

/* 背景より前に本文を出す */
#about.content-section > * {
  position: relative;
  z-index: 1;
}

/* iOS系は background-attachment: fixed が不安定なことがあるので保険 */
@supports (-webkit-touch-callout: none) {
  #about.content-section {
    background-attachment: scroll;
  }
}
/* /style.css */
/* =========================================================
   Found U（#about）: 宇宙背景（星・天の川・惑星） + 白ベール
   ========================================================= */

#space-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
    background: #050816;
    overflow: hidden;
}

/* Found U のときだけ見せる（JS が body.is-about を付与） */
body.is-about #space-scene {
    opacity: 1;
}

/* ギャラリー拡大（fade-bg）や、背景色上書き中は邪魔しない */
body.fade-bg #space-scene,
body.bg-custom #space-scene {
    opacity: 0;
}

#tsparticles {
    position: absolute;
    inset: 0;
}

/* tsParticles が生成する canvas の位置合わせ */
#tsparticles canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* 天の川（映画っぽい “うっすら帯”） */
#milkyway {
    position: absolute;
    inset: -35%;
    z-index: 1;
    pointer-events: none;
    transform: rotate(-18deg);
    opacity: 0.55;
    mix-blend-mode: screen;
    filter: blur(18px) saturate(1.15) contrast(1.05);

    background:
        radial-gradient(closest-side at 20% 40%, rgba(255, 255, 255, 0.22), transparent 65%),
        radial-gradient(closest-side at 45% 52%, rgba(191, 219, 254, 0.18), transparent 70%),
        radial-gradient(closest-side at 65% 48%, rgba(167, 139, 250, 0.16), transparent 72%),
        radial-gradient(closest-side at 80% 60%, rgba(56, 189, 248, 0.12), transparent 70%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.0));
}

/* 惑星/月（“垣間見える”程度に薄く） */
.planet {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.22;
    mix-blend-mode: screen;
    transform: translateZ(0);
    animation: planetFloat 18s ease-in-out infinite;
}

/* 右上：惑星っぽい */
.planet--a {
    width: 360px;
    height: 360px;
    top: -120px;
    right: -120px;
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.35), transparent 35%),
        radial-gradient(circle at 30% 30%, rgba(186, 230, 253, 0.28), transparent 55%),
        radial-gradient(circle at 65% 70%, rgba(59, 130, 246, 0.18), rgba(5, 8, 22, 0.0) 70%),
        radial-gradient(circle at 80% 85%, rgba(5, 8, 22, 0.0), rgba(5, 8, 22, 0.35) 78%);
    box-shadow: 0 0 60px rgba(147, 197, 253, 0.22);
}

/* 左下：月っぽい（クレーター風） */
.planet--b {
    width: 240px;
    height: 240px;
    bottom: -90px;
    left: -90px;
    opacity: 0.18;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.35), transparent 40%),
        radial-gradient(circle at 55% 55%, rgba(255,255,255,0.10), transparent 55%),
        radial-gradient(8px 8px at 35% 40%, rgba(148, 163, 184, 0.35) 40%, transparent 41%),
        radial-gradient(10px 10px at 55% 55%, rgba(148, 163, 184, 0.28) 40%, transparent 41%),
        radial-gradient(7px 7px at 65% 35%, rgba(148, 163, 184, 0.22) 40%, transparent 41%),
        radial-gradient(circle at 70% 70%, rgba(30, 41, 59, 0.18), transparent 60%),
        radial-gradient(circle at 80% 85%, rgba(5, 8, 22, 0.0), rgba(5, 8, 22, 0.28) 78%);
    box-shadow: 0 0 48px rgba(226, 232, 240, 0.18);
}

@keyframes planetFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, 10px, 0); }
}

/* 白ベール（通常は白。Found U のときだけ透過が変わる） */
#wash-bg {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: #f5f5f5;
    opacity: 1;
    transition: opacity 0.08s linear;
}

body.is-about #wash-bg {
    opacity: var(--foundu-wash-opacity, 1);
}

body.fade-bg #wash-bg,
body.bg-custom #wash-bg {
    opacity: 0;
}

/* 背景より前に出したい要素 */
header,
main,
footer {
    position: relative;
    z-index: 10;
}

@media (prefers-reduced-motion: reduce) {
    #space-scene { transition: none; }
    #wash-bg { transition: none; }
    .planet { animation: none; }
}


/* ========== Mini shadcn-like 基本トークン & 汎用コンポーネント ========== */
:root {
  --u-radius-lg: 20px;
  --u-radius-full: 999px;
  --u-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.18);
  --u-shadow-soft-sm: 0 8px 20px rgba(15, 23, 42, 0.16);

  --u-grad-green: linear-gradient(135deg, #16a34a, #22c55e);
  --u-grad-blue: linear-gradient(135deg, #2563eb, #38bdf8);
}

/* カード（shadcn の Card 的なもの） */
.u-card {
  border-radius: var(--u-radius-lg);
  background: #ffffff;
  box-shadow: var(--u-shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* ガラス感カード */
.u-card-glass {
  border-radius: var(--u-radius-lg);
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--u-shadow-soft);
}

/* 汎用ボタン */
.u-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--u-radius-full);
  padding: 10px 18px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

/* 緑系プライマリボタン */
.u-btn-primary {
  background: var(--u-grad-green);
  color: #ffffff;
  box-shadow: var(--u-shadow-soft-sm);
}

.u-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.35);
}

/* ゴーストボタン（枠だけ） */
.u-btn-ghost {
  background: #f5f5f5;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.18);
}

.u-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.03);
}

/* デスクトップ時とモバイル時の表示テキスト切り替え */
.desktop-text {
    display: inline;
}

.mobile-text {
    display: none;
}

/* ハンバーガーメニューのボタン（モバイルのみ表示） */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* メインメニュー（PC時の横並びナビゲーション） */
.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.main-menu a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.main-menu a:hover {
    background-color: #eee;
    color: #000;
}

.content-section {
    padding: 20px;
}

/* =========================================================
   料金表・サロン情報の装飾リスト
   ========================================================= */

.pricing-list {
    list-style: none;
    margin: 20px auto;
    padding: 1.5em 2.5em;
    max-width: 420px;
    background: linear-gradient(135deg, rgba(135, 206, 250, 0.2), rgba(255, 255, 255, 0.9));
    border: 2px solid skyblue;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(135, 206, 250, 0.25);
    position: relative;
}

/* 料金枠の内側の点線枠 */
.pricing-list::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(135, 206, 235, 0.5);
    border-radius: 12px;
    pointer-events: none;
}

.pricing-list li {
    position: relative;
    margin: 0;
    padding: 0.75em 0 0.75em 2.4em;
    line-height: 1.7;
    color: #1c3b4d;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pricing-list li + li {
    border-top: 1px solid rgba(135, 206, 235, 0.35);
}

/* 各項目の丸いマーカー */
.pricing-list li::before {
    content: "";
    position: absolute;
    left: 0.9em;
    top: 50%;
    transform: translateY(-50%);
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #87ceeb 60%, #1c75bc 100%);
    box-shadow: 0 0 6px rgba(135, 206, 235, 0.6);
}

/* サロンの特徴リスト */
.salon-list {
    list-style: none;
    margin: 30px auto;
    padding: 2.5em 3em;
    max-width: 520px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(235, 224, 255, 0.85));
    border: 2px solid #d4af37;
    border-radius: 24px;
    box-shadow:
        0 18px 35px rgba(90, 64, 152, 0.25),
        inset 0 0 20px rgba(212, 175, 55, 0.25);
    position: relative;
    overflow: hidden;
}

/* サロンリスト背景の光の演出 */
.salon-list::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.35), transparent 55%),
        radial-gradient(circle at bottom left, rgba(90, 64, 152, 0.25), transparent 55%);
    pointer-events: none;
}

.salon-list li {
    position: relative;
    padding: 1em 0 1em 2.8em;
    margin: 0;
    font-size: 1.05em;
    font-weight: 600;
    color: #3c2f53;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    letter-spacing: 0.03em;
}

.salon-list li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

/* サロンリストのひし形マーカー */
.salon-list li::before {
    content: "";
    position: absolute;
    left: 1.4em;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 0.75em;
    height: 0.75em;
    background: linear-gradient(135deg, #fff9db, #d4af37);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* =========================================================
   動画エリア
   ========================================================= */

.video-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

/* =========================================================
   ギャラリー（画像シャッフル・拡大アニメなど）
   ========================================================= */

.gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px;
    flex-wrap: wrap;
    perspective: 1000px;
}

/* 中央拡大表示時のギャラリー位置制御 */
.gallery.centered {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 960px;
    flex-wrap: nowrap;
}

/* 個々の画像コンテナ（拡大・アニメ対象） */
.image-container {
    position: relative;
    overflow: hidden;
    width: 300px;
    aspect-ratio: 528 / 682;
    cursor: pointer;
    transform-style: preserve-3d;
    transform-origin: center center;
    will-change: transform;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
    animation: slideIn 1s ease;
    transform-origin: center center;
    will-change: transform, opacity;
}

/* 画像が右側からスライドインするアニメーション */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 拡大された状態（画像クリック時に付けるクラス） */
.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2);
    z-index: 10;
    opacity: 1;
    animation: zoomIn 0.5s forwards;
    overflow: visible;
}

/* 拡大アニメーション */
@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        transform: translate(-50%, -50%) scale(2);
    }
}

@keyframes zoomInMobile {
    from {
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        transform: translate(-50%, -50%) scale(2);
    }
}

/* 背景を暗くするためのクラス */
.fade-bg {
    background: rgba(128, 128, 128, 0.8);
}

/* 拡大時の詳細テキストエリア */
.details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 共通で使う非表示クラス */
.hidden {
    display: none;
}

/* 「詳しく見る」などのボタン */
.more-button {
    display: inline-block;
    margin-top: 20px;
    padding: 5px 10px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    width: 40%;
    font-size: 10px;
    white-space: nowrap;
}

/* =========================================================
   汎用ボタン（CTA / モーダル内リンク共通化）
   ========================================================= */

.primary-button,
.modal-actions a {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #3a7bd5;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
    min-width: 180px;
}

.primary-button:hover,
.modal-actions a:hover {
    background: #2f62aa;
    box-shadow: 0 8px 20px rgba(58, 123, 213, 0.3);
    transform: translateY(-2px);
}

#start-journey-button {
    margin-top: 16px;
    width: 180px;
}

/* =========================================================
   モーダル全体のレイアウト
   - LINE風チャットを含む全画面オーバーレイ
   ========================================================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* フォールバック用：古いブラウザ向け */
    background: rgba(128, 128, 128, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 250;
}

/* ビューポートの「実際に見える高さ」を使う（スマホでの隠れ防止） */
@supports (height: 100dvh) {
    .modal {
        height: 100dvh;
    }
}

/* モーダルを閉じている時 */
.modal.hidden {
    display: none;
}

/* モーダル内部のカード本体 */
.modal-content {
    background: #fff;
    border-radius: 28px;
    padding: 0;
    max-width: 520px;
    width: min(100%, 520px);
    max-height: calc(100vh - 80px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    margin-inline: auto;
}

/* モーダル内テキストの基本スタイル（チャット本文にも適用） */
.modal-text {
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
}

/* モーダル内のボタン群のレイアウト */
.modal-actions {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
}

/* 汎用ボタン幅の上書き（アクションエリアでは自動幅） */
.modal-actions button,
.modal-actions a {
    width: auto;
}

/* =========================================================
   チャット入力エリア（LINE風の最下部）
   閉じる：左／次へ：右
   ========================================================= */

.chat-input-area {
    padding: 16px 20px;
    background: #f5f7fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;          /* ← ここを nowrap にして折り返さない */
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

/* 入力エリア内のボタン共通（サイズを取りすぎないように） */
.chat-input-area .primary-button,
.chat-input-area .modal-close-button {
    min-width: auto;
    white-space: nowrap;
}

/* 「閉じる」ボタン：左側に固定 */
.modal-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: #1f2933;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    order: -1;                 /* ← これで左に来る（HTML上は後ろでもOK） */
}

.modal-close-button:hover,
.modal-close-button:focus-visible {
    background: #e6ebf0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.modal-close-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(6, 199, 85, 0.35);
}

/* 「次へ」などのボタンが入るコンテナ：右側に寄せる */
.modal-actions {
    display: flex;
    flex: 0 1 auto;            /* ← 100% 幅を取らないようにする */
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;         /* ← 右端まで押し出す */
}

.modal-actions .chat-action-button {
    width: auto;               /* 必要なら可変幅にしておく */
}


/* モーダルが開いている時に背景ページをスクロールさせない */
body.modal-open {
    overflow: hidden;
}

/* =========================================================
   LINE風チャットカード周りのスタイル
   ========================================================= */

/* チャット用のモーダルカード全体 */
.chat-modal {
    background: #f4f6f8;
    border: 12px solid #1cb24a;
}

/* チャットヘッダー（店舗名＋ステータス） */
.chat-header {
    /* ヘッダー高さを変数にして、本文側の余白計算に利用する */
    --chat-header-height: 72px;
    min-height: var(--chat-header-height);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #0bb648, #06a53d);
    color: #fff;
}

/* 店舗名の頭文字用丸アイコン */
.chat-header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
}

/* ヘッダー内の文字情報（店名＋ステータス） */
.chat-header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.chat-header-title {
    font-size: 18px;
    font-weight: 700;
}

.chat-header-status {
    font-size: 12px;
    opacity: 0.85;
}

/* チャット本文領域
   - ヘッダーの高さ分だけ上に余白をとることで
     「ヘッダーとメッセージがかぶる」のを防ぐ */
.chat-body {
    flex: 1;
    background: #e7edf3;
    padding: calc(var(--chat-header-height, 72px) + 16px) 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* メッセージ全体の横位置（左寄せ・右寄せ） */
.chat-message {
    display: flex;
    width: 100%;
}

.chat-message.received {
    justify-content: flex-start;
}

.chat-message.sent {
    justify-content: flex-end;
}

/* 吹き出し（メッセージバブル） */
.chat-bubble {
    max-width: min(80%, 360px);
    padding: 12px 16px;
    border-radius: 22px;
    font-size: 15px;
    line-height: 1.7;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    word-break: break-word;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* CTAボタンを含んだ特別なバブル */
.chat-bubble.action-bubble {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.action-bubble-text {
    font-size: 15px;
    line-height: 1.7;
}

/* バブル内のボタン群 */
.bubble-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.bubble-actions .chat-action-button {
    width: min(260px, 100%);
}

/* 送信側（ユーザー側）の吹き出し色 */
.chat-message.sent .chat-bubble {
    background: #c7f5cb;
    border-color: rgba(6, 199, 85, 0.25);
    color: #043517;
}

/* 受信側（店舗側）の吹き出し色 */
.chat-message.received .chat-bubble {
    background: #fff;
    color: #1f2933;
}

/* タイピングアニメーション用 */
.typing-bubble {
    position: relative;
}

.typing-chunk {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 1s ease, transform 1s ease;
    white-space: pre-wrap;
    word-break: break-word;
}

.typing-chunk.visible {
    opacity: 1;
    transform: translateY(0);
}

/* モーダルの閉じるボタン */
.modal-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: #1f2933;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    order: -1;
}

.modal-close-button:hover,
.modal-close-button:focus-visible {
    background: #e6ebf0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.modal-close-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(6, 199, 85, 0.35);
}

/* チャット内のアクションボタン（LINE風の緑ボタン） */
.chat-action-button {
    background: #06c755;
    color: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    min-width: auto;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.35);
}

.chat-action-button:hover {
    background: #05a647;
    box-shadow: 0 10px 24px rgba(6, 199, 85, 0.45);
}

/* LINE フォロー用QRコードなど */
.found-u-logo {
    width: min(220px, 60vw);
    height: auto;
    border-radius: 8px;
}

.line-followup-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.line-followup-button {
    width: min(260px, 100%);
    text-align: center;
}

.line-followup-qr {
    width: min(220px, 60vw);
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.line-followup-text {
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
    width: 100%;
}

/* =========================================================
   新規アニメーション（フェード・暗転など）
   ========================================================= */

.fade-out-other {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

.dim-image {
    opacity: 1;
}

.dim-image img {
    animation: dimImage 3s forwards;
}

@keyframes dimImage {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.3;
    }
}

.fade-in-text {
    animation: fadeInText 3s forwards;
}

.fade-in-btn {
    animation: fadeInText 3s forwards;
}

.fade-up-out {
    animation: fadeUpOut 1s forwards;
}

.fade-in-quick {
    animation: fadeInQuick 1s forwards;
}

@keyframes fadeUpOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

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

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

/* 小さな説明文／注意文 */
.description {
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.autonomic-note {
    font-size: 10px;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* =========================================================
   最初のイントロオーバーレイ（白背景にテキスト）
   ========================================================= */

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(135, 135, 135);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

/* 実際の表示領域に合わせた高さ（スマホ対策） */
@supports (height: 100dvh) {
    #intro-overlay {
        height: 100dvh;
    }
}

#intro-overlay p {
    margin: 10px 0;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

#intro-text1,
#intro-text2,
#click-tip,
#skip-button {
    opacity: 0;
}

/* バナー部分（上部のキャッチコピー） */
#intro-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    opacity: 1;
    position: relative;
    z-index: 1;
}

.intro-banner-line {
    margin: 0;
    font-size: 18px;
    opacity: 1;
    color: #fff;
}

#click-tip {
    font-size: 16px;
}

#skip-button {
    font-size: 10px;
    cursor: pointer;
    text-decoration: underline;
    pointer-events: none;
}

/* 点滅するテキスト用 */
.blink {
    animation: blinkText 2.5s ease-in-out infinite;
}

#click-tip.fade-out-tip {
    animation: fadeOutTip 1s forwards;
}

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

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

/* イントロカードの表示制御 */
#intro-card {
    opacity: 0;
    margin-top: 20px;
    width: 225px;
    pointer-events: none;
}

#intro-card.show-card {
    animation: fadeInCard 2s forwards;
    pointer-events: auto;
}

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

/* テキストのフェードイン／アウト */
.show-text {
    animation: fadeInSlow 3s forwards;
}

.fade-out-overlay {
    animation: fadeOutSlow 3s forwards;
}

.fade-out-text {
    animation: fadeOutSlow 2s forwards;
}

.fade-out-quick {
    animation: fadeOutSlow 0.5s forwards;
}

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

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

/* =========================================================
   ページ遷移用のホワイトアウト／カラフラッシュ
   ========================================================= */

#white-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    pointer-events: none;
    z-index: 1000;
}

/* カラーサークル（三原色での演出） */
.color-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    mix-blend-mode: screen;
    opacity: 0;
}

.color-circle.red {
    background: red;
}

.color-circle.green {
    background: green;
}

.color-circle.blue {
    background: blue;
}

/* =========================================================
   レスポンシブ対応（主にスマホ用調整）
   ========================================================= */

@media (max-width: 600px) {
    /* モーダル全体の余白調整＋安全領域考慮
       - 上: ステータスバー・ノッチ分を余白に足す
       - 下: ホームバー分も少し余裕を持たせる */
    .modal {
        align-items: center;
        padding: calc(24px + env(safe-area-inset-top, 0px))
                 12px
                 calc(32px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    /* スマホ時のモーダルカードサイズ調整
       - 画面幅いっぱい
       - 縦は実際の高さからマージンを引いた値に制限 */
    .modal-content {
        width: 100%;
        max-width: 480px;
        max-height: calc(100dvh - 56px);
        padding: 28px 20px;
        border-radius: 20px;
        margin-inline: auto;
    }

    .modal-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .modal-actions {
        width: 100%;
        gap: 12px;
        justify-content: center;
        text-align: center;
    }

    .modal-actions button,
    .modal-actions a {
        font-size: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    /* スマホ版：ヘッダー右上のハンバーガーメニューは使用しない */
    .hamburger {
        display: none !important;
    }

    /* スマホ版：ヘッダーのメインメニューは非表示（フッターを入口にする） */
    .main-menu {
        display: none !important;
    }

    #menu-overlay {
        display: none !important;
    }

    /* ギャラリーのモバイルレイアウト */
    .gallery {
        flex-direction: row;
        justify-content: center;
        gap: 5px;
        margin: 20px auto;
        width: 100%;
    }

    .gallery.centered {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: inline;
    }

    .image-container {
        width: 32%;
        aspect-ratio: 528 / 682;
        max-width: none;
    }

    .expanded {
        transform: translate(-50%, -50%) scale(2);
        animation: zoomInMobile 0.5s forwards;
        max-width: 100vw;
        max-height: 100vh;
        overflow: visible;
    }

    .details {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        transform: none;
        padding: 10px;
        box-sizing: border-box;
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .description {
        font-size: 7px;
        text-align: center;
        word-break: break-word;
    }

    .autonomic-note {
        font-size: 7px;
        font-weight: bold;
        text-align: center;
        word-break: break-word;
    }

    .more-button {
        font-size: 7px;
        width: auto;
        padding: 3px 6px;
    }

    /* イントロカードのサイズをモバイル用に縮小 */
    #intro-card {
        width: 24%;
    }
}

/* =========================================
   モバイル時の LINE 風チャットレイアウト調整
   - journey-modal だけ「上からフル画面」にする
   ========================================= */
@media (max-width: 600px) {
  /* モーダル全体を「中央」ではなく「上から」伸ばす */
  #journey-modal.modal {
    align-items: stretch;  /* ← ここが一番重要 */
    justify-content: flex-start;
    padding: env(safe-area-inset-top, 0px)
             0
             env(safe-area-inset-bottom, 0px);
  }

  /* チャット用カードを画面いっぱいにフィットさせる */
  #journey-modal .modal-content.chat-modal {
    height: 100dvh;        /* 画面の実表示領域の高さ */
    max-height: 100dvh;
    border-radius: 0;      /* アプリっぽくフルスクリーンにする */
    padding: 0;            /* 余白は header / body / input に任せる */
  }

  /* ヘッダー部分はそのまま上に固定されて見える */
  #journey-modal .chat-header {
    border-radius: 0;
  }

  /* 本文は余った領域を全部使ってスクロール */
  #journey-modal .chat-body {
    flex: 1;
    /* ここは前に入れた padding-top のままでOK
       必要なら少し小さくするくらい */
    overflow-y: auto;
  }

  /* 入力エリアは下部に固定されて見える（現状どおり） */
  #journey-modal .chat-input-area {
    flex-shrink: 0;
  }
}

/* =========================================================
   U ロゴのグリッド表示
   ========================================================= */

/* U ロゴ全体を中央寄せするコンテナ */
.logo-u-section {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

/* U ロゴを構成する10x10グリッド */
.logo-u-grid {
  --rows: 10;
  --cols: 10;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(20px, 1fr));
  gap: 6px;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  padding: 12px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ロゴセル（丸いマス） */
.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.logo-cell img {
  max-width: 100%;
  max-height: 100%;
}

/* ホバー時の立体感 */
.logo-cell:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  background-color: #fdfdfd;
}

/* 何も置かないマス（空セル）：Uの外側（=非表示） */
.logo-cell--empty {
  background: transparent;
  cursor: default;
  box-shadow: none;
}

/* Uの内側で、まだ未選択のスロット */
.logo-cell--placeholder {
  background: #d1d5db;
  cursor: default;
  box-shadow: none;
  border: 1px solid #e5e7eb;
}

/* hoverの立体感は、クリック可能セルだけに適用 */
.logo-cell--empty:hover {
  transform: none;
  box-shadow: none;
  background-color: transparent;
}

.logo-cell--placeholder:hover {
  transform: none;
  box-shadow: none;
  background-color: #d1d5db;
}

/* 詳細カードへスクロールしたとき、見出しが上に張り付かないように */
#logo-detail-card {
  scroll-margin-top: 96px;
}

/* ロゴ詳細表示エリアのカード */
.logo-detail-section {
  background: #fff;
  border-radius: 8px;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);

  scroll-margin-top: 96px;}

.logo-detail-placeholder {
  color: #777;
}

/* 詳細表示コンテンツの縦並びレイアウト */
.logo-detail-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.logo-detail-content.is-hidden {
  display: none;
}

.logo-detail-thumbnail-wrapper {
  width: 96px;
  height: 96px;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

.logo-detail-thumbnail {
  max-width: 100%;
  max-height: 100%;
}

.logo-detail-meta dt {
  font-weight: bold;
}

.logo-detail-row dt,
.logo-detail-row dd {
  margin: 0;
  padding: 0;
  text-align: center;
}

/* ============================
   LINE風チャットポップアップをリッチ化
   ============================ */

/* 外枠カードを強めに（丸み＋ガラス＋影） */
.modal-content.chat-modal {
    border-radius: 24px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}
/* =========================================================
   フッター（3段構成）
   - 上：SNSリンク (Instagram / YouTube)
   - 下：ナビ（TOP / 料金 / …）
   ========================================================= */

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.12);
  z-index: 150;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 上段：SNS */
.footer-sns-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  font-size: 11px;
}

.footer-sns-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #4b5563;
}

.footer-sns-row a i {
  font-size: 16px;
}

/* 下段：ナビ */
.footer-nav-row ul {
  list-style: none;
  margin: 0;
  padding: 4px 0 2px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.footer-nav-row li {
  flex: 1 1 0;
  text-align: center;
}

.footer-nav-row a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: #374151;
  font-size: 11px;
  padding: 4px 2px;
}

.footer-nav-row a:hover {
  background: rgba(209, 250, 229, 0.85);
  border-radius: 999px;
}

/* ===========================
   フッター：感じあうミニアコーディオン（ロゴ / Found U）
   =========================== */

/* li の中に小さなパネルを出すためのアンカー */
.footer-brand-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

/* ナビリンクと見た目を揃えるボタン */
.footer-brand-trigger {
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: #374151;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
}

.footer-brand-trigger:hover {
  background: rgba(209, 250, 229, 0.85);
  border-radius: 999px;
}

.footer-brand-trigger:focus-visible {
  outline: 2px solid rgba(16, 185, 129, 0.55);
  outline-offset: 3px;
  border-radius: 999px;
}

.footer-brand-panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 170px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 160;
}

.footer-brand-item.is-open .footer-brand-panel {
  display: flex;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  white-space: nowrap;
}

.footer-brand-link:hover {
  background: rgba(209, 250, 229, 0.85);
}

.footer-brand-link i {
  width: 18px;
  text-align: center;
}

/* ナビ内のアイコン（スマホ主体） */
.footer-icon {
  font-size: 17px;
}

/* SNSのラベル（テキスト） */
.sns-label {
  font-size: 11px;
}

/* -----------------------
   PC レイアウト調整
   ----------------------- */
@media (min-width: 769px) {
  /* PCではSNSを中央寄せに変更 */
  .footer-sns-row {
    justify-content: center;
    gap: 32px; /* ← これを追加 or 値を好みで調整（32〜48 がおすすめ） */
  }

  /* PCではナビは文字主体、アイコンは隠す */
  .footer-icon {
    display: none;
  }

  .footer-nav-row a {
    flex-direction: row;
    gap: 8px;
    font-size: 13px;
  }

  .footer-brand-trigger {
    flex-direction: row;
    gap: 8px;
    font-size: 13px;
  }
}

/* 下段：店舗情報（PC用） */
.footer-info-row {
  border-top: 1px solid #e5e7eb;
  margin-top: 4px;
  padding-top: 6px;
  padding-bottom: 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #6b7280;
}

/* PCフッター下段：コンパクト表示＋ホバーで展開 */
.footer-info-compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 11px;
  color: #6b7280;
}

.footer-info-hint {
  color: #9ca3af;
}

/* 展開部分は閉じた状態がデフォルト */
.footer-info-expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: max-height 0.35s ease, opacity 0.2s ease, transform 0.2s ease;
}

/* PC: ホバー or フォーカスで展開 */
@media (min-width: 769px) {
  .footer-info-row:hover .footer-info-expand,
  .footer-info-row:focus-within .footer-info-expand {
    max-height: 520px; /* 中身より大きければOK。足りなければ増やす */
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-info-main {
  font-weight: 600;
  text-align: center;
}

.footer-info-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  text-align: center;
}

.footer-info-detail a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 2px;
}

.footer-info-layout {
  display: grid;
  justify-content: center;     /* grid全体を中央へ */
  grid-template-columns: 1fr 340px;
  gap: 12px;
  align-items: start;
}

.footer-info-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-info-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 営業時間表 */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.hours-table th,
.hours-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
}

.hours-table thead th {
  background: rgba(243, 244, 246, 0.9);
  color: #374151;
  font-weight: 700;
}

.hours-table tbody th {
  background: rgba(249, 250, 251, 0.85);
  color: #374151;
  font-weight: 700;
  text-align: left;
}

/* 地図 */
.footer-info-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.map-embed {
  width: 320px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.map-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* -----------------------
   スマホレイアウト調整
   ----------------------- */
@media (max-width: 768px) {
  .footer-inner {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  /* スマホではSNSは中央寄せ、ラベルは隠してアイコンだけ */
  .footer-sns-row {
    justify-content: center;
    font-size: 10px;
    gap: 20px;
  }

  .sns-label {
    display: none;
  }

  .footer-nav-row a {
    font-size: 10px;
  }

  .footer-brand-trigger {
    font-size: 10px;
  }

  .footer-icon {
    font-size: 18px;
  }
  
  .footer-info-row {
    display: none;
  }

  #modal-actions {
    margin-right: 0;
    padding-right: 0;
    justify-content: flex-end;
  }

  #modal-actions .chat-action-button {
    margin-right: 0;
  }
}

/* フッター上段：右端の三本線 */
.footer-sns-row {
  position: relative;
}

.footer-drawer-handle {
  margin-left: 12px;
  border: none;
  background: #f5f5f5;
  color: #4b5563;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
}

.footer-drawer-handle:hover {
  background: rgba(209, 250, 229, 0.85);
}

/* 展開パネル：フッターの中で伸びる（アコーディオン） */
.footer-drawer {
  /* 重要：absolute をやめる */
  position: static;

  /* 閉じる状態 */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);

  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

/* 中身 */
.footer-drawer-inner {
  max-width: 1100px;
  margin: 6px auto 2px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid #e5e7eb;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

/* 中のアイコンを大きくする（展開時の主役） */
.footer-drawer-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #374151;
  padding: 10px 14px;
  border-radius: 14px;
}

.footer-drawer-item:hover {
  background: rgba(209, 250, 229, 0.85);
}

.footer-drawer-item i {
  font-size: 26px;
}

.footer-drawer-item span {
  font-size: 14px;
  font-weight: 600;
}

/* 開いている状態：max-height を十分大きくする */
.site-footer.is-drawer-open .footer-drawer {
  max-height: 240px; /* 中身の高さより大きければOK（足りなければ増やす） */
  opacity: 1;
  transform: translateY(0);
}

/* スマホではより指で押しやすく */
@media (max-width: 768px) {
  .footer-drawer-inner {
    gap: 12px;
    padding: 12px 10px;
  }

  .footer-drawer-item {
    padding: 12px 12px;
  }

  .footer-drawer-item i {
    font-size: 30px;
  }

  .footer-drawer-item span {
    font-size: 13px;
  }
}


/* =========================================================
   - TOP画面　雪レイヤーを追加
   ========================================================= */
#top {
  position: relative;
  overflow: hidden;
}

/* 画面全体に固定する */
.top-snow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* 背景扱い。必要なら -1 でもOK */
}

/* 雪の粒 */
.snowflake {
  position: absolute;
  top: -10px;
  left: var(--flake-left);
  width: var(--flake-size);
  height: var(--flake-size);
  border-radius: 999px;
  background: rgba(112, 108, 108, 0.7);
  opacity: 0.6;
  filter: blur(0.5px);
  animation-name: snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--flake-duration);
  animation-delay: var(--flake-delay);
}

/* 下方向＋少し斜めに流れる */
@keyframes snow-fall {
  0% {
    transform: translate3d(0, -5vh, 0);
  }
  100% {
    transform: translate3d(5vw, 110vh, 0);
  }
}
/* 感じあうロゴページ：淡い2色グラデーション */
#feel {
  background:
    linear-gradient(
      135deg,
      rgba(255, 248, 220, 0.6), /* 淡い黄色 */
      rgba(220, 235, 255, 0.6)  /* 淡い青 */
    );
}

/* feel 下部の動画2本 */
.feel-videos {
  margin: 28px auto 40px;
  max-width: 1100px;
  padding: 0 16px;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.video-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-caption {
  margin: 10px 4px 0;
  font-size: 12px;
  color: #6b7280;
  text-align: left;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* フッター内：動画サムネ行（スマホ向け） */
.footer-video-row {
  display: on; /* PCでは一旦出さない（必要なら後でON） */
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.footer-video-thumb {
  position: relative;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  width: 140px;
  cursor: pointer;
}

.footer-video-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0.05));
}

.thumb-label {
  position: absolute;
  left: 10px;
  bottom: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

@media (max-width: 768px) {
  .footer-video-row {
    display: flex;
  }
}

/* 動画モーダル */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.video-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 860px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
}

.video-modal-close {
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
  color: #374151;
}

.video-modal-close:hover {
  background: rgba(209, 250, 229, 0.85);
}

.video-modal-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
}

.video-modal-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =========================================================
   Mini shadcn/ui-ish layer (tokens + components)
   使い方: style.css の末尾に追記（後勝ちで既存を上書き）
   ========================================================= */

:root {
  /* --- Color tokens (HSLベースで調整しやすく) --- */
  --bg: 0 0% 100%;
  --fg: 222 47% 11%;

  --card: 0 0% 100%;
  --card-fg: 222 47% 11%;

  --muted: 210 40% 96%;
  --muted-fg: 215 16% 47%;

  --border: 214 32% 91%;
  --ring: 142 76% 36%;

  --primary: 142 76% 36%;
  --primary-fg: 0 0% 100%;

  --secondary: 210 40% 96%;
  --secondary-fg: 222 47% 11%;

  --destructive: 0 84% 60%;
  --destructive-fg: 0 0% 100%;

  /* --- Radius / Shadow --- */
  --radius: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 12px 30px rgba(0,0,0,.10);
  --shadow-lg: 0 22px 60px rgba(0,0,0,.14);

  /* --- Motion --- */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-1: 140ms;
  --dur-2: 240ms;
}

* { box-sizing: border-box; }

html, body {
  color: hsl(var(--fg));
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 2px;
}

:where(button, a, input, textarea, select) {
  font: inherit;
}

:where(button, a, input, textarea, select):focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(34,197,94,.20);
}

/* -------------------------
   Surface / Card
   ------------------------- */
.ui-card {
  background: hsl(var(--card));
  color: hsl(var(--card-fg));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.ui-glass {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

/* -------------------------
   Button system
   既存ボタンを shadcn/ui っぽく上書き
   ------------------------- */
.primary-button,
.chat-action-button,
.modal-close-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition:
    transform var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out),
    background-color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    filter var(--dur-1) var(--ease-out);
  will-change: transform;
}

/* Primary (緑の主役ボタン) */
.primary-button,
.chat-action-button {
  color: hsl(var(--primary-fg));
  background: linear-gradient(135deg, rgba(34,197,94,1), rgba(16,185,129,1));
  box-shadow: 0 14px 34px rgba(34,197,94,.22);
}

.primary-button:hover,
.chat-action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(34,197,94,.28);
  filter: saturate(1.03);
}

.primary-button:active,
.chat-action-button:active {
  transform: translateY(0px) scale(.99);
}

/* Secondary (閉じるボタンなど) */
.modal-close-button {
  background: rgba(255,255,255,.85);
  color: hsl(var(--fg));
  border-color: rgba(0,0,0,.10);
  box-shadow: var(--shadow-sm);
}

.modal-close-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.95);
}

/* Disabled */
:where(button, .primary-button, .chat-action-button, .modal-close-button)[disabled],
:where(button, .primary-button, .chat-action-button, .modal-close-button).is-disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* -------------------------
   Input / Text
   ------------------------- */
.ui-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border));
  background: rgba(255,255,255,.85);
  box-shadow: var(--shadow-sm);
}

.ui-input:focus-visible {
  border-color: rgba(34,197,94,.55);
}

/* -------------------------
   Modal polish (既存モーダルを上品に)
   ------------------------- */
.modal-content {
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-lg);
}

.chat-modal {
  border: 10px solid rgba(28,178,74,.95); /* 既存の雰囲気維持しつつ少し品よく */
  box-shadow: var(--shadow-lg);
}

.chat-header {
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.calendar-embed {
  max-width: 900px;
  margin: 24px auto;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}


/* -------------------------
   Footer polish (既存フッターに“今っぽい質感”を足す)
   ※ footer の class 名が違っても、.footer-inner が既にあるのでそこを強化
   ------------------------- */
.footer-inner {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 -18px 46px rgba(0,0,0,.08);
}

/* フッター内の表や地図も統一感 */
.hours-table {
  box-shadow: var(--shadow-sm);
}

.map-embed {
  box-shadow: var(--shadow-sm);
}

/* -------------------------
   Micro motion（“呼吸”を足す：邪魔にならない範囲）
   ------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .breathing {
    animation: breathing 4.8s var(--ease-out) infinite;
  }
  @keyframes breathing {
    0%, 100% { transform: translateY(0); filter: saturate(1); }
    50% { transform: translateY(-1px); filter: saturate(1.02); }
  }
}

/* style.css（feel：プロジェクト導線を今っぽく整える） */

.feel-project {
  max-width: 1100px;
  margin: 0 auto 26px;
  padding: 18px 18px;
}

.feel-lead {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
  margin: 0 0 10px;
}

.feel-sub {
  margin: 0 0 18px;
  line-height: 1.8;
  color: rgba(17, 24, 39, 0.86);
}

.feel-flow {
  margin-top: 12px;
}

.feel-flow-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.flow-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-card {
  display: flex;
  gap: 12px;
  padding: 14px 14px;
  align-items: flex-start;
}

.flow-no {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, rgba(34,197,94,1), rgba(16,185,129,1));
  box-shadow: 0 10px 24px rgba(34,197,94,.18);
  flex: 0 0 auto;
}

.flow-title {
  font-weight: 800;
  margin: 0 0 6px;
}

.flow-text {
  margin: 0;
  line-height: 1.75;
  color: rgba(17, 24, 39, 0.82);
}

.feel-coupon {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.feel-videos .video-card {
  border-radius: 16px;
  overflow: hidden;
}

/* スマホ：縦積み＋余白 */
@media (max-width: 900px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .feel-coupon {
    justify-content: center;
  }
}

/* =========================
   YouTube サムネ → 再生
   ========================= */

.video-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* 再生アイコン */
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-play::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}

.video-play::after {
  content: "";
  position: absolute;
  margin-left: 4px;
  width: 0;
  height: 0;
  border-left: 16px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* hover演出（PCのみ） */
@media (hover: hover) {
  .video-thumb:hover img {
    transform: scale(1.02);
  }

  .video-thumb img {
    transition: transform 240ms cubic-bezier(.16,1,.3,1);
  }
}

/* フッター右カラム：地図とカレンダーを同じサイズ感に */
.footer-info-right .calendar-embed,
.footer-info-right .map-embed {
  width: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.06));
  background: rgba(255,255,255,.85);
}

/* iframe を枠にフィットさせる */
.footer-info-right .calendar-embed iframe,
.footer-info-right .map-embed iframe {
  display: block;
  width: 320px;
  height: 180px;
  border: 0;
}

/* リンク行 */
.footer-info-right .calendar-links,
.footer-info-right .map-links {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(17,24,39,.75);
}
.footer-info-right .calendar-links a,
.footer-info-right .map-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 画面が狭いときは右カラムを縮めて100%に */
@media (max-width: 900px) {
  .footer-info-right .calendar-embed,
  .footer-info-right .map-embed,
  .footer-info-right .calendar-embed iframe,
  .footer-info-right .map-embed iframe {
    width: 100%;
    max-width: 360px;
  }
}

/* PC：営業時間 / カレンダー / 地図 を3つ横並び */
@media (min-width: 901px) {
  .footer-info-layout {
    display: grid;
    grid-template-columns: 1fr 320px 320px; /* 左は可変、右2つは固定 */
    gap: 16px;
    align-items: start;
  }

  .footer-info-calendar,
  .footer-info-right {
    display: grid;
    justify-items: center;
    gap: 8px;
  }
}

/* カレンダー・地図カードの見た目とサイズ統一 */
.footer-info-calendar .calendar-embed,
.footer-info-right .map-embed {
  width: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.85);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.06));
}

.footer-info-calendar .calendar-embed iframe,
.footer-info-right .map-embed iframe {
  width: 320px;
  height: 180px;
  display: block;
  border: 0;
}

/* スマホ：縦積み（今の運用と相性良い） */
@media (max-width: 900px) {
  .footer-info-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-info-calendar .calendar-embed,
  .footer-info-right .map-embed,
  .footer-info-calendar .calendar-embed iframe,
  .footer-info-right .map-embed iframe {
    width: 100%;
    max-width: 360px;
  }

  .footer-info-calendar,
  .footer-info-right {
    justify-items: center;
  }
}

/* =========================
   Footer hours: richer UI
   ========================= */

/* 枠をガラス寄りにして “カード感” を上げる */
.footer-hours-text {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px 14px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
}

/* タイトル行を強くする */
.footer-hours-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  margin: 0 0 10px;
  letter-spacing: .01em;
}

/* タイトルの左に小さなアクセント */
.footer-hours-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34,197,94,1), rgba(16,185,129,1));
  box-shadow: 0 10px 24px rgba(34,197,94,.22);
}

/* リストを “チップ表示” に変える */
.footer-hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-hours-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.85);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* 時間の見え方を整える */
.footer-hours-list li:not(.footer-hours-note)::before {
  content: "受付";
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34,197,94,.12);
  color: rgba(16, 120, 75, 0.95);
  flex: 0 0 auto;
}

/* 本文側（時間） */
.footer-hours-list li:not(.footer-hours-note) {
  font-weight: 800;
  letter-spacing: .02em;
}

/* 休診日表示は少し控えめに、でも分かる */
.footer-hours-note {
  justify-content: flex-start;
  font-weight: 700;
  color: rgba(17,24,39,.78);
  background: rgba(255,255,255,.78);
}

.footer-hours-note::before {
  content: "休診";
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(239, 68, 68, .12);
  color: rgba(185, 28, 28, 0.95);
  margin-right: 8px;
}

/* =========================
   Contact calendar: smaller
   ========================= */

#contact .calendar-embed {
  max-width: 900px;
  margin: 18px auto 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.85);
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
}

#contact .calendar-embed iframe {
  width: 100%;
  height: 420px; /* ← 小さくする（好みで 360〜480） */
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  #contact .calendar-embed iframe {
    height: 360px;
  }
}

/* =========================
   Footer: hours card width
   ========================= */

@media (min-width: 901px) {
  /* 営業時間カラムを広がりすぎないようにする */
  .footer-info-left {
    justify-self: center;
    width: 100%;
    max-width: 360px; /* 好みで 320〜420 */
  }

  /* 中央2枠との間隔も少し整える（必要なら） */
  .footer-info-layout {
    column-gap: 18px;
  }
}

/* =========================
   Footer: map & calendar tone
   ========================= */

.footer-info-calendar .calendar-embed,
.footer-info-right .map-embed {
  background: rgba(255, 255, 255, 0.92);      /* 白寄りに */
  border: 1px solid rgba(255, 255, 255, 0.70); /* 同系色の境界 */
  box-shadow: 0 12px 30px rgba(0,0,0,.10);     /* hoursと同じ質感へ */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* “灰色っぽさ”の原因になりやすい余計な背景があれば明示的に消す */
.footer-info-calendar .calendar-embed iframe,
.footer-info-right .map-embed iframe {
  background: #f5f5f5;
}
