@charset "UTF-8";

/* ==============================
   デザイントークン
   （v7 kaho-style のカラーパレットを踏襲）
============================== */
:root {
  /* 色 */
  --color-primary: #0a5cff;        /* メインカラー（ブルー） */
  --color-primary-dark: #1d4ed8;
  --color-accent: #12d2ff;         /* アクセント（シアン） */
  --color-navy: #07153a;           /* 濃紺（ヒーロー・ドロワー背景） */
  --color-text: #0b1e3f;
  --color-text-sub: #2a3b5c;
  --color-text-light: #5a6a85;     /* 白・薄グレー背景で 4.5:1 以上 */
  --color-bg: #ffffff;
  --color-bg-sub: #f6f8fb;
  --color-bg-sub2: #eef2f7;
  --color-border: rgba(11, 30, 63, 0.1);
  --gradient-primary: linear-gradient(120deg, #0a5cff, #12d2ff);

  /* フォント */
  --font-base: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: 'Sora', 'Noto Sans JP', sans-serif;

  /* レイアウト */
  --width-content: 1320px;
  --space-section: 72px;           /* セクション上下余白（SP） */
  --space-gutter: 20px;            /* 左右の余白（SP） */
  --header-height: 64px;
  --notice-height: 48px;

  /* モーション */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================
   リセット
============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

svg {
  display: block;
}

/* スクリーンリーダー専用テキスト */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==============================
   汎用レイアウト
============================== */
.wrap {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 var(--space-gutter);
}

.en {
  font-family: var(--font-en);
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

/* 1つおきに敷く薄い背景（下層ページのリズム用） */
.section--sub {
  background: var(--color-bg-sub);
}

.section--gray {
  background: var(--color-bg-sub);
}

/* セクション見出し */
.section__head {
  margin-bottom: 40px;
}

.section__head--row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section__en {
  display: block;
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.section__ja {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-top: 14px;
}

.section__ja::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gradient-primary);
  flex-shrink: 0;
}

/* ==============================
   共通部品：ボタン・リンク
============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  min-height: 44px;
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease);
}

.btn:hover .btn__icon {
  transform: rotate(-45deg);
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
}

.btn--primary .btn__icon {
  background: rgba(255, 255, 255, 0.22);
}

.btn--light {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn--light .btn__icon {
  background: rgba(255, 255, 255, 0.14);
}

.btn--light:hover {
  background: #fff;
  color: var(--color-navy);
}

.btn--outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-bg);
}

.btn--outline .btn__icon {
  background: var(--color-bg-sub2);
}

.btn--outline:hover {
  background: var(--color-navy);
  color: #fff;
}

.btn--outline:hover .btn__icon {
  background: rgba(255, 255, 255, 0.18);
}

/* 矢印付きテキストリンク */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-text);
  transition: color 0.3s;
}

.link-arrow__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color 0.45s var(--ease), transform 0.45s var(--ease);
}

.link-arrow:hover {
  color: var(--color-primary);
}

.link-arrow:hover .link-arrow__icon {
  background: var(--color-primary);
  transform: translateX(6px);
}

/* ==============================
   お知らせバー（ヘッダー上部）
============================== */
.notice {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 95;
  min-height: var(--notice-height);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 44px;
  text-align: center;
  transition: transform 0.5s var(--ease);
}

.notice__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.notice__en {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.85;
  flex-shrink: 0;
}

.notice__close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

body.is-notice-off .notice {
  transform: translateY(-100%);
}

/* ==============================
   ヘッダー
============================== */
.header {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--notice-height);
  z-index: 90;
  transition: transform 0.55s var(--ease), background-color 0.4s, box-shadow 0.4s, top 0.5s var(--ease);
}

body.is-notice-off .header {
  top: 0;
}

.header.is-hidden {
  transform: translateY(-130%);
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--width-content);
  margin: 0 auto;
  height: var(--header-height);
  padding: 0 var(--space-gutter);
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-img {
  display: block;
  width: auto;
  height: 36px;
  transition: opacity 0.3s;
}

.header__logo:hover .header__logo-img {
  opacity: 0.72;
}

/* ファーストビュー（濃紺背景）の上・ドロワー展開中は白ロゴに切り替える */
.header__logo-img--white {
  display: none;
}

.header:not(.is-scrolled) .header__logo-img,
body.is-drawer-open .header__logo-img {
  display: none;
}

.header:not(.is-scrolled) .header__logo-img--white,
body.is-drawer-open .header__logo-img--white {
  display: block;
}

