/*
 * サービスサイトのスタイル（落ち着いた業務SaaS。案Aを土台に、案Bの機能の入口カード・案Cの端末の欄とヘッダーの影を足したもの）。
 * 白地を広く使い、製品の画面と同じティール1色と淡い面で階層を作る。
 * 影は弱く、グラデーションは淡い面のなじませだけに使う。アイコンは同じ太さの線（index.html の #i-…）。
 */
:root {
  --accent: #1d4ed8;
  --accent-dark: #1e40af;
  --accent-ink: #134e4a;
  --accent-soft: #ccebe7;
  --tint: #eef6f5;
  --tint-2: #f5faf9;
  --ink: #14181a;
  --ink-2: #474f53;
  --ink-3: #5f676c; /* 淡い面（--bg-soft・--tint）の上でも 4.5:1 以上 */
  --line: #e2e7e6;
  --line-strong: #cfd6d5;
  --bg: #ffffff;
  --bg-soft: #f6f8f8;
  --paper: #ffffff;
  --error: #b91c1c;
  --error-bg: #fef2f2;

  --font: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-num: 'Inter', 'Helvetica Neue', 'Segoe UI', Arial, var(--font);

  --max: 1160px;
  --gutter: 32px;
  --section-y: 112px;
  --header-h: 68px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -8px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 24px 56px -16px rgba(16, 24, 40, 0.22);
}

/* ---------- 基本 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  overflow-wrap: anywhere;
  line-break: strict;
  word-break: auto-phrase; /* 日本語を文節で改行（対応していない環境では通常の改行） */
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
}
.nb {
  white-space: nowrap; /* 「取引ID」など、途中で割りたくない語 */
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-dark);
}
p {
  margin: 0 0 12px;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.num {
  font-family: var(--font-num);
  font-feature-settings: 'tnum';
  letter-spacing: -0.01em;
}
.small {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}
.center {
  text-align: center;
}
.inner {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  left: -10000px;
  top: 8px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 30;
}
.skip:focus {
  left: 8px;
}
/* 社名は途中で改行しない */
[data-site='company'] {
  white-space: nowrap;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 11px 22px;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 1px 2px rgba(15, 118, 110, 0.25);
}
.btn--primary:hover {
  color: #fff;
  background: var(--accent-dark);
}
.btn--ghost {
  color: var(--accent-ink);
  background: var(--paper);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--sm {
  font-size: 14px;
  padding: 8px 18px;
}
.btn--lg {
  font-size: 16px;
  padding: 15px 30px;
}
.btn--block {
  display: flex;
  width: 100%;
}
.btn:focus-visible,
.site-nav a:focus-visible,
.mnav summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- ヘッダー（上に固定） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  backdrop-filter: saturate(1.6) blur(10px);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover {
  color: var(--ink);
}
.logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}
.powered-by {
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.logo-mark {
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex: none;
  border-radius: 7px;
  display: block;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 14px;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 500;
}
.site-nav a:hover {
  color: var(--accent-ink);
  background: var(--tint);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* 幅の狭い画面のメニュー */
.mnav {
  display: none;
  position: relative;
}
.mnav summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
  background: var(--paper);
}
.mnav summary::-webkit-details-marker {
  display: none;
}
.mnav .ic-close,
.mnav[open] .ic-open {
  display: none;
}
.mnav[open] .ic-close {
  display: block;
}
.mnav-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 8px var(--gutter) 20px;
  display: flex;
  flex-direction: column;
}
.mnav-panel a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.mnav-panel .btn {
  margin-top: 16px;
  padding: 14px 20px;
}

/* ---------- 見出し ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
h1,
h2,
h3 {
  font-feature-settings: 'palt';
  letter-spacing: 0.01em;
  text-wrap: balance; /* 最後の語が1語だけ次の行に落ちないよう、行の長さをならす */
  color: var(--ink);
}
h2 {
  font-size: 36px;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 20px;
}
h3 {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 14px;
}
.section-head {
  margin: 0 0 56px;
}
.section-head--center {
  text-align: center;
  max-width: 50em;
  margin-left: auto;
  margin-right: auto;
}
.section-head--center .eyebrow::after {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section-lead {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0;
}
.section {
  padding: var(--section-y) 0;
}
.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--tight {
  padding: 88px 0;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(15, 118, 110, 0.1), transparent 70%),
    linear-gradient(180deg, var(--tint-2) 0%, #fff 100%);
}
.hero-bg::before {
  /* 控えめな方眼（右側だけ。線は淡いティール） */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(55% 60% at 80% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(55% 60% at 80% 40%, #000 20%, transparent 75%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 56px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--paper);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 5px 14px 5px 10px;
  margin: 0 0 24px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hero h1 {
  font-size: 42px;
  line-height: 1.36;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 24px;
}
.hero .lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 36em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.hero-visual {
  position: relative;
  min-width: 0;
  padding: 0 0 24px;
}
/* ノートPCの枠 */
.laptop {
  margin: 0;
}
.laptop-screen {
  background: #1d2326;
  border-radius: 14px 14px 4px 4px;
  padding: 2.4% 2.4% 2.6%;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.laptop-screen::before {
  /* カメラの点 */
  content: '';
  position: absolute;
  top: 0.95%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #3a4246;
}
.laptop-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}
.laptop-base {
  height: 14px;
  margin: 0 -6%;
  background: linear-gradient(180deg, #e3e7e8 0%, #c9cfd1 70%, #b5bcbf 100%);
  border-radius: 0 0 14px 14px;
  position: relative;
  box-shadow: 0 18px 30px -18px rgba(16, 24, 40, 0.45);
}
.laptop-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 6px;
  transform: translateX(-50%);
  background: #b9c0c3;
  border-radius: 0 0 8px 8px;
}
.laptop figcaption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
  text-align: center;
  margin-top: 20px;
}
.float-card {
  position: absolute;
  left: -28px;
  bottom: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px 12px 12px;
  box-shadow: var(--shadow-lg);
  max-width: 290px;
}
.float-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}
.float-text b {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

/* ---------- 特長（3つのカード） ---------- */
/* ヒーローの直後なので上の余白を詰める */
#strengths {
  padding-top: 64px;
}
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 10px;
}
.card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0;
}

