/* Cat Hz アプリ：見た目。色と大きさは、見本（2026年10月）と同じにしてあります */
:root {
  --bg: #14162B;
  --card: #1E2140;
  --nav: #181A33;
  --text: #F4EEDF;
  --sub: #BDB9D3;
  --soft: #D9D5E8;
  --accent: #E9A86B;
  --accent-soft: #F3C79A;
  --moon: #F3E6C4;
  --moon-dark: #363A5E;
  --line: rgba(244, 238, 223, 0.12);
  --line-strong: rgba(244, 238, 223, 0.2);
  --red: #D7383F;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #0B0C1A;
  color: var(--text);
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; color: inherit; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
img { display: block; }
.mincho { font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif; font-weight: 700; }

#app {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* パソコンで開いたときは、スマホの形に見せる */
@media (min-width: 520px) and (min-height: 700px) {
  body { display: flex; align-items: center; justify-content: center; }
  #app { height: min(100dvh - 32px, 880px); border-radius: 36px; border: 1px solid rgba(244, 238, 223, 0.14); }
}

#view, #playerScreen { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(244, 238, 223, 0.22) transparent; }
#view::-webkit-scrollbar, #playerScreen::-webkit-scrollbar { width: 6px; }
#view::-webkit-scrollbar-thumb, #playerScreen::-webkit-scrollbar-thumb { background: rgba(244, 238, 223, 0.22); border-radius: 3px; }
#view::-webkit-scrollbar-track, #playerScreen::-webkit-scrollbar-track { background: transparent; }
.page { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 20px; }
.page > * { flex-shrink: 0; }

/* いちばん上の行 */
.top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.brand img { height: 54px; width: auto; filter: brightness(1.25) drop-shadow(0 0 6px rgba(243, 230, 196, 0.25)); }
.brand span { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--soft); padding-left: 4px; white-space: nowrap; }
.top-right { display: flex; align-items: center; gap: 8px; }
.moon-chip { min-height: 44px; padding: 4px 12px 4px 6px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--card); display: flex; align-items: center; gap: 8px; }
.moon-chip .d { font-size: 11px; color: var(--sub); display: block; }
.moon-chip .n { font-size: 13px; font-weight: 700; display: block; white-space: nowrap; }
.icon-btn { width: 44px; height: 44px; padding: 0; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-btn.clear { background: transparent; }

/* 今日のもみじ */
.hero { position: relative; width: 100%; height: clamp(170px, 30vh, 300px); border-radius: 24px; overflow: hidden; background: var(--card); }
.hero > img { width: 100%; height: 100%; object-fit: cover; }
.hero .tag { position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; padding: 6px 12px; border-radius: 14px; background: rgba(20, 22, 43, 0.72); }
.hero .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px; background: linear-gradient(rgba(14, 15, 32, 0), rgba(14, 15, 32, 0.82)); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.hero .cap .t { font-size: 24px; color: #fff; }
.hero .cap .arrows { display: flex; gap: 8px; }
.glass-btn { width: 44px; height: 44px; padding: 0; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(20, 22, 43, 0.55); color: #fff; display: flex; align-items: center; justify-content: center; }

/* カード */
.card { width: 100%; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.card .body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
.small { font-size: 12px; color: var(--sub); }
.chev { flex-shrink: 0; color: var(--sub); }

h2.sec { margin: 0 0 4px; font-size: 20px; }
.sec-sub { margin: 0 0 12px; font-size: 12px; color: var(--accent-soft); }
.scene { position: relative; height: 150px; padding: 0; border-radius: 20px; border: none; overflow: hidden; background: var(--card); }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 12px 12px; background: linear-gradient(rgba(14, 15, 32, 0), rgba(14, 15, 32, 0.88)); display: flex; flex-direction: column; gap: 3px; }
.scene .t { font-size: 18px; font-weight: 700; color: #fff; }
.scene .u { font-size: 12px; color: #E6E2F2; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.who { position: relative; height: 190px; padding: 0; border-radius: 20px; border: none; overflow: hidden; background: var(--card); }
.who img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.who .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 14px; background: linear-gradient(rgba(14, 15, 32, 0), rgba(14, 15, 32, 0.85)); display: flex; flex-direction: column; gap: 4px; }
.who .t { font-size: 20px; font-weight: 700; color: #fff; }
.who .s { font-size: 11px; color: var(--accent-soft); }
.who .u { font-size: 12px; color: #E6E2F2; }

.yt-card { border-color: rgba(233, 168, 107, 0.45); }
.paw-box { width: 52px; height: 52px; border-radius: 16px; background: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* 今夜の月 */
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.title { font-size: 24px; margin: 0; }
.day-nav { display: flex; align-items: center; gap: 6px; }
.day-nav .date { font-size: 14px; min-width: 64px; text-align: center; }
.moon-big { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 4px; }
.moon-big .name { font-size: 32px; margin-top: 4px; }
.pill-btn { min-height: 36px; margin-top: 4px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-strong); background: transparent; font-size: 12px; }
.text-card { padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.text-card .t { font-size: 16px; line-height: 1.8; }
.rec { padding: 12px; }
.rec img { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.rec .n { font-size: 18px; font-weight: 700; }
.play-dot { width: 44px; height: 44px; border-radius: 22px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week .d { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 12px; }
.week .d.on { background: rgba(233, 168, 107, 0.14); }
.week .l { font-size: 11px; color: var(--sub); }
.week .m { font-size: 11px; color: var(--accent-soft); min-height: 15px; }
.next { padding: 12px 14px; border-radius: 16px; background: var(--card); display: flex; flex-direction: column; gap: 2px; }
.next .v { font-size: 17px; font-weight: 700; }
.h3 { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
/* 月のカレンダー */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-head .ym { font-size: 18px; }
.cal-head .icon-btn:disabled { opacity: 0.3; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal .w { font-size: 11px; color: var(--sub); text-align: center; padding: 4px 0; }
.cal .w.sun { color: #F0A0A0; }
.cal .w.sat { color: #A9BDF0; }
.cal button { min-height: 62px; padding: 4px 0 2px; border: 1px solid transparent; border-radius: 12px; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cal button .n { font-size: 12px; color: var(--soft); }
.cal button .m { font-size: 10px; color: var(--accent-soft); min-height: 13px; white-space: nowrap; }
.cal button.today { background: rgba(233, 168, 107, 0.14); }
.cal button.today .n { color: var(--accent-soft); font-weight: 700; }
.cal button.sel { border-color: var(--accent); }
.cal-note { font-size: 12px; color: var(--sub); margin: 8px 0 0; line-height: 1.7; }

/* 一覧 */
.banner { position: relative; width: 100%; height: 180px; border-radius: 24px; overflow: hidden; background: var(--card); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(rgba(14, 15, 32, 0), rgba(14, 15, 32, 0.85)); display: flex; flex-direction: column; gap: 2px; }
.banner .t { font-size: 28px; color: #fff; }
.banner .s { font-size: 13px; color: #E6E2F2; }
.list { display: flex; flex-direction: column; gap: 12px; }
.item { padding: 10px; }
.item img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.item .n { font-size: 19px; font-weight: 700; }
.item .desc { font-size: 13px; color: var(--sub); line-height: 1.6; }
.chips { display: flex; gap: 6px; margin-top: 2px; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 12px; background: rgba(244, 238, 223, 0.08); color: var(--soft); }
.chip.hz { background: rgba(233, 168, 107, 0.16); color: var(--accent-soft); }
.note { font-size: 12px; line-height: 1.8; color: var(--sub); margin: 0; }

/* もみじのこと・お気に入り */
.about { padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.about img { width: 120px; height: 120px; border-radius: 60px; object-fit: cover; border: 3px solid rgba(243, 230, 196, 0.6); }
.about .t { font-size: 14px; line-height: 1.8; color: var(--soft); }
.about .b { font-size: 13px; color: var(--accent-soft); }
.album { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.album figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.album img { width: 100%; height: 100px; border-radius: 14px; object-fit: cover; }
.album figcaption { font-size: 12px; color: var(--soft); }
.red-btn { min-height: 48px; border-radius: 24px; background: var(--red); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; }
.empty { padding: 32px 20px; border-radius: 20px; background: var(--card); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.empty .t { font-size: 15px; line-height: 1.8; }
.empty .s { font-size: 13px; line-height: 1.8; color: var(--sub); }

/* 再生画面 */
#playerScreen { display: flex; flex-direction: column; }
.player-top { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.player-logo { height: 40px; width: auto; filter: brightness(1.25); }
#ytBox { flex-shrink: 0; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; background: #000; }
#ytBox iframe, #yt { width: 100%; height: 100%; border: 0; display: block; }
#playerInfo { padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.now { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.now .meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.now .who-l { font-size: 13px; color: var(--sub); }
.now .n { font-size: 30px; }
.now .desc { font-size: 14px; color: var(--soft); line-height: 1.6; }
.now .hz { font-size: 13px; color: var(--sub); }
.now .btns { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.fav-btn { width: 52px; height: 52px; padding: 0; border-radius: 26px; border: 1px solid rgba(244, 238, 223, 0.25); background: transparent; display: flex; align-items: center; justify-content: center; }
.play-btn { width: 76px; height: 76px; padding: 0; border-radius: 38px; border: none; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.play-btn:disabled { opacity: 0.45; }
.timer-h { font-size: 13px; font-weight: 700; color: var(--sub); margin: 0 0 10px; }
.timers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.timers button { min-height: 44px; border-radius: 22px; border: 1px solid rgba(244, 238, 223, 0.18); background: transparent; font-size: 14px; text-align: center; padding: 0; }
.timers button.on { border-color: var(--accent); background: rgba(233, 168, 107, 0.18); font-weight: 700; }
.remain { font-size: 13px; color: var(--accent-soft); margin: 10px 0 0; min-height: 20px; }
.warn { font-size: 13px; line-height: 1.7; padding: 12px 14px; border-radius: 14px; background: rgba(215, 56, 63, 0.16); border: 1px solid rgba(215, 56, 63, 0.5); margin: 0; }
.test-badge { font-size: 12px; padding: 6px 12px; border-radius: 14px; background: rgba(233, 168, 107, 0.18); color: var(--accent-soft); align-self: flex-start; }

/* 下のメニュー */
#tabs { flex-shrink: 0; padding: 6px 8px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(244, 238, 223, 0.1); background: var(--nav); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
#tabs button { min-height: 56px; padding: 6px 0; border: none; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #9C98B8; font-size: 11px; }
#tabs button.on { color: var(--accent-soft); }

/* 右上の≡を押したときのメニュー */
#sheet { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; z-index: 10; }
#sheet .shade { position: absolute; inset: 0; border: none; padding: 0; background: rgba(8, 9, 20, 0.6); }
#sheet .panel { position: relative; padding: 12px 20px calc(28px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
#sheet .grip { width: 40px; height: 4px; border-radius: 2px; background: rgba(244, 238, 223, 0.25); align-self: center; margin-bottom: 10px; }
#sheet .row { min-height: 56px; padding: 0 8px; border: none; border-radius: 14px; background: transparent; display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--text); text-decoration: none; }
#sheet .row .grow { flex: 1 1 auto; }
#sheet .row .count { font-size: 13px; color: var(--sub); }
#sheet .mini-paw { width: 28px; height: 28px; border-radius: 8px; background: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin: 0 -2px; }

/* ホームのいちばん下の「チャンネル登録する」ボタン。横いっぱいにせず、中央に小さめに置きます。 */
.red-btn.sub { align-self: center; width: fit-content; margin: 0 auto; min-height: 40px; padding: 0 26px; font-size: 13.5px; border-radius: 20px; }
