/* 合同会社Nexas 共通スタイル（生成り×墨・C案）
   配色・書体・余白の基準値（:root の変数）はこのファイルだけで定義する。
   各ページの <style> には、そのページ固有の部品だけを置く。

   色の使い分け（変えるときはここを読む）
   - paper     … ページの背景
   - porcelain … カード・交互の章の明るい側
   - ink       … 本文・見出し・主ボタンの面
   - coal      … 濃い帯・想いの章・CTA・フッターの背景
   - clay      … 小さい強調文字・リンク・キッカー
   - saffron   … 線・大きな数字・濃い背景の上の文字だけ。薄い背景の上の小さい文字には使わない（明るさの差が足りない）
   - teal      … 予備。原則使わない
   書体: h1・h2 だけ Noto Serif JP（明朝）。それ以外は Noto Sans JP、英数は Inter。 */

:root {
  --paper: #f4ecdf;
  --porcelain: #fffaf2;
  --ink: #201b17;
  --coal: #2b2520;
  --clay: #914f3d;
  --saffron: #bd872f;
  --teal: #2d625b;
  --muted: #6b6057;
  --line: rgba(32, 27, 23, 0.18);
  --wash: rgba(32, 27, 23, 0.045); /* カード内の薄い地（paper・porcelain どちらの上でも使える） */
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  --radius: 2px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 48px);
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Inter", "Noto Sans JP", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  word-break: auto-phrase; /* 日本語を文節で改行（Chrome系）。未対応ブラウザは通常の改行 */
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }

:focus-visible { outline: 3px solid rgba(145, 79, 61, 0.55); outline-offset: 3px; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  transform: translateY(-160%);
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: var(--radius); font-weight: 700;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

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

/* ===== 見出し（3段階のみ: h1 / h2 は明朝、h3 はゴシック） ===== */
h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--serif); letter-spacing: 0.02em; }
h1 { font-weight: 700; font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.4; }
h2 { font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.5; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.125rem; line-height: 1.55; }

/* ===== ボタン（主＝ink の面に paper の文字／補助＝ink の枠線） ===== */
.primary-link,
.secondary-link,
.submit-button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  padding: 12px 26px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 700; line-height: 1.3; text-align: center; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.primary-link, .submit-button { background: var(--ink); color: var(--paper); }
.primary-link:hover, .submit-button:hover { background: var(--clay); }
.secondary-link { border-color: var(--ink); background: transparent; color: var(--ink); }
.secondary-link:hover { background: var(--wash); }

