/* E-Logi Note — e-logi-note.com
   ブランド: ロゴの「地球（若葉の緑 → 海の青）」と「白い道路」。
   レイアウトの考え方: 道路の白い破線が節をつなぐ。地球の円盤の上に計器（次の給油の目安）。
   数字は道路標識の書体の流れをくむ Overpass。外部の読み込みなし（フォントも自サイトに置く）。 */

@font-face { font-family: "Overpass"; src: url("/assets/fonts/overpass-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("/assets/fonts/overpass-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* ロゴから取った色 */
  --leaf: #2dca41;      /* 地球の左上の若葉の緑。ECO ランプの色。図形と暗い面の上だけに使う */
  --leaf-ink: #0f7d2c;  /* 白い面に置ける緑の文字 */
  --teal: #007565;      /* 地球の中ほど */
  --ocean: #01446e;     /* 地球の右下の海の青 */
  --globe: linear-gradient(140deg, #3fd84f 0%, #12a85a 28%, #00806d 52%, #015f78 74%, #01446e 100%);

  /* 地と文字 */
  --ground: #f1f5f4;
  --surface: #ffffff;
  --ink: #0b2236;
  --sub: #4b6170;
  --line: #d3dfdc;
  --tint: #e3f1ec;      /* 緑みの薄い面 */
  --road: #e6f2ec;      /* 明るい帯（若葉の緑をごく薄く） */
  --road-ink: #0b2236;
  --road-sub: #3f5a66;
  --road-dash: #8fc9a8;
  --card: #ffffff;

  --font-num: "Overpass", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;

  --s--1: 0.8125rem; --s-0: 1rem; --s-1: 1.125rem; --s-2: 1.375rem;
  --s-3: clamp(1.625rem, 1.2rem + 1.7vw, 2.25rem);
  --s-4: clamp(2rem, 1.3rem + 2.6vw, 3.125rem);
  --wrap: 70rem; --r: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: var(--s-0); line-height: 1.85; }
img, svg { max-width: 100%; }
a { color: var(--ocean); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.35; text-wrap: balance; }
p { margin: 0; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -0.01em; }
.ph { display: inline-block; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; z-index: 20; background: var(--surface); padding: 8px 12px; }
.kicker { font-size: var(--s--1); font-weight: 700; letter-spacing: 0.08em; color: var(--teal); }

/* ヘッダー */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.brand span { font-family: var(--font-num); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; font-size: var(--s--1); font-weight: 600; }
.nav a { color: var(--sub); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ヒーロー: 地球の円盤 ＋ 道路 ＋ 計器 */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.hero h1 { font-size: var(--s-4); font-weight: 800; letter-spacing: -0.01em; margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--leaf-ink); }
.hero .lead { margin-top: 20px; color: var(--sub); font-size: var(--s-1); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 54px; padding: 6px 20px; border-radius: 12px; background: var(--ink); color: var(--ground); text-decoration: none; line-height: 1.3; }
.store small { font-size: 0.6875rem; opacity: 0.8; }
.store b { font-size: 1.0625rem; }
.store[aria-disabled="true"] { background: transparent; color: var(--ink); border: 1.5px solid var(--line); cursor: default; }
.soon { margin-top: 12px; font-size: var(--s--1); color: var(--sub); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: var(--s--1); color: var(--sub); }
.facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); margin-right: 8px; vertical-align: 0.1em; }

.stage { position: relative; aspect-ratio: 1 / 1; max-width: 100%; }
.globe { position: absolute; inset: 4% 0 0 6%; border-radius: 50%; background: var(--globe); overflow: hidden; }
.globe svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gauge-card { position: absolute; left: 0; bottom: 4%; width: min(78%, 340px); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px 16px; box-shadow: 0 24px 48px -28px rgba(1, 50, 60, 0.45); }
.gauge-card .top { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--road-sub); }
.gauge-card .read { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.gauge-card .read .num { font-size: clamp(2.75rem, 2rem + 3vw, 3.75rem); line-height: 1; color: var(--ocean); }
.gauge-card .read small { font-size: 1rem; color: var(--road-sub); font-weight: 700; }
.bar { position: relative; height: 10px; border-radius: 99px; background: var(--tint); margin-top: 12px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 26%; border-radius: 99px; background: var(--leaf); }
.bar-l { display: flex; justify-content: space-between; font-family: var(--font-num); font-weight: 700; font-size: 0.75rem; color: var(--road-sub); margin-top: 4px; }
.gauge-card dl { margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.gauge-card dl div { padding-top: 10px; }
.gauge-card dt { font-size: 0.6875rem; color: var(--road-sub); }
.gauge-card dd { margin: 0; font-family: var(--font-num); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.gauge-card dd small { font-size: 0.6em; color: var(--road-sub); margin-left: 2px; }
.eco { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-num); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--leaf-ink); }
.eco::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 8px rgba(45,202,65,0.6); }

