/* Cookie の設定ページ（/cookie-settings/）— 6 サイト共通。外部フォントは読み込まない */
:root {
  --cs-ink: #1a1d23;
  --cs-sub: #5c6370;
  --cs-line: #e3e6ea;
  --cs-bg: #ffffff;
  --cs-bg-alt: #f5f6f8;
  --cs-off: #c4c9d0;
  --cs-ok: #0f7a4f;
  --cs-error: #b42318;
  --cs-focus: #2563eb;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cs-bg);
  color: var(--cs-ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cs-focus); outline-offset: 2px; }
h1, h2, p, ul { margin: 0; }

.cs-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.cs-header { border-bottom: 1px solid var(--cs-line); }
.cs-header .cs-wrap { display: flex; align-items: center; min-height: 64px; }
.cs-site { font-size: 16px; font-weight: 700; text-decoration: none; }
.cs-site:hover { text-decoration: underline; }

.cs-main { padding: 48px 0 72px; }
.cs-en { font-size: 12px; font-weight: 700; letter-spacing: 0.24em; color: var(--cs-sub); }
.cs-title { margin-top: 6px; font-size: 28px; line-height: 1.4; }
.cs-lead { margin-top: 20px; }
.cs-lead a { font-weight: 700; }

.cs-form { margin-top: 36px; }
.cs-item { padding: 24px 0; border-top: 1px solid var(--cs-line); }
.cs-item:last-of-type { border-bottom: 1px solid var(--cs-line); }
.cs-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cs-name { font-size: 18px; line-height: 1.5; }
.cs-name label { cursor: pointer; }
.cs-fixed { font-size: 13px; color: var(--cs-sub); }
.cs-desc { margin-top: 8px; font-size: 14px; }
.cs-tools { margin-top: 12px; padding: 0; list-style: none; display: grid; gap: 6px; }
.cs-tools li { display: grid; grid-template-columns: minmax(0, 18em) minmax(0, 1fr); gap: 4px 20px; font-size: 13px; }
.cs-tool { font-weight: 700; }
.cs-vendor { color: var(--cs-sub); }

/* オン・オフのスイッチ（input そのものを描く） */
.cs-control { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cs-state { min-width: 4em; text-align: right; font-size: 13px; color: var(--cs-sub); }
.cs-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 30px;
  margin: 0;
  border-radius: 999px;
  background: var(--cs-off);
  cursor: pointer;
  transition: background 0.2s ease;
}
.cs-switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.cs-switch:checked { background: var(--cs-ink); }
.cs-switch:checked::before { transform: translateX(22px); }
.cs-switch:focus-visible { outline: 3px solid var(--cs-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .cs-switch, .cs-switch::before { transition: none; }
}

.cs-actions { margin-top: 32px; }
.cs-btn {
  min-height: 52px;
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  background: var(--cs-ink);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.cs-btn:hover { opacity: 0.88; }
.cs-status { margin-top: 14px; min-height: 1.85em; font-size: 14px; font-weight: 700; }
.cs-status.is-on { color: var(--cs-ok); animation: cs-fade 0.4s ease; }
.cs-status.is-error { color: var(--cs-error); }
@keyframes cs-fade { from { opacity: 0; } to { opacity: 1; } }

.cs-notes { margin-top: 32px; display: grid; gap: 12px; }
.cs-note { font-size: 13px; color: var(--cs-sub); }

.cs-footer { padding: 32px 0 40px; background: var(--cs-bg-alt); border-top: 1px solid var(--cs-line); font-size: 13px; }
.cs-links { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.cs-legal { margin-top: 16px; font-size: 12px; line-height: 1.9; color: var(--cs-sub); }

@media (max-width: 600px) {
  .cs-wrap { padding: 0 16px; }
  .cs-main { padding: 32px 0 56px; }
  .cs-title { font-size: 24px; }
  .cs-tools li { grid-template-columns: 1fr; gap: 0; }
  .cs-tools li + li { margin-top: 6px; }
  .cs-btn { width: 100%; }
}
