/* AIデジマ — 海外のAIニュースを、日本語で最速に。
   白地×墨の文字×出島のオレンジ（#ff6a1a）。読みやすさ優先で常に白地（ダークモードにしない）。本文はシステムフォント */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f7;
  --ink: #111418;
  --ink-2: #3d444e;
  --muted: #6b7380;
  --line: #e4e6e9;
  --accent: #ff6a1a;
  --accent-text: #c2410c;
  --topbar: #f5f6f7;
  --topbar-ink: #3d444e;
  --shadow: 0 1px 2px rgba(17, 20, 24, 0.06);
  --radius: 10px;
  --wrap: 1180px;
  --font:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic",
    Meiryo, sans-serif;
  color-scheme: light;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "palt" 1;
  overflow-wrap: anywhere;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent-text);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}
.narrow {
  max-width: 820px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

/* ---------- ヘッダー ---------- */
.topbar {
  background: var(--topbar);
  color: var(--topbar-ink);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  height: 30px;
  white-space: nowrap;
  overflow: hidden;
}
.topbar-tag {
  color: var(--ink);
  font-weight: 600;
}
.topbar-upd {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.topbar-upd time {
  color: var(--accent-text);
  font-weight: 700;
}
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.masthead-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.logo:hover {
  color: var(--ink);
}
.logo .fan {
  width: 38px;
  height: 38px;
  color: var(--accent);
  flex: none;
}
.logo-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-text b {
  font-weight: 900;
}
.logo-sm .fan {
  width: 28px;
  height: 28px;
}
.logo-sm .logo-text {
  font-size: 20px;
}
.masthead-lead {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.search-mini {
  margin-left: auto;
}
.search-mini input {
  width: 220px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.catnav {
  border-top: 1px solid var(--line);
}
.catnav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.catnav-inner::-webkit-scrollbar {
  display: none;
}
.catnav a {
  position: relative;
  flex: none;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.catnav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--c, var(--accent));
  transform: scaleX(0);
  transition: transform 0.18s ease;
}
.catnav a:hover {
  color: var(--ink);
}
.catnav a:hover::after,
.catnav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.catnav a[aria-current="page"] {
  color: var(--ink);
}
.catnav-models {
  margin-left: auto;
  color: var(--accent-text) !important;
}

/* ---------- 共通パーツ ---------- */
.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ink-2);
}
.cat::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c, var(--accent));
}
.cat:hover {
  color: var(--ink);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--bg);
}
.tag:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}
.tag .n {
  color: var(--muted);
  font-size: 11px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags-lg .tag {
  font-size: 15px;
  padding: 6px 14px;
}
.section-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}
.section-h small {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
}
.section-h::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.crumbs a::after {
  content: "›";
  margin-left: 6px;
  color: var(--line);
}
.crumbs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40ch;
}
.more-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-text);
}
.more-link::after {
  content: " →";
}

