@charset "UTF-8";
:root {
  --blue: #1b4dff;
  --blue-ink: #061a5e;
  --sky: #59c3ff;
  --green-ink: #033a26;
  --pink: #ff1e83;
  --orange: #fa9300;
  --ink: #0c1633;
  --bg: #f1f4f8;
  --text: #0c1633;
  --muted: #4a5472;
  --card: #ffffff;
  --line: rgba(12, 22, 51, .18);
  --chem-text: #1741d9;
  --bio-text: #08744a;
  --f-body: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --f-head: "Shippori Mincho B1", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-latin: "Cormorant Garamond", "Times New Roman", serif;
  --f-ibm: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-gothic: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --pat-chem: url(images/pattern-chem.svg);
  --pat-bio: url(images/pattern-bio.svg);
  --img-snow: url(images/photo-snow.jpg);
  --img-crystal: url(images/photo-crystal.jpg);
  --img-fire: url(images/photo-fire.jpg);
  --img-tubes: url(images/photo-tubes.jpg);
  --img-factory: url(images/photo-factory.jpg);
  --img-chip: url(images/photo-chip.jpg);
  --img-tiger: url(images/photo-tiger.jpg);
  --img-flower: url(images/photo-flower.jpg);
  --img-coral: url(images/photo-coral.jpg);
  --img-cells: url(images/photo-cells.jpg);
  --img-elephant: url(images/photo-elephant.jpg);
  --img-blood: url(images/photo-blood.jpg);
}
@media (prefers-color-scheme:dark) {
:root:not([data-theme="light"]) {
    --bg: #0a1022;
    --text: #e9eefc;
    --muted: #a9b3d2;
    --card: #121a34;
    --line: rgba(255, 255, 255, .2);
    --chem-text: #86a6ff;
    --bio-text: #45e39b;
    color-scheme: dark
  }
}
:root[data-theme="dark"] {
  --bg: #0a1022;
  --text: #e9eefc;
  --muted: #a9b3d2;
  --card: #121a34;
  --line: rgba(255, 255, 255, .2);
  --chem-text: #86a6ff;
  --bio-text: #45e39b;
  color-scheme: dark
}
*, *::before, *::after {
  box-sizing: border-box
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(112px + env(safe-area-inset-top, 0px));
  background: var(--bg)
}
body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt"
}
body.modal-open {
  overflow: hidden
}
a {
  color: inherit
}
.wrap {
  width: min(1160px, 100% - 48px);
  margin-inline: auto
}
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px
}
.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  color: #fff;
  padding: env(safe-area-inset-top, 0px) clamp(14px, 3.5vw, 48px) 0;
  animation: slideDown .9s .2s cubic-bezier(.16, 1, .3, 1) both
}
@keyframes slideDown {
  from {
    translate: 0 -100%
  }
}
.brand {
  display: block;
  padding: 30px 0 0 0;
  line-height: 0
}
.brand img {
  display: block;
  height: clamp(28px, 4vw, 40px);
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter .3s
}
@keyframes fadeIn {
  from {
    opacity: 0
  }
}
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  --tfs: clamp(12px, min(4.6vw, 7.5svh), 62px);
  --pt: clamp(60px, 10svh, 84px);
  --pb: clamp(56px, 10svh, 96px);
  padding: calc(var(--pt) + env(safe-area-inset-top, 0px)) 16px var(--pb);
}
.bg {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: -3
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
  opacity: .05;
}
.bg-chem::after {
  background-image: var(--pat-chem)
}
.bg-bio::after {
  background-image: var(--pat-bio)
}
.bg-chem {
  left: 0;
  background: radial-gradient(80% 60% at 70% 55%, #017ac5 0%, transparent 70%), linear-gradient(175deg, #0a4b65, #023448);
  animation: curtainD 1.4s cubic-bezier(.77, 0, .18, 1) both
}
.bg-bio {
  right: 0;
  background: radial-gradient(80% 60% at 30% 55%, #12b36f 0%, transparent 70%), linear-gradient(185deg, #087a4b, #02311f);
  animation: curtainU 1.4s cubic-bezier(.77, 0, .18, 1) both
}
@keyframes curtainD {
  from {
    clip-path: inset(0 0 100% 0)
  }
  to {
    clip-path: inset(0 0 0 0)
  }
}
@keyframes curtainU {
  from {
    clip-path: inset(100% 0 0 0)
  }
  to {
    clip-path: inset(0 0 0 0)
  }
}
.vert {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  writing-mode: vertical-rl;
  z-index: 2;
  animation: fadeIn 1.2s 2s both
}
.vert.l {
  left: clamp(14px, 2.6vw, 40px);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 28px);
  letter-spacing: .5em
}
.vert.r {
  right: clamp(14px, 2.6vw, 40px);
  font-family: var(--f-latin);
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 32px);
  letter-spacing: .6em
}
.vert::before {
  content: "";
  display: block;
  width: 2px;
  height: 40px;
  margin: 0 auto 18px;
  background: linear-gradient(180deg, var(--pink), var(--orange))
}
.title {
  position: relative;
  z-index: 3;
  margin: .35em 0 0;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(24px, 4.6vw, 62px);
  line-height: 1.3;
  letter-spacing: .06em;
  text-align: center
}
.title .ln {
  display: block;
  white-space: nowrap
}
.title rt {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: .27em;
  letter-spacing: .14em;
  color: #fff;
  line-height: 1;
  padding-bottom: .3em
}
.title .ch {
  display: inline-block;
  animation: charIn 1s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(1.1s + var(--i) * .045s)
}
@keyframes charIn {
  from {
    opacity: 0;
    filter: blur(10px);
    translate: 0 .3em
  }
}
.rule {
  position: relative;
  z-index: 3;
  width: min(360px, 60vw);
  height: 3px;
  margin: clamp(12px, 2vh, 22px) 0;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  transform-origin: center;
  animation: ruleIn 1s 1.6s cubic-bezier(.77, 0, .18, 1) both;
  display: none;
}
@keyframes ruleIn {
  from {
    transform: scaleX(0)
  }
}
.books {
  position: relative;
  z-index: 3;
  margin-top: clamp(22px, 4.5vh, 48px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(22px, 4vw, 68px)
}
.book-wrap {
  --bw: clamp(140px, min(44vw, calc((100svh - 3.3 * var(--tfs) - var(--pt) - var(--pb) - 90px) / 1.224)), 480px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(calc(var(--mx, 0) * var(--d) * 1px), calc(var(--my, 0) * var(--d) * 1px))
}
@media (min-width:901px) {
/* wide: the badges and the vertical side text must fit beside the two covers, so cap the cover width by the screen width */
.book-wrap {
  --bw: clamp(140px, min(44vw, calc((100svh - 3.3 * var(--tfs) - var(--pt) - var(--pb) - 90px) / 1.224), calc((100vw - 15vw - 48px - clamp(22px, 4vw, 68px) - 2 * clamp(10px, 1.6vw, 24px)) / 2.62)), 480px)
}
}
.book-rise {
  position: relative;
  animation: rise 1.6s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: var(--delay)
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 90px
  }
}
.book {
  position: relative;
  width: var(--bw);
  aspect-ratio: 1204/1474;
  box-shadow: 0 50px 70px -24px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .14);
  overflow: hidden;
  background: #000
}
.book img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}
.book::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  rotate: 12deg;
  animation: shine 1.6s var(--shine) cubic-bezier(.5, 0, .3, 1) both
}
@keyframes shine {
  to {
    translate: 520% 0
  }
}
.badge {
  position: absolute;
  bottom: 0;
  z-index: 4;
  width: calc(var(--bw) * .31);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-gothic);
  font-weight: 800;
  font-size: calc(var(--bw) * .072);
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  line-height: 1;
  text-align: center;
  box-shadow: 0 14px 28px -8px rgba(0, 0, 0, .5);
  animation: badgeIn .8s var(--bd) cubic-bezier(.2, 1.4, .3, 1) both
}
.badge.o {
  background: var(--orange);
  left: calc(100% + clamp(10px, 1.6vw, 24px))
}
.badge.p {
  background: var(--pink);
  right: calc(100% + clamp(10px, 1.6vw, 24px))
}
@media (max-width:900px) {
/* narrow: the badge sits on the outer bottom corner of the cover, so it never reaches the caption or the screen edge */
.badge.o {
  background: var(--orange);
  left: auto;
  right: calc(var(--bw) * -.06);
  bottom: calc(var(--bw) * -.05)
}
.badge.p {
  background: var(--pink);
  right: auto;
  left: calc(var(--bw) * -.06);
  bottom: calc(var(--bw) * -.05)
}
}
@keyframes badgeIn {
  from {
    scale: 0;
    rotate: -50deg
  }
}
.cap-book {
  margin-top: 18px;
  text-align: center;
  animation: fadeIn 1s 2.4s both
}
.cap-book b {
  display: block;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: .2em
}
.cap-book i {
  display: block;
  font-family: var(--f-latin);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: .12em;
  opacity: .9
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 3vh, 28px);
  translate: -50% 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  font-family: var(--f-ibm);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .3em;
  text-indent: .3em;
  line-height: 1;
  animation: fadeIn 1s 2.8s both;
  transition: opacity .4s
}
.scroll-cue.hide {
  opacity: 0;
  pointer-events: none
}
.scroll-cue svg {
  width: 22px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  animation: cueDown 1.6s ease-in-out infinite
}
@keyframes cueDown {
  0%, 100% {
    translate: 0 0;
    opacity: .5
  }
  50% {
    translate: 0 8px;
    opacity: 1
  }
}
.tabbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 49;
  translate: -50% var(--ty, 100vh);
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(6, 20, 70, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
  animation: fadeIn 1s 2.6s both
}
.tabbar button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  border: 1px solid rgba(255, 255, 255, .9);
  color: #fff;
  cursor: pointer;
  font: 800 clamp(16px, 1.9vw, 20px)/1.3 var(--f-head);
  letter-spacing: .24em;
  padding: .8em 1.2em .8em 1.45em;
  min-width: clamp(128px, 19vw, 190px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .35);
  transition: transform .2s, box-shadow .2s, color .3s
}
.tabbar button[data-tab="chem"] {
  background: #1c7498
}
.tabbar button[data-tab="bio"] {
  background: #078550
}
.tabbar button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  transform: translateX(-101%);
  transition: transform .4s cubic-bezier(.77, 0, .18, 1)
}
.tabbar button:hover, .tabbar button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(0, 0, 0, .35);
  color: var(--ink)
}
.tabbar button:hover::before, .tabbar button:focus-visible::before {
  transform: none
}
.tabbar button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .35)
}
.tabbar button svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round
}
.tabbar .ic-arrow {
  width: 10px;
  height: 17px;
  stroke-width: 3
}
.tabbar .ic-check {
  display: none;
  width: 18px;
  height: 14px;
  stroke-width: 3.4
}
.tabbar button.active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .35)
}
.tabbar button.active:hover, .tabbar button.active:focus-visible {
  color: #fff
}
.tabbar button.active:hover::before, .tabbar button.active:focus-visible::before {
  transform: translateX(-101%)
}
.tabbar button.active .ic-arrow {
  display: none
}
.tabbar button.active .ic-check {
  display: block
}
.tabbar button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: #fff
}
.tabbar button:not(.active) {
  animation: tabPulse 2.2s ease-in-out infinite
}
.tabbar button:not(.active) .ic-arrow {
  animation: nudge 1.2s ease-in-out infinite
}
@keyframes tabPulse {
  0%, 100% {
    box-shadow: 0 5px 0 rgba(0, 0, 0, .35), 0 0 0 0 rgba(255, 255, 255, .7)
  }
  60% {
    box-shadow: 0 5px 0 rgba(0, 0, 0, .35), 0 0 0 13px rgba(255, 255, 255, 0)
  }
}
@keyframes nudge {
  50% {
    translate: 5px 0
  }
}
.tabbar::before {
  content: "クリックで切り替え";
  position: absolute;
  left: calc(100% + 18px);
  top: 50%;
  translate: 0 -50%;
  white-space: nowrap;
  background: #fff;
  color: var(--blue-ink);
  font: 800 13px/1 var(--f-head);
  letter-spacing: .14em;
  padding: .7em 1em
}
.tabbar::after {
  content: "";
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  translate: 0 -50%;
  border: 6px solid transparent;
  border-right: 12px solid #fff;
  border-left: 0
}
.tabbar.docked::before, .tabbar.docked::after, .tabbar.used::before, .tabbar.used::after {
  display: none
}
@media (max-width:820px) {
.tabbar::before, .tabbar::after {
    display: none
  }
}
.totop {
  position: fixed;
  z-index: 48;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 54px;
  height: 54px;
  border: 2px solid #fff;
  background: #0a4b65;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  translate: 0 14px;
  transition: opacity .3s, translate .3s, visibility .3s, background-color .25s;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35)
}
.totop.show {
  opacity: 1;
  visibility: visible;
  translate: 0 0
}
.totop:hover, .totop:focus-visible {
  background: #fff;
  color: #0a4b65
}
body[data-tab="bio"] .totop {
  background: #078550
}
body[data-tab="bio"] .totop:hover, body[data-tab="bio"] .totop:focus-visible {
  background: #fff;
  color: #078550
}
.totop svg {
  width: 20px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none
}
.totop span {
  font-family: var(--f-ibm);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1
}
.panel[hidden] {
  display: none
}
.panel.enter {
  animation: panelIn .8s cubic-bezier(.77, 0, .18, 1)
}
@keyframes panelIn {
  from {
    clip-path: inset(0 0 100% 0)
  }
}
.ticker {
  position: relative;
  z-index: 4;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-top: 2px solid rgba(255, 255, 255, .5);
  border-bottom: 2px solid rgba(255, 255, 255, .5);
  padding: 10px 0
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marq 40s linear infinite
}
.ticker-track span {
  display: flex;
  align-items: center;
  gap: 1.1em;
  padding-right: 1.1em;
  white-space: nowrap;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: .24em
}
.ticker-track em {
  font-family: var(--f-latin);
  font-style: normal;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: .14em
}
.ticker-track .gt {
  font-family: var(--f-gothic);
  font-weight: 700;
  letter-spacing: .2em
}
.ticker-track i {
  width: 9px;
  height: 9px;
  background: #fff;
  display: inline-block
}
.ticker-track i:nth-of-type(even) {
}
@keyframes marq {
  to {
    transform: translateX(-50%)
  }
}
.panel {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: clamp(150px, 14vw, 200px) 0 clamp(90px, 11vw, 150px)
}
.panel.chem {
  --ac: #59c3ff
}
.panel.bio {
  --ac: #7be8a8
}
.panel.chem {
  background: radial-gradient(50% 60% at 8% 85%, rgba(89, 195, 255, .4), transparent 70%), linear-gradient(160deg, #0a4b65 0%, #004763 100%)
}
.panel.bio {
  background: radial-gradient(50% 60% at 8% 85%, rgba(123, 232, 168, .32), transparent 70%), linear-gradient(160deg, #07784b 0%, #0c5035 100%)
}
.panel {
  isolation: isolate
}
.word {
  position: absolute;
  left: -2vw;
  top: clamp(20px, 4vw, 50px);
  font-family: var(--f-ibm);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(70px, 15vw, 220px);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .16);
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(var(--dx, 0px))
}
.panel.bio .word {
  left: auto;
  right: 48vw
}
@media (max-width:900px) {
.word {
    left: 4vw;
    font-size: clamp(40px, 17vw, 140px)
  }
.panel.bio .word {
    left: auto;
    right: 4vw
  }
}
.panel h2 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.15;
  letter-spacing: .1em
}
.panel .en {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0 0;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: .08em
}
.panel .en::before {
  content: "";
  width: 46px;
  height: 1px;
  background: #fff
}
.panel .en span {
  font-family: var(--f-gothic);
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .3em;
  background: #fff;
  color: var(--ink);
  padding: .25em .8em .25em 1.1em
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.4em;
  border: 2px solid #fff;
  padding: .85em 1.4em .85em 1.8em;
  font: 700 16px/1.4 var(--f-head);
  letter-spacing: .24em;
  background: #fff;
  color: var(--blue-ink);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s, border-color .3s
}
.panel.bio .btn {
  color: var(--green-ink)
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ac);
  transform: translateX(-101%);
  transition: transform .45s cubic-bezier(.77, 0, .18, 1)
}
.btn:hover, .btn:focus-visible {
  color: var(--ink);
  border-color: var(--ac)
}
.btn:hover::before, .btn:focus-visible::before {
  transform: none
}
.btn svg {
  width: 34px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: translate .35s
}
.btn:hover svg {
  translate: 8px 0
}
.js .paper.rv, .js .set-img.rv {
  clip-path: inset(0 100% 0 0)
}
.js .paper.rv img, .js .set-img.rv img {
  transform: translateX(-48px);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1) var(--dl, 0s), opacity .8s ease var(--dl, 0s)
}
.js .paper.rv.in, .js .set-img.rv.in {
  clip-path: inset(-200px);
  transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1) var(--dl, 0s)
}
.js .paper.rv.in img, .js .set-img.rv.in img {
  transform: none;
  opacity: 1
}
.tab-head {
  margin-bottom: clamp(48px, 6vw, 84px)
}
.idx {
  position: relative;
  margin-bottom: clamp(64px, 8vw, 110px)
}
.idx-h {
  margin: 0 0 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.2;
  letter-spacing: .12em
}
.idx-h::after {
  content: "";
  flex: 1;
  height: 3px;
  background: var(--ac)
}
.idx ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
}
.idx li {
  border-bottom: 1px solid rgba(255, 255, 255, .3)
}
.idx a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 8px;
  color: #fff;
  text-decoration: none;
  transition: background-color .3s
}
.idx a:hover, .idx a:focus-visible {
  background: rgba(255, 255, 255, .13)
}
.idx .no {
  min-width: 4.4em;
    text-align: center;
    font-family: var(--f-head);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: .2em;
    background: var(--ac);
    color: var(--ink);
    /*line-height: 4.4em;
    border-radius: 100%;*/
    align-items: center;
}
.idx li.bonus .no {
  background: var(--orange);
  color: #fff
}
.idx .tt {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  letter-spacing: .04em
}
.idx svg {
  width: 14px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: translate .3s
}
.idx a:hover svg {
  translate: 0 4px
}
.pts {
  position: relative;
  display: grid;
  gap: clamp(60px, 8vw, 110px);
  margin-top: clamp(80px, 10vw, 130px)
}
.pt {
  display: grid;
  grid-template-columns: 4.5fr 7.5fr;
  gap: clamp(28px, 5vw, 72px);
  row-gap: clamp(20px, 3vw, 40px);
  align-items: center
}
.pt:nth-child(even) .pt-fig {
  order: -1
}
.pt:nth-child(even) {
  grid-template-columns: 7.5fr 4.5fr
}
.pt-no {
  display: inline-block;
  margin: 0 0 12px;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(18px, 2.1vw, 26px);
  letter-spacing: .24em;
  line-height: 1.5;
  padding: .3em 1.2em .3em 1.4em;
  background: var(--ac);
  box-shadow: 5px 5px 0 rgba(255, 255, 255, .9);
  color: var(--ink)
}
.pt.bonus .pt-no {
  background: var(--orange);
  color: #fff
}
.pt h3 {
  margin: 0 0 14px;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.5;
  letter-spacing: .04em
}
.pt .sub {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.7;
  letter-spacing: .06em
}
.pt .sub::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: .62em;
  background: var(--ac)
}
.pt:nth-child(even) .sub::before {
  background: #fff
}
.pt.bonus .sub::before {
  background: #fff
}
.pt .d {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.95;
  max-width: 32em;
  opacity: .94
}
.pt .d-w {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.95;
  max-width: 100%;
  opacity: .94
}
.pt-fig {
  position: relative;
  /*margin: 8px*/
}
.paper {
  --th: #1741d9;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /*background: #fff;*/
  color: #0c1633;
  
}
.paper img.shadow {
  filter: drop-shadow(0 30px 32px rgba(0, 0, 0, .5))
}


