:root {
  color-scheme: light;
  /* COMEDY palette: ATAWI MUSIC's dark charcoal/gold is inverted into daylight cyan/coral/yellow. */
  --bg: #f7fff2;
  --paper: #ffffff;
  --ink: #172023;
  --muted: #5f6d72;
  --line: #cfe5e3;
  --accent: #00a6d6;
  --accent-strong: #006e8a;
  --coral: #ff4f7b;
  --sun: #ffd84d;
  --lime: #6ddf82;
  --soft: #e9fbff;
  --soft-coral: #fff0f4;
  --soft-sun: #fff7cf;
  --shadow: 0 16px 34px rgba(23, 32, 35, 0.10);
  --maxw: 1120px;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.78; scroll-behavior: smooth; }
body { margin: 0; }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
img { display: block; max-width: 100%; }
.wrap, .page-main, .header-inner, .footer-compact { width: min(var(--maxw), calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); border-bottom: 3px solid var(--accent); backdrop-filter: blur(10px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 8px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-logo { width: 168px; height: auto; flex: 0 0 auto; }
.brand-sub { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.header-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }
.presented-link { color: var(--muted); font-size: 0.82rem; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0 14px; }
.site-nav a { color: var(--ink); font-size: 0.9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .random-link { color: var(--accent-strong); }
.random-link { background: var(--soft-sun); border: 1px solid rgba(255, 216, 77, 0.7); border-radius: 6px; padding: 4px 8px; }
.hero { padding: 50px 0 34px; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: center; }
.hero-photo-wrap { width: 220px; aspect-ratio: 1; border: 3px solid var(--accent); border-radius: 8px; background: var(--soft); overflow: hidden; box-shadow: var(--shadow); justify-self: start; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { min-width: 0; --hero-title-size: clamp(calc(2rem - 2px), calc(5vw - 2px), calc(4.2rem - 2px)); --hero-measure: calc(var(--hero-title-size) * 13); }
.hero-copy-measure { width: min(100%, var(--hero-measure)); }
.hero h1, .page-section h1, .article-header h1 { margin: 0; letter-spacing: 0; line-height: 1.18; }
.hero h1 { font-size: var(--hero-title-size); max-width: 13em; }
.lead { margin: 20px 0 0; color: var(--muted); font-size: 1.02rem; max-width: 46em; }
.hero .lead { max-width: none; }
.action-row, .card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-action-row { justify-content: center; margin-top: 18px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: 6px; padding: 9px 14px; font-weight: 800; text-decoration: none; cursor: pointer; background: var(--paper); color: var(--accent-strong); font: inherit; }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.secondary { background: var(--soft); color: var(--accent-strong); }
.button.ghost { border-color: var(--line); color: var(--ink); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 28px 0 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.section-head h2 { margin: 0; font-size: 1.45rem; }
.count, .muted { color: var(--muted); font-weight: 700; }
.controls { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(140px, 1fr)) auto; gap: 10px; margin: 16px 0 22px; }
.controls input, .controls select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); padding: 9px 12px; font: inherit; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.video-card, .simple-card, .article-side, .stats-row div { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.video-card { overflow: hidden; display: grid; grid-template-columns: minmax(190px, 42%) minmax(0, 1fr); min-height: 270px; }
.thumb-link { background: var(--soft-sun); }
.thumb-link img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; aspect-ratio: 16 / 9; }
.video-card-body { padding: 18px; min-width: 0; }
.eyebrow { margin: 0 0 7px; color: var(--coral); font-size: 0.82rem; font-weight: 900; }
.video-card h3 { margin: 0; font-size: 1.25rem; line-height: 1.35; }
.video-card h3 a { color: var(--ink); text-decoration: none; }
.summary { margin: 10px 0; color: var(--muted); }
.selection-pill { display: inline-flex; align-items: center; min-height: 30px; border-radius: 999px; background: var(--soft-sun); color: #795600; padding: 4px 10px; font-size: 0.86rem; font-weight: 900; }
.rating-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 12px 0 8px; }
.rating-grid div { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; background: #fbfffd; }
.rating-grid dt { color: var(--muted); font-size: 0.78rem; }
.rating-grid dd { margin: 0; color: var(--coral); font-size: 0.84rem; white-space: nowrap; }
.card-label { margin: 0 0 8px; font-weight: 900; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.tag-row span { border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; padding: 3px 8px; font-size: 0.8rem; }
.more-row { display: flex; justify-content: center; margin: 8px 0 44px; }
.page-section { max-width: 900px; padding: 42px 0 36px; }
.page-section h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.content-band { border-top: 1px solid var(--line); padding: 30px 0; max-width: 920px; }
.content-band h2 { margin: 0 0 12px; color: var(--accent-strong); }
.three-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: none; }
.simple-card { padding: 18px; box-shadow: none; }
.simple-card h2 { margin: 0 0 8px; color: var(--ink); }
.accent-ma { border-top: 5px solid var(--accent); }
.accent-world { border-top: 5px solid var(--coral); }
.accent-word { border-top: 5px solid var(--sun); }
.article-header { max-width: 940px; padding: 42px 0 24px; }
.article-header h1 { font-size: clamp(2rem, 5vw, 3.35rem); }
.article-meta { margin: 12px 0 0; color: var(--muted); font-weight: 800; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; padding-bottom: 52px; }
.article-body { max-width: 800px; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 { margin: 2.1em 0 0.8em; border-top: 1px solid var(--line); padding-top: 24px; color: var(--accent-strong); }
.article-body ol, .article-body ul { padding-left: 1.4em; }
.article-body li { margin: 0.4em 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; background: var(--paper); }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.article-body th { background: var(--soft); color: var(--accent-strong); text-align: left; }
.article-body pre { overflow-x: auto; border: 1px solid var(--line); border-left: 5px solid var(--coral); border-radius: 8px; background: #fbfffd; padding: 16px; white-space: pre-wrap; }
.youtube-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #050608; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.youtube-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.oishi-selection-box { background: linear-gradient(135deg, var(--soft), #fff); border: 1px solid #bfeaf4; border-left: 6px solid var(--accent); border-radius: 8px; padding: 20px; margin: 22px 0; }
.oishi-selection-box h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.selection-main { font-size: 1.05rem; font-weight: 900; }
.rating-list { padding-left: 1.2em; }
.article-side { position: sticky; top: 96px; padding: 16px; box-shadow: none; }
.article-side h2 { margin: 0 0 8px; font-size: 1rem; color: var(--accent-strong); }
.article-side-title { margin: 0 0 8px; font-size: 1rem; color: var(--accent-strong); font-weight: 900; }
.company-cta { margin: 36px 0 0; padding: 20px; border: 2px solid var(--coral); border-radius: 8px; background: var(--soft-coral); }
.company-cta h2 { margin-top: 0; border-top: 0; padding-top: 0; color: var(--coral); }
.company-cta-title { margin-top: 0; color: var(--coral); font-size: 1.1rem; font-weight: 900; }
.company-cta p { margin: 0.35em 0; font-weight: 700; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.stats-row div { padding: 14px; }
.stats-row span { display: block; font-size: 1.5rem; font-weight: 900; }
.stats-row small { color: var(--muted); }
.playlist-day { border-top: 1px solid var(--line); padding: 14px 0; }
.playlist-day summary { cursor: pointer; font-weight: 900; }
.playlist-day li { margin: 8px 0; }
.notice { background: var(--soft-sun); border: 1px solid #e8c84a; border-radius: 8px; padding: 14px; }
[data-site-footer] { display: block; min-height: 190px; background: #e9fbff; }
.site-footer { border-top: 3px solid var(--accent); background: #e9fbff; padding: 16px 0 12px; margin-top: 40px; }
.footer-compact { color: rgba(23, 32, 35, 0.64); font-size: 0.72rem; line-height: 1.68; }
.footer-compact p { margin: 0 0 4px; }
.footer-compact a { color: var(--accent-strong); font-weight: 700; }
.footer-title a { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: baseline; color: inherit; text-decoration: none; }
.footer-title strong { color: var(--ink); font-size: 0.84rem; }
.footer-title span, .footer-label { color: rgba(23, 32, 35, 0.55); }
.footer-label { font-weight: 900; margin-top: 6px; }
.footer-bottom { color: rgba(23, 32, 35, 0.42); text-align: center; }
@media (max-width: 920px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .header-links { align-items: flex-start; width: 100%; }
  .site-nav { justify-content: flex-start; }
  .hero-inner, .article-layout { grid-template-columns: 1fr; }
  .hero-photo-wrap { width: min(220px, 58vw); }
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: 1fr; }
  .article-side { position: static; }
}
@media (max-width: 640px) {
  .wrap, .page-main, .header-inner, .footer-compact { width: min(100% - 24px, var(--maxw)); }
  .brand-logo { width: 128px; }
  .brand-sub { display: none; }
  .site-nav { gap: 4px 10px; }
  .site-nav a { font-size: 0.78rem; }
  .controls, .video-card, .three-columns, .stats-row { grid-template-columns: 1fr; }
  .hero-photo-wrap { width: min(172px, 56vw); }
  .thumb-link img { min-height: 190px; }
  .rating-grid { grid-template-columns: 1fr; }
  .footer-compact { font-size: 0.68rem; }
}
