/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio.
   Put this @layer first; product CSS outside the layer always wins. */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate — tile thumbs, decorative fills — never on full-frame content). */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }   /* block-level reservation for a shared baseline */
  .od-nowrap  { white-space: nowrap; }           /* 数字+单位 · 价格+起 · 日期+星期 */
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; } /* CJK labels break at spaces / <wbr> first */

  /* screen skeleton (optional): bars take their own space, the middle scrolls — no padding guessed for chrome */
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */

/* ============ Design tokens ============ */
:root {
  --paper:        #F6F6F4;
  --surface:      #FFFFFF;
  --ink:          #2A2A26;
  --muted:        #5F5F5A;
  --faint:        #8A8A84;
  --hairline:     #E1E1DC;
  --hair-strong:  #CFCFC8;
  --accent:       #B13A30;
  --accent-deep:  #8B2620;
  --accent-wash:  #F5EAE7;

  --serif-en:   "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif-ja:   "Shippori Mincho", "Cormorant Garamond", "Hiragino Mincho ProN", serif;
  --sans-en:    "Public Sans", "Segoe UI", system-ui, sans-serif;
  --sans-ja:    "Noto Sans JP", "Public Sans", "Segoe UI", sans-serif;

  --fs-hero:   clamp(2.6rem, 6.4vw, 4.4rem);
  --fs-h1:     clamp(2.15rem, 4.6vw, 3.3rem);
  --fs-h2:     clamp(1.75rem, 3.4vw, 2.5rem);
  --fs-h3:     clamp(1.3rem, 2.2vw, 1.6rem);
  --fs-lead:   clamp(1.15rem, 1.8vw, 1.3rem);
  --fs-body:   1.0625rem;
  --fs-small:  0.9375rem;
  --fs-meta:   0.8125rem;

  --lh-tight:  1.15;
  --lh-body:   1.65;

  --radius:     2px;
  --shadow-1:   0 1px 2px rgba(42,42,38,.06), 0 10px 28px -14px rgba(42,42,38,.18);
  --shadow-2:   0 2px 6px rgba(42,42,38,.08), 0 24px 60px -24px rgba(42,42,38,.28);

  --t-fast:   180ms;
  --t-med:    280ms;

  --container: 1180px;
  --gutter:    clamp(20px, 5vw, 48px);
  --sec-pad:   clamp(64px, 10vw, 120px);
}

/* ============ Base ============ */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans-en);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ja"] body { font-family: var(--sans-ja); line-height: 1.8; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: var(--radius); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); width: 100%; }

/* ============ Headings & type ============ */
h1, h2, h3, h4 { font-family: var(--serif-en); font-weight: 600; line-height: var(--lh-tight); color: var(--ink); letter-spacing: .01em; margin: 0; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4 { font-family: var(--serif-ja); font-weight: 700; letter-spacing: .04em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0; }
.lede { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); max-width: 62ch; }
html[lang="ja"] .lede { line-height: 1.75; }

.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--muted); max-width: 68ch; }
.prose .lede { margin-bottom: 1.4em; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-deep); margin: 0 0 16px;
}
html[lang="ja"] .kicker { letter-spacing: .08em; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--accent); flex: none; }
.kicker.centered { justify-content: center; }
.kicker.centered::after { content: ""; width: 28px; height: 2px; background: var(--accent); flex: none; }

