/* SmartPlate Ticket LP — 自治体・交通事業者の担当者が、稟議に使える情報を迷わず読める構成。2026-11 作り直し */

:root {
  --ink: #11244d;
  --ink-mid: #34486b;
  --muted: #52627f;
  --blue: #1f4fd6;
  --blue-dark: #163fa8;
  --navy: #14306b;
  --amber: #f5a623;
  --tile: #e8f1fa;
  --tint: #f1f6fd;
  --surface: #ffffff;
  --line: #d8e3f3;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 64px;
  --shadow: 0 12px 30px rgb(17 36 77 / 8%);
  --wrap: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.4; letter-spacing: 0.01em; word-break: auto-phrase; text-wrap: balance; }
p, li, dd, dt, summary { word-break: auto-phrase; text-wrap: pretty; }
p, ul, ol, figure { margin: 0; padding: 0; }
li { list-style: none; }

.wrap { width: var(--wrap); margin-inline: auto; }
.wrap--narrow { width: min(820px, calc(100% - 2.5rem)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgb(31 79 214 / 28%); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: #fff; color: var(--blue-dark); border-color: var(--blue); }
.btn-secondary:hover { background: var(--tint); }
.btn-on-dark { background: #fff; color: var(--navy); }
.btn-on-dark:hover { background: var(--tint); }
.btn-sm { min-height: 40px; padding: 0.4rem 1.1rem; font-size: 0.875rem; }
.btn-lg { min-height: 56px; padding: 0.9rem 2rem; font-size: 1.0625rem; }
.link-doc { font-weight: 700; color: var(--blue-dark); white-space: nowrap; }
.link-doc--on-dark { color: #fff; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 94%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a { color: var(--ink-mid); font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--blue); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--tint); cursor: pointer; }
.menu-bar, .menu-bar::before, .menu-bar::after { display: block; width: 20px; height: 2px; margin-inline: auto; background: var(--ink); border-radius: 2px; }
.menu-bar { position: relative; }
.menu-bar::before, .menu-bar::after { content: ""; position: absolute; left: 0; }
.menu-bar::before { top: -6px; }
.menu-bar::after { top: 6px; }
.mobile-nav { display: none; }

/* ヒーロー */
.hero { padding: 3.5rem 0 3rem; background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 1rem; padding: 0.2rem 0.9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--blue-dark); font-size: 0.875rem; font-weight: 700; }
.hero h1 { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.5rem); font-weight: 800; line-height: 1.35; color: var(--navy); }
.lead { margin-top: 1.25rem; font-size: 1.0625rem; color: var(--ink-mid); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.chips li { padding: 0.25rem 0.9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--ink-mid); }
.hero-visual { border-radius: var(--radius-lg); background: var(--tile); overflow: hidden; box-shadow: var(--shadow); }
.hero-visual img { width: 100%; }

.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; margin-top: 2.5rem; padding: 1.25rem 2rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat { display: flex; align-items: baseline; gap: 0.75rem; }
.stat strong { font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--blue); }
.stat span { font-size: 0.9375rem; font-weight: 700; color: var(--ink-mid); }
.stat-note { margin-left: auto; font-size: 0.8125rem; color: var(--muted); }

/* セクション */
.section { padding: 5rem 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.kicker { margin-bottom: 0.6rem; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; color: var(--blue); }
.section-head h2, .cost h2, .final h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); font-weight: 800; color: var(--navy); }
.section-lead { margin-top: 0.9rem; color: var(--ink-mid); }
.subhead { margin: 3rem 0 1.25rem; font-size: 1.1875rem; font-weight: 800; color: var(--navy); text-align: center; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tile { background: var(--tile); border-radius: var(--radius); overflow: hidden; }
.tile img { width: 100%; }
.tile-card { padding: 1rem 1rem 1.5rem; }
.tile-card .tile { aspect-ratio: 1 / 1; max-height: 260px; margin-bottom: 1.1rem; display: grid; place-items: center; }
.tile-card .tile img { width: auto; max-width: 100%; max-height: 100%; }
.tile-card h3 { font-size: 1.0625rem; font-weight: 800; color: var(--navy); padding-inline: 0.5rem; }
.tile-card p { margin-top: 0.5rem; padding-inline: 0.5rem; font-size: 0.9375rem; color: var(--ink-mid); }
.aside-note { margin: 2rem auto 0; max-width: 46rem; padding: 0.9rem 1.25rem; border-radius: var(--radius); background: var(--tint); font-size: 0.9375rem; color: var(--ink-mid); }
.aside-note--center { text-align: center; background: transparent; }
.note { margin: 1.5rem auto 0; max-width: 46rem; font-size: 0.8125rem; color: var(--muted); text-align: center; }

.usecase { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.usecase img { width: 72px; height: 72px; flex: none; border-radius: 16px; }
.usecase strong { display: block; margin-bottom: 0.25rem; color: var(--navy); }
.usecase p { font-size: 0.9375rem; color: var(--ink-mid); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: s; }
.step h3 { display: flex; align-items: center; gap: 0.5rem; }
.step .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 0.875rem; font-weight: 800; }
.support { padding: 1.25rem; text-align: center; box-shadow: none; }
.support img { width: 72px; height: 72px; margin: 0 auto 0.75rem; border-radius: 16px; }
.support strong { display: block; color: var(--navy); }
.support p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-mid); }

