/* 旅のしおり 共通スタイル
   2026-09-02 第3版: スマホで見る小さなサイト。固定ヘッダー + 横スクロールのメニュー。
   守っている基準: 本文16px以上 / 日本語行間1.8 / タップ44px以上 / コントラスト4.5:1以上 */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@500;700&family=Cormorant+Garamond:ital,wght@0,600;1,600&display=swap");

:root {
  --purple: #3d1360;
  --purple-deep: #250a3f;
  --magenta: #b31e63;
  --gold: #c99320;
  --gold-soft: #f0d79a;

  --bg: #fbf6f9;
  --paper: #ffffff;
  --ink: #1d1230;
  --ink-sub: #5b4a6e;
  --line: #e7dced;
  --line-soft: #f1eaf3;
  --red: #a3243a;

  --shadow: 0 2px 10px rgba(61, 19, 96, 0.07);
  --grad: linear-gradient(150deg, #3d1360 0%, #b31e63 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

img { max-width: 100%; }
a { color: var(--magenta); }

/* ── ヘッダー ─────────────────────────────── */
.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--purple-deep);
  color: #ffffff;
}
.site .top {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 14px;
  max-width: 640px;
  margin: 0 auto;
}
.site .logo {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #ffffff;
  text-decoration: none;
}
.site .logo .mk { width: 26px; height: 26px; flex: 0 0 auto; fill: #f0d79a; }
.site .logo .nm {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.site .ticket {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 9999px;
  background: #f0d79a;
  color: #250a3f;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site .ticket svg { width: 17px; height: 17px; }
.site .ticket:active { background: #e3c377; }

.site .nav {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--purple);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site .nav::-webkit-scrollbar { display: none; }
.site .nav ul {
  display: flex;
  gap: 2px;
  margin: 0 auto;
  padding: 0 8px;
  max-width: 640px;
  list-style: none;
}
.site .nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.93rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.site .nav a.on {
  color: #ffffff;
  font-weight: 700;
  border-bottom-color: #f0d79a;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 26px 16px 64px; }

/* ── 見出し ───────────────────────────────── */
.eyebrow {
  display: block;
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--magenta);
}
h1 {
  margin: 0 0 12px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--purple);
}
h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 42px 0 16px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--purple);
}
h2 .mk { width: 17px; height: 17px; flex: 0 0 auto; fill: #c99320; }
h2 .ln { flex: 1 1 auto; height: 1px; background: var(--line); }
.lead { margin: 0 0 26px; color: var(--ink-sub); font-size: 1rem; }

/* ── トップの表紙 ───────────────────────── */
.cover {
  position: relative;
  margin: -26px -16px 26px;
  padding: 40px 22px 34px;
  background: var(--grad);
  color: #ffffff;
  overflow: hidden;
  text-align: center;
}
.cover .glow {
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 80%;
  background: radial-gradient(50% 60% at 50% 40%, rgba(240, 215, 154, 0.34) 0%, rgba(240, 215, 154, 0) 72%);
}
.cover .mk-bg { position: absolute; fill: rgba(255, 255, 255, 0.07); }
.cover .b1 { width: 88px; top: 14px; left: -18px; }
.cover .b2 { width: 54px; bottom: 18px; right: -10px; }
.cover .b3 { width: 30px; top: 66px; right: 32px; }
.cover .castle { position: relative; display: block; width: 92px; margin: 0 auto 14px; }
.cover .place {
  position: relative;
  display: block;
  font-family: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: 0.24em;
  color: #f0d79a;
}
.cover h1 {
  position: relative;
  margin: 6px 0 14px;
  color: #ffffff;
  font-size: 1.95rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
}
.cover .when {
  position: relative;
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 9999px;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.cover .who {
  position: relative;
  display: block;
  margin-top: 14px;
  font-size: 0.96rem;
  color: #efe2f4;
}
.cover .left {
  position: relative;
  display: block;
  margin-top: 4px;
  font-size: 0.94rem;
  color: #f0d79a;
}

/* ── きっぷの帯 ───────────────────────────── */
.ticket-band {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}
.ticket-band .ic { flex: 0 0 auto; width: 34px; height: 34px; color: var(--purple); }
.ticket-band .t { display: block; font-weight: 700; font-size: 1.06rem; line-height: 1.6; }
.ticket-band .s { display: block; color: var(--ink-sub); font-size: 0.93rem; line-height: 1.7; }
.ticket-band .go { margin-left: auto; color: var(--magenta); font-size: 1.3rem; }

/* ── 日程の横スクロール ───────────────────── */
.days {
  display: flex;
  gap: 12px;
  margin: 0 -16px;
  padding: 2px 16px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.days::-webkit-scrollbar { display: none; }
.days a {
  flex: 0 0 62%;
  min-width: 190px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}
.days .d {
  display: block;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--magenta);
}
.days .w { display: block; margin-bottom: 8px; color: var(--ink-sub); font-size: 0.88rem; letter-spacing: 0.08em; }
.days .t { display: block; font-weight: 700; line-height: 1.6; }
.days .s { display: block; margin-top: 2px; color: var(--ink-sub); font-size: 0.9rem; line-height: 1.7; }

/* ── 情報リンク(2列) ─────────────────────── */
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.links a {
  display: block;
  min-height: 44px;
  padding: 14px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.links .ic { display: block; width: 22px; height: 22px; margin-bottom: 7px; color: var(--purple); }
.links .t { display: block; font-weight: 700; font-size: 0.99rem; line-height: 1.6; }
.links .s { display: block; color: var(--ink-sub); font-size: 0.88rem; line-height: 1.7; }

/* ── カード・表 ───────────────────────────── */
.card {
  margin: 0 0 18px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 12px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--purple);
}
.rows { display: grid; gap: 1px; background: var(--line-soft); border-radius: 8px; overflow: hidden; }
.row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 11px 12px; background: var(--paper); }
.row .k { color: var(--ink-sub); font-size: 0.9rem; }
.row .v { font-size: 0.99rem; line-height: 1.75; font-variant-numeric: tabular-nums; }
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 9px;
  border-radius: 9999px;
  background: #eaf3ee;
  color: #1f6b4a;
  font-size: 0.88rem;
  font-weight: 700;
  vertical-align: 1px;
}

/* ── 時間割 ───────────────────────────────── */
.tl { margin: 0; padding: 0 0 0 4px; list-style: none; }
.tl li {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 9px 0 9px 20px;
  border-left: 1px solid var(--line);
}
.tl li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 20px;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--line);
}
.tl li.key::before { background: var(--magenta); width: 11px; height: 11px; left: -6px; }
.tl li.key { background: linear-gradient(90deg, rgba(179, 30, 99, 0.05) 0%, rgba(179, 30, 99, 0) 100%); }
.tl .time {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
}
.tl li.key .time { color: var(--magenta); font-weight: 600; }
.tl li:last-child { border-left-color: transparent; }

