/* ========================================================================
   虹彩診断システム — 固定ページ共通スタイル
   （about.php / guide.php / sources.php で使用）

   配色・フォントは iris-diagnosis.css（診断画面）と同じものを使う。
   認証画面の auth.css はダーク基調だが、この3ページは診断画面から辿る
   読み物なので、診断画面側のトーンに合わせている。

   意匠は既存の踏襲に留め、新しいデザイン要素は増やさない。
   ===================================================================== */

:root {
  --bg-0: #f5f0e8;
  --bg-1: #ede8df;
  --bg-2: #e5ddd0;
  --bg-card: #ffffff;
  --border: #d4c4a8;
  --border-hi: #b8a48a;

  --gold: #8b6914;
  --gold-dk: #5c4510;

  --teal: #1a7a7a;
  --teal-lt: #1f9090;
  --teal-dk: #0f5555;
  --teal-glow: rgba(26, 122, 122, 0.15);

  --text-1: #2c1810;
  --text-2: #5c4030;
  --text-3: #8c7060;

  --radius:    8px;
  --radius-lg: 14px;
  --trans:     0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- ヘッダー ---------- */

.ip-header {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border-bottom: 1px solid var(--border);
}

.ip-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 診断画面のロゴマークと同じ作り。絵文字は使わない。 */
.ip-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, var(--teal-lt) 0%, var(--teal) 50%, var(--teal-dk) 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px var(--teal-glow);
  position: relative;
  flex-shrink: 0;
}

.ip-logo-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--bg-card);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.ip-logo-text {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-dk);
}

.ip-logo-sub {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* ---------- ナビ ---------- */

.ip-nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}

.ip-nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ip-nav a {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--trans), border-color var(--trans);
}

.ip-nav a:hover {
  color: var(--teal);
}

.ip-nav a[aria-current="page"] {
  color: var(--gold-dk);
  border-bottom-color: var(--gold);
  font-weight: 500;
}

/* ---------- 本文 ---------- */

.ip-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.ip-title {
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-1);
}

.ip-main h2 {
  margin: 36px 0 12px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--gold-dk);
  border-left: 3px solid var(--gold);
  padding-left: 10px;
}

.ip-main h2:first-of-type { margin-top: 0; }

.ip-main p {
  margin: 0 0 16px;
  color: var(--text-1);
}

.ip-main ul,
.ip-main ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.ip-main li {
  margin-bottom: 10px;
  color: var(--text-1);
}

.ip-main li:last-child { margin-bottom: 0; }

.ip-main cite {
  font-style: italic;
  color: var(--text-2);
}

/* ---------- 表 ---------- */

/* 横に広い表は、ページ全体ではなく表の中でスクロールさせる。 */
.ip-table-wrap {
  margin: 0 0 16px;
  overflow-x: auto;
}

.ip-main table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.ip-main th,
.ip-main td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}

.ip-main th {
  background: var(--bg-2);
  font-weight: 500;
  color: var(--gold-dk);
  white-space: nowrap;
}

.ip-main tbody tr:last-child th,
.ip-main tbody tr:last-child td { border-bottom: none; }

/* ---------- フッター ---------- */

.ip-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}

.ip-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  font-size: 12px;
  color: var(--text-3);
}

.ip-footer a {
  color: var(--teal);
  text-decoration: none;
}

.ip-footer a:hover { text-decoration: underline; }

.ip-footer-note {
  margin: 8px 0 0;
  line-height: 1.8;
}

/* ---------- 狭い画面 ---------- */

@media (max-width: 600px) {
  body { font-size: 14px; }

  .ip-header-inner,
  .ip-nav-inner,
  .ip-main,
  .ip-footer-inner { padding-left: 14px; padding-right: 14px; }

  .ip-title { font-size: 1.25rem; }

  .ip-nav a { padding: 9px 10px; font-size: 12px; }
}
