/*
  EntryFlow 紹介サイト（entry-flow.com）の共通スタイル。説明は docs/site.md。
  色はアプリと同じ値（src/styles/tokens.css）。ティールは主要操作・現在地・リンクだけに使う。
  CSP（site/_headers）で style 属性・<style> を許可していないため、見た目はこのファイルだけに書く。
*/

:root {
  --primary: #0f766e;
  --primary-hover: #115e59;
  --heading: #142d3b;
  --body: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --page: #f8fafc;
  --surface: #ffffff;
  --secondary: #f0fdfa;
  --radius-control: 8px;
  --radius-card: 12px;
  --container: 1120px;
  --gutter: 16px;
  --section-space: 64px;
  color-scheme: light;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 32px; --section-space: 96px; }
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }

h1, h2, h3 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-wrap: balance;
  word-break: auto-phrase;
}

p { text-wrap: pretty; }

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

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

a:hover { color: var(--primary-hover); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* 句読点の位置で改行させたい見出しの単位 */
.phrase { display: inline-block; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: var(--gutter);
  z-index: 10;
  padding: 10px 16px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-control);
  background: var(--surface);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

/* ボタン */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--heading);
}

.button-secondary:hover {
  border-color: var(--heading);
  color: var(--heading);
}

.button-small {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 14px;
}

.button svg { width: 20px; height: 20px; flex: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
}

.text-link svg { width: 18px; height: 18px; flex: none; }

/* ヘッダー */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "brand actions"
    "nav nav";
  align-items: center;
  column-gap: 8px;
  padding-top: 8px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.brand img { width: 128px; height: auto; }

.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.header-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.header-login:hover {
  color: var(--primary);
  text-decoration: underline;
}

.site-nav {
  grid-area: nav;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

.site-nav ul {
  display: flex;
  justify-content: space-around;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: var(--heading);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover { color: var(--primary); }

.site-nav a[aria-current="page"] {
  color: var(--primary);
  box-shadow: inset 0 -3px 0 var(--primary);
}

@media (max-width: 359px) {
  .brand img { width: 104px; }
  .header-login { padding: 0 6px; }
  .header-actions .button-small { padding: 8px 10px; }
}

@media (min-width: 880px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav actions";
    column-gap: 24px;
    padding-block: 10px;
  }

  .brand img { width: 152px; }

  .site-nav {
    margin-top: 0;
    border-top: 0;
  }

  .site-nav ul {
    justify-content: flex-start;
    gap: 4px;
  }

  .header-actions { gap: 8px; }
}

/* セクション */
.section { padding-block: var(--section-space); }
.section-white { background: var(--surface); }
.section-tint { background: var(--secondary); }
.section-bordered { border-top: 1px solid var(--border); }

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head h2,
.section-title {
  font-size: 26px;
}

.section-lead {
  margin-top: 12px;
  font-size: 17px;
}

.section-more { margin-top: 24px; }

@media (min-width: 1024px) {
  .section-head h2,
  .section-title { font-size: 32px; }
  .section-head { margin-bottom: 40px; }
}

/* ページ見出し（トップ以外） */
.page-header {
  padding-block: 48px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-header h1 { font-size: 32px; }

.page-header .section-lead { max-width: 760px; }

@media (min-width: 1024px) {
  .page-header { padding-block: 72px 56px; }
  .page-header h1 { font-size: 40px; }
}

/* トップのヒーロー */
.hero {
  padding-block: 48px 64px;
  border-bottom: 1px solid var(--border);
  background: var(--secondary);
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-kicker {
  color: var(--body);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.hero-brandline {
  font-size: 34px;
  line-height: 1.3;
}

.hero-lead {
  max-width: 34em;
  margin-top: 20px;
  font-size: 17px;
}

.hero .actions { margin-top: 28px; }

.hero-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 640px) {
  .hero-brandline { font-size: 44px; }
}

@media (min-width: 960px) {
  .hero { padding-block: 80px 96px; }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 56px;
  }

  .hero-brandline { font-size: 52px; }
}

/* 申込の流れ（ヒーローの図） */
.flow-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.flow-caption {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.flow-steps {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 20px;
}

.flow-step:last-child { padding-bottom: 0; }

.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 4px;
  left: 21px;
  width: 2px;
  background: var(--border);
}

.flow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--heading);
}

.flow-icon svg { width: 22px; height: 22px; }

