@charset "UTF-8";
/* =============================================================
   株式会社イーアンドエヌ 見積シミュレーター
   brand.css — 本体サイト（css/style.css）との共通ブランドレイヤー

   ＜設計方針＞
   ・シミュレーター本体の index.css は一切変更せず、そのまま先に読み込む。
     本ファイルは index.css の「後」に読み込み、上書きレイヤーとして働く。
   ・css/style.css を丸ごと読み込まないのは、両者で
     .container / .hero / .hero__inner の3クラスが衝突するため。
     （style.css の .hero は背景写真つきの巨大ヒーロー、
       index.css の .hero は sticky な合計金額バーで、用途が全く異なる）
     そこで本ファイルには衝突しないブロックだけを style.css から機械抽出している。
   ・抽出元： 1.Design Tokens / 3.Buttons / 4.Header / 15.Footer / 16.追従CTA
     → style.css 側を更新した際は build-brand-css.js で再生成すること。
============================================================= */

/* -------------------------------------------------------------
   0. ヘッダー／フッターに必要な最小限のベース
      （index.css のリセットに無く、style.css 側が前提にしているもの）
------------------------------------------------------------- */
.header a,
.footer a,
.fixed-cta a { text-decoration: none; }

.header ul,
.footer ul { list-style: none; margin: 0; padding: 0; }

.header img,
.footer img { max-width: 100%; vertical-align: middle; }

.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex-shrink: 0; }

/* 外部リンク（別タブ）アイコン。ヘッダー／フッターの
   「ISOレスキュー専用サイト」導線で使用する */
.icon--ext { width: 1em; height: 1em; }

/* スクリーンリーダー専用テキスト（「別タブで開きます」の読み上げ用） */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sp-only { display: inline; }
@media (min-width: 768px) { .sp-only { display: none; } }

/* フッター内側のラッパー。
   本体サイトでは .container を使っているが、index.css の .container
   （max-width:512px の見積フォーム用ラッパー）と衝突するため、
   移植時に .footer__inner へ差し替えている。 */
.footer__inner {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

:root {
  /* Color */
  --c-navy-900: #081a35;
  --c-navy-800: #0b2249;
  --c-navy-700: #12315f;
  --c-navy-600: #1a4480;
  --c-navy-500: #205293;
  --c-blue-400: #3b82c4;
  --c-blue-100: #e8f1fa;
  --c-blue-50:  #f3f8fd;

  --c-cv-500: #f77f00;
  --c-cv-600: #e86f00;
  --c-cv-700: #c25a00;
  --c-cv-400: #ff9f1c;
  --c-cv-100: #ffe3c2;
  --c-cv-50:  #fff5e9;
  --c-cv-grad: linear-gradient(135deg, #ff9f1c 0%, #f77f00 55%, #f25c05 100%);

  --c-gold: #d9a83c;
  --c-text: #24303f;
  --c-text-weak: #5b6b7c;
  --c-white: #ffffff;
  --c-line: #dbe4ee;
  --c-danger: #d64550;

  /* Shadow（多層のほのかなドロップシャドウ） */
  --shadow-sm: 0 1px 2px rgba(8, 26, 53, .04), 0 8px 24px rgba(8, 26, 53, .06);
  --shadow-md: 0 2px 4px rgba(8, 26, 53, .04), 0 16px 40px rgba(8, 26, 53, .10);
  --shadow-lg: 0 4px 8px rgba(8, 26, 53, .05), 0 28px 64px rgba(8, 26, 53, .14);
  --shadow-cv: 0 8px 20px rgba(242, 92, 5, .30);

  /* Typography */
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-num: "Oswald", "Noto Sans JP", sans-serif;

  /* Layout */
  --header-h: 68px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.25, .8, .35, 1);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 700;
  border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
  overflow: hidden;
}

.btn--cv {
  background: var(--c-cv-grad);
  color: var(--c-white);
  padding: .8em 1.6em;
  font-size: .95rem;
  box-shadow: var(--shadow-cv);
}
.btn--cv:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(242, 92, 5, .45);
  filter: brightness(1.05);
}
.btn--cv:active { transform: translateY(-1px); }

.btn--lg {
  flex-direction: column;
  gap: .1em;
  padding: 1em 3.2em;
  font-size: 1.15rem;
}
.btn--xl {
  flex-direction: column;
  gap: .1em;
  padding: 1.1em 3.4em;
  font-size: 1.2rem;
}
.btn--block { width: 100%; }

