/*
 * 消防点検手帳 LP（lp.shobotenken-techo.jp）の見た目。
 * 色・角丸・文字の大きさは docs/design.md と packages/ui/tailwind-preset.cjs、apps/shobo/src/app/globals.css（紺鼠のアクセント）に合わせる。
 * グラデーション・ガラス風・大きな角丸（16px以上）・光る影は使わない。
 */
:root {
  --accent: #3b4e7a;
  --accent-soft: #e7ebf4;
  --accent-ink: #2a3a5f;
  --ink: #1c2026;
  --ink-muted: #4b5361;
  --ink-faint: #666e7b;
  --paper: #ffffff;
  --paper-sunk: #f3f4f6;
  --paper-line: #dfe2e7;
  --paper-edge: #c3c8d0;
  --paper-canvas: #eef0f3;
  --ok: #18663b;
  --warn: #8a5000;
  --warn-soft: #fdf0d8;
  --radius: 6px;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  /* 外部の書体は読み込まない（外部への通信をなくす）。端末の書体だけを使う */
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  line-break: strict;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.4;
  margin: 0;
  /* 見出しは言葉の切れ目で折り返す（対応しないブラウザは <wbr> の位置で折る） */
  word-break: auto-phrase;
  text-wrap: balance;
}
p,
li,
figcaption,
summary {
  /* 最後の行が1〜2文字だけになるのを避ける */
  text-wrap: pretty;
}
h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h2 {
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 700;
}
h3 {
  font-size: 19px;
  font-weight: 600;
}
p {
  margin: 0;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .wrap {
    padding: 0 32px;
  }
}
.muted {
  color: var(--ink-muted);
}
.small {
  font-size: 16px;
}

/* 上の帯 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}
.brand img {
  width: 32px;
  height: 32px;
}
.header-nav {
  display: none;
  gap: 20px;
  font-size: 16px;
}
.header-nav a {
  color: var(--ink-muted);
  text-decoration: none;
}
.header-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}
@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }
}

/* ボタン（高さ44px以上） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.3;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-ink);
  color: #fff;
}
.btn-secondary {
  background: var(--paper);
  color: var(--accent-ink);
  border-color: var(--paper-edge);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-small {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 16px;
}

/* 最初の画面 */
.hero {
  padding: 40px 0 48px;
  background: var(--paper-canvas);
  border-bottom: 1px solid var(--paper-line);
}
.kicker {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.hero-lead {
  margin-top: 18px;
  font-size: 17px;
  max-width: 44em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.assurances {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 16px;
}
.assurances li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.assurances svg {
  color: var(--ok);
  flex-shrink: 0;
}
.hero-shot {
  margin: 32px 0 0;
}

/* 画面の写し */
.shot {
  margin: 0;
}
.shot img {
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(28, 32, 38, 0.06);
}
.shot figcaption {
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink-muted);
}
.shot-phone img {
  max-width: 300px;
  margin: 0 auto;
}
.shot-phone figcaption {
  text-align: center;
}

/* 章 */
.section {
  padding: 56px 0;
}
.section-sunk {
  background: var(--paper-sunk);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.section-lead {
  margin-top: 12px;
  max-width: 46em;
  color: var(--ink-muted);
  font-size: 17px;
}

/* 困りごと */
.flow {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
}
.flow li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flow span.step {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 600;
}
.flow span.key {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.flow small {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 16px;
}
.flow .arrow {
  color: var(--ink-faint);
}
.flow .arrow-narrow {
  display: none;
}
/* スマホでは流れを縦に並べ、矢印を下向きにする */
@media (max-width: 639px) {
  .flow {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .flow li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .flow .arrow {
    padding-left: 18px;
    line-height: 1.2;
  }
  .flow .arrow-wide {
    display: none;
  }
  .flow .arrow-narrow {
    display: inline;
  }
}
.problems {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 860px) {
  .problems {
    grid-template-columns: 1fr 1fr;
  }
}
.problems li {
  border: 1px solid var(--paper-line);
  border-left: 4px solid var(--warn);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--paper);
}
.problems .src {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: var(--ink-muted);
}

/* できること */
.feature {
  display: grid;
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--paper-line);
}
.feature:first-of-type {
  border-top: 0;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: 5fr 7fr;
    align-items: start;
    gap: 40px;
  }
  .feature.phone {
    grid-template-columns: 7fr 5fr;
  }
}
.feature-num {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: 6px;
}
.feature p {
  margin-top: 10px;
}
.points {
  margin: 14px 0 0;
  padding-left: 1.3em;
  display: grid;
  gap: 6px;
}
.cards {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
@media (min-width: 700px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
.card {
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--paper);
}
.card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.card p {
  margin-top: 4px;
  font-size: 16px;
  color: var(--ink-muted);
}
.note {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-muted);
}

/* 作らないもの */
.not-included {
  margin: 16px 0 0;
  padding-left: 1.3em;
  display: grid;
  gap: 6px;
}

/* 料金 */
.price-table-wrap {
  margin-top: 28px;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.price-table th,
.price-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--paper-line);
  text-align: left;
  vertical-align: middle;
}
.price-table thead th {
  background: var(--paper-sunk);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-muted);
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}
.price-table .num {
  text-align: right;
}
.price-table .yen {
  white-space: nowrap;
}
.price-table .yen {
  display: block;
  font-size: 20px;
  font-weight: 700;
}
.price-table .yen-sub {
  font-size: 18px;
}
.price-tax {
  margin-top: 24px;
  font-size: 16px;
  color: var(--ink-muted);
}
.price-tax + .price-table-wrap {
  margin-top: 8px;
}
.price-table .per {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-muted);
}
@media (min-width: 640px) {
  .price-table th,
  .price-table td {
    padding: 14px 20px;
  }
}
.price-notes {
  margin: 16px 0 0;
  padding-left: 1.3em;
  display: grid;
  gap: 4px;
  font-size: 16px;
}
.price-extra {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}
@media (min-width: 860px) {
  .price-extra {
    grid-template-columns: 1fr 1fr;
  }
}

