/* Harbor walking guide and souvenir stamp book */
:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --card: #fffef9;
  --ink: #172f34;
  --muted: #4d605e;
  --rule: #d4d4c7;
  --red: #a63828;
  --green: #236153;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "MS PMincho", serif;
  font: 16px/1.7 "Work Sans", "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1478ab; outline-offset: 3px; }
h1:focus, main:focus { outline: none; }
.skip { position: absolute; left: .5rem; top: -8rem; z-index: 5; background: white; padding: .7rem; }
.skip:focus { top: .5rem; }
.mast { border-bottom: 1px solid var(--rule); }
.mast-inner, .wrap, .footer { width: min(1152px, calc(100% - 64px)); margin-inline: auto; }
.mast-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: bold 1.38rem/1.25 var(--serif); letter-spacing: .075em; white-space: nowrap; }
.brand-seal { display: grid; place-items: center; width: 39px; height: 39px; color: var(--red); border: 3px double currentColor; border-radius: 6px 3px 7px 2px; transform: rotate(-6deg); letter-spacing: 0; font: 900 1.63rem/1 var(--serif); }
.wrap { margin-block: 26px 60px; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(355px,33vw,422px); overflow: hidden; color: #fffef7; background: #164553; }
.hero-photo, .spot-visual > img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { position: absolute; inset: 0; z-index: -2; object-position: 52% 66%; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(9,34,45,.91),rgba(8,39,49,.82) 28%,rgba(10,41,52,.24) 59%,transparent 80%); }
.hero-copy { padding: 35px clamp(30px,5vw,70px); }
.hero-kicker, .overline { display: flex; align-items: center; gap: 10px; font-size: .77rem; letter-spacing: .14em; font-weight: 700; }
.hero-kicker > span { width: 31px; height: 2px; background: #f5a58b; }
.hero h1 { margin: 14px 0 11px; font: 700 clamp(45px,5vw,73px)/1.12 var(--serif); letter-spacing: .045em; }
.hero h1 span { display: block; font-size: .72em; margin-top: 5px; letter-spacing: .035em; }
.hero-desc { font-size: .96rem; font-weight: 600; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 48px; max-width: 100%; padding: 10px 23px; border: 1px solid transparent; border-radius: 3px; background: var(--red); color: white; font-weight: 700; font-size: .95rem; }
.primary:hover { background: #8d2e20; }
.primary > span[aria-hidden] { font: 1.25em/1 Arial,sans-serif; }
.hero-btn { margin-top: 24px; background: #fffbec; color: var(--ink); }
.hero-btn:hover { background: white; }
.ticket-dot { width: 17px; height: 17px; border: 3px double var(--red); border-radius: 50%; }
.book-count strong { color: var(--red); font: bold 1.55rem/1 Georgia,serif; }
progress { appearance: none; border: none; height: 7px; width: clamp(80px,18vw,210px); border-radius: 10px; background: #d9d7c6; overflow: hidden; }
progress::-webkit-progress-bar { background: #d9d7c6; }
progress::-webkit-progress-value { background: var(--green); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--green); }
.back:hover, .text-link:hover, .footer a:hover { color: var(--red); text-decoration: underline; }
.course-spots { margin-top: clamp(30px,4vw,57px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-heading h2 { font: 700 clamp(1.45rem,2.5vw,2.08rem)/1.3 var(--serif); letter-spacing: .035em; }
.section-heading > span { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.section-heading i { height: 11px; border-left: 1px solid #a9ad9f; }
.spot-grid, .book-grid, .completed-stamps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.spot-grid { gap: clamp(16px,2.5vw,32px); }
.spot-card { display: block; border-bottom: 1px solid #b3bcad; }
.card-image, .spot-visual { position: relative; background: #dadcca; overflow: hidden; }
.card-image img { width: 100%; height: auto; aspect-ratio: 1.92; object-fit: cover; transition: transform .25s; }
.spot-card:hover img { transform: scale(1.035); }
.spot-card:hover h3, .book-entry:hover strong { color: var(--red); }
.spot-number, .photo-index { position: absolute; left: 10px; top: 10px; background: var(--paper); padding: 2px 9px; border-bottom: 2px solid var(--red); color: var(--ink); font: italic bold 1.1rem/1.35 Georgia,serif; }
.card-body { padding: 14px 0 20px; }
.card-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.area { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .79rem; font-weight: 600; }
.pin { display: inline-block; position: relative; width: 10px; height: 10px; border: 1.6px solid #6d7771; border-radius: 70% 70% 70% 0; transform: rotate(-45deg); }
.pin::after { content: ""; position: absolute; inset: 2px; background: #6d7771; border-radius: 50%; }
.badge { display: inline-block; align-self: center; padding: 1px 7px; color: #535d55; border: 1px solid #b8bfb0; font: 600 .7rem/1.55 "Yu Gothic",Meiryo,sans-serif; white-space: nowrap; border-radius: 2px; }
[data-collected="true"] .badge { background: #e3ede2; border-color: #87a392; color: #235740; }
.spot-card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; font: bold clamp(1.22rem,2vw,1.65rem)/1.45 var(--serif); margin: 8px 0 3px; }
.arrow { color: var(--red); font: normal 1.1rem/1 Arial,sans-serif; }
.card-body p, .book-panel > p, .print-card > p { color: var(--muted); font-size: .92rem; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.spot-sheet { display: grid; grid-template-columns: 1.03fr 1fr; border: 1px solid var(--rule); background: var(--card); }
.spot-visual > img { position: absolute; inset: 0; }
.spot-visual { min-height: 380px; }
.photo-credit-link { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; min-height: 30px; padding-inline: 9px; background: #163138dd; color: white; border-radius: 3px; font-size: .72rem; }
.photo-credit-link:hover { text-decoration: underline; }
.card-image img[src$="photo-liberty.webp"], .spot-visual img[src$="photo-liberty.webp"] { object-position: 72% 50%; }
.photo-index { left: 22px; top: 20px; font-size: 1.6rem; padding-inline: 12px; }
.spot-copy { align-self: center; padding: clamp(24px,4.3vw,62px); }
.inner-view h1 { margin: 12px 0; font: 700 clamp(1.8rem,3.55vw,3.2rem)/1.3 var(--serif); letter-spacing: .025em; }
.spot-description { color: var(--muted); }
.fact-list { margin: 24px 0; border-top: 1px solid var(--rule); }
.fact-list > div { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.fact-list dt { color: var(--green); font-weight: 700; font-size: .8rem; }
.fact-list dd { margin-top: 2px; font-size: .92rem; }
.overline { color: var(--red); }
.book-panel, .print-card { border: 1px solid #c4c5b2; background: var(--card); padding: clamp(24px,4.8vw,64px); }
.book-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.book-head h1 { margin-block: 5px; }
.book-count { white-space: nowrap; color: var(--muted); }
.book-count strong { font-size: 2.4rem; }
.book-grid { margin: 28px 0; border-block: 1px dashed #b3b8aa; }
.book-entry { display: flex; flex-direction: column; align-items: center; padding: 20px 8px 24px; text-align: center; }
.book-entry + .book-entry { border-left: 1px dashed #b3b8aa; }
.stamp-slot { display: block; width: min(100%,164px); }
.book-entry[data-collected=false] img { filter: grayscale(1); opacity: .23; }
.book-entry small { font: italic bold .83rem Georgia,serif; color: var(--red); }
.book-entry strong { font: 700 clamp(1rem,2vw,1.4rem)/1.5 var(--serif); margin: 3px 0 7px; }
.result-view { margin: clamp(30px,5vw,72px) auto; max-width: 820px; text-align: center; }
.print-card { outline: 1px solid #c4c5b2; outline-offset: -8px; }
.print-card .overline { justify-content: center; color: var(--red); }
.earned-stamp { width: clamp(145px,24vw,210px); height: auto; margin: 16px auto; transform: rotate(-6deg); }
@media (prefers-reduced-motion:no-preference) {
  .earned-stamp { animation: stamp-press .3s ease-out; }
  @keyframes stamp-press { from { transform: rotate(-11deg) scale(1.18); opacity: .25; } }
}
.completed-stamps { margin: 24px auto; max-width: 480px; gap: 8px; }
.completed-stamps img { margin: auto; }
.completed-stamps figcaption { font: 700 .9rem/1.4 var(--serif); }
.completed-stamps figcaption, .book-entry strong { text-wrap: balance; }
.result-actions { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; font-size: .88rem; text-decoration: underline; text-underline-offset: 4px; }
.certificate > .text-link { display: flex; }
.footer { border-top: 1px solid var(--rule); padding: 18px 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .78rem; }
.footer a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
@media (max-width: 720px) {
  .mast-inner, .wrap, .footer { width: calc(100% - 36px); }
  .mast-inner { min-height: 63px; }
  .brand { font-size: 1.07rem; gap: 8px; }
  .brand-seal { width: 31px; height: 31px; font-size: 1.3rem; }
  .wrap { margin-block: 14px 36px; }
  .hero { min-height: 334px; align-items: flex-end; }
  .hero-photo { object-position: 24% 60%; }
  .hero::before { background: linear-gradient(90deg,rgba(8,34,45,.84),rgba(8,34,45,.59) 52%,rgba(8,34,45,.05) 92%),linear-gradient(0deg,rgba(8,34,45,.28),transparent 55%); }
  .hero-copy { padding: 25px 21px; }
  .hero-kicker { font-size: .7rem; }
  .hero h1 { font-size: 2.85rem; margin-block: 8px; }
  .hero h1 span { font-size: .68em; }
  .hero-desc { font-size: .84rem; line-height: 1.6; max-width: 25em; }
  .hero-btn { margin-top: 13px; }
  .ticket-dot { width: 13px; height: 13px; }
  .section-heading { margin-bottom: 12px; gap: 5px; }
  .section-heading > span { font-size: .75rem; gap: 5px; }
  .spot-grid { grid-template-columns: 1fr; gap: 0; }
  .spot-card { display: grid; grid-template-columns: minmax(100px,34%) minmax(0,1fr); align-items: center; gap: 14px; padding: 13px 0; }
  .spot-card:first-child { border-top: 1px solid var(--rule); }
  .card-image img { height: auto; aspect-ratio: 1.32; }
  .spot-number { left: 5px; top: 5px; padding: 0 5px; font-size: .83rem; }
  .card-body { padding: 0; }
  .area { font-size: .69rem; gap: 5px; }
  .badge { font-size: .64rem; padding-inline: 4px; }
  .spot-card h3 { font-size: 1.2rem; margin: 4px 0 1px; }
  .card-body p { font-size: .76rem; line-height: 1.55; }
  .spot-sheet { grid-template-columns: 1fr; }
  .back { margin-bottom: 3px; }
  .spot-visual { min-height: 0; aspect-ratio: 1.85; }
  .photo-index { left: 12px; top: 12px; font-size: 1.2rem; }
  .spot-copy { padding: 22px; }
  .fact-list { margin: 14px 0 18px; }
  .book-panel, .print-card { padding: 24px 16px; }
  .book-head { align-items: flex-end; }
  .book-head h1 { font-size: clamp(1.3rem,5.6vw,2rem); }
  .book-count { font-size: .75rem; }
  .book-count strong { font-size: 1.7rem; }
  .book-grid { margin: 20px 0; }
  .book-entry { padding: 14px 3px; }
  .book-entry strong, .completed-stamps figcaption { font-size: .79rem; }
  .book-panel > p, .print-card > p { font-size: .84rem; }
  .result-actions { gap: 4px 14px; }
  .footer { gap: 0; }
}
@media (max-width: 355px) {
  .mast-inner, .wrap, .footer { width: calc(100% - 24px); }
  .hero-copy, .spot-copy { padding-inline: 16px; }
  .spot-card { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .card-image img { transition: none; }
}

body { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
body[data-view="ar"] { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
.mast-location { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.bottom-dock { position: fixed; z-index: 10; inset: auto 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--card); box-shadow: 0 -3px 16px #122c3211; border-top: 1px solid var(--rule); }
.book-shortcut { display: block; background: #f1eedf; border-bottom: 1px solid #d9dacb; }
.book-shortcut-inner { width: min(540px,100%); min-height: 42px; padding: 7px 22px; margin: auto; display: flex; align-items: center; gap: 13px; color: var(--ink); }
.book-caption { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: .83rem; font-weight: 700; }
.book-shortcut progress { flex: 1; width: auto; height: 5px; }
.book-total { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.book-total b { color: var(--red); font: bold 1.16rem Georgia,serif; }
.book-shortcut:hover .book-caption { text-decoration: underline; }
body[data-view="ar"] .book-shortcut, body[data-view="book"] .book-shortcut { display: none; }
.bottom-menu { display: grid; grid-template-columns: repeat(3,1fr); max-width: 540px; margin: 0 auto; }
.bottom-menu a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 57px; position: relative; color: var(--muted); font-size: .74rem; font-weight: 700; }
.bottom-menu a:hover { background: #f4f1e6; }
.bottom-menu a[aria-current] { color: var(--red); }
.bottom-menu a[aria-current]::before { content: ""; position: absolute; top: 0; width: 34px; height: 2px; background: currentColor; }
.bottom-menu svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.trip-guide p, .spot-list-head > span { color: var(--muted); font-size: .9rem; }
.trip-stops { display: flex; flex-wrap: wrap; padding: 0; margin: 16px 0 0; list-style: none; gap: 4px 22px; }
.trip-stops a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font: bold 1rem var(--serif); }
.trip-stops a:hover { color: var(--red); }
.trip-stops span { font: italic bold 1rem Georgia,serif; color: var(--red); border-bottom: 1px solid currentColor; }
.trip-guide .text-link { gap: 8px; }
.spot-list-head { display: flex; justify-content: space-between; align-items: flex-end; margin: 24px 0; }
.spot-list-head h1 { margin-bottom: 0; }
.camera-view { max-width: 510px; margin-inline: auto; }
body[data-view="ar"] .mast { display: none; }
body[data-view="ar"] .wrap { margin-top: max(8px,env(safe-area-inset-top, 0px)); }
.camera-view .back { margin-bottom: 0; }
.camera-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.camera-head > div { text-align: right; }
.camera-head .overline { justify-content: flex-end; font-size: .65rem; }
.credits { max-width: 48rem; margin-block: 1.5rem 3rem; }
.credits h1 { font: 700 clamp(1.7rem, 4vw, 2.6rem)/1.4 var(--serif); margin-block: 12px 18px; }
.credits h2 { font: 700 1.2rem/1.5 var(--serif); }
.credits li { border-top: 1px solid var(--rule); padding-block: 16px; scroll-margin-top: 12px; }
.credits ol { list-style: none; padding: 0; }
.credits a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.credits p { margin: 6px 0; }
.credits-page { padding-bottom: 0; }
@media (max-width: 720px) {
  body[data-view="map"] .wrap { width: 100%; margin-top: 0; }
  body[data-view="map"] .rally-map { padding-top: 8px; }
  body[data-view="map"] .rally-map__heading { margin: 0 16px 8px; }
  body[data-view="map"] .rally-map__heading h1 { margin: 0; font-size: 1.35rem; }
  body[data-view="map"] .rally-map__heading > p { font-size: .75rem; }
  body[data-view="map"] .odaiba-map__list { margin-inline: 14px; }
}
.spot-links { display: flex; flex-wrap: wrap; gap: 0 17px; padding-top: 8px; }
.spot-links a, .spot-notice a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; font-size: .84rem; }
.spot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.spot-notice { margin-block: 0 14px; border-left: 3px solid var(--red); padding: 6px 11px; color: var(--muted); font-size: .8rem; background: #f4f0e4; }
.stamp-slot img, .completed-stamps img { width: 100%; height: auto; }
.book-entry:nth-child(3n + 1) { border-left: 0; }
.book-entry:nth-child(n + 4) { border-top: 1px dashed #b3b8aa; }
.completed-stamps { row-gap: 16px; }
.spot-card h3 { align-items: center; }
.camera-head h1 { font-size: clamp(1.35rem,4.5vw,1.9rem); margin-block: 2px; }
@media (max-width: 720px) {
  .mast-location { font-size: .7rem; }
  .trip-stops { gap: 0 16px; }
  .trip-stops a { font-size: .92rem; }
  .spot-list-head { margin: 18px 0; }
  .camera-view .back { min-height: 44px; }
}
