/* =========================================================
   合同会社free's コーポレートサイト 共通スタイル（2026-11-16 作り替え）
   方針：製品カタログ。紙の地に、製品の実際の画面を大きく並べる。飾りは最小限
   配色：アイボリー（紙）× 墨 × 藍。色は下の変数だけで決める
   ========================================================= */

:root,
[data-theme="ivory"] {
  --bg: #f6f4ef;        /* 紙 */
  --bg-2: #ffffff;      /* 白い面 */
  --bg-3: #ece8df;      /* 少し濃い紙 */
  --text: #1d232b;      /* 墨 */
  --muted: #565d68;
  --line: #dcd7cc;
  --line-strong: #b9b2a4;
  --ink: #23344d;       /* 藍：ボタンとリンク */
  --ink-hover: #182538;
  --on-ink: #ffffff;
  --foot: #1d232b;
  --foot-text: #e9e5dc;
  --foot-muted: #b8b2a6;
  --st-sale: #2f6b4f; --st-order: #6b5a2a; --st-inhouse: #2f4f7a; --st-soon: #6e4a7f; --st-dev: #2f6b6b; --st-pilot: #3d5a7a; --st-beta: #5a6270;
  --danger: #b3261e;
  --on-photo: #ffffff;               /* 写真・濃い帯の上の文字 */
  --on-photo-soft: rgba(255, 255, 255, 0.9);
  --on-ink-soft: rgba(233, 229, 220, 0.82);
  --ink-rule: rgba(233, 229, 220, 0.18);
  --shade: 20, 26, 34;              /* 写真に重ねる暗い色（rgb の数字） */
  --f-serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ok: #2f6b4f;
  color-scheme: light;

  --f-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --radius: 10px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
/* 動きの途中で横にはみ出しても、画面が横に揺れないように。html・body に付けるとスマホのメニュー（body を止める）でヘッダーが外れるため main だけ */
main { overflow-x: clip; }
/* 動きの準備ができるまで、最初の画面を一瞬だけ隠す（読み込み後に見えてから消える「ちらつき」を防ぐ）。
   動きを減らす設定の人には隠さない。ライブラリが読めないときは main.js が .js を外すので見える（読めなくても4秒で見える） */
@media (prefers-reduced-motion: no-preference) { .js:not(.has-motion) .hero > .container, .js:not(.has-motion) .page-hero > .container { visibility: hidden; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.45; letter-spacing: 0.03em; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: #d9e0ea; }
small { font-size: 0.85em; }
strong, b { font-weight: 700; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--white { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; stroke-width: 1.75; vertical-align: -0.2em; }
.sr-only { position: absolute !important; 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; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--on-ink); border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* 見出しと文 */
.eyebrow, .value__en, .page-hero__bg, .found-badge, .consult-dock, .cursor, .cursor-dot, .scan-line { display: none !important; }
.h-display { font-size: clamp(1.85rem, 4.6vw, 3.4rem); line-height: 1.35; letter-spacing: 0.02em; }
.h-section { font-size: clamp(1.4rem, 3vw, 2.15rem); line-height: 1.45; }
.h-sub { font-size: 1.15rem; }
.lead { font-size: clamp(1rem, 1.6vw, 1.1rem); color: var(--muted); max-width: 38em; line-height: 2; text-wrap: pretty; }
.muted { color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin: 10px 0 0; }
.notice { padding: 14px 18px; border-left: 3px solid var(--ink); background: var(--bg-2); font-size: 0.9rem; color: var(--muted); }

/* 出現演出は使わない（JSが無くても、あっても、最初から見える） */
.reveal, .reveal-img, .js .reveal, .js .reveal-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* リンクとボタン */
.text-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { text-decoration-thickness: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border: 1px solid var(--ink); border-radius: 8px;
  background: var(--ink); color: var(--on-ink);
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.04em; line-height: 1.4;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: 0.88rem; }
.btn .arrow, .text-link .arrow { display: inline-flex; }
.btn .arrow .icon { width: 1.05em; height: 1.05em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: var(--muted); background: var(--bg-2); white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--sale { color: var(--st-sale); } .status--order { color: var(--st-order); } .status--inhouse { color: var(--st-inhouse); } .status--soon { color: var(--st-soon); } .status--dev { color: var(--st-dev); } .status--pilot { color: var(--st-pilot); } .status--beta { color: var(--st-beta); }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246, 244, 239, 0.94); border-bottom: 1px solid transparent; transition: border-color 0.2s, transform 0.3s; }
/* すりガラスはPCだけ。スマホで付けると、中のメニュー（position: fixed）がヘッダーの高さに閉じ込められて押せなくなる */
@media (min-width: 901px) { @supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: blur(8px); } } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header > .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--text); }
.logo__mark { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.01em; }
.logo__mark b { color: var(--ink); }
.logo__sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 4px; list-style: none; }
.gnav a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--text); }
.gnav a:hover { background: var(--bg-3); }
.gnav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.gnav .icon { display: none; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.header-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 18px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.header-cta:hover { background: var(--ink-hover); }
.header-cta .icon { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); transition: transform 0.25s; }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* パンくず・ページの見出し */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 20px; }

