/* REACTOR サービスサイト共通（SEO・AEO診断／AiiPo Re:birth）2026-11-26
   正：demo_fable51/sites/_kit/service.css（各サイトの public/site/ へはビルドでコピー。直接直さない）
   色はグループ共通仕様（docs/group-site-spec_2026-11-26.md §1）。サービスの色は body[data-svc]。 */
:root {
  --navy: #0b1020; --navy-2: #141b30; --navy-line: rgba(255,255,255,.12);
  --bg: #ffffff; --bg-alt: #f6f7f9; --ink: #111827; --muted: #5b6472; --line: #e5e7eb;
  --accent: #2b6cff; --accent-ink: #1f56d6;
  --radius: 16px; --wrap: 1120px;
  --font: Inter, "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
}
[data-svc="reactor"] { --accent: #2b6cff; --accent-ink: #1f56d6; }
[data-svc="seo"] { --accent: #f5b400; --accent-ink: #8a5a00; }
[data-svc="security"] { --accent: #f26a1b; --accent-ink: #b5430f; }
[data-svc="rebirth"] { --accent: #1fbf8f; --accent-ink: #0b7a5a; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; letter-spacing: .01em; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); }
h1, h2, h3 { margin: 0; line-height: 1.35; letter-spacing: .01em; word-break: auto-phrase; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ico { flex: none; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--navy); font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--accent-ink); filter: none; }

/* ---------- ヘッダー ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; border-bottom: 1px solid var(--navy-line); }
.hd-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; min-width: 0; }
.brand .ring { color: var(--accent); }
.brand-word { font-weight: 700; letter-spacing: .32em; font-size: 14px; }
.brand-svc { display: flex; flex-direction: column; line-height: 1.25; padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(255,255,255,.25); }
.brand-svc b { font-size: 15px; color: #fff; }
.brand-svc small { font-size: 11px; color: rgba(255,255,255,.62); letter-spacing: .04em; }
.hd-nav { display: flex; gap: 22px; }
.hd-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; font-weight: 600; }
.hd-nav a:hover { color: #fff; }
.hd-menu { display: none; position: relative; }
.hd-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: #fff; }
.hd-menu summary::-webkit-details-marker { display: none; }
.hd-menu nav { position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.hd-menu nav a:not(.btn) { color: #fff; text-decoration: none; padding: 12px; border-radius: 8px; font-weight: 600; }
.hd-menu nav a:not(.btn):hover { background: rgba(255,255,255,.06); }
.hd-menu nav .btn { margin-top: 6px; }
@media (max-width: 960px) {
  .hd-nav, .hd-cta { display: none; }
  .hd-menu { display: block; }
  .hd-in { min-height: 64px; gap: 8px; }
}
@media (max-width: 400px) { .brand-word { display: none; } .brand-svc { border-left: 0; padding-left: 0; } }

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 72px 0 64px; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 65%); pointer-events: none; }
.hero-in { position: relative; }
/* REACTOR のリングロゴ：背景の薄い大きなロゴ（::after）＋右側の光るロゴ（.hero-core）。色は build 時にサービス色へ変えた /site/reactor-icon.svg */
.hero::after { content: ""; position: absolute; top: -200px; right: -300px; width: 960px; height: 960px; background: url(/site/reactor-icon.svg) center / contain no-repeat; opacity: .07; pointer-events: none; }
.hero-in > :not(.hero-core) { position: relative; z-index: 1; }
.hero-core { position: absolute; right: 0; top: 50%; transform: translateY(-40%); width: 300px; height: 300px; display: grid; place-items: center; pointer-events: none; }
.hero-core::before { content: ""; position: absolute; inset: -28%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent) 0%, transparent 64%); }
.hero-core::after { content: ""; position: absolute; inset: -12%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent); animation: core-turn 60s linear infinite; }
.hero-core img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 0 24px color-mix(in srgb, var(--accent) 55%, transparent)); animation: core-glow 6s ease-in-out infinite; }
@keyframes core-turn { to { transform: rotate(360deg); } }
@keyframes core-glow { 50% { transform: scale(1.03); filter: drop-shadow(0 0 36px color-mix(in srgb, var(--accent) 70%, transparent)); } }
@media (prefers-reduced-motion: reduce) { .hero-core::after, .hero-core img { animation: none; } }
@media (max-width: 1100px) { .hero-core { width: 220px; height: 220px; right: -24px; opacity: .55; } }
@media (max-width: 640px) {
  .hero::after { top: -120px; right: -260px; width: 560px; height: 560px; opacity: .06; }
  .hero-core { top: -20px; transform: none; right: -36px; width: 130px; height: 130px; opacity: .4; }
}
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.hero .eyebrow { color: var(--accent); }
.hero h1 { margin-top: 14px; font-size: clamp(30px, 5.2vw, 54px); font-weight: 800; letter-spacing: 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 16px; font-size: clamp(16px, 1.8vw, 19px); color: rgba(255,255,255,.82); }
.uform { margin-top: 32px; max-width: 760px; }
.uform label { display: block; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.75); margin-bottom: 8px; }
.uform-row { display: flex; gap: 10px; padding: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--navy-line); border-radius: 999px; }
.uform input { flex: 1; min-width: 0; height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.uform input:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.uform-err { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: #fff1f0; color: #a8071a; font-size: 14px; }
.uform-ts:empty { display: none; }
.uform-ts { margin-top: 10px; }
@media (max-width: 640px) {
  .uform-row { flex-direction: column; border-radius: 18px; }
  .uform input { flex: none; border-radius: 12px; }
  .uform .btn { width: 100%; border-radius: 12px; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-width: 760px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--navy-line); font-size: 13px; color: rgba(255,255,255,.88); }
.chips .ico { color: var(--accent); }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; max-width: 760px; counter-reset: f; }
.flow li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--navy-line); }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
.flow-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.flow-n { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: rgba(255,255,255,.55); margin-top: 6px; }
.flow b { font-size: 15px; }
@media (max-width: 640px) {
  .hero { padding: 48px 0 44px; }
  .flow { grid-template-columns: 1fr; gap: 8px; }
  .flow li { flex-direction: row; align-items: center; gap: 12px; padding: 12px; }
  .flow-n { margin: 0; }
  .flow li:not(:last-child)::after { display: none; }
}

