*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --red: #ce1126;
  --blue: #002868;
  --ink: #1b1f24;
  --text: var(--ink); /* 説明文・本文。見出しと同じ濃さ */
  --muted: #5f6b76;
  --line: #e6e9ee;
  --soft: #f6f7f9;
  --radius: 14px;
  --max: 1120px;
  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(80px + var(--note-h, 0px)); }
html:not(.is-ready) main { visibility: hidden; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
html[lang="lo"] body { font-family: "Noto Sans Lao", var(--font); line-height: 1.9; }
html[lang="th"] body { font-family: "Noto Sans Thai", var(--font); line-height: 1.9; }
html[lang="ja"] body { font-family: "Noto Sans JP", var(--font); }
[lang="lo"] { font-family: "Noto Sans Lao", var(--font); }
[lang="th"] { font-family: "Noto Sans Thai", var(--font); }
[lang="ja"] { font-family: "Noto Sans JP", var(--font); }

img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 2.5vw, 2.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.25rem, 1.45vw, 1.6rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* ラオス語・タイ語の確認中。body 直下なので、ヘッダーが流れても画面上に残る */
.draft-note {
  position: sticky; top: 0; z-index: 70;
  margin: 0; padding: 7px 24px;
  background: var(--soft); color: var(--muted);
  text-align: center; font-size: .8rem; line-height: 1.45;
  border-bottom: 1px solid var(--line);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: var(--note-h, 0px); z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand img,
.footer-brand img { display: block; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-weight: 700; font-size: 1rem; white-space: nowrap; }
.brand-sub { margin-left: 2px; font-size: .7rem; color: var(--muted); letter-spacing: .06em; font-family: var(--font); line-height: 1.7; white-space: nowrap; }
.brand-sub[lang="lo"] { font-family: "Noto Sans Lao", var(--font); letter-spacing: 0; }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: auto; }
.site-nav { display: flex; align-items: center; margin-left: 40px; }
.site-nav ul,
.header-utils ul { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a,
.header-utils ul a {
  position: relative;
  color: var(--ink); text-decoration: none; font-size: .92rem; line-height: 1;
  padding: 8px 0 6px; white-space: nowrap;
}
.site-nav ul a:hover,
.header-utils ul a:hover { color: var(--blue); }
.site-nav ul a[aria-current="page"]::after,
.header-utils ul a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--ink);
}
.nav-short { display: none; }

