/* =========================================================
   酒寄研究所 — かぐやと学ぶ 超学術合同！
   ========================================================= */

:root {
  --turquoise: #18b7b1;
  --turquoise-dark: #0f8f8a;
  --navy: #183b56;
  --navy-deep: #112c41;
  --pale: #e9f8f7;
  --offwhite: #f7fafa;
  --slate: #667085;
  --yellow: #f2c94c;
  --text: #33383d;
  --white: #fff;
  --line: #d6e3e6;

  --font-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Barlow", "Noto Sans JP", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 104px;
}

*,
*::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;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--offwhite);
  letter-spacing: 0;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--turquoise-dark); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }

.num { font-family: var(--font-en); font-weight: 500; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(880px + var(--gutter) * 2); }

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

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  padding: 8px 16px; background: var(--navy); color: #fff;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 2px; }

mark {
  background: linear-gradient(transparent 62%, rgba(242, 201, 76, 0.75) 62%);
  color: inherit;
  padding: 0 0.1em;
}

@media (max-width: 800px) { .pc-only { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(24, 59, 86, 0.08); }

.utility-bar { background: var(--navy); color: #cfe3ea; font-family: var(--font-en); font-size: 12px; }
.utility-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 32px; }
.utility-bar__event { font-family: var(--font-ja); white-space: nowrap; }
.utility-bar__label {
  display: inline-block; margin-right: 10px; padding: 0 8px;
  background: var(--turquoise); color: #fff; font-family: var(--font-en); font-weight: 600; font-size: 11px; line-height: 20px;
}

.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__ja { font-size: 22px; font-weight: 700; }
.brand__en { font-family: var(--font-en); font-size: 11px; font-weight: 500; color: var(--slate); margin-top: 4px; }

.global-nav ul { display: flex; gap: 4px; }
.global-nav a {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 8px 18px; color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.4;
}
.global-nav__en { font-family: var(--font-en); font-size: 11px; font-weight: 500; text-transform: uppercase; color: var(--turquoise); }
.global-nav a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px;
  background: var(--turquoise); transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.global-nav a:hover::after,
.global-nav a.is-current::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  :root { --header-h: 92px; }
  .utility-bar__text { display: none; }
  .utility-bar__inner { justify-content: center; min-height: 28px; }
  .site-header__inner { height: 64px; }
  .brand__ja { font-size: 19px; }

  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); background: #fff; cursor: pointer;
  }
  .nav-toggle__bar,
  .nav-toggle__bar::before,
  .nav-toggle__bar::after {
    display: block; width: 20px; height: 2px; background: var(--navy); transition: transform 0.25s, background 0.25s;
  }
  .nav-toggle__bar { position: relative; }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -6px; }
  .nav-toggle__bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

  .global-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(24, 59, 86, 0.08);
    display: none;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .global-nav li + li { border-top: 1px solid var(--line); }
  .global-nav a { flex-direction: row-reverse; justify-content: space-between; padding: 16px 4px; font-size: 15px; }
  .global-nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--white); }