.section { padding-block: var(--sec-pad); }
.section.paper-alt { background: var(--surface); }
.section.ink-dark { background: var(--ink); color: #EFEFEB; }
.section.ink-dark h2 { color: #fff; }
.section.ink-dark .lede { color: #C8C8C2; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head .lede { margin-inline: auto; }

/* about us section */
/* .added {
  margin-bottom: -60px;

} */

/* about us page section wrapper */
.about-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  margin-left: -12px;
  padding: 8px 14px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 455px);
  align-items: start;
  gap: 28px;
}


blockquote {
  margin: 0; padding: 0 0 0 32px; border-left: 2px solid var(--accent);
  font-family: var(--serif-en); font-size: var(--fs-lead); font-style: italic; line-height: 1.5;
}
html[lang="ja"] blockquote { font-family: var(--serif-ja); font-style: normal; line-height: 1.8; }
blockquote cite { display: block; margin-top: 12px; font-family: var(--sans-en); font-size: var(--fs-small); font-style: normal; color: var(--muted); }
html[lang="ja"] blockquote cite { font-family: var(--sans-ja); }

/* ============ Header & nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; color: var(--accent); }
.brand-name { font-family: var(--serif-en); font-weight: 700; font-size: 1.28rem; line-height: 1.1; }
html[lang="ja"] .brand-name { font-family: var(--serif-ja); letter-spacing: .04em; }
.brand-sub { display: block; font-family: var(--sans-en); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: 2px; }
html[lang="ja"] .brand-sub { font-family: var(--sans-ja); letter-spacing: .12em; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  position: relative; display: inline-block; padding: 10px 10px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-small);
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) cubic-bezier(.22,.61,.36,1);
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--accent-deep); }

.lang-switch {
  display: inline-flex; border: 1px solid var(--hair-strong); border-radius: var(--radius);
  overflow: hidden; margin-left: 8px;
}
.lang-btn {
  border: 0; background: transparent; padding: 7px 12px; font: 500 .81rem var(--sans-ja);
  color: var(--muted); cursor: pointer; transition: background var(--t-fast), color var(--t-fast);
  min-height: 38px;
}
.lang-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang-btn:not([aria-pressed="true"]):hover { background: var(--hairline); color: var(--ink); }

.volunteer-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: var(--radius); font-weight: 600; font-size: .875rem;
  border: 1px solid var(--accent); transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.volunteer-cta:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.volunteer-cta svg { width: 16px; height: 16px; }

.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--hair-strong);
  background: transparent; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center;

  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  color: inherit;
  outline: none;

}
.header-actions { display: inline-flex; align-items: center; gap: 12px; }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95; visibility: hidden; pointer-events: none;
}
.mobile-menu .mm-veil { position: absolute; inset: 0; background: rgba(42,42,38,.45); opacity: 0; transition: opacity var(--t-med); }
.mobile-menu .mm-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw, 360px);
  background: var(--surface); border-left: 1px solid var(--hairline);
  padding: 24px; transform: translateX(100%); transition: transform var(--t-med) cubic-bezier(.22,.61,.36,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-menu[data-open="true"] { visibility: visible; pointer-events: auto; }
.mobile-menu[data-open="true"] .mm-veil { opacity: 1; }
.mobile-menu[data-open="true"] .mm-panel { transform: translateX(0); }
.mm-close { align-self: flex-end; width: 44px; height: 44px; border: 1px solid var(--hair-strong); background: transparent; border-radius: var(--radius); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mm-nav { margin-top: 24px; display: flex; flex-direction: column; }
.mm-nav a {
  padding: 14px 4px; border-bottom: 1px solid var(--hairline); color: var(--ink); text-decoration: none;
  font-family: var(--serif-en); font-size: var(--fs-h3); font-weight: 600;
}
html[lang="ja"] .mm-nav a { font-family: var(--serif-ja); }
.mm-nav a.is-active { color: var(--accent-deep); }
.mm-nav a.is-active::before { content: "— "; color: var(--accent); }
.mm-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }
.mm-foot .lang-switch { display: inline-flex; justify-self: start; }

.jlc-logo {
  height: 130px;
  width: 130px;
  padding-bottom: ;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--radius); font-family: var(--sans-en); font-weight: 600;
  font-size: .9375rem; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap; min-height: 46px;
}

.registration-closed:disabled { opacity: .5; pointer-events: none;}

html[lang="ja"] .btn { font-family: var(--sans-ja); letter-spacing: .02em; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost-accent { background: transparent; border-color: var(--accent); color: var(--accent-deep); }
.btn-ghost-accent:hover { background: var(--accent); color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }

/* ============ Hero ============ */
.hero { position: relative; min-height: clamp(560px, 88svh, 780px); display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 56%; animation: heroSlow 2400ms cubic-bezier(.22,.61,.36,1);
}
@keyframes heroSlow { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(98deg, rgba(42,42,38,.92) 0%, rgba(42, 42, 38, 0.816) 42%, rgba(42,42,38,.38) 78%, rgba(42,42,38,.22) 100%),
    rgba(42,42,38,.18);
}
.hero-content { position: relative; z-index: 1; color: #fff; padding-block: clamp(72px, 12vh, 120px); max-width: 640px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px; color: #F2B3A9; font-size: .78rem;
  letter-spacing: .24em; text-transform: uppercase; font-weight: 600; margin-bottom: 20px;
}
html[lang="ja"] .hero-kicker { letter-spacing: .08em; font-size: .82rem; }
.hero-kicker::before { content: ""; width: 30px; height: 2px; background: var(--accent); }
.hero h1 { color: #fff; font-size: var(--fs-hero); margin-bottom: 22px; text-wrap: balance; }
.hero .hero-lede { color: #E4E4DE; font-size: var(--fs-lead); line-height: 1.6; max-width: 54ch; margin-bottom: 36px; }
html[lang="ja"] .hero .hero-lede { line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 44px; color: #C9C9C2; font-size: var(--fs-small); }
.hero-meta .hm-item { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 15px; height: 15px; color: #E2A89F; }

/* ============ Pillars / value cards ============ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); }
.pillar { border-top: 2px solid var(--ink); padding-top: 22px; }
.pillar .pillar-ico { width: 40px; height: 40px; color: var(--accent); margin-bottom: 18px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: var(--fs-small); max-width: 38ch; }
html[lang="ja"] .pillar p { line-height: 1.75; }

/* Who we are section */
.who-we-are {
  background: #f8f4f1;
  padding: 26px 8vw 22px;
}

.who-we-are__content {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(360px, 1fr);
  /* align-items: center; */
  justify-content: space-between;
  gap: 74px;
}

.who-we-are__text {
  padding-left: 6px;
  font-size: 1.3rem !important;
  overflow:none;
  height:5%;

}

.who-we-are h2 {
  margin: 0 0 15px;
  color: #8f3434;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
}

.who-we-are p {
  margin: 0 0 17px;
  color: #393737;
  font-size: 1rem !important;
  line-height: 1.55;
}

.who-we-are__link {
  color: #8f3434;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.who-we-are__image-wrap {
  aspect-ratio: 1.07 / 1;
  overflow: hidden;
  background: #dbe6ee;
}

.who-we-are__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}



/* ============ Event cards ============ */
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(16px, 2.4vw, 28px); }
.event-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); overflow: hidden; text-align: left; cursor: pointer; width: 100%;
  padding: 0; color: inherit; font: inherit;
  height: 100%;
  transition: transform var(--t-med) cubic-bezier(.22,.61,.36,1), box-shadow var(--t-med), border-color var(--t-med);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: var(--hair-strong); }
.event-card .evt-media { position: relative; }
.event-card .evt-media img {
  --od-ratio: 3 / 2; aspect-ratio: var(--od-ratio); object-fit: cover; width: 100%; height: auto; display: block;
}
.evt-status {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--ink); color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--radius); font-weight: 600;
}
.evt-status.sold { background: var(--muted); }
.evt-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 0; flex: 1; }
.evt-date { display: flex; align-items: center; gap: 8px; font-size: var(--fs-meta); font-weight: 600; letter-spacing: .05em; color: var(--accent-deep); text-transform: uppercase; margin-bottom: 8px; }
.evt-date svg { width: 14px; height: 14px; }
.evt-body h3 { font-size: 1.28rem; margin-bottom: 10px; }
.evt-body .evt-desc { color: var(--muted); font-size: var(--fs-small); margin-bottom: 16px; }
.evt-meta { margin-top: auto; display: flex; align-items: center; gap: 14px; font-size: var(--fs-meta); color: var(--muted); }
.evt-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.evt-meta svg { width: 14px; height: 14px; color: var(--faint); }
.evt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.evt-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-deep); font-weight: 600; font-size: .875rem; text-decoration: none; }
.evt-link svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.event-card:hover .evt-link svg { transform: translateX(3px); }
.reg-state { font-size: .78rem; font-weight: 600; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 6px; }
.reg-state svg { width: 14px; height: 14px; }

