/* ChordOne product service-sites shared stylesheet (build-free).
   Per-site accent is set with --accent / --accent-soft in each page head (inline :root). */
/* 既定トークンは cascade layer に置く: 各ページ head のインライン :root（unlayered）が
   読み込み順に関係なく必ず勝つ（site.css が後ろでも上書きされない） */
@layer tokens {
  :root {
    --ink: #101522;
    --muted: #5d6678;
    --line: #dfe6f0;
    --bg: #ffffff;
    --bg-soft: #f5f8fc;
    --accent: #3d72b4;
    --accent-ink: #2a578f;
    --accent-soft: #edf4ff;
    --accent-border: #c9dcf3;
    --success: #1f8a5b;
    --warning: #a4640a;
    --radius: 16px;
    --shadow: 0 18px 50px rgba(28, 56, 96, 0.10);
    --max: 1120px;
    --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, -apple-system, sans-serif;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 16px; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 0.6em; letter-spacing: -0.01em; font-feature-settings: "palt"; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: 0.875rem; color: var(--muted); }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img { height: 28px; width: auto; }
.brand .brand-sub { font-size: 0.75rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.93rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.header-cta { display: flex; gap: 8px; align-items: center; }
@media (max-width: 860px) {
  .site-header .container { flex-wrap: wrap; row-gap: 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 12px; margin-left: 0; }
  .site-nav.open { display: flex; }
  .header-cta { display: none; }
  .brand .brand-sub { display: none; }
}

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 0.98rem; transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease; white-space: nowrap; }
.button.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(61, 114, 180, 0.22); }
.button.primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-1px); }
.button.secondary { background: #fff; color: var(--accent-ink); border-color: var(--accent-border); }
.button.secondary:hover { background: var(--accent-soft); }
.button.small { min-height: 38px; padding: 6px 14px; font-size: 0.88rem; }
.cta-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); background: radial-gradient(1200px 500px at 80% -10%, var(--accent-soft), transparent 60%), linear-gradient(180deg, #fff, var(--bg-soft)); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; white-space: nowrap; }
.hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero.compact .container { grid-template-columns: minmax(0, 1fr); }
.hero.compact h1 { max-width: 26em; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.checks { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; font-size: 0.95rem; }
.checks li::before { content: "✓ "; color: var(--success); font-weight: 800; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.hero-points li::before { content: "✓ "; color: var(--success); font-weight: 800; }
@media (max-width: 900px) { .hero .container { grid-template-columns: minmax(0, 1fr); } }

/* Product frame (screenshot / CSS mock) */
.frame { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.frame-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d9dee7; }
.frame img { width: 100%; }
.mock { padding: 18px; display: grid; gap: 10px; font-size: 0.85rem; }
.mock-row { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mock-row.head { background: var(--bg-soft); font-weight: 700; color: var(--muted); font-size: 0.78rem; }
.mock-pill { display: inline-block; white-space: nowrap; border-radius: 999px; padding: 2px 10px; font-size: 0.75rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); }
.mock-pill.ok { background: #e6f5ed; color: #15693f; } /* 小さい文字は 4.5:1 以上（Lighthouse color-contrast） */
.mock-pill.warn { background: #fdf1df; color: #7a4a06; }
.mock-bar { height: 8px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.mock-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.mock-title { font-weight: 800; font-size: 0.95rem; margin: 0; }
.mock-muted { color: var(--muted); }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head .kicker { display: block; color: var(--accent-ink); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; margin-bottom: 8px; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .num { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.card.pain { border-left: 4px solid #e2a45a; }
.card.outcome { border-left: 4px solid var(--success); }
.card.accent { background: var(--accent-soft); border-color: var(--accent-border); }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; padding: 32px 0; }
.feature-row.reverse > :first-child { order: 2; }
.feature-row h3 { font-size: 1.35rem; }
.feature-row ul { padding-left: 1.2em; color: var(--muted); }
@media (max-width: 860px) { .feature-row { grid-template-columns: minmax(0, 1fr); } .feature-row.reverse > :first-child { order: 0; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--success); font-weight: 700; }
td.hl, th.hl { background: var(--accent-soft); }
.table-note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

/* Pricing */
.price-card { position: relative; }
.price-card .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0; }
.price-card .price small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.price-card ul { padding-left: 1.1em; color: var(--muted); font-size: 0.93rem; }
.badge { display: inline-block; white-space: nowrap; border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; font-weight: 700; background: var(--accent); color: #fff; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps .step { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps .step::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps .step h3 { font-size: 1.05rem; }
.steps .step p { color: var(--muted); font-size: 0.93rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }
.faq h3 { font-size: 1rem; margin: 0; }

/* Answer-first / definition blocks (AEO) */
.answer { background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 14px; padding: 18px 20px; margin: 0 0 24px; }
.answer p { margin: 0; }
.answer strong { color: var(--accent-ink); }
.definition { border-left: 4px solid var(--accent); background: var(--bg-soft); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 0 0 24px; }
.definition dt { font-weight: 800; }
.definition dd { margin: 4px 0 0; color: var(--muted); }
.callout { border: 1px dashed var(--accent-border); border-radius: 14px; padding: 16px 20px; background: #fff; }

/* Article */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
.article-body { max-width: 720px; }
.article-body h2 { margin-top: 2.2em; font-size: 1.5rem; padding-bottom: 0.3em; border-bottom: 2px solid var(--accent-soft); }
.article-body h3 { margin-top: 1.8em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin-bottom: 0.35em; }
.article-body figure { margin: 24px 0; }
.article-body figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.article-aside { position: sticky; top: 84px; align-self: start; display: grid; gap: 16px; }
.toc { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; font-size: 0.9rem; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { text-decoration: none; }
.aside-cta { background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 14px; padding: 18px; }
.aside-cta p { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 960px) { .article { grid-template-columns: minmax(0, 1fr); } .article-aside { position: static; } }
.article-body, .article-aside { min-width: 0; } /* 幅の広い表が列を押し広げないように（table-wrap 内で横スクロール） */
.breadcrumbs { font-size: 0.82rem; color: var(--muted); margin: 18px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #b3bccb; }
.breadcrumbs a { text-decoration: none; }
.article-list { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-list a { text-decoration: none; color: inherit; }
.article-list .card:hover { border-color: var(--accent-border); box-shadow: var(--shadow); }
.article-list .tag { font-size: 0.75rem; font-weight: 700; color: var(--accent-ink); }
@media (max-width: 900px) { .article-list { grid-template-columns: 1fr; } }

/* Final CTA */
.cta-band { background: linear-gradient(135deg, var(--accent-ink), var(--accent)); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 40em; margin: 0 auto 20px; }
.cta-band .button.primary { background: #fff; color: var(--accent-ink); box-shadow: none; }
.cta-band .button.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.cta-band .button.secondary:hover { background: rgba(255,255,255,0.12); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; background: var(--bg-soft); font-size: 0.88rem; color: var(--muted); }
.site-footer .container { display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer h4, .site-footer .footer-heading { font-size: 0.85rem; font-weight: 700; margin: 0 0 10px; color: var(--ink); line-height: 1.35; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--accent-ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 800px) { .site-footer .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .container { grid-template-columns: 1fr; } }

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.pill { display: inline-block; white-space: nowrap; border-radius: 999px; padding: 3px 10px; font-size: 0.78rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-border); }
.sticky-cta { display: none; }
@media (max-width: 700px) {
  .sticky-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; gap: 8px; }
  .sticky-cta .button { flex: 1; min-height: 44px; font-size: 0.9rem; }
  body { padding-bottom: 72px; }
}
