/* =========================================================
   奈良山荘 —— 和風デザインシステム
   配色は日本の伝統色（藍・墨・生成り・苔・朱）を基調に。
   ========================================================= */

:root {
  /* 和の色 */
  --paper: #f7f2e9;        /* 生成り */
  --paper-soft: #efe6d5;
  --washi: #fdfbf6;        /* 障子 */
  --ink: #221d17;          /* 墨 */
  --ink-soft: #574e43;
  --ink-faint: #8c8273;
  --ai: #3a5366;           /* 藍 */
  --ai-deep: #283b49;
  --koke: #6c7356;         /* 苔 */
  --shu: #b1402b;          /* 朱 */
  --shu-deep: #8d3122;
  --kin: #b08d57;          /* 金茶 */
  --line: rgba(34, 29, 23, 0.14);
  --line-soft: rgba(34, 29, 23, 0.07);

  --font-serif: "Shippori Mincho", "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-sm: 0 8px 24px -18px rgba(34, 29, 23, 0.5);
  --shadow: 0 24px 60px -34px rgba(34, 29, 23, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--shu); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin: 0;
}

p { margin: 0 0 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-washi { background: var(--washi); }
.bg-soft { background: var(--paper-soft); }
.bg-ink { background: var(--ai-deep); color: var(--paper); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--washi); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- 见出し（タイトル） ---------- */
.eyebrow {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--shu);
  margin: 0 0 0.9rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--shu); opacity: 0.6; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.7rem); }
.section-lead { color: var(--ink-soft); font-size: 1.02rem; margin-top: 1rem; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-serif); font-size: 0.95rem; letter-spacing: 0.1em;
  padding: 0.85rem 2rem; border: 1px solid var(--ink); background: transparent;
  color: var(--ink); cursor: pointer; border-radius: var(--radius);
  transition: all 0.35s var(--ease); position: relative; overflow: hidden;
}
.btn:hover { color: var(--paper); border-color: var(--ink); }
.btn::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); z-index: -1;
}
.btn:hover::after { transform: scaleX(1); }
.btn-primary { background: var(--shu); border-color: var(--shu); color: var(--washi); }
.btn-primary::after { background: var(--shu-deep); }
.btn-primary:hover { color: var(--washi); border-color: var(--shu-deep); }
.btn-ghost { border-color: var(--line); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 1rem 2.6rem; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 242, 233, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(247, 242, 233, 0.96); }
.header-inner { display: flex; align-items: center; gap: clamp(0.85rem, 1.8vw, 1.5rem); min-height: 80px; }

