/* ==============================================
   リベラジ旅行部 長野旅行しおり — 共通スタイル
   ============================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;600;700&display=swap');

:root {
  --green:        oklch(0.47 0.10 150);
  --green-soft:   oklch(0.70 0.08 150);
  --green-light:  oklch(0.90 0.04 150);
  --green-bg:     oklch(0.96 0.02 150);
  --green-dark:   oklch(0.35 0.09 150);

  --sky:          oklch(0.56 0.10 222);
  --sky-soft:     oklch(0.76 0.07 222);
  --sky-light:    oklch(0.90 0.04 222);
  --sky-bg:       oklch(0.96 0.015 222);

  --peach:        oklch(0.75 0.09 30);
  --peach-light:  oklch(0.90 0.05 30);
  --peach-bg:     oklch(0.97 0.02 30);

  --yellow:       oklch(0.88 0.10 88);
  --yellow-bg:    oklch(0.97 0.03 88);

  --beige-bg:     oklch(0.975 0.015 78);

  --text:         oklch(0.20 0.02 145);
  --text-mid:     oklch(0.40 0.02 145);
  --text-light:   oklch(0.57 0.02 145);
  --text-muted:   oklch(0.68 0.015 145);

  --radius-lg: 20px;
  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --max-w:     1200px;
  --pad-x:     clamp(20px, 4vw, 64px);
  --gap:       clamp(16px, 2vw, 24px);
  --gap-lg:    clamp(24px, 3vw, 40px);
  --section-y: clamp(56px, 8vw, 96px);

  --shadow-sm: 0 1px 8px  oklch(0.47 0.10 150 / 0.07);
  --shadow:    0 2px 16px oklch(0.47 0.10 150 / 0.10);
  --shadow-md: 0 4px 28px oklch(0.47 0.10 150 / 0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: #faf9f7;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Noto Serif JP', serif;
  line-height: 1.3;
}

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,249,247,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--green-light);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 62px;
  display: flex;
  align-items: center;
}
.nav-brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex-shrink: 0;
  margin-right: auto;
}
.nav-brand-main {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
}
.nav-brand-sub {
  font-size: 10px;
  color: var(--text-muted);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
}
.nav-links a {
  display: block;
  padding: 7px 14px;
  text-decoration: none;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  border-radius: 24px;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.nav-links a:hover,
.nav-links a.is-active {
  background: var(--green-bg);
  color: var(--green);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--green-light);
  border-radius: 8px;
  padding: 6px 11px;
  color: var(--green);
  font-size: 17px;
  line-height: 1;
  margin-left: 16px;
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    inset: 62px 0 auto 0;
    background: rgba(250,249,247,0.98);
    border-bottom: 1px solid var(--green-light);
    flex-direction: column;
    padding: 8px 16px 16px;
    gap: 2px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 16px; font-size: 15px; }
}

/* ── Section Wrappers ── */
.section { padding: var(--section-y) var(--pad-x); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

/* ── Section Headers ── */
.section-label {
  display: inline-block;
  padding: 4px 14px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-family: 'Noto Sans JP', sans-serif;
}
.section-label-sky { background: var(--sky-light); color: var(--sky); }
.section-label-peach { background: var(--peach-light); color: var(--peach); }
.section-label-yellow { background: var(--yellow-bg); color: oklch(0.52 0.10 88); }

.section-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.01em;
}
.section-sub {
  margin-top: 8px;
  font-size: clamp(14px, 1.5vw, 15px);
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.8;
}
.section-header { margin-bottom: clamp(28px, 4vw, 48px); }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 8px auto 0; }

/* ── Backgrounds ── */
.bg-white  { background: #fff; }
.bg-main   { background: #faf9f7; }
.bg-green  { background: var(--green-bg); }
.bg-sky    { background: var(--sky-bg); }
.bg-beige  { background: var(--beige-bg); }
.bg-yellow { background: var(--yellow-bg); }
.bg-peach  { background: var(--peach-bg); }

/* ── Cards ── */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(18px, 2.5vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── Photo Cards ── */
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--beige-bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s, transform 0.22s;
}
.photo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.photo-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.photo-card-body {
  padding: 14px 18px 18px;
}
.photo-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.photo-card-text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
}
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-sm { padding: 9px 20px; font-size: 12px; }

.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green-soft);
}
.btn-outline:hover {
  background: var(--green-bg);
  transform: translateY(-1px);
}
.btn-sky {
  background: var(--sky);
  color: #fff;
  border-color: var(--sky);
}
.btn-sky:hover {
  background: oklch(0.50 0.11 222);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-white {
  background: #fff;
  color: var(--green);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--green-bg);
  transform: translateY(-1px);
}

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Checklist ── */
.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
.check-list li {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: background 0.15s;
}
.check-list li.is-checked {
  background: var(--green-bg);
}
.check-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  user-select: none;
}
.check-list li.is-checked label {
  color: var(--text-muted);
  text-decoration: line-through;
}
.check-list input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--green);
  flex-shrink: 0;
  cursor: pointer;
}

