/* ============================================================
   DART's Corporate Site — Renewal (Preview build)
   Based on Figma "DART's — for AI" tab / 1440px design
   WordPress theme conversion planned; plain HTML for preview.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* colors */
  --c-primary: #eb4108;        /* key orange */
  --c-hero-orange: #cc3300;    /* IEO / whitepaper ヒーローの単色オレンジ */
  --c-primary-deep: #d4462a;   /* footer bottom / hover */
  --c-primary-pale: #fdeee7;
  --c-red: #c81e1e;            /* whitepaper red */
  --c-text: #1a1c1d;
  --c-text-2: #262626;
  --c-muted: #6f7479;
  --c-navy: #1b2547;           /* Exchange heading */
  --c-blue: #1f6fe0;           /* chip: お知らせ */
  --c-bg: #ffffff;
  --c-bg-soft: #f6f6f7;
  --c-bg-warm: #fbfaf9;
  --c-bg-gray: #f2f2f2;
  --c-border: #e4e4e4;
  --c-border-dark: #d9d9d9;

  /* layout */
  --w-container: 1680px;
  --pad-x: 44px;
  --header-h: 80px;

  /* 下層ページヘッダー共通の縦位置トークン
     （lp-head / news-hero / wp-hero(IEO・ホワイトペーパー) で共有し、
       パンくず・ラベル・タイトル・Dマークの位置を全ページで揃える） */
  --ph-bc-top: 52px;      /* セクション上端 → パンくず(14px / line-height 1.9) */
  --ph-label-gap: 82px;   /* パンくず下端 → ラベル */
  --ph-label-h: 36px;     /* ラベル1行の高さ (30px × line-height 1.2) */
  --ph-title-gap: 4px;    /* ラベル下端 → タイトル */
  --ph-d-top: 38px;       /* Dウォーターマークの上位置 */
  --ph-pad-bottom: 96px;  /* ヘッダー下端の余白 */
  /* 下層ページ共通ヒーロー(wp-hero)用: パンくず下端 → タイトル上端
     Figma 02_ieo: パンくず y132+h17=149 → タイトル y294 → 145px */
  --ph-title-top: 145px;

  /* type */
  --ff: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ff-en: "Inter", "Noto Sans JP", sans-serif;

  /* misc */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-btn: 10px;               /* ボタン共通の角丸(最低10px) */
  --shadow-card: 0 4px 24px rgba(26, 28, 29, .06);
  --shadow-card-hov: 0 10px 32px rgba(26, 28, 29, .12);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .02em;
}
img, svg { vertical-align: middle; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: opacity .2s, color .2s; }
a:hover { opacity: .75; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
table { border-collapse: collapse; width: 100%; }

.container {
  max-width: calc(var(--w-container) + var(--pad-x) * 2);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 0;
  box-shadow: none;
  transition: background-color .25s ease, box-shadow .25s ease;
}
/* 最上部では影なし、スクロールすると薄い影 */
.site-header.is-scrolled,
.menu-open .site-header {
  box-shadow: 0 2px 10px rgba(16, 17, 18, .08);
}
.site-header__inner {
  max-width: calc(var(--w-container) + 80px);
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-header__logo svg, .site-header__logo img { height: 33px; width: auto; }
.gnav { display: flex; align-items: center; gap: 18px; }
.gnav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-2);
  white-space: nowrap;
}
.gnav__link.is-current { color: var(--c-primary); }

