/* p-doom — public site. Brand colors mirror ios/DopaDopa/Views/Components.swift (Palette). */
:root {
  color-scheme: light;
  --ink: #16121a;
  --ink-soft: #4b4250;
  --mute: #6f6574;
  --pink: #c81058;
  --pink-deep: #a30c47;
  --coral: #ff7554;
  --petal: #fff2f7;
  --peach: #fff0e3;
  --lavender: #b8a8ff;
  --cobalt: #2e45e0;
  --paper: #fffbfc;
  --card: #ffffff;
  --line: rgba(22, 18, 26, 0.09);
  --line-strong: rgba(22, 18, 26, 0.16);
  --grad: linear-gradient(100deg, var(--pink) 0%, #e8305f 45%, var(--coral) 100%);
  --f-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --f-accent: "Fraunces", "Times New Roman", serif;
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 24px 60px -24px rgba(163, 12, 71, 0.28),
    0 8px 20px -12px rgba(22, 18, 26, 0.18);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Soft atmosphere: blurred petals + fine grain, fixed behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  background:
    radial-gradient(38vmax 32vmax at 88% 6%, rgba(184, 168, 255, 0.28), transparent 70%),
    radial-gradient(34vmax 30vmax at 4% 38%, rgba(255, 117, 84, 0.14), transparent 70%),
    radial-gradient(40vmax 34vmax at 70% 92%, rgba(255, 190, 214, 0.34), transparent 70%),
    var(--paper);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.2 0 0 0 0 0.3 0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

a {
  color: var(--pink);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--pink-deep);
}

:focus-visible {
  outline: 3px solid rgba(200, 16, 88, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 252, 0.72);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 6px 16px -6px rgba(200, 16, 88, 0.55);
}

.wordmark {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.06em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 2px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: rgba(200, 16, 88, 0.07);
  color: var(--pink);
}

.site-nav .nav-pill {
  margin-left: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
}

.site-nav .nav-pill:hover {
  background: var(--pink);
  color: #fff;
}

@media (max-width: 860px) {
  .site-nav a:not(.nav-pill) {
    display: none;
  }
}

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--pink);
}

.eyebrow::before {
  content: "✦";
  font-style: normal;
  font-size: 12px;
}

.section {
  padding: clamp(72px, 11vw, 132px) 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.28;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.6vw, 17px);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-store {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 34px -16px rgba(22, 18, 26, 0.6);
}

.btn-store:hover {
  color: #fff;
}

span.btn-store {
  cursor: default;
}

span.btn-store:hover {
  transform: none;
}

.btn-store small {
  display: block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  opacity: 0.72;
  line-height: 1.2;
}

.btn-store span {
  display: block;
  line-height: 1.3;
  text-align: left;
}

.btn-store svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  color: var(--pink);
  border-color: rgba(200, 16, 88, 0.4);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(40px, 11vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin: 18px 0 26px;
}

.hero-copy h1 .line {
  display: block;
  white-space: nowrap;
}

@media (min-width: 901px) {
  .hero-copy h1 {
    font-size: clamp(54px, 5.8vw, 80px);
  }
}

.hero-copy h1 .mark {
  position: relative;
  white-space: nowrap;
}

.hero-copy h1 .mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.3em;
  bottom: 0.2em;
  height: 0.3em;
  z-index: -1;
  border-radius: 0.2em;
  background: linear-gradient(100deg, rgba(255, 117, 84, 0.34), rgba(200, 16, 88, 0.22));
  transform-origin: left center;
  animation: mark-in 0.9s 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes mark-in {
  from {
    transform: scaleX(0);
  }
}

.hero-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink-soft);
  margin: 0 0 34px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-note {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--mute);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.hero-note span::before {
  content: "●";
  color: var(--coral);
  font-size: 8px;
  vertical-align: 3px;
  margin-right: 6px;
}

/* Hero collage: post cards floating in "another world" */
.collage {
  position: relative;
  height: clamp(460px, 52vw, 640px);
  isolation: isolate;
}

.collage::before {
  content: "";
  position: absolute;
  inset: 8% 4% 6% 10%;
  z-index: -1;
  border-radius: 48% 52% 46% 54% / 54% 44% 56% 46%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), transparent 60%), var(--grad);
  opacity: 0.2;
  filter: blur(8px);
  animation: blob 14s ease-in-out infinite alternate;
}

