@import "https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700;900&display=swap";
:root {
  --nv: #1f2f55;
  --nv2: #2f4f86;
  --nr: #c8433e;
  --nw: #f4f6fa;
}
.nb-nav {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  top: 0;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: rgba(20, 30, 56, .92);
  color: #fff;
  font-family: "Zen Maru Gothic", sans-serif;
  backdrop-filter: blur(6px);
}
.nb-nav a,
.nb-nav button,
body.book .nb-nav a {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.nb-nav .home {
  font-size: 14px;
  opacity: .85;
  padding-left: 4px;
}
.nb-nav .medal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #ffd2cf;
  margin-right: auto;
  padding: 0 8px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.nb-nav .medal i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--nr);
  background: #fff;
}
.nb-nav button[aria-current=page] {
  background: #fff;
  color: var(--nv);
}
.nb-nav .adult,
body.book .nb-nav .adult {
  background: var(--nr);
  color: #fff;
}
.nb-nav .adult:hover {
  filter: brightness(1.08);
}
.nb-nav .todai,
body.book .nb-nav .todai {
  border: 2px solid #fff;
  color: #fff;
}
.nb-nav .todai:hover {
  background: rgba(255, 255, 255, .12);
}
.nb-nav a,
.nb-nav button {
  white-space: nowrap;
}
@media (max-width: 420px) {
  .nb-nav {
    gap: 3px;
    padding: 0 6px;
  }
  .nb-nav a,
  .nb-nav button {
    padding: 5px 7px;
    font-size: 12px;
    min-height: 36px;
  }
  .nb-nav .adult .arr {
    display: none;
  }
}
@media (max-width: 700px) {
  .nb-nav .medal span,
  .nb-nav .home span,
  .nb-nav .long {
    display: none;
  }
  .nb-nav a,
  .nb-nav button {
    font-size: 13.5px;
    padding: 6px 9px;
  }
}
@media (max-width: 420px) {
  .nb-nav .medal {
    display: none;
  }
  .nb-nav {
    justify-content: space-between;
  }
}
.nb3d {
  position: fixed;
  inset: 54px 0 0 0;
  z-index: 20;
  background: #0d1530;
  color: #fff;
  font-family:
    "Zen Maru Gothic",
    "Hiragino Sans",
    sans-serif;
}
.nb3d[hidden] {
  display: none;
}
.nb3d .stage {
  position: absolute;
  inset: 0 360px 0 0;
}
.nb3d .stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.nb3d .stage canvas:active {
  cursor: grabbing;
}
.nb3d .labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.nb3d .labels span {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(10, 18, 40, .72);
  color: #fff;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .25);
}
.nb3d .labels span.hot {
  background: var(--nr);
  border-color: #fff;
}
.nb3d .title {
  position: absolute;
  left: 18px;
  top: 14px;
  pointer-events: none;
  max-width: min(560px, 60%);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.nb3d .title .eb {
  font-size: 13px;
  color: #ffd2cf;
  letter-spacing: .1em;
}
.nb3d .title h1 {
  margin: 2px 0 0;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.3;
  font-weight: 900;
}
.nb3d .tip {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-size: 13px;
  color: #cfd8ee;
  pointer-events: none;
}
.nb3d .dock {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  overflow: auto;
  padding: 18px 18px 24px;
  background: linear-gradient(#fbfcff, #eef2fa);
  color: #1d2a3a;
}
.nb3d .dock .eb {
  font-size: 12px;
  font-weight: 700;
  color: #556274;
  letter-spacing: .12em;
}
.nb3d .acts {
  display: grid;
  gap: 10px;
  margin: 8px 0 14px;
}
.nb3d .acts button {
  font: inherit;
  font-weight: 900;
  font-size: 17px;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--nv2);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 0 #1b3359;
  min-height: 54px;
}
.nb3d .acts button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1b3359;
}
.nb3d .acts button.sub {
  background: #fff;
  color: var(--nv2);
  border: 2px solid var(--nv2);
  box-shadow: 0 4px 0 #c6d2e6;
}
.nb3d .acts button.red {
  background: var(--nr);
  box-shadow: 0 4px 0 #8e2b27;
}
.nb3d .acts button i {
  font-style: normal;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .2);
  font-size: 15px;
}
.nb3d .acts button.sub i {
  background: #e6edf8;
}
.nb3d .ctl {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 14px;
}
.nb3d .ctl label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nb3d .ctl input[type=range] {
  flex: 1;
  accent-color: var(--nv2);
  height: 30px;
}
.nb3d .ctl output {
  min-width: 4.5em;
  font-weight: 700;
  color: var(--nv2);
}
.nb3d .readout {
  display: block;
  background: #fff;
  border: 2px solid #1d2a3a;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.7;
  min-height: 5.2em;
}
.nb3d .readout b {
  color: var(--nr);
}
.nb3d .meter {
  display: flex;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 2px;
  background: #dde3ea;
}
.nb3d .meter i {
  display: block;
  height: 100%;
  transition: width .2s;
}
.nb3d .next {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.nb3d .next a,
.nb3d .next button {
  font: inherit;
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  min-height: 48px;
}
.nb3d .next .book {
  background: #5aa02c;
  color: #fff;
  border: 0;
  box-shadow: 0 3px 0 #2f5c14;
}
.nb3d .next .adult {
  background: #fff;
  color: var(--nr);
  border: 2px solid var(--nr);
}
@media (max-width: 860px) {
  .nb3d .stage {
    inset: 0 0 40% 0;
  }
  .nb3d .dock {
    top: auto;
    left: 0;
    height: 40%;
    width: auto;
    border-radius: 18px 18px 0 0;
    padding: 14px 14px 20px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
  }
  .nb3d .acts {
    grid-template-columns: 1fr 1fr;
  }
  .nb3d .acts button {
    font-size: 15px;
    padding: 10px 12px;
    min-height: 48px;
  }
  .nb3d .title {
    max-width: 92%;
  }
  .nb3d .title h1 {
    font-size: 20px;
  }
  .nb3d .tip {
    display: none;
  }
}
body.nb-3d {
  overflow: hidden;
}
body.nb-3d article.page {
  visibility: hidden;
}
body.nb-book {
  padding-top: 54px;
}
.further .card.adultcard {
  border-color: #c8433e;
}
.further .card.adultcard h2 {
  color: #c8433e;
}
.nb-nav rt {
  display: none;
}
.nb-nav .short {
  display: none;
}
@media (max-width: 700px) {
  .nb-nav .short {
    display: inline;
  }
}
.nb3d.light {
  background: #eaf1fa;
}
.nb3d.light .title {
  text-shadow: 0 1px 0 #fff, 0 0 12px rgba(255, 255, 255, .9);
  color: #1d2a3a;
}
.nb3d.light .title .eb {
  color: #c8433e;
}
.nb3d.light .tip {
  color: #556274;
}
.page .motto canvas {
  display: block;
  width: 100%;
}
.nb-nav {
  height: 60px;
  background: #fff;
  color: #314768;
  border-bottom: 1px solid #d8e3ef;
  backdrop-filter: none;
}
.nb-nav a,
.nb-nav button,
body.book .nb-nav a {
  color: #314768;
  min-height: 44px;
}
.nb-nav .medal {
  color: #925268;
}
.nb-nav button[aria-current=page] {
  background: #e7ecf8;
  color: #344c80;
}
.nb-nav .todai,
body.book .nb-nav .todai {
  border-color: #b3c4de;
  color: #344c80;
}
.nb-nav rt {
  display: ruby-text;
  font-size: 9px;
}
.nb3d,
.nb3d.light {
  inset: 60px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: auto auto minmax(260px, 1fr);
  gap: 0 20px;
  padding: 16px max(16px, calc((100vw - 1360px)/2)) 18px;
  background: #f1f5fc;
  color: #294360;
  overflow: hidden;
}
.nb3d .title,
.nb3d.light .title {
  position: static;
  grid-column: 1/-1;
  max-width: none;
  text-shadow: none;
  pointer-events: auto;
  padding: 0 0 12px;
  color: #294360;
}
.nb3d .title .eb,
.nb3d.light .title .eb {
  color: #a34e70;
  font-size: 12px;
  letter-spacing: .09em;
}
.nb3d .title h1 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.5;
  margin: 2px 0 0;
}
.nb-view-tools {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #cddced;
  border-radius: 20px 20px 0 0;
}
.nb-view-tools span {
  margin-right: auto;
  font-size: 12px;
}
.nb-view-tools button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #d4deed;
  border-radius: 10px;
  background: #f4f7fd;
  color: #344c80;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.nb-view-tools button:last-child {
  font-size: 12px;
  padding: 0 10px;
}
.nb3d .stage {
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: 3;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #cddced;
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: #eaf1fa;
}
.nb3d .stage canvas {
  position: absolute;
  inset: 0;
}
.nb3d .tip {
  display: none;
}
.nb3d .labels span {
  background: #ffffffed;
  color: #284968;
  border: 1px solid #aac4da;
  box-shadow: 0 2px 5px #29436015;
}
.nb3d .labels span.hot {
  background: #c84353;
  color: #fff;
}
.nb3d .dock {
  position: static;
  inset: auto;
  grid-column: 2;
  grid-row: 2/4;
  width: auto;
  height: auto;
  min-height: 0;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid #d7e1ee;
  box-shadow: none;
  padding: 14px;
  background:
    linear-gradient(
      150deg,
      #fff,
      #edf0fb);
}
.nb3d .acts {
  gap: 9px;
}
.nb3d .acts button {
  font-size: 15px;
  min-height: 48px;
  padding: 10px 12px;
  line-height: 1.6;
}
.nb3d .readout {
  font-size: 14px;
  border: 1px solid #b8cce0;
  padding: 10px 12px;
  min-height: 0;
}
.nb3d .next .book {
  background: #257f95;
  box-shadow: 0 3px 0 #1a5f70;
}
.nb3d .next button,
.nb3d .next a {
  font-size: 13px;
  border-radius: 14px;
  min-height: 48px;
}
.nb3d .ctl input[type=range] {
  min-height: 44px;
  min-width: 40px;
}
.nb3d button:focus-visible,
.nb-nav a:focus-visible,
.nb-nav button:focus-visible {
  outline: 3px solid #9566b5;
  outline-offset: 2px;
}
body.nb-book {
  padding-top: 64px;
}
@media (max-width: 860px) {
  .nb-nav {
    height: 58px;
    padding: 0 6px;
    gap: 2px;
  }
  .nb-nav a,
  .nb-nav button,
  body.book .nb-nav a {
    font-size: 11px;
    padding: 5px 6px;
    min-height: 44px;
  }
  .nb-nav .home,
  body.book .nb-nav .home {
    font-size: 12px;
  }
  .nb3d,
  .nb3d.light {
    inset: 58px 0 0;
    display: block;
    overflow: auto;
    padding: 12px 10px 24px;
  }
  .nb3d .title {
    padding: 0 3px 10px;
  }
  .nb3d .title h1 {
    font-size: 21px;
    line-height: 1.5;
  }
  .nb3d .title .eb {
    font-size: 11px;
  }
  .nb-view-tools {
    padding: 5px 7px;
    gap: 4px;
  }
  .nb-view-tools span {
    font-size: 11px;
  }
  .nb-view-tools button:last-child {
    font-size: 11px;
    padding: 0 7px;
  }
  .nb3d .stage {
    height: clamp(290px, 39dvh, 380px);
  }
  .nb3d .dock {
    margin-top: 12px;
    padding: 12px;
    overflow: visible;
  }
  .nb3d .acts {
    grid-template-columns: 1fr 1fr;
  }
  .nb3d .acts button {
    font-size: 13px;
    padding: 8px;
    gap: 5px;
  }
  .nb3d .acts button:first-child {
    grid-column: 1/-1;
    font-size: 16px;
  }
  .nb3d .acts button i {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .nb3d .next {
    margin-top: 12px;
  }
}
@media (max-height: 560px) and (min-width: 861px) {
  .nb3d {
    overflow: auto;
    grid-template-rows: auto auto 360px;
  }
  .nb3d .dock {
    overflow: visible;
  }
}
.nb3d .labels span {
  width: max-content;
  max-width: calc(100% - 12px);
  white-space: normal;
  line-height: 1.5;
}
@media (min-width: 861px) and (max-height: 760px) {
  .nb3d .acts {
    grid-template-columns: 1fr 1fr;
  }
  .nb3d .acts button {
    font-size: 13px;
    padding: 8px;
    gap: 5px;
  }
  .nb3d .acts button:first-child {
    grid-column: 1/-1;
    font-size: 15px;
  }
  .nb3d .acts button i {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .nb3d .next {
    margin-top: 12px;
    gap: 8px;
  }
  .nb3d .ctl {
    font-size: 12px;
    margin-bottom: 10px;
  }
}
.nb-nav .home,
body.book .nb-nav .home {
  min-width: 44px;
  justify-content: center;
}
.nb3d .acts {
  grid-template-columns: minmax(0, 1fr);
}
.nb3d .acts button,
.nb3d .next button,
.nb3d .next a,
.nb3d .labels span,
.nb3d .title h1 {
  white-space: nowrap;
}
.nb3d .ctl label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  white-space: nowrap;
}
.nb3d .ctl input[type=range] {
  width: 100%;
  margin: 0;
}
.nb3d .readout {
  word-break: auto-phrase;
  text-wrap: balance;
}
.nb-nav {
  height: 44px;
}
.nb-nav a,
.nb-nav button,
body.book .nb-nav a {
  min-height: 36px;
}
.nb3d,
.nb3d.light {
  inset-block-start: 44px;
}
.nb3d .title {
  padding-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.nb3d .title h1 {
  font-size: 24px;
  margin: 0;
}
body.nb-book {
  padding-top: 54px;
}
@media (max-width: 860px) {
  .nb-nav {
    height: 48px;
  }
  .nb3d,
  .nb3d.light {
    inset-block-start: 48px;
  }
  .nb3d .title {
    display: block;
  }
  .nb3d .title h1 {
    font-size: 16px;
  }
  .nb3d .acts button {
    font-size: 14px;
    padding: 10px;
  }
  body.nb-book {
    padding-top: 56px;
  }
}
.nb-nav {
  height: 44px;
}
.nb-nav a,
.nb-nav button,
body.book .nb-nav a {
  box-sizing: border-box;
  height: 34px;
  min-height: 0;
  padding: 0 14px;
  line-height: 1.1;
}
.nb-nav .todai,
body.book .nb-nav .todai {
  border-width: 1.5px;
}
.nb-nav rt {
  font-size: 8px;
  line-height: 1;
}
