/* =========================================================
   ZEN IKE — calm pond style (shared by index + privacy)
   Slow fades only. Nothing bounces or flashes.
   ========================================================= */

:root {
  --pond-deep: #0b3a40;
  --pond: #0f4a4f;
  --pond-light: #16626a;
  --text: #ecfaf6;
  --soft: rgba(236, 250, 246, .72);
  --faint: rgba(236, 250, 246, .5);
  --line: rgba(236, 250, 246, .12);
  --card: rgba(6, 34, 38, .45);

  --orange: #f2782c;
  --warm: #ee9354;
  --gold: #e8b440;
  --cream: #f7f2e8;
  --ink: #202228;

  --glow: 0 0 18px rgba(236, 250, 246, .45), 0 0 2px rgba(236, 250, 246, .6);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--text);
  background-color: var(--pond-deep);
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(127, 220, 200, .10), transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 55%, rgba(127, 220, 200, .07), transparent 70%),
    linear-gradient(180deg, var(--pond) 0%, var(--pond-deep) 55%, #082d32 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* soft drifting light on the water */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 30% 18% at 30% 30%, rgba(200, 255, 240, .05), transparent 70%),
    radial-gradient(ellipse 25% 15% at 70% 70%, rgba(200, 255, 240, .05), transparent 70%);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(4%, -3%); } }

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--warm); color: var(--ink); }

h1, h2, h3 { font-weight: 300; letter-spacing: .08em; line-height: 1.25; text-shadow: var(--glow); margin: 0; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: .06em; }
p { margin: 0 0 1em; }
.ja { color: var(--gold); font-weight: 300; }
.meaning { color: var(--faint); font-style: italic; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(8, 45, 50, .85), rgba(8, 45, 50, .55));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: .85rem; letter-spacing: .12em;
}
.topbar a { text-decoration: none; color: var(--soft); transition: color .6s; }
.topbar a:hover { color: var(--text); }
.topbar__brand { font-weight: 400; color: var(--text) !important; }
.topbar__brand span { color: var(--gold); margin-left: .3em; }
.topbar nav { display: flex; gap: clamp(14px, 3vw, 28px); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(72px, 11vw, 128px) 0 0; }
.section__intro { max-width: 640px; }
.section__intro h2 { margin-bottom: 16px; }
.split h2 { margin-bottom: 8px; }
.section__intro p { color: var(--soft); }
.eyebrow {
  margin: 0 0 12px;
  font-size: .8rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase;
  color: var(--warm);
}
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split--flip > :first-child { order: 2; }

/* ---------- Phone frame (crops status bar + home bar) ---------- */
.phone {
  position: relative;
  width: 100%; max-width: 300px; margin: 0 auto;
  aspect-ratio: 891 / 1830;
  overflow: hidden;
  border-radius: 30px;
  border: 6px solid #0a2125;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 0, .45), 0 0 60px rgba(127, 220, 200, .12);
  background: var(--pond);
}
.phone img { width: 100%; height: auto; margin-top: -12.35%; }
.phone--full { aspect-ratio: 412 / 915; }
.phone--full img { margin-top: 0; }

/* ---------- Play button ----------
   The Play Store link is set in includes/config.php. */
