/* =============================================================
   サイトヘッダー（Phase 1: 基本構造のみ）
   ※メガメニュー / 個人法人タブ展開 / SPサブメニューは Phase 2-4 で追加
   ============================================================= */
html {
  scroll-padding-top: 200px;
}

/* sticky 挙動 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 200ms ease;
}

.site-header.is-sticky {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* =============================================================
   トップバー（32px, #002B69, PCのみ）
   ============================================================= */
.site-header__topbar {
  background: #002b69;
  height: 32px;
  padding-right: 30px;
}

.site-header__topbar .container {
  max-width: none; /* 全幅スケーリング */
}

.site-header__topbar > div {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header__tabs {
  display: grid;
  grid-template-columns: repeat(2, 115px);
  justify-content: end;
  height: 100%;
  gap: 7px;
}

.site-header__tab {
  display: grid;
  grid-template-columns: 46px 11px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 25px;
  padding: 0 14px;
  background: #eef2f9;
  color: #111111;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  border: none;
  border-radius: 0 0 5px 5px;
  cursor: pointer;
  transition: background 200ms ease;
  align-self: end; /* topbar 下端に揃える */
}

.site-header__tab::after {
  content: "";
  width: 11px;
  height: 7px;
  background: url("../../img/common/icon_arrow_black-under.svg") center / contain no-repeat;
  transition: transform 200ms ease;
}

.site-header__tab[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.site-header__tab:hover,
.site-header__tab:focus-visible,
.site-header__tab[aria-expanded="true"] {
  background: #dde5f0;
  opacity: 1;
}

/* =============================================================
   アラートバー（全ページ共通、グローバルナビ直下）
   ============================================================= */
.site-header__alert {
  display: grid;
  align-items: center;
  justify-content: center;
  min-height: clamp(28px, 3vw, 35px);
  padding-block: clamp(4px, 0.5vw, 8px);
  padding-inline: 16px;
  background: #dddfe4;
  color: #111111;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background 200ms ease;
}

.site-header__alert:hover,
.site-header__alert:focus-visible {
  background: #cdd0d6;
  color: #111111;
  opacity: 1;
}

/* =============================================================
   メインヘッダー（122px, #FFFFFF）
   ============================================================= */
.site-header__main {
  position: relative; /* megamenu の位置基準 */
  background: #ffffff;
}

.site-header__inner {
  /* 2 行 grid：
       row 1 = auto    [.site-header__logo | .site-header__upper]
       row 2 = auto    [.site-header__lower (col-span 全幅)]
   */
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  row-gap: 10px;
  min-height: 122px;
  /* 最大幅 1200px、ブラウザがそれより狭い場合は左右 20px ずつの余白 */
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

/* ── ロゴ ── */
.site-header__logo {
  display: grid;
  align-items: start;
  padding-top: 16px;
  margin: 0;
}

.site-header__logo a {
  display: block;
  color: inherit;
  opacity: 1;
}

.site-header__logo a:hover,
.site-header__logo a:focus-visible {
  opacity: 0.85;
}

.site-header__logo img {
  width: 100%;
  height: auto;
}

/* .site-header__body は廃止（.site-header__inner の 2 行 grid に統合）*/

/* ── 上段：問い合わせ + 電話（grid row 1, col 2）── */
.site-header__upper {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: end;
  gap: 10px;
  padding-top: 9px;
}

/* お問い合わせボタン */
.site-header__btn-inquiry {
  display: inline-grid;
  grid-template-columns: 19px auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: clamp(160px, 13vw, 190px);
  padding-block: clamp(8px, 0.7vw, 10px);
  padding-inline: clamp(20px, 2vw, 28px);
  padding-right: clamp(28px, 2.5vw, 36px); /* 矢印アイコン用の右側余白 */
  background-color: #0068b7;
  background-image: url("../../img/common/icon_arrow-white.svg");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 7px 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 5px;
  white-space: nowrap;
  transition:
    filter 200ms ease,
    box-shadow 200ms ease;
}

.site-header__btn-inquiry:hover,
.site-header__btn-inquiry:focus-visible {
  filter: brightness(1.1);
  opacity: 1;
}

/* 電話番号 */
.site-header__tel-wrap {
  display: grid;
  gap: 0;
}

.site-header__tel {
  display: inline-grid;
  grid-template-columns: 29px auto;
  align-items: center;
  gap: 2px;
  font-family: "Barlow", "DIN 2014", "Arial Narrow", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1977f2;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
}

.site-header__tel img {
  width: 25px;
  height: 25px;
}

.site-header__tel-hours {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
}

/* ── 下段：ナビ + CTA（grid row 2、2 カラム全幅）── */
.site-header__lower {
  grid-column: 1 / -1; /* row 2 を全幅で */
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(16px, 1.6vw, 24px);
  margin-block-end: 9px;
}

/* =============================================================
   PCナビゲーション
   ============================================================= */
.site-header__nav {
  min-width: 0;
  width: max-content;
  margin-left: auto;
}

.site-header__nav-list {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: end; /* 右寄せ。余白はナビ前方（ロゴ側）に */
  gap: 40px;
}

.site-header__nav-item {
  position: relative;
}

/* リンク型 */
.site-header__nav-link {
  display: grid;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  color: #111111;
  white-space: nowrap;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition:
    color 200ms ease,
    border-color 200ms ease;
}

.site-header__nav-link:hover,
.site-header__nav-link:focus-visible,
.site-header__nav-link[aria-current="page"] {
  color: #1977f2;
  border-bottom-color: #1977f2;
  opacity: 1;
}

/* ボタン型（メガメニュートリガー、Phase 2 で展開実装） */
.site-header__nav-btn {
  display: inline-grid;
  grid-template-columns: auto 13px;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  color: #111111;
  white-space: nowrap;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition:
    color 200ms ease,
    border-color 200ms ease;
}

.site-header__nav .site-header__nav-btn::after {
  content: "";
  width: 13px;
  height: 8px;
  background: url("../../img/common/i-un-green.svg") center / contain no-repeat;
  transition: transform 200ms ease;
}

.site-header__nav-btn:hover,
.site-header__nav-btn:focus-visible,
.site-header__nav-btn[aria-expanded="true"] {
  color: #1977f2;
  border-bottom-color: #1977f2;
}

.site-header__nav-btn[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* =============================================================
   CTAボタン群
   ============================================================= */
.site-header__cta-group {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
}

/* お申込み（オレンジ） */
.site-header__btn-apply {
  position: relative;
  display: inline-grid;
  align-items: center;
  justify-content: center;
  min-width: clamp(150px, 13vw, 190px);
  padding-block: clamp(8px, 0.7vw, 10px);
  padding-inline: clamp(24px, 2.5vw, 32px);
  padding-right: clamp(36px, 3vw, 44px); /* 矢印アイコン用 */
  background-color: #ff8802;
  background-image: url("../../img/common/icon_arrow-white.svg");
  background-position: right 24px center;
  background-repeat: no-repeat;
  background-size: 7px 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 5px;
  white-space: nowrap;
  transition: filter 200ms ease;
}

.site-header__btn-apply::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid #ffffff;
  border-radius: 5px;
  pointer-events: none;
}

.site-header__btn-apply:hover,
.site-header__btn-apply:focus-visible {
  filter: brightness(0.92);
  opacity: 1;
}

/* 会員登録/ログイン（ライトオレンジ） */
.site-header__btn-login {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  min-width: clamp(150px, 13vw, 190px);
  padding-block: clamp(8px, 0.7vw, 10px);
  padding-inline: clamp(20px, 2vw, 28px);
  padding-right: clamp(30px, 2.5vw, 38px); /* 矢印アイコン用 */
  background-color: #ffecd7;
  background-image: url("../../img/common/icon_arrow-black.svg");
  background-position: right 18px center;
  background-repeat: no-repeat;
  background-size: 9px 14px;
  color: #111111;
  font-size: 16px;
  font-weight: 700;
  border-radius: 5px;
  white-space: nowrap;
  transition: background 200ms ease;
}

.site-header__btn-login:hover,
.site-header__btn-login:focus-visible {
  background-color: #ffd7a8;
  opacity: 1;
}

/* =============================================================
   SP ハンバーガー（PCでは非表示。SP override で display: grid に戻す）
   ============================================================= */
.site-header__hamburger {
  display: none;
  align-content: center;
  justify-content: center;
  gap: 8px;
  width: clamp(24px, 6vw, 28px);
  height: 22px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  justify-self: end;
  align-self: center;
}

.site-header__hamburger-line {
  display: block;
  width: 28px;
  height: 2px;
  background: #111111;
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

.site-header__hamburger.is-open .site-header__hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.site-header__hamburger.is-open .site-header__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.site-header__hamburger.is-open .site-header__hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* =============================================================
   SP ナビ（ハンバーガー展開、PCでは非表示。SP override で display: block に戻す）
   ============================================================= */
.sp-nav {
  display: none;
  position: fixed;
  inset: 57px 0 0 0;
  background: #ffffff;
  overflow-y: auto;
  z-index: 99;
  padding-bottom: 40px;
}

.sp-nav[hidden] {
  display: none;
}

.sp-nav__list {
  border-bottom: 1px solid #dbe5f3;
}

.sp-nav__item {
  border-top: 1px solid #dbe5f3;
}

.sp-nav__link {
  display: grid;
  grid-template-columns: 1fr 9px;
  align-items: center;
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 500;
  color: #111111;
  min-height: 52px;
  transition: background 200ms ease;
}

.sp-nav__link:hover,
.sp-nav__link:focus-visible {
  background: #f2f4f8;
  color: #111111;
  opacity: 1;
}

.sp-nav__link::after {
  content: "";
  width: 9px;
  height: 14px;
  background: url("../../img/common/icon_arrow-black.svg") center / contain no-repeat;
}

/* ボタン型（展開可、Phase 4 でサブメニュー実装） */
.sp-nav__btn {
  display: grid;
  grid-template-columns: 1fr 16px;
  align-items: center;
  width: 100%;
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 500;
  color: #111111;
  min-height: 52px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 200ms ease;
}

.sp-nav__btn::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("../../img/common/i-plus.svg") center / contain no-repeat;
  transition: transform 200ms ease;
}

.sp-nav__btn[aria-expanded="true"]::after {
  background-image: url("../../img/common/i-minus.svg");
}

/* SP 連絡先 */
.sp-nav__contact {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 24px 0 16px;
}

.sp-nav__btn-inquiry {
  display: inline-grid;
  grid-template-columns: 19px auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 343px;
  min-height: 52px; /* タップターゲット最小値（W3C推奨44px+α）*/
  padding-block: 16px;
  padding-right: 36px; /* 右端の白矢印アイコン分の余白 */
  margin-inline: auto;
  background-color: #0068b7;
  /* 右端に白矢印を背景画像で配置（site-header__btn-inquiry と統一） */
  background-image: url("../../img/common/icon_arrow-white.svg");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 7px 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 5px;
}

.sp-nav__btn-inquiry:hover,
.sp-nav__btn-inquiry:focus-visible {
  filter: brightness(1.1);
  opacity: 1;
}

.sp-nav__tel-wrap {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.sp-nav__tel {
  display: inline-grid;
  grid-template-columns: 24px auto;
  align-items: center;
  gap: 4px;
  font-family: "Barlow", "DIN 2014", "Arial Narrow", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1977f2;
  line-height: 1.2;
  cursor: default;
}

.sp-nav__tel img {
  width: clamp(20px, 5vw, 24px);
  height: 24px;
}

.sp-nav__tel-hours {
  font-size: 12px;
}

/* SP CTA */
.sp-nav__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  gap: 12px;
  padding: 0 0 16px;
  align-items: center;
  max-width: 343px;
  margin-inline: auto;
}

.sp-nav__cta .site-header__btn-apply,
.sp-nav__cta .site-header__btn-login {
  width: 100%;
  min-width: 0; /* PC側の min-width を打ち消し */
  min-height: 45px;
  padding-block: 8px;
  background-position: right 14px center;
  font-size: 14px;
}

/* SP 個人/法人 */
.sp-nav__user-links {
  border-top: 1px solid #dbe5f3;
  margin-top: 8px;
}

.sp-nav__user-link {
  display: grid;
  /* アイコン + ラベル + プラス/マイナス の3列 */
  grid-template-columns: 24px 1fr 16px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 10px;
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  min-height: 52px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 200ms ease;
  border-bottom: 1px solid #dbe5f3;
}

.sp-nav__user-link-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.sp-nav__user-link::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("../../img/common/i-plus.svg") center / contain no-repeat;
  transition: transform 200ms ease;
}

.sp-nav__user-link[aria-expanded="true"]::after {
  background-image: url("../../img/common/i-minus.svg");
}

/* 展開時は border-bottom を消す（下のサブパネルと一体化させる） */
.sp-nav__user-link[aria-expanded="true"] {
  border-bottom: none;
}

.sp-nav .tab-customer__card-img {
  display: none;
}

/* スクロールロック */
body.is-nav-open {
  overflow: hidden;
}

/* =============================================================
   SP サブメニュー（ハンバーガー内アコーディオン）
   親 .sp-nav__btn / .sp-nav__user-link クリックで展開。
   height 0 ? scrollHeight でスムーズに開閉（FAQ と同じパターン）。
   ============================================================= */
.sp-nav__sub {
  height: 0;
  overflow: hidden;
  border-top: 0 solid #dbe5f3; /* 開いた時のみ表示 */
  transition: height 0.3s ease;
}

/* aria-expanded="true" 時に border-top を表示
   ※ .sp-nav__user-link（個人/法人）は対象外：ボタン側で border-bottom を消すので
   　 サブパネルにも border-top を出すと余分な区切り線が見える */
.sp-nav__btn[aria-expanded="true"] + .sp-nav__sub {
  border-top-width: 1px;
}

/* JS無効時は hidden 属性で従来通り隠す（フォールバック） */
.sp-nav__sub[hidden] {
  display: none;
}

/* =============================================================
   SP 個人/法人 展開
   HTMLは PC tab-customer と共通化。CSSはここで SP用にオーバーライド。
   親 .sp-nav 配下でのみ適用される。PC topbar tab-panel 側は影響を受けない。
   ============================================================= */
.sp-nav .tab-customer__body {
  max-width: none;
  margin: 0;
  padding: 16px 0;
}

.sp-nav .tab-customer__section-title {
  width: auto;
  font-size: 16px;
  margin: 0 0 20px;
  border-color: #ddd;
}

.sp-nav .tab-customer__cards + .tab-customer__section-title {
  margin-top: 24px;
}

/* PC 4列 → SP 2列。subgrid の行揃えは継承して、各 li の text / img / label が揃う */
.sp-nav .tab-customer__cards {
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: none;
  margin: 0 0 4px;
  display: block;
}

.sp-nav .tab-customer__cards li:not(:last-child) {
  margin-bottom: 15px;
}

.sp-nav .tab-customer__card-text br {
  display: none;
}

.sp-nav .tab-customer__card-text {
  padding: 10px 20px 20px;
  font-size: 14px;
  width: 100%;
}

.sp-nav .tab-customer__card {
  min-height: auto;
  padding: 12px 12px 0;
  font-size: 13px;
}

.sp-nav .tab-customer__card-label {
  position: relative; /* ::after の白矢印を絶対配置するため */
  min-height: 50px;
  font-size: 14px;
  /* 親 padding (12px) を打ち消す */
  width: calc(100% + 24px);
  margin-inline: -12px;
  /* テキストは中央寄せのまま、矢印を右端に絶対配置（中央配置を崩さない） */
  padding-right: 24px;
}

.sp-nav .tab-customer__card-label::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 12px;
  background: url("../../img/common/icon_arrow-white.svg") center / contain no-repeat;
}

/* 法人タブ：PC は #tab-corp スコープでカード色を上書きしていたが、SP は別ID なので
   .sp-nav #sp-dd-corp で同じ色割当を再現する */
.sp-nav #sp-dd-corp .tab-customer__cards > li:nth-child(1) .tab-customer__card {
  background: #f2faeb;
}
.sp-nav #sp-dd-corp .tab-customer__cards > li:nth-child(2) .tab-customer__card {
  background: #f1f1fa;
}
.sp-nav #sp-dd-corp .tab-customer__cards > li:nth-child(3) .tab-customer__card {
  background: #edf9f9;
}
.sp-nav #sp-dd-corp .tab-customer__cards > li:nth-child(4) .tab-customer__card {
  background: #edf4fe;
}

