/* リノミル LP — 静的・依存ゼロ。ブランドパレットは 13-naming-brand.md §7 (アプリ main.css 継承) */

:root {
  --lp-primary: #1F4068;   /* 図面紺 = CTA・リンク・進捗 */
  --lp-primary-dark: #16304f;
  --lp-accent:  #B84A1F;   /* 工事テープの赤橙 = 見出し帯・番号 (構造的アクセント) */
  --lp-text:    #1A1A1A;   /* 墨 */
  --lp-text-soft: #4A4A48; /* 薄墨 */
  --lp-bg:      #FAFAF6;   /* 生成りの紙 */
  --lp-bg-alt:  #F1EFE8;   /* セクション交互背景 */
  --lp-rule:    #D8D6CF;
  --lp-rule-soft: #ECEAE3;
  --lp-white:   #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--lp-text);
  background: var(--lp-bg);
  line-height: 1.8;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 250, 246, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--lp-rule);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.06em; }
.brand-sub {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em;
  color: var(--lp-text-soft); margin-left: 0.6em; vertical-align: 0.18em;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  border-radius: 6px; font-weight: 700; line-height: 1.4;
  padding: 0.8em 1.6em; transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--lp-primary); color: var(--lp-white); border: 2px solid var(--lp-primary); }
.btn-secondary { background: var(--lp-white); color: var(--lp-primary); border: 2px solid var(--lp-primary); }
.btn-header { padding: 0.5em 1.2em; font-size: 0.9rem; }
.btn-large { font-size: 1.1rem; padding: 1em 2.2em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta-row-center { justify-content: center; }

/* ---------- ヒーロー ---------- */
.hero { padding: 108px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-tagline {
  display: inline-block; color: var(--lp-accent); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.1em;
  border-left: 4px solid var(--lp-accent); padding-left: 10px; margin-bottom: 14px;
}
h1 { font-size: 1.7rem; line-height: 1.5; letter-spacing: 0.01em; }
.hero-sub { margin-top: 16px; color: var(--lp-text-soft); }
.hero-note { margin-top: 14px; font-size: 0.78rem; color: var(--lp-text-soft); }

/* Before/After スライダー */
.ba-slider {
  position: relative; aspect-ratio: 886 / 665; overflow: hidden;
  border-radius: 8px; border: 1px solid var(--lp-rule);
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; touch-action: pan-y; /* pan-y: モバイルの縦スクロールを殺さない */
  z-index: 3;
}
.ba-label {
  position: absolute; top: 10px; z-index: 2;
  font-size: 0.72rem; font-weight: 700; color: var(--lp-white);
  background: rgba(26, 26, 26, 0.68); border-radius: 4px; padding: 3px 9px;
  pointer-events: none;
}
.ba-label-before { left: 10px; }
.ba-label-after { right: 10px; background: rgba(31, 64, 104, 0.85); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px;
  background: var(--lp-white); box-shadow: 0 0 6px rgba(0,0,0,0.4);
  transform: translateX(-50%); pointer-events: none; z-index: 2;
}
.ba-handle::after {
  content: "⇔"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--lp-white); color: var(--lp-primary);
  font-size: 0.95rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 5px rgba(0,0,0,0.35);
}

/* AI生成・概算の注記 (常時表示) */
.ai-note { margin-top: 8px; font-size: 0.74rem; color: var(--lp-text-soft); }

/* ---------- セクション共通 ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--lp-bg-alt); }
h2 { font-size: 1.45rem; line-height: 1.5; margin-bottom: 36px; }
.h2-num {
  display: inline-block; color: var(--lp-accent); font-size: 0.9rem;
  font-weight: 700; letter-spacing: 0.12em;
  border-bottom: 3px solid var(--lp-accent);
  padding-bottom: 2px; margin-right: 14px; vertical-align: 0.12em;
}

/* ---------- 課題共感 3カード ---------- */
.card-grid { display: grid; gap: 20px; }
.card {
  background: var(--lp-white); border: 1px solid var(--lp-rule);
  border-radius: 8px; padding: 26px 22px;
}
.card-icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--lp-bg-alt); color: var(--lp-accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--lp-text-soft); }

