/* 紹介サイト用。色は Figma（mame-seo の変数「色」）と本体（services/mame-seo-os）のトークンに合わせる。
   見た目の正本は Figma のページ「6 紹介サイト（全ページ）」 */
:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --subtle: #f1f5f9;
  --border: #dbe3ef;
  --border-strong: #cbd5e1;
  --fg: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --primary: #1e40af;
  --primary-hover: #17358f;
  --primary-soft: #eff6ff;
  --accent: #b45309;
  --navy: #0f172a;
  --navy-line: #1e293b;
  --navy-text: #cbd5e1;
  --navy-muted: #94a3b8;
  --ring: #2563eb;
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --content: 1120px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  min-width: 320px;
  margin: 0;
  background: var(--surface);
  color: var(--fg);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
code { font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

.container { width: 100%; max-width: calc(var(--content) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* ボタン */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px; border-radius: 6px; border: 1px solid var(--primary);
  background: var(--primary); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none;
}
.button:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.button--secondary { background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.button--secondary:hover { background: var(--subtle); color: var(--fg); border-color: var(--border-strong); }
.button--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.button--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* ヘッダー */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; padding: 0 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; font-size: 18px; line-height: 1.3; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.site-nav { display: none; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.site-header__login { display: none; font-size: 14px; font-weight: 500; }
@media (min-width: 960px) {
  .site-header__inner { min-height: 72px; padding: 0 40px; }
  .brand { font-size: 20px; }
  .brand img { width: 30px; height: 30px; }
  .site-nav { display: flex; gap: 28px; padding-left: 24px; }
  .site-nav a { color: var(--fg); font-size: 14px; font-weight: 500; text-decoration: none; }
  .site-nav a:hover { color: var(--primary); }
  .site-header__login { display: inline; }
  .site-header__actions .button--secondary { display: none; }
}
@media (max-width: 959px) {
  .site-header__actions .button--primary { display: none; }
}

/* 段 */
.section { padding: 56px 0; }
.section--bg { background: var(--bg); }
.section--soft { background: var(--primary-soft); }
@media (min-width: 960px) { .section { padding: 96px 0; } }

.section-head { display: grid; justify-items: center; gap: 12px; text-align: center; margin-bottom: 28px; }
.section-head__kicker { color: var(--primary); font-size: 13px; font-weight: 700; line-height: 1.5; }
.section-head h2 { font-size: 23px; line-height: 1.45; }
.section-head::after { content: ""; order: 2; width: 40px; height: 3px; background: var(--primary); }
.section-head p:not(.section-head__kicker) { order: 3; color: var(--muted); font-size: 14px; }
@media (min-width: 960px) {
  .section-head { gap: 16px; margin-bottom: 48px; }
  .section-head__kicker { font-size: 15px; }
  .section-head h2 { font-size: 34px; }
  .section-head::after { width: 56px; }
  .section-head p:not(.section-head__kicker) { font-size: 16px; }
}

.card { background: var(--surface); border-radius: 12px; }
.card--line { border: 1px solid var(--border); }
.card--shadow { box-shadow: var(--shadow); }

/* 最初の画面 */
.hero { background: var(--primary-soft); padding: 40px 0 48px; }
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__kicker { color: var(--primary); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.hero h1 { font-size: 34px; line-height: 1.3; letter-spacing: .01em; }
.hero__lead { margin-top: 20px; font-size: 16px; line-height: 1.9; }
.hero__actions { display: grid; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 16px; color: var(--muted); font-size: 13px; }
.hero__visual img { width: 100%; }
@media (min-width: 960px) {
  .hero { padding: 64px 0 72px; }
  .hero__inner { grid-template-columns: 600px 1fr; gap: 40px; }
  .hero__kicker { font-size: 16px; }
  .hero h1 { font-size: 56px; line-height: 1.25; }
  .hero__lead { font-size: 17px; }
  .hero__actions { display: flex; gap: 12px; }
}

/* お悩み */
.worries { display: grid; gap: 12px; }
.worries li { padding: 20px; }
.worries h3 { font-size: 16px; line-height: 1.55; }
.worries p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.bridge { margin-top: 32px; color: var(--primary); font-size: 18px; font-weight: 700; line-height: 1.5; text-align: center; }
@media (min-width: 960px) {
  .worries { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .worries li { padding: 28px 24px; }
  .worries h3 { font-size: 17px; }
  .bridge { margin-top: 48px; font-size: 24px; }
}

/* できること */
.features-panel { padding: 40px 16px; border-radius: 12px; }
.feature { display: grid; gap: 20px; align-items: center; }
.feature + .feature { margin-top: 48px; }
.feature__label { color: var(--primary); font-size: 15px; font-weight: 700; }
.feature h3 { margin-top: 8px; font-size: 22px; line-height: 1.5; }
.feature h3::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 16px; background: var(--primary); }
.feature__body { margin-top: 16px; font-size: 15px; line-height: 1.95; }
.feature__screens-label { margin-top: 16px; color: var(--muted); font-size: 13px; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tags li { padding: 4px 10px; border-radius: 4px; background: var(--subtle); font-size: 13px; font-weight: 500; line-height: 1.5; }
.feature__shot img { border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(15, 23, 42, .10); }
.feature__shot--phone { display: flex; justify-content: center; }
.feature__shot--phone img { width: 256px; border: 0; box-shadow: none; }
@media (max-width: 959px) {
  .section--features { padding: 40px 0; }
  .section--features .container { padding: 0 12px; }
  .feature__shot--pc { display: none; }
}
@media (min-width: 960px) {
  .section--features { padding: 80px 0; }
  .section--features .container { max-width: calc(1280px + var(--gutter) * 2); }
  .features-panel { padding: 80px; border-radius: 20px; }
  .feature { grid-template-columns: 1fr 600px; gap: 64px; }
  .feature + .feature { margin-top: 88px; }
  .feature--reverse { grid-template-columns: 600px 1fr; }
  .feature--reverse .feature__shot { order: -1; }
  .feature h3 { font-size: 28px; }
  .feature__body { font-size: 16px; }
  .feature__shot--phone { display: none; }
}

/* AI Overviews */
.aio-shot { max-width: 1000px; margin: 0 auto; }
.aio-shot img { border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (max-width: 719px) { .aio-shot img { border: 0; border-radius: 0; box-shadow: none; } }
.aio-steps { display: grid; gap: 12px; margin-top: 28px; }
.aio-steps li { padding: 18px 20px; }
.aio-steps h3 { font-size: 16px; line-height: 1.55; }
.aio-steps p { margin-top: 6px; color: var(--muted); font-size: 14px; }
@media (min-width: 960px) {
  .aio-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
  .aio-steps li { padding: 24px; }
}

/* 主な機能 */
.feature-list > div { display: grid; gap: 10px; padding: 20px 0; border-top: 1px solid var(--border); }
.feature-list dt { font-size: 17px; font-weight: 700; }
.feature-list dd .tags { margin-top: 0; }
.feature-list dd .tags li { font-size: 14px; }
@media (min-width: 960px) {
  .feature-list > div { grid-template-columns: 140px 1fr; gap: 32px; }
}

/* 特徴 */
.merits { display: grid; gap: 16px; }
.merits li { display: flex; align-items: center; gap: 20px; padding: 20px; }
.merits img { flex: none; width: 72px; height: 72px; border-radius: 8px; }
.merits h3 { font-size: 17px; line-height: 1.5; }
.merits p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.85; }
@media (min-width: 960px) {
  .merits { grid-template-columns: 1fr 1fr; gap: 24px; }
  .merits li { padding: 28px; }
  .merits img { width: 112px; height: 112px; }
  .merits h3 { font-size: 19px; }
}

/* 導入の流れ */
.flow { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.flow li { padding: 18px 20px; }
.flow__step { color: var(--primary); font-size: 13px; font-weight: 700; }
.flow h3 { margin-top: 2px; font-size: 18px; line-height: 1.5; }
.flow p { margin-top: 6px; color: var(--muted); font-size: 14px; }
@media (min-width: 960px) {
  .flow { grid-template-columns: 1fr 40px 1fr 40px 1fr; gap: 0; align-items: stretch; }
  .flow li { padding: 28px; }
  .flow h3 { font-size: 20px; }
  .flow__sep { display: flex; align-items: center; justify-content: center; color: var(--border-strong); font-size: 28px; }
}
@media (max-width: 959px) { .flow__sep { display: none; } }

/* Google のデータの扱い */
.data-table { padding: 8px 20px; }
.data-table > div { display: grid; gap: 4px; padding: 20px 0; }
.data-table > div + div { border-top: 1px solid var(--border); }
.data-table dt { color: var(--primary); font-size: 15px; font-weight: 700; }
.data-table dd { font-size: 15px; }
.data-link { margin-top: 28px; text-align: center; font-size: 15px; font-weight: 500; }
@media (min-width: 960px) {
  .data-table { padding: 8px 40px; }
  .data-table > div { grid-template-columns: 140px 1fr; gap: 32px; }
}

/* よくある質問 */
.faq { display: grid; gap: 12px; }
.faq > dl { padding: 18px; }
.faq dt, .faq dd { display: flex; gap: 12px; }
.faq dt { font-size: 16px; font-weight: 700; line-height: 1.6; }
.faq dd { margin-top: 10px; color: var(--muted); font-size: 15px; }
.faq dt::before, .faq dd::before { flex: none; font-size: 17px; font-weight: 700; line-height: 1.5; }
.faq dt::before { content: "Q"; color: var(--primary); }
.faq dd::before { content: "A"; color: var(--accent); }
@media (min-width: 960px) { .faq > dl { padding: 22px 28px; } }

/* 相談窓口 */
.contact { background: var(--primary); padding: 48px 0; }
.contact__panel { display: grid; gap: 20px; padding: 28px 20px; border-radius: 16px; }
.contact h2 { font-size: 22px; line-height: 1.5; }
.contact p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.contact__mail { display: inline-block; margin-top: 10px; font-size: 18px; font-weight: 700; }
.contact__actions { display: grid; gap: 10px; }
@media (min-width: 960px) {
  .contact { padding: 80px 0; }
  .contact__panel { grid-template-columns: 1fr 240px; align-items: center; gap: 48px; padding: 48px 56px; }
  .contact h2 { font-size: 28px; }
  .contact__mail { font-size: 22px; }
}

/* フッター */
.site-footer { background: var(--navy); color: var(--navy-text); padding: 40px 0; }
.site-footer__cols { display: grid; gap: 28px; }
.site-footer__brand .brand { color: #fff; }
.site-footer__brand p { margin-top: 12px; font-size: 13px; }
.site-footer h2 { color: #fff; font-size: 14px; line-height: 1.6; }
.site-footer ul { display: grid; gap: 6px; margin-top: 10px; }
.site-footer a { color: var(--navy-text); font-size: 14px; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__company { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--navy-line); color: var(--navy-muted); font-size: 13px; }
@media (min-width: 960px) {
  .site-footer { padding: 64px 0; }
  .site-footer__cols { grid-template-columns: 360px repeat(3, 1fr); gap: 64px; }
}

/* 下層ページ（プライバシーポリシー・利用規約） */
.page-head { background: var(--primary-soft); padding: 32px 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.page-head h1 { margin-top: 10px; font-size: 28px; line-height: 1.4; }
.page-head__meta { margin-top: 10px; color: var(--muted); font-size: 14px; }
@media (min-width: 960px) {
  .page-head { padding: 56px 0; }
  .page-head h1 { margin-top: 14px; font-size: 40px; }
  .page-head__meta { margin-top: 14px; }
}

.doc { padding: 24px 0 48px; }
.doc__layout { display: grid; gap: 28px; align-items: start; }
.toc { padding: 16px; border-radius: 8px; background: var(--bg); }
.toc__title { color: var(--muted); font-size: 13px; font-weight: 700; }
.toc ol { margin-top: 4px; padding: 0; list-style: none; display: grid; gap: 4px; }
.toc a { color: var(--fg); font-size: 14px; line-height: 1.6; text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.doc__body { min-width: 0; display: grid; gap: 16px; font-size: 15px; line-height: 1.95; }
.doc__body h2 { margin-top: 16px; padding-top: 32px; border-top: 1px solid var(--border); font-size: 20px; line-height: 1.5; scroll-margin-top: 16px; }
.doc__body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc__body h3 { font-size: 16px; line-height: 1.6; }
.doc__body ul { display: grid; gap: 8px; }
.doc__body ul li { position: relative; padding-left: 1.3em; }
.doc__body ul li::before { content: "・"; position: absolute; left: 0; color: var(--primary); }
.doc__contact { padding: 20px 24px; border-radius: 8px; background: var(--bg); }
@media (min-width: 960px) {
  .doc { padding: 64px 0 96px; }
  .doc__layout { grid-template-columns: 256px 1fr; gap: 64px; }
  .toc { position: sticky; top: 24px; padding: 0; background: none; }
  .doc__body { gap: 20px; font-size: 16px; max-width: 800px; }
  .doc__body h2 { margin-top: 28px; padding-top: 48px; font-size: 24px; }
  .doc__body h3 { font-size: 18px; }
}

/* 表 */
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; line-height: 1.75; }
.table th, .table td { padding: 14px 20px; text-align: left; vertical-align: top; }
.table thead th { background: var(--subtle); color: var(--muted); font-size: 13px; }
.table thead th:first-child { border-top-left-radius: 8px; }
.table thead th:last-child { border-top-right-radius: 8px; }
.table tbody td { border-top: 1px solid var(--border); }
.table tbody td:first-child { font-weight: 500; }
.table td { overflow-wrap: break-word; }
.table code { white-space: nowrap; }
.table:not(.table-countries) th:first-child { width: 30%; }
.table-countries { table-layout: fixed; }
.table-countries th:nth-child(4) { width: 28%; }
@media (max-width: 719px) {
  .table { border: 0; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--border); border-radius: 8px; padding: 6px 0; }
  .table tr + tr { margin-top: 12px; }
  .table tbody td { border-top: 0; padding: 6px 16px; }
  .table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
  .table tbody td:first-child { font-weight: 700; }
}

/* 見つからないとき */
.notfound { background: var(--primary-soft); padding: 56px 0 64px; text-align: center; }
.notfound h1 { font-size: 26px; line-height: 1.4; }
.notfound p { margin-top: 16px; color: var(--muted); }
.notfound__actions { display: grid; gap: 12px; margin-top: 28px; }
.notfound__links { display: flex; justify-content: center; gap: 20px; margin-top: 20px; font-size: 14px; }
@media (min-width: 960px) {
  .notfound { padding: 120px 0 140px; }
  .notfound h1 { font-size: 36px; }
  .notfound__actions { display: flex; justify-content: center; }
}
.doc__body blockquote { margin: 0; padding: 16px 20px; border-radius: 8px; background: var(--bg); color: var(--muted); font-size: 14px; line-height: 1.8; }
