/* ===== 背面：背景画像 ===== */
body.yearly-bg{
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
body.yearly-bg::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("../img/bg.webp") center / cover no-repeat;
}
body.yearly-bg::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.35);
}

/* ===== 泡 ===== */
.bubble-layer{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ===== 本文 ===== */
.yearly-header,
.yearly-shell{
  position: relative;
  z-index: 2;
}

/* ヘッダー */
.yearly-header{
  max-width: 1100px;
  margin: 2.5rem auto 1rem;
  padding: 0 1rem;
}

/* 2カラム */
.yearly-shell{
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* 左 */
.yearly-nav{
  flex: 0 0 220px;
  position: sticky;
  top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
}
.yearly-nav__list{ list-style:none; padding:0; margin:0; }
.yearly-nav__list li+li{ margin-top:0.5rem; }
.year-link{
  display:block;
  padding:0.6rem 0.8rem;
  border-radius:10px;
  text-decoration:none;
  background: rgba(255,255,255,0.08);
}
.year-link[aria-current="page"]{
  outline:2px solid rgba(255,255,255,0.4);
}

/* 右 */
.yearly-view{
  flex:1;
  min-width:0;
  padding:1.2rem;
  border-radius:14px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
}
.yearly-view__hint{
  opacity:.85;
  padding-bottom:.75rem;
  margin-bottom:1rem;
  border-bottom:1px solid rgba(255,255,255,.15);
}

/* ===== 目次 ===== */
.toc{
  margin:1rem 0 1.5rem;
  padding:1rem;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}

/* ===== 折りたたみ ===== */
.acc{
  margin:1rem 0;
  border-radius:14px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}
.acc__sum{
  cursor:pointer;
  padding:.9rem 1rem;
  font-weight:700;
  list-style:none;
}
.acc__sum::-webkit-details-marker{ display:none; }
.acc__body{ padding:0 1rem 1rem; }

/* ===== YouTube ===== */
.embed{
  aspect-ratio:16/9;
  margin:1rem 0;
  border-radius:14px;
  overflow:hidden;
  background: rgba(0,0,0,.35);
}
.embed iframe{ width:100%; height:100%; }

/* ===== リンクカード ===== */
.linkcard{
  display:block;
  text-decoration:none;
  border-radius:14px;
  padding:1rem;
  margin:1rem 0;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
}
.linkcard__title{ font-weight:700; margin-bottom:.35rem; }
.linkcard__desc{ opacity:.9; margin-bottom:.75rem; }

/* 画像付き */
.linkcard--media{ display:flex; gap:1rem; }
.linkcard__thumb{
  flex:0 0 120px;
  border-radius:12px;
  overflow:hidden;
}
.linkcard__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ===== 画像 ===== */
.figure img{
  width:100%;
  border-radius:14px;
}

/* ===== スマホ ===== */
@media(max-width:820px){
  .yearly-shell{ display:block; }
  .yearly-nav{ position:static; margin-bottom:1rem; }
}
/* ===== 深海カラー（上書き用） ===== */
:root{
  --sea-ink: rgba(2, 10, 18, 0.75);     /* パネル濃 */
  --sea-ink2: rgba(3, 18, 28, 0.60);    /* パネル薄 */
  --sea-line: rgba(120, 200, 255, 0.18);/* 枠線 */
  --sea-text: rgba(230, 245, 255, 0.92);
  --sea-sub: rgba(230, 245, 255, 0.75);
}

/* 文字色も深海寄せ */
body.yearly-bg{
  color: var(--sea-text);
}
body.yearly-bg a{
  color: var(--sea-text);
}

/* 背景の暗幕を“青み”に */
body.yearly-bg::after{
  background: rgba(1, 16, 26, 0.55) !important; /* ここで濃さ調整 */
}

/* ===== ヘッダー：ボタン横並び ===== */
.yearly-header__row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 1rem;
}

/* Topへ戻るボタン */
.homebtn{
  flex: 0 0 auto;
  display:inline-block;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  text-decoration:none;
  background: rgba(40, 160, 255, 0.14);
  border: 1px solid var(--sea-line);
  color: var(--sea-text);
  backdrop-filter: blur(6px);
}
.homebtn:hover{
  background: rgba(40, 160, 255, 0.20);
}

/* ===== パネル色を深海に ===== */
.yearly-nav,
.yearly-view{
  background: var(--sea-ink) !important;
  border: 1px solid var(--sea-line);
}

/* 中のカード類もちょい青み */
.toc,
.acc,
.linkcard{
  background: var(--sea-ink2) !important;
  border: 1px solid var(--sea-line);
}

/* ===== 右カラム（濃いグレー部分）を下まで伸ばす ===== */
/* 1) flex を縦に伸ばす */
.yearly-shell{
  align-items: stretch !important;              /* ←これ大事 */
  min-height: calc(100vh - 170px);              /* ヘッダー分を引いた目安 */
}

/* 2) 右パネル自身も伸びる */
.yearly-view{
  min-height: 100%;
}

/* スマホは1カラムなので自然に */
@media(max-width:820px){
  .yearly-shell{
    min-height: auto;
  }
}
/* ===== スマホ対応（年内滑り込み版） ===== */
@media (max-width: 768px) {

  /* 全体の横スクロール防止 */
  body {
    overflow-x: hidden;
  }

  /* メインレイアウトを1カラムに */
  .yearly-layout,
  .yearly-main,
  .container,
  main {
    display: block;
    width: 100%;
  }

  /* 左カラム（ARCHIVEとか）を上に */
  .yearly-side,
  .archive {
    width: 100%;
    margin-bottom: 1rem;
  }

  /* 右カラムを幅いっぱいに */
  .yearly-content,
  .content {
    width: 100%;
  }

  /* YouTube iframeをレスポンシブに */
  .embed iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* linkcardを縦並びに */
  .linkcard {
    display: block;
  }

  .linkcard__thumb {
    width: 100%;
    margin-bottom: .5rem;
  }

  .linkcard__thumb img {
    width: 100%;
    height: auto;
  }

  /* 文字サイズちょい縮める */
  body {
    font-size: 14px;
  }

}
/* ===== まず強制で白くする（デバッグ兼・最短修正） ===== */
body.yearly-bg{
  color: rgba(230,245,255,.92) !important;
}
body.yearly-bg a,
body.yearly-bg h1,
body.yearly-bg h2,
body.yearly-bg h3,
body.yearly-bg summary,
body.yearly-bg .acc__sum{
  color: rgba(230,245,255,.92) !important;
}