.paper.bio {
  --th: #078550
}
.paper {
  display: block;
  /*background-color: #fff*/
}
.paper img {
  display: block;
  width: 100%;
  height: auto
}
.zoom {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  border: 0;
  background: var(--ac);
  color: var(--ink);
  font: 800 clamp(12px, 1.2vw, 14px)/1 var(--f-head);
  letter-spacing: .1em;
  padding: .85em 1.15em .85em 1em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
  transition: background-color .25s, translate .25s
}
.zoom svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 12;
  stroke-linecap: round;
  fill: none
}
.paper.bio ~ .zoom {
  background: #7be8a8;
  color: #0c1633
}
.zoom:hover, .zoom:focus-visible {
  background: var(--ink) !important;
  color: #fff !important;
  translate: 0 -2px
}
dialog.gallery {
  width: min(1000px, calc(100vw - 24px))
}
.sl {
  position: relative;
  overflow: hidden;
  background: #fff;
  transition: height .45s cubic-bezier(.77, 0, .18, 1)
}
.sl-track {
  display: flex;
  align-items: flex-start;
  transition: transform .6s cubic-bezier(.77, 0, .18, 1)
}
.sl-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-items: center
}
.stage {
  position: relative;
  width: 100%;
  min-height: 280px;
  padding: 32px 72px;
}
.stage .paper img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 140px);
  margin-inline: auto
}
.stage .paper {
  outline: 0;
  /*box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .5)*/
}
.bub {
  position: absolute;
  z-index: 2;
  width: min(460px, 100%);
  padding: 18px 26px 20px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.75;
  border: 2px solid var(--th);
  border-radius: 0;
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .4)
}
.bub::before, .bub::after {
  content: "";
  position: absolute;
  border-style: solid;
  border-color: transparent
}
.bub::before {
  top: 22px;
  left: -14px;
  border-width: 10px 14px 10px 0;
  border-right-color: var(--th)
}
.bub::after {
  top: 24px;
  left: -11px;
  border-width: 8px 12px 8px 0;
  border-right-color: #fff
}
.bub .av {
  position: absolute;
  top: 0;
  right: calc(100% + 22px);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .4), 0 0 0 3px #fff
}
.bub b {
  display: block;
  margin-bottom: 4px;
  color: var(--th);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .08em
}
.b-t1 {
  top: 8px;
  left: max(130px, 11%)
}
.b-b1, .b-b2 {
  bottom: 8px;
  left: 150px
}
.b-l1 {
  top: 16%;
  left: 130px
}
.bub.bub-under {
  position: relative;
  inset: auto;
  width: min(640px, calc(100% - 110px));
  margin: 28px auto 0;
  translate: 49px 0
}
.stage:has(.bub-under) .paper img {
  max-height: calc(100svh - 360px)
}
.sl-btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--text);
  color: var(--card);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .25s, color .25s
}
.sl-btn.prev {
  left: 12px
}
.sl-btn.next {
  right: 12px
}
.sl-btn:hover, .sl-btn:focus-visible {
  opacity: 0.8;
  color: #fff
}
.sl-btn svg {
  width: 12px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none
}
.sl-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 20px
}
.sl-dots button {
  width: 30px;
  height: 5px;
  border: 0;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background-color .25s
}
.sl-dots button.on {
  background: var(--th)
}
@media (max-width:760px) {
.stage {
    min-height: 0
  }
.bub.bub-under {
    width: auto;
    margin: 0 0 0 86px;
    translate: none
  }
.stage:has(.bub-under) .paper img {
    max-height: max(200px, calc(100svh - 340px))
  }
.stage .paper img {
    max-height: max(200px, calc(100svh - 340px))
  }
.stage {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 16px 6px
  }
.bub {
    position: relative;
    inset: auto;
    width: auto;
    margin-left: 86px
  }
.bub .av {
    width: 58px;
    height: 58px;
    right: calc(100% + 20px)
  }
.sl-btn {
    width: 40px;
    height: 40px;
    top: 112px
  }
}
.pt.pt-stack {
  display: block
}
.pt > .sec-head {
  grid-column: 1 / -1;
  order: -2;
  margin-bottom: clamp(0px, 1vw, 12px)
}
.pt > .sec-head h3 {
  margin: 0
}
.pt-stack .sec-head {
  margin-bottom: clamp(18px, 2.5vw, 32px);
  padding-bottom: 22px;
}
.pt-stack .sec-head h3 {
  margin: 0
}
.set {
  display: flex;
  gap: 20px; 
  width: 100%;
  max-width: 1200px; 
  margin: 0 auto 50px auto;    
}
.set-img {
  flex: 0 1 auto;
  max-width: 50%;
  padding: 20px;
}
.set-img img {
  display: block;
  filter: drop-shadow(0 30px 32px rgba(0, 0, 0, .5));
  max-width: 100%;
  height: auto;
}
.set-text {
 flex: 1;
  flex-shrink: 0; 
}
.set-text h4 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 14px;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.5;
  letter-spacing: .05em
}
.set-text h4::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: .62em;
  background: var(--ac)
}
.set-text p {
  margin: 0 0 26px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.95;
  opacity: .94
}
.pt.pt-solo {
  display: block
}
.pt-solo .pt-text {
  max-width: 48em;
  margin-bottom: clamp(36px, 5vw, 60px)
}
.pt-text-w {
  max-width: 100%;
  margin-bottom: clamp(18px, 2.5vw, 30px)
}
.pt-solo .pt-text .d {
  max-width: none
}
.solo-figs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 48px)
}
.pt-solo .pt-fig {
  order: 0 !important
}
.solo-figs .pt-fig p {
  position: relative;
  margin: 30px 0 0;
  padding: 20px 24px 20px 26px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 0;
  /*background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .07));
  -webkit-backdrop-filter: blur(14px) saturate(140%);*/
  backdrop-filter: blur(14px) saturate(140%);
  color: #fff;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.9;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .35)
}
.solo-figs .pt-fig p::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 0;
  background: linear-gradient(var(--ac), transparent);
  opacity: .9
}
.solo-figs .pt-fig p {
  padding-left: 40px
}
.solo-figs .pt-fig p::before {
  content: "";
  position: absolute;
  left: 38px;
  top: -10px;
  width: 18px;
  height: 18px;
  border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, .3);
  border-left: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .17);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  rotate: 45deg
}
@media (max-width:600px) {
.solo-figs {
    grid-template-columns: 1fr
  }
}
.digital {
  position: relative;
  margin-top: clamp(80px, 10vw, 80px);
  padding-top: clamp(40px, 5vw, 64px);
}
.digital-in {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(26px, 4.5vw, 64px);
}
.dg-cover {
  width: clamp(240px, 20vw, 390px);
  aspect-ratio: 1204/1474;
  margin: 8px;
  box-shadow: 0 50px 70px -24px rgba(0, 0, 0, .65);
  background: #000
}
.dg-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}
.dg h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.4;
  letter-spacing: .06em
}
.dg-prices {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .35)
}
.dg-prices li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .35)
}
.dg-prices .tg {
  min-width: 7.6em;
  text-align: center;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .14em;
  padding: .3em .9em;
  background: var(--ac);
  color: var(--ink)
}
.dg-prices li:nth-child(2) .tg {
  background: #fff
}
.dg-prices .pr {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: .04em
}
.dg-spec {
  margin: 0 0 16px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em
}
.dg-note {
  margin: 0 0 26px;
  padding: 12px 18px;
  border-left: 4px solid var(--ac);
  background: rgba(255, 255, 255, .1);
  font-size: 14px;
  line-height: 1.95;
}
.dg-note strong {
  font-family: var(--f-head);
  font-weight: 800;
  white-space: nowrap
}
a.btn {
  text-decoration: none
}
@media (max-width:700px) {
.digital-in {
    grid-template-columns: 1fr;
    justify-items: start
  }
.dg-cover {
   margin: 0 auto 16px auto;
  }
}
.site-foot {
  background: #fff;
  color: #4a5472;
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom, 0px))
}
.site-foot-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px
}
.foot-logo {
  display: block;
  line-height: 0
}
.foot-logo img {
  display: block;
  height: 40px;
  width: auto
}
.site-foot small {
  font-family: var(--f-ibm);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em
}
@media (max-width:600px) {
.site-foot-in {
    justify-content: center;
    text-align: center
  }
}
dialog {
  --bg: #fff;
  --card: #fff;
  --text: #0c1633;
  --muted: #4a5472;
  --line: rgba(12, 22, 51, .16);
  --chem-text: #1741d9;
  --bio-text: #08744a;
  color-scheme: light;
  --th: var(--blue);
  --thd: var(--blue-ink);
  --tx: var(--chem-text);
  padding: 0;
  border: 0;
  border-radius: 0;
  /*border-top: 6px solid var(--th);*/
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  overflow: auto;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45)
}
dialog[data-theme="bio"] {
  --th: #078550;
  --thd: var(--green-ink);
  --tx: var(--bio-text)
}
/* gallery modal: chem = deep blue, bio = deep green, matching the key visual */
dialog.gallery {
  --ac: #59c3ff;
  --mg1: #2a6cf0;
  --mg2: #0b2a7a;
  --mg3: #051650;
  background:
    radial-gradient(70% 55% at 50% 0%, color-mix(in srgb, var(--mg1) 80%, transparent), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, color-mix(in srgb, var(--ac) 22%, transparent), transparent 70%),
    linear-gradient(170deg, var(--mg2), var(--mg3))
}
dialog.gallery[data-theme="bio"] {
  --ac: #7be8a8;
  --mg1: #12a468;
  --mg2: #06623f;
  --mg3: #032c1e
}
dialog.gallery .sl {
  background: transparent
}
dialog.gallery .sl-btn {
  background: rgba(4, 18, 52, .6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 0;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px)
}
dialog.gallery .sl-btn:hover, dialog.gallery .sl-btn:focus-visible {
  opacity: 1;
  background: var(--ac);
  border-color: var(--ac);
  color: var(--ink)
}
dialog.gallery .sl-dots button {
  background: rgba(255, 255, 255, .28)
}
dialog.gallery .sl-dots button.on {
  background: var(--ac)
}
/* speech bubble: frosted dark glass, accent edge, sharp corner pointing at the avatar */
dialog.gallery .bub {
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 0;
  padding: 22px 30px 22px 34px;
  background: color-mix(in srgb, var(--mg3) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  color: rgba(255, 255, 255, .92);
  box-shadow: 0 26px 48px -16px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .22)
}
dialog.gallery .bub::before {
  display: block;
  top: 22px;
  bottom: 22px;
  left: 14px;
  width: 3px;
  height: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(var(--ac), transparent);
  rotate: none;
  box-shadow: none
}
dialog.gallery .bub::after {
  display: none
}
dialog.gallery .bub b {
  display: flex;
  align-items: center;
  gap: .7em;
  margin-bottom: 8px;
  color: var(--ac);
  font-size: 15px;
  letter-spacing: .14em
}
dialog.gallery .bub b::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ac) 70%, transparent), transparent)
}
dialog.gallery .bub .av {
  top: auto;
  bottom: 0;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .6), 0 0 0 3px rgba(255, 255, 255, .95), 0 0 0 6px color-mix(in srgb, var(--ac) 60%, transparent)
}
/* close button straddles the top-right corner of the frame */
dialog.gallery {
  overflow: visible
}
dialog.gallery .m-close {
  top: -24px;
  right: -24px;
  width: 54px;
  height: 54px;
  background: #fff;
  border: 3px solid var(--ac);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4)
}
@media (max-width:760px) {
dialog.gallery .m-close {
    top: -10px;
    right: -6px;
    width: 46px;
    height: 46px
  }
}
dialog.gallery .m-close:hover {
  background: var(--ac)
}
dialog::backdrop {
  background: rgba(5, 12, 40, .65)
}
dialog[open] {
  animation: mopen .35s ease
}
dialog[open]::backdrop {
  animation: fadeIn .3s ease
}
@keyframes mopen {
  from {
    opacity: 0;
    translate: 0 16px
  }
}
.m-head {
  position: relative;
  padding: 30px clamp(22px, 4vw, 40px) 18px
}
.m-head h2 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
  letter-spacing: .08em;
  padding-right: 48px
}
.m-head p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted)
}
.m-close {
  position: absolute;
  z-index: 6;
  top: 10px;
  right: 10px;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s
}
.m-close:hover {
  background: #e9edf5
}
.m-close svg {
  width: 52%;
  height: 52%;
  stroke: currentColor;
  stroke-width: 10;
  stroke-linecap: round;
  fill: none
}
.m-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 3.5vw, 40px);
  padding: 8px clamp(22px, 4vw, 40px) 28px;
  align-items: start
}
.m-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}
.m-photos .ph {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center
}
.m-photos .ph:first-child {
  grid-column: 1/-1;
  aspect-ratio: 16/10
}
.m-photos p {
  grid-column: 1/-1;
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted)
}
.m-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line)
}
.m-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line)
}
.m-list .n {
  font-family: var(--f-ibm);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: var(--tx)
}
.m-list strong {
  display: block;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .04em
}
.m-list span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8
}
.m-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(22px, 4vw, 40px) 24px;
  /*border-top: 1px solid var(--line)*/
}
.m-foot small {
  color: var(--muted);
  font-size: 12px
}
.btn2 {
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font: 700 14px var(--f-head);
  letter-spacing: .3em;
  padding: .7em 1.8em;
  cursor: pointer;
  transition: background .2s, color .2s
}
.btn2:hover {
  background: var(--text);
  color: var(--card)
}
@media (max-width:900px) {
.m-body, .pt, .idx ol, .set {
    grid-template-columns: 1fr
  }
.set {
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px
  }
.set-text {
    flex: none;
    margin-bottom: 32px
  }
.set-img {
    max-width: 100%;
    padding: 0 0 10px
  }
.set-img img {
    margin-inline: auto
  }
.pt:nth-child(even) .pt-fig {
    order: 0
  }
.pt:nth-child(even) {
    grid-template-columns: 1fr
  }
.pt-fig {
    margin-bottom: 10px
  }
.vert {
    display: none
  }
.m-list {
    padding-top: 6px
  }
}
@media (max-width:700px) {
.book-wrap {
    --bw: clamp(130px, min(42vw, 33vh), 380px)
  }
.badge {
    width: calc(var(--bw) * .3)
  }
}
@media (max-width:520px) {
.btn {
    letter-spacing: .16em
  }
}
@media (prefers-reduced-motion:reduce) {
html {
    scroll-behavior: auto
  }
*, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important
  }
}
.mt30 {
 margin-top: 30px !important;
}

