/* =============================================================================
   セイキュー（Seikyu） サイト共通スタイル
   対象: site/index.html, site/legal.html, site/tokushoho.html
   方針: 外部リソース一切なし。白基調・アクセント #4F46E5・角丸8px・余白広め。
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-surface: #F8F8FC;
  --color-text: #1A1A2E;
  --color-text-muted: #565A72;
  --color-text-faint: #8A8DA0;
  --color-border: #E5E7EB;
  --color-border-strong: #D7D9E3;

  --color-accent: #4F46E5;
  --color-accent-hover: #4338CA;
  --color-accent-light: #EEF2FF;
  --color-accent-contrast: #FFFFFF;

  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, .08);
  --shadow-lg: 0 28px 56px rgba(30, 27, 90, .14);

  --container: 1120px;
  --container-narrow: 760px;
  --header-h: 72px;
}

/* --------------------------------- Reset --------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
}

p { margin: 0 0 1em; color: var(--color-text-muted); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

strong { color: var(--color-text); font-weight: 700; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.4em 0;
}

/* -------------------------------- Layout --------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.band-muted { background: var(--color-surface); }

@media (max-width: 720px) {
  section { padding: 64px 0; }
}

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); }
.section-head p { font-size: 16px; margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

/* --------------------------------- Skip link ------------------------------ */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* --------------------------------- Icons ---------------------------------- */

.icon { width: 24px; height: 24px; flex-shrink: 0; }

/* --------------------------------- Buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); color: #fff; }

.btn-outline {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-text {
  color: var(--color-text);
  font-weight: 600;
  padding: 14px 4px;
}
.btn-text:hover { color: var(--color-accent); }

.btn-lg { padding: 16px 32px; font-size: 17px; }

.btn[aria-disabled="true"] {
  background: #fff;
  color: var(--color-text-faint);
  border-color: var(--color-border);
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------- Header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand .icon { width: 32px; height: 32px; }
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-faint);
  letter-spacing: .04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  color: var(--color-text);
  font-size: 14.5px;
  font-weight: 500;
}
.main-nav a:hover { color: var(--color-accent); text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text);
}
.back-link:hover { color: var(--color-accent); text-decoration: none; }
.back-link .icon { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .main-nav { display: none; }
}

/* ---------------------------------- Hero ----------------------------------- */

.hero {
  padding-top: 84px;
  padding-bottom: 96px;
  background: radial-gradient(1100px 460px at 85% -12%, rgba(79, 70, 229, .08), transparent 60%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -.02em;
}

.hero-lead {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.trust-list .icon { width: 18px; height: 18px; color: var(--color-accent); }

.hero-visual { position: relative; }
.hero-visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(79, 70, 229, .18));
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 300px; margin: 0 auto; }
  .hero-lead { max-width: none; }
}

/* -------------------------------- Features --------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.feature-icon .icon { width: 26px; height: 26px; color: var(--color-accent); }

.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 15px; margin-bottom: 0; }

@media (max-width: 860px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------- Steps ----------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.step { position: relative; padding: 4px 22px 4px 0; }

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 18px;
}

.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; margin-bottom: 0; }

.step-arrow {
  position: absolute;
  top: 10px;
  right: -22px;
  color: var(--color-border-strong);
  width: 22px;
  height: 22px;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step-arrow { display: none; }
}

/* --------------------------------- Pricing ---------------------------------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  background: #fff;
}

.compare-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
}
.compare-table th, .compare-table td {
  padding: 15px 22px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14.5px;
  text-align: center;
}
.compare-table tbody th { text-align: left; font-weight: 500; color: var(--color-text); }
.compare-table thead th {
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 13px;
}
.compare-table thead th:first-child { text-align: left; }
.compare-table thead th.col-pro { color: var(--color-accent); }
.compare-table tbody td { color: var(--color-text-faint); font-weight: 600; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--color-accent); }
.compare-table .yes .icon { width: 18px; height: 18px; }

.pricing-cta {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
}
.pricing-cta .price {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}
.pricing-cta .price strong {
  font-size: 34px;
  color: var(--color-text);
  margin-right: 8px;
}
.pricing-note {
  font-size: 13px;
  margin: 16px auto 0;
  max-width: 420px;
  color: var(--color-text-faint);
}

/* ----------------------------------- FAQ ------------------------------------ */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  font-weight: 600;
  font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-item .chev { flex-shrink: 0; color: var(--color-text-faint); }
.faq-item .chev .icon { transition: transform .2s ease; }
.faq-item[open] .chev .icon { transform: rotate(180deg); color: var(--color-accent); }

