/* ============================================================================
   あまみ (amami) — 施設サ活の「持ち物と所作」を、動線順に選ぶ product-guide
   ----------------------------------------------------------------------------
   世界観: 水風呂から上がった腕に浮く赤白のまだら＝「あまみ」。
     冷えたグレーの肌が、スクロールで視界に入るたびに内側から赤く滲み上がる。
   配色: ミスティ・スレートグレー × チャコール優位。あまみの赤（くすんだシダー赤）は
     差し色として点でのみ入れる。スチームホワイトは最小。暖木ブラウンは主役化しない。
   書体: Zen Old Mincho（銘・見出し）/ Murecho（本文）/ DM Mono（秒針・型番・番号）。
   意匠: 銭湯タイルの台紙、湯気の面、そして「あまみ」の滲み。
   姉妹サイト（採寸タグ=site29 / 製図=site28 / 夜の菫=site27 / HUD=site26）とは
     配色・書体・世界観・シグネチャすべて別物（メーター/断面図/タグ/時計の再演なし）。
   ============================================================================ */

:root {
  /* --- palette: misty slate + charcoal, cedar-red accent, steam white minimal --- */
  --fog:        #DCE0E2;   /* page ground — cold misty slate */
  --fog-2:      #E4E7E8;   /* panel ground */
  --mist:       #EDEFEF;   /* card / raised surface */
  --tile:       #E7EAEB;   /* bathhouse-tile mount base */
  --grout:      #CBD1D3;   /* tile grout line */
  --char:       #1D2327;   /* charcoal — headings / body */
  --slate:      #47525A;   /* mid slate — structure, secondary */
  --slate-soft: #7C888F;   /* muted slate — captions, meta */
  --line:       #C4CACD;   /* hairline */
  --line-soft:  #D6DBDD;
  --amami:      #A24C43;   /* くすんだシダー赤 — the single accent (the "あまみ") */
  --amami-deep: #863E37;   /* darker cedar for hover / active */
  --amami-soft: rgba(162,76,67,0.11);
  --steam:      #F5F7F7;   /* steam white — used sparingly */
  --amazon:     #1D2327;
  --amazon-h:   #0b0e10;
  --rakuten:    #96302f;   /* muted crimson — kept quiet */

  --font-serif: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'YuMincho', serif;
  --font-sans:  'Murecho', 'Hiragino Kaku Gothic ProN', system-ui, sans-serif;
  --font-mono:  'DM Mono', ui-monospace, 'SFMono-Regular', monospace;

  --wrap: 1120px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--char);
  background-color: var(--fog);
  /* faint cold vapour: two drifting slate washes, no warm tone */
  background-image:
    radial-gradient(120% 80% at 8% -6%, rgba(255,255,255,0.55), transparent 46%),
    radial-gradient(110% 70% at 96% 4%, rgba(71,82,90,0.06), transparent 52%);
  background-attachment: fixed;
  line-height: 1.86;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }

a { color: var(--amami); text-decoration: none; }
a:hover { color: var(--amami-deep); text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.34; letter-spacing: 0.02em; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--char); color: var(--steam); padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- PR bar ---------- */
.pr-bar {
  background: var(--char); color: #C9D0D3;
  font-size: 11.5px; letter-spacing: 0.05em; text-align: center;
  padding: 7px 16px; font-family: var(--font-mono);
}
.pr-bar strong {
  color: var(--fog); background: var(--amami);
  border-radius: 2px; padding: 1px 7px; margin-right: 9px; font-weight: 500;
  letter-spacing: 0.12em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(220,224,226,0.86);
  backdrop-filter: saturate(120%) blur(9px);
  -webkit-backdrop-filter: saturate(120%) blur(9px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--char); }
.logo:hover { text-decoration: none; }
.logo-mark { display: grid; place-items: center; }
.logo-text {
  font-family: var(--font-serif); font-weight: 800; font-size: 22px;
  letter-spacing: 0.16em; display: block; line-height: 1.1;
}
.logo-tagline {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--slate-soft); display: block; margin-top: 1px;
}
.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--slate); font-size: 13px; letter-spacing: 0.06em; font-weight: 500;
}
.nav a:hover { color: var(--amami); text-decoration: none; }
@media (max-width: 560px) { .nav { gap: 15px; } .nav a { font-size: 12px; } }

/* ============================================================================
   the "あまみ" — mottled red/white bloom rising from cold skin
   Used in hero and each stage header. Cold grey by default; on reveal the
   mottle seeps up from below (masked). reduced-motion => shown statically.
   ============================================================================ */
