:root {
  --bg: #fffdf7;
  --panel: #ffffff;
  --line: #e9e1cf;
  --text: #2d2a26;
  --muted: #6d665d;
  --brand: #f39b2f;
  --brand-2: #f7c86b;
  --accent: #4d8f7a;
  --shadow: 0 10px 30px rgba(62, 49, 18, 0.08);
  --radius: 22px;
  --max: 960px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(247, 200, 107, 0.18), transparent 22%),
    linear-gradient(180deg, #fffdf7 0%, #fffaf0 100%);
  line-height: 1.8;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

/* ---------- スキップリンク ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 1000;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 253, 247, 0.88);
  border-bottom: 1px solid rgba(233, 225, 207, 0.9);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
}
.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- ナビゲーション ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}
.nav a:hover {
  background: rgba(243, 155, 47, 0.09);
  color: var(--text);
}

/* ---------- ヒーロー ---------- */
.hero {
  padding: 44px 0 32px;
}
.hero__wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(77, 143, 122, 0.1);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
}
h1 {
  margin: 18px 0 18px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero__lead {
  font-size: clamp(1.07rem, 2vw, 1.28rem);
  color: var(--muted);
  margin: 0 0 28px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero__notes {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}
.hero__notes strong {
  color: var(--text);
}

/* ---------- ボタン ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button--primary {
  background: linear-gradient(135deg, var(--brand) 0%, #ef8b10 100%);
  color: #fff;
  box-shadow: 0 10px 25px rgba(243, 155, 47, 0.28);
}
.button--secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

/* ---------- スマホ画面カード ---------- */
.phone-card {
  background: linear-gradient(180deg, #fff 0%, #fff8eb 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 4px;
}
.phone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.phone-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.phone-shot figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}
.phone-shot img {
  width: 100%;
  aspect-ratio: 9 / 18.5;
  object-fit: contain;
}

/* ---------- セクション共通 ---------- */
section {
  padding: 42px 0;
}
.section-header {
  margin-bottom: 24px;
}
.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- パネル共通ベース ---------- */
.story-panel,
.cta-panel,
.value-card,
.feature-card,
.principle-card,
.screenshot-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- ストーリーパネル ---------- */
.story-panel {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.story-panel ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}
.story-panel li + li {
  margin-top: 10px;
}
.quote {
  padding: 20px;
  border-radius: 18px;
  background: rgba(243, 155, 47, 0.09);
  color: #6c5014;
  font-weight: 700;
}

/* ---------- グリッドレイアウト ---------- */
.value-grid,
.feature-grid,
.principle-grid,
.screens-grid,
.cta-grid,
.footer-links {
  display: grid;
  gap: 18px;
}
.value-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.principle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.screens-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cta-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}
.footer-links {
  grid-template-columns: repeat(5, max-content);
  justify-content: start;
}

/* ---------- カード共通 ---------- */
.value-card,
.feature-card,
.principle-card,
.screenshot-card {
  padding: 22px;
}
.value-card h3,
.feature-card h3,
.principle-card h3,
.screenshot-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.35;
}
.value-card p,
.feature-card p,
.principle-card p,
.screenshot-card p,
.cta-panel p {
  margin: 0;
  color: var(--muted);
}
.icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(243, 155, 47, 0.12), rgba(77, 143, 122, 0.12));
}

/* ---------- フィーチャーカード ---------- */
.feature-card {
  display: flex;
  flex-direction: column;
}
.feature-card__shot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: center;
}
.feature-card__shot img {
  width: 100%;
  aspect-ratio: 9 / 18.5;
  object-fit: contain;
}

/* ---------- 原則カード ---------- */
.principle-card strong {
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

/* ---------- スクリーンショットカード ---------- */
.screenshot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  text-align: center;
}
.screenshot-card img {
  width: 85%;
  aspect-ratio: 9 / 19;
  object-fit: contain;
  margin-bottom: 12px;
}
.screenshot-card h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}
.screenshot-card p {
  font-size: 0.88rem;
}

