@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&family=Noto+Serif+JP:wght@700;900&display=swap');

:root {
  --ink: #17324d;
  --ink-soft: #496278;
  --night: #10283d;
  --cream: #fffaf1;
  --paper: #ffffff;
  --aqua: #73d7d4;
  --aqua-pale: #dff7f4;
  --coral: #ff8776;
  --coral-pale: #ffe6df;
  --yellow: #ffd86b;
  --yellow-pale: #fff4c9;
  --blue: #7ba8ff;
  --blue-pale: #e8efff;
  --pink: #f3a7c0;
  --pink-pale: #ffe8f0;
  --green: #84c99b;
  --line: #dce7eb;
  --shadow: 0 18px 50px rgba(22, 54, 77, 0.11);
  --shadow-soft: 0 10px 28px rgba(22, 54, 77, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, rgba(115, 215, 212, .12), transparent 28%),
    radial-gradient(circle at 90% 40%, rgba(255, 216, 107, .11), transparent 25%),
    var(--cream);
  font-family: 'M PLUS Rounded 1c', system-ui, sans-serif;
  line-height: 1.75;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: white;
  border-radius: 999px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 85% 5%, rgba(255, 216, 107, .18), transparent 25%),
    radial-gradient(circle at 15% 80%, rgba(115, 215, 212, .13), transparent 30%),
    linear-gradient(145deg, #10283d 0%, #173d58 55%, #175267 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 115px;
  background: var(--cream);
  clip-path: polygon(0 58%, 8% 48%, 16% 61%, 25% 43%, 34% 59%, 44% 40%, 55% 59%, 65% 44%, 76% 62%, 88% 43%, 100% 56%, 100% 100%, 0 100%);
}

.topbar {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}
.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .03em;
}
.brand small { font-weight: 500; opacity: .78; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--yellow);
  box-shadow: inset 0 0 18px rgba(255,255,255,.08);
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  opacity: .82;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -5px;
  height: 2px;
  background: var(--yellow);
  transition: right .2s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }

.hero-grid {
  width: min(calc(100% - 40px), var(--max));
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 3;
}
.hero-copy { padding-bottom: 115px; }
.eyebrow, .kicker {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow { color: var(--yellow); }
.kicker { color: #e76f5f; }
.hero h1 {
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.7rem, 5.2vw, 5.4rem);
  line-height: 1.15;
  letter-spacing: -.04em;
}
.hero h1 span { color: var(--yellow); }
.hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 1.03rem;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.button-primary { color: var(--night); background: var(--yellow); box-shadow: 0 10px 24px rgba(255,216,107,.18); }
.button-ghost { color: white; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.button-dark { color: white; background: var(--ink); }
.button-small { padding: 9px 15px; background: white; border: 1px solid var(--line); color: var(--ink); font-size: .86rem; }

.countdown { display: flex; gap: 10px; margin-top: 34px; }
.countdown > span {
  min-width: 82px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 15px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
  text-align: center;
}
.countdown strong { display: block; font-size: 1.5rem; line-height: 1; color: white; }
.countdown small { display: block; margin-top: 6px; color: rgba(255,255,255,.65); }

.hero-art { position: relative; padding-bottom: 80px; }
.hero-art > img { width: 100%; filter: drop-shadow(0 30px 35px rgba(0,0,0,.2)); }
.hero-ticket {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 220px;
  padding: 18px 20px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255,250,241,.94);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}
.hero-ticket::before {
  content: '';
  position: absolute;
  left: -7px; top: 0; bottom: 0;
  width: 14px;
  background: radial-gradient(circle at 0 12px, transparent 7px, var(--cream) 8px) 0 0/14px 24px repeat-y;
}
.hero-ticket span { display: block; font-size: .65rem; font-weight: 800; letter-spacing: .18em; color: #df6456; }
.hero-ticket strong { display: block; margin: 5px 0; font-family: 'Noto Serif JP', serif; font-size: 1.05rem; line-height: 1.5; }
.hero-ticket small { color: var(--ink-soft); }
.hero-stars, .hero-stars::before, .hero-stars::after {
  position: absolute;
  content: '';
  width: 3px; height: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 60px 80px rgba(255,255,255,.8), 160px 130px rgba(255,255,255,.5), 290px 70px rgba(255,255,255,.7), 430px 170px rgba(255,255,255,.45), 570px 50px rgba(255,255,255,.65), 720px 155px rgba(255,255,255,.5), 850px 80px rgba(255,255,255,.75), 1020px 180px rgba(255,255,255,.55), 1130px 90px rgba(255,255,255,.5);
}
.hero-stars { inset: 60px 0 auto; }
.hero-stars::before { top: 210px; left: 120px; opacity: .55; transform: scale(.75); }
.hero-stars::after { top: 370px; left: -30px; opacity: .4; transform: scale(.55); }

.section-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 92px 0;
}
.section-heading { margin-bottom: 34px; }
.compact-heading { max-width: 720px; }
.section-heading h2, .source-section h2 {
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  line-height: 1.25;
  letter-spacing: -.03em;
}
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }

