/* ============================================================
   トップページ（2026-10-20 作り直し）

   組み立ては Habee の紹介ページを参考にした：
   1画面目で「何のアプリか」とダウンロード → 悩み → できること（画面つき）
   → はじめかた → 料金 → よくある質問 → もう一度ダウンロード。

   画面の絵は CSS の作り物をやめ、実機のスクショ（assets/app/）を使う。
   要のところは大きく切り出して、端末の上に重ねる（ストアのスクショと同じ見せ方）。
   トークン・ヘッダー・ボタン・FAQ・フッターは styles.css のものを使う。
   ============================================================ */

 /* 見出しは語の途中で折らない。折れる位置は HTML の <wbr> で決める */
.h2-hero h1,
main h2,
main h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

:root {
  --blue-soft: #edf3fa;
  --coral-soft: #fcefea;
  --amber-soft: #fbf3e4;
  --radius-xl: 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--primary-soft);
  color: var(--primary-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.pc-br {
  display: none;
}

@media (min-width: 900px) {
  .pc-br {
    display: inline;
  }
}

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

.h2-hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 72px;
  background:
    radial-gradient(60% 70% at 85% 30%, var(--coral-soft) 0%, transparent 70%),
    radial-gradient(50% 60% at 15% 90%, var(--blue-soft) 0%, transparent 70%),
    var(--canvas);
}

.h2-hero .wrap {
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 900px) {
  .h2-hero {
    padding-block: 72px 96px;
  }
  .h2-hero .wrap {
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
  }
}

.h2-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.h2-copy h1 {
  font-size: clamp(34px, 6.4vw, 56px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  /* 語の途中で折らない（<wbr> の位置でだけ折る） */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.h2-copy h1 .mark {
  color: var(--primary);
}

.h2-lead {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.9;
  color: var(--ink-muted);
  max-width: 34em;
}

.h2-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.h2-cta.center {
  justify-content: center;
}

.qr {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.qr img {
  width: 64px;
  height: 64px;
}

.qr span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
  font-weight: 600;
}

/* QR はパソコンで見ている人のためのもの。スマホでは出さない */
@media (min-width: 900px) {
  .qr {
    display: inline-flex;
  }
}

.h2-free {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-ink);
}

/* 端末：実機の画面を角丸の枠に入れる */
.phone {
  margin: 0;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 640 / 1305;
  border-radius: 38px;
  padding: 9px;
  background: #1b1c1f;
  box-shadow:
    0 30px 60px rgba(23, 24, 26, 0.18),
    0 6px 16px rgba(23, 24, 26, 0.1),
    inset 0 0 0 2px #3a3c41;
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 30px;
  background: #fff;
}

.h2-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
}

.h2-art .rings {
  width: 120%;
  left: -10%;
  top: 4%;
}

.h2-art .phone {
  position: relative;
  z-index: 1;
  width: 54%;
}

.h2-art .phone.back {
  transform: translate(18%, -6%) rotate(-4deg);
  opacity: 0.96;
}

.h2-art .phone.front {
  transform: translate(-14%, 4%) rotate(3deg);
  z-index: 2;
}

/* ---------------------------------------------------- 悩み */

.why {
  padding-block: 88px;
  background: var(--surface);
}

.why-grid {
  display: grid;
  gap: 14px;
  margin-top: 40px;
}

@media (min-width: 760px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 26px 24px;
  border-radius: 22px;
  background: var(--surface-muted);
}

.why-n {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

.why-card h3 {
  font-size: 19px;
}

.why-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-muted);
}

.why-card.is-us {
  background: var(--coral-soft);
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.why-card.is-us .why-n,
.why-card.is-us h3 {
  color: var(--primary-ink);
}

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

.points {
  padding-block: 96px;
  background: var(--canvas);
}

.point {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 64px;
}

@media (min-width: 900px) {
  .point {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    margin-top: 96px;
  }
  .point.flip .pt-copy {
    order: 2;
  }
}

.pt-copy {
  display: grid;
  gap: 14px;
  max-width: 30em;
}

.pt-n {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.pt-copy h3 {
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.4;
  text-wrap: balance;
}

.pt-copy h3 em {
  font-style: normal;
  color: var(--primary);
}

.pt-copy p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-muted);
}

