/* =========================================================
   JBSAA — MindMarket系トークン（Warm storybook on cream paper）
   ========================================================= */
:root {
  --cream: #f5f1e4;
  --ink: #2c2e2a;
  --white: #ffffff;
  --sand: #e0dbce;
  --stone: #63655f;        /* 補足の文字。クリーム地 5.2:1・白地 5.9:1 */
  --stone-line: #a9aba6;   /* 下線・区切り用の薄いグレー（文字には使わない） */
  --hair: #d5d5d4;
  --grass: #9cc96b;
  --sky: #5b86b3;
  --coral: #ef5a3c;
  --coral-deep: #cf4527;   /* 白い小さな文字を載せる面（ボタン・バッジ）。4.6:1 */
  --coral-hero: #f16e54;   /* 下層ヒーローの地。インクの小さな文字が 4.6:1 */
  --sky-hero: #7599bf;
  --sun: #f2c14e;
  --lav: #cdb8d8;
  --leaf: #2a6b24;        /* JBSAAロゴ緑。ロゴマーク以外には使わない */

  --font-latin: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-jp: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  --font: var(--font-latin), var(--font-jp);

  --r-nav: 50px;
  --r-card: 50px;
  --r-btn: 50px;
  --r-sm: 10px;
  --r-art: 64px;

  --max: 1200px;
  --gutter: 24px;
  --section: clamp(64px, 8vw, 108px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-break: strict;            /* 行頭に「ー」「っ」などを置かない */
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
/* 紙の粒子（印刷物の質感） */
body::after { content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .07; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
/* 和文は文節（build.py が <wbr> を挿入）でだけ折り返す。「進／む。」のような泣き別れを防ぐ */
h1, h2, h3, .h-lg, .big, .about-lead, .charity-lead, .tagline, .lead, .act-title { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
main p, main li, main dd, main dt { word-break: keep-all; }
/* 本文に text-wrap: pretty は使わない。Safari（WebKit）は word-break: keep-all と組み合わさると、ページごと落ちることがある */
.cl { display: inline-block; }
/* フォーカス：どの地色の上でも見えるよう、インクの輪の外に白い輪を重ねる */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--white); border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 文字スケール ---------- */
.display {
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: clamp(64px, 11.5vw, 144px);
  line-height: .95;
  letter-spacing: -.06em;
}
.h-lg {           /* 和文の大見出し */
  font-size: clamp(34px, 5.4vw, 72px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 500;
}
.h {              /* セクション見出し（欧文） */
  font-family: var(--font-latin);
  font-size: clamp(44px, 6.5vw, 81px);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 500;
}
.h-sm { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -.01em; font-weight: 500; }
.sub { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; font-weight: 500; }
.lead { font-size: clamp(17px, 1.4vw, 18px); line-height: 1.85; }
.small { font-size: 15px; line-height: 1.5; }
.muted { color: var(--stone); }
.latin { font-family: var(--font-latin); }

/* セクション頭：欧文見出し＋和文ラベル */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head .label { font-size: 17px; font-weight: 500; }
.sec-head .action { margin-left: auto; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 22px;
  border-radius: var(--r-btn);
  background: var(--white); color: var(--ink);
  font-size: 15px; font-weight: 500; line-height: 1;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), border-color .25s, background .25s;
  min-height: 44px;
}
.btn .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); flex: none; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn:hover .dot { transform: scale(1.35); }
.btn--outline { background: transparent; border-color: var(--ink); }
.btn--coral { background: var(--coral-deep); color: var(--white); }
.btn--coral .dot { background: var(--white); }
.btn--coral:hover { border-color: var(--coral-deep); }
.btn--grass { background: var(--grass); }
.btn--grass .dot { background: var(--ink); }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 15px;
  border-bottom: 1.5px solid var(--stone-line);
  padding-bottom: 2px; min-height: 44px;
  transition: border-color .25s;
}
.link:hover { border-color: var(--ink); }
.link .arrow { transition: transform .35s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

.chip {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-sm);
  border: 1.5px solid var(--grass); font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap;
}
.chip--coral { border-color: var(--coral); }
.chip--sky { border-color: var(--sky); }

/* ---------- ナビ ---------- */
.nav {
  position: fixed; inset: 16px 16px auto; z-index: 50;
  width: min(100% - 32px, var(--max)); margin-inline: auto;
  display: flex; align-items: center; gap: 4px;
  padding: 10px 10px 10px 18px;
  background: var(--white); border-radius: var(--r-nav);
  transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }
.nav:focus-within { transform: none; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-height: 44px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--leaf);
  display: grid; place-items: center; flex: none;
}
.brand-mark img { width: 26px; height: 26px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .en { font-family: var(--font-latin); font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.brand-text .jp { font-size: 11px; color: var(--stone); font-weight: 500; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 10px 16px; border-radius: 40px; font-size: 15px; font-weight: 500; transition: background .25s; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--cream); }
.nav .btn { margin-left: 8px; background: var(--ink); color: var(--white); }
.nav .btn .dot { background: var(--grass); }
.nav .btn[aria-current="page"] { background: var(--coral-deep); }
.menu-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grass); color: var(--ink);
  display: none; place-items: center; cursor: pointer; margin-left: 8px;
}
.menu-btn svg { width: 20px; height: 20px; }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--cream);
  padding: 110px var(--gutter) max(40px, env(safe-area-inset-bottom));
  display: none; flex-direction: column; gap: 0;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu.is-open { display: flex; }
.menu > a:not(.btn) { font-size: clamp(24px, 7vw, 38px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; padding: 14px 0; border-bottom: 1.5px solid var(--hair); word-break: keep-all; }
.menu > a[aria-current="page"] { color: var(--coral-deep); }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .bars { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }
.menu .btn { align-self: flex-start; margin-top: 24px; font-size: 17px; }
body.menu-open { overflow: hidden; }

@media (max-width: 960px) {
  .nav-links, .nav > .btn { display: none; }
  .menu-btn { display: grid; }
}

/* ---------- ヒーロー ---------- */
.hero { padding-top: clamp(140px, 18vw, 220px); position: relative; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--stone); margin-bottom: 28px; }
.hero .eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--grass); border-radius: 2px; }
.hero .display { margin-bottom: 24px; }
.hero .sub { margin-bottom: 20px; }
.hero .lead { max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* ---------- セクション共通 ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.card {
  background: var(--white); border-radius: var(--r-card);
  padding: clamp(28px, 4vw, 48px);
}
.card--sand { background: var(--sand); }

/* フェア案内 */
.fair-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; overflow: hidden; position: relative; }
.fair-card .chip { margin-bottom: 20px; }
.fair-card h2 { margin-bottom: 16px; font-size: clamp(30px, 3.6vw, 52px); }
.fair-card .facts { display: grid; gap: 6px; margin: 20px 0 28px; font-size: 15px; }
.fair-card .facts dt { color: var(--stone); font-weight: 500; }
.fair-card .facts div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding: 8px 0; border-top: 1.5px solid var(--cream); }
.fair-card .facts dd { margin: 0; }
.fair-card .art { position: relative; height: 100%; min-height: 240px; }
.fair-card .art .fauna { --w: clamp(120px, 46%, 230px); left: 10%; bottom: -6%; }
.fair-card .art .fauna:nth-child(2) { --w: clamp(100px, 38%, 190px); left: 56%; bottom: 10%; }

/* ニュース */
.news-list { display: grid; }
.news-row {
  display: grid; grid-template-columns: 7.5em auto 1fr auto; gap: 16px 20px; align-items: center;
  padding: 22px 8px; border-top: 1.5px solid var(--cream); min-height: 44px;
  transition: background .25s; border-radius: 16px;
}
.news-row:first-child { border-top: 0; }
.news-row:hover { background: var(--cream); }
.news-row time { font-family: var(--font-latin); font-size: 15px; color: var(--stone); font-weight: 500; }
.news-row .title { font-weight: 500; font-size: 17px; }
.news-row .arrow { color: var(--stone); transition: transform .35s var(--ease); }
.news-row:hover .arrow { transform: translateX(4px); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about .h-lg { margin-bottom: 24px; }
.about .card { position: relative; }
.about .card p + p { margin-top: 1.2em; }
.about .card .link { margin-top: 28px; }
.about .peek { position: absolute; width: clamp(120px, 14vw, 180px); right: 7%; top: 0; transform: translateY(-88%); }

/* 活動 */
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.act { display: flex; flex-direction: column; gap: 20px; min-height: 100%; }
.act .icon { width: 76px; height: 76px; }
.act h3 { font-size: 22px; line-height: 1.3; }
.act p { color: var(--ink); font-size: 15px; line-height: 1.8; flex: 1; }
.act .link { align-self: flex-start; }

/* 入会 */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.join .h-lg { margin-bottom: 20px; }
.join .lead { margin-bottom: 32px; }
.join .benefits { display: grid; }
.join .benefits li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; padding: 18px 0; border-top: 1.5px solid var(--cream); align-items: start; }
.join .benefits li:first-child { border-top: 0; padding-top: 0; }
.join .benefits li:last-child { padding-bottom: 0; }
.join .benefits .b { width: 24px; height: 24px; border-radius: 50%; background: var(--grass); margin-top: 3px; }
.join .benefits strong { display: block; font-weight: 500; }
.join .benefits span { font-size: 15px; color: var(--stone); }

/* パートナー */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner {
  background: var(--white); border-radius: 26px; min-height: 104px;
  display: grid; place-items: center; color: var(--stone); font-size: 13px; font-weight: 500;
}
.partners-note { font-size: 13px; color: var(--stone); margin-top: 16px; }

