/* ============================================================
   ゲンバノ 外販LP — style.css
   ビジュアルID: 現場黒板（kokuban）
   設計正本: genbano-lp/docs/design_lp.md v0.2
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, dl, dt, dd, figure, table, th, td {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; }

/* ---------- Tokens ---------- */
:root {
  /* palette v0.3（設計書§4・ゲンバノ本体 globals.css「ゲンバ・ソリッド」＋「現場ハイビズ」準拠） */
  --kokuban: #20443A;          /* 黒板（シグネチャー・維持） */
  --chalk: #F7FAF9;            /* チョーク白（クリーム→クール白へ） */
  --base: #F1F5F9;             /* ページ背景 = 本体アプリの--bg */
  --surface: #FFFFFF;          /* カード面 = 本体の--surface */
  --sumi: #0F172A;             /* 本文 = 本体の--fg */
  --anzen: #FACC15;            /* CTA = 本体「現場ハイビズ」テーマの安全黄 */
  --akaji: #DC2626;            /* 赤字 = 本体の--danger */
  --kuroji: #15803D;           /* 黒字・プラス値 = 本体の--ok系 */
  --tekkotsu: #94A3B8;         /* 罫線・境界（スレート） */
  --tekkotsu-text: #566575;    /* 小さめテキスト用（コントラスト確保） */

  /* type（body = 業務アプリ実物に合わせNoto Sans JP） */
  --f-display: "M PLUS 1p", sans-serif;
  --f-chalk: "Yusei Magic", cursive;
  --f-body: "Noto Sans JP", sans-serif;
  --f-mono: "IBM Plex Mono", monospace;

  --max-w: 1080px;
  --gap-section: clamp(64px, 9vw, 112px);

  --motion-fast: 0.4s;
  --motion-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}
body {
  background: var(--base);
  color: var(--sumi);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--anzen);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Headings ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.4;
  color: var(--sumi);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  max-width: 22ch;
}

.eyebrow {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--tekkotsu-text);
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* 黒板チップ: ヒーローを除き §2「困りごと」§6「料金」の2箇所のみ */
.chip {
  display: inline-block;
  font-family: var(--f-chalk);
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 7px 18px 9px;
  border-radius: 3px;
  margin-bottom: 18px;
}
.chip-kokuban {
  background: var(--kokuban);
  color: var(--chalk);
}

.section-lead {
  font-size: 16px;
  color: #475569;
  max-width: 58ch;
  margin-bottom: 8px;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--gap-section);
  border-bottom: 1px solid #E2E8F0;
}
.section-alt {
  background: #F8FAFC;
}
.section:last-of-type {
  border-bottom: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--base);
  border-bottom: 1px solid #E2E8F0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.logo {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--kokuban);
  letter-spacing: 0.02em;
}
.header-cta {
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 500;
  text-align: center;
  border-radius: 4px;
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}
.btn-cta {
  background: var(--anzen);
  color: var(--sumi);
  font-weight: 700;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(28, 30, 28, 0.18);
}
.btn-large {
  padding: 16px 36px;
  font-size: 17px;
}
.btn-small {
  padding: 9px 18px;
  font-size: 14px;
}

/* ============================================================
   1. ヒーロー（現場黒板・シグネチャー）
   ============================================================ */
.hero {
  background: var(--base);
  padding-block: clamp(28px, 6vw, 56px) var(--gap-section);
  border-bottom: none;
}

.kokuban-board {
  background: var(--kokuban);
  border-radius: 10px;
  padding: clamp(20px, 5vw, 28px);
  box-shadow: 0 18px 40px rgba(32, 68, 58, 0.22);
}

.board-frame {
  border: 3px solid rgba(244, 242, 233, 0.55);
  border-radius: 6px;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px);
}

/* 「工事名／日付」欄 */
.board-slate {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(244, 242, 233, 0.4);
}
.slate-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--f-chalk);
  color: var(--chalk);
}
.slate-label {
  font-size: 13px;
  opacity: 0.72;
}
.slate-value {
  font-size: 16px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--kokuban);
  background: var(--chalk);
  padding: 5px 14px;
  border-radius: 999px;
}

