:root {
  --trb-black: #111318;
  --trb-blue: #146cff;
  --trb-pale: #f3f7ff;
  --trb-border: #e4e8ef;
  --trb-muted: #687080;
}

/* Cocoon: THE ROCK BASE専用ページだけを1カラム表示にする。 */
body.trb-core-page #sidebar,
body.trb-core-page .sidebar,
body.trb-core-page .sns-share,
body.trb-core-page .sns-follow,
body.trb-core-page .date-tags,
body.trb-core-page .post-date,
body.trb-core-page .post-update,
body.trb-core-page .entry-categories-tags {
  display: none !important;
}

body.trb-core-page .content-in {
  display: block;
}

body.trb-core-page #main,
body.trb-core-page .main {
  float: none;
  width: 100%;
  max-width: none;
  margin-right: 0;
}

body.trb-core-page .entry-content {
  width: 100%;
}

/* Cocoon標準の目次を専用ページでは横幅のある案内パネルにする。 */
body.trb-core-page .toc {
  width: 100%;
  max-width: 760px;
  margin: 28px auto 40px;
  padding: 22px 26px;
  border: 1px solid var(--trb-border);
  border-left: 5px solid var(--trb-blue);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 19, 24, .05);
}

body.trb-core-page .toc-title {
  text-align: left;
  font-size: 1.05rem;
}

body.trb-core-page .toc-content {
  margin-top: 12px;
}

body.trb-core-page .toc-list,
body.trb-core-page .toc-list ol {
  margin-bottom: 0;
}

body.trb-core-page .toc a {
  color: var(--trb-black);
  text-decoration: none;
}

body.trb-core-page .article-footer {
  margin-top: 24px;
}

.trb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0;
}

.trb-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--trb-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(17, 19, 24, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.trb-grid:has(> .trb-card:only-child) {
  grid-template-columns: minmax(0, 520px);
}

.trb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(17, 19, 24, .11);
}

.trb-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--trb-black), #24395f);
}