@keyframes blob {
  to {
    border-radius: 56% 44% 52% 48% / 44% 56% 44% 56%;
    transform: rotate(8deg) scale(1.04);
  }
}

.post {
  position: absolute;
  background: var(--card);
  border-radius: 26px;
  padding: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 4px 10px;
}

.ring {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 2px;
  background: var(--grad);
}

.ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.post-head > div {
  min-width: 0;
}

.post-head b,
.post-head small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-head b {
  display: block;
  font-family: var(--f-display);
  font-size: 13px;
  line-height: 1.3;
}

.post-head small {
  display: block;
  font-size: 10px;
  color: var(--mute);
  line-height: 1.3;
}

.post-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--petal);
}

.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 4px 2px;
  font-size: 12px;
  color: var(--ink-soft);
}

.post-foot svg {
  width: 18px;
  height: 18px;
}

.post-foot .like {
  color: var(--pink);
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-weight: 700;
}

.post-caption {
  margin: 4px 4px 2px;
  font-size: 12.5px;
  line-height: 1.6;
}

.post-main {
  width: min(62%, 330px);
  left: 30%;
  top: 6%;
  transform: rotate(-3deg);
  z-index: 3;
  animation: float-a 7s ease-in-out infinite alternate, rise 0.9s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.post-back {
  width: min(44%, 238px);
  left: 0;
  top: 16%;
  transform: rotate(7deg);
  z-index: 2;
  animation: float-b 8s ease-in-out infinite alternate, rise 0.9s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.post-small {
  width: min(40%, 212px);
  right: -2%;
  bottom: 2%;
  transform: rotate(-9deg);
  z-index: 4;
  animation: float-b 9s ease-in-out infinite alternate-reverse, rise 0.9s 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.post-back .post-foot,
.post-small .post-foot {
  display: none;
}

@keyframes float-a {
  to {
    translate: 0 -12px;
  }
}

@keyframes float-b {
  to {
    translate: 0 10px;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 40px;
  }
}

.chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px -16px rgba(46, 69, 224, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.95);
  font-size: 12px;
  line-height: 1.35;
  animation: rise 0.9s 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.chip b {
  display: block;
  font-family: var(--f-display);
  font-size: 13px;
}

.chip em {
  display: block;
  font-family: var(--f-accent);
  font-size: 11px;
  color: var(--cobalt);
}

.chip-me {
  left: 6%;
  bottom: 18%;
}

.chip-me .ring {
  width: 42px;
  height: 42px;
}

.chip-stories {
  right: 2%;
  top: 0;
  padding: 8px 14px;
  gap: 0;
  animation-delay: 1s;
}

.chip-stories .ring {
  width: 30px;
  height: 30px;
  margin-left: -8px;
}

.chip-stories .ring:first-child {
  margin-left: 0;
}

.chip-stories span {
  margin-left: 10px;
  font-weight: 700;
}

.sparkle {
  position: absolute;
  z-index: 6;
  color: var(--coral);
  font-size: 26px;
  line-height: 1;
  animation: twinkle 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes twinkle {
  50% {
    opacity: 0.35;
    transform: scale(0.7) rotate(20deg);
  }
}

.ai-note {
  position: absolute;
  z-index: 6;
  left: 0;
  bottom: -30px;
  font-size: 11px;
  color: var(--mute);
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .collage {
    max-width: 520px;
    margin: 12px auto 24px;
    width: 100%;
    height: clamp(400px, 104vw, 540px);
  }
}

@media (max-width: 480px) {
  .post-main {
    left: 24%;
    width: 68%;
  }
  .post-back {
    width: 46%;
  }
  .post-small {
    width: 42%;
  }
  .chip-me {
    left: 0;
    bottom: 14%;
  }
  .chip-stories {
    display: none;
  }
  .post-caption {
    display: none;
  }
}

/* ---------- Theme marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-track ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marquee-track li {
  display: flex;
  align-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding-right: 36px;
}

.marquee-track li::after {
  content: "✦";
  margin-left: 36px;
  font-size: 0.6em;
  color: var(--coral);
}

.marquee-track li:nth-child(even) {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--pink);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 30px 28px 32px;
  box-shadow: 0 20px 50px -34px rgba(22, 18, 26, 0.35);
}

.step:nth-child(2) {
  transform: translateY(28px);
}

.step:nth-child(3) {
  transform: translateY(56px);
}

.step-num {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 300;
  font-size: 64px;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin: 18px 0 10px;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.step-visual {
  display: flex;
  margin-top: 22px;
  gap: 8px;
}

.step-visual img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--petal);
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step:nth-child(n) {
    transform: none;
  }
}

/* ---------- Themes ---------- */
.themes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.theme {
  grid-column: span 2;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 26px 24px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.theme h3 {
  font-family: var(--f-display);
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.theme p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.theme .en {
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--f-accent);
  font-style: italic;
  font-size: 14px;
  color: var(--mute);
}

.theme-photo {
  grid-column: span 3;
  min-height: 340px;
  color: #fff;
  border: 0;
}

.theme-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-photo:hover img {
  transform: scale(1.04);
}

.theme-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 10, 20, 0) 30%, rgba(22, 10, 20, 0.55) 62%, rgba(22, 10, 20, 0.9));
}

.theme-photo h3,
.theme-photo p {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.theme-photo > :not(img) {
  position: relative;
  z-index: 1;
}

.theme-photo p,
.theme-photo .en {
  color: rgba(255, 255, 255, 0.86);
}

.theme-photo .en {
  position: absolute;
  padding: 2px 12px;
  margin: -2px 0 0 -8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.theme-pair {
  background: linear-gradient(150deg, #fff, var(--petal));
}

.theme-free {
  background: linear-gradient(150deg, #fff, #eef1ff);
}

.theme-band {
  background: linear-gradient(150deg, #fff, var(--peach));
}

.theme .glyph {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 64px;
  line-height: 1;
  opacity: 0.9;
  font-family: var(--f-accent);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 900px) {
  .themes {
    grid-template-columns: 1fr 1fr;
  }
  .theme,
  .theme-photo {
    grid-column: span 2;
  }
  .theme-photo {
    min-height: 300px;
  }
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: 0 18px 40px -32px rgba(22, 18, 26, 0.4);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--petal);
  color: var(--pink);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-family: var(--f-display);
  font-size: 18px;
  margin: 0 0 6px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ---------- Safety (dark band) ---------- */
.band-dark {
  background: #17111b;
  color: #f7eff4;
  border-radius: clamp(28px, 5vw, 56px);
  margin: 0 clamp(8px, 1.5vw, 20px);
  overflow: hidden;
  position: relative;
}

.band-dark::before {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  right: -24vmax;
  top: -30vmax;
  background: radial-gradient(closest-side, rgba(200, 16, 88, 0.45), transparent);
  pointer-events: none;
}

.band-dark .section-head p {
  color: rgba(247, 239, 244, 0.72);
}

.band-dark .eyebrow {
  color: #ff9a82;
}

.safety {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.safety li {
  list-style: none;
  background: #17111b;
  padding: 28px 26px 30px;
}

.safety {
  padding: 0;
  margin: 0;
}

.safety h3 {
  font-family: var(--f-display);
  font-size: 18px;
  margin: 0 0 8px;
  color: #fff;
}

.safety p {
  margin: 0;
  font-size: 14px;
  color: rgba(247, 239, 244, 0.72);
}

.safety .k {
  font-family: var(--f-accent);
  font-style: italic;
  color: #ff9a82;
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
}

.band-dark .more {
  margin-top: 28px;
  position: relative;
}

.band-dark a {
  color: #ffb3a1;
}

@media (max-width: 900px) {
  .safety {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}

.price-card h3 {
  font-family: var(--f-display);
  font-size: 20px;
  margin: 0 0 4px;
}

.price-card > p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.price-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px dashed var(--line-strong);
  font-size: 15px;
}

.price-rows li:first-child {
  border-top: 0;
}

.price-rows strong {
  font-family: var(--f-display);
  font-size: 18px;
  white-space: nowrap;
}

.price-rows small {
  display: block;
  font-size: 12px;
  color: var(--mute);
  line-height: 1.5;
}

.plans {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.plan h3 {
  font-family: var(--f-display);
  font-size: 19px;
  margin: 0 0 12px;
}

.plan .price {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 38px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan .price small {
  font-size: 14px;
  font-weight: 700;
  color: var(--mute);
  margin-left: 4px;
  letter-spacing: 0;
}

.plan ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-soft);
}

.plan li {
  padding-left: 22px;
  position: relative;
  margin-top: 6px;
}

.plan li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-size: 12px;
}

.plan-featured {
  background: var(--grad);
  color: #fff;
  border: 0;
  box-shadow: 0 28px 60px -30px rgba(200, 16, 88, 0.7);
}

.plan-featured .price small,
.plan-featured ul {
  color: rgba(255, 255, 255, 0.86);
}

.plan-featured li::before {
  color: #fff;
}

.plan-packs .price-rows {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.plan-packs .price-rows li {
  padding: 9px 0;
  margin: 0;
}

.plan-packs .price-rows li::before {
  content: none;
}

.fine {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--mute);
}

@media (max-width: 900px) {
  .pricing,
  .plans {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 4px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 18px);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--petal);
  color: var(--pink);
  font-family: var(--f-body);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 4px 24px;
  color: var(--ink-soft);
  font-size: 15px;
}

.faq .answer p {
  margin: 0 0 10px;
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Final CTA ---------- */
.cta {
  text-align: center;
  padding: clamp(80px, 12vw, 140px) 0;
}

.cta h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 68px);
  letter-spacing: -0.05em;
  line-height: 1.2;
  margin: 18px 0 20px;
}

.cta p {
  color: var(--ink-soft);
  margin: 0 auto 34px;
  max-width: 32em;
}

.cta .hero-actions {
  justify-content: center;
}

.cta-faces {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.cta-faces .ring {
  width: 64px;
  height: 64px;
  margin: 0 -8px;
  box-shadow: 0 10px 24px -12px rgba(200, 16, 88, 0.6);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  font-size: 13px;
  color: var(--mute);
  background: rgba(255, 255, 255, 0.5);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.site-footer nav a:hover {
  color: var(--pink);
  text-decoration: underline;
}

.site-footer .brand {
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0;
}

/* ---------- Reveal on scroll (only when JS marks the page) ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), translate 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

/* ================================================================
   Document pages (terms / privacy / tokushoho / support)
   ================================================================ */
.doc-hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 44px);
}

.doc-hero h1,
.section-head h2,
.cta h2 {
  text-wrap: balance;
}

.doc-hero h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(32px, 5.4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin: 14px 0 14px;
}

.doc-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 13px;
  color: var(--mute);
  margin: 0;
}

.doc-hero .lead {
  max-width: 44em;
  color: var(--ink-soft);
  margin: 18px 0 0;
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(72px, 10vw, 120px);
}

.doc-toc {
  position: sticky;
  top: 92px;
  font-size: 13px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding-right: 6px;
}

.doc-toc summary {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  margin-bottom: 10px;
  color: var(--ink);
}

.doc-toc summary::-webkit-details-marker {
  display: none;
}

.doc-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line-strong);
}

.doc-toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--mute);
  text-decoration: none;
  line-height: 1.5;
}

