@charset "UTF-8";
/* ==================================================================
   style.css — フリューゲル合同会社 コーポレートサイト

   1. トークン定義
   2. リセット / ベースタイポグラフィ
   3. レイアウトユーティリティ
   4. 共通コンポーネント（sec-head / btn / card / badge ほか）
   5. ヘッダー / サイド表示
   6. 各セクション（HERO / ABOUT / SERVICE / WORKS / COMPANY / CONTACT）
   7. フォーム
   8. フッター
   9. レスポンシブ / モーション設定
   ================================================================== */


/* ==================================================================
   1. トークン定義
   ================================================================== */
:root {
  --c-navy:   #14375C;  /* 大見出しの濃色側・フッター背景 */
  --c-blue:   #0B4FD8;  /* ロゴ左端のディープブルー */
  --c-cyan:   #17C8E8;  /* アクセント（罫線・グラデーション・フォーカスリング用）*/

  /* 大見出しの淡色側「専用」トークン。
     --c-cyan(#17C8E8) は白背景で 2.01:1 しかなく、WCAGの基準（大きな文字 3:1）に届かない。
     色相・彩度はそのままで明度だけ下げ、3.04:1（#F0F5F9背景）を確保した色。
     濃色側 #14375C との差は十分残るので「英字が2色に分かれる」個性は保たれる。
     ※ --c-cyan と共用しないこと。用途が違う（あちらは文字色ではない）。 */
  --c-head-b: #129AB3;

  /* 小さな英字ラベル（12px前後）専用。
     小さい文字はWCAGの基準が 4.5:1 と厳しく、--c-head-b(3.04:1) でも足りない。
     用途が違う3色（--c-cyan / --c-head-b / --c-label）は共用しないこと（CLAUDE.md §4-2）。 */
  --c-label:  #0B768E;
  --c-green:  #10C98E;  /* ロゴ右端のグリーン */
  --c-ink:    #2B3440;  /* 見出し（和文） */
  --c-slate:  #5B6570;  /* 本文 */
  /* 補助テキスト。本文 --c-slate（対白 5.93:1）との差を残すため、
     WCAGの基準（小さな文字 4.5:1）を満たす中で最も明るい値を選んでいる。
     これ以上濃くすると本文と見分けが付かなくなり、「補助情報」という
     役割そのものが消える。安易に濃くしないこと（CLAUDE.md §4-2）。 */
  --c-mute:   #67717D;  /* 補助テキスト（対白 4.96:1）*/
  --c-bg:     #FFFFFF;
  --c-bg-soft:#F0F5F9;  /* 淡い青みグレーの背景 */
  --c-line:   #E3EAF1;

  --grad-brand:   linear-gradient(120deg, #0B4FD8 0%, #17C8E8 55%, #10C98E 100%);

  /* ── 写真に重ねるオーバーレイ ───────────────────────────────────
     写真を「見せながら」白文字を読ませるため、1枚の均一なグラデーションではなく
     役割の違う2層を重ねる。CSSの複数背景は「先に書いたものが上」に載る。

       1層目（下）＝ shade  : 濃紺の陰。文字が乗る左側だけを暗くし、右へ抜けていく
       2層目（上）＝ tint   : ブランドカラーの薄い色味。写真の素材差を吸収し全体のトーンを揃える

     tint を薄く（.12〜.26）保つことで写真のディテールが残る。
     緑は「アクセント」なので、右端の最終ストップだけに、ごく薄く置く。 */
  /* 陰を「濃いまま保つ」範囲。h1の白文字が画面幅の何%まで届くかで変わるため、
     ブレークポイントごとに下のメディアクエリで差し替える（§9）。
     ここを画面幅に追従させないと、狭い画面で文字の右端が明るい側に載って読めなくなる。 */
  --ov-hold: 58%;   /* ここまでは不透明度 .72 以上を維持する */
  --ov-mid:  72%;
  --ov-fade: 84%;

  --grad-overlay:
    /* 2層目：ブランドの色味。緑は最後の10%だけに置く（＝右端のごく一部） */
    linear-gradient(112deg,
      rgba(11, 79,216,.24)  0%,
      rgba(23,200,232,.15) 70%,
      rgba(23,200,232,.12) 90%,
      rgba(16,201,142,.11) 100%),
    /* 1層目：濃紺の陰。白文字とのコントラスト比は最小 4.9:1（実測値は報告参照） */
    linear-gradient(100deg,
      rgba(12, 38, 66,.92) 0%,
      rgba(14, 42, 72,.84) calc(var(--ov-hold) - 20%),
      rgba(17, 48, 80,.72) var(--ov-hold),
      rgba(19, 52, 88,.34) var(--ov-mid),
      rgba(20, 55, 92,.12) var(--ov-fade),
      rgba(20, 55, 92,.04) 100%);

  /* CONTACT は中央に白いフォームカードが乗り、見出しも中央。
     左右の傾斜ではなく上下方向で落とし、全体は青主体に統一する。 */
  --grad-overlay-contact:
    linear-gradient(112deg,
      rgba(11, 79,216,.24)  0%,
      rgba(23,200,232,.15) 70%,
      rgba(16,201,142,.12) 100%),
    linear-gradient(168deg,
      rgba(14, 42, 72,.80)  0%,
      rgba(17, 48, 80,.70) 48%,
      rgba(20, 55, 92,.66) 100%);

  --radius: 12px;

  /* レイアウト */
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 11vw, 130px);
  /* ヘッダーの高さ。ロゴの上下に十分な余白を取るため、ロゴ高さ + 20px×2 で決めている。
     スクロール後は薄くして画面を圧迫しないようにする（ロゴも 44 → 38px に縮む）。 */
  --header-h:       80px;   /* スクロール前（透明背景・白ロゴ）: ロゴ44px + 上下18px */
  --header-h-solid: 68px;   /* スクロール後（白背景・通常ロゴ）: ロゴ38px + 上下15px */

  --shadow: 0 2px 16px rgba(20, 55, 92, .06);
  --shadow-lg: 0 8px 40px rgba(20, 55, 92, .10);

  /* ── 書体 ────────────────────────────────────────────────────
     和文は「OSに入っている書体」を使う。Webフォントは読み込まない。
       macOS/iOS : Hiragino Sans（ヒラギノ角ゴ）
       Windows   : Yu Gothic Medium（游ゴシック体 Medium）
                   ※ "Yu Gothic" の Regular は細すぎるので Medium を先に置く
     先頭の 'Noto Sans JP' は「入っている人の端末でだけ使う」ための指定。
     ダウンロードは発生しないので速度には影響しない。
     ★ 和文にWebフォントを足さないこと。理由は CLAUDE.md §4-3 に明記。

     英字の 'Outfit' だけは Google Fonts から非同期で読み込む（1ファイル31KB）。
     届くまでの一瞬は下のフォールバックで表示されるため、画面は止まらない。 */
  --font-en: 'Outfit', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-ja: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
             'Yu Gothic Medium', YuGothic, 'Yu Gothic', Meiryo, sans-serif;
}