/* 色の面に、端末と「要のところ」を重ねる */
.pt-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  padding: 40px 20px 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.tone-coral {
  background: var(--coral-soft);
}

.tone-blue {
  background: var(--blue-soft);
}

.tone-amber {
  background: var(--amber-soft);
  padding: 40px 20px;
}

.pt-art .phone {
  width: 58%;
  max-width: 250px;
  margin-bottom: -22%;
}

.pt-art .pop {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(86%, 420px);
  transform: translate(-50%, -42%);
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 24px 50px rgba(23, 24, 26, 0.2),
    0 4px 12px rgba(23, 24, 26, 0.1);
  outline: 3px solid rgba(210, 90, 66, 0.3);
}

.tone-blue .pop {
  outline-color: rgba(79, 134, 198, 0.35);
}

.pt-art .cal {
  width: min(78%, 320px);
  height: auto;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(23, 24, 26, 0.14);
  margin-bottom: 40px;
}

/* 1週間ずつ（アプリのチュートリアルと同じ絵） */
.weekcard {
  width: min(100%, 400px);
  display: grid;
  gap: 18px;
  padding: 28px 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(23, 24, 26, 0.12);
}

.wk-days {
  display: flex;
  justify-content: space-between;
}

.wk-days i {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  background: var(--surface-muted);
  color: var(--ink-faint);
}

.wk-days i.on {
  background: var(--primary);
  color: #fff;
}

.wk-days i.now {
  background: #fff;
  border: 2.5px solid var(--primary);
  color: var(--primary-ink);
}

.wk-bar {
  display: grid;
  gap: 8px;
}

.wk-bar b {
  font-size: 13px;
  color: var(--ink-faint);
}

.wk-bar span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: var(--surface-sunken);
  overflow: hidden;
}

.wk-bar s {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.wk-pick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wk-pick b {
  font-size: 13px;
  color: var(--ink-faint);
}

.wk-pick em,
.wk-pick span {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
}

.wk-pick em {
  background: var(--primary);
  color: #fff;
}

.wk-pick span {
  background: var(--surface-muted);
  color: var(--ink-faint);
}

/* ---------------------------------------------------- はじめかた */

.howto {
  padding-block: 96px;
  background: var(--surface);
}

.steps3 {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  gap: 40px;
}

@media (min-width: 820px) {
  .steps3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.steps3 li {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.steps3 .phone.sm {
  width: 62%;
  max-width: 210px;
  margin-bottom: 10px;
}

.steps3 b {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
}

.steps3 b span {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
}

.steps3 p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-muted);
  max-width: 22em;
}

/* ---------------------------------------------------- 向いている目標 */

.fields2 {
  padding-block: 80px;
  background: var(--canvas);
}

.chips2 {
  list-style: none;
  padding: 0;
  margin: 32px auto 0;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chips2 li {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 15px;
  font-weight: 600;
}

/* ---------------------------------------------------- 最終CTA */

.final .pill {
  margin-bottom: 4px;
}

.final .final-inner {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

/* ---------------------------------------------------- 狭い画面 */

@media (max-width: 520px) {
  .steps3 .phone.sm {
    width: 50%;
  }
  .h2-art {
    min-height: 360px;
  }
  .pt-art {
    min-height: 360px;
  }
  .wk-days i {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

/* 始まったばかりで無料期間を長くしている理由（相方が少なくても驚かせない） */

.price-launch{margin:10px auto 0;font-size:13px;line-height:1.6;color:var(--ink-muted,#62666D);max-width:30em;text-align:center}

/* 粘土のキャラ（2026-10-26）：端末の手前から、ちょこんと顔を出す */
.h2-art .clay-peek {
  position: absolute;
  z-index: 3;
  left: -6%;
  bottom: -14px;
  width: 46%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(23, 24, 26, 0.12));
  pointer-events: none;
}
.final .clay-final {
  display: block;
  width: min(300px, 70%);
  height: auto;
  margin: 0 auto 6px;
}
@media (max-width: 760px) {
  .h2-art .clay-peek { width: 42%; left: -2%; bottom: -8px; }
}
