/* 入口のページ（index.html）の見た目（2026-10-30）。色・上のバー・カードは、アカウントのページ（account/account.css）にそろえる */
:root {
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f8f9fc; --text: #1d2433; --muted: #687086; --line: #e3e7ef;
  --accent: #3b5bdb; --accent-weak: #e7ecff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06); --radius: 12px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #11141b; --surface: #1a1f2a; --surface-2: #202634; --text: #e7eaf2; --muted: #9aa3b8; --line: #2c3344;
  --accent: #7c95ff; --accent-weak: #263159;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Segoe UI", sans-serif; }
button { font: inherit; color: inherit; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 24px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.brand img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; }
main { max-width: 720px; margin: 24px auto; padding: 0 16px; }
.sections { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; }
h2 { margin: 0 0 10px; font-size: 1.05rem; }
.muted { color: var(--muted); margin: 0; }
.spinner { text-align: center; color: var(--muted); padding: 40px 0; }

/* リンクの行：押せる幅いっぱいの行。右に →（別のタブで開くものは ↗） */
.links { display: grid; gap: 6px; }
.portal-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 600;
  transition: background .15s, border-color .15s;
}
.portal-link:hover { background: var(--accent-weak); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.portal-link svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.portal-link:hover svg { color: var(--accent); }
/* たためる項目（ルールマスタ）：ほかのリンクと同じ行で、右は ⌄。はじめはたたみ、押すと下に中のリンクを小さく並べる（2026-10-30） */
.portal-toggle { width: 100%; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.portal-toggle .chevron { transition: transform .15s; }
.portal-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.portal-group .chips { padding: 8px 4px 4px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 12px; border-radius: 999px; font-size: .85rem;
  background: var(--accent-weak); color: var(--accent); text-decoration: none;
}
.chip-link:hover { background: color-mix(in srgb, var(--accent) 18%, var(--accent-weak)); }
.chip-link svg { display: none; }
@media (max-width: 720px) { .topbar { padding: 10px 16px; } .card { padding: 16px; } }
