/* 拡張機能本体と同じ配色。白とクリーム／ベージュを基調にし、
   OS のダークテーマには追従しない。 */
:root {
  color-scheme: light;

  --paper: #fdfaf3;
  --surface: #ffffff;
  --surface-sub: #f6f1e5;
  --border: #e7dfcd;
  --text: #2f2a24;
  --text-muted: #6b6153;
  --text-faint: #78705f;

  --accent: #2c6e4f;
  --accent-strong: #235a40;
  --accent-weak: #f1f7f3;
  --accent-contrast: #ffffff;

  --sun: #c0392f;
  --sun-bg: #fbefec;
  --sat: #2f5f96;
  --sat-bg: #eef3fa;
  --custom: #7a5296;
  --custom-bg: #f5eff9;

  --radius: 12px;
  --shadow: 0 1px 3px rgb(74 60 40 / 8%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 20px 72px;
  background: var(--paper);
  color: var(--text);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, -apple-system,
    "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
}

a {
  color: var(--accent-strong);
}

a:hover {
  color: var(--accent);
}

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

.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero img {
  width: 88px;
  height: 88px;
}

.hero h1 {
  margin: 16px 0 6px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.lead {
  margin: 0 auto;
  max-width: 30em;
  color: var(--text-muted);
  font-size: 15px;
}

.cta {
  display: inline-block;
  margin-top: 26px;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.cta:hover {
  background: var(--accent-strong);
  color: var(--accent-contrast);
}

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

section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
}

h3 {
  margin: 26px 0 2px;
  font-size: 15px;
  font-weight: 700;
}

p {
  margin: 8px 0;
}

.note {
  color: var(--text-muted);
  font-size: 14px;
}

ul {
  margin: 8px 0;
  padding-left: 1.3em;
}

li {
  margin: 3px 0;
}

/* ---------------- 特徴カード ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------------- 色の凡例 ---------------- */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
}

.swatch {
  width: 13px;
  height: 13px;
  border: 1px solid;
  border-radius: 4px;
}

.swatch-holiday {
  border-color: var(--sun);
  background: var(--sun-bg);
}

.swatch-weekend {
  border-color: var(--sat);
  background: var(--sat-bg);
}

.swatch-custom {
  border-color: var(--custom);
  background: var(--custom-bg);
}

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

.table-scroll {
  overflow-x: auto;
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------------- 補足ブロック ---------------- */

.callout {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--accent-weak);
  color: var(--text-muted);
  font-size: 14px;
}

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-sub);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  word-break: break-all;
}

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

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
}

footer a {
  margin-right: 16px;
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 28px;
  }

  .hero h1 {
    font-size: 25px;
  }
}