.trb-card__image img { width: 100%; height: 100%; object-fit: cover; }
.trb-card__placeholder { display: grid; height: 100%; place-items: center; color: #fff; font-weight: 800; letter-spacing: .08em; }
.trb-card__body { padding: 18px; }
.trb-card__title { margin: 9px 0 12px; font-size: 1.12rem; line-height: 1.5; }
.trb-card__title a { color: var(--trb-black); text-decoration: none; }
.trb-card__line { margin: 5px 0; color: var(--trb-muted); font-size: .92rem; }
.trb-badge { display: inline-flex; padding: 4px 9px; color: var(--trb-blue); background: var(--trb-pale); border-radius: 999px; font-size: .78rem; font-weight: 700; }

.trb-single-box {
  margin: 24px 0 38px;
  padding: 30px 32px;
  background: #fff;
  border: 1px solid var(--trb-border);
  border-top: 4px solid var(--trb-blue);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(17, 19, 24, .05);
}

.trb-single-box h2,
.trb-setlist-body h2,
.trb-calendar__month h2 {
  margin-top: 0;
  border: 0;
  background: transparent;
  color: var(--trb-black);
}

.trb-single-box > h2,
.trb-setlist-body > h2 {
  margin-bottom: 22px;
  padding: 0 0 14px;
  border-bottom: 2px solid var(--trb-border);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.trb-single-box > h2::before,
.trb-setlist-body > h2::before {
  display: inline-block;
  width: 5px;
  height: 1em;
  margin-right: 11px;
  border-radius: 999px;
  background: var(--trb-blue);
  content: "";
  vertical-align: -.08em;
}
.trb-meta { margin: 0; }
.trb-meta__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 16px 0; border-bottom: 1px solid var(--trb-border); }
.trb-meta__row:last-child { border-bottom: 0; }
.trb-meta__row dt { font-weight: 700; color: var(--trb-black); }
.trb-meta__row dd { margin: 0; }
.trb-meta__row a, .trb-related a { color: var(--trb-blue); }
.trb-related { margin-top: 26px; }
.trb-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.trb-chips a, .trb-chips span { display: inline-flex; padding: 7px 11px; color: var(--trb-black); background: var(--trb-pale); border-radius: 8px; text-decoration: none; }
.trb-setlist-body { margin: 30px 0; padding: 30px 32px; background: #f8f9fb; border-radius: 14px; }

.trb-calendar { margin: 28px 0; }
.trb-calendar__month { margin-bottom: 38px; }
.trb-calendar__month h2 {
  margin-bottom: 18px;
  padding: 18px 22px;
  border-left: 6px solid var(--trb-blue);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, var(--trb-pale), #f8f9fb);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}
.trb-calendar__items { display: grid; gap: 10px; }
.trb-calendar__item { position: relative; display: grid; grid-template-columns: 220px minmax(220px, 1fr) minmax(220px, .8fr); gap: 24px; align-items: center; padding: 20px 52px 20px 22px; color: var(--trb-black); background: #fff; border: 1px solid var(--trb-border); border-radius: 12px; box-shadow: 0 6px 18px rgba(17, 19, 24, .035); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.trb-calendar__item::after { position: absolute; right: 22px; color: var(--trb-blue); content: "›"; font-size: 1.7rem; line-height: 1; }
.trb-calendar__item:hover { transform: translateY(-2px); border-color: rgba(20, 108, 255, .42); box-shadow: 0 10px 24px rgba(17, 19, 24, .07); }
.trb-calendar__item strong { font-size: 1.05rem; }
.trb-calendar__item time, .trb-calendar__item span { color: var(--trb-muted); font-size: .9rem; }
.trb-artist-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; list-style: none; }
.trb-artist-list a { display: block; padding: 13px 15px; color: var(--trb-black); background: #fff; border: 1px solid var(--trb-border); border-radius: 9px; text-decoration: none; }
.trb-empty { padding: 20px; background: #f8f9fb; border-radius: 10px; color: var(--trb-muted); }

@media (max-width: 900px) {
  .trb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trb-calendar__item { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 600px) {
  .trb-grid, .trb-artist-list { grid-template-columns: 1fr; }
  .trb-meta__row { grid-template-columns: 1fr; gap: 5px; }
  .trb-single-box, .trb-setlist-body { padding: 20px 18px; }
  body.trb-core-page .toc { margin-bottom: 30px; padding: 18px; }
  .trb-calendar__month h2 { padding: 15px 17px; }
  .trb-calendar__item { padding: 17px 42px 17px 17px; }
  .trb-calendar__item::after { right: 16px; }
}

/* ------------------------------------------------------------
 * 0.4.1 トップページ
 * ---------------------------------------------------------- */
body.trb-home-page {
  background: #fff;
}

body.trb-home-page #header-container,
body.trb-home-page #header,
body.trb-home-page .header-container,
body.trb-home-page .entry-header,
body.trb-home-page .toc,
body.trb-home-page .breadcrumb,
body.trb-home-page .footer-meta,
body.trb-home-page .article-footer {
  display: none !important;
}

body.trb-home-page .content,
body.trb-home-page .content-in,
body.trb-home-page #content,
body.trb-home-page #main,
body.trb-home-page .main,
body.trb-home-page article,
body.trb-home-page .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.trb-home,
.trb-home * {
  box-sizing: border-box;
}

.trb-home {
  margin: 0 calc(50% - 50vw);
  color: var(--trb-black);
  background: #f5f7fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

.trb-home a {
  text-decoration: none;
}

.trb-home-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(100px, 1fr);
  align-items: center;
  min-height: 78px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  background: #fff;
  border-bottom: 1px solid #e8ebf0;
}

.trb-home-brand {
  display: inline-flex;
  flex-direction: column;
  justify-self: start;
  color: var(--trb-black);
  line-height: 1.05;
}

.trb-home-brand strong {
  position: relative;
  padding-left: 38px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: .035em;
}

.trb-home-brand strong::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 29px;
  height: 22px;
  background: repeating-linear-gradient(90deg, var(--trb-blue) 0 3px, transparent 3px 6px);
  clip-path: polygon(0 38%, 12% 38%, 12% 18%, 25% 18%, 25% 0, 38% 0, 38% 27%, 51% 27%, 51% 8%, 64% 8%, 64% 31%, 77% 31%, 77% 16%, 90% 16%, 90% 38%, 100% 38%, 100% 62%, 90% 62%, 90% 84%, 77% 84%, 77% 69%, 64% 69%, 64% 92%, 51% 92%, 51% 73%, 38% 73%, 38% 100%, 25% 100%, 25% 82%, 12% 82%, 12% 62%, 0 62%);
  content: "";
  transform: translateY(-50%);
}

.trb-home-brand small {
  margin: 5px 0 0 38px;
  color: #7a8290;
  font-size: .66rem;
  letter-spacing: .1em;
}

.trb-home-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.trb-home-header nav a {
  color: #2c3038;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}

.trb-home-header nav a:hover {
  color: var(--trb-blue);
}

.trb-home-login {
  justify-self: end;
  padding: 10px 20px;
  color: var(--trb-blue);
  border: 1px solid #b9cfff;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}

.trb-home-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(5, 10, 21, .88) 0%, rgba(5, 10, 21, .68) 43%, rgba(5, 10, 21, .18) 75%), url("rockbase-festival-hero.png");
  background-position: center;
  background-size: cover;
}

.trb-home-hero__inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  color: #fff;
}

.trb-home-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.25;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}

.trb-home-hero p {
  margin: 0;
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  letter-spacing: .04em;
}

.trb-home-hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.trb-btn {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  min-width: 190px;
  padding: 14px 19px;
  border-radius: 6px;
  font-weight: 800;
}

.trb-btn span { font-size: 1.45rem; line-height: .8; }
.trb-btn--blue { color: #fff; background: var(--trb-blue); }
.trb-btn--white { color: var(--trb-black); background: #fff; }

.trb-home-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 70px;
}

.trb-home-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.trb-home-filters > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--trb-border);
  border-radius: 8px;
}

.trb-home-filters strong {
  margin-right: 5px;
  font-size: .87rem;
}

/* OSやブラウザの絵文字フォントに依存しないCSSアイコン。 */
.trb-home-filter-title,
.trb-home-cta-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trb-home-filter-title::before,
.trb-home-cta-title::before,
.trb-home-fes-meta::before {
  display: inline-block;
  flex: 0 0 auto;
  content: "";
}

.trb-home-filter-title--region::before {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff;
}

.trb-home-filter-title--month::before,
.trb-home-cta-title--calendar::before,
.trb-home-fes-meta--date::before {
  width: 14px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: linear-gradient(currentColor, currentColor) 0 3px / 100% 2px no-repeat;
}

.trb-home-cta-title--contact::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, currentColor 0 2px, transparent 2.5px), linear-gradient(currentColor, currentColor) 50% 10px / 7px 3px no-repeat;
}