.hero__visual { position: relative; overflow: hidden; background: #1c7fd6; }
.hero__visual img {
  width: 100%;
  height: clamp(360px, 62vw, calc(100vh - var(--header-h) - 120px));
  object-fit: cover;
  object-position: center 35%;
}
.hero__visual::after {
  /* 下端を研究所サイトらしい斜めカットに */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 64px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero__body {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
  margin-top: -150px; padding-bottom: 48px;
}
.hero__card {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 220px); align-items: end; gap: 8px 28px;
  max-width: 780px;
  padding: 28px 40px 28px;
  background: var(--white);
  box-shadow: 0 24px 48px rgba(24, 59, 86, 0.14);
}
.hero__card::before {
  /* 角のトンボ風マーク */
  content: ""; position: absolute; right: 16px; top: 16px; width: 18px; height: 18px;
  border-top: 2px solid var(--navy); border-right: 2px solid var(--navy);
}
.hero__eyebrow {
  grid-column: 1 / -1;
  font-family: var(--font-en); font-size: 12px; font-weight: 500;
  color: var(--slate); text-transform: uppercase; margin-bottom: 8px;
}
.hero__title img { width: 100%; }
.hero__catch img { width: 100%; transform: translateY(-6px); }

.hero__facts { display: flex; gap: 0; border-left: 1px solid var(--line); }
.hero__facts > div { padding: 4px 28px; border-right: 1px solid var(--line); }
.hero__facts dt { font-family: var(--font-en); font-size: 12px; text-transform: uppercase; color: var(--turquoise); }
.hero__facts dd { color: var(--navy); font-size: 14px; font-weight: 500; white-space: nowrap; }
.hero__facts .num { font-size: 40px; line-height: 1.2; margin-right: 4px; color: var(--navy); }

@media (max-width: 960px) {
  .hero__body { grid-template-columns: 1fr; margin-top: -80px; }
  .hero__facts { border-left: 0; border-top: 1px solid var(--line); }
  .hero__facts > div { flex: 1; padding: 16px 12px 0; border-right: 0; }
  .hero__facts > div + div { border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .hero__visual::after { height: 32px; }
  .hero__body { margin-top: -40px; padding-bottom: 40px; }
  .hero__card { grid-template-columns: 1fr; padding: 24px 22px 20px; }
  .hero__catch { justify-self: end; width: 60%; }
  .hero__eyebrow { font-size: 10px; margin-bottom: 14px; }
  .hero__facts .num { font-size: 30px; }
  .hero__facts dd { font-size: 12px; }
}

/* ---------- News ---------- */
.news { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news__inner { display: flex; gap: 40px; align-items: flex-start; padding-block: 24px; }
.news__heading {
  flex: none; width: 120px; font-family: var(--font-en); font-size: 22px; font-weight: 600; color: var(--navy);
  border-left: 4px solid var(--turquoise); padding-left: 12px; line-height: 1.3;
}
.news__list { flex: 1; }
.news__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 6px 0; font-size: 15px; }
.news__list li + li { border-top: 1px dashed var(--line); }
.news__list time { font-family: var(--font-en); font-weight: 500; color: var(--slate); }

.tag {
  display: inline-block; min-width: 64px; padding: 0 10px; text-align: center;
  font-family: var(--font-en); font-size: 11px; font-weight: 600; line-height: 22px; text-transform: uppercase;
  color: var(--navy); border: 1px solid var(--navy);
}
.tag--event { background: var(--yellow); border-color: var(--yellow); }

@media (max-width: 600px) {
  .news__inner { flex-direction: column; gap: 8px; }
  .news__list li { font-size: 14px; }
}

/* ---------- Section common ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section--white { background: var(--white); }
.section--pale {
  background-color: var(--pale);
  background-image: radial-gradient(rgba(24, 183, 177, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
}

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head__label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--turquoise);
}
.section-head__label::after { content: ""; width: 64px; height: 1px; background: var(--turquoise); }
.section-head__num {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  background: var(--navy); color: #fff; font-size: 13px;
}
.section-head__title {
  margin-top: 14px; font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--navy); line-height: 1.4;
}
.section-head__desc { margin-top: 12px; color: var(--slate); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__lead { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; color: var(--navy); line-height: 1.6; margin-bottom: 28px; }
.about__text > p + p { margin-top: 1.2em; }
.about__text strong { color: var(--navy); }

.about__features { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--navy); }
.about__features li { padding: 20px 20px 4px 0; }
.about__features li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.about__feature-num { font-family: var(--font-en); font-weight: 600; font-size: 13px; color: var(--turquoise); }
.about__features h3 { font-size: 16px; color: var(--navy); margin: 4px 0 6px; line-height: 1.5; }
.about__features p { font-size: 13px; color: var(--slate); line-height: 1.8; }

.about__figure img { border: 1px solid var(--line); background: #fff; }
figcaption { margin-top: 12px; font-size: 13px; color: var(--slate); }
figcaption span { font-family: var(--font-en); font-weight: 600; color: var(--navy); margin-right: 10px; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__figure { max-width: 560px; }
}
@media (max-width: 600px) {
  .about__features { grid-template-columns: 1fr; }
  .about__features li,
  .about__features li + li { padding: 16px 0; border-left: 0; }
  .about__features li + li { border-top: 1px solid var(--line); }
}

/* ---------- Papers ---------- */
.papers-tools { display: grid; gap: 20px; margin-bottom: 24px; }
.papers-search { position: relative; max-width: 520px; }
.papers-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--slate); }
.papers-search input {
  width: 100%; height: 52px; padding: 0 16px 0 48px;
  font: inherit; font-size: 15px; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.papers-search input:focus { outline: none; border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(24, 183, 177, 0.2); }

.papers-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; font-size: 13px; line-height: 1.5; color: var(--navy);
  background: #fff; border: 1px solid var(--line); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { border-color: var(--turquoise); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip__count { font-family: var(--font-en); font-size: 12px; color: var(--turquoise); }
.chip[aria-pressed="true"] .chip__count { color: var(--yellow); }

.papers-count { font-size: 13px; color: var(--slate); margin-bottom: 16px; }
.papers-count span:first-child { font-family: var(--font-en); font-size: 20px; font-weight: 600; color: var(--navy); }

.papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.paper {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 28px 20px; background: #fff; border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.paper:hover { border-color: rgba(24, 183, 177, 0.6); box-shadow: 0 12px 28px rgba(24, 59, 86, 0.08); }
.paper::before { content: ""; position: absolute; left: -1px; top: -1px; width: 48px; height: 4px; background: var(--turquoise); }

.paper__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.paper__field { font-size: 12px; font-weight: 500; color: var(--turquoise-dark); }
.paper__no { font-family: var(--font-en); font-size: 12px; font-weight: 600; color: var(--slate); white-space: nowrap; }
.paper__title { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.paper__subtitle { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--slate); }
.paper__author { margin-top: 10px; font-size: 14px; color: var(--navy); font-weight: 500; }
.paper__author::before { content: "執筆："; color: var(--slate); font-weight: 400; }
.paper__keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.paper__keywords li { font-size: 12px; line-height: 1.6; padding: 1px 8px; background: var(--pale); color: var(--navy); }
.paper__keywords li::before { content: "#"; color: var(--turquoise); margin-right: 2px; }

.paper__abstract { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; line-height: 1.85; color: var(--text); flex: 1; }
.paper__abstract-label { font-family: var(--font-en); font-size: 11px; font-weight: 600; color: var(--slate); text-transform: uppercase; margin-bottom: 4px; }
/* 閉じている間は3行分だけ表示（はみ出す場合のみ .is-clamped でフェード） */
.paper__abstract-body { max-height: calc(1.85em * 3); overflow: hidden; }
.paper__abstract-body.is-clamped { -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.paper.is-open .paper__abstract-body { max-height: none; -webkit-mask-image: none; mask-image: none; }
.paper__toggle {
  align-self: flex-start; margin-top: 10px; padding: 4px 0;
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--turquoise-dark);
}
.paper__toggle::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.2s;
}
.paper.is-open .paper__toggle::after { transform: translateY(2px) rotate(-135deg); }

.papers-empty { padding: 48px 0; text-align: center; color: var(--slate); }

@media (max-width: 860px) {
  .papers { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .papers-filter { gap: 6px; }
  .chip { padding: 5px 10px; font-size: 12px; gap: 6px; }
  .paper { padding: 22px 20px 16px; }
  .paper__title { font-size: 16px; }
}

/* ---------- Distribution ---------- */
.dist { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
/* 表紙・背表紙・裏表紙の3D表示（寸法は原稿比率 2866 × 4047、背幅 180） */
.book3d {
  --w: 280px;
  --h: calc(var(--w) * 4047 / 2866);
  --d: calc(var(--w) * 180 / 2866);
  position: relative;
  display: grid; place-items: center;
  height: calc(var(--h) + 96px);
  perspective: 1800px;
  /* 標本展示台風のステージ（白い背表紙が背景に溶けないように） */
  background-color: var(--pale);
  background-image: radial-gradient(rgba(24, 183, 177, 0.22) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  outline-offset: 8px;
}
.book3d.is-dragging { cursor: grabbing; }
.book3d__body {
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  will-change: transform;
}
.book3d__face {
  position: absolute; display: block;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  pointer-events: none;
  outline: 1px solid rgba(24, 59, 86, 0.12); outline-offset: -1px;
}
.book3d__face--front,
.book3d__face--back { inset: 0; width: var(--w); height: var(--h); max-width: none; }
.book3d__face--front { transform: translateZ(calc(var(--d) / 2)); }
.book3d__face--back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.book3d__face--spine,
.book3d__face--fore {
  top: 0; left: calc((var(--w) - var(--d)) / 2);
  width: var(--d); height: var(--h); max-width: none;
}
/* 左綴じ：背表紙は表紙の左側 */
.book3d__face--spine { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.book3d__face--fore { transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 1px)); }
.book3d__face--top,
.book3d__face--bottom {
  left: 0; top: calc((var(--h) - var(--d)) / 2);
  width: calc(var(--w) - 2px); height: var(--d);
}
.book3d__face--top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 1px)); }
.book3d__face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 1px)); }
/* 小口・天地：紙の重なり */
.book3d__face--fore,
.book3d__face--top,
.book3d__face--bottom {
  background-color: #f4f1ea;
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 3px);
}
.book3d__face--top,
.book3d__face--bottom {
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 3px);
}
/* 側面の陰影（JSで回転角に応じて濃さを更新） */
.book3d__face--spine { filter: brightness(var(--spine-light, 1)); }
.book3d__face--fore { filter: brightness(var(--fore-light, 1)); }
.book3d__shadow {
  position: absolute; left: 50%; bottom: 12px; width: calc(var(--w) * 0.9); height: 24px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(24, 59, 86, 0.28), transparent);
  pointer-events: none;
}

