@charset "utf-8";

/* =========================================================
   令和5年度 千葉県歯科医学大会 — Modernized Stylesheet
   ========================================================= */

/* ----- Design Tokens ----- */
:root {
  --color-primary: #7c160d;            /* 深紅 (学術基調色) */
  --color-primary-dark: #5a0f08;
  --color-primary-light: #faecea;
  --color-accent: #243275;             /* 深い紺 (アクセント) */
  --color-accent-hover: #374791;
  --color-text: #2d2524;
  --color-text-muted: #6a5955;
  --color-border: #ece1df;
  --color-surface: #ffffff;
  --color-bg: #f8f5f4;
  --color-grey: #6b757e;
  --color-heading: #5a0f08;

  --shadow-sm: 0 1px 2px rgba(58, 10, 6, 0.06);
  --shadow-md: 0 4px 16px rgba(58, 10, 6, 0.08);
  --shadow-lg: 0 10px 32px rgba(58, 10, 6, 0.10);

  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-pill: 0;

  --font-gothic: "Yu Gothic", "YuGothic", "游ゴシック体", "ヒラギノ角ゴ Pro W3",
                 "Hiragino Kaku Gothic Pro", "Meiryo", "メイリオ", sans-serif;
  --font-mincho: "Hiragino Mincho ProN", "ヒラギノ明朝 ProN W6", "HiraMinProN-W6",
                 "Yu Mincho", "YuMincho", "游明朝", "MS PMincho", serif;

  --container-max: 1180px;
  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;
  --header-offset: 0px;
}

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-gothic);
  line-height: 1.85;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ----- Skip link ----- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  outline: 2px solid #fff;
  outline-offset: 2px;
  color: #fff;
}
img, picture, video, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary-dark); text-decoration: none; transition: color var(--transition-fast), opacity var(--transition-fast); }
a:hover { color: var(--color-primary); opacity: 0.9; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
input, button, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.4; overflow-wrap: break-word; }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}
.mincho { font-family: var(--font-mincho); font-weight: 500; }
.center { text-align: center; }
.right { text-align: right; }

/* ----- Header ----- */
.site-header { background: var(--color-surface); position: relative; z-index: 40; }

/* Sticky wrapper — keeps top-bar + global nav fixed on scroll */
.site-header-fixed {
  position: sticky;
  top: 0;
  z-index: 45;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  box-shadow: 0 2px 12px rgba(58, 10, 6, 0.18);
}

/* On desktop: hide the thin top-bar (eyebrow + title) after scrolling past it */
@media (min-width: 1024px) {
  .site-header-fixed .top-bar {
    max-height: 80px;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      padding-top 0.3s ease,
      padding-bottom 0.3s ease,
      opacity 0.25s ease;
  }
  .site-header-fixed.is-scrolled .top-bar {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header-fixed .top-bar { transition: none; }
}

.top-bar {
  background: transparent;
  color: #fff;
  padding: 14px 0;
  font-size: 0.95rem;
  position: relative;
}
.top-bar .container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding-right: 56px; /* reserve space for nav-toggle on mobile */
}
@media (min-width: 1024px) {
  .top-bar .container { padding-right: 20px; }
}
/* トップバーの大会名テキストをホームへのリンクに（display:contents でレイアウト影響なし） */
.top-bar-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}
.top-bar-link:hover .title-jp,
.top-bar-link:hover .eyebrow { opacity: 0.7; }

.top-bar .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  opacity: 0.85;
  font-family: "Georgia", serif;
  font-style: italic;
}
.top-bar .title-jp {
  font-weight: 600;
  font-size: 1rem;
}
/* スマホは「大会名」「日付・会場」の2段表示（途中改行させない） */
.top-bar .title-jp .title-jp-main,
.top-bar .title-jp .title-jp-sub { display: block; white-space: nowrap; }
.top-bar .title-jp .title-jp-sep { display: none; }
@media (max-width: 413px) {
  .top-bar .title-jp .title-jp-sub { font-size: 0.9em; } /* 375px幅でも1行に収める */
}
@media (max-width: 359px) {
  .top-bar .title-jp .title-jp-sub { font-size: 0.8em; } /* 320px幅でも1行に収める */
}
@media (min-width: 768px) {
  .top-bar .title-jp .title-jp-main,
  .top-bar .title-jp .title-jp-sub,
  .top-bar .title-jp .title-jp-sep { display: inline; white-space: normal; }
}
@media (min-width: 768px) {
  .top-bar .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
  .top-bar .eyebrow { font-size: 0.85rem; }
  .top-bar .title-jp { font-size: 1.05rem; }
}

