@charset "UTF-8";
/* =========================================================
   生命・環境科学研究室（田中ゼミ） サイト共通スタイル
   - 色：ロゴの緑と、DNAシーケンサーの波形の4色（A・C・G・T）
   - 書体：Noto Sans JP（見出し・本文）／JetBrains Mono（塩基配列のみ）
   ========================================================= */

:root {
  --ink: #17241c;          /* 文字（G：黒） */
  --ink-soft: #2c3b32;
  --muted: #56665c;
  --paper: #f6f8f4;        /* ページの地 */
  --surface: #ffffff;
  --line: #dce3dc;
  --leaf: #006800;         /* ロゴの緑 */
  --leaf-deep: #004d00;
  --leaf-tint: #e7f1e5;

  /* 塩基の4色（班の色としても使う） */
  --base-a: #2e9e44;       /* A：Agri-genomics */
  --base-c: #2f6fdb;       /* C：Eco-genomics */
  --base-g: #17241c;       /* G：Shin-genomics */
  --base-t: #d6392f;       /* T：Medical-genomics */

  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;          /* 本文 */
  --font-heading: var(--font);   /* 見出し（本文と同じ Noto Sans JP。変える場合はここだけ書き換える） */
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1120px;
  --header-h: 84px;
  --moss: #627d4d;         /* 従来のヘッダーの緑 */
  --moss-deep: #1f3b08;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt" 0;
}

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

