/* =====================================================
   JCCI Sydney — Main Stylesheet
   Ported from static mock v13
   ===================================================== */

:root {
  --navy: #0b2136;
  --navy2: #102a44;
  --ink: #0b1220;
  --muted: #5b6b7a;
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: rgba(15, 30, 50, .12);
  --accent: #f28c28;
  --radius: 14px;
  --shadow: 0 18px 60px rgba(7, 18, 35, .12);
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  /* clip (not hidden) prevents horizontal scroll without creating a scroll
     container, which would otherwise break the sticky header. */
  overflow-x: clip;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* =====================================================
   TOPBAR
   ===================================================== */
.site-topbar {
  background: linear-gradient(180deg, rgba(5, 15, 25, .9), rgba(5, 15, 25, .85));
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  letter-spacing: .04em;
}

.site-topbar .inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.site-topbar .right {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 33, 54, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #ffb25a, #c55b0f 60%, #672a0a);
  flex-shrink: 0;
}

.brand .brand-name {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.brand .brand-desc {
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
  margin-top: 2px;
}

/* Nav */
.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.site-nav>a,
.site-nav .dropdown>button {
  color: rgba(255, 255, 255, .90);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav>a:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .06);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown>button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: rgba(255, 255, 255, .90);
}

.dropdown>button:hover,
.dropdown>button:focus-visible {
  background: rgba(255, 255, 255, .06);
  outline: none;
}

.caret {
  opacity: .7;
  font-size: .85em;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: none;
  min-width: 280px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(7, 18, 30, .96);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  z-index: 100;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, .08);
  text-decoration: none;
}

.dropdown>button[aria-expanded="true"]+.dropdown-menu {
  display: block;
}

@media (min-width: 1100px) {
  .dropdown-menu {
    column-count: 2;
    column-gap: 12px;
  }

  .dropdown-menu a {
    break-inside: avoid;
  }
}

/* Header Actions */
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-toggle {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 14px;
}

.lang-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 54px;
  padding: 0 12px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  opacity: .85;
  white-space: nowrap;
}

.lang-toggle a.active {
  background: rgba(255, 255, 255, .18);
  opacity: 1;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 18px 50px rgba(242, 140, 40, .25);
  white-space: nowrap;
}

.cta:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* =====================================================
   MOBILE DRAWER
   ===================================================== */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 200;
}

.mobile-drawer .panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 92vw);
  background: rgba(11, 33, 54, .98);
  padding: 18px 18px 28px;
  box-shadow: -30px 0 90px rgba(0, 0, 0, .35);
  overflow-y: auto;
}

.mobile-drawer .panel .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.mobile-drawer .close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
}

.mobile-drawer .panel a {
  display: block;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  font-weight: 700;
}

.mobile-drawer .panel a:hover {
  color: #fff;
}

.mobile-drawer .drawer-group {
  margin-top: 10px;
}

.mobile-drawer .drawer-title {
  padding: 10px 0 6px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  font-weight: 700;
}

/* =====================================================
   HOME HERO
   ===================================================== */
/* Topbar stays in normal flow so it scrolls away naturally (same as inner pages). */
body.home .site-topbar {
  position: relative;
  z-index: 200;
  background: rgba(10, 20, 34, .80);
}

/* Header uses the same sticky behavior as inner pages, just with a transparent
   gradient so the hero shows through; it goes solid once scrolled. */
body.home .site-header {
  position: sticky;
  top: 0;
  z-index: 210;
  background: linear-gradient(to bottom, rgba(10, 20, 34, .92), rgba(10, 20, 34, .65), rgba(10, 20, 34, 0));
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  transition: background .25s ease;
}

body.home .site-header.is-scrolled {
  background: rgba(11, 33, 54, .97);
}

body.home main {
  padding-top: 0 !important;
}

body.home .hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0 !important;
  /* Pull the hero up behind the topbar + header so the transparent nav overlays
     the image. --home-nav-h is measured by JS (fallback ≈ topbar + header). */
  margin-top: calc(-1 * var(--home-nav-h, 124px)) !important;
  border-radius: 0 !important;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

