/* ======================================================
   湯けむり手帖 — Main Stylesheet
   ====================================================== */

/* ---- Variables ---- */
:root {
  --amber:       #c08a3e;
  --amber-light: #e8c98a;
  --indigo:      #1f3a52;
  --indigo-mid:  #3a6a7e;
  --ink:         #2a211a;
  --ink-soft:    #6e655c;
  --paper:       #f8f4ef;
  --paper-mid:   #f0ebe3;
  --white:       #ffffff;
  --line:        #e2d9ce;
  --shadow:      0 4px 24px rgba(31,58,82,.10);
  --shadow-sm:   0 2px 8px rgba(31,58,82,.08);
  --radius:      14px;
  --radius-sm:   8px;
  --transition:  .2s ease;
  --max-w:       1100px;
  --serif-stack: "Noto Serif JP","Yu Mincho","YuMincho","Hiragino Mincho ProN",Georgia,serif;
  --sans-stack:  "Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic","YuGothic",system-ui,sans-serif;
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans-stack);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---- Typography helpers ---- */
.serif { font-family: var(--serif-stack); }
.num   { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---- Layout ---- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.block { padding: 64px 0; }

/* ---- PR disclosure bar ---- */
.pr-bar {
  background: #f5f0e8;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 7px 16px;
  letter-spacing: .02em;
}

/* ======================================================
   HEADER
   ====================================================== */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(31,58,82,.06);
}
.head-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand .mark {
  width: 34px;
  height: 34px;
  background: var(--indigo);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand .mark::after {
  content: "♨";
  color: var(--amber);
  font-size: 15px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
}
.brand .name {
  font-family: var(--serif-stack);
  font-size: 18px;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 6px 11px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav a:hover { color: var(--indigo); background: var(--paper); }

/* Mobile menu button */
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--indigo);
  padding: 4px 8px;
  margin-left: auto;
}

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn-primary {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 2px 10px rgba(192,138,62,.28);
}
.btn-primary:hover {
  background: #a87530;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(192,138,62,.38);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--indigo);
  border: 2px solid var(--indigo);
}
.btn-ghost:hover {
  background: var(--indigo);
  color: #fff;
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.arr { font-style: normal; }

/* ======================================================
   SECTION HEADER
   ====================================================== */
.sec-head {
  text-align: center;
  margin-bottom: 48px;
}
.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1.5px solid var(--amber);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.sec-head h2 {
  font-family: var(--serif-stack);
  font-size: 28px;
  font-weight: 800;
  color: var(--indigo);
  letter-spacing: .03em;
  line-height: 1.45;
}
.jp-sub {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: .04em;
  font-family: var(--sans-stack);
}
.sec-head p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* ======================================================
   HERO (responsive override for inline-grid)
   ====================================================== */
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
}

