/* ============================================================
   ICPA AI衛生OS  デザインシステム
   テーマ: 静かな高級感 / 専門機関の信頼 / 現場で迷わない明快さ
   配色: 深いネイビー × 清潔な白 × 上品なゴールド
   方針: スマホ中心 / 大きなタッチ領域 / 読みやすい文字
   ============================================================ */

:root {
  /* ---- ブランドカラー ---- */
  --navy-900: #0e2340;
  --navy-800: #143253;
  --navy-700: #1c4066;
  --navy-600: #24507d;
  --blue-500: #3a6ea5;
  --blue-100: #e8f0f9;

  --gold-600: #b08a3e;
  --gold-500: #c6a45a;
  --gold-300: #e4d3a6;

  /* ---- 状態色（section 4） ---- */
  --ok-600:    #3f9c6b;  /* 正常: 穏やかなグリーン */
  --ok-050:    #eaf5ef;
  --warn-600:  #c98a1e;  /* 注意: アンバー */
  --warn-050:  #fbf3e2;
  --alert-600: #c0392b;  /* 緊急: レッド（緊急時のみ） */
  --alert-050: #fbecea;

  /* ---- 面・文字 ---- */
  --bg:      #f5f8fc;    /* 白基調・清潔感 */
  --surface: #ffffff;
  --ink:     #182233;    /* 本文 */
  --muted:   #5b6a7d;    /* 補助テキスト */
  --line:    #e3e9f1;
  --line-strong: #cdd7e4;

  /* ---- 形・影 ---- */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(14,35,64,.06), 0 1px 3px rgba(14,35,64,.05);
  --shadow-md: 0 6px 20px rgba(14,35,64,.08), 0 2px 6px rgba(14,35,64,.05);
  --shadow-lg: 0 18px 50px rgba(14,35,64,.14);

  /* ---- タッチ領域（原則2・3） ---- */
  --tap: 56px;          /* 主要ボタン/入力の最小高さ */
  --tap-lg: 64px;

  /* ---- 余白 ---- */
  --gap: 16px;
  --pad: 20px;

  --font-jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
             "Noto Sans JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}

/* ---- リセット ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;               /* iOS自動ズーム防止の下限 */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--blue-500); text-underline-offset: 3px; }
img, svg { max-width: 100%; }

/* ---- レイアウト ---- */
.container { width: 100%; max-width: 480px; margin-inline: auto; padding-inline: var(--pad); }

/* ---- カード ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap);
  width: 100%;
  padding: 0 22px;
  font-size: 17px; font-weight: 700; letter-spacing: .02em;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  box-shadow: 0 6px 16px rgba(14,35,64,.22);
  position: relative;
}
.btn--primary::after {                 /* 上品なゴールドの細い下線 */
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 8px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: .55; border-radius: 2px;
}
.btn--primary:hover { background: linear-gradient(180deg, var(--navy-600), var(--navy-700)); }

.btn--ghost {
  color: var(--navy-700);
  background: #fff;
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--blue-100); }

/* ============================================================
   フォーム（大きく・迷わない）
   ============================================================ */
.field { margin-bottom: var(--gap); }
.field__label {
  display: block; margin-bottom: 8px;
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.input {
  width: 100%;
  min-height: var(--tap);
  padding: 14px 16px;
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #9aa6b5; }
.input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(58,110,165,.14);
}

/* ============================================================
   バッジ / 状態
   ============================================================ */
.badge { display:inline-flex; align-items:center; gap:6px; padding:4px 12px; border-radius:999px; font-size:13px; font-weight:700; }
.badge--ok    { color: var(--ok-600);    background: var(--ok-050); }
.badge--warn  { color: var(--warn-600);  background: var(--warn-050); }
.badge--alert { color: var(--alert-600); background: var(--alert-050); }

/* ---- ユーティリティ ---- */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