body.home .hero>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.03) brightness(1.06);
}

body.home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(8, 18, 32, .86) 0%,
      rgba(8, 18, 32, .70) 34%,
      rgba(8, 18, 32, .30) 56%,
      rgba(8, 18, 32, 0) 78%);
  pointer-events: none;
  z-index: 1;
}

body.home .hero .content {
  position: absolute;
  left: clamp(20px, 6vw, 84px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: min(680px, 86vw);
}

body.home .hero .kicker {
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  letter-spacing: .10em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

body.home .hero h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 14px 36px rgba(0, 0, 0, .35);
}

body.home .hero p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .92);
  max-width: 560px;
}

@media (max-width: 768px) {
  body.home .hero {
    min-height: 560px;
  }
}

/* =====================================================
   SECTIONS & CARDS
   ===================================================== */
.section {
  padding: 48px 0;
}

.section .head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .02em;
}

.section .more {
  color: rgba(11, 33, 54, .7);
  font-weight: 800;
  text-decoration: none;
}

.section .more:hover {
  color: rgba(11, 33, 54, 1);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 70px rgba(7, 18, 35, .06);
}

/* =====================================================
   NEWS GRID
   ===================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card {
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
  display: block;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(7, 18, 35, .12);
  text-decoration: none;
}

.news-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.03);
}

.news-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0f4c81;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
}

.news-body {
  padding: 16px 16px 18px;
}

.news-title {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 10px;
  color: var(--ink);
}

.news-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 10px;
}

.news-excerpt {
  color: rgba(11, 18, 32, .78);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  margin-top: 12px;
  color: rgba(11, 18, 32, .55);
  font-size: 12px;
  font-weight: 800;
}

.news-year-group {
  margin-bottom: 32px;
}

/* =====================================================
   PUBLICATION PROMO
   ===================================================== */
.pub-promo {
  padding: 22px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: center;
}

.pub-cover img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.pub-copy .pub-title {
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 8px;
}

.pub-copy p {
  color: rgba(11, 18, 32, .82);
  line-height: 1.9;
  margin: 0 0 14px;
}

/* =====================================================
   SUBPAGE — PAGE HERO
   ===================================================== */
.page--light {
  background: #f6f7fb;
  color: #0b1a2a;
}

.page-hero {
  padding: 44px 0 18px;
  background: linear-gradient(180deg, rgba(11, 26, 42, .08), rgba(11, 26, 42, 0));
  border-bottom: 1px solid rgba(11, 26, 42, .08);
}

.page-hero h1 {
  margin: 20px 0 0 0;
  font-size: 30px;
  color: black;
  font-weight: 900;
}

.page-hero p {
  margin: 0;
  color: rgba(11, 26, 42, .76);
  max-width: 70ch;
  line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
  padding: 10px 10px;
  color: white;
  font-weight: 800;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(1px);
}

.breadcrumb a {
  color: white
}

.breadcrumb a:hover {
  color: rgba(11, 33, 54, 1);
}

/* .breadcrumb span { opacity: .55; } */

/* =====================================================
   FACTS TABLE (概要ページ)
   ===================================================== */
.facts {
  border: 1px solid rgba(0, 0, 0, .10);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  margin: 24px 0;
}

.facts-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.facts-row:first-child {
  border-top: 0;
}

.facts-label {
  padding: 14px;
  font-weight: 700;
  color: #062237;
  background: linear-gradient(180deg, rgba(78, 213, 223, .40), rgba(78, 213, 223, .18));
  letter-spacing: .06em;
  font-size: 13px;
}

.facts-value {
  padding: 14px 16px;
  color: rgba(11, 18, 32, .92);
  line-height: 1.75;
}

/* =====================================================
   NEWS DETAIL
   ===================================================== */
.detail-wrap {
  padding: 40px 0 60px;
}

.detail {
  padding: 26px;
}

.detail h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-size: 34px;
  line-height: 1.2;
  color: var(--ink);
}

