/* ==========================================================
   ピクレット - Pixel Islet — LP
   クリーム基調のコージー配色 + ドットフォントのアクセント
   ========================================================== */

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

:root {
  /* アプリアイコン由来のパレット（空色＋モスグリーン＋あたたかいクリーム） */
  --bg:        #FBF6EA;
  --bg-soft:   #F4ECD9;
  --surface:   #FFFFFF;
  --surface-2: #FFFDF7;
  --line:      rgba(46, 36, 20, 0.10);

  --text:      #2E2416;
  --text-sub:  rgba(46, 36, 22, 0.66);
  --text-dim:  rgba(46, 36, 22, 0.44);

  --mint:      #3F8A57;   /* 深いモスグリーン（見出し・主要アクセント） */
  --mint-hi:   #5FAE79;
  --mint-soft: #C9E8D2;
  --sky:       #4FA7D6;   /* アイコン背景の空色 */
  --coral:     #E27A54;   /* 温かいコーラル（CTA） */
  --pink:      #E98FA0;   /* ほっぺピンク */
  --amber:     #DFA23A;   /* コインゴールド */

  --ink-frame: #21261D;   /* スマホ実機フレーム（アプリのダーク画面を引き立てる） */

  --font-head:  "M PLUS Rounded 1c", "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --font-body:  "Noto Sans JP", "M PLUS Rounded 1c", sans-serif;
  --font-pixel: "DotGothic16", "Noto Sans JP", monospace;

  --radius: 24px;
  --header-h: 68px;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

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

html[lang="en"] body { line-height: 1.7; }
html[lang="en"] .hero-title,
html[lang="en"] .section-title,
html[lang="en"] .cta-title { letter-spacing: 0; }

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

.nb { white-space: nowrap; display: inline-block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 246, 234, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand img {
  width: 36px; height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(46, 36, 20, 0.18);
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-toggle {
  display: flex;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px;
}
.lang-btn {
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: none;
  border: none;
  border-radius: 99px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}
.lang-btn:hover { color: var(--text-sub); }
.lang-btn.active {
  color: #fff;
  background: var(--mint);
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(95, 174, 121, 0.14), transparent 60%),
    linear-gradient(180deg, #FDF9EF 0%, var(--bg) 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.45;
}
.orb-mint  { width: 400px; height: 400px; background: rgba(95, 174, 121, 0.45); top: -110px; right: -90px; }
.orb-sky   { width: 340px; height: 340px; background: rgba(79, 167, 214, 0.32); bottom: -90px; left: -120px; }
.orb-pink  { width: 260px; height: 260px; background: rgba(233, 143, 160, 0.28); top: 38%; left: 46%; }

/* きらきらドット装飾（アイコンのスパークル由来） */
.spark {
  position: absolute;
  color: var(--amber);
  opacity: 0.8;
  font-size: 1.1rem;
  pointer-events: none;
  animation: twinkle 2.6s ease-in-out infinite;
}
.spark::before { content: "✦"; }
.spark-1 { top: 18%; left: 8%;  animation-delay: 0s; color: var(--mint-hi); }
.spark-2 { top: 62%; left: 4%;  animation-delay: 0.6s; font-size: 0.8rem; }
.spark-3 { top: 12%; right: 10%; animation-delay: 1.1s; font-size: 0.9rem; color: var(--pink); }
.spark-4 { top: 70%; right: 6%; animation-delay: 1.7s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%      { opacity: 0.95; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .spark { animation: none; opacity: 0.6; }
}

.hero-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mint);
  background: var(--mint-soft);
  border-radius: 99px;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 1.1rem + 2.8vw, 2.9rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
  color: var(--text);
}
.hero-title .accent { color: var(--mint); }

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.06rem);
  color: var(--text-sub);
  max-width: 34em;
  margin-bottom: 34px;
}

/* ストアバッジ */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.store-badges-center { justify-content: center; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink-frame);
  color: #F6F4EC;
  border-radius: 14px;
  padding: 10px 22px 10px 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(63, 138, 87, 0.24);
}
.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.store-badge small { font-size: 0.62rem; font-weight: 500; opacity: 0.7; }
.store-badge strong { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.01em; }

.store-badge.is-disabled {
  background: var(--surface);
  color: var(--text-dim);
  border: 1px solid var(--line);
  cursor: default;
}
.store-badge.is-disabled:hover { transform: none; box-shadow: none; }