.nav-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px 12px;
  line-height: 1;
  z-index: 60;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.2); }
.nav-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile nav backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 2, 1, 0.45);
  z-index: 44; /* .site-header-fixed(45)より下に置く。45だとDOM後勝ちでドロワーとボタンを覆い、タップが全て黒幕に吸われる */
  opacity: 0;
  transition: opacity var(--transition);
}
.nav-backdrop.is-visible { display: block; opacity: 1; }
@media (min-width: 1024px) { .nav-backdrop { display: none !important; } }

.site-nav {
  background: transparent;
}
.nav-list {
  display: none;
  flex-direction: column;
  padding: 8px 0;
}
.nav-list.is-open { display: flex; }
.nav-list li a {
  display: block;
  padding: 16px 24px;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 0;
  font-size: 0.95rem;
  min-height: 44px;
}
.nav-list li a:hover,
.nav-list li a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Mobile drawer style */
@media (max-width: 1023px) {
  .nav-list.is-open {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    max-height: 100vh;
    background: linear-gradient(160deg, #3a0a06 0%, var(--color-primary) 100%);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.28);
    z-index: 50;
    overflow-y: auto;
    padding-top: 64px;
    padding-bottom: 32px;
    animation: navSlide 0.25s ease;
  }
  @keyframes navSlide {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .nav-list.is-open { animation: none; }
  }
}

@media (min-width: 1024px) {
  .nav-list {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: var(--container-max);
    margin-inline: auto;
    padding: 0 20px;
  }
  .nav-list > li { position: relative; }
  .nav-list li a {
    border-bottom: 3px solid transparent;
    padding: 16px 12px;
    font-size: 0.92rem;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.92);
  }
  .nav-list li a:hover,
  .nav-list li a.is-active {
    background: transparent;
    border-bottom-color: #fff;
    color: #fff;
  }
}
@media (min-width: 1200px) {
  .nav-list li a { font-size: 0.95rem; padding: 16px 14px; }
}

/* Dropdown (submenu) — desktop */
.nav-list .has-dropdown > a .dropdown-caret {
  display: inline-block;
  font-size: 0.7em;
  margin-left: 4px;
  line-height: 1;
  transition: transform 0.2s;
}
.nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .nav-list .has-dropdown > .nav-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: var(--color-surface);
    box-shadow: 0 10px 28px rgba(58, 10, 6, 0.14);
    border-top: 3px solid var(--color-primary);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 100;
  }
  .nav-list .has-dropdown:hover > .nav-submenu,
  .nav-list .has-dropdown:focus-within > .nav-submenu,
  .nav-list .has-dropdown.is-open > .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .nav-list .has-dropdown:hover > a .dropdown-caret,
  .nav-list .has-dropdown:focus-within > a .dropdown-caret,
  .nav-list .has-dropdown.is-open > a .dropdown-caret {
    transform: rotate(180deg);
  }
  .nav-submenu li a {
    display: block;
    padding: 12px 24px !important;
    color: var(--color-text) !important;
    border-bottom: 0 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.05em;
    background: transparent !important;
  }
  .nav-submenu li a:hover,
  .nav-submenu li a.is-active {
    background: var(--color-primary-light) !important;
    color: var(--color-primary-dark) !important;
  }
}

/* Mobile drawer — submenu always expanded with indent */
@media (max-width: 1023px) {
  .nav-list .has-dropdown > a .dropdown-caret { display: none; }
  .nav-submenu {
    background: rgba(0, 0, 0, 0.18);
  }
  .nav-submenu li a {
    padding-left: 40px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  .nav-submenu li a::before {
    content: "—";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.6);
  }
  .nav-submenu li a:hover,
  .nav-submenu li a.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
  }
}

.brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 44px 20px 24px;
  background-image:
    linear-gradient(180deg, rgba(20, 3, 2, 0.10) 0%, rgba(20, 3, 2, 0.35) 100%),
    url('../img/2026_hback.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
@media (min-width: 768px) {
  .brand { padding: 56px 20px 32px; }
}
@media (min-width: 1200px) {
  .brand { padding: 68px 20px 38px; }
}
.brand a { color: inherit; }
.brand-logo {
  max-width: 150px;
  width: 100%;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}
@media (min-width: 768px) {
  .brand-logo { max-width: 180px; }
}
.brand .brand-title { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.brand .brand-title small { color: rgba(255, 255, 255, 0.9); }
.brand-title {
  font-family: var(--font-mincho);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  color: var(--color-text);
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1.35;
  font-weight: 500;
}
.brand-title a { color: inherit; }
.brand-title small {
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.25em;
  color: var(--color-primary-dark);
  font-family: "Georgia", serif;
  font-style: italic;
  margin-top: 10px;
}

/* Compact brand for subpages */
.brand--sub { padding: 36px 20px 32px; }
.brand--sub .brand-logo { max-width: 120px; }
.brand--sub .brand-title { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
@media (min-width: 768px) {
  .brand--sub { flex-direction: row; justify-content: center; gap: 24px; padding: 44px 20px 40px; }
}
@media (min-width: 1200px) {
  .brand--sub { padding: 56px 20px 48px; }
}

/* ----- Hero (Home) — full-background image ----- */
.hero--fullbg {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 520px;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 2, 1, 0.35) 0%, rgba(10, 2, 1, 0.55) 100%),
    linear-gradient(100deg, rgba(90, 15, 8, 0.55) 0%, rgba(20, 3, 2, 0.15) 55%);
}
.hero--fullbg .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 32px;
  padding: 36px 20px 44px;
  width: 100%;
  align-items: end;
}
.hero-eyebrow {
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}
.hero-eyebrow span {
  display: inline-block;
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  margin-right: 4px;
  vertical-align: -4px;
}
.hero-catch-en {
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55), 0 0 60px rgba(124, 22, 13, 0.35);
  margin-bottom: 18px;
}
.hero-catch-ja {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  line-height: 1.55;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 24px;
}
.hero-catch-ja::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
}
.hero-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mincho);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: #fff;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.hero-sep {
  opacity: 0.5;
}
.hero-credits-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-left: 3px solid rgba(255, 255, 255, 0.7);
  padding: 20px 22px;
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  justify-self: end;
}
.hero-credits-panel p {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}
.hero-credits-panel p:last-child { margin-bottom: 0; }
.hero-credit-label {
  flex: 0 0 2.6em;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #fff;
}
.hero-brsm { display: inline; }

@media (min-width: 900px) {
  .hero--fullbg { min-height: 520px; }
  .hero--fullbg .hero-inner {
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    padding: 64px 40px 72px;
    max-width: var(--container-max);
    margin: 0 auto;
  }
  .hero-brsm { display: none; }
}
@media (max-width: 640px) {
  .hero--fullbg { min-height: 420px; }
  .hero--fullbg .hero-inner {
    padding: 36px 20px 40px;
  }
  .hero-credits-panel {
    padding: 16px 18px;
    font-size: 0.85rem;
  }
  .hero-credits-panel p {
    flex-direction: column;
    gap: 0;
  }
}

/* ----- Page Layout ----- */
.page-main {
  padding: 32px 0 64px;
}
@media (min-width: 768px) {
  .page-main { padding: 40px 0 80px; }
}
.page-main .container {
  display: block;
}
.page-content { min-width: 0; }

/* ----- Headings ----- */
.page-title {
  font-family: var(--font-mincho);
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: 18px 24px;
  border-radius: var(--radius-md);
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  font-weight: 600;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
}
.page-title::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: #fff3;
}

.section-title {
  color: var(--color-primary-dark);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 600;
  padding: 14px 4px;
  border-top: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}

.subheading {
  color: #9d7e00;
  font-size: 1.15rem;
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddc77a;
  margin-bottom: 22px;
  letter-spacing: 0.04em;
}