/* ---------- 機能 ---------- */
.pillar {
  padding: 0;
}
.pillar + .pillar {
  margin-top: 88px;
  padding-top: 88px;
  border-top: 1px solid var(--line-strong);
}
.pillar-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
}
.pillar-row--portrait {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}
/* 左右を入れ替える（写真を左に） */
.pillar--reverse .pillar-text {
  order: 2;
}
.pillar--reverse .pillar-row {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
.pillar-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 14px;
}
.pillar h3 {
  font-size: 28px;
  line-height: 1.45;
  margin: 0 0 16px;
}
.pillar-text > p:not(.pillar-label) {
  color: var(--ink-2);
  margin: 0;
}
.feature-list,
.feature-grid {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}
.feature-list li,
.feature-grid li {
  display: flex;
  gap: 12px;
}
.feature-list b,
.feature-grid b {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 2px;
}
.feature-list .ic,
.feature-grid .ic {
  width: 22px;
  height: 22px;
  padding: 4px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  stroke-width: 2.25;
}
.feature-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin: 48px 0 0;
  border-top: 1px solid var(--line);
}
.feature-grid li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- 写真 ---------- */
.shot {
  margin: 0;
  min-width: 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot figcaption {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
  margin-top: 12px;
}
.shot-link {
  display: block;
  cursor: zoom-in;
  border-radius: inherit;
}
.shot-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* アプリの窓の枠（上の帯と3つの点） */
.window {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.window-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  background: #f1f4f4;
  border-bottom: 1px solid var(--line);
}
.window-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cdd4d4;
}
.shot--window figcaption {
  text-align: center;
  margin-top: 14px;
}
.shot--card img {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.shot--card .shot-link {
  border-radius: 10px;
}
.pair {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin: 48px 0 0;
}
.pair > .shot {
  flex: var(--r, 1) 1 0;
}

/* ---------- インボイス ---------- */
.invoice-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}
.invoice-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  padding: 36px 36px 32px;
  box-shadow: var(--shadow);
}
.invoice-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
}
.invoice-kind {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
  line-height: 1.5;
}
.invoice-head h3 {
  font-size: 22px;
  margin: 0;
}
.check-list li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 15px;
  line-height: 1.7;
}
.check-list .ic {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--accent);
  stroke-width: 2.25;
}
.note-text {
  font-size: 14px;
  color: var(--ink-2);
  background: var(--tint-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin: 16px 0 0;
}
.doc-panel {
  margin: 0 0 24px;
}
.doc-panel .shot-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 360px;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.doc-panel img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.doc-panel figcaption {
  text-align: center;
}
#invoice > .inner > .small {
  margin: 28px 0 0;
}