.btn__sub {
  font-size: .68em;
  font-weight: 500;
  opacity: .95;
  letter-spacing: .06em;
}

.btn .icon--arrow {
  position: absolute;
  right: 1.1em;
  top: 50%;
  translate: 0 -50%;
  transition: transform .3s var(--ease);
}
.btn:hover .icon--arrow { transform: translateX(4px); }

/* 光沢が走るエフェクト */
.btn--shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -80%;
  width: 40%;
  height: 200%;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
  transform: skewX(-25deg);
  animation: shine 3.6s var(--ease) infinite;
}
@keyframes shine {
  0%, 60% { left: -80%; }
  100% { left: 160%; }
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background .35s, box-shadow .35s;
}
.header.is-scrolled,
.header--solid {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  padding-inline: 20px;
  max-width: 1280px;
  margin-inline: auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
/* 実ロゴ（E&Nマーク）を白いチップに載せ、写真上でも白背景でも可読に */
.header__logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--c-line);
  padding: 5px;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.header__logo-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.header__logo-company {
  font-weight: 900;
  font-size: .95rem;
  color: var(--c-navy-800);
  white-space: nowrap;
}
.header__logo-tagline {
  font-size: .62rem;
  color: var(--c-text-weak);
  white-space: nowrap;
}

/* Nav (SP: ドロワー) */
.header__nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: min(82vw, 340px);
  height: calc(100dvh - var(--header-h));
  background: var(--c-navy-900);
  padding: 32px 28px;
  transform: translateX(105%);
  transition: transform .4s var(--ease);
  overflow-y: auto;
}
.header__nav.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }

.header__nav-list { display: flex; flex-direction: column; gap: 4px; }
.header__nav-link {
  position: relative;
  display: block;
  padding: 12px 8px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--c-white);
  transition: color .3s;
}
.header__nav-link::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 6px;
  width: calc(100% - 16px);
  height: 2px;
  background: var(--c-cv-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.header__nav-link:hover::after { transform: scaleX(1); }

.header__cta-sp { margin-top: 28px; }

.header__cta { display: flex; align-items: center; gap: 14px; }

.header__tel { display: none; }

.header__cv { display: none; }

/* Burger */
.header__burger {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--c-cv-grad);
  box-shadow: var(--shadow-cv);
  display: grid;
  place-items: center;
}
.header__burger span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-white);
  translate: -50% 0;
  transition: transform .3s var(--ease), opacity .3s, top .3s var(--ease);
}
.header__burger span:nth-child(1) { top: 15px; }
.header__burger span:nth-child(2) { top: 21px; }
.header__burger span:nth-child(3) { top: 27px; }
.header__burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* -------------------------------------------------------------
   4b. PCヘッダーの横幅設計

   ＜経緯＞
   ナビが6→7項目になり、1024〜1090px と 1200〜1255px の2帯域で
   ナビの必要幅が使える幅を上回っていた。フレックスアイテムは既定で
   縮む（flex-shrink: 1）ため、溢れる代わりに各リンクが縮んで
   テキストが2行に折り返され、ヘッダーが縦に伸びていた。

   ＜対策＞
   ① .header__nav-link に white-space: nowrap を指定し、
      そもそも折り返させない（＝崩れ方を「溢れ」に一本化して検知可能にする）。
   ② 横並びナビの開始位置を 1024px → 1160px に引き上げる。
      1024〜1159px は既存のドロワー（ハンバーガー）に任せる。
      7項目を窮屈に詰め込むより、ドロワーの方が操作性も良い。
   ③ 級数と余白を clamp() で流体化し、ブレークポイントの「段差」で
      急に溢れることが無いようにする。
   ④ 電話番号の表示開始を 1200px → 1320px へ。
      1200px で「電話が出現」と「ナビが拡大」が同時に起き、
      その瞬間だけ 56px 溢れる状態になっていたため、両者を分離した。

   ＜検算（全角=1em, 半角≈0.55em で概算）＞
     1160px: 使える幅 731 / ナビ 599 → 余り +132
     1320px: 使える幅 701 / ナビ 629 → 余り  +72
     1440px: 使える幅 701 / ナビ 660 → 余り  +41
   全域で正の余白を確保している。
------------------------------------------------------------- */

/* ① 折り返し禁止（ドロワー時も含め常時適用） */
.header__nav-link { white-space: nowrap; }

