/* ========================================
   Theme Variables
   サイト全体で使用するカラー・影などの共通変数
======================================== */
:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #ffedd5;
  --text: #0f172a;
  --muted: #475569;
  --accent: #f97316;
  --accent-dark: #c2410c;
  --accent-soft: #fed7aa;
  --border: #fdba74;
  --shadow: 0 18px 40px rgba(194, 65, 12, 0.12);
}

/* ========================================
   Base
   全体の基本設定
======================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 36rem),
    var(--bg);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   Layout Container
   ページ幅の共通レイアウト
======================================== */
.container,
main {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
}

/* ========================================
   Hero / Sub Hero
   トップページ・プライバシーページ共通ヘッダー
======================================== */
.hero,
.sub-hero {
  padding: 72px 0 64px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border-bottom: 1px solid var(--accent-soft);
}

.hero-inner {
  max-width: 860px;
}

/* ========================================
   Labels
   小見出しラベル共通
======================================== */
.eyebrow,
.section-label,
.card-label {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ========================================
   Typography
   見出し・本文の基本設定
======================================== */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}

/* ========================================
   Link Groups
   Hero・カード・関連リンクの横並びリンク
======================================== */
.hero-links,
.card-actions,
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ========================================
   Buttons
   ボタン・リンクボタン共通
======================================== */
.button,
.text-link,
.link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-dark);
  background: #ffffff;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* 強調ボタン */
.button.primary,
.text-link {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

/* 控えめなリンクボタン */
.muted-link {
  color: var(--accent-dark);
  background: #ffffff;
  box-shadow: none;
}

/* ボタン hover */
.button:hover,
.text-link:hover,
.link-list a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.18);
}

/* ========================================
   Sections
   各セクション共通
======================================== */
.section {
  padding: 56px 0;
}

/* セクション間の区切り線 */
.section + .section {
  border-top: 1px solid rgba(253, 186, 116, 0.45);
}

.section-heading {
  margin-bottom: 22px;
}

/* セクション見出し下のアクセントライン */
.section-heading::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--accent);
}

/* ========================================
   Card Grid
   アプリカードなどのグリッド表示
======================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}

/* 1件表示用のカードグリッド */
.card-grid.single {
  grid-template-columns: 1fr;
}

/* ========================================
   Cards
   アプリ・更新履歴・サポート・運営者・ポリシー共通カード
======================================== */
.card,
.timeline-item,
.support-card,
.operator-card,
.policy-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

/* ========================================
   Timeline
   更新履歴
======================================== */
.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item .date {
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-weight: 800;
}

/* ========================================
   Contact
   メールアドレス表示
======================================== */
.contact-mail a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ========================================
   Operator
   運営者プロフィール
======================================== */
.operator-profile {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 24px;
}

.operator-image {
  width: 96px;
  height: 96px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
  object-fit: cover;
}

/* ========================================
   Privacy / Updated
   プライバシーポリシー更新日など
======================================== */
.updated {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

/* ========================================
   Inline Links
   Supportセクション内のテキストリンク
======================================== */
.policy-link,
.contact-link {
  color: #f97316;
  font-weight: 700;
  border-bottom: 2px solid rgba(249, 115, 22, 0.4);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.policy-link:hover,
.contact-link:hover {
  color: #c2410c;
  border-bottom: 2px solid #c2410c;
}

/* ========================================
   Footer
   フッター
======================================== */
footer {
  padding: 32px 0;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--accent-soft);
}

/* ========================================
   Responsive
   スマホ・タブレット表示
======================================== */
@media (max-width: 720px) {
  .hero,
  .sub-hero {
    padding: 52px 0 44px;
  }

  .card-grid,
  .card-grid.single {
    grid-template-columns: 1fr;
  }

  .button,
  .text-link,
  .link-list a {
    width: 100%;
  }

  .operator-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .operator-image {
    margin: 0 auto;
  }
}