/*
 * lp.css
 * マイサポートブック ランディングページ専用スタイル
 *
 * 設計方針:
 *   - 既存アプリのデザインシステム(App.css の CSS 変数)を踏襲
 *   - LPは独立配信のため、必要な変数はこのファイル冒頭で再定義
 *   - 既存アプリのカラー・余白・タッチターゲットルールに準拠
 *   - 文章が主役・装飾は最小限・トキシック・ポジティビティ排除
 */

/* ── デザインシステム変数(既存アプリ App.css と同一値) ─────────── */
:root {
  --bg:           #EEF4FF;   /* 薄いブルー(画面背景) */
  --paper:        #FFFDF8;   /* ほぼ白(カード背景) */
  --ink:          #1F1E1A;   /* 本文(最も濃い) */
  --ink-2:        #403E38;   /* サブテキスト */
  --ink-soft:     #6B6860;   /* 補足・プレースホルダー */
  --line:         #DAD4C5;   /* 極薄グレー(区切り線) */
  --accent:       #3CB371;   /* コバルトグリーン(選択・フォーカス) */
  --accent-soft:  #D0F0DC;   /* グリーン薄(選択背景) */
  --warm:         #FF6B6B;   /* コーラルレッド(必須ボーダー) */
  --warm-soft:    #FFF0F0;   /* ピンク薄 */

  --btn-radius:   12px;
  --card-radius:  12px;
  --touch-target: 44px;
}

/* ── ベースリセット ────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
               "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Noto Sans CJK JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--ink);
}

/* ── LP全体 ───────────────────────────────────────────────────── */
.lp {
  min-height: 100vh;
  min-height: 100dvh;
}

.lp-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── セクション共通 ────────────────────────────────────────────── */
.lp-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.lp-section:last-of-type {
  border-bottom: none;
}

/* ── セクション交互配色(白→ブルー→白→ブルー→白) ────────────── */
.lp-section:nth-of-type(2) {
  background: var(--bg);
}

.lp-section:nth-of-type(3) {
  background: var(--paper);
}

.lp-section:nth-of-type(4) {
  background: var(--bg);
}

/* ── セクション1:ファーストビュー ──────────────────────────────── */
.lp-fv {
  padding-top: 10px;
  padding-bottom: 80px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.lp-fv__paragraph {
  font-size: 16px;
  line-height: 2.0;
  color: var(--ink);
  margin: 0 0 40px;
  letter-spacing: 0.02em;
}

.lp-fv__paragraph:last-child {
  margin-bottom: 0;
}

/* ── 見出し ────────────────────────────────────────────────────── */
.lp-heading {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 32px;
  letter-spacing: 0.02em;
}

/* ── 本文 ──────────────────────────────────────────────────────── */
.lp-body {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}

.lp-body:last-child {
  margin-bottom: 0;
}

.lp-body strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── 線画・通常フロー配置(左右交互・スマホ被り対策) ─────────────── */
.lp-flow-img {
  display: block;
  width: 160px;
  height: auto;
  opacity: 0.55;
  margin: 3px 0;
}

.lp-flow-img--left {
  margin-right: auto;
  margin-left: 0;
}

.lp-flow-img--right {
  margin-left: auto;
  margin-right: 0;
}

.lp-flow-img--lg {
  width: 240px;
}

.lp-flow-img--hero {
  width: 400px;
  max-width: 100%;
}

/* ── 水彩色斑(装飾・自然な淡い滲み) ─────────────────────────── */
.lp-blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  filter: blur(24px);
  transform: scale(0.5);
}

.lp-blob--pink {
  background: radial-gradient(ellipse, rgba(255, 150, 150, 0.5), transparent 70%);
}

.lp-blob--blue {
  background: radial-gradient(ellipse, rgba(150, 180, 255, 0.5), transparent 70%);
}

.lp-blob--green {
  background: radial-gradient(ellipse, rgba(150, 210, 160, 0.5), transparent 70%);
}

.lp-blob--yellow {
  background: radial-gradient(ellipse, rgba(240, 220, 130, 0.5), transparent 70%);
}

.lp-blob--beige {
  background: radial-gradient(ellipse, rgba(220, 200, 170, 0.55), transparent 70%);
}

/* ── セクション5:CTA ──────────────────────────────────────────── */
.lp-cta {
  background: var(--paper);
}

.lp-cta .lp-heading {
  font-size: 20px;
}

/* ── 登録フォーム ─────────────────────────────────────────────── */
.lp-form {
  margin-top: 32px;
}

.lp-form__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 9px;
  line-height: 1.5;
}

.lp-form__input {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border-radius: var(--btn-radius);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.lp-form__input::placeholder {
  color: var(--ink-soft);
}

.lp-form__input:focus {
  outline: none;
  border-color: var(--accent);
}

.lp-form__button {
  width: 100%;
  min-height: var(--touch-target);
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: var(--btn-radius);
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.05em;
}

.lp-form__button:hover {
  background: var(--accent);
  color: var(--paper);
}

.lp-form__button:active {
  transform: scale(0.98);
}

.lp-form__note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 16px 0 0;
}

/* ── フッター ─────────────────────────────────────────────────── */
.lp-footer {
  padding: 40px 0 56px;
  background: var(--bg);
}

.lp-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.lp-footer__link {
  font-size: 13px;
  color: var(--ink-soft);
}

.lp-footer__sep {
  font-size: 13px;
  color: var(--line);
  user-select: none;
}

.lp-footer__copy {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  margin: 0;
}

/* ── タブレット・PC調整 ───────────────────────────────────────── */
@media (min-width: 768px) {
  .lp-container {
    padding: 0 32px;
  }

  .lp-section {
    padding: 80px 0;
  }

  .lp-fv {
    padding-top: 10px;
    padding-bottom: 96px;
  }

  .lp-fv__paragraph {
    font-size: 17px;
  }

  .lp-heading {
    font-size: 24px;
  }

  .lp-cta .lp-heading {
    font-size: 22px;
  }

  .lp-flow-img {
    width: 200px;
  }

  .lp-flow-img--lg {
    width: 300px;
  }

  .lp-flow-img--hero {
    width: 500px;
  }
}

/* ========================================
   補助ページ共通スタイル(contact/privacy/tokushoho)
   ======================================== */

.lp-sub {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  box-sizing: border-box;
}

.lp-sub-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--accent-soft);
}

.lp-sub-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--ink);
}

.lp-sub-lead {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  color: var(--ink);
}

.lp-sub-section {
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--paper);
  border-radius: 8px;
}

.lp-sub-h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--ink);
}

.lp-sub-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 8px 0;
  color: var(--ink);
}

.lp-sub-mail,
.lp-sub-tel {
  margin-top: 12px !important;
  font-size: 1rem;
  font-weight: 500;
}

.lp-sub-mail a,
.lp-sub-tel a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.lp-sub-mail a:hover,
.lp-sub-tel a:hover {
  opacity: 0.7;
}

.lp-sub-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--accent-soft);
  text-align: center;
}

.lp-sub-footer a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--accent-soft);
}

.lp-sub-footer a:hover {
  opacity: 0.7;
}

.lp-sub-copy {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.6;
}

.lp-sub-updated {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.6;
  text-align: right;
}

/* スマホ最適化 */
@media (max-width: 480px) {
  .lp-sub {
    padding: 32px 16px;
  }
  .lp-sub-title {
    font-size: 1.4rem;
  }
  .lp-sub-section {
    padding: 16px 18px;
  }
}