.amami-skin {
  position: relative;
  border-radius: 7px;
  background:
    linear-gradient(160deg, #D3D8DA 0%, #C7CDD0 100%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -14px 26px rgba(71,82,90,0.10);
  isolation: isolate;
}
/* the mottle layer: irregular cedar-red blotches + steam-white flecks (まだら) */
.amami-mottle {
  position: absolute; inset: 0;
  background:
    radial-gradient(30px 21px at 17% 70%, rgba(162,76,67,0.60), transparent 68%),
    radial-gradient(40px 27px at 39% 55%, rgba(162,76,67,0.44), transparent 70%),
    radial-gradient(23px 18px at 58% 74%, rgba(162,76,67,0.55), transparent 66%),
    radial-gradient(34px 24px at 76% 46%, rgba(162,76,67,0.40), transparent 70%),
    radial-gradient(19px 15px at 88% 66%, rgba(162,76,67,0.50), transparent 66%),
    radial-gradient(27px 19px at 30% 34%, rgba(162,76,67,0.34), transparent 72%),
    radial-gradient(16px 13px at 33% 62%, rgba(245,247,247,0.66), transparent 66%),
    radial-gradient(18px 13px at 52% 40%, rgba(245,247,247,0.52), transparent 68%),
    radial-gradient(14px 11px at 69% 63%, rgba(245,247,247,0.58), transparent 66%),
    radial-gradient(12px 10px at 82% 34%, rgba(245,247,247,0.48), transparent 68%);
  /* seep up from the lower edge */
  -webkit-mask-image: linear-gradient(to top, #000 4%, rgba(0,0,0,0.86) 34%, rgba(0,0,0,0.32) 72%, transparent 96%);
          mask-image: linear-gradient(to top, #000 4%, rgba(0,0,0,0.86) 34%, rgba(0,0,0,0.32) 72%, transparent 96%);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.15s ease, transform 1.4s cubic-bezier(0.16, 0.72, 0.24, 1);
  filter: blur(0.4px);
}
.is-revealed .amami-mottle { opacity: 0.92; transform: none; }
/* a faint watermark word inside the skin */
.amami-skin .amami-word {
  position: absolute; right: 12px; bottom: 8px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.42em;
  color: rgba(29,35,39,0.34);
}
@media (prefers-reduced-motion: reduce) {
  .amami-mottle { opacity: 0.86 !important; transform: none !important; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(52px, 9vw, 104px) 0 clamp(40px, 6vw, 70px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(26px, 5vw, 60px); align-items: center; }
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.34em;
  color: var(--amami); text-transform: uppercase; margin-bottom: 18px;
}
.hero-eyebrow::before { content: "— "; color: var(--slate-soft); }
.hero h1 {
  font-size: clamp(30px, 5.4vw, 52px); color: var(--char);
  letter-spacing: 0.03em; line-height: 1.28; margin-bottom: 24px;
}
.hero h1 .accent { color: var(--amami); }
.hero-lead {
  font-size: 16.5px; color: var(--slate); line-height: 2; max-width: 42ch;
  border-left: 2px solid var(--amami); padding-left: 18px; margin-bottom: 22px;
}
.hero-lead .lead-lead { color: var(--char); font-weight: 500; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; font-family: var(--font-mono); font-size: 12px; color: var(--slate-soft); letter-spacing: 0.05em; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amami); display: inline-block; }

/* hero skin panel — the arm, bloomed */
.hero-figure { position: relative; }
.hero-figure .amami-skin { aspect-ratio: 5 / 6; min-height: 240px; }
.hero-figure figcaption {
  font-family: var(--font-mono); font-size: 11px; color: var(--slate-soft);
  letter-spacing: 0.08em; margin-top: 12px; text-align: right;
}
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 320px; }
  .hero-lead { max-width: none; }
}

/* ---------- section shell ---------- */
.band { padding: clamp(30px, 5vw, 54px) 0; }
.band + .band { border-top: 1px solid var(--line-soft); }
.section-kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.28em;
  color: var(--amami); text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: clamp(23px, 3.4vw, 32px); color: var(--char); letter-spacing: 0.035em; }
.section-intro { color: var(--slate); max-width: 66ch; margin-top: 14px; line-height: 1.95; }

/* ---------- flow rail (the 所作動線 stepper) ---------- */
.flow { padding-top: clamp(30px, 5vw, 48px); }
.flow-rail {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch;
  margin-top: 22px; counter-reset: flowstep;
}
.flow-step {
  flex: 1 1 0; min-width: 140px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--mist); padding: 14px 16px; position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.flow-step a { color: inherit; }
