/* --------------------------------------
	共通デザイントークン
-------------------------------------- */
:root {
  /*  余白（本文サイズに比例して可変。375px→768px→1440px→1920px の3区間で値を切り替える。下の @media を参照）  */
  --space: clamp(0.25rem, 0.25rem + (0.28rem - 0.25rem) * ((100vw - 375px) / (768px - 375px)), 0.28rem);

  --space--1: var(--space);
  --space--2: calc(var(--space) * 2);
  --space--4: calc(var(--space) * 4);
  --space--6: calc(var(--space) * 6);
  --space--8: calc(var(--space) * 8);
  --space--12: calc(var(--space) * 12);
  --space--16: calc(var(--space) * 16);

  /*  カラートークン  */
  --color-base: #fdfbf9;   /* ページ全体で最も使用頻度の高い背景色 */
  --color-main: #1f1f1f;   /* フッター・現在ページ表示・ボタンホバー等の強調背景色 */
  --color--splash: rgb(0 0 0 / 0.15);
  --color--text--1: #fffefc;
  --color--text--2: #1a1a1a;
  --color--border: #d4d8e0;
  --color--btn: #2a65ff;
  --color--focus: #2563eb;

  /*  フォント  */
  --font-heading-jp: "Noto Sans JP", Arial, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  --font-body-jp: "Noto Sans JP", Arial, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;

  /*  グラデーションカラートークン  */
  --gradation-color--text: linear-gradient(90deg, #0599b2, #27415D);
  --gradation--text-marker--1: linear-gradient(90deg, #ffe10080 0%, #fff6b580 100%);
  --gradation--text-marker--2: linear-gradient(90deg, #b3c9e280 0%, #cddaeb80 100%);
  --gradation-color--bg: linear-gradient(90deg, #cfcfcf, #7e7e7e);

  /*  ボーダー半径  */
  --radius--sm: 4px;
  --radius--md: 8px;
  --radius--lg: 16px;
  --radius--full: 9999px;

  /*  シャドウ  */
  --shadow-color: rgb(0 0 0 / 0.15);
  --shadow--sm: rgb(0 0 0 / 0.25);
  --shadow--md: rgb(0 0 0 / 0.35);
  --shadow--lg: rgb(0 0 0 / 0.45);
  --shadow--xl: rgb(0 0 0 / 0.55);

  /* カードサイズ */
  --column-size: 300px;
  --card-column: repeat(auto-fill, minmax(min(100%, var(--column-size)), 1fr));
  /* ビューポートの幅が300px未満の場合、minmax()関数の最小値は親の幅の100%になる */
  /* ビューポートの幅が300px以上の場合、minmax()関数の最小値は300px */

  /* トランジション */
  --duration: 0.4s;
}

@media (width >= 768px) {
  :root {
    --space: clamp(0.28rem, 0.28rem + (0.32rem - 0.28rem) * ((100vw - 768px) / (1440px - 768px)), 0.32rem);
  }
}

@media (width >= 1440px) {
  :root {
    --space: clamp(0.32rem, 0.32rem + (0.35rem - 0.32rem) * ((100vw - 1440px) / (1920px - 1440px)), 0.35rem);
  }
}


/* --------------------------------------
  HTML ベーススタイルをセット
-------------------------------------- */

body {
  width: 100%;

  color: var(--color--text--2);
  background-color: var(--color-base);
  font-size: clamp(1.01rem, 1.01rem + (1.11rem - 1.01rem) * ((100vw - 375px) / (768px - 375px)), 1.11rem);
  font-family: var(--font-body-jp);
  line-height: 1.5;
  text-autospace: normal;
  overflow-wrap: anywhere;
  /* 長い英単語の突き抜け防止 */
  word-break: normal;
  line-break: strict;
  /* 子音、」、。を行頭に来ないようにする */
  font-feature-settings: "palt";

  overflow-x: hidden;
}
@media (width >= 768px) {
  body {
    font-size: clamp(1.11rem, 1.11rem + (1.28rem - 1.11rem) * ((100vw - 768px) / (1440px - 768px)), 1.28rem);
  }
}
@media (width >= 1440px) {
  body {
    font-size: clamp(1.28rem, 1.28rem + (1.4rem - 1.28rem) * ((100vw - 1440px) / (1920px - 1440px)), 1.4rem);
  }
}

/* ローディング中はスクロール禁止 */
body.is-loading {
  overflow-y: hidden;
}


h1,
.heading-1 {
  font-family: var(--font-heading-jp);
  font-size: clamp(2.03rem, 2.03rem + (2.22rem - 2.03rem) * ((100vw - 375px) / (768px - 375px)), 2.22rem);
}
@media (width >= 768px) {
  h1,
  .heading-1 {
    font-size: clamp(2.22rem, 2.22rem + (2.56rem - 2.22rem) * ((100vw - 768px) / (1440px - 768px)), 2.56rem);
  }
}
@media (width >= 1440px) {
  h1,
  .heading-1 {
    font-size: clamp(2.56rem, 2.56rem + (2.8rem - 2.56rem) * ((100vw - 1440px) / (1920px - 1440px)), 2.8rem);
  }
}

h2,
.heading-2 {
  font-family: var(--font-heading-jp);
  font-size: clamp(1.52rem, 1.52rem + (1.67rem - 1.52rem) * ((100vw - 375px) / (768px - 375px)), 1.67rem);
}
@media (width >= 768px) {
  h2,
  .heading-2 {
    font-size: clamp(1.67rem, 1.67rem + (1.92rem - 1.67rem) * ((100vw - 768px) / (1440px - 768px)), 1.92rem);
  }
}
@media (width >= 1440px) {
  h2,
  .heading-2 {
    font-size: clamp(1.92rem, 1.92rem + (2.1rem - 1.92rem) * ((100vw - 1440px) / (1920px - 1440px)), 2.1rem);
  }
}

h3,
.heading-3 {
  font-family: var(--font-heading-jp);
  font-size: clamp(1.27rem, 1.27rem + (1.39rem - 1.27rem) * ((100vw - 375px) / (768px - 375px)), 1.39rem);
}
@media (width >= 768px) {
  h3,
  .heading-3 {
    font-size: clamp(1.39rem, 1.39rem + (1.6rem - 1.39rem) * ((100vw - 768px) / (1440px - 768px)), 1.6rem);
  }
}
@media (width >= 1440px) {
  h3,
  .heading-3 {
    font-size: clamp(1.6rem, 1.6rem + (1.75rem - 1.6rem) * ((100vw - 1440px) / (1920px - 1440px)), 1.75rem);
  }
}

h4,
.heading-4 {
  font-family: var(--font-heading-jp);
  font-size: clamp(1.12rem, 1.12rem + (1.22rem - 1.12rem) * ((100vw - 375px) / (768px - 375px)), 1.22rem);
}
@media (width >= 768px) {
  h4,
  .heading-4 {
    font-size: clamp(1.22rem, 1.22rem + (1.41rem - 1.22rem) * ((100vw - 768px) / (1440px - 768px)), 1.41rem);
  }
}
@media (width >= 1440px) {
  h4,
  .heading-4 {
    font-size: clamp(1.41rem, 1.41rem + (1.54rem - 1.41rem) * ((100vw - 1440px) / (1920px - 1440px)), 1.54rem);
  }
}

li {
  list-style: none;
}

._common_ {
  max-inline-size: 100%;
  margin-inline: auto;
}

._common_ hr {
  border-style: dashed;
  border-color: var(--color--border);
}

._spacer_ {
  block-size: var(--space--8);
}

._common_cluster_ {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5em;
}

._common_grid_ {
  --column-size: 300px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--column-size)), 1fr));
  gap: 1em;
}