/* 検討用資料：PC 3列 → SP 1列縦リスト */
.sp-nav .tab-customer__docs {
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: none;
  padding: 0 6px;
}

.sp-nav .tab-customer__doc {
  padding: 12px;
}

.sp-nav .tab-customer__doc br {
  display: none;
}

/* =============================================================
   SP 目的から選ぶ 展開
   HTMLは PC mega-purpose と共通化。CSSはここで SP用にオーバーライド。
   親 .sp-nav 配下でのみ適用される。PC mega 側は影響を受けない。
   ============================================================= */
.sp-nav .mega-purpose__grid {
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 20px;
  padding: 16px 0;
}

.sp-nav .mega-purpose__card {
  grid-template-columns: clamp(40px, 11vw, 56px) 1fr clamp(24px, 6vw, 22px);
  gap: 16px;
  min-height: auto;
  padding: 16px;
  background: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.sp-nav .mega-purpose__card-icon {
  width: 100%;
  border-radius: 50%;
}

.sp-nav .mega-purpose__card-icon img {
  width: 100%;
}

.sp-nav .mega-purpose__card::after {
  width: 22px;
  height: 22px;
  background-size: 6px 10px;
}

/* バナー：SPは余白だけ調整、画像は流用 */
.sp-nav .mega-purpose__banner {
  margin: 0 0 16px;
  max-width: none;
}

/* =============================================================
   SP サービス 展開
   HTMLは PC mega-service と共通化。CSSはここで SP用にオーバーライド。
   親 .sp-nav 配下でのみ適用される。PC mega 側は影響を受けない。
   ============================================================= */
.sp-nav .mega-service__main {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 16px 0;
}

/* SP: 画像は非表示にして、テキストボディだけのカラーカードに */
.sp-nav .mega-service__card {
  grid-template-columns: 1fr;
  min-height: 72px;
  font-size: 15px;
}

.sp-nav .mega-service__card-img {
  display: none;
}

.sp-nav .mega-service__card-body {
  padding: 16px;
  font-size: 15px;
  line-height: 1.3;
}

.sp-nav .mega-service__card-body::after {
  width: 14px;
  height: 14px;
}

/* PC sub-title は 190px幅+下線+18px。SP は全幅+太字見出し */
.sp-nav .mega-service__sub {
  margin: 0;
  padding: 0;
  max-width: none;
}

.sp-nav .mega-service__sub-title {
  width: auto;
  margin: 16px 0 12px;
  padding-bottom: 8px;
  font-size: 16px;
  border-bottom: 1px solid #ccc;
}

.sp-nav .mega-service__sub-grid {
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding-bottom: 16px;
}

.sp-nav .mega-service__sub-link {
  font-size: 14px;
  padding: 4px 0;
}

/* PC の .mega-service__more は inline-grid + max-width 430px + 中央寄せ。
   SP は親幅いっぱいに広げる。grid-template-columns/gap/align-items は
   base（1fr auto, 12px, center）を継承してテキスト左・矢印右の配置を維持する */
.sp-nav .mega-service__more {
  display: grid; /* block-level grid にして親幅いっぱい */
  width: auto;
  max-width: 360px;
  margin: 16px auto 24px;
  padding: 12px 24px;
  font-size: 14px;
  /* テキストを中央に置きたいので、内部の grid を「auto 1fr auto」風に補正 */
  grid-template-columns: 1fr auto;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.sp-nav .mega-service__more::after {
  font-size: 16px;
}

/* =============================================================
   SP サポート 展開
   HTMLは PC mega-support と共通化。CSSはここで SP用にオーバーライド。
   親 .sp-nav 配下でのみ適用される。PC mega 側は影響を受けない。
   ============================================================= */
/* main: 3カード → SPは縦積み（1列）、外側パディング縮小 */
.sp-nav .mega-support__main {
  grid-template-columns: 1fr;
  gap: 15px;
  padding: 30px 20px;
  margin: 0;
  border-radius: 0;
}

.sp-nav .mega-support__card {
  padding: 20px 16px 20px;
  min-height: auto;
  gap: 8px;
}

.sp-nav .mega-support__card-icon {
  width: 64px;
  display: none;
}

.sp-nav .mega-support__card-name {
  font-size: 16px;
}

.sp-nav .mega-support__card-btn {
  padding: 12px 16px;
  font-size: 16px;
}

.sp-nav .mega-support__card-tel {
  font-size: 26px;
  grid-template-columns: 22px auto;
  gap: 8px;
  margin-top: 0;
}

.sp-nav .mega-support__card-tel img {
  width: 22px;
}

.sp-nav .mega-support__card-hours {
  font-size: 12px;
}

#sp-dd-support {
  width: 100vw;
  margin-left: -20px;
}

/* lists エリア：PC は padding 40px 20px。SP は左右パディングを縮小 */
.sp-nav .mega-support__lists {
  padding: 34px 20px;
}

/* quick: PC 5列 → SP 1列 */
.sp-nav .mega-support__quick {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 30px;
}

.sp-nav .mega-support__quick-link {
  grid-template-columns: 32px 1fr 16px;
  padding: 12px 16px;
  font-size: 14px;
}

/* links: PC 5列 max-content → SP 1列の縦リスト（区切り線） */
.sp-nav .mega-support__links {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: none;
}

.sp-nav .mega-support__links li {
  border-bottom: 1px solid #ddd;
}

.sp-nav .mega-support__link {
  grid-template-columns: 1fr auto;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 4px;
  text-align: left;
  font-size: 14px;
}

/* =============================================================
   メガメニュー共通（PCのみ、aria-expanded で表示制御）
   ============================================================= */
/* メガメニュー：site-header__nav の幅に合わせて展開
   位置・幅は JS（initMegamenuPosition）が --mega-left / --mega-width を実測してセット
   ※ var() の例外：JS が runtime で書き込む変数なので CLAUDE.md 規則に準拠 */
.site-header__megamenu {
  position: absolute;
  top: 100%;
  left: var(--mega-left, 0);
  width: var(--mega-width, 100%);
  background: #ffffff;
  box-shadow: 0 16px 16px rgba(0, 0, 0, 0.06);
  z-index: 50;
  padding-block: clamp(20px, 2.5vw, 40px);
  max-height: calc(100vh - 32px - 122px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-header__megamenu[hidden] {
  display: none;
}

.site-header__megamenu-inner {
  margin-inline: auto;
}

/* =============================================================
   メガメニュー：目的から選ぶ（160:42337）
   ============================================================= */
.mega-purpose__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.mega-purpose__card {
  display: grid;
  grid-template-columns: 60px 1fr 32px;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  border: 1px solid #dbe5f3;
  border-radius: 5px;
  color: #111111;
  font-size: 16px;
  font-weight: 500;
  transition:
    border-color 200ms ease,
    background 200ms ease;
  height: 100%;
}

.mega-purpose__card:hover,
.mega-purpose__card:focus-visible {
  border-color: #1977f2;
  background: #eaf2fb;
  opacity: 1;
}

.mega-purpose__card-icon {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  /* mask_*.svg イラスト型アイコンを使用するため、円背景は外して
     イラストをそのまま見せる（top-purpose__list と揃える） */
  background: none;
  border-radius: 0;
}

.site-header__megamenu-inner.mega-support {
  max-width: 100%;
}

.mega-purpose__card-icon img {
  width: 100%;
  height: auto;
}

.mega-purpose__card::after {
  content: "";
  width: 32px;
  height: 32px;
  background: #00a590 url("../../img/common/icon_arrow-white.svg") center / 8px 14px no-repeat;
  border-radius: 50%;
}

/* バナー（画像 1 枚をリンクで包む構造） */
.mega-purpose__banner {
  display: block;
  max-width: 1000px;
  margin-inline: auto;
  background: #e0edff;
  border-radius: 8px;
  overflow: hidden;
}

.mega-purpose__banner-content {
  display: block;
  padding: 0;
}

.mega-purpose__banner-content picture,
.mega-purpose__banner-content img {
  display: block;
  width: 100%;
  height: auto;
}

/* バナー全体を包むリンク（画像クリックで遷移） */
.mega-purpose__banner-cta {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: filter 200ms ease;
}

.mega-purpose__banner-cta:hover,
.mega-purpose__banner-cta:focus-visible {
  filter: brightness(1.03);
  opacity: 1;
}

/* =============================================================
   メガメニュー：サービス（160:39082）
   ============================================================= */
.mega-service__main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}

.mega-service__card {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: stretch;
  border-radius: 5px;
  overflow: hidden;
  color: #ffffff;
  font-weight: 700;
  transition: filter 200ms ease;
}

.mega-service__card:hover,
.mega-service__card:focus-visible {
  filter: brightness(1.05);
  opacity: 1;
}

.mega-service__card-img {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.6);
}

.mega-service__card-img img {
  /* mega-*.svg はイラスト系（横長アスペクトもあり）。
     アイコン枠 128×101 内で高さ最大 63px、幅は自然比 */
  height: auto;
  width: 100%;
  max-width: none;
}

/* PC では SP 用 <br> を非表示（仮想/デスクトップ、マネージド/サービスの折返しは PC 不要） */
.mega-service__br--sp {
  display: none;
}

.mega-service__card-body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding-inline: clamp(16px, 1.8vw, 24px);
  color: #ffffff;
}