a { color: var(--leaf); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--leaf-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--base-c); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 700; font-family: var(--font-heading); }
.qa summary, .voice__item .voice__letter, .faculty__name { font-family: var(--font-heading); }
p { margin: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 10px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.prose { max-width: 40em; }
.prose p + p { margin-top: 1.1em; }

/* ---------------------------------------------------------
   ヘッダー
   --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(to bottom, var(--moss) 0%, var(--moss-deep) 100%);   /* 従来サイトと同じ緑のグラデーション */
  box-shadow: 0 2px 10px rgba(16, 32, 6, 0.25);
}
.site-header__inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.site-logo { flex: 0 0 auto; display: block; line-height: 0; }
.site-logo img { height: 64px; width: auto; }   /* ロゴと研究室名（余白を除いた画像） */

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav a {
  display: block; padding: 8px 11px; border-radius: 6px;
  color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 #c9e6b8; border-radius: 6px 6px 0 0; }
.site-nav .nav-lang a {
  margin-left: 10px; padding: 5px 14px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 999px; font-size: 14px;
}
.site-nav .nav-lang a:hover { background: rgba(255, 255, 255, 0.18); }
.site-header :focus-visible { outline-color: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 8px; background: transparent;
  cursor: pointer; padding: 0; color: #fff;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--moss-deep); box-shadow: 0 16px 30px rgba(16, 32, 6, 0.3);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; }
  .site-nav a { padding: 13px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); border-radius: 0; font-size: 16px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 #c9e6b8; padding-left: 16px; border-radius: 0; }
  .site-nav .nav-lang a { margin: 12px 0 0; display: inline-block; border-bottom: 1px solid rgba(255, 255, 255, 0.7); }
}
@media (max-width: 1319px) {
  .site-logo img { height: 54px; }
}
@media (max-width: 1200px) {
  .site-logo img { height: 58px; }   /* メニューが折りたたまれる幅では、再び大きく表示 */
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .site-header__inner { padding: 0 14px; gap: 12px; }
  .site-logo { flex: 0 1 auto; min-width: 0; }
  .site-logo img { height: auto; max-height: 44px; max-width: 100%; }
}

/* ---------------------------------------------------------
   塩基配列（サイト共通のモチーフ）
   --------------------------------------------------------- */
.seq { font-family: var(--mono); font-weight: 500; letter-spacing: 0.14em; white-space: nowrap; }
.seq .A { color: var(--base-a); }
.seq .C { color: var(--base-c); }
.seq .G { color: var(--base-g); }
.seq .T { color: var(--base-t); }

/* ---------------------------------------------------------
   トップ：ヒーロー
   --------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  height: calc(100vh - var(--header-h) - 44px);
  height: calc(100svh - var(--header-h) - 44px);
  min-height: 420px;
  background: var(--moss-deep) url(../images/web/slide1.jpg) center / cover no-repeat;   /* スライドショー開始前の表示 */
}
/* スライドショーは従来と同じ Vegas（js/vegas.min.js）で動かす */
.hero .vegas-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-color: rgba(0, 0, 0, 0.3);   /* 従来と同じ黒の半透明 */
}
.hero__body, .hero .vegas-wrapper {
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero__body { position: absolute; inset: 0; padding: 0 24px; }
.hero .vegas-wrapper .hero__body { position: absolute; }

/* 見出し：従来と同じ書体・縁取り、読み込み後に8秒かけて表示 */
.hero__title {
  font-family: "UD デジタル 教科書体 N-R", "UD Digi Kyokasho N-R", "BIZ UDゴシック Regular", "BIZ UDGothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 38.4px; font-weight: normal; line-height: 1.6; color: #fff;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}
.hero__title span { display: inline-block; }
.top_section { opacity: 0; transition: opacity 8s ease-in-out; }
.top_section.fade-in { opacity: 1; }
@media (max-width: 900px) { .hero__title { font-size: 28.8px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 8px;
  font-size: 15px; font-weight: 700; text-decoration: none; line-height: 1.4;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--leaf); color: #fff; }
.btn--primary:hover { background: var(--leaf-deep); color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn--line { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn--line:hover { border-color: var(--leaf); color: var(--leaf-deep); }

/* ヒーロー下の配列帯 */
.read-band {
  background: var(--moss-deep); overflow: hidden; height: 44px; padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.read-band .seq { display: block; font-size: 14px; letter-spacing: 0.22em; padding-left: 24px; }
.read-band .seq .A { color: #63cf76; }
.read-band .seq .C { color: #79a8ff; }
.read-band .seq .G { color: #e6ede7; }
.read-band .seq .T { color: #ff7a6e; }


/* ---------------------------------------------------------
   下層ページの見出し
   --------------------------------------------------------- */
.page-head { padding: 56px 0 36px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 900; letter-spacing: 0.02em; }
.page-head__en { display: inline-block; margin-left: 14px; font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.page-head .seq { display: block; margin-top: 14px; font-size: 13px; overflow: hidden; text-overflow: clip; }
.page-head__lead { margin-top: 18px; color: var(--ink-soft); }

/* ---------------------------------------------------------
   セクション
   --------------------------------------------------------- */
.block { padding: 64px 0; }
.block + .block { border-top: 1px solid var(--line); }
.block--white { background: var(--surface); }
.block--head { padding-bottom: 0; }
.block--head + .topic { border-top: 0; padding-top: 24px; }
.block__title { font-size: 26px; font-weight: 900; margin-bottom: 24px; letter-spacing: 0.02em; }
.block__title small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 12px; letter-spacing: 0.04em; }
.block__more { margin-top: 28px; }

.intro-lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.intro-lead p { font-size: 18px; line-height: 2; }
.intro-lead figure { margin: 0; }
.intro-lead img { border-radius: 10px; }
@media (max-width: 900px) { .intro-lead { grid-template-columns: 1fr; gap: 28px; } }   /* 901px以上で写真を右に配置 */

/* ---------------------------------------------------------
   AMES（4グループ構成）の図
   --------------------------------------------------------- */
.ames-figure { margin: 0; max-width: 960px; }
.ames-figure a { display: block; line-height: 0; }
.ames-figure img { width: 100%; border-radius: 10px; box-shadow: 0 6px 24px rgba(23, 36, 28, 0.12); }
.ames-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------
   ニュース
   --------------------------------------------------------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li {
  display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 4px 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.news-list time { font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.03em; padding-top: 1px; }
.news-list p { line-height: 1.85; }
.news-new {
  display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px;
  background: var(--base-t); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.7; vertical-align: 2px;
}
@media (max-width: 560px) { .news-list li { grid-template-columns: 1fr; gap: 2px; } }

/* 配属検討者への案内 */
.invite {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  background: var(--leaf-tint); border-radius: 14px; padding: 32px 36px;
}
.invite h2 { font-size: 22px; font-weight: 900; }
.invite p { margin-top: 6px; color: var(--ink-soft); }
@media (max-width: 680px) { .invite { grid-template-columns: 1fr; padding: 26px 22px; } }

/* ---------------------------------------------------------
   当ゼミについて
   --------------------------------------------------------- */
.figure-center { margin: 32px 0 0; max-width: 520px; }
.figure-center img { border-radius: 10px; }

.voice { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.voice__list { margin: 0; padding: 0; list-style: none; }
.voice__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.voice__item:last-child { border-bottom: 1px solid var(--line); }
.voice__item .voice__letter { grid-row: span 2; font-size: 52px; font-weight: 900; line-height: 1; color: var(--leaf); }
.voice__item h3 { font-size: 18px; }
.voice__item h3 span { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.voice__item p { font-size: 15px; line-height: 1.85; color: var(--ink-soft); }
.voice__item p strong { display: block; color: var(--ink); margin-bottom: 4px; }
.voice__figure { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 860px) {
  .voice { grid-template-columns: 1fr; gap: 24px; }
  .voice__figure { position: static; max-width: 300px; order: -1; }
}

.note-box { border-left: 4px solid var(--leaf); background: var(--surface); padding: 16px 20px; border-radius: 0 10px 10px 0; max-width: 40em; }

.qa { margin: 24px 0 0; max-width: 46em; }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-of-type { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative;
  font-size: 17px; font-weight: 700;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; color: var(--leaf); font-weight: 900; margin-right: 12px; }
.qa summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.qa details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa .qa__a { padding: 0 0 22px 30px; color: var(--ink-soft); }
.qa .qa__a figure { margin: 16px 0 0; max-width: 360px; }

/* ---------------------------------------------------------
   メンバー
   --------------------------------------------------------- */
.faculty {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px;
}
.faculty__photo { width: 200px; height: 240px; object-fit: cover; border-radius: 10px; }
.faculty__role { font-size: 14px; font-weight: 700; color: var(--leaf); }
.faculty__name { font-size: 28px; font-weight: 900; margin-top: 2px; }
.faculty__name a { color: var(--ink); text-decoration: none; }
.faculty__name a:hover { color: var(--leaf); }
.faculty__roman { font-size: 15px; color: var(--muted); letter-spacing: 0.04em; }
.chip-links { list-style: none; margin: 16px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-links a {
  display: inline-block; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.chip-links a:hover { border-color: var(--leaf); color: var(--leaf-deep); background: var(--leaf-tint); }
.facts { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 15px; }
.facts dt { font-weight: 700; color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; }
.facts ol { margin: 0; padding-left: 1.4em; }
.mail { font-weight: 700; color: var(--leaf); }
.mail-note { display: block; font-size: 13px; color: var(--muted); }
.message { margin-top: 22px; padding: 16px 20px; border-left: 4px solid var(--leaf); background: var(--leaf-tint); border-radius: 0 10px 10px 0; font-size: 15px; }
@media (max-width: 720px) {
  .faculty { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .faculty__photo { width: 160px; height: 192px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

.group-title { display: flex; align-items: baseline; gap: 12px; font-size: 22px; font-weight: 900; margin: 0 0 18px; }
.group-title .count { font-size: 14px; font-weight: 700; color: var(--muted); }
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.roster li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.person { display: flex; align-items: center; gap: 12px; }
.avatar {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 18px; font-weight: 500; color: #fff; background: var(--av);
}
.avatar--A { --av: var(--base-a); } .avatar--C { --av: var(--base-c); }
.avatar--G { --av: var(--base-g); } .avatar--T { --av: var(--base-t); }
.person__name { font-size: 16px; font-weight: 700; line-height: 1.4; }
.person__roman { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; line-height: 1.5; }
.person__role { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--leaf-deep); background: var(--leaf-tint); border-radius: 999px; padding: 1px 10px; }
.person__theme { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; line-height: 1.7; }
.person__theme span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.roster-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------
   研究内容
   --------------------------------------------------------- */
.topic { padding: 56px 0; border-top: 1px solid var(--line); --q: var(--leaf); }
.topic--agri { --q: var(--base-a); }
.topic--med  { --q: var(--base-t); }
.topic--eco  { --q: var(--base-c); }
.topic--shin { --q: var(--base-g); }
.topic__group { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--q); }
.topic__group b { display: inline-flex; width: 30px; height: 30px; border-radius: 6px; background: var(--q); color: #fff; align-items: center; justify-content: center; font-size: 17px; }
.topic h2, .topic h3 { font-size: clamp(22px, 2.8vw, 28px); font-weight: 900; margin: 10px 0 22px; }
.topic__body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.topic__body figure { margin: 0; }
.topic__body figure img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.topic__text { line-height: 2; }
.tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.sdgs { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.sdgs img { width: 56px; height: 56px; border-radius: 4px; }
.sdgs p { font-size: 13px; color: var(--muted); line-height: 1.6; }
@media (max-width: 860px) {
  .topic__body { grid-template-columns: 1fr; gap: 22px; }
  .topic__body figure { max-width: 520px; }
}

/* ---------------------------------------------------------
   業績
   --------------------------------------------------------- */
.year-nav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(246, 248, 244, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.year-nav ul { list-style: none; margin: 0 auto; padding: 10px 24px; max-width: var(--wrap); display: flex; gap: 6px; overflow-x: auto; }
.year-nav a {
  display: block; padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; border: 1px solid transparent; white-space: nowrap;
}
.year-nav a:hover { border-color: var(--line); background: var(--surface); }

.pub-year { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 32px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 64px); }
.pub-year:first-child { border-top: 0; }
.pub-year__label { position: sticky; top: calc(var(--header-h) + 72px); align-self: start; }
.pub-year__label h2 { font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: 0.01em; }
.pub-year__label p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.pub-cat { font-size: 15px; font-weight: 700; color: var(--leaf); margin: 0 0 12px; }
.pub-cat:not(:first-child) { margin-top: 30px; }
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub { padding: 16px 0; border-bottom: 1px solid var(--line); max-width: 54em; }
.pub:first-child { padding-top: 0; }
.pub__title { font-size: 16px; font-weight: 700; line-height: 1.6; }
.pub__authors { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.pub__authors strong { color: var(--ink); font-weight: 700; }
.pub__venue { margin-top: 2px; font-size: 14px; line-height: 1.7; }
.pub__venue a { word-break: break-all; }
.pub details { margin-top: 8px; }
.pub summary { cursor: pointer; display: inline-block; font-size: 13px; font-weight: 700; color: var(--leaf); list-style: none; }
.pub summary::-webkit-details-marker { display: none; }
.pub summary::before { content: "＋"; margin-right: 4px; }
.pub details[open] summary::before { content: "－"; }
.pub details p { margin-top: 8px; font-size: 14px; line-height: 1.85; color: var(--ink-soft); max-width: 44em; }
@media (max-width: 760px) {
  .pub-year { grid-template-columns: 1fr; gap: 12px; padding: 34px 0; }
  .pub-year__label { position: static; display: flex; align-items: baseline; gap: 12px; }
  .pub-year__label h2 { font-size: 32px; }
  .pub-year__label p { margin-top: 0; }
}

/* ---------------------------------------------------------
   アクセス
   --------------------------------------------------------- */
.access { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.access + .access { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.access h2 { font-size: 20px; font-weight: 900; margin-bottom: 12px; }
.access address { font-style: normal; line-height: 2; }
.access .map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 10px; background: var(--line); }
.access figure { margin: 0; }
.access figure img { border-radius: 10px; cursor: zoom-in; }
.access figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 800px) { .access { grid-template-columns: 1fr; gap: 20px; } }

/* 画像の拡大表示 */
.zoom-dialog { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); }
.zoom-dialog::backdrop { background: rgba(12, 20, 15, 0.85); }
.zoom-dialog img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: 6px; }
.zoom-dialog button {
  position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink); font-size: 24px; cursor: pointer; line-height: 1;
}
.zoomable { cursor: zoom-in; }

/* ---------------------------------------------------------
   フッター
   --------------------------------------------------------- */
.site-footer {
  background: linear-gradient(to bottom, var(--moss) 0%, var(--moss-deep) 100%);   /* ヘッダーと同じ緑 */
  color: #fff;
}
.site-footer .seq {
  display: block; overflow: hidden; font-size: 12px; padding: 10px 24px;
  background: rgba(0, 0, 0, 0.18); border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer .seq .A { color: #8fe09d; }
.site-footer .seq .C { color: #9dc0ff; }
.site-footer .seq .G { color: #ffffff; }
.site-footer .seq .T { color: #ff9c92; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 36px 24px 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
.site-footer__lab { font-weight: 700; }
.site-footer__lab span { display: block; font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, 0.82); }
.site-footer address { font-style: normal; font-size: 14px; color: rgba(255, 255, 255, 0.82); margin-top: 10px; line-height: 1.8; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social a {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55); color: #fff;
}
.social a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer__small { grid-column: 1 / -1; font-size: 12px; color: rgba(255, 255, 255, 0.75); line-height: 1.8; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 16px; }
.site-footer :focus-visible { outline-color: #fff; }
@media (max-width: 640px) { .site-footer__inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-toggle span, .qa summary::after { transition: none; }
}

@media print {
  .site-header, .year-nav, .read-band, .site-footer .seq, .social { display: none !important; }
  body { background: #fff; }
  .pub details > p { display: block; }
}