/* --------------------------------------
  スキップリンク(通常時は画面外、フォーカス時のみ表示)
-------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  transition: none; /* reset.css の a の transition: all で、画面外から滑り込むのを防ぐ */
}

.skip-link:focus-visible {
  left: 0;
  z-index: 1000;
  background: var(--color-base);
  padding: 8px 16px;
}


/* ===========================
  ページ遷移オーバーレイ
=========================== */
/* 初期設定では非表示 */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(
    ellipse at center,
    #1e2a4a 0%,
    #151e35 50%,
    #0d1428 100%
  );

  /* 初期状態 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  /* transitionはベースに持たせることで、クラス着脱時も滑らかに繋ぐ */
  transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
}

/* フェードアウト開始（現在ページを覆う） */
.page-transition.is-leave {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
}

/* 遷移先ページ：最初からオーバーレイで覆った状態で始まる */
.page-transition.is-enter {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none; /* 即座に表示 */
}

/* フェードイン（遷移先ページのオーバーレイを消す） */
.page-transition.is-enter.is-fadeIn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.9s ease-in-out, visibility 0.9s ease-in-out;
}


/* -----------------------------------
 * ナビゲーションモーダル
 * --------------------------------- */
.nav-dialog {
  /* デフォルトのdialogスタイルをリセット */
  border: none;
  padding: 0;
  margin: 0;
  max-width: unset;
  max-height: unset;
  overflow: unset;
  background: none;

  /* フルスクリーン表示 */
  width: 100%;
  height: 100%;

  /* テキストカラー */
  color: var(--color--text--1);

  /* 背景を半透明の黒 + ブラー効果 */
  background-color: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);

  /* アニメーション */
  opacity: 0;
  transition: opacity var(--duration), var(--duration);
  z-index: 100;
}

