@font-face {
  font-family: 'Noto Sans JP';
  src: url('../fonts/NotoSansJP-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans JP';
  src: url('../fonts/NotoSansJP-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans JP';
  src: url('../fonts/NotoSansJP-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans JP';
  src: url('../fonts/NotoSansJP-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans JP';
  src: url('../fonts/NotoSansJP-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DotGothic16';
  src: url('../fonts/DotGothic16-R.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}



html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  --spacing-xs: 0.2rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 4rem;
  --color-primary: #3858e6;
  --color-accent: #6373ff;
  --font-base: "Noto Sans JP", "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Meiryo", sans-serif;
  --font-display: "DotGothic16", var(--font-base);
}

.m-xs {
  margin: var(--spacing-xs) !important;
}

.m-sm {
  margin: var(--spacing-sm) !important;
}

.m-md {
  margin: var(--spacing-md) !important;
}

.m-lg {
  margin: var(--spacing-lg) !important;
}

.m-xl {
  margin: var(--spacing-xl) !important;
}

.m-xxl {
  margin: var(--spacing-xxl) !important;
}

.mt-xs {
  margin-top: var(--spacing-xs) !important;
}

.mt-sm {
  margin-top: var(--spacing-sm) !important;
}

.mt-md {
  margin-top: var(--spacing-md) !important;
}

.mt-lg {
  margin-top: var(--spacing-lg) !important;
}

.mt-xl {
  margin-top: var(--spacing-xl) !important;
}

.mt-xxl {
  margin-top: var(--spacing-xxl) !important;
}

.mb-xs {
  margin-bottom: var(--spacing-xs) !important;
}

.mb-sm {
  margin-bottom: var(--spacing-sm) !important;
}

.mb-md {
  margin-bottom: var(--spacing-md) !important;
}

.mb-lg {
  margin-bottom: var(--spacing-lg) !important;
}

.mb-xl {
  margin-bottom: var(--spacing-xl) !important;
}

.mb-xxl {
  margin-bottom: var(--spacing-xxl) !important;
}

.p-xs {
  padding: var(--spacing-xs) !important;
}

.p-sm {
  padding: var(--spacing-sm) !important;
}

.p-md {
  padding: var(--spacing-md) !important;
}

.p-lg {
  padding: var(--spacing-lg) !important;
}

.p-xl {
  padding: var(--spacing-xl) !important;
}

.p-xxl {
  padding: var(--spacing-xxl) !important;
}

.pt-xs {
  padding-top: var(--spacing-xs) !important;
}

.pt-sm {
  padding-top: var(--spacing-sm) !important;
}

.pt-md {
  padding-top: var(--spacing-md) !important;
}

.pt-lg {
  padding-top: var(--spacing-lg) !important;
}

.pt-xl {
  padding-top: var(--spacing-xl) !important;
}

.pt-xxl {
  padding-top: var(--spacing-xxl) !important;
}

.pb-xs {
  padding-bottom: var(--spacing-xs) !important;
}

.pb-sm {
  padding-bottom: var(--spacing-sm) !important;
}

.pb-md {
  padding-bottom: var(--spacing-md) !important;
}

.pb-lg {
  padding-bottom: var(--spacing-lg) !important;
}

.pb-xl {
  padding-bottom: var(--spacing-xl) !important;
}

.pb-xxl {
  padding-bottom: var(--spacing-xxl) !important;
}


.bg_pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #fff;
  z-index: -1;
}

.Paper_v2 {
  background-image:
    repeating-linear-gradient(to bottom,
      transparent 25px,
      rgba(0, 0, 0, 0.04) 26px, rgba(0, 0, 0, 0.04) 26px,
      transparent 27px, transparent 51px,
      rgba(0, 0, 0, 0.04) 52px, rgba(0, 0, 0, 0.04) 52px,
      transparent 53px, transparent 77px,
      rgba(0, 0, 0, 0.04) 78px, rgba(0, 0, 0, 0.04) 78px,
      transparent 79px, transparent 103px,
      rgba(0, 0, 0, 0.04) 104px, rgba(0, 0, 0, 0.04) 104px,
      transparent 105px, transparent 129px,
      rgba(0, 0, 0, 0.04) 130px, rgba(0, 0, 0, 0.04) 130px),

    repeating-linear-gradient(to right,
      transparent 25px,
      rgba(0, 0, 0, 0.04) 26px, rgba(0, 0, 0, 0.04) 26px,
      transparent 27px, transparent 51px,
      rgba(0, 0, 0, 0.04) 52px, rgba(0, 0, 0, 0.04) 52px,
      transparent 53px, transparent 77px,
      rgba(0, 0, 0, 0.04) 78px, rgba(0, 0, 0, 0.04) 78px,
      transparent 79px, transparent 103px,
      rgba(0, 0, 0, 0.04) 104px, rgba(0, 0, 0, 0.04) 104px,
      transparent 105px, transparent 129px,
      rgba(0, 0, 0, 0.04) 130px, rgba(0, 0, 0, 0.04) 130px);
}

/* element to mimic fixed background across pages */
.bg-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("../images/bk-in.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.bg-fixed.preload-hidden {
  display: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  letter-spacing: .025em;
  line-height: 1.8;
  color: #5e5f92;
  font-weight: 400;
  font-family: var(--font-base);
}

/* --------★
html {
  overflow-x: hidden;
}
★---------*/

* {
  box-sizing: border-box;
}

/* --------見出し制御---------*/
h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1rem;
}

h4 {
  font-size: 0.8rem;
}

h5 {
  font-size: 0.75rem;
}

h6 {
  font-size: 0.875rem;
}

/* Font weight utilities */
.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}


.section {
  padding: 50px 20px
}

#top.section {
  padding-top: 10px;
}

main {
  flex: 1;
}

.site-footer {
  margin-top: auto;
}

/* --------セクションナビゲーション ---------*/
.section-nav {
  text-align: center;
  padding: 0.5em 0 1.5em;
}

.section-nav--with-lead {
  --grad-nav-offset: 0;
}


.circle-nav a:hover {
  border: 2px solid #45cebc;
  color: #45cebc;
}

/* gradient navigation for howto page */
.grad-nav {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  padding: 1em;
  padding-top: 1.1em;
  background: linear-gradient(to right, #80ffd9 0%, #2a5cff 70%, #0c3ee2 100%);
}


.grad-nav a {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  padding: 0.75em 1.5em;
  border-radius: 999px;
}


.grad-nav img {
  width: 1em;
  height: auto;
}

/* ----------------------------------------
 * ページローディング演出
 * ----------------------------------------*/

/* ----- ページローダー　アイコン ----- */
#page-loader {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: #375af8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease-out;
}

#page-loader.hide {
  opacity: 0;
  pointer-events: none;
}

.loader-form {
  position: relative;
  width: 80px;
  height: 80px;
}

.loader-form div {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: #fff;
  border-radius: 50%;
  animation: loaderDot 1.8s linear infinite;
}

.loader-form div:nth-child(1) {
  transform: rotate(0deg) translate(32px);
  animation-delay: 0s;
}

.loader-form div:nth-child(2) {
  transform: rotate(30deg) translate(32px);
  animation-delay: -0.1s;
}

.loader-form div:nth-child(3) {
  transform: rotate(60deg) translate(32px);
  animation-delay: -0.2s;
}

.loader-form div:nth-child(4) {
  transform: rotate(90deg) translate(32px);
  animation-delay: -0.3s;
}

.loader-form div:nth-child(5) {
  transform: rotate(120deg) translate(32px);
  animation-delay: -0.4s;
}

.loader-form div:nth-child(6) {
  transform: rotate(150deg) translate(32px);
  animation-delay: -0.5s;
}

.loader-form div:nth-child(7) {
  transform: rotate(180deg) translate(32px);
  animation-delay: -0.6s;
}

.loader-form div:nth-child(8) {
  transform: rotate(210deg) translate(32px);
  animation-delay: -0.7s;
}

.loader-form div:nth-child(9) {
  transform: rotate(240deg) translate(32px);
  animation-delay: -0.8s;
}

.loader-form div:nth-child(10) {
  transform: rotate(270deg) translate(32px);
  animation-delay: -0.9s;
}

.loader-form div:nth-child(11) {
  transform: rotate(300deg) translate(32px);
  animation-delay: -1s;
}

.loader-form div:nth-child(12) {
  transform: rotate(330deg) translate(32px);
  animation-delay: -1.1s;
}

@keyframes loaderDot {

  0%,
  20%,
  80%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

/* ----- ページローダー　テキスト ----- */
.loader-text {
  margin-top: 1.2em;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.1em;
  font-family: var(--font-display);
}

.loader-run {
  margin-top: 2em;
  max-width: 300px;
}

.loader-text,
.loader-run {
  text-align: center;
}


.loader-text span {
  display: inline-block;
  animation: loaderWave 1.6s ease-in-out infinite;
}

.loader-text span:nth-child(1) {
  animation-delay: 0s;
}

.loader-text span:nth-child(2) {
  animation-delay: 0.1s;
}

.loader-text span:nth-child(3) {
  animation-delay: 0.2s;
}

.loader-text span:nth-child(4) {
  animation-delay: 0.3s;
}

.loader-text span:nth-child(5) {
  animation-delay: 0.4s;
}

.loader-text span:nth-child(6) {
  animation-delay: 0.5s;
}

.loader-text span:nth-child(7) {
  animation-delay: 0.6s;
}

.loader-text span:nth-child(8) {
  animation-delay: 0.7s;
}

.loader-text span:nth-child(9) {
  animation-delay: 0.8s;
}

.loader-text span:nth-child(10) {
  animation-delay: 0.9s;
}

.loader-text span:nth-child(11) {
  animation-delay: 1s;
}

.loader-text span:nth-child(12) {
  animation-delay: 1.1s;
}

.loader-text span:nth-child(13) {
  animation-delay: 1.2s;
}

.loader-text span:nth-child(14) {
  animation-delay: 1.3s;
}

@keyframes loaderWave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ---------------フッター ---------------------*/

.site-footer {
  background-color: var(--color-primary);
  color: #fff;
  font-size: 14px;
  padding: 40px 20px 20px;
  margin-top: 16em;
  position: relative;
  z-index: 10;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 125px;
  height: auto;
}

.footer-pre .footer-logo {
  width: 250px;
  height: auto;
}

.footer-info p {
  margin: 0;
  line-height: 1.6;
}

.footer-right {
  text-align: right;
  padding-right: 20px;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.footer-right .footer-nav li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  display: block;
  text-align: center;
  line-height: 1.2;

}

/* note box below footer navigation */
.footer-note-box {
  background-color: #fff;
  color: var(--color-primary);
  padding: 0.6em 1em;
  margin: 20px 30px 0 20%;
  text-align: left;
  display: inline-block;
  border-radius: 10px;
}

.footer-note-box p {
  margin: 0;
  /* or a smaller value */
  line-height: 1.4;
  /* if you still need to control line spacing */
  font-size: 0.8rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.footer-social img {
  width: 40px;
  vertical-align: middle;
}

.footer-about {
  text-align: center;
  margin: 0 0 15px;
  font-weight: bold;
}

.footer-about a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-note .footer-social {
  text-align: center;
}

.footer-note .footer-social img {
  margin-left: 0;
  display: inline-block;
}


.footer-pre .footer-note p {
  line-height: 0.8;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  opacity: 0.8;
}

.footer-bottom p {
  gap: 10px 0;
  font-size: 0.8rem;
}

.sp-only {
  display: inline;
}

.pc-only {
  display: none;
}


/* レスポンシブフッター */
.site-footer {
  display: block;
}

/* ---------- Menu modal viewer ---------- */
body.menu-modal-open {
  overflow: hidden;
}

#menu-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 2.5rem);
  background: rgba(14, 21, 49, 0.733);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2000;
}

#menu-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.menu-modal-inner {
  max-width: min(90vw, 960px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
  padding-top: calc(
    clamp(0.5rem, 3vw, 1rem) +
    clamp(2.25rem, 6vw, 2.75rem) +
    0.75rem
  );
}

#menu-modal img {
  width: 100%;
  height: auto;
  max-height: calc(90vh - clamp(1.5rem, 6vw, 3rem));
  object-fit: contain;
}

.menu-modal-close {
  position: absolute;
  top: clamp(0.5rem, 3vw, 1rem);
  right: clamp(0.5rem, 2vw, 1rem);
  bottom: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.25rem, 6vw, 2.75rem);
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 999px;
  background: rgba(12, 18, 46, 0.7);
  color: #fff;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  line-height: 1;
  cursor: pointer;
  transform: translateY(-40%);
  transform-origin: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

@supports (top: max(0px, env(safe-area-inset-top))) {
  .menu-modal-close {
    top: max(
      clamp(0.1rem, 5vw, 0.5rem),
      env(safe-area-inset-top) + 0.5rem
    );
  }

  .menu-modal-inner {
    padding-top: max(
      calc(
        clamp(0.5rem, 3vw, 1rem) +
        clamp(2.25rem, 6vw, 2.75rem) +
        0.75rem
      ),
      env(safe-area-inset-top) + clamp(2.25rem, 6vw, 2.75rem) + 1.25rem
    );
  }
}


.menu-modal-close:hover,
.menu-modal-close:focus {
  background: rgba(12, 18, 46, 0.9);
  transform: translateY(-40%) scale(1.05);
}



.menu-modal-close span {
  pointer-events: none;
}

/* ---------- Common white box styles ---------- */
.white-box {
  background: #ffffffc2;
  padding: 2rem 3rem;
  margin: 0 auto;
  margin-bottom: 2em;
  max-width: 1000px;
}

.li-white-box-tx {
  line-height: 1.1;
  font-weight: 500;
}

.li-white-box-tx p {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1rem;
  font-weight: 600;
}

.white-box li,
.li-white-box li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: inherit;
}