.doc-toc a:hover,
.doc-toc a.is-current {
  color: var(--pink);
  border-left-color: var(--pink);
}

.doc {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -50px rgba(22, 18, 26, 0.45);
  padding: clamp(24px, 5vw, 56px);
  font-size: 15.5px;
  line-height: 2;
  min-width: 0;
}

.doc > :first-child {
  margin-top: 0;
}

.doc h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 22px);
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin: 3.2em 0 0.9em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.doc h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.doc h2 .no {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--pink);
  font-size: 0.9em;
  flex: none;
}

.doc h3 {
  font-family: var(--f-display);
  font-size: 16.5px;
  margin: 2em 0 0.5em;
}

.doc p {
  margin: 0 0 1em;
}

.doc ol,
.doc ul {
  margin: 0 0 1em;
  padding-left: 1.6em;
}

.doc li {
  margin: 0.3em 0;
}

.doc li::marker {
  color: var(--pink);
}

.doc ol.paren {
  list-style: none;
  padding-left: 0;
  counter-reset: paren;
}

.doc ol.paren > li {
  counter-increment: paren;
  padding-left: 2.4em;
  position: relative;
}

.doc ol.paren > li::before {
  content: "(" counter(paren) ")";
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: 700;
}

.doc .note {
  background: var(--petal);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14.5px;
  margin: 1.2em 0;
}

