/* OptiHeat Cloud トップ
   考え方：はじめに「熱源の運転データそのもの」（1年分の負荷を時刻×日付で並べた図）を置く。
   色：はじめと最後は冷水の紺。温水の橙はデータの中だけに使い、飾りには使わない。
   文字：日本語は Zen Kaku Gothic New、英字と数字は Barlow（工業の表示板の書体）。 */

:root {
  --navy: #0f2a44;        /* はじめと最後の地 */
  --navy-line: #24496e;   /* 紺の上の罫線 */
  --on-navy: #eef2f6;
  --on-navy-2: #a9bccf;
  --paper: #f2f4f5;
  --sheet: #ffffff;
  --ink: #13202d;
  --ink-2: #435160;
  --muted: #6c7a87;
  --rule: #d3dae0;
  --chw: #2a66a8;         /* 冷水 */
  --chw-deep: #1d4f86;
  --hw: #e0773a;          /* 温水 */
  --cw: #2c8f62;          /* 冷却水 */

  /* はじめの絵の色 */
  --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;

  --f-jp: "Barlow", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #0a1d30; --navy-line: #1e3c5b; --paper: #111921; --sheet: #17212b;
    --ink: #e7edf2; --ink-2: #b4c0cb; --muted: #83919e; --rule: #283541;
    --chw: #6fa4e6; --chw-deep: #9cc2f0; --hw: #f08a52; --cw: #4fbf8c;
    --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"] {
  --navy: #0a1d30; --navy-line: #1e3c5b; --paper: #111921; --sheet: #17212b;
  --ink: #e7edf2; --ink-2: #b4c0cb; --muted: #83919e; --rule: #283541;
  --chw: #6fa4e6; --chw-deep: #9cc2f0; --hw: #f08a52; --cw: #4fbf8c;
  --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: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-jp); font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--chw); text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--hw); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.35; word-break: auto-phrase; text-wrap: balance; }
p, dl, dd { margin: 0; }
figure { margin: 0; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }

/* ボタン：四角く、文字は中くらいの太さ */
.btn {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px;
  background: var(--chw); color: #fff; text-decoration: none; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: .04em;
}
.btn:hover { background: var(--chw-deep); }
.btn-light { background: var(--on-navy); color: var(--navy); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 14px; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.brand-sub { font-weight: 400; color: var(--muted); margin-left: 5px; }
.brand-mark { width: 22px; height: 22px; flex: none; fill: none; stroke-width: 3; 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: 26px; font-size: 14px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: #fff; }
.nav-logout { padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; cursor: pointer; }
.nav-logout:hover { color: var(--ink); }

/* はじめ：大きな見出しの下に、文と絵を並べる。下に配管の3本線 */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero h1 { font-size: clamp(30px, 6vw, 80px); font-weight: 500; letter-spacing: -.01em; line-height: 1.12; }
.hero-sub { margin-top: 16px; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.6; font-weight: 500; word-break: auto-phrase; }
.hero-grid { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px 48px; align-items: end; }
.hero-text { padding-bottom: 56px; }
.lead { color: var(--ink-2); font-size: 15px; max-width: 36em; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: transparent; border-color: var(--ink-2); }
.pipes { display: grid; gap: 3px; }
.pipes i { display: block; height: 3px; }

/* はじめの絵（設備エンジニアと 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); }


/* 節の共通：左に見出しの列、右に本文 */
.sec { padding-block: clamp(72px, 10vw, 128px); }
.sec + .sec { border-top: 1px solid var(--rule); }
.hero + .sec { padding-top: clamp(80px, 11vw, 136px); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 32px 56px; }
.sec-head h2 { font-size: clamp(26px, 2.6vw, 34px); }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* 考え方 */
.idea-lead { font-size: clamp(19px, 1.9vw, 23px); font-weight: 500; line-height: 1.7; max-width: 30em; word-break: auto-phrase; }
.ideas { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.ideas li { display: grid; grid-template-columns: 22px minmax(8em, 2fr) minmax(0, 5fr); align-items: baseline; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.ideas b { color: var(--ink); font-weight: 500; }
/* 下のグラフの色と合わせた印 */
.key { width: 14px; height: 14px; align-self: center; }
.key-ai { background: var(--hw); }
.key-h { background: var(--chw); }
.key-gain { border: 1.5px solid var(--cw); background: repeating-linear-gradient(45deg, transparent 0 3px, color-mix(in srgb, var(--cw) 60%, transparent) 3px 4px); }
.aside { margin-top: 40px; padding: 18px 20px; background: var(--sheet); border-left: 3px solid var(--chw); font-size: 14px; color: var(--ink-2); }
.aside b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.flow-fig { margin-top: 48px; }
.cv-head { font-size: 19px; font-weight: 500; margin-bottom: 22px; }
.flow-fig .cv { display: block; width: 100%; max-width: 820px; height: auto; overflow: visible; font-family: var(--f-jp); }
.flow-fig .cv-narrow { display: none; }
.flow-fig figcaption { margin-top: 16px; font-size: 13px; color: var(--muted); }
.cv-grid line { stroke: var(--rule); stroke-opacity: .7; stroke-width: 1; }
.cv-rule { stroke: var(--rule); stroke-width: 1; }
.cv-group { fill: var(--ink); font-size: 15px; font-weight: 700; }
.cv-note { fill: var(--muted); font-size: 14px; }
.cv-row { fill: var(--ink-2); 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: .5; }
.cv-gain-bg { fill: var(--paper); }
.cv-gain-t { fill: var(--cw); font-size: 16px; font-weight: 700; }
.cv-end-old { stroke: var(--muted); stroke-width: 1.25; }
.cv-end-new { stroke: var(--chw); stroke-width: 1.5; }
.cv-axis, .cv-tick line { stroke: var(--ink-2); stroke-width: 1; }
.cv-ax { fill: var(--muted); font-size: 14px; }
.cv-ax-new { fill: var(--chw); font-weight: 500; }

/* サービス：カードにせず、大きな名前の行で並べる */
.svc { padding: 34px 0 40px; border-top: 1px solid var(--rule); }
.svc:first-child { border-top-color: var(--ink); padding-top: 26px; }
.svc-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.svc-name { font-size: clamp(34px, 4.4vw, 56px); font-weight: 500; letter-spacing: -.01em; line-height: 1.1; }
.svc-body { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 40px; }
.svc-what { font-size: 19px; font-weight: 500; line-height: 1.6; }
.svc-body p:not(.svc-what) { color: var(--ink-2); }
.svc-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.svc-links a:not(.btn) { color: var(--ink); font-size: 15px; }

/* 状態の札：丸の塗りで状態を表す（提供中＝塗り、開発中＝輪、構想中＝点線） */
.state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; }
.state-now { color: var(--cw); }
.state-now::before { background: currentColor; }
.state-dev { color: var(--hw); }
.state-plan { color: var(--muted); }
.state-plan::before { border-style: dashed; }

.future { margin-top: 8px; padding-top: 26px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 40px; }
.future h3 { font-size: 19px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.future p { color: var(--ink-2); }
.future .note { grid-column: 2; font-size: 13px; color: var(--muted); }

/* 最後の呼びかけ：はじめの紺に戻る */
.closing { background: var(--navy); color: var(--on-navy); padding-block: clamp(80px, 11vw, 136px); }
.closing h2 { font-size: clamp(32px, 4.6vw, 60px); letter-spacing: -.01em; }
.closing p { margin-top: 18px; color: var(--on-navy-2); max-width: 40em; }
.closing .hero-cta { margin-top: 32px; }
.closing .mail { margin-top: 40px; font-size: 14px; }
.closing .mail a { color: var(--on-navy); }

.site-footer { background: var(--navy); color: var(--on-navy-2); border-top: 1px solid var(--navy-line); padding: 28px 0 40px; font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.site-footer a { color: var(--on-navy); }

/* 幅が狭いとき */
@media (max-width: 900px) {
  .nav-sub { display: none; }
  .hero-grid, .sec-grid, .svc-body, .future { grid-template-columns: minmax(0, 1fr); }
  .future .note { grid-column: 1; }
  .hero-text { padding-bottom: 0; }
  .ideas li { grid-template-columns: 22px minmax(0, 1fr); }
  .ideas li span { grid-column: 2; }
  .hero-visual { order: -1; margin-top: 16px; }
}
@media (max-width: 640px) {
  .flow-fig .cv-wide { display: none; }
  .flow-fig .cv-narrow { display: block; }
  .nav { gap: 14px; }
  .brand { font-size: 17px; }
}
