:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f2faf4;
  --text: #1c1c1e;
  --text-sub: #5a5a5f;
  --accent: #1b7d35;
  --brand: #34c759;
  --blue: #007aff;
  --star: #ff9f0a;
  --card: #ffffff;
  --line: rgba(60, 60, 67, .14);
  --shadow: 0 24px 48px rgba(16, 40, 24, .16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #0d1710;
    --text: #f2f2f7;
    --text-sub: #a1a1a8;
    --accent: #4cd964;
    --card: #1c1c1e;
    --line: rgba(235, 235, 245, .16);
    --shadow: 0 24px 48px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
:lang(ja) :is(h1, h2, h3, .catch, .lead, .section-lead, figcaption, summary) { word-break: auto-phrase; }
/* auto-phrase は Chrome 系だけ。Safari では見出しとリード文の文節に入れた <wbr> でだけ折り返す（長い本文は通常の折り返しのまま）。 */
@supports not (word-break: auto-phrase) {
  :lang(ja) :is(h1, h2, h3, .catch, .lead, .section-lead, figcaption, summary) { word-break: keep-all; overflow-wrap: anywhere; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.top-bar { background: var(--bg-soft); }
.top-nav { display: flex; justify-content: flex-end; gap: 20px; align-items: center; padding-top: 14px; font-size: .9rem; }

/* Hero */
.hero { background: var(--bg-soft); padding: 24px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: end; }
.hero-text { padding-bottom: 64px; }
.hero-icon { width: 96px; height: 96px; filter: drop-shadow(0 8px 16px rgba(30, 90, 160, .25)); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.2; margin: 20px 0 8px; letter-spacing: .02em; }
.hero .catch { font-size: clamp(1.3rem, 3.4vw, 1.8rem); font-weight: 700; color: var(--accent); margin: 0 0 16px; line-height: 1.4; }
.hero .lead { color: var(--text-sub); margin: 0 0 24px; max-width: 30em; }
.rating { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; font-size: .9rem; color: var(--text-sub); }
.rating strong { font-size: 1.5rem; color: var(--text); line-height: 1; }
.stars { position: relative; display: inline-block; font-size: 1.05rem; letter-spacing: 2px; line-height: 1; color: var(--line); }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--rate); overflow: hidden; color: var(--star); white-space: nowrap; }
.badge { display: inline-block; }
.badge img { height: 54px; width: auto; }
.price-note { font-size: .8rem; color: var(--text-sub); margin: 10px 0 0; }
.price-note span { display: inline-block; }
.hero-shot { justify-self: center; width: min(310px, 72vw); }

/* iPhone frame */
.phone {
  position: relative;
  padding: 3.6%;
  border-radius: 17% / 7.8%;
  background: #0b0b0c;
  box-shadow:
    0 0 0 1.5px #5d5f63,
    0 0 0 3px #2b2c2f,
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    var(--shadow);
}
.phone::before, .phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #3a3b3e;
}
.phone::before { left: -4px; top: 19%; height: 10%; }
.phone::after { right: -4px; top: 25%; height: 11%; }
.phone img { width: 100%; border-radius: 13.5% / 6.3%; }
.hero-shot .phone { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; margin-bottom: -2px; }
.hero-shot .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; aspect-ratio: 660 / 1180; object-fit: cover; object-position: top; }

/* Sections */
section { padding: 80px 0; }
section h2 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.35; margin: 0 0 12px; text-align: center; }
section .section-lead { text-align: center; color: var(--text-sub); margin: 0 auto 40px; max-width: 36em; }
.soft { background: var(--bg-soft); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(180deg, #357af7, #34c759); color: #fff; display: grid; place-items: center; margin-bottom: 12px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--text-sub); font-size: .95rem; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; margin: 0; padding: 8px 4px 0; }
.gallery figure { margin: 0; }
.gallery figcaption { text-align: center; font-size: .9rem; color: var(--text-sub); margin-top: 16px; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.review .stars { --rate: 100%; font-size: .95rem; }
.review h3 { font-size: 1rem; margin: 0; }
.review p { margin: 0; color: var(--text-sub); font-size: .95rem; }
.reviews-note { text-align: center; font-size: .8rem; color: var(--text-sub); margin: 20px 0 0; }

/* Carriers */
.carrier-groups { display: grid; gap: 24px; max-width: 820px; margin: 0 auto; }
.carrier-groups h3 { font-size: .9rem; color: var(--text-sub); margin: 0 0 10px; font-weight: 600; text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: .95rem; }
.carriers-note { text-align: center; font-size: .9rem; color: var(--text-sub); margin: 28px auto 0; max-width: 36em; }

/* Apple Watch */
.watch-row { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.watch-row figure { margin: 0; }
.watch {
  width: 190px;
  padding: 12px;
  border-radius: 30%/ 25%;
  background: #111;
  box-shadow: 0 0 0 2px #4a4b4f, 0 0 0 4px #1d1e20, var(--shadow);
}
.watch img { border-radius: 22% / 18%; }
.watch-row figcaption { text-align: center; font-size: .9rem; color: var(--text-sub); margin-top: 18px; }

/* Privacy */
.privacy-box { max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; text-align: center; }
.privacy-box .ic { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--accent); }
.privacy-box h2 { margin-bottom: 12px; }
.privacy-box p { color: var(--text-sub); margin: 0 0 12px; }

/* PRO */
.pro { max-width: 720px; margin: 0 auto; }
.pro ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.pro li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px 14px 46px; position: relative; }
.pro li::before { content: "✓"; position: absolute; left: 18px; top: 14px; color: var(--accent); font-weight: 700; }
.pro .note { text-align: center; font-size: .9rem; color: var(--text-sub); margin: 0; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--text-sub); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--text-sub); }

/* CTA / Footer */
.cta { text-align: center; }
.cta .hero-icon { margin: 0 auto 16px; }
.cta h2 { margin-bottom: 20px; }

footer { padding: 32px 0 48px; font-size: .85rem; color: var(--text-sub); border-top: 1px solid var(--line); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
footer p { margin: 4px 0; }

/* Reveal on scroll (only when JS is available and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .hero { padding-top: 16px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-text { padding-bottom: 8px; }
  .hero-icon { margin: 0 auto; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .features, .reviews { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .gallery { grid-template-columns: repeat(4, 64vw); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 16px; margin: 0 -20px; gap: 20px; }
  .gallery li { scroll-snap-align: center; }
  .watch-row { gap: 20px; }
  .watch { width: 150px; }
  .privacy-box { padding: 24px 20px; }
}