/* ---------- 機能3点 ---------- */
.feature { display: grid; gap: 24px; align-items: start; margin-bottom: 56px; }
.feature:last-child { margin-bottom: 0; }
.feature h3 { font-size: 1.15rem; margin-bottom: 12px; }
.feature-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--lp-accent); color: var(--lp-white);
  font-size: 0.95rem; margin-right: 10px; vertical-align: -0.2em;
}
.feature-text p { color: var(--lp-text-soft); font-size: 0.95rem; }
.feature-text .feature-lead { color: var(--lp-text); font-weight: 700; }
.feature-list { margin-top: 12px; display: grid; gap: 8px; }
.feature-list li {
  list-style: none; position: relative; padding-left: 1.1em;
  color: var(--lp-text-soft); font-size: 0.95rem;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--lp-accent);
}
.feature-note {
  margin-top: 48px; padding: 16px 20px;
  background: var(--lp-bg-alt); border-left: 4px solid var(--lp-accent);
  border-radius: 0 8px 8px 0;
  color: var(--lp-text-soft); font-size: 0.95rem;
}
.feature-note strong { color: var(--lp-text); }

.estimate-sample {
  background: var(--lp-white); border: 1px solid var(--lp-rule);
  border-radius: 8px; padding: 18px 20px;
}
.estimate-sample-title {
  font-size: 0.85rem; font-weight: 700; color: var(--lp-primary); margin-bottom: 8px;
}
.estimate-sample table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.estimate-sample td { padding: 8px 4px; border-bottom: 1px solid var(--lp-rule-soft); }
.estimate-sample td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.estimate-sample .row-total td {
  border-bottom: none; border-top: 2px solid var(--lp-primary); font-weight: 700;
}

.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.ba-pair img { border-radius: 6px; border: 1px solid var(--lp-rule); }
.ba-pair figcaption { font-size: 0.74rem; color: var(--lp-text-soft); margin-top: 4px; }
.ba-pair .cap-after { color: var(--lp-primary); font-weight: 700; }
.ba-pair-small { margin-top: 18px; }

.doc-mock {
  background: var(--lp-white); border: 1px solid var(--lp-rule); border-radius: 4px;
  padding: 18px 20px 22px; max-width: 420px;
  box-shadow: 4px 4px 0 var(--lp-rule-soft);
}
.doc-mock-header {
  font-size: 0.88rem; font-weight: 700; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.doc-mock-header span { font-size: 0.7rem; color: var(--lp-white); background: var(--lp-primary); border-radius: 3px; padding: 2px 8px; }
.doc-mock img { border: 1px solid var(--lp-rule-soft); border-radius: 3px; }
.doc-mock-line { height: 8px; background: var(--lp-rule-soft); border-radius: 4px; margin-top: 12px; }
.doc-mock-line.short { width: 60%; margin-top: 8px; }

/* ---------- デモ 3ステップ ---------- */
.steps { list-style: none; display: grid; gap: 28px; }
.step img { border-radius: 8px; border: 1px solid var(--lp-rule); background: var(--lp-white); }
.step-label { font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--lp-accent); color: var(--lp-white);
  font-size: 0.9rem; margin-right: 10px;
}
.step-cap { font-size: 0.86rem; color: var(--lp-text-soft); margin-top: 8px; }

/* ---------- 料金 ---------- */
.table-wrap { overflow-x: auto; }
.pricing-table {
  width: 100%; min-width: 560px; border-collapse: collapse;
  background: var(--lp-white); border: 1px solid var(--lp-rule);
  font-size: 0.95rem;
}
.pricing-table th, .pricing-table td { padding: 14px 16px; border-bottom: 1px solid var(--lp-rule-soft); text-align: left; }
.pricing-table thead th {
  background: var(--lp-primary); color: var(--lp-white);
  font-size: 0.85rem; letter-spacing: 0.05em;
}
.pricing-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pricing-table .plan-recommended { background: #f4f7fb; }
.pricing-table .plan-recommended td:first-child { font-weight: 700; }
.badge-recommended {
  display: inline-block; margin-left: 8px;
  background: var(--lp-accent); color: var(--lp-white);
  font-size: 0.7rem; font-weight: 700; border-radius: 3px; padding: 2px 8px;
  vertical-align: 0.1em;
}
.pricing-note { margin-top: 14px; font-size: 0.8rem; color: var(--lp-text-soft); }
.pricing-credit { margin-top: 10px; font-size: 0.92rem; }
.pricing-free { margin-top: 10px; padding-left: 1.4em; font-size: 0.92rem; color: var(--lp-text-soft); }

/* ---------- FAQ ---------- */
#faq details {
  background: var(--lp-white); border: 1px solid var(--lp-rule);
  border-radius: 8px; margin-bottom: 12px; overflow: hidden;
}
#faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 20px;
  list-style-position: inside;
}
#faq summary:hover { color: var(--lp-primary); }
#faq details[open] summary { border-bottom: 1px solid var(--lp-rule-soft); }
#faq details p { padding: 14px 20px 18px; font-size: 0.92rem; color: var(--lp-text-soft); }