.detail .meta {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 18px;
}

.detail .prose {
  line-height: 1.95;
  font-size: 16px;
  color: rgba(11, 18, 32, .88);
}

.detail .prose p {
  margin: 0 0 1.2em;
}

.detail .prose h2 {
  margin: 1.5em 0 .5em;
  font-size: 22px;
}

.detail .prose h3 {
  margin: 1.2em 0 .4em;
  font-size: 18px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.detail-gallery img {
  width: 100%;
  border-radius: 14px;
}

/* ニュース記事内の画像キャプション（Gutenberg image block の figcaption） */
.detail .prose .wp-block-image,
.prose .wp-block-image {
  margin: 24px auto;
  text-align: center;
}

.detail .prose .wp-block-image img,
.prose .wp-block-image img {
  border-radius: 12px;
}

.detail .prose .wp-block-image figcaption,
.prose .wp-block-image figcaption,
.wp-element-caption {
  text-align: center;
  font-size: 14px;
  color: rgba(11, 18, 32, .65);
  margin: 8px auto 0;
  line-height: 1.6;
}

.wp-block-separator {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* =====================================================
   CONTENT LAYOUT (2-column with TOC)
   ===================================================== */
.content-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0 56px;
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
}

.toc__box {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(11, 26, 42, .10);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 16px 40px rgba(11, 26, 42, .08);
}

.toc__title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  color: #0b1a2a;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(11, 26, 42, .08);
}

.toc a {
  display: block;
  padding: 9px 10px;
  border-radius: 12px;
  color: rgba(11, 26, 42, .82);
  text-decoration: none;
  font-size: 14px;
}

.toc a:hover {
  color: #0b1a2a;
  background: rgba(11, 26, 42, .06);
  text-decoration: none;
}

/* Article content */
.article {
  min-width: 0;
}

.section-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(11, 26, 42, .10);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 16px 40px rgba(11, 26, 42, .08);
}

.col-block-sec {
  padding: 0px 20px;
  border-left: 3px solid #9d9d9d;

  h4 {
    margin-top: 0px;
    margin-bottom: 0px;
  }

  p {
    margin-top: 0px;
    margin-bottom: 0px;
  }
}

.post-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;

  a {
    background: transparent;
    color: white;
    padding: 0px;
    text-decoration: none;
  }
}


.col-block-jc {
  gap: 1em;
}

.block-jc-d1 {
  padding: 20px;
  box-shadow: inset 0 0 0 5px rgba(9, 17, 27, .08);
  border-radius: 5px;

  h4.wp-block-heading {
    margin-top: 5px;
    margin-bottom: 5px;

  }
}

.section-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #ffffff;
  background: #223344;
  padding: 10px 18px;
  border-radius: 7px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, .2);
}

.section-card h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  color: #0b1a2a;
  padding: 10px 18px;
  border-radius: 0px;
  background: rgba(11, 26, 42, .04);
}

.section-card p {
  color: rgba(11, 18, 32, .86);
  line-height: 1.8;
}

/* Links inside page content are always underlined so they're distinguishable from plain text */
.section-card a {
  color: #0b57a4;
  text-decoration: underline;
}

.section-card a:hover {
  text-decoration: underline;
  opacity: .8;
}

/* Mini cards grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.mini-card {
  background: rgba(9, 17, 27, .04);
  border: 1px solid rgba(9, 17, 27, .08);
  border-radius: 14px;
  padding: 14px;
}

.mini-card h3,
.mini-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #0b1a2a;
}

.mini-card p {
  margin: 0;
  color: rgba(11, 18, 32, .82);
  font-size: 14px;
  line-height: 1.7;
}

/* Info table */
.info-table {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(9, 17, 27, .10);
  margin-top: 12px;
}

.info-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-top: 1px solid rgba(9, 17, 27, .08);
}

.info-row:first-child {
  border-top: 0;
}

.info-key {
  padding: 12px 14px;
  background: rgba(9, 17, 27, .04);
  font-weight: 700;
  font-size: 13px;
  color: #0b1a2a;
}