/* ---------- トップのヒーロー ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--line);
}
.hero-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-main .meta {
  margin: 14px 0 6px;
}
.hero-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-summary {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 14px;
}
.hero-summary li {
  position: relative;
  padding-left: 16px;
  margin: 4px 0;
}
.hero-summary li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}
.hero-sub {
  display: flex;
  flex-direction: column;
}
.mini {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mini:first-child {
  padding-top: 0;
}
.mini:last-child {
  border-bottom: 0;
}
.mini-img img {
  border-radius: 8px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.mini-title {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

/* ---------- 2カラム ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  padding: 24px 0 56px;
}
.layout-article {
  grid-template-columns: minmax(0, 740px) 300px;
  justify-content: space-between;
}

/* ---------- 記事一覧（日付ごと） ---------- */
.day {
  margin-bottom: 8px;
}
.day-label {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 12px 0 8px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.day-label span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
}
.item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.thumb img {
  border-radius: 8px;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: opacity 0.15s;
}
.thumb:hover img {
  opacity: 0.88;
}
.item-title {
  margin: 6px 0 6px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -0.005em;
}
.item-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-src {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.btn-more,
.btn-rss {
  display: block;
  margin: 24px 0 0;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.btn-more:hover,
.btn-rss:hover {
  background: var(--ink);
  color: var(--bg);
}
.list-head {
  padding: 8px 0 12px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 4px;
}
.list-head h1 {
  margin: 8px 0 6px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
}
.list-head h1 small {
  margin-left: 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.list-head p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  font-size: 14px;
}
.pager a {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}
.empty {
  color: var(--muted);
  padding: 24px 0;
}

/* ---------- サイドバー ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-article {
  position: sticky;
  top: 16px;
  align-self: start;
}
.side-box,
.editor-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.editor-card {
  background: var(--bg-soft);
  border-color: transparent;
}
.side-h {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.side-cats {
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px dashed var(--line);
}
.side-cats li:last-child a {
  border-bottom: 0;
}
.side-cats a span:first-child::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--c);
}
.side-cats .n {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.side-toc ol {
  margin: 0;
  padding-left: 1.3em;
  font-size: 13px;
  line-height: 1.6;
}
.side-toc li {
  margin: 6px 0;
}
.side-toc a {
  color: var(--ink-2);
}
.side-follow .btn-rss {
  margin: 0;
}
.editor-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.editor-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff1e8;
}
.editor-avatar .fan {
  width: 32px;
  height: 32px;
  color: var(--accent);
}
.editor-avatar-lg {
  width: 88px;
  height: 88px;
}
.editor-avatar-lg .fan {
  width: 54px;
  height: 54px;
}
.editor-name {
  font-size: 17px;
  font-weight: 800;
}
.editor-title {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.editor-bio {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ---------- 記事ページ ---------- */
.post-head {
  padding: 10px 0 0;
}
.post-title {
  margin: 10px 0 14px;
  font-size: 30px;
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.post-title small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.byline a {
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.post-eyecatch {
  margin: 20px 0 0;
}
.post-eyecatch img {
  width: 100%;
  border-radius: var(--radius);
}
.tldr {
  margin: 24px 0 0;
  padding: 18px 20px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  position: relative;
}
.tldr-h {
  position: absolute;
  top: -12px;
  left: 16px;
  margin: 0;
  padding: 0 8px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-text);
}
.tldr ol {
  margin: 0;
  padding-left: 1.4em;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.7;
}
.tldr li {
  margin: 4px 0;
}
.tldr li::marker {
  color: var(--accent);
  font-weight: 800;
}
.toc {
  display: none;
  margin: 24px 0 0;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.toc-h {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.toc ol {
  margin: 0;
  padding-left: 1.4em;
  font-size: 14px;
}
.toc a {
  color: var(--ink-2);
}
.post-body {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: 0.01em;
}
.post-body p {
  margin: 0 0 1.35em;
}
.post-body h2 {
  margin: 2.2em 0 0.9em;
  padding: 0 0 10px;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 800;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.post-body h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 72px;
  height: 2px;
  background: var(--accent);
}
.post-body h3 {
  margin: 1.8em 0 0.6em;
  font-size: 18px;
  font-weight: 800;
}
.post-body a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-body strong {
  font-weight: 800;
  background: linear-gradient(transparent 62%, rgba(255, 106, 26, 0.22) 62%);
}
.post-body ul,
.post-body ol {
  margin: 0 0 1.35em;
  padding-left: 1.4em;
}
.post-body li {
  margin: 0.35em 0;
}
.post-body blockquote {
  margin: 0 0 1.35em;
  padding: 12px 18px;
  border-left: 4px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-2);
  border-radius: 0 8px 8px 0;
}
.post-body blockquote p:last-child {
  margin-bottom: 0;
}
.post-body code {
  padding: 0.1em 0.4em;
  font-size: 0.88em;
  background: var(--bg-soft);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.post-body pre {
  padding: 16px;
  overflow-x: auto;
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.post-body pre code {
  background: none;
  padding: 0;
}
.table-wrap {
  margin: 0 0 1.5em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
.post-body th,
.post-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.post-body th {
  background: var(--bg-soft);
  font-weight: 800;
  white-space: nowrap;
}
.post-body tr:last-child td {
  border-bottom: 0;
}
.editor-note {
  margin: 32px 0 0;
  padding: 18px 20px;
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.editor-note-h {
  margin: 0 0 8px;
  font-weight: 800;
}
.editor-note-h span {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}
.editor-note p:last-child {
  margin: 0;
}
.sources {
  margin: 36px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sources h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
}
.sources ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.sources li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.sources li:last-child {
  border-bottom: 0;
}
.sources .pub {
  flex: none;
  min-width: 7em;
  font-weight: 700;
  color: var(--muted);
  font-size: 12px;
  padding-top: 2px;
}
.sources a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.sources-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.sources-note a {
  text-decoration: underline;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 0;
}
.share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
.share a,
.share button {
  flex: 1 1 110px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  color: #fff;
}
.share-x {
  background: #111418;
}
.share-hb {
  background: #00a4de;
}
.share-line {
  background: #06c755;
}
.share-copy {
  background: var(--bg-soft) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}
.share a:hover {
  color: #fff;
  opacity: 0.9;
}
.author-box {
  display: flex;
  gap: 16px;
  margin: 32px 0 0;
  padding: 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.author-role {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-text);
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 32px 0 0;
}
.post-nav a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.post-nav span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.post-nav .next {
  grid-column: 2;
  text-align: right;
}
.related {
  margin: 40px 0 0;
}
.related h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.rel img {
  border-radius: 8px;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 8px;
}
.rel-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.rel-cat::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c);
}
.rel-title {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- 固定ページ・検索 ---------- */
.page {
  padding: 8px 0 56px;
}
.profile-head {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px 0 8px;
}
.profile-head .post-title {
  margin: 4px 0 4px;
}
.search-big input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  background: var(--bg);
  color: var(--ink);
}
.search-count {
  color: var(--muted);
  font-size: 13px;
}
.sr {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.sr-meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.sr-title {
  display: block;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.5;
  margin: 2px 0;
}
.sr-desc {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- フッター ---------- */
.footer {
  background: var(--bg-soft);
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
  font-size: 13px;
}
.footer .logo {
  color: var(--ink);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}
.footer-brand p {
  margin: 12px 0 0;
  line-height: 1.8;
  max-width: 52ch;
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  align-content: start;
}
.footer-nav a:hover {
  color: var(--accent-text);
}
.copyright {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1080px) {
  .layout,
  .layout-article {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar-article {
    position: static;
  }
  .side-toc {
    display: none;
  }
  .toc {
    display: block;
  }
  .masthead-lead {
    display: none;
  }
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .topbar-tag {
    display: none;
  }
  .masthead-inner {
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .logo .fan {
    width: 32px;
    height: 32px;
  }
  .logo-text {
    font-size: 24px;
  }
  .search-mini input {
    width: 130px;
  }
  .hero {
    padding-top: 16px;
  }
  .hero-title {
    font-size: 21px;
  }
  .mini {
    grid-template-columns: 112px 1fr;
    gap: 12px;
  }
  .mini-title {
    font-size: 14px;
  }
  .item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
  }
  .item-title {
    font-size: 15px;
    margin: 4px 0 0;
  }
  .item-desc {
    display: none;
  }
  .item-src {
    font-size: 11px;
  }
  .post-title {
    font-size: 23px;
  }
  .post-body {
    font-size: 16px;
    line-height: 1.9;
  }
  .post-body h2 {
    font-size: 19px;
  }
  .tldr ol {
    font-size: 14px;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .rel-title {
    font-size: 13px;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav .next {
    grid-column: 1;
  }
  .profile-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 一次情報・NEW・情報源の種別 ---------- */
.new {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.primary-mark {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
}
.read-min {
  color: var(--muted);
}
.sources .kind {
  flex: none;
  min-width: 4.5em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 1.6;
  align-self: flex-start;
  margin-top: 2px;
}
.sources .kind[data-kind="公式発表"],
.sources .kind[data-kind="公式ドキュメント"],
.sources .kind[data-kind="公式サイト"] {
  background: var(--accent);
  color: #fff;
}
.sources .kind[data-kind="X投稿"] {
  background: #1f2937;
  color: #fff;
}
.sources .kind[data-kind="論文"] {
  background: #8b5cf6;
  color: #fff;
}
.hb-count {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
}
.x-embed {
  margin: 0 0 1.35em;
}
.x-embed blockquote {
  margin: 0;
  padding: 12px 18px;
  border-left: 4px solid var(--ink);
  background: var(--bg-soft);
  border-radius: 0 8px 8px 0;
}
.x-embed blockquote a {
  color: var(--ink-2);
  font-weight: 700;
}
.editor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  margin: 0;
}
.editor-links .more-link {
  margin-top: 10px;
}
.x-link {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.x-link::before {
  content: "𝕏 ";
}
.btn-x {
  display: block;
  margin: 10px 0 0;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-2);
}
.btn-x:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.side-months a span:first-child::before {
  display: none;
}
.side-models {
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-models a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px dashed var(--line);
}
.side-models li:last-child a {
  border-bottom: 0;
}
.side-models .n {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- AIモデル図鑑 ---------- */
.models-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.models-table th,
.models-table td,
.spec-table th,
.spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.models-table th,
.spec-table th {
  background: var(--bg-soft);
  font-weight: 800;
  white-space: nowrap;
  font-size: 13px;
}
.models-table tr:last-child td,
.spec-table tr:last-child td {
  border-bottom: 0;
}
.models-table td small {
  color: var(--muted);
}
.models-table .is-deprecated td {
  color: var(--muted);
}
.models-table a {
  color: var(--accent-text);
}
.spec-table {
  margin: 12px 0 0;
}
.spec-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.spec-table th {
  width: 12em;
}
.models-note {
  margin: 10px 0 28px;
  font-size: 12px;
  color: var(--muted);
}
.content .btn-more {
  display: inline-block;
  padding: 10px 24px;
}

/* ---------- 記事の連続表示（TechCrunch型） ---------- */
.post-col {
  min-width: 0;
}
.chain-on .post-nav {
  display: none; /* 次の記事が下に続くので、前後リンクは出さない（HTMLには残す） */
}
.chain-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 56px 0 8px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.chain-sep::before,
.chain-sep::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--line);
}
.chain-sep::before {
  flex: 0 0 24px;
  background: var(--accent);
}
.post.chained .post-head {
  padding-top: 0;
}
.chain-status {
  min-height: 40px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- 出典：一次情報と参考にした報道 ---------- */
.sources h2 + ul {
  margin-bottom: 4px;
}
.press {
  margin-top: 10px;
  font-size: 13px;
}
.press summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
  padding: 4px 0;
}
.press ul {
  margin-top: 6px;
}
.press li {
  font-size: 13px;
}

/* ---------- 一次情報の引用カード・リンクカード・X投稿・動画 ---------- */
.pq {
  margin: 0 0 1.6em;
  padding: 18px 20px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fffaf6;
}
.pq-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
}
.pq-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.pq-src {
  font-weight: 800;
  color: var(--ink);
}
.pq-kind,
.lcard-kind {
  flex: none;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.pq-kind[data-kind="報道"],
.lcard-kind[data-kind="報道"] {
  background: var(--bg-soft);
  color: var(--ink-2);
}
.pq-orig {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
  font-family: Georgia, "Times New Roman", serif;
}
.pq-orig p {
  margin: 0;
}
.pq-orig p::before {
  content: "“";
}
.pq-orig p::after {
  content: "”";
}
.pq-ja {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--ink);
}
.pq-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
}
.pq-link::after {
  content: " →";
}
.post-body .pq a {
  text-decoration: none;
}
.lcard {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  margin: 0 0 1.6em;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.post-body a.lcard {
  color: var(--ink);
  text-decoration: none;
}
.lcard:hover {
  border-color: var(--accent);
}
.lcard-title {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.5;
}
.lcard-meta {
  grid-column: 2;
  font-size: 12px;
  color: var(--muted);
}
.x-embed {
  margin: 0 0 1.6em;
  display: flex;
  justify-content: center;
}
.x-embed blockquote.twitter-tweet {
  max-width: 550px;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
}
.x-embed blockquote.twitter-tweet p {
  margin: 0 0 8px;
}
.yt {
  margin: 0 0 1.6em;
}
.yt-embed {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}
.yt-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  border-radius: 12px;
  background: rgba(255, 0, 0, 0.9);
}
.yt-play::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 14px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.yt figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 用途別AIガイド（/best/） ---------- */
.side-guides {
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-guides a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  font-weight: 700;
}
.side-guides li:last-child a {
  border-bottom: 0;
}
.side-guides .n {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}
.guide-box {
  margin: 32px 0 0;
  padding: 16px 18px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: #fffaf6;
}
.guide-box-h {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-text);
}
.guide-box a {
  display: block;
  padding: 6px 0;
}
.guide-box-t {
  display: block;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.5;
}
.guide-box-m {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.guide-h {
  margin: 40px 0 14px;
  padding: 0 0 10px;
  font-size: 21px;
  font-weight: 800;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.guide-h::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 72px;
  height: 2px;
  background: var(--accent);
}
.guide-sub {
  margin: 18px 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.guide-intro {
  margin-top: 20px;
}
.guide-stale {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff8db;
  font-size: 13px;
}
.guide-scope,
.guide-note {
  font-size: 13px;
  color: var(--muted);
}
.verdicts ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.verdict {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.verdict-q {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-text);
}
.verdict-a {
  margin: 2px 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}
.verdict-runner {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.verdict-runner a {
  text-decoration: underline;
  text-decoration-color: var(--line);
}
.verdict-why {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.verdict-ev {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.verdict-ev a {
  text-decoration: underline;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
}
.guide-table th,
.guide-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.guide-table thead th {
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.guide-table tbody th {
  min-width: 150px;
}
.guide-table tr.is-stale td,
.guide-table tr.is-stale th {
  background: #fffbea;
}
.gt-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
}
.gt-vendor {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.gt-latest {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.gt-models a {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--accent-text);
}
.gt-free {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.gt-price {
  display: block;
  font-weight: 800;
  white-space: nowrap;
}
.gt-checked {
  white-space: nowrap;
  color: var(--muted);
}
.gt-recheck {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
  color: #a16207;
}
.fact {
  cursor: help;
}
.pcard {
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pcard h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}
.pcard h3 span {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.pcard-pros,
.pcard-cons {
  margin: 0 0 6px;
  padding-left: 1.3em;
  font-size: 14px;
}
.pcard-pros li::marker {
  content: "＋ ";
  color: #16a34a;
}
.pcard-cons li::marker {
  content: "－ ";
  color: #d97706;
}
.pcard-take {
  margin: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.pcard-facts {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 4px 12px;
  margin: 10px 0 0;
  font-size: 13px;
}
.pcard-facts dt {
  color: var(--muted);
  font-weight: 700;
}
.pcard-facts dd {
  margin: 0;
}
.pcard-src {
  margin-top: 10px;
  font-size: 12px;
}
.pcard-src summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}
.pcard-src ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
}
.pcard-src a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
}
.pcard-src span,
.src-chk,
.bench-chk {
  color: var(--muted);
  font-size: 11px;
}
.listed,
.benches,
.changelog {
  margin: 0;
  padding: 0;
  list-style: none;
}
.listed li,
.benches li,
.changelog li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.listed a,
.benches a {
  font-weight: 800;
}
.listed .retired a {
  text-decoration: line-through;
}
.listed-take,
.bench-what,
.bench-snap {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
}
.changelog time {
  margin-right: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.criteria {
  margin: 0;
  padding-left: 1.4em;
}
.criteria li {
  margin: 0 0 12px;
}
.criteria p {
  margin: 0;
  font-size: 14px;
}
.criteria-n {
  font-weight: 800;
  font-size: 15px !important;
}
.criteria-how {
  color: var(--muted);
  font-size: 13px !important;
}
.faq dt {
  margin: 14px 0 4px;
  font-weight: 800;
}
.faq dt::before {
  content: "Q. ";
  color: var(--accent-text);
}
.faq dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.guide-group {
  margin: 28px 0 0;
}
.section-h small {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.guide-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.guide-card:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.guide-card-n {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  background: #fff1e8;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 800;
}
.guide-card-t {
  display: block;
  margin: 6px 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}
.guide-card-v {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
}
.guide-card-m {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .verdicts ul,
  .guide-cards {
    grid-template-columns: 1fr;
  }
  .pcard-facts {
    grid-template-columns: 6em 1fr;
  }
}
.side-guides a span:first-child {
  flex: none;
  white-space: nowrap;
}

/* ---------- スマホ（アプリのような操作感） ---------- */
html {
  -webkit-tap-highlight-color: transparent;
}
a,
button {
  touch-action: manipulation;
}
.search-icon,
.tabbar {
  display: none;
}
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  justify-content: space-around;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}
.tabbar a[aria-current="page"] {
  color: var(--accent-text);
}
@media (max-width: 640px) {
  html {
    scroll-padding-top: 104px;
  }
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }
  .topbar {
    display: none;
  }
  .masthead {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
  }
  .masthead-inner {
    padding-top: 8px;
    padding-bottom: 6px;
  }
  .logo .fan {
    width: 26px;
    height: 26px;
  }
  .logo-text {
    font-size: 21px;
  }
  .search-mini {
    display: none;
  }
  .search-icon {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--ink);
  }
  .catnav a {
    padding: 9px 11px;
    font-size: 13px;
  }
  .tabbar {
    display: flex;
  }
  .crumbs {
    display: none;
  }
  .day-label {
    position: static;
  }
  .post-head {
    padding-top: 14px;
  }
  .post-eyecatch img {
    aspect-ratio: 2 / 1;
    object-fit: cover;
  }
  .sidebar-article {
    display: none;
  }
  .hero-img img {
    aspect-ratio: 2 / 1;
    object-fit: cover;
  }
  /* 用途別ガイドの比較表は、スマホでは1製品1枚のカードにする（横スクロールさせない） */
  .guide-table-wrap {
    overflow: visible;
    border: 0;
  }
  .guide-table thead {
    display: none;
  }
  .guide-table,
  .guide-table tbody,
  .guide-table tr,
  .guide-table th,
  .guide-table td {
    display: block;
    width: 100%;
  }
  .guide-table tr {
    margin: 0 0 12px;
    padding: 12px 4px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .guide-table th,
  .guide-table td {
    padding: 4px 12px;
    border: 0;
  }
  .guide-table tbody th {
    min-width: 0;
    padding-bottom: 8px;
  }
  .guide-table td[data-label] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    border-top: 1px dashed var(--line);
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .guide-table td[data-label]::before {
    content: attr(data-label);
    flex: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  .guide-table td[data-label] > * {
    text-align: right;
  }
  .gt-price,
  .gt-free {
    display: inline;
  }
  .gt-free {
    margin-right: 6px;
  }
}
.gt-models a {
  margin-right: 10px;
}
@media (max-width: 640px) {
  .gt-models {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
  }
  .gt-models a {
    margin: 0;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.6;
  }
  .guide-table td[data-label="料金"] .gt-free {
    margin-left: auto;
  }
}

.pq-kind[data-kind="コミュニティ"],
.lcard-kind[data-kind="コミュニティ"],
.sources .kind[data-kind="コミュニティ"] {
  background: #e0e7ff;
  color: #3730a3;
}

/* ---------- サムネイル写真（scripts/thumbs.py が Gemini で生成） ---------- */
.post-eyecatch figcaption {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.thumb,
.mini-img,
.hero-img {
  position: relative;
  display: block;
}
.thumb img,
.mini-img img,
.hero-img img,
.rel img {
  background: var(--bg-soft);
}

/* ---------- 読了の記録（static/reward.js） ---------- */
/* 読んだ記事は写真を少し沈めて「読んだ」の印。まだ読んでいない記事が目立つように */
.is-read .thumb img,
.is-read .mini-img img,
.is-read .hero-img img,
.rel.is-read img {
  opacity: 0.55;
  filter: saturate(0.6);
}
.is-read .item-title a,
.is-read .mini-title a,
.is-read .hero-title a,
.rel.is-read .rel-title {
  color: var(--muted);
}
.is-read .thumb::after,
.is-read .mini-img::after,
.is-read .hero-img::after {
  content: "✓ 読んだ";
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(17, 20, 24, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.7;
}

/* トップの「今日の新着 n/m本」 */
.daily {
  border-bottom: 1px solid var(--line);
}
.daily-inner {
  padding-top: 14px;
  padding-bottom: 14px;
}
.daily-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.daily-label {
  font-size: 13px;
  font-weight: 800;
}
.daily-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.daily-count b {
  font-size: 20px;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.daily-streak {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 2px 9px 2px 6px;
  border-radius: 999px;
  background: #fff1e8;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 800;
}
.daily-streak svg,
.reward-streak svg {
  color: var(--accent);
}
.daily-bar {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}
.daily-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9a3c, var(--accent));
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.daily-inner.is-done .daily-bar i {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}
.daily-sub {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-2);
}
.daily-next {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.daily-next span {
  flex: none;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

/* 読了の通知 */
.reward {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(17, 20, 24, 0.28);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 16px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.reward.is-on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.reward.is-big {
  border-radius: 18px;
}
.reward-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
}
.reward.is-on .reward-check {
  animation: reward-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.reward-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
}
.reward-body b {
  font-size: 14px;
}
.reward-streak {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 800;
  color: #ffd166;
}
.reward-note {
  flex-basis: 100%;
  font-style: normal;
  font-size: 12px;
  color: #ffd9c2;
}
@keyframes reward-pop {
  0% {
    transform: scale(0.4);
  }
  60% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

/* 記事の読み進み具合 */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 3px;
  pointer-events: none;
}
.read-progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.read-progress.is-read i {
  background: #22c55e;
}

/* 新着タブの未読数 */
.tabbar a {
  position: relative;
}
.tab-badge {
  position: absolute;
  top: 0;
  left: calc(50% + 6px);
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .reward,
  .daily-bar i {
    transition: none;
  }
  .reward.is-on .reward-check {
    animation: none;
  }
}

/* ---------- スマホ（写真が主役。小さい一覧でも何の絵かわかるよう 4:3 で大きめに） ---------- */
@media (max-width: 640px) {
  .item {
    grid-template-columns: 124px minmax(0, 1fr);
  }
  .mini {
    grid-template-columns: 124px 1fr;
  }
  .thumb img,
  .mini-img img {
    aspect-ratio: 4 / 3;
  }
  /* 写真の高さで止める（行の高さまで伸びると「読んだ」の印が写真の下にずれる） */
  .item .thumb,
  .mini .mini-img {
    align-self: start;
  }
  /* カテゴリ・時刻・NEW・一次情報が狭い幅で途中改行しないように、語ごとに折り返す */
  .item .meta,
  .mini .meta {
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 2px;
  }
  .item .meta > *,
  .mini .meta > * {
    flex: none;
    white-space: nowrap;
  }
  /* 写真を作れなかった記事の文字カードは、切り抜くと文字が欠けるので 16:9 のまま */
  .no-photo .thumb img,
  .no-photo .mini-img img {
    aspect-ratio: 16 / 9;
  }
  .hero-img img,
  .post-eyecatch img {
    aspect-ratio: 16 / 9;
  }
  .post-eyecatch {
    margin-left: -16px;
    margin-right: -16px;
  }
  .post-eyecatch img {
    border-radius: 0;
  }
  .post-eyecatch figcaption {
    padding: 0 16px;
  }
  .reward {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .daily-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