.play {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(8, 30, 34, .75);
  border: 1px solid rgba(236, 250, 246, .35);
  box-shadow: 0 0 24px rgba(127, 220, 200, .12);
  transition: background .8s, border-color .8s, box-shadow .8s;
}
.play:hover { background: rgba(8, 30, 34, .95); border-color: var(--text); box-shadow: 0 0 30px rgba(127, 220, 200, .25); }
.play svg { width: 26px; height: 26px; flex: none; }
.play span { display: flex; flex-direction: column; line-height: 1.15; }
.play small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.play small::before { content: "Get it on"; }
.play b { font-weight: 400; font-size: 1.15rem; letter-spacing: .04em; }
.play[href="#play-soon"] { cursor: default; }
.play[href="#play-soon"] small::before { content: "Coming soon to"; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.hero__presents {
  margin: 0 0 18px;
  font-size: .95rem; letter-spacing: .18em; color: var(--soft);
  text-shadow: var(--glow);
}
.hero__presents i { display: block; font-size: .8rem; letter-spacing: .35em; opacity: .7; margin-top: 2px; }
.hero__icon { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.hero h1 { font-size: clamp(3rem, 10vw, 5.4rem); letter-spacing: .12em; font-weight: 200; }
.hero__ike { margin: 4px 0 22px; font-size: 1rem; letter-spacing: .2em; color: var(--faint); }
.hero__ike .ja { font-size: 1.3rem; margin-right: .4em; }
.hero__tagline { font-size: clamp(1.2rem, 2.6vw, 1.5rem); letter-spacing: .04em; margin-bottom: 10px; }
.hero__line { color: var(--soft); max-width: 460px; margin-bottom: 28px; }
.hero__facts { margin: 18px 0 0; font-size: .85rem; letter-spacing: .14em; color: var(--faint); }

/* ---------- Life cycle ---------- */
.life {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  position: relative;
}
.life::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 250, 246, .35), transparent);
}
.life li { text-align: center; position: relative; }
.life__dot {
  display: grid; place-items: center;
  width: 68px; height: 68px; margin: 0 auto 14px;
}
.life__dot i { display: block; border-radius: 50%; }
.life li:nth-child(1) i { width: 14px; height: 14px; background: var(--cream); box-shadow: 0 0 12px rgba(247, 242, 232, .6); }
.life li:nth-child(2) i { width: 22px; height: 22px; background: rgba(247, 242, 232, .25); border: 1px solid rgba(247, 242, 232, .5); }
.life li:nth-child(3) i { width: 32px; height: 32px; background: radial-gradient(circle at 35% 40%, var(--warm), rgba(247, 242, 232, .5)); }
.life li:nth-child(4) i { width: 44px; height: 44px; background: radial-gradient(circle at 30% 35%, var(--orange) 0 35%, var(--cream) 36% 60%, var(--orange) 61%); box-shadow: 0 0 18px rgba(242, 120, 44, .35); }
.life li:nth-child(5) i { width: 54px; height: 54px; background: radial-gradient(circle at 60% 40%, var(--gold) 0 30%, var(--cream) 31% 70%, rgba(232, 180, 64, .8) 71%); box-shadow: 0 0 22px rgba(232, 180, 64, .35); }
.life li:nth-child(6) i { width: 60px; height: 60px; background: radial-gradient(circle, rgba(11, 58, 64, .2), rgba(6, 30, 34, .95)); border: 1px solid var(--line); }
.life b { display: block; font-weight: 400; letter-spacing: .1em; }
.life span { display: block; font-size: .85rem; color: var(--faint); line-height: 1.4; }
.life-note {
  margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.life-note p { margin: 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--soft); font-size: .95rem; }
.life-note b { display: block; font-weight: 400; color: var(--text); margin-bottom: 4px; }

/* ---------- One of a kind ---------- */
.blend { display: flex; align-items: center; gap: 14px; margin: 28px 0 32px; flex-wrap: wrap; color: var(--faint); }
.swatch { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; letter-spacing: .1em; }
.swatch i { width: 46px; height: 46px; border-radius: 50%; display: block; border: 1px solid var(--line); }
.names { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.name {
  padding: 18px 16px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.name .ja { display: block; font-size: 1.8rem; line-height: 1.2; text-shadow: 0 0 14px rgba(232, 180, 64, .35); }
.name b { display: block; font-weight: 400; letter-spacing: .12em; margin-top: 6px; }
.name .meaning { font-size: .9rem; }

/* ---------- Touch the water ---------- */
.touch-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.touch-list li { display: flex; gap: 16px; align-items: flex-start; }
.touch-list .ico {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card);
}
.touch-list svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.touch-list b { display: block; font-weight: 400; }
.touch-list span { color: var(--soft); font-size: .95rem; }
.phone--touch { cursor: pointer; touch-action: manipulation; }
.phone--touch canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.touch-hint { text-align: center; margin-top: 14px; font-size: .85rem; letter-spacing: .18em; color: var(--faint); }

/* ---------- Chill ---------- */
.chill { text-align: center; }
.chill .section__intro { margin: 0 auto; }
.breath {
  position: relative; width: min(300px, 70vw); aspect-ratio: 1; margin: 48px auto 24px;
  display: grid; place-items: center;
}
.breath__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 250, 246, .22), rgba(127, 220, 200, .08) 60%, transparent 72%);
  box-shadow: 0 0 60px rgba(127, 220, 200, .25), inset 0 0 40px rgba(236, 250, 246, .12);
  border: 1px solid rgba(236, 250, 246, .25);
  transform: scale(.6);
  animation: breathe 10s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1); } }