/* ==================================================================
   2. リセット / ベースタイポグラフィ
   ================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--c-slate);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--c-ink);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

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

button { font: inherit; color: inherit; }

address { font-style: normal; }

/* フォーカスリングは絶対に消さない（§8） */
:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: rgba(23, 200, 232, .25); }

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

/* 本文へスキップ */
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: #fff;
  color: var(--c-navy);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 0; }


/* ==================================================================
   3. レイアウトユーティリティ
   ================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--c-bg-soft); }

.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 未確定箇所のマーカー（公開前に目視で見つけるため） */
.todo-mark {
  background: #fff4e5;
  color: #9a5b00;
  border: 1px dashed #e0a44d;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .92em;
}

/* 背景のネットワーク装飾（§4-4）— 主張させない */
.net-deco {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  color: var(--c-cyan);
}
.net-deco line   { stroke: currentColor; stroke-width: 1; }
.net-deco circle { fill: currentColor; }

/* スクロール連動のフェードイン（JSが有効なときだけ働く） */
.js [data-fade] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.js [data-fade].is-visible { opacity: 1; transform: none; }


/* ==================================================================
   4. 共通コンポーネント
   ================================================================== */

/* --- セクション見出し（このサイトの顔）--- */
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }

.sec-head__en {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1.05;
  margin: 0;
}
.sec-head__a { color: var(--c-navy); }
.sec-head__b { color: var(--c-head-b); }