/* ----- Cards / Boxes ----- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card--accent {
  border: 2px solid var(--color-primary);
  padding-top: 56px;
}
.card-label {
  position: absolute;
  top: -16px;
  left: 24px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
}
.card-bordered-bottom {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 40px;
  margin-bottom: 40px;
}

/* Speaker profile block */
.speaker-block {
  display: grid;
  gap: 20px;
  align-items: start;
}
@media (min-width: 600px) {
  .speaker-block { grid-template-columns: minmax(0, 1fr) 280px; }
  .speaker-block.speaker--reverse { grid-template-columns: 280px minmax(0, 1fr); }
}
.speaker-photo img { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.speaker-caption { margin-top: 8px; font-size: 0.9rem; color: var(--color-text-muted); text-align: center; }

.speakers-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .speakers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .speakers-grid { grid-template-columns: repeat(3, 1fr); } }
.speaker-card { text-align: center; }
.speaker-card img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 10px; }
.speaker-card .name { font-weight: 600; }
.speaker-card .affil { font-size: 0.85rem; color: var(--color-text-muted); }

/* Venue chip */
.chip {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-right: 10px;
  vertical-align: middle;
}

.venue-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.venue-line .body {
  color: var(--color-text);
  font-weight: 500;
}

/* ----- Table ----- */
.table {
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}
.table th,
.table td {
  padding: 14px 18px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.table th {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 600;
  white-space: nowrap;
  width: 10em;
}
.table tr:last-child th,
.table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .table { font-size: 0.92rem; }
  .table th, .table td { display: block; width: 100%; white-space: normal; }
  .table th {
    border-bottom: 0;
    padding: 12px 16px 4px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
  }
  .table td {
    padding: 2px 16px 14px;
    border-bottom: 1px solid var(--color-border);
  }
  .table tr:last-child td { border-bottom: 0; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.4;
  text-align: center;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn--accent:hover { background: var(--color-accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--download::before {
  content: "\f019";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 4px;
}
.btn--block { display: flex; width: 100%; }

/* Section anchor buttons on program page */
.anchor-nav {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin-bottom: 40px;
}
@media (min-width: 600px) { .anchor-nav { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.anchor-nav a {
  display: block;
  padding: 12px 14px;
  background: var(--color-surface);
  color: var(--color-text);
  border-left: 4px solid var(--color-primary);
  border-radius: 0;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.anchor-nav a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ----- CTA cards (Home) ----- */
.cta-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 480px) { .cta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cta-grid { grid-template-columns: repeat(4, 1fr); } }

/* ----- CTA marquee (auto-scrolling banner strip) ----- */
.cta-marquee {
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
  padding: 8px 0;
  /* Fade out on edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.cta-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: cta-marquee-scroll 40s linear infinite;
  will-change: transform;
}
.cta-marquee:hover .cta-marquee-track,
.cta-marquee:focus-within .cta-marquee-track {
  animation-play-state: paused;
}
@keyframes cta-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 10px)); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-marquee-track { animation: none; }
}

.cta-banner {
  flex-shrink: 0;
  display: block;
  width: 220px;
  aspect-ratio: 1000 / 391;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-banner:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.cta-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}
@media (max-width: 640px) {
  .cta-banner { width: 180px; }
  .cta-marquee-track { gap: 14px; }
  @keyframes cta-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 7px)); }
  }
}
@media (min-width: 1024px) {
  .cta-banner { width: 260px; }
}

/* ----- CTA manual slider (3 visible, manual navigation) ----- */
.cta-manual {
  position: relative;
  margin-bottom: 48px;
  --per-view: 1;
  --gap: 14px;
}
@media (min-width: 520px) {
  .cta-manual { --per-view: 2; }
}
@media (min-width: 900px) {
  .cta-manual { --per-view: 3; --gap: 20px; }
}
.cta-manual-viewport {
  overflow: hidden;
}
.cta-manual-track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.45s cubic-bezier(.25,.1,.25,1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .cta-manual-track { transition: none; }
}
.cta-manual-item {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  aspect-ratio: 1000 / 391;
  display: block;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-manual-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.cta-manual-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}

.cta-manual-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 5;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.cta-manual-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta-manual-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary-dark);
}
.cta-manual-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.cta-manual-btn:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 2px;
}
.cta-manual-prev { left: 4px; }
.cta-manual-next { right: 4px; }
@media (min-width: 640px) {
  .cta-manual-prev { left: -22px; }
  .cta-manual-next { right: -22px; }
}

/* ----- CTA slider (semi-automatic: manual nav + auto advance) ----- */
.cta-slider {
  position: relative;
  margin-bottom: 48px;
  max-width: 720px;
  margin-inline: auto;
}
.cta-slider-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1000 / 391;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.cta-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(.25,.1,.25,1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .cta-slider-track { transition: none; }
}
.cta-slide {
  flex: 0 0 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.cta-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 5;
}
.cta-slider-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta-slider-btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.cta-slider-btn:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 2px;
}
.cta-slider-prev { left: 8px; }
.cta-slider-next { right: 8px; }
@media (min-width: 640px) {
  .cta-slider-prev { left: -22px; }
  .cta-slider-next { right: -22px; }
}

.cta-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.cta-slider-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(124, 22, 13, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.cta-slider-dot:hover { background: rgba(124, 22, 13, 0.55); }
.cta-slider-dot.is-active {
  background: var(--color-primary);
  transform: scale(1.2);
}
.cta-slider-dot:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 2px;
}
.cta-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.cta-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cta-card .label {
  padding: 14px 20px 0;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.cta-card a { display: block; }
.cta-card a img { width: 100%; }

.eye-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 520px) {
  .eye-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
/* Mobile: shrink only the image (keep label normal-sized) */
@media (max-width: 519px) {
  .eye-card-img {
    max-width: 220px;
    margin-inline: auto;
    width: 100%;
  }
}

.eye-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
}
.eye-card-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 446 / 297;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.eye-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.eye-card:hover .eye-card-img {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.eye-card:hover .eye-card-img img {
  transform: scale(1.04);
}
.eye-card-label {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mincho);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 8px;
  line-height: 1.4;
}
.eye-card-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--color-primary);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.eye-card:hover .eye-card-label { color: var(--color-primary-dark); }
.eye-card:hover .eye-card-label::after { width: 48px; }

/* ----- Lists ----- */
.list-bullet { margin-bottom: 28px; }
.list-bullet li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 10px;
}
.list-bullet li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
}