/* ---------- 表（見出しと値） ---------- */
table.kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.75;
}
table.kv th,
table.kv td {
  text-align: left;
  vertical-align: top;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
table.kv tr:last-child th,
table.kv tr:last-child td {
  border-bottom: none;
}
table.kv th {
  width: 12em;
  font-weight: 600;
  color: var(--ink-2);
  padding-right: 24px;
  white-space: nowrap;
}

/* ---------- 導入の流れ ---------- */
ol.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  counter-reset: none;
  position: relative;
}
ol.flow li {
  display: flex;
  flex-direction: column;
  text-align: left;
  border-top: 3px solid var(--accent);
  padding-top: 16px;
}
.flow-step {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 4px;
}
ol.flow b {
  display: block;
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 10px;
}
ol.flow li > span:last-child {
  display: block;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
  text-align: left;
  padding: 0;
}

/* ---------- よくある質問 ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.faq-grid .section-head {
  margin: 0;
}
.faq-grid h2,
.company-grid h2 {
  font-size: 30px;
}
.faq-side {
  color: var(--ink-2);
  font-size: 15px;
}
.faq-side a {
  white-space: nowrap;
}
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.faq details[open] {
  border-color: var(--accent-soft);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  padding: 20px 24px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: 'Q';
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--accent);
  font-size: 18px;
  flex: none;
}
.faq summary .ic {
  margin-left: auto;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq details[open] summary .ic {
  transform: rotate(45deg);
}
.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 12px;
}
.faq details p {
  margin: 0;
  padding: 0 24px 22px 54px;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- 提供会社 ---------- */
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.company-grid .section-head {
  margin: 0;
}
.company-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 32px 16px 28px;
  box-shadow: var(--shadow-sm);
}

