/* ===========================================================================
   金谷城 夏のたび — 旅のしおり
   ---------------------------------------------------------------------------
   デザインの方針（あとで触る人向けのメモ）
   ---------------------------------------------------------------------------
   ・夏休みの昼間、海と山を行き来する一泊二日、というのが主題。
     ページの地の色は「海の水色」と「山の深緑」を交互の帯にしてあり、
     スクロールするとそのまま目的地の色が変わっていく構成にしている
     （どこかの飾りではなく、実際の行き先の色）。
   ・鋸山は石切り場の「段々に削られた岩肌」が名物。その段々の形だけは
     活かし、色を岩のグレーではなく深緑の山肌にしている。
   ・見出しは Zen Maru Gothic。家族アプリ本体（わが家のきろく）と
     同じ書体にして、シリーズ物として繋がりが分かるようにしている
     （地の色と話の主題はイベント用に変えているが、文字は揃えた）。
     本文は同じく Zen Kaku Gothic New。
   ・終始「明るい昼間」で組んでいる。ダークモードは作っていない
     （下のコメント参照）。
   =========================================================================== */

:root {
  /* 海と空 */
  --sky-500: #3fc1e0;
  --sea-700: #157a99;

  /* 山 */
  --forest-700: #1f6b4a;
  --forest-900: #123f2c;

  /* 差し色 — 夏の陽（ポップ） */
  --sun-400: #ffc93c;
  --sun-700: #a56f00;

  /* 注意・警告（アクセントとは別枠） */
  --coral-500: #ff7a59;
  --coral-700: #c14c2c;

  /* 帯（セクションごとの地の色） */
  --band-sky: #eaf7fb;
  --band-mint: #edf6ee;
  --paper: #fdfefd;

  /* 文字 */
  --ink-900: #123b33;
  --ink-600: rgba(18, 59, 51, 0.66);
  --text-on-hero: #ffffff;
  --text-on-hero-muted: rgba(255, 255, 255, 0.86);

  --display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;

  --measure: 34em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.5;
  margin: 0;
  text-wrap: balance;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ===========================================================================
   共通のパーツ
   =========================================================================== */

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sea-700);
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--sun-400);
}
.band-mint .eyebrow {
  color: var(--forest-700);
}

/* 「まだ決まっていません」と一目で分かる差し込み欄 */
.fill {
  display: inline;
  color: var(--coral-700);
  font-style: italic;
  border-bottom: 2px dashed var(--coral-500);
  padding-bottom: 1px;
}

.section {
  padding: 72px 0;
}
.band-sky {
  background: var(--band-sky);
}
.band-mint {
  background: var(--band-mint);
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(24px, 4.4vw, 32px);
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 10px;
}
.inline-icon {
  flex: none;
  color: var(--sea-700);
}
.band-mint .inline-icon {
  color: var(--forest-700);
}
.section-head p {
  color: var(--ink-600);
  font-size: 14.5px;
  max-width: var(--measure);
}

/* ===========================================================================
   ヘッダー
   =========================================================================== */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--sun-400);
  font-size: 13px;
}
.top a {
  text-decoration: none;
  color: var(--ink-600);
}
.top a:hover {
  color: var(--sea-700);
}
.top .brand {
  font-family: var(--display);
  color: var(--sea-700);
  font-size: 15px;
}
.top .dates {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--forest-700);
  font-weight: 700;
}