.flow-step a:hover { text-decoration: none; }
.flow-step .fs-no { font-family: var(--font-mono); font-size: 11px; color: var(--amami); letter-spacing: 0.14em; }
.flow-step .fs-name { font-family: var(--font-serif); font-weight: 700; font-size: 17px; color: var(--char); margin: 4px 0 3px; letter-spacing: 0.04em; }
.flow-step .fs-note { font-size: 12px; color: var(--slate-soft); line-height: 1.55; }
.flow-step:hover { border-color: var(--amami); background: var(--amami-soft); }
.flow-step:not(:last-child)::after {
  content: "›"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  color: var(--slate-soft); font-size: 16px; z-index: 2;
}
@media (max-width: 720px) {
  .flow-rail { flex-direction: column; }
  .flow-step { min-width: 0; }
  .flow-step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -13px; transform: translateX(-50%); }
}

/* ---------- stage ---------- */
.stage { padding: clamp(34px, 6vw, 66px) 0; scroll-margin-top: 72px; }
.stage + .stage { border-top: 1px solid var(--line-soft); }
.stage-head { display: grid; grid-template-columns: 132px 1fr; gap: clamp(18px, 3vw, 34px); align-items: stretch; margin-bottom: 26px; }
.stage-skin { align-self: stretch; }
.stage-skin .amami-skin { height: 100%; min-height: 128px; }
.stage-skin .amami-no {
  position: absolute; left: 12px; top: 9px; z-index: 2;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: rgba(29,35,39,0.5);
}
.stage-headtext { align-self: center; }
.stage-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.24em; color: var(--amami); text-transform: uppercase; }
.stage-title { font-size: clamp(22px, 3.4vw, 30px); color: var(--char); margin: 7px 0 2px; letter-spacing: 0.035em; }
.stage-title .motif { font-family: var(--font-sans); font-weight: 400; font-size: 0.56em; color: var(--slate-soft); letter-spacing: 0.02em; }
.stage-count { font-family: var(--font-mono); font-size: 12px; color: var(--slate-soft); }
.stage-lead { color: var(--slate); line-height: 1.98; max-width: 70ch; margin-bottom: 8px; }
.stage-lead .voice { color: var(--char); font-style: normal; border-bottom: 1px dotted var(--amami); }
@media (max-width: 640px) {
  .stage-head { grid-template-columns: 1fr; }
  .stage-skin .amami-skin { min-height: 84px; }
}

/* ---------- product grid ---------- */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 288px));
  justify-content: start;
  gap: 20px;
  margin-top: 22px;
}
.product {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--mist); overflow: hidden; max-width: 320px;
  display: flex; flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.product:hover { transform: translateY(-3px); border-color: #B4BBBE; box-shadow: 0 12px 30px -18px rgba(29,35,39,0.4); }

/* figure on a bathhouse-tile mount */
.product-figure {
  position: relative;
  height: 208px;
  background-color: var(--tile);
  background-image:
    linear-gradient(var(--grout) 1px, transparent 1px),
    linear-gradient(90deg, var(--grout) 1px, transparent 1px);
  background-size: 33px 33px;
  background-position: center;
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.product-figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 40px rgba(71,82,90,0.09);
}
.product-image {
  width: 100%; height: 100%; object-fit: contain;
  min-width: 0; min-height: 0; padding: 16px;
  mix-blend-mode: multiply;
}
.product-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.product-use {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--amami); text-transform: uppercase; margin-bottom: 8px;
}
.product-use .u-sep { color: var(--slate-soft); margin: 0 6px; }
.product-name { font-family: var(--font-sans); font-weight: 700; font-size: 14.5px; color: var(--char); line-height: 1.5; letter-spacing: 0.01em; }
.price-hint {
  display: inline-block; margin-top: 9px; font-family: var(--font-mono);
  font-size: 12px; color: var(--slate); letter-spacing: 0.04em;
}
.price-hint b { color: var(--char); font-weight: 500; }
.product-reason { font-size: 13px; color: var(--slate); line-height: 1.82; margin-top: 10px; flex: 1; }
.product-spec {
  margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--slate-soft); letter-spacing: 0.03em;
  display: flex; flex-wrap: wrap; gap: 3px 14px;
}
.product-spec b { color: var(--slate); font-weight: 500; }

