:root {
  --navy: #223a70;
  --navy-deep: #18284f;
  --orange: #ed7700;
  --orange-soft: #f6a650;
  --kinari: #f2ece8;
  --kinari-deep: #e8dfd8;
  --ink: #1f2328;
  --sub: #555a63;
  --rule: #c9c1ba;

  --rail: 14px;
  --indent: 40px;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --figure: "Barlow", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 60px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--gothic);
  font-weight: 500;
  font-feature-settings: "palt" 0;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
a { color: var(--navy); }
a:focus-visible, input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
time, .t-stub strong, .day-no { font-family: var(--figure); font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }

.wrap { width: 100%; max-width: 1040px; margin-inline: auto; padding-inline: 16px; }

/* ヘッダー */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--kinari-deep); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bar-name { display: flex; align-items: center; min-height: 48px; color: var(--navy); font-family: var(--mincho); font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.bar nav { display: flex; }
.bar nav a { display: grid; place-items: center; min-width: 50px; min-height: 48px; padding: 0 6px; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }

/* ===== 引換券ゲート ===== */
.gate { display: none; }
.gated .gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px 16px; background: var(--kinari);
  transition: opacity 1s ease 1.5s, visibility 0s linear 2.6s;
}
.gate-inner { width: 100%; max-width: 640px; text-align: center; }
.gate-for { color: var(--orange); font-size: 15px; font-weight: 700; letter-spacing: .1em; }
.gate-ticket {
  position: relative; display: block; width: 100%; margin: 18px 0 0; padding: 0;
  background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 10px 18px rgba(34,58,112,.16));
  animation: nudge 2.8s ease-in-out 1.2s infinite;
}
.gate-ticket:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; }
.half { width: 100%; transition: transform .45s ease, opacity .8s ease; transform-origin: 72% 50%; }
.half-stub { position: absolute; inset: 0; transform-origin: 72% 0%; }
.gate-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 4px; color: var(--navy); border-bottom: 1px dashed var(--navy); font-size: 15px; font-weight: 700; cursor: pointer; }
.gate-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.gate-hint .click { display: none; }
.gate-by { margin-top: 28px; color: var(--sub); font-size: 13px; font-weight: 700; letter-spacing: .08em; }

@keyframes nudge { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-.8deg); } 94% { transform: rotate(.6deg); } }

.gate.torn { opacity: 0; visibility: hidden; }
.gate.torn .gate-ticket { animation: none; }
.gate.torn .half { transition: transform 1.7s cubic-bezier(.45,0,.25,1), opacity .9s ease .9s; }
.gate.torn .half-stub { transform: translate(14%, 38%) rotate(18deg); opacity: 0; }
.gate.torn .half-main { transform: translate(-3%, -2%) rotate(-2deg) scale(.98); }
.gate.torn .gate-hint, .gate.torn .gate-for, .gate.torn .gate-by { opacity: 0; transition: opacity .5s; }