/* トップ：最初の画面 */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 3vw, 40px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero__title { font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.3; letter-spacing: 0.04em; }
.hero .lead { margin-top: 24px; }
.hero .btn-row { margin-top: 32px; }
.hero__assure { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; list-style: none; font-size: 0.86rem; color: var(--muted); }
.hero__assure li { display: inline-flex; align-items: center; gap: 6px; }
.hero__assure .icon { color: var(--ink); }
.hero__index { background: linear-gradient(var(--text), var(--text)) 0 0 / calc(var(--draw, 1) * 100%) 1px no-repeat; }
.hero__index p { margin: 12px 0 4px; font-size: 0.82rem; color: var(--muted); }
.hero__index ol { list-style: none; }
.hero__index li { border-bottom: 1px solid var(--line); }
.hero__index a { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 12px; align-items: center; padding: 11px 0; text-decoration: none; }
.hero__index a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.hero__index b { font-size: 1rem; }
.hero__index span { font-size: 0.85rem; color: var(--muted); }
.hero__index .icon { color: var(--ink); }

/* トップ：スクロールで進む映像 */
.scrolly { position: relative; }
.scrolly__stage { position: relative; }
.scrolly__frame { position: relative; overflow: hidden; border-radius: var(--radius); background: #2a2b2c; aspect-ratio: 16 / 9; }
.scrolly__frame video, .scrolly__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrolly__caps { list-style: none; margin-top: 20px; display: grid; gap: 14px; }
.scrolly__cap h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.scrolly__cap p { margin: 6px 0 0; color: var(--muted); }
.scrolly__meter { display: none; }
/* 動かせる環境では、映像を画面に止めて、文字を順に入れ替える */
.scrolly.is-live { height: 320vh; }
.scrolly.is-live .scrolly__stage { --fw: min(100%, calc((100vh - var(--header-h) - 230px) * 16 / 9)); position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px var(--gutter) 24px; }
.scrolly.is-live .scrolly__frame, .scrolly.is-live .scrolly__caps, .scrolly.is-live .scrolly__meter { width: var(--fw); flex: none; }
.scrolly.is-live .scrolly__caps { position: relative; min-height: 6.5em; margin-top: 18px; }
.scrolly.is-live .scrolly__cap { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(8px); transition: opacity 0.45s, transform 0.45s; }
.scrolly.is-live .scrolly__cap.is-on { opacity: 1; transform: none; }
.scrolly.is-live .scrolly__meter { display: flex; gap: 6px; margin-top: 4px; }
.scrolly__meter i { display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--line); }
.scrolly__meter i.is-on { background: var(--ink); }