.list-circle li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 10px;
}
.list-circle li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-primary);
}

.indent { padding-left: 1em; text-indent: -1em; }
.indent-2 { padding-left: 2em; text-indent: -2em; }

/* ----- Utility ----- */
.sm-only { display: inline; }
@media (min-width: 768px) { .sm-only { display: none; } }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* ----- Map ----- */
.map-wrapper {
  position: relative;
  padding-bottom: 56%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}
.map-wrapper iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
/* Smaller map variant (access page) */
.map-wrapper--sm {
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: 0;
  height: 300px;
}
@media (min-width: 768px) {
  .map-wrapper--sm { height: 360px; }
}
.access-info { font-size: 1rem; line-height: 2; }

/* Access page — horizontal photo row above the map */
.access-photos {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}
@media (min-width: 600px) {
  .access-photos { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.access-photo { margin: 0; }
.access-photo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.access-photo:hover img {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.access-photo figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  letter-spacing: 0.04em;
}
@media (min-width: 900px) {
  .access-photo img { height: 220px; }
}

/* ----- Footer ----- */
.site-footer {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 36px 0 28px;
  font-size: 0.9rem;
  margin-top: 60px;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { color: #fff; text-decoration: underline; }
.copyright {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-align: center;
  opacity: 0.85;
}
@media (min-width: 768px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .site-footer address { max-width: 50%; }
  .site-footer .address--right { text-align: right; }
  .copyright { width: 100%; }
}

/* ----- Downloads section ----- */
.download-preview {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.download-preview:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.download-preview img { margin: 0 auto; }

/* Accessibility: focus ring */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 0;
}

/* Visually hidden (for a11y labels) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Prevent body scroll when mobile nav is open */
body.nav-open { overflow: hidden; }
@media (min-width: 1024px) {
  body.nav-open { overflow: visible; }
}

/* ==========================================================
   Featured Specialty Carousel (below hero on home page)
   ========================================================== */
.spec-carousel {
  background: var(--color-surface);
  padding: 56px 0 40px;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.spec-head {
  max-width: var(--container-max);
  margin: 0 auto 28px;
  padding: 0 20px;
}
.spec-eyebrow {
  font-family: "Georgia", serif;
  font-style: italic;
  color: var(--color-primary);
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.spec-eyebrow span {
  font-size: 1.8rem;
  font-style: normal;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-right: 4px;
  vertical-align: -3px;
}
.spec-title {
  font-family: var(--font-mincho);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--color-text);
  letter-spacing: 0.08em;
}

/* Sponsor banners heading — reuses spec-head look inside .page-content */
.spec-head--sponsor {
  max-width: none;
  margin: 0 0 24px;
  padding: 0;
}

.spec-wrapper {
  --spec-left: clamp(40px, 12vw, 220px);
  position: relative;
  overflow: hidden;
  padding: 12px 0 8px;
}
.spec-wrapper::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: var(--spec-left);
  height: 100%;
  background: linear-gradient(90deg, var(--color-surface) 65%, transparent);
  z-index: 5;
  pointer-events: none;
}
.spec-track {
  display: flex;
  gap: 18px;
  will-change: transform;
  transition: none;
  cursor: grab;
  padding: 0 0 8px;
  user-select: none;
  touch-action: pan-y;
}
.spec-track.dragging { cursor: grabbing; }
.spec-track.smooth  { transition: transform 0.55s cubic-bezier(.25,.1,.25,1); }
@media (prefers-reduced-motion: reduce) {
  .spec-track.smooth { transition: none; }
  .spec-card:hover .spec-card-bg { transform: none; }
}

/* 3.5 cards visible on desktop, with generous left margin */
.spec-card {
  flex: 0 0 min(360px, calc((100vw - var(--spec-left) - 54px) / 3.5));
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: var(--color-primary-dark);
  text-decoration: none;
  color: #fff;
  border-radius: 0;
}
/* 2.5 cards visible on tablet */
@media (max-width: 1023px) {
  .spec-wrapper { --spec-left: max(40px, 6vw); }
  .spec-card { flex: 0 0 min(320px, calc((100vw - var(--spec-left) - 36px) / 2.5)); }
}
/* 1.5 cards visible on mobile */
@media (max-width: 640px) {
  .spec-wrapper { --spec-left: 20px; }
  .spec-card { flex: 0 0 calc((100vw - var(--spec-left) - 27px) / 1.5); }
}
.spec-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.7s ease;
}
.spec-card:hover .spec-card-bg { transform: scale(1.06); }
.spec-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(58, 8, 4, 0.45) 0%,
    rgba(58, 8, 4, 0.55) 50%,
    rgba(24, 4, 2, 0.85) 100%
  );
}
.spec-card-content {
  position: absolute;
  inset: 0;
  padding: 28px 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.spec-card-content h3 {
  font-family: var(--font-mincho);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.spec-divider {
  width: 36px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  margin: 14px 0 10px;
}
.spec-en {
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.85);
}
.spec-card-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.spec-card-arrow svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255,255,255,0.8);
  stroke-width: 2;
  fill: none;
  transition: stroke 0.3s, transform 0.3s;
}
.spec-card:hover .spec-card-arrow svg {
  stroke: #fff;
  transform: translateX(4px);
}

