:root {
  --bg: #faf9f6;
  --text: #1b1d1a;
  --sub: #5c5e58;
  --faint: #9a9c95;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #3e8e4c;
  --card: #ffffff;
  --radius: 16px;
  --max: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ヘッダー ===== */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: saturate(160%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.3px;
  text-decoration: none;
  color: var(--text);
}
.brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0;
}
/* 索引ページの大見出しに添えるサブタイトル */
.hub-sub {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
  letter-spacing: 0;
  margin-top: 6px;
}
.site-header nav a {
  font-size: 14px;
  color: var(--sub);
  text-decoration: none;
  margin-left: 18px;
}
.site-header nav a:hover {
  color: var(--text);
}

/* ===== ヒーロー ===== */
.hero {
  text-align: center;
  padding: 64px 20px 40px;
}
.hero .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 16px;
  line-height: 1.25;
}
.hero p.lead {
  font-size: 17px;
  color: var(--sub);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-shot {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

/* ===== スクショ用プレースホルダー(画像差し込み前) ===== */
/* 実画像を入れるときは <div class="shot ..."><img src="..."></div> にするか
   .shot を <img> に置き換える。比率は phone=9:19.5 / tall=4:5 を維持する。 */
.shot {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.025),
      rgba(0, 0, 0, 0.025) 12px,
      rgba(0, 0, 0, 0.05) 12px,
      rgba(0, 0, 0, 0.05) 24px
    );
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot.phone {
  width: 248px;
  aspect-ratio: 9 / 19.5;
  border-radius: 32px;
}
.shot.tall {
  aspect-ratio: 4 / 5;
}

/* ===== セクション共通 ===== */
.section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
  margin: 0 0 10px;
}
.section-lead {
  font-size: 15px;
  color: var(--sub);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ===== AIスタジオ セクション ===== */
.studio {
  padding: 56px 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.studio-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.studio-step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.studio-step .step-no {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.studio-step h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.studio-step p {
  font-size: 14px;
  color: var(--sub);
  margin: 0;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.studio-note {
  text-align: center;
  font-size: 14px;
  color: var(--sub);
  margin: 28px auto 0;
  max-width: 520px;
}

/* AIスタジオ: 設定→仕上がり→アルバム のスマホ画面3連 */
.screens-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.screen-phone {
  margin: 0;
  text-align: center;
}
.screen-phone figcaption {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sub);
}

/* ===== 画面紹介(管理機能) ===== */
.screens {
  padding: 56px 0;
}
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 20px;
}
.screen-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.screen-card .shot.phone {
  width: 220px;
}
.screen-card figcaption {
  margin-top: 16px;
  max-width: 280px;
}
.screen-card figcaption h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.screen-card figcaption p {
  font-size: 14px;
  color: var(--sub);
  margin: 0;
}

/* ストアバッジ */
.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
}
.store-badge.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.store-badge small {
  font-weight: 500;
  opacity: 0.7;
  font-size: 11px;
}

/* ===== 特徴 ===== */
.features {
  padding: 24px 0 64px;
}
.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature .emoji {
  font-size: 26px;
}
.feature h3 {
  font-size: 16px;
  margin: 10px 0 6px;
}
.feature p {
  font-size: 14px;
  color: var(--sub);
  margin: 0;
}

/* ===== フッター ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 20px 56px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}
.site-footer a {
  color: var(--sub);
  text-decoration: none;
  margin: 0 10px;
}
.site-footer a:hover {
  color: var(--text);
}
.site-footer .copyright {
  margin-top: 18px;
}

/* ===== 索引ページ(LP準備中の暫定トップ) ===== */
.index-hub {
  text-align: center;
  padding: 88px 20px 72px;
}
.index-hub h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
.index-hub .lead {
  font-size: 16px;
  color: var(--sub);
  margin: 0 0 36px;
}
.hub-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hub-links a {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.hub-links a:hover {
  border-color: var(--accent);
}
.hub-note {
  font-size: 13px;
  color: var(--faint);
  margin: 36px auto 0;
  max-width: 420px;
}

/* ===== 法務ページ(規約・プラポ) ===== */
.legal {
  padding: 48px 0 72px;
}
.legal h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px;
}
.legal .updated {
  color: var(--faint);
  font-size: 13px;
  margin: 0 0 36px;
}
.legal h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 36px 0 10px;
  padding-top: 8px;
}
.legal p,
.legal li {
  font-size: 15px;
  color: #2a2c28;
}
.legal ul,
.legal ol {
  padding-left: 22px;
}
.legal li {
  margin-bottom: 6px;
}
.legal .back {
  display: inline-block;
  margin-top: 40px;
  font-size: 14px;
}

@media (max-width: 520px) {
  /* 狭い画面ではヘッダーが窮屈なのでサブタイトルを隠す(索引h1のサブは残す) */
  .brand-sub {
    display: none;
  }
  .hero {
    padding: 48px 20px 32px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .section-title {
    font-size: 22px;
  }
  /* スマホでは生成例を横スクロールにして潰れないように */
  .gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 70%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .gallery .shot {
    scroll-snap-align: center;
  }
  /* スマホ枠が画面幅を超えないように少し縮める */
  .screen-card .shot.phone {
    width: 200px;
  }
}