/* 本文中のテキストリンク */
.text-link { color: var(--clay); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--ink); }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 12px var(--gutter);
  background: rgba(244, 236, 223, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
}
.wordmark {
  justify-self: start;
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 44px; line-height: 1;
}
.wordmark span:first-child { color: var(--ink); font-family: "Inter", sans-serif; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.wordmark span:last-child { margin-top: 5px; color: var(--muted); font-size: 0.68rem; font-weight: 500; }
.nav-links {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(12px, 1.6vw, 24px);
  list-style: none; margin: 0; padding: 0;
  font-size: 0.84rem; font-weight: 500;
}
.nav-links a {
  position: relative; display: inline-flex; min-height: 44px; align-items: center;
  color: var(--ink); white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 2px;
  transform: scaleX(0); transform-origin: left; background: var(--saffron);
  transition: transform 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav-actions .primary-link { min-height: 44px; padding: 10px 16px; font-size: 0.84rem; white-space: nowrap; }

/* ===== スマホ用メニュー ===== */
.menu-button {
  display: none; width: 44px; height: 44px; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--ink); cursor: pointer;
}
.menu-button svg { width: 22px; height: 22px; }
.mobile-panel {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  background: var(--paper);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}
.mobile-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mobile-panel nav { display: grid; gap: 6px; width: min(320px, calc(100vw - 48px)); }
.mobile-panel nav a:not(.primary-link) {
  display: flex; min-height: 48px; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 1.05rem; font-weight: 700;
}
.mobile-panel nav a span { color: var(--clay); font-family: "Inter", sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.mobile-panel .primary-link { margin-top: 10px; width: 100%; }

/* ===== 追従の予約ボタン（スマホのみ） ===== */
.sticky-cta { display: none; }

/* ===== フッター ===== */
.site-footer { padding: 40px var(--gutter); background: var(--coal); color: rgba(244, 236, 223, 0.72); }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 0.84rem; font-weight: 500;
}
.footer-brand { display: grid; gap: 2px; }
.footer-brand strong { color: var(--paper); font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-inner a { min-height: 44px; display: inline-flex; align-items: center; color: rgba(244, 236, 223, 0.86); font-weight: 500; }
.footer-inner a:hover { color: var(--saffron); }

/* ===== 表示アニメーション ===== */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== 共通レイアウト ===== */
main { overflow: hidden; }
.sec { padding: 60px var(--gutter); }
.sec-tight { padding-top: 48px; padding-bottom: 48px; }
.sec-light { background: var(--porcelain); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-dark { background: var(--coal); color: rgba(244, 236, 223, 0.86); }
.sec-dark h2, .sec-dark h3 { color: var(--paper); }
.sec-dark .kicker { color: var(--saffron); } /* 濃い背景の上なので saffron 可 */
.inner { max-width: var(--max); margin: 0 auto; }
.inner-narrow { max-width: 880px; margin: 0 auto; }
.kicker {
  margin: 0 0 10px; color: var(--clay);
  font-family: "Inter", sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.sec-lead { max-width: 720px; margin: 12px 0 0; }
.sec-head { margin-bottom: 28px; }
.sec-head.compact { margin-bottom: 20px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-lead { margin-left: auto; margin-right: auto; }

.card { background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-soft { background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--radius); }

/* 章を締める帯（coal の濃い背景に paper の文字1行） */
.band {
  margin: 32px 0 0; padding: 16px 24px; border-radius: var(--radius);
  background: var(--coal); color: var(--paper);
  text-align: center; font-size: 1.125rem; font-weight: 700; line-height: 1.6;
}

/* アイコン: 線画・単色（ink）・saffron の細枠 */
.ico {
  width: 28px; height: 28px; flex: none; color: var(--ink);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ico-wrap { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius); border: 1px solid var(--saffron); background: transparent; }

.note { margin: 12px 0 0; color: var(--muted); font-size: 0.86rem; }
.notes { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--muted); font-size: 0.86rem; }
.notes li::before { content: "※"; margin-right: 4px; }

/* ===== 下層ページの表紙（パンくず＋見出し＋リード） ===== */
.page-hero { padding: 56px var(--gutter) 64px; background: var(--porcelain); border-bottom: 1px solid var(--line); }
.breadcrumb { margin: 0 0 20px; color: var(--muted); font-size: 0.8rem; }
.breadcrumb a { color: var(--clay); }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.page-lead { max-width: 760px; margin: 16px 0 0; font-size: 1.02rem; }

/* ===== 定義リスト（会社概要など） ===== */
.profile-list { margin: 0; border-top: 1px solid var(--line); }
.profile-list div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.profile-list dt { color: var(--muted); font-weight: 500; }
.profile-list dd { margin: 0; color: var(--ink); font-weight: 500; }
.profile-list a { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }

/* ===== CTA（coal の濃い背景） ===== */
.cta { background: var(--coal); color: rgba(244, 236, 223, 0.86); text-align: center; }
.cta h2 { color: var(--paper); }
.cta p { margin: 12px 0 0; color: rgba(244, 236, 223, 0.86); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.cta .primary-link { background: var(--paper); color: var(--ink); }
.cta .primary-link:hover { background: var(--porcelain); }
.cta .secondary-link { background: transparent; border-color: rgba(244, 236, 223, 0.7); color: var(--paper); }
.cta .secondary-link:hover { background: rgba(244, 236, 223, 0.1); }
.cta .cta-tagline { margin: 10px 0 0; color: var(--saffron); font-family: var(--serif); font-size: 0.95rem; letter-spacing: 0.06em; } /* 濃い背景の上なので saffron 可 */

/* ================================================================
   トップページの部品
   ================================================================ */

/* ヒーロー */
.hero { padding: 56px var(--gutter) 64px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero-tag { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--clay); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; }
.hero-tag::before { content: ""; width: 28px; height: 1px; background: var(--saffron); }
.hero-copy { max-width: 560px; margin: 20px 0 0; font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin: 12px 0 0; color: var(--muted); font-size: 0.86rem; }
.hero-visual { padding: 28px 32px; }
.hero-visual-title { margin: 0 0 12px; color: var(--ink); font-size: 0.9rem; font-weight: 700; }
.hero-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hero-steps li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; }
.hero-steps li + li::before { content: ""; position: absolute; left: 25px; top: -12px; height: 24px; border-left: 1px dashed var(--saffron); }
.hero-steps strong { display: block; color: var(--ink); font-weight: 700; }
.hero-steps span { display: block; font-size: 0.88rem; color: var(--muted); }
.hero-steps .ico-wrap { background: var(--porcelain); }
.hero-steps .is-human .ico-wrap { background: var(--ink); border-color: var(--ink); }
.hero-steps .is-human .ico { color: var(--paper); }

/* お悩み */
.problems { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.problems li { display: grid; align-content: start; gap: 12px; padding: 20px 18px; }
.problems p { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.7; }

/* 基本姿勢 */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.steps3 li { padding: 28px; }
.num { display: block; margin-bottom: 10px; color: var(--clay); font-family: "Inter", sans-serif; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; }
.steps3 p { margin: 8px 0 0; }

/* 支援内容 */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.services li { padding: 28px; }
.services h3 { margin-top: 16px; }
.services p { margin: 6px 0 0; }
.services-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* 導入前後 */
.change { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 0; align-items: stretch; }
.change-col { padding: 28px 32px; }
.change-col h3 { margin-bottom: 14px; }
.change-before { background: transparent; border: 1px solid var(--line); border-radius: var(--radius); }
.change-before h3 { color: var(--muted); }
.change-after { background: var(--porcelain); border: 1px solid var(--line); border-top: 3px solid var(--saffron); border-radius: var(--radius); box-shadow: var(--shadow); }
.change-arrow { display: grid; place-items: center; }
.change-arrow .ico { color: var(--saffron); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; color: var(--ink); font-weight: 500; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--muted); }
.change-after .checklist li::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px var(--porcelain); }

/* 想い（章全体を coal の濃い背景に） */
.philosophy { padding-top: 72px; padding-bottom: 72px; }
.philosophy-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: center; }
.philosophy-body { margin-top: 28px; }
.philosophy h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); padding-top: 18px; border-top: 1px solid var(--saffron); }
.philosophy-body p { margin: 0; font-size: 1.02rem; line-height: 2; }
.philosophy-body p + p { margin-top: 16px; }