.mega-service__card-body::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("../../img/common/icon_arrow-white.svg") no-repeat center / contain;
}

/* サービス別カラー（暫定値） */
.mega-service__card--c1 .mega-service__card-body {
  background: #ffcd00;
}
.mega-service__card--c2 .mega-service__card-body {
  background: #1877f2;
}
.mega-service__card--c3 .mega-service__card-body {
  background: #16a291;
}
.mega-service__card--c4 .mega-service__card-body {
  background: #09cae3;
}
.mega-service__card--c5 .mega-service__card-body {
  background: #72b935;
}
.mega-service__card--c6 .mega-service__card-body {
  background: #6574e8;
}

#dd-support {
  background: #eaf2fb;
  padding-bottom: 0;
  padding-top: 24px;
}

/* サブセクション（関連サービス / インフラサービス） */
.mega-service__sub {
  max-width: 1120px;
  margin: 0 auto 30px;
  width: 100%;
}

.mega-service__sub-title {
  font-size: 18px;
  font-weight: 700;
  width: 190px;
  border-bottom: 1px solid #8c8c8c;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.mega-service__sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 60px;
  /* 行内で li の高さが異なっても、各 li の中身（テキスト＋アイコン）を
     行の縦中央に揃える */
  align-items: center;
}

.mega-service__sub-link {
  display: grid;
  grid-template-columns: 1fr 20px;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  letter-spacing: 0;
  color: #111111;
  padding: 4px 0;
  transition: color 200ms ease;
}