.sec-head__ja {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-slate);
  letter-spacing: .1em;
  line-height: 1.6;
  margin: 10px 0 0;
}

.sec-head--center { text-align: center; }
.sec-head--right  { text-align: right; }

/* --- ピルボタン --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding: 0 12px 0 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn:hover { text-decoration: none; transform: translateX(2px); }

.btn__arrow {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  flex: 0 0 22px;
}
.btn__arrow svg { width: 12px; height: 12px; }

/* 第1種：塗り */
.btn--fill {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(11, 79, 216, .22);
}
.btn--fill .btn__arrow { background: #fff; color: var(--c-blue); }
.btn--fill:hover { box-shadow: 0 6px 22px rgba(11, 79, 216, .3); }

/* 第2種：線 */
.btn--outline {
  background: #fff;
  border: 1px solid var(--c-line);
  color: var(--c-navy);
}
.btn--outline .btn__arrow { background: var(--c-navy); color: #fff; }

/* 写真の上に置く線ボタン（ヒーロー用） */
.hero .btn--outline {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  backdrop-filter: blur(4px);
}
.hero .btn--outline .btn__arrow { background: #fff; color: var(--c-navy); }

/* --- 必須バッジ --- */
.badge-req {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  background: #E24B4A;
  border-radius: 4px;
  vertical-align: 2px;
}


/* ==================================================================
   5. ヘッダー / サイド表示
   ================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.is-solid {
  height: var(--header-h-solid);
  background: #fff;
  box-shadow: 0 1px 0 var(--c-line), 0 2px 14px rgba(20, 55, 92, .05);
}

.site-header__inner {
  height: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ロゴは2枚重ねて opacity で切り替える（レイアウトを動かさない） */
.site-header__logo {
  position: relative;
  display: block;
  /* 高さだけ指定する。幅は中の画像（通常版）がそのまま決めるので、
     ロゴを作り直して比率が変わっても指定を直す必要がない。 */
  height: 44px;
  flex: 0 0 auto;
  transition: height .3s ease;
}
/* スクロール後はわずかに縮める。ヘッダーが薄くなり画面を圧迫しにくくなる */
.site-header.is-solid .site-header__logo { height: 38px; }

.site-header__logo-img {
  display: block;
  height: 100%;
  width: auto;                 /* 比率は画像まかせ */
  transition: opacity .3s ease;
}
/* 白抜き版だけを重ねる。通常版は通常フローに置いて親の横幅を決めさせる */
.site-header__logo-img--white {
  position: absolute;
  top: 0; left: 0;
}
.site-header__logo-img--white { opacity: 1; }
.site-header__logo-img--color { opacity: 0; }
.site-header.is-solid .site-header__logo-img--white { opacity: 0; }
.site-header.is-solid .site-header__logo-img--color { opacity: 1; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.site-nav__list { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }

.site-nav__link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .04em;
  color: #fff;
  transition: color .3s ease, opacity .2s ease;
}
.site-nav__link:hover { text-decoration: none; opacity: .7; }
.site-header.is-solid .site-nav__link { color: var(--c-navy); }

.site-nav__cta { height: 42px; font-size: 13px; }

/* ハンバーガー（〜768pxで表示） */
.hamburger {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.hamburger__bar {
  position: absolute;
  left: 11px;
  width: 22px; height: 1.5px;
  background: #fff;
  transition: transform .3s ease, opacity .2s ease, background-color .3s ease;
}
.hamburger__bar:nth-child(1) { top: 16px; }
.hamburger__bar:nth-child(2) { top: 21.5px; }
.hamburger__bar:nth-child(3) { top: 27px; }
.site-header.is-solid .hamburger__bar { background: var(--c-navy); }

.hamburger.is-open .hamburger__bar { background: #fff; }
.hamburger.is-open .hamburger__bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.is-open .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger.is-open .hamburger__bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 縦書きのサイド表示 */
.side-label {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--c-mute);
  pointer-events: none;
}

/* 下層ページはヘッダーが白背景固定（position:fixed）なので、その高さぶん本文を下げる。
   タイトル帯があるページは帯側で、無いページは #main 側で下げる。 */
/* 下層ページのヘッダーは最初から白背景（is-solid）なので、
   上部の余白も「スクロール後」の高さに合わせる。
   --header-h（スクロール前の高さ）を使うと、その差のぶん余白が空きすぎる。 */
.page-legal  .page-head { padding-top: var(--header-h-solid); }
.page-thanks #main      { padding-top: var(--header-h-solid); }


/* ==================================================================
   6. 各セクション
   ================================================================== */

/* --- ② HERO --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
  padding-block: calc(var(--header-h) + 40px) 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: var(--grad-overlay); }
.net-deco--hero { opacity: .18; color: #fff; }

.hero__inner { color: #fff; }

.hero__tagline {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 22px;
}
.hero__tagline::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: rgba(255, 255, 255, .7);
}

.hero__title {
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: .02em;
  color: #fff;
  margin: 0 0 14px;
}
.hero__title-line { display: block; }

.hero__sub {
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.hero__lead {
  max-width: 560px;
  font-size: 15px;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 36px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- ③ ABOUT --- */
.about__inner {
  display: grid;
  /* 右カラムは右揃えのテキストなので、左端がガタつく分だけ視覚的な間隔が広く見える。
     画像側を広く取り、テキスト列を絞ることで実際の「見た目の間」を詰める */
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(20px, 2.6vw, 36px);
  align-items: start;
}

/* padding-right / padding-bottom は「小画像が大画像からはみ出す量」。
   小さくするほど2枚の重なりが深くなる。 */
.about__media { position: relative; padding-bottom: 8%; padding-right: 6%; }
.about__img { border-radius: var(--radius); }
.about__img--main {
  width: 100%;
  /* 明るい画像だと白背景に溶けて輪郭が消えるため、細い罫線で境界を出す */
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-lg);
}
.about__img--sub {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  /* 白枠。重なっている境目をはっきりさせ、2枚が別レイヤーであることを示す */
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
}

/* 画像の重心（やや上）に本文の頭を合わせる。上下中央だと視線がつながらない */
.about__body { padding-top: clamp(6px, 2vw, 26px); }
.about__body .sec-head { margin-bottom: clamp(24px, 3vw, 36px); }

.about__mission {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 2;
  color: var(--c-ink);
  text-align: right;
}

/* --- ④ SERVICE --- */
.service__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 56px);
  overflow: hidden;
}
.net-deco--service {
  opacity: .14;
  left: auto;
  width: 55%;
  height: 60%;
  bottom: auto;
}

.service__list { border-top: 1px solid var(--c-line); }

.service__tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2.2vw, 24px) 14px;
  border-bottom: 1px solid var(--c-line);
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 400;
  color: var(--c-ink);
  transition: color .25s ease, background-color .25s ease;
}
/* ずれるのはラベルだけ。transform を使うのでレイアウト再計算が起きない */
.service__tab-label { transition: transform .25s ease; }
.service__tab:hover { text-decoration: none; color: var(--c-blue); }
.service__tab:hover .service__tab-label { transform: translateX(8px); }

