html {
  overflow-y: scroll;
}

:root{
  --bg:#f7f7f8;
  --card:#ffffff;
  --text:#222;
  --muted:#777;
  --border:#e6e6e6;
  --link:#222;
}

[data-theme="dark"]{
  --bg:#121212;
  --card:#1e1e1e;
  --text:#eaeaea;
  --muted:#b5b5b5;
  --border:#2a2a2a;
  --link:#eaeaea;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, "Noto Sans JP", sans-serif;
}

.wrap{ max-width:1000px; margin:0 auto; padding:16px; }

.header{
  position:sticky; top:0;
  background:var(--bg);
  border-bottom:1px solid var(--border);
  z-index:10;
}
.headerRow{ display:flex; align-items:center; justify-content:space-between; gap:10px; }

.brand{ display:flex; gap:12px; align-items:baseline; text-decoration:none; color:inherit; }
.logo{ margin:8px 0; font-size:18px; letter-spacing:.5px; }
.sub{ color:var(--muted); font-size:12px; }

.nav{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.nav a{
  flex: 1;
  min-width: 80px;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--card);
}
.nav a:hover{ background:var(--card); color:var(--text); }

.btn{
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  border-radius:10px;
  padding:8px 10px;
  cursor:pointer;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px;
  margin-top:14px;
}

.input, select, textarea{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  border-radius:10px;
  font-size:16px;
}
textarea{ min-height:120px; resize:vertical; }

.grid, .row { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 14px; 
}

@media (min-width: 900px){ 
  .grid, .row { 
    grid-template-columns: 1fr 1fr; 
  } 
}

.cardLink{ text-decoration:none; color:inherit; display:block; }
.title{ margin:0 0 6px; font-size:18px; }
.muted{ color:var(--muted); margin:8px 0 0; }

.tags{ display:flex; flex-wrap:wrap; gap:6px; margin:10px 0; }
.tag{
  border:1px solid var(--border);
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
}

.links{ display:flex; gap:10px; flex-wrap:wrap; margin:10px 0; }
.link{ color:var(--link); text-decoration:underline; }

iframe{ width:100%; aspect-ratio:16/9; border:0; border-radius:10px; }

.footer{ margin:24px 0 40px; color:var(--muted); font-size:12px; }
.notice{
  padding:12px;
  border:1px dashed var(--border);
  border-radius:12px;
  margin-top:14px;
  color:var(--muted);
}

.reading{
  font-size: 0.75em;
  color: var(--muted);
  margin-left: 6px;
  font-weight: normal;
}

.list{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }

.archiveItem{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  text-decoration:none;
  color:inherit;
  background:transparent;
}
.archiveItem:hover{ background:var(--card); }

.archiveItem.active{
  background:var(--card);
  border-color: var(--text);
}

.archiveTitle{ font-weight:600; }

.repCard{
  border:1px solid var(--border);
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.popularCard{
  border:1px solid var(--border);
}

.dateLabel{
  font-variant-numeric: tabular-nums;
}

.songTitleLine .title.songTitle{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:8px;
}

.songTitleLine .songTitleText{
  font-weight:800;
}

.songTitleLine .titleArrow{
  color:var(--muted);
  font-weight:600;
}

.songTitleLine .songBadges .pill{
  margin-left:0;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #d6d6d6;
  border-radius: 10px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #bcbcbc;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--bg);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #2f3540;
  border-radius: 10px;
  border: 2px solid var(--bg);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #3b4350;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

[data-theme="dark"] * {
  scrollbar-color: #2f3540 var(--bg);
}

.selectWrap{
  position: relative;
  flex: 1;
  min-width: 160px;
}

.selectWrap select{
  width: 100%;
  padding: 12px;
  padding-right: 44px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--card);
  background-image: none !important;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
}

.selectWrap::after{
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--text);
  pointer-events: none;
}

select::-ms-expand {
  display: none;
}

.moreButton{
  display:block;
  grid-column:1 / -1;
  justify-self:center;
  margin:16px auto 0;
  padding:8px 18px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--card);
  color:var(--text);
  cursor:pointer;
  font-size:14px;
}

.moreButton:hover{
  background:var(--bg);
}