/* ======================================================
   AREA CARDS
   ====================================================== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.area-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.area-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}
.area-card:hover .bg { transform: scale(1.06); }

/* Area gradient backgrounds */
.bg-hakone      { background: url('img/area/hakone.jpg')      center/cover no-repeat, linear-gradient(155deg,#1f3a52 0%,#3a6a7e 55%,#5b8a9e 100%); }
.bg-kusatsu     { background: url('img/area/kusatsu.jpg')     center/cover no-repeat, linear-gradient(155deg,#4a2a18 0%,#7a4828 55%,#c0883a 100%); }
.bg-beppu       { background: url('img/area/beppu.jpg')       center/cover no-repeat, linear-gradient(155deg,#0e2a42 0%,#1e5470 55%,#2e7a9e 100%); }
.bg-yufuin      { background: url('img/area/yufuin.jpg')      center/cover no-repeat, linear-gradient(155deg,#1a3a28 0%,#2e5e3a 55%,#4a8a5c 100%); }
.bg-atami       { background: url('img/area/atami.jpg')       center/cover no-repeat, linear-gradient(155deg,#1a2848 0%,#2a4a7a 55%,#3c6aac 100%); }
.bg-kurokawa    { background: url('img/area/kurokawa.jpg')    center/cover no-repeat, linear-gradient(155deg,#2a1c0e 0%,#4a3020 55%,#7a5a3a 100%); }
.bg-noboribetsu { background: url('img/area/noboribetsu.jpg') center/cover no-repeat, linear-gradient(155deg,#1c1c2e 0%,#2e2e50 55%,#484872 100%); }
.bg-gero        { background: url('img/area/gero.jpg')        center/cover no-repeat, linear-gradient(155deg,#3a1828 0%,#6a2a4a 55%,#9a4a6a 100%); }

.area-card .cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 16px 16px;
  background: linear-gradient(transparent, rgba(8,8,18,.78));
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cap .en {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(255,255,255,.68);
  text-transform: uppercase;
}
.cap .jp {
  font-family: var(--serif-stack);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.cap .meta {
  font-size: 11px;
  color: rgba(255,255,255,.72);
  margin-top: 2px;
}

/* ======================================================
   RANKING CARDS
   ====================================================== */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rank-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.rank-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.rank-card.gold   { border-left: 4px solid #c9a227; }
.rank-card.silver { border-left: 4px solid #9fb3bf; }
.rank-card.bronze { border-left: 4px solid #c07850; }

.rank-no {
  font-family: var(--serif-stack);
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  line-height: 1;
}
.rank-card.gold   .rank-no { color: #c9a227; }
.rank-card.silver .rank-no { color: #9fb3bf; }
.rank-card.bronze .rank-no { color: #c07850; }
.rank-card:not(.gold):not(.silver):not(.bronze) .rank-no { color: var(--ink-soft); }

.rank-thumb {
  border-radius: var(--radius-sm);
  height: 90px;
  background: var(--paper-mid);
  overflow: hidden;
  flex-shrink: 0;
}
.rank-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 8px;
  line-height: 1.45;
}
.rank-body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.65;
}
.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--paper);
  color: var(--indigo);
  border: 1px solid var(--line);
}
.rank-side {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 150px;
  flex-shrink: 0;
}
.rank-stars {
  font-size: 16px;
  color: var(--amber);
  letter-spacing: 2px;
}
.rank-price {
  font-size: 13px;
  color: var(--ink-soft);
}
.rank-price b {
  font-size: 22px;
  color: var(--indigo);
  font-weight: 800;
}

/* ======================================================
   PURPOSE LINKS
   ====================================================== */
.purpose {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.purpose a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
  transition: all var(--transition);
  text-decoration: none;
}
.purpose a:hover {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ======================================================
   COLUMN CARDS
   ====================================================== */
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.col-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.col-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.col-card .thumb {
  aspect-ratio: 16/9;
  background: var(--paper-mid);
  overflow: hidden;
  transition: transform .4s ease;
  flex-shrink: 0;
}
.col-card:hover .thumb { transform: scale(1.04); }
.c-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.c-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.c-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1.5;
}
.c-body p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ======================================================
   CTA BAND
   ====================================================== */
.cta-band {
  background: linear-gradient(135deg,var(--indigo) 0%,#2a5470 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-band .wrap.in {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cta-band h2 {
  font-family: var(--serif-stack);
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
}
.cta-band p { color: rgba(255,255,255,.8); font-size: 16px; }

/* ======================================================
   STICKY CTA (mobile)
   ====================================================== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--amber);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-cta a {
  display: block;
  padding: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
}

/* ======================================================
   FOOTER
   ====================================================== */
footer.site {
  background: var(--indigo);
  color: rgba(255,255,255,.75);
  padding: 56px 0 28px;
}
.f-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 30px;
}
footer .brand .name { color: #fff; }
footer .brand .mark { background: rgba(255,255,255,.15); }
.f-about {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  color: rgba(255,255,255,.58);
}
footer h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: .05em;
}
footer ul li { margin-bottom: 8px; }
footer ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  transition: color var(--transition);
}
footer ul li a:hover { color: #fff; }
.disc {
  font-size: 11px;
  color: rgba(255,255,255,.42);
  line-height: 1.75;
  margin-bottom: 16px;
}
.copy { font-size: 12px; color: rgba(255,255,255,.42); }
.copy a { color: rgba(255,255,255,.62); }

/* ======================================================
   BREADCRUMB
   ====================================================== */
.crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 12px 0;
  flex-wrap: wrap;
}
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--indigo); text-decoration: underline; }
.crumb > span { color: var(--line); }

/* ======================================================
   ARTICLE / PILLAR CONTENT
   ====================================================== */
.article { max-width: 800px; }

.article h1 {
  font-family: var(--serif-stack);
  font-size: 30px;
  font-weight: 800;
  color: var(--indigo);
  line-height: 1.5;
  margin-bottom: 20px;
  letter-spacing: .03em;
}
.article h2 {
  font-family: var(--serif-stack);
  font-size: 22px;
  font-weight: 700;
  color: var(--indigo);
  border-left: 4px solid var(--amber);
  padding-left: 14px;
  margin: 44px 0 18px;
  line-height: 1.45;
}
.article h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--indigo);
  margin: 28px 0 12px;
  line-height: 1.45;
}
.article p { margin-bottom: 16px; color: var(--ink); }
.article ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.article ul li { margin-bottom: 6px; font-size: 15px; }
.lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

/* TOC */
.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin: 32px 0;
}
.toc-t {
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: .05em;
}
.toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc ol li a {
  font-size: 14px;
  color: var(--indigo);
}
.toc ol li a:hover { text-decoration: underline; }

/* Callout */
.callout {
  background: #fff8ed;
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 20px 0;
  line-height: 1.7;
}

/* Affiliate box */
.aff-box {
  background: linear-gradient(135deg,#f5f0e4,#fdf8ef);
  border: 1.5px solid var(--amber-light);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 32px 0;
}
.aff-box .ttl {
  font-family: var(--serif-stack);
  font-size: 18px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 10px;
}
.aff-box p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* FAQ */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--indigo);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
  line-height: 1.5;
}
.faq-q:hover { background: var(--paper); }
.pm {
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--amber);
  transition: transform .25s ease;
  line-height: 1;
}
.faq-a {
  display: none;
  padding: 4px 20px 18px;
}
.faq-a.open { display: block; }
.faq-a p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 20px 0;
}
.compare-table th, .compare-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.compare-table th {
  background: var(--paper);
  font-weight: 700;
  color: var(--indigo);
}
.compare-table tr:nth-child(even) td { background: #fdfaf6; }

/* ======================================================
   FILTER CHIPS
   ====================================================== */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.filter-chip:hover {
  background: var(--paper);
  border-color: var(--indigo);
}
.filter-chip.active {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}

/* ======================================================
   FOCUS ACCESSIBILITY
   ====================================================== */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .grid-4       { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cols         { grid-template-columns: repeat(2, 1fr); }
  .f-top        { grid-template-columns: 1fr 1fr; gap: 28px; }
  .rank-card    { grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; }
  .rank-side    { display: none; }
  .hero-inner   { grid-template-columns: 1fr !important; gap: 32px !important; }
}

@media (max-width: 700px) {
  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 16px;
    gap: 4px;
    box-shadow: var(--shadow);
    z-index: 99;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 14px; border-radius: 8px; }
  .menu-btn { display: block; }
  .sticky-cta { display: block; }
  .cols { grid-template-columns: 1fr; }
  .f-top { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { padding: 52px 0; }
  .cta-band h2 { font-size: 22px; }
  .block { padding: 44px 0; }
  .wrap { padding: 0 16px; }
  .article h1 { font-size: 24px; }
  .sec-head h2 { font-size: 22px; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rank-card { padding: 12px 14px; gap: 10px; }
  .rank-thumb { height: 72px; width: 100px !important; }
  .rank-body h3 { font-size: 14px; }
  .article h2 { font-size: 18px; }
  .toc { padding: 18px 20px; }
  .aff-box { padding: 22px 16px; }
  .purpose a { padding: 10px 14px; font-size: 13px; }
}