.spec-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  max-width: var(--container-max);
  margin: 16px auto 0;
  padding: 0 20px;
}
.spec-nav button {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--color-primary);
  background: var(--color-surface);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
}
.spec-nav button:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 2px;
}
.spec-nav button svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
  transition: stroke 0.3s;
}
.spec-nav button:hover {
  background: var(--color-primary);
}
.spec-nav button:hover svg { stroke: #fff; }

/* ==========================================================
   Chairman Greeting Section (akala-clinic style layout)
   ========================================================== */
.chairman-section {
  position: relative;
  padding: 56px 28px 64px;
  margin: 32px 0 48px;
  background: #fdf6f3;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 900px) {
  .chairman-section { padding: 72px 48px 80px; }
}

/* Decorative squares in the corners */
.chairman-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.chairman-shapes span {
  position: absolute;
  display: block;
  background: rgba(124, 22, 13, 0.09);
}
.chairman-shapes .s1 { top: 22px; left: 14px; width: 56px; height: 56px; }
.chairman-shapes .s2 { top: 58px; left: 54px; width: 34px; height: 34px; background: rgba(124, 22, 13, 0.14); }
.chairman-shapes .s3 { top: 18px; right: 36px; width: 72px; height: 72px; }
.chairman-shapes .s4 { top: 72px; right: 16px; width: 28px; height: 28px; background: rgba(124, 22, 13, 0.14); }

.chairman-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  /* Switch to block layout so text can wrap around the floated photo */
  .chairman-inner { display: block; }
  .chairman-inner::after {
    content: "";
    display: block;
    clear: both;
  }
}

