/* 湯航 (yukou) — design system
   夜行の深紺(地色面積優位) × 湯気の生成り × 真鍮金。海図/積み込み図の文法。
   Fonts: Zen Old Mincho(serif見出し) / Noto Sans JP(本文) / JetBrains Mono(数値・soundings)
   Hallmark · macrostructure: diagram-led hybrid (custom) · theme: custom night-chart
*/
:root {
  --navy-deep: #0E1524;
  --navy: #131C30;
  --navy-line: #26334E;
  --cream: #F1E9D8;
  --cream-dim: #C9BFA9;
  --brass: #C9A24B;
  --brass-bright: #E4C270;
  --brass-dim: #8B6F35;
  --ink: #0B0F19;
  --danger: #C96B4B;
  --radius: 14px;
  --wrap: 1120px;
  --shadow: 0 18px 40px rgba(6, 9, 18, 0.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--cream);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.85;
  font-feature-settings: "palt";
}
h1, h2, h3, .brand, .eyebrow-serif {
  font-family: 'Zen Old Mincho', serif;
  color: var(--cream);
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.mono, .sounding, .hold-no, .chart-no { font-family: 'JetBrains Mono', monospace; }
a { color: var(--brass-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brass); color: var(--ink);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 21, 36, 0.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--navy-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand .yomi { font-family: 'Noto Sans JP', sans-serif; font-size: 0.6rem; color: var(--cream-dim); letter-spacing: 0.14em; }
.pr-badge-header {
  font-size: 0.68rem; color: var(--navy-deep); background: var(--brass); padding: 3px 8px; border-radius: 999px; font-weight: 700; letter-spacing: 0.06em;
}
.header-nav { display: flex; gap: 18px; font-size: 0.85rem; }
.header-nav a { color: var(--cream-dim); }

/* ---- hero ---- */
.hero { padding-block: 88px 56px; position: relative; overflow: hidden; min-height: 440px; display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block; }
.hero-media::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background-image: url('images/bg_chart_grid.webp');
  background-size: cover; background-position: center;
  opacity: 0.14; mix-blend-mode: screen; pointer-events: none;
}
.hero-media::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(115deg, rgba(9,13,22,0.95) 0%, rgba(9,13,22,0.86) 30%, rgba(9,13,22,0.52) 56%, rgba(9,13,22,0.8) 100%);
}
.section-figure { border-radius: var(--radius); overflow: hidden; margin: 24px 0; border: 1px solid var(--navy-line); }
.section-figure img { width: 100%; height: auto; display: block; }
.section-figure figcaption { font-size: 0.72rem; color: var(--cream-dim); padding: 8px 4px 0; }
.hero .wrap { position: relative; z-index: 3; }

/* ---- section divider figure (質感画像バンド) ---- */
.section-divider { padding-block: 0 8px; }
.section-divider .section-figure { margin: 0; }
.section-divider figcaption { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'Noto Sans JP', sans-serif; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--brass-bright); text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--brass-bright); }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); max-width: 16ch; margin: 0 0 20px; }
.hero-lead { max-width: 60ch; color: var(--cream-dim); font-size: 1.02rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.92rem; border: 1px solid var(--brass-dim);
}
.btn-primary { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.btn-ghost { color: var(--cream); border-color: var(--navy-line); }

/* ---- 湯航チャート (signature cargo-loading diagram) ---- */
.chart-section { padding-block: 20px 60px; }
.chart-frame {
  position: relative; border: 1px solid var(--navy-line); border-radius: var(--radius);
  background: linear-gradient(180deg, #0F1728 0%, #0B111E 100%);
  box-shadow: var(--shadow); padding: 28px clamp(16px, 4vw, 40px) 34px; overflow: hidden;
}
.chart-frame::before {
  content: ''; position: absolute; inset: 0; opacity: 0.6; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(201,162,75,0.2) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(201,162,75,0.2) 0 1px, transparent 1px 34px);
}
.chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; margin-bottom: 20px; }
.chart-title { font-size: 1.35rem; margin: 0; }
.chart-sub { color: var(--cream-dim); font-size: 0.85rem; max-width: 46ch; }
.compass-rose { width: 58px; height: 58px; flex: none; opacity: 0.85; }