.breath__words { position: relative; display: grid; font-size: 1.1rem; letter-spacing: .25em; text-shadow: var(--glow); }
.breath__words span { grid-area: 1 / 1; animation: word-in 10s ease-in-out infinite; }
.breath__words span:last-child { animation-name: word-out; }
@keyframes word-in { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes word-out { 0%, 45% { opacity: 0; } 50%, 95% { opacity: 1; } 100% { opacity: 0; } }
.chill__note { color: var(--faint); font-size: .9rem; letter-spacing: .12em; }

.sounds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 720px; margin: 56px auto 0; text-align: left; }
.sound { padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.sound h3 { margin-bottom: 6px; }
.sound p { margin: 0; color: var(--soft); font-size: .95rem; }
.slider { height: 4px; border-radius: 4px; background: rgba(236, 250, 246, .15); margin-top: 14px; position: relative; }
.slider i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--orange); }
.slider i::after { content: ""; position: absolute; right: -7px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); }

/* ---------- Themes ---------- */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.theme { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.theme i { flex: none; width: 52px; height: 52px; border-radius: 14px; position: relative; overflow: hidden; }
.theme b { display: block; font-weight: 400; }
.theme span { font-size: .88rem; color: var(--soft); line-height: 1.4; display: block; }
.theme--classic i { background: linear-gradient(135deg, #1f7f78, #0f4a4f); }
.theme--blossom i { background: linear-gradient(135deg, #1f7f78, #0f4a4f); }
.theme--blossom i::before { content: ""; position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: #f6c4d6; }
.theme--blossom i::after { content: ""; position: absolute; left: 12px; bottom: 12px; width: 8px; height: 8px; border-radius: 50%; background: #f6c4d6; }
.theme--snow i { background: linear-gradient(135deg, #f4f8fb 45%, #6a9fb3 46%, #2f6a80); }
.theme--lantern i { background: #141a3a; }
.theme--lantern i::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle, var(--gold) 0 35%, #6b4a2a 36% 100%); box-shadow: 0 0 12px rgba(232, 180, 64, .6); }
.extras { margin: 24px 0 0; color: var(--soft); }
.extras b { font-weight: 400; color: var(--text); }

/* ---------- Made to be calm ---------- */
.calm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.calm div { padding: 24px 20px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.calm svg { width: 30px; height: 30px; margin: 0 auto 12px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.calm b { display: block; font-weight: 400; letter-spacing: .06em; }
.calm span { font-size: .88rem; color: var(--faint); }

/* ---------- Closing + footer ---------- */
.closing { text-align: center; padding-top: clamp(80px, 12vw, 140px); }
.closing h2 { margin-bottom: 14px; }
.closing p { color: var(--soft); }
.closing .phone { max-width: 220px; margin: 40px auto 36px; }
.footer {
  margin-top: clamp(64px, 10vw, 110px);
  padding: 32px 16px 40px;
  border-top: 1px solid var(--line);
  text-align: center; font-size: .85rem; letter-spacing: .1em; color: var(--faint);
}
.footer p { margin: 0 0 8px; }
.footer a { color: var(--soft); text-decoration-color: rgba(236, 250, 246, .3); text-underline-offset: 3px; }
.footer a:hover { color: var(--text); }

/* ---------- Slow fade-in on scroll ---------- */
.fade { opacity: 0; transition: opacity 1.6s ease; }
.fade.is-visible { opacity: 1; }

/* ---------- Privacy page ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) clamp(16px, 4vw, 40px) 0; }
.doc h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 8px; }
.doc .updated { color: var(--faint); font-size: .9rem; letter-spacing: .1em; margin-bottom: 36px; }
.doc h2 { font-size: 1.3rem; letter-spacing: .06em; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--soft); }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); font-weight: 400; }
.summary { padding: 22px 24px; background: var(--card); border: 1px solid rgba(232, 180, 64, .35); border-radius: 18px; }
.summary p { margin: 0 0 6px; }
.summary ul { margin: 10px 0 0; }
.todo { background: rgba(242, 120, 44, .2); color: var(--cream); padding: 1px 6px; border-radius: 4px; border: 1px dashed var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .hero .phone { max-width: 240px; }
  .life { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .life::before { display: none; }
  .life-note { grid-template-columns: 1fr; }
  .calm { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .topbar { font-size: .78rem; letter-spacing: .08em; }
  .names { grid-template-columns: 1fr; }
  .themes, .sounds { grid-template-columns: 1fr; }
  .calm { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero__line { margin-left: auto; margin-right: auto; }
  .hero__icon { margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade { opacity: 1; }
  .breath__ring { transform: scale(.85); }
  .breath__words span:last-child { opacity: 0; }
}
