:root {
  color-scheme: light;
  --navy: #082f4f;
  --navy-2: #0e4468;
  --teal: #138b8d;
  --teal-light: #dff4f1;
  --coral: #e86e4b;
  --orange: #ef8b2c;
  --cream: #f8f3e9;
  --paper: #fffdf9;
  --ink: #112f49;
  --muted: #607386;
  --line: #dbe4e6;
  --shadow: 0 12px 30px rgba(8, 47, 79, 0.12);
  --radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { background: #dfeaec; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #dfeaec; }
button, a, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.app-shell {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--cream);
  box-shadow: 0 0 40px rgba(8, 47, 79, 0.16);
  position: relative;
}

.app-main { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.screen { display: none; min-height: calc(100dvh - 88px); }
.screen.is-active { display: block; }
.content-stack { display: grid; gap: 18px; padding: 18px; }

.sample-notice {
  min-height: 40px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  background: var(--navy);
}
.sample-notice span { font-size: 10px; font-weight: 900; letter-spacing: .14em; color: #89e1d8; }
.sample-notice p { margin: 0; font-size: 11px; font-weight: 700; opacity: .9; }

.hero { position: relative; height: clamp(220px, 55vw, 285px); overflow: hidden; background: var(--navy); }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 30, 51, .1), transparent 72%); pointer-events: none; }
.hero-copy { position: absolute; z-index: 1; left: 22px; top: 50%; width: 44%; transform: translateY(-50%); color: white; }
.hero-copy h1 { margin: 5px 0 9px; font-size: clamp(32px, 9.6vw, 48px); line-height: .98; letter-spacing: -.055em; }
.hero-copy p { margin: 0; font-size: 12px; font-weight: 750; }
.hero-kicker { display: inline-block; padding: 5px 9px; border-radius: 999px; color: var(--navy) !important; background: #8fe0d7; letter-spacing: .06em; }

.pressable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.pressable:active { transform: scale(.985); }
.next-card, .overview-card, .route-summary, .public-note, .schedule-card, .food-card, .packing-card, .packing-progress, .mission-progress {
  background: var(--paper);
  border: 1px solid rgba(8, 47, 79, .07);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.next-card { border: 0; padding: 18px; display: grid; grid-template-columns: 54px 1fr 16px; gap: 13px; align-items: center; text-align: left; }
.next-icon { display: grid; place-items: center; width: 54px; aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: var(--teal-light); }
.next-icon img { width: 128%; height: 128%; object-fit: contain; }
.next-copy { display: grid; gap: 2px; min-width: 0; }
.next-copy small { color: var(--teal); font-size: 11px; font-weight: 900; }
.next-copy strong { font-size: 18px; line-height: 1.35; }
.next-copy span { color: var(--muted); font-size: 12px; }
.chevron { font-size: 31px; font-weight: 300; }

.overview-card, .route-summary { padding: 20px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.eyebrow { margin: 0 0 5px; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.day-badge { padding: 7px 9px; border-radius: 10px; color: white; background: var(--coral); font-size: 10px; font-weight: 900; }
.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 17px; }
.purpose-item { border: 0; border-radius: 17px; padding: 14px 7px 12px; display: grid; gap: 3px; text-align: center; background: #f3f8f6; }
.purpose-item > img { width: 48px; height: 48px; margin: -2px auto 0; object-fit: contain; }
.purpose-item:nth-child(3) > img { border-radius: 13px; object-fit: cover; }
.purpose-item strong { font-size: 13px; }
.purpose-item small { color: var(--muted); font-size: 9px; }

.route-summary { display: grid; gap: 12px; }
.route-summary h2 { margin-bottom: 3px; }
.day-summary { width: 100%; border: 1px solid var(--line); border-radius: 17px; padding: 13px; display: grid; grid-template-columns: 63px 1fr 14px; align-items: center; gap: 12px; text-align: left; background: white; }
.day-summary > span:nth-child(2) { display: grid; gap: 3px; }
.day-summary strong { font-size: 15px; }
.day-summary small { color: var(--muted); font-size: 11px; }
.day-number { display: grid; place-items: center; min-height: 48px; border-radius: 14px; color: white; background: var(--teal); font-size: 11px; font-weight: 900; }
.day-number.coral { background: var(--coral); }
.public-note { padding: 18px; color: white; background: var(--navy-2); }
.public-note strong { font-size: 14px; }
.public-note p { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: #d9e9f0; }

.page-header { padding: 28px 22px 22px; color: white; background: var(--navy); }
.page-header h1 { margin: 0 0 6px; font-size: 34px; letter-spacing: -.05em; }
.page-header > p:last-child { margin: 0; color: #d9e8ef; font-size: 13px; }
.page-header .eyebrow { color: #8fe0d7; }
.day-tabs { margin: -1px 18px 0; padding: 5px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 0 0 18px 18px; background: white; box-shadow: var(--shadow); }
.day-tab { min-height: 45px; border: 0; border-radius: 14px; color: var(--navy); background: transparent; font-weight: 900; cursor: pointer; }
.day-tab.is-active { color: white; background: var(--teal); }
.filter-row { padding: 18px 18px 3px; display: flex; gap: 7px; overflow-x: auto; }
.filter-chip { min-width: 58px; min-height: 36px; padding: 0 12px; border: 1px solid var(--teal); border-radius: 999px; background: transparent; color: var(--teal); font-size: 12px; font-weight: 800; cursor: pointer; }
.filter-chip.is-active { color: white; background: var(--navy); border-color: var(--navy); }
.itinerary-panels { padding: 14px 18px 24px; }
.day-intro { margin-bottom: 14px; padding: 15px; display: flex; align-items: center; gap: 12px; border-radius: 18px; color: white; background: linear-gradient(125deg, var(--teal), #0e6f7f); }
.day-intro.day-two { background: linear-gradient(125deg, var(--coral), #c44f43); }
.day-intro > span { font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.day-intro > div { display: grid; gap: 2px; }
.day-intro strong { font-size: 14px; }
.day-intro small { font-size: 10px; opacity: .85; }
.timeline { display: grid; gap: 13px; position: relative; }
.schedule-card { position: relative; padding: 18px 14px; display: grid; grid-template-columns: 56px 1fr; gap: 12px; box-shadow: 0 8px 22px rgba(8, 47, 79, .09); }
.schedule-card:has(.map-button) { padding-right: 74px; }
.schedule-card[hidden] { display: none; }
.time { display: grid; align-content: start; gap: 4px; }
.time strong { font-size: 17px; }
.time span { width: max-content; padding: 3px 7px; border-radius: 999px; color: var(--teal); background: var(--teal-light); font-size: 9px; font-weight: 900; }
.schedule-body h2 { font-size: 16px; line-height: 1.4; }
.schedule-body p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.schedule-body .card-kicker { margin: 0 0 3px; color: var(--coral); font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.schedule-body .mini-note { padding-top: 7px; color: #7a5c29; font-size: 10px; border-top: 1px dashed #e5d5b7; }
.map-button { position: absolute; right: 12px; top: 14px; width: 52px; min-height: 56px; display: grid; place-items: center; align-content: center; gap: 1px; border: 2px solid var(--teal); border-radius: 16px; color: var(--teal); background: white; font-size: 10px; font-weight: 900; text-decoration: none; }
.map-button span { font-size: 20px; line-height: 1; }
.featured { border-left: 5px solid var(--coral); background: linear-gradient(145deg, #fffdf9, #fff7f0); }
.featured-castle { border-left: 5px solid #c59a36; background: linear-gradient(145deg, #fffdf9, #faf3de); }
.featured-tower { border-left: 5px solid var(--coral); }
.gourmet-accent { border-left: 5px solid var(--orange); }
.inline-link, .official-link { display: inline-flex; margin-top: 9px; border: 0; padding: 0; color: var(--teal); background: transparent; font-size: 11px; font-weight: 900; text-decoration: none; cursor: pointer; }

.gourmet-header { background: linear-gradient(145deg, #9e3e36, var(--coral)); }
.mission-progress { margin: -12px 18px 18px; padding: 18px; position: relative; z-index: 1; }
.mission-progress > div:first-child { display: flex; align-items: baseline; gap: 6px; }
.mission-progress strong { color: var(--coral); font-size: 32px; }
.mission-progress span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.progress-track { height: 8px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #ece6dc; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--coral)); transition: width .25s ease; }
.food-grid { padding: 0 18px; display: grid; gap: 16px; }
.food-card { overflow: hidden; box-shadow: 0 8px 22px rgba(8, 47, 79, .09); }
.food-visual { position: relative; min-height: 142px; padding: 15px 18px; display: flex; align-items: flex-end; justify-content: flex-end; overflow: hidden; color: white; background: var(--navy); }
.food-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 30, 51, .05) 0%, rgba(4, 30, 51, .2) 55%, rgba(4, 30, 51, .74) 100%); }
.food-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.food-visual small { position: relative; z-index: 1; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-shadow: 0 2px 7px rgba(0,0,0,.55); }
.food-copy { padding: 16px 17px 12px; }
.food-copy h2 { font-size: 18px; }
.food-copy p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.mission-check { min-height: 50px; padding: 0 17px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); color: var(--teal); font-size: 13px; font-weight: 900; cursor: pointer; }
.mission-check input, .packing-card input { width: 22px; height: 22px; accent-color: var(--teal); }
.gourmet-actions { padding: 20px 18px 28px; display: grid; gap: 10px; }
.primary-link, .secondary-link { min-height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 13px; font-weight: 900; text-decoration: none; }
.primary-link { color: white; background: var(--navy); }
.secondary-link { border: 1px solid var(--teal); color: var(--teal); background: white; }

.checklist-header { background: linear-gradient(145deg, #0c5f68, var(--teal)); }
.packing-progress { margin: -12px 18px 18px; padding: 18px; position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; }
.progress-ring { --progress: 0deg; width: 68px; aspect-ratio: 1; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--teal) var(--progress), #e5efed 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: white; }
.progress-ring span { position: relative; z-index: 1; font-size: 13px; font-weight: 900; }
.packing-progress strong { font-size: 15px; }
.packing-progress p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.packing-groups { padding: 0 18px; display: grid; gap: 14px; }
.packing-card { padding: 16px 18px 4px; box-shadow: 0 8px 22px rgba(8, 47, 79, .09); }
.packing-title { padding-bottom: 12px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.packing-title > span { font-size: 27px; }
.packing-title h2 { font-size: 16px; }
.packing-title p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.packing-card label { min-height: 54px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf1f1; font-size: 13px; font-weight: 750; cursor: pointer; }
.packing-list label:last-child { border: 0; }
.packing-card label:has(input:checked) span { color: #8a989f; text-decoration: line-through; }
.custom-packing-item { min-height: 54px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf1f1; color: #1d6f72; }
.custom-packing-item input { width: 22px; height: 22px; accent-color: var(--teal); }
.custom-packing-item > label { overflow: hidden; color: inherit; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 750; cursor: pointer; }
.custom-packing-item:has(input:checked) > label { color: #8a989f; text-decoration: line-through; }
.remove-packing-item { min-width: 46px; min-height: 32px; padding: 0 9px; border: 1px solid #ecb2a4; border-radius: 10px; color: #c5533f; background: #fff7f3; font-size: 10px; font-weight: 900; cursor: pointer; }
.packing-add-card { margin: 16px 18px 0; overflow: hidden; border: 1px solid #93cbc6; border-radius: 20px; background: #f6fcfb; }
.add-packing-toggle { width: 100%; min-height: 56px; border: 0; color: var(--teal); background: transparent; font-size: 14px; font-weight: 900; cursor: pointer; }
.add-packing-toggle span { margin-right: 5px; font-size: 20px; vertical-align: -1px; }
.packing-add-card form { padding: 4px 16px 16px; border-top: 1px solid #cfe6e2; }
.packing-add-card h2 { margin: 12px 0; font-size: 16px; }
.packing-add-card form > label { display: block; margin-top: 11px; color: var(--muted); font-size: 11px; font-weight: 800; }
.packing-add-card input, .packing-add-card select { width: 100%; min-height: 44px; margin-top: 6px; padding: 0 12px; border: 1px solid #bed5d2; border-radius: 12px; color: var(--ink); background: white; font-size: 14px; }
.packing-form-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.save-packing-item, .cancel-packing-item { min-height: 44px; border-radius: 12px; font-size: 13px; font-weight: 900; cursor: pointer; }
.save-packing-item { border: 0; color: white; background: var(--teal); }
.cancel-packing-item { border: 1px solid #b7c9c7; color: var(--muted); background: white; }
.packing-add-card > p { margin: 0; padding: 0 16px 15px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.reset-button { width: calc(100% - 36px); min-height: 50px; margin: 18px 18px 30px; border: 1px solid #b8c8cb; border-radius: 16px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }

.bottom-nav { position: fixed; z-index: 10; left: 50%; bottom: 0; width: min(100%, 520px); min-height: calc(72px + env(safe-area-inset-bottom)); padding: 7px 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); color: #c4d3dc; background: var(--navy); transform: translateX(-50%); box-shadow: 0 -9px 24px rgba(8, 47, 79, .18); }
.nav-button { min-height: 58px; border: 0; border-radius: 13px; display: grid; place-items: center; align-content: center; gap: 3px; color: inherit; background: transparent; cursor: pointer; position: relative; }
.nav-button > span { font-size: 25px; line-height: 1; }
.nav-button small { font-size: 10px; font-weight: 800; }
.nav-button.is-active { color: white; }
.nav-button.is-active::after { content: ""; position: absolute; bottom: 0; width: 34px; height: 4px; border-radius: 999px; background: #56d6cd; }
.legal-footer { width: min(100%, 520px); margin: 0 auto; padding: 22px 18px 120px; color: #5e717c; background: #dfeaec; font-size: 10px; line-height: 1.65; }
.legal-footer p { margin: 0 0 4px; }

:focus-visible { outline: 3px solid #f4b64e; outline-offset: 3px; }
@media (min-width: 521px) { body { padding: 24px 0 0; } .app-shell { border-radius: 30px 30px 0 0; overflow: hidden; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