.hold-stack { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; border-radius: 10px; overflow: hidden; border: 1px solid var(--brass-dim); }
.hold {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 18px; background: rgba(19, 28, 48, 0.86); cursor: pointer;
  border: none; border-bottom: 1px dashed rgba(201,162,75,0.35); color: var(--cream);
  text-align: left; width: 100%; font: inherit; transition: background 0.2s ease;
}
.hold:last-child { border-bottom: none; }
.hold:hover, .hold:focus-visible, .hold.is-active { background: rgba(201, 162, 75, 0.16); }
.hold-no { font-family: 'JetBrains Mono', monospace; color: var(--brass-bright); font-size: 0.95rem; }
.hold-body h3 { margin: 0 0 3px; font-size: 1rem; font-family: 'Noto Sans JP', sans-serif; font-weight: 700; }
.hold-body p { margin: 0; font-size: 0.82rem; color: var(--cream-dim); }
.hold-sounding { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--brass); border: 1px solid var(--brass-dim); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.chart-readout {
  position: relative; z-index: 1; margin-top: 18px; padding: 16px 18px; border-radius: 10px;
  background: rgba(9, 14, 24, 0.7); border: 1px solid var(--navy-line); font-size: 0.88rem; color: var(--cream);
  min-height: 1.6em;
}
.chart-readout b { color: var(--brass-bright); }
.chart-legend { margin-top: 10px; font-size: 0.72rem; color: var(--cream-dim); position: relative; z-index: 1; }

/* ---- lane nav pills ---- */
.lane-nav { padding-block: 4px 10px; }
.lane-nav-list { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.lane-pill {
  font-size: 0.8rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--navy-line);
  color: var(--cream-dim); background: rgba(255,255,255,0.02);
}
.lane-pill.is-cued, .lane-pill:hover { border-color: var(--brass); color: var(--brass-bright); }

