:root {
  --primary: #1c2d37;
  --secondary: #e4a853;
  --background: #f8f9fa;
  --surface: #ffffff;
  --subtle: #eaeff2;
  --subtle-strong: #d7e1e7;
  --text: #1c2d37;
  --muted: #6f7f89;
  --line: #eaeff2;
  --timeline: #d8dee4;
  --success-bg: #e8f1ef;
  --success-text: #284852;
  --pending-bg: #eef2f5;
  --pending-text: #60707c;
  --shadow-soft: 0 15px 30px rgba(28, 45, 55, 0.05);
  --shadow-hero: 0 30px 60px rgba(28, 45, 55, 0.08);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 8px;
  --content: 1120px;
  --font-display: "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", "Menlo", "Consolas", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(circle at top right, rgba(228, 168, 83, 0.16), transparent 24%),
    radial-gradient(circle at left 15%, rgba(28, 45, 55, 0.08), transparent 22%),
    linear-gradient(180deg, #fbfcfd 0%, var(--background) 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent 25%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.hero,
.panel,
.info-card,
.tab-panel,
.link-card,
.member-card,
.flight-block {
  background: var(--surface);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-hero);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(28, 45, 55, 0.02), transparent 36%),
    radial-gradient(circle at 85% 15%, rgba(228, 168, 83, 0.18), transparent 22%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.countdown::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--secondary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 14px;
  background: #f7fafb;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.05;
  margin-top: 18px;
  max-width: 10ch;
}
.hero p.lead,
.page-head p.lead,
.info-card p,
.link-card p,
.mini,
.amount-label,
.site-footer {
  color: var(--muted);
}
.hero p.lead,
.page-head p.lead {
  max-width: 62ch;
  font-size: 1.03rem;
  margin: 18px 0 0;
}

.meta-grid,
.link-grid,
.card-grid,
.family-grid,
.member-grid,
.summary-grid,
.payment-grid {
  display: grid;
  gap: 16px;
}
.meta-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 28px; }
.link-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 30px; }
.family-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.member-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.summary-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.payment-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.info-card,
.link-card,
.member-card,
.flight-block {
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.info-card h3,
.link-card h3 { font-size: 1.05rem; margin-bottom: 10px; }

.recommend-list {
  display: grid;
  gap: 10px;
}

.recommend-link {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7fafb;
  box-shadow: var(--shadow-soft);
}

.recommend-link strong {
  display: block;
  color: var(--primary);
  font-weight: 700;
}

.recommend-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  word-break: break-all;
}

.link-card {
  display: block;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.link-card:hover { transform: translateY(-3px); box-shadow: 0 20px 36px rgba(28, 45, 55, 0.08); }
.link-card::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--primary);
  font-size: 1.1rem;
}

.stack { display: grid; gap: 24px; margin-top: 28px; }
.page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}
.breadcrumbs a { text-decoration: underline; text-underline-offset: 0.18em; }
.panel {
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-hero);
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.tab-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #f3f6f8;
  color: var(--muted);
  cursor: pointer;
  transition: 180ms ease;
}
.tab-button.active {
  background: var(--primary);
  color: #fff;
}
.tab-panels { margin-top: 22px; }
.tab-panel {
  border-radius: var(--radius-lg);
  padding: 26px;
  display: none;
  box-shadow: inset 0 0 0 1px rgba(234, 239, 242, 0.7);
}
.tab-panel.active { display: block; }

.list,
.bullet-list {
  margin: 0;
  padding-left: 1.15rem;
}
.list li,
.bullet-list li { margin: 0.32rem 0; }

.amount,
.price,
.metric-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.amount {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
  line-height: 1;
}
.amount-label {
  font-size: 0.94rem;
  margin-top: 8px;
}
.metric-value {
  font-size: 1.25rem;
  color: var(--primary);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--timeline);
}
.timeline-item {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 42px;
}
.timeline-dot {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 6px rgba(228, 168, 83, 0.12);
}
.timeline-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
}
.schedule-disclosure {
  border: 0;
  width: 100%;
  text-align: left;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.schedule-disclosure::after {
  content: "詳しく見る";
  display: inline-block;
  margin-top: 10px;
  color: var(--secondary);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.timeline-item.open .schedule-disclosure::after {
  content: "閉じる";
}
.schedule-detail {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.timeline-item.open .schedule-detail {
  display: block;
}
.schedule-detail p {
  margin: 0 0 8px;
}
.schedule-detail a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}
.timeline-title {
  font-weight: 700;
  color: var(--primary);
}
.timeline-sub {
  color: var(--secondary);
  font-size: 0.92rem;
  font-family: var(--font-mono);
}

.flight-group { display: grid; gap: 18px; }
.flight-block h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--primary);
}
.flight-meta {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(228, 168, 83, 0.14);
  color: #8a6220;
  font-size: 0.82rem;
}

.member-card h4 { margin-bottom: 8px; font-size: 1.04rem; }
.member-card .price {
  font-size: 1.35rem;
  color: var(--primary);
}
.gratitude-banner {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(228, 168, 83, 0.18), rgba(255, 255, 255, 0.92));
  color: var(--primary);
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-soft);
}
.note-chip {
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(228, 168, 83, 0.14);
  color: #8a6220;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  line-height: 1;
}
.status-badge.pending {
  background: var(--pending-bg);
  color: var(--pending-text);
}
.status-badge.done {
  background: var(--success-bg);
  color: var(--success-text);
}

.payment-summary-row {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.payment-summary-row:last-child { border-bottom: 0; padding-bottom: 0; }
.payment-summary-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.payment-label {
  font-weight: 700;
  color: var(--primary);
}
.payment-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--subtle);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.site-footer {
  margin-top: 38px;
  font-size: 0.92rem;
  text-align: center;
}

.lock-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lock-card {
  width: min(100%, 420px);
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-hero);
}

.lock-card h1 {
  max-width: none;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-top: 12px;
}

.lock-card p {
  color: var(--muted);
  margin: 12px 0 0;
}

.lock-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.lock-input {
  width: 100%;
  border: 1px solid var(--subtle-strong);
  border-radius: 10px;
  padding: 14px 16px;
  font: inherit;
  color: var(--primary);
  background: #fff;
}

.lock-button {
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 13px 18px;
  font: inherit;
  cursor: pointer;
}

.lock-error {
  min-height: 1.5em;
  color: #a24a2a;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 20px), var(--content)); padding-top: 18px; }
  .hero, .panel, .tab-panel { padding: 22px; }
  .page-head { flex-direction: column; }
  .timeline-head, .payment-summary-top { flex-direction: column; align-items: flex-start; }
}