.faq-answer {
  margin: 0;
  padding: 0 22px 22px;
  font-size: 14.5px;
  color: var(--color-text-muted);
}

/* -------------------------------- CTA band ----------------------------------- */

.cta-band {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 28px); }
.cta-band p { color: rgba(255, 255, 255, .82); margin-bottom: 30px; }
.cta-band .btn-primary { background: #fff; color: var(--color-accent); }
.cta-band .btn-primary:hover { background: #F3F4FF; color: var(--color-accent-hover); }

/* --------------------------------- Footer ------------------------------------ */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 56px 0 36px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-text);
}
.footer-brand .icon { width: 28px; height: 28px; }
.footer-about { max-width: 300px; }
.footer-about p { font-size: 13.5px; margin-top: 14px; margin-bottom: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  font-size: 14px;
}
.footer-links a { color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-accent); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-faint);
}

/* =============================================================================
   法務ページ（legal.html / tokushoho.html）共通スタイル
   ========================================================================== */

.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.page-hero h1 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 10px; }
.page-hero p { margin: 0; }

.legal-jump {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.legal-jump a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  font-size: 13.5px;
  font-weight: 600;
}
.legal-jump a:hover { border-color: var(--color-accent); color: var(--color-accent); text-decoration: none; }

.prose-page { padding: 56px 0 100px; }

.prose section { padding: 0; margin-bottom: 64px; }
.prose section:last-child { margin-bottom: 0; }

.prose h2 {
  font-size: 21px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.prose h3 { font-size: 16px; margin-top: 1.8em; }
.prose p, .prose li { color: var(--color-text); font-size: 15px; }
.prose > section > p:first-of-type { color: var(--color-text-muted); }

.prose ol.legal-list {
  list-style: none;
  counter-reset: legal-counter;
  padding-left: 0;
  margin-bottom: 1.2em;
}
.prose ol.legal-list > li {
  counter-increment: legal-counter;
  position: relative;
  padding-left: 2.1em;
  margin-bottom: .9em;
}
.prose ol.legal-list > li::before {
  content: "第" counter(legal-counter) "条";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}
.prose ol.legal-list > li > strong {
  display: block;
  margin-bottom: .4em;
}

.prose ol.sub-list {
  list-style: none;
  counter-reset: sub-counter;
  padding-left: 1.6em;
  margin: .8em 0;
}
.prose ol.sub-list > li {
  counter-increment: sub-counter;
  position: relative;
  padding-left: 1.6em;
  margin-bottom: .5em;
  font-size: 14.5px;
  color: var(--color-text-muted);
}
.prose ol.sub-list > li::before {
  content: "(" counter(sub-counter) ")";
  position: absolute;
  left: 0;
}

.prose ol.plain-list {
  list-style: none;
  counter-reset: plain-counter;
  padding-left: 0;
  margin-bottom: 1.2em;
}
.prose ol.plain-list > li {
  counter-increment: plain-counter;
  position: relative;
  padding-left: 2.1em;
  margin-bottom: 1.4em;
}
.prose ol.plain-list > li::before {
  content: counter(plain-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-accent);
}
.prose ol.plain-list > li > strong {
  display: block;
  margin-bottom: .4em;
  font-size: 15.5px;
}

.legal-table-wrap { overflow-x: auto; }
table.legal-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin: 8px 0 0;
}
table.legal-table th, table.legal-table td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14.5px;
  vertical-align: top;
  line-height: 1.75;
}
table.legal-table th {
  width: 220px;
  color: var(--color-text-muted);
  font-weight: 700;
  background: var(--color-surface);
  white-space: nowrap;
}
table.legal-table tr:last-child th, table.legal-table tr:last-child td { border-bottom: none; }
table.legal-table .note {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--color-text-faint);
}

/* 狭い画面では th/td を横並びではなく縦積みにし、横スクロール・折返しによる
   文字切れを避ける（キー・バリュー形式の表として自然に読める） */
@media (max-width: 640px) {
  table.legal-table, table.legal-table tbody,
  table.legal-table tr, table.legal-table th, table.legal-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  table.legal-table {
    min-width: 0;
  }
  table.legal-table tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
  }
  table.legal-table tr:last-child { border-bottom: none; }
  table.legal-table th {
    white-space: normal;
    background: transparent;
    padding: 0 0 6px;
    border-bottom: none;
  }
  table.legal-table td {
    padding: 0;
    border-bottom: none;
  }
}

.updated-note {
  margin-top: 40px;
  font-size: 13px;
  color: var(--color-text-faint);
}

/* -------------------------------- Utilities ------------------------------------ */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