/* 800px以上は1行。クリック範囲はヘッダーと同じ高さ */
@media (min-width: 800px) {
  .site-header { height: 64px; }
  .header-inner { min-height: 0; height: 100%; align-items: stretch; }
  .brand,
  .site-nav,
  .header-actions {
    height: 64px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-bottom: -1px;
  }
  .header-actions,
  .header-utils,
  .site-nav ul,
  .header-utils ul { align-items: stretch; }
  .header-utils,
  .site-nav ul,
  .header-utils ul { height: 100%; }
  .site-nav ul { gap: 40px; }
  .site-nav li,
  .header-utils li { display: flex; align-items: stretch; height: 100%; }
  .site-nav ul a,
  .header-utils ul a { display: flex; align-items: center; height: 100%; }
  .brand-text { transform: translateY(2px); }
  /* 英語名の分だけ下に見えるので、連盟名の行に揃えてから 2px 下げる */
  .site-nav .nav-label,
  .site-nav .nav-short,
  .header-utils .nav-label,
  .header-utils .nav-short { transform: translateY(calc(-0.45rem + 3px)); }
}
/* 1行でも 910px 未満は全文が入りきらない */
@media (min-width: 800px) and (max-width: 909.98px) {
  .site-nav { margin-left: 12px; }
  .site-nav .nav-label,
  .header-utils a:has(.nav-short) .nav-label { display: none; }
  .site-nav .nav-short,
  .header-utils .nav-short { display: inline; }
}
.lang-menu { position: relative; align-self: center; transform: translateY(calc(-0.45rem + 3px)); }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--muted); cursor: pointer;
  font-family: var(--font); font-size: .78rem; font-weight: 600; letter-spacing: .04em;
}
.lang-toggle:hover, .lang-menu.is-open .lang-toggle { color: var(--ink); border-color: #cfd5dd; }
.lang-list {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 150px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
.lang-menu.is-open .lang-list { display: block; }
.lang-list a {
  display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); cursor: pointer; text-align: left; font-size: .92rem;
  text-decoration: none;
}
.lang-list a:hover { background: var(--soft); }
.lang-list a[aria-checked="true"] { color: var(--blue); font-weight: 700; }

/* 800px未満は2段。文言はPCと同じ */
@media (max-width: 799.98px) {
  html { scroll-padding-top: calc(16px + var(--note-h, 0px)); }
  /* stickyにはしない。写真より手前に置いて、言語メニューがヒーローに隠れないようにする */
  .site-header { position: relative; z-index: 50; }
  .header-inner { flex-wrap: wrap; align-items: center; row-gap: 0; column-gap: 12px; min-height: 0; padding-top: 10px; padding-bottom: 8px; }
  .brand { order: 1; }
  .brand img { width: 32px; height: 32px; }
  .header-actions { order: 2; }
  .site-nav { order: 3; flex: 1 0 100%; margin-left: 0; padding: 2px 0 4px; }
  .site-nav ul { gap: 0; }
  .header-utils ul { gap: 16px; }
  .site-nav li,
  .header-utils li { display: flex; align-items: center; }
  .site-nav ul a { padding: 10px 1px 4px; }
  .site-nav .nav-label,
  .site-nav .nav-short { transform: translateY(2px); }
  .header-utils ul a {
    padding: 8px 1px;
    transform: translateY(-4.6px);
  }
  .lang-menu { transform: translateY(-4.6px); }
  .header-utils ul a[aria-current="page"]::after { bottom: -4.6px; }
  /* 下段の黒線を、ヘッダー下の灰色線に接する */
  .site-nav ul a[aria-current="page"]::after { bottom: -12px; }
}
/* タブレットの下段は 580px を4等分 */
@media (min-width: 641px) and (max-width: 799.98px) {
  .site-nav ul { width: 580px; max-width: 100%; }
  .site-nav li { flex: 1 1 0; justify-content: center; }
}
/* スマホだけ短い文言。下段の4項目は幅を等分 */
@media (max-width: 640px) {
  .brand img { transform: translateY(-2px); }
  .site-nav { padding-top: 0; padding-bottom: 0; }
  .site-nav ul a { padding-top: 20px; padding-bottom: 8px; }
  .site-nav ul a[aria-current="page"]::after { bottom: -8px; }
  .site-nav .nav-label,
  .header-utils a:has(.nav-short) .nav-label { display: none; }
  .site-nav .nav-short,
  .header-utils .nav-short { display: inline; }
  .site-nav ul { width: 100%; }
  .site-nav li { flex: 1 1 0; justify-content: center; }
}
@media (max-width: 380px) {
  .header-inner { column-gap: 4px; }
  .brand { gap: 4px; }
  .brand-name { font-size: .8rem; }
  .header-utils ul { gap: 10px; }
  .site-nav ul a { font-size: .8rem; }
  .header-utils ul a { font-size: .8rem; transform: translateY(-3.9px); }
  .header-utils ul a[aria-current="page"]::after { bottom: -3.9px; }
}

/* ---------- common blocks ---------- */
/* 通常は 48px。高さが足りないときは、次の見出しが見えるまで縮む */
.section { padding-block: 48px; }
@media (max-height: 700px) {
  .section { padding-block: clamp(20px, 4vh, 28px); }
}
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .lead:last-child { margin-bottom: 0; }
.section-head-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 40px; }
.section-head-row .section-head { margin-bottom: 0; min-width: 0; }
.section-head-row h2 { margin: 0; }
.section-head-row .has-chevron { flex: none; }
.lead { font-size: 1.08rem; color: var(--text); }