/* ::backdrop のスタイル */
.nav-dialog::backdrop {
  background-color: transparent;
}

/* トランジション用（data-open でフェードイン） */
.nav-dialog[data-open] {
  opacity: 1;
}

/* dialogのdisplay操作はできるだけ避けたいので、innerを用意してレイアウト管理 */
.nav-dialog__inner {
  /* 内部を縦向きフレックス（__body を flex:1 で広げるため） */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nav-dialog__wrapper {
  display: flex;
  justify-content: center;
}

/* 閉じるボタンを配置するヘッダー */
.nav-dialog__head {
  max-width: 860px;
  width: 100%;
}

.nav-dialog__head__inner {
  display: flex;
  flex-shrink: 0;
}

/* ナビゲーションコンテンツ本体 */
.nav-dialog__body {
  /* 高さを広げる */
  flex: 1;

  /* 要素が増えて画面サイズを超えたらここをスクロールできるようにする */
  overflow: auto;
  overscroll-behavior: contain;

  /* 中央配置 */
  display: grid;
  align-content: center;
  justify-items: center;
}

/* ナビゲーションリスト */
.site-nav__list {
  list-style: none;
  padding: 0;

  /* 項目を縦並びで余白をgapで管理 */
  display: flex;
  flex-direction: column;
  gap: var(--space--4);
}

/* モーダル展開時のアニメーションを付ける */
.site-nav__item {
  opacity: 0;
  transform: translateY(2em);
  transition: transform var(--duration), opacity var(--duration);
}

.nav-dialog[data-open] .site-nav__item {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ナビゲーションリンク */
.site-nav__item > a {
  position: relative;
  color: inherit;
  text-decoration: none;
  font-size: 2em;
  font-family: serif;
  font-style: italic;

  display: inline-flex;
  padding: 0.25em 0.5em;
  border-radius: 2px;
}

/* ホバー時に文字の中心を通る横線を、左から右へ伸ばす(文字色は変えない。線の色は文字色と同じ)。
   行の中心(50%)は、小文字の見た目の中心(x-height の中心)より上にあるため、0.11em 下げて、小文字の中心に合わせる */
.site-nav__item > a::after {
  content: "";
  position: absolute;
  top: calc(50% + 0.11em);
  left: 0.5em;
  right: 0.5em;
  height: 2px;
  margin-top: -1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration) ease;
  pointer-events: none;
}

@media (any-hover: hover) {
  .site-nav__item > a:hover::after {
    transform: scaleX(1);
  }
}

/* --- サイトナビゲーション用トグルボタン --- */
.menu-btn {
  /* buttonのスタイルリセット */
  font: inherit;
  width: auto;
  height: auto;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;

  /* ボタンのスタイル */
  border-radius: 4px;
  padding: 0.5rem;
  margin-inline-start: auto;
  transition: opacity var(--duration);
}

/* メニューを開くボタン: メニュー展開時にフェードアウト */
.menu-btn--open {
  opacity: 1;
}

/* body:has() は処理負荷が高いので、隣接セレクタを使う */
.nav-dialog[data-open] + .header .menu-btn--open {
  opacity: 0;
  pointer-events: none;
}

/* メニューを閉じるボタン: dialog展開時にフェードイン */
.menu-btn--close {
  opacity: 0;
}

.nav-dialog[data-open] .menu-btn--close {
  opacity: 1;
}

/* ハンバーガーアイコン */
.menu-icon {
  width: 1.5em;
  height: 1.5em;
  display: grid;
  align-content: center;
  gap: 0.375em;
  transition: gap var(--duration);
}

.menu-icon > span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition-duration: var(--duration);
  transition-property: transform, opacity;
}

