/* =========================================================
   Fukuyama South Rotary Club — Site Design System
   Editorial flat style (ref: smf.or.jp)

   NOTE: Web fonts are NOT loaded here. The former
   `@import url(fonts.googleapis.com...)` was render-blocking
   (invisible to the preload scanner) and is replaced by
   self-hosted @font-face in assets/css/fonts.css, which
   inc/enqueue.php registers as a dependency of this file.
   ========================================================= */

:root {
  --navy: #17458f;
  --navy-deep: #0f2a52;
  --ink: #111111;
  --muted: #6b7280;
  --bg: #f8f8f8;
  --white: #ffffff;
  --line: #e2e2e2;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'BIZ UDPGothic', 'Noto Sans JP', sans-serif;

  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 10px 28px rgba(17, 24, 39, 0.09);
}

/* ---------- Base ---------- */
/* The former `border-radius: 0 !important` on the universal selector has been
   removed. It flattened not just this theme but every Gutenberg control,
   plugin UI and admin-bar element, with no way to override it. The flat look
   is now enforced by the zero-specificity rule below, which any single class
   can beat without an !important war. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:where(a, button, input, select, textarea, img, figure, table, th, td,
       .btn, .mv-btn, .theme-btn, .voices-btn, .msg-card, .rep-card,
       .serve-item, .purpose-item, .info-table-wrap, .nav-dropdown,
       .program-tag, .rep-tag, .about-tab-content, .leader-cap,
       .motto-panel, .fourway, .report-detail-card, .feedback-box,
       .president-photo, .notice-card) { border-radius: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: all .3s ease; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.5; }

.wrap, .container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner,
.header .header-container {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-mark { height: 44px; width: auto; }
.logo-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 34px; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 8px 0;
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  letter-spacing: 0.06em;
}
.nav-link:hover { color: var(--navy); }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy);
  min-width: 210px; padding: 10px 0;
  opacity: 0; visibility: hidden; transition: all .25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-link { display: block; padding: 9px 22px; font-size: 0.85rem; color: var(--ink); }
.dropdown-link:hover { background: var(--bg); color: var(--navy); }
.nav-member,
.nav-link.nav-member {
  background: var(--navy); color: #fff !important;
  padding: 10px 24px !important; font-weight: 700;
}
.nav-member:hover { background: var(--navy-deep); }

/* burger */
.burger-btn { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 22px; position: relative; z-index: 1001; }
.burger-line { display: block; width: 100%; height: 2px; background: var(--ink); position: absolute; left: 0; transition: all .3s ease; }
.burger-line:nth-child(1){top:0} .burger-line:nth-child(2){top:10px} .burger-line:nth-child(3){top:20px}
.burger-btn.active .burger-line:nth-child(1){ transform: translateY(10px) rotate(45deg); }
.burger-btn.active .burger-line:nth-child(2){ opacity: 0; }
.burger-btn.active .burger-line:nth-child(3){ transform: translateY(-10px) rotate(-45deg); }