.service__tab .btn__arrow {
  background: var(--c-bg-soft);
  color: var(--c-navy);
  transition: background-color .25s ease, color .25s ease;
}
/* 選択中は「文字色が変わるだけ」だと分かりにくいので、
   行全体に薄い水色を敷き、右へ抜けるグラデーションで帯にする。
   矢印は塗りつぶし、ラベルは太字にして三重に差をつける。 */
.service__tab.is-active {
  color: var(--c-blue);
  font-weight: 700;
  background: linear-gradient(90deg, rgba(23, 200, 232, .14) 0%, rgba(23, 200, 232, .02) 85%, rgba(23, 200, 232, 0) 100%);
  border-radius: 6px 6px 0 0;
}
.service__tab.is-active .btn__arrow { background: var(--grad-brand); color: #fff; }

.service__img {
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.service__title { font-size: 17px; margin-bottom: 10px; }
.service__text  { font-size: 15px; }

/* JS無効時は3つとも縦に並んで全て読める。JSが有効なときだけ切り替え表示にする */
.service__panel + .service__panel { margin-top: 36px; }
.service__card.is-enhanced .service__panel { display: none; }
.service__card.is-enhanced .service__panel.is-active { display: block; margin-top: 0; }

/* --- ⑤ WORKS --- */
.works__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.works__card {
  position: relative;
  /* flex column ＋ 下の .works__more の margin-top:auto で、
     説明文の長さが違っても「サイトを見る」の位置が2枚で揃う */
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(26px, 3vw, 36px);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.works__card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.works__accent {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
}
.works__card--blue  .works__accent { background: linear-gradient(90deg, var(--c-blue), var(--c-cyan)); }
.works__card--green .works__accent { background: linear-gradient(90deg, var(--c-cyan), var(--c-green)); }

.works__external {
  position: absolute;
  top: clamp(22px, 2.6vw, 30px);
  right: clamp(22px, 2.6vw, 30px);
  color: var(--c-mute);
  transition: color .25s ease;
}
.works__card:hover .works__external { color: var(--c-blue); }

.works__name {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.3;
  margin-bottom: 10px;
}
.works__card--blue  .works__name { color: var(--c-blue); }
.works__card--green .works__name { color: var(--c-green); }

.works__kana {
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 400;
  color: var(--c-mute);
  letter-spacing: 0;
}

.works__text { display: block; font-size: 15px; color: var(--c-slate); margin-bottom: 22px; }

.works__more {
  margin-top: auto;          /* カード下端に揃える */
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--c-navy);
}
.works__more .btn__arrow { background: var(--c-navy); color: #fff; }
.works__card--blue:hover  .works__more .btn__arrow { background: var(--c-blue); }
.works__card--green:hover .works__more .btn__arrow { background: var(--c-green); }

/* --- ⑥ COMPANY --- */
.company__card { padding: clamp(8px, 2vw, 20px) clamp(20px, 4vw, 56px); }

.company__row {
  display: grid;
  /* 最長の項目名でも「事業内容」の4文字。150pxは余りすぎるので詰め、
     その分を内容側（住所・事業内容）に回す */
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 28px;
  padding-block: clamp(16px, 2vw, 22px);
  border-bottom: 1px solid var(--c-line);
}
.company__row:last-child { border-bottom: 0; }

.company__dt { font-size: 14px; font-weight: 700; color: var(--c-navy); }
.company__dd { font-size: 15px; }
.company__dd a { color: var(--c-blue); }

/* --- ⑦ CONTACT --- */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact__media { position: absolute; inset: 0; z-index: -1; }
.contact__img { width: 100%; height: 100%; object-fit: cover; }
.contact__overlay { position: absolute; inset: 0; background: var(--grad-overlay-contact); }
/* CONTACTは縦に長いので、装飾を上部の帯だけに収める
   （セクション全体に引き伸ばすと線やノードが太くなりすぎる） */
.net-deco--contact {
  opacity: .16;
  color: #fff;
  height: 520px;
  bottom: auto;
}

.contact__inner .sec-head__a,
.contact__inner .sec-head__b { color: #fff; }
.contact__inner .sec-head__b { opacity: .72; }
.contact__inner .sec-head__ja { color: rgba(255, 255, 255, .85); }

.contact__lead {
  text-align: center;
  color: #fff;
  font-size: 15px;
  margin: -24px 0 clamp(32px, 4vw, 48px);
}

.contact__card {
  max-width: 840px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
}

.contact__direct {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--c-line);
  text-align: center;
}
.contact__direct-title { font-size: 13px; color: var(--c-mute); margin-bottom: 4px; }
.contact__direct-body  { font-size: 15px; font-weight: 700; color: var(--c-navy); }
.contact__direct-body a { color: var(--c-blue); }
.contact__direct-sep { margin-inline: 10px; color: var(--c-line); }


/* ==================================================================
   7. フォーム
   ================================================================== */
.form__row + .form__row { margin-top: clamp(20px, 2.6vw, 28px); }

.form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
}

.form__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-family: var(--font-ja);
  font-size: 16px;           /* iOS Safariの自動ズーム防止（16px未満にしない） */
  line-height: 1.6;
  color: var(--c-ink);
  background: #F4F7FA;
  border: 0;
  border-radius: 6px;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.form__input::placeholder { color: #A9B4BF; }
.form__input:hover { background: #EDF2F7; }
.form__input:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 0; background: #fff; }

.form__textarea { min-height: 160px; resize: vertical; }

.form__select-wrap { position: relative; }
.form__select {
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}
.form__select-wrap::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--c-slate);
  border-bottom: 1.5px solid var(--c-slate);
  transform: rotate(45deg);
  pointer-events: none;
}

.form__note { margin-top: 6px; font-size: 12px; line-height: 1.7; color: var(--c-mute); }
.form__note a { color: var(--c-blue); text-decoration: underline; }

/* ハニーポット（人間には見えない位置に置く。display:none は避ける） */
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* プライバシーポリシーのスクロールボックス */
.form__row--privacy { margin-top: clamp(28px, 3.4vw, 40px); }
.form__label--block { margin-bottom: 10px; }

.form__policy {
  max-height: 180px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-slate);
}
.legal__lead { margin-bottom: 14px; }
.legal__h {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 18px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-line);
}
.legal__list { margin: 6px 0 0; padding-left: 1.4em; }
.legal__list li { list-style: disc; }
ol.legal__list li { list-style: decimal; }
.legal__date { margin-top: 18px; font-size: 12px; color: var(--c-mute); }