/* tab content: sub headings flush with the body text, accent colour, larger; body text a little larger and airier */
.pt .sub, .set-text h4 {
  gap: 0;
  color: var(--ac);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.55;
  letter-spacing: .08em
}
.pt .sub::before, .set-text h4::before {
  display: none
}
.pt .d, .pt .d-w, .set-text p, .solo-figs .pt-fig p {
  font-size: clamp(17px, 1.65vw, 19px);
  letter-spacing: .06em
}

/* sub headings: white text with a thin underline and a short accent segment */
.pt .sub, .set-text h4 {
  position: relative;
  display: block;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: .55em;
  border-bottom: 1px solid rgba(255, 255, 255, .38)
}
.pt .sub::after, .set-text h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: clamp(48px, 6vw, 80px);
  height: 3px;
  background: var(--ac)
}

/* heading line breaks: keep phrases together (works with the <wbr> hints from script.js), balance the lines */
.pt h3, .pt .sub, .set-text h4 {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  text-wrap: balance
}
@supports (word-break: auto-phrase) {
.pt h3, .pt .sub, .set-text h4 {
    word-break: auto-phrase
  }
}
/* wrap a phrase in <span class="nw"> to keep it on one line */
.nw {
  white-space: nowrap
}

/* full-width background decoration: a large ring bleeding off the screen edge */
.panel {
  overflow-x: clip
}
.pt {
  position: relative
}
.pt::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none
}
/* a large ring that bleeds off the edge of the screen */
.pt::after {
  top: 50%;
  width: clamp(280px, 42vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 40%, transparent), color-mix(in srgb, var(--ac) 3%, transparent) 75%);
  translate: 0 -50%
}
.pt:nth-child(even)::after {
  background: linear-gradient(225deg, color-mix(in srgb, var(--ac) 40%, transparent), color-mix(in srgb, var(--ac) 3%, transparent) 75%)
}
/* no circle behind 「その5」 */
.pt.pt-stack::after {
  display: none
}
/* the circle fades in slowly when its block comes into view */
.js .pt::after {
  opacity: 0
}
.js .pt.ring-in::after {
  opacity: 1;
  animation: ringIn 2.8s ease-out both
}
@keyframes ringIn {
  from {
    opacity: 0;
    scale: .93
  }
  to {
    opacity: 1;
    scale: 1
  }
}
.pt:nth-child(odd)::after {
  right: calc(50% - 50vw - clamp(120px, 16vw, 240px))
}
.pt:nth-child(even)::after {
  left: calc(50% - 50vw - clamp(120px, 16vw, 240px))
}
@media (max-width:700px) {
.pt::after {
    display: none
  }
}