.mega-service__sub-link::after {
  content: "";
  width: 20px;
  height: 20px;
  background: #00a590 url("../../img/common/icon_arrow-white.svg") center / 6px 10px no-repeat;
  border-radius: 50%;
}

.mega-service__sub-link:hover,
.mega-service__sub-link:focus-visible {
  color: #1977f2;
  opacity: 1;
}

.mega-service__more {
  display: inline-grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: 2px solid #1977f2;
  border-radius: 5px;
  color: #1977f2;
  font-weight: 700;
  font-size: 18px;
  max-width: 430px;
  width: 100%;
  text-align: center;
  margin: 30px auto 0;
  justify-self: center;
  transition:
    background 200ms ease,
    color 200ms ease;
}

.mega-service__more::after {
  content: "?";
  font-size: 18px;
}

.mega-service__more:hover,
.mega-service__more:focus-visible {
  background: #1977f2;
  color: #ffffff;
  opacity: 1;
}

/* mega-service の inner は中央寄せのため display:grid */
.mega-service {
  display: grid;
  justify-items: stretch;
}

.mega-support__lists {
  background: #ffffff;
  padding: 40px 20px;
}

#dd-purpose,
#dd-service {
  padding: 20px;
}

@media (max-width: 1200px) {
  .site-header__nav-list {
    gap: 34px;
  }
}

