/* ファーストビュー画像を縦横いっぱいに表示（オーナー要望 2026-09-17）。
   coverは要素全体を覆うよう拡大し、はみ出た部分をクロップするため、
   新しい画像は被写体・焼き込みテキストを中央付近に置く必要がある。 */
.hero {
  background-color: #052f2e;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* ダークグリーンのシャドウ（オーバーレイ）は廃止（オーナー要望 2026-09-17：
   PC・モバイル両方で不要とのこと）。代わりに画像が明るい左側では
   文字色をダークグリーンに切り替えて可読性を確保する。 */
.hero-overlay {
  background: none;
}

.hero-kicker,
.hero h1 {
  color: var(--deep);
  text-shadow: 0 1px 3px rgba(255, 255, 255, .5);
}

/* 「AI」だけグラデーションで強調（オーナー要望 2026-09-17） */
.hero h1 span {
  background: linear-gradient(90deg, var(--green), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--green);
}

.hero-actions .ghost {
  border-color: var(--deep);
  color: var(--deep);
  text-shadow: none;
}

.card-image b,
.contact-visual p,
.contact-visual em {
  display: none;
}

/* mainのテキストカラーをダークグリーンに統一（オーナー要望 2026-09-17）。
   bodyのvar(--ink)（黒に近いグレー）より、ブランドのダークグリーン
   var(--deep)の方が世界観に合う。ヒーロー・ミュートテキスト等、既に
   個別に色指定している要素はそちらが優先されるため影響しない。 */
main {
  color: var(--deep);
}

/* リード文（旧hero-copy）を読みやすくおしゃれに（オーナー要望 2026-09-17）。
   横幅いっぱいの1行だと圧迫感があったため、max-widthで行長を抑えて
   line-heightを広げ、ブランドカラーのgreenでアクセントを添えた。 */
.reasons .section-lead {
  max-width: 680px;
  margin: 16px auto 0;
  font-size: 15px;
  line-height: 1.95;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}

.reasons .section-lead::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 0 auto 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--mint));
}

@media (max-width: 760px) {
  .hero {
    background-image: url("assets/images/hero-sp.png");
    background-position: center;
    background-size: cover;
  }

}

/* main配下の背景に敷くネットワーク装飾（オーナー要望 2026-09-17）。
   position:fixedで画面に固定し、script.jsでスクロール量に応じてtransformを
   動かすことでパララックス効果を出す。ヒーローセクションは独自の背景画像を
   持つため、その裏に隠れて見えなくなるのは意図通り。 */
/* body{background:#fff}がz-index:-1の.network-bgより上に描画されて隠してしまうため、
   背景色をhtmlへ逃がし、bodyは透明にする（.network-bgをbodyの背景色より下に置くため）。 */
html {
  background: #fff;
}

body {
  background: transparent;
}

.network-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #fff;
  pointer-events: none;
  will-change: transform;
}

.network-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/images/network-bg.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
  opacity: .7;
}

@media (prefers-reduced-motion: reduce) {
  .network-bg {
    transform: none !important;
  }
}

/* 新ロゴ画像（オーナー提供 2026-09-17）。PNGの実比率(269:240)を保ったまま
   幅だけをstyles.css側のルールに委ね、高さはautoで追従させる。 */
.brand-mark {
  height: auto;
  object-fit: contain;
}

/* ============================================================
   ここから 2026-09-17 デザイン底上げフェーズ
   ・全体のリズム / タイポグラフィ微調整
   ・reveal演出のイージングを上質なものに刷新 + グリッドの段階的表示
   ・事業内容 / 導入事例 / プロジェクトの進め方 の見せ方を強化
   ・会社概要 / お問い合わせ の右カラム（旧・装飾写真）を
     画像に頼らずグラデーションパネル / フロー表示で構成
   ============================================================ */

/* ---- 全体タイポグラフィの微調整（大見出しのトラッキングを少し締める） ---- */
.section h2,
.about h2,
.contact h2,
.hero h1 {
  letter-spacing: -0.01em;
}

/* eyebrowラベルにアクセントの短い線を追加し、セクション冒頭の視線誘導を強める */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow.centered {
  display: flex;
  justify-content: center;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--green), var(--mint));
  flex: none;
}