.quick-facts { padding-top: 58px; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.fact-card {
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 102px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow-soft);
}
.fact-card > span { display: grid; place-items: center; width: 45px; aspect-ratio: 1; border-radius: 14px; background: var(--aqua-pale); font-size: 1.25rem; }
.fact-card small, .fact-card strong { display: block; }
.fact-card small { color: var(--ink-soft); font-size: .75rem; }
.fact-card strong { line-height: 1.45; }
.source-note { margin: 18px 2px 0; color: var(--ink-soft); font-size: .83rem; }

.strategy-selector { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.strategy-selector span { margin-right: 4px; color: var(--ink-soft); font-size: .84rem; }
.strategy-selector button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 8px 12px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.strategy-selector button:hover, .strategy-selector button.is-active { background: var(--ink); color: white; border-color: var(--ink); }
.spot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.spot-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.spot-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.spot-card.is-recommended { outline: 4px solid var(--yellow); transform: translateY(-8px); box-shadow: var(--shadow); }
.spot-card.is-muted { opacity: .55; }
.spot-image { aspect-ratio: 16/10; overflow: hidden; background: #dff4f4; }
.spot-image img { width: 100%; height: 100%; object-fit: cover; }
.spot-body { padding: 23px; }
.spot-labels { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: .75rem; }
.rank { padding: 5px 9px; border-radius: 999px; color: #6d2f27; background: var(--coral-pale); font-weight: 800; }
.rank-blue { color: #274674; background: var(--blue-pale); }
.rank-gold { color: #6a4b05; background: var(--yellow-pale); }
.spot-body h3 { margin: 14px 0 1px; font-size: 1.42rem; line-height: 1.3; }
.spot-sub { margin: 0 0 17px; color: var(--ink-soft); font-size: .84rem; }
.spot-body > p:not(.spot-sub) { font-size: .9rem; color: #3d566b; }
.score-list { list-style: none; padding: 0; margin: 0 0 17px; display: grid; gap: 5px; }
.score-list li { display: flex; justify-content: space-between; gap: 15px; font-size: .78rem; }
.score-list li span { color: var(--ink-soft); }
.score-list strong { color: #e69d28; letter-spacing: .05em; }
.spot-tactic { padding: 13px; border-radius: 12px; background: #f4f8f8; font-size: .78rem; line-height: 1.55; }
.spot-tactic strong { display: block; margin-bottom: 3px; color: #df6456; }
.text-link { display: inline-block; margin-top: 16px; color: #27647b; font-weight: 800; font-size: .85rem; }
.decision-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
  margin-top: 30px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #e4f7f4, #fff5d9);
}
.decision-panel img { max-height: 330px; margin: auto; }
.decision-panel h3 { margin: 5px 0 12px; font-family: 'Noto Serif JP', serif; font-size: clamp(1.5rem, 2.7vw, 2.45rem); line-height: 1.45; }
.decision-panel p:last-child { color: var(--ink-soft); }

.crew-section { position: relative; }
.privacy-note { max-width: 390px; margin: 0; color: var(--ink-soft); font-size: .82rem; text-align: right; }
.add-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr .55fr auto;
  gap: 12px;
  align-items: end;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--aqua-pale);
}
.add-form label, .log-form label { display: grid; gap: 6px; }
.add-form label span, .log-form label span { font-size: .75rem; font-weight: 800; color: var(--ink-soft); }
input, select, textarea {
  width: 100%;
  border: 1px solid #c9dade;
  border-radius: 12px;
  background: white;
  color: var(--ink);
}
input, select { min-height: 48px; padding: 0 13px; }
textarea { min-height: 160px; padding: 13px; resize: vertical; }
.crew-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 22px; }
.crew-empty { grid-column: 1/-1; padding: 42px; text-align: center; color: var(--ink-soft); border: 2px dashed var(--line); border-radius: var(--radius-lg); }
.crew-card {
  position: relative;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.crew-avatar { width: 66px; height: 66px; margin: 0 auto 11px; display: grid; place-items: center; border-radius: 22px; background: var(--yellow-pale); font-size: 2rem; transform: rotate(-3deg); }
.crew-card h3 { margin: 0; font-size: 1.05rem; }
.crew-card p { margin: 3px 0 0; color: var(--ink-soft); font-size: .8rem; }
.icon-button {
  position: absolute;
  top: 9px; right: 9px;
  border: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #f4f7f8;
  color: var(--ink-soft);
  cursor: pointer;
}
.icon-button:hover { background: var(--coral-pale); color: #a64235; }

.schedule-layout { display: grid; grid-template-columns: 1fr 340px; gap: 25px; align-items: start; }
.timeline { position: relative; display: grid; gap: 12px; }
.timeline::before { content: ''; position: absolute; left: 64px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 24px; align-items: center; padding: 16px 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-soft); }
.timeline-time { font-weight: 800; font-size: .92rem; }
.timeline-dot { position: absolute; left: 57px; width: 16px; height: 16px; border: 4px solid var(--cream); border-radius: 50%; background: var(--coral); }
.timeline-main { padding-left: 10px; }
.timeline-main label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.timeline-main input { width: 20px; min-height: auto; height: 20px; accent-color: var(--green); }
.timeline-item.is-done .timeline-main span { color: #81909b; text-decoration: line-through; }
.timeline-item.is-done .timeline-dot { background: var(--green); }
.timeline-delete { position: static; }
.schedule-aside { padding: 22px; border-radius: var(--radius-lg); background: var(--yellow-pale); }
.schedule-aside img { max-height: 180px; margin: -8px auto 5px; }
.schedule-aside h3 { margin: 5px 0 13px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checklist label { cursor: pointer; }
.checklist input { width: 18px; height: 18px; min-height: auto; accent-color: var(--green); vertical-align: -3px; }
.completion-pill { padding: 8px 14px; border-radius: 999px; background: var(--aqua-pale); font-weight: 800; font-size: .84rem; }
.schedule-form { grid-template-columns: 160px 1fr auto; margin-top: 18px; background: #eaf1ff; }

.data-actions { display: flex; gap: 8px; }
.file-button { position: relative; cursor: pointer; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.memo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.memo-card { display: grid; gap: 9px; min-height: 250px; padding: 20px; border-radius: 8px 22px 13px 19px; box-shadow: var(--shadow-soft); transform: rotate(-.4deg); }
.memo-card:nth-child(2) { transform: rotate(.5deg); }
.memo-card:nth-child(3) { transform: rotate(-.2deg); }
.memo-card > span { font-weight: 800; }
.memo-card textarea { height: 100%; border: 0; background: rgba(255,255,255,.55); }
.memo-card small { color: var(--ink-soft); text-align: right; }
.memo-yellow { background: var(--yellow-pale); }
.memo-blue { background: var(--blue-pale); }
.memo-pink { background: var(--pink-pale); }
.log-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-top: 26px; padding: 20px; border-radius: var(--radius-lg); background: var(--ink); }
.log-form label span { color: rgba(255,255,255,.75); }
.log-list { display: grid; gap: 10px; margin-top: 14px; }
.log-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.log-item time { color: var(--ink-soft); font-size: .72rem; white-space: nowrap; }
.log-item p { margin: 0; }
.log-item .icon-button { position: static; }

.safety-section { padding-top: 60px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise-grid article { position: relative; overflow: hidden; padding: 25px; border-radius: var(--radius-lg); background: white; border: 1px solid var(--line); }
.promise-grid article > span { position: absolute; right: 14px; top: -23px; font-family: 'Noto Serif JP', serif; font-size: 6rem; color: var(--aqua-pale); line-height: 1; }
.promise-grid h3 { position: relative; margin: 0 0 8px; }
.promise-grid p { position: relative; margin: 0; color: var(--ink-soft); font-size: .9rem; }
.source-section { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; margin-bottom: 80px; padding: 38px; border-radius: var(--radius-xl); color: white; background: linear-gradient(135deg, #17324d, #215a6a); }
.source-section .kicker { color: var(--yellow); }
.source-section p { color: rgba(255,255,255,.72); }
.source-links { display: grid; gap: 8px; }
.source-links a { padding: 11px 15px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .84rem; }
.source-links a:hover { background: rgba(255,255,255,.1); }
footer { padding: 35px 20px 55px; text-align: center; color: var(--ink-soft); }
footer a { font-family: 'Noto Serif JP', serif; font-weight: 800; text-decoration: none; color: var(--ink); }
footer p { margin: 7px 0 0; font-size: .75rem; }
.toast { position: fixed; z-index: 99; left: 50%; bottom: 24px; transform: translate(-50%, 30px); padding: 12px 18px; border-radius: 999px; color: white; background: var(--ink); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .hero-copy { padding-bottom: 0; }
  .hero-art { max-width: 680px; margin: -10px auto 0; padding-bottom: 130px; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .spot-grid { grid-template-columns: 1fr; }
  .spot-card { display: grid; grid-template-columns: 40% 60%; }
  .spot-image { height: 100%; aspect-ratio: auto; }
  .decision-panel { grid-template-columns: 1fr; }
  .decision-panel img { max-height: 290px; }
  .crew-grid { grid-template-columns: repeat(3, 1fr); }
  .add-form { grid-template-columns: 1fr 1fr; }
  .add-form .button { min-height: 48px; }
  .schedule-layout { grid-template-columns: 1fr; }
  .schedule-aside { display: grid; grid-template-columns: 220px 1fr; column-gap: 20px; }
  .schedule-aside img { grid-row: 1/3; }
  .memo-grid { grid-template-columns: 1fr; }
  .memo-card { min-height: 210px; }
}

@media (max-width: 720px) {
  .topbar { min-height: 76px; }
  .nav-links { display: none; }
  .hero-grid, .topbar, .section-shell { width: min(calc(100% - 28px), var(--max)); }
  .hero-grid { gap: 15px; margin-top: 35px; }
  .hero-copy { text-align: left; }
  .hero h1 { font-size: clamp(2.5rem, 12.3vw, 4rem); }
  .hero-lead { font-size: .94rem; }
  .hero-art { padding-bottom: 100px; }
  .hero-ticket { width: 190px; bottom: 74px; }
  .countdown > span { min-width: 73px; }
  .section-shell { padding: 65px 0; }
  .section-heading { margin-bottom: 25px; }
  .split-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-card { min-height: 88px; }
  .strategy-selector { justify-content: flex-start; }
  .strategy-selector span { width: 100%; }
  .spot-card { display: block; }
  .spot-image { aspect-ratio: 16/10; }
  .decision-panel { padding: 20px; }
  .privacy-note { text-align: left; }
  .add-form, .schedule-form { grid-template-columns: 1fr; }
  .crew-grid { grid-template-columns: repeat(2, 1fr); }
  .schedule-aside { display: block; }
  .schedule-aside img { max-height: 150px; }
  .timeline::before { left: 54px; }
  .timeline-item { grid-template-columns: 42px 1fr auto; gap: 17px; padding: 14px 12px; }
  .timeline-dot { left: 48px; width: 14px; height: 14px; }
  .timeline-main { padding-left: 6px; }
  .promise-grid { grid-template-columns: 1fr; }
  .source-section { grid-template-columns: 1fr; margin-bottom: 50px; padding: 27px 21px; }
  .log-form { grid-template-columns: 1fr; }
  .data-actions { flex-wrap: wrap; }
}

@media (max-width: 410px) {
  .hero-actions { display: grid; }
  .countdown { gap: 6px; }
  .countdown > span { min-width: 0; flex: 1; padding: 11px 8px; }
  .crew-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 42px 1fr; }
  .timeline-delete { grid-column: 2; justify-self: end; }
}

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