/* =============================================================
   mega-service SPレイアウト（?768px）
   ============================================================= */
@media (max-width: 768px) {
  .mega-service__main {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }
  .mega-service__card {
    grid-template-columns: 1fr; /* アイコン列を削除 */
    min-height: 74px;
    font-size: 15px;
    border-radius: 5px;
  }
  .mega-service__card-img {
    display: none; /* SP ではイラストアイコン非表示 */
  }
  /* card-body がカード全体の色塗りエリアになる */
  .mega-service__card-body {
    padding: 16px;
    line-height: 1.4;
  }
  .mega-service__card-body::after {
    width: 12px;
    height: 12px;
  }
  /* SP 用 <br> 表示 */
  .mega-service__br--sp {
    display: inline;
  }
}

/* =============================================================
   メガメニュー：サポート（160:42504）
   .top-support__primary と同等のビジュアル（浮きアイコン + 青ボタン + 緑バッジ）
   ※ クラス名は mega-support__* で独立化し、SP時の top-support__* オーバーライドの影響を回避
   ============================================================= */
.mega-support__main {
  display: grid;
  max-width: 1200px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px; /* 上は浮きアイコン分の余白 */
  background: #eaf2fb;
  border-radius: 8px;
  margin: 0 auto 0px;
}

.mega-support__card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 30px 10px 20px;
  background: #ffffff;
  color: #111111;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 30px rgba(169, 185, 207, 0.16);
}

