:root {
  color-scheme: light dark;
  --purple: #6403de;
  --purple-deep: #3a0a8c;
  --gold: #ffc93c;
  --ink: #1f1235;
  --fg: #1f1235;
  --sub: #6e6284;
  --bg: #ffffff;
  --soft: #f1e9ff;
  --soft-edge: #dccbfb;
  --line: #e9e0fa;
  --link: #6403de;
  --footer: #1f1235;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f3effa;
    --sub: #a79fba;
    --bg: #17151e;
    --soft: #241f33;
    --soft-edge: #120f1a;
    --line: #332c47;
    --link: #c4a6ff;
    --footer: #0f0d15;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--link); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.nw { white-space: nowrap; }

/* 紫のヘッダー帯（全ページ共通） */
.top {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 80% at 85% 10%, #9b5cff 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 100%, #3d0aa0 0%, transparent 60%),
    var(--purple);
  padding-bottom: 40px;
}
.top::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: radial-gradient(#fff 1.2px, transparent 1.4px);
  background-size: 22px 22px;
}
.top::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 40px;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 24 C 200 56, 400 0, 600 22 S 1000 52, 1200 18 V48 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 24 C 200 56, 400 0, 600 22 S 1000 52, 1200 18 V48 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.top > * { position: relative; }
header.site { display: flex; align-items: center; justify-content: space-between; height: 68px; }
header.site .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; }
header.site .brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
header.site .pill { background: rgba(255,255,255,.16); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }

/* 見出し・ボタン */
.badge { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; transform: rotate(-3deg); }
.btn {
  display: inline-flex; align-items: center; height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 800; text-decoration: none; background: #fff; color: var(--purple);
  box-shadow: 0 6px 0 var(--purple-deep); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--purple-deep); }

