/* =========================================================
   カギオケ — 利用規約 / プライバシーポリシー 共通スタイル
   ========================================================= */

/* ── リセット ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── カスタムプロパティ ── */
:root {
  --primary:       #53c396;
  --primary-light: #85ec90;
  --primary-bg:    #eefbf5;

  --text:          #111827;
  --text-muted:    #6b7280;

  --border:        #e5e7eb;
  --radius:        12px;
  --font:          'Noto Sans JP', -apple-system, BlinkMacSystemFont,
                   'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
                   'Meiryo', sans-serif;
}

/* ── ベース：モバイルタッチスクロールを確実に有効化 ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font);
  line-height: 1.75;
  color: var(--text);
  background-color: #ffffff;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── コンテナ ── */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── ポリシーページ全体 ── */
.policy-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* ── ヘッダー ── */
.policy-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.policy-header h1 {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.policy-header .subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ── コンテンツ ── */
.policy-content {
  flex: 1;
  padding: 2rem 0 2.5rem;
}

.policy-content > .container > section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.policy-content > .container > section:last-child {
  border-bottom: none;
}

/* 見出し */
.policy-content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #30916a;
  background: var(--primary-bg);
  padding: 0.5rem 0.75rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 0.875rem;
}

.policy-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

/* テキスト */
.policy-content p {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.policy-content p:last-child {
  margin-bottom: 0;
}

/* リスト */
.policy-content ol,
.policy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.policy-content dl {
  margin-bottom: 0.75rem;
}

.policy-content dt {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

.policy-content dd {
  font-size: 0.9rem;
  margin-left: 1rem;
  color: var(--text-muted);
}

.policy-content li {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.policy-content strong {
  font-weight: 700;
}

/* 連絡先 */
.contact-info {
  background: var(--primary-bg);
  border: 1px solid rgba(83,195,150,.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 2;
}

/* 附則 */
.supplementary h2 {
  color: var(--text-muted);
  background: #f0f0f5;
  border-left-color: var(--text-muted);
}

/* ── フッター ── */
.footer {
  background: #0f1614;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 1.5rem 0;
}

.footer .copyright {
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* ── レスポンシブ（スマートフォン） ── */
@media (max-width: 480px) {
  .policy-header {
    padding: 1.75rem 0 1.5rem;
  }

  .policy-content {
    padding: 1.5rem 0 2rem;
  }

  .policy-content h2 {
    font-size: 0.9rem;
  }
}