/* 浮きアイコン：カード上端を跨いで上に飛び出す */
.mega-support__card-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 50px;
  aspect-ratio: 1;
  background: none;
  border-radius: 0;
}

.mega-support__card-icon img {
  width: 100%;
  height: auto;
}

.mega-support__card-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #111111;
}

/* ボタン + バッジをまとめるラッパー */
.mega-support__card-action {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 100%;
}

/* 青いお問い合わせボタン */
.mega-support__card-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 280px;
  padding: 10px 20px;
  background: #0068b7;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  text-align: center;
  transition:
    background 200ms ease,
    transform 200ms ease;
}

.mega-support__card-btn-label {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 16px;
}

.mega-support__card-btn-label::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.mega-support__card-btn:hover,
.mega-support__card-btn:focus-visible {
  background: #00538f;
  transform: translateY(-1px);
  opacity: 1;
}

/* バッジ（吹き出し風 / 上向きの三角タブ） */
.mega-support__card-badge {
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 2px 24px;
  background: #00a590;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50em;
  letter-spacing: 0.03em;
  margin-top: 8px;
}

.mega-support__card-badge::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #00a590;
}

/* 電話番号 */
.mega-support__card-tel {
  display: inline-grid;
  grid-template-columns: 20px auto;
  align-items: center;
  gap: 8px;
  color: #1977f2;
  font-family: "Barlow", "DIN 2014", "Arial Narrow", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  margin: -6px 0;
  cursor: default;
}