.info-val {
  padding: 12px 14px;
  font-size: 14px;
  color: rgba(11, 18, 32, .84);
  line-height: 1.7;
}

/* Gutenberg core/table を .info-table と同じ見た目に揃える
   （section-card 内の標準テーブルブロックに適用）
   - WP コアの .wp-block-table デフォルト（border-collapse:collapse / border:1px solid / padding:.5em）を上書き
   - figure のブラウザデフォルト margin もリセット */
.section-card figure.wp-block-table {
  margin: 12px 0;
}

.section-card .wp-block-table table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(9, 17, 27, .10);
  background: #fff;
}

.section-card .wp-block-table td,
.section-card .wp-block-table th {
  border: 0;
  border-top: 1px solid rgba(9, 17, 27, .08);
  padding: 12px 14px;
  font-size: 14px;
  color: rgba(11, 18, 32, .84);
  line-height: 1.7;
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}

.section-card .wp-block-table tr:first-child td,
.section-card .wp-block-table tr:first-child th {
  border-top: 0;
}

.section-card .wp-block-table tr td:first-child,
.section-card .wp-block-table tr th:first-child {
  background: rgba(9, 17, 27, .04);
  font-weight: 700;
  font-size: 13px;
  color: #0b1a2a;
  /*width: 50%;*/
}

/* オプトアウト: エディタで Additional CSS class に「table-plain」を付けると
   先頭列のラベル風スタイル（グレー背景・太字）を打ち消し、通常のデータ表として表示する */
.section-card .wp-block-table.table-plain tr td:first-child,
.section-card .wp-block-table.table-plain tr th:first-child {
  background: transparent;
  font-weight: 400;
  font-size: 14px;
  color: rgba(11, 18, 32, .84);
}

/* Pill list */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.pill-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 26, 42, .06);
  border: 1px solid rgba(11, 26, 42, .10);
  color: rgba(11, 18, 32, .85);
  font-size: 13px;
}

/* =====================================================
   COMMITTEE CARDS
   ===================================================== */
.committee-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: linear-gradient(180deg, rgba(11, 33, 54, 1), rgba(7, 22, 36, 1));
  color: rgba(255, 255, 255, .78);
  padding: 42px 0 30px;
  margin-top: 40px;
}

.footer .cols {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 18px;
}

.footer h4 {
  margin: 0 0 12px;
  color: #fff;
  font-weight: 900;
}

.footer a {
  display: block;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  padding: 6px 0;
  font-weight: 700;
}

.footer a:hover {
  color: #fff;
}

.footer .small {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}

/* =====================================================
   CONTACT FORM (WP default form support)
   ===================================================== */
.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0b1a2a;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(11, 26, 42, .18);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 16px;
  outline: none;
  transition: border-color .15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(242, 140, 40, .25);
}

.contact-form .submit-btn:hover {
  filter: brightness(1.05);
}

/* Contact Form 7 overrides */
.wpcf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* =====================================================
   GENERAL BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(9, 17, 27, .18);
  background: rgba(255, 255, 255, .9);
  color: #0b1220;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, #ff9b3d, #ff7a1a);
  border-color: rgba(255, 122, 26, .7);
  color: #fff;
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 20px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  z-index: 9999;
}

/* =====================================================
   WORDPRESS PAGINATION
   ===================================================== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 24px 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.pagination .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pagination .page-numbers:hover {
  background: rgba(11, 26, 42, .06);
  text-decoration: none;
}

.pagination .page-numbers.dots {
  border: 0;
  background: transparent;
  color: rgba(11, 26, 42, .50);
  font-weight: 400;
  letter-spacing: 2px;
  min-width: auto;
  padding: 0 4px;
}

.pagination .page-numbers.dots:hover {
  background: transparent;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: relative;
    top: auto;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .committee-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer .cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .committee-cards {
    grid-template-columns: 1fr;
  }

  .pub-promo {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .info-row {
    grid-template-columns: 1fr;
  }

  .facts-row {
    grid-template-columns: 1fr;
  }

  .site-topbar .inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-topbar .right {
    flex-wrap: wrap;
  }

  .site-header .inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand .brand-desc {
    display: none;
  }

  .header-actions {
    margin-left: auto;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .cta {
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  body.home .hero {
    min-height: 480px;
  }
}

/* =====================================================
   モバイル最適化（スマートフォン向け）
   ===================================================== */
