/* OptiHeat Cloud
   レイアウト：設備の帳票のように、左に細い見出しの列、右に本文。はじめだけ方眼の上に大きな数字を置く。
   色：配管の識別色（冷水＝青、温水＝橙、冷却水＝緑）を差し色にし、地は青みの紙色。 */

:root {
  --paper: #f5f7f8;      /* 地：わずかに青みの紙 */
  --sheet: #ffffff;      /* 表や枠の中 */
  --ink: #18212b;        /* 文字 */
  --ink-2: #46515d;      /* 本文の文字 */
  --muted: #77828e;      /* 注記 */
  --rule: #d9dfe4;       /* 罫線 */
  --grid: #e6ebef;       /* 方眼 */
  --chw: #2360a8;        /* 冷水：主な差し色 */
  --chw-deep: #1b4c86;
  --hw: #dd6a2c;         /* 温水 */
  --cw: #2c8f62;         /* 冷却水 */
  --on-chw: #ffffff;

  --f-display: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-body: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;


  /* はじめの絵の色 */
  --il-line: color-mix(in srgb, var(--muted) 42%, var(--paper));
  --il-shadow: color-mix(in srgb, var(--ink) 9%, transparent);
  --il-suit: #2f4b70; --il-suit-md: #3a5a84; --il-suit-dk: #233a58;
  --il-shirt: #e4eaf0;
  --il-skin: #f0c6a0; --il-skin-dk: #d9a27a;
  --il-hair: #222c38; --il-dark: #1d2733; --il-shoe: #1d2733;
  --il-bot: #e6ecf1; --il-bot-dk: #bfcbd6; --il-eye: #9fd4ff;

  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12171d; --sheet: #182029; --ink: #e8edf1; --ink-2: #b9c3cc; --muted: #84909c;
    --rule: #2a343e; --grid: #1b232c; --chw: #6fa4e6; --chw-deep: #9cc2f0; --hw: #f08a52; --cw: #4fbf8c; --on-chw: #0d1620;
    --il-suit: #4a6c97; --il-suit-md: #587ead; --il-suit-dk: #38557b; --il-shirt: #c9d3dc; --il-hair: #3a4350; --il-dark: #0b1016; --il-shoe: #34404e; --il-bot: #d9e1e8; --il-bot-dk: #a3b1be;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12171d; --sheet: #182029; --ink: #e8edf1; --ink-2: #b9c3cc; --muted: #84909c;
  --rule: #2a343e; --grid: #1b232c; --chw: #6fa4e6; --chw-deep: #9cc2f0; --hw: #f08a52; --cw: #4fbf8c; --on-chw: #0d1620;
    --il-suit: #4a6c97; --il-suit-md: #587ead; --il-suit-dk: #38557b; --il-shirt: #c9d3dc; --il-hair: #3a4350; --il-dark: #0b1016; --il-shoe: #34404e; --il-bot: #d9e1e8; --il-bot-dk: #a3b1be;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--chw); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--chw); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); line-height: 1.4; word-break: auto-phrase; text-wrap: balance; }
p, dl, dd, ol { margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

/* ボタン */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 3px;
  background: var(--chw); color: var(--on-chw); text-decoration: none;
  font-weight: 500; font-size: 15px; line-height: 1.5; border: 0;
}
.btn:hover { background: var(--chw-deep); }
.btn-sm { padding: 5px 14px; font-size: 14px; }
.text-link { color: var(--ink); font-size: 15px; }

/* ヘッダー */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 900; font-size: 18px; letter-spacing: .01em; }
.brand-sub { font-weight: 500; color: var(--muted); margin-left: 4px; }
.brand-mark { width: 24px; height: 24px; flex: none; fill: none; stroke-width: 3.2; stroke-linecap: round; }
.p-chw { stroke: var(--chw); background: var(--chw); }
.p-hw { stroke: var(--hw); background: var(--hw); }
.p-cw { stroke: var(--cw); background: var(--cw); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.nav a.btn { color: var(--on-chw); }
.nav a.btn:hover { text-decoration: none; }
.nav-logout { padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; cursor: pointer; }
.nav-logout:hover { color: var(--ink); text-decoration: underline; }

/* はじめ（方眼） */
.hero {
  position: relative;
  padding-block: 72px 0;
  background-color: var(--paper);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: end; }
.hero-text { padding-bottom: 64px; }
.kicker { font-family: var(--f-mono); font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.hero h1 { margin-top: 22px; font-size: clamp(26px, 2.9vw, 38px); font-weight: 900; line-height: 1.35; letter-spacing: .01em; }
.lead { margin-top: 18px; color: var(--ink-2); max-width: 34em; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); max-width: 32em; }
.hero-shot { margin: 0 -40px 0 0; align-self: end; }
.hero-shot img { border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 18px 40px -20px rgba(24, 33, 43, .35); }
.hero-shot figcaption { margin: 10px 0 20px; font-size: 12px; color: var(--muted); }
/* はじめの絵：設備エンジニアと AI ロボット（平らな形と限られた色。人＝冷水の青、AI＝温水の橙） */
.hero-visual { margin: 0; align-self: end; min-width: 0; }
.hero-visual .il { display: block; width: 100%; height: auto; }
@media (min-width: 1240px) { .hero-visual { margin-right: -48px; } }
.il-bg { fill: none; stroke: var(--il-line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.il-shadow { fill: var(--il-shadow); }
.il-flow { fill: none; stroke: var(--hw); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; opacity: .7; }
.il-card { fill: var(--sheet); stroke: var(--rule); stroke-width: 1.5; }
.il-pshade { fill: var(--il-shadow); }
.il-thead { fill: var(--rule); }
.il-rows { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.il-axis { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.il-hit { fill: var(--hw); fill-opacity: .25; stroke: var(--hw); stroke-width: 1.5; }
.il-l-chw, .il-l-hw { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.il-l-chw { stroke: var(--chw); }
.il-l-hw { stroke: var(--hw); }
.il-thin { stroke-width: 2.2; }
.il-b-chw, .il-b-hw { fill: none; stroke-width: 9; }
.il-b-chw { stroke: var(--chw); }
.il-b-hw { stroke: var(--hw); }
.il-limb { stroke-linecap: round; fill: none; }
line.il-suit-dk { stroke: var(--il-suit-dk); }
line.il-suit-md { stroke: var(--il-suit-md); }
line.il-bot-dk { stroke: var(--il-bot-dk); }
.il-suit { fill: var(--il-suit); }
.il-suit-dk { fill: var(--il-suit-dk); }
.il-suit-md { fill: var(--il-suit-md); }
.il-shirt { fill: var(--il-shirt); }
.il-seam { fill: none; stroke: var(--il-suit-dk); stroke-width: 2; stroke-linejoin: round; }
.il-pen { fill: none; stroke: var(--hw); stroke-width: 3; stroke-linecap: round; }
.il-shoe { fill: var(--il-shoe); }
.il-skin { fill: var(--il-skin); }
.il-skin-dk { fill: var(--il-skin-dk); }
.il-hair { fill: var(--il-hair); }
.il-glass { fill: none; stroke: var(--il-dark); stroke-width: 2; stroke-linecap: round; }
.il-eye-p { fill: var(--il-dark); }
.il-brow { fill: none; stroke: var(--il-hair); stroke-width: 2.5; stroke-linecap: round; }
.il-mouth { fill: none; stroke: var(--il-skin-dk); stroke-width: 2; stroke-linecap: round; }
.il-device { fill: var(--il-dark); }
.il-screen { fill: var(--sheet); }
.il-bot-body { fill: var(--il-bot); }
.il-bot-dk { fill: var(--il-bot-dk); }
.il-visor { fill: var(--il-dark); }
.il-eye { fill: var(--il-eye); }
.il-smile { fill: none; stroke: var(--il-eye); stroke-width: 2.5; stroke-linecap: round; }
.il-c-chw, .il-c-hw, .il-c-cw { fill: none; stroke-width: 3; stroke-linecap: round; }
.il-c-chw { stroke: var(--chw); } .il-c-hw { stroke: var(--hw); } .il-c-cw { stroke: var(--cw); }
.il-c-hw-fill { fill: var(--hw); }

/* 考え方の節の図：作業の流れ（人＝冷水の青、AI＝温水の橙、短くなった時間＝冷却水の緑） */
.flow-fig { margin: 56px 0 0; min-width: 0; padding-top: 14px; border-top: 2px solid var(--ink); }
.cv-head { margin-bottom: 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.flow-fig .cv { display: block; width: 100%; max-width: 760px; height: auto; overflow: visible; font-family: var(--f-body); }
.flow-fig .cv-narrow { display: none; }
.flow-fig figcaption { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.cv-grid line { stroke: var(--rule); stroke-opacity: .6; stroke-width: 1; }
.cv-rule { stroke: var(--rule); stroke-width: 1; }
.cv-group { fill: var(--ink); font-family: var(--f-display); font-size: 15px; font-weight: 700; }
.cv-note { fill: var(--muted); font-size: 14px; }
.cv-row { fill: var(--ink-2); font-family: var(--f-mono); font-size: 14px; font-weight: 500; }
.cv-task { fill: var(--ink-2); font-size: 14px; }
.cv-bar-old, .cv-sw-old { fill: var(--muted); }
.cv-bar-h, .cv-sw-h { fill: var(--chw); }
.cv-bar-ai, .cv-sw-ai { fill: var(--hw); }
.cv-gain { stroke: none; }
.cv-hatch-line { stroke: var(--cw); stroke-width: 1; stroke-opacity: .55; }
.cv-gain-bg { fill: var(--paper); }
.cv-gain-t { fill: var(--cw); font-family: var(--f-display); font-size: 16px; font-weight: 700; }
.cv-gain-s { fill: var(--ink-2); font-size: 14px; }
.cv-end-old { stroke: var(--muted); stroke-width: 1.25; }
.cv-end-new { stroke: var(--chw); stroke-width: 1.5; }
.cv-axis { stroke: var(--ink-2); stroke-width: 1; }
.cv-tick line { stroke: var(--ink-2); stroke-width: 1; }
.cv-ax { fill: var(--muted); font-family: var(--f-mono); font-size: 14px; }
.cv-ax-new { fill: var(--chw); font-weight: 500; }
@media (max-width: 560px) {
  .flow-fig .cv-wide { display: none; }
  .flow-fig .cv-narrow { display: block; }
}
.pipes { display: grid; gap: 3px; }
.pipes i { display: block; height: 3px; }

/* 凡例の小さな線（はじめの写真の説明・狭い画面用） */
.lg { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin: 0 4px 0 10px; }
.lg:first-child { margin-left: 0; }
.lg-chw { background: var(--chw); } .lg-hw { background: var(--hw); } .lg-cw { background: var(--cw); }

/* 区切り：左に見出し、右に本文 */
.sec { padding-block: 88px; border-top: 1px solid var(--rule); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 24px 64px; }
.sec-head h2 { font-size: 22px; font-weight: 700; }
.sec-head p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.75; }
.sec-body { min-width: 0; }

/* サービス（提供中・開発中） */
.services { padding-block: 28px; background: var(--sheet); border-bottom: 1px solid var(--rule); }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 56px; }
.svc { min-width: 0; }
.svc-head { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 18px; }
.svc p:not(.svc-head) { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.tag { font-family: var(--f-body); font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 2px; border: 1px solid currentColor; }
.tag-now { color: var(--cw); }
.tag-dev { color: var(--hw); }
.tag-plan { color: var(--muted); }

/* トップ：事業全体の見出しと、サービスの一覧 */
.hero-sub { margin-top: 14px; word-break: auto-phrase; font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2vw, 24px); line-height: 1.5; text-wrap: balance; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.tool { min-width: 0; padding: 22px 28px 24px 0; }
.tool + .tool { padding-left: 28px; border-left: 1px solid var(--rule); }
.tool .svc-head { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 20px; }
.tool-what { margin-top: 4px; font-size: 13px; color: var(--muted); font-family: var(--f-mono); letter-spacing: .02em; }
.tool p:not(.svc-head):not(.tool-what):not(.tool-links) { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.tool-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 500; }
.future-head { margin-top: 56px; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.future { margin-top: 18px; }

/* 製品ページ（開発中など、説明の短いもの） */
.product-plain { max-width: 760px; }
.product-plain h1 { margin-top: 16px; display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 3vw, 34px); }
.product-plain h1 .tag { font-size: 13px; }
.product-plain > p:not(.kicker):not(.lead) { margin-top: 16px; color: var(--ink-2); }
.product-plain .hero-cta { margin-top: 28px; }

/* これまでとの違い */
.sec-compare { border-top: 0; padding-block: 88px; }
.compare { border-top: 1px solid var(--ink); }
.cmp-row { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr) minmax(0, 1fr); gap: 12px 28px; padding-block: 24px; border-bottom: 1px solid var(--rule); align-items: start; }
.cmp-head { padding-block: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.cmp-head span:last-child { color: var(--chw); }
.cmp-row h3 { font-size: 17px; font-weight: 700; }
.cmp-old, .cmp-new { min-width: 0; display: grid; gap: 12px; align-content: start; }
.cmp-old p, .cmp-new p { font-size: 15px; }
.cmp-old p { color: var(--muted); }
.cmp-new p { color: var(--ink); padding-left: 12px; border-left: 3px solid var(--chw); }
.cmp-new img, .sketch { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--rule); border-radius: 3px; background: var(--sheet); }
.cmp-new img { object-fit: cover; object-position: left top; }
/* 手作業の絵：線だけで描き、色は罫線と注記の色を使う */
.sketch { display: block; }
.sk-sheet rect { fill: var(--paper); stroke: var(--muted); stroke-width: 1.2; }
.sk-grid path { fill: none; stroke: var(--rule); stroke-width: 1; }
.sk-sel { fill: none; stroke: var(--hw); stroke-width: 2; stroke-dasharray: 4 3; }
.sk-field rect { fill: var(--sheet); stroke: var(--rule); }
.sk-paste { fill: var(--sheet); stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 2; }
.sk-mark { fill: none; stroke: var(--hw); stroke-width: 2.4; stroke-linecap: round; }
.sk-txt { fill: var(--ink-2); font-family: var(--f-body); font-size: 10px; }
.sk-tiny { fill: var(--muted); font-family: var(--f-body); font-size: 8px; }
.sk-big { fill: var(--hw); font-family: var(--f-mono); font-size: 26px; font-weight: 500; }
.cmp-result { margin-top: 28px; font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2vw, 22px); }

/* 見える化でできること */
.sec-uses { padding-block: 88px 80px; }
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.uses dt { font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.uses dd { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.photos { margin-top: 56px; display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: auto auto; gap: 10px; }
.photos figure { margin: 0; min-width: 0; }
.ph-a { grid-row: span 2; }
.photos .ph-a img { aspect-ratio: 4 / 3.3; }
.photos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photos figcaption { margin-top: 4px; font-size: 12px; color: var(--muted); font-family: var(--f-mono); }
.tone { display: block; position: relative; overflow: hidden; background: #1d3554; }
.tone img { filter: grayscale(1) contrast(1.08) brightness(1.02); }
.tone::after { content: ""; position: absolute; inset: 0; background: #2a4f7c; mix-blend-mode: color; opacity: .7; }

/* 使い方 */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 52px; }
.step { min-width: 0; }
.step-wide { grid-column: 1 / -1; }
.step h3 { font-size: 20px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.step-no { font-family: var(--f-body); font-weight: 500; color: var(--chw); font-size: 20px; }
.step p { margin-top: 8px; color: var(--ink-2); max-width: 40em; }
.shot { margin: 20px 0 0; }
.shot img { border: 1px solid var(--rule); border-radius: 3px; background: var(--sheet); }
.shot figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.shot-pair { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 20px; align-items: start; }
.shot-small { margin-top: 20px; }

/* データの扱い：言い切りを大きく */
.sec-data { padding-block: 104px 96px; background: var(--sheet); }
.statement { font-family: var(--f-display); font-weight: 900; font-size: clamp(28px, 4.4vw, 52px); line-height: 1.3; letter-spacing: .01em; text-wrap: balance; }
.data-cols { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; color: var(--ink-2); font-size: 15px; }
.data-cols p { padding-top: 14px; border-top: 2px solid var(--chw); }
.data-cols p:nth-child(2) { border-top-color: var(--hw); }
.data-cols p:nth-child(3) { border-top-color: var(--cw); }

/* 速さ：計測の記録表 */
.table-scroll { overflow-x: auto; }
.speed { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--sheet); border: 1px solid var(--rule); }
.speed th, .speed td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.speed th { font-size: 12px; font-weight: 500; color: var(--muted); font-family: var(--f-mono); letter-spacing: .04em; }
.speed td:nth-child(2) { color: var(--ink-2); }
.speed .r { text-align: right; white-space: nowrap; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.speed b { font-size: 20px; font-weight: 500; color: var(--ink); }
.speed tbody tr:last-child td { border-bottom: 0; }
.note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* 料金 */
.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.plan { padding: 22px 28px 8px 0; }
.plan + .plan { padding-left: 28px; border-left: 1px solid var(--rule); }
.plan h3 { font-size: 15px; font-weight: 700; color: var(--muted); font-family: var(--f-body); }
.plan-val { font-family: var(--f-display); font-weight: 900; font-size: 34px; margin: 2px 0 10px; }
.plan-val-muted { color: var(--muted); font-weight: 700; }
.plan h3 .tag { margin-left: 10px; vertical-align: 2px; }
.plan-unit { margin-left: 6px; font-family: var(--f-body); font-size: 15px; font-weight: 500; color: var(--ink-2); }
.price .plan:first-child { padding-left: 0; }
.price-note { margin-top: 20px; font-size: 15px; color: var(--ink-2); }
.plan p:not(.plan-val) { font-size: 15px; color: var(--ink-2); }

/* よくある質問 */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.faq dt { font-weight: 700; }
.faq dd { margin-top: 4px; color: var(--ink-2); font-size: 15px; }

/* 開発中 */
.sec-next { padding-block: 64px; }
.next-name { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.sec-next p { color: var(--ink-2); max-width: 40em; }

/* 最後の呼びかけ */
.sec-contact { background: var(--chw); border-top: 0; padding-block: 80px; color: var(--on-chw); }
.contact { max-width: var(--wrap); }
.contact h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; }
.contact p { margin-top: 14px; max-width: 36em; opacity: .9; }
.contact a { color: var(--on-chw); }
.btn-invert { background: var(--on-chw); color: var(--chw) !important; }
.btn-invert:hover { background: var(--paper); }
.contact-mail { font-size: 14px; }

/* フッター */
.site-footer { padding-block: 28px 40px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a, .credits a { color: var(--muted); }
.credits { flex-basis: 100%; font-size: 12px; line-height: 1.8; }

/* 登録・ログイン・アカウント */
.auth-page { padding-block: 56px 80px; min-height: 60vh; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.auth-page h1 { font-size: 26px; margin-bottom: 16px; }
.auth-text p, .account-head p { color: var(--ink-2); }
.auth-text p + p, .account-head p + p { margin-top: 12px; }
.auth-small { font-size: 14px; }
.auth-box { min-height: 200px; display: flex; justify-content: center; }
.auth-box-wide { margin-top: 32px; }
.account-head { max-width: 640px; }
.auth-loading { color: var(--muted); font-size: 14px; }
.auth-error { color: #b3261e; font-size: 15px; }
.link-button { margin-left: 12px; padding: 0; border: 0; background: none; color: var(--chw); font: inherit; text-decoration: underline; cursor: pointer; }

/* アカウントの画面：サービスの申し込み */
.acct-svc { max-width: 720px; margin-top: 36px; border-top: 1px solid var(--ink); }
.acct-svc h2 { margin-top: 20px; font-size: 20px; font-weight: 700; }
.acct-svc-item { padding-block: 22px; border-bottom: 1px solid var(--rule); }
.acct-svc-desc { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.acct-svc-state { margin-top: 14px; font-weight: 500; }
.acct-svc-note { margin-top: 6px; font-size: 14px; color: var(--muted); }
.acct-svc .btn { margin-top: 14px; }
.acct-svc .btn:disabled { opacity: .45; cursor: not-allowed; }
.trial-terms { margin-top: 16px; padding: 18px 20px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; }
.trial-terms h3 { font-family: var(--f-body); font-size: 15px; font-weight: 700; }
.trial-lead { font-size: 15px; color: var(--ink); }
.trial-links { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.trial-terms ul { margin: 10px 0 0; padding-left: 1.3em; font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }
.trial-agree { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 15px; cursor: pointer; }
.trial-agree input { width: 18px; height: 18px; accent-color: var(--chw); }
.trial-terms .auth-error { margin-top: 10px; }
.acct-profile-note { max-width: 720px; margin-top: 32px; color: var(--ink-2); }

/* プライバシーポリシーなどの文書 */
.doc-page { padding-block: 56px 80px; }
.doc-page .wrap { max-width: 760px; }
.doc-page h1 { font-size: 26px; margin-bottom: 8px; }
.doc-page h2 { font-size: 18px; margin: 36px 0 8px; }
.doc-page p, .doc-page li { color: var(--ink-2); }
.doc-page p + p { margin-top: 10px; }
.doc-page ul { padding-left: 1.4em; margin: 8px 0; }
.doc-date { font-size: 14px; color: var(--muted) !important; margin-bottom: 28px; }

/* 狭い画面 */
@media (max-width: 900px) {
  .hero-grid, .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding-bottom: 8px; }
  .hero-shot { margin: 24px 0 0; }
  .data-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .nav { gap: 14px; }
  .nav .nav-sub { display: none; }
  .brand-sub { display: none; }
  .hero { padding-block: 44px 0; }
  .sec, .sec-uses, .sec-data { padding-block: 60px; }
  .uses, .steps, .faq, .shot-pair { grid-template-columns: minmax(0, 1fr); }
  .cmp-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .tool { padding-right: 0; }
  .tool + .tool { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .cmp-head { display: none; }
  .cmp-old::before, .cmp-new::before { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
  .cmp-old::before { content: "これまで"; }
  .cmp-new::before { content: "OptiAnalyzer"; color: var(--chw); }
  .sec-compare { padding-block: 60px; }
  .photos { grid-template-columns: 1fr 1fr; }
  .ph-a { grid-row: auto; grid-column: 1 / -1; }
  .photos .ph-a img { aspect-ratio: 16 / 9; }
  .price { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .speed th:nth-child(2), .speed td:nth-child(2) { display: none; }
  .speed th, .speed td { padding: 10px 12px; }
  .br-wide { display: none; }
}

.nw { display: inline-block; }