/* larger main headings in the tab content */
.pt h3 {
  font-size: clamp(26px, 3.4vw, 50px);
  line-height: 1.4
}
.pt .sub::after, .set-text h4::after {
  display: none
}

/* bonus label: white instead of orange */
.idx li.bonus .no {
  background: #fff;
  color: var(--ink)
}
.pt.bonus .pt-no {
  background: #fff;
  color: var(--ink);
  box-shadow: 5px 5px 0 rgba(255, 255, 255, .4)
}

/* background circles: soft edge, like a spotlight */
.pt::after, .pt:nth-child(even)::after {
  background: radial-gradient(circle closest-side, color-mix(in srgb, var(--ac) 42%, transparent) 0, color-mix(in srgb, var(--ac) 34%, transparent) 55%, color-mix(in srgb, var(--ac) 12%, transparent) 82%, transparent 100%)
}
.pt::after {
  width: clamp(320px, 48vw, 700px)
}

/* gallery modal: same colours as the tab content backgrounds */
dialog.gallery {
  background: radial-gradient(50% 60% at 8% 85%, rgba(89, 195, 255, .4), transparent 70%), linear-gradient(160deg, #0a4b65 0%, #004763 100%)
}
dialog.gallery[data-theme="bio"] {
  background: radial-gradient(50% 60% at 8% 85%, rgba(123, 232, 168, .32), transparent 70%), linear-gradient(160deg, #07784b 0%, #03301f 100%)
}
dialog.gallery {
  --mg3: #03354b
}
dialog.gallery[data-theme="bio"] {
  --mg3: #032c1e
}

/* bonus section (化学 おまけ): centred headings, body text in a narrower centred column */
.pt.bonus .pt-text-w {
  text-align: center
}
.pt.bonus .pt-no {
  margin-inline: auto
}
.pt.bonus .sub {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 1.2em
}
.pt.bonus .d-w {
  max-width: 44em;
  margin-inline: auto;
  text-align: left
}

/* bonus: label and title on one line, label as an outlined pill, body at full width again */
.pt.bonus .pt-no, .pt.bonus h3 {
  display: inline-block;
  vertical-align: middle;
  margin-block: 0 clamp(14px, 2vw, 24px)
}
.pt.bonus .pt-no {
  margin-inline: 0 clamp(12px, 1.6vw, 22px);
  padding: .3em 1.5em .3em 1.7em;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: clamp(15px, 1.6vw, 20px)
}
.pt.bonus .d-w {
  max-width: 100%;
  margin-inline: 0
}

/* bonus heading: bigger, with lines running out to both sides */
.bonus-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 32px);
  margin-bottom: clamp(8px, 1.4vw, 18px)
}
.bonus-head::before, .bonus-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7))
}
.bonus-head::after {
  background: linear-gradient(270deg, transparent, rgba(255, 255, 255, .7))
}
.pt.bonus .bonus-head .pt-no {
  margin: 0;
  padding: .35em 1.6em .35em 1.9em;
  border-width: 2px;
  border-color: #fff;
  font-size: clamp(17px, 2vw, 26px);
  white-space: nowrap
}
.pt.bonus .bonus-head h3 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 70px);
  line-height: 1.2;
  letter-spacing: .08em;
  white-space: nowrap
}
/* sub headings: line runs the full width, more space above and below */
.pt.bonus .sub {
  width: 100%;
  margin: clamp(30px, 4.4vw, 60px) 0 clamp(22px, 3vw, 38px);
  padding: 0 0 clamp(14px, 1.8vw, 22px);
  text-align: center
}
@media (max-width:420px) {
.bonus-head {
    gap: 10px
  }
.pt.bonus .bonus-head .pt-no {
    padding: .3em 1em .3em 1.2em;
    font-size: 15px
  }
.pt.bonus .bonus-head h3 {
    font-size: 26px;
    letter-spacing: .04em
  }
}