.evt-title { display: block; font-family: var(--serif-en); font-weight: 600; font-size: 1.28rem; line-height: 1.3; color: var(--ink); margin-bottom: 10px; }
html[lang="ja"] .evt-title { font-family: var(--serif-ja); font-weight: 700; letter-spacing: .04em; }
.evt-more { margin-top: clamp(28px, 4vw, 40px); }
.evt-detail-text { color: var(--muted); white-space:pre-line; }

.event-tabs { display: inline-flex; flex-wrap: wrap; border-bottom: 1px solid var(--hairline); margin-bottom: clamp(28px, 4vw, 40px); }
.event-tabs .tab {
  appearance: none; margin: 0; border: 0; background: transparent; cursor: pointer;
  font: 600 .9rem var(--sans-en); color: var(--muted); padding: 12px 18px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
html[lang="ja"] .event-tabs .tab { font-family: var(--sans-ja); }
.event-tabs .tab:hover { color: var(--ink); }
.event-tabs .tab.is-active, .event-tabs .tab[aria-selected="true"] { color: var(--accent-deep); border-bottom-color: var(--accent); }

/* designed placeholder tile for non-photo cards */
.evt-paper {
  position: relative; --od-ratio: 3 / 2; aspect-ratio: var(--od-ratio); width: 100%;
  background:
    radial-gradient(120% 120% at 85% 10%, rgba(177,58,48,.10) 0, transparent 46%),
    repeating-linear-gradient(0deg, rgba(42,42,38,.035) 0 1px, transparent 1px 22px),
    var(--paper);
  display: grid; place-items: center; overflow: hidden;
}
.evt-paper .kanji-mark {
  font-family: var(--serif-ja); font-weight: 700; font-size: clamp(4.5rem, 12vw, 6.5rem);
  color: rgba(42,42,38,.10); line-height: 1; user-select: none;
}
.evt-paper .kanji-red { position: absolute; right: 16px; bottom: 12px; font-family: var(--serif-ja); font-size: 1.05rem; color: var(--accent); letter-spacing: .12em; }

.details {
 
}
/* ============ News list ============ */
.news-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: baseline;
  padding-block: 22px; border-top: 1px solid var(--hairline); text-decoration: none; color: inherit;
  transition: background var(--t-fast);
}
.news-row:last-child { border-bottom: 1px solid var(--hairline); }
.news-row:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.news-date { font-size: var(--fs-meta); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.news-title { font-family: var(--serif-en); font-size: var(--fs-h3); font-weight: 600; margin-bottom: 6px; color: var(--ink); }
html[lang="ja"] .news-title { font-family: var(--serif-ja); }
.news-excerpt { color: var(--muted); font-size: var(--fs-small); max-width: 72ch; }
.news-row:hover .news-title { color: var(--accent-deep); }

/* ============ Gallery ============ */
.gallery { columns: 3; column-gap: clamp(14px, 2vw, 24px); }
.gallery figure { break-inside: avoid; margin: 0 0 clamp(14px, 2vw, 24px); }
.gallery .g-img { border-radius: var(--radius); overflow: hidden; background: var(--hairline); }
.gallery img { width: 100%; height: auto; display: block; transition: transform 500ms cubic-bezier(.22,.61,.36,1); }
.gallery figure:hover .g-img { box-shadow: var(--shadow-1); }
.gallery figure:hover img { transform: scale(1.02); }
.gallery figcaption { font-size: var(--fs-meta); color: var(--muted); margin-top: 8px; }

/* ============ Sponsor wall ============ */
.sponsor-grid { display: grid;   grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
 gap: clamp(12px, 2vw, 22px);overflow:hidden;
}
.sponsor-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  aspect-ratio: 4 / 3; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 22px; text-align: center; height:100%;
}
.sponsor-tile .sp-mark { width: max-content; height: 50%; color: var(--faint); }
.sp-1 { width: 100%; height: 150% !important; justify-content: center; align-items: center; display: flex; }
.sp-2 { width: 100%; height: 70% !important; justify-content: center; align-items: center; display: flex; }
.ac-logo {background-color: #15803D; padding: 4px 8px; border-radius: var(--radius); box-shadow: var(--shadow-1);}
.sponsor-tile .sp-label { font-family: var(--serif-en); font-size: 1.02rem; font-weight: 700; color: var(--ink); }
html[lang="ja"] .sponsor-tile .sp-label { font-family: var(--serif-ja); }
.sponsor-tile .sp-note { font-size: var(--fs-meta); color: var(--faint); line-height: 1.5; }
.sponsor-tile:hover { border-color: var(--accent); }
.sponsor-tile:hover .sp-label { color: var(--accent-deep); }
.sponsor-tile a { color: var(--accent-deep); text-decoration: none; }
.sponsor-note { margin: 26px auto 0; max-width: 56ch; text-align: center; color: var(--faint); font-size: var(--fs-meta); }


/* ============ Stat / strip ============ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.who-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); }

/* ============ Forms ============ */
.form-panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field label .req { color: var(--accent); margin-left: 2px; }
.field > legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 8px; }
.field .hint { font-size: var(--fs-meta); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--hair-strong); border-radius: var(--radius); background: var(--surface);
  padding: 12px 14px; font: 400 1rem var(--sans-en); color: var(--ink); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