.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.act-news { padding-top: 36px; }
body[data-page="support"] .page-hero,
body[data-page="contact"] .page-hero { padding: 36px 0 0; border-bottom: 0; }
body[data-page="support"] .page-hero + .section,
body[data-page="contact"] .page-hero + .section { padding-top: 24px; }
.act-head {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 14px; margin-bottom: 28px;
}
.act-news h1 { margin-bottom: 28px; }
.act-head h1 { margin: 0; white-space: nowrap; padding-right: 16px; }
.news-filters {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 8px; margin: 0; font-size: .95rem; line-height: 1.5;
}
.news-filters a {
  display: inline-grid; color: var(--muted); text-decoration: none; white-space: nowrap;
  padding: 4px 10px; border-radius: 6px;
}
.news-filters a span,
.news-filters a::before { grid-area: 1 / 1; }
.news-filters a::before { content: attr(data-text); font-weight: 700; visibility: hidden; }
.news-filters a:hover { color: var(--blue); }
.news-filters a[aria-current="page"] { color: var(--blue); background: #e8ebf0; }
.news-filters a[aria-current="page"] span { font-weight: 700; }
@media (min-width: 910px) {
  .act-head {
    display: grid;
    /* 見出しがナビ位置より広いときは、その分だけ絞り込みを右へずらして1行に収める */
    grid-template-columns: minmax(var(--nav-x, max-content), max-content) minmax(0, 1fr);
    align-items: baseline;
    column-gap: 0;
    row-gap: 0;
  }
}
/* スマホは「すべて」を1行目に固定し、分類は2列。折り返しの段差をなくす */
@media (max-width: 640px) {
  .news-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: start;
    align-items: center;
    width: 100%;
    column-gap: 12px;
    row-gap: 10px;
  }
  .news-filters a:first-child { grid-column: 1 / -1; }
}
@media (max-width: 359px) {
  .news-filters { grid-template-columns: 1fr; }
  .news-filters a:first-child { grid-column: auto; }
}
.page-hero .lead { max-width: 760px; margin: 0; }
.about-hero { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.about-hero-photo { margin: 0; }
.about-hero-photo img { width: 100%; height: auto; border-radius: var(--radius); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid var(--blue);
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
button.btn { cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #001c4b; }
.btn-outline { background: #fff; color: var(--blue); }
.btn-outline:hover { background: #eef2f8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.has-chevron { display: inline-flex; align-items: center; gap: .45em; }
.has-chevron::after,
.partner-empty::after {
  content: "";
  width: calc(.62em - 2px); height: calc(.62em - 2px); flex: none;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: translateY(.06em) rotate(45deg);
}
.has-chevron.is-back::after { content: none; }
.has-chevron.is-back::before {
  content: "";
  width: calc(.62em - 2px); height: calc(.62em - 2px); flex: none;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
  transform: translateY(.06em) rotate(-45deg);
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text); }
.card-num { color: var(--red) !important; font-weight: 700; font-size: .85rem; margin-bottom: 12px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.work-card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 16px; color: inherit; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.work-card-media { display: block; width: 96px; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--soft); }
.work-card-media img:not(.ph img) { width: 100%; height: 100%; object-fit: cover; }
.work-card-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.work-card-title { font-weight: 700; font-size: 1.05rem; line-height: 1.45; }
.work-card-body { color: var(--text); font-size: .9rem; line-height: 1.65; }
.work-card:hover .work-card-title { color: var(--blue); }
.card-need { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-need img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 42%; }
.card-need .need-balls { object-position: center 78%; }
.card-need .need-court { object-position: center 60%; }
.card-need .need-referee { object-position: 28% center; }
.card-need-body { padding: 22px 24px 28px; }
.card-need .card-num { margin-bottom: 8px; }

.res {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px; border-radius: 6px;
  background: var(--soft); color: var(--muted); font-size: .8rem; font-weight: 600;
}
.medal {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-weight: 400; font-size: 1.05em; line-height: 1;
}
.res-gold { background: #fbf3d5; color: #7a5b00; }
.res-silver { background: #e9ecf0; color: #3c434c; }
.res-bronze { background: #f6e7dc; color: #7a4317; }
.res-fourth, .res-quarter, .res-knockout { background: #eef2f8; color: var(--blue); }

.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100%; min-height: 160px;
  background: var(--soft); color: var(--muted); font-size: .8rem; text-align: center;
}
.ph img { opacity: .35; }

/* ---------- home ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  width: 100%; height: clamp(440px, 58vh, 600px);
  overflow: hidden; background: #0d3b2a;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top left, rgba(0, 22, 52, .78) 0%, rgba(0, 22, 52, .5) 38%, rgba(0, 22, 52, 0) 68%);
}
.hero-inner { position: relative; width: 100%; display: flex; justify-content: flex-end; padding-bottom: 52px; }
.hero-text { min-width: 0; max-width: 100%; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.hero h1 {
  margin-bottom: .4em;
  font-size: min(2.6rem, calc((100vw - 64px) / 15));
  line-height: 1.35;
  white-space: nowrap;
}
.hero .lead {
  width: fit-content; max-width: 100%; margin: 0 0 0 auto;
  color: rgba(255, 255, 255, .92); font-size: 1.05rem; line-height: 1.75;
  text-align: left; white-space: pre-line; word-break: keep-all;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-figures { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 1px; }
.stat-value { font-size: 2.1rem; font-weight: 700; color: var(--blue); line-height: 1.2; font-family: var(--font); white-space: nowrap; }
.stat-unit { font-size: 1rem; font-weight: 700; color: var(--blue); line-height: 1.2; white-space: nowrap; }
.stat-unit.is-apart { margin-left: .28em; }
html[lang="en"] .stat-unit:not(.is-apart) { margin-left: .35em; }
.stat-label { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.stat-label-short { display: none; }
.stat-main { display: flex; flex-direction: column; gap: 4px; width: fit-content; max-width: 100%; }
.stat.stat-link { position: relative; padding-right: calc(2em + 1.25em); }
.stat.stat-link::after {
  content: "";
  position: absolute;
  right: 2em;
  top: 50%;
  width: .72em;
  height: .72em;
  border-top: 3px solid #c5ccd3;
  border-right: 3px solid #c5ccd3;
  transform: translateY(-50%) rotate(45deg);
}
.stat-link:hover .stat-label { color: var(--blue); }

.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.news-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.news-card-media img:not(.ph img) { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 22px 24px 26px; }
.news-card time, .news-item time { font-size: .8rem; color: var(--muted); }
.news-item time { display: block; margin: 0 0 12px; }
.news-card h3 { margin: 0 0 4px; }
.news-card time { display: block; margin: 0 0 10px; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { color: var(--text); font-size: .92rem; margin: 0; }
.news-card-hit, .news-item-hit { display: none; }

.invite {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding: 48px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius);
}
.invite .lead { margin: 0; max-width: 680px; }

.president { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.president-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.president-photo img:not(.ph img) { width: 100%; height: 100%; object-fit: cover; }
.president-message { font-size: 1.05rem; white-space: pre-line; }
.president-sign { margin-top: 24px; }

.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.partner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 110px; padding: 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; text-align: center; font-weight: 600;
}
.partner img { max-height: 64px; width: auto; }
.partner-empty { grid-column: 1 / -1; justify-content: space-between; border-style: dashed; color: var(--blue); }
.partner-empty:hover { background: #f9fafc; }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.boccia-intro { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.boccia-share { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.boccia-share .lead { margin-bottom: 0; }
.boccia-share-photo { margin: 0; order: -1; }
.boccia-share-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.para { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.para .lead { margin-bottom: 0; }
.para-photo { margin: 0; }
.para-photo img { width: 100%; height: auto; border-radius: var(--radius); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 0 0 28px 36px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--red);
}
.tl-year { font-weight: 700; color: var(--blue); font-family: var(--font); }
.tl-text { margin: 0; }

.officers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.officer { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.officer.is-lead { grid-column: 1 / -1; border-color: var(--blue); text-align: center; padding: 32px; }
.officer.is-lead .officer-role { font-size: 1.5rem; }
.officer.is-lead .officer-name { font-size: 1.4rem; }
.officer-role { margin: 0 0 4px; font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.officer-name { margin: 0; font-size: 1.1rem; font-weight: 700; }
.officer-recruit { margin-top: 14px; padding-inline: 36px; }
.officer-aff { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }

.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.plain-list li:first-child { border-top: 1px solid var(--line); }
.new-window { display: inline-block; width: .85em; height: calc(.85em * 15 / 14); margin-left: .35em; vertical-align: -0.08em; }
.new-window-front { fill: var(--soft); }

/* ---------- team ---------- */
.athletes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.athlete { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; scroll-margin-top: 88px; }
.athlete-photo { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.athlete-body { padding: 14px 16px 16px; }
.athlete-body h3 {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px;
  margin: 0 0 4px; font-size: 1.25rem;
}
.athlete-class { font-size: .82rem; font-weight: 700; color: var(--blue); letter-spacing: .03em; white-space: nowrap; }
.athlete-note { color: var(--text); font-size: .92rem; line-height: 1.6; }

/* ---------- activities ---------- */
.logo-story { display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: center; }
.logo-story-mark { width: 160px; height: auto; }
.logo-story p { margin: 0 0 .75em; }
.logo-story p:last-child { margin: 0; }
.logo-colors .flag { margin: 0 .35em; }
.venue {
  display: inline-grid; grid-template-columns: 24px auto; column-gap: 8px; row-gap: 0.5em;
  align-items: center; justify-items: start;
}
.venue .flag { grid-row: 1; grid-column: 1; margin: 0; }
.venue-country { grid-row: 1; grid-column: 2; line-height: 1.2; }
.venue-city { grid-row: 2; grid-column: 2; line-height: 1.35; }
.flag {
  display: inline-block; width: 24px; height: 16px; object-fit: cover; flex-shrink: 0;
  vertical-align: -3px; margin: 0 .15em; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr[id] { scroll-margin-top: 88px; }
th { font-size: 1rem; font-weight: 600; color: var(--muted); background: var(--soft); }
.event-cell {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 16px; align-items: start;
}
.event-note { font-weight: 400; }
.event-copy { min-width: 0; }
.event-when { display: block; margin-top: 8px; color: var(--muted); font-weight: 400; line-height: 1.4; }
.event-report { margin-top: 10px; }
.event-photo { width: 220px; max-width: 100%; height: auto; margin: 0; border-radius: 8px; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.result-note { color: var(--muted); line-height: 1.55; }

/* 800px以下は区切り線の一覧。左に大会名、右に写真 */
@media (max-width: 800px) {
  .table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .results-table { min-width: 0; }
  .results-table thead { display: none; }
  .results-table tbody { display: grid; gap: 0; }
  .results-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 12px;
    row-gap: 6px;
    align-items: start;
    padding: 24px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  .results-table tbody tr:first-child { border-top: 0; padding-top: 0; }
  .results-table td { width: auto; padding: 0; border: 0; }
  .results-table td:first-child,
  .event-cell,
  .event-copy { display: contents; }
  .event-photo { grid-column: 2; grid-row: 1 / span 2; width: 320px; }
  .event-main { grid-column: 1; grid-row: 1; line-height: 1.4; }
  .results-table tr:not(:has(.event-photo)) .event-main,
  .results-table tr:not(:has(.event-photo)) td:nth-child(2) { grid-column: 1 / -1; }
  .event-note { font-size: .75rem; line-height: 1.4; }
  .event-when { margin-top: 2px; font-size: .85rem; line-height: 1.4; }
  .event-report { grid-column: 1 / -1; grid-row: 4; margin-top: 4px; justify-self: end; }
  .results-table td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .results-table .venue-city { grid-column: 1 / -1; }
  .results-table td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; margin-top: 2px; }
  .result-list { gap: 4px; }
}
/* スマホは写真の左端が画面の中央あたり */
@media (max-width: 640px) {
  .results-table tr { grid-template-columns: minmax(0, 1fr) calc(50vw - 12px); }
  .event-photo { width: 100%; }
}

.news-list { display: grid; }
.news-item {
  display: grid; grid-template-columns: 340px 1fr; gap: 32px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.news-item:first-child { padding-top: 0; border-top: 0; }
.news-item-media { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.news-item-media img:not(.ph img) { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { margin: 0 0 4px; font-size: 1.25rem; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--blue); }
.news-item p { color: var(--text); }
a.news-item-media { display: block; color: inherit; }
.news-more { margin: 4px 0 0; }
.news-item.is-pickup {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 40px; align-items: start;
}
.news-item.is-pickup .news-item-body { grid-column: 1; grid-row: 1; }
.news-item.is-pickup .news-item-media { grid-column: 2; grid-row: 1; }
.news-item.is-pickup .news-item-media,
.news-item.is-pickup .news-item-media .ph { aspect-ratio: 16 / 9; }
.news-item.is-pickup h3 {
  font-size: 1.45rem; display: block; overflow: visible; -webkit-line-clamp: unset;
}
.news-item.is-pickup .news-more { display: block; }
.news-item.is-pickup .news-item-body > p:not(.news-more) {
  display: block; overflow: visible; -webkit-line-clamp: unset;
  margin: 0; font-size: 1rem; line-height: 1.75;
}

.act-article { padding-top: 24px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(40px, 1fr) 300px;
  align-items: start;
  margin-right: max(0px, calc((100% - 960px) / 2));
}
.article-main { min-width: 0; grid-column: 1; }
.article-side {
  grid-column: 3;
  position: sticky;
  top: 88px;
  display: grid;
  gap: 28px;
}
.article-back { margin: 0 0 20px; }
.article-main time { display: block; margin: 0 0 22px; font-size: .85rem; color: var(--muted); }
.article-main h1 { margin: 0 0 8px; max-width: none; font-size: clamp(1.7rem, 2.5vw, 2.05rem); }
.article-photo { margin: 0 0 28px; }
.article-photo img { width: 100%; height: auto; border-radius: 10px; }
.article-body p { color: var(--text); }
.article-after { margin-top: 28px; }
.article-after p { margin-bottom: 28px; }
.article-section { margin-top: 12px; }
.article-section + .article-section { margin-top: 36px; }
.article-section h2 { margin: 0 0 14px; font-size: 1.25rem; }
.article-section .article-photo { margin-bottom: 16px; }
.article-section p { margin-bottom: 1em; }
.article-section p:last-child { margin-bottom: 0; }
.article-list { margin: 28px 0 0; text-align: center; }
.article-list .btn { font-weight: 400; padding: 8px 24px; }

.side-block h2 {
  margin: 0 0 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
}
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: .92rem; line-height: 1.4;
}
.side-links a:hover { color: var(--blue); }
.side-link-title {
  flex: 1; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.side-links img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: none;
}
.side-result { margin: 16px 0 0; }
.side-block > .side-result:first-child { margin-top: 0; }
.side-result a { display: block; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.45; }
.side-result a:hover { color: var(--blue); }
.side-result-label {
  display: block;
  margin-bottom: 6px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
}
.side-result a:hover .side-result-label { color: var(--muted); }

.news-pending { margin: 8px 0 0; color: var(--muted); }

/* ---------- support ---------- */
.check-list { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: .35em;
  width: 7px; height: 13px; border: solid var(--red); border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.support-note { margin-top: 32px; }
.feature {
  padding: 48px; border: 1px solid var(--blue); border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}

/* ---------- contact ---------- */
.contact-list { margin: 0; display: grid; gap: 0; max-width: 760px; }
.contact-list > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list > div:first-child { border-top: 1px solid var(--line); }
.contact-list dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.contact-list dd { margin: 0; }
.contact-address { white-space: pre-line; }

.contact-form {
  position: relative;
  width: 100%; max-width: 640px; margin: 0 0 56px;
  display: grid; gap: 22px;
}
.contact-field { display: grid; gap: 6px; }
.contact-field label { font-weight: 700; font-size: .9rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; margin: 0; padding: 12px 14px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #cfd5dd; border-radius: 10px;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
.contact-field.is-invalid input,
.contact-field.is-invalid select,
.contact-field.is-invalid textarea { border-color: var(--red); }
.contact-error { margin: 0; color: var(--red); font-size: .85rem; line-height: 1.5; }
.contact-note { margin: 0; color: var(--muted); font-size: .85rem; }
.contact-status { margin: 0; font-size: .95rem; }
.contact-form .btn { justify-self: start; }
.contact-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-name { margin: 0 0 4px; font-weight: 700; }
.footer-desc { margin: 0; color: var(--muted); font-size: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.footer-links a, .footer-social a { color: var(--ink); text-decoration: none; font-size: .9rem; }
.footer-links a:hover, .footer-social a:hover { color: var(--blue); }
.footer-social { display: flex; flex-direction: column; gap: 6px; }
.footer-label { margin: 0 0 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); font-family: var(--font); text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .news-item { grid-template-columns: minmax(180px, 280px) 1fr; align-items: start; gap: 20px; padding: 20px 0; }
  .news-item-media { aspect-ratio: 16 / 9; }
  .news-item-media .ph { min-height: 0; aspect-ratio: 16 / 9; gap: 0; }
  .news-item-media .ph span { display: none; }
  .news-item-media .ph img { width: 32px; height: 32px; }
  .news-item h3 {
    margin: 0 0 2px; font-size: 1.05rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .news-item time { margin: 0 0 4px; }
  .news-item-body > p:not(.news-more) {
    margin: 0; font-size: .92rem; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
  .news-more { display: none; }
}
@media (max-width: 1020px) {
  .article-layout { grid-template-columns: minmax(0, 620px); margin-right: 0; }
  .article-main, .article-side { grid-column: auto; }
  .article-side { position: static; }
}
@media (max-width: 900px) {
  .lead { font-size: 1rem; }
  .news-item.is-pickup { grid-template-columns: 1fr; }
  .news-item.is-pickup .news-item-body,
  .news-item.is-pickup .news-item-media { grid-column: auto; grid-row: auto; }
  .act-news,
  body[data-page="support"] .page-hero,
  body[data-page="contact"] .page-hero { padding-top: 28px; }
  .act-article { padding-top: 20px; }
  .work-grid { gap: 12px; }
  .work-card { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .work-card-media { width: 72px; }
  .work-card-title { font-size: .95rem; }
  .work-card-body { font-size: .82rem; }
  .stat { padding: 22px 14px; }
  .stat-value { font-size: 1.7rem; }
  .stat-unit { font-size: .85rem; }
  .split, .feature, .president, .boccia-intro, .boccia-share, .para, .about-hero, .logo-story { grid-template-columns: 1fr; gap: 40px; }
  .logo-story { justify-items: start; }
  .boccia-share-photo, .para-photo { order: 0; }
  .invite { grid-template-columns: 1fr; padding: 32px; }
  .invite .btn { justify-self: start; }
  .feature { padding: 32px; }
  .president-photo { max-width: 240px; }
  .footer-inner { grid-template-columns: 1fr; row-gap: 30px; }
  /* ロゴ幅 44px + 間隔 14px。説明文の左端にリンク文字を揃える */
  .footer-links { padding-left: calc(44px + 14px); }
  .footer-links a { display: inline-block; padding-block: 5px; }
}
@media (max-width: 560px) {
  .athletes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .athlete-body { padding: 12px 12px 14px; }
  .athlete-body h3 { margin-bottom: 6px; font-size: 1rem; gap: 2px 8px; }
  .athlete-note { font-size: .8rem; }
  .news-item { position: relative; grid-template-columns: 88px 1fr; gap: 12px; padding: 14px 0; }
  .news-item-hit { display: block; position: absolute; inset: 0; z-index: 1; }
  .news-item:hover h3 a { color: var(--blue); }
  .news-item-media, .news-item-media .ph { aspect-ratio: 1; }
  .news-item h3 { font-size: 1rem; }
  .news-item-body > p:not(.news-more) { font-size: .85rem; }
  .news-item-media .ph img { width: 28px; height: 28px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}
/* 基本スタイルより後ろに置く。スマホは見出しを折り返さず、取り組みは1列 */
@media (max-width: 640px) {
  .hero { height: 248px; }
  .hero-inner { justify-content: flex-start; padding-bottom: 14px; }
  .hero-media img { object-position: 50% 46%; }
  .hero h1,
  .hero .lead { text-align: left; }
  .hero .lead {
    width: max-content; max-width: none; margin: 0;
    font-size: min(1.05rem, calc((100vw - 56px) / 25));
    line-height: 1.55; white-space: pre;
  }
  /* 英語は iPhone 16 幅で、見出し1行・説明2行。説明の字は長い行が収まるサイズ */
  html[lang="en"] .hero h1 { white-space: nowrap; max-width: none; }
  html[lang="en"] .hero .lead {
    width: max-content; max-width: none;
    white-space: pre;
    font-size: min(.95rem, calc((100vw - 32px) / 24.6));
  }
  .hero-media::after {
    background: linear-gradient(to top, rgba(0, 22, 52, .72) 0%, rgba(0, 22, 52, .28) 42%, rgba(0, 22, 52, 0) 68%);
  }
  .container { padding-left: 12px; padding-right: 12px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 12px 18px 12px 8px; min-width: 0; }
  .stat:first-child { padding-left: 0; }
  .stat.stat-link { padding-right: 18px; }
  .stat.stat-link::after {
    right: 4px;
    width: 6px;
    height: 6px;
    border-top-width: 2px;
    border-right-width: 2px;
  }
  .stat-value { font-size: 1.25rem; }
  .stat-unit { font-size: .68rem; }
  .stat-label { font-size: .8rem; line-height: 1.35; }
  .stat-label-full { display: none; }
  .stat-label-short { display: inline; }
  .work-grid { grid-template-columns: 1fr; gap: 0; }
  .work-card {
    grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start;
    padding: 14px 0; background: transparent; border: 0; border-radius: 0;
    border-top: 1px solid var(--line); overflow: visible;
  }
  .work-card:first-child { padding-top: 0; border-top: 0; }
  .work-card-media { width: 88px; border-radius: 10px; }
  .work-card-title { font-size: 1rem; line-height: 1.4; }
  .work-card-body { font-size: .85rem; line-height: 1.5; }
  body[data-page="home"] .section:has(.work-grid) { padding-top: 16px; padding-bottom: 24px; }
  body[data-page="home"] .section:has(.work-grid) .section-head { margin-bottom: 12px; }
  body[data-page="home"] .section.section-soft:has([data-render="news"]) { padding-top: 24px; }
  .section-head-row { margin-bottom: 16px; }
  body[data-page="home"] .grid-3 { grid-template-columns: 1fr; gap: 0; }
  .news-card {
    position: relative;
    display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: start;
    padding: 14px 0; background: transparent; border: 0; border-radius: 0;
    border-top: 1px solid var(--line); overflow: visible;
  }
  .news-card-hit { display: block; position: absolute; inset: 0; z-index: 1; }
  .news-card:hover h3 a { color: var(--blue); }
  .news-card:first-child { padding-top: 0; border-top: 0; }
  .news-card-media { aspect-ratio: 1; border-radius: 10px; }
  .news-card-body { padding: 0; min-width: 0; }
  .news-card h3 {
    margin: 0 0 2px; font-size: 1rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .news-card time { margin: 0 0 4px; }
  .news-card p {
    margin: 0; font-size: .85rem; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* メイン4ページの見出しは、ヘッダー下の同じ位置から始める */
  body[data-page="boccia"] .boccia-top,
  body[data-page="about"] .page-hero,
  body[data-page="activities"] .act-news,
  body[data-page="results"] .act-news { padding-top: 24px; }
  .about-hero,
  .logo-story,
  .boccia-intro { gap: 20px; }
  .logo-story-mark { justify-self: center; }
  .boccia-intro .lead { margin-bottom: 0; }
  body[data-page="about"] .page-hero { padding-bottom: 20px; }
  .section { padding-block: 28px; }
  .section-head { margin-bottom: 16px; }
  .officers { grid-template-columns: 1fr; }
}
