/* 天水島ヒルズ — main styles
   Aesthetic: rustic farmhouse, paper-warm base, dark ink, seasonal accents.
   Mono/numerals via Inter; Japanese via Noto Sans JP.
*/

:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d6;
  --ink: #1c1b17;
  --ink-2: #3a372f;
  --ink-3: #6b6656;
  --line: #cfc7b2;
  --line-2: #ddd4bd;
  --accent: #8a3b1c;           /* persimmon / lacquer */
  --accent-2: #5a6b3a;         /* moss */
  --season-spring: #8ea96a;
  --season-summer: #3c6a4d;
  --season-autumn: #a55a1e;
  --season-winter: #6d7a8a;
  --s-accent: var(--accent);

  --max: 1400px;
  --gutter: clamp(20px, 4vw, 56px);
  --r: 2px;

  --ff-sans: 'Noto Sans JP', 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --ff-serif: 'Noto Serif JP', 'EB Garamond', 'Times New Roman', serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }

/* typography helpers */
.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.sc   { text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.serif { font-family: var(--ff-serif); }
.tnum { font-variant-numeric: tabular-nums; }

/* page */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

/* ============== NAV ============== */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.02em;
}
.brand .mark {
  width: 26px; height: 26px;
  background: var(--ink); color: var(--paper);
  display: inline-grid; place-items: center;
  font-family: var(--ff-serif); font-size: 13px;
  border-radius: 1px;
}
.brand small { font-weight: 400; color: var(--ink-3); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin-left: 4px; }

.nav-links { display: flex; gap: 22px; justify-self: center; flex-wrap: wrap; }
.nav-links a { text-decoration: none; font-size: 13px; color: var(--ink-2); }
.nav-links a:hover { color: var(--accent); }

.nav-right { display: flex; gap: 10px; align-items: center; }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang button {
  border: 0; background: transparent; padding: 5px 10px; font-size: 11px; letter-spacing: .1em;
  cursor: pointer; color: var(--ink-3);
}
.lang button.on { background: var(--ink); color: var(--paper); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-size: 13px; font-weight: 600;
  border: 1px solid var(--ink);
  border-radius: 1px;
  transition: transform .2s ease, background .2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  height: 100vh; min-height: 720px;
  width: 100%;
  overflow: hidden;
  color: #f6f2e6;
  background: #1a1815;
}
.hero-stage { position: absolute; inset: 0; }
.hero-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 2.2s ease;
  transform: scale(1.05);
  will-change: opacity, transform;
}
.hero-layer.on { opacity: 1; }
.hero-layer::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.35) 0%, rgba(20,18,15,0.25) 40%, rgba(20,18,15,0.7) 100%);
}

