/* ==========================================================================
   Main CSS — エントリーポイント
   ITCSS レイヤー順：
   ① tools    — CSSカスタムプロパティ（デザイントークン）
   ② generic  — normalize / reset
   ③ elements — タグのデフォルトスタイル
   ④ objects  — レイアウト構造（未作成時は追加）
   ⑤ components — UIコンポーネント（ヘッダー・フッター等）
   ⑥ templates — ページタイプ固有スタイル（未作成時は追加）
   ⑦ utilities — ユーティリティクラス（未作成時は追加）
   ========================================================================== */

/* ① tools */
/**
 * デザインシステム CSS カスタムプロパティ
 * 仕様: 202606_spt-blog-style
 */

:root {

  /* ============================================================
     色
  ============================================================ */

  /** プライマリーカラー（主要な強調色：ボタン・リンクなど） */
  --color-primary: #1E1E78;

  /** セカンダリーカラー（サブの強調色・アクセントカラー） */
  --color-secondary: #516FBF;

  /** 背景色（ページ全体） */
  --color-bg: #FFFFFF;

  /** アクセントカラー（ボーダー等：区切り線・カード枠線など） */
  --color-accent: #1E1E78;


  /* ============================================================
     フォント
  ============================================================ */

  /** プライマリーフォント */
  --font-primary: 'LINE Seed JP', sans-serif;

  /** 本文テキストサイズ */
  --font-size-body: 16px;

  /** 本文テキストカラー */
  --color-text-body: #44444e;

  /** 本文テキスト行間 */
  --line-height-body: 1.7;


  /* ============================================================
     タイポグラフィ
  ============================================================ */

  /* --- 見出しサイズ（PC） --- */
  --font-size-h1-pc: 56px;
  --font-size-h2-pc: 40px;
  --font-size-h3-pc: 32px;
  --font-size-h4-pc: 24px;
  --font-size-h5-pc: 20px;

  /* --- 見出しサイズ（SP） --- */
  --font-size-h1-sp: 32px;
  --font-size-h2-sp: 32px;
  --font-size-h3-sp: 24px;
  --font-size-h4-sp: 20px;
  --font-size-h5-sp: 18px;

  /* --- 見出し色 --- */
  --color-heading-primary: #1E1E78;   /* H1・H2 */
  --color-heading-secondary: #44444e; /* H3・H4・H5 */

  /* --- リンク色 --- */
  --color-link: #1E1E78;
  --color-link-hover: #516FBF;


  /* ============================================================
     間隔
  ============================================================ */

  /** コンテンツ最大幅 */
  --content-max-width: 1680px;

  /** セクション間の上下余白（PC / SP 共通） */
  --spacing-section: 80px;

  /** 段落・要素間の余白（PC / SP 共通） */
  --spacing-element: 24px;


  /* ============================================================
     ボタン
  ============================================================ */

  /* --- ボタン幅 --- */
  --btn-width-sm: 150px;
  --btn-width-md: 320px;
  --btn-width-lg: 720px;

  /* --- プライマリーボタン --- */
  --btn-primary-bg: linear-gradient(to right, #1e1e78, #516fbf 48%, #84d9ea);
  --btn-primary-bg-hover: linear-gradient(to left, #505aff, #777eff 39%, #84d9ea);
  --btn-primary-color: #FFFFFF;

  /* --- セカンダリーボタン --- */
  --btn-secondary-bg: #1E1E78;
  --btn-secondary-color: #FFFFFF;
  --btn-secondary-border: #1E1E78;

  /* --- ボタンフォントサイズ --- */
  --btn-font-size-pc: 18px;
  --btn-font-size-sp: 16px;


  /* ============================================================
     フォーム
  ============================================================ */

  /** フォームタイトルサイズ（PC / SP） */
  --form-title-font-size-pc: 40px;
  --form-title-font-size-sp: 32px;
  --form-title-color: #1E1E78;

  /** ラベルスタイル */
  --form-label-font-size: 16px;
  --form-label-color: #44444e;

  /** 入力文字色 */
  --form-input-color: #44444e;

  /** プレースホルダー色 */
  --form-placeholder-color: #AAAAAA;

  /** 入力フィールド背景色 */
  --form-input-bg: #FFFFFF;

  /** 入力フィールド枠線色（通常 / フォーカス時） */
  --form-input-border: #c8ccd8;
  --form-input-border-focus: #1E1E78;

  /** フォーム全体の背景色 */
  --form-bg: #f9feff;

  /** フォーム内側の余白 */
  --form-padding-y: 5px;
  --form-padding-x: 10px;


  /* ============================================================
     表（テーブル）
  ============================================================ */

  /** ヘッダー行 */
  --table-header-bg: #FFFFFF;
  --table-header-color: #44444e;
  --table-header-font-weight: 700;

  /** 本文セル */
  --table-cell-color: #44444e;
  --table-cell-bg: #FFFFFF;

  /** 罫線 */
  --table-border-color: #6689cd;
  --table-border-width: 1px;
  --table-border-style: solid;


  /* ============================================================
     ヘッダー
  ============================================================ */

  /** ヘッダー背景色 */
  --header-bg: #FFFFFF;

  /** ナビゲーション文字色（通常 / ホバー） */
  --header-nav-color: #1E1E78;
  --header-nav-color-hover: #516FBF;

  /** ロゴサイズ（PC） */
  --header-logo-width-pc: 170px;
  --header-logo-height-pc: 104px;

  /** ロゴサイズ（SP） */
  --header-logo-width-sp: 74px;
  --header-logo-height-sp: 44.7px;


  /* ============================================================
     フッター
  ============================================================ */

  /** フッター背景色 */
  --footer-bg: #1E1E78;

  /** フッターテキスト色 */
  --footer-color: #FFFFFF;

  /** フッターナビ文字色（通常） */
  --footer-nav-color: #FFFFFF;

}

/* ② generic */
*, *:before, *:after {
  box-sizing: border-box;
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * Add the correct box sizing in Firefox.
 */

hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Remove the inheritance of text transform in Edge and Firefox.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.
 */

legend {
  padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* ③ elements */
body {
    background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin-top: var(--spacing-element);
    margin-bottom: var(--spacing-element);
}

h1, h2 {
    color: var(--color-primary);
}

h3, h4, h5, h6 {
    color: var(--color-heading-secondary)
}

h1 {
    font-size: 56px;
}

h2 {
    font-size: 40px;
}

h3 {
    font-size: 32px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}

p {
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    color: var(--color-text-body);
    line-height: var(--line-height-body);
    margin-top: var(--spacing-element);
    margin-bottom: var(--spacing-element);
}

a {
    color: var(--color-link);
    text-decoration: underline;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: none;
}

section {
    margin-top: var(--spacing-section);
    margin-bottom: var(--spacing-section);
}

@media (max-width: 767px) {
    h1, h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 20px;
    }

    h5 {
        font-size: 18px;
    }

    h6 {
        font-size: 16px;
    }
}

/* ⑤ components */
/* ==========================================================================
   _header.css — グローバルヘッダー
   BEM: .header
   ========================================================================== */

/* --------------------------------------------------------------------------
   ヘッダー全体
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  height: clamp(78px, 7.222222222222221vw, 104px);
  padding: 0 clamp(18px, 1.666666666666667vw, 24px);
}

/* ==========================================================================
   上段：カスタマーログイン
   ========================================================================== */
.header__sub {
  right: 48px;
  display: block;
  position: absolute;
  top: 0;
  background: none;
  border-bottom: none;
  z-index: 1;
}

.header__sub-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 0;
  margin: 0;
}

.header__login-link {
  font-family: var(--font-primary);
  color: var(--header-nav-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header__login-link:hover,
.header__login-link:focus-visible {
  color: var(--header-nav-color-hover);
  text-decoration: underline;
  outline: none;
}

/* --------------------------------------------------------------------------
   言語セレクター
   -------------------------------------------------------------------------- */
.header__lang-switcher {
  display: flex;
  align-items: center;
  margin-left: 16px;
}

/* HubSpot language_switcher モジュールのラッパー */
.header__lang-switcher .lang_switcher_module,
.header__lang-switcher .hs-lang-switcher {
  display: flex;
  align-items: center;
}

/* セレクトボックス本体 */
.header__lang-switcher select {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 32px 4px 32px;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  color: var(--header-nav-color);
  background-color: var(--header-bg);
  border: 1px solid rgba(30, 30, 120, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  /* 地球儀アイコン（左）＋ 矢印アイコン（右） */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e1e78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231e1e78' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 8px center, calc(100% - 8px) center;
  background-size: 16px 16px, 12px 12px;
  min-width: 120px;
}

.header__lang-switcher select:hover,
.header__lang-switcher select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(30, 30, 120, 0.12);
  outline: none;
}

/* ==========================================================================
   下段：ロゴ + ナビゲーション
   ========================================================================== */
.header__main {
  background-color: var(--header-bg);
  height: 100%;
}

.header__main-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
}

/* --------------------------------------------------------------------------
   ロゴ
   -------------------------------------------------------------------------- */
.header__logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.header__logo {
  display: block;
  width: var(--header-logo-width-pc);
  height: clamp(78px, 7.222222222222221vw, 104px);
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   ナビゲーション（PC）
   -------------------------------------------------------------------------- */
.header__nav {
  display: flex;
  align-items: stretch;
  height: auto;
  align-self: flex-end;
}

/* --------------------------------------------------------------------------
   ハンバーガーボタン（SP）
   -------------------------------------------------------------------------- */
.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  display: none;
}

.header__hamburger:hover,
.header__hamburger:focus-visible {
  background-color: rgba(30, 30, 120, 0.06);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.header__hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* ハンバーガー → ✕ アニメーション */
.header__hamburger.is-open .header__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-open .header__hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__hamburger.is-open .header__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   SP用ドロワーナビ
   ========================================================================== */
.header__drawer {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background-color: var(--header-bg);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
}

.header__drawer.is-open {
  transform: translateX(0);
}

.header__drawer-inner {
  padding: 72px 0 40px; /* ヘッダー高さ分の上余白 */
}

/* ドロワー開放時のオーバーレイ */
body.header-drawer-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 998;
  animation: fadeIn 0.3s ease;
}

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

/* スクロール禁止 */
body.header-drawer-open {
  overflow: hidden;
}

/* ==========================================================================
   レスポンシブ（スマートフォン）
   ========================================================================== */
@media (max-width: 767px) {

  /* --------------------------------------------------------------------------
     ヘッダー本体
     -------------------------------------------------------------------------- */
  .header {
    height: clamp(56px, 14.933vw, 72px);
    padding: 0 16px;
  }

  /* --------------------------------------------------------------------------
     PCナビ・サブ行を非表示
     -------------------------------------------------------------------------- */
  .header__nav {
    display: none;
  }

  .header__sub {
    display: none;
  }

  /* --------------------------------------------------------------------------
     ロゴ
     -------------------------------------------------------------------------- */
  .header__logo {
    width: var(--header-logo-width-sp, 80px);
    height: clamp(56px, 14.933vw, 72px);
  }

  /* --------------------------------------------------------------------------
     ハンバーガーボタン表示
     -------------------------------------------------------------------------- */
  .header__hamburger {
    display: flex;
  }

  .header__main-inner {
    align-items: center;
  }

  /* --------------------------------------------------------------------------
     ドロワー：フルスクリーン + フェードイン
     -------------------------------------------------------------------------- */
  .header__drawer {
    display: block;
    width: 100vw;
    height: 100dvh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header__drawer.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* --------------------------------------------------------------------------
     ドロワー内：ロゴ + ×ボタン行
     -------------------------------------------------------------------------- */
  .header__drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background-color: var(--header-bg);
    z-index: 1;
  }

  .header__drawer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }

  .header__drawer-logo {
    display: block;
    width: var(--header-logo-width-sp, 80px);
    height: auto;
    object-fit: contain;
  }

  .header__drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    color: var(--color-primary, #1E1E78);
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease;
  }

  .header__drawer-close:hover,
  .header__drawer-close:focus-visible {
    background-color: rgba(30, 30, 120, 0.06);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }

  /* --------------------------------------------------------------------------
     ドロワー内：カスタマーログイン行
     -------------------------------------------------------------------------- */
  .header__drawer-sub {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
  }

  .header__drawer-sub .header__login-link {
    font-size: 14px;
    color: var(--color-primary, #1E1E78);
    text-decoration: none;
  }

  .header__drawer-sub .header__login-link:hover {
    text-decoration: underline;
  }

  /* --------------------------------------------------------------------------
     ドロワー内：ナビラッパー
     -------------------------------------------------------------------------- */
  .header__drawer-inner {
    padding: 0;
  }

  /* --------------------------------------------------------------------------
     第1階層リスト
     -------------------------------------------------------------------------- */
  .header__drawer .gnav__list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .header__drawer .gnav__item {
    border-bottom: 1px solid #e5e7eb;
  }

  .header__drawer .gnav__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary, #1E1E78);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .header__drawer .gnav__link:hover,
  .header__drawer .gnav__link:focus-visible {
    background-color: rgba(30, 30, 120, 0.04);
    outline: none;
  }

  /* 第1階層 chevron アイコン（border による ∨ 形状） */
  .header__drawer .gnav__arrow {
    display: inline-block;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: -10px -10px -10px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  /* chevron の実体は ::after で描画（中央に配置） */
  .header__drawer .gnav__arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-primary, #1E1E78);
    border-bottom: 2px solid var(--color-primary, #1E1E78);
    transform: translate(-50%, -60%) rotate(45deg);
    transition: transform 0.25s ease;
  }

  .header__drawer .gnav__item--mega-open > .gnav__link .gnav__arrow::after {
    transform: translate(-50%, -40%) rotate(225deg);
  }

  /* --------------------------------------------------------------------------
     第2階層パネル（アコーディオン）
     -------------------------------------------------------------------------- */
  .header__drawer .gnav__mega-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background-color: #f0f0f0;
    /* PC用の position:absolute などをリセット */
    position: static;
    width: auto;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .header__drawer .gnav__mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .header__drawer .gnav__mega-item {
    border-bottom: none;
  }

  .header__drawer .gnav__mega-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary, #1E1E78);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .header__drawer .gnav__mega-link:hover,
  .header__drawer .gnav__mega-link:focus-visible {
    background-color: rgba(30, 30, 120, 0.06);
    outline: none;
  }

  /* 第2階層 chevron アイコン（border による ∨ 形状） */
  .header__drawer .gnav__mega-arrow-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: -10px -10px -10px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  /* chevron の実体は ::after で描画（中央に配置） */
  .header__drawer .gnav__mega-arrow-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--color-primary, #1E1E78);
    border-bottom: 2px solid var(--color-primary, #1E1E78);
    transform: translate(-50%, -60%) rotate(45deg);
    transition: transform 0.25s ease;
  }

  .header__drawer .gnav__mega-item--has-tertiary.gnav__mega-item--tertiary-open > .gnav__mega-link .gnav__mega-arrow-icon::after {
    transform: translate(-50%, -40%) rotate(225deg);
  }

  /* 第2階層に子がない場合はアイコン非表示 */
  .header__drawer .gnav__mega-item:not(.gnav__mega-item--has-tertiary) .gnav__mega-arrow-icon {
    display: none;
  }

  /* --------------------------------------------------------------------------
     第3階層リスト（アコーディオン）
     -------------------------------------------------------------------------- */
  .header__drawer .gnav__tertiary-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background-color: #ffffff;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .header__drawer .gnav__tertiary-item {
    border-top: 1px solid #e5e7eb;
  }

  .header__drawer .gnav__tertiary-link {
    display: flex;
    align-items: center;
    padding: 14px 48px;
    font-size: 14px;
    color: var(--color-primary, #1E1E78);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .header__drawer .gnav__tertiary-link:hover,
  .header__drawer .gnav__tertiary-link:focus-visible {
    background-color: rgba(30, 30, 120, 0.04);
    outline: none;
  }

  /* 第3階層 arrow アイコン非表示（リンクのみ） */
  .header__drawer .gnav__tertiary-arrow-icon {
    display: none;
  }

  /* --------------------------------------------------------------------------
     ドロワー開放時のオーバーレイ（フルスクリーンのため不要）
     -------------------------------------------------------------------------- */
  body.header-drawer-open::before {
    display: none;
  }

}
/* ==========================================================================
   _footer.css — グローバルフッター
   BEM: .footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   フッター全体
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-color);
  padding: clamp(48px, 4.444444444444445vw, 64px) 0 clamp(30px, 2.777777777777778vw, 40px);
}

.footer__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 80vw;
  max-width: var( --content-max-width);
}

.footer__main {
  padding: 0 0 clamp(36px, 3.333333333333333vw, 48px);
  border-bottom: 1px solid #fff;
  margin-bottom: clamp(18px, 1.666666666666667vw, 24px);
}

/* --------------------------------------------------------------------------
   ナビゲーション
   -------------------------------------------------------------------------- */
.footer__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.footer__nav-row {
  display: flex;
}

.footer__nav-row--secondary .footer-nav__link {
  font-size: 14px;
  font-weight: 400;
  height: clamp(42px, 3.888888888888889vw, 56px);
}

.footer-nav__item a:hover {
  color: var(--footer-nav-color);
}
/* --------------------------------------------------------------------------
   SNSバナー
   -------------------------------------------------------------------------- */
.footer__sns {
  display: flex;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   下部：ロゴ + コピーライト
   -------------------------------------------------------------------------- */
.footer__bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__logo {
  margin: 0;
}

.footer__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer__logo-link:hover,
.footer__logo-link:focus-visible {
  outline: none;
}

.footer__logo-img {
  display: block;
  object-fit: contain;
}

.footer__copyright {
  width: auto;
  text-align: right;
}

/* ==========================================================================
   スマホ（767px以下）
   ========================================================================== */
@media (max-width: 767px) {
  .footer__main {
    border: none;
    margin-bottom: 0;
  }

  .footer__nav-row--primary {
    justify-content: center;
  }

  .footer__nav-row--primary .footer-nav__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 60px;
  }
  .footer__nav-row--primary:nth-of-type(2) {
    margin-top: clamp(13.5px, 4.8vw, 18px);
  }

  .footer__nav-row--primary:nth-of-type(2) .footer-nav__list {
    grid-template-columns: auto;
  }

  .footer__nav-row--primary:nth-of-type(2) .footer-nav__link {
    font-weight: 400;
  }

  .footer__nav-row--primary .footer-nav__item {
    justify-content: center;
  }

  .footer__nav-row--secondary {
    margin-top: 10px;
    display: block;
    
  }

  .footer__nav-row--secondary .footer-nav__list {
    flex-direction: column;
  }

  .footer__nav-row--secondary .footer-nav__list .footer-nav__item {
    justify-content: center;
  }

  .footer__nav-row--secondary .footer-nav__list .footer-nav__link {
    font-size: var(--font-size-body);
  }

  .footer__sns {
    margin-top: 30px;
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
  }

  .footer__copyright {
    width: 100%;
    text-align: center;
  }

}