/* 自社での実践 */
.practice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.practice li { padding: 26px 26px 28px; border-top: 3px solid var(--saffron); }
.practice-photo { display: block; width: calc(100% + 52px); max-width: none; height: 180px; margin: -26px -26px 22px; object-fit: cover; object-position: 50% 45%; }
.practice-photo-making { object-position: 50% 30%; }
.practice p { margin: 10px 0 0; font-size: 0.94rem; }

/* プラン */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.plan { display: flex; flex-direction: column; padding: 28px; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-label { color: var(--clay); font-family: "Inter", sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; }
.plan-left { display: inline-block; padding: 2px 10px; border-radius: var(--radius); border: 1px solid var(--clay); color: var(--clay); font-size: 0.8rem; font-weight: 700; }
.plan h3 { margin-top: 8px; }
.plan-price { margin: 16px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-price small { display: block; color: var(--muted); font-size: 0.8rem; }
.plan-price strong { display: block; color: var(--ink); font-family: "Inter", sans-serif; font-size: 2rem; font-weight: 700; line-height: 1.3; }
.plan-price span { display: block; margin-top: 4px; font-size: 0.88rem; color: var(--ink); }
.plan dl { margin: 16px 0 0; display: grid; gap: 8px; }
.plan dl div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; font-size: 0.94rem; }
.plan dt { color: var(--muted); }
.plan dd { margin: 0; color: var(--ink); font-weight: 500; }
.plan-keep { margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--saffron); }
.plan dl + .plan-keep { margin-top: 16px; }
.plan-keep small { display: block; color: var(--clay); font-size: 0.8rem; font-weight: 700; }
.plan-keep span { display: block; margin-top: 2px; color: var(--ink); font-size: 0.94rem; font-weight: 700; line-height: 1.6; }