/* ===========================================================================
   ヒーロー — 明るい海の空と、深緑の山のテラス
   =========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 0;
  background: linear-gradient(180deg, #bdeeff 0%, var(--sky-500) 38%, var(--sea-700) 100%);
  overflow: hidden;
}

.sun {
  position: absolute;
  top: 64px;
  right: 8%;
  z-index: 1;
  opacity: 0.9;
}
.sun circle {
  fill: var(--sun-400);
}
.sun .ray {
  stroke: var(--sun-400);
  stroke-width: 4;
  stroke-linecap: round;
  transform-origin: center;
  animation: spin 40s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sun .ray {
    animation: none;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 240px;
}

.hero .eyebrow {
  justify-content: center;
  margin-bottom: 22px;
  color: var(--text-on-hero);
}
.hero .eyebrow::before {
  background: var(--sun-400);
}

.hero h1 {
  font-size: clamp(32px, 7.5vw, 54px);
  letter-spacing: 0.02em;
  color: var(--text-on-hero);
  text-shadow: 0 3px 20px rgba(18, 59, 51, 0.18);
}
.hero h1 small {
  display: block;
  font-size: 0.4em;
  color: var(--text-on-hero-muted);
  letter-spacing: 0.16em;
  margin-bottom: 0.8em;
  font-family: var(--sans);
  font-weight: 700;
}

.hero-dates {
  margin-top: 26px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text-on-hero-muted);
  font-variant-numeric: tabular-nums;
}
.hero-dates b {
  color: var(--sun-400);
  font-weight: 700;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-on-hero-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll .line {
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--sun-400), transparent);
  animation: scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll .line {
    animation: none;
    opacity: 0.6;
  }
}

/* 石切り場の段々（テラス）シルエット。鋸山の形をそのまま、色だけ深緑の山肌に */
.strata {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42vh;
  min-height: 240px;
  z-index: 1;
}
.strata svg {
  position: absolute;
  bottom: -2px;
  width: 100%;
  height: 100%;
}
.strata .outline {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw 1.6s ease-out forwards;
}
.strata .layer2 .outline {
  animation-delay: 0.15s;
}
.strata .layer3 .outline {
  animation-delay: 0.3s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .strata .outline {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* ===========================================================================
   概要ストリップ（集合・解散・宿泊・天気）— カラフルな札
   =========================================================================== */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 28px 24px;
  max-width: 880px;
  margin: -70px auto 0;
  position: relative;
  z-index: 3;
}
.fact {
  background: var(--paper);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(18, 59, 51, 0.12);
  border-bottom: 4px solid var(--sky-500);
}
.fact:nth-child(2) {
  border-bottom-color: var(--forest-700);
}
.fact:nth-child(3) {
  border-bottom-color: var(--sun-400);
}
.fact:nth-child(4) {
  border-bottom-color: var(--coral-500);
}
.fact .k {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-600);
  text-transform: uppercase;
}
.fact .v {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 17px;
  color: var(--ink-900);
}
/* 晴れと雨で時刻が変わる項目に添える一行 */
.fact-note {
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-600);
  letter-spacing: 0;
}

/* ===========================================================================
   旅程のタブ（晴れ／雨）
   ---------------------------------------------------------------------------
   JavaScript が使えない環境では両方の旅程が縦に並んで見える。
   .tabs.js-ready が付いて初めて「選択中以外を隠す」挙動になるので、
   情報そのものは常に読める。
   =========================================================================== */

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--sea-700);
  border-radius: 999px;
  background: transparent;
  color: var(--sea-700);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab:hover {
  background: rgba(21, 122, 153, 0.08);
}
.tab.is-active {
  background: var(--sea-700);
  color: #fff;
}
.tab:focus-visible {
  outline: 3px solid var(--sun-400);
  outline-offset: 2px;
}

/* JS が動く場合だけ、選択中でないパネルを隠す */
.tabs.js-ready ~ .panel-tab {
  display: none;
}
.tabs.js-ready ~ .panel-tab.is-active {
  display: block;
}

/* ===========================================================================
   旅程（縦の1本線に予定を吊るす、遠足のしおり風）
   =========================================================================== */

.day-block + .day-block {
  margin-top: 56px;
}
.day-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 26px;
}
.day-label .num {
  font-family: var(--display);
  font-size: 40px;
  color: var(--sun-700);
  line-height: 1;
}
.day-label .txt h3 {
  font-size: 19px;
  color: var(--ink-900);
}
.day-label .txt span {
  font-size: 13px;
  color: var(--ink-600);
  font-variant-numeric: tabular-nums;
}

.log {
  position: relative;
  padding-left: 28px;
  border-left: 3px dotted var(--sea-700);
  display: grid;
  gap: 24px;
}
.band-mint .log {
  border-left-color: var(--forest-700);
}
.log-entry {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
}
.log-entry::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sun-400);
  box-shadow: 0 0 0 3px var(--paper);
}
.log-time {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  color: var(--sea-700);
  padding-top: 1px;
}
.band-mint .log-time {
  color: var(--forest-700);
}
.log-body b {
  display: block;
  font-family: var(--display);
  font-size: 16.5px;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.log-body p {
  font-size: 14px;
  color: var(--ink-600);
}
.log-body p a {
  color: var(--sea-700);
  text-decoration: underline;
  font-weight: 700;
}
.band-mint .log-body p a {
  color: var(--forest-700);
}

/* ===========================================================================
   宿泊とアクセス（回数券・チケットの見た目）
   =========================================================================== */

.ticket {
  background: var(--paper);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: 0 14px 32px rgba(18, 59, 51, 0.14);
  position: relative;
}
.ticket::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(31, 107, 74, 0.25);
  border-radius: 14px;
  pointer-events: none;
}
.ticket h3 {
  font-size: 22px;
  color: var(--forest-700);
}
.ticket .addr {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-600);
}
.ticket-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.ticket-grid dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea-700);
  margin: 0 0 6px;
}
.ticket-grid dd {
  margin: 0;
  font-size: 14.5px;
}