.brand { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.4rem; color: var(--washi);
  background: var(--shu); border-radius: 6px; box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-ja { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.12em; }
.brand-en { font-size: 0.6rem; letter-spacing: 0.32em; color: var(--ink-faint); text-transform: uppercase; }

.primary-nav { display: flex; gap: clamp(0.9rem, 1.5vw, 1.6rem); margin-left: auto; }
.primary-nav a {
  font-family: var(--font-serif); font-size: clamp(0.85rem, 1.05vw, 0.95rem); letter-spacing: 0.03em;
  position: relative; padding: 0.4rem 0; color: var(--ink-soft); white-space: nowrap;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--shu); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.lang-switch { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer;
  list-style: none; padding: 0.28rem 0.45rem; border: 1px solid var(--line);
  border-radius: 4px; transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.lang-current::-webkit-details-marker { display: none; }
.lang-current::marker { content: ""; }
.lang-current:hover { border-color: var(--ink-faint); }
.lang-current img { width: 26px; height: 17px; object-fit: cover; border-radius: 2px; display: block; box-shadow: 0 0 0 1px var(--line); }
.lang-current .chev { width: 10px; height: 6px; color: var(--ink-faint); transition: transform 0.3s var(--ease); }
.lang-switch[open] .lang-current { border-color: var(--shu); }
.lang-switch[open] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  background: var(--washi); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow); padding: 0.4rem; min-width: 168px;
  display: flex; flex-direction: column; gap: 0.1rem;
  animation: langMenuIn 0.22s var(--ease);
}
@keyframes langMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-option {
  display: flex; align-items: center; gap: 0.65rem; width: 100%;
  padding: 0.5rem 0.7rem; border: 0; background: none; cursor: pointer;
  border-radius: 4px; font-family: var(--font-serif); font-size: 0.9rem;
  color: var(--ink-soft); text-align: left; white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-option img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.lang-option:hover { background: var(--paper-soft); color: var(--ink); }
.lang-option.is-active { color: var(--shu); }
.lang-option.is-active span { font-weight: 600; }
.link-quiet { font-size: 0.9rem; color: var(--ink-soft); letter-spacing: 0.05em; white-space: nowrap; }
.nav-cta-mobile { display: none; }
.btn-reserve {
  font-family: var(--font-serif); font-size: 0.9rem; letter-spacing: 0.1em;
  padding: 0.6rem 1.5rem; background: var(--ai-deep); color: var(--washi);
  border-radius: var(--radius); transition: background 0.35s var(--ease);
}
.btn-reserve:hover { background: var(--ink); color: var(--washi); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { height: 2px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }

/* 暖簾（のれん） */
.noren { display: flex; gap: 6px; padding: 0 24px; max-width: var(--container); margin: 0 auto; height: 0; overflow: visible; pointer-events: none; }
.noren span {
  flex: 1; height: 14px; background: linear-gradient(var(--ai), var(--ai-deep));
  border-radius: 0 0 3px 3px; opacity: 0.85;
  transform: translateY(-1px);
}
.noren span:nth-child(odd) { height: 18px; }

/* ---------- メインとメッセージ ---------- */
.site-main { min-height: 60vh; }
.messages { margin: 1.5rem auto; }
.alert {
  padding: 0.9rem 1.3rem; border-radius: var(--radius); margin-bottom: 0.8rem;
  border-left: 3px solid var(--ai); background: var(--washi); box-shadow: var(--shadow-sm);
}
.alert-success { border-left-color: var(--koke); }
.alert-error, .alert-danger { border-left-color: var(--shu); }
.alert-warning { border-left-color: var(--kin); }

/* ---------- フォーム ---------- */
.form-stack { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > label, form label { font-family: var(--font-serif); font-size: 0.9rem; color: var(--ink-soft); letter-spacing: 0.05em; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  padding: 0.8rem 1rem; background: var(--washi); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ai); box-shadow: 0 0 0 3px rgba(58, 83, 102, 0.12);
}
textarea { min-height: 130px; resize: vertical; }
.helptext, .help-text { font-size: 0.8rem; color: var(--ink-faint); }
.errorlist { list-style: none; padding: 0; margin: 0.2rem 0 0; color: var(--shu); font-size: 0.82rem; }
ul.errorlist li { margin: 0; }

/* ---------- 認証ページ（allauth） ---------- */
.page-auth .site-main { display: grid; place-items: center; padding: clamp(3rem, 8vw, 6rem) 1.2rem; }
.page-auth .site-main > *:not(.messages) {
  width: 100%; max-width: 460px; background: var(--washi);
  padding: clamp(2rem, 5vw, 3.2rem); border-radius: 6px;
  box-shadow: var(--shadow); border-top: 3px solid var(--shu);
}
.page-auth h1 { font-size: 1.8rem; margin-bottom: 0.6rem; text-align: center; }
.page-auth form { margin-top: 1.5rem; }
.page-auth form p { margin-bottom: 1rem; }
.page-auth button[type="submit"], .page-auth .btn {
  width: 100%; margin-top: 0.6rem; background: var(--shu); color: var(--washi);
  border: 1px solid var(--shu); font-family: var(--font-serif); padding: 0.85rem; border-radius: var(--radius); cursor: pointer;
}
.page-auth a { color: var(--ai); }
.page-auth .socialaccount_providers { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }

/* ---------- マイページ ---------- */
.account-page { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.account-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.account-card { background: var(--washi); padding: 2rem; border-radius: 6px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); }
.card-title { font-size: 1.25rem; margin-bottom: 1.2rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.meta-list { display: grid; gap: 0.6rem; margin: 0 0 1.6rem; }
.meta-list > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--line); padding-bottom: 0.4rem; }
.meta-list dt { color: var(--ink-faint); margin: 0; }
.meta-list dd { margin: 0; font-weight: 500; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.2rem; }
.link-list li a { display: block; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line-soft); }
.link-list li a:hover { padding-left: 0.9rem; color: var(--shu); }
.avatar-preview { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; margin-bottom: 0.6rem; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: flex-end; overflow: hidden; color: var(--washi); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,28,34,0.15) 0%, rgba(20,28,34,0.65) 100%); }
.hero-inner { padding-bottom: clamp(4rem, 10vw, 8rem); padding-top: 8rem; }
.hero .eyebrow { color: #e7c9a0; }
.hero .eyebrow::before { background: #e7c9a0; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.25; text-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 540px; margin-top: 1.3rem; color: rgba(253,251,246,0.92); }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero .btn { border-color: rgba(253,251,246,0.6); color: var(--washi); }
.hero .btn::after { background: var(--washi); }
.hero .btn:hover { color: var(--ink); }
.hero .btn-primary { background: var(--shu); border-color: var(--shu); }
.hero .btn-primary:hover { color: var(--washi); }
.hero-scroll { position: absolute; right: 24px; bottom: 2rem; writing-mode: vertical-rl; letter-spacing: 0.3em; font-size: 0.7rem; opacity: 0.8; }

/* 縦書き装飾 */
.vline { writing-mode: vertical-rl; font-family: var(--font-serif); letter-spacing: 0.3em; }

/* ---------- サブヒーロー（下層ページ用） ---------- */
.subhero { position: relative; min-height: 52vh; display: flex; align-items: flex-end; color: var(--washi); overflow: hidden; }
.subhero .hero-media { position: absolute; inset: 0; z-index: -2; }
.subhero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.subhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,28,34,0.1), rgba(20,28,34,0.7)); }
.subhero .inner { padding: 7rem 0 3rem; }
.subhero .eyebrow { color: #e7c9a0; }
.subhero .eyebrow::before { background: #e7c9a0; }
.subhero h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-shadow: 0 4px 24px rgba(0,0,0,0.3); }

/* ---------- 客室詳細レイアウト ---------- */
.detail-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 3rem; align-items: start; }
.booking-box { position: sticky; top: 100px; }
.room-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.6rem 0; }
.room-gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; width: 100%; }
.prose p { color: var(--ink-soft); }
@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; }
  .booking-box { position: static; }
  .room-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 特徴グリッド ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card { background: var(--washi); padding: 2.2rem 1.8rem; border-radius: 6px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon { font-family: var(--font-serif); font-size: 1.8rem; color: var(--shu); width: 60px; height: 60px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; margin-bottom: 1.2rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- 横並びの紹介（画像＋文） ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }
.split-media .stamp { position: absolute; bottom: -18px; right: -18px; width: 90px; height: 90px; background: var(--shu); color: var(--washi); display: grid; place-items: center; border-radius: 50%; font-family: var(--font-serif); font-size: 0.85rem; text-align: center; box-shadow: var(--shadow); }

/* ---------- 客室カード ---------- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 2.2rem; }
.room-card { background: var(--washi); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); display: flex; flex-direction: column; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.room-card-media { aspect-ratio: 3 / 2; overflow: hidden; }
.room-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.room-card:hover .room-card-media img { transform: scale(1.06); }
.room-card-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.room-card-body h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.room-card .room-meta { font-size: 0.85rem; color: var(--ink-faint); display: flex; gap: 1rem; margin-bottom: 0.8rem; }
.room-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.room-card-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; }
.price { font-family: var(--font-serif); }
.price b { font-size: 1.5rem; color: var(--shu); }
.price small { color: var(--ink-faint); font-size: 0.8rem; }

.pill { display: inline-block; font-size: 0.72rem; letter-spacing: 0.1em; padding: 0.2rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); }
.amenity-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- ギャラリー ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid .span-2 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* ---------- レビュー ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--kin); font-size: 1rem; letter-spacing: 1px; }
.stars .off { color: var(--line); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.8rem; }
.review-card { background: var(--washi); padding: 1.8rem; border-radius: 6px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); }
.review-card .stars { margin-bottom: 0.8rem; }
.review-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.review-card .review-body { color: var(--ink-soft); font-size: 0.95rem; }
.review-meta { display: flex; justify-content: space-between; margin-top: 1.2rem; font-size: 0.82rem; color: var(--ink-faint); border-top: 1px solid var(--line-soft); padding-top: 0.9rem; }
.rating-big { font-family: var(--font-serif); font-size: 3rem; color: var(--shu); line-height: 1; }

/* ---------- 予約ステップ ---------- */
.steps { display: flex; gap: 0; margin-bottom: 3rem; counter-reset: step; }
.steps li { list-style: none; flex: 1; text-align: center; position: relative; font-size: 0.85rem; color: var(--ink-faint); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 0.6rem; border-radius: 50%; border: 1px solid var(--line); background: var(--washi); font-family: var(--font-serif); }
.steps li::after { content: ""; position: absolute; top: 20px; left: -50%; width: 100%; height: 1px; background: var(--line); z-index: -1; }
.steps li:first-child::after { display: none; }
.steps li.is-active { color: var(--ink); }
.steps li.is-active::before { background: var(--shu); color: var(--washi); border-color: var(--shu); }
.steps li.is-done::before { background: var(--ai-deep); color: var(--washi); border-color: var(--ai-deep); content: "✓"; }

/* ---------- 注文サマリー ---------- */
.summary { background: var(--washi); border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem; box-shadow: var(--shadow-sm); }
.summary h3 { font-size: 1.2rem; margin-bottom: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dotted var(--line); }
.summary-total { display: flex; justify-content: space-between; padding-top: 1rem; margin-top: 0.6rem; border-top: 2px solid var(--ink); font-family: var(--font-serif); }
.summary-total b { font-size: 1.6rem; color: var(--shu); }

/* ---------- 支払い（モック収銀台） ---------- */
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pay-method { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 6px; background: var(--washi); cursor: pointer; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.pay-method:hover { border-color: var(--ai); box-shadow: var(--shadow-sm); }
.pay-method input { width: auto; }
.pay-method .pm-logo { width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-family: var(--font-serif); font-weight: 700; font-size: 0.8rem; text-align: center; }
.pm-stripe { background: #635bff; }
.pm-paypay { background: #ff0033; }
.pm-wechat { background: #09bb07; }
.pm-alipay { background: #1677ff; }
.cashier { max-width: 560px; margin: 0 auto; }
.cashier-card { background: var(--washi); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.cashier-head { padding: 1.6rem; color: #fff; text-align: center; }
.cashier-body { padding: 2rem; }
.cashier-amount { font-family: var(--font-serif); font-size: 2.6rem; text-align: center; color: var(--ink); margin: 0.5rem 0 1.5rem; }
.qr-frame { width: 200px; height: 200px; margin: 0 auto 1.5rem; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; background: repeating-conic-gradient(var(--ink) 0% 25%, var(--washi) 0% 50%) 50% / 16px 16px; }

/* ---------- データ表示 ---------- */
.detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin: 2rem 0; }
.detail-meta .cell { border: 1px solid var(--line-soft); border-radius: 6px; padding: 1rem; text-align: center; background: var(--washi); }
.detail-meta .cell span { display: block; font-size: 0.78rem; color: var(--ink-faint); }
.detail-meta .cell b { font-family: var(--font-serif); font-size: 1.2rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
.table th { font-family: var(--font-serif); color: var(--ink-soft); font-weight: 500; }

.status-badge { display: inline-block; font-size: 0.75rem; letter-spacing: 0.08em; padding: 0.25rem 0.8rem; border-radius: 999px; }
.status-confirmed { background: rgba(108,115,86,0.16); color: var(--koke); }
.status-pending_payment, .status-pending { background: rgba(176,141,87,0.18); color: var(--kin); }
.status-cancelled { background: rgba(177,64,43,0.14); color: var(--shu); }
.status-completed { background: rgba(40,59,73,0.14); color: var(--ai-deep); }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--ink-faint); }
.empty-state .brand-mark { margin: 0 auto 1.2rem; opacity: 0.5; background: var(--ink-faint); }

/* ---------- フッター ---------- */
.site-footer { position: relative; background: var(--ai-deep); color: rgba(253,251,246,0.82); margin-top: 4rem; }
.footer-pattern { position: absolute; inset: 0; opacity: 0.06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2'%3E%3Ccircle cx='22' cy='22' r='21'/%3E%3Ccircle cx='22' cy='22' r='14'/%3E%3Ccircle cx='22' cy='22' r='7'/%3E%3C/g%3E%3C/svg%3E"); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: clamp(3rem, 6vw, 5rem) 24px; }
.footer-brand .brand-mark { margin-bottom: 1rem; }
.footer-name { font-family: var(--font-serif); font-size: 1.3rem; color: var(--washi); margin: 0 0 0.4rem; letter-spacing: 0.1em; }
.footer-tag { font-size: 0.85rem; opacity: 0.7; margin: 0; }
.footer-col h3 { font-size: 0.92rem; color: var(--washi); letter-spacing: 0.18em; margin-bottom: 1.1rem; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; opacity: 0.82; }
.footer-col a:hover { opacity: 1; color: #e7c9a0; }
.footer-contact p { font-size: 0.88rem; opacity: 0.8; line-height: 1.7; }
.footer-bottom { position: relative; border-top: 1px solid rgba(253,251,246,0.12); padding: 1.3rem 0; font-size: 0.78rem; opacity: 0.6; }
.footer-bottom .container { display: flex; justify-content: space-between; }

/* ---------- スクロール演出 ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.12s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.24s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  /* 中等宽度：横向菜单容易拥挤换行，改用整洁的抽屉菜单 */
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 80px 0 0; background: var(--paper); flex-direction: column;
    align-items: center; justify-content: center; gap: 1.8rem; transform: translateX(100%);
    transition: transform 0.5s var(--ease); margin: 0; z-index: 90;
  }
  body.nav-open .primary-nav { transform: translateX(0); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  .primary-nav a { font-size: 1.25rem; }
  .link-quiet { display: none; }
  .nav-cta-mobile { display: block; }
}
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .account-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .steps { font-size: 0.7rem; }
}
@media (max-width: 620px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-methods { grid-template-columns: 1fr; }
  .brand-en { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom .container { flex-direction: column; gap: 0.4rem; text-align: center; }
  .btn-reserve { padding: 0.5rem 1rem; }
}