.hero-h1 {
  position: relative;
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(28px, 5.2vw, 46px);
  line-height: 1.45;
  color: var(--chalk);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.nowrap {
  white-space: nowrap;
}

.underline-svg {
  display: block;
  width: 100%;
  max-width: 620px;
  height: 18px;
  margin-top: 6px;
  overflow: visible;
}
.underline-svg path {
  fill: none;
  stroke: var(--anzen);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0; /* 未描画時はlinecap:roundの点アーティファクトを完全に隠す */
  transition: stroke-dashoffset 0.8s var(--motion-ease), opacity 0.1s linear;
}
.chalk-underline.drawn .underline-svg path {
  stroke-dashoffset: 0;
  opacity: 1;
}

.hero-lead {
  font-family: var(--f-body);
  font-size: 17px;
  color: rgba(244, 242, 233, 0.88);
  margin-bottom: 34px;
  max-width: 46ch;
}
.br-pc { display: inline; }

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ============================================================
   2. こんなお悩みありませんか
   ============================================================ */
.pain-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.pain-card {
  background: var(--base);
  border: 1px solid #E2E8F0;
  border-left: 4px solid var(--tekkotsu);
  border-radius: 4px;
  padding: 22px 24px;
  font-size: 16px;
  color: var(--sumi);
}

/* ============================================================
   3. ゲンバノができること
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
}
.feature-card {
  background: var(--base);
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 26px 24px;
}
.feature-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--kokuban);
  border: 1px solid var(--kokuban);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--sumi);
}
.feature-card p {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.7;
}

/* ============================================================
   4. 画面イメージ（UIモック）
   ============================================================ */
.mock-window {
  background: var(--base);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(28, 30, 28, 0.08);
  margin-top: 8px;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #E2E8F0;
  padding: 12px 18px;
  border-bottom: 1px solid #E2E8F0;
}
.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tekkotsu);
  opacity: 0.55;
}
.mock-title {
  margin-left: 8px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--tekkotsu-text);
}

.mock-table {
  font-size: 15px;
}
.mock-table th,
.mock-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid #E2E8F0;
}
.mock-table thead th {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--tekkotsu-text);
  text-transform: uppercase;
  border-bottom: 2px solid #E2E8F0;
}
.mock-th-amount,
.mock-amount {
  text-align: right;
}
.mock-status {
  display: inline-block;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--tekkotsu-text);
  border: 1px solid var(--tekkotsu);
  border-radius: 3px;
  padding: 2px 8px;
}
.mock-amount {
  font-family: var(--f-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 15.5px;
}
.mock-amount-black { color: var(--kuroji); }
.mock-amount-red { color: var(--akaji); }

/* ============================================================
   6. 料金
   ============================================================ */
.price-table {
  margin-top: 8px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--base);
}
.price-row {
  padding: 24px 28px;
  border-bottom: 1px solid #E2E8F0;
}
.price-row:last-child {
  border-bottom: none;
}
.price-row p {
  font-size: 15.5px;
  color: #475569;
}
.price-row p strong {
  color: var(--sumi);
}
.price-row-main {
  background: #F8FAFC;
}
.price-headline {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 30px) !important;
  color: var(--sumi) !important;
  margin-bottom: 6px !important;
}
.price-value {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  color: var(--kokuban);
}
.price-note {
  font-size: 14px !important;
  color: var(--tekkotsu-text) !important;
}
.price-placeholder {
  display: inline-block;
  margin-left: 4px;
}
.price-row-highlight {
  background: var(--base);
}
.price-highlight-text {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(17px, 2.2vw, 21px) !important;
  color: var(--sumi) !important;
}
.hl-anzen {
  box-shadow: inset 0 -10px 0 rgba(245, 184, 12, 0.55);
}
.price-final-note {
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--tekkotsu-text);
}

/* ============================================================
   7. 導入の流れ
   ============================================================ */
.flow-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.flow-step {
  display: flex;
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid #CBD5E1;
}
.flow-step:last-child {
  border-bottom: none;
}
.flow-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kokuban);
  color: var(--chalk);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 15px;
  border-radius: 4px;
}
.flow-step h3 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 17px;
  margin-bottom: 4px;
  color: var(--sumi);
}
.flow-step p {
  font-size: 14.5px;
  color: #475569;
}

/* ============================================================
   8. 注意事項
   ============================================================ */
.notes-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.notes-list li {
  position: relative;
  padding: 16px 20px 16px 44px;
  background: var(--base);
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 15px;
  color: #475569;
}
.notes-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--anzen);
}
.notes-list li strong {
  color: var(--sumi);
  font-weight: 500;
}