/* ---------- CTA ---------- */
.cta-section { text-align: center; padding: 80px 0; }
.cta-title { margin-bottom: 10px; }
.cta-body { color: var(--lp-text-soft); }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--lp-text); color: var(--lp-bg);
  padding: 36px 0; font-size: 0.85rem;
}
.footer-inner { display: grid; gap: 14px; }
.footer-brand { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; }
.site-footer .brand-sub { color: #9a9a94; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--lp-bg); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { color: #9a9a94; }

/* ---------- 法務文書ページ (terms.html / privacy.html / tokushoho.html) ---------- */
.brand-link { color: inherit; text-decoration: none; }
.header-back { font-size: 0.88rem; font-weight: 600; color: var(--lp-primary); text-decoration: none; white-space: nowrap; }
.header-back:hover { text-decoration: underline; }

.legal-main { padding: 100px 0 72px; }
.legal-title { font-size: 1.6rem; line-height: 1.4; margin-bottom: 10px; }
.legal-date { font-size: 0.85rem; color: var(--lp-text-soft); margin-bottom: 26px; }
.legal-lead { margin-bottom: 36px; font-size: 0.95rem; }

.legal-section { margin-bottom: 38px; }
.legal-section h2 {
  font-size: 1.12rem; line-height: 1.5; margin-bottom: 12px;
  border-left: 4px solid var(--lp-accent); padding-left: 10px;
}
.legal-section h3 { font-size: 0.98rem; margin: 16px 0 6px; }
.legal-section p, .legal-section li { font-size: 0.95rem; }
.legal-section p + p { margin-top: 10px; }
.legal-section ol, .legal-section ul { padding-left: 1.7em; margin-top: 8px; }
.legal-section li { margin-bottom: 6px; }
.legal-section li:last-child { margin-bottom: 0; }
.legal-note { font-size: 0.84rem; color: var(--lp-text-soft); margin-top: 10px; }

.legal-table {
  width: 100%; border-collapse: collapse; margin-top: 12px;
  background: var(--lp-white); border: 1px solid var(--lp-rule); font-size: 0.9rem;
}
.legal-table th, .legal-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--lp-rule-soft);
  text-align: left; vertical-align: top;
}
.legal-table thead th { background: var(--lp-bg-alt); font-size: 0.82rem; letter-spacing: 0.04em; }
.legal-table tbody th { background: var(--lp-bg-alt); font-weight: 600; width: 11em; }
.legal-table ul { margin: 0; padding-left: 1.3em; }
.legal-table li { margin-bottom: 4px; }
.legal-table li:last-child { margin-bottom: 0; }
/* 横に広い表はラッパ (.table-wrap) 内でスクロールさせ、body の横スクロールを出さない */
.legal-table-wide { min-width: 640px; }

/* 未確定値のプレースホルダ (公開前に必ず差し替える) */
.placeholder {
  display: inline-block; background: #FCF0DC; border: 1px dashed var(--lp-accent);
  border-radius: 3px; padding: 0 6px; color: #8A3A17;
  font-weight: 600; font-size: 0.9em; word-break: break-all;
}

/* 特商法の項目表: モバイルでは項目名/内容を縦積みにする */
@media (max-width: 599px) {
  .legal-table-def tbody th, .legal-table-def tbody td { display: block; width: 100%; }
  .legal-table-def tbody th { border-bottom: none; padding-bottom: 2px; }
}

/* ---------- レスポンシブ (768 / 1080) ---------- */
@media (min-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 5fr 7fr; gap: 40px; }
  .feature-reverse .feature-text { order: 2; }
  .feature-reverse .feature-visual { order: 1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1080px) {
  .hero { padding: 140px 0 80px; }
  .hero-grid { grid-template-columns: 11fr 10fr; gap: 48px; }
  h1 { font-size: 2.25rem; }
  .section { padding: 80px 0; }
}