/* トップ・製品ページ：メインの5製品（カタログ） */
.catalog { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--text); }
.item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4.5vw, 64px); align-items: center; padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); }
.item__shot { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); box-shadow: 0 1px 0 rgba(29, 35, 43, 0.04); }
.item__shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.item__shot figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 6px; background: rgba(29, 35, 43, 0.78); color: #fff; font-size: 0.72rem; }
.item__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-height: 40px; }
.item__logo img { width: auto; height: 32px; }
.item__logo .is-dark { background: #0d1220; padding: 6px 10px; border-radius: 6px; height: 40px; }
.item__name { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.item__name small { display: block; margin-top: 2px; font-size: 0.82rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.item__catch { margin: 14px 0 10px; font-size: 1.08rem; font-weight: 700; }
.item__desc { color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; margin: 20px 0 24px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.facts dt, .facts dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { padding-right: 20px; color: var(--muted); font-weight: 500; }
.facts dd { font-weight: 500; }
.facts dd b { font-size: 1.05rem; }

/* その他の取り組み（小さく並べる） */
.others { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: 40px; border-top: 1px solid var(--line); }
.others li { border-bottom: 1px solid var(--line); }
.others a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 4px; text-decoration: none; }
.others a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.others b { font-size: 0.95rem; }
.others span { grid-column: 1; font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.others .status { grid-column: 2; grid-row: 1; }

/* トップの「その他の取り組み」：最後の相談のあとに、小さく控えめに置く（2026-11-16） */
.others-quiet { padding-top: 8px; }
.others-quiet .section-head { margin-bottom: 14px; }
.others-quiet .h-sub { font-size: 0.95rem; color: var(--muted); }
.others-quiet .section-head .muted { font-size: 0.82rem !important; }
.others-quiet .others b { font-size: 0.86rem; font-weight: 500; }
.others-quiet .others a { padding: 10px 2px; }

/* 会社の紹介・流れ */
.brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); }
.brief dl { display: grid; grid-template-columns: max-content 1fr; margin: 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.brief dt, .brief dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.brief dt { padding-right: 24px; color: var(--muted); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.steps li { counter-increment: step; padding-top: 18px; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 0.9rem; }
.steps h3 { font-size: 1.08rem; }
.steps p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }

/* 相談の帯 */
.cta-band { background: var(--bg-2); border-top: 1px solid var(--line); }
.cta-band .lead { margin-top: 16px; }
.cta-band .btn-row { margin-top: 28px; }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta-band__note { list-style: none; display: grid; gap: 8px; font-size: 0.92rem; }
.cta-band__note li { display: flex; gap: 8px; align-items: baseline; }
.cta-band__note .icon { color: var(--ink); transform: translateY(2px); }

/* 製品ページ */
.pindex { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin-top: 28px; font-size: 0.88rem; }
.pindex li a { display: inline-flex; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; background: var(--bg-2); }
.pindex li a:hover { border-color: var(--ink); }
.pindex__sep { display: inline-flex; align-items: center; padding: 0 2px 0 8px; color: var(--muted); font-size: 0.82rem; }
.pindex__sep ~ li a { border-style: dashed; color: var(--muted); background: transparent; }
.product { scroll-margin-top: calc(var(--header-h) + 12px); }
.container.item { padding-left: var(--gutter); padding-right: var(--gutter); border-bottom: 0; }
.product + .product .container.item { border-top: 1px solid var(--line); }
.feature-list { list-style: none; display: grid; gap: 6px; margin: 14px 0 0; font-size: 0.94rem; }
.feature-list li { position: relative; padding-left: 1.3em; }
.feature-list li::before { content: ""; position: absolute; left: 0.2em; top: 0.8em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.brand-badge { display: inline-flex; align-items: center; }
.brand-badge img { height: 32px; width: auto; }
.other-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.product[data-kind="other"] { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.product[data-kind="other"] h3 { font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.product[data-kind="other"] h3 small { font-size: 0.78rem; font-weight: 500; color: var(--muted); width: 100%; }
.product[data-kind="other"] p { margin: 8px 0 0; font-size: 0.9rem; color: var(--muted); }
.product[data-kind="other"] .btn-row { margin-top: 12px; }
.product[data-kind="other"] .brand-badge img { height: 24px; }
.sample { margin-top: 20px; display: grid; grid-template-columns: 180px 1fr; grid-template-rows: auto auto 1fr; gap: 12px 18px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.sample > * { grid-column: 2; }
.sample > .sample__video { grid-column: 1; grid-row: 1 / span 3; }
.sample__video { position: relative; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #111; }
.sample__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sample h3 { font-size: 0.95rem; }
.sample p { font-size: 0.82rem; color: var(--muted); margin: 6px 0 10px; }
.sample-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.sample-switch button { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font-size: 0.82rem; cursor: pointer; }
.sample-switch button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.case-action { margin-top: 10px; font-size: 0.85rem; }

/* よくある質問 */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--ink); font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 20px; color: var(--muted); }

/* 会社情報 */
.values { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.value { padding-top: 18px; }
.value h3 { font-size: 1.1rem; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 0.94rem; }
.message p { font-size: 1.02rem; line-height: 2.1; }
.signature { margin-top: 28px; font-weight: 700; font-size: 1.1rem; }
.signature small { display: block; font-weight: 500; font-size: 0.8rem; color: var(--muted); }
.flow { list-style: none; counter-reset: f; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.5vw, 28px); }
.flow li { counter-increment: f; padding-top: 16px; }
.flow li::before { content: counter(f); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 0.85rem; }
.flow h3 { font-size: 1.05rem; }
.flow p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }
.company-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.company-table th, .company-table td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table tr:first-child th, .company-table tr:first-child td { border-top: 1px solid var(--line); }
.company-table th { width: 8.5em; padding-right: 16px; color: var(--muted); font-weight: 500; }
.company-table ul { list-style: none; display: grid; gap: 4px; }

/* お問い合わせ */
.contact-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.contact-card__icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; background: var(--bg-3); color: var(--ink); margin-bottom: 10px; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.contact-card p { font-size: 0.9rem; color: var(--muted); }
.form { display: grid; gap: 22px; max-width: 760px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { font-weight: 700; font-size: 0.95rem; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.field legend { margin-bottom: 10px; }
.req, .opt { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; }
.req { background: var(--ink); color: var(--on-ink); }
.opt { border: 1px solid var(--line-strong); color: var(--muted); }
.input, .textarea, select.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px; }
.textarea { min-height: 170px; resize: vertical; line-height: 1.8; }
.input:focus, .textarea:focus { outline: 3px solid rgba(35, 52, 77, 0.25); border-color: var(--ink); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__help { margin: 0; font-size: 0.84rem; color: var(--muted); }
.field__error { margin: 0; font-size: 0.86rem; color: var(--danger); font-weight: 700; }
.field__error:empty { display: none; }
.checks, .choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-2); font-size: 0.92rem; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.service-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.service-options label { position: relative; cursor: pointer; }
.service-options input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.service-options span { display: grid; gap: 4px; height: 100%; padding: 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-2); font-weight: 700; font-size: 0.95rem; }
.service-options small { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.service-options__icon { font-style: normal; color: var(--ink); }
.service-options input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #eef1f6; }
.service-options input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.product-options { border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; background: var(--bg-2); }
.product-options summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 0.92rem; }
.product-options fieldset { border: 0; padding: 0 0 16px; margin: 0; }
.product-options legend { font-size: 0.88rem; margin-bottom: 10px; }
.consult-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { padding: 20px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--bg-2); }
.memo { white-space: pre-wrap; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-family: inherit; font-size: 0.9rem; line-height: 1.8; overflow-x: auto; }

/* 診断 */
.quiz { max-width: 820px; }
.quiz__progress { height: 4px; border-radius: 2px; background: var(--line); margin-bottom: 28px; overflow: hidden; }
.quiz__progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.3s; }
.quiz__step { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.quiz__q { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; padding: 0; margin-bottom: 6px; }
.quiz__hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.quiz__error { color: var(--danger); font-weight: 700; min-height: 1.5em; }
.quiz__nav { display: flex; gap: 12px; margin-top: 8px; }
.analyzing { display: flex; align-items: center; gap: 14px; padding: 32px 0; }
.loader { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result__list { list-style: none; display: grid; gap: 16px; margin-top: 28px; }
.result-card { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.result-card h3 { font-size: 1.15rem; margin: 4px 0 6px; }
.ring { position: relative; width: 96px; height: 96px; }
.ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ring__val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; }
.ring__val small { font-size: 0.6em; }
.star-card__no { margin: 0; font-size: 0.82rem; color: var(--muted); font-weight: 700; display: flex; gap: 10px; align-items: center; }
.reasons { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; font-size: 0.8rem; }
.reasons li { padding: 2px 10px; border-radius: 999px; background: var(--bg-3); }

/* スクロール連動の動き（main.js）で使う部品。--draw は線を引く割合（0〜1）。JSが無いときは1＝引き終わり */
.steps li, .value, .flow li { background: linear-gradient(var(--text), var(--text)) 0 0 / calc(var(--draw, 1) * 100%) 2px no-repeat; }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.mline { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.mline__in { display: block; }
.item__shot img { backface-visibility: hidden; } /* 画像の小さな動きを、描き直しでなく重ね合わせで処理させる */

/* ---------- 写真が主役の最初の画面・明朝の見出し・濃い藍の帯（2026-11-16） ---------- */
.hero__title, .h-display, .h-section, .cta-band h2 { font-family: var(--f-serif); font-weight: 600; letter-spacing: 0.05em; }
.hero--photo { position: relative; isolation: isolate; padding: 0; min-height: min(calc(100svh - var(--header-h)), 880px); display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-photo); overflow: hidden; }
.hero__photo { position: absolute; inset: 0; z-index: -1; margin: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--shade), 0.9) 0%, rgba(var(--shade), 0.82) 44%, rgba(var(--shade), 0.16) 68%, rgba(var(--shade), 0) 100%), linear-gradient(0deg, rgba(var(--shade), 0.5) 0%, rgba(var(--shade), 0) 32%); }
.hero__photo figcaption { position: absolute; right: var(--gutter); top: 14px; z-index: 1; padding: 2px 10px; border-radius: 999px; background: rgba(var(--shade), 0.62); font-size: 0.7rem; color: var(--on-photo); letter-spacing: 0.06em; }
.hero--photo .hero__grid { display: block; padding-top: clamp(72px, 12vh, 150px); padding-bottom: clamp(28px, 4vw, 44px); }
.hero__copy { max-width: 560px; }
.hero--photo .lead { max-width: 27em; }
.hero__place { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 0.85rem; color: var(--on-photo-soft); letter-spacing: 0.08em; }
.hero__place::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero--photo .hero__title { color: var(--on-photo); font-size: clamp(2.3rem, 4.6vw, 3.8rem); line-height: 1.32; text-shadow: 0 2px 24px rgba(var(--shade), 0.35); }
.hero--photo .lead { color: var(--on-photo-soft); }
.hero--photo .btn { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.hero--photo .btn:hover { background: var(--bg-2); border-color: var(--bg-2); }
.hero--photo .btn--ghost { background: rgba(var(--shade), 0.18); color: var(--on-photo); border-color: var(--on-photo-soft); }
.hero--photo .btn--ghost:hover { background: rgba(var(--shade), 0.4); border-color: var(--on-photo); }
.hero--photo .hero__assure { color: var(--on-photo-soft); }
.hero--photo .hero__assure .icon { color: var(--on-photo); }
.hero--photo .hero__index { display: flex; align-items: center; gap: 22px; padding: 14px 22px 12px; border-radius: 12px 12px 0 0; color: var(--text); background: linear-gradient(var(--ink), var(--ink)) 0 0 / calc(var(--draw, 1) * 100%) 2px no-repeat, var(--bg); }
.hero--photo .hero__index p { margin: 0; white-space: nowrap; }
.hero--photo .hero__index ol { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hero--photo .hero__index li { border-bottom: 0; border-left: 1px solid var(--line); }
.hero--photo .hero__index a { grid-template-columns: 1fr auto; gap: 0 8px; padding: 4px 12px 4px 16px; }
.hero--photo .hero__index b { grid-column: 1; font-size: 0.95rem; }
.hero--photo .hero__index span { grid-column: 1; font-size: 0.74rem; line-height: 1.5; }
.hero--photo .hero__index .icon { grid-column: 2; grid-row: 1 / span 2; }
.section--ink { background: var(--foot); color: var(--foot-text); }
.section--ink .lead { color: var(--on-ink-soft); }
.section--ink .text-link { color: var(--foot-text); }
.section--ink dl { border-top-color: var(--ink-rule); }
.section--ink dt { color: var(--foot-muted); }
.section--ink dt, .section--ink dd { border-bottom-color: var(--ink-rule); }
@media (max-width: 1100px) {
  .hero--photo .hero__index { display: block; }
  .hero--photo .hero__index p { margin-bottom: 6px; }
}
@media (max-width: 900px) {
  .hero--photo { min-height: auto; justify-content: flex-start; }
  .hero__photo { position: relative; inset: auto; height: 60svh; min-height: 380px; z-index: 0; }
  .hero__photo img { object-position: 50% 22%; }
  .hero__photo::after { background: linear-gradient(0deg, rgba(var(--shade), 0.96) 0%, rgba(var(--shade), 0.82) 30%, rgba(var(--shade), 0) 56%); }
  .hero--photo .hero__grid { position: relative; margin-top: -17svh; padding-top: 0; padding-bottom: 28px; }
  .hero--photo .hero__grid::before { content: ""; position: absolute; inset: 17svh 0 0 0; z-index: -1; background: rgb(var(--shade)); }
  .hero--photo .hero__index { border-radius: 0; margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter) 4px; }
  .hero--photo .hero__index ol { display: block; }
  .hero--photo .hero__index li { border-left: 0; border-bottom: 1px solid var(--line); }
  .hero--photo .hero__index a { grid-template-columns: 7em 1fr auto; padding: 11px 0; }
  .hero--photo .hero__index b, .hero--photo .hero__index span, .hero--photo .hero__index .icon { grid-column: auto; grid-row: auto; }
  .hero--photo .hero__index span { font-size: 0.82rem; }
}

/* 404 */
.not-found { min-height: 60vh; display: flex; align-items: center; }

/* フッター */
.site-footer { background: var(--foot); color: var(--foot-text); padding: clamp(48px, 7vw, 80px) 0 28px; margin-top: 0; }
.site-footer a { color: var(--foot-text); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer .logo { color: var(--foot-text); }
.site-footer .logo__mark b { color: var(--foot-text); }
.footer-company { font-style: normal; font-size: 0.9rem; line-height: 2; color: var(--foot-muted); }
.footer-company strong { color: var(--foot-text); }
.site-footer h2 { font-size: 0.85rem; color: var(--foot-muted); font-weight: 500; margin-bottom: 12px; letter-spacing: 0.08em; }
.site-footer nav ul { list-style: none; display: grid; gap: 6px; font-size: 0.92rem; }
.site-footer nav a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .text-link { color: var(--foot-text); }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(233, 229, 220, 0.18); font-size: 0.8rem; color: var(--foot-muted); }

/* スマホの下のメニュー */
.tabbar { display: none; }

/* ---------- 画面幅ごとの調整 ---------- */
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .menu-btn { display: inline-block; }
  .header-tools { margin-left: auto; }
  .site-header { background: var(--bg); }
  .gnav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; margin: 0; padding: 16px var(--gutter) 40px; background: var(--bg); visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0.2s; overflow-y: auto; }
  .gnav.is-open { visibility: visible; opacity: 1; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a { padding: 16px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .gnav a[aria-current="page"] { box-shadow: none; color: var(--ink); }
  .logo__sub { display: none; }
  .hero__grid, .split, .brief, .cta-band__grid { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; gap: 20px; }
  .values, .contact-cards { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .service-options { grid-template-columns: 1fr 1fr; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; font-size: 0.68rem; font-weight: 700; text-decoration: none; color: var(--muted); }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar .icon { width: 22px; height: 22px; }
  .tabbar__main { color: var(--on-ink) !important; background: var(--ink); }
  body:has(.tabbar) { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  body:has(.gnav.is-open) .tabbar { visibility: hidden; }
  .scrolly.is-live { height: 280vh; }
  .scrolly__frame { aspect-ratio: 720 / 814; }
  .scrolly.is-live .scrolly__stage { --fw: min(100%, calc((100vh - var(--header-h) - 250px) * 720 / 814)); }
}
@media (max-width: 600px) {
  .header-cta { display: none; }
  .steps, .flow, .footer-grid { grid-template-columns: 1fr; }
  .consult-extras, .service-options { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: 2px; }
  .brief dl { grid-template-columns: 1fr; }
  .brief dt { padding-bottom: 0; border-bottom: 0; }
  .brief dd { padding-top: 2px; }
  .hero__index a { grid-template-columns: 6.5em 1fr auto; }
  .sample { grid-template-columns: 1fr; }
  .sample > *, .sample > .sample__video { grid-column: 1; grid-row: auto; }
  .sample__video { max-width: 170px; }
  .result-card { grid-template-columns: 1fr; }
  .company-table th { width: 6em; }
  .btn-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