.mega-support__card-tel img {
  width: 20px;
  height: auto;
}

.mega-support__card-hours {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  color: #111111;
}

.mega-support__card-tel {
  margin-top: -20px;
}

.mega-support__quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 24px;
}

.mega-support__quick-link {
  display: grid;
  grid-template-columns: 36px 1fr 16px;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  background: #ffffff;
  filter: drop-shadow(0px 0px 8px rgba(169, 185, 207, 0.16));
  border-radius: 5px;
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  transition:
    border-color 200ms ease,
    background 200ms ease;
}

.mega-support__quick-link img {
  max-width: 40px;
  width: 100%;
}

.mega-support__quick-link::after {
  content: "";
  width: 16px;
  height: 16px;
  background: #00a590 url("../../img/common/icon_arrow-white.svg") center / 6px 10px no-repeat;
  border-radius: 50%;
}

.mega-support__quick-link:hover,
.mega-support__quick-link:focus-visible {
  border-color: #1977f2;
  background: #eaf2fb;
  opacity: 1;
}

.mega-support__links {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 12px 25px;
  justify-content: center;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.mega-support__link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #111111;
  text-align: center;
  justify-content: center;
  transition: color 200ms ease;
}

.mega-support__link::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url("../../img/common/i-green-left.svg") center / contain no-repeat;
}

.mega-support__link:hover,
.mega-support__link:focus-visible {
  color: #1977f2;
  opacity: 1;
}

/* =============================================================
   メガメニュー：SP では完全非表示
   ============================================================= */
@media (max-width: 1100px) {
  .site-header__megamenu {
    display: none !important;
  }

  .site-header__logo {
    width: 108px;
  }
}

/* =============================================================
   タブ展開パネル（個人/法人、PCのみ）
   ============================================================= */
.site-header__tab-panel {
  position: absolute;
  top: 32px; /* topbar の真下 */
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 8px 8px;
  z-index: 60;
  /* タブパネルがビューポートを超えたら内部スクロール */
  max-height: calc(100vh - 32px);
  max-width: 1200px;
  margin-inline: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-header__tab-panel[hidden] {
  display: none;
}

.site-header__tab-panel-inner {
  max-width: 1300px;
  margin-inline: auto;
}

/* SPでは完全非表示（タブ自体がSPで非表示） */
@media (max-width: 1100px) {
  .site-header__tab-panel {
    display: none !important;
  }
}

.tab-customer {
  max-width: 100%;
}

/* ── ヘッダーバンド（紺帯） ── */
.tab-customer__header {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: 30px;
  padding-block: 20px;
  padding-inline: 40px;
  min-height: 100px;
  background: #0068b7;
  color: #ffffff;
}

/* ビューポート < 1200px：左右の余白を 20px に縮める */
@media (max-width: 1199px) {
  .tab-customer__header {
    padding-inline: 20px;
  }
}

.tab-customer__header-icon {
  display: inline-block;
  line-height: 0; /* インライン余白を消す */
}

.tab-customer__header-icon img {
  width: auto;
  height: auto;
  max-width: 100%;
  display: block;
}

.tab-customer__header-title {
  font-size: 22px;
  font-weight: 700;
}

/* ── 本体 ── */
.tab-customer__body {
  max-width: 1100px;
  margin-inline: auto;
  padding-block: 40px;
  padding-inline: 30px;
}

.tab-customer__section-title {
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid #8c8c8c;
  padding-bottom: 8px;
  margin-bottom: 24px;
  width: 190px;
}

.tab-customer__section-title + .tab-customer__section-title,
.tab-customer__cards + .tab-customer__section-title {
  margin-top: 30px;
}

/* ── プランカード 4列 ──
   subgrid で text / img / label の行を 4カード間で揃える
   （テキストが 1 行でも 2 行でも、アイコン位置がカード間で水平に一致） */
.tab-customer__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 12px 32px;
  max-width: 1100px;
  margin-inline: auto;
  /* li 直下が card になっており、li を span にする必要があるため
     li 自体に subgrid を適用する */
}