/* ---------- CTA パネル ---------- */
.cta-panel {
  padding: 28px;
}
.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.25;
}
.cta-list {
  margin: 18px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
}
.cta-list li + li {
  margin-top: 10px;
}

/* ---------- ダウンロードカード ---------- */
.download-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #fff8eb 100%);
  box-shadow: var(--shadow);
}
.download-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.download-card p {
  margin: 0 0 18px;
  color: var(--muted);
}
.store-badges {
  display: grid;
  gap: 12px;
}
.store-badges a,
.store-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}
.store-badges span {
  color: var(--muted);
}

/* ---------- フッター ---------- */
.site-footer {
  padding: 32px 0 52px;
  color: var(--muted);
}
.site-footer__inner {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  gap: 16px;
}
.footer-links a {
  color: var(--muted);
  font-weight: 700;
}
.footer-links a:hover {
  color: var(--text);
}

/* ==========================================
   ドキュメントページ（privacy / terms / support / contact）
   ========================================== */

/* ドキュメントページ: page-header の背景・border を site-header に合わせる */
.page-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 253, 247, 0.88);
  border-bottom: 1px solid rgba(233, 225, 207, 0.9);
}

/* ドキュメントページ: document-header を sticky 固定 */
.document-header {
  position: sticky;
  top: 76px;
  z-index: 40;
  background: var(--bg, #fffdf7);
  padding: 16px 0 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* 旧フッター構造（ドキュメントページ） */
footer {
  padding: 32px 0 52px;
  color: var(--muted);
}
.footer-nav {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}
.footer-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}
.footer-nav a:hover {
  color: var(--text);
}
.footer-copyright {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* ドキュメント本文 */
.document-page {
  padding: 40px 0 80px;
}
.document-content {
  max-width: 780px;
}
.document-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.document-header h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.document-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.document-content section {
  padding: 0;
  margin-bottom: 40px;
}
.document-content h2 {
  font-size: 1.35rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.document-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}
.document-content h4 {
  font-size: 1rem;
  margin: 16px 0 6px;
}
.document-content p {
  margin: 0 0 12px;
  color: var(--muted);
}
.document-content ul,
.document-content ol {
  padding-left: 1.4em;
  margin: 0 0 12px;
  color: var(--muted);
}
.document-content li + li {
  margin-top: 6px;
}

.info-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0 0 12px;
}
.info-list dt {
  font-weight: 700;
  color: var(--text);
}
.info-list dd {
  margin: 0;
  color: var(--muted);
}

.note {
  background: rgba(243, 155, 47, 0.08);
  border-left: 3px solid var(--brand);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 12px;
}

/* FAQ */
.faq-section {
  margin-bottom: 32px;
}
.faq-item {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.faq-item h4 {
  margin: 0 0 8px;
  color: var(--text);
}
.faq-item p,
.faq-item ul {
  margin: 0;
}

/* お問い合わせ例 */
.example-box {
  background: #f8f3e8;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--muted);
}
.contact-info {
  margin-bottom: 20px;
}
.email-link {
  color: var(--accent);
  font-weight: 700;
}
.email-link:hover {
  text-decoration: underline;
}

/* ---------- レスポンシブ: タブレット ---------- */
@media (max-width: 980px) {
  .hero__wrap,
  .story-panel,
  .cta-grid,
  .value-grid,
  .feature-grid,
  .principle-grid,
  .screens-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- レスポンシブ: モバイル ---------- */
@media (max-width: 720px) {
  .site-header__inner {
    align-items: flex-start;
    padding: 12px 0;
  }
  .site-header__inner,
  .hero__wrap,
  .story-panel,
  .cta-grid,
  .value-grid,
  .feature-grid,
  .principle-grid,
  .screens-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    gap: 4px;
  }
  .nav a {
    padding: 8px 10px;
  }
  .hero {
    padding-top: 28px;
  }
  .phone-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-links {
    grid-template-columns: repeat(2, max-content);
  }
}