.form__check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 400;
  color: var(--c-ink);
  cursor: pointer;
}
.form__check input {
  width: 20px; height: 20px;
  accent-color: var(--c-blue);
  flex: 0 0 20px;
  cursor: pointer;
}

.form__submit { margin-top: clamp(28px, 3.4vw, 40px); text-align: center; }
.btn--submit { min-width: 220px; justify-content: center; }
.btn--submit[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* JSによるリアルタイム検証の表示 */
.form__input.is-error { outline: 2px solid #E24B4A; outline-offset: 0; background: #FEF3F2; }
.form__error {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  color: #C7302E;
}


/* ==================================================================
   8. フッター
   ================================================================== */
.site-footer {
  position: relative;
  color: rgba(255, 255, 255, .78);
  /* フッターは背景画像を使わない（濃紺の単色）。
     情報量が多い場所なので無地のほうが締まる、という判断。
     写真を敷いてもオーバーレイでほぼ潰れるため、容量だけが増えていた。 */
  background-color: var(--c-navy);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-navy);
  opacity: .88;
  pointer-events: none;
}
.site-footer > * { position: relative; }

.site-footer__accent {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  z-index: 1;
}

.site-footer__inner {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(56px, 8vw, 88px) var(--gutter) clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
}

.site-footer__logo { display: block; width: 146px; margin-bottom: 22px; }
.site-footer__address { font-size: 13px; line-height: 2; margin-bottom: 24px; }
.site-footer__address a { color: #fff; }

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.site-footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.site-footer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 11px;
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
  transition: color .25s ease;
}
.site-footer__link:hover { text-decoration: none; color: #fff; }
.site-footer__link .btn__arrow {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  width: 20px; height: 20px; flex-basis: 20px;
  transition: background-color .25s ease;
}
.site-footer__link:hover .btn__arrow { background: rgba(255, 255, 255, .3); }

.site-footer__copy {
  padding: 20px var(--gutter) 28px;
  text-align: center;
  font-size: 12px;
  /* 不透明度 .58 は --c-navy 背景で 5.18:1。基準（小さな文字 4.5:1）を満たしつつ、
     住所の .78（8.03:1）との差を残せる値。
     .65 以上にすると住所との差が縮まり「最も弱い情報」という階層が消える。
     安易に上げないこと（CLAUDE.md §5-8）。 */
  color: rgba(255, 255, 255, .58);
  border-top: 1px solid rgba(255, 255, 255, .12);
}


/* ==================================================================
   9. レスポンシブ
   ================================================================== */

/* --- 〜1200px：ヒーローの陰を保つ範囲を右へ広げる ---
   h1のフォントサイズは 8vw で頭打ち（5.2rem）になるため、画面が狭いほど
   文字が画面幅に占める割合が増える（1440px＝約55% → 1000px＝約65%）。
   陰の切れ目もそれに合わせて右へずらさないと、文字の右端が読めなくなる。 */
@media (max-width: 1200px) {
  :root { --ov-hold: 70%; --ov-mid: 84%; --ov-fade: 94%; }
}

/* --- 〜1024px：サイド表示を隠す --- */
@media (max-width: 1023px) {
  .side-label { display: none; }
}

/* --- 〜900px：ヒーローの文字が画面幅いっぱいに広がる ---
   左右の傾斜では右端の文字が読めないので、陰を上下方向に切り替える。 */
@media (max-width: 900px) {
  :root {
    --grad-overlay:
      linear-gradient(112deg,
        rgba(11, 79,216,.24)  0%,
        rgba(23,200,232,.15) 70%,
        rgba(16,201,142,.12) 100%),
      linear-gradient(160deg,
        rgba(12, 38, 66,.84)  0%,
        rgba(15, 44, 74,.74) 55%,
        rgba(18, 50, 84,.70) 100%);
  }
}

/* --- 〜900px：2カラムを1カラムへ --- */
@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__media { order: 2; padding-right: 10%; padding-bottom: 10%; }
  .about__body  { order: 1; padding-top: 0; }
  .about__body .sec-head--right,
  .about__mission { text-align: left; }

  .service__card { grid-template-columns: 1fr; }
  .works__grid   { grid-template-columns: 1fr; }

  .site-footer__inner { grid-template-columns: 1fr; }
}

/* --- 〜768px：モバイルメニュー --- */
@media (max-width: 768px) {
  /* 狭い画面ではヘッダーを薄く保つ。スクロール前後で高さを変えない
     （もともと薄いので、変化させるとハンバーガーの位置が動いて押しにくい） */
  :root { --header-h: 64px; --header-h-solid: 64px; }

  /* ロゴも一段小さく固定。ハンバーガーとの間隔を確保する */
  .site-header__logo,
  .site-header.is-solid .site-header__logo { height: 36px; }

  .hamburger { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    margin: 0;
    padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    background: var(--c-navy);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item { border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .site-nav__link,
  .site-header.is-solid .site-nav__link {
    display: block;
    padding: 18px 4px;
    font-size: 16px;
    color: #fff;
  }
  .site-nav__cta { align-self: flex-start; margin-top: 28px; height: 48px; font-size: 14px; }

  /* メニューを開いている間は背面をスクロールさせない */
  body.is-menu-open { overflow: hidden; }

  .hero { min-height: 86vh; }
  .company__row { grid-template-columns: 1fr; gap: 4px; }
}

/* --- 〜480px --- */
@media (max-width: 480px) {
  body { font-size: 14px; }
  .hero__lead, .service__text, .works__text, .company__dd { font-size: 14px; }

  .btn { height: 46px; padding-left: 22px; font-size: 13px; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }

  /* h1が同じ内容を大きく出しているので、狭い画面ではタグラインを省く */
  .hero__tagline { display: none; }

  .about__media { padding-right: 12%; padding-bottom: 12%; }
  .about__img--sub { width: 50%; border-width: 4px; }

  .site-footer__nav { grid-template-columns: 1fr; }
}


/* ==================================================================
   モーションを減らす設定（§8）
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-fade] { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  .works__card:hover { transform: none; }
  .service__tab:hover .service__tab-label { transform: none; }
}


/* ==================================================================
   10. 下層ページ（privacy / tokushoho / thanks）
   ================================================================== */

body.page-sub { background: var(--c-bg-soft); }

/* --- ページタイトル帯（§5-2）--- */
.page-head {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}
.page-head__accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
}
.page-head__inner {
  padding-block: clamp(44px, 7vw, 76px);
}
.page-head__en {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--c-label);
  margin: 0 0 12px;
}
.page-head__title {
  font-size: clamp(1.5rem, 3.6vw, 2.125rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-ink);
  margin: 0;
}
.page-head__lead {
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-slate);
  margin: 16px 0 0;
  max-width: 720px;
}

