/* みなわスタジオ サイト共通の見た目。規則は docs/design-guide.md（DS-n）。ページ側の <style> には、そのページだけの部品だけを書く */
:root {
  /* DS-1 色はここだけで決める。ページ側で色の値を直書きしない */
  --sea-top: #0b5c78;
  --sea-mid: #073345;
  --sea-deep: #020e15;
  --foam: #e8f6fb;
  --accent: #6fd3ef;
  --ink: #e4edf2;
  --ink-soft: #9fb3c0;
  --panel: rgba(255, 255, 255, 0.06);
  --line: rgba(159, 211, 239, 0.22);
  --error: #ffb4a6;
  --ok: #2f9e55; /* 完了表示のチェックの丸（DS-25） */
  --muted: #5d6f7a; /* 押せないボタンのグレー（DS-25） */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* DS-2 地は上から下へ深くなる海。全ページ同じ */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sea-top) 0%, var(--sea-mid) 38%, var(--sea-deep) 100%) fixed;
  background-color: var(--sea-deep);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.9;
  overflow-x: hidden;
}
a { color: var(--accent); overflow-wrap: anywhere; }
a:hover { color: var(--foam); }
p, li { overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
main { position: relative; z-index: 1; flex: 1 0 auto; width: 100%; max-width: 760px; margin: 0 auto; padding: 48px 20px 24px; }

/* DS-3 見出し: h1 は 1.6rem・字間広め、h2 は 1.05rem・アクセント色。全ページ同じ */
h1 { margin: 20px 0 24px; font-size: 1.6rem; font-weight: 600; letter-spacing: 0.12em; }
h2 { margin: 44px 0 14px; font-size: 1.05rem; font-weight: 600; color: var(--accent); }
.note { color: var(--ink-soft); font-size: 0.9rem; }

/* DS-25 ヘッダー: トップ以外の全ページに置く。マーク＋「みなわスタジオ」を押すとトップへ戻る。画面の上に貼り付く（LogSea と同じ） */
.site-head { position: sticky; top: 0; z-index: 10; padding: 0.7rem 20px; border-bottom: 1px solid var(--line); background: rgba(7, 51, 69, 0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.site-head-inner { display: flex; align-items: center; gap: 0.9rem; max-width: 760px; margin: 0 auto; }
.site-head .brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.6rem; color: var(--foam); text-decoration: none; font-weight: 600; letter-spacing: 0.12em; }
.site-head .brand img { display: block; width: 28px; height: 28px; }
.site-head h1 { margin: 0; padding-left: 0.9rem; border-left: 1px solid var(--line); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.5; }
.site-head + main { padding-top: 24px; }
@media (max-width: 420px) {
  /* 狭いと横に並ばない。縦に積む */
  .site-head-inner { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .site-head h1 { padding-left: 0; border-left: 0; font-size: 1rem; }
}

/* DS-4 フッター: 全ページ同じ中身・同じ位置（本文の下。画面の下に貼り付けない）。最後の行が「Cookie の設定」（consent.js が差し込む） */
footer { position: relative; z-index: 1; text-align: center; padding: 32px 20px 48px; color: var(--ink-soft); font-size: 0.8rem; }
footer a { margin: 0 0.6em; }
footer p { margin: 0.4em 0 0; }

/* DS-5 法務文書（プライバシーポリシー・外部送信規律に基づく表示）の組み: (1) → a. のぶら下げ。LogSea と同じ */
.doc { --d0: 2.27em; --d1: 1.47em; }
.doc p.item { padding-left: var(--d0); text-indent: calc(-1 * var(--d0)); margin-bottom: 0.5rem; }
.doc p.item .subitem { display: block; padding-left: var(--d1); text-indent: calc(-1 * var(--d1)); }
.doc .mk { display: inline-block; text-indent: 0; text-align: left; }
.doc p.item > .mk { width: var(--d0); }
.doc .subitem > .mk { width: var(--d1); }
.doc .revision { margin: 0; color: var(--ink-soft); font-size: 0.85rem; }
.doc .revision:first-of-type { margin-top: 44px; }

@media (max-width: 520px) {
  main { padding-top: 32px; }
  h1 { font-size: 1.35rem; }
}
