/* =========================================================
   カエスケ LP
   Style direction: 「あたたかい紙 × 編集的タイポグラフィ」
   - 個人店の店先の温度感（クリーム紙・深緑・朱色のアクセント）
   - 明朝ディスプレイ（見出し）× ゴシック本文のペアリング
   - 外部リソースなし（システムフォントのみ）
   ========================================================= */

:root {
  --paper: #faf8f3;
  --paper-deep: #f1ede4;
  --ink: #221f1a;
  --ink-soft: #5c574e;
  --green: #1a6b52;
  --green-deep: #124b3a;
  --green-tint: #e4efe9;
  --vermilion: #c0392b;
  --vermilion-tint: #f9e9e6;
  --amber: #b58a2a;
  --line: #ddd6c8;

  --font-display: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN',
    'Noto Serif JP', serif;
  --font-body: 'Hiragino Sans', 'Yu Gothic', 'YuGothic', 'Noto Sans JP',
    system-ui, sans-serif;

  --space-section: clamp(4rem, 3rem + 5vw, 8rem);
  --space-page: clamp(1.25rem, 4vw, 3rem);
  --radius: 0.75rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.8;
  background:
    radial-gradient(60rem 40rem at 85% -10%, #efe9db 0%, transparent 60%),
    var(--paper);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

p {
  margin: 0;
}

strong {
  font-weight: 700;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.pc-only {
  display: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--space-page);
  background: rgba(250, 248, 243, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-kana {
  font-size: 0.7em;
  color: var(--ink-soft);
  font-weight: 400;
  margin-left: 0.15em;
}

.header-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.header-cta:hover {
  background: var(--green);
  color: #fff;
}

/* ---------- hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: clamp(3rem, 8vw, 6rem) var(--space-page) var(--space-section);
  max-width: 74rem;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  border-left: 3px solid var(--green);
  padding-left: 0.6rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.2rem + 4.5vw, 4rem);
  letter-spacing: 0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
  background: linear-gradient(transparent 68%, var(--green-tint) 68%);
}

.hero-lead {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-lead strong {
  color: var(--ink);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border: none;
  border-radius: 999px;
  padding: 1rem 2.2rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(26, 107, 82, 0.28);
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.cta-button:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(26, 107, 82, 0.32);
}

.cta-button:active {
  transform: translateY(0);
}

.hero-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* hero visual: layered mock cards */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 26rem;
  width: 100%;
  align-self: center;
}

.mock-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: 0 10px 28px rgba(34, 31, 26, 0.1);
}

.mock-review {
  transform: rotate(-1.2deg);
}

.mock-review-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.mock-stars {
  letter-spacing: 0.1em;
}

.star-on {
  color: var(--amber);
}

.star-off {
  color: #d9d2c2;
}

.mock-review-body {
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.mock-reply {
  margin-left: 1.5rem;
  transform: rotate(0.8deg);
  border-left: 4px solid var(--green);
}

.mock-reply-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
}

.mock-reply-body {
  margin-top: 0.4rem;
  font-size: 0.92rem;
}

.mock-reply-action {
  margin-top: 0.75rem;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
}

.mock-alert {
  position: absolute;
  top: -1.4rem;
  right: -0.4rem;
  max-width: 15rem;
  background: #fff;
  border-left: 4px solid var(--vermilion);
  transform: rotate(1.6deg);
  box-shadow: 0 12px 30px rgba(34, 31, 26, 0.16);
}

.mock-alert-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--vermilion);
}

.mock-alert-sub {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* ---------- sections (shared) ---------- */
section {
  padding: 0 var(--space-page);
}

.pains,
.features,
.steps,
.pricing,
.register,
.faq {
  max-width: 64rem;
  margin: 0 auto;
  padding-bottom: var(--space-section);
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.3rem);
  margin-bottom: 2rem;
}

/* ---------- pains ---------- */
.pain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pain-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.pain-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.pains-bridge {
  margin-top: 2.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  line-height: 2;
}

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(34, 31, 26, 0.1);
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.feature p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

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

.feature-wide {
  background: var(--green-tint);
  border-color: transparent;
}

