/* 賽 -SAI- LP
   土台の色・書体・角丸は lft-farm.com（lft-farm-apps-and-site の src/styles/global.css）に合わせ、
   アクセントだけアプリの配色（apps/ios/SAIPoC/SAITheme.swift）を使う。 */
:root {
  --bg: #FAFAF7;
  --bg-alt: #F4F1EC;
  --surface: #FFFFFF;
  --text: #18181C;
  --text-strong: #0B0B0F;
  --text-muted: #5F5F66;
  --border: rgba(20, 20, 25, .09);
  --border-strong: rgba(20, 20, 25, .16);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .10);
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --sans: "Schibsted Grotesk", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Noto Serif JP", "Noto Sans JP", serif;

  /* アプリの配色 */
  --ivory: #FAF6EE;
  --navy: #1C2B4F;
  --mint: #B8D9CF;
  --lavender: #C9BDE6;
  --coral: #FAB3A8;
  --ink: var(--navy);
  --clay: #5B4FA0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }

/* ---------- ヘッダー（lft-farm.com と同じ並び） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 250, 247, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand-logo { display: block; color: #403838; flex: none; }
.lft-logo { display: block; width: 52px; height: 22px; }
.brand-text { line-height: 1.25; min-width: 0; }
.brand-line { font-size: .82rem; font-weight: 600; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-line.faint { font-size: .64rem; font-weight: 500; letter-spacing: .04em; color: var(--text-muted); }
.site-nav { display: none; gap: 1.6rem; }
.nav-link { font-size: .9rem; font-weight: 500; color: var(--text-muted); text-decoration: none; }
.nav-link:hover { color: var(--text-strong); }
@media (min-width: 900px) { .site-nav { display: flex; } }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--ivory), var(--bg));
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 22rem; height: 22rem; left: -9rem; top: -11rem; background: var(--mint); opacity: .55; }
.hero::after { width: 15rem; height: 15rem; right: -6rem; bottom: -5rem; background: var(--lavender); opacity: .5; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 2.2rem; align-items: center; }
.hero-app { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.hero-app img { width: 60px; height: 60px; border-radius: 14px; box-shadow: var(--shadow-md); }
.hero-app-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--navy); line-height: 1.3; }
.hero-app-kind { font-size: .78rem; color: var(--text-muted); }
.hero h1 {
  font-family: var(--display); font-weight: 700; color: var(--ink);
  font-size: clamp(1.75rem, 7.2vw, 3rem); line-height: 1.4; letter-spacing: .02em;
}
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--coral) 62%); }
.hero-lead { margin-top: 1.1rem; font-size: 1.02rem; color: #3c4560; max-width: 34em; }
.cta-row { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; }
.cta-note { font-size: .84rem; color: var(--text-muted); line-height: 1.5; }

.hero-visual { position: relative; justify-self: center; width: min(78vw, 340px); }
.hero-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1; background: var(--navy); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-icon { position: absolute; left: -14px; bottom: -18px; width: 30%; border-radius: 22%; box-shadow: var(--shadow-lg), 0 0 0 4px var(--ivory); }
.hero-caption { margin-top: 1.9rem; font-size: .76rem; color: var(--text-muted); text-align: center; }
@media (min-width: 820px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
}

/* ---------- セクション共通 ---------- */
.section { padding: clamp(2.8rem, 7vw, 5rem) 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.section h2 { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: clamp(1.5rem, 5.4vw, 2.1rem); line-height: 1.35; margin-top: .35rem; }
.section-lead { margin-top: .8rem; color: var(--text-muted); max-width: 40em; }

/* 遊び方 */
.steps { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.step {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.3rem; box-shadow: var(--shadow-md);
}
.step h3 { font-size: 1.05rem; color: var(--ink); line-height: 1.5; }
.step h3::before { content: counter(step); display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-right: .5rem; border-radius: 50%; background: var(--navy); color: #fff; font-size: .8rem; font-family: var(--sans); vertical-align: .1em; }
.step p { margin-top: .3rem; font-size: .93rem; color: var(--text-muted); line-height: 1.7; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* 作品 */
.works { margin-top: 1.8rem; display: grid; gap: 1rem; }
.work { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.work img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.work figcaption { padding: 1rem 1.2rem 1.2rem; }
.work h3 { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.work p { margin-top: .3rem; font-size: .88rem; color: var(--text-muted); }
@media (min-width: 820px) { .works { grid-template-columns: repeat(3, 1fr); } }
.note { margin-top: 1.2rem; font-size: .84rem; color: var(--text-muted); line-height: 1.7; }

/* プラン */
.plans { margin-top: 1.8rem; display: grid; gap: 1rem; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem 1.3rem; }
.plan.featured { border: 2px solid var(--navy); }
.plan h3 { font-size: 1rem; color: var(--ink); }
.plan-price { margin-top: .3rem; font-family: var(--sans); font-weight: 700; font-size: 1.9rem; color: var(--text-strong); line-height: 1.3; }
.plan-price small { font-size: .82rem; font-weight: 500; color: var(--text-muted); }
.plan ul { margin: .9rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; font-size: .92rem; }
.plan li { padding-left: 1.3em; position: relative; line-height: 1.6; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55em; height: .55em; border-radius: 50%; background: var(--mint); }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* 公開前の案内 */
.pending-label { display: inline-block; margin: 0; font-size: .9rem; font-weight: 700; letter-spacing: .06em; padding: .55rem 1.2rem; border-radius: var(--radius-pill); background: var(--coral); color: var(--navy); }

/* アプリ情報 */
.specs { margin: 1.6rem 0 0; display: grid; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.specs div { display: grid; grid-template-columns: 7.5em 1fr; gap: .8rem; padding: .85rem 1.1rem; border-top: 1px solid var(--border); }
.specs div:first-child { border-top: 0; }
.specs dt { font-size: .86rem; font-weight: 600; color: var(--text-muted); }
.specs dd { margin: 0; font-size: .95rem; color: var(--text-strong); }
.specs small { display: block; color: var(--text-muted); font-size: .8rem; line-height: 1.6; }
.link-cards { margin-top: 1rem; display: grid; gap: .8rem; }
.link-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; font-weight: 600; color: var(--ink); }
.link-card:hover { border-color: var(--border-strong); }
.link-card span { color: var(--clay); }
@media (min-width: 820px) { .link-cards.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .link-cards { grid-template-columns: repeat(2, 1fr); } }

/* サポート / FAQ（details の折りたたみ。JavaScript なし） */
.faq { margin-top: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq details { border-top: 1px solid var(--border); }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 1.1rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--clay); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 2px solid var(--clay); outline-offset: -2px; }
.faq p { margin: 0; padding: 0 1.1rem .95rem; font-size: .93rem; color: var(--text-muted); line-height: 1.8; }
.faq a { color: var(--clay); }

/* 最後の誘導 */
.final-cta { background: var(--navy); color: var(--ivory); text-align: center; padding: clamp(2.8rem, 7vw, 4.2rem) 0; }
.final-cta h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 5.6vw, 2.1rem); line-height: 1.4; }
.final-cta p { margin-top: .7rem; color: rgba(250, 246, 238, .8); font-size: .95rem; }

/* ---------- フッター（lft-farm.com と同じ構成） ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 2.6rem 0 1.6rem; font-size: .88rem; }
.footer-inner { display: grid; gap: 2rem; }
.footer-brand { font-weight: 700; font-size: 1.3rem; letter-spacing: .04em; color: var(--text-strong); }
.footer-brand-meta { font-size: .72rem; letter-spacing: .04em; color: var(--text-muted); }
.footer-tagline { margin-top: .7rem; color: var(--text-muted); max-width: 26em; line-height: 1.7; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.footer-col { display: flex; flex-direction: column; gap: .45rem; }
.footer-col-title { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .2rem; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--text-muted); font-size: .78rem; }
.legal-note { margin-top: .9rem; color: var(--text-muted); font-size: .72rem; line-height: 1.6; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1fr 1.3fr; } }