/* --- 本文エリア --- */
.page-body { padding-block: clamp(48px, 7vw, 88px); }

.legal-card {
  max-width: 840px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px);
}

/* 条文本文。フォーム内のスクロールボックス（13px）とは別に、
   ページ本体では読みやすいサイズに上書きする（§5-2）。 */
.legal-card p,
.legal-card li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-slate);
}
.legal-card .legal__lead { margin-bottom: 28px; }
.legal-card .legal__h {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 36px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}
.legal-card .legal__h:first-of-type { margin-top: 0; }
.legal-card .legal__list { margin: 10px 0 0; padding-left: 1.5em; }
.legal-card .legal__list li { margin-top: 4px; }
.legal-card .legal__date {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-mute);
}
.legal-card .legal__date p { font-size: 13px; color: var(--c-mute); margin: 0; }

/* --- 特商法の2カラム表（§5-2）--- */
.tokushoho {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.tokushoho th,
.tokushoho td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
  font-size: 15px;
  line-height: 1.9;
}
.tokushoho tr:first-child th,
.tokushoho tr:first-child td { border-top: 1px solid var(--c-line); }
.tokushoho th {
  width: 34%;
  background: var(--c-bg-soft);
  font-weight: 700;
  color: var(--c-navy);
  white-space: nowrap;
}
.tokushoho td { color: var(--c-slate); word-break: break-word; }
.tokushoho a { color: var(--c-blue); }