/* --- 言語切替(地球儀アイコン + ドロップダウン) --- */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  /* ヘッダーのボタンはスクロール状態を問わず常にピル形状 */
  border-radius: 99px;
  background: #f2f2f2;
  color: var(--c-text-2);
  font-family: var(--ff);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s;
}
.lang-switch__btn:hover,
.lang-switch.is-open .lang-switch__btn { background: #e9e9e9; }
/* ヘッダーの横幅を抑えるため、ボタンは言語コード表示(一覧は言語名) */
.lang-switch__code {
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.lang-switch__btn .arw { font-size: 9px; line-height: 1; transition: transform .2s; }
.lang-switch.is-open .lang-switch__btn .arw { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(26, 28, 29, .14);
  z-index: 120;
  /* 15言語あるため画面内に収まらない場合はメニュー内をスクロール */
  max-height: min(72vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.lang-menu[hidden] { display: none; }
.lang-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--r-btn);
  background: none;
  color: var(--c-text-2);
  font-family: var(--ff);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-menu__item:hover { background: var(--c-bg-soft); }
.lang-menu__item[aria-current="true"] { color: var(--c-primary); font-weight: 700; }

.btn-wallet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  /* ヘッダーのボタンはスクロール状態を問わず常にピル形状 */
  border-radius: 99px;
  background: var(--c-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .15s, background .2s, color .2s;
}
.btn-wallet .arw { font-family: var(--ff-en); }
/* hover の減光は発光エフェクト(下部の共通エフェクト)を鈍らせるため行わない */
.btn-wallet:hover { transform: translateY(-1px); }
/* ボタンのラベルは「DART's Wallet」(ドロワー/フッターと表記を統一)。
   ヘッダーの横幅を抑えるため「Wallet」のみにしたい場合は
   .btn-wallet__brand { display: none; } を追加する */

/* SP: ハンバーガーメニュー内のWalletボタン(PCでは非表示 / 表示は 1180px 以下のみ) */
.gnav__wallet {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: var(--r-btn);
  background: var(--c-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.gnav__wallet .ic-wallet { width: 19px; height: 19px; }
.gnav__wallet .arw { font-family: var(--ff-en); }

/* --- 共通アイコン --- */
.ic-wallet { width: 17px; height: 17px; flex-shrink: 0; }
.ic-globe { width: 15px; height: 15px; flex-shrink: 0; }
/* .btn は gap:14px と広いためアイコンだけ詰める */
.btn > .ic-wallet { width: 19px; height: 19px; margin-right: -5px; }

/* --- 検索ボタン(Figma: 41px の白枠丸 + 虫眼鏡) ---
   ※現状は検索機能未実装のため見た目のみのモック */
.header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 41px; height: 41px;
  padding: 0;
  border: 1px solid var(--c-border-dark);
  border-radius: 50%;
  background: none;
  color: var(--c-text);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.header-search:hover { background: var(--c-bg-soft); }
.ic-search { width: 39px; height: 39px; flex-shrink: 0; }

/* ============================================================
   下層ページ: ヒーローのオレンジ上に重なる透過ヘッダー
   （Figma [Working] / 02_ieo の Header。body に .hero-header を付与）
   スクロールすると通常の白ヘッダーへ切り替わる(.is-scrolled)
   ============================================================ */
.hero-header .site-header:not(.is-scrolled) { background: transparent; }
/* ロゴは白版に差し替え */
.site-header__logo-light { display: none; }
.hero-header .site-header:not(.is-scrolled) .site-header__logo-dark { display: none; }
.hero-header .site-header:not(.is-scrolled) .site-header__logo-light { display: block; }
/* グローバルナビ */
.hero-header .site-header:not(.is-scrolled) .gnav__link { color: #fff; }
/* Figma では現在ページの強調表示なし(全項目とも白) */
.hero-header .site-header:not(.is-scrolled) .gnav__link.is-current { color: #fff; }
/* 言語切替: 白枠のピル */
.hero-header .site-header:not(.is-scrolled) .lang-switch__btn {
  border: 1px solid #fff;
  border-radius: 99px;
  background: transparent;
  color: #fff;
}
.hero-header .site-header:not(.is-scrolled) .lang-switch__btn:hover,
.hero-header .site-header:not(.is-scrolled) .lang-switch.is-open .lang-switch__btn { background: rgba(255,255,255,.16); }
/* 検索: 白枠の丸 */
.hero-header .site-header:not(.is-scrolled) .header-search { border-color: #fff; color: #fff; }
.hero-header .site-header:not(.is-scrolled) .header-search:hover { background: rgba(255,255,255,.16); }
/* Wallet ボタン: 白背景 + オレンジ文字のピル */
.hero-header .site-header:not(.is-scrolled) .btn-wallet {
  border-radius: 99px;
  background: #fff;
  color: var(--c-primary);
}
/* ハンバーガー */
.hero-header .site-header:not(.is-scrolled) .menu-toggle span { background: #fff; }
/* メニューを開いている間はヘッダーを白に戻す(ドロワーの可読性確保) */
.hero-header.menu-open .site-header { background: #fff; }
.hero-header.menu-open .site-header .site-header__logo-dark { display: block; }
.hero-header.menu-open .site-header .site-header__logo-light { display: none; }
.hero-header.menu-open .site-header .gnav__link { color: var(--c-text-2); }
.hero-header.menu-open .site-header .menu-toggle span { background: var(--c-text); }
.hero-header.menu-open .site-header .lang-switch__btn {
  border: 0; border-radius: 99px; background: #f2f2f2; color: var(--c-text-2);
}
.hero-header.menu-open .site-header .header-search { border-color: var(--c-border-dark); color: var(--c-text); }

/* hamburger (mobile) */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--c-text); transition: .25s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 28px;
  height: 56px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  border: 0;
  font-family: var(--ff);
  transition: transform .15s, opacity .2s, background .2s;
}
/* hover の減光(opacity)は下の発光エフェクトを鈍らせるため行わない */
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--outline { background: #fff; color: var(--c-text); border: 1px solid #cfcfcf; }
.btn--white { background: #fff; color: var(--c-primary); }
/* 濃色（オレンジ）背景に重ねる白枠ボタン。トップのヒーローで使用 */
.btn--ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.btn--red { background: var(--c-red); color: #fff; }
.btn--navy-outline { background: #fff; color: var(--c-navy); border: 1px solid #d5d8e2; }
.btn .arw { font-family: var(--ff-en); font-weight: 600; }

/* ============================================================
   ボタン共通エフェクト(いずれも hover 時のみ再生)
   ① 斜めの光沢が左→右へ素早く通過する(hover した直後に1回だけ)
   ② hover 中はボタンの「外側」に 2px の枠を足してグラデーションで発光させ続ける
   対象: .btn(全 variant) / .btn-pill(index) / .btn-wallet(ヘッダー) /
        .gnav__wallet(SPドロワー) / .wallet-btn(ieo) / .f-cta__contact(フッター)
   ※ 枠を外側(inset:-2px)に描くため overflow:hidden は使わない。
     光沢は ::before の background を動かし、border-radius で自身がクリップされる形にしている。
     いずれも絶対配置なのでレイアウト上のボタンサイズは hover 前後で一切変わらない。
   ============================================================ */
:is(.btn, .btn-pill, .btn-wallet, .gnav__wallet, .wallet-btn, .f-cta__contact) {
  position: relative;
  isolation: isolate;
  /* 光沢の色: 濃色背景のボタンは薄い白 */
  --shine: rgba(255, 255, 255, .5);
  /* 発光ボーダー: --glow-edge → --glow-mid → --glow-core → --glow-mid → --glow-edge
     の対称グラデーション(両端が同色なのでループの繋ぎ目が出ない) */
  --glow-edge: rgba(255, 214, 166, .35);
  --glow-mid: #ffc987;
  --glow-core: #ffffff;
  --glow-rgb: 235, 65, 8;   /* 外側のぼかし発光(box-shadow)用 */
}

/* 白背景のボタン: 光沢は薄いグレー / 発光はブランドカラーのグラデーション */
:is(.btn--outline, .btn--white, .btn--navy-outline, .btn-pill--outline, .f-cta__contact),
.hero-header .site-header:not(.is-scrolled) .btn-wallet {
  --shine: rgba(26, 28, 29, .1);
  --glow-edge: rgba(235, 65, 8, .14);
  --glow-mid: #ffab5e;
  --glow-core: var(--c-primary);
}
.btn--navy-outline {
  --glow-edge: rgba(27, 37, 71, .14);
  --glow-mid: #5b95f2;
  --glow-core: var(--c-navy);
  --glow-rgb: 31, 111, 224;
}
.btn--red { --glow-mid: #ffc9c9; --glow-rgb: 200, 30, 30; }

/* ---- ① 斜めの光沢スイープ(hover した直後に1回だけ) ----
   ボタンと同じ矩形に斜めの帯を仕込み、background-position で左→右へ通過させる
   (border-radius で自身がクリップされるので、はみ出しの心配がない) */
:is(.btn, .btn-pill, .btn-wallet, .gnav__wallet, .wallet-btn, .f-cta__contact)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background-image: linear-gradient(115deg, transparent 42%, var(--shine) 50%, transparent 58%);
  background-repeat: no-repeat;
  background-size: 250% 100%;
  background-position: 100% 0;
  opacity: 0;
  pointer-events: none;
}
/* :hover で animation が付くため、hover のたびに先頭から再生される */
:is(.btn, .btn-pill, .btn-wallet, .gnav__wallet, .wallet-btn, .f-cta__contact):hover::before {
  animation: btn-shine .7s linear 1;
}
@keyframes btn-shine {
  0%   { background-position: 100% 0; opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { background-position: 0% 0;   opacity: 0; }
}

/* ---- ② hover 時のグラデーション発光ボーダー(2px) ----
   ボタンの外側に 2px 広げた矩形を置き、mask の xor/exclude で枠だけを残す。
   ボタン本体には一切手を加えないので、枠が「外周に足された」ように見える */
:is(.btn, .btn-pill, .btn-wallet, .gnav__wallet, .wallet-btn, .f-cta__contact)::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 2;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg,
    var(--glow-edge), var(--glow-mid), var(--glow-core), var(--glow-mid), var(--glow-edge));
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
:is(.btn, .btn-pill, .btn-wallet, .gnav__wallet, .wallet-btn, .f-cta__contact):hover::after {
  opacity: 1;
  animation: btn-glow-run 10s linear infinite;
}
/* 外側へのぼかし発光(明滅させず hover 中は固定) */
:is(.btn, .btn-pill, .btn-wallet, .gnav__wallet, .wallet-btn, .f-cta__contact):hover {
  opacity: 1;
  box-shadow: 0 5px 18px rgba(var(--glow-rgb), .32);
}
@keyframes btn-glow-run {
  from { background-position: 200% 50%; }
  to   { background-position: 0% 50%; }
}

/* 動きを控える設定では光沢の通過とグラデーションの巡回を止め、発光ボーダーのみ静止表示 */
@media (prefers-reduced-motion: reduce) {
  :is(.btn, .btn-pill, .btn-wallet, .gnav__wallet, .wallet-btn, .f-cta__contact):hover::before {
    display: none;
  }
  :is(.btn, .btn-pill, .btn-wallet, .gnav__wallet, .wallet-btn, .f-cta__contact):hover::after {
    animation: none;
  }
}

/* text link with arrow */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-primary);
  font-size: 14px;
  font-weight: 700;
}
.link-more--blue { color: var(--c-blue); }
.link-more--dark { color: var(--c-text); }

/* ---------- Section heading pattern ---------- */
.section { padding: 96px 0; }
.sec-label {
  display: block;
  color: var(--c-primary);
  font-family: var(--ff-en);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
}
.sec-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
  margin-top: 6px;
}
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }

/* chips (news categories) */
.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--c-primary);
  letter-spacing: .04em;
  white-space: nowrap;
}
.chip--press { background: var(--c-primary); }
.chip--news { background: var(--c-blue); }
.chip--media { background: #e8590c; }
.chip--event { background: #f59f00; }
.chip--release { background: #495057; }
.chip--ir { background: var(--c-navy); }
.chip--whitepaper { background: #0b7285; }

.date {
  font-family: var(--ff-en);
  font-size: 13px;
  color: var(--c-muted);
  letter-spacing: .02em;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s, transform .25s;
}
a.card:hover, .card:has(a:hover) { box-shadow: var(--shadow-card-hov); transform: translateY(-3px); opacity: 1; }

/* image placeholder (design preview: 実画像は差し替え) */
.ph {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #dfe3e8;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.10), rgba(255,255,255,0) 55%);
}
.ph > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
/* 新デザイン: 赤の波形背景画像の上に白ロゴ・白テキストを配置(Figma: Working / Footer) */
.site-footer {
  position: relative;
  /* 背景色は上のセクションと同じ白(coverの丸め誤差で上端に背景色が1px露出するため) */
  background: #fff url("../img/footer_bg.png") no-repeat center bottom / cover;
  color: #fff;
  /* 背景上部の白い波形と重ならないための余白 */
  padding-top: 238px;
}
.site-footer__main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 64px;
  padding: 60px 0;
  align-items: center;
}
.site-footer__brand .f-logo { display: inline-block; width: fit-content; line-height: 0; }
.site-footer__brand .f-logo svg, .site-footer__brand .f-logo img { height: 70px; width: auto; max-width: 100%; }
.f-sns { margin-top: 39px; display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; color: #fff; flex-wrap: wrap; }
.f-sns a { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.f-sns .sep { color: #b9b9b9; }
.f-sns .x-ic {
  width: 20px; height: 20px; border-radius: 4px;
  background: #fff; color: #0d0d0e;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-en); font-size: 12px; font-weight: 800;
}
.f-nav { display: flex; gap: 80px; padding-top: 6px; }
.f-nav ul li { margin-bottom: 14px; }
.f-nav a { font-size: 14px; font-weight: 500; color: #fff; }
.f-cta { display: flex; flex-direction: column; min-width: 294px; }
.f-cta__contact {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 59px; border-radius: 99px;
  background: #fff; color: #0d0d0e;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  padding: 0 22px;
}
/* メールアイコンは環境によって字形の無い絵文字(U+2709)ではなくSVGで描画する */
.f-cta__contact .mail-ic { width: 22px; height: 22px; flex-shrink: 0; }
.site-footer__bottom { color: #fff; }
.site-footer__bottom .inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 63px; font-size: 13px; font-weight: 500;
}
.site-footer__bottom .links { display: flex; align-items: center; gap: 22px; }
.site-footer__bottom .links a { color: #fff; }
.site-footer__bottom .links .sep { color: rgba(255,255,255,.5); font-size: 12px; }
.site-footer__bottom .copy { font-size: 12px; letter-spacing: .03em; }

/* ---------- Page top button ---------- */
.pagetop {
  position: fixed;
  right: 32px; bottom: 32px;
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 0;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--ff);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(235, 65, 8, .35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .3s;
  z-index: 90;
}
.pagetop.is-show { opacity: 1; visibility: visible; transform: none; }
.pagetop::before {
  content: "";
  width: 10px; height: 10px;
  border-top: 2px solid #fff; border-left: 2px solid #fff;
  transform: rotate(45deg) translate(2px, 2px);
}

/* ---------- Lower-page hero (orange gradient) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, #f05a1a 0%, #eb4108 45%, #d63704 100%);
  color: #fff;
  min-height: 260px;
  display: flex;
  align-items: center;
}
.page-hero__inner { position: relative; z-index: 2; padding: 56px 64px; }
.page-hero__label {
  font-family: var(--ff-en);
  font-size: 14px; font-weight: 700; letter-spacing: .18em;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
}
.page-hero__title { font-size: 44px; font-weight: 700; line-height: 1.4; margin-top: 10px; }
.page-hero__lead { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.92); }
.page-hero__d {
  position: absolute; right: 40px; top: 50%;
  transform: translateY(-50%);
  width: 300px; height: 300px;
  opacity: .9;
  z-index: 1;
}
.page-hero__mesh {
  position: absolute; inset: 0; z-index: 0; opacity: .35;
  background:
    radial-gradient(circle at 82% 20%, rgba(255,255,255,.28) 0 2px, transparent 3px),
    radial-gradient(circle at 90% 70%, rgba(255,255,255,.25) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 45%, rgba(255,255,255,.2) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,.2) 0 1.5px, transparent 2.5px);
}
.page-hero-wrap { padding-top: 24px; }

/* ============================================================
   下層ページ共通ヒーロー(.wp-hero)
   Figma [Working] / 02_ieo の deco + Header + breadcrumb + title + lead を再現。
   TOP と news-detail 以外の全下層ページで共有する。

   ・deco は assets/img/hero_deco.svg（オレンジグラデ＋下端の波形＋Dウォーターマーク）
   ・Figma は 1920 x 651 のため、幅に対する比率(651/1920 = 33.9063%)で高さを追従させる
   ・ヘッダー(80px)はヒーローのオレンジ上に透過で重なる → negative margin で引き上げる
   ============================================================ */
.wp-hero {
  /* deco の高さ = 幅 × 651/1920。極端な画面幅では上下限でクランプ */
  --deco-h: clamp(300px, 33.9063vw, 700px);
  position: relative;
  border-radius: 0;
  background: none;
  /* 波形が下のセクションへ少し重なるため、はみ出しを許可する */
  overflow: visible;
  /* 中身は上揃え（Figma と同じ縦位置にするため） */
  align-items: flex-start;
  min-height: var(--deco-h);
  /* 透過ヘッダーの下に潜り込ませ、その分を padding で補う */
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}
/* deco（オレンジ＋波形＋Dウォーターマーク）レイヤー */
.wp-hero__deco {
  position: absolute;
  /* 見出しが長く min-height を超えた場合もオレンジが必ず背面に回るよう
     上下いっぱいに伸ばす(最低の高さは --deco-h) */
  left: 0; right: 0; top: 0; bottom: 0;
  min-height: var(--deco-h);
  z-index: 0;
  pointer-events: none;
  /* SVG は preserveAspectRatio="none" のため 100% 100% で引き伸ばす */
  background: url(../img/hero_deco.svg) top center / 100% 100% no-repeat;
}
/* .container と同じ横位置に揃える */
.wp-hero .page-hero__inner {
  width: 100%;
  max-width: calc(var(--w-container) + var(--pad-x) * 2);
  margin: 0 auto;
  /* パンくず上端 = ヘッダー80px + 52px = Figma の y:132 */
  padding: var(--ph-bc-top) var(--pad-x) 64px;
}
.wp-hero .page-hero__title {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.45;
  /* Figma: パンくず下端(y:149) → タイトル上端(y:294) */
  margin-top: var(--ph-title-top);
}
.wp-hero .page-hero__lead {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: .04em;
  color: #fff;
}
.breadcrumb.breadcrumb--hero {
  padding: 0;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.21;
  letter-spacing: .04em;
  color: #fff;
}
.breadcrumb.breadcrumb--hero a { color: rgba(255,255,255,.95); }
.breadcrumb.breadcrumb--hero .sep { color: rgba(255,255,255,.8); font-family: var(--ff-en); }
.breadcrumb.breadcrumb--hero .cur { color: #fff; }
/* 2行になるタイトル(Nコレ等)のサブテキスト */
.wp-hero .page-hero__title .page-hero__sub {
  display: block;
  margin-top: 10px;
  font-family: var(--ff-en);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  color: rgba(255,255,255,.9);
}
@media (max-width: 1180px) {
  .wp-hero .page-hero__title { font-size: 48px; }
  .wp-hero .page-hero__title .page-hero__sub { font-size: 16px; }
}
@media (max-width: 900px) {
  .wp-hero .page-hero__inner { padding: var(--ph-bc-top) var(--pad-x) 48px; }
  .wp-hero .page-hero__title { font-size: 34px; }
  .wp-hero .page-hero__lead { font-size: 14px; line-height: 1.7; }
  .wp-hero .page-hero__title .page-hero__sub { font-size: 13px; }
}


/* breadcrumb */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 12px; color: var(--c-muted);
  padding: 18px 0 14px;
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb .sep { color: #c5c5c5; }
.breadcrumb .cur { color: var(--c-text-2); }

/* ---------- News list items ---------- */
.news-card { display: flex; flex-direction: column; }
.news-card__img { aspect-ratio: 16 / 10; }
.news-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: 12px; }
.news-card__title { font-size: 16px; font-weight: 700; line-height: 1.6; }
.news-card__excerpt { font-size: 13px; color: var(--c-muted); line-height: 1.8; }
.news-card__foot { margin-top: auto; display: flex; justify-content: flex-end; }
.arw-circle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-en); font-size: 15px;
  transition: .2s;
}
a:hover .arw-circle, .arw-circle:hover { background: var(--c-primary); color: #fff; }

/* pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 56px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-btn);
  font-family: var(--ff-en); font-size: 14px; font-weight: 600;
  color: var(--c-text-2); background: #fff; border: 1px solid var(--c-border);
}
.pagination .is-current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination a:hover { border-color: var(--c-primary); color: var(--c-primary); opacity: 1; }

/* ---------- Tables (company etc.) ---------- */
.def-table { border-top: 1px solid var(--c-border); }
.def-table tr { border-bottom: 1px solid var(--c-border); }
.def-table th {
  width: 220px;
  text-align: left;
  vertical-align: top;
  padding: 22px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
}
.def-table td { padding: 22px 16px; font-size: 14px; color: var(--c-text-2); }

/* ---------- Forms ---------- */
.form-table { display: grid; gap: 26px; }
.form-row { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.form-label { font-size: 14px; font-weight: 700; padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.req, .opt {
  font-size: 10px; font-weight: 700; color: #fff;
  border-radius: 3px; padding: 2px 7px; letter-spacing: .05em;
}
.req { background: var(--c-primary); }
.opt { background: #9aa0a6; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid var(--c-border-dark);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 13px 16px;
  font-family: var(--ff);
  font-size: 14px;
  color: var(--c-text);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: 2px solid var(--c-primary);
  outline-offset: -1px;
  border-color: var(--c-primary);
}
.form-textarea { min-height: 180px; resize: vertical; }

/* ---------- Utility ---------- */
.bg-soft { background: var(--c-bg-soft); }
.bg-warm { background: var(--c-bg-warm); }
.tac { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* 下層ページ共通ヒーローのアニメーション
   deco(オレンジ+波形)はごく控えめに、文字ブロックは通常の reveal */
.wp-hero .page-hero__inner.reveal { transition-delay: .05s; }
.wp-hero__deco.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wp-hero__deco.reveal { transform: none; transition: none; }
  .hero__bg, .hero__bg img,
  .hero__scroll .bar::after {
    animation: none;
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Lower page head (white / D watermark) ----------
   縦サイズ・タイポグラフィは news-hero(news.html)基準で統一 */
.lp-head { position: relative; overflow: hidden; background: #fff; }
.lp-head__d {
  position: absolute;
  top: var(--ph-d-top);
  /* コンテンツ幅(--w-container)の右端から32px内側に収める */
  right: calc(max(var(--pad-x), (100% - var(--w-container)) / 2) + 32px);
  width: 386px;   /* 483 x 0.8 */
  height: 311px;  /* 389 x 0.8 */
  z-index: 0;
  pointer-events: none;
}
.lp-head__in { position: relative; z-index: 2; padding-bottom: var(--ph-pad-bottom); }
.lp-head .breadcrumb {
  padding: var(--ph-bc-top) 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .04em;
  gap: 14px;
}
.lp-head .breadcrumb a, .lp-head .breadcrumb .cur { color: var(--c-text); }
.lp-head .breadcrumb .sep { color: var(--c-text); font-family: var(--ff-en); }
.lp-head__label {
  display: block;
  margin-top: var(--ph-label-gap);
  color: var(--c-primary);
  font-family: var(--ff-en);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
}
.lp-head__title {
  margin-top: var(--ph-title-gap);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.45;
  color: #101112;
}
.lp-head__lead { margin-top: 16px; font-size: 14px; color: #45494d; }
@media (max-width: 1180px) {
  .lp-head__title { font-size: 52px; }
  .lp-head__d { width: 288px; height: 232px; }
}
@media (max-width: 900px) {
  .lp-head__d { width: 184px; height: 148px; right: 8px; opacity: .8; }
  .lp-head__title { font-size: 38px; }
  .lp-head__label { font-size: 22px; }
}

/* ============================================================
   Responsive
   ============================================================ */
/* 狭いPC幅ではヘッダーの余白・間隔をさらに詰めて折り返しを防ぐ */
@media (max-width: 1320px) {
  .site-header__inner { padding: 0 24px; gap: 16px; }
  .gnav { gap: 14px; }
}
/* 1180px 以下: グローバルナビはハンバーガーメニュー(ドロワー)に格納し、
   ヘッダーには言語切替ボタンとハンバーガーのみを並べる */
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .btn-wallet { display: none; }
  .gnav { gap: 6px; }
  .lang-switch__btn { height: 36px; padding: 0 10px; }
  .sec-title { font-size: 40px; }
}
@media (max-width: 900px) {
  :root {
    --pad-x: 24px;
    /* 下層ページヘッダー共通トークン(SP) */
    --ph-bc-top: 24px;
    --ph-label-gap: 44px;
    --ph-label-h: 26.4px;  /* 22px × 1.2 */
    --ph-title-top: 88px;
    --ph-d-top: 24px;
    --ph-pad-bottom: 56px;
  }
  /* 小さい画面でもロゴ+言語切替+ハンバーガーが1行に収まるよう縮小 */
  .site-header__logo svg, .site-header__logo img { height: 28px; }
  .section { padding: 64px 0; }
  .sec-title { font-size: 32px; }
  .sec-label { font-size: 16px; }
  /* SP: 波形画像はcoverだと崩れるため、画像からサンプリングした赤のグラデーションに切替 */
  .site-footer { background: linear-gradient(120deg, #d64323 0%, #d04122 55%, #ca4224 100%); padding-top: 0; }
  .site-footer__main { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 48px; align-items: start; }
  .f-nav { flex-wrap: wrap; gap: 32px; }
  .site-footer__brand .f-logo svg, .site-footer__brand .f-logo img { height: 48px; }
  .f-sns { margin-top: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 8px; }
  .form-label { padding-top: 0; }
  .def-table th { width: 130px; padding: 16px 8px; }
  .def-table td { padding: 16px 8px; }
  .page-hero__title { font-size: 30px; }
  .page-hero__inner { padding: 40px 28px; }
  .page-hero__d { width: 180px; height: 180px; right: 8px; }
  .pagetop { width: 56px; height: 56px; font-size: 11px; right: 16px; bottom: 16px; }
  .site-footer__bottom .inner { flex-direction: column; gap: 6px; padding: 14px 0; }
}

/* mobile drawer nav — gnav の各項目 + Walletボタンをハンバーガー内に格納 */
@media (max-width: 1180px) {
  .gnav__drawer {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    padding: 8px 24px 24px;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 99;
    box-shadow: 0 16px 32px rgba(0,0,0,.08);
    /* 項目が画面に収まらない場合はドロワー内をスクロール */
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .menu-open .gnav__drawer { display: flex; }
  /* PCでは横並びのリンクを、ドロワー内では縦積みのリスト表示に */
  .gnav__drawer .gnav__link {
    display: block;
    padding: 15px 2px;
    border-bottom: 1px solid var(--c-border);
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text-2);
  }
  .gnav__drawer .gnav__link.is-current { color: var(--c-primary); }
  .gnav__wallet { display: inline-flex; margin-top: 20px; }
  /* ドロワーを開いている間は背面をスクロールさせない */
  .menu-open { overflow: hidden; }
}
@media (min-width: 1181px) {
  .gnav__drawer { display: contents; }
  .gnav__drawer a.drawer-only { display: none; }
}