/* PC：カーソルを載せると、半券が少しめくれる */
@media (hover: hover) and (pointer: fine) {
  .gate-ticket:hover { animation: none; }
  .gate:not(.torn) .gate-ticket:hover .half-stub { transform: translate(1.2%, 2.5%) rotate(4deg); }
  .gate:not(.torn) .gate-ticket:hover .half-main { transform: translateY(-1%) rotate(-.6deg); }
  .gate-ticket:hover + .gate-hint { border-bottom-style: solid; }
  .gate-hint .touch { display: none; }
  .gate-hint .click { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .gated .gate { transition: opacity .3s; }
  .half, .gate-ticket { transition: none; animation: none; }
}

/* ===== 表紙 ===== */
.hero { background: var(--kinari); }
.hero-inner { display: flex; flex-direction: column; padding-top: 26px; padding-bottom: 30px; }
.hero-print { position: relative; order: -1; width: 80%; max-width: 400px; margin: 4px 4px 26px auto; transform: rotate(2deg); }
.hero-stub { position: absolute; left: -26px; bottom: -22px; width: 54px; transform: rotate(-14deg); filter: drop-shadow(0 4px 8px rgba(34,58,112,.2)); }
.hero h1:focus { outline: none; }
.hero-for { color: var(--orange); font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.title { font-feature-settings: "palt" 1; margin-top: 10px; color: var(--navy); font-family: var(--mincho); font-weight: 800; line-height: 1.2; }
.ttl-lead { display: block; font-size: 19px; font-weight: 600; letter-spacing: .22em; }
.ttl-main { display: block; margin-top: 6px; font-size: min(42px, calc(11.8vw - 5px)); letter-spacing: .02em; }
.ttl-sub { display: inline-block; margin-left: .25em; font-size: .62em; letter-spacing: .06em; }
.hero-date { margin-top: 20px; font-size: 18px; font-weight: 700; line-height: 1.6; }
.hero-date span { white-space: nowrap; }
.hero-stay { font-size: 16px; color: var(--sub); font-weight: 700; }
.hero-by { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--navy); font-size: 14px; font-weight: 700; letter-spacing: .06em; }

/* 行程図 */
.routemap { background: var(--navy); color: #fff; }
.routemap-list { display: flex; list-style: none; padding-top: 18px; padding-bottom: 16px; }
.routemap-list li { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 20px; text-align: center; }
.routemap-list li::before { content: ""; position: absolute; top: 5px; left: 50%; width: 12px; height: 12px; margin-left: -6px; background: var(--navy); border: 2px solid #fff; border-radius: 50%; z-index: 1; }
.routemap-list li + li::after { content: ""; position: absolute; top: 10px; right: 50%; width: 100%; height: 2px; background: rgba(255,255,255,.55); }
.routemap-list .stay-pt::before { background: var(--orange); border-color: var(--orange); }
.routemap-list span { font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.routemap-list small { padding: 0 6px; color: var(--navy); background: var(--orange-soft); font-size: 12px; font-weight: 700; line-height: 1.5; }

/* ===== 旅程 ===== */
.course { padding: 36px 0 56px; background: var(--kinari); }
.line { position: relative; list-style: none; padding-left: var(--indent); }
.line::before { content: ""; position: absolute; top: 0; bottom: 30px; left: calc(var(--rail) - 1px); width: 2px; background: var(--navy); }
.line > li { position: relative; }

/* 日付 */
.day { margin-left: calc(-1 * var(--indent)); }
.day + li { margin-top: 24px; }
#day2 { margin-top: 56px; }
.day-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 18px; color: #fff; background: var(--navy); }
.day-no { font-size: 46px; font-weight: 700; line-height: 1; white-space: nowrap; }
.day-no span { margin-left: 2px; font-family: var(--mincho); font-weight: 800; font-size: 18px; }
.day-date { font-size: 17px; font-weight: 700; line-height: 1.5; }
.day-route { font-size: 14px; line-height: 1.5; opacity: .82; }

/* 移動（チケット型） */
.leg { margin: 22px 0; }
.leg::before { content: ""; position: absolute; top: 22px; left: calc(var(--rail) - var(--indent) + 1px); border: 7px solid transparent; border-left: 9px solid var(--navy); border-right: 0; }
.ticket { display: flex; background: #fff; border-top: 3px solid var(--navy); }
.t-main { flex: 1 1 auto; min-width: 0; padding: 12px 14px 14px; }
.t-kind { display: flex; align-items: center; gap: 6px; color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.4; }
.t-kind svg { width: 22px; height: 20px; fill: var(--navy); flex: none; }
.t-route { display: grid; grid-template-columns: auto minmax(20px, 1fr) auto; align-items: center; gap: 10px; margin-top: 8px; }
.t-pt { display: flex; flex-direction: column; line-height: 1.25; }
.t-pt:last-child { text-align: right; align-items: flex-end; }
.t-pt time, .t-word { color: var(--navy); font-size: 29px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.t-word { font-size: 17px; padding: 5px 0 6px; }
.t-pt time small { margin-left: 1px; font-size: 13px; }
.t-pt > span:last-child { margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--ink); }
.t-plain .t-word { font-size: 19px; color: var(--ink); }
.t-plain .t-arrow { margin-bottom: 0; }
.t-arrow { position: relative; height: 2px; background: var(--navy); margin-bottom: 18px; }
.t-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 8px solid var(--navy); border-right: 0; }
.t-note { margin-top: 8px; padding-top: 8px; border-top: 1px dotted var(--rule); color: var(--sub); font-size: 15px; line-height: 1.6; }
.t-stub {
  position: relative; flex: 0 0 92px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0;
  padding: 10px 6px; color: #fff; background: var(--navy);
  text-align: center; line-height: 1.35;
}
.t-stub::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: -1px; border-left: 2px dashed #fff; opacity: .7; }
.t-stub span { font-size: 13px; opacity: .8; }
.t-stub strong { font-size: 17px; white-space: nowrap; }

.tbd { display: inline-block; margin-top: 8px; padding: 1px 8px; color: var(--sub); border: 1px dashed var(--sub); font-size: 14px; font-weight: 700; line-height: 1.6; }

/* 行（宿の朝） */
.row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; margin: 24px 0; }
.row::before { content: ""; position: absolute; top: 9px; left: calc(var(--rail) - var(--indent) - 6px); width: 12px; height: 12px; background: var(--kinari); border: 2px solid var(--navy); border-radius: 50%; }
.row .at { color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1.5; }
.row h3 { font-size: 18px; line-height: 1.5; }
.row p { color: var(--sub); font-size: 16px; }

/* 立ち寄り先 */
.num {
  position: absolute; z-index: 2; top: 14px; left: calc(var(--rail) - var(--indent) - 15px);
  width: 30px; height: 30px; display: grid; place-items: center;
  color: #fff; background: var(--navy); border: 2px solid var(--kinari); border-radius: 50%;
  font-size: 15px; font-weight: 700; line-height: 1;
}
.spot { margin: 22px 0; background: #fff; }
.spot-photo { display: block; overflow: hidden; background: var(--kinari-deep); }
.spot-photo a { display: block; }
.spot-photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.spot-text { padding: 14px 16px 18px; }
.spot-when { color: var(--orange); font-size: 16px; font-weight: 700; line-height: 1.5; }
.spot h3, .inn h3 { font-family: var(--mincho); font-weight: 800; letter-spacing: .03em; }
.spot h3 { margin-top: 2px; color: var(--navy); font-size: 22px; line-height: 1.45; }
.spot-sub { margin-top: 2px; font-size: 16px; font-weight: 700; }

.links { display: grid; gap: 8px; margin-top: 14px; }
.btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 10px 14px;
  color: #fff; background: var(--navy); border: 2px solid var(--navy);
  font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none;
}
.btn.ghost { color: var(--navy); background: #fff; }
.btn.light { color: var(--navy); background: #fff; border-color: #fff; }
.btn.light-ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.7); }
.btn:hover { filter: brightness(.94); }
.ext { font-size: 14px; }

/* 馬術場の写真2枚 */
.spot-horse { display: flex; flex-direction: column; }
.spot-horse .duo { display: flex; gap: 6px; order: -1; padding: 16px 16px 0 22px; }
.duo img { flex: 1 1 0; min-width: 0; aspect-ratio: 260 / 190; object-fit: cover; }
.spot-horse .spot-text { padding-bottom: 14px; }

/* 昼食（写真なし） */
.row.meal .at { font-size: 16px; padding-top: 2px; }

/* 持ち物 */
.bring { margin-top: 14px; padding: 6px 14px 8px; border: 1px solid var(--rule); background: var(--kinari); }
.bring legend { padding: 0 6px; margin-left: -6px; color: var(--navy); font-size: 15px; font-weight: 700; background: #fff; }
.bring label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 700; cursor: pointer; }
.bring label + label { border-top: 1px dotted var(--rule); }
.bring input { width: 22px; height: 22px; margin: 0; accent-color: var(--navy); flex: none; }
.bring label:has(input:checked) { color: var(--sub); text-decoration: line-through; text-decoration-thickness: 1px; }

/* 宿 */
.inn { margin: 22px 0; color: #fff; background: var(--navy-deep); }
.inn .num { background: var(--orange); }
.inn-photo { display: block; }
.inn-photo img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.inn-body { padding: 16px 16px 20px; }
.inn .spot-when { color: var(--orange-soft); font-size: 16px; font-weight: 700; }
.inn h3 { margin-top: 2px; font-size: 21px; line-height: 1.45; }
.inn-plan { list-style: none; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.22); }
.inn-plan li { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.22); font-size: 16px; line-height: 1.6; }
.inn-plan .at { color: var(--orange-soft); font-weight: 700; white-space: nowrap; }
.inn-plan .at time { font-size: 18px; }
.inn-plan .at small { font-size: 12px; }
.inn .links { margin-top: 16px; }

/* 父との写真（旅程とは別の「思い出」として、プリント写真風に） */
.print { display: block; padding: 6px; background: #fff; box-shadow: 0 8px 18px rgba(60,40,20,.18); filter: saturate(.92) sepia(.06); }
.memory { position: relative; margin: 20px 0 26px; }
.memory::before {
  content: ""; position: absolute; z-index: 2; top: -9px; width: 62px; height: 20px;
  background: rgba(214, 198, 180, .78); transform: rotate(-4deg);
}
.memory-pair { display: flex; justify-content: flex-end; align-items: flex-start; padding-right: 6px; }
.memory-pair::before { left: 34%; }
.memory-pair .print:first-child { position: relative; z-index: 1; width: 46%; transform: rotate(-3deg); }
.memory-pair .print:last-child { width: 52%; margin: 26px 0 0 -6%; transform: rotate(2.5deg); }
.memory-pair { max-width: 420px; margin-left: auto; }
.memory-one { width: 62%; max-width: 340px; margin-left: auto; transform: rotate(2deg); }
.memory-one::before { left: 50%; margin-left: -31px; }

/* 到着 */
.goal { margin-left: calc(-1 * var(--indent)); margin-top: 26px; }
.goal p { position: relative; z-index: 1; display: inline-flex; align-items: baseline; gap: 12px; padding: 12px 22px 12px 18px; color: #fff; background: var(--navy); font-weight: 700; }
.goal time { font-size: 31px; line-height: 1.2; }
.goal span { font-family: var(--mincho); font-weight: 800; font-size: 22px; }

/* フッター */
.foot { padding: 24px 0 28px; color: #fff; background: var(--navy); }
.foot-inner { display: grid; gap: 6px; }
.foot-provider { font-size: 15px; font-weight: 700; }
.foot-credit { font-size: 13px; opacity: .78; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a, .replay { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: #fff; background: none; border: 0; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ===== PC ===== */
@media (min-width: 760px) {
  :root { --rail: 22px; --indent: 72px; }
  body { font-size: 17px; }
  .wrap { padding-inline: 32px; }
  .bar-name { font-size: 17px; }

  .hero-inner { padding-top: 40px; padding-bottom: 48px; }
  .ttl-lead { font-size: 24px; }
  .ttl-main { margin-top: 10px; font-size: 60px; white-space: nowrap; }
  .hero-date { font-size: 20px; }
  .gate-for { font-size: 17px; }
  .hero-stay { font-size: 17px; }

  .routemap-list { padding-top: 22px; padding-bottom: 20px; }
  .routemap-list span { font-size: 16px; }

  .course { padding: 56px 0 72px; }
  .day-head { padding: 16px 28px 16px 30px; gap: 24px; }
  .day-no { font-size: 56px; }
  .day-date { font-size: 19px; }
  .day-route { font-size: 15px; }
  .day + li { margin-top: 32px; }
  #day2 { margin-top: 72px; }

  .leg { margin: 28px 0; max-width: 600px; }
  .leg::before { top: 30px; }
  .t-main { padding: 14px 22px 16px; }
  .t-pt time { font-size: 36px; }
  .t-stub { flex-basis: 120px; }

  .spot { display: grid; grid-template-columns: 36% minmax(0, 1fr); margin: 32px 0; }
  .spot .num, .inn .num { top: 20px; left: calc(var(--rail) - var(--indent) - 20px); width: 40px; height: 40px; font-size: 18px; border-width: 3px; }
  .spot-photo, .spot-photo a { height: 100%; }
  .spot-photo img { height: 100%; min-height: 190px; aspect-ratio: auto; }
  .spot-text { padding: 22px 28px 26px; }
  .spot h3 { font-size: 24px; }
  .links { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .spot-horse { display: grid; grid-template-columns: minmax(0, 1fr) 46%; column-gap: 32px; align-items: start; padding: 24px 28px 28px; }
  .spot-horse .spot-text { display: contents; }
  .spot-horse .spot-text > * { grid-column: 1; }
  .spot-horse .duo { order: 0; grid-column: 2; grid-row: 1 / span 4; gap: 10px; padding: 4px 0 0; }
  .spot-horse .spot-text > .links { grid-column: 2; grid-row: 4; align-self: end; margin-top: 0; }

  .inn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 36px 0; }
  .inn-photo img { height: 100%; aspect-ratio: auto; min-height: 280px; }
  .inn-body { padding: 24px 30px 28px; }
  .inn h3 { font-size: 24px; }
  .inn .links { grid-template-columns: 1fr; }

  .row { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; margin: 30px 0; }
  .row .at { font-size: 20px; }


  .goal p { padding: 14px 30px 14px 30px; }
  .goal time { font-size: 32px; }

  .foot-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
}

/* ===== 広いPC：表紙を2列に、父との写真は旅程の右余白へ ===== */
@media (min-width: 1060px) {
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 64px; }
  .hero-print { order: 0; width: 100%; margin: 0; transform: rotate(2.5deg); }
  .hero-stub { left: -40px; bottom: -30px; width: 84px; }

  .spot, .inn, .day, .goal { clear: both; }
  .memory { float: right; clear: right; max-width: none; margin: 0 0 20px 24px; }
  .memory-pair { display: block; width: 250px; margin-top: -200px; padding: 0; }
  .memory-pair::before { left: 40%; }
  .memory-pair .print:first-child { width: 190px; }
  .memory-pair .print:last-child { width: 210px; margin: -26px 0 0 40px; }
  .memory-one { width: 270px; margin-top: -40px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
