:root {
  --teal: #45a893;
  --teal-deep: #2c8573;
  --teal-dark: #1f5f53;
  --teal-pale: #e9f6f1;
  --mint: #8ccfc0;
  --sun: #f2b24c;
  --sun-pale: #fff3dc;
  --peach: #ffd9cc;
  --lav: #e6e2ff;
  --ink: #2f3b37;
  --muted: #6b7a74;
  --line: #dde9e4;
  --bg: #fffefb;
  --card: #ffffff;
  --radius: 26px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(31, 95, 83, .06), 0 12px 32px rgba(31, 95, 83, .10);
  --shadow-lg: 0 2px 4px rgba(31, 95, 83, .06), 0 30px 70px rgba(31, 95, 83, .20);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.45; font-weight: 900; margin: 0 0 .6em; color: var(--ink); letter-spacing: .02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--teal-deep); font-weight: 700; letter-spacing: .16em; font-size: .8rem;
  text-transform: uppercase; margin-bottom: .8em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--sun); }
.eyebrow.light { color: #fff; }
.head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.head .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--sun); }
.sub { color: var(--muted); }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 254, 251, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(221, 233, 228, .7);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .9rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--sun); border-radius: 2px; transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }

/* ボタン */
.btn {
  display: inline-block; color: #fff; text-decoration: none; font-weight: 700;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-radius: 999px; padding: 10px 24px;
  box-shadow: 0 6px 16px rgba(44, 133, 115, .28);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(44, 133, 115, .34); }
.btn-sm { padding: 7px 18px; font-size: .86rem; }