/* 導入事例の直前にも区切り線を足し、プロセスとの単調な連続感を減らす */
.cases {
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

/* ---- reveal演出を上質なイージングに刷新（不透明度 + わずかなスケール） ---- */
.reveal {
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(26px) scale(0.985);
}

.reveal.visible {
  transform: none;
}

/* グリッド内カードを1件ずつ時間差で表示（波が広がるような登場演出） */
.reason-grid article:nth-child(1) { transition-delay: 0s; }
.reason-grid article:nth-child(2) { transition-delay: 0.08s; }
.reason-grid article:nth-child(3) { transition-delay: 0.16s; }
.reason-grid article:nth-child(4) { transition-delay: 0.24s; }

.service-grid .service-card:nth-child(1) { transition-delay: 0s; }
.service-grid .service-card:nth-child(2) { transition-delay: 0.12s; }
.service-grid .service-card:nth-child(3) { transition-delay: 0.24s; }

.case-grid article:nth-child(1) { transition-delay: 0s; }
.case-grid article:nth-child(2) { transition-delay: 0.08s; }
.case-grid article:nth-child(3) { transition-delay: 0.16s; }
.case-grid article:nth-child(4) { transition-delay: 0.24s; }

/* .steps は article と b(区切り矢印) が交互に並ぶため、実際のDOM順で狙う */
.steps article:nth-child(1) { transition-delay: 0s; }
.steps article:nth-child(3) { transition-delay: 0.1s; }
.steps article:nth-child(5) { transition-delay: 0.2s; }
.steps article:nth-child(7) { transition-delay: 0.3s; }
.steps article:nth-child(9) { transition-delay: 0.4s; }

/* ---- 「選ばれる4つの理由」：ホバーで軽やかに持ち上がる演出 ---- */
.reason-grid article {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reason-grid article:hover {
  transform: translateY(-6px);
}

.reason-icon {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.reason-grid article:hover .reason-icon {
  transform: scale(1.12) rotate(-4deg);
}

/* ---- 事業内容カード：数字バッジ＋アイコンの質感を強化 ---- */
.business .service-grid {
  counter-reset: svc-count;
}

.service-grid .service-card {
  counter-increment: svc-count;
}

.card-image::after {
  content: "0" counter(svc-count);
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(5, 47, 46, 0.68);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.service-symbol {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-symbol {
  transform: rotate(-6deg) scale(1.08);
}

.card-body > a {
  display: inline-flex;
  align-items: center;
}

/* ---- プロジェクトの進め方：ステップをつなぐ進捗ラインを追加 ---- */
.process .steps {
  position: relative;
}

.process .steps::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 38px;
  right: 38px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.process .steps::after {
  content: "";
  position: absolute;
  top: 31px;
  left: 38px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--mint));
  z-index: 0;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.process.visible .steps::after {
  width: calc(100% - 76px);
}

.process .steps article,
.process .steps > b {
  position: relative;
  z-index: 1;
}

.steps article i {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.steps article:hover i {
  background: linear-gradient(135deg, var(--green), var(--mint));
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 10px 20px rgba(0, 143, 114, 0.25);
}

@media (max-width: 760px) {
  .process .steps::before,
  .process .steps::after {
    display: none;
  }
}

/* ---- 導入事例：単調な「写真+一言」をカード化し、成果数値を強調 ---- */
.cases {
  counter-reset: case-count;
}

.case-grid article {
  counter-increment: case-count;
  position: relative;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eef3f2;
  box-shadow: 0 8px 24px rgba(5, 47, 46, 0.08);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(5, 47, 46, 0.16);
}

.case-grid article::before {
  content: "CASE 0" counter(case-count);
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(5, 47, 46, 0.72);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  z-index: 1;
}

.case-grid img {
  border-radius: 0;
}

.case-grid h3 {
  margin: 16px 16px 2px;
}

.case-grid p {
  margin: 2px 16px 16px;
}

.case-grid p strong {
  color: var(--green);
  background: linear-gradient(90deg, var(--green), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* ---- 会社概要：右カラムを、削除した写真の代わりにミッションを
       伝えるグラデーションパネルで構成（新規画像は使用しない） ---- */
.about {
  grid-template-columns: 31% 44% 25%;
}

.about-highlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  margin: 40px max(24px, calc((100vw - 1200px) / 2)) 34px 0;
  padding: 34px 26px;
  border-radius: 12px;
  background: linear-gradient(155deg, var(--deep) 0%, #0a4340 55%, var(--green) 140%);
  color: #fff;
}

.about-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
  background-size: 18px 18px;
  opacity: 0.55;
}

.about-highlight-mark {
  width: 32px;
  height: 29px;
  color: rgba(255, 255, 255, 0.85);
}

.about-highlight-quote {
  margin: 0;
  font-size: 21px;
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.about-highlight-tagline {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* ---- お問い合わせ：右カラムを、送信後の流れを示すミニフローで構成 ---- */
.contact {
  grid-template-columns: 26% 46% 28%;
}

.contact-flow {
  position: relative;
  margin: 28px max(24px, calc((100vw - 1200px) / 2)) 34px 16px;
  padding: 26px 22px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, var(--pale));
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(5, 47, 46, 0.06);
}

.contact-flow-eyebrow {
  margin: 0 0 16px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--green);
}

.contact-flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-flow-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.contact-flow-list li span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8f6f3;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  flex: none;
}

.contact-flow-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 26px;
  width: 1px;
  height: 14px;
  background: var(--line);
}

.contact-flow-mark {
  width: 28px;
  height: 26px;
  color: var(--line);
  margin-top: 22px;
}

@media (max-width: 1000px) {
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .about-highlight {
    margin: 0 max(24px, calc((100vw - 1200px) / 2)) 40px;
  }

  .contact-flow {
    margin: 0 max(24px, calc((100vw - 1200px) / 2)) 40px;
  }
}

@media (max-width: 760px) {
  .about-highlight,
  .contact-flow {
    margin: 0 22px 40px;
  }

  .about-highlight {
    padding: 28px 22px;
  }
}

/* ---- リンクの矢印をホバーでスライドさせる共通演出 ---- */
.link-arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover .link-arrow {
  transform: translateX(5px);
}

/* ---- ヘッダー：スクロール後に影を強める ---- */
.site-header {
  transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(5, 47, 46, 0.12);
}

/* ============================================================
   prefers-reduced-motion: reduce への対応（このセクションで追加した
   演出のうち、遅延・自動アニメーションを伴うものを必ず無効化する）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transform: none !important;
  }

  .reason-grid article,
  .service-grid .service-card,
  .case-grid article,
  .steps article,
  .process .steps::after {
    transition-delay: 0s !important;
  }

  .process .steps::after {
    width: calc(100% - 76px) !important;
  }

  .reason-grid article:hover,
  .reason-grid article:hover .reason-icon,
  .service-card:hover .service-symbol,
  .steps article:hover i,
  .case-grid article:hover,
  .link-arrow,
  a:hover .link-arrow {
    transform: none !important;
  }
}

/* ---- フッターナビ：日本語リンクの1文字ずつの折り返し崩れ対策 ----
   footer nav のリンクは日本語（単語区切りがない）のため、コンテナ幅が
   足りなくなると通常の折り返しでは1文字ごとに改行されてしまう
   （761px〜940pxのflex1行レイアウトで顕著。768px実測でリンク高さ75pxまで
   崩れることを確認）。各リンクを white-space:nowrap + flex-shrink:0 で
   単語（リンク）単位のまま縮まないようにし、親を flex-wrap:wrap にして
   入りきらない分だけリンク単位で自然に折り返す。
   styles.css側は760px以下でfooter navをdisplay:gridに切り替えているが、
   プライバシーポリシーのリンク追加（本文言が長い）でグリッド幅でも
   同様の崩れが起こり得るため、760px以下も同じflex-wrap方式に統一する。 */
footer nav {
  flex-wrap: wrap;
}

footer nav a {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  footer nav {
    display: flex;
    gap: 14px 25px;
  }
}

/* ---- お問い合わせフォーム：送信ボタン直前の同意テキスト ---- */
.form-consent {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 10px;
  text-align: center;
}

.form-consent a {
  color: var(--green);
  text-decoration: underline;
}

/* ---- プライバシーポリシーページ（privacy.html）の本文タイポグラフィ ----
   既存デザインにはh1の汎用スタイルや長文のプレーンテキスト向けの
   h2/p/ul装飾が無いため、.legal配下に限定して最小限のスタイルを追加する。
   配色はサイト共通のCSS変数（--deep/--muted等）をそのまま使う。 */
.legal h1 {
  font-size: 34px;
  line-height: 1.3;
  margin: 0 0 16px;
  font-weight: 900;
}

.legal h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 40px 0 12px;
  font-weight: 800;
  color: var(--deep);
}

.legal p {
  font-size: 14px;
  margin: 0 0 16px;
  max-width: 760px;
}

.legal ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 20px;
  max-width: 760px;
}

.legal li {
  margin: 4px 0;
  font-size: 14px;
}

.legal .company-table {
  max-width: 420px;
}

@media (max-width: 760px) {
  .legal h1 {
    font-size: 26px;
  }

  .legal h2 {
    font-size: 18px;
  }
}

/* ============================================================
   ===== 2026-09-19 タイポグラフィ・余白の再設計 =====
   設計書: ~/.company/engineering/specs/2026-09-19-axisconnect-typography-redesign.md
   配色・セクション構成・写真・実績数値の文言は変更しない。
   styles.css は編集しない。以下すべて overrides.css への追記のみ。
   ============================================================ */

/* ---- トークン: 角丸2段階+pill、影3段階に統合（§7 / 追加ブリーフ13） ---- */
:root {
  --r-sm: 6px;
  --r-md: 10px;
  --r-pill: 999px;
  --sh-sm: 0 6px 18px rgba(5, 47, 46, .08);
  --sh-md: 0 14px 32px rgba(5, 47, 46, .14);
  --sh-lg: 0 24px 48px rgba(5, 47, 46, .18);
}

.trust-bar,
.service-card,
.contact-form,
.case-grid img,
input,
textarea,
.about-highlight,
.contact-flow {
  border-radius: var(--r-md);
}

.case-grid img,
input,
textarea,
.service-symbol {
  border-radius: var(--r-sm);
}

.service-card {
  box-shadow: var(--sh-sm);
}

.service-card:hover {
  box-shadow: var(--sh-lg);
}

.contact-form,
.case-grid article,
.contact-flow {
  box-shadow: var(--sh-sm);
}

.case-grid article:hover {
  box-shadow: var(--sh-lg);
}

.header-cta:hover,
.button:hover {
  box-shadow: var(--sh-md);
}

.site-header.scrolled {
  box-shadow: var(--sh-md);
}

/* ---- 実在しないフォントウエイトを400/500/700/900へ丸める（追加ブリーフ8） ---- */
.brand strong,
.card-body > a {
  font-weight: 900;
}

.header-cta,
.button,
.hero-kicker {
  font-weight: 700;
}

.hero-copy {
  font-weight: 500;
}

/* ---- Webフォント未読込対策（追加ブリーフ8。<link>本体はHTML側に追加） ----
   Noto Sans JPはWindows/iOS標準搭載ではないため、Google Fontsから読み込む。
   読み込みは index.html / privacy.html の<head>で行う。 */

/* ============================================================
   §2 新しいタイポグラフィスケール（PC・1440px基準）
   ============================================================ */

/* 見出し（h2）を全セクションで統一。36/38/32とバラバラだったものを34に統一 */
.section h2,
.about h2,
.contact h2,
.section-heading h2,
.about-intro h2 {
  font-size: 34px;
}

/* カード見出しh3（理由17/事業16/事例15 → 19pxに統一） */
.reason-grid h3,
.card-body h3,
.case-grid h3 {
  font-size: 19px;
  line-height: 1.5;
}

/* リード文（理由セクション。2026-09-17の既存指定を上書き：15→17px、行高1.9） */
.reasons .section-lead {
  font-size: 17px;
  line-height: 1.9;
}

/* 本文（理由・事業・事例）新設の「読む文字」基準：11〜13px → 15px/1.85 */
.reason-grid p,
.card-body p,
.card-body li,
.case-grid p {
  font-size: 15px;
  line-height: 1.85;
}

/* プロセスのラベル・補足（§5で個別指定：ラベル16px、補足13px） */
.steps article > strong {
  font-size: 16px;
}

.steps article > small {
  font-size: 13px;
  line-height: 1.7;
}

/* 会社概要 dt/dd：11px → 15px/1.75 */
.company-table {
  font-size: 15px;
  line-height: 1.75;
}

/* フォームlabel：11px→14px/1.6、input/textarea：11px→16px/1.5（iOS自動ズーム防止） */
.contact-form > label,
.contact-form fieldset {
  font-size: 14px;
  line-height: 1.6;
}

.contact-form input,
.contact-form textarea {
  font-size: 16px;
  line-height: 1.5;
}

.contact-form textarea {
  height: 96px;
}

/* eyebrow：11→12px/1.7（トラッキングは既存の.18emを維持） */
.eyebrow {
  font-size: 12px;
  line-height: 1.7;
}

/* フッターnav：11→13px/1.6、copyright：9px→12px/1.6 */
footer nav {
  font-size: 13px;
  line-height: 1.6;
}

footer > small {
  font-size: 12px;
  line-height: 1.6;
}

/* ============================================================
   §3 コントラスト改善（配色は変えず、既存トークンの濃い側を使う）
   ============================================================ */

/* eyebrow: rgb(104,149,147) 3.33 → #456b69 (約5.0) */
.eyebrow {
  color: #456b69;
}

/* リンク緑「詳しく見る」等: #008f72 4.06 → #006b55 (約5.2) */
.card-body > a,
.form-consent a,
.outline {
  color: #006b55;
}

.outline {
  border-color: #006b55;
}

/* ヒーロー「AI」: ミント側の到達点を濃くしてグラデーション終端のコントラストを確保 */
.hero h1 span {
  background: linear-gradient(90deg, var(--green), #00a882);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ============================================================
   §4 余白の設計：セクション上下をPC 96px 0に統一
   ============================================================ */

.section {
  padding: 96px 0;
}

.reasons {
  padding-top: 96px;
  padding-bottom: 96px;
}

.business {
  padding-top: 96px;
  padding-bottom: 96px;
}

.process {
  padding-top: 96px;
  padding-bottom: 96px;
}

.cases {
  padding-top: 96px;
}

/* about/contactは内側要素任せをやめ、セクション自身にも上下の余白を持たせる */
.about {
  padding: 64px 0;
}

.contact {
  padding: 64px 0;
}

/* 見出しブロックと中身の間を40pxに統一 */
.reason-grid {
  margin-top: 40px;
}

.section-heading {
  margin-bottom: 40px;
}

.steps {
  margin-top: 40px;
}

/* 会社概要dt/ddの行：表として読めるようpadding拡大（border-bottomは既存を流用） */
.company-table div {
  padding: 12px 0;
}

/* ============================================================
   §5 セクション別の指示
   ============================================================ */

/* ---- ヒーロー ---- */
.hero-content {
  position: relative;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -28px -40px;
  z-index: -1;
  background: radial-gradient(ellipse 620px 380px at 0% 30%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.hero-kicker,
.hero h1 {
  max-width: 620px;
}

.hero {
  min-height: clamp(530px, 62vh, 680px);
}

@media (max-width: 760px) {
  .hero {
    min-height: 620px;
  }
}

/* ---- 会社概要：右の緑パネルがグリッド行の高さに引き伸ばされて空箱化するのを防ぐ ---- */
.about-highlight {
  align-self: start;
}

/* 「AIを、すべての事業の標準装備に。」の重複：表のミッション行はHTML側で削除 */

/* ---- お問い合わせ：FLOW枠も同様に引き伸ばし防止＋900px帯で横並びに変更 ---- */
.contact-flow {
  align-self: start;
}

@media (min-width: 761px) and (max-width: 1000px) {
  .contact-flow-list {
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
  }

  .contact-flow-list li {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .contact-flow-list li:not(:last-child)::after {
    display: none;
  }
}

/* 必須バッジ（HTML側で*→必須に変更済み。ここは見た目のみ） */
.contact-form b {
  display: inline-block;
  background: #fdeaea;
  color: #c23b3b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: .02em;
  vertical-align: middle;
}

/* ============================================================
   追加ブリーフ 1〜16（設計書に無い視覚的欠陥の修正）
   ============================================================ */

/* 1. プロセス番号が線を貫通する：番号spanに白背景を敷いて線を隠す。
      線の開始位置(left:38px)は1つ目の円の中心(実測約66px)とズレているため補正。
      right側は指示に無く、円(62px幅)の内側に収まるため据え置く。 */
.steps article > span {
  background: #fff;
  padding: 0 6px;
  position: relative;
  z-index: 2;
}

.process .steps::before,
.process .steps::after {
  left: 66px;
}

.process.visible .steps::after {
  width: calc(100% - 104px);
}

@media (prefers-reduced-motion: reduce) {
  .process .steps::after {
    width: calc(100% - 104px) !important;
  }
}

/* 2. 矢印<b>›</b>が円より約22px下に浮く：線1本に統一するため矢印は非表示 */
.steps > b {
  display: none;
}

/* 3. 事業カードの番号二重：画像に焼き込み済みのため::afterバッジ側を消す */
.card-image::after {
  display: none;
}

/* 4. 事業カード3枚のCTA縦位置を下端で揃える */
.service-card {
  display: flex;
  flex-direction: column;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body > a {
  margin-top: auto;
}

/* 5. 矢印リンクの字間を統一（inline-flexとinlineが混在していた） */
.card-body > a,
.section-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 6. 1739px以上で本文幅が0になる：外側ガターは最も外側の要素の外向き側だけに当てる */
.about-intro {
  padding: 48px 32px 40px max(32px, calc((100vw - 1200px) / 2));
}

.about-highlight {
  margin-right: max(32px, calc((100vw - 1200px) / 2));
}

.contact-flow {
  margin-right: max(32px, calc((100vw - 1200px) / 2));
}

/* 7. JS停止時に全ページ真っ白になる対策の<noscript>はHTML側の<head>に追加 */

/* 8. Webフォント未読込・実在しないウエイトの丸めは上部(§2直前)にまとめて記載 */

/* 9. 種別チェックボックスの崩れ：グローバルなinput,textarea{width:100%}を打ち消す。
      HTML側もtype="checkbox"→"radio"に変更済み（法人/個人は排他） */
.contact-form input[type="checkbox"],
.contact-form input[type="radio"] {
  width: auto;
  padding: 0;
  margin: 0 6px 0 0;
  flex: none;
}

.contact-form fieldset label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* 10. スマホの送信ボタンが39px（詳細度0,2,0が0,1,0に勝っていた） */
.contact-form .button {
  min-height: 52px;
  width: 100%;
  max-width: 320px;
}

/* 11. スマホナビに「お問い合わせ」が無い：リンクはHTML側に追加、ここはスタイル調整不要 */

/* 12. 閉じたモバイルメニューへのフォーカス侵入対策はscript.js側でinert切替。
       ここではフォーカスリングの復活のみ（outline:0が10%不透明のbox-shadowに
       置き換わっていて実質見えないため、:focus-visibleに軸足を移す） */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* 13. 角丸・影の統合はファイル冒頭のトークンセクションにまとめて記載 */

/* 14. 背景パララックスが下部で消える：上方向に最大約460px動くため、
       下方向にその分+余裕を確保する（vh基準だと通常の画面高では460pxに届かないため
       固定pxで確保する） */
.network-bg {
  inset: -50px 0 -600px;
}

/* 15. 未参照画像2枚(about-office.png/contact-building.png)はHTML/CSS/JSどこからも
       参照が無いことをgrepで確認済み。実ファイル削除はBashで実施 */

/* 16a. 会社概要パネルのタグラインがPC幅で2行に折れる対策 */
.about-highlight-tagline {
  white-space: nowrap;
  font-size: 9.5px;
  letter-spacing: .1em;
}

/* 16b. meta theme-colorは --deep(#052f2e) と揃える（HTML側を修正） */

/* 16c. .site-headerはbackground:rgba(255,255,255,.96)でほぼ不透明なのに
        backdrop-filter:blur(14px)が指定されていて効果ゼロ・合成レイヤーだけ増える */
.site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 16d. 導入事例の装飾写真のaltが見出しと重複：HTML側でalt=""に変更 */

/* 16e. 送信成功後の二重送信対策：script.js側で成功時はボタンを無効のまま維持 */

/* スマホのタップ領域を44px以上に（矢印リンク・同意リンク） */
@media (max-width: 760px) {
  .card-body > a,
  .section-heading > a,
  .form-consent a {
    padding: 11px 0;
  }
}

/* ===== 2026-09-19 実機検証で見つかった3件の手当て（secretary） ===== */

/* ① スマホで横スクロールが出る（実測 scrollWidth 410 / clientWidth 390）。
   原因は上の .hero-content::before（可読性用の白い帯）の inset 左右 -40px。
   .hero-content は左右マージン20pxなので、-40px だと両端に20pxずつ溢れる。
   狭い画面では溢れない値に詰め、さらに .hero 側でクリップして再発を防ぐ。 */
.hero {
  overflow: clip;
}

@media (max-width: 860px) {
  .hero-content::before {
    inset: -20px -20px;
  }
}

/* ② ヒーローの「AI」に白の text-shadow が残っており、緑の文字を白側へ寄せて
   コントラストを下げていた（独立レビューの実測 1.54:1）。グラデーションは
   既に濃い側へ寄せてあるので、span の影だけ外す。h1 本体の影は写真の上での
   可読性に効いているので残す。 */
.hero h1 span {
  text-shadow: none;
}

/* ③ ロゴ下のタグラインが 7.5px（ヘッダー）/ 9.5px（フッター）で判読できず、
   フッターでは灰色の汚れに見えていた。設計書はフッターの著作権表示しか
   指していなかったため前段の実装で漏れた分。 */
.brand small {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .04em;
}

.footer-brand small {
  font-size: 11px;
  line-height: 1.5;
}

/* ④ 広い画面ほど本文が細くなる問題（1920px 実測: 会社概要203px / お問い合わせ119px ＝ 1行8文字）。
   1200pxグリッドに揃えるための外側ガター max(32px, (100vw - 1200px)/2) を、
   幅26〜31%しかないカラムの padding に入れているため、画面が広がるほど
   ガターがカラムを食い潰す。ガターに上限160pxを設けて反転を止める。
   狭い画面での挙動（32px下限）は変えない。 */
.about-intro {
  padding-left: min(max(32px, calc((100vw - 1200px) / 2)), 160px);
}

.contact-intro {
  padding-left: min(max(32px, calc((100vw - 1200px) / 2)), 160px);
}

.about-highlight,
.contact-flow {
  margin-right: min(max(32px, calc((100vw - 1200px) / 2)), 160px);
}

/* ===== 2026-09-19 写真をSVG図版へ差し替え（オーナー判断: 案1「図版に置き換える」） =====
   差し替えの理由: 導入事例「人材」はAI生成で5人全員の顔が崩れ、事業カード2枚には
   Gmail/Googleドライブ/X/Instagram の模造ロゴが描かれていた（商標の無断使用と
   提携の誤認のリスク）。残る4枚も判読不能なUI・溶けた物体などの生成崩れがあり、
   1枚だけ緑に強く寄った色調で4枚の並びも揃っていなかった。
   PNG 7枚 計1.9MB → SVG 7枚 計13KB。 */

/* 番号「01/02/03」は旧写真に焼き込まれていたため ::after バッジを止めていた。
   SVGには番号を描かないので、テキストとしてのバッジを復活させる。 */
.card-image::after {
  display: block;
}

/* 図版は情報を持つ図なので、写真前提の cover（切り抜き）ではなく
   contain（全体を収める）で表示する。余白は図版と同じ地色で埋める。 */
.card-image {
  background: #052f2e;
}

.card-image img {
  object-fit: contain;
}

.case-grid article {
  position: relative;
}

.case-grid img {
  object-fit: contain;
  background: #eef8f5;
}

/* 図版は拡大しても情報量が増えないので、ホバーの拡大は控えめにする */
.service-card:hover .card-image img,
.case-grid article:hover img {
  transform: scale(1.02);
}

/* ===== 2026-09-19 タブレット幅（761〜1000px）のグリッドが窮屈な問題 =====
   styles.css は 1000px 以下でも 導入事例4列 / 事業3列 のままで、768pxでは
   事例カードが1枚168pxまで痩せ「AIレポート自動生 / 成で」のように
   単語の途中で折り返していた。2列に落として1枚の幅を確保する。 */
@media (max-width: 1000px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ===== 2026-10-20 スマホ幅（〜760px）でカードが2列のまま狭くなる問題 =====
   原因: 上の max-width:1000px の repeat(2,1fr) が、styles.css の 760px 以下の
   1fr（事業=1列／事例=480〜760pxで2列・480px以下で1列）と同じ詳細度で、
   overrides.css が後に読み込まれるため勝っていた。
   スマホでは事業・事例とも1列に戻し、カード幅を確保する。 */
@media (max-width: 760px) {
  .case-grid,
  .service-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* 日本語の1〜2文字だけ次行に落ちる「泣き別れ」を抑える（文言は変えない）。
     auto-phrase は文節単位で改行する指定（非対応ブラウザでは無視されるだけ）。 */
  h2,
  h3 {
    word-break: auto-phrase;
  }

  /* 長いカタカナ語の途中（「テクノロジ/ー」）で割れないよう、見出しは anywhere を使わない。
     「マーケティングテクノロジー事業」(13字+2字) がカード幅に収まるよう17pxにする */
  .card-body h3 {
    font-size: 17px;
  }

  .case-grid p,
  .service-card p,
  .service-card li {
    word-break: auto-phrase;
    overflow-wrap: anywhere;
  }

  /* 会社概要の表は overflow-wrap:anywhere を使わない（番地「3-3-3-302」が途中で割れるため）。
     長い所在地は文節単位でのみ折り返し、番地は HTML 側の .nw で1塊にする */
  .company-table dd {
    word-break: auto-phrase;
  }

  h2,
  h3 {
    text-wrap: balance;
  }

  p,
  li,
  dd {
    text-wrap: pretty;
  }

  /* 見出し中の強制改行が、狭い幅で「…一貫/支援」のように中途半端な折返しを
     生むため、スマホ幅でだけ無効化する（文字列は変更しない） */
  .section-heading h2 br {
    display: none;
  }
}

/* ===== 2026-09-19 セクション見出しを中央寄せに統一（オーナー要望「ページセンターへ配置」） =====
   「選ばれる4つの理由」だけが .centered で中央、事業・プロセス・導入事例の3つは
   左寄せで、セクションごとに軸がずれていた。4つとも中央に揃える。 */

/* 事業・導入事例: 横並び（見出し左／リンク右）をやめ、中央寄せの縦並びにする */
.section-heading {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-heading > div {
  max-width: 720px;
  margin-inline: auto;
}

.section-heading .eyebrow {
  display: flex;
  justify-content: center;
}

/* margin-top:38px は「右側に置いたリンクを見出しの高さに合わせる」ための値だった。
   下に回すので通常の間隔に戻す。 */
.section-heading > a {
  margin-top: 22px;
}

/* プロセス: ラッパーが無く eyebrow / h2 / リード文が section の直下にある */
.process > .eyebrow,
.process > h2,
.process > p:not(.eyebrow) {
  text-align: center;
}

.process > .eyebrow {
  display: flex;
  justify-content: center;
}

.process > p:not(.eyebrow) {
  max-width: 720px;
  margin-inline: auto;
}

/* ============================================================
   2026-10-20 セクションごとの出現演出
   仕組み: 既存の .reveal が .visible になった瞬間に、子要素（または自身）へ
   keyframes アニメーションを1回だけ再生する。
   ・keyframes は from のみ書き、終点は元のスタイル（opacity:1 / transform:none）に任せる
     → 最終状態は従来と同一。
   ・animation-fill-mode: backwards … 遅延中だけ from を保持し、終了後は元スタイルへ戻る
     → ホバーの transform を邪魔しない。二重の transform（親の移動×子の移動）も起きない。
   ・JS無効時は既存の <noscript> が .reveal を可視化するため、全内容が見える。
   動かすのは opacity と transform のみ。
   ============================================================ */
:root {
  --rv-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rv-dist: 18px;
  --rv-step: 0.1s;
}

@media (max-width: 760px) {
  :root {
    --rv-dist: 10px;
    --rv-step: 0.06s;
  }
}

@keyframes rv-up { from { opacity: 0; transform: translateY(var(--rv-dist)); } }
@keyframes rv-left { from { opacity: 0; transform: translateX(calc(var(--rv-dist) * -1)); } }
/* 開発の流れ専用：向きを変数で切り替える。縦・横で keyframes 名を変えると、
   760px をまたいだ瞬間に animation-name が変わって再生し直されるため、名前は1つに固定する */
@keyframes rv-step { from { opacity: 0; transform: translate(var(--rv-sx, 0px), var(--rv-sy, 0px)); } }
@keyframes rv-icon { from { opacity: 0; transform: scale(0.8); } }
@keyframes rv-zoom { from { transform: scale(1.08); } }
@keyframes rv-fade { from { opacity: 0; } }

/* 子が演出を担当する親は、自分では動かさない（フェードのみ・短め） */
.reasons.reveal,
.process.reveal,
.company-table.reveal {
  transform: none;
  transition: opacity 0.45s var(--rv-ease);
}

/* ---- ヒーロー：キッカー → 見出し → ボタンの順にずらす ---- */
.hero-content.reveal {
  transform: none;
  transition: none;
}

.hero-content.reveal.visible::before {
  animation: rv-fade 0.8s var(--rv-ease) 0.3s backwards;
}

.hero-content.reveal.visible > .hero-kicker { animation: rv-up 0.7s var(--rv-ease) calc(0.4s) backwards; }
.hero-content.reveal.visible > h1 { animation: rv-up 0.7s var(--rv-ease) calc(0.4s + var(--rv-step)) backwards; }
.hero-content.reveal.visible > .hero-actions { animation: rv-up 0.7s var(--rv-ease) calc(0.4s + var(--rv-step) * 2) backwards; }

/* ---- 選ばれる理由：左から順に・アイコンは少し拡大しながら ---- */
.reason-grid article.reveal {
  transform: none;
  transition: transform 0.4s var(--rv-ease);
}

.reason-grid article.reveal.visible {
  animation: rv-left 0.7s var(--rv-ease) backwards;
}

.reason-grid article.reveal.visible .reason-icon {
  animation: rv-icon 0.7s var(--rv-ease) backwards;
}

.reason-grid article.reveal.visible:nth-child(1), .reason-grid article.reveal.visible:nth-child(1) .reason-icon { animation-delay: 0s; }
.reason-grid article.reveal.visible:nth-child(2), .reason-grid article.reveal.visible:nth-child(2) .reason-icon { animation-delay: var(--rv-step); }
.reason-grid article.reveal.visible:nth-child(3), .reason-grid article.reveal.visible:nth-child(3) .reason-icon { animation-delay: calc(var(--rv-step) * 2); }
.reason-grid article.reveal.visible:nth-child(4), .reason-grid article.reveal.visible:nth-child(4) .reason-icon { animation-delay: calc(var(--rv-step) * 3); }

/* ---- 3つの事業：カードを順に・図版は少し遅れてフェード＋ズームアウト ---- */
.service-grid .service-card.reveal {
  transform: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-grid .service-card.reveal.visible {
  animation: rv-up 0.75s var(--rv-ease) backwards;
}

.service-grid .service-card.reveal.visible .card-image {
  animation: rv-fade 0.8s var(--rv-ease) 0.15s backwards;
}

.service-grid .service-card.reveal.visible .card-image img {
  animation: rv-zoom 1s var(--rv-ease) 0.15s backwards;
}

.service-grid .service-card.reveal.visible:nth-child(2) { animation-delay: var(--rv-step); }
.service-grid .service-card.reveal.visible:nth-child(3) { animation-delay: calc(var(--rv-step) * 2); }
.service-grid .service-card.reveal.visible:nth-child(2) .card-image,
.service-grid .service-card.reveal.visible:nth-child(2) .card-image img { animation-delay: calc(var(--rv-step) + 0.15s); }
.service-grid .service-card.reveal.visible:nth-child(3) .card-image,
.service-grid .service-card.reveal.visible:nth-child(3) .card-image img { animation-delay: calc(var(--rv-step) * 2 + 0.15s); }

/* ---- 開発の流れ：01→05 の順（PCは左から・スマホは縦並びなので下から） ----
   間の矢印 <b>›</b> は既存の指示（.steps > b { display:none }）で非表示のため対象外。 */
.process .steps article.reveal {
  transform: none;
  transition: none;
}

.process .steps article.reveal.visible {
  --rv-sx: calc(var(--rv-dist) * -1);
  --rv-sy: 0px;
  animation: rv-step 0.6s var(--rv-ease) backwards;
}

.process .steps article.reveal.visible:nth-of-type(2) { animation-delay: var(--rv-step); }
.process .steps article.reveal.visible:nth-of-type(3) { animation-delay: calc(var(--rv-step) * 2); }
.process .steps article.reveal.visible:nth-of-type(4) { animation-delay: calc(var(--rv-step) * 3); }
.process .steps article.reveal.visible:nth-of-type(5) { animation-delay: calc(var(--rv-step) * 4); }

@media (max-width: 760px) {
  .process .steps article.reveal.visible {
    --rv-sx: 0px;
    --rv-sy: var(--rv-dist);
  }
}

/* ---- 導入事例：カードを順に（数値のカウントアップは script.js） ---- */
.case-grid article.reveal {
  transform: none;
  transition: transform 0.45s var(--rv-ease), box-shadow 0.45s var(--rv-ease);
}

.case-grid article.reveal.visible {
  animation: rv-up 0.7s var(--rv-ease) backwards;
}

.case-grid article.reveal.visible:nth-child(2) { animation-delay: var(--rv-step); }
.case-grid article.reveal.visible:nth-child(3) { animation-delay: calc(var(--rv-step) * 2); }
.case-grid article.reveal.visible:nth-child(4) { animation-delay: calc(var(--rv-step) * 3); }

/* カウントアップ用：最終値と同じ幅を確保し、桁が増えても周囲の文字が動かないようにする */
.count-box {
  display: inline-grid;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.count-box > span {
  grid-area: 1 / 1;
  justify-self: start;
}

.count-box > .count-ph {
  visibility: hidden;
}

.count-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- 会社概要：表の行を上から順に ---- */
.company-table.reveal.visible > div {
  animation: rv-up 0.55s var(--rv-ease) backwards;
}

.company-table.reveal.visible > div:nth-child(1) { animation-delay: 0.1s; }
.company-table.reveal.visible > div:nth-child(2) { animation-delay: calc(0.1s + var(--rv-step)); }
.company-table.reveal.visible > div:nth-child(3) { animation-delay: calc(0.1s + var(--rv-step) * 2); }
.company-table.reveal.visible > div:nth-child(4) { animation-delay: calc(0.1s + var(--rv-step) * 3); }
.company-table.reveal.visible > div:nth-child(5) { animation-delay: calc(0.1s + var(--rv-step) * 4); }
.company-table.reveal.visible > div:nth-child(6) { animation-delay: calc(0.1s + var(--rv-step) * 5); }
.company-table.reveal.visible > div:nth-child(7) { animation-delay: calc(0.1s + var(--rv-step) * 6); }

/* ---- 動きを減らす設定：上の演出をすべて止め、最終状態をすぐ表示 ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-content.reveal.visible::before,
  .hero-content.reveal.visible > *,
  .reason-grid article.reveal.visible,
  .reason-grid article.reveal.visible .reason-icon,
  .service-grid .service-card.reveal.visible,
  .service-grid .service-card.reveal.visible .card-image,
  .service-grid .service-card.reveal.visible .card-image img,
  .process .steps article.reveal.visible,
  .case-grid article.reveal.visible,
  .company-table.reveal.visible > div {
    animation: none !important;
  }
}

/* ============================================================
   2026-10-20 独立デザインレビュー対応（タブレット幅・アイコン・文字・フォーム）
   配色・構図・画像・文言は変えない。
   ============================================================ */

/* ---- 1. ヘッダー：折り返さない（761〜1000px で1行に収める） ---- */
.global-nav a,
.header-cta {
  white-space: nowrap;
}

@media (min-width: 761px) and (max-width: 1000px) {
  .site-header {
    gap: 12px;
    padding: 0 20px;
  }

  .global-nav {
    gap: 14px;
  }

  .header-cta {
    padding: 11px 16px;
    gap: 10px;
  }
}

/* ---- 2. ヒーロー（761〜1100px）：見出しがノートPC画像に重ならないようにする ---- */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero {
    background-size: auto max(100%, 66.5vw);
    background-position: left center;
  }

  .hero h1 {
    font-size: clamp(34px, 4.4vw, 48px);
  }

  .hero-content::before {
    inset: -28px -40px;
    background: radial-gradient(ellipse 560px 400px at 0% 38%, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 74%);
  }

  .hero-actions .ghost {
    background: rgba(255, 255, 255, .72);
  }
}

/* ---- 3. 会社概要の表（761〜1000px）：左端に貼り付かない ---- */
@media (min-width: 761px) and (max-width: 1000px) {
  .company-table {
    margin: 10px 32px 40px;
  }

  .about-highlight,
  .contact-flow {
    margin-left: 32px;
    margin-right: 32px;
  }
}

/* ---- 4. フッター（761〜1000px）：760px以下と同じ縦積み ---- */
@media (min-width: 761px) and (max-width: 1000px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 35px 28px;
  }

  footer nav {
    margin: 0;
  }
}

/* ---- 6. アイコン：Lucide（ISC）の線アイコン。stroke を揃え currentColor ---- */
.ic {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.reason-icon {
  display: grid;
  place-items: center;
}

.reason-icon .ic {
  width: 48px;
  height: 48px;
}

.service-symbol .ic {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.steps article > i .ic {
  width: 26px;
  height: 26px;
  stroke-width: 1.9;
}

/* ---- 7. 事業カード（761〜1000px）：3枚目は横長カードにして右の空きを無くす ---- */
@media (min-width: 761px) and (max-width: 1000px) {
  .service-grid .service-card:nth-child(3) {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  /* 画像列は本文の高さまで伸ばし、図版は縦中央に置く（余白は図版と同系色の地） */
  .service-card:nth-child(3) .card-image {
    flex: 0 0 46%;
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #052f2e, #0c403c);
  }

  .service-card:nth-child(3) .card-image img {
    height: auto;
    aspect-ratio: 760 / 360;
  }

  .service-card:nth-child(3) .card-body {
    flex: 1;
    min-width: 0;
  }
}

/* ---- 8. 選ばれる理由：761〜1000px は 2x2、途中改行を抑える ---- */
@media (min-width: 761px) and (max-width: 1000px) {
  .reason-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 34px;
  }

  .reason-grid article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 1000px) {
  .reason-grid p br {
    display: none;
  }

  .reason-grid p,
  .reason-grid h3 {
    word-break: auto-phrase;
    text-wrap: balance;
  }
}

/* ---- 9. 長い導入文の途中改行 ---- */
.section-lead,
.section-heading p,
.process > p {
  word-break: auto-phrase;
  text-wrap: pretty;
}

@media (max-width: 760px) {
  .reasons .section-lead {
    text-align: left;
    font-weight: 500;
  }

  .reasons .section-lead::before {
    margin-left: 0;
  }
}

/* ---- 10. 図版の色帯：画像と同じ縦横比の枠にする（画像自体は縮小しない） ---- */
.card-image {
  height: auto;
  aspect-ratio: 760 / 360;
}

.case-grid img {
  height: auto;
  aspect-ratio: 480 / 200;
}

/* ---- 11. コントラスト：文字色だけ既存の濃い緑 #006b55 に（塗りは変えない） ---- */
.card-body h3 small,
.contact-flow-eyebrow {
  color: #006b55;
}

.contact-flow-list li span {
  color: #006b55;
}

.case-grid p strong {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #006b55;
}

/* ---- 12/13. フォーム：入力例の濃さ・エラー時の枠 ---- */
::placeholder {
  font-weight: 400;
  color: #6a7e7c;
  opacity: 1;
}

input:user-invalid,
textarea:user-invalid {
  border-color: #c23b3b;
}

/* ---- 14. 番地は途中で割らない ---- */
.nw {
  white-space: nowrap;
}

/* ---- 15. privacy.html ---- */
.section.legal h1 {
  font-size: clamp(30px, 5vw, 34px);
}

.section.legal h2 {
  font-size: 20px;
}

.legal .company-table {
  margin: 0 0 20px;
}

@media (max-width: 760px) {
  .section.legal h2 {
    font-size: 18px;
  }
}

/* ---- 17. タップ領域 ---- */
.contact-form fieldset label {
  min-height: 44px;
  padding-block: 1px;
  cursor: pointer;
}

.contact-form input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

@media (max-width: 760px) {
  .menu-button {
    width: 44px;
    height: 44px;
  }
}

footer nav a {
  padding-block: 12px;
}

footer nav {
  row-gap: 0;
}

/* ---- 18. スマホのお問い合わせ ---- */
@media (max-width: 760px) {
  /* legend と下の選択肢の「見た目の」間隔を約8px にする。
     ラベルは44pxのタップ領域を持ち内側に約12pxの余白があるため、その分を相殺する */
  .contact-form fieldset {
    gap: 0 20px;
  }

  .contact-form legend {
    margin-bottom: -4px;
  }

  .about-highlight,
  .contact-flow {
    margin-left: 22px;
    margin-right: 22px;
  }

  .contact-flow-mark {
    display: none;
  }
}

/* フッター（1001〜1180px）：リンクが2段に割れないよう間隔だけ詰める */
@media (min-width: 1001px) and (max-width: 1180px) {
  footer {
    gap: 20px;
    padding-inline: 24px;
  }

  footer nav {
    gap: 12px 16px;
  }
}

/* ---- 16. 「CASE 0x」ラベル：図版の丸アイコンの上の空き帯に収める ---- */
.case-grid article::before {
  top: 5px;
  left: 8px;
  padding: 2px 8px;
  font-size: 10px;
  line-height: 1.5;
}

/* ---- フォームのエラー表示（2026-10-20 オーナー決定） ----
   未入力で送信したときの文言は .form-message（既存）に出す。赤枠は項目13の色と同じ。 */
.form-message {
  color: #006b55;
}

.form-message.is-error {
  color: #c23b3b;
}

.contact-form.was-validated input:invalid,
.contact-form.was-validated textarea:invalid {
  border-color: #c23b3b;
}

/* ---- D. スマホ（〜760px）：選ばれる理由を360pxでも2列に ---- */
@media (max-width: 760px) {
  .reason-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }

  .reason-grid article {
    padding: 0 8px;
    border-right: 1px solid var(--line);
  }

  .reason-grid article:nth-child(even) {
    border-right: 0;
  }

  .reason-icon {
    height: 48px;
  }

  .reason-icon .ic {
    width: 40px;
    height: 40px;
  }

  .reason-grid h3 {
    font-size: 15px;
    margin: 8px 0 6px;
  }

  .reason-grid p {
    font-size: 13px;
    line-height: 1.7;
  }
}

/* ---- D. スマホ：導入事例は成果の数字を主役に（図版は低く・数字は大きく） ---- */
@media (max-width: 760px) {
  .case-grid img {
    aspect-ratio: auto;
    height: 96px;
    object-fit: cover;
  }

  /* 図版を低くすると丸アイコンとラベルが重なるため、ラベルは業種見出しの右へ移す */
  .case-grid article::before {
    top: 110px;
    left: auto;
    right: 14px;
  }

  .case-grid p strong {
    display: inline-block;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    margin: 0 2px;
  }
}

/* スマホ：会社概要・お問い合わせの見出し左端を、表・フォームの左端(22px)に揃える */
@media (max-width: 760px) {
  .about-intro,
  .contact-intro {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* ===== 2026-10-20 iOS Safari でスクロール時に画面上端へ緑の線が一瞬出る問題 =====
   原因: 読み込み時の幕 .page-transition（position:fixed・inset:0・濃緑・z-index:9999）は
   アニメーション後も translateY(-100%) で画面のすぐ上に残っている。iOS Safari は
   スクロールでツールバーが縮むと表示領域の高さが変わり、inset:0 の高さと -100% の
   移動量が1フレームずれて再計算されるため、幕の下端が上端に細く見える。
   幕が上がり切った後は visibility:hidden にして描画対象から外す。 */
.page-transition {
  animation:
    pageOpen .8s cubic-bezier(.76, 0, .24, 1) .1s forwards,
    pageTransitionHide 0s linear .9s forwards;
}

@keyframes pageTransitionHide {
  to {
    visibility: hidden;
  }
}

/* ===== 2026-10-20 会社概要の右パネル（.about-highlight）を削除（オーナー指示） =====
   PCは3列目（25%）がパネル用だったため、紹介文＋表の2列にする。
   1000px以下は既存どおり1列。 */
@media (min-width: 1001px) {
  .about {
    grid-template-columns: 36% 64%;
  }

  .company-table {
    margin-right: max(24px, calc((100vw - 1200px) / 2));
  }
}

/* ===== 2026-10-20 ヒーローにロゴマークを配置（オーナー指示・赤枠の位置と大きさ） =====
   スマホ：キッカー（小見出し）の右、h1 の上の空き。PC：ボタンの下の左寄り。 */
.hero-logo {
  display: none;
}

/* PC・タブレット：ボタンの下、左寄りに配置（オーナー指定の位置・大きさ）。
   画面の高さが低いとヒーロー下端で切れないよう、絶対配置にせず流れの中に置く */
@media (min-width: 761px) {
  .hero-logo {
    display: block;
    width: 180px;
    height: auto;
    margin: 48px 0 0 123px;
    pointer-events: none;
  }

  /* ロゴの下余白。img の margin-bottom はヒーローの外へ相殺されて効かないため、親の padding で取る */
  .hero-content {
    padding-bottom: 32px;
  }

  .hero-content.reveal.visible > .hero-logo {
    animation: rv-hero-logo 0.9s var(--rv-ease) calc(0.4s + var(--rv-step) * 3) backwards;
  }
}

@media (max-width: 760px) {
  .hero-logo {
    display: block;
    position: absolute;
    top: 33px;
    right: 42px;
    width: 122px;
    height: auto;
    pointer-events: none;
  }

  .hero-content.reveal.visible > .hero-logo {
    animation: rv-hero-logo 0.9s var(--rv-ease) 0.3s backwards;
  }
}

/* 幅389px以下（iPhone SE・mini 等の小型機種）は小見出しと詰まるので、少し小さくして右へ寄せる */
@media (max-width: 389px) {
  .hero-logo {
    right: 16px;
    width: 104px;
  }
}

@keyframes rv-hero-logo {
  from {
    opacity: 0;
    transform: scale(.88);
  }
}