/* ---------- お問い合わせ（ブランド色の帯） ---------- */
.contact {
  position: relative;
  padding: var(--section-y) 0;
  background: var(--accent-ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 70% at 0% 0%, rgba(255, 255, 255, 0.09), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(255, 255, 255, 0.06), transparent 70%),
    linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
.contact h2 {
  color: #fff;
}
.eyebrow--light {
  color: #a7e3dc;
}
.contact-copy > p {
  color: rgba(255, 255, 255, 0.88);
}
.kv--light {
  margin: 24px 0 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
}
.kv--light th,
.kv--light td {
  color: #fff !important;
  border-bottom: none !important;
  padding: 14px 18px !important;
}
.kv--light th {
  width: auto !important;
  font-weight: 600;
}
.kv--light th .ic {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 8px;
  color: #a7e3dc;
}
.contact-hint {
  font-size: 14px;
  margin: 0 0 10px;
}
.contact-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
}
.contact-points .ic {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
}
.inquiry {
  margin: 0;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.field {
  margin: 0 0 20px;
  min-width: 0;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 6px;
}
.req,
.opt {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  border-radius: 4px;
  padding: 0 6px;
  margin-left: 8px;
  vertical-align: 1px;
}
.req {
  color: #fff;
  background: var(--accent);
}
.opt {
  color: var(--ink-3);
  background: #eceff0;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea {
  resize: vertical;
  min-height: 160px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}
.field [aria-invalid='true'] {
  border-color: var(--error);
  background: var(--error-bg);
}
.field-error {
  color: var(--error);
  font-size: 14px;
  margin: 6px 0 0;
}
.counter {
  font-size: 13px;
  color: var(--ink-3);
  text-align: right;
  margin: 4px 0 0;
}
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.privacy {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 4px 0 20px;
}
.form-message {
  border: 1px solid var(--error);
  background: var(--error-bg);
  color: var(--error);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin: 0 0 16px;
}
.submit {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 15px 40px;
  cursor: pointer;
}
.submit:hover:not(:disabled) {
  background: var(--accent-dark);
}
.submit:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}
.submit:disabled {
  background: #9aa3a7;
  cursor: not-allowed;
}
.form-note {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  background: var(--tint-2);
  color: var(--ink-2);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 14px;
  margin: 0 0 24px;
}
.inquiry input:disabled,
.inquiry textarea:disabled {
  background: #f3f5f5;
  color: var(--ink-3);
  cursor: not-allowed;
}
.inquiry-done {
  border-left: 3px solid var(--accent);
  background: var(--tint);
  padding: 16px 18px;
}
.inquiry-done:focus {
  outline: none;
}
.done-title {
  font-weight: 600;
  color: var(--accent-ink);
}
.inquiry-done p:last-child {
  margin-bottom: 0;
}

/* ---------- 先頭へ（幅の狭い画面だけ） ---------- */
.to-top {
  display: none;
}
.to-top[hidden] {
  display: none !important;
}

/* ---------- フッター（段組み） ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer-desc {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 24em;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 2px;
}
.footer-col a {
  align-self: flex-start;
  color: var(--ink-2);
  text-decoration: none;
  padding: 11px 0;
  line-height: 1.5;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - var(--gutter) * 2) 1px no-repeat;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 12px;
  color: var(--ink-3);
}
.footer-bottom p {
  margin: 0;
}

/* ================= 幅ごとの調整 ================= */
@media (max-width: 1180px) {
  .header-inner {
    gap: 16px;
  }
  .site-nav {
    gap: 0;
  }
  .site-nav a {
    padding: 8px 10px;
  }
  .hero h1 {
    font-size: 38px;
  }
  /* 導入の流れ：5列では文が細かく折り返すので、縦に並べる */
  ol.flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
  }
  ol.flow li {
    padding: 16px 0 28px;
  }
}

@media (max-width: 1023px) {
  .site-nav {
    display: none;
  }
  .mnav {
    display: block;
  }
  .header-actions {
    margin-left: auto;
  }
  .nav-cta {
    min-height: 42px;
  }
}