/* 補足文（「※」で始まる行）は小さく（§5-2）*/
.note {
  display: inline-block;
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-mute);
}

/* --- トップページに戻るリンク --- */
.page-body__back { margin: 32px 0 0; text-align: center; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--c-navy);
}
.back-link__arrow { transition: transform .2s ease; }
.back-link:hover { text-decoration: none; color: var(--c-blue); }
.back-link:hover .back-link__arrow { transform: translateX(-3px); }

/* --- 送信完了ページ --- */
.thanks { padding-block: clamp(64px, 10vw, 120px); }
.thanks__inner {
  max-width: 720px;
  text-align: center;
}
.thanks__icon { color: var(--c-green); line-height: 0; }
.thanks__en {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--c-label);
  margin: 22px 0 10px;
}
.thanks__title {
  font-size: clamp(1.375rem, 3.4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-ink);
  margin: 0;
}
.thanks__lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-slate);
  margin: 24px 0 0;
}
.thanks__note {
  font-size: 14px;
  line-height: 1.9;
  color: var(--c-slate);
  margin: 18px 0 0;
}
.thanks__note a { color: var(--c-blue); }
.thanks__direct {
  margin-top: 32px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.thanks__direct-title { font-size: 13px; color: var(--c-mute); margin: 0 0 6px; }
.thanks__direct-body  { font-size: 15px; font-weight: 700; color: var(--c-navy); margin: 0; }
.thanks__direct-body a { color: var(--c-blue); }
.thanks__direct-sep { margin-inline: 10px; color: var(--c-line); }
.thanks__actions { margin-top: 36px; display: flex; justify-content: center; }


/* ==================================================================
   11. フォームのサーバー側エラー表示
   ================================================================== */

/* 送信に失敗した／入力に不備があったときにフォーム上部へ出す帯 */
.form__alert {
  margin-bottom: clamp(24px, 3vw, 32px);
  padding: 18px 20px;
  background: #FEF3F2;
  border: 1px solid #F3C6C3;
  border-left: 4px solid #E24B4A;
  border-radius: 6px;
}
.form__alert:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
.form__alert p {
  font-size: 14px;
  line-height: 1.8;
  color: #8C2B29;
  margin: 0;
}
.form__alert p + p { margin-top: 6px; }
.form__alert-title { font-weight: 700; font-size: 15px !important; }
.form__alert-contact { margin-top: 10px !important; font-weight: 700; }
.form__alert a { color: #C7302E; text-decoration: underline; }


/* ==================================================================
   12. 下層ページのレスポンシブ
   ================================================================== */

/* 600px以下：特商法の表を縦積みにする（§5-2）*/
@media (max-width: 600px) {
  .tokushoho tr { display: block; }
  .tokushoho th,
  .tokushoho td { display: block; width: auto; white-space: normal; }
  .tokushoho th {
    border-bottom: 0;
    padding-bottom: 10px;
    font-size: 14px;
  }
  .tokushoho td { padding-top: 10px; }
  .tokushoho tr:first-child td { border-top: 0; }
}
