/* アプリ「体型管理」のランディングページ。色はアプリのテーマ (青) に合わせている */
:root {
  --text: #1b2333;
  --muted: #5d6677;
  --border: #e2e7f0;
  --bg: #ffffff;
  --bg-soft: #f2f5fc;
  --card: #ffffff;
  --primary: #2f62d6;
  --primary-dark: #2550b3;
  --app-blue: #375e9e;
  --hero-from: #eef3ff;
  --hero-to: #c9d9fb;
  --check: #16a34a;
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.75;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e9f0;
    --muted: #a3abbb;
    --border: #2b3243;
    --bg: #11151d;
    --bg-soft: #171c27;
    --card: #1c2230;
    --primary: #6d9bff;
    --primary-dark: #8db0ff;
    --hero-from: #141a28;
    --hero-to: #1d2a48;
    --check: #4ade80;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

h1, h2, h3 {
  line-height: 1.4;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  text-align: center;
  margin-bottom: 48px;
}

p {
  margin: 0;
}

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.sp {
  display: none;
}

/* ボタン */
.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 28px;
}

.button:hover {
  background: var(--primary-dark);
}

.button-small {
  padding: 7px 18px;
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  .button {
    color: #0d1220;
  }
}

/* ヘッダー */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  white-space: nowrap;
}

.logo img {
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.nav a:not(.button) {
  color: var(--muted);
}

.nav a:not(.button):hover {
  color: var(--text);
}

/* ファーストビュー */
.hero {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  padding: 64px 0 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-text {
  padding-bottom: 64px;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 58px);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero h1 span {
  display: inline-block;
}

.hero h1 .accent {
  color: var(--primary);
}

.lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--muted);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.stores-center {
  justify-content: center;
}

.store {
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 10px 24px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  transition: transform 0.15s;
}

.store small {
  font-weight: 400;
  font-size: 12px;
  opacity: 0.75;
}

.store:hover {
  transform: translateY(-2px);
}

.store-light {
  background: #fff;
  color: #111827;
}

@media (prefers-color-scheme: dark) {
  .store {
    background: #f3f4f6;
    color: #111827;
  }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.badges li::before {
  content: "✓ ";
  color: var(--check);
  font-weight: 700;
}

.hero-visual {
  align-self: end;
  justify-self: center;
  width: min(360px, 100%);
}

.hero-visual img {
  filter: drop-shadow(0 20px 40px rgb(30 50 100 / 0.25));
}

/* セクション共通 */
.section {
  padding: 88px 0;
}

/* 3 つの特長 */
.point-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.point-list article {
  background: var(--bg-soft);
  border-radius: 20px;
  padding: 32px 28px;
}

.point-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.point-list h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.point-list p:not(.point-icon) {
  color: var(--muted);
}

/* 機能 */
.features {
  background: var(--bg-soft);
}

.feature {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 56px;
}

.feature + .feature {
  margin-top: 96px;
}

.feature-reverse .feature-text {
  order: 2;
}

.feature-label {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 8px;
}

.feature h3 {
  font-size: clamp(22px, 2.8vw, 30px);
  margin-bottom: 16px;
}

.feature-text > p:not(.feature-label) {
  color: var(--muted);
}

.feature-visual {
  justify-self: center;
  width: min(300px, 100%);
}

.feature-visual img {
  filter: drop-shadow(0 16px 32px rgb(30 50 100 / 0.2));
}

.check {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.check li {
  position: relative;
  padding-left: 28px;
  margin-top: 6px;
  font-weight: 600;
}

.check li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--check);
  font-weight: 800;
}

/* その他の機能 */
.more-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.more-list article {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
}

.more-list h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.more-list p {
  color: var(--muted);
  font-size: 15px;
}

/* 料金 */
.price {
  background: var(--bg-soft);
}

.price-inner {
  max-width: 720px;
  text-align: center;
}

.price h2 {
  margin-bottom: 20px;
}

.price-main {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 12px;
}

.price-main strong {
  color: var(--primary);
  font-size: 1.4em;
}

.price-inner p:not(.price-main) {
  color: var(--muted);
}

/* よくある質問 */
.faq {
  max-width: 780px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 4px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 32px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: -2px;
  font-size: 22px;
  color: var(--primary);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 10px;
  color: var(--muted);
}

/* 最後の誘導 */
.final {
  background: linear-gradient(135deg, #2f62d6 0%, #375e9e 100%);
  color: #fff;
  text-align: center;
  padding: 88px 0;
}

.final h2 {
  margin-bottom: 12px;
}

.final p {
  opacity: 0.9;
  margin-bottom: 8px;
}

/* フッター */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--text);
}

/* タブレット・スマホ */
@media (max-width: 860px) {
  .hero {
    padding-top: 40px;
  }

  .hero-inner,
  .feature {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding-bottom: 0;
    text-align: center;
  }

  .stores,
  .badges {
    justify-content: center;
  }

  .hero-visual {
    width: min(300px, 80%);
  }

  .feature {
    gap: 28px;
  }

  .feature + .feature {
    margin-top: 72px;
  }

  .feature-reverse .feature-text {
    order: 0;
  }

  .feature-visual {
    width: min(260px, 75%);
  }

  .point-list,
  .more-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .pc {
    display: none;
  }

  .sp {
    display: inline;
  }
}

@media (max-width: 560px) {
  .nav a:not(.button) {
    display: none;
  }

  .store {
    flex: 1 1 100%;
    align-items: center;
  }
}