/* PCナビ・PC用CTA（SPでは非表示、ドロワーに集約） */
.header__nav,
.header__contact {
  display: none;
}

/* ハンバーガーボタン */
.header__menu-btn {
  width: 44px;
  height: 44px;
  position: relative;
  flex-shrink: 0;
}

.header__menu-line,
.header__menu-line::before,
.header__menu-line::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.header__menu-line {
  top: 21px;
}

.header__menu-line::before {
  left: 0;
  top: -7px;
}

.header__menu-line::after {
  left: 0;
  top: 7px;
}

.header__menu-btn[aria-expanded="true"] .header__menu-line {
  background: transparent;
}

.header__menu-btn[aria-expanded="true"] .header__menu-line::before {
  background: #fff;
  transform: translateY(7px) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] .header__menu-line::after {
  background: #fff;
  transform: translateY(-7px) rotate(-45deg);
}

/* ファーストビュー（濃紺背景）の上ではハンバーガーの線を白にする */
.header:not(.is-scrolled) .header__menu-btn[aria-expanded="false"] .header__menu-line,
.header:not(.is-scrolled) .header__menu-btn[aria-expanded="false"] .header__menu-line::before,
.header:not(.is-scrolled) .header__menu-btn[aria-expanded="false"] .header__menu-line::after {
  background: #fff;
}

/* ドロワー展開中は濃紺のドロワーに重なるのでヘッダーの白背景を外す */
body.is-drawer-open .header.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

/* ==============================
   ドロワーメニュー（SP・タブレット）
============================== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: var(--color-navy);
  color: #fff;
  padding: calc(var(--notice-height) + var(--header-height) + 24px) var(--space-gutter) 48px;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-101%);
  transition: transform 0.7s var(--ease), visibility 0.7s;
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.drawer__link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 18px;
  font-weight: 700;
}

.drawer__en {
  font-family: var(--font-en);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.55;
}

/* ドロワー内のサービス子メニュー */
.drawer__sub {
  display: flex;
  flex-direction: column;
}

.drawer__sub a {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 4px 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.drawer__sub a::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

/* PCヘッダーのサブメニュー（1180px 未満では使わない） */
.header__submenu {
  display: none;
}

.drawer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

/* ==============================
   サイド固定ナビ（PCのみ表示）
============================== */
.side-nav {
  display: none;
}

/* ==============================
   パンくず（下層ページ）
============================== */
.breadcrumb {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 16px var(--space-gutter);
  font-size: 13px;
  color: var(--color-text-light);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

/* ==============================
   フッター
============================== */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 88px; /* SP固定バーの分だけ下を空ける */
}

.footer a:hover {
  color: #fff;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  color: #fff;
}

.footer__logo-img {
  display: block;
  width: auto;
  height: 34px;
  transition: opacity 0.3s;
}

.footer__logo:hover .footer__logo-img {
  opacity: 0.72;
}

.footer__address {
  margin-top: 20px;
  font-size: 14px;
  line-height: 2;
}

.footer__col h2 {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.footer__col li + li {
  margin-top: 6px;
}

.footer__col a {
  font-size: 14px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ==============================
   SP固定バー（電話・問い合わせ）
============================== */
.sp-fixed-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 88;
  display: flex;
}

.sp-fixed-bar a {
  flex: 1;
  padding: 16px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  min-height: 48px;
}

.sp-fixed-bar__tel {
  background: var(--color-navy);
}

.sp-fixed-bar__contact {
  background: var(--gradient-primary);
}

/* ==============================
   ページ上部へ戻る
============================== */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 72px;
  z-index: 87;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, background-color 0.3s, transform 0.4s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

/* ==============================
   スクロール表示アニメーション
============================== */
.js-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js-fade.is-visible {
  opacity: 1;
  transform: none;
}

/* 子要素を順番に表示 */
.js-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.js-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.js-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.js-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.js-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.js-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }

/* カーテンワイプ表示（ビジュアルを右から左へ拭うように出す） */
.js-wipe {
  position: relative;
  overflow: hidden;
}

.js-wipe::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--color-bg);
  transform-origin: right;
  transition: transform 1.1s var(--ease);
}

.js-wipe.is-visible::after,
.is-visible .js-wipe::after {
  transform: scaleX(0);
}

/* 行マスク表示（見出しを下からせり上げる） */
.js-mask {
  display: block;
  overflow: hidden;
  padding-block: 0.15em;
  margin-block: -0.15em;
}

.js-mask > i {
  display: block;
  font-style: normal;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
}

