/* Angla ブランドサイト（試作）
   色はアプリのダークテーマとアイコンの4色から取る。新しい色は足さない。 */

:root {
  --abyss: #07101C;      /* アプリ dark surface */
  --hull: #0C1E30;       /* surfaceContainer */
  --hull-hi: #102438;    /* surfaceContainerHigh */
  --line: rgba(141, 180, 205, 0.14);
  --line-strong: rgba(141, 180, 205, 0.28);
  --foam: #E8F3F9;
  --mist: #8DA6B8;
  --cyan: #00D4F0;       /* アイコンの波 / primary */
  --flood: #FF8C00;      /* 満潮・CTA（アプリ secondary） */
  --ebb: #3B8FE0;        /* 干潮 */
  --sun: #FFB700;        /* アイコンの太陽。「いま」の印だけに使う */

  --f-jp: 'M PLUS 1p', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-num: 'Manrope', 'M PLUS 1p', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--f-jp);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--foam); color: var(--abyss); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ── 共通 ─────────────────────────────────────── */
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  display: flex; align-items: center; gap: 10px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; text-decoration: none; border-radius: 999px;
  transition: transform .2s ease, background-color .2s ease;
}
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-flood { background: var(--flood); color: #1B0B00; }
.btn-flood:hover { background: #FF9F2E; transform: translateY(-1px); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store img { height: 48px; width: auto; }
.store { border-radius: 10px; transition: transform .2s ease; }
.store:hover { transform: translateY(-2px); }

.note { font-size: 12.5px; line-height: 1.7; color: var(--mist); margin: 14px 0 0; }
.arrow-link {
  display: inline-block;
  color: var(--cyan); font-weight: 700; text-decoration: none; font-size: 15px;
}
.arrow-link::after { content: '→'; display: inline-block; margin-left: 8px; font-family: var(--f-num); transition: transform .2s ease; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ── ナビ ─────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 16, 28, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-num); font-weight: 800; font-size: 19px; letter-spacing: 0.01em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--mist); transition: color .2s ease; }
.nav-links a:hover { color: var(--foam); }

/* ── ヒーロー ──────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: 100svh;
  max-width: calc(var(--max) + 200px);
  margin: 0 auto;
  padding: 96px var(--gutter) 48px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(255, 183, 0, .6); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255,183,0,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255,183,0,0); } }

.hero-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(44px, 6.4vw, 112px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-feature-settings: 'palt' 1;
}
.hero-lead { margin: 28px 0 32px; max-width: 30em; color: #C4D6E2; font-size: clamp(15px, 1.2vw, 17px); }
.hero-sub { margin: 18px 0 0; font-size: 13.5px; color: var(--mist); }
.hero-sub a { color: var(--foam); text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.hero-sub a:hover { text-decoration-color: var(--cyan); }

/* 海図 */
.chart { margin: 0; }
.chart-stage { position: relative; }
.chart-map {
  position: relative;
  aspect-ratio: 1 / 0.86;
  max-height: 76vh;
  width: 100%;
  touch-action: pan-y;
}
.chart-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.chart-tip {
  position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 12px));
  background: var(--hull-hi); border: 1px solid var(--line-strong);
  padding: 3px 9px; border-radius: 6px; font-size: 12px; white-space: nowrap;
}

