/* 余白などの初期化 */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: #fff; color: #111; }

/* 全体：左 240px + 右 可変 */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* 左サイドバー（固定してスクロールしても残す） */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 16px;
  border-right: 1px solid #e5e5e5;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  padding: 8px 10px;

  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

/* ロゴ本体 */
.logo__brand{
  display: inline-block;
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .08em;
  padding: 8px 14px;
  border-radius: 10px;
  background: #111;
  transition: transform .15s ease, box-shadow .2s ease;
}

/* DQ10部分 */
.logo__dq{
  color: #00f0ff;
  text-shadow: 0 0 6px rgba(0,240,255,.7);
}

/* TIME部分 */
.logo__time{
  color: #ffffff;
  margin-left: 0px;
}

/* ホバー演出 */
.logo__brand:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}


.menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-item {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.menu-item:hover { background: #f3f3f3; }
.menu-item.is-active { background: #111; color: #fff; }

.sidebar-footer { margin-top: auto; opacity: 0.6; }

/* 右側 */
.main {
  min-width: 0; /* 横はみ出し対策 */
}

/* 上部バー（YouTubeの検索っぽい） */
.topbar {
  position: sticky;
  top: 0;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  z-index: 10;
}

.search {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
}

.btn {
  padding: 10px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: #f7f7f7;
}

.content {
  padding: 16px;
}

/* 右側にカードを並べる（YouTubeのサムネ一覧風） */
.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  text-align: center;
  border: 2px solid #ededed;
  border-radius: 14px;
  padding: 16px;
  min-height: 110px;
}

.card-link {
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* 画面が狭い時：サイドバーを上に畳む */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #e5e5e5;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.page-title{
  text-align: left;

  display: inline-block;

  padding: 6px 14px;

  background: #000;
  color: #ffffff;

  font-size: 18px;
  font-weight: 600;

  border-radius: 4px;

  margin-bottom: 18px;

  text-shadow: 0 0 6px rgba(125,220,255,0.6);
}