@charset "UTF-8";

:root {
  --paper: #f5f4ef;
  --surface: #fcfcf8;
  --ink: #252c28;
  --muted: #535d54;
  --green: #2d503d;
  --line: #d5d9d1;
  --control-border: #7b8579;
  --selected: #e6ebdf;
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; font-size: 16px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; }
button, input, select, textarea { border-radius: 3px; }
button { background: none; border: 0; }
a { color: var(--green); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button:hover { background: var(--selected); }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: 22px; line-height: 1.5; margin-bottom: 12px; }
.muted { color: var(--muted); }
.skip { position: fixed; top: -80px; left: 16px; padding: 12px 20px; background: var(--green); color: var(--surface); z-index: 10; }
.skip:focus { top: 12px; }

.site-header, main { max-width: 1184px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { font-size: 25px; font-weight: 800; letter-spacing: -.8px; line-height: 1.3; margin: 0; white-space: nowrap; }
.brand a { color: var(--ink); text-decoration: none; display: inline-block; padding: 10px 0; }
.brand span { font-weight: 400; }
nav { display: flex; gap: 24px; align-items: center; font-size: 15px; }
nav a { padding: 10px 0; text-decoration: none; }
nav a:hover, nav a:focus-visible { text-decoration: underline; }
nav button { border: 1px solid var(--control-border); padding: 9px 14px; min-height: 44px; }
.intro { padding: 24px 0 28px; }
.intro > p { font-size: 17px; margin-bottom: 8px; }
.collection-info { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; color: var(--muted); }

.picks { padding-bottom: 36px; }
.picks-note { font-size: 14px; margin-bottom: 16px; }
.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pick-card { background: var(--surface); border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; min-width: 0; }
.pick-card h3 { font-size: 18px; font-weight: 600; line-height: 1.65; margin-bottom: 8px; overflow-wrap: anywhere; }
.article-title { display: block; min-height: 44px; color: var(--green); text-decoration: none; text-underline-offset: 4px; text-decoration-skip-ink: auto; }
.article-title:hover, .article-title:focus-visible { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; }
.pick-summary { font-size: 16px; line-height: 1.8; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.region-badge { white-space: nowrap; }
.pick-card .article-meta { margin-top: 0; }
.pick-bottom { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 14px; color: var(--muted); margin-top: 4px; }

.articles { padding: 28px 0 48px; border-top: 1px solid var(--line); }
.articles > h2 { margin-bottom: 20px; }
.filters { background: var(--surface); border: 1px solid var(--line); padding: 22px 24px; }
.search, .filter-bottom label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea { background: var(--surface); border: 1px solid var(--control-border); padding: 10px 12px; min-height: 46px; font-size: 16px; font-weight: 400; width: 100%; min-width: 0; }
input::placeholder { color: var(--muted); opacity: 1; }
input[type="search"] { max-width: 640px; }
.region-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.region-filter > span { font-size: 14px; font-weight: 600; }
.region-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.region-tabs button { min-height: 44px; padding: 7px 18px; border: 1px solid var(--control-border); font-size: 15px; }
.region-tabs button.selected { background: var(--green); border-color: var(--green); color: var(--surface); font-weight: 600; }
.region-tabs button.selected:hover { background: #233e30; }
.filter-bottom { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr auto; gap: 16px; margin-top: 18px; align-items: end; }
.text-button { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; min-height: 46px; padding: 8px; }
.scope-note { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 14px 0 0; }
.feed-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; color: var(--muted); padding: 19px 0; font-size: 14px; }
.feed-meta p { margin: 0; color: var(--ink); }
.feed-row { padding: 26px 0; border-top: 1px solid var(--line); }
.feed-row h3 { font-size: 20px; font-weight: 600; line-height: 1.75; margin-bottom: 8px; max-width: 980px; overflow-wrap: anywhere; }
.row-summary { font-size: 16px; line-height: 1.9; margin: 12px 0 0; max-width: 960px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.tags:empty { display: none; }
.tag { border: 0; background: transparent; font-size: 14px; min-height: 44px; padding: 7px 4px; color: var(--green); font-weight: 500; }
.tag::before { content: '#'; }
.tag:hover { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.tag[aria-pressed="true"] { background: transparent; color: var(--ink); font-weight: 700; }
.feed-footer { text-align: center; margin-top: 24px; }
.outline-button, .solid-button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border: 1px solid var(--control-border); padding: 10px 20px; font-size: 16px; text-decoration: none; }
.solid-button { background: var(--green); border-color: var(--green); color: var(--surface); }
.solid-button:hover { background: #233e30; text-decoration: underline; }
.outline-button:hover { background: var(--selected); }
.empty, .error { text-align: center; padding: 48px 16px; border-top: 1px solid var(--line); }
.empty h3, .error h3 { font-size: 18px; }
.empty p, .error p { color: var(--muted); }
.page-footer { display: flex; align-items: start; gap: 24px; justify-content: space-between; border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 14px; color: var(--muted); }
.page-footer p { max-width: 720px; margin-bottom: 0; }
.page-footer a { flex-shrink: 0; }

dialog { background: var(--paper); color: var(--ink); border: 1px solid var(--control-border); border-radius: 4px; width: min(800px, calc(100% - 32px)); max-height: 90dvh; padding: 0; overscroll-behavior: contain; }
dialog::backdrop { background: #1a231b80; }
.dialog-top { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 28px; font-size: 14px; }
.close-button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--control-border); font-size: 15px; }
.dialog-inner { padding: 28px; }
.dialog-inner > h2 { margin: 0 0 16px; font-size: 24px; }
.dialog-inner > .article-meta { margin-bottom: 12px; }
.dialog-inner .detail-title { font-size: 25px; line-height: 1.75; overflow-wrap: anywhere; }
.original-title, .detail-source { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.ai-badge { display: inline-block; font-size: 14px; color: var(--muted); }
.detail-block { margin-top: 26px; }
.detail-block h3 { font-size: 16px; margin-bottom: 8px; }
.detail-block p { font-size: 17px; line-height: 1.95; margin-bottom: 0; overflow-wrap: anywhere; }
.hint-block { padding: 20px 22px; background: #eaf0e6; border-radius: 5px; }
.hint-block h3 { margin-bottom: 6px; }
.credits { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 26px; font-size: 14px; }
.verification { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.usage-box { padding: 18px 0 22px; margin: 8px 0 12px; border-bottom: 1px solid var(--line); }
.usage-box strong { display: block; font-size: 17px; }
.usage-box p { margin: 10px 0; }
.usage-box small { display: block; font-size: 14px; color: var(--muted); }
.source-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.source-row strong { font-weight: 600; }
.source-row > span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.source-row .source-error { color: #8b352a; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 5; width: max-content; max-width: calc(100% - 32px); background: var(--green); color: var(--surface); font-size: 15px; padding: 14px 20px; border-radius: 4px; }
.copy-fallback { margin-top: 20px; min-height: 200px; font-size: 16px; }
.noscript { padding: 24px; }

@media (min-width: 961px) {
  .filters { padding: 16px 20px; }
  .search, .filter-bottom label { gap: 4px; }
  .filters input, .filters select { min-height: 44px; padding: 8px 12px; }
  .region-filter { margin-top: 12px; }
  .filter-bottom { margin-top: 12px; gap: 12px; }
  .scope-note { margin-top: 10px; }
}

@media (max-width: 960px) {
  .site-header, main { padding-left: 24px; padding-right: 24px; }
  .pick-grid { gap: 12px; }
  .pick-card { padding: 18px; }
  .filter-bottom { grid-template-columns: 1fr 1fr; }
  .text-button { justify-self: start; }
  .page-footer { flex-direction: column; gap: 12px; }
}

@media (max-width: 700px) {
  .site-header, main { padding-left: 20px; padding-right: 20px; }
  .site-header { min-height: 76px; gap: 6px 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .brand { font-size: 22px; }
  nav { font-size: 14px; gap: 20px; flex-wrap: wrap; }
  nav > a { display: none; }
  nav button { padding: 8px 10px; font-size: 14px; }
  .intro { padding: 20px 0 24px; }
  .intro > p { font-size: 16px; }
  .collection-info { flex-direction: column; gap: 2px; }
  h2 { font-size: 21px; }
  .pick-grid { grid-template-columns: 1fr; gap: 12px; }
  .pick-card { padding: 18px; }
  .pick-card h3 { font-size: 18px; margin-bottom: 10px; }
  .pick-summary { margin-bottom: 12px; }
  .picks { padding-bottom: 28px; }
  .articles { padding-top: 24px; }
  .filters { padding: 18px 16px; }
  .region-filter { display: block; }
  .region-filter > span { display: block; margin-bottom: 6px; }
  .region-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .region-tabs button { font-size: 15px; padding: 8px 10px; }
  .filter-bottom { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .text-button { padding-left: 0; }
  .feed-meta { font-size: 14px; flex-direction: column; padding: 18px 0; }
  .sort-note { display: none; }
  .feed-row { padding: 22px 0; }
  .feed-row h3 { font-size: 19px; line-height: 1.8; }
  .article-meta { gap: 4px 12px; }
  .row-summary { line-height: 1.85; }
  .tag { min-height: 44px; padding: 7px 4px; }
  .hint-block { padding: 18px; }
  .page-footer { font-size: 14px; padding-bottom: 24px; }
  dialog { width: calc(100% - 24px); max-height: 94dvh; }
  .dialog-top { padding: 10px 18px; }
  .dialog-inner { padding: 22px 18px; }
  .dialog-inner .detail-title { font-size: 21px; }
  .detail-block p { font-size: 16px; }
  .detail-actions { flex-direction: column; }
  .source-row { grid-template-columns: 1fr; gap: 2px; }
  .toast { bottom: 16px; }
}

@media (forced-colors: active) {
  .region-tabs button.selected, .tag[aria-pressed="true"] { outline: 2px solid ButtonText; }
  .article-title { text-decoration-color: LinkText; }
}