/* ---------- フッター（黄色） ---------- */
.footer { background: var(--sun); color: var(--ink); margin-top: var(--section); border-radius: 48px 48px 0 0; padding-top: clamp(56px, 7vw, 96px); }
.footer-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; padding-bottom: 48px; }
.footer-lead { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.45; letter-spacing: -.01em; font-weight: 500; max-width: 560px; margin-bottom: 28px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 8px; }
.footer-cols a { display: flex; align-items: center; min-height: 40px; font-weight: 500; font-size: 15px; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-mid { border-top: 1.5px solid rgba(44,46,42,.18); padding: 32px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-sns { display: flex; gap: 10px; }
.footer-sns a { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--sun); display: grid; place-items: center; }
.footer-sns svg { width: 20px; height: 20px; }
.footer-h { font-weight: 500; margin-bottom: 6px; }
.footer-big { padding: 24px 0 8px; }
.footer-big .display { font-size: clamp(64px, 12vw, 176px); }
.footer-squiggle { width: min(604px, 86%); margin-top: 22px; }   /* 波 3 つ（1 つの幅は従来と同じ） */
.footer-bottom { padding: 24px 0 32px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer .pill { display: inline-flex; align-items: center; gap: 12px; padding: 10px 10px 10px 22px; border-radius: 50px; font-size: 16px; font-weight: 500; color: var(--ink); min-height: 48px; background: var(--white); }
.footer .pill .ico { width: 32px; height: 32px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; }
.footer .pill .ico svg { width: 12px; height: 12px; }

/* ---------- 下層ページ ---------- */
.page-head { padding-top: clamp(140px, 18vw, 200px); padding-bottom: clamp(40px, 6vw, 64px); }
.page-head .eyebrow { font-size: 15px; font-weight: 500; color: var(--stone); margin-bottom: 20px; }
.page-head .display { margin-bottom: 20px; }
.page-head .h-lg { margin-bottom: 20px; }
.page-head .lead { max-width: 640px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--stone); margin-bottom: 28px; flex-wrap: wrap; }
.crumbs a { border-bottom: 1px solid var(--hair); }
.prose { max-width: 720px; }
.prose p + p { margin-top: 1.4em; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.3; margin: 2.2em 0 .8em; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { display: grid; gap: 8px; margin: 1em 0; }
.prose li { padding-left: 22px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 10px; border-radius: 50%; background: var(--grass); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.split .sticky { position: sticky; top: 120px; }
.facts-table { display: grid; }
.facts-table div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 18px 0; border-top: 1.5px solid var(--cream); }
.facts-table div:first-child { border-top: 0; padding-top: 0; }
.facts-table dt { color: var(--stone); font-weight: 500; font-size: 15px; }
.facts-table dd { margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--white); border-radius: 32px; padding: 28px; }
.stat .num { font-family: var(--font-latin); font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.05em; font-weight: 500; }
.stat .num small { font-family: var(--font-jp); font-size: 18px; letter-spacing: 0; margin-left: 4px; }
.stat .cap { font-size: 14px; color: var(--stone); margin-top: 10px; font-weight: 500; }
.timeline { display: grid; }
.timeline > div { display: grid; grid-template-columns: 6em 1fr; gap: 20px; padding: 20px 0; border-top: 1.5px solid var(--cream); }
.timeline > div:first-child { border-top: 0; padding-top: 0; }
.timeline .t { font-family: var(--font-latin); font-weight: 500; color: var(--stone); }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 16px; }
.plan .chip { align-self: flex-start; }
.plan .price { font-family: var(--font-latin); font-size: 44px; letter-spacing: -.04em; line-height: 1; font-weight: 500; }
.plan .price small { font-family: var(--font-jp); font-size: 15px; letter-spacing: 0; color: var(--stone); margin-left: 6px; }
.plan ul { display: grid; gap: 10px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--grass); margin-top: 3px; }
.plan .btn { align-self: flex-start; margin-top: auto; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step { background: var(--white); border-radius: 32px; padding: 28px 24px; }
.step .n { font-family: var(--font-latin); font-size: 15px; font-weight: 500; color: var(--stone); margin-bottom: 14px; }
.step h3 { font-size: 19px; line-height: 1.35; margin-bottom: 10px; }
.step p { font-size: 14px; line-height: 1.7; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: var(--white); border-radius: 36px; padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s var(--ease); }
.news-card:hover { transform: translateY(-4px); }
.news-card time { font-family: var(--font-latin); font-size: 14px; color: var(--stone); font-weight: 500; }
.news-card h3 { font-size: 19px; line-height: 1.4; }
.news-card .meta { display: flex; gap: 10px; align-items: center; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager a, .pager span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-latin); font-weight: 500; }
.pager [aria-current] { background: var(--ink); color: var(--white); }
.pager a:hover { background: var(--white); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter a { padding: 10px 18px; border-radius: 40px; background: var(--white); font-size: 15px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.filter a[aria-current] { background: var(--ink); color: var(--white); }
.article { max-width: 760px; }
.article .meta { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.article h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.3; letter-spacing: -.02em; margin-bottom: 40px; }
.article .figure { background: var(--sand); border-radius: 32px; aspect-ratio: 16/9; display: grid; place-items: center; color: var(--stone); font-size: 14px; margin: 40px 0; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1.5px solid var(--sand); }

/* ---------- スクロール出現 / 初回モーション ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .1s; } .rv[data-d="2"] { transition-delay: .2s; } .rv[data-d="3"] { transition-delay: .3s; }

.hero .eyebrow, .hero .display, .hero .sub, .hero .lead, .hero-actions { animation: rise .9s var(--ease) both; }
.hero .display { animation-delay: .1s; } .hero .sub { animation-delay: .2s; } .hero .lead { animation-delay: .3s; } .hero-actions { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.fauna svg { transition: transform .5s var(--ease); transform-origin: 50% 100%; }
.fauna:hover svg { transform: rotate(-5deg) translateY(-6px); }

.news-card.in:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero * { animation: none !important; }
  .fauna svg, .btn, .link .arrow, .news-card { transition: none; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  :root { --r-card: 36px; }
  .about, .join, .split { grid-template-columns: 1fr; }
  .about .peek { right: 8%; }
  .acts { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .fair-card { grid-template-columns: 1fr; }
  .fair-card .art { height: 240px; min-height: 0; }
  .fair-card .art .fauna { --w: clamp(120px, 30%, 200px); left: 8%; bottom: 0; }
  .fair-card .art .fauna:nth-child(2) { --w: clamp(100px, 26%, 170px); left: 48%; bottom: 0; }
  .stat-row, .plan-grid { grid-template-columns: 1fr; }
  .steps, .steps--3 { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .split .sticky { position: static; }
}
@media (max-width: 600px) {
  :root { --gutter: 18px; --r-card: 28px; }
  body { font-size: 16px; }
  .news-row { grid-template-columns: 1fr auto; }
  .news-row time { grid-column: 1; }
  .news-row .chip { grid-column: 2; justify-self: end; }
  .news-row .title { grid-column: 1 / -1; }
  .news-row .arrow { display: none; }
  .partners { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .fair-card .facts div { grid-template-columns: 1fr; gap: 2px; }
  .steps, .steps--3, .news-grid { grid-template-columns: 1fr; }
  .facts-table div { grid-template-columns: 1fr; gap: 4px; }
  .timeline > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- フォーム ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream); border: 1.5px solid transparent; border-radius: 18px;
  padding: 12px 16px; width: 100%; min-height: 48px;
  transition: border-color .25s, background .25s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.form .btn { justify-self: start; }

/* ---------- 下層ページのヒーロー（色面＋キャラ、クリーム面が角丸で重なる） ---------- */
.page-hero { position: relative; overflow-x: clip; padding: clamp(150px, 18vw, 210px) 0 clamp(120px, 16vw, 220px); color: var(--ink); }
.page-hero--sky { background: var(--sky-hero); }
.page-hero--coral { background: var(--coral-hero); }
.page-hero--sun { background: var(--sun); }
.page-hero--lav { background: var(--lav); }
.page-hero--grass { background: var(--grass); }
.page-hero--sand { background: var(--sand); }
.page-hero .container { position: relative; z-index: 2; max-width: 1200px; }
.page-hero .eyebrow { font-size: 15px; font-weight: 500; margin-bottom: 18px; }
.page-hero .crumbs { color: var(--ink); margin-bottom: 28px; }
.page-hero .crumbs a { border-bottom-color: currentColor; }
.page-hero .display { margin-bottom: 16px; }
.page-hero .h-lg { margin-bottom: 20px; max-width: 900px; }
.page-hero .lead { max-width: 600px; }
.page-hero .eyebrow, .page-hero .display, .page-hero .h-lg, .page-hero .lead, .page-hero .crumbs { animation: rise .9s var(--ease) both; }
.page-hero .h-lg { animation-delay: .1s; } .page-hero .lead { animation-delay: .2s; }
/* ヒーローの舞台: 文字は左列、動物は右。枝は画面右端から差し込み、地上の子はシートの縁に立つ */
.page-hero { --sheet: 48px; }
.page-stage { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.page-stage .ill, .page-stage .perch { position: absolute; animation: rise 1.1s cubic-bezier(.2,1.2,.3,1) both; animation-delay: .35s; }
.page-stage .perch { right: -2%; bottom: calc(var(--sheet) + clamp(120px, 15vw, 260px) * var(--up, 1)); width: calc(clamp(300px, 30vw, 520px) * var(--bw, 1)); aspect-ratio: 600 / 170; animation-delay: .2s; }
.page-stage .perch .ill { animation: none; max-width: none; }
.perch .branch { width: 100%; left: 0; bottom: 0; z-index: 1; }
.perch .ill:not(.branch) { width: var(--pw); left: var(--px); bottom: var(--pb); z-index: 2; }
.perch.flip .branch { transform: scaleX(-1); }
.page-stage .pet { left: var(--x); width: var(--w); bottom: calc(var(--sheet) - 10px); z-index: 2; }
.page-stage .pet:nth-of-type(odd) { animation-delay: .5s; }
.page-stage .deco { left: var(--x); bottom: var(--b); width: var(--w); z-index: 1; }
@media (min-width: 701px) {
  /* 右の舞台（画面幅の 40% 弱）に文字が入らないようにする。タブレット（701px〜）も PC と同じ「文字は左・動物は右」 */
  .page-hero .container { padding-right: max(var(--gutter), calc(38vw - (100vw - min(100vw, 1200px)) / 2)); }
}
@media (min-width: 701px) and (max-width: 960px) {
  /* タブレット：動物が小さくなりすぎないよう 1.3 倍に */
  .page-stage .pet { width: calc(var(--w) * 1.3); }
  .page-stage .deco { width: calc(var(--w) * 1.2); }
  .page-stage .perch { width: calc(clamp(280px, 36vw, 360px) * var(--bw, 1)); bottom: calc(var(--sheet) + clamp(110px, 17vw, 170px) * var(--up, 1)); }
}
.page-body { position: relative; z-index: 3; background: var(--cream); border-radius: 48px 48px 0 0; margin-top: -48px; padding-top: 24px; }
.fair-card .art .ill { position: absolute; bottom: 0; left: var(--x); width: var(--w); }
.act .icon { width: 96px; height: auto; }
.acts .ill.icon { width: 110px; }
@media (max-width: 700px) {
  /* モバイル: 文字の下に動物用の帯を作る（文字と重ねない）。帯の中の割合はスマホ幅を前提にしているので 700px 以下だけ */
  .page-hero { padding-bottom: var(--sheet); }
  .page-stage { position: relative; inset: auto; height: var(--band, clamp(190px, 56vw, 280px)); margin-top: 12px; }
  .page-stage .perch { right: -6%; bottom: var(--mpb, 44%); width: 62%; }
  .page-stage .pet { left: var(--mx); width: var(--mw); bottom: -10px; }
  .page-stage .deco { left: var(--mx); bottom: var(--mb); width: var(--mw); }
  .page-stage .m-hide { display: none; }
  .page-body { border-radius: 32px 32px 0 0; }
}

.mirror { scale: -1 1; }   /* 向かい合わせにするための左右反転（登場アニメの transform と干渉しない） */

/* ===== pill ボタン（トップ・下層で共通） ===== */
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 10px 10px 10px 22px; border-radius: 50px; font-size: 16px; font-weight: 500; color: var(--ink); min-height: 48px; transition: transform .35s var(--ease); }
.pill:hover { transform: translateY(-2px); }
.pill .ico { width: 32px; height: 32px; border-radius: 50%; background: var(--white); display: grid; place-items: center; transition: transform .35s var(--ease); }
.pill:hover .ico { transform: translateX(3px); }
.pill .ico svg { width: 12px; height: 12px; }
.pill--coral { background: var(--coral-hero); }
.pill--sun { background: var(--sun); }
.pill--sky { background: var(--sky-hero); }
.pill--lav { background: var(--lav); }
.pill--grass { background: var(--grass); }
.pill--white { background: var(--white); }
.pill--white .ico { background: var(--grass); }

/* ===== 下層ページ（現行サイトの内容を新デザインで） ===== */
[hidden] { display: none !important; }
.sec-head .note { margin-left: 14px; font-size: 14px; color: var(--stone); font-weight: 400; }
.sub-h { font-size: clamp(20px, 2.2vw, 24px); margin: clamp(48px, 6vw, 72px) 0 24px; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.9; font-weight: 500; }
.page-foot { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* 声明（基本理念・フェアについて・ご入会にあたって）：大きな一文＋本文 */
.statement { display: grid; grid-template-columns: minmax(200px, 4fr) 8fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.statement-k { font-family: var(--font-latin); font-size: clamp(44px, 5.6vw, 81px); line-height: 1; letter-spacing: -.05em; font-weight: 500; position: sticky; top: 120px; }
.statement-k span { display: block; margin-top: 14px; font-family: var(--font-jp); font-size: 16px; letter-spacing: 0; font-weight: 500; line-height: 1.6; }
.statement-intro { font-size: 15px; color: var(--stone); margin-bottom: 18px; }
.statement-lead { font-size: clamp(22px, 2.5vw, 32px); line-height: 1.6; font-weight: 500; letter-spacing: -.01em; margin-bottom: 32px; }
.statement p:not([class]) { max-width: 40em; font-size: 17px; line-height: 2; }
.statement p:not([class]) + p:not([class]) { margin-top: 1.2em; }

/* 手紙（会長挨拶・実行委員長挨拶）：左に写真と署名、右に本文 */
.letter { display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.letter-by { position: sticky; top: 120px; }
.letter-by img { width: 100%; max-width: 240px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; margin-bottom: 20px; background: var(--sand); }
.letter-by img.bw { filter: grayscale(1) contrast(1.05); }
.letter-by .role { font-size: 13px; color: var(--stone); line-height: 1.6; }
.letter-by .name { font-size: 24px; font-weight: 700; letter-spacing: .08em; margin: 6px 0 4px; }
.letter-by .aff { font-size: 13px; color: var(--stone); line-height: 1.6; }
.letter-body { background: var(--white); border-radius: var(--r-card); padding: clamp(32px, 5vw, 72px); }
.letter-body > * { max-width: 38em; }
.letter-body p { font-size: 17px; line-height: 2.05; }
.letter-body p + p, .letter-body p + ul, .letter-body ul + p { margin-top: 1.3em; }
.letter-body .lede { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.9; }
.dots { display: grid; gap: 6px; padding: 16px 22px; background: var(--cream); border-radius: 18px; }
.dots li { position: relative; padding-left: 18px; }
.dots li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 8px; border-radius: 50%; background: var(--grass); }
.wide-photo { margin-top: clamp(28px, 4vw, 48px); }
.wide-photo img { width: 100%; border-radius: var(--r-card); display: block; }

/* 事実の並び（協会概要・開催概要・会期会場） */
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); background: var(--white); border-radius: var(--r-card); padding: clamp(12px, 2vw, 24px) clamp(28px, 4vw, 56px); }
.facts-grid > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 20px 0; border-top: 1.5px solid var(--cream); }
.facts-grid > div:nth-child(-n+2) { border-top: 0; }
.facts-grid > div.wide { grid-column: 1 / -1; }
.facts-grid dt { color: var(--stone); font-weight: 500; font-size: 14px; padding-top: 2px; }
.facts-grid dd { margin: 0; font-size: 16px; line-height: 1.8; }
.facts-grid dd ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 24px; }
.map { margin-top: 20px; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 21 / 8; background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.guide img { display: block; max-width: 760px; width: 100%; margin: 0 auto; border-radius: 28px; background: var(--white); }

/* チケット（開催概要の冒頭）：実際の入場券のように、半券にポスター */
.ticket { display: grid; grid-template-columns: 1fr minmax(220px, 34%); background: var(--white); border-radius: var(--r-card); position: relative; overflow: hidden; }
.ticket::before, .ticket::after { content: ""; position: absolute; right: calc(34% - 18px); width: 36px; height: 36px; border-radius: 50%; background: var(--cream); }
.ticket::before { top: -18px; } .ticket::after { bottom: -18px; }
.ticket-main { padding: clamp(32px, 4.4vw, 60px); border-right: 2.5px dashed var(--sand); }
.ticket-no { font-family: var(--font-latin); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); margin-bottom: 26px; }
.ticket-no span { display: inline-block; margin-right: 12px; padding: 4px 12px; border-radius: 30px; background: var(--coral-deep); color: var(--white); letter-spacing: 0; }
.ticket-facts { display: grid; gap: 22px; margin-bottom: 32px; }
.ticket-facts > div { display: grid; grid-template-columns: 5em 1fr; gap: 16px; align-items: baseline; }
.ticket-facts dt { font-size: 14px; color: var(--stone); font-weight: 500; }
.ticket-facts dd { margin: 0; font-size: 16px; line-height: 1.7; }
.ticket-facts dd strong { display: block; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; letter-spacing: -.01em; margin-bottom: 4px; }
.ticket-facts dd span { display: block; color: var(--stone); font-size: 15px; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ticket-actions .pill--white { background: var(--cream); }
.ticket-stub { display: grid; place-items: center; padding: clamp(20px, 3vw, 36px); background: var(--sand); }
.ticket-stub img { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: 14px; box-shadow: 0 18px 40px -22px rgba(44,46,42,.45); transform: rotate(1.5deg); transition: transform .5s var(--ease); }
.ticket-stub .stub-open:hover img { transform: rotate(0) scale(1.02); }
.sns-card { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; background: var(--white); border-radius: 36px; padding: 20px; }
.sns-card img { width: 100%; border-radius: 20px; display: block; }
.sns-card .h-sm { margin-bottom: 8px; }
.sns-card .muted { margin-bottom: 14px; font-size: 15px; }

/* 来場案内 */
.admits { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.admit { background: var(--white); border-radius: 36px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.admit-h { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.admit p { font-size: 15px; line-height: 1.8; }
.prices { display: grid; gap: 0; }
.prices > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1.5px solid var(--cream); align-items: baseline; }
.prices > div:first-child { border-top: 0; }
.prices dt { font-size: 15px; }
.prices dd { margin: 0; font-family: var(--font-latin); font-weight: 500; font-size: 20px; text-align: right; }
.prices .full dd { font-family: inherit; font-size: 15px; text-align: left; }
.admit .note { font-size: 13px; color: var(--stone); }
.card-act { margin-top: auto; padding-top: 10px; }

/* 時刻表（イベント・セミナー） */
.program { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.program .day { background: var(--white); border-radius: 36px; padding: clamp(24px, 3vw, 36px); }
.program .day-h { display: inline-block; padding: 6px 16px; border-radius: 30px; background: var(--sun); font-weight: 700; margin-bottom: 18px; }
.slots { display: grid; }
.slots li { display: grid; grid-template-columns: 4.2em 1fr; gap: 14px; padding: 14px 0; border-top: 1.5px solid var(--cream); }
.slots li:first-child { border-top: 0; }
.slots time { font-family: var(--font-latin); font-weight: 500; font-size: 18px; }
.slots p { font-size: 15px; line-height: 1.7; }
.slots p + p { color: var(--stone); font-size: 14px; }

/* ロゴ・名前の一覧 */
.logo-grid { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 12px; }
.logo-grid li > * { display: grid; place-items: center; height: 116px; padding: 16px 20px; background: var(--white); border-radius: 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.logo-grid a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(44,46,42,.4); }
.logo-grid img { max-width: 86%; height: auto; object-fit: contain; }
.name-grid { columns: 4 200px; column-gap: 32px; background: var(--white); border-radius: var(--r-card); padding: clamp(24px, 3.4vw, 48px); }
.name-grid li { break-inside: avoid; padding: 10px 0; border-top: 1.5px solid var(--cream); font-size: 15px; }

/* 出展プラン */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.plan { background: var(--white); border-radius: var(--r-card); padding: clamp(28px, 3.6vw, 48px); display: flex; flex-direction: column; }
.plan-h { align-self: flex-start; padding: 6px 16px; border-radius: 30px; background: var(--coral-deep); color: var(--white); font-weight: 700; margin-bottom: 20px; }
.plan:nth-child(2) .plan-h { background: var(--sky); }
.plan-row { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 18px 0; border-top: 1.5px solid var(--cream); }
.plan-row .k { font-size: 14px; color: var(--stone); font-weight: 500; }
.plan-row p { font-size: 15px; line-height: 1.8; }
.plan-price { font-size: 18px !important; font-weight: 700; line-height: 1.5 !important; }
.plan-act { margin-top: auto; padding-top: 20px; }
.status { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px; border-radius: 50px; font-weight: 500; }
.status--closed { background: var(--cream); color: var(--stone); }

/* 動物取扱業者標識：掲示物らしく */
.sign-card { max-width: 820px; margin: 0 auto; background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: clamp(24px, 4vw, 48px); }
.sign-title { text-align: center; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: .3em; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 3px solid var(--ink); }
.sign-card dl > div { display: grid; grid-template-columns: 13em 1fr; gap: 16px; padding: 14px 0; border-top: 1.5px solid var(--hair); }
.sign-card dl > div:first-child { border-top: 0; }
.sign-card dt { font-size: 14px; font-weight: 500; }
.sign-card dd { margin: 0; font-size: 15px; line-height: 1.8; }

/* 開催報告：来場者数 */
.stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr .9fr; gap: 14px; }
.stats > * { background: var(--white); border-radius: 36px; padding: clamp(22px, 2.8vw, 36px); }
.stat-total { background: var(--ink) !important; color: var(--white); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.stats .k { font-size: 14px; font-weight: 500; opacity: .8; }
.stats .n { font-family: var(--font-latin); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.stat-total .n { font-size: clamp(56px, 7vw, 104px); }
.stats .n span { font-family: var(--font-jp); font-size: .3em; letter-spacing: 0; margin-left: 6px; font-weight: 500; }
.day-card { display: grid; gap: 8px; align-content: start; }
.day-card .date { font-weight: 700; }
.day-card .wx { font-size: 34px; line-height: 1.2; }
.day-card .temp { font-family: var(--font-latin); font-size: 15px; }
.day-card .temp span { display: block; font-family: var(--font-jp); font-size: 12px; color: var(--stone); }
.day-card .n { font-size: clamp(34px, 3.4vw, 48px); margin-top: 8px; }
.stat-sub { display: grid; gap: 14px; align-content: center; background: var(--sun) !important; }
.stat-sub p { font-size: 14px; font-weight: 500; }
.stat-sub .n { font-size: clamp(34px, 3.4vw, 44px); margin-right: 4px; }
.stat-sub .k { display: block; font-size: 13px; margin-top: 2px; }
.report-intro { display: grid; grid-template-columns: 1fr minmax(200px, 30%); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: 14px; }
.report-intro .facts-grid { grid-template-columns: 1fr; }
.report-intro .facts-grid > div:nth-child(2) { border-top: 1.5px solid var(--cream); }
.report-intro .summary { margin-top: 24px; padding: 0 clamp(8px, 2vw, 24px); font-size: 17px; line-height: 2; }
.report-poster img { width: 100%; display: block; border-radius: 24px; box-shadow: 0 18px 40px -24px rgba(44,46,42,.5); }
.anchors-sec { padding-block: 0 !important; }

/* 会場風景：最初の 1 枚を大きく */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 12px; }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery a { display: block; height: 100%; overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 3; background: var(--sand); }
.gallery li:first-child a { aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 会員カード */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.member { background: var(--white); border-radius: 32px; padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.member--officer { box-shadow: inset 0 0 0 2px var(--coral); }
.badge { align-self: flex-start; padding: 4px 12px; border-radius: 30px; background: var(--coral-deep); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.member-name { font-weight: 700; font-size: 17px; line-height: 1.5; }
.member-addr { font-size: 14px; line-height: 1.7; color: var(--stone); }
.member-tel { display: grid; gap: 2px; font-family: var(--font-latin); font-size: 14px; }
.member-tel .k { display: inline-block; width: 3em; color: var(--stone); font-size: 12px; }
.member .link { margin-top: auto; align-self: flex-start; font-size: 14px; }

/* ご入会 */
.fees { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 14px; }
.fee-tile { background: var(--white); border-radius: 36px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.fee-tile .k { font-weight: 500; color: var(--stone); }
.fee-tile .n { font-family: var(--font-latin); font-size: clamp(44px, 5vw, 72px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.fee-tile .n span { font-family: var(--font-jp); font-size: .3em; letter-spacing: 0; margin-left: 6px; }
.pdf-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--lav); border-radius: 36px; padding: clamp(24px, 3vw, 40px); transition: transform .35s var(--ease); }
.pdf-card:hover { transform: translateY(-3px); }
.pdf-ico { display: grid; place-items: center; width: 60px; height: 72px; border-radius: 10px 22px 10px 10px; background: var(--white); font-family: var(--font-latin); font-weight: 500; font-size: 14px; color: var(--coral); }
.pdf-t { display: grid; gap: 4px; }
.pdf-t .muted { color: var(--ink); opacity: .7; font-size: 14px; }
.pdf-card .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.pdf-card .ico svg { width: 12px; height: 12px; }
.rules { max-width: 920px; }
.rules-lead { font-weight: 700; margin-bottom: 8px; }
.rules-tail { margin-top: 24px; padding-top: 20px; border-top: 1.5px solid var(--cream); }
.clauses { display: grid; gap: 20px; margin: 20px 0 0; }
.clauses > li { display: grid; grid-template-columns: 2.4em 1fr; gap: 12px; }
.clauses .n { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--lav); font-family: var(--font-latin); font-weight: 500; }
.clauses p { line-height: 1.9; }
.clauses .sub { display: grid; gap: 6px; margin-top: 10px; padding: 14px 18px; background: var(--cream); border-radius: 16px; font-size: 15px; line-height: 1.8; }
.bylaws { display: grid; gap: 14px; }
.chapter { display: grid; grid-template-columns: minmax(160px, 3fr) 9fr; gap: clamp(20px, 3vw, 48px); background: var(--white); border-radius: var(--r-card); padding: clamp(24px, 3.6vw, 48px); }
.chapter-h { font-weight: 700; font-size: 18px; }
.art + .art { margin-top: 22px; padding-top: 22px; border-top: 1.5px solid var(--cream); }
.art-h { font-weight: 700; margin-bottom: 6px; }
.art p { line-height: 1.9; font-size: 15.5px; }
.bylaws-end { text-align: right; color: var(--stone); font-size: 14px; }

/* フェアについて */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 12px 20px; border-radius: 40px; background: var(--white); font-size: 15px; font-weight: 500; }
.tags li:nth-child(4n+1) { background: var(--sun); } .tags li:nth-child(4n+3) { background: var(--grass); }
.records { position: relative; display: grid; gap: 0; }
.records::before { content: ""; position: absolute; left: calc(4.8em - 1px); top: 24px; bottom: 24px; width: 2.5px; background: var(--sand); }
.rec { display: grid; grid-template-columns: 9.6em 1fr; align-items: start; padding: 14px 0; }
.rec-no { font-family: var(--font-latin); font-size: clamp(38px, 4vw, 54px); font-weight: 500; line-height: 1; letter-spacing: -.04em; text-align: center; background: var(--cream); position: relative; z-index: 1; padding: 6px 0; }
.rec-no span { font-family: var(--font-jp); font-size: 14px; letter-spacing: 0; margin: 0 2px; }
.rec > div { background: var(--white); border-radius: 30px; padding: 22px 28px; display: grid; gap: 4px; }
.rec--link > div { box-shadow: inset 0 0 0 2px var(--coral); }
.rec-title { font-weight: 700; }
.rec-date { font-size: 15px; }
.rec-venue { font-size: 14px; color: var(--stone); }
.rec .link { justify-self: start; margin-top: 8px; font-size: 14px; }

/* お知らせ */
.news-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
.news-item { display: grid; gap: 12px; align-content: start; }
.news-item .thumb, .related .thumb { aspect-ratio: 4 / 3; border-radius: 28px; background: var(--thumb, var(--white)); position: relative; overflow: hidden; transition: transform .4s var(--ease); }
.news-item:hover .thumb { transform: translateY(-4px); }
.news-item .thumb .ill, .related .thumb .ill { position: absolute; left: 10%; top: 9%; width: 80%; height: 85%; max-width: none; object-fit: contain; object-position: 50% 100%; }
.news-item .chips span { display: inline-block; background: var(--white); border-radius: 30px; padding: 4px 12px; font-size: 12px; font-weight: 500; }
.news-item h3 { font-size: 18px; line-height: 1.5; }
.news-item time { font-family: var(--font-latin); font-size: 13px; color: var(--stone); font-weight: 500; }
.post { display: grid; grid-template-columns: 1fr minmax(240px, 32%); gap: clamp(24px, 4vw, 64px); align-items: start; }
.post-body { background: var(--white); border-radius: var(--r-card); padding: clamp(32px, 5vw, 72px); }
.post-body p { font-size: 17px; line-height: 2.05; max-width: 38em; }
.post-body p + p { margin-top: 1.3em; }
.related { position: sticky; top: 120px; display: grid; gap: 16px; background: var(--white); border-radius: 36px; padding: 16px 16px 26px; }
.related .k { font-size: 13px; color: var(--stone); font-weight: 500; }
.related > div:last-child { padding: 0 10px; display: grid; gap: 8px; }
.post-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; margin-top: clamp(32px, 4vw, 56px); align-items: stretch; }
.post-nav-card { display: grid; gap: 6px; background: var(--white); border-radius: 28px; padding: 20px 24px; transition: transform .35s var(--ease); }
.post-nav-card:hover { transform: translateY(-3px); }
.post-nav-card.newer { text-align: right; }
.post-nav-card .k { font-size: 13px; color: var(--stone); }
.post-nav-card .t { font-size: 15px; font-weight: 500; line-height: 1.5; }
.post-nav-list { display: grid; place-items: center; padding: 0 24px; border-radius: 28px; border: 2px solid var(--ink); font-weight: 500; min-height: 44px; }

/* お問い合わせ */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-side { position: sticky; top: 120px; }
.contact-side .h-sm { margin-bottom: 20px; }
.notes { display: grid; gap: 12px; }
.notes li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.8; }
.notes li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 8px; border-radius: 50%; background: var(--grass); }
.office { margin-top: 32px; padding: 26px 28px; background: var(--white); border-radius: 32px; display: grid; gap: 8px; }
.office .k { font-weight: 700; }
.office p { font-size: 15px; line-height: 1.8; }
.office .tel { font-family: var(--font-latin); }
.office .tel span { display: inline-block; width: 3em; font-size: 12px; color: var(--stone); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.req { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 20px; background: var(--coral-deep); color: var(--white); font-size: 12px; vertical-align: 1px; }
.form-status:empty { display: none; }
.form-confirm { background: var(--cream); border-radius: 24px; padding: 8px 24px; }

/* プライバシーポリシー */
.policy-wrap { display: grid; grid-template-columns: minmax(200px, 3fr) 9fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.policy-toc { position: sticky; top: 120px; }
.policy-toc .k { font-weight: 700; margin-bottom: 12px; }
.policy-toc ol { display: grid; gap: 2px; }
.policy-toc a { display: block; padding: 8px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.policy-toc a:hover { background: var(--white); }
.policy { max-width: none; }
.policy h3 { scroll-margin-top: 120px; }
.prose h3 { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.4; margin: 2em 0 .7em; }
.prose h3:first-child { margin-top: 0; }
.prose ol { display: grid; gap: 8px; margin: 1em 0; padding-left: 1.6em; list-style: decimal; }
.prose ol li { padding-left: 4px; }
.prose ol li::before { content: none; }
.prose ol ol { margin: .6em 0 .2em; list-style: lower-roman; }
.page-hero .lead .cat { text-decoration: underline; text-underline-offset: 3px; }
.sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.sitemap ul { display: grid; gap: 10px; margin-top: 16px; }

@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-total, .stat-sub { grid-column: 1 / -1; }
  .stat-sub { grid-template-columns: 1fr 1fr; }
  .fees { grid-template-columns: 1fr 1fr; }
  .pdf-card { grid-column: 1 / -1; }
  .news-items { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .statement, .letter, .post, .contact, .policy-wrap, .chapter, .report-intro { grid-template-columns: 1fr; }
  .statement-k, .letter-by, .related, .contact-side, .policy-toc { position: static; }
  .letter-by { display: grid; grid-template-columns: 96px 1fr; gap: 4px 18px; align-items: center; }
  .letter-by img { grid-row: 1 / 4; width: 96px; margin: 0; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid > div { grid-template-columns: 1fr; gap: 4px; }
  .facts-grid > div:nth-child(2) { border-top: 1.5px solid var(--cream); }
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .ticket-main { border-right: 0; border-bottom: 2.5px dashed var(--sand); }
  .ticket-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .ticket-stub img { max-width: 260px; }
  .report-poster { max-width: 260px; margin: 0 auto; }
  .sns-card { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery a { border-radius: 16px; }
  .fees, .news-items { grid-template-columns: 1fr; }
  .sign-card dl > div, .plan-row, .slots li { grid-template-columns: 1fr; gap: 4px; }
  .records::before { left: calc(2.4em - 1px); }
  .rec { grid-template-columns: 4.8em 1fr; }
  .rec-no { font-size: 30px; }
  .rec-no span { font-size: 11px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-card.newer { text-align: left; }
  .field-row { grid-template-columns: 1fr; }
  .name-grid { columns: 2 140px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-toc ol { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .logo-grid li > *, .gallery img, .ticket-stub img, .pdf-card, .post-nav-card, .news-item .thumb { transition: none; } }
.letter-body p.ln + p.ln { margin-top: .55em; }
.ticket-facts dd, .facts-grid dd, .sign-card dd { word-break: keep-all; overflow-wrap: anywhere; }

/* ===== 監修 v4：土台 ===== */
/* 見出しの組（欧文の大見出し＋和文ラベル）を 1 つの h2 にまとめる（読み上げで「Members 正会員一覧」と続けて読まれる） */
.sec-t { margin: 0; font: inherit; }
.sec-t > .h, .sec-t > .label { display: block; }
.sec-head .sec-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; }
/* 下層ヒーローの文字：見出しは最初から見える状態で、位置だけ少し動かす（表示の速さを落とさない） */
@keyframes rise-soft { from { transform: translateY(14px); } to { transform: none; } }
.page-hero .eyebrow, .page-hero .display, .page-hero .h-lg, .page-hero .lead, .page-hero .crumbs { animation: rise-soft .7s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .page-hero .eyebrow, .page-hero .display, .page-hero .h-lg, .page-hero .lead, .page-hero .crumbs, .page-stage .ill, .page-stage .perch { animation: none !important; }
  html { scroll-behavior: auto; }
}
a[href^="tel:"] { border-bottom: 1px solid var(--stone-line); }

/* ===== 監修 v4：下層の組み直し ===== */
/* 会員：役員はカード、ほかは 1 社 1 行の名簿 */
.officers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.officer { background: var(--white); border-radius: 32px; padding: 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.officer .badge { margin-bottom: 4px; }
.officer .zip { display: block; }
.officer .link { margin-top: auto; align-self: flex-start; font-size: 14px; }
.dir { background: var(--white); border-radius: var(--r-card); padding: 10px clamp(24px, 3.4vw, 48px); }
.dir-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) 11.5em 5em; gap: 8px 28px; align-items: center; padding: 18px 0; border-top: 1.5px solid var(--cream); }
.dir-row:first-child { border-top: 0; }
.dir-row .member-name { font-size: 16px; }
.dir-row .member-web { justify-self: end; }
.dir-row .link { min-height: 44px; font-size: 14px; }
.member-name { word-break: keep-all; overflow-wrap: anywhere; }
.member-tel a { border-bottom: 0; }
.member-tel a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1040px) {
  .officers { grid-template-columns: repeat(2, 1fr); }
  .dir-row { grid-template-columns: minmax(0, 1fr) 11.5em 5em; }
  .dir-row .member-addr { grid-column: 1; grid-row: 2; }
  .dir-row .member-tel { grid-row: 1 / 3; }
  .dir-row .member-web { grid-row: 1 / 3; }
}
@media (max-width: 720px) {
  .officers { grid-template-columns: 1fr; gap: 0; background: var(--white); border-radius: 28px; padding: 4px 22px; margin-bottom: 10px; }
  .officer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 16px 0; border-radius: 0; background: none; border-top: 1.5px solid var(--cream); }
  .officer:first-child { border-top: 0; }
  .officer .badge { grid-column: 1; grid-row: 1; justify-self: start; margin-bottom: 4px; }
  .officer .member-name { grid-column: 1; grid-row: 2; font-size: 15.5px; }
  .officer .link { grid-column: 2; grid-row: 1 / 3; align-self: center; min-height: 36px; margin: 0; }
  .officer .member-addr { grid-column: 1 / -1; font-size: 13px; }
  .officer .zip { display: inline; }
  .officer .member-tel { grid-column: 1 / -1; display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 13px; }
  .dir { padding: 4px 22px; border-radius: 28px; }
  .dir-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 0; }
  .dir-row .member-name { grid-column: 1; grid-row: 1; font-size: 15.5px; }
  .dir-row .member-web { grid-column: 2; grid-row: 1; }
  .dir-row .member-addr { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .dir-row .member-tel { grid-column: 1 / -1; grid-row: 3; display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 13px; }
  .dir-row .link { min-height: 36px; }
}

/* 記事 */
.post--solo { grid-template-columns: minmax(0, 820px); justify-content: center; }
.post-nav { grid-template-columns: 1fr 1fr; }
.post-nav-card:only-child.newer { grid-column: 2; }
.post-back { margin-top: 20px; text-align: center; }
/* お知らせ一覧：スマホは横並びの行にして 1 画面に 3〜4 件見せる */
@media (max-width: 720px) {
  .news-items { gap: 18px; }
  .news-item { grid-template-columns: 36% 1fr; grid-template-rows: auto auto 1fr; column-gap: 16px; row-gap: 6px; }
  .news-item .thumb { grid-row: 1 / 4; aspect-ratio: 1; border-radius: 20px; }
  .news-item h3 { font-size: 15.5px; }
}

/* 来場案内：カードが 1 枚でも間延びしない */
.admits { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.admits:has(> .admit:only-child) { grid-template-columns: minmax(0, 560px); }

/* フォーム：欄の輪郭をはっきり、誤りは欄ごとに */
.field input, .field select, .field textarea { border: 1.5px solid #8c8e88; background: var(--white); }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--coral-deep); box-shadow: 0 0 0 3px rgba(207, 69, 39, .16); }
.field .err { color: var(--coral-deep); font-size: 14px; font-weight: 500; }
.form-status { font-weight: 500; }
.form-confirm-h { font-size: 20px; font-weight: 700; }
.text-link { text-decoration: underline; text-decoration-color: var(--stone-line); text-underline-offset: 4px; font-weight: 500; }
.text-link:hover { text-decoration-color: var(--ink); }
@media (max-width: 720px) { .contact-side { order: 2; } }

/* 目次（プライバシーポリシー） */
.policy-toc ol { counter-reset: none; }
@media (max-width: 720px) { .policy-toc ol { grid-template-columns: 1fr; } .policy-toc a { padding: 10px 14px; background: var(--white); } }

.statement .lede { margin-bottom: 24px; }
.rec-date { word-break: keep-all; }

/* ===== 監修 v4：開催概要・開催報告 ===== */
/* セクションの間隔：下層は詰める（以前は見出しの上下に 250〜300px 空いていた） */
.page-body .section { padding-block: clamp(44px, 5.4vw, 76px); }
.page-body .section--tight { padding-block: clamp(32px, 4vw, 56px); }
.page-body .sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.page-body > section:last-child { padding-bottom: clamp(72px, 9vw, 120px); }

/* ヒーローの会期・会場 */
.page-hero .lead .when, .page-hero .lead .where { display: block; }
.page-hero .lead .when { font-family: var(--font-latin), var(--font-jp); font-size: clamp(19px, 2vw, 26px); font-weight: 500; line-height: 1.4; }
.page-hero .lead .where { font-size: 15px; }

/* チケット */
.ticket-no { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ticket-no span { margin-right: 0; }
.ticket-no [lang="en"] { padding: 0; background: none; color: var(--stone); letter-spacing: .06em; border-radius: 0; }
.ticket-no .state { margin-left: auto; padding: 5px 14px; border-radius: 30px; background: var(--ink); color: var(--white); font-family: var(--font-jp); font-size: 13px; letter-spacing: 0; text-transform: none; }
.ticket-actions .btn--outline { border-color: var(--ink); }
.status { font-size: 14px; }
.admit .card-act .link { font-size: 14px; }
.sub-h { margin-top: clamp(32px, 4vw, 48px); }
.sub-h + .name-grid { columns: auto; display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 0; background: none; border-radius: 0; }
.sub-h + .name-grid li { padding: 10px 18px; border: 0; border-radius: 30px; background: var(--white); }
.name-grid li:first-child { border-top: 1.5px solid var(--cream); }
.name-grid { columns: 4 190px; }
.sign-card { margin-top: 8px; }

/* 開催報告の冒頭：左に会期・会場と概要、右にポスター。上端と左端を揃える */
.report-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 26%); gap: clamp(20px, 3vw, 44px); align-items: start; margin-top: 14px; background: var(--white); border-radius: var(--r-card); padding: clamp(24px, 3.4vw, 48px); }
.report-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1.5px solid var(--cream); }
.report-facts dt { font-size: 13px; color: var(--stone); font-weight: 500; margin-bottom: 4px; }
.report-facts dd { font-size: 16px; line-height: 1.7; font-family: var(--font-latin), var(--font-jp); }
.report-intro .summary { margin: 0; padding: 0; max-width: 36em; }
.report-poster img { border-radius: 18px; }
/* 天気：絵文字をやめて線画に */
.day-card .wx { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1; }
.wx-ico { width: 34px; height: 34px; flex: none; }
.wx-sun { color: #d99a12; } .wx-cloud { color: var(--stone); }
.wx-t { color: var(--stone); }

/* 会場風景：拡大表示 */
.gallery a { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 200; margin: 0; padding: 0; border: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(30, 31, 28, .94); color: var(--white); }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lb img { max-width: min(92vw, 1500px); max-height: calc(100dvh - 120px); border-radius: 14px; object-fit: contain; }
.lb-bar { display: flex; align-items: center; gap: 18px; padding: 14px 0 22px; font-family: var(--font-latin); font-size: 15px; }
.lb button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 20px; line-height: 1; }
.lb .lb-close { position: absolute; top: 18px; right: 18px; }
.lb :focus-visible { outline-color: var(--white); box-shadow: none; }
.gallery-more { display: none; }
/* 長い挨拶：スマホでは途中まで見せて「続きを読む」 */
.letter-more { display: none; }
@media (max-width: 720px) {
  .letter-body.is-clamped { max-height: 620px; overflow: hidden; position: relative; }
  .letter-body.is-clamped::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(to bottom, rgba(255,255,255,0), var(--white) 78%); }
  .letter-more { display: inline-flex; margin: -26px auto 0; position: relative; z-index: 1; justify-self: center; }
  .letter { justify-items: stretch; }
  .gallery.is-short li:nth-child(n+9) { display: none; }
  .gallery-more { display: inline-flex; margin: 16px auto 0; }
  .gallery-wrap { display: grid; }
  .report-intro { grid-template-columns: 1fr; }
  .report-facts { grid-template-columns: 1fr; }
  .report-poster { max-width: 220px; }
  .sns-card { grid-template-columns: 96px 1fr; padding: 14px; border-radius: 26px; align-items: start; }
  .sns-card .h-sm { font-size: 17px; }
  .name-grid { columns: 2; column-gap: 20px; }
  .ticket-no .state { margin-left: 0; }
}
@media (max-width: 960px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } .logo-grid li > * { height: 96px; } }
/* 長文（挨拶・記事・規約）は通常の折り返しで行末を揃える。文節折り返しは見出し・カード・短文だけ */
main .letter-body p, main .post-body p, main .policy p, main .policy li, main .art p, main .clauses p, main .statement p:not([class]), main .notes li, main .report-intro .summary { word-break: normal; }
/* フェアについて：最新開催カードは会場の実写で */
.mosaic { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: 10px; align-self: stretch; min-height: 300px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.mosaic .m1 { grid-row: 1 / 3; }
.fair-card { grid-template-columns: 1fr 1fr; align-items: stretch; }
@media (max-width: 960px) { .fair-card { grid-template-columns: 1fr; } .mosaic { min-height: 240px; } }
.gallery li:first-child { grid-column: auto; grid-row: auto; }
.gallery li:first-child a { aspect-ratio: 4 / 3; }
.gallery li.lead { grid-column: span 2; grid-row: span 2; }
.gallery li.lead a { aspect-ratio: auto; }

/* ===== 監修 v4：見出しの序列（ページ題 ＞ セクション見出し。指定はここだけ） ===== */
.page-hero h1.h-lg { font-size: clamp(36px, 5vw, 72px); line-height: 1.2; letter-spacing: 0; }
.page-hero h1.h-lg.h1-long { font-size: clamp(30px, 4.3vw, 62px); line-height: 1.26; }
.page-body .h, .page-body .statement-k { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.04em; }
.page-body .sec-head .label { font-size: 16px; }
.h-lg, .statement-lead, .h-sm { letter-spacing: 0; }
@media (max-width: 720px) {
  .page-hero h1.h-lg { font-size: clamp(32px, 9.4vw, 40px); }
  .page-hero h1.h-lg.h1-long { font-size: clamp(27px, 7.6vw, 32px); }
  .page-body .h, .page-body .statement-k { font-size: clamp(24px, 6.6vw, 28px); }
  .member-addr, .dir-row .member-addr, .officer .member-addr, .dir-row .member-tel, .officer .member-tel { font-size: 14px; }
}
/* 旗は地面（シートの縁）に立てる */
.page-stage .deco.ill-flag { bottom: calc(var(--sheet) - 4px); }
@media (max-width: 700px) { .page-stage .deco.ill-flag { bottom: -4px; } }

/* ===== 監修 v4：再レビュー対応 ===== */
.letter-by img { height: auto; }
@media (max-width: 720px) { .letter-by img { height: 96px; } .post-nav { grid-template-columns: 1fr; } .post-nav-card:only-child.newer { grid-column: auto; } }
.admits { align-items: start; }
.plans { align-items: start; }
/* 住所・電話・会場名は通常の折り返し（数字や語の途中で不自然に切れないよう、文節指定を外す） */
main .member-addr, main .member-tel, main .rec-venue, main .rec-date, main .facts-grid dd, main .report-facts dd, main .ticket-facts dd, main .sign-card dd, main .office p { word-break: normal; overflow-wrap: break-word; }
.post-nav-card .t { word-break: keep-all; overflow-wrap: anywhere; }
/* ロゴの一覧：最後の行も中央に寄せる */
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.logo-grid li { flex: 0 0 calc((100% - 12px * (var(--cols, 5) - 1)) / var(--cols, 5)); }
@media (max-width: 960px) { .logo-grid li { flex-basis: calc((100% - 24px) / 3); } }
@media (max-width: 720px) { .logo-grid li { flex-basis: calc((100% - 12px) / 2); } }
/* 会場風景：最後の行を埋める */
@media (min-width: 721px) { .gallery li.tail-2 { grid-column: span 2; } .gallery li.tail-3 { grid-column: span 3; } .gallery li.tail-4 { grid-column: span 4; } .gallery li[class*="tail-"] a { aspect-ratio: auto; height: 100%; max-height: 420px; } }
/* 記事ページのヒーローは低く */
@media (min-width: 701px) { .page-hero--compact { padding: clamp(130px, 13vw, 170px) 0 clamp(96px, 10vw, 140px); } .page-hero--compact .page-stage .perch { bottom: calc(var(--sheet) + clamp(70px, 8vw, 130px) * var(--up, 1)); } }
/* 年表：開催のない期間は点線で示す */
.rec-gap { display: grid; grid-template-columns: 9.6em 1fr; padding: 4px 0; }
.rec-gap span { justify-self: center; width: 2.5px; height: 44px; background: repeating-linear-gradient(to bottom, var(--cream) 0 6px, transparent 6px 12px); position: relative; z-index: 1; }
@media (max-width: 720px) { .rec-gap { grid-template-columns: 4.8em 1fr; } }
/* 481〜700px：動物の帯はスマホ幅（最大 440px）の箱にして右に寄せる。割合がスマホ前提なので、画面が広がっても動物だけ巨大化しない */
@media (min-width: 481px) and (max-width: 700px) {
  .page-stage { width: 440px; max-width: 100%; margin-left: auto; height: var(--band-fixed, 250px); }
  .page-hero--sky .page-stage { --band-fixed: 330px; }
}

/* ===== 会場風景：Safari（iPad・iPhone）で列が写真の元の大きさに引っ張られて画面からはみ出すのを防ぐ =====
   列は minmax(0, 1fr) にして中身で広がらないようにし、写真は枠に絶対配置して枠の大きさを左右させない */
.gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery li { position: relative; min-width: 0; aspect-ratio: 4 / 3; }
.gallery li.lead, .gallery li[class*="tail-"] { aspect-ratio: auto; }
.gallery li.tail-4 { aspect-ratio: 16 / 5; }
.gallery a, .gallery li.lead a, .gallery li:first-child a, .gallery li[class*="tail-"] a { position: absolute; inset: 0; height: auto; max-height: none; aspect-ratio: auto; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery li[class*="tail-"] { aspect-ratio: 4 / 3; }
}
/* 同じ理由で、写真や長い語を含むほかの格子も、列が中身で広がらないようにする */
.mosaic { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.mosaic img { min-width: 0; min-height: 0; }
.news-items > *, .officers > *, .stats > *, .fees > *, .plans > *, .admits > *, .program > *, .report-intro > *, .ticket > *, .post > *, .contact > *, .policy-wrap > *, .letter > *, .statement > *, .fair-card > * { min-width: 0; }
@media (max-width: 720px) { .gallery li.lead { grid-row: auto; aspect-ratio: 4 / 3; } }

/* ===== トップへ戻る：穴から顔を出すハムスター。押すとぴょんと跳ねて上へ ===== */
.to-top { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 45; width: 76px; height: 76px; opacity: 0; visibility: hidden; transform: translateY(24px) scale(.8); transition: opacity .35s var(--ease), transform .45s cubic-bezier(.3, 1.5, .5, 1), visibility 0s .45s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top-hole { position: absolute; inset: 0; border-radius: 50%; background: var(--grass); box-shadow: 0 0 0 4px var(--white), 0 10px 24px -12px rgba(44, 46, 42, .55); overflow: hidden; }
.to-top-hole .ill { position: absolute; left: 50%; bottom: -30%; width: 74%; max-width: none; translate: -50% 0; transition: translate .4s cubic-bezier(.3, 1.5, .5, 1); }
@media (hover: hover) { .to-top:hover .to-top-hole .ill { translate: -50% -14%; } }
.to-top:focus-visible .to-top-hole .ill { translate: -50% -14%; }
.to-top-arrow { position: absolute; top: -6px; right: -6px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--white); transition: transform .35s var(--ease); }
.to-top-arrow svg { width: 13px; height: 13px; }
@media (hover: hover) { .to-top:hover .to-top-arrow { transform: translateY(-4px); } }
@keyframes toTopHop { 0% { translate: -50% 0; } 35% { translate: -50% -62%; } 60% { translate: -50% -40%; } 100% { translate: -50% 40%; } }
.to-top.is-go .to-top-hole { overflow: visible; }
.to-top.is-go .to-top-hole .ill { animation: toTopHop .7s cubic-bezier(.3, .8, .4, 1) both; }
body.menu-open .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 720px) { .to-top { width: 64px; height: 64px; right: 14px; bottom: 14px; } .to-top-arrow { width: 26px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top-hole .ill, .to-top-arrow { transition: none; } .to-top.is-go .to-top-hole .ill { animation: none; } }
@media print { .to-top { display: none; } }

/* ===== チケットのポスター：傾けず、余白なしで半券いっぱいに ===== */
.ticket { grid-template-columns: minmax(0, 1fr) minmax(200px, 30%); }
.ticket::before, .ticket::after { right: calc(max(200px, 30%) - 18px); z-index: 2; }
.ticket-main { align-self: center; border-right: 0; }
.ticket-stub { display: block; padding: 0; background: var(--sand); border-left: 2.5px dashed var(--sand); }
.ticket-stub .stub-open { display: block; height: 100%; }
.ticket-stub img, .ticket-stub .stub-open:hover img { display: block; width: 100%; height: auto; max-height: none; border-radius: 0; box-shadow: none; transform: none; }
@media (max-width: 720px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-main { border-bottom: 0; }
  .ticket-stub { border-left: 0; border-top: 2.5px dashed var(--sand); }
  .ticket-stub img { max-width: none; }
}
.to-top-hole .ill { width: 104%; left: 60%; bottom: -46%; }
.ticket-stub img, .ticket-stub .stub-open:hover img { height: 100%; object-fit: cover; object-position: 50% 0; }
main .ticket-facts dd { word-break: keep-all; overflow-wrap: anywhere; }
/* 半券の幅は、左の文字の列の高さにポスターの高さが合うように main.js が --stub を入れる（傾きなし・余白なし・切り落としなし） */
@media (min-width: 721px) {
  .ticket { grid-template-columns: minmax(0, 1fr) var(--stub, 30%); }
  .ticket::before, .ticket::after { right: calc(var(--stub, 30%) - 18px); }
}
@media (min-width: 721px) and (max-width: 900px) {
  .ticket-main { padding: 28px; }
  .ticket-facts { gap: 16px; margin-bottom: 22px; }
  .ticket-facts > div:nth-child(3) { display: none; }   /* 入場料は下の「来場される方へ」に記載 */
  .ticket-facts > div { grid-template-columns: 1fr; gap: 2px; }
}
/* トップへ戻る：動物ごとに顔が丸の中央に来る位置（main.js が --w / --x / --b を入れる） */
.to-top-hole .ill { width: var(--w, 104%); left: var(--x, 60%); bottom: var(--b, -46%); }

/* 会員一覧：役員も名簿の行に（役職は社名の前のバッジで示す） */
.dir-row .member-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dir-row .member-name .badge { flex: none; padding: 3px 10px; font-size: 11.5px; line-height: 1.5; }
.dir-row--officer { background: linear-gradient(90deg, rgba(239, 90, 60, .05), rgba(239, 90, 60, 0) 60%); margin-inline: calc(clamp(24px, 3.4vw, 48px) * -1); padding-inline: clamp(24px, 3.4vw, 48px); }
@media (max-width: 720px) { .dir-row--officer { margin-inline: -22px; padding-inline: 22px; } }

/* ===== 開催報告の冒頭もチケットに（開催概要と同じ） ===== */
.ticket--report .ticket-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; gap: 18px 28px; }
.ticket--report .ticket-facts > div { grid-template-columns: 1fr; gap: 4px; }
.ticket--report .ticket-facts dd { font-family: var(--font-latin), var(--font-jp); }
.ticket--report .summary { margin: 0 0 26px; padding-top: 22px; border-top: 1.5px solid var(--cream); font-size: 16px; line-height: 2; max-width: 36em; }
.ticket--report .ticket-no .state { background: var(--sun); color: var(--ink); }
.stats-sec { padding-top: 0 !important; }
@media (max-width: 900px) { .ticket--report .ticket-facts { grid-template-columns: 1fr; } }

/* ===== このページの内容：押せるボタンに見えるように（立体の縁・下向き矢印・押すと沈む） ===== */
.anchors { display: grid; gap: 12px; }
.anchors-k { font-size: 13px; font-weight: 700; color: var(--stone); letter-spacing: .04em; }
.anchors > div { display: flex; flex-wrap: wrap; gap: 10px; }
.anchors a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px 8px 20px; border-radius: 40px; background: var(--white); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-size: 15px; font-weight: 700; color: var(--ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s; }
.anchors a .ico { width: 28px; height: 28px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease); }
.anchors a .ico svg { width: 12px; height: 12px; }
.anchors a:hover { background: #fffbea; transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.anchors a:hover .ico { transform: translateY(2px); }
.anchors a:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
@media (max-width: 720px) { .anchors > div { display: grid; grid-template-columns: 1fr 1fr; } .anchors a { justify-content: space-between; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .anchors a, .anchors a .ico { transition: none; } }
/* Safari（WebKit）で、チケットの格子の中の text-wrap（balance / pretty）がページごと落ちる不具合を避ける */
.ticket, .ticket * { text-wrap: wrap; }
/* 会員一覧：役員の行の色が枠の角丸からはみ出さないよう、一覧の枠で切り抜く */
.dir { overflow: hidden; }

/* ===== 会期：日めくり風のタイル／会場：ピンの札（開催概要・開催報告のチケット） ===== */
.dtiles { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 16px; }
.dtile { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "m m" "d w" "t t"; min-width: 150px; background: var(--cream); border-radius: 20px; overflow: hidden; }
.dtile .m { grid-area: m; padding: 7px 16px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.dtile .d { grid-area: d; padding: 12px 0 0 16px; font-family: var(--font-latin); font-size: clamp(46px, 4.4vw, 60px); font-weight: 500; line-height: .95; letter-spacing: -.045em; }
.dtile .w { grid-area: w; align-self: end; justify-self: start; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 0 6px 10px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 700; }
.dtile .t { grid-area: t; padding: 10px 16px 14px; font-family: var(--font-latin); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.dtile .t i { font-style: normal; margin: 0 5px; color: var(--stone); }
.dtile--sat .m, .dtile--sat .w { background: #3f6c99; }
.dtile--sun .m, .dtile--sun .w { background: var(--coral-deep); }
.venue { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 26px; padding: 16px 20px 16px 16px; background: var(--cream); border-radius: 20px; }
.venue .pin { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--coral-deep); }
.venue .pin svg { width: 22px; height: 22px; }
.venue .vk { font-size: 12px; font-weight: 700; color: var(--stone); letter-spacing: .06em; }
.venue .vname { font-size: clamp(16px, 1.6vw, 19px); font-weight: 700; line-height: 1.45; margin: 2px 0 8px; word-break: keep-all; overflow-wrap: anywhere; }
.venue .vchips { display: flex; flex-wrap: wrap; gap: 6px; }
.venue .chip-v { padding: 4px 12px; border-radius: 30px; background: var(--white); font-size: 13px; font-weight: 500; }
.venue .vmap { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 6px; font-size: 14px; font-weight: 500; border-bottom: 1.5px solid var(--stone-line); }
.venue .vmap:hover { border-color: var(--ink); }
.ticket .ticket-facts:empty { display: none; }
@media (max-width: 900px) {
  .dtile { min-width: 128px; }
  .dtile .d { padding: 10px 0 0 14px; }
}
/* トップへ戻る：タップの遅延と長押しメニューをなくし、当たり判定を矢印まで含めて広げる */
.to-top { touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; }
.to-top::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
.to-top * { pointer-events: none; }
/* ===== フェアについて：最新の開催（第19回）の特集 ===== */
.ff { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head photos" "nums nums" "quote makers" "actions actions"; gap: 18px; background: var(--white); border-radius: var(--r-card); padding: clamp(24px, 3.4vw, 44px); }
.ff-head { grid-area: head; display: flex; flex-direction: column; }
.ff-flags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.ff-state { padding: 4px 12px; border-radius: 30px; background: var(--sun); font-size: 12px; font-weight: 700; }
.ff-title { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.2; font-weight: 700; letter-spacing: 0; margin-bottom: 22px; }
.ff-no { display: block; font-family: var(--font-latin), var(--font-jp); color: var(--coral-deep); font-size: .62em; margin-bottom: 4px; }
.ff-head .dtiles { margin-top: 0; }
.ff-head .venue { margin: auto 0 0; }
.ff-photos { grid-area: photos; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 380px; }
.ff-photos li { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 18px; background: var(--sand); }
.ff-photos li.p0 { grid-column: 1 / 3; grid-row: 1 / 3; }
.ff-photos li.p1 { grid-column: 3 / 5; grid-row: 1 / 2; }
.ff-photos li.p2 { grid-column: 3 / 5; grid-row: 2 / 3; }
.ff-photos li.p3 { grid-column: 1 / 2; grid-row: 3 / 4; }
.ff-photos li.p4 { grid-column: 2 / 4; grid-row: 3 / 4; }
.ff-photos li.p5 { grid-column: 4 / 5; grid-row: 3 / 4; }
.ff-photos a, .ff-photos img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ff-photos img { object-fit: cover; max-width: none; transition: transform .6s var(--ease); }
@media (hover: hover) { .ff-photos a:hover img { transform: scale(1.05); } }
.ff-nums { grid-area: nums; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.ff-nums > div { border-radius: 26px; padding: 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.ff-total { background: var(--ink); color: var(--white); }
.ff-count { background: var(--cream); justify-content: space-between; }
.ff-count:last-child { background: var(--sun); }
.ff-nums .k { font-size: 13px; font-weight: 700; opacity: .85; }
.ff-nums .n { font-family: var(--font-latin); font-size: clamp(40px, 4.6vw, 68px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.ff-nums .n i { font-style: normal; font-family: var(--font-jp); font-size: .28em; letter-spacing: 0; margin-left: 6px; }
.ff-days { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; font-size: 13px; opacity: .85; }
.ff-days li { display: flex; gap: 8px; align-items: baseline; }
.ff-days .n { font-size: 18px; letter-spacing: 0; }
.ff-quote { grid-area: quote; margin: 0; padding: 22px 26px; border-radius: 26px; background: var(--cream); position: relative; }
.ff-quote::before { content: "“"; position: absolute; top: 4px; left: 18px; font-family: var(--font-latin); font-size: 64px; line-height: 1; color: var(--grass); }
.ff-quote p { position: relative; padding-top: 24px; font-size: 16px; line-height: 1.9; font-weight: 500; }
.ff-quote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--stone); }
.ff-makers { grid-area: makers; padding: 20px 22px; border-radius: 26px; border: 1.5px solid var(--cream); }
.ff-k { font-size: 13px; font-weight: 700; color: var(--stone); margin-bottom: 12px; }
.ff-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px 14px; align-items: center; }
.ff-logos li { display: grid; place-items: center; height: 40px; }
.ff-logos img { max-width: 100%; max-height: 32px; width: auto; height: auto; object-fit: contain; }
.ff-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
@media (max-width: 1024px) {
  .ff { grid-template-columns: 1fr; grid-template-areas: "head" "photos" "nums" "quote" "makers" "actions"; }
  .ff-head .venue { margin-top: 0; }
  .ff-photos { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .ff { padding: 20px; gap: 14px; }
  .ff-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); aspect-ratio: 3 / 4; }
  .ff-photos li.p0 { grid-column: 1 / 3; grid-row: 1 / 2; } .ff-photos li.p1 { grid-column: 1 / 2; grid-row: 2 / 3; } .ff-photos li.p2 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .ff-photos li.p3 { grid-column: 1 / 2; grid-row: 3 / 4; } .ff-photos li.p4 { grid-column: 2 / 3; grid-row: 3 / 4; } .ff-photos li.p5 { display: none; }
  .ff-nums { grid-template-columns: 1fr 1fr; } .ff-total { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .ff-photos img { transition: none; } }

/* ===== メンバー専用（ダミー） ===== */
.demo-note { display: inline-block; margin-bottom: 20px; padding: 8px 16px; border-radius: 30px; background: var(--sun); font-size: 14px; font-weight: 500; }
.members-area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.login { display: grid; gap: 14px; }
.login-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--grass); color: var(--ink); }
.login-ico svg { width: 26px; height: 26px; }
.members-list { background: var(--white); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); }
.mlist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 16px 0; border-top: 1.5px solid var(--cream); color: var(--stone); }
.mlist li:first-child { border-top: 0; }
.mlist .mk { padding: 3px 10px; border-radius: 20px; background: var(--cream); font-size: 12px; font-weight: 700; color: var(--ink); }
.mlist .mt { font-weight: 500; }
.mlist time { font-family: var(--font-latin); font-size: 13px; }
.mlist .ml svg { width: 18px; height: 18px; display: block; }
@media (max-width: 900px) { .members-area { grid-template-columns: 1fr; } .mlist li { grid-template-columns: auto minmax(0, 1fr) auto; } .mlist time { display: none; } }
.ff-quote { display: flex; flex-direction: column; justify-content: center; }
.ff-logos { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.ff-logos li { height: 44px; }
.ff-logos img { max-height: 36px; }

/* 開催概要のチケット（タブレット縦）：入場料は下の「来場される方へ」に記載があるので省き、ポスターの高さと揃える */
@media (min-width: 721px) and (max-width: 900px) { .ticket:not(.ticket--report) .ticket-facts > div:nth-child(3) { display: none; } }

/* チケットのポスター：縦横比は元の画像のまま（引き伸ばし・切り落としなし）。高さは半券の幅で合わせる */
.ticket { align-items: start; }
.ticket-main { align-self: start; }   /* 中身の高さで測れるように伸ばさない（地の白はチケット本体が受け持つ） */
/* 半券の幅は main.js がポスターの高さ＝左の列の高さになるよう決める。合わせきれない幅（iPad mini 縦など）だけ、
   わずかな差を上下左右の切り落とし（数%以内）で吸収し、引き伸ばしはしない */
.ticket-stub { align-self: stretch; position: relative; }
.ticket-stub .stub-open { position: absolute; inset: 0; height: auto; }
.ticket-stub img, .ticket-stub .stub-open:hover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; aspect-ratio: auto; }
@media (max-width: 720px) {
  .ticket-stub { position: static; }
  .ticket-stub .stub-open { position: static; }
  .ticket-stub img, .ticket-stub .stub-open:hover img { position: static; height: auto; }
}

/* 開催報告のチケット（タブレット縦）：左の列が縦に長くなりすぎないよう、文字を少し詰める */
@media (min-width: 721px) and (max-width: 900px) {
  .ticket--report .ticket-main { padding: 28px 26px; }
  .ticket--report .summary { font-size: 14.5px; line-height: 1.85; margin-bottom: 20px; padding-top: 16px; }
  .ticket--report .ticket-facts { gap: 12px; }
  .ticket--report .ticket-facts dd { font-size: 14.5px; }
  .ticket--report .ticket-no { margin-bottom: 18px; }
}

/* ── フェアについて：イベント&セミナー（分類ごとに会場写真を添えたカード） ──
   左：看板のコンテストを大きな写真で。右：セミナー／体験・ふれあい／展示・販売 を横長カードで重ねる。
   左右の高さは、左の写真が伸び縮みして揃う */
.evx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; }
.evx-side { display: grid; gap: 18px; }
.evx-card { background: var(--white); border-radius: 36px; overflow: hidden; min-width: 0; --c: var(--sky); }
.evx--contest { --c: var(--coral); } .evx--seminar { --c: var(--sky); } .evx--hands { --c: var(--grass); } .evx--market { --c: var(--sun); }
.evx-ph { position: relative; margin: 0; background: var(--sand); overflow: hidden; }
.evx-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; transition: transform .8s var(--ease); }
@media (hover: hover) { .evx-card:hover .evx-ph img { transform: scale(1.04); } }
.evx-body { padding: 22px 28px 26px; min-width: 0; }
.evx-k { display: flex; align-items: center; gap: 8px; font-family: var(--font-latin); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }
.evx-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.evx-n { margin-left: auto; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, var(--white)); color: var(--ink); font-size: 13px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.evx-h { font-size: 22px; line-height: 1.35; font-weight: 700; margin-bottom: 10px; }
.evx-list li { position: relative; padding: 10px 0 10px 20px; border-top: 1.5px solid var(--cream); font-size: 15px; line-height: 1.55; }
.evx-list li::before { content: ""; position: absolute; left: 2px; top: calc(10px + .78em - 4px); width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--c); box-sizing: border-box; }
/* 右の 3 枚：写真を左に、内容を右に */
.evx-side .evx-card { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); }
.evx-side .evx-ph { min-height: 100%; }
/* 左の看板：写真が残りの高さをすべて使う */
.evx-lead { display: flex; flex-direction: column; }
.evx-lead .evx-ph { flex: 1 1 auto; min-height: 300px; }
.evx-lead .evx-body { padding: 26px 32px 30px; }
.evx-lead .evx-h { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.3; margin: 4px 0 0; text-wrap: balance; }
@media (max-width: 1080px) {
  .evx { grid-template-columns: minmax(0, 1fr); }
  .evx-lead .evx-ph { flex: none; min-height: 0; aspect-ratio: 16 / 8; }
}
@media (max-width: 640px) {
  .evx, .evx-side { gap: 12px; }
  .evx-card { border-radius: 28px; }
  .evx-side .evx-card { grid-template-columns: minmax(0, 1fr); }
  .evx-side .evx-ph { min-height: 0; aspect-ratio: 16 / 7; }
  .evx-body, .evx-lead .evx-body { padding: 18px 22px 22px; }
  .evx-lead .evx-ph { aspect-ratio: 4 / 3; }
}
@media (min-width: 1081px) {
  .evx-list li { padding-block: 8px; }
  .evx-side .evx-body { padding: 20px 26px 20px; }
  .evx-lead .evx-ph img { object-position: 30% 45%; }
}
/* レビュー（Fable）指摘の反映 */
@media (max-width: 1080px) { .evx-side .evx-card { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); } }
@media (max-width: 640px) {
  .evx-lead .evx-ph img { object-position: 38% 45%; }
  .evx-side .evx-card { grid-template-columns: minmax(0, 1fr); }
  .evx-side .evx-ph { aspect-ratio: 16 / 9; }
  .evx-side .evx-ph img { object-position: 50% 30%; }
}
.evx-n { margin-right: -4px; }
/* 指・マウスで操作しているときは、スクリプトで移したフォーカスにも枠を出さない（iPhone でロゴ等に黒い枠が残るため）。
   キーボード操作に切り替わると data-input="key" になり、枠が出る */
html[data-input="pointer"] :focus-visible { outline: none; box-shadow: none; }
/* 下層ヒーローの動物：向かい合わせるための左右反転（rise の transform と別の scale で反転する） */
.page-stage .pet.flip-x { scale: -1 1; }
/* フェアについて：出展メーカーのロゴ。幅を px で固定すると、列が狭い幅（iPad 等）で横長のロゴが列いっぱいに広がり隣と接する。
   面積の揃う値（--lw：64〜188）を列幅に対する割合に直し、全体を一回り小さくして余白を取る */
.ff-logos { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 16px 28px; }
.ff-logos li { height: 40px; }
.ff-logos img { width: calc(var(--lw, 120) * .4%) !important; max-height: 28px; }
@media (max-width: 720px) { .ff-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; } .ff-logos img { max-height: 24px; } }
@media (max-width: 720px) { .ff-logos img { width: calc(var(--lw, 120) * .52%) !important; max-height: 26px; } }

/* 出展メーカーのロゴ一覧：元のサイトと同じ比率にする（1 社ずつ白い角丸の枠、枠は 16:10、パソコン・iPad は 1 行 4 社、スマホは 2 社）。
   ロゴは build.py が付ける面積の揃う値（--lw：64〜188）を、枠の幅に対する割合に直して大きさを揃える */
.logo-grid { gap: 16px; }
.logo-grid li { flex: 0 0 calc((100% - 16px * 3) / 4); }
.logo-grid li > * { height: auto; aspect-ratio: 16 / 10; padding: 8% 9%; border-radius: 24px; display: flex; align-items: center; justify-content: center; }
.logo-grid img { width: calc(var(--lw, 120) * .43%) !important; max-width: 100%; max-height: 70%; }
@media (max-width: 960px) { .logo-grid li { flex-basis: calc((100% - 16px * 3) / 4); } }
@media (max-width: 720px) {
  .logo-grid { gap: 12px; }
  .logo-grid li { flex-basis: calc((100% - 12px) / 2); }
  .logo-grid li > * { height: auto; border-radius: 18px; }
}
.logo-grid img { width: calc(var(--lw, 120) * .5%) !important; }
@media (max-width: 720px) { .logo-grid li > * { padding: 7% 8%; } .logo-grid img { width: calc(var(--lw, 120) * .52%) !important; } }
/* 会員一覧：1 行目（会長）の薄い赤を箱の角まで届かせる。箱の上の余白をなくし、そのぶん 1 行目の内側に入れる */
.dir { padding-top: 0; overflow: hidden; }
.dir > .dir-row:first-child { padding-top: 28px; }
@media (max-width: 720px) { .dir > .dir-row:first-child { padding-top: 18px; } }

/* トップへ戻る：消えるときは薄くなりながら大きさ 0 まで縮み、出るときは 0 から弾んで現れる */
.to-top { transform: scale(0); transform-origin: 50% 50%; transition: opacity .3s var(--ease), transform .5s cubic-bezier(.34, 1.56, .64, 1), visibility 0s .5s; }
.to-top:not(.is-on) { transition: opacity .3s var(--ease), transform .35s cubic-bezier(.5, 0, .75, 0), visibility 0s .35s; }
.to-top.is-on { transform: scale(1); }
/* マウスを乗せたとき：上に上がるのではなく、穴の中の動物が首をかしげるようにきょろきょろする */
@keyframes toTopLook { 0%, 100% { rotate: 0deg; } 20% { rotate: -11deg; } 45% { rotate: 9deg; } 70% { rotate: -5deg; } 88% { rotate: 2deg; } }
.to-top-hole .ill { transform-origin: 50% 100%; }
@media (hover: hover) {
  .to-top:hover .to-top-hole .ill { translate: -50% 0; animation: toTopLook .9s cubic-bezier(.4, 0, .3, 1); }
  .to-top:hover .to-top-arrow { transform: none; }
}
.to-top:focus-visible .to-top-hole .ill { translate: -50% 0; animation: toTopLook .9s cubic-bezier(.4, 0, .3, 1); }
@media (prefers-reduced-motion: reduce) { .to-top:hover .to-top-hole .ill, .to-top:focus-visible .to-top-hole .ill { animation: none; } .to-top, .to-top:not(.is-on) { transform: none; } }
.to-top.is-go .to-top-hole .ill, .to-top.is-go:hover .to-top-hole .ill { animation: toTopHop .7s cubic-bezier(.3, .8, .4, 1) both; }
/* 消えるとき：薄くなる速さを縮む速さに揃え、縮んでいく様子が見えるようにする */
.to-top:not(.is-on) { transition: opacity .38s cubic-bezier(.5, 0, .75, 0), transform .38s cubic-bezier(.5, 0, .75, 0), visibility 0s .38s; }
/* トップへ戻る・マウスを乗せたとき：左右の揺れはやめ、動物が少し上がって元の位置に戻る（1 回だけ） */
@keyframes toTopPeek { 0%, 100% { translate: -50% 0; } 45% { translate: -50% -12%; } }
@media (hover: hover) {
  .to-top:hover .to-top-hole .ill { animation: toTopPeek .7s cubic-bezier(.3, 1.3, .5, 1); }
  .to-top.is-used:hover .to-top-hole .ill { animation: none; }
}
.to-top:focus-visible .to-top-hole .ill { animation: toTopPeek .7s cubic-bezier(.3, 1.3, .5, 1); }
.to-top.is-go .to-top-hole .ill, .to-top.is-go:hover .to-top-hole .ill { animation: toTopHop .7s cubic-bezier(.3, .8, .4, 1) both; }
@media (prefers-reduced-motion: reduce) { .to-top:hover .to-top-hole .ill, .to-top:focus-visible .to-top-hole .ill { animation: none; } }
/* 押したあと：動物は飛び込んだまま（穴の下）で止めておく */
.to-top.is-go .to-top-hole .ill, .to-top.is-go:hover .to-top-hole .ill { animation: toTopHop .7s cubic-bezier(.3, .8, .4, 1) forwards; }
/* 押したあと：動物は上へ跳ね上がり、そのまま上がった状態でボタンと一緒に消える（下へは戻さない） */
@keyframes toTopRise { 0% { translate: -50% 0; } 55% { translate: -50% -46%; } 100% { translate: -50% -38%; } }
.to-top.is-go .to-top-hole .ill, .to-top.is-go:hover .to-top-hole .ill { animation: toTopRise .55s cubic-bezier(.3, .8, .4, 1) forwards; }
/* 下層ヒーローの枝：広い画面で上がりすぎて鳥の頭がメニューの裏に入らないよう、上がる高さの上限を下げる */
@media (min-width: 1281px) { .page-stage .perch { bottom: calc(var(--sheet) + clamp(120px, 15vw, 200px) * var(--up, 1)); } }
/* 押したあと：跳ね上がった動物に掛からないよう、右上の矢印は縮んで消える */
.to-top.is-go .to-top-arrow, .to-top.is-go:hover .to-top-arrow { transform: scale(0); opacity: 0; transition: transform .25s cubic-bezier(.5, 0, .75, 0), opacity .2s var(--ease); }
.to-top.no-anim .to-top-hole .ill, .to-top.no-anim .to-top-arrow { animation: none !important; transition: none !important; }

/* フェアについて・最新の開催（左側）：色の札や箱を使わず、墨の文字と細い線だけで静かに組む */
.ff-flag { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--stone); margin-bottom: 14px; }
.ff-flag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
.ff-no { color: var(--stone); font-size: .5em; font-weight: 600; margin-bottom: 8px; }
.ff-facts { margin-top: auto; border-top: 1.5px solid var(--cream); }
.ff-facts > div { display: grid; grid-template-columns: 3.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1.5px solid var(--cream); }
.ff-facts dt { font-size: 13px; font-weight: 600; color: var(--stone); padding-top: 3px; }
.ff-facts dd { display: grid; gap: 6px; font-size: 16px; font-weight: 500; }
.ff-facts .d { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-variant-numeric: tabular-nums; }
.ff-facts .d i { font-style: normal; color: var(--stone); font-size: .88em; margin-left: -10px; }
.ff-facts .t { color: var(--stone); font-size: 14px; }
.ff-facts .v { line-height: 1.55; }
.ff-map { justify-self: start; font-size: 13px; color: var(--stone); border-bottom: 1.5px solid var(--stone-line); padding-bottom: 2px; min-height: 32px; display: inline-flex; align-items: flex-end; }
.ff-map:hover { color: var(--ink); border-color: var(--ink); }
/* 会期：日付を大きな数字で 2 日分横に並べ、曜日と時間を小さく添える */
.ff-head { position: relative; }
.ff-when dd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ff-when .d { display: grid; gap: 2px; padding-left: 14px; border-left: 1.5px solid var(--cream); }
.ff-when .d:first-child { padding-left: 0; border-left: 0; }
.ff-when .d b { font-family: var(--font-latin); font-size: clamp(30px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.ff-when .w { font-size: 13px; font-weight: 600; }
.ff-when .t { font-size: 13px; color: var(--stone); font-variant-numeric: tabular-nums; }
/* 会場：小さな地図ピン */
.ff-where .v { display: flex; gap: 8px; align-items: flex-start; }
.ff-where .pin { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--coral); }
.ff-where .ff-map { margin-left: 24px; }
/* 左上の余白に小さな鳥（見出しの右上） */
.ff-bird { position: absolute; top: -6px; right: 4%; width: clamp(54px, 5.4vw, 76px); transform: scaleX(-1) rotate(-6deg); pointer-events: none; }
@media (max-width: 720px) { .ff-bird { width: 52px; right: 0; top: -4px; } }
/* 鳥は写真の方へ飛んでいくセキセイインコ（絵の中で羽ばたく）。ゆっくり上下に漂う */
.ff-bird { transform: rotate(-8deg); width: clamp(84px, 7.4vw, 108px); top: 2px; right: 3%; animation: ffDrift 3.2s ease-in-out infinite; }
@keyframes ffDrift { 50% { translate: 4px -6px; } }
@media (max-width: 720px) { .ff-bird { width: 76px; right: 0; top: 0; } }
@media (prefers-reduced-motion: reduce) { .ff-bird { animation: none; } }

/* フェアについて・最新の開催（左側）：開催報告ページのチケットと同じ組み方（番号の札・英字・状態の札／会期と会場の 2 列） */
.ff-no2 { margin-bottom: 18px; }
.ff-no2 .ff-state2 { background: var(--sun); color: var(--ink); font-weight: 600; }
.ff-head .ff-title { margin-bottom: 26px; }
.ff-facts2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 24px; margin-top: auto; padding-bottom: 22px; border-bottom: 1.5px solid var(--cream); }
.ff-facts2 dt { font-size: 14px; font-weight: 500; color: var(--stone); margin-bottom: 8px; }
.ff-facts2 dd { margin: 0; font-size: 15px; line-height: 1.75; font-variant-numeric: tabular-nums; word-break: keep-all; overflow-wrap: anywhere; }
.ff-facts2 .ff-map { display: inline-flex; margin-top: 8px; }
@media (max-width: 520px) { .ff-facts2 { grid-template-columns: 1fr; } }
.ff-facts2 .ff-map { display: flex; width: fit-content; margin-top: 6px; }
/* 最新の開催（左側）：開催概要ページのチケットと同じ組み方。列が狭いので会期の日付だけ一回り小さく */
.ff-head .ticket-no { margin-bottom: 26px; }
.ff-head .ticket-facts { margin-bottom: 0; }
.ff-head .ticket-facts dd strong { font-size: clamp(20px, 1.9vw, 26px); }

