@charset "UTF-8";
:root {
  --font-base: "dnp-shuei-gothic-gin-std", sans-serif;
  --color-text: #211815;
  --home-blue: #536b7d;
  --home-blue-hover: #405767;
  --header: 80px;
}
.header,
.footer {
  font-family: var(--font-base);
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: normal;
}
.header *,
.footer * {
  box-sizing: border-box;
}
.header a,
.footer a {
  color: inherit;
  text-decoration: none;
}
.header ul,
.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer {
  padding: 0;
  text-align: left;
  border: 0;
  background-image: none;
}
.header {
  position: -webkit-sticky;

  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: #fff;
}
.header__inner {
  width: 100%;
  height: 80px;
  padding-left: max(20px, calc((100% - 1400px) / 2));
  margin-inline: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.logo-contents {
  display: flex;
  align-items: center;
  gap: 46px;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 46px;
}
.nav__contents {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__logo img {
  width: 60px;
  height: auto;
}
.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  font-size: 24px;
}
.header__logo-text span {
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.18em;
}
.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background-color: #9f7865;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  height: 100%;
  border-radius: 0;
}
.header__cta:hover {
  background-color: #87634f;
}
.nav__item a {
  position: relative;
  display: inline-block;
  padding-block: 8px;
  transition: color 0.3s ease;
}
.nav__item a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background-color: #9f7865;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.header__cta {
  transition: background-color 0.35s ease;
}
@media (hover: hover) {
  .nav__item a:hover {
    color: #9f7865;
  }
  .nav__item a:hover::after {
    transform: scaleX(1);
  }
  .header__cta:hover {
    background-color: #80604f;
  }
}
.nav__item a:focus-visible::after {
  transform: scaleX(1);
}
.header__cta:focus-visible,
.nav__item a:focus-visible {
  outline: 2px solid #9f7865;
  outline-offset: 4px;
}
.footer-sea {
  height: clamp(300px, 29vw, 500px);
  background-image: url("../images/common/footer-sea.png");
  background-size: cover;
  background-position: center 62%;
  background-attachment: fixed;
}
.footer {
  background-color: #536b7d;
  color: #fff;
}
.footer__inner {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
  padding: 28px 0 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;

  -moz-column-gap: 40px;

  column-gap: 40px;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  width: -webkit-fit-content;

  width: -moz-fit-content;

  width: fit-content;
}
.footer__logo img {
  width: 42px;
  height: 42px;

  -o-object-fit: contain;

  object-fit: contain;
}
.footer__logo-text {
  display: flex;
  flex-direction: column;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0.12em;
}
.footer__logo-text small {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-align: center;
}
.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 8px;
}
.footer__nav a {
  font-size: 14px;
  letter-spacing: 0.08em;
}
.footer__nav a:hover {
  opacity: 0.7;
}
.footer__copyright {
  grid-column: 1 / -1;
  margin-top: 42px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.header__menu {
  display: none;
}
@media screen and (max-width: 767px) {
  .header__inner {
    position: relative;
    height: 76px;
    min-height: 76px;
    padding: 10px 20px;
    flex-wrap: nowrap;
    gap: 16px;
  }
  .logo-contents {
    width: auto;
    padding: 0;
    gap: 0;
  }
  .header__logo {
    gap: 8px;
  }
  .header__logo img {
    width: 40px;
  }
  .header__logo-text span {
    font-size: 9px;
  }
  .header__menu {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
  }
  .header__menu span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 1px;
    background: currentColor;
    transition: top 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  }
  .header__menu span:nth-child(1) {
    top: 14px;
  }
  .header__menu span:nth-child(2) {
    top: 22px;
  }
  .header__menu span:nth-child(3) {
    top: 30px;
  }
  .header__menu[aria-expanded="true"] span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
  }
  .header__menu[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .header__menu[aria-expanded="true"] span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
  }
  .header__menu:focus-visible {
    outline: 2px solid #9f7865;
    outline-offset: 3px;
  }
  .header .nav__contents {
    position: fixed;
    inset: 76px 0 0;
    display: none;
    width: 100%;
    height: calc(100dvh - 76px);
    max-height: none;
    padding: 32px 28px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -ms-scroll-chaining: none;
    overscroll-behavior: contain;
    align-items: stretch;
    border-top: 1px solid #e8e3dd;
    background: #faf9f5;
  }
  .header .nav__contents.is-open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
  }
  .header .nav__list {
    width: 100%;
    flex: none;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  .header .nav__item {
    border-bottom: 1px solid #e8e3dd;
  }
  .header .nav__item a {
    display: block;
    padding: 20px 4px;
    text-align: center;
    font-size: 17px;
    letter-spacing: 0.12em;
  }
  .header .header__cta {
    width: 100%;
    height: auto;
    min-height: 52px;
    flex-shrink: 0;
    padding: 14px 20px;
    font-size: 14px;
  }
  body:has(.header__menu[aria-expanded="true"]) {
    overflow: hidden;
  }
  .header:has(.header__menu[aria-expanded="true"]) {
    position: fixed;
    inset: 0 0 auto;
    height: 76px;
  }
  body:has(.header__menu[aria-expanded="true"]) .fv {
    margin-bottom: 76px;
  }
  @media (prefers-reduced-motion: reduce) {
    .header__menu span {
      transition: none;
    }
  }
  .footer-sea {
    height: 240px;
    background-attachment: scroll;
    background-position: center;
  }
  .footer__inner {
    width: calc(100% - 48px);
    padding: 32px 0 24px;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .footer__logo {
    justify-self: center;
  }
  .footer__nav ul {
    justify-content: center;
    gap: 16px 24px;
    padding-top: 0;
  }
  .footer__nav a {
    font-size: 12px;
  }
  .footer__copyright {
    margin-top: 10px;
    font-size: 10px;
  }
  @media screen and (max-width: 359px) {
    .nav__item a,
    .header__cta {
      font-size: 9px;
    }
  }
}
@media screen and (max-width: 767px) and (max-height: 600px) {
  .header .nav__contents.is-open {
    justify-content: flex-start;
  }
}
body:has(.header__menu[aria-expanded="true"]) .floating-cta {
  display: none;
}
@media (max-width: 767px) {
  .footer {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  }
}
.header__logo {
  display: block;
  width: 280px;
}
.header__logo img {
  width: 100%;
  height: auto;
}
.logo-contents {
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .header__logo {
    width: 210px;
  }
}
.footer .footer__logo {
  display: block;
  width: min(100%, 300px);
  margin-inline: auto;
}
.footer .footer__logo img {
  width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .footer .footer__logo {
    width: min(100%, 240px);
  }
}
.footer {
  position: relative;
  overflow: visible;
}
.footer::before {
  content: "";
  position: absolute;
  top: -39px;
  left: 0;

  width: 100%;
  height: 40px;

  background-color: #536b7d;

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C180 0 260 0 440 35 S700 70 900 35 S1200 0 1440 30 L1440 80 L0 80 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C180 0 260 0 440 35 S700 70 900 35 S1200 0 1440 30 L1440 80 L0 80 Z'/%3E%3C/svg%3E");

  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  pointer-events: none;
}
@media (max-width: 767px) {
  .footer::before {
    top: -23px;
    height: 24px;
  }
}
.footer-sea {
  height: clamp(420px, 65svh, 720px);
}
.footer__inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;

  padding: 40px max(20px, calc((100% - 1400px) / 2)) 24px;
}
.footer .footer__logo {
  justify-self: start;
  margin-inline: 0;
}
@media (max-width: 767px) {
  .footer-sea {
    height: 380px;
  }
  .footer__inner {
    padding: 32px 20px 24px;
  }
  .footer .footer__logo {
    justify-self: start;
    margin-inline: 0;
  }
}
.nav__item a::after {
  background-color: var(--home-blue);
}
.footer,
.footer::before {
  background-color: var(--home-blue);
}
@media (hover: hover) {
  .header__cta:hover {
    background-color: var(--home-blue-hover);
  }
  .nav__item a:hover {
    color: var(--home-blue);
  }
}
.header__cta:focus-visible,
.nav__item a:focus-visible,
.header__menu:focus-visible {
  outline-color: var(--home-blue);
}
/* story側の汎用指定から共通パーツを守る */
.header .header__cta {
  color: #fff;
  background-color: #536b7d;
}
@media (hover: hover) {
  .header .header__cta:hover {
    background-color: #405767;
  }
}
/* 以前の章IDによる色指定より優先 */
.story-reader .book > .book-page:nth-child(odd) {
  --page-color: #eaf0f3;
}
.story-reader .book > .book-page:nth-child(even) {
  --page-color: #dce6ec;
}
.story-reader .book .book-page,
.paper-turn .book-page {
  background-color: var(--page-color, #eaf0f3);
  background-image: none;
  color: #211815;
}
.story-reader.is-scroll-linked .story-reader__stage {
  top: 80px;
  height: calc(100svh - 80px);
}
@media (max-width: 767px) {
  :root {
    --header: 76px;
  }
}

/* 1・3ページ：#9f7865系の淡い茶色 */
.story-reader .book > .book-page:nth-child(odd) {
  --page-color: #f3ece8;
}

/* 2・4ページ：薄い青 */
.story-reader .book > .book-page:nth-child(even) {
  --page-color: #eaf0f3;
}