/* ── 注意・メモ ───────────────────────────── */
.warn {
  margin: 0 0 22px;
  padding: 15px 16px;
  border: 1px solid #f0d3d9;
  border-left: 5px solid var(--red);
  border-radius: 16px;
  background: #fdf5f6;
}
.warn .wt { display: block; margin-bottom: 4px; font-weight: 700; color: var(--red); }
.warn ul { margin: 0; padding-left: 20px; }
.warn li { margin: 4px 0; }
.note {
  margin: 0 0 22px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 16px;
  background: #fffaf0;
  font-size: 0.98rem;
}

/* ── チェックリスト ───────────────────────── */
.check { margin: 0; padding: 0; list-style: none; }
.check li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px solid var(--line-soft);
}
.check li:last-child { border-bottom: none; }
.check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.check li.done { color: var(--ink-sub); }
.check li.done::before {
  content: "✓";
  display: grid;
  place-items: center;
  border-color: #1f6b4a;
  background: #1f6b4a;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.3;
}

/* ── きっぷ(QR) ─────────────────────────── */
.qr-card {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.qr-head { padding: 14px 16px; background: var(--grad); color: #ffffff; }
.qr-head .lbl {
  display: block;
  font-family: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #f0d79a;
}
.qr-head .ttl { display: block; font-weight: 700; font-size: 1.1rem; line-height: 1.6; }
.qr-body { padding: 20px 16px 16px; text-align: center; }
.qr-body img {
  width: 210px;
  max-width: 78%;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.qr-cut { position: relative; height: 1px; margin: 18px -16px; border-top: 1px dashed var(--line); }
.qr-cut::before, .qr-cut::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: var(--bg);
}
.qr-cut::before { left: -9px; }
.qr-cut::after { right: -9px; }
.qr-no {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--purple);
}
.qr-no-lbl { margin: 0 0 14px; color: var(--ink-sub); font-size: 0.88rem; letter-spacing: 0.12em; }
.qr-body .rows { text-align: left; }

/* ── ボタン ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--grad);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.btn.sub { background: var(--paper); border: 1px solid var(--line); color: var(--purple); }
.pager { display: flex; gap: 10px; margin: 26px 0 0; }
.pager .btn { flex: 1 1 0; }

/* ── 表(料金) ───────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.tbl th, .tbl td { padding: 11px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.tbl th { color: var(--ink-sub); font-weight: 500; font-size: 0.88rem; }
.tbl td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tr.sum td { border-top: 2px solid var(--purple); border-bottom: none; font-weight: 700; color: var(--purple); }
.bar-row { display: grid; grid-template-columns: 100px 1fr 78px; align-items: center; gap: 10px; padding: 7px 0; font-size: 0.93rem; }
.bar-row .bl { height: 9px; border-radius: 9999px; background: var(--grad); }
.bar-row .pc { text-align: right; color: var(--ink-sub); font-size: 0.88rem; }
.big-num {
  display: block;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--magenta);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* ── フッター ─────────────────────────────── */
.foot {
  margin: 44px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-sub);
  font-size: 0.88rem;
  text-align: center;
  letter-spacing: 0.06em;
}
.foot .mk { display: block; width: 18px; height: 18px; margin: 0 auto 8px; fill: #e7dced; }

@media (min-width: 520px) {
  .links { grid-template-columns: repeat(3, 1fr); }
  .days a { flex-basis: 46%; }
}