/* 道路の帯（暗い面）と破線 */
.road { background: var(--road); color: var(--road-ink); position: relative; }
.road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--road-dash) 0 36px, transparent 36px 72px); }
.road .sub, .road p { color: var(--road-sub); }
.road h2 { color: var(--road-ink); }
.dash { height: 4px; background: repeating-linear-gradient(90deg, var(--line) 0 36px, transparent 36px 72px); border: 0; margin: 0; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section h2 { font-size: var(--s-3); font-weight: 800; letter-spacing: -0.005em; }
.section .intro { margin-top: 14px; color: var(--sub); max-width: 40em; }
.road .intro { color: var(--road-sub); }

/* 3 つの流れ（撮る → 計算 → お知らせ）。順番に意味がある */
.flow { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: f; }
.flow li { counter-increment: f; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; align-content: start; }
.flow li::before { content: "STEP " counter(f); font-family: var(--font-num); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--teal); }
.flow h3 { font-size: var(--s-1); font-weight: 800; }
.flow p { color: var(--sub); font-size: 0.9375rem; }
.flow .demo { margin-top: 6px; border-radius: 10px; background: var(--tint); padding: 12px 14px; font-size: 0.8125rem; }
.receipt { font-family: var(--font-num); font-weight: 700; display: grid; gap: 2px; }
.receipt span { display: flex; justify-content: space-between; gap: 12px; }
.receipt .hit { color: var(--leaf-ink); }
.demo .big { font-family: var(--font-num); font-weight: 800; font-size: 1.75rem; line-height: 1.1; }
.demo .big small { font-size: 0.5em; color: var(--sub); margin-left: 3px; }
.demo .row { display: flex; justify-content: space-between; gap: 12px; }
.note-chip { display: grid; gap: 2px; }
.note-chip b { font-size: 0.875rem; }
.note-chip span { color: var(--sub); font-size: 0.8125rem; }
.note-chip .act { color: var(--ocean); font-weight: 700; font-size: 0.8125rem; }

/* CO2 の節（暗い帯） */
.co2 .wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.stat-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.stat-list li { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: 18px; padding-block: 20px; border-top: 1px solid var(--road-dash); align-items: baseline; }
.stat-list li:last-child { border-bottom: 1px solid var(--road-dash); }
.stat-list .num { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); line-height: 1; color: var(--teal); }
.stat-list .num small { font-size: 0.42em; color: var(--road-sub); margin-left: 3px; font-weight: 700; }
.stat-list b { display: block; color: var(--road-ink); font-size: var(--s-1); }
.stat-list p { margin-top: 4px; font-size: 0.9375rem; }
.src { margin-top: 18px; font-size: 0.75rem; color: var(--road-sub); }
.src a { color: var(--ocean); }

/* 機能の一覧 */
.features { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; align-content: start; }
.feature h3 { font-size: var(--s-1); font-weight: 800; }
.feature p { color: var(--sub); font-size: 0.9375rem; }
.tag { justify-self: start; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; padding: 2px 10px; border-radius: 99px; background: var(--tint); color: var(--teal); }
.tag.p { background: var(--ocean); color: var(--surface); }

/* データの約束 */
.promise .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.promise dl { margin: 0; border-top: 2px solid var(--ink); }
.promise dl div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.promise dt { font-weight: 700; }
.promise dd { margin: 0; color: var(--sub); }

/* 料金 */
.plans { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 14px; align-content: start; }
.plan.p { border: 2px solid var(--ocean); }
.plan h3 { font-size: var(--s-1); }
.plan .price { font-family: var(--font-num); font-weight: 800; font-size: 3rem; line-height: 1; }
.plan .price small { font-family: var(--font-body); font-size: var(--s--1); color: var(--sub); font-weight: 600; margin-left: 8px; }
.plan ul { margin: 0; padding-left: 1.2em; color: var(--sub); display: grid; gap: 4px; }
.plans-note { margin-top: 14px; font-size: var(--s--1); color: var(--sub); }

/* よくある質問（トップの短い版） */
.faq { margin-top: 28px; border-top: 2px solid var(--ink); max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 8px; color: var(--sub); }