.doc .note p:last-child {
  margin-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.2em 0 1.6em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.75;
  min-width: 560px;
}

.doc table.kv {
  min-width: 0;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.doc tr:first-child th,
.doc tr:first-child td {
  border-top: 0;
}

.doc thead th {
  background: #fbf5f8;
  font-family: var(--f-display);
  font-size: 13px;
  white-space: nowrap;
}

.doc table.kv th {
  width: 30%;
  background: #fbf5f8;
  font-family: var(--f-display);
  font-weight: 700;
}

.doc table.kv tr:not(:first-child) th {
  border-top-color: rgba(22, 18, 26, 0.06);
}

@media (max-width: 640px) {
  .table-scroll:has(table:not(.kv)) {
    border: 0;
    overflow: visible;
  }
  .doc table:not(.kv) {
    min-width: 0;
  }
  .doc table:not(.kv) thead {
    display: none;
  }
  .doc table:not(.kv),
  .doc table:not(.kv) tbody,
  .doc table:not(.kv) tr,
  .doc table:not(.kv) td {
    display: block;
    width: 100%;
  }
  .doc table:not(.kv) tr {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
  }
  .doc table:not(.kv) td {
    border-top: 1px solid var(--line);
    padding: 10px 14px;
  }
  .doc table:not(.kv) td:first-child {
    border-top: 0;
    background: #fbf5f8;
    font-family: var(--f-display);
    font-weight: 700;
  }
  .doc table:not(.kv) td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--mute);
    line-height: 1.6;
  }
  .doc table.kv,
  .doc table.kv tbody,
  .doc table.kv tr,
  .doc table.kv th,
  .doc table.kv td {
    display: block;
    width: 100%;
  }
  .doc table.kv th {
    border-top: 1px solid var(--line);
    padding-bottom: 6px;
  }
  .doc table.kv td {
    border-top: 0;
    padding-top: 4px;
  }
  .doc table.kv tr:first-child th {
    border-top: 0;
  }
}