/* ストアボタン */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.center-row { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #18201e; color: #fff; text-decoration: none;
  border-radius: 14px; padding: 10px 20px 10px 16px; min-width: 180px;
  box-shadow: 0 6px 16px rgba(24, 32, 30, .16);
  transition: transform .2s, box-shadow .2s;
}
.store:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(24, 32, 30, .22); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.2; font-size: 1.05rem; font-weight: 700; font-family: -apple-system, "Hiragino Sans", sans-serif; }
.store small { font-size: .66rem; font-weight: 500; opacity: .8; }
.store-web { background: linear-gradient(135deg, #f7c263 0%, var(--sun) 100%); color: #4a3517; box-shadow: 0 6px 16px rgba(242, 178, 76, .35); }
.store-web:hover { color: #4a3517; }
.store-web span { font-family: inherit; font-size: .98rem; }

/* スマホの枠 */
.phone {
  position: relative; width: 250px; aspect-ratio: 9 / 18.5;
  border-radius: 40px; padding: 10px;
  background: linear-gradient(145deg, #3a4140, #151a19);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.phone img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: 31px; background: #fff;
}
.phone-lg { width: 290px; }

/* ヒーロー */
.hero { position: relative; padding: 72px 0 120px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 50% at 85% 25%, rgba(140, 207, 192, .55), transparent 70%),
    radial-gradient(30% 40% at 70% 85%, rgba(255, 217, 204, .6), transparent 70%),
    radial-gradient(35% 45% at 10% 10%, rgba(242, 178, 76, .18), transparent 70%),
    radial-gradient(30% 40% at 95% 70%, rgba(230, 226, 255, .7), transparent 70%),
    linear-gradient(180deg, #f3faf7 0%, var(--bg) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(44, 133, 115, .14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 14px; font-size: .82rem; font-weight: 700; color: var(--teal-deep);
  box-shadow: 0 4px 12px rgba(31, 95, 83, .06);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(242, 178, 76, .25); }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.32; margin: .5em 0 .5em; }
.hl { background: linear-gradient(transparent 62%, rgba(242, 178, 76, .45) 62%); padding: 0 .1em; }
.lead { font-size: 1.04rem; max-width: 33em; }
.rating { margin: 22px 0 0; font-size: .88rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rating strong { font-size: 1.1rem; }
.stars { color: var(--sun); letter-spacing: .06em; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.hero-visual::before {
  content: ""; position: absolute; width: 380px; height: 380px; top: 50%; left: 50%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), #bfe6dc);
  opacity: .55;
}
.float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px; padding: 10px 16px; box-shadow: var(--shadow);
  font-weight: 700; font-size: .92rem; line-height: 1.35; z-index: 3;
  animation: bob 5s ease-in-out infinite;
}
.float span { display: flex; flex-direction: column; }
.float small { font-size: .7rem; color: var(--muted); font-weight: 500; }
.f-emoji { font-size: 1.7rem; }
.f-mood { top: 16%; left: -2%; }
.f-ai { bottom: 18%; right: -6%; animation-delay: -2s; max-width: 230px; }
.f-ai img { width: 40px; height: auto; flex: none; }
.f-streak { top: 6%; right: 4%; padding: 6px 14px; font-size: .85rem; animation-delay: -3.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* 数字 */
.stats-wrap { margin-top: -64px; position: relative; z-index: 2; }
.stats {
  list-style: none; margin: 0; padding: 30px 20px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.stats li { text-align: center; padding: 6px 12px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 900; color: var(--teal-deep); line-height: 1.2; }
.stats strong small { font-size: .5em; margin-left: 2px; }
.stats span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.55; margin-top: 6px; }
.stat-main strong {
  font-size: clamp(2.3rem, 4.4vw, 3.1rem);
  background: linear-gradient(135deg, var(--sun) 0%, #e88a3c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* セクション共通 */
.section { padding: 110px 0; }
.tint { background: linear-gradient(180deg, var(--teal-pale) 0%, #f4fbf8 100%); }

/* はぴトレとは */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.media {
  margin-top: 28px; display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 20px 8px 8px; text-decoration: none; color: var(--ink); font-size: .9rem;
  box-shadow: 0 4px 14px rgba(31, 95, 83, .06); transition: box-shadow .2s, transform .2s;
}
.media:hover { color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.media-tag { background: var(--sun-pale); color: #9a6614; font-size: .76rem; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.arrow { color: var(--teal-deep); margin-left: 6px; }

.note {
  position: relative; background: #fffdf6; border-radius: 22px; padding: 32px 30px 40px;
  box-shadow: var(--shadow-lg); transform: rotate(-2deg);
  background-image: repeating-linear-gradient(180deg, transparent 0, transparent 43px, #efe7d4 43px, #efe7d4 44px);
  background-position: 0 70px;
}
.note::before {
  content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(3deg);
  width: 110px; height: 26px; background: rgba(140, 207, 192, .7); border-radius: 4px;
}
.note-date { font-weight: 900; color: var(--teal-deep); margin: 0 0 12px; }
.note ol { margin: 0; padding-left: 1.4em; font-size: 1.02rem; line-height: 44px; }
.note li::marker { color: var(--sun); font-weight: 900; }
.note-bird { position: absolute; width: 86px; right: -20px; bottom: -34px; transform: rotate(2deg) scaleX(-1); }

/* 使い方 */
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 960px; margin: 0 auto 88px; }
.step:last-child { margin-bottom: 0; }
.step.rev .step-visual { order: 2; }
.step-visual { position: relative; display: flex; justify-content: center; padding: 32px 0; }
.step-visual::before {
  content: ""; position: absolute; inset: 0 8%; border-radius: 48px;
  background: linear-gradient(160deg, #ffffff 0%, var(--c, #d6efe7) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.v1 { --c: #cdeee3; }
.v2 { --c: var(--sun-pale); }
.v3 { --c: var(--lav); }
.v4 { --c: var(--peach); }
.step-visual .phone { width: 240px; }
.step-no { display: flex; align-items: baseline; gap: 10px; color: var(--teal-deep); font-weight: 700; letter-spacing: .14em; font-size: .8rem; margin-bottom: 8px; }
.step-no b {
  font-size: 3.4rem; line-height: 1; letter-spacing: 0; font-weight: 900;
  background: linear-gradient(135deg, var(--mint), var(--teal-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-text h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.note-s {
  display: inline-block; font-size: .86rem; color: var(--teal-dark);
  background: rgba(255, 255, 255, .8); border: 1px dashed var(--mint); border-radius: 12px; padding: 4px 14px;
}

.screen-card {
  position: relative; margin: 0; width: min(360px, 84%);
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); transform: rotate(-1.5deg);
}
.rev .screen-card { transform: rotate(1.5deg); }
.screen-card figcaption {
  background: var(--teal); color: #fff; font-weight: 700; font-size: .9rem; padding: 10px 18px;
}
.screen-card img { width: 100%; }
.step-visual.v3 { padding: 56px 0; }
.step-visual .overlay { position: absolute; width: 250px; right: 0; bottom: 12%; transform: rotate(-3deg); z-index: 2; }
.step-visual .overlay figcaption { font-size: .78rem; padding: 7px 14px; }
.personas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.personas li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px; font-size: .86rem; font-weight: 700; color: var(--teal-dark); box-shadow: 0 2px 6px rgba(31, 95, 83, .06); }
.personas li:last-child { background: none; border-style: dashed; color: var(--muted); font-weight: 500; box-shadow: none; }

/* 心理学的な背景 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px 32px; box-shadow: 0 2px 0 rgba(221, 233, 228, .6);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--mint), var(--teal)); }
.card:nth-child(2)::before { background: linear-gradient(90deg, #f7c263, #e88a3c); }
.card:nth-child(3)::before { background: linear-gradient(90deg, #f6b4a0, #e98b9e); }
.card-no { position: absolute; top: 18px; right: 24px; font-size: 3rem; font-weight: 900; color: var(--teal-pale); line-height: 1; }
.card-icon { position: relative; width: 56px; height: 56px; border-radius: 18px; background: var(--teal-pale); color: var(--teal-deep); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 28px; height: 28px; }
.card:nth-child(2) .card-icon { background: var(--sun-pale); color: #c98717; }
.card:nth-child(3) .card-icon { background: #ffeae4; color: #d06a55; }
.card p { font-size: .94rem; margin: 0; }

/* ダウンロード */
.cta {
  position: relative; overflow: hidden; padding: 110px 0; text-align: center; color: #fff;
  background:
    radial-gradient(40% 60% at 10% 20%, rgba(255, 255, 255, .18), transparent 70%),
    radial-gradient(40% 60% at 90% 90%, rgba(242, 178, 76, .35), transparent 70%),
    linear-gradient(150deg, #6cc3ae 0%, var(--teal-deep) 100%);
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 22px 22px;
}
.cta-inner { position: relative; z-index: 1; max-width: 820px; }
.cta h2 { color: #fff; }
.cta p { opacity: .95; }
.cta .eyebrow::before, .cta .eyebrow::after { background: #fff; }
.cta .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; }
.cta-bird { width: 110px; margin: 0 auto 10px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .15)); animation: bob 4s ease-in-out infinite; }
.cta .store-web { background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }

/* お問い合わせ */
.contact {
  text-align: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 48px 28px; box-shadow: var(--shadow);
}
.contact .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--sun); }
.mail { font-size: 1.3rem; font-weight: 700; }
.social { display: flex; justify-content: center; gap: 14px; margin-top: 20px; }
.social a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-pale); color: var(--teal-deep); transition: background .2s, color .2s; }
.social a:hover { background: var(--teal); color: #fff; }
.social svg { width: 22px; height: 22px; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 40px; text-align: center; font-size: .85rem; color: var(--muted); }
.site-footer .brand { margin-bottom: 10px; font-size: 1rem; }
.site-footer .brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-footer p { margin: 0 0 .3em; }
.site-footer p a { color: var(--muted); margin: 0 .6em; }
.copy { font-size: .78rem; }

/* ふわっと表示 */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .note.reveal.in { transform: rotate(-2deg); }

@media (max-width: 960px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 10px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 18px 0; }
  .stat-main { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 18px !important; }
  .stats li:nth-child(2) { border-left: 0; }
  .stats li { padding: 6px 4px; }
  .note { max-width: 420px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .site-header .btn-sm { margin-left: auto; }
  .hero { padding: 40px 0 100px; }
  .section, .cta { padding: 80px 0; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { justify-content: center; }
  .phone-lg { width: 240px; }
  .hero-visual::before { width: 300px; height: 300px; }
  .f-mood { left: 0; top: 10%; }
  .f-ai { right: 0; bottom: 8%; max-width: 200px; font-size: .82rem; }
  .f-streak { right: 2%; top: 2%; }
  .step, .step.rev { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .step.rev .step-visual { order: 0; }
  .step-visual .phone { width: 210px; }
  .step-visual .overlay { width: 190px; right: -2%; bottom: 8%; }
  .stats strong { font-size: 1.35rem; }
  .stats .stat-main strong { font-size: 2.5rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat-years { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats span { font-size: .72rem; }
  .head { margin-bottom: 40px; }
  .note-bird { right: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