/* ---------- Page head (sub pages) ---------- */
.page-head {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 68px 0 54px;
}
.page-head-en {
  font-family: var(--font-en);
  font-size: 0.85rem; font-weight: 700; color: var(--navy);
  letter-spacing: 0.26em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.page-head-en::before { content: ''; width: 40px; height: 1px; background: var(--navy); }
.page-head-title {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 900; color: var(--ink); letter-spacing: 0.04em;
  margin-top: 10px;
}

/* ---------- MV (top page main visual) ---------- */
.mv { position: relative; overflow: hidden; background: var(--navy-deep); }
.mv-img {
  display: block; width: 100%;
  height: clamp(460px, 46vw, 680px);
  object-fit: cover; object-position: center 42%;
}
.mv-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,42,82,.72) 0%, rgba(15,42,82,.34) 20%, rgba(15,42,82,0) 42%);
}
.mv::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background: var(--navy); }
.mv-copy {
  position: absolute; inset: 0;
  max-width: 1280px; margin: 0 auto; padding: 0 28px 40px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.mv-district {
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.2em;
  color: rgba(255,255,255,.95); margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.mv-district::before { content: ''; width: 44px; height: 1px; background: #fff; }
.mv-title {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 900; line-height: 1.3; letter-spacing: 0.06em;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
.mv-br { display: none; }
.mv-en {
  font-family: var(--font-en);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin-top: 14px;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.mv-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 42px; }
.mv-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 26px;
  padding: 15px 28px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em;
  transition: all .3s ease;
}
.mv-btn::after { content: '→'; font-weight: 400; transition: transform .3s ease; }
.mv-btn:hover::after { transform: translateX(5px); }
.mv-btn-fill { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.mv-btn-fill:hover { background: #fff; color: var(--navy); border-color: #fff; }
.mv-btn-line { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.85); }
.mv-btn-line:hover { background: #fff; color: var(--navy); }
@media (max-width: 767px) {
  .mv-img { height: 460px; object-position: center 40%; }
  .mv-overlay { background: linear-gradient(0deg, rgba(15,42,82,.78) 0%, rgba(15,42,82,.4) 26%, rgba(15,42,82,0) 50%); }
  .mv-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Theme band (top page, 2026-27) ---------- */
.theme-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 80px 0;
}
.theme-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.theme-year {
  font-family: var(--font-en); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,.65);
  display: flex; align-items: center; gap: 14px;
}
.theme-year::before { content: ''; width: 40px; height: 1px; background: rgba(255,255,255,.5); }
.theme-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: 0.08em;
  margin-top: 18px; line-height: 1.3;
}
.theme-sub { font-size: 1rem; color: rgba(255,255,255,.85); margin-top: 10px; letter-spacing: 0.04em; }
.theme-president { font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,.75); margin-top: 14px; }
.theme-desc { font-size: 0.95rem; line-height: 2; color: rgba(255,255,255,.9); margin-top: 22px; }
.theme-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 26px;
  padding: 15px 28px; margin-top: 30px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,.8); color: #fff; background: transparent; transition: all .3s ease;
}
.theme-btn::after { content: '→'; font-weight: 400; transition: transform .3s ease; }
.theme-btn:hover { background: #fff; color: var(--navy); }
.theme-btn:hover::after { transform: translateX(5px); }
.theme-facts { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.25); }
.theme-facts > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.25);
}
.theme-facts dt { font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,.65); letter-spacing: 0.1em; white-space: nowrap; }
.theme-facts dd { font-size: 0.92rem; font-weight: 500; color: #fff; text-align: right; }
@media (max-width: 900px) {
  .theme-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 13px 26px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em;
  border: 1px solid var(--navy); cursor: pointer; text-align: center;
}
.btn-fill, .btn-primary, .btn-azure { background: var(--navy); color: #fff; }
.btn-fill:hover, .btn-primary:hover, .btn-azure:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-line, .btn-outline, .btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover, .btn-outline:hover, .btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-fill, .btn-line { justify-content: space-between; gap: 26px; padding: 15px 28px; }
.btn-fill::after, .btn-line::after { content: '→'; font-weight: 400; transition: transform .3s ease; }
.btn-fill:hover::after, .btn-line:hover::after { transform: translateX(5px); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-bg { background: var(--white); }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 56px; flex-wrap: wrap; }
/* The Japanese title now lives INSIDE the heading instead of in a sibling
   <span>. Previously the h2 read "What is Rotary" and the actual keyword
   ロータリーとは sat outside the heading entirely — invisible to the
   document outline on a Japanese-language site. Making .sec-title its own
   flex container keeps the rendering byte-identical. */
.sec-title { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; margin: 0; font-weight: 400; }
.sec-no { font-family: var(--font-en); font-size: 1rem; font-weight: 700; color: var(--navy); letter-spacing: 0.1em; }
.sec-en { font-family: var(--font-en); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--ink); letter-spacing: 0.02em; line-height: 1.2; }
.sec-jp { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0.1em; }

/* legacy section titles */
.section-title-wrap { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 1.9rem; font-weight: 900; color: var(--ink); position: relative; display: inline-block; padding-bottom: 16px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 44px; height: 2px; background: var(--navy); }
.section-subtitle { color: var(--muted); font-size: 0.92rem; margin-top: 10px; letter-spacing: 0.08em; }

/* ---------- Message cards (top) ---------- */
.msg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.msg-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: all .3s ease; }
.msg-card:hover { box-shadow: 0 14px 36px rgba(17, 24, 39, .1); transform: translateY(-4px); }
.msg-card-img { height: 230px; overflow: hidden; }
.msg-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.msg-card-img-text {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 20px;
}
.msg-card-img-text .mcit-role { font-family: var(--font-en); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.msg-card-img-text .mcit-name { font-size: 1.5rem; font-weight: 700; color: #fff; }
.msg-card-img-text .mcit-org { font-size: 0.78rem; color: rgba(255,255,255,.75); }
.msg-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.msg-tag { font-family: var(--font-en); font-size: 0.72rem; font-weight: 700; color: var(--navy); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }
.msg-title { font-size: 1.12rem; font-weight: 700; line-height: 1.6; margin-bottom: 10px; }
.msg-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.9; flex: 1; }
.msg-more { margin-top: 20px; font-size: 0.85rem; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 10px; }
.msg-more::after { content: '→'; transition: transform .3s ease; }
.msg-card:hover .msg-more::after { transform: translateX(5px); }

/* ---------- About Rotary (top) ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.about-lead { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; color: var(--ink); line-height: 1.9; margin-bottom: 22px; }
.about-text { font-size: 0.94rem; color: var(--muted); line-height: 2.1; }
.about-links { display: flex; flex-direction: column; margin-top: 30px; border-top: 1px solid var(--line); }
.about-link { display: flex; align-items: center; justify-content: space-between; padding: 15px 4px; font-size: 0.92rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.about-link::after { content: '→'; color: var(--navy); transition: transform .3s ease; }
.about-link:hover { color: var(--navy); padding-left: 10px; }
.about-link:hover::after { transform: translateX(5px); }
.about-photo { margin: 0; }
.about-photo img { width: 100%; border: 1px solid var(--line); }
.about-photo figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 10px; letter-spacing: 0.04em; }

/* ---------- Meeting table (top) ---------- */
.meet-wrap { max-width: 940px; margin: 0 auto; }
.meet-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.meet-table th {
  font-family: var(--font-en); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--navy); text-align: left; padding: 16px 20px;
  border-bottom: 2px solid var(--navy); background: var(--white);
}
.meet-table td { padding: 20px; font-size: 0.9rem; line-height: 1.8; border-bottom: 1px solid var(--line); vertical-align: top; }
.meet-table td:nth-child(2) { white-space: nowrap; }
.meet-table tr:last-child td { border-bottom: none; }
.meet-day { font-size: 1.15rem !important; font-weight: 700; color: var(--ink); white-space: nowrap; }
.meet-day span { display: inline-block; margin-left: 6px; font-size: 0.7rem; font-weight: 500; color: var(--navy); border: 1px solid var(--navy); padding: 1px 7px; vertical-align: middle; }
.meet-cancel { display: inline-block; font-size: 0.8rem; font-weight: 700; color: #9b2c2c; background: #fbeaea; padding: 3px 12px; }
.meet-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; letter-spacing: 0.04em; }

