/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ==========================================================================
   公開サイト（トップページ・ヘッダー・フッター）のブランドスタイル。
   「精悍で信頼できる」トーンのため、墨色の地に社印の朱色を差し色に使う。
   mypage/admin側はTailwindユーティリティのみで完結しており、このファイルの
   影響を受けないようクラス名は .site-header / .site-footer / .lp-* に限定する。
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@500;700;900&family=Noto+Sans+JP:wght@400;500;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --dober-ink: #14161a;
  --dober-ink-2: #1c1f25;
  --dober-ink-3: #23272f;
  --dober-paper: #efece3;
  --dober-paper-dim: #b9b6ac;
  --dober-seal: #c1392b;
  --dober-seal-bright: #e2523f;
  --dober-steel: #8b93a1;
  --dober-steel-dim: #454c57;
  --dober-line: #33383f;
  --font-display: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --font-mono-lp: "JetBrains Mono", ui-monospace, monospace;
}

.lp-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .lp-wrap { padding: 0 32px; }
}

/* ---------- header / footer (全公開ページ共通) ---------- */
.site-header {
  background: var(--dober-ink);
  color: var(--dober-paper);
  border-bottom: 1px solid var(--dober-line);
}
.site-header .lp-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
  flex-wrap: wrap;
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--dober-paper);
}
.lp-brand .mark {
  width: 26px;
  height: 26px;
  border: 2px solid var(--dober-seal);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dober-seal);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  transform: rotate(-6deg);
  flex-shrink: 0;
}
.lp-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  flex-wrap: wrap;
}
.lp-nav a { color: var(--dober-steel); text-decoration: none; }
.lp-nav a:hover { color: var(--dober-paper); }
.lp-cta { display: flex; align-items: center; gap: 16px; font-size: 14px; }
@media (max-width: 820px) {
  .lp-nav-links { display: none; }
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 2px;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.lp-btn-seal { background: var(--dober-seal); color: var(--dober-paper); border: 1px solid var(--dober-seal); }
.lp-btn-seal:hover { background: var(--dober-seal-bright); border-color: var(--dober-seal-bright); color: var(--dober-paper); }
.lp-btn-ghost { border: 1px solid var(--dober-steel-dim); color: var(--dober-paper); }
.lp-btn-ghost:hover { border-color: var(--dober-steel); }
.lp-btn-lg { padding: 14px 26px; font-size: 15px; }

.site-footer {
  background: var(--dober-ink);
  color: var(--dober-steel);
  padding: 56px 0 36px;
}
.site-footer .lp-brand { font-size: 16px; }
.site-footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--dober-line);
}
.site-footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.site-footer-links a { color: var(--dober-steel); text-decoration: none; }
.site-footer-links a:hover { color: var(--dober-paper); }
.site-footer-bottom {
  font-family: var(--font-mono-lp);
  font-size: 11px;
  color: var(--dober-steel-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- homepage sections ---------- */
.lp-section {
  background: var(--dober-ink);
  color: var(--dober-paper);
  border-bottom: 1px solid var(--dober-line);
  padding: 80px 0;
}
.lp-section-alt { background: var(--dober-ink-2); }
.lp-section h1, .lp-section h2, .lp-section h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  margin: 0;
}
.lp-eyebrow {
  font-family: var(--font-mono-lp);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dober-seal-bright);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.lp-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--dober-seal-bright); }
.lp-section-head { max-width: 640px; margin-bottom: 48px; }
.lp-section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin-bottom: 14px; }
.lp-section-head p { color: var(--dober-steel); font-size: 15px; }

