/* Monolo ランディングページ（/ と /ja/）専用スタイル。
   法務ページは style.css を使い、こちらは読み込まない。
   色はアプリの constants/theme.ts（ライト）に合わせている。 */

:root {
  --bg: #f2eadf;
  --surface: #fbf6ef;
  --line: #e0d6c8;
  --fg: #2e2622;
  --muted: #6f635a;
  --accent: #a24a33;
  --accent-soft: #f3ded6;
  --primary: #d49a4f;
  --inverse: #2e2622;
  --on-inverse: #fbf6ef;
  --inverse-muted: #b8aa9c;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  word-break: break-word;
  line-break: strict;
}

:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

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

a {
  color: var(--accent);
}

.container {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* ヘッダー */

.lp-header {
  padding: 1rem 0;
}

.lp-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.lang-switch {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  white-space: nowrap;
}

.lang-switch:hover {
  border-color: var(--accent);
}

/* セクション共通 */

section {
  padding: 3.5rem 0;
}

@media (min-width: 800px) {
  section {
    padding: 5rem 0;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.section-lead {
  color: var(--muted);
  max-width: 38rem;
}

/* ヒーロー */

.hero {
  padding-top: 1.5rem;
  overflow: hidden;
}

.hero .container {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .hero .container {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
  }
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.hero .lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-visual {
  max-width: 22rem;
  margin: 0 auto;
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}

/* CTA */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--inverse);
  color: var(--on-inverse);
  text-decoration: none;
  border-radius: 12px;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-store:hover {
  background: #45392f;
}

.btn-store:active {
  transform: scale(0.98);
}

.btn-store svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: currentColor;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* 問題提起 */

.problem {
  background: var(--surface);
}

.problem-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 800px) {
  .problem-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.problem-list li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  font-weight: 600;
}

.answer {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* 段落が600なので strong は bolder だと900近くになり漢字が潰れる。700に固定し、
   太さではなくマーカー線で強調する。 */
.answer strong {
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%, var(--accent-soft) 92%, transparent 92%);
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ポイントのカード（独り言・レベル） */

.points {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .points {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.25rem;
  }
}

.points li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.2rem;
}

.points h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.points p {
  color: var(--muted);
  margin: 0;
}

.point-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* 特長（スクショ＋説明の交互配置） */

.feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
}

@media (min-width: 800px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2.5rem 0;
  }

  .feature:nth-child(even) .feature-shot {
    order: 2;
  }
}

.feature-shot {
  max-width: 19rem;
  width: 100%;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

.feature h3 {
  font-size: clamp(1.3rem, 4vw, 1.65rem);
  margin-bottom: 0.75rem;
}

.feature p {
  color: var(--muted);
}

.step-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
  margin-bottom: 0.75rem;
}

/* 続ける仕組み（濃色ブロック） */

.habit {
  background: var(--inverse);
  color: var(--on-inverse);
}

.habit .eyebrow {
  color: var(--primary);
}

.habit .eyebrow::before {
  background: var(--primary);
}

.habit .section-lead {
  color: var(--inverse-muted);
}

.habit-callout {
  margin: 1.75rem 0 0;
  max-width: 40rem;
  border: 1px solid #4a3f37;
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  background: #382f29;
}

.habit-callout h3 {
  color: var(--on-inverse);
  font-size: 1.05rem;
}

.habit-callout p {
  color: var(--inverse-muted);
  margin: 0;
}

.habit-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .habit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.habit-grid figure {
  margin: 0;
}

.habit-grid img {
  max-width: 17rem;
  margin: 0 auto;
  border-radius: 20px;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

.habit-grid figcaption {
  text-align: center;
  margin-top: 0.75rem;
  color: var(--inverse-muted);
  font-size: 0.95rem;
}

/* 対応言語 */

.lang-chips {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lang-chips li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-weight: 600;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* FAQ */

.faq {
  background: var(--surface);
}

.faq-list {
  max-width: 44rem;
  margin-top: 1.5rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.3;
  flex: none;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* 最後のCTA */

.final-cta {
  text-align: center;
}

.final-cta .cta-row {
  justify-content: center;
  margin-top: 1.5rem;
}

.final-cta img.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 1.25rem;
}

/* フッター */

.lp-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.lp-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-bottom: 1rem;
}

.lp-footer a {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-store {
    transition: none;
  }
}