/* ---- lane sections / product grid ---- */
.lane-section { padding-block: 44px; border-top: 1px solid var(--navy-line); }
.lane-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; flex-wrap: wrap; }
.lane-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--brass-dim); border-radius: 10px; overflow: hidden; }
.lane-icon svg { width: 22px; height: 22px; }
.lane-icon img { width: 100%; height: 100%; object-fit: cover; }
.section-eyebrow { font-family: 'Noto Sans JP', sans-serif; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--brass-bright); text-transform: uppercase; margin-bottom: 4px; }
.lane-head h2 { margin: 0 0 6px; font-size: 1.5rem; }
.lane-desc { color: var(--cream-dim); max-width: 68ch; margin: 0; font-size: 0.94rem; }
.lane-desc a { color: var(--brass-bright); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card {
  background: var(--navy); border: 1px solid var(--navy-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.product-figure { aspect-ratio: 4/3; background: #0A0F1B; overflow: hidden; }
.product-image { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-name { font-size: 1rem; margin: 0; font-family: 'Noto Sans JP', sans-serif; font-weight: 700; }
.product-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-chip { font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--navy-line); color: var(--cream-dim); }
.spec-chip.is-price { border-color: var(--brass-dim); color: var(--brass-bright); }
.product-reason { font-size: 0.86rem; color: var(--cream-dim); margin: 0; flex: 1; }
.offers { display: flex; gap: 8px; margin-top: auto; }
.offer {
  position: relative; flex: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 10px; font-size: 0.86rem; font-weight: 700;
}
.offer--amazon { background: var(--brass); color: var(--ink); }
.pr-tag {
  position: absolute; top: -8px; right: -6px; background: var(--navy-deep); color: var(--brass-bright);
  font-size: 0.62rem; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--brass-dim); font-weight: 700;
}
.offer-note { font-size: 0.72rem; color: var(--cream-dim); margin: 6px 0 0; }

/* ---- article layout ---- */
.content-page { padding-block: 56px 80px; }
.article-head { max-width: 74ch; margin-bottom: 34px; }
.article-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 10px 0 14px; }
.article-meta { display: flex; gap: 12px; font-size: 0.78rem; color: var(--cream-dim); flex-wrap: wrap; }

/* ---- article hero band (記事個別ヒーロー画像) ---- */
.article-head.article-hero {
  max-width: none; position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--navy-line);
  min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px clamp(18px, 4vw, 36px) 28px; background-size: cover; background-position: center;
}
.article-head.article-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(10,14,23,0.18) 0%, rgba(10,14,23,0.6) 58%, rgba(9,12,20,0.94) 100%);
}
.article-head.article-hero > * { position: relative; z-index: 1; }
.article-head.article-hero h1 { margin: 8px 0 12px; }
.pr-notice {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--brass-bright);
  border: 1px solid var(--brass-dim); border-radius: 999px; padding: 3px 10px;
}
.article-body { max-width: 74ch; }
.article-body h2 { font-size: 1.35rem; margin-top: 46px; }
.article-body h3 { font-size: 1.08rem; margin-top: 30px; font-family: 'Noto Sans JP', sans-serif; font-weight: 700; }
.article-body p { color: #E4DCC8; }
.article-body ul, .article-body ol { color: #E4DCC8; padding-left: 1.3em; }
.article-body li { margin-bottom: 8px; }
.callout {
  border-left: 3px solid var(--brass); background: rgba(201,162,75,0.08); padding: 16px 20px; border-radius: 0 10px 10px 0;
  font-size: 0.9rem; color: var(--cream); margin: 24px 0;
}
.callout.is-warning { border-color: var(--danger); }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.86rem; }
.spec-table th, .spec-table td { border: 1px solid var(--navy-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.spec-table th { background: rgba(201,162,75,0.1); color: var(--brass-bright); font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; letter-spacing: 0.04em; }
.article-body table a { word-break: break-word; }
.inline-link-out { font-size: 0.9rem; color: var(--brass-bright); }

/* ---- diagnostic (soubi-shindan) ---- */
.quiz-frame { border: 1px solid var(--navy-line); border-radius: var(--radius); background: var(--navy); padding: 28px clamp(16px,4vw,34px) 34px; box-shadow: var(--shadow); }
.quiz-question { margin-bottom: 30px; }
.quiz-question h3 { margin: 0 0 14px; font-size: 1.05rem; }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.quiz-option {
  border: 1px solid var(--navy-line); background: rgba(255,255,255,0.02); color: var(--cream);
  padding: 14px 16px; border-radius: 10px; text-align: left; font: inherit; cursor: pointer; font-size: 0.9rem;
}
.quiz-option:hover, .quiz-option:focus-visible { border-color: var(--brass); }
.quiz-option.is-selected { border-color: var(--brass); background: rgba(201,162,75,0.14); }
.quiz-actions { display: flex; justify-content: space-between; margin-top: 24px; gap: 10px; flex-wrap: wrap; }
.quiz-progress { font-family: 'Noto Sans JP', sans-serif; font-size: 0.76rem; letter-spacing: 0.06em; color: var(--cream-dim); }
.quiz-state { text-align: center; padding: 40px 20px; color: var(--cream-dim); }
.quiz-state.is-error { color: var(--danger); }
.result-summary { margin-bottom: 30px; padding: 18px 20px; border: 1px solid var(--brass-dim); border-radius: 10px; background: rgba(201,162,75,0.06); }
.result-summary h2 { margin: 0 0 8px; font-size: 1.2rem; }
.packing-group { margin-bottom: 40px; }
.packing-group .lane-head { margin-bottom: 16px; }
.retry-link { display: inline-block; margin-top: 20px; font-size: 0.85rem; }

/* ---- about / privacy ---- */
.about-hero {
  display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-bottom: 30px;
  position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--navy-line); overflow: hidden;
}
.about-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: url('images/bg_night_window.webp'); background-size: cover; background-position: center;
  opacity: 0.5;
}
.about-hero > * { position: relative; z-index: 1; }
.about-portrait { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brass-dim); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--navy-line); padding-block: 34px; margin-top: 60px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; margin-bottom: 14px; }
.footer-links a { color: var(--cream-dim); }
.footer-bottom { font-size: 0.76rem; color: var(--cream-dim); }
.footer-disclosure { font-size: 0.76rem; color: var(--cream-dim); margin-bottom: 14px; max-width: 70ch; }

@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 6px; padding-block: 10px; }
  .header-nav { gap: 10px; font-size: 0.72rem; flex-wrap: wrap; }
  .hero { padding-block: 54px 34px; min-height: 340px; }
  .hold { grid-template-columns: 32px 1fr; }
  .hold-sounding { grid-column: 1 / -1; justify-self: start; }
  .chart-head { flex-direction: column; align-items: flex-start; }
  .about-hero { flex-direction: column; align-items: flex-start; }
  .article-head.article-hero { min-height: 190px; padding: 20px 18px 22px; }
}