/* ② 1160px から横並びナビへ */
@media (min-width: 1160px) {
  .header__burger { display: none; }
  .header__cta-sp { display: none; }

  .header__nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    transform: none;
    transition: none;
    overflow: visible;
  }
  .header__nav-list {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
  }
  /* ③ 幅に応じて級数・余白をなめらかに変化させる */
  .header__nav-link {
    padding: 8px clamp(6px, .85vw, 12px);
    font-size: clamp(.76rem, .95vw, .82rem);
    color: var(--c-navy-800);
  }

  .header__cv { display: inline-flex; }
}

/* ④ 電話番号は十分な余裕が生まれる 1320px から。
      電話番号はCTAセクション・フッター・モバイル追従バーにも掲載済み。 */
@media (min-width: 1320px) {
  .header__tel {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.25;
    color: var(--c-navy-800);
  }
  .header__tel-number {
    display: inline-flex;
    align-items: center;
    gap: .25em;
    font-family: var(--font-num);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: .03em;
    white-space: nowrap;
  }
  .header__tel-number .icon { color: var(--c-cv-500); }
  .header__tel-note { font-size: .62rem; opacity: .8; white-space: nowrap; }
}

/* ISOレスキュー専用サイトへの導線（ヘッダーナビ内）。
   外部サイトへ飛ぶ項目なので、他のアンカーリンクと明確に区別する。 */
.header__nav-link--lp {
  display: inline-flex;
  align-items: center;
  gap: .35em;
}
.header__nav-link--lp::after { display: none; }   /* 共通の下線アニメは使わない */

@media (min-width: 1160px) {
  .header__nav-link--lp {
    margin-left: 6px;
    padding: 6px clamp(8px, .9vw, 12px);
    border-radius: 999px;
    color: var(--c-cv-700);
    background: var(--c-cv-50);
    border: 1px solid var(--c-cv-100);
    font-weight: 900;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  }
  .header__nav-link--lp:hover {
    background: var(--c-cv-grad);
    border-color: transparent;
    color: var(--c-white);
  }
}
/* SPドロワー内（ネイビー地）ではオレンジ文字＋枠で見せる */
@media (max-width: 1159px) {
  .header__nav-link--lp {
    margin-top: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 209, 138, .5);
    color: #ffd18a;
    justify-content: center;
  }
}

.footer {
  background: #050f1f;
  color: rgba(255, 255, 255, .8);
  padding: 56px 0 90px;
  font-size: .85rem;
}

.footer__grid { display: grid; gap: 36px; }

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--c-white);
  margin-bottom: 8px;
}
/* 実ロゴ（E&Nマーク）を白抜きにして暗いフッターに載せる */
.footer__logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.footer__tagline { font-size: .78rem; color: rgba(255, 255, 255, .55); margin-bottom: 20px; }

.footer__info div { display: flex; gap: 12px; margin-bottom: 6px; }
.footer__info dt {
  flex-shrink: 0;
  width: 72px;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
  font-size: .78rem;
  padding-top: .15em;
}
.footer__info dd { font-size: .82rem; }
.footer__info a { text-decoration: underline; text-underline-offset: 3px; }

.footer__nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__nav a {
  display: inline-block;
  padding: 4px 0;
  font-size: .8rem;
  color: rgba(255, 255, 255, .7);
  transition: color .3s;
}
.footer__nav a:hover { color: var(--c-white); }

/* フッターナビ内の専用サイト導線（外部リンクなので色で区別する） */
.footer__nav-lp {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  color: #ffd18a !important;
  font-weight: 700;
}
.footer__nav-lp:hover { color: var(--c-cv-400) !important; }

.footer__copy {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
  font-size: .72rem;
  color: rgba(255, 255, 255, .45);
}

@media (min-width: 900px) {
  .footer { padding-bottom: 56px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer__nav ul { flex-direction: column; gap: 2px; }
}

.fixed-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  gap: 1px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(8, 26, 53, .92);
  backdrop-filter: blur(8px);
  transform: translateY(110%);
  transition: transform .4s var(--ease);
}
.fixed-cta.is-visible { transform: translateY(0); }

.fixed-cta__tel, .fixed-cta__mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  font-weight: 700;
  font-size: .85rem;
  border-radius: 10px;
  padding: 12px 8px;
  color: var(--c-white);
}
.fixed-cta__tel {
  flex: 1;
  background: var(--c-navy-600);
  border: 1px solid rgba(255, 255, 255, .25);
}
.fixed-cta__mail {
  flex: 1.5;
  background: var(--c-cv-grad);
  box-shadow: var(--shadow-cv);
}