@media (max-width: 768px) {

  /* 基本フォントサイズ */
  body {
    font-size: 15px;
  }

  /* コンテナ余白 */
  .container {
    width: calc(100% - 32px);
  }

  /* セクション余白 */
  .section {
    padding: 32px 0;
  }

  /* ニュース詳細 */
  .detail-wrap {
    padding: 20px 0 40px;
  }

  .detail {
    padding: 16px;
  }

  .detail h1 {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 10px;
    font-weight: 800;
  }

  .detail .meta {
    font-size: 12px;
  }

  .detail .prose {
    font-size: 15px;
    line-height: 1.85;
  }

  .detail .prose h2 {
    font-size: 18px;
  }

  .detail .prose h3 {
    font-size: 16px;
  }

  /* ページヒーロー */
  .page-hero {
    padding: 28px 0 14px;
  }

  .page-hero h1 {
    font-size: 22px;
  }

  .page-hero p {
    font-size: 14px;
  }

  /* セクションカード */
  .section-card {
    padding: 16px;
  }

  .section-card h2 {
    font-size: 18px;
  }

  /* ニュースグリッド見出し */
  .section h2 {
    font-size: 20px;
  }

  /* ニュースカード */
  .news-title {
    font-size: 15px;
  }

  .news-excerpt {
    font-size: 13px;
  }

  .news-meta {
    font-size: 12px;
  }

  .news-date {
    font-size: 11px;
  }

  /* フッター */
  .footer {
    padding: 28px 0 20px;
  }

  .footer h4 {
    font-size: 14px;
  }

  .footer a {
    font-size: 14px;
    padding: 4px 0;
  }

  /* ヘッダーロゴ */
  .brand img {
    height: 38px !important;
  }

  /* パンくず */
  .breadcrumb {
    font-size: 11px;
  }

  /* ページネーション */
  .pagination .page-numbers {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* 目次 */
  .toc a {
    font-size: 13px;
    padding: 8px 10px;
  }

  /* info-table */
  .info-key {
    font-size: 12px;
  }

  .info-val {
    font-size: 13px;
  }
}

.member-tab {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 20px;
  border-radius: 15px;
}

.member-tab:hover {
  background-color: #e5e7eb;
}

.member-tab--active {
  background-color: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  border-radius: 15px;
}

.page-hero {
  background-image: url('../img/sydney-fast-view.jpg');
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero {
  margin-top: -50px;
  /* adjust to breadcrumb height */
  padding-top: 50px;
  background:
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.20) 50%,
      rgba(255, 255, 255, 0.85) 85%,
      var(--bg) 100%),
    url('../img/sydney-fast-view.jpg');

  background-size: cover;
  background-position: center;
  min-height: 200px;
  border-bottom: 4px solid var(--bg);
}

/* =====================================================
   MAINTENANCE / SITE RENEWAL PAGE
   Scoped under body.maintenance-page so these rules
   never leak into the rest of the site.
   ===================================================== */
body.maintenance-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background-image:
    linear-gradient(to bottom,
      rgba(100, 170, 255, 0.45) 0%,
      rgba(100, 170, 255, 0.35) 45%,
      rgba(255, 255, 255, 0.20) 65%,
      rgba(255, 255, 255, 0.85) 85%,
      rgba(255, 255, 255, 1) 100%),
    url('../img/maintenance.jpg');
  background-size: cover;
  background-position: center;
}

body.maintenance-page .maintenance {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

body.maintenance-page .maintenance .container {
  width: min(750px, 100%);
  margin: 0 auto;
  background: #ffffff80;
  border-radius: 30px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

body.maintenance-page .english,
body.maintenance-page .japanese {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 20px;
}