/* ---------- セクション ---------- */
.sec { padding: 88px 0; }
.sec.alt { background: var(--bg-alt); }
.sec-hd { margin-bottom: 36px; }
.sec-hd h2 { margin-top: 8px; font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; }
.sec-hd p { margin-top: 10px; color: var(--muted); }
.sub-h { margin: 44px 0 16px; font-size: 18px; }
@media (max-width: 640px) { .sec { padding: 60px 0; } .sec-hd { margin-bottom: 24px; } }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .g2 { grid-template-columns: 1fr; }
  .g4 { gap: 10px; }
  .g4 .card { padding: 16px; }
  .g4 .card h3 { font-size: 15px; }
  .g4 .card p { font-size: 13px; }
  .g4 .card-ico { width: 38px; height: 38px; }
}

.card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 16%, #fff); color: var(--accent-ink); }
.card h3 { font-size: 17px; }
.card p { color: var(--muted); font-size: 14px; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card .card-foot { margin-top: auto; padding-top: 12px; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent-ink); transform: translateY(-2px); }
.card .more { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, #fff); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.price .big { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.note { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--muted); font-size: 13px; }

/* 測定しないこと等の × リスト */
.nots { display: flex; flex-wrap: wrap; gap: 8px; }
.nots li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.nots .ico { color: #b42318; }

/* 改善前→改善後 */
.ba { display: grid; gap: 12px; }
.ba-row { display: grid; grid-template-columns: 140px 1fr 32px 1fr; align-items: center; gap: 12px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ba-k { font-weight: 700; font-size: 14px; }
.ba-b { color: var(--muted); font-size: 14px; }
.ba-a { font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, #fff); }
.ba-row > .ico { color: var(--accent-ink); }
@media (max-width: 760px) { .ba-row { grid-template-columns: 1fr; gap: 6px; } .ba-row > .ico { transform: rotate(90deg); } }

/* 表 */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl thead th { background: var(--bg-alt); font-size: 13px; color: var(--muted); }
.tbl .free { color: var(--accent-ink); font-weight: 800; }
@media (max-width: 640px) {
  .tbl thead { display: none; }
  .tbl tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl th, .tbl td { display: block; padding: 2px 0; border: 0; }
  .tbl td:last-child { color: var(--muted); font-size: 13px; }
}

/* 折りたたみ（FAQ・補足） */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details, .more-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary, .more-box summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; }
.faq summary::-webkit-details-marker, .more-box summary::-webkit-details-marker { display: none; }
.faq summary::after, .more-box summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after, .more-box[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }
.more-box { margin-top: 16px; }
.more-box ul { padding: 0 20px 18px 38px; list-style: disc; color: var(--muted); font-size: 14px; }
.more-box li + li { margin-top: 6px; }

/* ---------- CTA 帯 ---------- */
.cta { background: var(--navy); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: -10%; bottom: -60%; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 65%); pointer-events: none; }
.cta-in { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(22px, 3vw, 30px); }
.cta p { margin-top: 8px; color: rgba(255,255,255,.75); }
.cta .uform { margin-top: 0; }
@media (max-width: 860px) { .cta-in { grid-template-columns: 1fr; } }

/* ---------- ほかの診断・サービス ---------- */
.others { padding: 56px 0; background: var(--bg-alt); border-top: 1px solid var(--line); }
.others h2 { font-size: 18px; margin-bottom: 16px; }
.svc-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.svc-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.svc-card .svc-txt { display: flex; flex-direction: column; margin-right: auto; }
.svc-card small { color: var(--muted); font-size: 13px; }
.svc-card > .ico { color: var(--muted); }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------- フッター ---------- */
.ft { background: var(--navy); color: rgba(255,255,255,.78); padding: 56px 0 28px; font-size: 14px; }
.ft a { color: inherit; }
.ft-h { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: rgba(255,255,255,.55); }
.ft-svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.ft-svc a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--navy-line); text-decoration: none; height: 100%; }
.ft-svc a:hover { background: rgba(255,255,255,.05); }
.ft-svc a[aria-current] { background: rgba(255,255,255,.06); }
.ft-svc .dot { grid-row: span 2; width: 10px; height: 10px; }
.ft-svc b { color: #fff; font-size: 14px; }
.ft-svc small { grid-column: 2; font-size: 12px; color: rgba(255,255,255,.6); }
.ft-co { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--navy-line); }
.ft-co p { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ft-co p a { color: #fff; font-weight: 700; }
.ft-co nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ft-co nav a { text-decoration: none; }
.ft-co nav a:hover { text-decoration: underline; }
.ft-copy { margin-top: 20px; font-size: 12px; color: rgba(255,255,255,.5); }
@media (max-width: 960px) { .ft-svc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ft-svc { grid-template-columns: 1fr; } }

/* ---------- 下層ページ ---------- */
.page-hd { background: var(--navy); color: #fff; padding: 56px 0 48px; }
.page-hd .eyebrow { color: var(--accent); }
.page-hd h1 { margin-top: 10px; font-size: clamp(26px, 4vw, 40px); }
.page-hd .lead { margin-top: 12px; color: rgba(255,255,255,.8); }
.page-hd .meta { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.6); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: 13px; color: rgba(255,255,255,.6); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: rgba(255,255,255,.8); }
.narrow { max-width: 780px; }
.prose h2 { margin: 36px 0 12px; font-size: 22px; }
.prose p { margin-top: 12px; color: #374151; }
.prose .links { margin-top: 12px; list-style: disc; padding-left: 20px; }
.prose .links li + li { margin-top: 6px; }
