/* シャリにのせろ！ LP
   土台の色・書体・角丸は lft-farm.com（lft-farm-apps-and-site の src/styles/global.css）に合わせ、
   アクセントだけゲームの配色（Assets/Shari/Scripts/UiKit.cs）を使う。 */
: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);
  --brand-amber: #F8B830;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .10);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --sans: "Schibsted Grotesk", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "M PLUS Rounded 1c", "Noto Sans JP", var(--sans);

  /* ゲームの配色 */
  --ink: #36291C;
  --red: #A02819;
  --clay: #A04E2B;
  --gold: #C07420;
  --cream: #FFFAE8;
  --wasabi: #6B9E3A;
  --accent: var(--red);
}

*, *::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(--gold); 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); }
.lang-switch { display: flex; flex: none; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 2px; background: var(--surface); }
.lang-switch a, .lang-switch span { font-size: .74rem; font-weight: 600; letter-spacing: .04em; padding: .28rem .7rem; border-radius: var(--radius-pill); text-decoration: none; color: var(--text-muted); }
.lang-switch [aria-current="true"] { background: var(--text-strong); color: #fff; }
@media (min-width: 900px) { .site-nav { display: flex; } }

/* ---------- ヒーロー ---------- */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(192, 116, 32, .16), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--bg));
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
.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: 800; font-size: 1.15rem; color: var(--red); line-height: 1.3; }
.hero-app-kind { font-size: .78rem; color: var(--text-muted); }
.hero h1 {
  font-family: var(--display); font-weight: 800; color: var(--ink);
  font-size: clamp(2rem, 8.4vw, 3.5rem); line-height: 1.22; letter-spacing: .01em;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { margin-top: 1.1rem; font-size: 1.02rem; color: #4a3f33; max-width: 34em; }
.cta-row { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; }
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { height: 54px; width: auto; display: block; }
.cta-note { font-size: .84rem; color: var(--text-muted); line-height: 1.5; }
.cta-note strong { color: var(--ink); }

.hero-visual { position: relative; justify-self: center; width: min(68vw, 290px); }
.phone {
  border-radius: 13% / 6%; overflow: hidden; background: var(--cream);
  box-shadow: var(--shadow-lg), 0 0 0 6px #2a211a, 0 0 0 7px rgba(255, 255, 255, .25);
  aspect-ratio: 428 / 930;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; filter: drop-shadow(0 8px 10px rgba(54, 41, 28, .25)); pointer-events: none; }
.float-1 { width: 31%; left: -22%; top: 12%; transform: rotate(-12deg); }
.float-2 { width: 34%; right: -24%; top: 40%; transform: rotate(10deg); }
.float-3 { width: 30%; left: -18%; bottom: 8%; transform: rotate(8deg); }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: bob 5s ease-in-out infinite; }
  .float-2 { animation-delay: -1.6s; }
  .float-3 { animation-delay: -3.1s; }
  @keyframes bob { 50% { translate: 0 -8px; } }
}
@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: 800; 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 1.3rem 1.3rem 5.6rem; min-height: 6.4rem; box-shadow: var(--shadow-md);
}
.step img { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 3.6rem; }
.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(--red); color: #fff; font-size: .8rem; 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); } }

/* 特徴 */
.features { margin-top: 1.8rem; display: grid; gap: .9rem; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.15rem 1.25rem; border-top: 3px solid var(--gold); }
.feature h3 { font-size: 1rem; color: var(--ink); }
.feature p { margin-top: .3rem; font-size: .92rem; color: var(--text-muted); line-height: 1.7; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* スクリーンショット（横スクロール） */
.shots {
  margin: 1.8rem calc(-1 * clamp(1.1rem, 4vw, 2rem)) 0; padding: .4rem clamp(1.1rem, 4vw, 2rem) 1.2rem;
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shot { flex: none; width: 210px; margin: 0; scroll-snap-align: center; }
.shot .phone { box-shadow: var(--shadow-md), 0 0 0 4px #2a211a; }
.shot figcaption { margin-top: .8rem; font-size: .84rem; color: var(--text-muted); text-align: center; line-height: 1.5; }
@media (min-width: 980px) { .shots { justify-content: center; overflow: visible; } }

/* アプリ情報 */
.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: 640px) { .link-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 820px) { .link-cards.three { grid-template-columns: repeat(3, 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(--ink); color: var(--cream); text-align: center; padding: clamp(2.8rem, 7vw, 4.2rem) 0; }
.final-cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 5.6vw, 2.1rem); line-height: 1.4; }
.final-cta p { margin-top: .7rem; color: rgba(255, 250, 232, .78); font-size: .95rem; }
.final-cta .store-badge { margin-top: 1.5rem; }
.final-cta .store-badge svg rect { stroke: rgba(255, 255, 255, .5); }

/* ---------- フッター（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; } }
