/* RETEL コーポレートサイト — 外部の読み込みなし（フォントは端末のもの） */
:root {
  --paper: #f7f5f0;
  --card: #ffffff;
  --ink: #101828;
  --muted: #55607a;
  --line: #e2ddd2;
  --accent: #2456e6;
  --accent-ink: #ffffff;
  --tint: #e9efff;
  --ok: #0f8a5f;
  --todo-bg: #fff3c4;
  --todo-ink: #6b4e00;
  --radius: 14px;
  --wrap: 1080px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1020;
    --card: #121930;
    --ink: #eef1f8;
    --muted: #9aa6c0;
    --line: #232c47;
    --accent: #7c9dff;
    --accent-ink: #0b1020;
    --tint: #17214a;
    --ok: #4fd1a1;
    --todo-bg: #4a3b00;
    --todo-ink: #ffe9a3;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.4; margin: 0; text-wrap: balance; letter-spacing: 0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: 0.12em; }
.brand svg { width: 28px; height: 28px; }
.brand small { font-weight: 500; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav .btn { color: var(--accent-ink); }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .brand small { display: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.4;
  border: 1px solid var(--accent);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ヒーロー */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; line-height: 1.25; letter-spacing: 0.02em; }
.hero h1 span { display: inline-block; }
.lead { margin-top: 24px; font-size: 17px; color: var(--muted); max-width: 34em; }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 880px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* 着信の流れ（ヒーローの図） */
.flow {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 24px 24px; box-shadow: 0 24px 60px -36px rgba(16, 24, 40, .45);
}
.flow-title { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 18px; }
.flow ol { list-style: none; margin: 0; padding: 0; position: relative; }
.flow ol::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--line); }
.flow li { position: relative; padding: 0 0 18px 46px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before {
  content: attr(data-n); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--tint); color: var(--accent); border: 2px solid var(--card);
  display: grid; place-items: center; font: 700 13px/1 var(--mono);
}
.flow li.ring::before { background: var(--accent); color: var(--accent-ink); animation: pulse 2.4s ease-out infinite; }
.flow b { display: block; font-size: 15px; line-height: 1.5; }
.flow span { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
.devices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.devices i {
  font-style: normal; font-size: 12px; font-weight: 700; line-height: 1;
  padding: 7px 11px; border-radius: 999px; background: var(--tint); color: var(--accent);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  100% { box-shadow: 0 0 0 14px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .flow li.ring::before { animation: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* セクション共通 */
section { padding: 72px 0; }
section.alt { background: var(--card); border-block: 1px solid var(--line); }
.sec-head { max-width: 40em; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.sec-head p { margin-top: 14px; color: var(--muted); }
@media (max-width: 720px) { section { padding: 52px 0; } }

/* 機能 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section.alt .card { background: var(--paper); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.8; }
.card .ico { width: 36px; height: 36px; margin-bottom: 16px; color: var(--accent); }
@media (max-width: 880px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* 導入の流れ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.steps li::before { content: "0" counter(step); display: block; font: 700 13px/1 var(--mono); color: var(--accent); letter-spacing: 0.1em; margin-bottom: 14px; }
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { font-size: 14.5px; color: var(--muted); line-height: 1.8; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* 番号 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split .card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; line-height: 1.2; letter-spacing: 0.04em; }
.tag.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.tag.soon { background: var(--tint); color: var(--accent); }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

/* よくある質問 */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font: 400 22px/1 var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--muted); font-size: 15px; }

/* 問い合わせ */
.contact { text-align: center; }
.contact .sec-head { margin-inline: auto; }
.contact .cta { justify-content: center; margin-top: 0; }
.contact .hero-note { margin-top: 20px; }

/* 下層ページ */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.page .lead { margin: 0 0 40px; font-size: 16px; }
.page h2 { font-size: 20px; margin: 44px 0 12px; }
.page p, .page li { color: var(--muted); font-size: 15.5px; }
.page p + p { margin-top: 12px; }
.page ul, .page ol { padding-left: 1.4em; margin: 8px 0 0; }
.prose { max-width: 760px; }
.table { width: 100%; max-width: 760px; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-spacing: 0; }
.table th, .table td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table th { width: 9.5em; font-weight: 700; color: var(--ink); white-space: nowrap; }
.table td { color: var(--muted); }
@media (max-width: 560px) {
  .table th, .table td { display: block; width: auto; padding: 12px 16px; }
  .table th { border-bottom: 0; padding-bottom: 0; }
}

/* 未記入の印（公開前にすべて消す） */
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 1px 6px; border-radius: 4px; font-weight: 700; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 13.5px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