/* bonus sub headings: a full-width band between two thin lines */
.pt.bonus .sub {
  padding: clamp(14px, 1.8vw, 22px) 0;
  border-top: 1px solid rgba(255, 255, 255, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .13) 50%, rgba(255, 255, 255, 0));
  letter-spacing: .22em;
  text-indent: .22em
}

/* larger 「おまけ」 label */
.pt.bonus .bonus-head .pt-no {
  font-size: clamp(20px, 2.7vw, 36px);
  letter-spacing: .3em
}
@media (max-width:420px) {
.pt.bonus .bonus-head .pt-no {
    font-size: 17px;
    letter-spacing: .2em
  }
}

/* more space above the second sub heading */
.pt.bonus .sub.mt30 {
  margin-top: clamp(64px, 8vw, 112px) !important
}

/* opening of each tab: a soft spotlight circle behind the heading */
.tab-head {
  position: relative
}
.tab-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: calc(50% - 50vw - clamp(120px, 16vw, 240px));
  width: clamp(320px, 48vw, 700px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, color-mix(in srgb, var(--ac) 42%, transparent) 0, color-mix(in srgb, var(--ac) 34%, transparent) 55%, color-mix(in srgb, var(--ac) 12%, transparent) 82%, transparent 100%);
  translate: 0 -50%;
  pointer-events: none
}
.js .tab-head::after {
  opacity: 0
}
.js .tab-head.ring-in::after {
  opacity: 1;
  animation: ringIn 2.8s ease-out both
}
@media (max-width:700px) {
.tab-head::after {
    display: none
  }
}
/* the outlined English word starts below the tab buttons so the two never overlap */
.word {
  top: clamp(104px, 9vw, 132px)
}

