/* サイネージドクター 紹介ページ。外部のフォント・スクリプトは使わない（CSP: style-src 'self'） */

:root {
  color-scheme: light dark;
  --brand: #0d9488;
  --brand-ink: #0f766e;
  --brand-ink-hover: #115e59;
  --brand-dark: #134e4a;
  --brand-soft: #f0fdfa;
  --brand-soft-2: #ccfbf1;
  --on-brand: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f4f8f8;
  --card: #ffffff;
  --text: #1c2b2a;
  --muted: #4a5a58;
  --line: #dbe5e4;
  --shadow: 0 1px 2px rgba(15, 40, 38, .06), 0 8px 24px rgba(15, 40, 38, .07);
  --ok: #15803d;
  --ok-dot: #16a34a;
  --bad: #b91c1c;
  --bad-dot: #dc2626;
  --off: #b45309;
  --off-dot: #d97706;
  --quiet: #4f46e5;
  --quiet-dot: #6366f1;
  --contact-bg: #134e4a;
  --contact-text: #ecfdf9;
  --contact-muted: #b5ded8;
  --radius: 14px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #14b8a6;
    --brand-ink: #5eead4;
    --brand-ink-hover: #99f6e4;
    --brand-dark: #ccfbf1;
    --brand-soft: #0f2a28;
    --brand-soft-2: #134e4a;
    --on-brand: #042f2e;
    --bg: #0b1514;
    --bg-alt: #0f1d1c;
    --card: #132322;
    --text: #e3eeec;
    --muted: #a6bcb9;
    --line: #25403d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --ok: #4ade80;
    --bad: #f87171;
    --off: #fbbf24;
    --quiet: #a5b4fc;
    --contact-bg: #0f2f2c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-underline-offset: .2em; }
a:hover { color: var(--brand-ink-hover); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.4; letter-spacing: .03em; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ph { display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--card); color: var(--text); border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 18px; height: 18px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 10px;
  font-weight: 700; font-size: 16px; line-height: 1.4; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand-ink); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-ink-hover); color: var(--on-brand); }
.btn-secondary { background: var(--card); color: var(--brand-dark); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 15px; border-radius: 9px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: .04em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 10px; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.header-cta { margin-left: auto; }
@media (max-width: 400px) {
  .site-header .wrap { gap: 10px; }
  .site-header .brand { gap: 8px; font-size: 16px; letter-spacing: .02em; }
  .site-header .brand svg { width: 30px; height: 30px; }
  .site-header .btn-sm { padding: 6px 12px; }
}
@media (min-width: 960px) {
  .nav { display: block; }
  .header-cta { margin-left: 8px; }
}

/* ---------- セクション共通 ---------- */
.section { padding: 64px 0; scroll-margin-top: 64px; }
.section.alt { background: var(--bg-alt); }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.sec-head { max-width: 760px; margin: 0 0 36px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--brand-ink); font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.sec-head h2 { font-size: clamp(25px, 3.4vw, 34px); font-weight: 800; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.icon-badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-soft-2); }