/* 費用 */
.cost { padding: 2.5rem; border: 2px solid var(--blue); }
.cost h2 { margin-bottom: 1.25rem; }
.check-list { display: grid; gap: 0.75rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--ink-mid); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4fd6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.7rem no-repeat; }
.cost-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.75rem; }
.cost-actions .link-doc { display: inline-flex; align-items: center; min-height: 44px; }

/* 事例 */
.case-card { display: block; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.case-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgb(17 36 77 / 14%); }
.tile--wide { border-radius: 0; }
.case-body { padding: 1.5rem; }
.case-body .tag { display: inline-block; margin-bottom: 0.5rem; padding: 0.1rem 0.7rem; border-radius: 999px; background: #fff4de; color: #9a5b00; font-size: 0.8125rem; font-weight: 700; }
.case-body h3 { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.case-body p { margin-top: 0.4rem; color: var(--ink-mid); font-size: 0.9375rem; }
.case-body .case-point { font-weight: 700; color: var(--ink); }
.more { display: inline-block; margin-top: 0.9rem; font-weight: 700; color: var(--blue-dark); }
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; margin-top: 2.5rem; padding: 1.5rem 2rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.band p { font-weight: 700; color: var(--navy); }
.band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

/* FAQ */
.faq { display: grid; gap: 0.75rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { position: relative; padding: 1.1rem 3.25rem 1.1rem 1.4rem; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 1.4rem; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-answer { padding: 0 1.4rem 1.3rem; color: var(--ink-mid); font-size: 0.9688rem; }
.faq-answer p + p, .faq-answer ul, .faq-answer p + ul { margin-top: 0.6rem; }
.faq-answer ul li { position: relative; padding-left: 1.1rem; }
.faq-answer ul li::before { content: ""; position: absolute; left: 0.2rem; top: 0.75em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

/* 最終CTA・フッター */
.final { padding: 4rem 0; background: var(--navy); color: #fff; }
.final-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.final h2 { color: #fff; }
.final p { margin-top: 0.5rem; color: #d7e2fb; max-width: 36rem; }
.final-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.site-footer { padding: 2.5rem 0 1.5rem; background: var(--tint); color: var(--ink-mid); font-size: 0.875rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.footer-logo { height: 32px; width: auto; margin-bottom: 0.75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-content: flex-start; }
.footer-links a { color: var(--ink-mid); }
.site-footer small { display: block; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); }

.mobile-bar { display: none; }

/* タブレット */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .header-cta .link-doc { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .mobile-nav { display: none; position: fixed; inset: var(--header-h) 0 0; flex-direction: column; padding: 1rem 1.25rem 2rem; background: #fff; overflow-y: auto; }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav > a { padding: 1rem 0.25rem; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
  .mobile-nav-cta { display: grid; gap: 1rem; margin-top: 1.5rem; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .tile-card .tile { max-height: 220px; }
}

/* スマホ */
@media (max-width: 640px) {
  body { padding-bottom: 76px; font-size: 15px; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 1.75rem 0 2rem; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { gap: 0.75rem; }
  .hero-actions .link-doc { margin-inline: auto; }
  .header-cta .btn { display: none; }
  .stats { padding: 1rem 1.25rem; gap: 0.75rem 1.5rem; }
  .stat strong { font-size: 1.75rem; }
  .stat-note { margin-left: 0; width: 100%; }
  .section-head { text-align: left; margin-bottom: 1.75rem; }
  .grid-2, .grid-4, .steps { grid-template-columns: 1fr; }
  .tile-card .tile { max-height: 200px; }
  .cost { padding: 1.5rem; }
  .cost-actions .btn { width: 100%; }
  .band { padding: 1.25rem; }
  .final-actions .btn { width: 100%; }
  .final-actions .link-doc { margin-inline: auto; }
  .mobile-bar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1.3fr 1fr; gap: 0.5rem; padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 96%); backdrop-filter: blur(8px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.25s; }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 48px; padding-inline: 0.5rem; font-size: 0.875rem; }
}

/* 説明画像（生成イラスト）は 16:9 の 1 枚で見せる */
.tile-card .tile.tile-art { aspect-ratio: 16 / 9; max-height: none; display: block; padding: 0; }
.tile-card .tile.tile-art img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; display: block; }