.doc .sign {
  margin-top: 3em;
  text-align: right;
  color: var(--ink-soft);
}

.doc-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.doc-related a {
  display: block;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
}

.doc-related a span {
  display: block;
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  color: var(--mute);
}

.doc-related a:hover {
  border-color: rgba(200, 16, 88, 0.35);
  color: var(--pink);
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 26px 28px;
  border-radius: var(--radius-md);
  background: var(--grad);
  color: #fff;
  margin: 0 0 2.4em;
}

.contact-card p {
  margin: 0;
  line-height: 1.7;
}

.contact-card strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.01em;
  word-break: break-all;
}

.contact-card .btn {
  background: #fff;
  color: var(--pink);
  min-height: 48px;
}

.doc .faq-list details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}

.doc .faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.doc .faq-list summary {
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 700;
  padding: 12px 28px 12px 0;
  position: relative;
  list-style: none;
  line-height: 1.6;
}

.doc .faq-list summary::-webkit-details-marker {
  display: none;
}

.doc .faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
  color: var(--pink);
  font-size: 20px;
  transition: transform 0.25s ease;
}

.doc .faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.doc .faq-list details > :not(summary) {
  margin-left: 0;
}

.doc .faq-list details > p:last-child,
.doc .faq-list details > ol:last-child,
.doc .faq-list details > ul:last-child {
  margin-bottom: 14px;
}

.path {
  display: inline;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(255, 117, 84, 0.22) 62%);
}

@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .doc-toc {
    position: static;
    max-height: none;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
  }
  .doc-toc summary {
    margin: 0;
  }
  .doc-toc summary::after {
    content: "を開く";
    color: var(--mute);
    font-weight: 500;
    margin-left: 6px;
    font-size: 12px;
  }
  .doc-toc[open] summary::after {
    content: "を閉じる";
  }
  .doc-toc[open] summary {
    margin-bottom: 10px;
  }
}

/* 404 */
.lost {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}

.lost .big {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(90px, 18vw, 180px);
  line-height: 1;
}

.lost h1 {
  font-family: var(--f-display);
  font-size: clamp(24px, 4vw, 34px);
  margin: 10px 0 12px;
}

.lost p {
  color: var(--ink-soft);
  margin: 0 0 28px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    translate: none;
  }
}

@media print {
  body::before,
  body::after,
  .site-header,
  .site-footer,
  .doc-toc,
  .doc-related {
    display: none;
  }
  .doc-layout {
    display: block;
  }
  .doc {
    box-shadow: none;
    border: 0;
    padding: 0;
  }
}

/* Legal pages in English: the Japanese original is the version that governs. */
.translation-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(243, 39, 131, 0.06);
  border: 1px solid rgba(243, 39, 131, 0.16);
  font-size: 0.92rem;
  line-height: 1.8;
}