/* offers */
.offers { display: flex; gap: 9px; margin-top: 15px; }
.offer {
  flex: 1; position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 9px 12px 8px; border-radius: var(--radius); text-decoration: none;
  border: 1px solid transparent; transition: filter 0.2s ease, transform 0.1s ease;
}
.offer:hover { text-decoration: none; filter: brightness(1.08); }
.offer:active { transform: translateY(1px); }
.offer--amazon { background: var(--amazon); color: #EEF1F2; }
.offer--amazon:hover { background: var(--amazon-h); }
.offer--rakuten { background: var(--mist); color: var(--rakuten); border-color: var(--rakuten); }
.offer-store { font-size: 13px; font-weight: 700; letter-spacing: 0.03em; }
.offer-go { font-size: 11px; opacity: 0.86; }
.offer-arrow { margin-left: 3px; }
.pr-tag {
  position: absolute; top: 6px; right: 7px; font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: 0.1em; padding: 1px 4px; border-radius: 2px;
  background: rgba(255,255,255,0.16); color: inherit; opacity: 0.75;
}
.offer--rakuten .pr-tag { background: rgba(150,48,47,0.1); }
.offer-note { font-size: 10.5px; color: var(--slate-soft); line-height: 1.6; margin-top: 9px; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.16,0.72,0.24,1); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- editorial policy ---------- */
.editorial { background: var(--fog-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.editorial .wrap { padding-top: clamp(38px, 6vw, 60px); padding-bottom: clamp(38px, 6vw, 60px); }
.editorial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 24px; }
.ed-card { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 22px; }
.ed-card h3 { font-size: 16px; color: var(--char); margin-bottom: 9px; letter-spacing: 0.03em; }
.ed-card h3 .ed-no { font-family: var(--font-mono); font-size: 11px; color: var(--amami); margin-right: 8px; letter-spacing: 0.1em; }
.ed-card p { font-size: 13px; color: var(--slate); line-height: 1.85; }
.legend-note { font-size: 11.5px; color: var(--slate-soft); line-height: 1.7; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }

/* ---------- generic prose (about / privacy) ---------- */
.page-hero { padding: clamp(46px, 8vw, 82px) 0 clamp(20px, 4vw, 34px); }
.page-hero .hero-eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(27px, 4.6vw, 42px); color: var(--char); letter-spacing: 0.03em; }
.page-hero p { color: var(--slate); margin-top: 14px; max-width: 62ch; line-height: 1.95; }
.prose { padding-bottom: clamp(40px, 7vw, 76px); }
.prose section { margin-top: 34px; }
.prose h2 { font-size: 21px; color: var(--char); letter-spacing: 0.03em; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose h2 .h2-no { font-family: var(--font-mono); font-size: 12px; color: var(--amami); margin-right: 10px; }
.prose h3 { font-size: 16px; color: var(--char); margin: 20px 0 8px; }
.prose p { color: var(--slate); line-height: 1.98; margin-bottom: 12px; }
.prose ul { margin: 8px 0 14px 1.1em; color: var(--slate); line-height: 1.9; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--char); font-weight: 700; }
.callout {
  background: var(--amami-soft); border: 1px solid rgba(162,76,67,0.28);
  border-left: 3px solid var(--amami); border-radius: var(--radius);
  padding: 16px 18px; margin: 16px 0; font-size: 13.5px; color: var(--slate); line-height: 1.85;
}
.callout strong { color: var(--amami-deep); }

/* ---------- footer ---------- */
.site-footer { background: var(--char); color: #AEB7BC; padding: clamp(36px, 6vw, 58px) 0 30px; margin-top: 0; }
.site-footer a { color: #D7DDDF; }
.site-footer a:hover { color: var(--steam); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer-brand .logo-text { color: var(--steam); font-size: 20px; }
.footer-brand p { font-size: 12.5px; color: #8B959B; margin-top: 12px; line-height: 1.8; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; color: #7C888F; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: 13px; }
.footer-disclosure { margin-top: 30px; padding-top: 20px; border-top: 1px solid #333B41; font-size: 11.5px; color: #7C888F; line-height: 1.8; }
.footer-disclosure strong { color: #AEB7BC; }
.footer-copy { margin-top: 16px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: #616B71; }
@media (max-width: 680px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- misc ---------- */
.center-note { text-align: center; color: var(--slate-soft); font-size: 12.5px; margin-top: 26px; font-family: var(--font-mono); letter-spacing: 0.04em; }
::selection { background: var(--amami); color: var(--steam); }
:focus-visible { outline: 2px solid var(--amami); outline-offset: 2px; }