/* 追従CTAを消すのは、ヘッダー内に「無料相談」ボタン（.header__cv）が
   現れる 1160px から。1024px で消すと 1024〜1159px の帯域だけ
   常時表示のCVボタンが画面から消えてしまうため、切替点を揃えている。 */
@media (min-width: 1160px) { .fixed-cta { display: none; } }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(8, 26, 53, .85);
  color: var(--c-white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-navy-600); }
@media (min-width: 1024px) { .to-top { bottom: 28px; right: 28px; } }

/* -------------------------------------------------------------
   17. モバイル最適化（style.css の「20. モバイル最適化」のうち、
       ヘッダー／フッターに関わる分だけを反映）
------------------------------------------------------------- */
@media (max-width: 767px) {
  /* タップ領域の確保（padding 4px では約32pxしかなく指で押しづらい） */
  .footer__nav a { padding: 11px 0; font-size: .85rem; }
  .footer__info dd a { display: inline-block; padding: 4px 0; }
}
@media (max-width: 400px) {
  .footer__inner { width: min(100% - 32px, 1120px); }
}

/* -------------------------------------------------------------
   99. シミュレーター本体（index.css）へのブランド適用
       index.css は配色を CSS 変数で持っているため、
       変数を上書きするだけでボタン・ヒーロー・アクセントが一括で変わる
------------------------------------------------------------- */
:root {
  /* 旧: #3EB2D2（水色） / #255797（青） → E&N のネイビー基調へ */
  --color-primary:   var(--c-navy-600);
  --color-secondary: var(--c-navy-900);

  /* 背景は本体サイトの淡いブルーグレーに合わせる */
  --color-bg: var(--c-blue-50);

  /* アクセント（選択中の項目など）はオレンジ寄りに */
  --color-accent-bg:     var(--c-cv-50);
  --color-accent-border: var(--c-cv-100);

  --shadow-md: 0 4px 12px rgba(8, 26, 53, .15);
}

/* 本文フォントを本体サイト（Noto Sans JP）に統一 */
body { font-family: var(--font-base); }

/* 数値・金額は Oswald で見せる（本体サイトの .badge__num と同じ思想） */
.stat-number { font-family: var(--font-num); letter-spacing: .01em; }

/* 固定ヘッダー（68px）の分だけコンテンツを下げる */
.container { padding-top: calc(var(--header-h) + 24px); }

/* -- ページ見出し（旧 .site-header__title / __sub の受け皿） --
   本体サイトの .section-head と同じ組み方に揃えている */
.page-title { text-align: center; margin-bottom: 22px; }
.page-title__en {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .28em;
  color: var(--c-cv-500);
  margin-bottom: 6px;
}
.page-title__main {
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 900;
  line-height: 1.45;
  color: var(--c-navy-800);
}
.page-title__sub {
  margin-top: 8px;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--c-text-weak);
}

/* 合計金額バーの sticky 位置も固定ヘッダーの下へ */
.hero { top: calc(var(--header-h) + 12px); }

/* -- CVボタンを本体サイト（.btn--cv）と同じオレンジグラデーションに -- */
.btn-consult,
.btn-primary {
  background: var(--c-cv-grad);
  box-shadow: var(--shadow-cv);
  border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
}
.btn-consult:hover,
.btn-primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(242, 92, 5, .45);
  filter: brightness(1.05);
}
.btn-consult:active,
.btn-primary:active { transform: translateY(0); }

/* 「この内容で相談する」＝最重要CVなので、本体サイトと同じ光沢を走らせる */
.btn-consult {
  position: relative;
  overflow: hidden;
  font-weight: 700;
}
.btn-consult::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -80%;
  width: 40%;
  height: 200%;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
  transform: skewX(-25deg);
  animation: shine 3.6s var(--ease) infinite;
  pointer-events: none;
}

/* 戻る／サブ操作はネイビーのアウトラインに */
.btn-secondary {
  border-radius: 999px;
  color: var(--c-navy-700);
  border: 1px solid var(--c-line);
  background: var(--c-white);
}
.btn-secondary:hover { background: var(--c-blue-50); border-color: var(--c-navy-600); }

/* 印刷時は固定ヘッダー・フッター・追従CTAを出さない */
@media print {
  .header, .footer, .fixed-cta, .to-top { display: none !important; }
  .container { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn--shine::after, .btn-consult::after { animation: none; }
}