html[lang="ja"] .field input, html[lang="ja"] .field select, html[lang="ja"] .field textarea { font-family: var(--sans-ja); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--accent); background: var(--accent-wash); }
.field .err-msg { font-size: .8125rem; color: var(--accent-deep); font-weight: 600; display: none; }
.field.is-error .err-msg { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.check-list { display: grid; gap: 12px; }
.check-list .ck { display: flex; align-items: flex-start; gap: 12px; }
.check-list input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }

.form-summary {
  display: none; border: 1px solid var(--accent); background: var(--accent-wash); color: var(--accent-deep);
  padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; font-size: .9375rem;
}
.form-summary[data-shown="true"] { display: block; }
.form-summary h4 { font-family: var(--sans-en); font-size: .9rem; font-weight: 700; margin-bottom: 6px; color: var(--accent-deep); }
html[lang="ja"] .form-summary h4 { font-family: var(--sans-ja); }
.form-summary ul { margin: 0; padding-left: 20px; }

.form-success {
  display: none; text-align: center; padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 48px);
}
.form-success[data-shown="true"] { display: block; }
.form-success .ref { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.form-success h3 { margin: 18px 0 12px; }
.form-success .lede { margin-inline: auto; }
.form-success .btn { margin-top: 28px; }

/* ============ Dialog ============ */
dialog {
  border: 0; border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--ink);
  max-width: min(680px, calc(100vw - 32px)); width: 100%;
  box-shadow: var(--shadow-2);
}
dialog::backdrop { background: rgba(42,42,38,.55); }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 0; }
.dlg-date { margin: 8px 0 0; color: var(--accent-deep); font-size: .95rem; font-weight: 600; }
.dlg-close { width: 44px; height: 44px; border: 1px solid var(--hair-strong); background: transparent; border-radius: var(--radius); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dlg-body { padding: 22px 28px 30px; }
.dlg-media { margin: 0 0 22px; }
.dlg-media img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.dlg-meta { display: grid; gap: 10px; margin: 18px 0; }
.dlg-meta .dm { display: flex; gap: 10px; align-items: baseline; font-size: .9375rem; }
.dlg-meta .dm svg { width: 15px; height: 15px; flex: none; color: var(--accent-deep); align-self: center; }
.dlg-meta .dm strong { min-width: 84px; font-weight: 600; font-size: .85rem; }
dialog[open] { animation: dlgIn var(--t-med) cubic-bezier(.22,.61,.36,1); }
dialog[open]::backdrop { animation: veilIn var(--t-med); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }
.dlg-rsvp { margin-top: 20px; border-top: 1px solid var(--hairline); padding-top: 20px; }
.dlg-rsvp .field input { font-size: .9375rem; }

/* ============ Page hero (sub pages) ============ */
.page-hero { border-bottom: 1px solid var(--hairline); background: var(--surface); }
.page-hero .container { padding-block: clamp(48px, 8vw, 84px) clamp(32px, 5vw, 56px); }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lede { max-width: 60ch; }
.page-hero .page-seal { color: var(--accent); margin-bottom: 18px; width: 54px; height: 54px; }

/* ============ Steps / membership ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 32px); counter-reset: step; }
.step { border: 1px solid var(--hairline); background: var(--surface); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif-en); font-size: 2.4rem; font-weight: 600; color: var(--accent); display: block; margin-bottom: 12px; line-height: 1; }
html[lang="ja"] .step::before { font-family: var(--serif-ja); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: var(--fs-small); }

/* ============ Contact detail list ============ */
.contact-list { display: grid; gap: 0; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.contact-item:first-child { border-top: 1px solid var(--hairline); }
.contact-item .ci-ico { width: 40px; height: 40px; flex: none; color: var(--accent); }
.contact-item h3 { font-size: 1.12rem; margin-bottom: 4px; }
.contact-item p { color: var(--muted); font-size: var(--fs-small); }
.contact-item a { font-weight: 600; }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: #C9C9C2; }
.site-footer a { color: #E6E6E0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); padding-block: clamp(44px, 6vw, 72px); }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-sub { color: #A8A8A2; }
.footer-col h4 { color: #fff; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-family: var(--sans-en); font-weight: 600; margin-bottom: 16px; }
html[lang="ja"] .footer-col h4 { font-family: var(--sans-ja); letter-spacing: .1em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; font-size: var(--fs-small); }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-note { font-size: var(--fs-meta); color: #A8A8A2; max-width: 46ch; margin-top: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: var(--fs-meta); color: #8F8F8A; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; }
.footer-social svg { width: 17px; height: 17px; }
.footer-social a:hover { border-color: var(--accent); }

/* ============ Reveal motion ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 640ms cubic-bezier(.22,.61,.36,1) var(--d, 0ms), transform 640ms cubic-bezier(.22,.61,.36,1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.simple-fade { opacity: 0; transition: opacity 900ms ease var(--d, 0ms); }
.simple-fade.in { opacity: 1; }

/* Modal */

#previewModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

#previewModal img {
    display: block;
    margin: 5% auto;
    max-width: 90%;
    max-height: 90%;
}

#previewModal.close {
    cursor: pointer;
}



.logo-container {
  width: 200px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============ Responsive ============ */
 @media (max-width: 1024px) {
  .gallery { columns: 2; }
  .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
} */
  @media (max-width: 600px) {
  .sponsor-grid {
    grid-template-columns: 1fr;
  }
} 


@media (max-width: 480px) {
 .sponsor-grid {
    display:flex;
    flex-direction: column;
 }
}

@media (max-width: 975px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .lang-switch { display: none; }
  .header-actions { margin-left: auto; }
  

}

@media (max-width: 820px) {
  .pillars, .trio, .steps, .who-grid { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .event-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; gap: 10px; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 78svh; }
  .hero-content { padding-block: 64px; }
  .hero-meta { margin-top: 28px; }
  .volunteer-cta .cta-long { display: none; }
  .section-head { margin-bottom: 36px; }
  /* .ac-logo { width: 100%; height: 30px; }
  .issei-logo { width: 100%; height: 30px; }
  .washoku-logo { width: 100%; height: 30px; } */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .simple-fade { opacity: 1; transform: none; }
}


@media (max-width: 700px) {
  .who-we-are {
    padding: 48px 24px;
  }

  .who-we-are__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .who-we-are__text {
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }

  .about-img-wrapper {
    max-width: 520px;
  }
}