/* Photo + overlapping namecard */
.chairman-photo {
  position: relative;
  padding-bottom: 24px;
  max-width: 220px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .chairman-photo { max-width: 260px; }
}
@media (min-width: 900px) {
  .chairman-photo {
    float: left;
    width: 280px;
    max-width: 280px;
    margin: 6px 40px 12px 0;
  }
}

/* Reverse variant — photo on the right */
@media (min-width: 900px) {
  .chairman-section--reverse .chairman-photo {
    float: right;
    margin: 6px 0 12px 40px;
  }
  .chairman-section--reverse .chairman-namecard {
    left: auto;
    right: -24px;
  }
}
/* Subtle offset for the decorative shapes on the reverse variant */
.chairman-section--reverse .chairman-shapes .s1 { left: auto; right: 14px; }
.chairman-section--reverse .chairman-shapes .s2 { left: auto; right: 54px; }
.chairman-section--reverse .chairman-shapes .s3 { right: auto; left: 36px; }
.chairman-section--reverse .chairman-shapes .s4 { right: auto; left: 16px; }
.chairman-photo-img {
  width: 100%;
  display: block;
  box-shadow: 0 8px 32px rgba(58, 10, 6, 0.10);
}
.chairman-namecard {
  position: absolute;
  left: -8px;
  bottom: 0;
  background: #fff;
  padding: 10px 14px 10px 12px;
  min-width: 78%;
  box-shadow: 0 6px 24px rgba(58, 10, 6, 0.10);
  z-index: 2;
}
@media (min-width: 900px) {
  .chairman-namecard { left: -24px; padding: 14px 24px 14px 20px; }
}
.namecard-org {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  line-height: 1.4;
}
@media (min-width: 900px) {
  .namecard-org { font-size: 0.78rem; letter-spacing: 0.08em; }
}
.namecard-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: nowrap;
}
.namecard-title {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
@media (min-width: 900px) {
  .namecard-title { font-size: 0.8rem; letter-spacing: 0.08em; }
}
.namecard-name {
  font-family: var(--font-mincho);
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  color: var(--color-primary-dark);
  letter-spacing: 0.1em;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .namecard-name { letter-spacing: 0.14em; }
}
.namecard-meta {
  font-size: 0.66rem;
  color: var(--color-text-muted);
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid var(--color-border);
  letter-spacing: 0.03em;
  line-height: 1.4;
}
@media (min-width: 900px) {
  .namecard-meta { font-size: 0.72rem; margin-top: 6px; padding-top: 6px; }
}

/* Body */
.chairman-body { padding-top: 6px; }
.chairman-eyebrow {
  color: var(--color-primary);
  letter-spacing: 0.14em;
  font-size: 0.88rem;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.chairman-eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-primary);
  flex-shrink: 0;
}
.chairman-catch {
  font-family: var(--font-mincho);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.7;
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}
.chairman-catch span { display: block; }

.chairman-text {
  font-size: 0.95rem;
  line-height: 2.05;
  color: var(--color-text);
}
.chairman-text p { margin-bottom: 20px; }
.chairman-text p:last-child { margin-bottom: 0; }

/* Highlighted phrases — soft background band behind text */
.chairman-text mark,
.chairman-text .hl {
  background: linear-gradient(transparent 55%, rgba(124, 22, 13, 0.18) 55%);
  color: inherit;
  padding: 0 2px;
}