.map-slot {
  margin-top: 24px;
  aspect-ratio: 16 / 8;
  border: 2px dashed var(--sky-500);
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-600);
  font-size: 13px;
  gap: 6px;
  background: repeating-linear-gradient(135deg, var(--band-sky) 0px, var(--band-sky) 10px, transparent 10px, transparent 20px);
}
.map-slot span {
  font-family: var(--display);
  color: var(--sea-700);
  font-size: 15px;
}
.map-slot a {
  color: var(--sea-700);
  text-decoration: underline;
  font-weight: 700;
}

/* ===========================================================================
   持ち物チェックリスト
   =========================================================================== */

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.pack-group h3 {
  font-size: 16px;
  color: var(--forest-700);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(31, 107, 74, 0.16);
}
.pack-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pack-group li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
}
.pack-group li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 2px solid var(--sea-700);
  border-radius: 5px;
}

/* ===========================================================================
   読み物（鋸山の話）
   本文なので、他より1行の長さを短く保って読みやすさを優先している
   =========================================================================== */

.story {
  max-width: 38em;
  display: grid;
  gap: 22px;
}
.story p {
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink-900);
}
.story strong {
  font-weight: 700;
  background: linear-gradient(transparent 62%, rgba(255, 201, 60, 0.5) 62%);
}
.story-note {
  font-size: 13px !important;
  color: var(--ink-600) !important;
  padding-top: 6px;
  border-top: 2px dotted rgba(31, 107, 74, 0.3);
}

/* ===========================================================================
   知っておきたいこと
   =========================================================================== */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.note-card {
  padding: 22px 20px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(18, 59, 51, 0.08);
}
.note-card h3 {
  font-size: 15px;
  color: var(--sea-700);
  margin-bottom: 10px;
}
.note-card.warn h3 {
  color: var(--coral-700);
}
.note-card p {
  font-size: 13.5px;
  color: var(--ink-600);
  line-height: 1.85;
}
.note-card p a {
  color: var(--sea-700);
  text-decoration: underline;
  text-decoration-color: rgba(21, 122, 153, 0.4);
}
.band-mint .note-card p a {
  color: var(--forest-700);
  text-decoration-color: rgba(31, 107, 74, 0.4);
}

.tide-grid {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: var(--band-sky);
  border-radius: 10px;
  display: grid;
  gap: 6px;
}
.tide-grid dt {
  font-size: 11px;
  font-weight: 700;
  color: var(--sea-700);
  margin: 0;
  display: inline;
}
.tide-grid dd {
  margin: 0 0 0 6px;
  display: inline;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-900);
}
.tide-note {
  margin-top: 10px;
  font-size: 12px;
}

/* 電話番号。スマホではタップでそのまま発信できる */
.tel {
  display: inline-block;
  margin-top: 6px;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--coral-700) !important;
  text-decoration: none !important;
  letter-spacing: 0.02em;
}

/* 宿泊カードの補足行 */
.dd-note {
  font-size: 12px;
  color: var(--ink-600);
}
.ticket-grid dd a {
  color: var(--sea-700);
  font-weight: 700;
  text-decoration: underline;
}
.addr a {
  color: var(--sea-700);
  font-weight: 700;
}

/* ===========================================================================
   フッター
   =========================================================================== */

.foot {
  padding: 56px 24px 60px;
  text-align: center;
  background: var(--paper);
}
.foot-lede {
  font-size: 13.5px;
  color: var(--ink-600);
  margin-bottom: 20px;
}
.foot-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.foot-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px;
  border-radius: 16px;
  border: 2px solid var(--sky-500);
  color: var(--sea-700);
  text-decoration: none;
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 700;
}
.foot-links a:nth-child(2) {
  border-color: var(--forest-700);
  color: var(--forest-700);
}
.foot-links a:nth-child(3) {
  border-color: var(--sun-700);
  color: var(--sun-700);
}
.foot-links a:hover {
  background: var(--band-sky);
}
.foot .meta {
  margin-top: 26px;
  font-size: 11.5px;
  color: var(--ink-600);
}

@media (max-width: 420px) {
  .foot-links {
    grid-template-columns: 1fr;
  }
  .foot-links a {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 14px 16px;
  }
}

@media (min-width: 640px) {
  .section {
    padding: 96px 0;
  }
}
