/* 日本語 LP 専用のスタイル。他言語は /assets/landing/style.css を使う。 */
:root {
  color-scheme: light;
  --orange: #e8714a;
  --orange-deep: #d2603b;
  --orange-light: #f5c28a;
  /* 小さな文字のオレンジ。白と淡いオレンジの上で 4.5:1 以上 */
  --orange-text: #b34500;
  --ink: #1d1d1d;
  --muted: #625c55;
  --paper: #fafaf7;
  --surface: #ffffff;
  --cream: #f4efe6;
  --tint: #fdf1e4;
  --line: #e4ded4;
  --radius-lg: 32px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.8; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -0.02em; text-wrap: balance; word-break: auto-phrase; }
p { word-break: auto-phrase; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; padding: 12px 20px; border-radius: 12px; background: var(--surface); color: var(--ink); }
.skip-link:focus { top: 12px; }

/* 端末: Figma の iPhone フレームの穴に画面を合わせる */
.device { position: relative; width: 100%; aspect-ratio: 1760 / 3625; filter: drop-shadow(0 28px 48px rgb(80 30 0 / 0.28)); }
.device-screen { position: absolute; left: 4.318%; top: 1.793%; width: 91.364%; height: 96.441%; object-fit: cover; border-radius: 15.5% / 7.1%; background: var(--paper); }
.device-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ヘッダとヒーロー (App Store の画像と同じオレンジ地) */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--orange); color: #fff; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.hero::before { width: 1400px; height: 1400px; left: -520px; bottom: -1080px; background: var(--orange-deep); }
.hero::after { width: 1100px; height: 1100px; right: -380px; top: -820px; background: var(--orange-light); opacity: 0.4; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
/* アプリのログイン画面と同じ SF Pro の太字 (MoguttoTypography.display、字間 -0.64pt / 34pt) */
.brand span { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -0.019em; line-height: 1; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

.hero-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 48px; padding-block: 40px 0; }
.hero-copy { padding-bottom: 72px; }
.eyebrow { display: inline-block; margin-bottom: 24px; padding: 6px 18px; border-radius: 999px; background: #fff; color: var(--orange-text); font-size: 14px; font-weight: 800; letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(48px, 7vw, 92px); font-weight: 900; line-height: 1.15; letter-spacing: -0.03em; }
.hero h1 span { display: block; }
.hero h1 .em { color: var(--ink); }
/* オレンジ地の白文字はブランド判断で固定。読みやすさのため太字の大きめの文字にする */
.lead { max-width: 520px; margin-top: 28px; font-size: 19px; font-weight: 700; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.hero-actions .badge img { width: 180px; height: auto; }
/* 端末の下側はヒーローの下端で切り、画面の上半分を見せる */
.hero-visual { align-self: end; justify-self: center; width: min(340px, 100%); margin-bottom: -150px; }

/* 3 つの流れ */
.flow { padding-top: 64px; }
.flow ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.flow li { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 20px; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.flow .num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--orange-text); font-weight: 900; }
.flow strong { display: block; font-size: 17px; }
.flow span.note { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* できること */
.features { padding-block: 112px 40px; }
.section-title { font-size: clamp(32px, 4vw, 48px); font-weight: 900; }
.section-lead { margin-top: 16px; color: var(--muted); font-size: 16px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; margin-top: 88px; }
.feature:nth-of-type(even) .feature-copy { order: 2; }
.feature-label { display: inline-block; margin-bottom: 18px; padding: 4px 14px; border-radius: 999px; background: var(--tint); color: var(--orange-text); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.feature h3 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; }
.feature-copy > p { max-width: 460px; margin-top: 20px; color: var(--muted); font-size: 16px; }
.feature-copy .detail { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.feature-visual { display: grid; place-items: center; padding: 56px 24px; border-radius: var(--radius-lg); background: var(--cream); }
.feature:nth-of-type(even) .feature-visual { background: var(--tint); }
.feature-visual .device { width: min(280px, 72%); }

/* よくある質問 */
.faq { margin-top: 112px; padding-block: 96px; background: var(--cream); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 56px; }
.questions { display: grid; gap: 12px; }
details { border-radius: 18px; background: var(--surface); }
summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: 16px 56px 16px 24px; cursor: pointer; font-size: 16px; font-weight: 800; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 24px; width: 10px; height: 10px; border-right: 2px solid var(--orange-deep); border-bottom: 2px solid var(--orange-deep); transform: translateY(-3px) rotate(45deg); transition: transform 0.2s; }
details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
details p { padding: 0 24px 20px; color: var(--ink); font-size: 15px; }
details p + p { margin-top: -8px; }
details a { font-weight: 700; }

/* 最後の導線 */
.closing { position: relative; isolation: isolate; overflow: hidden; padding-block: 96px; background: var(--orange); color: #fff; text-align: center; }
.closing::before { content: ""; position: absolute; z-index: -1; width: 1200px; height: 1200px; left: 50%; top: 55%; border-radius: 50%; background: var(--orange-deep); transform: translateX(-50%); }
.closing img.icon { width: 88px; height: 88px; margin: 0 auto 24px; }
.closing h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; }
.closing h2 .em { color: var(--ink); }
.closing .badge { display: inline-block; margin-top: 32px; }
.closing .badge img { width: 180px; height: auto; }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 28px; color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; text-align: center; }
  .hero-copy { padding-bottom: 0; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: min(280px, 70%); margin-bottom: -120px; }
  .flow { padding-top: 48px; }
  .flow ol { grid-template-columns: 1fr; }
  .feature, .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .feature { margin-top: 72px; }
  .feature:nth-of-type(even) .feature-copy { order: 0; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 72px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: 22px; }
  .site-header nav { display: none; }
  .lead { font-size: 18px; }
  .features { padding-top: 80px; }
  .feature-visual { padding: 40px 16px; border-radius: 24px; }
  .faq { margin-top: 80px; padding-block: 64px; }
  summary { font-size: 15px; padding-left: 20px; }
  details p { padding-inline: 20px; font-size: 14px; }
  .closing { padding-block: 72px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  summary::after { transition: none; }
}