.nb { white-space: nowrap; }
.readout {
  position: absolute; top: 0; left: 0;
  width: 236px;
  padding: 16px 18px 14px;
  background: rgba(12, 30, 48, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
}
.readout-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--mist); }
.readout-mode { color: var(--sun); }
.readout-mode.is-scrub { color: var(--mist); }
.readout-port { margin: 10px 0 0; font-weight: 800; font-size: 20px; line-height: 1.3; display: flex; align-items: baseline; gap: 8px; }
.readout-port small { font-size: 12px; font-weight: 500; color: var(--mist); }
.readout-level { margin: 2px 0 0; font-family: var(--f-num); font-weight: 800; font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; }
.readout-level small { font-size: 15px; font-weight: 700; color: var(--mist); margin-right: 8px; }
.readout-trend { font-family: var(--f-jp); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.readout-trend.is-up { color: var(--flood); }
.readout-trend.is-down { color: var(--ebb); }
.readout-next { margin: 6px 0 12px; font-size: 13px; color: #C4D6E2; font-variant-numeric: tabular-nums; min-height: 1.7em; }
.readout-link { font-size: 13px; font-weight: 700; color: var(--cyan); text-decoration: none; }
.readout-link::after { content: ' →'; font-family: var(--f-num); }

.scrub { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.scrub-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--mist); }
.scrub input { flex: 1; accent-color: var(--cyan); height: 28px; }
.scrub-now {
  font: inherit; font-size: 12px; font-weight: 700; color: var(--abyss); background: var(--sun);
  border: 0; border-radius: 999px; padding: 3px 12px; cursor: pointer;
}
.scrub-now[aria-pressed="true"] { opacity: .35; cursor: default; }

.chart-cap { margin-top: 8px; font-size: 12.5px; line-height: 1.75; color: var(--mist); }
.k { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 4px 1px 3px; vertical-align: middle; }
.k-ebb { background: var(--ebb); }
.k-flood { background: var(--flood); }

/* ── セクション ─────────────────────────────────── */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(88px, 12vw, 160px) var(--gutter) 0; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-title { margin: 0; font-weight: 800; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.22; letter-spacing: -0.02em; }
.br-sm { display: none; }

/* 今日の潮 */
.tide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
.tide-panel, .tide-side { background: var(--hull); border: 1px solid var(--line); border-radius: var(--r); }
.tide-panel { padding: 20px 20px 12px; }
.tide-side { padding: 24px; display: flex; flex-direction: column; }
.tide-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.field { display: flex; align-items: center; gap: 10px; }
.field-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--mist); }
.field select {
  font: inherit; font-size: 15px; font-weight: 700; color: var(--foam);
  background: var(--hull-hi); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 8px 36px 8px 12px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.seg { display: inline-flex; background: var(--abyss); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { font: inherit; font-size: 13px; font-weight: 700; color: var(--mist); background: none; border: 0; border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--hull-hi); color: var(--foam); box-shadow: inset 0 0 0 1px var(--line-strong); }

.curve { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--f-num); }
.curve .grid { stroke: var(--line); stroke-width: 1; }
.curve .axis { fill: var(--mist); font-size: 11px; font-family: var(--f-mono); }
.curve .zero { stroke: var(--line-strong); stroke-dasharray: 2 4; }
.curve .line { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linejoin: round; }
.curve .ev-hi { fill: var(--flood); }
.curve .ev-lo { fill: var(--ebb); }
.curve .ev-t { fill: var(--foam); font-size: 13px; font-weight: 800; }
.curve .ev-h { fill: var(--mist); font-size: 11px; font-weight: 700; }
.curve .now-line { stroke: var(--sun); stroke-width: 1; stroke-dasharray: 3 3; }
.curve .now-dot { fill: var(--sun); stroke: var(--abyss); stroke-width: 3; }
.curve .now-t { fill: var(--sun); font-size: 11px; font-family: var(--f-mono); }