/* hero */
.lp-hero .lp-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .lp-hero .lp-wrap { grid-template-columns: 1fr; }
  .lp-hero-doc { justify-self: center; }
}
.lp-hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; line-height: 1.3; margin-bottom: 24px; }
.lp-hero h1 em { font-style: normal; color: var(--dober-seal-bright); }
.lp-hero p.lp-lead { color: var(--dober-steel); font-size: 16px; max-width: 46ch; margin-bottom: 34px; }
.lp-hero-actions { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.lp-trust-row { display: flex; gap: 24px; font-family: var(--font-mono-lp); font-size: 12px; color: var(--dober-steel); flex-wrap: wrap; }

.lp-hero-doc { position: relative; width: 100%; max-width: 360px; }
.lp-doc-card-behind {
  position: absolute; top: 24px; right: -20px; width: 100%; height: 92%;
  background: var(--dober-ink-3); border: 1px solid var(--dober-line); border-radius: 2px;
  z-index: -1; transform: rotate(-3deg);
}
.lp-doc-card {
  background: var(--dober-paper); color: var(--dober-ink); padding: 28px 26px 24px;
  border-radius: 2px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7); transform: rotate(2.5deg); position: relative;
}
.lp-doc-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(20,22,26,0.14); pointer-events: none; }
.lp-doc-top { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--dober-ink); padding-bottom: 12px; margin-bottom: 16px; }
.lp-doc-top h4 { font-family: var(--font-display); font-weight: 900; font-size: 19px; letter-spacing: 0.3em; margin: 0; }
.lp-doc-top .lp-doc-no { font-family: var(--font-mono-lp); font-size: 11px; color: #6a655c; text-align: right; }
.lp-doc-to { font-size: 12px; margin-bottom: 4px; }
.lp-doc-to strong { font-size: 14px; }
.lp-doc-from { font-size: 11px; color: #6a655c; margin-bottom: 16px; }
.lp-doc-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(20,22,26,0.12); font-family: var(--font-mono-lp); font-size: 11px; }
.lp-doc-row span:first-child { font-family: "Noto Sans JP", sans-serif; }
.lp-doc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--dober-ink); font-family: var(--font-mono-lp); }
.lp-doc-total .lp-amount { font-size: 19px; font-weight: 700; }
.lp-seal-stamp {
  position: absolute; right: 18px; top: 96px; width: 62px; height: 62px;
  border: 2.5px solid var(--dober-seal); border-radius: 4px; color: var(--dober-seal);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 900; font-size: 12px; letter-spacing: 0.15em; text-align: center;
  transform: rotate(-9deg); opacity: 0.88; mix-blend-mode: multiply;
}

/* DOBER breakdown */
.lp-dober-row { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--dober-line); }
.lp-dober-cell { padding: 28px 18px; border-right: 1px solid var(--dober-line); }
.lp-dober-cell:last-child { border-right: none; }
.lp-dober-cell .lp-letter { font-family: var(--font-display); font-weight: 900; font-size: 38px; color: var(--dober-seal); line-height: 1; margin-bottom: 16px; }
.lp-dober-cell .lp-jp { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.lp-dober-cell .lp-en { font-family: var(--font-mono-lp); font-size: 11px; color: var(--dober-steel); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 760px) {
  .lp-dober-row { grid-template-columns: repeat(2, 1fr); }
  .lp-dober-cell { border-bottom: 1px solid var(--dober-line); }
  .lp-dober-cell:nth-child(2n) { border-right: none; }
}

/* features */
.lp-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--dober-line); border: 1px solid var(--dober-line); }
.lp-feature-card { background: var(--dober-ink); padding: 32px 24px; }
.lp-feature-card svg { color: var(--dober-seal-bright); margin-bottom: 20px; }
.lp-feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.lp-feature-card p { color: var(--dober-steel); font-size: 13.5px; margin: 0; }
@media (max-width: 900px) { .lp-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-feature-grid { grid-template-columns: 1fr; } }

/* steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
@media (max-width: 800px) { .lp-steps { grid-template-columns: 1fr; gap: 30px; } }
.lp-step .lp-num { font-family: var(--font-mono-lp); color: var(--dober-seal-bright); font-size: 13px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.lp-step .lp-num::after { content: ""; height: 1px; flex: 1; background: var(--dober-line); }
.lp-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.lp-step p { color: var(--dober-steel); font-size: 13.5px; margin: 0; }

/* stats */
.lp-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
@media (max-width: 700px) { .lp-stats-grid { grid-template-columns: 1fr; gap: 28px; } }
.lp-stat .lp-value { font-family: var(--font-mono-lp); font-weight: 700; font-size: clamp(28px, 4vw, 40px); color: var(--dober-paper); font-variant-numeric: tabular-nums; }
.lp-stat .lp-value span { color: var(--dober-seal-bright); }
.lp-stat .lp-label { color: var(--dober-steel); font-size: 13px; margin-top: 8px; }

/* CTA band */
.lp-cta-band { text-align: center; padding: 88px 0; }
.lp-cta-band h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 16px; }
.lp-cta-band p { color: var(--dober-steel); margin-bottom: 30px; }
.lp-cta-band .lp-hero-actions { justify-content: center; }

.lp-section ::selection { background: var(--dober-seal); color: var(--dober-paper); }