/* 状態の小さな印 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.chip.ok { color: var(--ok); } .chip.ok i { background: var(--ok-dot); }
.chip.bad { color: var(--bad); } .chip.bad i { background: var(--bad-dot); }
.chip.off { color: var(--off); } .chip.off i { background: var(--off-dot); }
.chip.quiet { color: var(--quiet); } .chip.quiet i { background: var(--quiet-dot); }
.chip.plain { color: var(--brand-dark); background: var(--brand-soft); border-color: var(--brand-soft-2); }

/* 画面の枠（ブラウザ風） */
.frame { overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 2px 4px rgba(15, 40, 38, .06), 0 24px 48px -12px rgba(15, 40, 38, .22); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4dcdb; }
.frame-bar span { margin-left: 10px; padding: 1px 12px; border-radius: 6px; background: var(--card); color: var(--muted); font-size: 12px; line-height: 1.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.frame-mail { display: block; word-break: auto-phrase; padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--muted); }
.frame-mail b { color: var(--text); }
@media (prefers-color-scheme: dark) {
  .frame-bar i { background: #3a5451; }
  .frame img { filter: brightness(.94); }
}

/* ---------- ヒーロー ---------- */
.hero {
  padding: 40px 0 56px;
  background:
    radial-gradient(900px 420px at 90% -10%, var(--brand-soft-2), transparent 65%),
    linear-gradient(180deg, var(--brand-soft), var(--bg) 85%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; color: var(--brand-dark); }
.hero .lead { margin-top: 20px; font-size: 17px; color: var(--muted); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.points { display: grid; gap: 8px; margin-top: 28px; }
.points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 15px; }
.points .ic { margin-top: 3px; color: var(--brand); }
.hero-shot { margin: 0; }
.hero-shot figcaption, .shot figcaption small { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
@media (min-width: 1024px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; }
}

/* ---------- こんなことありませんか ---------- */
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.problem { padding: 26px 24px; }
.problem .icon-badge { color: var(--bad); background: color-mix(in srgb, var(--bad-dot) 10%, var(--card)); border-color: color-mix(in srgb, var(--bad-dot) 22%, var(--card)); }
.problem h3 { margin-top: 16px; font-size: 19px; }
.problem p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.answer { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 24px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--brand-soft-2); }
.answer .ic { width: 28px; height: 28px; margin-top: 2px; color: var(--brand-ink); }
.answer strong { display: block; font-size: 18px; color: var(--brand-dark); }
.answer p { margin-top: 4px; color: var(--muted); }

/* ---------- 何を見ているか ---------- */
.detect { display: grid; gap: 16px; }
@media (min-width: 640px) { .detect { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .detect { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.det { display: flex; flex-direction: column; padding: 24px 22px; border-top: 4px solid var(--bad-dot); }
.det.off { border-top-color: var(--off-dot); }
.det .icon-badge { color: var(--bad); background: color-mix(in srgb, var(--bad-dot) 10%, var(--card)); border-color: color-mix(in srgb, var(--bad-dot) 22%, var(--card)); }
.det.off .icon-badge { color: var(--off); background: color-mix(in srgb, var(--off-dot) 12%, var(--card)); border-color: color-mix(in srgb, var(--off-dot) 26%, var(--card)); }
.det h3 { margin-top: 16px; font-size: 18px; }
.det p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.det .chips { margin-top: auto; padding-top: 16px; }

/* ---------- しくみ ---------- */
.flow { display: grid; gap: 0; align-items: stretch; }
.node { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.node .icon-badge { width: 56px; height: 56px; border-radius: 14px; }
.node .icon-badge .ic { width: 28px; height: 28px; }
.node-icons { display: flex; gap: 6px; }
.node h3 { font-size: 19px; }
.node .step { display: block; color: var(--brand-ink); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.node p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.link { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 0; color: var(--brand-ink); font-size: 14px; font-weight: 700; }
.link .ic { transform: rotate(90deg); }
@media (min-width: 1024px) {
  .flow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); }
  .node { flex-direction: column; padding: 28px 24px; }
  .link { flex-direction: column; gap: 4px; padding: 0 14px; text-align: center; white-space: nowrap; }
  .link .ic { transform: none; }
}
.notes { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 768px) { .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.note { display: flex; gap: 12px; padding: 18px 20px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); }
.note .ic { margin-top: 3px; color: var(--brand-ink); }
.note strong { display: block; font-size: 16px; }
.note p { margin-top: 2px; color: var(--muted); font-size: 15px; }

/* ---------- 機能 ---------- */
.features { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features .f-wide:first-child { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .features .f-wide { grid-column: span 2; }
}
.feat { padding: 26px 24px; }
.feat h3 { margin-top: 16px; font-size: 19px; }
.feat p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- 画面イメージ ---------- */
.shots { display: grid; gap: 40px; }
.shot { margin: 0; }
.shot figcaption { margin-top: 14px; }
.shot figcaption strong { display: block; font-size: 17px; }
.shot figcaption span { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; }
.shots-pair { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .shots-pair { grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}
.shots-note { margin-top: 28px; color: var(--muted); font-size: 14px; }

/* ---------- 導入の流れ ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.steps li { position: relative; padding: 24px 22px; }
.steps .num { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-ink); font-weight: 800; font-size: 14px; letter-spacing: .08em; }
.steps .num b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-ink); color: var(--on-brand); font-size: 15px; letter-spacing: 0; }
.steps h3 { margin-top: 12px; font-size: 18px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------- よくある質問 ---------- */
.faq { display: grid; gap: 16px; margin: 0; }
@media (min-width: 900px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.faq > div { padding: 22px 24px; }
.faq dt { display: flex; gap: 12px; font-weight: 800; font-size: 17px; line-height: 1.6; }
.faq dd { display: flex; gap: 12px; margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.faq .qa { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 14px; font-weight: 800; line-height: 1; }
.faq dt .qa { background: var(--brand-ink); color: var(--on-brand); }
.faq dd .qa { background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-soft-2); }

/* ---------- お問い合わせ ---------- */
.contact { background: var(--contact-bg); color: var(--contact-text); }
.contact .eyebrow { color: #5eead4; }
.contact .sec-head p { color: var(--contact-muted); }
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; } }
.contact-card { padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); }
.contact-card h3 { font-size: 15px; font-weight: 700; color: var(--contact-muted); letter-spacing: .06em; }
.tel { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; color: #ffffff; font-size: clamp(30px, 6vw, 40px); font-weight: 800; letter-spacing: .04em; text-decoration: none; line-height: 1.3; font-variant-numeric: tabular-nums; }
.tel .ic { width: 32px; height: 32px; color: #5eead4; }
.tel:hover { color: #ccfbf1; }
.hours { margin-top: 6px; color: var(--contact-muted); }
.org { margin: 18px 0 0; display: grid; gap: 10px; }
.org div { display: grid; gap: 2px; }
@media (min-width: 480px) { .org div { grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; } }
.org dt { color: var(--contact-muted); font-size: 14px; }
.org dd { margin: 0; font-size: 15px; }
.org .ph { display: inline; }
@media (min-width: 480px) { .org .ph { display: inline-block; } }
.contact-card p { color: var(--contact-muted); font-size: 15px; }
.contact-card h3 + p { margin-top: 10px; }
.contact .btn-secondary { margin-top: 18px; background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, .45); }
.contact .btn-secondary:hover { border-color: #ffffff; color: #ffffff; }
.contact a:focus-visible { outline-color: #5eead4; }

/* ---------- フッター ---------- */
.site-footer { padding: 32px 0 40px; background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.site-footer .brand { font-size: 16px; }
.site-footer .brand svg { width: 28px; height: 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--muted); }
.copy { width: 100%; }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; padding-top: 72px; padding-bottom: 72px; text-align: center; }
.nf .code { color: var(--brand-ink); font-weight: 800; font-size: 15px; letter-spacing: .1em; }
.nf h1 { margin-top: 8px; font-size: clamp(26px, 4vw, 34px); }
.nf p { margin-top: 12px; color: var(--muted); }
.nf .cta { justify-content: center; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- スマートフォン：カードのアイコンと見出しを横に並べて縦を詰める（後ろに置いて上書きする） ---------- */
@media (max-width: 639px) {
  .section { padding: 56px 0; }
  .sec-head { margin-bottom: 28px; }
  .problem, .det, .feat { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 20px 18px; }
  .problem h3, .det h3, .feat h3 { margin-top: 0; }
  .problem p, .det p, .feat p, .det .chips, .feat .chips { grid-column: 1 / -1; }
  .problem p, .det p, .feat p { margin-top: 12px; }
  .det .chips { padding-top: 12px; }
  .steps li, .faq > div { padding: 20px 18px; }
}

/* ---------- ヒーロー：搭載できます ---------- */
.hero-option { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--brand-soft-2); box-shadow: var(--shadow); font-size: 15px; max-width: 36em; }
.hero-option .ic { flex: none; margin-top: 3px; color: var(--brand-ink); }
.hero-option b { color: var(--brand-dark); }

/* ---------- 遠隔で操作・設定 ---------- */
.remote-grid { display: grid; gap: 32px; align-items: start; }
.remote-list { display: grid; gap: 14px; }
.remote-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.remote-list .icon-badge { flex: none; }
.remote-list h3 { font-size: 17px; }
.remote-list p { margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (min-width: 1024px) { .remote-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; } }