.trb-home-fes-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trb-home-fes-meta--place::before {
  width: 8px;
  height: 8px;
  margin: 0 3px;
  border-radius: 50%;
  background: var(--trb-blue);
}

.trb-home-filters a {
  padding: 6px 10px;
  color: #4e5664;
  background: #f2f4f7;
  border-radius: 4px;
  font-size: .76rem;
  font-weight: 700;
}

.trb-home-filters a:hover {
  color: #fff;
  background: var(--trb-blue);
}

.trb-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, .86fr);
  gap: 25px;
  align-items: start;
}

.trb-home-primary,
.trb-home-side {
  display: grid;
  gap: 25px;
}

.trb-home-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--trb-border);
  border-radius: 8px;
}

.trb-home-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #eef0f4;
}

.trb-home-section-title h2 {
  margin: 0;
  padding: 0 0 0 13px;
  color: var(--trb-black);
  border: 0;
  border-left: 4px solid var(--trb-blue);
  background: transparent;
  font-size: 1.25rem;
}

.trb-home-section-title h2 small {
  color: #7d8490;
  font-size: .65em;
  font-weight: 500;
}

.trb-home-section-title > a {
  color: var(--trb-blue);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.trb-home-fes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.trb-home-fes-card {
  overflow: hidden;
  border: 1px solid var(--trb-border);
  border-radius: 7px;
  background: #fff;
}

.trb-home-fes-card__image {
  display: block;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  background: #171c28;
}

.trb-home-fes-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.trb-home-fes-card:hover img { transform: scale(1.035); }
.trb-home-fes-card__body { padding: 13px 14px 15px; }
.trb-home-fes-card h3 { margin: 0 0 10px; font-size: 1rem; line-height: 1.4; }
.trb-home-fes-card h3 a { color: var(--trb-black); }
.trb-home-fes-card p { margin: 4px 0; color: #6c7482; font-size: .76rem; }
.trb-home-fes-meta::before { color: var(--trb-blue); }

.trb-home-setlists { display: grid; }

.trb-home-setlist {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 10px;
  gap: 11px;
  align-items: center;
  padding: 12px 0;
  color: var(--trb-black);
  border-bottom: 1px solid #edf0f4;
}

.trb-home-setlist:first-child { padding-top: 0; }
.trb-home-setlist:last-child { padding-bottom: 0; border-bottom: 0; }
.trb-home-setlist > img { width: 52px; height: 52px; object-fit: cover; border-radius: 5px; }
.trb-home-setlist__copy { display: grid; min-width: 0; }
.trb-home-setlist__copy small { color: #8a909a; font-size: .65rem; }
.trb-home-setlist__copy strong { overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.trb-home-setlist__copy span { overflow: hidden; color: #727986; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.trb-home-setlist > b { padding: 4px 6px; color: var(--trb-blue); background: var(--trb-pale); border-radius: 3px; font-size: .56rem; }
.trb-home-setlist > i { color: var(--trb-blue); font-size: 1.3rem; font-style: normal; }

.trb-home-guides {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trb-home-guide { min-width: 0; }
.trb-home-guide a { display: block; color: var(--trb-black); }
.trb-home-guide img,
.trb-home-guide__fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: linear-gradient(135deg, #131b2d, #176cff);
}
.trb-home-guide h3 { margin: 10px 0 6px; font-size: .84rem; line-height: 1.45; }
.trb-home-guide p { margin: 0; color: #757d8a; font-size: .69rem; line-height: 1.6; }

.trb-home-cta {
  padding: 23px;
  background: #fff;
  border: 1px solid var(--trb-border);
  border-radius: 8px;
}

.trb-home-cta--blue {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0e56d6, #1985ff);
}

.trb-home-cta strong { font-size: 1rem; }
.trb-home-cta p { margin: 9px 0 16px; color: #6f7784; font-size: .78rem; line-height: 1.7; }
.trb-home-cta--blue p { color: rgba(255, 255, 255, .82); }
.trb-home-cta a { display: block; padding: 10px 12px; color: var(--trb-blue); background: #f1f5ff; border-radius: 5px; text-align: center; font-size: .78rem; font-weight: 800; }
.trb-home-cta--blue a { color: var(--trb-blue); background: #fff; }

@media (max-width: 1050px) {
  .trb-home-header { grid-template-columns: 1fr auto; }
  .trb-home-header nav { display: none; }
  .trb-home-layout { grid-template-columns: 1fr; }
  .trb-home-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trb-home-side .trb-home-panel { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .trb-home-header { min-height: 66px; padding: 10px 18px; }
  .trb-home-brand strong { font-size: 1.05rem; }
  .trb-home-login { padding: 8px 13px; }
  .trb-home-hero { min-height: 410px; background-position: 62% center; }
  .trb-home-hero__inner,
  .trb-home-main { width: min(100% - 30px, 1180px); }
  .trb-home-hero__actions { flex-direction: column; align-items: stretch; max-width: 300px; }
  .trb-home-filters { grid-template-columns: 1fr; }
  .trb-home-layout { gap: 18px; }
  .trb-home-primary,
  .trb-home-side { grid-template-columns: 1fr; gap: 18px; }
  .trb-home-side .trb-home-panel { grid-column: auto; }
  .trb-home-panel { padding: 18px; }
  .trb-home-fes-grid { grid-template-columns: 1fr; }
  .trb-home-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .trb-home-brand small { display: none; }
  .trb-home-brand strong { padding-left: 33px; }
  .trb-home-brand strong::before { width: 25px; }
  .trb-home-hero h1 { font-size: 2rem; }
  .trb-home-filters > div { padding: 13px; }
  .trb-home-guides { grid-template-columns: 1fr; }
  .trb-home-section-title { align-items: flex-start; }
}