.tide-date { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--mist); }
.tide-pill { align-self: flex-start; margin: 10px 0 18px; font-weight: 800; font-size: 15px; padding: 3px 14px; border-radius: 999px; background: rgba(0, 212, 240, .12); color: var(--cyan); }
.events { list-style: none; margin: 0 0 20px; padding: 0; }
.events li { display: grid; grid-template-columns: 3.2em 1fr auto; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.events li:last-child { border-bottom: 1px solid var(--line); }
.ev-kind { font-size: 13px; font-weight: 700; }
.ev-kind.hi { color: var(--flood); }
.ev-kind.lo { color: var(--ebb); }
.ev-time { font-family: var(--f-num); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.ev-cm { font-family: var(--f-num); font-weight: 700; font-size: 14px; color: var(--mist); }
.tide-side .note { margin-top: auto; padding-top: 18px; }

/* 機能（スクロールで画面が切り替わる） */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.story-device { position: relative; }
.phone {
  position: sticky; top: calc(50vh - min(34vh, 330px));
  width: min(100%, 320px); margin: 0 auto;
  aspect-ratio: 506 / 1100; max-height: 68vh;
  border-radius: 44px; padding: 10px;
  background: #0A1826;
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 120px -40px rgba(0, 212, 240, .25);
}
.phone img {
  position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px);
  object-fit: cover; object-position: top; border-radius: 34px;
  opacity: 0; transition: opacity .5s ease;
}
.phone img.is-active { opacity: 1; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 34em; }
.step p { margin: 0; color: #C4D6E2; }
.step .note { color: var(--mist); }
.step-kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--cyan) !important; margin-bottom: 14px !important; }
.step-title { margin: 0 0 20px; font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.step-shot { display: none; }

/* 潮見表 */
.regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.region { background: var(--abyss); padding: 22px 22px 18px; }
.region h3 { margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; }
.region-name { font-size: 17px; font-weight: 800; }
.region-count { font-family: var(--f-num); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; color: var(--cyan); font-variant-numeric: tabular-nums; }
.region-count small { font-family: var(--f-jp); font-size: 12px; font-weight: 700; margin-left: 2px; color: var(--mist); }
.region ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.region a {
  display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none;
  font-size: 13.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
  transition: border-color .2s ease, background-color .2s ease;
}
.region a:hover { border-color: var(--cyan); background: rgba(0, 212, 240, .08); }
.region a span { font-family: var(--f-num); font-size: 11.5px; font-weight: 700; color: var(--mist); }

/* FAQ */
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--f-num); font-size: 22px; color: var(--cyan); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin: -6px 0 22px; color: #C4D6E2; max-width: 44em; }

/* 入手 */
.get { text-align: center; padding: clamp(112px, 14vw, 180px) var(--gutter) clamp(88px, 10vw, 128px); }
.get-icon { margin: 0 auto 28px; border-radius: 26px; box-shadow: 0 30px 80px -24px rgba(0, 212, 240, .35); }
.get-title { margin: 0 0 32px; font-weight: 900; font-size: clamp(30px, 4.6vw, 60px); letter-spacing: -0.03em; line-height: 1.2; }
.stores-center { justify-content: center; }
.stores-center .store img { height: 52px; }

/* フッター */
.footer { border-top: 1px solid var(--line); padding: 36px var(--gutter) 48px; max-width: calc(var(--max) + 2 * 56px); margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; align-items: center; font-size: 13px; color: var(--mist); }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--f-num); font-weight: 800; color: var(--foam); font-size: 16px; }
.footer-brand img { border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-self: end; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--foam); }
.footer-credit, .footer-copy { margin: 0; grid-column: 1 / -1; }
.footer-credit a { color: var(--mist); }

/* ── レスポンシブ ───────────────────────────────── */
@media (max-width: 1080px) {
  .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav { gap: 16px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 104px; gap: 28px; }
  .chart-map { aspect-ratio: 1 / 0.92; max-height: none; }
  .readout { position: relative; top: auto !important; left: auto !important; width: 100% !important; margin-top: 4px; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
  .readout-head, .readout-next, .readout-link { grid-column: 1 / -1; }
  .readout-level { font-size: 36px; }
  .story { grid-template-columns: 1fr; }
  .story-device { display: none; }
  .step { min-height: 0; padding: 0 0 72px; }
  .step-shot { display: block; margin: 0 0 28px; width: min(72%, 280px); }
  .step-shot img {
    width: 100%; height: auto; aspect-ratio: 506 / 720; object-fit: cover; object-position: top;
    border-radius: 26px 26px 0 0; box-shadow: 0 0 0 1px var(--line-strong);
    -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent);
  }
  .br-sm { display: inline; }
}
@media (max-width: 560px) {
  .regions { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
  .store img { height: 44px; }
  .stores-center .store img { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .phone img { transition: none; }
}