/* ── Route Diagram ── */
.route-diagram { display: flex; flex-direction: column; }
.route-stop { display: flex; align-items: flex-start; gap: 14px; }
.route-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 3px solid var(--green);
  flex-shrink: 0;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}
.route-dot.is-dest {
  width: 20px;
  height: 20px;
  background: var(--green);
  border-color: var(--green-dark);
  margin-top: 4px;
}
.route-stop-time {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  font-family: 'Noto Sans JP', sans-serif;
}
.route-stop-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 3px;
}
.route-seg {
  display: flex;
  gap: 14px;
  align-items: stretch;
  min-height: 56px;
}
.route-seg-line {
  width: 16px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.route-seg-line::before {
  content: '';
  width: 2px;
  background: repeating-linear-gradient(
    to bottom, var(--green-soft) 0, var(--green-soft) 6px,
    transparent 6px, transparent 12px
  );
}
.route-seg-info {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.route-transport {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  padding: 2px 12px;
  border-radius: 12px;
  display: inline-block;
  align-self: flex-start;
}
.route-duration {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--green-light);
  font-size: 14px;
}
.tl-item:last-child { border-bottom: none; }
.tl-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  min-width: 80px;
  flex-shrink: 0;
  font-family: 'Noto Sans JP', sans-serif;
}
.tl-time.is-big {
  font-size: 20px;
  color: var(--green);
  min-width: 80px;
}
.tl-event { color: var(--text); line-height: 1.6; }

/* ── Transport Card ── */
.transport-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tc-team {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
}
.tc-route {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.tc-time {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  font-family: 'Noto Sans JP', sans-serif;
}
.tc-mode {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--green-bg);
  border-radius: 12px;
  padding: 2px 10px;
  display: inline-block;
  align-self: flex-start;
}

/* ── Memo Card ── */
.memo-card {
  background: var(--green-bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  border-left: 4px solid var(--green-soft);
  margin-top: 24px;
}
.memo-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  font-family: 'Noto Sans JP', sans-serif;
}
.memo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.memo-list li {
  font-size: 13.5px;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.memo-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--green-soft);
  font-size: 18px;
  line-height: 1;
  top: 2px;
}

/* ── Info Row ── */
.info-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid oklch(0.93 0.02 150);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  min-width: 100px;
  flex-shrink: 0;
}
.info-value {
  color: var(--text);
  font-weight: 500;
}
.info-value.is-unknown {
  color: var(--text-muted);
  font-style: italic;
}

/* ── Day Section Header ── */
.day-header {
  padding: clamp(28px, 4vw, 48px) var(--pad-x);
}
.day-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.day-num-badge {
  font-size: clamp(64px, 10vw, 100px);
  font-weight: 700;
  line-height: 0.9;
  font-family: 'Noto Serif JP', serif;
  color: #fff;
  opacity: 0.25;
  flex-shrink: 0;
}
.day-header-text {}
.day-header-date {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.day-header-theme {
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  margin-top: 6px;
  max-width: 520px;
  line-height: 1.65;
}

.dh-1 { background: linear-gradient(135deg, oklch(0.58 0.08 78) 0%, oklch(0.52 0.10 90) 100%); }
.dh-2 { background: linear-gradient(135deg, var(--green) 0%, oklch(0.55 0.12 160) 100%); }
.dh-3 { background: linear-gradient(135deg, var(--sky) 0%, oklch(0.52 0.12 200) 100%); }
.dh-4 { background: linear-gradient(135deg, var(--peach) 0%, oklch(0.70 0.10 20) 100%); }

/* ── Subsection Title ── */
.subsec-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-light);
  font-family: 'Noto Serif JP', serif;
}

/* ── Ticket / Pass Card ── */
.pass-card {
  background: linear-gradient(135deg, var(--green-bg) 0%, var(--sky-bg) 100%);
  border: 1.5px dashed var(--green-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.pass-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.pass-detail {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  background: var(--green-dark);
  color: oklch(0.88 0.03 150);
  padding: clamp(36px, 5vw, 56px) var(--pad-x);
  text-align: center;
}
.site-footer-inner { max-width: var(--max-w); margin: 0 auto; }
.site-footer-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.site-footer-sub { font-size: 13px; opacity: 0.72; }
.site-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
}
.site-footer-links a {
  text-decoration: none;
  color: oklch(0.88 0.03 150);
  font-size: 13px;
  opacity: 0.78;
  transition: opacity 0.18s;
}
.site-footer-links a:hover { opacity: 1; }