/* the opening spotlight sits behind the left side of the heading */
.tab-head::after {
  right: auto;
  left: calc(50% - 50vw - clamp(120px, 16vw, 240px))
}

/* おまけ: smaller comments under the images, no diamond and no left line */
.solo-figs .pt-fig p {
  padding: 18px 24px;
  font-size: clamp(13px, 1.25vw, 15px);
  letter-spacing: .05em;
  line-height: 1.85
}
.solo-figs .pt-fig p::before, .solo-figs .pt-fig p::after {
  display: none
}

/* footer: logo on the left, copyright centred */
.site-foot-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px
}
.site-foot-in .foot-logo {
  justify-self: start
}
.site-foot-in small {
  grid-column: 2;
  text-align: center
}
@media (max-width:600px) {
.site-foot-in {
    grid-template-columns: 1fr;
    justify-items: center
  }
.site-foot-in .foot-logo {
    justify-self: start
  }
.site-foot-in small {
    grid-column: 1
  }
}

/* tab switch buttons: no outer frame, line or background */
.tabbar {
  background: none;
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none
}

/* the opening spotlight is centred on the heading */
.tab-head::after {
  left: calc(50% - 50vw - clamp(30px, 4vw, 80px))
}

/* modal comment: no left line; the heading is a small speech bubble of its own */
dialog.gallery .bub::before {
  display: none
}
dialog.gallery .bub {
  padding-left: 30px
}
dialog.gallery .bub b {
  position: relative;
  display: block;
  width: fit-content;
  gap: 0;
  margin-bottom: 16px;
  padding: .3em 1em .3em 1.1em;
  background: var(--ac);
  color: var(--ink);
  letter-spacing: .1em
}
dialog.gallery .bub b::after {
  content: "";
  flex: none;
  position: absolute;
  left: 18px;
  top: 100%;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: var(--ac);
  border-bottom: 0;
  background: none
}