/* ---------- Voices band (top) ---------- */
.voices { background: var(--navy); color: #fff; }
.voices-inner { max-width: 1160px; margin: 0 auto; padding: 84px 28px; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.voices-en { font-family: var(--font-en); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: 0.02em; line-height: 1.25; }
.voices-jp { font-size: 0.92rem; color: rgba(255,255,255,.75); margin-top: 12px; letter-spacing: 0.08em; }
.voices-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 26px; background: #fff; color: var(--navy); font-weight: 700; font-size: 0.92rem; padding: 16px 30px; letter-spacing: 0.06em; }
.voices-btn::after { content: '→'; transition: transform .3s ease; }
.voices-btn:hover::after { transform: translateX(5px); }

/* ---------- Sub navigation (was: JS tabs) ----------
   The tab panels are now real pages, so `.tab-btn` is an <a> and `.active`
   is set server-side. Visually identical to the old button bar. */
.tabs { margin-bottom: 40px; }
.tabs-nav { display: flex; justify-content: center; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 44px; flex-wrap: wrap; }
.tab-btn {
  display: inline-block;
  background: none; border: none; cursor: pointer;
  padding: 15px 26px; font-family: var(--font-jp);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--muted); position: relative; transition: all .3s ease;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--navy); }
.tab-btn.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 100%; height: 2px; background: var(--navy);
}