.tab-customer__cards > li {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
}

.tab-customer__card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  align-items: center;
  justify-items: center;
  min-height: clamp(160px, 14vw, 195px);
  padding: 16px 16px 0;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  color: #111111;
  font-size: 14px;
  text-align: center;
  transition: transform 200ms ease;
  filter: drop-shadow(0px 0px 8px rgba(169, 185, 207, 0.26));
}

/* カード別の背景色（個人タブ・デフォルト） */
.tab-customer__cards > li:nth-child(1) .tab-customer__card {
  background: #fffbeb;
}
.tab-customer__cards > li:nth-child(2) .tab-customer__card {
  background: #edf4fe;
}
.tab-customer__cards > li:nth-child(3) .tab-customer__card {
  background: #edf9f9;
}
.tab-customer__cards > li:nth-child(4) .tab-customer__card {
  background: #ebfbfd;
}

/* カード別の背景色（法人タブ：#tab-corp で個別上書き） */
#tab-corp .tab-customer__cards > li:nth-child(1) .tab-customer__card {
  background: #f2faeb;
}
#tab-corp .tab-customer__cards > li:nth-child(2) .tab-customer__card {
  background: #f1f1fa;
}
#tab-corp .tab-customer__cards > li:nth-child(3) .tab-customer__card {
  background: #edf9f9;
}
#tab-corp .tab-customer__cards > li:nth-child(4) .tab-customer__card {
  background: #edf4fe;
}

.tab-customer__card:hover,
.tab-customer__card:focus-visible {
  transform: translateY(-2px);
  opacity: 1;
}

.tab-customer__card-text {
  font-weight: 500;
  line-height: 1.5;
}

.tab-customer__card-img {
  display: grid;
  place-items: center;
}

/* 画像は natural サイズ（HTML width/height 属性 = SVG実寸）を尊重 */
.tab-customer__card-img img {
  width: auto;
  height: auto;
  max-width: 100%;
}

.tab-customer__card-label {
  display: grid;
  align-items: center;
  justify-content: center;
  width: calc(100% + 40px); /* parent padding分を打ち消し（16px × 2 = 32px） */
  min-height: clamp(44px, 4vw, 56px);
  padding-block: 8px;
  margin-inline: calc(16px * -1);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

/* カード下部バンド色（暫定値） */
.tab-customer__card-label--c1 {
  background: #ffcd00;
}
.tab-customer__card-label--c2 {
  background: #1877f2;
}
.tab-customer__card-label--c3 {
  background: #16a291;
}
.tab-customer__card-label--c4 {
  background: #09cae3;
}
.tab-customer__card-label--c5 {
  background: #72b935;
}
.tab-customer__card-label--c6 {
  background: #6574e8;
}

/* ── 検討用資料（法人のみ） ── */
.tab-customer__docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 720px;
}

.tab-customer__doc {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px 10px;
  background: #ffffff;
  filter: drop-shadow(0px 0px 8px rgba(169, 185, 207, 0.16));
  border-radius: 8px;
  color: #111111;
  font-size: 14px;
  font-weight: 500;
  transition:
    border-color 200ms ease,
    background 200ms ease;
}

.tab-customer__doc:hover,
.tab-customer__doc:focus-visible {
  border-color: #1977f2;
  background: #eaf2fb;
  opacity: 1;
}

.tab-customer__doc-icon {
  display: grid;
  place-items: center;
  width: clamp(32px, 3vw, 39px);
  aspect-ratio: 1;
  border-radius: 50%;
}

.tab-customer__doc-icon img {
  width: 40px;
  height: 40px;
}

.tab-customer__doc-label {
  line-height: 1.3;
}

.tab-customer__doc::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("../../img/common/icon-tp-green.svg") center / contain no-repeat;
  flex-shrink: 0;
}

/* =============================================================
   レスポンシブ：デスクトップファースト
   - base = PC原寸
   - ?1439px = PC圧縮（1段化）
   - ?1100px = SPレイアウト（ハンバーガー）
   ============================================================= */

/* PC圧縮（1439px 以下）: 上段非表示・1段構造 */

/* SP（1100px 以下）: ハンバーガー表示・トップバー/ボディ非表示 */
@media (max-width: 1100px) {
  html {
    scroll-padding-top: 100px;
  }
  .site-header__topbar,
  .site-header__upper,
  .site-header__lower {
    display: none;
  }

  .site-header__hamburger {
    display: grid;
  }

  .sp-nav {
    display: block;
    padding: 0 20px;
  }
  .sp-nav[hidden] {
    display: none;
  }

  .site-header__inner {
    min-height: 57px;
    align-items: center;
    grid-template-columns: 1fr auto;
    gap: 0;
    padding: 10px 0;
  }

  .site-header__logo {
    padding-top: 0;
    align-items: center;
  }
}