/* チケットのポスター：ボタン（リンクではない）。押すとサイト内で拡大表示 */
.ticket-stub .stub-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.ticket-stub img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.lb-poster img { max-height: 88vh; }

/* スマホ：数字と単位（人・円など）は離さない */
@media (max-width: 900px) {
  .stat-total .n, .day-card .n, .stats .n, .fee-tile .n, .ff-total .n, .ff-count .n { white-space: nowrap; }
}
/* 長い本文（挨拶・規約・ポリシー・報告など）も文節で改行する。build.py が文節を 9 字以内に分けているので、
   スマホの 1 行に必ず入り、行頭の「、」や言葉の途中での改行が起きない */
main .letter-body p, main .post-body p, main .policy p, main .policy li, main .art p, main .clauses p, main .statement p:not([class]), main .notes li, main .report-intro .summary,
main .member-addr, main .rec-venue, main .facts-grid dd, main .report-facts dd, main .ticket-facts dd, main .sign-card dd, main .office p { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }

/* 念のため：本文は text-wrap を通常に固定（pretty/balance と keep-all の組み合わせで WebKit が落ちるため） */
main p, main li, main dd, main dt, main td, main blockquote { text-wrap: wrap; }

/* メンバー専用ページ（ログイン後）：上にログイン中の表示とログアウト、事務局からのお知らせ、年の絞り込み、議事録の一覧 */
.members-in { display: grid; gap: 18px; }
.members-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 18px 14px 14px; border-radius: 26px; background: var(--white); }
.members-bar .who { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.members-bar .login-ico { width: 40px; height: 40px; border-radius: 12px; }
.members-bar .login-ico svg { width: 20px; height: 20px; }
.members-board { padding: clamp(20px, 2.6vw, 30px); border-radius: 26px; background: var(--sun); line-height: 1.8; }
.members-board .ff-k { color: var(--ink); }
.members-years { margin: 0; }
.minfo li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 0; border-top: 1.5px solid var(--cream); }
.minfo li:first-child { border-top: 0; }
.minfo .mk, .mlist--real .mk { padding: 3px 10px; border-radius: 20px; background: var(--cream); font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.mlist--real li { grid-template-columns: 6.5em auto minmax(0, 1fr) auto; align-items: start; color: var(--ink); }
.mlist--real time { padding-top: 4px; color: var(--stone); font-variant-numeric: tabular-nums; }
.mlist--real .mk { margin-top: 1px; }
.mlist--real .mt { display: grid; gap: 4px; }
.mlink { display: inline; font-weight: 600; text-decoration: underline; text-decoration-color: var(--stone-line); text-underline-offset: 4px; }
.mlink:hover { text-decoration-color: var(--ink); }
.mpdf { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 1px 7px 1px 4px; border-radius: 8px; background: var(--coral-deep); color: var(--white); font-family: var(--font-latin); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.mpdf svg { width: 13px; height: 13px; }
.mdesc { color: var(--stone); font-size: 14px; line-height: 1.7; }
.mscope { padding: 3px 10px; border-radius: 20px; border: 1.5px solid var(--grass); font-size: 12px; font-weight: 700; white-space: nowrap; }
.form-status.is-error { color: var(--coral-deep); font-weight: 600; }
@media (max-width: 720px) {
  .mlist--real li { grid-template-columns: auto minmax(0, 1fr); }
  .mlist--real time { display: block; grid-column: 1 / -1; padding: 0; }
  .mlist--real .mscope { grid-column: 2; justify-self: start; }
}
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
@media (max-width: 900px) { .mlist--real time { display: block; } }
.mlist--real .mk { min-width: 4.6em; text-align: center; }
.members-years a[aria-current="page"] { background: var(--ink); color: var(--white); }
.members-years > div { display: flex; flex-wrap: wrap; gap: 8px; }
.members-years > div > a { flex: 0 0 auto; width: auto; min-height: 40px; padding: 8px 18px; font-size: 14px; }
.members-area--solo { grid-template-columns: minmax(0, 520px); justify-content: center; }

/* 入会申込書：金額は大きく見せず、申込書の下に小さく添える（2026-10-26 黒瀬社長のご意見） */
.apply { display: grid; gap: 14px; max-width: 560px; }
.fee-note { font-size: 14px; color: var(--stone); padding-left: 8px; font-feature-settings: "tnum"; }
/* スマホのメニュー：会員向けの入口は一番下に小さく */
.menu > a.menu-sub { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 0; border-bottom: 0; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--stone); }
.menu > a.menu-sub svg { width: 15px; height: 15px; flex: none; }