/* numbers strip */
.numbers {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.number-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #b8b2a6;
}

.number-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.3;
}

.number-value s {
  color: #8b857a;
  font-size: 0.75em;
}

.number-arrow {
  margin: 0 0.35em;
  color: #8b857a;
  font-size: 0.75em;
}

.number-value em {
  font-style: normal;
  color: #7fd6b5;
}

.number-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: #b8b2a6;
  margin-top: 0.25rem;
}

/* ---------- steps ---------- */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-list li {
  position: relative;
  padding: 1.5rem 0 1.5rem 4.25rem;
  border-bottom: 1px dashed var(--line);
}

.step-list li:last-child {
  border-bottom: none;
}

.step-num {
  position: absolute;
  left: 0;
  top: 1.4rem;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0.85;
  line-height: 1;
}

.step-list h3 {
  font-size: 1.15rem;
}

.step-list p {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- pricing ---------- */
.pricing-beta {
  margin: -1rem 0 2rem;
  font-size: 1.05rem;
}

.pricing-beta strong {
  color: var(--green);
}

.plan-grid {
  display: grid;
  gap: 1.25rem;
}

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.plan-featured {
  border: 2px solid var(--green);
  box-shadow: 0 14px 32px rgba(26, 107, 82, 0.14);
}

.plan-badge {
  position: absolute;
  top: -0.8rem;
  left: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
}

.plan h3 {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  line-height: 1;
}

.plan-unit {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-left: 0.25rem;
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan li::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 700;
}

.pricing-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- register ---------- */
.register {
  background: var(--green-tint);
  border-radius: 1.25rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 46rem;
}

.register h2 {
  margin-bottom: 1rem;
}

.register-lead {
  font-size: 0.98rem;
  margin-bottom: 2rem;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.register-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.optional,
.required {
  font-weight: 400;
  font-size: 0.8em;
  color: var(--ink-soft);
}

.required {
  color: var(--vermilion);
}

.register-form input,
.register-form select {
  font: inherit;
  font-weight: 400;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
}

.register-form .cta-button {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.register-privacy {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.draft-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--vermilion);
  border: 1px dashed var(--vermilion);
  border-radius: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: var(--vermilion-tint);
}

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 1.25rem;
  list-style: none;
  position: relative;
  padding-right: 3rem;
  transition: background 0.2s var(--ease-out);
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--green);
}

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

.faq summary:hover {
  background: var(--paper-deep);
}

.faq details p {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- final CTA ---------- */
.final-cta {
  text-align: center;
  padding: var(--space-section) var(--space-page);
  background: var(--ink);
  color: var(--paper);
}

.final-cta h2 {
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.5rem);
}

/* ---------- footer ---------- */
.site-footer {
  padding: 2.5rem var(--space-page) 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   Desktop (>= 900px)
   ========================================================= */
@media (min-width: 900px) {
  .pc-only {
    display: inline;
  }

  .hero {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .hero-copy {
    flex: 1.15;
  }

  .hero-visual {
    flex: 1;
    align-self: auto;
    margin-top: 1rem;
  }

  .pain-list {
    flex-direction: row;
  }

  .pain-list li {
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-wide {
    grid-column: 1 / -1;
  }

  .numbers {
    grid-template-columns: repeat(3, 1fr);
    padding: 2.25rem 2rem;
  }

  .step-list {
    flex-direction: row;
    gap: 2rem;
  }

  .step-list li {
    flex: 1;
    border-bottom: none;
    border-left: 1px dashed var(--line);
    padding: 0.5rem 0 0.5rem 1.5rem;
  }

  .step-list li:first-child {
    border-left: none;
    padding-left: 0;
  }

  .step-num {
    position: static;
    display: block;
    margin-bottom: 0.75rem;
  }

  .plan-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }

  .register {
    margin-left: auto;
    margin-right: auto;
  }
}

/* registration form wiring (Stage 1) */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.register-feedback {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green);
  min-height: 1.4em;
}

.register-feedback-error {
  color: var(--vermilion);
}

.footer-links a {
  color: var(--ink-soft);
  text-underline-offset: 0.2em;
}

.footer-links a:hover {
  color: var(--green);
}