/* modal comment: the avatar sits at the top and the heading bubble comes out of it */
dialog.gallery .bub .av {
  top: 4px;
  bottom: auto
}
dialog.gallery .bub b {
  margin-left: -30px;
  margin-bottom: 14px;
  padding: .3em 1.1em .3em 1.2em
}
dialog.gallery .bub b::after {
  left: -8px;
  top: 50%;
  translate: 0 -50%;
  border: 8px solid transparent;
  border-right-color: var(--ac);
  border-left: 0
}
@media (max-width:760px) {
dialog.gallery .bub .av {
    top: 8px
  }
}

/* modal comment: a small shadow that stays inside the frame */
dialog.gallery .bub {
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .22)
}
dialog.gallery .bub .av {
  box-shadow: 0 5px 10px -6px rgba(0, 0, 0, .6), 0 0 0 3px rgba(255, 255, 255, .95), 0 0 0 6px color-mix(in srgb, var(--ac) 60%, transparent)
}
dialog.gallery .bub b {
  margin-left: -31px
}

/* close button: no outer line, and kept inside the screen on small widths */
dialog.gallery .m-close {
  top: -10px;
  right: -10px;
  border: 0;
  outline: 0
}
dialog.gallery .m-close:focus-visible {
  outline: 0
}
@media (max-width:760px) {
dialog.gallery .m-close {
    top: -6px;
    right: -4px
  }
}

