@charset "UTF-8";

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

@media (max-width: 767px) {
  html {
    font-size: min(4.2666666667vw, 24px);
  }
}

@media (min-width: 768px) and (max-width: 1240px) {
  html {
    font-size: 1.2903225806vw;
  }
}

@media (min-width: 1240px) {
  html {
    font-size: 16px;
  }
}

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

.pc {
  display: block !important;
}

.sp {
  display: none !important;
}

@media screen and (max-width: 767px) {
  .sp {
    display: block !important;
  }

  .pc {
    display: none !important;
  }

  a:hover {
    opacity: unset;
    filter: unset;
    -ms-filter: unset;
  }
}

body {
  margin: 0;
  min-width: 320px;
  color: #535357;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff 0%, #fff 95%, #d6d9ec 100%);
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.75;
}
@media (max-width: 767px) {
  a:hover {
    opacity: unset;
  }
}

button {
  font: inherit;
}

sup {
  font-size: 0.6rem;
}

.l-container {
  width: min(100% - 3rem, 71.875rem);
  margin: auto;
}

.l-header {
  position: static;
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.25rem;
}

.l-header__logo {
  width: 8.125rem;
  aspect-ratio: 130/48;
}

.l-header__menu-link {
  display: none;
}

@media (max-width: 767px) {
  .l-header {
    position: fixed; /* sticky → fixed に変更 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;

    background: transparent;
    backdrop-filter: none;
    border-bottom: none;

    transition:
      transform 0.4s ease,
      background-color 0.3s ease;
  }

  /* スクロール後 → 白背景 */
  .js-header.is-scrolled {
    background: #fff;
    backdrop-filter: blur(0.75rem);
    border-bottom: 1px solid rgba(116, 128, 188, 0.12);
  }

  /* 下スクロール → 隠す */
  .js-header.is-hidden {
    transform: translateY(-100%);
  }

  /* 上スクロール → 表示 */
  .js-header.is-visible {
    transform: translateY(0);
  }

  .l-header__inner {
    min-height: 3.25rem;
  }

  .l-header__logo {
    width: 5.6rem;
  }

  .l-header__menu-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    color: #404a9a;
  }

  .l-header__menu-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 1.5rem;
  }

  .l-header__menu-icon span {
    display: block;
    width: 100%;
    height: 0.125rem;
    border-radius: 999px;
    background: currentColor;
  }

  .l-header__menu-text {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.25rem 0 13.5rem;
}

.hero__inner {
  position: relative;
  display: flex;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 4.25rem;
}

.hero__site {
  width: 27.75rem;
  margin: 0 0 2.25rem;
}

.hero__ttl {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #404a9a;
  display: flex;
  align-items: center;
  column-gap: 1rem;
  font-weight: 500;
}

.hero__ttl_icon {
  width: 2.625rem;
  aspect-ratio: 1/1;
}

.hero__lead {
  margin: 0.9rem 0 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: #4c4c4c;
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 39rem);
  margin-right: -4.5rem;
  opacity: 0.95;
}

.content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 18.75rem minmax(0, 1fr);
  gap: 4.375rem;
  padding-top: 8.125rem;
}

