/* モフケア LP — パレットはアプリと同一 */
:root {
  --bg: #FFFDF7;
  --ink: #463A30;
  --ink-muted: #8B7E70;
  --leaf: #A8C8A0;
  --leaf-deep: #5E8A56;
  --leaf-pale: #EAF2E5;
  --card: #FFFFFF;
  --outline: #E4DCCD;
  --night: #4B465F;
  --night-card: #5A5472;
  --night-ink: #F4EFE4;
  --radius: 22px;
  --font: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro",
    "BIZ UDGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", ui-rounded,
    system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  font-size: 16px;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-weight: 700; line-height: 1.5; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- ヒーロー ---------- */

.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 24px 72px;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, var(--leaf-pale) 0%, transparent 70%);
}

.brand {
  color: var(--leaf-deep);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-top: 28px;
}

.eyebrow {
  font-size: clamp(11.5px, 3.2vw, 13px);
  color: var(--leaf-deep);
  background: var(--leaf-pale);
  border-radius: 999px;
  padding: 4px 16px;
  display: inline-block;
}

h1 {
  font-size: clamp(28px, 7vw, 44px);
  letter-spacing: 0.04em;
  margin-top: 14px;
}

.lead {
  color: var(--ink-muted);
  max-width: 34em;
  margin-top: 12px;
  font-size: 15px;
}

.hero-mofu {
  position: relative;
  margin-top: 26px;
}

.hero-mofu img { display: block; }

/* ふわふわ漂う綿毛 */
.fluff {
  position: absolute;
  background: var(--leaf);
  border-radius: 50%;
  opacity: 0.45;
  animation: drift 7s ease-in-out infinite alternate;
}
.fluff-1 { width: 14px; height: 14px; left: -40px; top: 30%; }
.fluff-2 { width: 9px; height: 9px; right: -34px; top: 12%; animation-delay: -2.5s; }
.fluff-3 { width: 7px; height: 7px; right: -52px; bottom: 22%; animation-delay: -5s; background: #E8C8C8; }

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-16px); }
}

.breathing {
  animation: breathe 4.5s ease-in-out infinite;
  transform-origin: 50% 90%;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
  .breathing, .fluff { animation: none; }
}

/* 2カラム(広い画面) */
@media (min-width: 820px) {
  .hero-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    gap: 40px;
    margin-top: 48px;
  }
  .hero-text { max-width: 460px; }
}

/* ---------- 登録フォーム ---------- */

.signup {
  max-width: 480px;
  margin: 36px auto 0;
  text-align: center;
}

.signup-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup-row[hidden] { display: none; }

.signup input[type="email"] {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 18px;
  border: 1.5px solid var(--outline);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-align: center;
}

.signup input[type="email"]::placeholder { color: #C0B5A6; }

.signup input[type="email"]:focus-visible,
.signup button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 2px;
}

.signup button {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  background: var(--leaf-deep);
  color: #FFFDF7;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.signup button:hover { background: #527A4B; transform: translateY(-1px); }
.signup button:disabled { background: var(--leaf); cursor: default; transform: none; }

.signup-note {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 10px;
}

.signup-status {
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 500;
  min-height: 1.9em;
}

.signup-status.ok { color: var(--leaf-deep); }
.signup-status.ng { color: #A9695E; }

/* ---------- セクション共通 ---------- */

main section {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px;
}

h2 {
  font-size: clamp(22px, 5vw, 28px);
  text-align: center;
  margin-bottom: 40px;
}

/* ---------- できること ---------- */

.features { border-top: 1.5px dashed var(--outline); }

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
}

.feature:last-of-type { margin-bottom: 0; }

.feature-text { text-align: center; max-width: 30em; }
.feature-text h3 { font-size: 18px; color: var(--leaf-deep); margin-bottom: 6px; }
.feature-text p { color: var(--ink-muted); font-size: 15px; }

@media (min-width: 820px) {
  .feature { flex-direction: row; justify-content: center; gap: 48px; }
  .feature:nth-of-type(even) { flex-direction: row-reverse; }
  .feature-text { text-align: left; }
}

/* アプリ画面風モック */
.mock {
  width: 270px;
  height: 300px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(70, 58, 48, 0.12);
  flex-shrink: 0;
}

/* 1) ケア(昼の部屋) */
.mock-day .mock-room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 72%;
}

.mock-day .mock-mofu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 26px;
}

.care-chips {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.care-chips li {
  background: rgba(255, 253, 247, 0.94);
  border: 1.5px solid var(--outline);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 13.5px;
  font-weight: 500;
}

.care-chips li.done {
  background: var(--leaf-pale);
  border-color: var(--leaf);
  color: var(--leaf-deep);
}

.care-chips .check { margin-right: 8px; }

/* 2) 3行日記(夜) */
.mock-night {
  background: linear-gradient(180deg, #3E3A52 0%, var(--night) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 18px;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1.5px at 36px 44px, #F4EFE4 99%, transparent),
    radial-gradient(circle 1px at 120px 26px, #D8CFE8 99%, transparent),
    radial-gradient(circle 1.5px at 210px 58px, #F4EFE4 99%, transparent),
    radial-gradient(circle 1px at 246px 108px, #D8CFE8 99%, transparent),
    radial-gradient(circle 1px at 70px 96px, #F4EFE4 99%, transparent);
}

.mock-mofu-night { position: relative; margin-bottom: 10px; }

.diary-card {
  position: relative;
  width: 100%;
  background: var(--night-card);
  border-radius: 16px;
  padding: 12px 18px 14px;
  color: var(--night-ink);
}

.diary-date { font-size: 11px; opacity: 0.7; margin-bottom: 4px; }

.diary-line {
  font-size: 13px;
  line-height: 1.7;
  border-bottom: 1px dashed rgba(244, 239, 228, 0.35);
  padding: 3px 0;
}

.mood-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.mood-row span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(244, 239, 228, 0.3);
}

.mood-row .mood-on { background: var(--leaf); }

/* 3) 手紙 */
.mock-letter {
  background: linear-gradient(180deg, var(--leaf-pale) 0%, #F6F4E8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 12px;
}

.letter-icon { position: relative; }

.letter-card {
  background: var(--card);
  border: 1.5px solid var(--outline);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
}

.letter-sign {
  text-align: right;
  color: var(--leaf-deep);
  font-size: 12px;
  margin-top: 4px;
}

.letter-gifts { display: flex; gap: 14px; }

.free-note {
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
  margin-top: 48px;
}

/* ---------- プライバシー ---------- */

.privacy {
  border-top: 1.5px dashed var(--outline);
}

.privacy ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
}

.privacy li {
  background: var(--card);
  border: 1.5px solid var(--outline);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.privacy h3 { font-size: 16px; color: var(--leaf-deep); margin-bottom: 4px; }
.privacy p { font-size: 14px; color: var(--ink-muted); }

/* ---------- もう一度フォーム ---------- */

.cta-again {
  text-align: center;
  border-top: 1.5px dashed var(--outline);
  padding-bottom: 80px;
}

.cta-again img { margin-bottom: 12px; }
.cta-again h2 { margin-bottom: 0; }
.cta-again .signup { margin-top: 24px; }

/* ---------- フッター ---------- */

footer {
  background: var(--leaf-pale);
  padding: 36px 24px 44px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-muted);
}

footer p { max-width: 560px; margin: 0 auto 12px; }

footer a { color: var(--leaf-deep); }

.copyright { margin-top: 6px; letter-spacing: 0.06em; }