/* ヒーロー（アプリ紹介ページ）。見出しの下にキャラのカードとガチャ子の絵 */
.hero { text-align: center; padding: 28px 0 8px; }
.hero h1 { font-size: clamp(30px, 5.4vw, 58px); line-height: 1.25; margin: 16px 0; font-weight: 800; letter-spacing: .01em; text-shadow: 0 4px 18px rgba(30,0,90,.35); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { opacity: .94; margin: 0 0 28px; }
.hero .note { font-size: 13px; opacity: .8; margin: 18px 0 0; }
.hero-art { display: block; width: min(1000px, 112%); height: auto; margin: 12px 50% 0; transform: translateX(-50%); }

/* セクション */
section { padding: 56px 0; }
section.tight { padding-top: 8px; }
section h2 { text-align: center; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.4; margin: 0 0 8px; font-weight: 800; }
section .sub { text-align: center; color: var(--sub); margin: 0 0 36px; }

/* ガチャ子の吹き出し */
.guide { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px auto 8px; max-width: 560px; }
.guide img { width: 104px; height: auto; flex: none; }
.guide p { position: relative; margin: 0; background: var(--soft); border-radius: 22px; padding: 14px 18px; font-size: 15px; }
.guide p::before { content: ""; position: absolute; left: -10px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left: 0; border-right: 11px solid var(--soft); }
.guide b { color: var(--link); }

/* できること：まとまりごとに、画面と説明を左右交互に並べる */
.group { margin-top: 56px; }
.group h3 { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 4px; font-size: clamp(20px, 3vw, 26px); color: var(--link); }
.group h3 .num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 18px; }
.group .sub { margin-bottom: 24px; }
.show { display: grid; grid-template-columns: minmax(130px, 42%) 1fr; gap: 20px; align-items: center; max-width: 760px; margin: 0 auto 36px; }
.show + .show { grid-template-columns: 1fr minmax(130px, 42%); }
.show + .show > .phone { order: 2; }
@media (min-width: 720px) {
  .show { grid-template-columns: 260px 1fr; gap: 56px; }
  .show + .show { grid-template-columns: 1fr 260px; }
}
.show .txt h4 { margin: 0 0 8px; font-size: clamp(19px, 3vw, 28px); line-height: 1.4; font-weight: 800; }
.show .txt h4 em { font-style: normal; color: var(--link); }
.show .txt p { margin: 0; color: var(--sub); font-size: clamp(14px, 1.8vw, 16px); }
.show .badge { margin-bottom: 8px; }
.phone { position: relative; margin: 0; padding: 3%; border-radius: 14% / 6.6%; background: #120c22; box-shadow: 0 18px 40px rgba(60,10,140,.28), 0 0 0 2px rgba(255,255,255,.18); }
.phone > img:first-child { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1304; object-fit: cover; object-position: top; border-radius: 12% / 5.6%; }
.phone .zoom { position: absolute; left: -12%; width: 124%; max-width: none; height: auto; border: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 14px 30px rgba(10,0,40,.5); }

/* 締めの呼びかけ */
.cta { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px; border-radius: 28px; color: #fff; text-align: center; background: linear-gradient(140deg, #7d2bff, var(--purple) 60%, var(--purple-deep)); }
.cta img { width: clamp(96px, 18vw, 150px); height: auto; flex: none; }
.cta .say { margin: 0 0 14px; font-weight: 800; font-size: clamp(16px, 2.6vw, 22px); line-height: 1.5; }
@media (min-width: 560px) { .sp-only { display: none; } }

.plans { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { border-radius: 28px; padding: 28px; border: 3px solid var(--soft); }
.plan.pro { position: relative; border: 0; color: #fff; background: linear-gradient(140deg, #7d2bff, var(--purple) 60%, var(--purple-deep)); }
.plan.pro::after { content: "おすすめ"; position: absolute; top: -12px; right: 20px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin: 0 0 2px; font-size: 20px; }
.plan ul { margin: 14px 0 0; padding: 0; list-style: none; }
.plan li { position: relative; padding: 6px 0 6px 28px; font-size: 15px; }
.plan li::before { content: "✦"; position: absolute; left: 4px; color: var(--link); }
.plan.pro li::before { color: var(--gold); }
.disclaimer { text-align: center; color: var(--sub); font-size: 13px; padding-bottom: 56px; margin: 0 auto; }

/* トップのアプリ一覧 */
.apps { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
@media (min-width: 720px) { .apps { grid-template-columns: repeat(auto-fit, minmax(340px, 400px)); justify-content: center; } }
.app-card { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 28px; background: var(--soft); color: var(--fg); text-decoration: none; transition: transform .15s; }
.app-card:hover { transform: translateY(-3px); }
.app-card img { width: 84px; height: 84px; border-radius: 22px; flex: none; }
.app-card b { display: block; font-size: 18px; color: var(--link); }
.app-card span { font-size: 14px; color: var(--sub); }
.contact { text-align: center; }
.contact a { font-weight: 800; font-size: 18px; }

/* 規約・ポリシーなどの文書ページ */
.pagehead { padding: 16px 0 40px; }
.pagehead h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.35; font-weight: 800; }
.pagehead .meta { margin: 8px 0 0; font-size: 13px; opacity: .85; }
.pagehead.lg { padding: 32px 0 56px; }
.pagehead.lg h1 { margin-top: 16px; font-size: clamp(30px, 4.8vw, 48px); }
.pagehead.lg .meta { font-size: 15px; }
main.doc { max-width: 760px; margin: 0 auto; padding: 24px 24px 72px; }
main.doc h2 { font-size: 1.2rem; line-height: 1.5; margin: 44px 0 10px; padding-left: 14px; border-left: 5px solid var(--link); border-radius: 2px; }
main.doc h3 { font-size: 1rem; margin: 24px 0 4px; color: var(--link); }
main.doc p, main.doc li { font-size: .97rem; }
main.doc .meta { color: var(--sub); font-size: .88rem; }
main.doc table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .92rem; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
main.doc th, main.doc td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
main.doc tr:first-child th, main.doc tr:first-child td { border-top: 0; }
main.doc th { width: 34%; font-weight: 700; background: var(--soft); }
nav.links { display: flex; flex-wrap: wrap; gap: 10px; }

/* フッター */
footer.site { background: var(--footer); color: #cbbfe0; padding: 36px 0 40px; font-size: 13px; }
footer.site nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
footer.site nav a { color: #fff; text-decoration: none; background: rgba(255,255,255,.08); padding: 6px 14px; border-radius: 999px; }
footer.site nav a:hover { background: rgba(255,255,255,.16); }
footer.site p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .btn, .app-card { transition: none; }
}