/* 閉じるボタンのアイコン */
.menu-icon--close > span {
  grid-area: 1/1;
  --rotate: 45deg;
  transition: transform var(--duration);
}

.menu-icon--close > span:first-child {
  transform: rotate(var(--rotate));
}

.menu-icon--close > span:last-child {
  transform: rotate(calc(var(--rotate) * -1));
}

/* ホバーアニメーション */
@media (any-hover: hover) {
  .menu-btn--open:hover > .menu-icon {
    gap: 0.25em;
  }

  .menu-btn--close:hover > .menu-icon > span {
    --rotate: 30deg;
  }
}

.display-none {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* =========================================================
  Header
========================================================= */
/* ヘッダー（全ページ共通ベース） */
.header {
  position: fixed;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 var(--space--8);
  top: 0;
  color: var(--color--text--1);
  z-index: 100;
  mix-blend-mode: difference;
  opacity: 0;
  animation: fadeIn 0.8s ease-in-out 0.3s forwards;
}

/* トップページ（front-page）のみヘッダーを黒にする */
.home .header {
  color: var(--color--text--2);
  mix-blend-mode: normal;
  /* ローディング完了後（5s）にフェードイン */
  animation: fadeIn 0.8s ease-out 5.0s forwards;
}

/* サイト内遷移時は即時表示（common.js で skip クラスを付与） */
.home .header.skip,
.header.skip {
  animation: fadeIn 0.8s ease-in-out 0.3s forwards;
}

.site-header__inner {
  max-width: 860px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__inner > a {
  color: inherit;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space--2g);
  padding: calc(var(--space--2)*1) calc(var(--space--2)*2);
  border-radius: var(--radius--md);
}

.site-header__logo > img {
  width: 80px;
  height: 80px;
}

.site-header__logoText {
  font-weight: 700;
  letter-spacing: .02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space--2)*1.25) calc(var(--space--2)*2);
  border-radius: var(--radius--md);
  border: 1px solid var(--color--border);
  background: var(--color-base);
  font-weight: 700;
  line-height: 1;
}

/* -----------------------------------
 * 汎用コンポーネントクラス
 * --------------------------------- */
/* 画像ラッパー */
.img-frame {
  overflow: hidden;
}

:where(.img-frame) > img {
  object-fit: cover;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    visibility: visible;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}


/* =========================================================
  Footer
========================================================= */
.footer {
  grid-area: footer;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 60px;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  grid-template-areas:
    "footer__up"
    "footer__down";

  position: relative;
  width: 100%;
  background: var(--color-main);
  color: var(--color--text--1);
  padding: 80px 5% 20px;
}

.footer__up {
  grid-area: footer__up;
  display: flex;
}

.footer__info {
  width: 35%;
}

.footer__logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__logo {
  width: 100%;
  max-width: 100px;
  display: block;
  line-height: 0;
  color: var(--color--text--1);
}

.footer__menu-area {
  width: 65%;
  display: flex;
  justify-content: flex-end;
}

.footer__menu-col {
  width: 100%;
  max-width: 145px;
}

.footer__menu-title {
  font-weight: 500;
  margin-bottom: 30px;
}

.footer__menu-item {
  font-size: clamp(0.91rem, 0.91rem + (1rem - 0.91rem) * ((100vw - 375px) / (768px - 375px)), 1rem);
  margin-bottom: 20px;
}
@media (width >= 768px) {
  .footer__menu-item {
    font-size: clamp(1rem, 1rem + (1.15rem - 1rem) * ((100vw - 768px) / (1440px - 768px)), 1.15rem);
  }
}
@media (width >= 1440px) {
  .footer__menu-item {
    font-size: clamp(1.15rem, 1.15rem + (1.26rem - 1.15rem) * ((100vw - 1440px) / (1920px - 1440px)), 1.26rem);
  }
}

.footer__menu-item::before {
  content: "-";
  margin-right: 10px;
}

.footer__menu-link {
  color: var(--color--text--1);
}

.footer__down {
  grid-area: footer__down;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (width >= 600px) {
  .footer__logo-area {
    flex-direction: row;
  }
}


/* =========================================================
  動きを減らす設定(prefers-reduced-motion)
========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [class*="--anim-init"] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
