:root {
  --bg: #fbfaf6;
  --bg-alt: #f1efe7;
  --surface: #ffffff;
  --text: #1f2a2c;
  --muted: #5d6a6c;
  --line: #e2ded2;
  --primary: #1f6f78;
  --primary-ink: #ffffff;
  --accent: #e0893a;
  --hero-from: #1f6f78;
  --hero-to: #2f8f83;
  --meetup: #1f6f78;
  --mokumoku: #b8651f;
  --line-green: #06c755;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121819;
    --bg-alt: #182022;
    --surface: #1d2729;
    --text: #e8eeee;
    --muted: #9fb0b2;
    --line: #2c3a3c;
    --primary: #4fb3bd;
    --primary-ink: #0d1516;
    --accent: #f0a563;
    --hero-from: #123f45;
    --hero-to: #1a5a55;
    --meetup: #6cc6cf;
    --mokumoku: #f0a563;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.logo-mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 8px; background: var(--primary); color: var(--primary-ink); font-size: 1rem;
}
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* hero */
.hero {
  position: relative;
  padding: 96px 0 140px;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .container { position: relative; }
.caret {
  display: inline-block; width: 0.08em; height: 0.9em; margin-left: -0.2em;
  background: var(--accent); vertical-align: -0.08em;
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.hero-eyebrow { margin: 0 0 8px; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; opacity: 0.8; }
.hero h1 { margin: 0 0 24px; font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.3; font-weight: 900; }
.hero-lead { margin: 0 0 36px; font-size: 1.05rem; opacity: 0.92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { background: #fff; color: #1f6f78; }
.hero-river { z-index: 1; position: absolute; left: 0; bottom: -1px; width: 100%; height: 80px; fill: var(--bg); }

/* buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-line { background: var(--line-green); color: #fff; }
.hero .btn-line { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.6); }

/* sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { margin: 0 0 32px; font-size: 1.6rem; font-weight: 900; }
.section-title::after {
  content: ""; display: block; width: 40px; height: 4px; margin-top: 10px;
  border-radius: 2px; background: var(--accent);
}

/* tags */
.tag {
  display: inline-block; margin: 0; padding: 2px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; line-height: 1.7; border: 1px solid currentColor;
}
.tag-meetup { color: var(--meetup); }
.tag-mokumoku { color: var(--mokumoku); }

/* next event */
.next { padding-top: 40px; }
.next-list { display: grid; gap: 16px; }
.next-card {
  display: flex; gap: 28px; align-items: center;
  padding: 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.next-date {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 96px; height: 96px; border-radius: 12px; background: var(--primary); color: var(--primary-ink); line-height: 1.1;
}
.next-month { font-size: 0.85rem; font-weight: 700; }
.next-day { font-size: 2.2rem; font-weight: 900; }
.next-week { font-size: 0.75rem; }
.next-body h3 { margin: 6px 0 4px; font-size: 1.3rem; }
.next-info { margin: 0 0 16px; color: var(--muted); }
.next-empty { padding: 32px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.next-empty p { margin-top: 0; color: var(--muted); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-text { margin: 0 0 1em; font-size: 1.05rem; }
.about-text strong { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 35%, transparent) 60%); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 700;
}
.points span { color: var(--accent); font-weight: 900; font-size: 0.9rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.card > p { margin: 0 0 16px; color: var(--muted); }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-weight: 500; }
.venue h3 { margin-top: 0; }
.venue a { font-size: 0.9rem; font-weight: 700; text-decoration: none; }

/* past events */
.past-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.past-list a {
  display: flex; align-items: center; gap: 16px; padding: 16px 4px;
  border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.past-list a:hover .past-title { color: var(--primary); }
.past-list time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.9rem; min-width: 8.5em; }
.past-title { font-weight: 700; }
.more { margin: 24px 0 0; text-align: right; }
.more a { font-weight: 700; text-decoration: none; }

/* reports */
.reports { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.report {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: transform 0.15s ease;
}
.report:hover { transform: translateY(-2px); }
.report img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 670; object-fit: cover; background: var(--bg-alt); }
.report-body { padding: 14px 18px 18px; }
.report time { color: var(--muted); font-size: 0.8rem; }
.report p { margin: 4px 0 0; font-weight: 700; line-height: 1.6; }

/* join */
.join-lead { margin: -8px 0 28px; color: var(--muted); }
.join-line {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label qr" "name qr" "desc qr" "sub qr" "btn qr";
  align-items: start; column-gap: 32px; margin-bottom: 20px; padding: 32px;
  background: color-mix(in srgb, var(--line-green) 8%, var(--surface));
  border: 2px solid var(--line-green); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: transform 0.15s ease;
}
.join-line:hover { transform: translateY(-2px); }
.join-line .join-label { grid-area: label; color: var(--line-green); }
.join-line .join-name { grid-area: name; font-size: 1.7rem; }
.join-line .join-desc { grid-area: desc; }
.join-line .join-desc + .join-desc { grid-area: sub; }
.join-line .btn { grid-area: btn; justify-self: start; margin-top: 16px; }
.join-qr {
  grid-area: qr; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px; background: #fff; border-radius: 12px;
}
.join-qr img { display: block; width: 148px; height: 148px; }
.join-qr small { color: #5d6a6c; font-size: 0.75rem; }
.join-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.join-card {
  display: flex; flex-direction: column; gap: 4px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease;
}
.join-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.join-label { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.join-name { font-size: 1.4rem; font-weight: 900; }
.join-desc { color: var(--muted); font-size: 0.9rem; }

/* footer */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; text-align: center; }
.site-footer p { margin: 0; }

/* responsive */
@media (max-width: 720px) {
  .pc { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: 0.8rem; }
  .hero { padding: 64px 0 110px; }
  .section { padding: 56px 0; }
  .about-grid, .cards, .join-links, .reports { grid-template-columns: 1fr; gap: 16px; }
  .join-line { grid-template-columns: 1fr; grid-template-areas: "label" "name" "desc" "sub" "btn"; padding: 24px; }
  .join-line .btn { justify-self: stretch; text-align: center; }
  .join-qr { display: none; }
  .next-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .next-date { flex-direction: row; gap: 8px; width: auto; height: auto; padding: 8px 16px; }
  .next-day { font-size: 1.4rem; }
  .past-list a { flex-wrap: wrap; gap: 4px 12px; }
  .past-title { width: 100%; }
}

@media (max-width: 420px) {
  .logo { font-size: 1rem; }
  .nav a:nth-child(1), .nav a:nth-child(4) { display: none; }
}

/* area */
.section-lead { margin: -8px 0 28px; color: var(--muted); }
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.areas a {
  display: flex; flex-direction: column; height: 100%; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); text-decoration: none; transition: border-color 0.15s ease;
}
.areas a:hover { border-color: var(--primary); }
.areas strong { font-size: 1.05rem; }
.areas span { color: var(--muted); font-size: 0.85rem; }

/* venue */
.venue-access { margin: 0 0 4px !important; color: var(--text) !important; font-weight: 700; }
.venue p { margin: 0 0 12px; color: var(--muted); }

/* faq */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.faq-item summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px;
  font-weight: 700; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-weight: 900; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

@media (max-width: 720px) {
  .areas { grid-template-columns: 1fr 1fr; }
}

/* links */
.text-link { font-weight: 700; text-decoration: none; color: var(--primary); }
.next-body h3 a { color: inherit; text-decoration: none; }
.next-body h3 a:hover { color: var(--primary); }
.next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.muted { color: var(--muted); }

/* sub pages */
.page-head {
  padding: 40px 0 48px;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
}
.page-head h1 { margin: 8px 0 12px; font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.35; font-weight: 900; }
.page-lead { margin: 0; max-width: 46em; opacity: 0.92; }
.page-eyebrow { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; opacity: 0.85; }
.tag-on-dark { color: #fff; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 0.8rem; opacity: 0.85; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { color: #fff; }

.detail { max-width: 800px; }
.detail .section-title { margin-top: 48px; }
.detail-text { margin: 0 0 1em; font-size: 1.02rem; }
.status {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 32px; padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
}
.status p { margin: 0; flex: 1 1 320px; }
.status-open { border-color: var(--primary); }
.detail-list { display: grid; grid-template-columns: 7em 1fr; gap: 14px 20px; margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-list dt { color: var(--muted); font-weight: 700; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.reports-single { grid-template-columns: minmax(0, 360px); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a {
  display: flex; flex-direction: column; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700;
}
.pager a:hover { border-color: var(--primary); }
.pager span { color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.pager-next { text-align: right; }

.stations { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.stations li { padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.stations li div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.stations li strong { font-size: 1.05rem; }
.stations li span { font-size: 0.85rem; }
.stations li p { margin: 4px 0 6px; }
.stations li a { font-size: 0.9rem; font-weight: 700; text-decoration: none; }

.area-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.area-card { display: flex; flex-direction: column; color: var(--text); text-decoration: none; transition: border-color 0.15s ease; }
.area-card:hover { border-color: var(--primary); }
.area-card h2 { margin: 0 0 2px; font-size: 1.3rem; }
.area-card p { margin: 0 0 10px; }
.area-card .text-link { margin-top: auto; }

/* footer nav */
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; text-align: left; }
.footer-nav a { display: block; padding: 2px 0; color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.footer-nav a:hover { color: var(--text); }
.footer-heading { margin: 0 0 6px !important; color: var(--text); font-weight: 700; }

@media (max-width: 720px) {
  .area-cards, .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
  .detail-list { grid-template-columns: 1fr; gap: 2px; }
  .detail-list dd { margin-bottom: 12px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}
