:root {
  --bg: #fbfaf7;
  --fg: #1d1d1f;
  --muted: #5f6368;
  --line: #e3e0d8;
  --accent: #0b6e4f;
  --accent-weak: #e6f2ed;
  --warn: #9a5b00;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  line-height: 1.7;
  font-size: 16px;
}
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header.site { border-bottom: 1px solid var(--line); background: #fff; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 800; letter-spacing: .02em; font-size: 20px; color: var(--fg); text-decoration: none; }
.logo span { color: var(--accent); }
nav a { margin-left: 16px; font-size: 14px; text-decoration: none; }
.hero { padding: 48px 0 24px; }
.hero h1 { font-size: clamp(24px, 4vw, 36px); line-height: 1.35; margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0 0 20px; max-width: 720px; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: var(--radius);
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
}
.btn.ghost { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
.btn + .btn { margin-left: 8px; }
section { padding: 32px 0; }
h2 { font-size: 22px; margin: 0 0 12px; }
.note { font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f4f2ec; position: sticky; top: 0; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--accent-weak); color: var(--accent); white-space: nowrap; }
.est { color: var(--warn); font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.plan h3 { margin: 0 0 4px; font-size: 18px; }
.price { font-size: 28px; font-weight: 800; margin: 8px 0; }
.price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan ul { padding-left: 20px; margin: 8px 0 16px; }
.callout { background: #fff8e8; border: 1px solid #f0dcae; border-radius: var(--radius); padding: 14px 16px; font-size: 14px; }
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
.legal h2 { margin-top: 32px; font-size: 18px; }
.legal { max-width: 800px; }

/* ---- カレンダー（2026-11-09） ---- */
.muted { color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 10px; }
.seg { display: inline-flex; border: 1px solid var(--accent); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: #fff; color: var(--accent); padding: 7px 16px; font-size: 14px; font-weight: 700; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.tagbtn { border: 1.5px solid #1a5fb4; color: #1a5fb4; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; cursor: pointer; }
.tagbtn::before { content: "□ "; }
.tagbtn[aria-pressed="true"] { background: #1a5fb4; color: #fff; }
.tagbtn[aria-pressed="true"]::before { content: "✓ "; }
.legend { font-size: 12px; color: var(--muted); margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.legend .chip { cursor: default; max-width: none; }
.tag.remote { background: #e7f0fb; color: #1a5fb4; }
.tag.closed { background: #ececec; color: #555; }
.tag.kind { background: #f4f2ec; color: var(--muted); }
.monthnav { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 10px; }
.monthnav button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.monthnav button:disabled { opacity: .35; cursor: default; }
.monthnav select { font-size: 18px; font-weight: 800; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.grid .wd { background: #f4f2ec; text-align: center; font-size: 12px; font-weight: 700; padding: 4px 0; }
.grid .sun, .grid .cell.sun .dnum { color: #b3261e; }
.grid .sat, .grid .cell.sat .dnum { color: #1a5fb4; }
.cell { background: #fff; min-height: 104px; padding: 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cell.empty { background: #faf9f5; }
.cell.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cell.today .dnum { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 6px; }
.dnum { font-size: 12px; font-weight: 700; align-self: flex-start; }
.chip { display: block; width: 100%; max-width: 100%; text-align: left; border: 0; border-radius: 4px; padding: 1px 5px; font-size: 11px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; font-family: inherit; }
.legend .chip { display: inline-block; width: auto; }
.chip.dl { background: #fde7e4; color: #8c1d18; border-left: 3px solid #d93025; }
.chip.ev { background: var(--accent-weak); color: #084c37; border-left: 3px solid var(--accent); }
.chip.is-remote { box-shadow: inset 0 -2px 0 #1a5fb4; }
.chip.is-closed { opacity: .5; text-decoration: line-through; }
.chip.is-est { outline: 1px dashed currentColor; outline-offset: -1px; }
.more { font-size: 11px; color: var(--muted); }
.agenda-h { font-size: 16px; margin: 18px 0 8px; }
.agenda { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.agenda li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.agenda li:last-child { border-bottom: 0; }
.agenda li.is-closed { background: #fafafa; }
.agenda .adate { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; min-width: 64px; }
.agenda .chip { width: auto; max-width: 100%; font-size: 13px; padding: 2px 8px; white-space: normal; }
.list-month { font-size: 17px; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--accent); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 10px; }
.card.is-closed { background: #fafafa; }
.card.is-closed h4 a { color: #666; }
.card h4 { margin: 0 0 4px; font-size: 15px; }
.tags { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.kv { display: grid; grid-template-columns: 7.5em 1fr; gap: 2px 10px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.linkbtn { border: 0; background: none; color: var(--accent); text-decoration: underline; padding: 4px 0 0; font-size: 13px; cursor: pointer; }
.static-list { font-size: 14px; }
dialog { border: 0; border-radius: 14px; padding: 20px; max-width: 640px; width: calc(100% - 24px); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog h3 { margin: 0 32px 8px 0; font-size: 18px; }
dialog .close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 24px; cursor: pointer; }
dialog .small { font-size: 13px; }
@media (max-width: 600px) {
  nav a { margin-left: 10px; }
  .btn + .btn { margin-left: 0; margin-top: 8px; }
  .wrap { padding: 0 12px; }
  .cell { min-height: 64px; padding: 2px; }
  .chip { font-size: 0; height: 6px; padding: 0; border-radius: 3px; border-left: 0; }
  .chip.dl { background: #d93025; }
  .chip.ev { background: var(--accent); }
  .chip.is-remote { box-shadow: none; outline: 1.5px solid #1a5fb4; outline-offset: 1px; }
  .legend .chip, .agenda .chip { font-size: 13px; height: auto; padding: 2px 8px; border-left: 3px solid; }
  .legend .chip.dl, .agenda .chip.dl { background: #fde7e4; border-color: #d93025; }
  .legend .chip.ev, .agenda .chip.ev { background: var(--accent-weak); border-color: var(--accent); }
  .agenda .chip.is-remote { outline: 0; }
  .monthnav select { font-size: 16px; }
  .kv { grid-template-columns: 6em 1fr; }
}

/* 分野・地域の絞り込み（2026-11-10） */
.filters .flabel { font-size: .8rem; color: #666; margin-right: 4px; align-self: center; min-width: 2.5em; }
.tag.field { background: #f3ecff; color: #5a3ea8; }
.tag.region { background: #eef6ee; color: #2f6b34; }

/* ---- 日英2言語・特集（2026-11-11） ---- */
.langbtn { margin-left: 16px; border: 1.5px solid var(--accent); background: #fff; color: var(--accent); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.feature { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.featbtn { border: 1.5px solid #b3541e; background: #fff6ef; color: #8a3d12; border-radius: var(--radius); padding: 10px 14px; font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; }
.featbtn .n { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: #b3541e; color: #fff; font-size: 12px; text-align: center; }
.tag.intl { background: #fdeee4; color: #8a3d12; }
.card h4 small.orig { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
/* 段階2 自分用の道具（2026-11-11）: ☆・カレンダーに追加・購読 */
.favbtn { border: 1px solid var(--line); background: #fff; color: #b8860b; border-radius: 999px; min-width: 32px; padding: 2px 8px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.favbtn[aria-pressed="true"] { background: #fff7d6; border-color: #e0b100; }
p.tools .favbtn { font-size: 14px; padding: 6px 14px; }
.tools .btn { margin: 4px 4px 4px 0; }
.subscribe { margin-top: 24px; }
.subscribe code, #subscribe code { word-break: break-all; font-size: 12px; }