/* 業務フロー例 */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.flow li { position: relative; padding: 20px 14px; text-align: center; }
.flow li + li::before {
  content: ""; position: absolute; left: -21px; top: 50%; width: 12px; height: 12px;
  border-top: 1.5px solid var(--saffron); border-right: 1.5px solid var(--saffron); transform: translateY(-50%) rotate(45deg);
}
.flow .num { margin-bottom: 6px; }
.flow p { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.55; }
.flow .who { display: inline-block; margin-top: 10px; padding: 2px 10px; border-radius: var(--radius); font-size: 0.78rem; font-weight: 500; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.flow .is-human { border: 1px solid var(--saffron); box-shadow: inset 0 3px 0 var(--saffron); }
.flow .is-human .who { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.usecases { margin-top: 32px; }
.usecases h3 { font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 12px 0 0; padding: 0; }
.chips li { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--porcelain); color: var(--ink); font-size: 0.9rem; font-weight: 500; }

/* 支援方法の比較（自社列は saffron の線＋ink の太字） */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.92rem; line-height: 1.55; }
.compare th, .compare td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--paper); color: var(--ink); font-weight: 700; }
.compare thead th.is-nexas { box-shadow: inset 0 3px 0 var(--saffron), inset 2px 0 0 var(--saffron), inset -2px 0 0 var(--saffron); }
.compare tbody th { width: 16%; color: var(--ink); font-weight: 700; background: var(--paper); }
.compare td { color: var(--muted); }
.compare td.is-nexas { color: var(--ink); font-weight: 700; box-shadow: inset 2px 0 0 var(--saffron), inset -2px 0 0 var(--saffron); }
.compare tbody tr:last-child td.is-nexas { box-shadow: inset 2px 0 0 var(--saffron), inset -2px 0 0 var(--saffron), inset 0 -3px 0 var(--saffron); }

/* 支援体制（1行のチップ列） */
.team-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; margin-bottom: 20px; }
.team-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.team-head p { margin: 0; color: var(--muted); }
.team-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.team-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--porcelain); color: var(--ink); font-size: 0.92rem; font-weight: 700; }
.team-chips .ico { width: 20px; height: 20px; }
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }

/* 写真（想い・支援体制） */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.photo figcaption { margin-top: 10px; color: var(--muted); font-size: 0.8rem; }
.philosophy-photo img { aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--saffron); }
.philosophy-photo figcaption { color: rgba(244, 236, 223, 0.72); }
.team-photo img { aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); }

