:root {
  --bg: #FFFBF6;
  --surface: #FFFFFF;
  --ink: #3B3550;
  --ink-sub: #5A536D;
  --peach: #FFE3D8;
  --mint: #D9F2E6;
  --lavender: #E6E0FA;
  --lemon: #FFF1C2;
  --sky: #D4E9FA;
  --accent: #F2A48E;
  --success: #2C6E53;
  --line: #ECE6F2;
  --cap: #FFB8A3;
  --cheek: #FF9F8A;
  --shadow: 0 18px 48px rgba(59, 53, 80, 0.14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1B27; --surface: #2A2635; --ink: #F4F0FA; --ink-sub: #C9C2D8;
    --peach: #4A3540; --mint: #2F463D; --lavender: #3B3650; --lemon: #4A4230; --sky: #2F3E50;
    --line: #3A3548; --success: #7FD3AE; --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font, "Zen Maru Gothic"), "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 500; line-height: 1.75; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
/* 画面キャプチャは縦横比を固定（width/height 属性は読み込み中の場所取り用） */
.phone img { width: 100%; aspect-ratio: 660 / 1434; }
/* 日本語を言葉の途中で改行しない（対応ブラウザのみ） */
h1, h2, h3, .lead, .section-lead, .final p { word-break: auto-phrase; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
/* 韓国語は単語（分かち書き）の途中で改行しない */
html:lang(ko) body, html:lang(ko) h1, html:lang(ko) h2, html:lang(ko) h3,
html:lang(ko) .lead, html:lang(ko) .section-lead, html:lang(ko) .final p { word-break: keep-all; }
/* 太字の書体がない言語（韓国語の Jua）で、にせの太字を作らない */
.no-synth { font-synthesis: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; gap: 18px; font-size: 15px; font-weight: 700; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.top-right { display: flex; align-items: center; gap: 22px; }

/* 言語の切り替え（JS なしで開閉できる details） */
.lang { position: relative; font-size: 15px; font-weight: 700; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; list-style: none; margin: 0; padding: 8px; min-width: 200px; max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.lang li a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.lang li a:hover { background: var(--bg); }
.lang li a[aria-current] { background: var(--peach); }

/* 端末の言語のページを案内する帯 */
.suggest { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 10px 16px; background: var(--lavender); font-size: 15px; font-weight: 700; text-align: center; }
.suggest[hidden] { display: none; }
.suggest button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; min-width: 44px; min-height: 44px; }

/* ヒーロー */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 40px 0 72px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 15px; box-shadow: 0 4px 14px rgba(59,53,80,0.08); }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.22; font-weight: 900; margin: 18px 0 16px; }
html:lang(ja) h1 { letter-spacing: 2px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-sub); font-weight: 700; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 900; font-size: 17px; text-decoration: none; }
.btn:hover { opacity: 0.9; }
.btn svg { width: 22px; height: 22px; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.store-badge { display: inline-flex; border-radius: 12px; }
.store-badge img { display: block; height: 56px; width: auto; }
.store-badge:hover { opacity: 0.9; }
.note { font-size: 14px; color: var(--ink-sub); margin-top: 12px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.blob { position: absolute; inset: 6% -4% 0 6%; background: var(--peach); border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; z-index: 0; }
.phone { position: relative; z-index: 1; width: min(320px, 78vw); border: 12px solid var(--ink); border-radius: 46px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.marupi-hero { position: absolute; z-index: 2; left: -4%; bottom: 6%; display: flex; align-items: flex-end; gap: 6px; }
.bubble { background: var(--surface); border-radius: 22px 22px 22px 6px; padding: 10px 16px; font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px rgba(59,53,80,0.14); margin-bottom: 58px; white-space: nowrap; }

/* 価値 */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 88px; }
.value { background: var(--surface); border-radius: 24px; padding: 24px; border: 1px solid var(--line); }
.value h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.value p { margin: 0; color: var(--ink-sub); font-size: 15px; }
.value .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }

/* 機能 */
.section-title { text-align: center; font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin: 0 0 8px; }
.section-lead { text-align: center; color: var(--ink-sub); font-weight: 700; margin: 0 0 40px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px; border-radius: 36px; margin-bottom: 24px; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature .phone { width: min(280px, 70vw); border-width: 10px; border-radius: 40px; justify-self: center; }
.feature h3 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; line-height: 1.3; margin: 10px 0 14px; }
.feature ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.feature li svg { flex: 0 0 24px; margin-top: 3px; }
.bg-peach { background: var(--peach); } .bg-mint { background: var(--mint); } .bg-lavender { background: var(--lavender); }
.bg-lemon { background: var(--lemon); } .bg-sky { background: var(--sky); }

/* 安心 */
.safe { margin: 88px 0; background: var(--surface); border-radius: 36px; padding: 48px; border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.safe h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); font-weight: 900; }
.safe p { margin: 0 0 8px; color: var(--ink-sub); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto 88px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 900; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--accent); }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0 0 18px; color: var(--ink-sub); }

/* 最後のCTA */
.final { text-align: center; padding: 64px 24px; border-radius: 36px; background: var(--peach); margin-bottom: 64px; }
.final h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin: 16px 0 8px; }
.final p { color: var(--ink-sub); font-weight: 700; margin: 0 0 24px; }
.final .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-sub); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer .langs { width: 100%; display: flex; flex-wrap: wrap; gap: 6px 16px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 28px; text-align: center; }
  .hero .cta { justify-content: center; }
  .values { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; padding: 32px 20px; gap: 28px; text-align: center; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .feature ul { text-align: left; max-width: 420px; margin: 0 auto; }
  .safe { grid-template-columns: 1fr; padding: 32px 22px; text-align: center; justify-items: center; }
  .top nav { display: none; }
  .marupi-hero { left: 0; }
}
.nw { white-space: nowrap; }
@media (max-width: 480px) {
  /* 狭い画面ではまるぴを小さくし、吹き出しで画面キャプチャを隠さない */
  .marupi-hero { left: -2%; bottom: 2%; }
  .marupi-hero svg { width: 64px; height: 74px; }
  .marupi-hero .bubble { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .marupi-float { animation: float 3.2s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-6px); } }
}
