/* Minimal, modern, accessible conference site styles (no build step). */

:root{
  /* 半導体学会風：回路基板・シリコンをイメージした技術的パレット */
  --bg: #f0f4f8;
  --surface: #ffffff;
  --surface-2: #e8eef4;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(30, 64, 175, .12);
  --accent: #1d4ed8;
  --accent-2: #0369a1;
  --link: #1d4ed8;
  --trace: #1e40af;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08);
  --radius: 4px;
  --radius-sm: 2px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ color-scheme: light; scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height: 1.6;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(30, 64, 175, .03) 0%, transparent 50%, rgba(30, 64, 175, .03) 100%),
    linear-gradient(0deg, rgba(30, 64, 175, .02) 0%, transparent 2px, transparent 28px),
    linear-gradient(90deg, rgba(30, 64, 175, .02) 0%, transparent 2px, transparent 28px),
    var(--bg);
  background-size: 100% 100%, 30px 30px, 30px 30px;
}

img{ max-width: 100%; height: auto; }
a{ color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover{ color: #3b82f6; }

/* 固定背景：スクロールしても残り、その上にコンテンツが重なる（ヘッダー下に配置して重ならないように） */
.hero-backdrop{
  position: fixed;
  top: var(--header-height, 56px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  --hero-expand-progress: 0;
  --hero-current-media-height: calc(
    var(--hero-media-height, 62vh) + (100vh - var(--hero-media-height, 62vh)) * var(--hero-expand-progress)
  );
}
.hero-backdrop-media{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hero-current-media-height);
  overflow: hidden;
  background: #fff;
  clip-path: inset(0 100% 0 0);
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-backdrop-media.is-animate{
  animation: hero-bg-wipe 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes hero-bg-wipe{
  0%{
    clip-path: inset(0 100% 0 0);
  }
  100%{
    clip-path: inset(0 0 0 0);
  }
}
.hero-backdrop-media picture{
  display: block;
  width: 100%;
  height: 100%;
}
.hero-backdrop-media img{
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
}
@media (prefers-reduced-motion: reduce){
  .hero-backdrop-media{
    clip-path: none;
    transition: none;
  }
  .hero-backdrop-media.is-animate{
    animation: none;
  }
}
/* 画像はそのまま表示。オーバーレイなし */

/* タイトルブロック：About直上に配置（ドキュメントフロー、フル幅） */
.hero-title-block{
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-bottom: 32px;
  box-sizing: border-box;
}
/* 文字下のみ白座布団：全画面幅、左→右にワイプで表示 */
.hero-backdrop-zabuton{
  display: block;
  width: 100%;
  padding: 20px min(10%, 48px) 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  clip-path: inset(0 100% 0 0);
}
.hero-backdrop-zabuton.is-animate{
  animation: hero-zabuton-wipe 0.5s var(--hero-zabuton-delay, 0.45s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes hero-zabuton-wipe{
  0%{
    clip-path: inset(0 100% 0 0);
  }
  100%{
    clip-path: inset(0 0 0 0);
  }
}
@media (prefers-reduced-motion: reduce){
  .hero-backdrop-zabuton{
    clip-path: none;
  }
  .hero-backdrop-zabuton.is-animate{
    animation: none;
  }
}
.hero-backdrop-title{
  font-family: "Bebas Neue", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(32px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0;
  margin-left: calc(min(10%, 48px) * -1);
  margin-right: calc(min(10%, 48px) * -1);
  width: calc(100% + 2 * min(10%, 48px));
  padding-left: min(10%, 48px);
  padding-right: min(10%, 48px);
  box-sizing: border-box;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
}
/* タイプライター＋少し上にポップ */
.hero-backdrop-title .hero-word,
.hero-backdrop-meta .hero-word,
.hero-backdrop-tagline .hero-word,
.hero-card .hero-title .hero-word{
  display: inline-block;
  white-space: nowrap;
}
.hero-backdrop-title .hero-char,
.hero-backdrop-meta .hero-char,
.hero-backdrop-tagline .hero-char,
.hero-card .hero-title .hero-char{
  display: inline-block;
  opacity: 0;
}
.hero-backdrop-title .hero-char-space,
.hero-backdrop-meta .hero-char-space,
.hero-backdrop-tagline .hero-char-space,
.hero-card .hero-title .hero-char-space{
  min-width: 0.25em;
}
.hero-backdrop-title.is-animate .hero-char,
.hero-backdrop-meta.is-animate .hero-char,
.hero-backdrop-tagline.is-animate .hero-char,
.hero-card .hero-title.is-animate .hero-char{
  animation: hero-char-pop 0.18s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-backdrop-title:not(.is-animate) .hero-char,
.hero-backdrop-meta:not(.is-animate) .hero-char,
.hero-backdrop-tagline:not(.is-animate) .hero-char,
.hero-card .hero-title:not(.is-animate) .hero-char{
  opacity: 1;
  animation: none;
}
@media (prefers-reduced-motion: reduce){
  .hero-backdrop-title .hero-char,
  .hero-backdrop-meta .hero-char,
  .hero-backdrop-tagline .hero-char,
  .hero-card .hero-title .hero-char{
    opacity: 1;
    animation: none;
  }
}
@keyframes hero-char-pop{
  0%{
    opacity: 0;
    transform: translateY(8px);
  }
  100%{
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-backdrop-underline{
  height: 2px;
  margin: 10px 0 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #60a5fa 100%);
  box-shadow: 0 0 10px rgba(29, 78, 216, 0.22);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero-backdrop-underline.is-animate{
  animation: hero-underline-wipe 0.8s var(--hero-underline-delay, 0ms) cubic-bezier(0.22, 0, 0.36, 1) forwards;
}
@keyframes hero-underline-wipe{
  0%{ transform: scaleX(0); }
  100%{ transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce){
  .hero-backdrop-underline{
    transform: scaleX(1);
  }
  .hero-backdrop-underline.is-animate{
    animation: none;
  }
}
.hero-backdrop-meta{
  font-family: "Bebas Neue", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 400;
  margin: 8px 0 2px;
  color: var(--text);
  overflow-wrap: break-word;
  white-space: pre-wrap;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.hero-backdrop-venue{
  font-size: 0.9em;
}
.hero-backdrop-tagline{
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 500;
  margin: 0;
  color: var(--muted);
  overflow-wrap: break-word;
  white-space: pre-wrap;
  line-height: 1.3;
}
.hero-spacer{
  height: var(--hero-spacer-height, 100vh);
  min-height: 0;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,.9);
  color: #fff;
  border: 1px solid var(--border);
  z-index: 9999;
}
.skip-link:focus{ left: 12px; top: 12px; }

.container{
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* Header / Nav */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(255,255,255,.96), rgba(255,255,255,.90));
  border-bottom: 1px solid var(--border);
}
.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.brand{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand a{
  color: var(--text);
  text-decoration: none;
}
.brand-title{
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.2;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-subtitle{
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(30, 64, 175, .06);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.nav-toggle:hover{
  background: rgba(30, 64, 175, .12);
}
.nav-toggle:active{ transform: scale(.96); }
.nav-toggle:focus{ outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle .bars{
  width: 20px;
  height: 14px;
  position: relative;
}
.nav-toggle .bars span{
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}
.nav-toggle .bars span:nth-child(1){ top: 0; }
.nav-toggle .bars span:nth-child(2){ top: 6px; }
.nav-toggle .bars span:nth-child(3){ top: 12px; }
.nav-toggle.is-active .bars span:nth-child(1){
  top: 6px;
  transform: rotate(45deg);
}
.nav-toggle.is-active .bars span:nth-child(2){
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-active .bars span:nth-child(3){
  top: 6px;
  transform: rotate(-45deg);
}

.site-nav{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a{
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.site-nav a:hover{
  color: var(--text);
  background: var(--surface-2);
}
.site-nav a[aria-current="page"]{
  color: var(--accent);
  font-weight: 600;
  background: rgba(30, 64, 175, .08);
  border-color: rgba(30, 64, 175, .2);
}

/* モバイルメニュー：バックドロップ */
.nav-backdrop{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(15, 23, 42, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-backdrop.is-visible{
  display: block;
  opacity: 1;
}

@media (max-width: 900px){
  .nav-toggle{ display: inline-flex; z-index: 52; position: relative; }
  .site-nav{
    position: fixed;
    top: 0;
    right: 0;
    z-index: 51;
    width: min(85vw, 320px);
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 72px 20px 32px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    background: linear-gradient(to bottom, rgba(255,255,255,.98), rgba(248,250,252,.98));
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(15, 23, 42, .12);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
  }
  .site-nav.is-open{
    transform: translateX(0);
  }
  .site-nav a{
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    opacity: 0;
    transform: translateX(16px);
    transition: color .2s, background .2s, opacity .25s ease, transform .25s ease;
  }
  .site-nav.is-open a{
    opacity: 1;
    transform: translateX(0);
  }
  .site-nav.is-open a:nth-child(1){ transition-delay: .08s; }
  .site-nav.is-open a:nth-child(2){ transition-delay: .12s; }
  .site-nav.is-open a:nth-child(3){ transition-delay: .16s; }
  .site-nav.is-open a:nth-child(4){ transition-delay: .20s; }
  .site-nav.is-open a:nth-child(5){ transition-delay: .24s; }
  .site-nav.is-open a:nth-child(6){ transition-delay: .28s; }
  .site-nav.is-open a:nth-child(7){ transition-delay: .32s; }
  .site-nav.is-open a:nth-child(8){ transition-delay: .36s; }
  .site-nav a[aria-current="page"]{
    background: rgba(30, 64, 175, .1);
    border-color: rgba(30, 64, 175, .2);
  }
}

/* Hero */
.hero{
  position: relative;
}
.hero-immersive{
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 80px 0 140px;
  overflow: hidden;
}
.hero-media{
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
/* ヒーロー画像がある場合のみオーバーレイを表示（サブページの hero-card のみの場合は非表示） */
.hero:has(.hero-media)::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(15,23,42,.80), rgba(15,23,42,.30) 45%, rgba(15,23,42,0));
  z-index:-1;
}
.hero-overlay-card{
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 26px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(30, 64, 175, .4);
  border-left: 4px solid rgba(59, 130, 246, .9);
  background:
    linear-gradient(135deg, rgba(30, 64, 175, .15) 0%, rgba(15, 23, 42, .88) 100%);
  color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .4);
}
.hero-kicker{
  color: rgba(226,232,240,.85);
  font-size: 13px;
  letter-spacing: .2px;
  margin: 0 0 8px;
}
.hero-title{
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: .2px;
  margin: 0 0 10px;
}
.hero-subtitle{
  margin: 0;
  font-size: 14px;
  color: rgba(209,213,219,.92);
}
.hero-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 16px 0 0;
  color: rgba(226,232,240,.92);
}
.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 7px 12px;
  border-radius: var(--radius);
  font-size: 13px;
}
.pill strong{ color: var(--text); font-weight: 650; }

/* Main content：固定背景の上をスクロールして重なる */
main#main-content{
  position: relative;
  z-index: 1;
}
/* サブページ（TOP以外）は main 全体を白背景にする */
main#main-content:not(:has(.hero-spacer)){
  background: var(--surface);
}
/* TOPページ：main下端を白で延長し、フッターとの隙間（旧margin-top分）を白で埋める */
main#main-content:has(.site-main-wrap)::after{
  content: "";
  display: block;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  height: 26px;
  background: var(--surface);
}
/* スクロールコンテンツ領域（ワイプ後タイプライター） */
.site-main-wrap{
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 0 18px 0;
  background: transparent;
  width: 100%;
}
.site-main-wrap::after{
  content: "";
  display: block;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  height: 48px;
  background: var(--surface);
}
/* 初期状態：ヒーロータイプライター完了まで非表示 */
.site-main-wrap{
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}
.site-main-wrap.is-visible{
  opacity: 1;
  visibility: visible;
}
@media (prefers-reduced-motion: reduce){
  .site-main-wrap{
    transition: none;
  }
}

/* スクロールトリガー時のタイプライター（ワイプ完了後に表示） */
.main-typewriter .main-word{
  display: inline-block;
  white-space: nowrap;
}
.main-typewriter .main-char{
  display: inline-block;
  opacity: 0;
}
.main-typewriter .main-char-space{
  min-width: 0.25em;
}
.main-typewriter.is-animate .main-char{
  animation: main-char-pop 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes main-char-pop{
  0%{
    opacity: 0;
    transform: translateY(4px);
  }
  100%{
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce){
  .main-typewriter .main-char{
    opacity: 1;
    animation: none;
  }
  .section-chapter .chapter-title::after{
    transform: scaleX(1);
  }
  .section-chapter .chapter-title.is-animate::after{
    animation: none;
  }
}

/* 章本文：タイプライター後にディゾルブ表示（About, News, Deadlines等） */
.section-chapter .chapter-body.main-body-dissolve{
  opacity: 0;
}
.section-chapter .chapter-body.main-body-dissolve.is-visible{
  animation: main-body-dissolve 0.8s ease-out forwards;
}
@keyframes main-body-dissolve{
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce){
  .section-chapter .chapter-body.main-body-dissolve{
    opacity: 1;
  }
  .section-chapter .chapter-body.main-body-dissolve.is-visible{
    animation: none;
  }
}

@media (max-width: 720px){
  .hero-immersive{
    min-height: 70vh;
    padding: 72px 0 120px;
  }
  .hero-overlay-card{
    padding: 20px 18px 22px;
    border-radius: 18px;
  }
  .site-main-wrap{
    margin-top: 0;
    padding: 0 14px 0;
  }
  .site-main-wrap::after{
    height: 36px;
  }
}

/* Sections */
.grid{
  display: grid;
  gap: 32px;
}
@media (min-width: 900px){
  .grid.cols-2{ grid-template-columns: 1.2fr .8fr; }
  .grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
}
.section{
  padding: 32px 0;
}
.section:first-child{ padding-top: 0; }

/* Excursion: Sights around ACROS - horizontal scroll cards */
.sights-scroll-wrap{
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding-left: 24px;
  padding-right: 24px;
  overflow: hidden;
  box-sizing: border-box;
}
.sights-scroll{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  padding-right: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.sights-scroll::-webkit-scrollbar{
  height: 6px;
}
.sights-scroll::-webkit-scrollbar-track{
  background: var(--surface-2);
  border-radius: 3px;
}
.sights-scroll::-webkit-scrollbar-thumb{
  background: var(--muted);
  border-radius: 3px;
}
.sight-card-item{
  flex: 0 0 min(340px, 85vw);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.sight-card-link{
  display: block;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.sight-card-link:hover{
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  border-color: rgba(30, 64, 175, .25);
}
.sight-card-img{
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.sight-card-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sight-card-body{
  padding: 16px;
}
.sight-card-body h3{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
  line-height: 1.3;
}
.sight-card-body p{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.sight-card-body p:last-child{
  margin-bottom: 0;
}
.sight-card-body .small{
  font-size: 12px;
}

/* Legacy: Excursion sight-card (if used elsewhere) */
.sight-card-inner{
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1.2fr;
}
@media (max-width: 720px){
  .sight-card-inner{
    grid-template-columns: 1fr;
  }
}

/* 章スタイル：各章が白背景のブロック（横は全画面）、間はヒーロー背景が見える */
.section-chapter{
  position: relative;
  padding: 40px 0;
  border: none;
}
.section-chapter::before{
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  z-index: -1;
}
.section-chapter:first-child{ padding-top: 40px; }
.section-chapter + .section-chapter{ margin-top: 32px; }
.chapter-title{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5em;
  margin: 0 0 24px;
  padding-bottom: 0.06em;
  position: relative;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
  line-height: 1.2;
}
.section-chapter .chapter-title::after{
  content: "";
  position: absolute;
  left: -0.12em;
  right: -0.12em;
  bottom: -0.02em;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #60a5fa 100%);
  box-shadow: 0 0 10px rgba(29, 78, 216, 0.22);
  transform: scaleX(0);
  transform-origin: left center;
}
.section-chapter .chapter-title.is-animate::after{
  animation: chapter-title-underline-wipe 0.78s var(--chapter-underline-delay, 0ms) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes chapter-title-underline-wipe{
  0%{
    transform: scaleX(0);
  }
  100%{
    transform: scaleX(1);
  }
}
.chapter-subtitle{
  font-size: 0.45em;
  font-weight: 400;
  color: var(--text);
}

/* About：ヒーロータイトルと同じフォントで大きく、左寄せ */
.chapter-title--hero{
  font-family: "Bebas Neue", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-left: calc(min(10%, 48px) * -1);
  padding-left: min(10%, 48px);
}
.chapter-body{
  line-height: 1.55;
}
.chapter-body p{
  margin: 0 0 14px;
}
.chapter-body p:last-child{
  margin-bottom: 0;
}
.chapter-body h3{
  margin: 24px 0 10px;
  font-size: 16px;
  font-weight: 650;
}
.chapter-body h3:first-child{
  margin-top: 0;
}

/* レガシー互換：card は chapter 風（サブページの2章目以降は小さめ） */
.card{
  border: none;
  background: none;
  padding: 0;
  box-shadow: none;
  line-height: 1.55;
}
.card h2{
  font-family: "Bebas Neue", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 24px;
  color: var(--text);
  line-height: 1.2;
}
.card h3{
  margin: 24px 0 10px;
  font-size: 16px;
  font-weight: 650;
}

/* サブページ用ヒーロー：TOPの章タイトルと同じフォント・大きさ（Bebas Neue） */
.hero-card{
  padding: 32px 0 40px;
  border: none;
  background: none;
  max-width: 100%;
}
.hero-inner{
  display: block;
  font-family: "Bebas Neue", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.hero-card .hero-title{
  display: inline-block;
  font-size: 1em;
  font-weight: 400;
  margin: 0;
  letter-spacing: .02em;
  color: var(--text);
  position: relative;
  padding-bottom: 0.06em;
}
.hero-card .hero-title::after{
  content: "";
  position: absolute;
  left: -0.12em;
  right: -0.12em;
  bottom: -0.02em;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #60a5fa 100%);
  box-shadow: 0 0 10px rgba(29, 78, 216, 0.22);
}
.hero-card .hero-kicker{
  display: inline;
  font-size: 0.45em;
  font-weight: 400;
  color: var(--text);
  margin-left: 0.35em;
}
.hero-card .hero-kicker::before{
  content: " ";
}
.muted{ color: var(--muted); }
.small{ font-size: 13px; }

.list{
  padding-left: 18px;
  margin: 10px 0 0;
}
.list li{ margin: 6px 0; }

.news-item{
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.news-item:first-child{ border-top: 0; padding-top: 0; }
.news-item a{ font-weight: 650; }

.btn-row{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.btn:hover{ background: var(--surface-2); }
.btn.primary{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover{ background: var(--accent-2); }

/* Tables - 回路基板風の整理された区切り線 */
.table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap table{
  min-width: 640px;
}
table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td{
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th{
  background: var(--surface-2);
  color: var(--text);
  font-weight: 650;
  border-bottom: 2px solid var(--trace);
}
tr:last-child td{ border-bottom: 0; }
@media (max-width: 720px){
  .table-wrap table{
    font-size: 13px;
  }
  .table-wrap th,
  .table-wrap td{
    padding: 10px 12px;
  }
}

/* Footer */
.site-footer{
  position: relative;
  z-index: 1;
  padding: 26px 0 40px;
  border-top: 2px solid var(--trace);
  margin-top: 0;
  background: var(--surface);
}
.footer-row{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.footer-links a{ color: var(--muted); text-decoration: none; }
.footer-links a:hover{ color: var(--text); }

.page-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}
.page-top.is-visible{ display: inline-flex; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

