/* JO Forum — site styles */
:root {
  --ink: #10232F;
  --ink-2: #3C4A54;
  --muted: #5A6670;
  --faint: #8A949B;
  --sand: #F3EEE4;
  --sand-2: #E8E0D1;
  --paper: #FBF8F2;
  --coral: #A8402A;
  --coral-l: #E08A6E;
  --teal: #1D7F8C;
  --teal-d: #236E75;
  --teal-l: #7FC0C4;
  --navy: #12306A;
  --earth: #9A6E4E;
  --line: rgba(16, 35, 47, 0.15);
  --serif-jp: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --serif-en: 'Marcellus', 'Shippori Mincho', serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--coral); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif-jp); font-weight: 500; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.en { font-family: var(--serif-en); letter-spacing: 0.06em; }
.label { font-family: var(--serif-en); font-size: 17px; letter-spacing: 0.2em; color: var(--coral); }
.dark .label { color: var(--coral-l); }
.h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.6; }
.lead { color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nw { display: inline-block; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.section { padding-block: 112px; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* Mon-sar pattern */
.minsa { display: inline-flex; gap: 2px; }
.minsa i { width: 6px; height: 6px; background: var(--coral); display: block; }
.minsa i.t { background: var(--teal-d); margin-left: 4px; }
.minsa i.t + i.t { margin-left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 500;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: inherit; font-weight: 500; cursor: pointer; text-align: center;
}
.btn:hover { color: var(--coral); border-color: var(--coral); }
.btn-primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-primary:hover { background: #8F3522; border-color: #8F3522; color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.btn-dark:hover { background: #1d3a4c; color: #fff; border-color: #1d3a4c; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn svg { flex: none; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--sand); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; mix-blend-mode: multiply; }
.brand .wm { font-family: var(--serif-en); font-size: 23px; letter-spacing: 0.08em; color: var(--navy); line-height: 1.2; }
.brand .wm b { font-weight: 400; color: var(--teal); }
.brand .sub { display: block; font-size: 9.5px; letter-spacing: 0.2em; color: var(--muted); font-family: var(--sans); }
.nav { display: flex; align-items: center; gap: 4px 24px; font-size: 14px; }
.nav .btn { min-height: 44px; padding: 0 20px; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--sand); flex-direction: column; align-items: stretch; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 1px solid var(--ink); }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; color: var(--ink); }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 64px 96px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-kicker { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: 0.3em; color: var(--coral); }
.hero h1 { font-size: clamp(30px, 3.9vw, 52px); line-height: 1.45; letter-spacing: 0.06em; }
.hero .en-sub { font-family: var(--serif-en); font-size: 21px; color: var(--teal); letter-spacing: 0.06em; }
.hero .en-sub span { color: var(--earth); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero-photo { flex: 1 1 480px; min-width: 0; position: relative; }
.hero-photo img { width: 100%; height: 600px; object-fit: cover; border-radius: 240px 240px 4px 4px; }
.hero-badge { position: absolute; left: -16px; bottom: 36px; background: var(--sand); padding: 14px 22px; box-shadow: 0 10px 30px rgba(16,35,47,0.08); display: flex; flex-direction: column; line-height: 1.5; }
.hero-badge .en { font-size: 28px; }
@media (max-width: 640px) {
  .hero { padding-block: 40px 72px; gap: 40px; }
  .hero-photo img { height: 440px; border-radius: 180px 180px 4px 4px; }
  .hero-badge { left: 12px; }
}

.wave { display: block; width: 100%; height: 40px; }

/* About */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > .side { flex: 1 1 280px; min-width: 0; }
.split > .main { flex: 2 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.quote { font-family: var(--serif-jp); font-size: clamp(19px, 2vw, 22px); line-height: 2; }
.name-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.name-grid > div { background: var(--paper); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.name-grid .en { font-size: 25px; color: var(--teal-d); line-height: 1.4; }

/* Dark band */
.dark { background: var(--ink); color: #EDE7DB; }
.dark a { color: #EDE7DB; }
.dark .lead { color: #B9C2C8; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 64px; }
.pillars > div { border-top: 1px solid rgba(237,231,219,0.35); padding-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.pillars .num { font-family: var(--serif-en); color: var(--teal-l); letter-spacing: 0.2em; font-size: 15px; }
.pillars .en { font-size: 30px; line-height: 1.25; }
.pillars .jp { font-size: 14px; color: #B9C2C8; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.band-head > * { flex: 1 1 380px; min-width: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 48px; }
.steps > div { padding: 26px 22px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.steps > div.on { background: var(--paper); border-color: var(--teal-d); }
.steps .n { font-family: var(--serif-en); font-size: 42px; line-height: 1; color: var(--faint); }
.steps .on .n { color: var(--teal-d); }
.steps .t { font-family: var(--serif-jp); font-size: 19px; }

/* Principles */
.tint { background: var(--sand-2); }
.principles > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 32px; padding: 20px 0; border-bottom: 1px solid rgba(16,35,47,0.18); }
.principles > div:last-child { border-bottom: 0; }
.principles .en { flex: 0 0 220px; font-size: 32px; line-height: 1.2; }
.principles .last { color: var(--coral); }
.principles .jp { font-family: var(--serif-jp); font-size: 19px; }

.motto { max-width: 960px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.motto p.jp { font-family: var(--serif-jp); font-size: clamp(22px, 3vw, 34px); line-height: 1.9; }
.motto p.en { font-family: var(--serif-en); font-size: 20px; color: var(--teal-d); }

/* Activity */
.paper-band { background: var(--paper); border-block: 1px solid rgba(16,35,47,0.1); }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rows .k { font-family: var(--serif-jp); font-size: 18px; }
.rows .v { font-size: 14px; color: var(--muted); text-align: right; }
.figure img { width: 100%; height: 440px; object-fit: cover; border-radius: 4px; }
.figure figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; letter-spacing: 0.08em; }
.figure { margin: 0; }

/* Journal (Instagram) */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.journal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.post { display: flex; flex-direction: column; gap: 10px; }
.post .ph { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 1 / 1; background: var(--sand-2); }
.post .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post:hover .ph img { transform: scale(1.04); }
.post .date { font-family: var(--serif-en); font-size: 13px; letter-spacing: 0.12em; color: var(--muted); }
.post .cap { font-size: 15px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .kind { position: absolute; top: 10px; right: 10px; background: rgba(16,35,47,0.6); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.journal-empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line); color: var(--muted); }
.skeleton .ph { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* Lecture feature */
.feature { display: flex; flex-wrap: wrap; background: var(--paper); border: 1px solid rgba(16,35,47,0.12); }
.feature > img { flex: 1 1 400px; min-width: 0; min-height: 360px; object-fit: cover; }
.feature .body { flex: 1 1 440px; min-width: 0; padding: 44px 40px; display: flex; flex-direction: column; gap: 18px; }
.chip { display: inline-flex; align-items: center; font-size: 12px; padding: 2px 12px; border-radius: 999px; background: var(--coral); color: #fff; letter-spacing: 0.06em; }
.chip.gray { background: var(--muted); }
.chip.teal { background: var(--teal-d); }
.dl { margin: 0; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px 16px; font-size: 15px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
@media (max-width: 640px) { .feature .body { padding: 32px 24px; } }

/* Schedule */
.sched { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sched > div { background: var(--sand); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 150px; }
.sched .d { font-family: var(--serif-en); font-size: 38px; line-height: 1; }
.sched .t { font-family: var(--serif-jp); font-size: 17px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 1px 10px; border-radius: 999px; border: 1px solid currentColor; }
.tag.teal { color: var(--teal-d); }
.tag.coral { color: var(--coral); }
.tag.gray { color: var(--muted); }
.legend { display: flex; gap: 20px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; display: inline-block; }

/* Join */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 6px; }
.card { background: var(--sand); color: var(--ink); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.dark .card a { color: var(--ink); }
.dark .card a.btn-primary { color: #fff; }
@media (max-width: 640px) { .card { padding: 28px 22px; } }

/* Closing */
.closing { position: relative; }
.closing img { width: 100%; height: 440px; object-fit: cover; object-position: center 55%; }
.closing .ov { position: absolute; inset: 0; background: rgba(16,35,47,0.32); display: flex; align-items: center; justify-content: center; padding: 24px; }
.closing p { color: #fff; text-align: center; font-family: var(--serif-jp); font-size: clamp(21px, 2.6vw, 32px); line-height: 2; text-shadow: 0 1px 12px rgba(0,0,0,.25); }

/* Footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; padding-block: 56px 44px; }
.site-footer .emb { width: 110px; mix-blend-mode: multiply; }
.site-footer .links { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); text-align: right; }
@media (max-width: 640px) { .site-footer .links { text-align: left; } }

/* Lecture detail */
.lec-hero { position: relative; }
.lec-hero > img { width: 100%; height: 420px; object-fit: cover; object-position: center 40%; }
.lec-hero .ov { position: absolute; inset: 0; background: linear-gradient(to right, rgba(16,35,47,0.8), rgba(16,35,47,0.2)); display: flex; align-items: flex-end; }
.lec-hero .ov .wrap { width: 100%; padding-bottom: 52px; color: #fff; display: flex; flex-direction: column; gap: 12px; }
.lec-hero h1 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.5; }
.lec-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: 72px 112px; }
.lec-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 72px; }
.lec-side { flex: 1 1 360px; min-width: 0; position: sticky; top: 96px; }
@media (max-width: 960px) { .lec-side { position: static; } }
.table { margin: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); border-top: 1px solid var(--line); }
.table dt, .table dd { padding: 15px 0; border-bottom: 1px solid var(--line); margin: 0; }
.table dt { color: var(--muted); }
.table dd .small { display: block; }
.speaker { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.speaker .photo { flex: 0 0 170px; height: 210px; object-fit: cover; background: var(--sand-2); }
.speaker .info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rich { color: var(--ink-2); }
.rich p { margin: 0 0 1em; }
.rich h2, .rich h3 { font-size: 20px; margin: 1.4em 0 .6em; color: var(--ink); }
.rich ul { padding-left: 1.3em; }
.table.program { grid-template-columns: 150px minmax(0, 1fr); }
.program dt { font-size: 17px; color: var(--teal-d); white-space: nowrap; }
@media (max-width: 640px) { .table.program { grid-template-columns: 116px minmax(0, 1fr); } .program dt { font-size: 14px; } }
.map { width: 100%; height: 340px; border: 0; border-radius: 4px; background: var(--sand-2); }

/* Form */
.form-card { background: #fff; border: 1px solid rgba(16,35,47,0.12); padding: 34px 30px; display: flex; flex-direction: column; gap: 20px; }
.seats { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); min-height: 24px; margin-bottom: 10px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field legend { font-size: 14px; font-weight: 500; padding: 0; }
.req { color: var(--coral); font-size: 12px; margin-left: 4px; }
.input { min-height: 48px; padding: 10px 14px; border: 1px solid rgba(16,35,47,0.28); border-radius: 4px; font: inherit; font-size: 16px; background: var(--paper); color: var(--ink); width: 100%; }
textarea.input { resize: vertical; min-height: 96px; }
.input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.input[aria-invalid="true"] { border-color: var(--coral); }
.err { color: var(--coral); font-size: 13px; min-height: 0; }
fieldset { margin: 0; padding: 0; border: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(16,35,47,0.28); border-radius: 999px; font-size: 14px; background: #fff; }
.pills input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pills input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 4px; font-size: 14px; }
.notice.bad { background: #FBEAE5; color: #7E2E1E; }
.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 0; }

/* Lecture list */
.lec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.lec-card { background: var(--paper); border: 1px solid rgba(16,35,47,0.12); display: flex; flex-direction: column; }
.lec-card img { width: 100%; height: 200px; object-fit: cover; }
.lec-card .b { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.lec-card .t { font-family: var(--serif-jp); font-size: 19px; line-height: 1.6; }

/* Links (Instagram LP) */
.lp { max-width: 480px; margin: 0 auto; background: var(--sand); }
.lp-hero { position: relative; }
.lp-hero > img { width: 100%; height: 440px; object-fit: cover; object-position: center 30%; }
.lp-hero .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(to bottom, rgba(243,238,228,0), var(--sand)); }
.lp-head { margin-top: -110px; position: relative; padding: 0 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.lp-head .logo { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; border: 6px solid var(--sand); background: #fff; }
.lp-head h1 { font-size: 26px; line-height: 1.6; }
.lp-links { padding: 28px 24px 0; display: flex; flex-direction: column; gap: 12px; }
.lp-links .btn { justify-content: space-between; min-height: 58px; padding: 0 24px; }
.lp-sec { padding: 64px 24px 0; display: flex; flex-direction: column; gap: 14px; }
.lp-sec h2 { font-size: 22px; line-height: 1.7; }
.lp-next { margin: 28px 24px 0; padding: 24px; background: var(--ink); color: #EDE7DB; display: flex; flex-direction: column; gap: 8px; }
.lp-next .big { font-family: var(--serif-en); font-size: 40px; line-height: 1.1; }
.lp-lec { margin: 28px 24px 0; display: flex; flex-direction: column; background: var(--paper); border: 1px solid rgba(16,35,47,0.12); }
.lp-lec img { width: 100%; height: 170px; object-fit: cover; }
.lp-lec .b { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.lp-grid a { aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand-2); }
.lp-grid img { width: 100%; height: 100%; object-fit: cover; }
.lp-foot { padding: 56px 24px 48px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