/* お店の方へ */
.to-shops .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.to-shops p { margin-top: 8px; max-width: 40em; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 10px 22px; border-radius: 12px; background: var(--leaf); color: #062312; text-decoration: none; font-weight: 800; }
.btn:hover { filter: brightness(1.05); }
.btn.line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

/* 本文のページ */
.doc .wrap { max-width: 46rem; padding-block: clamp(36px, 6vw, 72px); }
.doc h1 { font-size: var(--s-3); font-weight: 800; }
.doc .meta { color: var(--sub); font-size: var(--s--1); margin-top: 8px; }
.doc h2 { font-size: var(--s-2); font-weight: 800; margin-top: 44px; padding-top: 14px; border-top: 2px solid var(--ink); }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc .table { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--s--1); min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--sub); font-weight: 700; background: var(--tint); }
.doc tr:last-child td { border-bottom: 0; }
.doc .toc { margin-top: 24px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: var(--s--1); }
.doc .toc ol { margin: 6px 0 0; padding-left: 1.4em; columns: 2; column-gap: 24px; }
.doc details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.doc details:first-of-type { border-top: 2px solid var(--ink); margin-top: 20px; }
.doc summary { font-weight: 700; cursor: pointer; }
.doc details p { color: var(--sub); }
.mail { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.mail code { font-family: var(--font-num); font-size: 1.25rem; font-weight: 800; user-select: all; }
.copy { font: inherit; font-size: var(--s--1); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); cursor: pointer; }

/* 法人向け */
.steps { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: st; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(st); font-family: var(--font-num); font-weight: 800; font-size: 2.25rem; line-height: 1; color: var(--teal); }
.steps b { font-size: var(--s-1); }
.steps span { color: var(--sub); font-size: 0.9375rem; }
.shopcard { width: min(100%, 26rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; box-shadow: 0 24px 48px -32px rgba(1, 30, 50, 0.5); }
.shopcard .head { display: flex; gap: 12px; align-items: center; }
.shopcard .logo { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; color: var(--teal); font-weight: 800; font-size: 0.75rem; }
.shopcard .hours { color: var(--sub); font-size: 0.8125rem; }
.shopcard .svc { display: flex; flex-wrap: wrap; gap: 6px; }
.shopcard .svc span { font-size: 0.75rem; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--sub); }
.shopcard .book { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 10px; background: var(--ocean); color: var(--surface); font-weight: 800; }
.cap { margin-top: 10px; font-size: 0.75rem; color: var(--sub); }

/* フッター */
.site-foot .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 28px 40px; font-size: var(--s--1); color: var(--sub); }
.site-foot nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.site-foot a { color: var(--sub); }

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero .wrap, .co2 .wrap, .promise .wrap { grid-template-columns: minmax(0, 1fr); }
  .flow, .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .stage { width: min(100%, 440px); margin-inline: auto; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .stat-list li, .promise dl div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .doc .toc ol { columns: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .bar i { animation: fill 1.2s cubic-bezier(.2,.8,.2,1) both 0.2s; transform-origin: left; }
  @keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.road .kicker { color: var(--teal); }
.road .promise dl, .road.promise dl { border-top-color: var(--road-ink); }
.road dl div { border-bottom-color: var(--road-dash); }
.road dd { color: var(--road-sub); }
.road a { color: var(--ocean); }

/* ヒーローのお知らせ（Flighty のように、届くものを見せる） */
.toast { position: absolute; right: 0; top: 6%; width: min(70%, 290px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; box-shadow: 0 18px 40px -26px rgba(1, 30, 50, 0.6); }
.toast b { font-size: 0.9375rem; }
.toast > span:last-child { font-size: 0.75rem; color: var(--sub); }

.toast .eco::before { box-shadow: none; }

/* データの流れの図 */
.flowmap { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "me link mine" "none none none"; gap: 12px; align-items: center; }
.flowmap .node { border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; font-size: 0.8125rem; background: var(--surface); border: 1px solid var(--line); }
.flowmap .node b { font-size: 0.875rem; }
.flowmap .node span { color: var(--sub); }
.flowmap .me { grid-area: me; border: 2px solid var(--teal); }
.flowmap .mine { grid-area: mine; }
.flowmap .link { grid-area: link; font-size: 0.6875rem; color: var(--sub); text-align: center; line-height: 1.4; padding-inline: 4px; position: relative; }
.flowmap .link::before, .flowmap .link::after { content: ""; display: block; height: 2px; margin: 4px 0; background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 10px); }
.flowmap .none { grid-area: none; border-style: dashed; color: var(--sub); text-align: center; }
.flowmap .none b { text-decoration: line-through; text-decoration-thickness: 2px; }

/* 料金の比べ */
.plan-sub { color: var(--sub); font-size: 0.9375rem; }
.ptable { margin-top: 16px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ptable table { width: 100%; border-collapse: collapse; min-width: 460px; font-size: 0.9375rem; }
.ptable th, .ptable td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.ptable th:first-child, .ptable td:first-child { text-align: left; }
.ptable th { font-size: 0.8125rem; color: var(--sub); background: var(--tint); }
.ptable th:last-child { color: var(--ocean); }
.ptable tr:last-child td { border-bottom: 0; }
.ptable .y { color: var(--leaf-ink); font-weight: 800; }
.ptable .n { color: var(--sub); }
ol.src { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 4px; }
.stat-list sup { font-size: 0.7em; }
@media (max-width: 560px) {
  .flowmap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "me" "link" "mine" "none"; }
  .toast { top: 0; }
}
