/* ============================================================
   プチカ (puchika studio) 公式サイト スタイル
   ブランドパレットは iOS アプリ HinataAlarmShared/Theme.swift と統一
   ============================================================ */

:root {
  --bg: #E9D1BF;        /* ベージュ、画面背景 */
  --surface: #FFF4E8;   /* オフホワイト、カード背景 */
  --text: #5B3327;      /* 茶、メイン文字 */
  --text-2: rgba(91, 51, 39, 0.62);  /* 補助文字 */
  --text-3: rgba(91, 51, 39, 0.42);  /* さらに薄い文字 */
  --line: rgba(91, 51, 39, 0.14);    /* 区切り線 */
  --accent: #D9968E;    /* ピンク、アクセント */
  --accent-ink: #7a3f37;/* アクセント上の濃い文字 */
  --sub: #AA8BAB;       /* 紫、サブアクセント */

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;
  --maxw: 880px;

  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { opacity: 0.8; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(233, 209, 191, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { font-size: 17px; font-weight: 700; letter-spacing: 0.02em; }
.brand span { font-size: 12px; color: var(--text-2); font-weight: 600; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--text); opacity: 1; }

/* ---------- ヒーロー ---------- */
.hero { text-align: center; padding: 56px 0 40px; }
/* ヒーローのキャラクター（Lottie）。アニメ描画前/モーション無効/JS無効時はコンテナが畳まれ、
   テキスト見出しのみ表示される（静止画フォールバックは持たない）。 */
.hero-character { margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; }
.hero-character.is-animated { width: auto; height: clamp(280px, 42vh, 400px); aspect-ratio: 700 / 1400; }
.hero-character.is-animated svg { width: 100% !important; height: 100% !important; display: block; }
.hero h1 { font-size: clamp(28px, 6vw, 40px); margin: 0 0 8px; letter-spacing: 0.03em; }
.hero .lead { font-size: clamp(15px, 3.6vw, 18px); color: var(--text-2); margin: 0 auto; max-width: 30em; }
.hero .sub { font-size: 13px; color: var(--text-3); margin-top: 6px; }

/* App Store ボタン / バッジ */
.cta { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--surface);
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none;
}
.badge-soon[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.cta .note { font-size: 12px; color: var(--text-3); }

/* ---------- セクション ---------- */
section { padding: 30px 0; }
.section-title { font-size: 22px; margin: 0 0 18px; letter-spacing: 0.02em; }
.section-title::after { content: ""; display: block; width: 40px; height: 3px;
  background: var(--accent); border-radius: 3px; margin-top: 8px; }

/* 機能グリッド */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 20px;
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* 運営者サマリ */
.about-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 22px 24px;
}
.about-box dl { display: grid; grid-template-columns: 7em 1fr; gap: 8px 16px; margin: 0; }
.about-box dt { color: var(--text-2); font-size: 14px; font-weight: 700; }
.about-box dd { margin: 0; font-size: 14px; }

/* ---------- 法務 / 本文ページ ---------- */
.page { padding: 36px 0 8px; }
.page h1 { font-size: clamp(24px, 5vw, 30px); margin: 0 0 6px; }
.page .meta { color: var(--text-3); font-size: 13px; margin: 0 0 26px; }
.page h2 { font-size: 18px; margin: 34px 0 10px; padding-top: 8px; }
.page h3 { font-size: 15px; margin: 20px 0 6px; }
.page p, .page li { font-size: 15px; color: var(--text); line-height: 1.9; }
.page ul, .page ol { padding-left: 1.3em; }
.page li { margin: 4px 0; }
.lead-block { color: var(--text-2); }

/* 定義表（特商法・会社概要） */
.spec { width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 16px;
  border-bottom: 1px solid var(--line); font-size: 14px; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: none; }
.spec th { width: 34%; background: rgba(217, 150, 142, 0.10); color: var(--text);
  font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) {
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: 100%; }
  .spec th { border-bottom: none; white-space: normal; }
  .spec td { padding-top: 4px; }
  .spec tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .spec tr:last-child { border-bottom: none; }
}

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 4px 18px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; color: var(--accent-ink); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { font-size: 14px; color: var(--text-2); margin: 12px 0; }

/* 補足注記 */
.callout {
  background: rgba(170, 139, 171, 0.12); border: 1px solid rgba(170, 139, 171, 0.35);
  border-radius: var(--radius-m); padding: 14px 18px; font-size: 14px; color: var(--text);
}

.contact-line { font-size: 16px; }
.contact-line a { font-weight: 700; }

.back-home { display: inline-block; margin: 30px 0 0; font-size: 14px; font-weight: 600; }

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 40px; border-top: 1px solid var(--line);
  background: rgba(255, 244, 232, 0.5); padding: 30px 0;
}
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; }
.site-footer .org b { font-size: 15px; }
.site-footer .org p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-nav a { font-size: 13px; color: var(--text-2); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--text); }
.copyright { margin-top: 22px; font-size: 12px; color: var(--text-3); }