.indent-tx {
  margin-left: 1.5rem;
}



@media (min-width: 769px) {
  body {
    font-weight: 700;
  }

  p,
  li {
    font-size: 1.5em;
    font-weight: 700;
  }

  .section-nav {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5em 1em;
  }

  .grad-nav {
    padding: 1em;
    padding-top: 1.4em;
    margin-top: var(--grad-nav-offset, -80px);
    line-height: 1.5;
  }

  .footer-bottom {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 20px;
    text-align: right;
  }

  .footer-bottom .footer-about {
    text-align: right;
  }

  

  .sp-only {
    display: none;
  }

  .pc-only {
    display: block;
  }
}


@media (orientation: portrait) and (min-width: 769px) {
  .bg-fixed {
    background-image: url("../images/bk-in-sm.png");
    background-size: 100% auto;
  }
}


@media (max-width: 768px) {
  .bg-fixed {
    background-image: url("../images/bk-in-sm.png");
  }

  body {
    font-size: 16px;
    line-height: 1.6rem;
    font-weight: 700;
  }

  .section {
    padding: 60px 15px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  h4 {
    font-size: 0.85rem;
  }

  h5 {
    font-size: 0.75rem;
  }

  h6 {
    font-size: 0.65rem;
  }

  .grad-nav {
    box-sizing: border-box;
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: clamp(0.05rem, 0.8vw, 0.15rem);
    padding: clamp(0.55rem, 1.8vw, 0.75rem) clamp(0.4rem, 2.4vw, 0.75rem)
      clamp(0.85rem, 2.3vw, 1.05rem);
  }


  .grad-nav-double {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: clamp(0.2rem, 1.3vw, 0.4rem);
    padding: clamp(1.1rem, 2.5vw, 1.4rem) clamp(0.4rem, 3vw, 0.85rem) clamp(1.2rem, 3vw, 1.45rem);
  }

  .grad-nav a {
    white-space: nowrap;
    text-align: center;
    font-size: clamp(0.68rem, 2.8vw, 0.8rem);
    flex: 1 1 0;
    min-width: 0;
    gap: 0.18em;
    padding: clamp(0.45rem, 2.1vw, 0.6rem) clamp(0.25rem, 1.2vw, 0.35rem);
  }

  .circle-nav {
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 10px;
    justify-content: flex-start;

  }

  .circle-nav a {
    font-size: 0.75rem;
    padding: 0.6em 1.2em;
    white-space: nowrap;
    flex-shrink: 0;
    margin-bottom: 0.6em;
  }

  .loader-run {
    margin-top: 2em;
    width:clamp(180px, 60vw, 200px);
  }

  .footer-pre .footer-logo {
    width: 190px;
    height: auto;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-right {
    text-align: center;
    margin-top: 20px;
  }

 


  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em 1.5em;
    /* adjust spacing as needed */
    line-height: 1.24;
    margin-top: 2rem;
    margin-bottom: 0.5em;
  }

  .footer-nav li {
    width: 45%;
    /* two columns */
  }

  .footer-nav li a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  }

.footer-about a {
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
}
  .footer-logo {
    width: 130px;
    margin: 0 auto 5px;
  }

  .footer-left {
    margin-bottom: 1.4rem;
  }

  .white-box {
    padding: 1.5rem 4%;
    margin-bottom: 1.5em;
  }

  .li-white-box-tx {
    line-height: 1.3;
  }

  .li-white-box-tx p {
    font-size: clamp(0.6rem, 3vw, 0.9rem);
    margin-bottom: 0.1em;
    font-weight: 600;
  }

  .white-box li,
  .li-white-box li {
    font-size: clamp(0.65rem, 3vw, 0.9rem);
    line-height: clamp(1.2rem, 2vw, 1.45rem);
    margin-bottom: clamp(1rem, 4vw, 1.45rem);
    font-weight: 600;
    margin-left: -0.5rem;
  }

  .li-white-box-tx img {
    background: #ffffffc2;
    margin: 1rem auto;
    width: 100%;
    height: auto;
  }
}