.side-column {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.side-banners {
  margin-top: 1rem;
}

.side-banners__link {
  display: block;
  width: 100%;
}

.side-banners__link + .side-banners__link {
  margin-top: 0.75rem;
}

.side-banners__link img {
  display: block;
  width: 100%;
  height: auto;
}

.toc {
  border-radius: 1.25rem;
  background: #f7f8ff;
  overflow-y: auto;
}

.toc h2 {
  margin: 0;
  padding: 0.8rem 1rem 0.8rem 1.5rem;
  font-size: 1rem;
  color: #6a73b4;
  font-weight: 400;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
    position: relative;
    display: block;
    padding: 0.8rem 1rem 0.9rem 3rem;
    font-size: 1rem;
    color: #5a5a72;
    background: #f7f8ff;
    border-top: 1px solid #dbe0f2;
    /* height: 4.375rem; */
    letter-spacing: 0.08rem;
}

.toc a::before {
  content: "";
  position: absolute;
  top: calc(50% - 0.25rem);
  left: 1.6875rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #a8aed8;
}

.toc a.is-current {
  background: #d8dbee;
  color: #404a9a;
  border-left: 3px solid #404a9a;
}

.toc a.is-current::before {
  background-color: #404a9a;
  box-shadow: 0px 0px 6px 2px rgba(64, 74, 154, 0.5);
}

.main {
  padding-bottom: 7rem;
}

.sec {
  padding: 2.1rem 0 4.4rem;
}

.sec--last {
  padding-bottom: 1rem;
}

.sec h2 {
  margin: 0 0 2rem;
  padding-bottom: 0.85rem;
  font-size: 1.75rem;
  line-height: 1.55;
  letter-spacing: 0.05em;
  color: #2c3374;
  font-weight: 400;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, #404a9a, #fff) 1;
}

.sec h2 span {
  margin-left: 0.25rem;
  font-size: 1.25rem;
  color: #2c3374;
  font-weight: 400;
}

.sec p {
  margin: 0 0 1.55rem;
  font-size: 1rem;
  letter-spacing: 0.08rem;
}

.sec span {
  color: #7b40e2;
  font-weight: 500;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 2rem;
}

.card {
  padding: 2rem;
  border-radius: 1.25rem;
  background: #f4f5fc;
  text-align: center;
}

.card h3 {
  position: relative;
  margin: 0 0 1rem;
  font-size: 1.18rem;
  line-height: 1.8;
  color: #404a9a;
  font-weight: 500;
  text-align: left;
  padding-left: 1.4rem;
}

.card h3::before {
  content: "○";
  position: absolute;
  left: 0;
}

.card p {
  margin-bottom: 0;
  text-align: left;
}

.figure {
  display: flex;
  justify-content: center;
  padding: 3.75rem 0;
}

.figure--doctor img {
  width: 40.625rem;
}

.figure--small img {
  width: 10rem;
}

.schema {
  width: min(100%, 35rem);
  margin: 3.75rem auto 0;
  padding: 1.45rem 1.3rem 1.3rem;
  background: #e8f3d6;
}

.schema__head {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #040404;
  line-height: 1.5;
}

.schema__box {
  padding: 1rem;
  background: #fff;
  text-align: center;
  color: #040404;
  margin-bottom: 1rem;
}

.schema__box:last-of-type {
  margin-bottom: 0;
}

.schema__box--accent {
  margin-bottom: 0.55rem;
  color: #f9852f;
}

.schema__box h4 {
  font-weight: 700;
}

.sec p.schema__lead {
  margin-bottom: 1rem;
  padding: 0;
  text-align: center;
  font-size: 1rem;
  color: #040404;
}

.sec p.schema__caption {
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
  color: #040404;
}

.note {
  font-size: 0.875rem;
  line-height: 1.9;
  color: #666;
}

.note a {
  text-decoration: underline;
}

.sec p.strong {
  color: #2c3374;
  margin: 0;
}

.footer {
  margin-top: 12rem;
  background: #fff;
  border-top: 1px solid #e8ebf4;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.5rem;
  font-size: 0.75rem;
  color: #505665;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.footer__links a {
  display: block;
  line-height: 1;
  padding-left: 0.7rem;
  border-left: 1px solid #505665;
}

.pagetop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #7e88cc 0%, #5c66af 100%);
  color: #fff;
  box-shadow: 0 0.75rem 1.5rem rgba(81, 93, 160, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
}

.pagetop.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pagetop.is-show:hover {
  opacity: 0.75;
}
.pagetop span {
  position: relative;
  padding-top: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pagetop span::before {
  content: "";
  position: absolute;
  top: -0.15rem;
  left: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translateX(-50%) rotate(45deg);
}

@media (max-width: 767px) {
  .pagetop.is-show:hover {
    opacity: unset;
  }

  .pagetop {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    transition: bottom 0.3s ease;
  }

  /* フッター到達時 */
  .pagetop.is-stop {
    bottom: 4rem; /* ← 1rem + 3rem */
  }
}

@media (max-width: 767px) {
  body {
    background: linear-gradient(180deg, #fff 0%, #fff 92%, #d6d9ec 100%);
  }
  .l-container {
    width: min(100% - 1.5rem, 100%);
  }

  .l-header__toc-link {
    min-width: 4.5rem;
    min-height: 2.1rem;
    padding: 0 0.85rem;
    font-size: 0.75rem;
  }

  .hero {
    padding: 5rem 0;
  }

  .hero__inner {
    justify-content: center;
  }

  .hero__copy {
    padding-left: 0;
  }

  .hero__site {
    width: 18rem;
    margin-bottom: 0.85rem;
  }

  .hero__ttl {
    font-size: 1.4rem;
    line-height: 1.55;
    column-gap: 0.2rem;
  }

  .hero__ttl_icon {
    width: 1.4rem;
  }

  .hero__lead {
    margin-top: 0.3rem;
    font-size: 0.825rem;
    line-height: 1.8;
  }

  .hero__visual {
    justify-self: center;
    width: calc(100% + 1.1rem);
    margin-right: -0.55rem;
  }

  .content {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding-top: 3rem;
  }

  .side-column {
    position: static;
  }

  .side-banners {
    margin-top: 0;
  }

  .side-banners__link + .side-banners__link {
    margin-top: 1rem;
  }

  .toc {
    position: static;
    padding: 1rem;
    border-radius: 1rem;
  }

  .toc h2 {
    padding: 0 0 0.85rem;
    font-size: 0.875rem;
  }

  .toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .toc li {
    width: calc(50% - 0.25rem);
  }

  .toc li + li a {
    border-top: 0;
  }

  .toc a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.85rem 0.9rem 0.85rem 1.65rem;
    border-radius: 0.75rem;
    background: #fff;
    font-size: 0.8125rem;
    line-height: 1.5;
    box-shadow: 0 0.35rem 0.8rem rgba(95, 107, 171, 0.07);
    border-top: unset;
    height: 4rem;
  }

  .toc a::before {
    left: 0.75rem;
  }

  .main {
    padding-bottom: 5rem;
  }

  .sec {
    padding: 1.4rem 0 2.6rem;
    scroll-margin-top: 5.25rem;
  }

  .sec h2 {
    margin-bottom: 1.35rem;
    padding-bottom: 0.65rem;
    font-size: 1.5rem;
    line-height: 1.6;
  }

  .sec h2 span {
    display: block;
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .sec p {
    margin-bottom: 1.15rem;
    font-size: 0.9375rem;
    line-height: 1.95;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1.25rem;
  }

  .card {
    padding: 1.35rem 1rem 1.25rem;
    border-radius: 0.9rem;
  }

  .card h3 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
  }

  .card p {
    font-size: 0.875rem;
  }

  .figure {
    padding: 0;
  }

  .figure--doctor img {
    width: 100%;
    padding: 1.5rem 0 0.5rem;
  }

  .figure--small img {
    width: 7rem;
    padding: 0 0 1rem;
  }

  .schema {
    margin-top: 1.4rem;
    padding: 1rem 0.8rem 0.9rem;
  }

  .schema__head {
    font-size: 1.25rem;
  }

  .sec p.schema__lead {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-top: 0.5rem;
  }

  .schema__box {
    padding: 0.85rem 0.7rem;
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .schema__caption {
    font-size: 0.6875rem;
    line-height: 1.7;
  }

  .sec p.schema__caption {
    font-size: 0.8rem;
    letter-spacing: 0;
  }

  .note {
    font-size: 0.8125rem;
    line-height: 1.8;
  }

  .footer {
    margin-top: 0;
  }

  .footer__inner {
    display: grid;
    justify-content: start;
    gap: 0.65rem;
    padding: 1rem 0 1.25rem;
    min-height: 0;
    font-size: 0.6875rem;
    line-height: 1.8;
  }

  .footer__links {
    gap: 1rem;
  }

  .pagetop {
    right: 0.75rem;
    bottom: 0.85rem;
    width: 3.25rem;
    height: 3.25rem;
  }
}

/* =========================================
   scroll animation
========================================= */
.js-io-fade {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 1.2s ease;
}

.is-show.js-io-fade {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* =========================================
   SPヘッダー
========================================= */
.js-header {
  opacity: 1;
  transform: translateY(0);
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease;
  will-change: transform, opacity;
}

.js-header.is-scrolled {
  background: #fff;
  backdrop-filter: blur(0.75rem);
  border-bottom: 1px solid rgba(116, 128, 188, 0.12);
}

.js-header.is-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.js-header.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =========================================
   背景画像フェードイン
========================================= */
.main-bg.bg-fadein {
  position: relative;
  overflow: hidden;
}

.main-bg.bg-fadein::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url(../img/fv_pc.webp) no-repeat top center / cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

@media (min-width: 1770px) {
  .main-bg.bg-fadein::before {
    background-size: contain;
  }
}

@media (max-width: 767px) {
  .main-bg.bg-fadein::before {
    background: url(../img/fv_sp.webp) no-repeat top center / cover;
  }
}

.main-bg.bg-fadein.is-show-bg::before {
  opacity: 1;
}

/* hero だけ前面へ */
.main-bg.bg-fadein > .hero {
  position: relative;
  z-index: 1;
}

/* header は fixed/sticky を壊さず前面へ */
.main-bg.bg-fadein > .js-header {
  z-index: 10;
}

/* =========================
  ロゴ段階フェードイン
========================= */

.hero__site,
.hero__ttl,
.hero__lead {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.hero.is-show .hero__site {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.hero.is-show .hero__ttl {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

.hero.is-show .hero__lead {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

/* =========================
   modal
========================= */
.external-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.external-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.external-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.external-modal__dialog {
  position: relative;
  width: min(100%, 62rem);
  background: #fff;
  border-radius: 0.75rem;
  padding: 3rem 4.5rem 2.5rem;
  box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.18);
}

.external-modal__title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 700;
  color: #111;
}

.external-modal__text {
  margin: 0 0 2rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
  color: #111;
}

.external-modal__url,
.external-modal__url:link,
.external-modal__url:visited {
  position: relative;
  display: block;
  margin: 0 0 1.5rem;
  padding: 2rem 2rem;
  background: #eaf5fb;
  color: #2f47ff;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 700;
  text-decoration: underline;
  word-break: break-all;
}

.external-modal__back {
  display: block;
  width: 100%;
  margin: 0 0 2rem;
  padding: 1.6rem 1rem;
  border: none;
  background: #efefef;
  color: #4c57ff;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 500;
  cursor: pointer;
}

.external-modal__notes {
  margin: 0;
  padding-left: 1.5rem;
}

.external-modal__notes li {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #111;
}

.external-modal_btnBox{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.external-modal_img{
  border: none;
  margin: auto;
  cursor: pointer;
}

@media (max-width: 767px) {
  .external-modal {
    padding: 0.75rem;
  }

  .external-modal__dialog {
    width: 100%;
    padding: 1.5rem 1rem 1.25rem;
    border-width: 0.3125rem;
    border-radius: 0.5rem;
  }

  .external-modal__title {
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }

  .external-modal__text {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.7;
  }
  #nk_externalModal .external-modal__text{
    font-size: 16px;
  }

  .external-modal__url,
  .external-modal__url:link,
  .external-modal__url:visited {
    padding: 1rem 0.875rem;
    font-size: 0.95rem;
  }

  .external-modal__back {
    padding: 1rem 0.75rem;
    font-size: 1rem;
  }

  .external-modal__notes li {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  .external-modal__url,
  .external-modal__url:link,
  .external-modal__url:visited {
    font-size: 0.8rem;
  }
}

@media (min-width: 767px) {
  .external-modal__dialog {
    width: 650px;
    height: 340px;
    padding: 30px 40px;
    box-sizing: border-box;
  }
  #nk_externalModal .external-modal__dialog{
    width: 800px;
    height: 400px;
  }
  .external-modal__title {
    font-size: 19px;
    margin: 0 0 10px;
  }
  .external-modal__text {
    margin: 0 0 16px;
    font-size: 13px;
  }
  #nk_externalModal .external-modal__text{
    font-size: 20px;
  }
  .external-modal__url,
  .external-modal__url:link,
  .external-modal__url:visited {
    margin: 0 0 14px;
    padding: 16px;
    font-size: 13px;
  }
  .external-modal__back {
    margin: 0 0 14px;
    padding: 16px;
    font-size: 14px;
  }
  .external-modal__notes li {
    margin: 0 0 9px;
    font-size: 13px;
    line-height: 1.4;
  }
}

/* 文字＋アイコンのまとまり */
.external-modal__url-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

/* アイコン */
.external-modal__url-text::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  background: url("../img/icon_external.webp") no-repeat center / contain;
}