/* ---------- Info table ---------- */
.info-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); margin-bottom: 34px; }
.info-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 600px; }
.info-table th, .info-table td { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 0.9rem; line-height: 1.8; }
.info-table thead th { color: var(--navy); font-weight: 700; border-bottom: 2px solid var(--navy); background: var(--white); font-size: 0.85rem; letter-spacing: 0.08em; }
.info-table tbody th { color: var(--ink); font-weight: 700; background: #fafafa; }
.info-table tr:last-child td, .info-table tr:last-child th { border-bottom: none; }

/* ---------- Legacy content cards ---------- */
.about-tab-content { padding: 34px; background: var(--white); border: 1px solid var(--line); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.88rem; }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--line); font-size: 0.95rem; font-family: var(--font-jp); transition: all .3s ease; background: var(--white); }
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23, 69, 143, 0.1); }

/* ---------- Program tags ---------- */
.program-tag { font-size: 0.78rem; padding: 3px 10px; font-weight: 700; display: inline-block; }
.program-tag.tag-normal { background: rgba(23, 69, 143, 0.08); color: var(--navy); }
.program-tag.tag-cancel { background: #fbeaea; color: #9b2c2c; }
.program-tag.tag-special { background: #f4ecdd; color: #8a6100; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #fff; margin-top: 0; }
.footer-banners { border-bottom: 1px solid rgba(255,255,255,.14); padding: 44px 28px; text-align: center; }
.footer-banners-title { font-family: var(--font-en); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; color: rgba(255,255,255,.55); text-transform: uppercase; margin-bottom: 24px; }
.footer-banners-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 1160px; margin: 0 auto; }
.footer-banners-row a { display: block; line-height: 0; background: #fff; padding: 6px 10px; opacity: .92; }
.footer-banners-row a:hover { opacity: 1; transform: translateY(-3px); }
.footer-banners-row img { height: 38px; width: auto; }

.footer-grid { max-width: 1160px; margin: 0 auto; padding: 70px 28px 50px; display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 44px; }
.footer p, .footer li { font-size: 0.85rem; color: rgba(255,255,255,.72); line-height: 1.9; }
/* Was <h2>/<h3>. Demoted to <p> so the footer stops competing with the page's
   own heading outline — the club name previously sat at h2 on every page. */
.footer .footer-brand-name { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 14px; color: #fff; }
.footer .footer-heading { font-family: var(--font-en); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.footer .footer-office-hours { font-size: 0.78rem; margin-top: 10px; }
.footer a:hover { color: #fff; }
.footer-links li, .footer-link-list li { margin-bottom: 10px; }
.footer-links a:hover, .footer-link-list a:hover { color: #fff; }
.footer-contact li, .footer-contact-info li { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 22px 28px; text-align: center; font-size: 0.75rem; color: rgba(255,255,255,.5); letter-spacing: 0.08em; }
.footer-bottom .container { padding: 0; }

/* ---------- Fade-in ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease-out, transform .7s ease-out; }
.fade-in.appear { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .msg-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .voices-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .burger-btn { display: block; }
  .nav {
    position: fixed; top: 76px; left: 0; width: 100%; height: calc(100vh - 76px);
    background: var(--white); padding: 40px 28px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-16px); transition: all .3s ease;
  }
  .nav.active { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-link { font-size: 1.05rem; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-member, .nav-link.nav-member { text-align: center; margin-top: 18px; }
  .nav-dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    border: none; border-left: 2px solid var(--navy); box-shadow: none;
    margin: 8px 0 8px 14px; padding: 0; display: none;
  }
  .nav-item.active .nav-dropdown { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .page-head { padding: 48px 0 38px; }
}
@media (max-width: 700px) {
  .meet-wrap { overflow-x: auto; }
  .meet-table { min-width: 620px; }
}

/* ---------- Promo banners (top page, 05 Information) ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promo-card { display: block; overflow: hidden; border: 1px solid var(--line); transition: all .3s ease; }
.promo-card img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.promo-card:hover { box-shadow: 0 14px 36px rgba(17,24,39,.12); transform: translateY(-4px); }
.promo-card:hover img { transform: scale(1.03); }
@media (max-width: 860px) { .promo-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* =========================================================
   Folded in from the per-page <style> blocks and inline
   style="" attributes of the original static pages.
   Rewritten onto the semantic tokens (--navy/--ink/--muted/
   --line/--white); the legacy aliases they used are gone.
   ========================================================= */

/* ---------- Accessibility ---------- */
/* WordPress core markup (and our nav toggle labels) rely on this class. */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: static !important; width: auto; height: auto;
  clip: auto; margin: 0; padding: 12px 22px;
  background: var(--navy); color: #fff; font-weight: 700;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--navy); color: #fff; padding: 12px 22px; font-weight: 700;
}
.skip-link:focus { left: 0; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--navy); outline-offset: 2px;
}
.no-js .fade-in { opacity: 1; transform: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--line); }
.breadcrumb ol {
  max-width: 1160px; margin: 0 auto; padding: 12px 28px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: '\203A'; color: var(--line); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb [aria-current='page'] { color: var(--ink); font-weight: 500; }

/* ---------- Generic content headings inside pages ---------- */
.content-head {
  font-size: 1.5rem; font-weight: 700; color: var(--navy-deep);
  margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--navy);
}

/* ---------- Notice card (report empty state, 404) ---------- */
.notice-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 50px 40px;
}
.notice-card h2, .notice-card h3 { color: var(--navy-deep); font-size: 1.4rem; margin-bottom: 16px; }
.notice-card p { color: var(--muted); line-height: 1.9; }
.notice-card .btn { margin-top: 24px; }

/* ---------- Editorial split (rotary) ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.split.rev { grid-template-columns: 1fr 1.1fr; }
.split-lead { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; color: var(--ink); line-height: 2; margin-bottom: 22px; }
.split-text { font-size: 0.94rem; color: var(--muted); line-height: 2.15; }
.split-text + .split-text { margin-top: 16px; }
.split-text-narrow { max-width: 760px; }
.split-photo { margin: 0; }
.split-photo img { width: 100%; border: 1px solid var(--line); }
.split-photo figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 10px; letter-spacing: 0.04em; }

/* ---------- Stats band ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; margin-top: 80px; }
.stat { border-top: 2px solid var(--ink); padding-top: 20px; }
.stat-num { font-family: var(--font-en); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat-num small { font-size: 0.5em; font-weight: 700; margin-left: 2px; }
.stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 8px; letter-spacing: 0.06em; }

/* ---------- Purpose (numbered) ---------- */
.purpose-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.purpose-item { position: relative; background: var(--white); border: 1px solid var(--line); padding: 26px 26px 26px 76px; font-size: 0.94rem; line-height: 2; }
.purpose-item .no {
  position: absolute; left: 24px; top: 26px;
  font-family: var(--font-en); font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1;
}
.purpose-item .no::after { content: ''; display: block; width: 22px; height: 2px; background: var(--navy); margin-top: 8px; }

/* ---------- Four-Way Test panel ---------- */
.fourway { background: var(--navy); color: #fff; padding: 70px 56px; margin-top: 64px; }
.fourway-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.fourway-en { font-family: var(--font-en); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
.fourway-jp { font-size: 0.9rem; color: rgba(255,255,255,.7); letter-spacing: 0.1em; }
.fourway-note { font-size: 0.9rem; color: rgba(255,255,255,.65); margin-bottom: 40px; }
.fourway-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-left: 1px solid rgba(255,255,255,.25); }
.fourway-item { border-right: 1px solid rgba(255,255,255,.25); padding: 6px 26px 10px; }
.fourway-item .no { font-family: var(--font-en); font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,.55); letter-spacing: 0.14em; display: block; margin-bottom: 12px; }
.fourway-item .tx { font-size: 1.05rem; font-weight: 700; line-height: 1.9; }

/* ---------- Five avenues of service ---------- */
.serve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.serve-item { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 24px 22px; }
.serve-item strong { display: block; font-size: 1.02rem; color: var(--ink); margin-bottom: 8px; }
.serve-item span { font-size: 0.86rem; color: var(--muted); line-height: 1.9; }

/* ---------- Areas of focus ---------- */
.focus-list { border-top: 1px solid var(--ink); margin-top: 12px; }
.focus-row { display: flex; align-items: baseline; gap: 30px; padding: 22px 6px; border-bottom: 1px solid var(--line); }
.focus-row .no { font-family: var(--font-en); font-size: 1.05rem; font-weight: 700; color: var(--navy); flex: 0 0 44px; }
.focus-row .tx { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.focus-row .sub { font-size: 0.82rem; color: var(--muted); margin-left: auto; font-family: var(--font-en); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Mottoes ---------- */
.motto-wrap { display: grid; grid-template-columns: 1fr 190px; gap: 40px; align-items: center; margin-top: 26px; }
.motto-panel { background: var(--navy); color: #fff; padding: 44px 48px; }
.motto-panel .m { font-family: var(--font-en); font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.5; }
.motto-panel .m small { display: block; font-family: var(--font-jp); font-weight: 500; font-size: 0.85rem; color: rgba(255,255,255,.75); margin: 6px 0 0; }
.motto-panel .m + .m { margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.25); }
.motto-badge { margin: 0; text-align: center; }
.motto-badge img { width: 100%; border: 1px solid var(--line); }
.motto-badge figcaption { font-size: 0.76rem; color: var(--muted); margin-top: 8px; }

/* ---------- HQ / structure ---------- */
.hq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 70px; }
.hq-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 26px; }
.hq-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-size: 0.92rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.hq-link::after { content: '\2197'; color: var(--navy); font-weight: 700; }
.hq-link:hover { color: var(--navy); padding-left: 10px; }

/* ---------- Leader message ---------- */
.leader { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.leader.rev { grid-template-columns: 1fr 340px; }
.leader-photo { margin: 0; }
.leader-photo img { width: 100%; height: 420px; object-fit: cover; object-position: center top; }
.leader-photo .leader-photo-fallback {
  width: 100%; height: 420px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 20px; color: #fff;
}
.leader-cap { background: var(--navy); color: #fff; padding: 16px 18px; }
.leader-cap .role { font-family: var(--font-en); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.leader-cap .nm { font-size: 1.2rem; font-weight: 700; margin-top: 4px; }
.leader-cap .org { font-size: 0.78rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.leader-theme { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 900; color: var(--navy); line-height: 1.7; margin-bottom: 8px; }
.leader-theme small { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; margin-top: 4px; }
.leader-body p { font-size: 0.94rem; color: var(--muted); line-height: 2.15; margin-top: 16px; }
.leader-note { font-size: 0.84rem !important; color: var(--muted); border-left: 2px solid var(--line); padding-left: 18px; }
.leader-banner { margin: 56px 0 0; }
.leader-banner img { width: 100%; border: 1px solid var(--line); }
.leader-banner figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

/* ---------- Sub headings inside sections ---------- */
.sub-head { display: flex; align-items: baseline; gap: 16px; margin: 90px 0 34px; }
.sub-head:first-of-type { margin-top: 0; }
.sub-head-tight { margin: 0 0 18px; }
.sub-en { font-family: var(--font-en); font-size: 1.25rem; font-weight: 700; color: var(--navy); letter-spacing: 0.04em; }
.sub-jp { font-size: 1.1rem; font-weight: 700; color: var(--ink); }

/* ---------- President message (about) ---------- */
.president-msg-wrap { display: flex; gap: 40px; align-items: flex-start; margin-top: 20px; }
.president-photo {
  flex: 0 0 250px; height: 320px; overflow: hidden;
  background: var(--navy-deep); color: #fff; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 20px;
}
.president-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.president-photo .pp-role { font-size: 0.8rem; color: rgba(255,255,255,.65); letter-spacing: 0.14em; font-family: var(--font-en); }
.president-photo .pp-name { font-size: 1.5rem; font-weight: 800; }
.president-msg { flex: 1; }

/* ---------- History timeline (about) ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 8px; width: 2px; background: var(--navy); opacity: .35; }
.timeline-item { position: relative; margin-bottom: 25px; }
/* Square markers: the original rule asked for 50% but the universal
   `border-radius: 0 !important` overrode it, so squares are what the
   live site actually renders. Reproduced deliberately. */
.timeline-item::before {
  content: ''; position: absolute; left: -27px; top: 6px;
  width: 12px; height: 12px; background: var(--navy); border: 2px solid var(--navy-deep);
}
.timeline-date { font-weight: 700; color: var(--navy-deep); margin-bottom: 4px; }
.timeline-content { color: var(--muted); }

/* ---------- Club banner figure + local spots (about) ---------- */
.club-banner-figure { margin: 0 0 28px; text-align: center; }
.club-banner-figure img { max-height: 380px; width: auto; margin: 0 auto; border: 1px solid var(--line); }
.club-banner-figure figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.spot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 26px; }
.spot-grid h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 8px; }
.spot-grid p { font-size: 0.9rem; color: var(--muted); line-height: 2; }

/* ---------- Past officers table: current term ---------- */
.info-table tr.is-current { background: rgba(23, 69, 143, .05); font-weight: 700; }

/* ---------- Activity report: archive cards ---------- */
.rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.rep-card { background: var(--white); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .3s ease; display: flex; flex-direction: column; }
.rep-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rep-card-img { width: 100%; height: 190px; object-fit: cover; background: var(--bg); }
.rep-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
/* Three visually distinct tags. The original t-social/t-anniv used
   --cranberry/--accent-dark, both of which collapsed to navy in this
   palette, so the categories were indistinguishable. */
.rep-tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--navy); padding: 3px 10px; margin-bottom: 10px; }
.rep-tag.t-social { background: var(--navy-deep); }
.rep-tag.t-anniv { background: var(--muted); }
.rep-card-title { font-size: 1.08rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 8px; line-height: 1.5; }
.rep-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.rep-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }
.rep-empty { color: var(--muted); padding: 10px 4px; }
.rep-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.rep-filter a { font-size: 0.85rem; font-weight: 700; padding: 8px 18px; border: 1px solid var(--line); background: var(--white); color: var(--muted); }
.rep-filter a:hover, .rep-filter a.active { border-color: var(--navy); color: var(--navy); }

/* ---------- Activity report: single ---------- */
.report-detail-card { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 40px; margin-bottom: 40px; }
.report-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.report-body h2, .report-body h3, .report-body h4 { color: var(--navy); margin: 25px 0 12px; font-size: 1.25rem; }
.report-body p { margin-bottom: 15px; line-height: 2; }
.report-body img { margin: 20px 0; }
.feedback-box { background: var(--bg); border-left: 4px solid var(--navy); padding: 20px; margin-top: 30px; }
.feedback-title { font-weight: 700; color: var(--navy-deep); margin-bottom: 10px; }
.feedback-item { font-style: italic; color: var(--muted); margin-bottom: 10px; padding-left: 15px; position: relative; }
.feedback-item::before { content: '\201C'; position: absolute; left: 0; top: -5px; font-size: 1.5rem; color: var(--navy); }

/* ---------- Meeting single ---------- */
.meeting-detail { max-width: 780px; margin: 0 auto; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.9rem; font-weight: 700; }
.post-nav a:hover { color: var(--navy); }

/* ---------- Search form ---------- */
.rc-searchform { display: flex; gap: 10px; align-items: stretch; }
.rc-searchform .form-control { flex: 1; }
.rc-searchform .btn { flex: 0 0 auto; white-space: nowrap; }

/* ---------- Entry content (block editor output) ---------- */
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy-deep); margin-top: 1.8em; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.entry-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy-deep); margin-top: 1.6em; }
.entry-content p { line-height: 2; color: var(--muted); }
.entry-content a { color: var(--navy); text-decoration: underline; }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content li { line-height: 2; color: var(--muted); }
.entry-content blockquote { border-left: 4px solid var(--navy); padding-left: 18px; color: var(--muted); }
/* Core table block should read like .info-table */
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.entry-content .wp-block-table th,
.entry-content .wp-block-table td { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 0.9rem; line-height: 1.8; }
.entry-content .wp-block-table thead th { color: var(--navy); font-weight: 700; border-bottom: 2px solid var(--navy); background: var(--white); font-size: 0.85rem; letter-spacing: 0.08em; }
.entry-content .wp-block-table tbody th { color: var(--ink); font-weight: 700; background: #fafafa; }
.entry-content .wp-block-table { overflow-x: auto; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 50px; }
.pagination .page-numbers { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); background: var(--white); font-size: 0.88rem; font-weight: 700; color: var(--muted); }
.pagination .page-numbers:hover { border-color: var(--navy); color: var(--navy); }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Mobile dropdown toggle ----------
   A separate control so the parent <a> stays tappable on phones.
   The original JS called preventDefault() on the parent link, which made
   /about/ and /rotary/ unreachable on mobile entirely. */