.book3d__controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.book3d__hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--turquoise-dark); }
.book3d__hint svg { width: 16px; height: 16px; }
.book3d__views { display: flex; }
.book3d__views button {
  padding: 2px 10px; font-size: 12px; line-height: 22px; color: var(--navy);
  background: #fff; border: 1px solid var(--line); cursor: pointer;
}
.book3d__views button + button { border-left: 0; }
.book3d__views button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.dist__event-label { font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--turquoise); text-transform: uppercase; }
.dist__event { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; color: var(--navy); line-height: 1.4; }
.dist__date { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 32px; color: var(--navy); }
.dist__date .num { font-size: clamp(40px, 6vw, 64px); font-weight: 500; line-height: 1.1; }
.dist__dow { padding: 2px 10px; background: var(--yellow); font-family: var(--font-en); font-weight: 600; font-size: 14px; }

.spec { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); font-size: 15px; }
.spec th, .spec td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 11em; font-weight: 500; color: var(--navy); background: var(--offwhite); white-space: nowrap; }
.spec small { color: var(--slate); font-size: 13px; }
.spec a { margin-left: 4px; font-family: var(--font-en); font-weight: 500; }
.spec .price { font-family: var(--font-en); font-size: 22px; font-weight: 600; color: var(--navy); margin: 0 2px; }
figcaption a { font-family: var(--font-en); }
.tbd {
  display: inline-block; margin-right: 10px; padding: 0 8px;
  font-family: var(--font-en); font-size: 11px; font-weight: 600; line-height: 20px;
  color: var(--slate); border: 1px solid var(--slate); vertical-align: 2px;
}