.hero-grid {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(246,242,230,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246,242,230,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mix-blend-mode: overlay;
}

.hero-top {
  position: absolute; inset: auto 0 auto 0; top: 0;
  padding: 96px var(--gutter) 0;
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  z-index: 2;
}
.hero-kicker { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; opacity: .85;
  display: flex; align-items: center; gap: 10px;
}
.hero-kicker .dot { width: 6px; height: 6px; background: #f6f2e6; border-radius: 50%; display: inline-block; }
.hero-open { font-size: 11px; letter-spacing: 0.2em; opacity: .8; text-transform: uppercase;
  border: 1px solid rgba(246,242,230,.5); padding: 5px 10px; border-radius: 2px;
}

.hero-main {
  position: absolute; inset: auto 0 0 0;
  padding: 0 var(--gutter) 120px;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
  z-index: 2;
}
.hero-title {
  font-family: var(--ff-sans);
  font-weight: 800;
  font-size: clamp(48px, 8.5vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero-title .r2 { display: block; font-weight: 300; }
.hero-title .r1 { display: block; }
.hero-sub { max-width: 540px; margin: 24px 0 32px; opacity: .9; font-size: 15px; line-height: 1.8; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas .btn { background: #f6f2e6; color: #1a1815; border-color: #f6f2e6; padding: 14px 22px; }
.hero-ctas .btn:hover { background: var(--accent); color: #f6f2e6; border-color: var(--accent); }
.hero-ctas .btn.ghost { background: transparent; color: #f6f2e6; border-color: rgba(246,242,230,.5); }
.hero-ctas .btn.ghost:hover { background: rgba(246,242,230,.1); border-color: #f6f2e6; }

.hero-side {
  border-left: 1px solid rgba(246,242,230,.3);
  padding-left: 24px;
  min-width: 220px;
}
.hero-side .line { margin-bottom: 18px; }
.hero-side .lbl { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; opacity: .7; }
.hero-side .val { font-size: 22px; font-weight: 600; margin-top: 2px; }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.3em; opacity: .7; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll .bar {
  width: 1px; height: 40px; background: #f6f2e6;
  animation: scrollBar 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollBar {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* four-season indicator bar */
.season-bar {
  position: absolute; bottom: 24px; right: var(--gutter);
  display: flex; gap: 6px; z-index: 2;
}
.season-bar .sb {
  width: 42px; height: 2px; background: rgba(246,242,230,.3);
  position: relative; overflow: hidden; cursor: pointer;
}
.season-bar .sb.on { background: rgba(246,242,230,.9); }
.season-bar .sb span { position: absolute; inset: auto 0 -18px 0; font-size: 10px; letter-spacing: .22em; opacity: .7; text-align: center; }

@media (max-width: 860px) {
  .hero-main { grid-template-columns: 1fr; gap: 24px; padding-bottom: 96px; }
  .hero-side { border-left: 0; border-top: 1px solid rgba(246,242,230,.3); padding-left: 0; padding-top: 18px; display: flex; gap: 32px; }
  .hero-side .line { margin-bottom: 0; }
  .hero-top { padding-top: 84px; flex-direction: column; gap: 12px; }
}

/* ============== TICKER / MARQUEE ============== */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
  padding: 14px 0;
  position: relative;
}
.ticker-track { display: flex; gap: 48px; animation: tickerScroll 60s linear infinite; white-space: nowrap; }
.ticker-track span { font-size: 13px; letter-spacing: 0.18em; color: var(--ink-3); text-transform: uppercase; display: inline-flex; gap: 48px; }
.ticker-track span::after { content: '✦'; margin-left: 48px; color: var(--accent); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============== SECTION SCAFFOLD ============== */
section { padding: 120px 0; position: relative; }
.sec-head {
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px;
  margin-bottom: 64px;
  align-items: start;
}
.sec-head .tag {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.sec-head .tag::before {
  content: ''; width: 28px; height: 1px; background: var(--accent); display: inline-block;
}
.sec-head h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: pre-line;
}
.sec-head .lead { font-size: 15px; line-height: 1.9; color: var(--ink-2); max-width: 640px; margin-top: 20px; }

@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  section { padding: 80px 0; }
}

/* ============== HOUSE SECTION ============== */
#house { background: var(--paper); }
.house-body {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start;
}
.house-body .prose p { font-size: 16px; line-height: 1.9; color: var(--ink-2); margin: 0 0 20px; }
.house-specs { border-top: 1px solid var(--line); }
.house-specs dl { margin: 0; }
.house-specs .row {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.house-specs dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.house-specs dd { margin: 0; font-size: 14px; color: var(--ink-2); }

.house-photo { position: relative; }
.house-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); }
.house-photo .cap {
  position: absolute; bottom: -40px; right: 0;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
  writing-mode: vertical-rl; text-orientation: mixed;
  padding-top: 10px;
}

.stat-row {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 80px;
}
.stat-row .st {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}
.stat-row .st:last-child { border-right: 0; }
.stat-row .lbl { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); }
.stat-row .val { font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; line-height: 1; }
.stat-row .val sub { font-size: 13px; font-weight: 400; letter-spacing: 0.1em; color: var(--ink-3); margin-left: 6px; vertical-align: baseline; }

@media (max-width: 1000px) {
  .house-body { grid-template-columns: 1fr; gap: 40px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-row .st { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-row .st:nth-child(2n) { border-right: 0; }
  .stat-row .st:last-child { border-bottom: 0; }
}

/* ============== FLOORPLAN ============== */
#floorplan { background: var(--paper-2); }
.fp-wrap {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start;
}
.fp-svg-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
}
.fp-svg { width: 100%; height: auto; display: block; }
.fp-svg text { font-family: var(--ff-sans); fill: var(--ink-2); }
.fp-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 20px; display: flex; justify-content: space-between; }

.fp-legend { display: flex; flex-direction: column; gap: 10px; }
.fp-legend .item {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.fp-legend .item:hover, .fp-legend .item.active {
  border-color: var(--accent);
  background: #fff;
}
.fp-legend .num {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-family: var(--ff-serif); font-size: 18px;
}
.fp-legend .item.active .num { background: var(--accent); }
.fp-legend .name { font-weight: 600; font-size: 14px; }
.fp-legend .meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.fp-legend .area { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-3); }

.fp-link { margin-top: 24px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .fp-wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* ============== ROOMS ============== */
#rooms { background: var(--paper); }
.rooms-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.room {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  display: flex; flex-direction: column;
  min-height: 360px;
}
.room .no {
  font-family: var(--ff-serif); font-size: 56px; line-height: 1; margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.room .sz {
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px;
}
.room .name { font-size: 22px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.room .area { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.room .body { font-size: 13px; line-height: 1.8; color: var(--ink-2); flex: 1; }
.room .cap { margin-top: 18px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); padding-top: 12px; border-top: 1px dashed var(--line); }

@media (max-width: 1000px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .rooms-grid { grid-template-columns: 1fr; }
}

/* capacity visualizer */
.cap-viz {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center;
}
.cap-viz .lbl { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-3); }
.cap-viz .people { display: flex; gap: 6px; flex-wrap: wrap; }
.cap-viz .p { width: 18px; height: 28px; background: var(--ink); border-radius: 9px 9px 2px 2px; position: relative; }
.cap-viz .p::before { content: ''; position: absolute; inset: -10px 3px auto 3px; height: 12px; background: var(--ink); border-radius: 50%; }
.cap-viz .p.dim { opacity: .18; }
.cap-viz .total { font-family: var(--ff-serif); font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
.cap-viz .total small { font-family: var(--ff-sans); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); display: block; margin-top: 4px; font-weight: 500; }

@media (max-width: 860px) {
  .cap-viz { grid-template-columns: 1fr; gap: 20px; }
}

/* ============== DAY TIMELINE ============== */
#day { background: #1a1815; color: #f3efe6; border-top: 1px solid rgba(243,239,230,.08); }
#day .sec-head .tag { color: #c6a978; }
#day .sec-head .tag::before { background: #c6a978; }
#day .sec-head h2 { color: #f3efe6; }
#day .sec-head .lead { color: rgba(243,239,230,.7); }

.day-rail {
  position: relative;
  border-top: 1px solid rgba(243,239,230,.2);
}
.day-item {
  display: grid;
  grid-template-columns: 140px 1fr 2fr 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(243,239,230,.12);
  align-items: baseline;
  transition: background .3s ease;
  position: relative;
}
.day-item:hover { background: rgba(243,239,230,.03); }
.day-item .t { font-family: var(--ff-mono); font-size: 22px; letter-spacing: 0.05em; color: #c6a978; }
.day-item .title { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.day-item .body { font-size: 14px; line-height: 1.9; color: rgba(243,239,230,.75); }
.day-item .n { font-family: var(--ff-serif); font-size: 14px; color: rgba(243,239,230,.4); text-align: right; letter-spacing: 0.2em; }

@media (max-width: 1000px) {
  .day-item { grid-template-columns: 80px 1fr; gap: 20px; }
  .day-item .body { grid-column: 1 / -1; }
  .day-item .n { display: none; }
}

/* ============== PRICING ============== */
#pricing { background: var(--paper); }
.price-wrap {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start;
}
.price-card {
  background: var(--ink); color: var(--paper);
  padding: 48px;
  position: relative;
  border-radius: var(--r);
}
.price-card .lbl { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; opacity: .6; }
.price-card .amt { font-size: clamp(64px, 9vw, 128px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 16px 0 6px; }
.price-card .amt .cur { font-size: 0.35em; font-weight: 400; vertical-align: top; margin-right: 8px; }
.price-card .per { font-size: 14px; opacity: .7; letter-spacing: 0.1em; }
.price-card .note { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(243,239,230,.2); font-size: 13px; line-height: 1.8; opacity: .8; }

.price-opts dl { margin: 0; }
.price-opts .row {
  display: grid; grid-template-columns: 160px 1fr; gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.price-opts .row:first-child { border-top: 1px solid var(--line); }
.price-opts dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.price-opts dd { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }

@media (max-width: 1000px) {
  .price-wrap { grid-template-columns: 1fr; gap: 32px; }
  .price-card { padding: 32px; }
  .price-opts .row { grid-template-columns: 1fr; gap: 4px; }
}

/* ============== EVENTS / DAY-USE ============== */
#events {
  background: var(--paper-2);
  position: relative;
}
.events-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.events-viz {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--paper); border: 1px solid var(--line);
  padding: 24px;
  display: flex; flex-direction: column;
}
.events-viz .lbl { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.events-viz .big { font-family: var(--ff-serif); font-size: clamp(96px, 18vw, 240px); line-height: 0.9; font-weight: 400; letter-spacing: -0.04em; }
.events-viz .big small { font-family: var(--ff-sans); font-size: 16px; font-weight: 500; letter-spacing: 0.2em; color: var(--ink-3); display: block; margin-top: 16px; text-transform: uppercase; }
.events-viz .dots { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.events-viz .dots .p { height: 28px; background: var(--ink); border-radius: 9px 9px 2px 2px; position: relative; }
.events-viz .dots .p::before { content: ''; position: absolute; inset: -10px 15% auto 15%; height: 12px; background: var(--ink); border-radius: 50%; }

.events-uses { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.events-uses li {
  font-size: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex; align-items: center; gap: 10px;
}
.events-uses li::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

@media (max-width: 1000px) {
  .events-grid { grid-template-columns: 1fr; gap: 40px; }
  .events-uses { grid-template-columns: 1fr; }
}

/* ============== SEASONS ============== */
#seasons { background: var(--paper); }
.seasons-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.season {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
}
.season img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.season:hover img { transform: scale(1.05); }
.season::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75) 100%);
}
.season .lbl { position: absolute; inset: auto 0 0 0; padding: 24px; color: #f6f2e6; z-index: 2; }
.season .n {
  font-family: var(--ff-serif); font-size: 44px; letter-spacing: -0.02em; line-height: 1;
}
.season .m { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; margin-top: 6px; opacity: .9; }
.season .body { font-size: 12px; line-height: 1.7; margin-top: 10px; opacity: .85; max-width: 260px; }

@media (max-width: 1000px) {
  .seasons-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .seasons-grid { grid-template-columns: 1fr; }
}

/* ============== AROUND ============== */
#around { background: var(--paper-2); }
.around-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.near {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
  min-height: 220px;
}
.near:hover { border-color: var(--accent); transform: translateY(-2px); }
.near .t { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.near .n { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-top: 6px; }
.near .body { font-size: 13px; color: var(--ink-2); line-height: 1.7; flex: 1; margin-top: 6px; }
.near .arr { margin-top: 18px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 1000px) { .around-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .around-grid { grid-template-columns: 1fr; } }

/* ============== ACCESS ============== */
#access { background: var(--paper); }
.access-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.access-wrap h3 { margin: 0 0 20px; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.access-wrap .rows .row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.access-wrap .rows .row:first-child { border-top: 1px solid var(--line); }
.access-wrap .rows dt { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.access-wrap .rows dd { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); }

.map-card {
  border: 1px solid var(--line);
  padding: 32px;
  background: var(--paper-2);
  position: relative;
}
.map-card .coords { font-family: var(--ff-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; }
.map-card .addr { font-size: 18px; font-weight: 600; margin-top: 10px; line-height: 1.5; white-space: pre-line; }
.map-card .star {
  width: 100%; aspect-ratio: 1.3; margin: 28px 0;
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 0, var(--accent) 6px, transparent 7px),
    repeating-conic-gradient(from 0deg at 50% 50%, var(--ink-3) 0deg 1deg, transparent 1deg 22.5deg);
  border: 1px solid var(--line);
  position: relative;
}
.map-card .star::after {
  content: 'N'; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  font-family: var(--ff-mono); font-size: 11px; color: var(--ink-3);
}

@media (max-width: 1000px) {
  .access-wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* ============== BOOK ============== */
#book { background: #1a1815; color: #f3efe6; }
#book .sec-head .tag { color: #c6a978; }
#book .sec-head .tag::before { background: #c6a978; }
#book .sec-head h2 { color: #f3efe6; }
#book .sec-head .lead { color: rgba(243,239,230,.7); }

.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.book-card {
  padding: 36px;
  border: 1px solid rgba(243,239,230,.2);
  display: flex; flex-direction: column; gap: 12px;
  transition: background .2s ease, border-color .2s ease;
  text-decoration: none; color: inherit;
  min-height: 220px;
}
.book-card.primary {
  background: #f3efe6; color: #1a1815;
}
.book-card.primary:hover { background: var(--accent); color: #f3efe6; }
.book-card.disabled { opacity: .4; cursor: not-allowed; }
.book-card .lbl { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; opacity: .7; }
.book-card .big { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.book-card .small { font-size: 12px; opacity: .7; margin-top: auto; }
.book-card .arr { margin-top: auto; font-size: 13px; letter-spacing: 0.08em; }

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

/* ============== INFO ============== */
#info { background: var(--paper-2); padding-bottom: 40px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.info-box h4 { margin: 0 0 16px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.info-box dl { margin: 0; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.info-box .row { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 6px 0; }
.info-box dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.info-box dd { margin: 0; }
.info-box ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.info-box ul li::before { content: '◦ '; color: var(--accent); }

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

/* ============== FOOTER ============== */
footer.foot { background: #1a1815; color: #f3efe6; padding: 60px var(--gutter) 40px; }
.foot-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.foot-inner .brand .mark { background: #f3efe6; color: #1a1815; }
.foot-inner h5 { margin: 0 0 16px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: .7; font-weight: 600; }
.foot-inner ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.foot-inner ul a { color: rgba(243,239,230,.8); text-decoration: none; }
.foot-inner ul a:hover { color: #c6a978; }
.foot-addr { font-size: 13px; line-height: 1.7; opacity: .7; margin-top: 10px; }
.foot-license { font-size: 11px; letter-spacing: 0.1em; opacity: .5; margin-top: 20px; }

.foot-bottom {
  max-width: var(--max); margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(243,239,230,.15);
  display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: .5;
}

@media (max-width: 860px) { .foot-inner { grid-template-columns: 1fr; } }

/* ============== STICKY CTA ============== */
.sticky-cta {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper);
  padding: 10px 14px 10px 20px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 16px;
  z-index: 30;
  font-size: 13px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  opacity: 0; transform: translate(-50%, 20px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.sticky-cta.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sticky-cta .dot { width: 8px; height: 8px; background: #7bbf6a; border-radius: 50%; box-shadow: 0 0 0 0 rgba(123,191,106,.5); animation: pulse 2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(123,191,106,.6); }
  100% { box-shadow: 0 0 0 12px rgba(123,191,106,0); }
}
.sticky-cta .bk {
  background: #f3efe6; color: #1a1815;
  padding: 7px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.sticky-cta .bk:hover { background: var(--accent); color: #f3efe6; }

@media (max-width: 600px) {
  .sticky-cta { left: 16px; right: 16px; transform: none; justify-content: space-between; border-radius: 999px; }
  .sticky-cta.on { transform: none; }
}

/* ============== TWEAKS PANEL ============== */
.tw-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 50;
  background: #1a1815; color: #f3efe6;
  padding: 18px 20px;
  width: 280px;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  font-size: 12px;
  display: none;
}
.tw-panel.on { display: block; }
.tw-panel h6 { margin: 0 0 12px; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; opacity: .7; font-weight: 600; }
.tw-group { margin-bottom: 14px; }
.tw-group .glbl { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; opacity: .6; margin-bottom: 6px; }
.tw-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tw-chips button {
  border: 1px solid rgba(243,239,230,.3); background: transparent; color: #f3efe6;
  padding: 5px 10px; font-size: 11px; cursor: pointer; border-radius: 999px;
}
.tw-chips button.on { background: #f3efe6; color: #1a1815; border-color: #f3efe6; }

/* theme overrides (Tweaks seasons) */
body.theme-spring { --accent: #6a8e3d; --accent-2: #3a6a40; }
body.theme-summer { --accent: #2d6b4d; --accent-2: #3c6a3a; }
body.theme-autumn { --accent: #a55a1e; --accent-2: #7a4018; }
body.theme-winter { --accent: #385168; --accent-2: #556c7b; }

body.ff-serif { --ff-sans: 'Noto Serif JP', 'EB Garamond', serif; }

/* fade/reveal utility */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