.flow-title {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.5;
}

.flow-text {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.7;
}

/* ヒーローの下に置く申込の流れ。広い画面では横に並べる */
.section-tight { padding-block: 40px; }

@media (min-width: 960px) {
  .section-tight { padding-block: 56px; }

  .flow-card-wide .flow-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .flow-card-wide .flow-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 0;
  }

  .flow-card-wide .flow-step:not(:last-child)::before {
    top: 21px;
    right: -20px;
    bottom: auto;
    left: 56px;
    width: auto;
    height: 2px;
  }
}

/* アプリの画面の画像（2026-10-22。表示しているデータは架空） */
.browser-frame,
.screen-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 18px 40px -20px rgb(15 23 42 / 35%);
}

.browser-frame::before {
  content: "";
  display: block;
  height: 26px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 16px 13px, #cbd5e1 4px, transparent 4.5px),
    radial-gradient(circle at 30px 13px, #cbd5e1 4px, transparent 4.5px),
    radial-gradient(circle at 44px 13px, #cbd5e1 4px, transparent 4.5px),
    #f1f5f9;
}

.browser-frame img,
.screen-frame img,
.phone-frame img {
  width: 100%;
  height: auto;
}

.phone-frame {
  overflow: hidden;
  width: 100%;
  border: 6px solid var(--heading);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 18px 40px -16px rgb(15 23 42 / 45%);
}

.hero-visual {
  position: relative;
  padding-bottom: 16%;
}

.hero-phone {
  position: absolute;
  top: 30%;
  right: 0;
  width: 27%;
  max-width: 190px;
  border-width: 4px;
  border-radius: 20px;
}

.screen-note {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 66%;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (min-width: 960px) {
  .hero-phone { right: -16px; }
}

.showcase {
  display: grid;
  gap: 56px;
}

.showcase-row {
  display: grid;
  gap: 28px;
  align-items: center;
}

.showcase-step {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.showcase-text h3 {
  margin-top: 6px;
  font-size: 24px;
}

.showcase-text > p:not(.showcase-step) { margin-top: 12px; }

.showcase-text .check-list { margin-top: 18px; }

.media-stack {
  display: grid;
  gap: 16px;
}

.showcase-media.is-phone,
.feature-figure.is-phone {
  display: flex;
  justify-content: center;
}

.showcase-media.is-phone .phone-frame,
.feature-figure.is-phone .phone-frame { max-width: 260px; }

.feature-figure {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 820px;
}

@media (min-width: 900px) {
  .feature-figure.is-wide { max-width: none; }

  .media-stack.is-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 960px) {
  .showcase { gap: 88px; }

  .showcase-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }

  .showcase-row.is-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

  .showcase-row.is-reverse .showcase-text { order: 2; }

  .showcase-text h3 { font-size: 28px; }
}

/* カード */
.card-grid {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

@media (min-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.card h3 { font-size: 19px; }

.card p { margin-top: 10px; }

.card .card-examples {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.card-compact h3 { font-size: 17px; }

.card-compact p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
}

/* 狭い画面ではアイコンを左に置き、縦の長さを抑える */
@media (max-width: 639px) {
  .card-compact {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px;
  }

  .card-compact .icon-badge {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .card-compact h3,
  .card-compact p { grid-column: 2; }

  .card-compact h3 { align-self: center; }
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--secondary);
  color: var(--heading);
}

.icon-badge svg { width: 24px; height: 24px; }

/* 3ステップ */
.steps {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--heading);
  color: #ffffff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* チェック付きの一覧 */
.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23F0FDFA'/%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23142D3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.plain-list {
  display: grid;
  gap: 8px;
  padding-left: 1.4em;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

/* 料金 */
.price-card {
  display: grid;
  gap: 24px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

@media (min-width: 768px) {
  .price-card { padding: 36px; }
  .price-card-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 40px; }
}

.plan-name {
  color: var(--heading);
  font-size: 20px;
  font-weight: 700;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin-top: 6px;
  color: var(--heading);
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.price-unit {
  font-size: 16px;
  font-weight: 700;
}

.price-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.price-note + .check-list { margin-top: 18px; }

.trial-box {
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--secondary);
}

.trial-box h3,
.trial-box .trial-title {
  color: var(--heading);
  font-size: 17px;
  font-weight: 700;
}

.trial-box p { margin-top: 6px; }

.trial-box .check-list { margin-top: 12px; }

.trial-box .check-list + p { margin-top: 16px; }

.trial-box .actions { margin-top: 18px; }

.trial-box .check-list li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23FFFFFF'/%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23142D3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.pricing-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 960px) {
  .pricing-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; }
}

.feature-columns { display: grid; gap: 10px 32px; }

@media (min-width: 768px) {
  .feature-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* よくある質問 */
.faq-list { border-bottom: 1px solid var(--border); }

.faq-item {
  padding-block: 22px;
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 18px;
  line-height: 1.5;
}

.faq-item p { margin-top: 8px; }

.faq-group + .faq-group { margin-top: 48px; }

.faq-group h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

@media (min-width: 1024px) {
  .faq-group h2 { font-size: 24px; }
}

.content-narrow { max-width: 820px; }

/* 機能ページ */
.toc {
  margin-top: 28px;
}

.toc-title {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.feature-list {
  display: grid;
  gap: 24px;
}

.feature-block {
  display: grid;
  gap: 20px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  scroll-margin-top: 16px;
}

.feature-block h2 { font-size: 23px; }

.feature-block .section-lead { margin-top: 10px; font-size: 16px; }

.feature-block .icon-badge { margin-bottom: 14px; }

@media (min-width: 900px) {
  .feature-block {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    padding: 36px;
  }

  .feature-block h2 { font-size: 26px; }
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--page);
  color: var(--heading);
  font-size: 14px;
}

.sub-title {
  color: var(--heading);
  font-size: 16px;
  font-weight: 700;
}

.sub-title + .tag-list,
.sub-title + .check-list,
.sub-title + .plain-list { margin-top: 10px; }

.block-gap > * + * { margin-top: 20px; }

.callout {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--page);
  font-size: 15px;
}

/* 用途のページ・ガイド */
.breadcrumb { margin-bottom: 8px; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.breadcrumb li + li::before { content: "/"; }

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

.article-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.prose { max-width: 820px; }

.prose > * + * { margin-top: 16px; }

.prose > h2 { font-size: 24px; }

.prose > h2:not(:first-child) { margin-top: 56px; }

.prose > h3 {
  margin-top: 32px;
  font-size: 18px;
}

.prose > h2 + h3 { margin-top: 20px; }

.prose > h3 + * { margin-top: 8px; }

.prose blockquote {
  margin-inline: 0;
  margin-bottom: 0;
}

.prose blockquote p + p { margin-top: 8px; }

.prose-figure { margin-block: 24px; }

.prose-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.prose-figure.is-phone .phone-frame { max-width: 240px; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.65;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--page);
  color: var(--heading);
  white-space: nowrap;
}

.data-table tbody th { color: var(--heading); }

.data-table tbody tr:last-child > * { border-bottom: 0; }

@media (min-width: 640px) {
  .card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card-grid-2 h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.section-head-gap { margin-top: 56px; }

@media (max-width: 359px) {
  .site-nav a { padding: 0 6px; }
}

/* 最後の案内 */
.cta-band {
  padding-block: var(--section-space);
  border-top: 1px solid var(--border);
  background: var(--secondary);
  text-align: center;
}

.cta-band h2 { font-size: 26px; }

.cta-band p {
  max-width: 36em;
  margin: 12px auto 0;
}

.cta-band .actions {
  justify-content: center;
  margin-top: 28px;
}

@media (min-width: 1024px) {
  .cta-band h2 { font-size: 32px; }
}

/* 404 */
.not-found { padding-block: 72px 96px; }

.not-found h1 { font-size: 30px; }

.not-found p { margin-top: 12px; }

.not-found .link-list {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

/* フッター */
.site-footer {
  padding-block: 48px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px 16px;
}

.footer-brand,
.footer-contact { grid-column: 1 / -1; }

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 32px;
  }

  .footer-brand,
  .footer-contact { grid-column: auto; }
}

.footer-brand img { width: 140px; height: auto; }

.footer-brand p {
  margin-top: 10px;
  color: var(--muted);
}

.footer-title {
  color: var(--heading);
  font-weight: 700;
}

.footer-links {
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--body);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-contact p { margin-top: 4px; }

.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.copyright {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .header-login,
  .site-nav a,
  .toc a,
  .footer-links a { transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
}

.screen-note-inline {
  color: var(--muted);
  font-size: 14px;
}