.details-block {
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: var(--base);
  padding: 4px 22px;
}
.details-block summary,
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15.5px;
  color: var(--kokuban);
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.details-block summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker { display: none; }
.details-block summary::after,
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--tekkotsu-text);
  transition: transform var(--motion-fast) var(--motion-ease);
}
.details-block[open] summary::after,
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.details-body {
  padding-bottom: 22px;
}
.details-body h3 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 15px;
  margin-top: 22px;
  margin-bottom: 10px;
  color: var(--sumi);
}
.details-body h3:first-child { margin-top: 0; }
.details-body p {
  font-size: 14px;
  color: #475569;
  margin-bottom: 10px;
}
.detail-small {
  font-size: 12.5px !important;
  color: var(--tekkotsu-text) !important;
}
.detail-table {
  font-size: 13.5px;
  margin-bottom: 12px;
}
.detail-table th,
.detail-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #E2E8F0;
}
.detail-table th {
  color: var(--tekkotsu-text);
  font-weight: 500;
  font-size: 12px;
}
.detail-list {
  margin: 6px 0 12px 1.3em;
  font-size: 14px;
  color: #475569;
}
.detail-list li {
  margin-bottom: 6px;
}

/* ---------- デモ環境 ---------- */
.demo-box {
  max-width: 640px;
  background: var(--surface);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 22px;
}
.demo-table { margin-bottom: 16px; }
.demo-mono {
  font-family: var(--f-mono);
  font-size: 13px;
}
.btn-demo {
  background: var(--kokuban);
  color: var(--chalk);
  font-weight: 700;
  display: block;
  text-align: center;
}
.btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(32, 68, 58, 0.25);
}
.demo-note {
  font-size: 12.5px;
  color: var(--tekkotsu-text);
  margin-top: 10px;
}

/* ---------- お問い合わせフォーム ---------- */
.contact-form {
  max-width: 560px;
  margin-inline: auto;
  margin-top: 20px;
  text-align: left;
  background: var(--surface);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
}
.form-row {
  margin-bottom: 16px;
}
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--sumi);
}
.form-row .req {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--akaji);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: 1px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--sumi);
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  padding: 12px;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--anzen);
  outline-offset: 1px;
  border-color: var(--anzen);
  background: #fff;
}
.contact-form .btn {
  width: 100%;
  border: none;
  cursor: pointer;
}
.form-note {
  font-size: 12.5px;
  color: var(--tekkotsu-text);
  margin-top: 10px;
  text-align: center;
}

/* ============================================================
   9. FAQ
   ============================================================ */
.faq-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: var(--base);
  padding: 4px 22px;
}
.faq-item p {
  font-size: 14.5px;
  color: #475569;
  padding-bottom: 20px;
}

/* ============================================================
   10. 開発・運営
   ============================================================ */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--kokuban);
  border-bottom: 1px solid var(--kokuban);
  padding-bottom: 2px;
}
.link-arrow::after {
  content: "→";
}

/* ============================================================
   11. お問い合わせ
   ============================================================ */
.contact-section {
  text-align: center;
}
.contact-section .h2 {
  margin-inline: auto;
}
.contact-section .section-lead {
  margin-inline: auto;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--kokuban);
  color: var(--chalk);
  padding-block: 28px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-logo {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 16px;
}
.footer-credit {
  font-size: 13px;
  color: rgba(244, 242, 233, 0.75);
}
.footer-credit a {
  color: var(--chalk);
  border-bottom: 1px solid rgba(244, 242, 233, 0.5);
}

/* ============================================================
   モーション（reveal）
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .underline-svg path {
    stroke-dashoffset: 0;
    opacity: 1;
    transition: none;
  }
  .btn-cta:hover {
    transform: none;
  }
}

/* ============================================================
   レスポンシブ（375px〜）
   ============================================================ */
@media (max-width: 860px) {
  .pain-list,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .board-frame { padding: 30px 20px; }
  .hero-lead { max-width: none; }
  .br-pc { display: none; }
  .header-cta .btn-small { padding: 8px 14px; }
  .mock-table { font-size: 13.5px; }
  .mock-table th, .mock-table td { padding: 10px 8px; }
  .mock-status { font-size: 11.5px; padding: 2px 6px; }
  .flow-step { gap: 14px; }
}

@media (max-width: 400px) {
  .kokuban-board { padding: 14px; border-radius: 8px; }
  .board-frame { padding: 24px 16px; }
  .mock-table { font-size: 12.5px; }
  .mock-table th, .mock-table td { padding: 8px 6px; }
  .mock-amount { font-size: 13.5px; }
}