/* CTA button inside chairman section */
.chairman-cta {
  margin-top: 32px;
  display: flex;
  justify-content: flex-start;
}
.chairman-cta .btn {
  padding: 14px 32px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border: 0;
  position: relative;
  overflow: hidden;
}
.chairman-cta .btn::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: rgba(255, 255, 255, 0.2);
}
.chairman-cta .btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) {
  .chairman-cta .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
  }
}

/* Section wrapper for program items */
.program-item {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}
.program-item:last-child { border-bottom: 0; }

/* ----- Teaser site notice ----- */
.teaser-notice {
  font-family: var(--font-mincho);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--color-heading);
  letter-spacing: 0.06em;
  line-height: 2;
  text-align: center;
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  padding: 22px 16px;
  margin-bottom: 44px;
}

/* ----- Teaser entry modal ----- */
.teaser-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(45, 20, 17, 0.62);
}
.teaser-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  padding: 28px 22px 24px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--color-primary);
  text-align: center;
}
.teaser-modal-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.teaser-modal-close:hover { color: var(--color-primary); }
.teaser-modal-title {
  font-family: var(--font-mincho);
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  color: var(--color-heading);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.teaser-modal-lead {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.teaser-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.teaser-modal-actions .btn { display: block; }
.teaser-modal-actions--page {
  max-width: 560px;
  margin: 0 auto 44px;
}
.teaser-modal-banner {
  display: block;
  margin-top: 14px;
}
.teaser-modal-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.teaser-modal-banner:hover { opacity: 0.9; }

/* ポップアップ内のみ縮小（参加登録ページの共有スタイルには影響させない） */
.teaser-modal .teaser-modal-actions { gap: 10px; }
.teaser-modal .teaser-modal-actions .btn {
  font-size: clamp(0.92rem, 2vw, 1rem);
  padding: 14px 46px 14px 22px;
}
.teaser-modal .teaser-modal-actions .btn::after { right: 18px; }
.teaser-modal .teaser-modal-banner { margin-top: 10px; }

/* ----- Teaser form buttons (refined) ----- */
.teaser-modal-actions .btn {
  position: relative;
  font-family: var(--font-mincho);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.7;
  padding: 20px 56px 20px 28px;
  background: linear-gradient(135deg, #8d2117 0%, var(--color-primary) 45%, var(--color-primary-dark) 100%);
  box-shadow: 0 4px 14px rgba(90, 15, 8, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
/* Inner keyline frame */
.teaser-modal-actions .btn::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 248, 241, 0.45);
  pointer-events: none;
  transition: inset 0.25s ease, border-color 0.25s ease;
}
/* Arrow circle on the right */
.teaser-modal-actions .btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 9px;
  height: 9px;
  border-top: 2px solid #f4e3d5;
  border-right: 2px solid #f4e3d5;
  transform: translateY(-50%) rotate(45deg);
  transition: right 0.25s ease, border-color 0.25s ease;
}
.teaser-modal-actions .btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(90, 15, 8, 0.38);
}
.teaser-modal-actions .btn:hover::before {
  inset: 8px;
  border-color: rgba(255, 248, 241, 0.7);
}
.teaser-modal-actions .btn:hover::after {
  right: 17px;
  border-color: #fff;
}

/* Nursery eyecatch — slightly narrower on desktop */
.nursery-eyecatch {
  max-width: 720px;
  margin-inline: auto;
}

/* TOP nursery banner — standalone, above sponsors */
.top-nursery-banner {
  max-width: 480px;
  width: 88%;
  margin: 0 auto 40px;
}
.top-nursery-banner a {
  display: block;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.top-nursery-banner a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.top-nursery-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----- Flipbook embed (program booklet) ----- */
.flipbook-embed {
  width: 100%;
  aspect-ratio: 3 / 4; /* SP: viewer switches to single-page mode */
  max-height: 82vh;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  background: #1d1b19; /* matches the viewer's own background */
}
.flipbook-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (min-width: 768px) {
  .flipbook-embed { aspect-ratio: 10 / 7; } /* PC: A4見開き(約1.41)がほぼ収まる比率 */
}
.flipbook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.flipbook-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}