/* modal comment, design B: a light card, the heading tag sits on its top edge, the tail points at the avatar */
dialog.gallery .bub {
  padding: 36px 30px 22px 30px;
  border: 0;
  background: #fff;
  color: #1d2744;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5)
}
dialog.gallery .bub::before {
  display: block;
  top: 24px;
  bottom: auto;
  left: -8px;
  width: 16px;
  height: 16px;
  border: 0;
  background: #fff;
  rotate: 45deg
}
dialog.gallery .bub b {
  position: absolute;
  top: -15px;
  left: 24px;
  margin: 0;
  padding: .25em 1em .25em 1.1em;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  letter-spacing: .12em
}
dialog.gallery .bub b::after {
  display: none
}

/* modal: wider on large screens, solid dark background for both subjects */
dialog.gallery {
  width: min(1280px, calc(100vw - 24px));
  background: #0c1633 !important
}
@media (min-width:1500px) {
dialog.gallery {
    width: min(1440px, calc(100vw - 120px))
  }
}

/* modal comment: avatar inside the frame, clear outline against the paper */
dialog.gallery .bub {
  width: min(600px, 100%);
  padding: 38px 30px 24px 118px;
  border: 2px solid #0c1633;
  /*box-shadow: 0 0 0 3px var(--ac), 0 6px 14px -6px rgba(0, 0, 0, .6)*/
}
dialog.gallery .bub::before {
  display: none
}
dialog.gallery .bub .av {
  top: 24px;
  bottom: auto;
  right: auto;
  left: 20px;
  width: 76px;
  height: 76px;
  box-shadow: 0 0 0 1px var(--ink)
}
dialog.gallery .bub b {
  left: 118px
}
dialog.gallery .b-t1 {
  left: max(70px, 6%)
}
dialog.gallery .b-b1, dialog.gallery .b-b2 {
  left: 72px
}
dialog.gallery .b-l1 {
  left: 72px
}
dialog.gallery .bub.bub-under {
  width: min(780px, 100%);
  margin: 28px auto 0;
  translate: none
}
@media (max-width:760px) {
dialog.gallery .bub, dialog.gallery .bub.bub-under {
    width: auto;
    margin: 0;
    padding: 36px 16px 20px 84px
  }
dialog.gallery .bub .av {
    width: 58px;
    height: 58px;
    left: 14px;
    top: 22px
  }
dialog.gallery .bub b {
    left: 84px
  }
dialog.gallery .b-b1, dialog.gallery .b-b2 {
  left: 0px
}
}

/* modal comment: heading tag sits inside the frame, above the text */
dialog.gallery .bub {
  padding-top: 24px
}
dialog.gallery .bub b {
  position: static;
  display: block;
  width: fit-content;
  margin: 0 0 10px
}
dialog.gallery .bub .av {
  top: 22px
}
@media (max-width:760px) {
dialog.gallery .bub {
    padding-top: 20px
  }
dialog.gallery .bub b {
    left: auto
  }
dialog.gallery .bub .av {
    top: 20px
  }
}

/* key visual side copy: smaller so it never wraps on laptop screens */
.vert.l {
  font-size: clamp(11px, 1.05vw, 20px);
  letter-spacing: .4em;
  white-space: nowrap
}
.vert.r {
  font-size: clamp(12px, 1.2vw, 22px);
  letter-spacing: .45em;
  white-space: nowrap
}

/* background spotlights: fixed size and anchored to the content edge / top of the block, so they do not move when the window width changes */
.pt::after {
  top: 230px;
  width: 1240px
  /*width: 620px*/
}
.pt:nth-child(odd)::after {
  left: auto;
  right: -310px
}
.pt:nth-child(even)::after {
  right: auto;
  left: -310px
}
#chem-p6.pt::after {
  left: auto;
  right: -40px
}

.tab-head::after {
  top: 50%;
  width: 1240px;
  right: auto;
  left: -440px
}
@media (max-width:900px) {
.pt::after, .tab-head::after {
    width: 460px
  }
.pt:nth-child(odd)::after {
    right: -230px
  }
.pt:nth-child(even)::after {
    left: -230px
  }
.tab-head::after {
    left: -170px
  }
}

/* digital edition heading sits above the two columns */
.dg-h {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.4;
  letter-spacing: .06em
}

/* 「紙面を拡大して見る」: default and hover colours swapped */
.zoom, .paper.bio ~ .zoom {
  background: var(--ink);
  color: #fff
}
.zoom:hover, .zoom:focus-visible, .paper.bio ~ .zoom:hover, .paper.bio ~ .zoom:focus-visible {
  background: var(--ac) !important;
  color: var(--ink) !important
}
.paper.bio ~ .zoom:hover, .paper.bio ~ .zoom:focus-visible {
  background: #7be8a8 !important
}

/* the catch copy stays hidden until script.js has split it into characters, so it never flashes before its animation */
.js .title:not(.split) {
  visibility: hidden
}

/* tab switch buttons no longer follow the scroll: they stay at the top of the tab content */
.tabbar {
  position: absolute
}

/* revision point labels: white outline so they stand out from the background */
.idx .no,
.idx li.bonus .no {
  border: 2px solid #fff;
  /*box-shadow: 0 0 0 1px rgba(12, 22, 51, .35)*/
}

/* hero text scales down smoothly with the viewport (no fixed floor that stops shrinking) */
.title {
  font-size: clamp(12px, 4.6vw, 62px)
}
.cap-book b {
  font-size: clamp(11px, 2vw, 22px)
}

/* trademark note under the body text: slightly smaller than the body, with space above */
.pt .d > span {
  display: block;
  margin-top: 1em;
  font-size: .85em;
  line-height: 1.7
}

/* digital edition: the spec sits above the prices; each price row carries its own detail button */
.dg-spec {
  margin: 0 0 12px
}
.dg-prices li {
  flex-wrap: wrap
}
.dg-prices .btn {
  margin: 0 0 0 auto
}
.digital {
  padding-top: 0
}
.dg-prices .pr {
  flex: 1
}
.dg-prices .btn {
  font-size: 14px;
  letter-spacing: .12em;
  padding: .6em 1.1em .6em 1.3em;
  gap: 1em
}
.dg-prices .btn svg {
  width: 26px
}
@media (max-width:600px) {
.dg-prices .pr {
    flex-basis: 100%
  }
.dg-prices .btn {
    margin: 0
  }
}
.dg-prices .btn {
  min-width: 17em;
  justify-content: space-between
}
.dg-prices .btn {
  width: 19em;
  min-width: 0;
  max-width: 100%
}

/* hero: the catch copy also shrinks with the screen height so the book covers can stay larger */
.title {
  font-size: clamp(12px, min(6.6vw, 7.5svh), 62px);
}