@media (max-width: 1000px) {
  :root {
    --section-y: 88px;
  }
  .hero {
    padding: 56px 0 72px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hero .lead {
    margin-bottom: 28px;
  }
  .cards3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .card {
    padding: 24px;
  }
  .card h3 {
    margin-bottom: 4px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-visual {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
  }
  .float-card {
    left: -12px;
  }
  .laptop-base {
    margin: 0 -3%;
  }
  .pillar-row,
  .pillar-row--portrait,
  .pillar--reverse .pillar-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .pillar--reverse .pillar-text {
    order: 0;
  }
  .pillar + .pillar {
    margin-top: 64px;
    padding-top: 64px;
  }
  .pillar-row--portrait .shot--window {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .invoice-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-grid,
  .company-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --section-y: 64px;
    --header-h: 60px;
  }
  body {
    font-size: 15px;
  }
  .br-wide {
    display: none;
  }
  .logo {
    font-size: 15px;
    gap: 8px;
    min-width: 0;
  }
  /* 長い製品名は省略せず 2 行に折り返す（ロゴ＋お問い合わせ＋メニューを 375px に収める） */
  .logo-text {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .header-inner {
    gap: 12px;
  }
  .logo-mark {
    width: 26px;
    height: 26px;
  }
  .nav-cta {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 42px;
  }
  .hero {
    padding: 36px 0 56px;
  }
  .hero h1 {
    font-size: 28px;
    line-height: 1.45;
  }
  .hero .lead {
    font-size: 15px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .hero-badge {
    font-size: 12px;
    border-radius: 12px;
  }
  .laptop-screen {
    border-radius: 10px 10px 3px 3px;
  }
  .laptop-base {
    height: 9px;
    margin: 0 -4%;
  }
  .float-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 20px auto 0;
    max-width: none;
    box-shadow: var(--shadow);
  }
  h2 {
    font-size: 26px;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .section-lead {
    font-size: 15px;
    text-align: left;
  }
  .card {
    padding: 20px;
  }
  .card h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .pillar + .pillar {
    margin-top: 48px;
    padding-top: 48px;
  }
  .pillar h3 {
    font-size: 22px;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 32px;
  }
  .feature-grid li {
    padding: 14px 0;
  }
  .window-bar {
    height: 22px;
    padding: 0 10px;
  }
  .window-bar i {
    width: 7px;
    height: 7px;
  }
  .pair {
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
  }
  .pair > .shot {
    flex: none;
    width: 100%;
  }
  .pair > .shot--portrait {
    max-width: 260px;
    margin: 0 auto;
  }
  .invoice-card {
    padding: 24px 18px;
  }
  .invoice-head h3 {
    font-size: 19px;
  }
  .check-list li {
    font-size: 14px;
  }
  .doc-panel .shot-link {
    height: 320px;
    padding: 16px;
  }
  table.kv,
  table.kv tbody,
  table.kv tr,
  table.kv th,
  table.kv td {
    display: block;
    width: 100%;
  }
  table.kv th {
    padding: 14px 0 0;
    border-bottom: none;
    font-size: 13px;
    white-space: normal;
  }
  table.kv td {
    padding: 2px 0 14px;
  }
  .kv--light th {
    padding: 12px 16px 0 !important;
  }
  .kv--light td {
    padding: 2px 16px 12px !important;
  }
  .faq summary {
    font-size: 15px;
    padding: 16px 16px;
    gap: 12px;
  }
  .faq details p {
    padding: 0 16px 18px 42px;
    font-size: 14px;
  }
  .company-card {
    padding: 8px 18px;
  }
  .form-card {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    padding-top: 48px;
    padding-bottom: 32px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  /* 住所は社名の次の行に出し、番地の途中で改行しない */
  .footer-bottom [data-site='company-address'] {
    display: block;
  }
  .to-top {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0; /* 「先頭へ」の文字は読み上げ用（aria-label）。見た目は矢印だけ */
    color: transparent;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: opacity 0.2s, visibility 0.2s;
  }
  .to-top span {
    width: 9px;
    height: 9px;
    margin-top: 4px;
    border-left: 2px solid var(--accent);
    border-top: 2px solid var(--accent);
    transform: rotate(45deg);
  }
  /* お問い合わせの欄では入力欄に重ねない */
  .to-top.is-off {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- 印刷 ---------- */
/* 見出しは文節のまとまりで折り返す（「講座・」で切れないように） */
.hero h1 .ph {
  display: inline-block;
}

/* ---------- 特長の下：使える端末 ---------- */
.devices {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 40px 0 0;
  padding: 20px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.devices-label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.devices-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.devices-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
.devices-list b {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

/* ---------- 機能の入口（3枚のカード） ---------- */
.overview {
  list-style: none;
  padding: 0;
  margin: -16px 0 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.overview li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.overview li:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow);
}
.overview-num {
  position: absolute;
  top: 26px;
  right: 28px;
  margin: 0;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.overview h3 {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 8px;
}
.overview li > p:not(.overview-num) {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin: auto 0 -8px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.more:hover {
  color: var(--accent-ink);
}
.more .ic {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}
.more:hover .ic {
  transform: translateX(3px);
}

/* ---------- ヘッダー：読み進めたら薄い影 ---------- */
.site-header {
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 16px -10px rgba(16, 24, 40, 0.18);
}

@media (max-width: 1000px) {
  .overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 40px;
  }
  .overview li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 18px;
    padding: 22px 24px;
  }
  .overview h3 {
    padding-right: 32px;
  }
  .overview-num {
    top: 22px;
    right: 24px;
  }
}

/* 幅の狭い画面では、見出し・説明・リンクを縦に並べる（横に並べると説明が細い列に押し込まれ、番号と重なる） */
@media (max-width: 640px) {
  .overview li {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .devices {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    margin-top: 24px;
  }
  .hero h1 {
    font-size: 27px;
  }
  .devices-list {
    flex-direction: column;
    gap: 12px;
  }
  .overview {
    margin-top: -8px;
  }
  .overview li {
    padding: 20px 18px;
    column-gap: 14px;
  }
  .overview h3 {
    font-size: 17px;
  }
}

/* 幅360未満：ヘッダーのお問い合わせはメニューの中だけにする（ロゴとメニューのボタンを画面に収める） */
@media (max-width: 359px) {
  .nav-cta {
    display: none;
  }
  .hero-badge {
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .hero-badge .dot {
    margin-top: 6px;
  }
  .hero-badge > span:last-child {
    min-width: 0;
  }
}

@media print {
  .site-header,
  .skip,
  .to-top,
  .hero-bg,
  .contact-bg {
    display: none !important;
  }
  body {
    background: #fff;
    font-size: 10.5pt;
  }
  .section--soft {
    background: none;
  }
  .contact {
    background: none;
    color: var(--ink);
  }
  .contact h2,
  .contact-copy > p,
  .kv--light th,
  .kv--light td {
    color: var(--ink) !important;
  }
  .faq details {
    display: block;
  }
}

/* 見出しの製品名は途中で改行しない */
h2 [data-site='product'] {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .faq-grid h2,
  .company-grid h2 {
    font-size: 26px;
  }
}

/* ---------- 料金（scaffold.js が追記。色・余白は上の変数だけを使う） ---------- */
.price-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  padding: 32px 32px 28px;
  box-shadow: var(--shadow);
}
.price-kind {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 4px;
  line-height: 1.5;
}
.price-card h3 {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.price-amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0 0 8px;
}
.price-num {
  font-family: var(--font-num);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
}
.price-tax-mark {
  font-size: 14px;
  color: var(--ink-2);
}
.price-sub {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
}
.price-example,
.price-included {
  max-width: 880px;
  margin: 40px auto 0;
}
.price-example {
  background: var(--tint-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.price-example h3,
.price-included h3 {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 12px;
}
.price-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 8px;
}
.price-formula b {
  font-family: var(--font-num);
  font-size: 24px;
}
.price-notes {
  max-width: 880px;
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
}
.price-notes li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
  padding-left: 1.2em;
  text-indent: -1.2em;
}
.price-notes li::before {
  content: '※';
  display: inline-block;
  width: 1.2em;
  text-indent: 0;
}
@media (max-width: 800px) {
  .price-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .price-card {
    padding: 24px 20px 22px;
  }
  .price-num {
    font-size: 32px;
  }
  .price-example {
    padding: 20px 16px;
  }
  .price-example,
  .price-included {
    margin-top: 28px;
  }
  .price-formula {
    font-size: 16px;
  }
}