@media (max-width: 860px) {
  .dist { grid-template-columns: 1fr; }
  .dist__cover { max-width: 320px; }
  .book3d { --w: 220px; }
}
@media (max-width: 600px) {
  .spec { font-size: 14px; }
  .spec th { width: 7em; padding-inline: 8px; white-space: normal; word-break: keep-all; }
  .spec td { padding-inline: 10px; }
}

/* ---------- Notice ---------- */
.notice { counter-reset: notice; background: #fff; border: 1px solid var(--line); padding: 8px clamp(20px, 4vw, 40px); }
.notice li { counter-increment: notice; position: relative; padding: 18px 0 18px 44px; font-size: 15px; }
.notice li + li { border-top: 1px solid var(--line); }
.notice li::before {
  content: counter(notice, decimal-leading-zero);
  position: absolute; left: 0; top: 18px;
  font-family: var(--font-en); font-weight: 600; font-size: 14px; color: var(--turquoise);
}
.notice strong { color: var(--navy); }

/* ---------- Link card（頒布情報 → パンフレット） ---------- */
.link-card {
  display: flex; align-items: center; gap: 20px;
  margin-top: 32px; padding: 16px 24px 16px 16px;
  background: var(--pale); border: 1px solid var(--line);
  color: var(--navy); text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.link-card:hover { border-color: var(--turquoise); box-shadow: 0 12px 28px rgba(24, 59, 86, 0.08); }
.link-card img { width: 72px; flex: none; box-shadow: 0 6px 14px rgba(24, 59, 86, 0.18); }
.link-card__body { display: flex; flex-direction: column; flex: 1; line-height: 1.6; }
.link-card__label { font-family: var(--font-en); font-size: 12px; font-weight: 600; color: var(--turquoise); text-transform: uppercase; }
.link-card__title { font-size: 17px; font-weight: 700; }
.link-card__desc { font-size: 13px; color: var(--slate); }
.link-card__arrow { width: 24px; height: 24px; flex: none; color: var(--turquoise); transition: transform 0.2s; }
.link-card:hover .link-card__arrow { transform: translateX(4px); }

/* ---------- Brochure viewer ---------- */
.hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hint-mouse { display: inline; }
  .hint-touch { display: none; }
}

.viewer { background: var(--navy-deep); color: #fff; }
.viewer__toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.viewer__status { font-family: var(--font-en); font-weight: 500; }
.viewer__page { font-size: 22px; color: #fff; }
.viewer__total { margin-left: 6px; font-size: 14px; color: #9fb6c6; }
.viewer__tools { display: flex; align-items: center; gap: 12px; }
.viewer__tools button {
  display: inline-grid; place-items: center; min-width: 36px; height: 34px; padding: 0 12px;
  font-size: 13px; color: #dbe7ee; background: transparent; border: 1px solid rgba(255, 255, 255, 0.24); cursor: pointer;
}
.viewer__tools button:hover { border-color: var(--turquoise); color: #fff; }
.viewer__tools svg { width: 18px; height: 18px; }
.viewer__mode, .viewer__zoom { display: flex; align-items: center; }
.viewer__mode button + button { border-left: 0; }
.viewer__mode button[aria-pressed="true"] { background: var(--turquoise); border-color: var(--turquoise); color: #fff; }
.viewer__zoom button { padding: 0; width: 36px; }
.viewer__zoom-value { min-width: 56px; text-align: center; font-family: var(--font-en); font-size: 13px; color: #dbe7ee; }

.viewer__stage {
  position: relative; overflow: hidden;
  height: clamp(420px, calc(100vh - var(--header-h) - 230px), 1000px);
  background-color: #1d3a52;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  touch-action: none; user-select: none; -webkit-user-select: none;
  cursor: zoom-in;
}
.viewer__stage:focus-visible { outline-offset: -3px; }
.viewer__stage.is-zoomed { cursor: grab; }
.viewer__stage.is-zoomed:active { cursor: grabbing; }
.viewer__canvas { position: absolute; inset: 0; transform-origin: 0 0; } /* will-change は付けない（拡大時に再ラスタライズさせて文字をくっきり表示するため） */
.viewer__canvas.is-animating { transition: transform 0.3s ease; }
.viewer__spread {
  position: absolute; display: flex;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.viewer__spread.enter-next { opacity: 0; transform: translateX(40px); transition: none; }
.viewer__spread.enter-prev { opacity: 0; transform: translateX(-40px); transition: none; }
.viewer__img { flex: 1; width: 50%; height: 100%; max-width: none; background: #fff; pointer-events: none; }
.viewer__spread .viewer__img:only-child { width: 100%; }
/* 見開きの綴じ目 */
.viewer__img + .viewer__img { box-shadow: inset 14px 0 18px -14px rgba(0, 0, 0, 0.25); }
.viewer__spread:has(.viewer__img + .viewer__img)::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 28px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1) 50%, transparent);
  pointer-events: none;
}

.viewer__nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 64px;
  color: #fff; background: rgba(17, 44, 65, 0.7); border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.viewer__nav:hover { background: var(--turquoise); }
.viewer__nav:disabled { opacity: 0; pointer-events: none; }
.viewer__nav svg { width: 24px; height: 24px; }
.viewer__nav--prev { left: 12px; }
.viewer__nav--next { right: 12px; }
.viewer__footer { padding: 12px 16px 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center; }
.viewer__help { margin-top: 6px; font-size: 12px; color: #9fb6c6; }

.viewer__thumbs { display: flex; justify-content: center; gap: 12px; }
.viewer__thumbs button {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0; background: none; border: 0; cursor: pointer; color: #9fb6c6; font-family: var(--font-en); font-size: 12px;
}
.viewer__thumbs img { width: 44px; outline: 2px solid transparent; outline-offset: 2px; opacity: 0.6; transition: opacity 0.2s, outline-color 0.2s; }
.viewer__thumbs button:hover img { opacity: 1; }
.viewer__thumbs button[aria-current="true"] { color: #fff; }
.viewer__thumbs button[aria-current="true"] img { opacity: 1; outline-color: var(--turquoise); }

.viewer.is-fullscreen { display: flex; flex-direction: column; }

/* 独立ページ：ビューポート全体に表示 */
.viewer-page { overflow: hidden; background: var(--navy-deep); }
.viewer--standalone { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.viewer--standalone .viewer__stage { flex: 1; height: auto; min-height: 0; }
/* 読み込み時に自動フォーカスするため、ステージ全体の枠線は出さない */
.viewer--standalone .viewer__stage:focus-visible { outline: none; }
.viewer__heading { display: flex; align-items: center; gap: 14px; min-width: 0; }
.viewer__back {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  color: #dbe7ee; border: 1px solid rgba(255, 255, 255, 0.24);
}
.viewer__back:hover { border-color: var(--turquoise); color: #fff; }
.viewer__back svg { width: 18px; height: 18px; }
.viewer__title { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; }

/* メニューとサムネイルは普段は隠す。PCはホバー、スマホはタップで表示 */
.viewer--standalone { position: relative; }
.viewer--standalone .viewer__toolbar,
.viewer--standalone .viewer__footer {
  position: absolute; left: 0; right: 0; z-index: 3;
  background: rgba(17, 44, 65, 0.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.viewer--standalone .viewer__toolbar { top: 0; transform: translateY(-12px); }
.viewer--standalone .viewer__footer { bottom: 0; transform: translateY(12px); }
.viewer--standalone .viewer__toolbar:has(:focus-visible),
.viewer--standalone .viewer__footer:has(:focus-visible),
.viewer--standalone.is-ui-visible .viewer__toolbar,
.viewer--standalone.is-ui-visible .viewer__footer { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
  /* 隠れていてもホバーを拾えるようにする */
  .viewer--standalone .viewer__toolbar,
  .viewer--standalone .viewer__footer { pointer-events: auto; }
  .viewer--standalone .viewer__toolbar:hover,
  .viewer--standalone .viewer__footer:hover { opacity: 1; transform: none; }
}

/* ページめくり */
.viewer__flip { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.viewer__flip-frame { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.viewer__flip-page { position: absolute; top: 0; max-width: none; background: #fff; }
.viewer__flip-page.is-base { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.viewer__flip-leaf { position: absolute; top: 0; transform-origin: left center; transform-style: preserve-3d; }
.viewer__flip-face {
  position: absolute; inset: 0; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.viewer__flip-face--back { transform: rotateY(180deg); }
.viewer__flip-face .viewer__flip-page { left: 0; width: 100%; height: 100%; }
/* 紙の裏（単ページ表示時） */
div.viewer__flip-page.is-back { background: linear-gradient(90deg, #e9e6df, #f7f5f0 30%, #fff); }
.viewer__flip-shade {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.3));
}
}
.viewer.is-fullscreen .viewer__stage { flex: 1; height: auto; }

@media (max-width: 860px) {
  .viewer__mode { display: none; }
  .viewer__title { display: none; }
  .viewer__stage { height: min(80vh, calc((100vw - 24px) * 3106 / 2200 + 24px)); }
  .viewer__nav { width: 36px; height: 52px; }
  .viewer__nav--prev { left: 6px; }
  .viewer__nav--next { right: 6px; }
}
@media (max-width: 600px) {
  .link-card { padding: 12px 16px 12px 12px; gap: 14px; }
  .link-card img { width: 56px; }
  .link-card__title { font-size: 15px; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy); color: #cfe3ea; padding-top: 64px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--turquoise); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.site-footer__label { font-size: 12px; color: var(--turquoise); margin-bottom: 2px; }
.site-footer__name { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.3; }
.site-footer__en { font-family: var(--font-en); font-size: 12px; margin-top: 4px; }
.site-footer__logo { width: 240px; margin-top: 28px; opacity: 0.95; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; }
.site-footer__contact { margin-top: 20px; font-size: 13px; }
.site-footer__contact a { color: var(--turquoise); }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 12px;
}
.site-footer__bottom small { font-family: var(--font-en); font-size: 12px; }

.pagetop {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--turquoise); color: #fff !important;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.pagetop svg { width: 22px; height: 22px; }
.pagetop.is-visible { opacity: 1; pointer-events: auto; }
.pagetop:hover { background: var(--navy); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