.hero-note {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* スマホモックアップ */
.hero-mock { display: flex; justify-content: center; position: relative; }

.phone-frame {
  position: relative;
  width: min(280px, 100%);
  max-width: 100%;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #34402F, var(--ink-frame));
  border: 1px solid rgba(46, 36, 20, 0.12);
  box-shadow:
    0 30px 70px rgba(46, 36, 20, 0.22),
    0 0 80px rgba(95, 174, 121, 0.14);
}
.phone-frame img {
  width: 100%;
  border-radius: 35px;
}
.phone-sm { width: min(250px, 100%); }
.phone-xs { width: min(212px, 100%); margin: 26px auto 0; }

/* ---------- セクション共通 ---------- */
.section { padding: 92px 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section-label {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--coral);
  text-align: center;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-align: center;
  margin-bottom: 54px;
  color: var(--text);
}

/* ---------- 課題提起 → 解決 ---------- */
.problem { background: var(--bg-soft); }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 68px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.problem-icon { font-size: 1.7rem; display: block; margin-bottom: 16px; }
.problem-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.04rem;
  margin-bottom: 10px;
}
.problem-card p { font-size: 0.92rem; color: var(--text-sub); }

.solution {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 46px 32px;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(95, 174, 121, 0.14), transparent 70%),
    var(--surface);
  border: 1px solid rgba(95, 174, 121, 0.25);
}
.solution-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.3rem, 3.4vw, 1.65rem);
  color: var(--mint);
  margin-bottom: 20px;
}
.solution-body {
  font-size: 0.97rem;
  color: var(--text-sub);
  text-align: left;
}

/* ---------- 主要機能 ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
  padding: 42px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }

.feature-media { display: flex; justify-content: center; }

.feature-tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 99px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.tag-mint  { color: #2E6E45; background: var(--mint-soft); }
.tag-sky   { color: #1E6188; background: rgba(79, 167, 214, 0.18); }
.tag-coral { color: #A5502F; background: rgba(226, 122, 84, 0.16); }
.tag-amber { color: #8A6217; background: rgba(223, 162, 58, 0.18); }

.feature-copy h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.55;
  margin-bottom: 16px;
}
.feature-copy p {
  font-size: 0.95rem;
  color: var(--text-sub);
  max-width: 30em;
}

.feature-extra {
  margin-top: 54px;
  text-align: center;
}
.feature-extra h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.chips li {
  font-size: 0.86rem;
  color: var(--text-sub);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 20px;
}

/* ---------- 使い方 ---------- */
.how { background: var(--bg-soft); }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 26px 30px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.step .phone-xs { margin-top: auto; }
.step p { margin-bottom: 22px; }
.step-num {
  position: absolute;
  top: -16px;
  left: 26px;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(63, 138, 87, 0.35);
}
.step h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
  margin-bottom: 10px;
}
.step p { font-size: 0.92rem; color: var(--text-sub); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  cursor: pointer;
  line-height: 1.6;
}
.faq-arrow {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.faq-q[aria-expanded="true"] .faq-arrow { transform: rotate(225deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p {
  font-size: 0.91rem;
  color: var(--text-sub);
  padding: 0 24px 22px;
}

/* ---------- 最終CTA ---------- */
.cta {
  position: relative;
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(95, 174, 121, 0.16), transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 20%, rgba(233, 143, 160, 0.14), transparent 70%);
}
.cta .container { position: relative; }
.cta-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.4vw, 2.2rem);
  line-height: 1.6;
  margin-bottom: 18px;
}
.cta-sub {
  color: var(--text-sub);
  margin-bottom: 36px;
}

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 48px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-sub);
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--mint); }

.footer-disclaimer {
  font-size: 0.74rem;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 20px;
  text-align: left;
}
.footer-copy {
  font-family: var(--font-pixel);
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* ---------- スクロールフェードイン ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- フォーカス可視化 ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================
   レスポンシブ（モバイルファースト → 768px / 1024px）
   ========================================================== */
@media (min-width: 768px) {
  .hero { padding: calc(var(--header-h) + 84px) 0 104px; }
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }
  .hero-mock { justify-content: flex-end; }

  .problem-grid { grid-template-columns: repeat(3, 1fr); }

  .feature-row {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    padding: 62px 0;
  }
  .feature-row:nth-of-type(even) .feature-media { order: 2; }
  .feature-row:nth-of-type(even) .feature-copy  { order: 1; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }

  .brand-name { font-size: 1.05rem; }
}

@media (min-width: 1024px) {
  .section { padding: 116px 0; }
  .phone-frame { width: 300px; }
  .phone-sm { width: 270px; }
}

@media (max-width: 374px) {
  .brand-name { font-size: 0.82rem; }
  .store-badge { padding: 9px 16px 9px 14px; }
}