/* 始め方 */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.steps li {
  counter-increment: step;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--paper);
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}
.steps h3 {
  font-size: 17px;
}
.steps p {
  margin-top: 6px;
  font-size: 16px;
  color: var(--ink-muted);
}
.trial-box {
  margin-top: 28px;
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px;
  display: grid;
  gap: 16px;
}
@media (min-width: 860px) {
  .trial-box {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.trial-box ul {
  margin: 8px 0 0;
  padding-left: 1.3em;
}

/* よくある質問 */
.faq {
  margin-top: 24px;
  border-top: 1px solid var(--paper-line);
}
.faq details {
  border-bottom: 1px solid var(--paper-line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  position: relative;
  font-weight: 600;
  min-height: 44px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg);
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 28px;
}
.faq details p {
  padding: 0 0 16px;
  color: var(--ink);
}

/* 申込の帯 */
.cta-band {
  padding: 48px 0;
  background: var(--accent-soft);
  border-top: 1px solid var(--paper-line);
}
.cta-band p.lead {
  margin-top: 10px;
  max-width: 44em;
}

/* 足元 */
.site-footer {
  padding: 40px 0 48px;
  background: var(--paper-sunk);
  border-top: 1px solid var(--paper-line);
  font-size: 16px;
}
.footer-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.site-footer h2 {
  font-size: 17px;
}
.site-footer ul,
.site-footer ol {
  margin: 10px 0 0;
  padding-left: 1.3em;
  display: grid;
  gap: 4px;
}
.site-footer ul.plain {
  list-style: none;
  padding-left: 0;
}
.site-footer p {
  margin-top: 8px;
}
.official-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-line);
  color: var(--ink-muted);
}

/* 画像のない機能の段は、横いっぱいに使う */
@media (min-width: 900px) {
  .feature.feature-wide {
    grid-template-columns: 1fr;
  }
  .feature-wide .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
.price-table-wrap {
  max-width: 760px;
}
@media (max-width: 400px) {
  .price-table th,
  .price-table td {
    padding: 12px 8px;
  }
  .price-table .yen {
    font-size: 18px;
  }
  .price-table .yen-sub {
    font-size: 17px;
  }
}
.pricing-cta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.src-inline {
  margin-left: 0.5em;
  font-size: 16px;
  color: var(--ink-muted);
}
.faq-more {
  margin-top: 16px;
  color: var(--ink-muted);
}
.card p + p {
  margin-top: 8px;
}
.hero-shot picture {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.nw {
  white-space: nowrap;
}