.js-mask.is-visible > i,
.is-visible .js-mask > i {
  transform: none;
}

.js-mask:nth-child(2) > i { transition-delay: 0.1s; }
.js-mask:nth-child(3) > i { transition-delay: 0.2s; }

/* 動きを減らす設定のユーザーには即表示 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-fade,
  .js-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js-mask > i {
    transform: none;
    transition: none;
  }

  .js-wipe::after {
    display: none;
  }
}

/* ==============================
   タブレット・PC（768px〜）
============================== */
@media (min-width: 768px) {
  :root {
    --space-section: 110px;
    --space-gutter: 40px;
    --header-height: 76px;
    --notice-height: 38px;
  }

  .section__en {
    font-size: 64px;
  }

  .section__head {
    margin-bottom: 56px;
  }

  .section__head--row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .notice {
    font-size: 13px;
    padding: 0 48px;
  }

  .header__logo-img {
    height: 40px;
  }

  .footer {
    padding: 80px 0 48px;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 48px;
  }

  .footer__cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .sp-fixed-bar {
    display: none;
  }

  .to-top {
    right: 24px;
    bottom: 24px;
  }
}

/* ==============================
   PC（1180px〜）ナビを常時表示
============================== */
@media (min-width: 1180px) {
  .header__menu-btn,
  .drawer {
    display: none;
  }

  .header__nav {
    display: block;
  }

  .header__nav-list {
    display: flex;
  }

  .header__nav-list a {
    display: block;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 13px;
    position: relative;
  }

  .header__nav-list a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
  }

  .header__nav-list a:hover::after,
  .header__nav-list a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .header__contact {
    display: flex;
    gap: 8px;
  }

  .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 19px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.35s, color 0.35s, transform 0.35s var(--ease);
  }

  .pill:hover {
    transform: translateY(-1px);
  }

  .pill--primary {
    background: var(--gradient-primary);
    color: #fff;
  }

  .pill--primary:hover {
    background: var(--color-navy);
  }

  .pill--outline {
    border: 1px solid var(--color-border);
    background: var(--color-bg);
  }

  .pill--outline:hover {
    background: var(--color-navy);
    color: #fff;
  }

  /* ファーストビュー（濃紺背景）の上では文字・ボタンを白系にする */
  .header:not(.is-scrolled) .header__nav-list a {
    color: #fff;
  }

  .header:not(.is-scrolled) .pill--outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .header:not(.is-scrolled) .pill--outline:hover {
    background: #fff;
    color: var(--color-navy);
  }

  /* サービスのドロップダウン */
  .header__nav-list > li {
    position: relative;
  }

  .header__submenu {
    display: block;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    padding-top: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .header__nav-list > li:hover .header__submenu,
  .header__nav-list > li:focus-within .header__submenu {
    opacity: 1;
    visibility: visible;
  }

  .header__submenu ul {
    min-width: 272px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    box-shadow: 0 26px 52px -22px rgba(7, 21, 58, 0.38);
    transform: translateY(8px);
    transition: transform 0.35s var(--ease);
  }

  .header__nav-list > li:hover .header__submenu ul,
  .header__nav-list > li:focus-within .header__submenu ul {
    transform: translateY(0);
  }

  /* 親ナビの下線アニメーションは子メニューには出さない */
  .header__submenu a {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-text);
    transition: background-color 0.3s, color 0.3s;
  }

  .header__submenu a::after {
    display: none;
  }

  .header__submenu a:hover,
  .header__submenu a[aria-current="page"] {
    background: var(--color-bg-sub);
    color: var(--color-primary);
  }

  .header__submenu em {
    display: block;
    margin-top: 3px;
    font-family: var(--font-en);
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--color-text-light);
  }

  /* ファーストビュー上でもドロップダウンの中は濃色のまま */
  .header:not(.is-scrolled) .header__submenu a {
    color: var(--color-text);
  }

  .header:not(.is-scrolled) .header__submenu a:hover,
  .header:not(.is-scrolled) .header__submenu a[aria-current="page"] {
    color: var(--color-primary);
  }

  /* サイド固定ナビ */
  .side-nav {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 85;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .side-nav__link {
    writing-mode: vertical-rl;
    padding: 22px 12px;
    background: var(--color-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    border-radius: 8px 0 0 8px;
    transition: padding 0.4s var(--ease), background-color 0.3s;
  }

  .side-nav__link:hover {
    padding-right: 20px;
    background: var(--color-primary);
  }

  .side-nav__link--accent {
    background: var(--color-primary);
  }
}