.nav-toggle { display: none; }

/* ---------- Responsive for the folded-in blocks ---------- */
@media (max-width: 991px) {
  .split, .split.rev, .hq-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .purpose-grid { grid-template-columns: 1fr; }
  .fourway { padding: 50px 30px; }
  .fourway-list { grid-template-columns: 1fr 1fr; border-left: none; }
  .fourway-item { border-right: none; border-left: 1px solid rgba(255,255,255,.25); margin-bottom: 20px; }
  .motto-wrap { grid-template-columns: 1fr; }
  .motto-badge { max-width: 190px; margin: 0 auto; }
  .leader, .leader.rev { grid-template-columns: 1fr; }
  .leader-photo { max-width: 360px; margin: 0 auto; width: 100%; }
  .leader.rev .leader-photo { order: -1; }
  .spot-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 767px) {
  .president-msg-wrap { flex-direction: column; align-items: center; }
  .president-photo { flex: none; width: 100%; height: 250px; }
  .report-detail-card { padding: 26px 20px; }
  .sub-head { margin: 60px 0 26px; }

  /* Parent link stays navigable; the chevron button opens the submenu. */
  .nav-item.has-children { display: flex; flex-wrap: wrap; align-items: center; }
  .nav-item.has-children > .nav-link { flex: 1; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 53px; background: none; border: none;
    border-bottom: 1px solid var(--line); cursor: pointer;
  }
  .nav-toggle::after {
    content: ''; width: 9px; height: 9px;
    border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s ease;
  }
  .nav-item.active .nav-toggle::after { transform: rotate(-135deg); }
  .nav-item.has-children > .nav-dropdown { flex: 0 0 100%; }
}