/* リーダー */
.leader { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: 56px; align-items: start; }
.leader-photo { margin: 0; }
.leader-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.leader-name { margin: 6px 0 0; color: var(--ink); font-size: 1.125rem; font-weight: 700; }
.leader-name span { margin-left: 12px; color: var(--muted); font-size: 0.88rem; font-weight: 400; }
.leader-body p { margin: 12px 0 0; }
.leader-quote { margin: 24px 0 0; padding: 18px 24px; border-left: 2px solid var(--saffron); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.leader-quote p { margin: 0; color: var(--ink); font-weight: 500; }

/* よくある質問 */
.faq { display: grid; gap: 12px; margin: 0 auto; padding: 0; list-style: none; max-width: 880px; }
.faq li { padding: 18px 28px; }
.faq .q, .faq .a { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; margin: 0; }
.faq .q { color: var(--ink); font-weight: 700; }
.faq .a { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.faq .mark { font-family: "Inter", sans-serif; font-weight: 700; color: var(--clay); }
.faq .a .mark { color: var(--muted); }

/* 流れ */
.process { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.process li { padding: 20px 16px; border-top: 2px solid var(--saffron); background: var(--porcelain); border-radius: 0 0 var(--radius) var(--radius); }
.process .num { margin-bottom: 4px; }
.process h3 { font-size: 1rem; }
.process p { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.65; }

/* 最近の取り組み（日付＋本文の縦リスト。左に saffron の細線） */
.updates { display: grid; gap: 20px; max-width: 880px; margin: 0; padding: 4px 0 4px 24px; list-style: none; border-left: 2px solid var(--saffron); }
.updates li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.updates time { color: var(--clay); font-family: "Inter", sans-serif; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; }
.updates p { margin: 0; color: var(--ink); line-height: 1.85; }

/* ================================================================
   画面幅ごとの調整
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .nav-shell > nav,
  .nav-actions .primary-link { display: none; }
  .menu-button { display: grid; }
}

@media (max-width: 1024px) {
  .problems { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .flow li:nth-child(4)::before { display: none; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero-grid, .leader, .philosophy-grid, .team-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps3, .services, .plans, .practice { grid-template-columns: 1fr; }
  .change { grid-template-columns: 1fr; }
  .change-arrow { padding: 4px 0; transform: rotate(90deg); }
  .leader-photo { max-width: 280px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-header { padding: 10px 16px; }
  .wordmark span:first-child { font-size: 1.2rem; }
  .wordmark span:last-child { font-size: 0.62rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-footer { padding: 28px 16px; }

  .sec { padding: 56px 16px; }
  .sec-tight { padding-top: 40px; padding-bottom: 40px; }
  .sec-head { margin-bottom: 24px; }
  .page-hero { padding: 32px 16px 40px; }
  .hero { padding: 40px 16px 48px; }
  .hero-cta, .cta-actions { display: grid; justify-content: stretch; }
  .hero-cta .primary-link, .hero-cta .secondary-link, .cta-actions .primary-link, .cta-actions .secondary-link { width: 100%; }
  .hero-visual { padding: 20px; }
  .band { margin-top: 28px; padding: 14px 16px; font-size: 1rem; }
  .profile-list div { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px 0; }

  .problems { grid-template-columns: 1fr; gap: 10px; }
  .problems li { grid-template-columns: 44px minmax(0, 1fr); align-items: center; padding: 12px 14px; }
  .problems .ico-wrap { width: 44px; height: 44px; }
  .steps3, .services, .plans, .practice { gap: 12px; }
  .steps3 li, .services li, .plan, .change-col, .practice li { padding: 20px; }
  .practice-photo { width: calc(100% + 40px); margin: -20px -20px 16px; }
  .steps3 li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 8px; padding: 16px 20px; }
  .steps3 .num { grid-row: span 2; margin: 0; line-height: 1.55; font-size: 1.05rem; }
  .steps3 p { margin: 2px 0 0; }
  .services li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .services h3 { margin: 0; }
  .services p { grid-column: 1 / -1; }
  .philosophy { padding-top: 56px; padding-bottom: 56px; }
  .philosophy-grid { gap: 20px; }
  .philosophy-body { margin-top: 20px; }
  .philosophy-body p { font-size: 0.98rem; line-height: 1.9; }
  .flow { grid-template-columns: 1fr; gap: 16px; }
  .flow li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 12px 14px; text-align: left; }
  .flow .num { margin: 0; }
  .flow .who { margin: 0; }
  .flow li + li::before { left: 50%; top: -13px; width: 9px; height: 9px; transform: translateX(-50%) rotate(135deg); }
  .flow li:nth-child(4)::before { display: block; }
  .flow .is-human { box-shadow: inset 3px 0 0 var(--saffron); }
  .usecases { margin-top: 24px; }
  .chips { gap: 8px; }
  .chips li { font-size: 0.84rem; padding: 4px 12px; }
  .compare { font-size: 0.8rem; }
  .compare th, .compare td { padding: 8px 8px; }
  .compare tbody th { width: 22%; }
  .team-chips li { font-size: 0.84rem; padding: 6px 12px 6px 10px; }
  .leader-photo { max-width: 220px; }
  .process { grid-template-columns: 1fr; gap: 8px; }
  .process li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 8px; padding: 12px 14px; }
  .process .num { grid-row: span 2; margin: 0; }
  .process p { margin: 0; }
  .faq li { padding: 16px; }
  .updates { gap: 18px; padding-left: 18px; }
  .updates li { grid-template-columns: 1fr; gap: 2px; }
  .leader-quote { padding: 16px; }

  .sticky-cta {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 999px;
    background: var(--ink); color: var(--paper);
    font-weight: 700; font-size: 0.9rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .sticky-cta::after { content: "→"; }
  .sticky-cta.is-hidden { transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none; }
  body.has-sticky-cta .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
