:root{
  --grad-left: #95c967;
  --grad-right: #de5f92;
  --hero-height: 100vh;
  --card-rotate: -8deg;
  --grad-height: clamp(10vh, 10vh, 18vh);
}

/* Page top gradient */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--grad-height);
  z-index: 130;
  pointer-events: none;
  background: linear-gradient(90deg, var(--grad-left) 0%, var(--grad-right) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  transition: height 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.35s ease;
  will-change: filter;
}

/* Logo card */
.logo-card{
  position: fixed;
  left: 50%;
  top: clamp(0px, calc(3vh - 50px), 70px);
  transform: translateX(-50%);
  z-index: 1110;
  box-sizing: border-box;
  width: min(78vw, 500px);
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.6vw, 18px);
  padding: clamp(10px, 2.0vw, 20px) clamp(12px, 3vw, 40px);
  transition: top 0.4s ease, width 0.4s ease, padding 0.4s ease, gap 0.2s ease;
}

.logo-card img{
  display: block;
  max-width: 100%;
  max-height: clamp(32px, 8vw, 100px);
  margin: 0;
  transition: max-height 0.4s ease;
  flex: 0 0 auto;
}

.logo-card::before{
  content: "";
  position: absolute;
  inset: -100px 0 -10px 0;
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow:
    0 18px 50px rgba(0,0,0,0.25),
    0 6px 16px rgba(0,0,0,0.18),
    0 1px 2px rgba(0,0,0,0.15);
  transform: rotate(var(--card-rotate));
  transform-origin: 50% 50%;
  z-index: -1;
  pointer-events: none;
  transition: inset 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

/* Navigation */
nav {
  display: block;
  position: fixed;
  top: 0;
  right: -300px;
  bottom: 0;
  width: 300px;
  background: #FFFFFF;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: all .5s;
  z-index: 999999;
  opacity: 0;
}

.open nav {
  right: 0;
  opacity: 1;
}

nav .inner {
  padding: 25px;
  padding-top: 70px;
}

nav .inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav .inner ul li {
  position: relative;
  margin: 0;
  border-bottom: 1px solid #333;
}

nav .inner ul li a {
  display: block;
  color: #333;
  font-size: 14px;
  padding: 1em;
  text-decoration: none;
  transition-duration: 0.2s;
}

nav .inner ul li a:hover {
  background: #d5cfc8;
}

/* Toggle button */
.toggle_btn {
  display: block;
  position: fixed;
  top: 35px;
  right: 18px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding-left: 10px;
  padding-right: 10px;
  transition: all .5s;
  cursor: pointer;
  z-index: 999999999999999999999;
}

.toggle_btn span {
  display: block;
  position: fixed;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #000000;
  border-radius: 4px;
  transition: all .5s;
}

.toggle_btn span:nth-child(1) { top: 4px; }
.toggle_btn span:nth-child(2) { top: 14px; }
.toggle_btn span:nth-child(3) { bottom: 4px; }

.open .toggle_btn span { background-color: #000000; }
.open .toggle_btn span:nth-child(1) { transform: translateY(10px) rotate(-315deg); }
.open .toggle_btn span:nth-child(2) { opacity: 0; }
.open .toggle_btn span:nth-child(3) { transform: translateY(-10px) rotate(315deg); }

/* Mask */
#mask {
  display: none;
  transition: all .5s;
}

.open #mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .8;
  z-index: 7000;
  cursor: pointer;
}

/* Hero layout */
header.hero[role="region"] {
  display: flex;
  align-items: stretch;
  gap: 0px;
  padding: 100px 20px;
  padding-left: 0px;
  margin: 60px auto 0;
  position: relative;
  overflow: visible;
  z-index: 1;
  width: 100vw;
  max-width: 100%;
  margin-left: 0;
  padding-left: 0;
  box-sizing: border-box;
}

.hero__image {
  position: relative;
  flex: 0 0 48%;
  max-width: 48%;
  padding-top: 70px;
  margin-left: 0;
  padding-left: 0;
  box-sizing: border-box;
}

.hero__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: block;
  margin-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgb(0, 0, 0) 65%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgb(0, 0, 0) 65%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero__info {
  flex: 1 1 52%;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 40px;
}

/* Event label */
.event-label {
  font-family: futura-100-latin-ext, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 3px;
  color: #ae5353;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero__name {
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 700;
  font-size: 60px;
  margin: 0 0 0px;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

.last-name {
  display: inline;
  margin-left: 0;
  color: #5b2a2a;
}

.hero__romaji {
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #606060;
  margin-bottom: 16px;
}

.hero__meta {
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 20px;
}

.hero__meta > div {
  margin-bottom: 8px;
}

.event-datetime {
  font-family: futura-100-latin-ext, sans-serif;
  font-weight: 600;
  font-size: 22px;
}

.day-label {
  color: #2b2b2b;
  margin-right: 8px;
}

.date {
  color: #ae5353;
}

.week {
  font-family: futura-100-latin-ext, sans-serif;
  font-weight: 600;
  color: #767676;
  font-size: 18px;
  margin-left: 8px;
}

.event-time,
.event-venue {
  font-size: 15px;
  color: #444;
}

.time-icon,
.venue-icon {
  color: #ae5353;
  font-size: 15px;
  margin-right: 6px;
}

.doors {
  color: #767676;
  font-size: 13px;
}

.hero__description {
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.9;
  color: #2b2b2b;
  margin-bottom: 24px;
}

/* Performers section */
.performers-section {
  margin-bottom: 24px;
}

.section-title {
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.performers-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.performer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  min-width: 200px;
}

.performer-card:hover {
  background: #f0f0f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.performer-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.performer-info {
  display: flex;
  flex-direction: column;
}

.performer-name {
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.performer-role {
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #767676;
}

/* Ticket section */
.ticket-section {
  margin-top: 16px;
}

.ticket-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #e7ca3a 0%, #f5d742 25%, #ffe066 50%, #f5d742 75%, #e2c333 100%);
  color: #000;
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ticket-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #f0db50 0%, #ffe066 25%, #fff08a 50%, #ffe066 75%, #f0db50 100%);
  color: #000;
}

.ticket-button.large {
  padding: 18px 36px;
  font-size: 17px;
}

.ticket-icon {
  font-size: 18px;
}

.ticket-note {
  font-size: 12px;
  color: #767676;
  margin-top: 8px;
}

/* Event details section */
.event-details {
  background: #fafafa;
  padding: 60px 20px;
}

.details-container {
  max-width: 800px;
  margin: 0 auto;
}

.event-details .section-title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 40px;
  border-bottom: none;
}

.detail-block {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.detail-block h3 {
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #333;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ae5353;
}

.detail-block p {
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  margin: 0 0 12px;
}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.program-list li {
  font-family: noto-sans-cjk-jp, sans-serif;
  font-size: 15px;
  color: #444;
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  border-bottom: 1px solid #eee;
}

.program-list li:last-child {
  border-bottom: none;
}

.program-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #ae5353;
  font-size: 10px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid #eee;
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table th,
.info-table td {
  padding: 14px 12px;
  text-align: left;
  font-family: noto-sans-cjk-jp, sans-serif;
  font-size: 14px;
  vertical-align: top;
}

.info-table th {
  font-weight: 600;
  color: #333;
  width: 70px;
  min-width: 55px;
  background: #f8f8f8;
  white-space: nowrap;
}

.info-table td {
  color: #444;
}

.cta-block {
  text-align: center;
  margin: 40px 0;
}

.back-link {
  text-align: center;
  margin-top: 40px;
}

.back-link a {
  font-family: noto-sans-cjk-jp, sans-serif;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link a:hover {
  color: #ae5353;
}

/* Link styles */
.linkartists,
.linkname,
.linkseparate {
  display: none;
  font-family: futura-100-latin-ext, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #2b2b2b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.linkartists {
  padding-left: 50px;
}

.linkname {
  font-weight: 400;
  padding-left: 1.5px;
}

.linkseparate {
  padding-left: 1.5px;
}

/* Scrolled state */
body.scrolled {
  --card-rotate: 0deg;
  --grad-height: 50px;
}

body.scrolled .logo-card {
  text-align: left;
  justify-content: left;
  width: 100%;
  max-width: 100%;
  top: -3px;
  padding: clamp(10px, 2.2vw, 28px) clamp(18px, 3vw, 40px);
  padding-bottom: 0px;
}

body.scrolled .logo-card img {
  display: inline-block;
  max-height: clamp(28px, 50px, 60px);
}

body.scrolled .linkartists,
body.scrolled .linkname,
body.scrolled .linkseparate {
  display: inline-block;
}

/* Hue animation */
@keyframes hueShift {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}

body::before {
  animation: hueShift 20s linear infinite;
  transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none !important;
  }
}

/* Responsive */
@media screen and (max-width: 767px) {
  nav {
    right: -220px;
    width: 220px;
  }

  .linkartists {
    padding-left: 0px;
  }

  .linkname,
  .linkseparate {
    display: none !important;
  }
}

@media (max-width: 800px) {
  .hero::before {
    top: 3vh;
    font-size: clamp(80px, 28vw, 200px);
  }

  header.hero[role="region"] {
    flex-direction: column;
    padding: 0px 0px;
    margin-top: 4px;
  }

  .hero__image,
  .hero__image img {
    max-width: 100%;
    flex: none;
  }

  .hero__image img {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgb(0, 0, 0) 65%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgb(0, 0, 0) 65%, rgba(0, 0, 0, 0) 100%);
  }

  .hero__info {
    padding: 0 20px;
  }

  .hero__name {
    font-size: 36px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
  }

  .performers-grid {
    flex-direction: column;
  }

  .performer-card {
    min-width: auto;
  }

  .detail-block {
    padding: 20px;
  }

  .info-table th {
    width: 55px;
    padding: 12px 8px;
  }

  .info-table td {
    padding: 12px 8px;
  }
}

/* Ensure hero children are above background */
.hero__image,
.hero__info {
  position: relative;
  z-index: 2;
}

/* User selecting state */
.user-selecting .hero__image img,
.user-selecting .hero__image img:hover {
  transform: none !important;
  transition: none !important;
}

/* ===== 料金情報セクション ===== */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  margin-top: 4px;
}

.price-table tr {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-table tr:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.price-table td {
  padding: 12px 16px;
  font-family: noto-sans-cjk-jp, sans-serif;
  font-size: 14px;
  vertical-align: middle;
}

.price-table td:first-child {
  border-radius: 6px 0 0 6px;
  border-left: 3px solid #ccc;
}

.price-table td:last-child {
  border-radius: 0 6px 6px 0;
}

.ticket-name {
  color: #333;
  font-weight: 600;
  white-space: nowrap;
}

/* U25 - サイトのピンク系 */
.price-table tr:has(.ticket-name.u25) {
  background: linear-gradient(135deg, #fdf2f5 0%, #f9e8ed 100%);
}

.price-table tr:has(.ticket-name.u25) td:first-child {
  border-left-color: #de5f92;
}

.ticket-name.u25 {
  color: #c44d7a;
}

/* Bloomみらい - サイトの緑系 */
.price-table tr:has(.ticket-name.bloom) {
  background: linear-gradient(135deg, #f3f9ef 0%, #e8f5e1 100%);
}

.price-table tr:has(.ticket-name.bloom) td:first-child {
  border-left-color: #95c967;
}

.ticket-name.bloom {
  color: #5a9a2e;
}

/* 無料 - オレンジ系 */
.price-table tr:has(.ticket-name.free) {
  background: linear-gradient(135deg, #fff8f0 0%, #fff0e0 100%);
}

.price-table tr:has(.ticket-name.free) td:first-child {
  border-left-color: #e67e22;
}

.ticket-name.free {
  color: #d35400;
}

.ticket-price {
  text-align: right;
  font-weight: 700;
  font-size: 15px;
  color: #333;
  white-space: nowrap;
}

.price-note {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
  padding-left: 4px;
}

/* ===== 注意事項セクション ===== */
.caution-section {
  background: #f9f9f9;
  border-left: 3px solid #bbb;
  padding: 16px 20px;
  margin-top: 20px;
  border-radius: 0 6px 6px 0;
}

.caution-section h3 {
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 600;
  color: #666;
  margin: 0 0 10px;
  font-size: 14px;
  border-bottom: none;
  padding-bottom: 0;
}

.caution-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.caution-list li {
  padding: 6px 0 6px 16px;
  position: relative;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.caution-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #999;
}

/* ===== prev/next ナビゲーション（カード型） ===== */
.event-navigation {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 40px 0 20px;
  padding: 24px 0;
  border-top: 1px solid #eee;
}

.nav-cards {
  display: flex;
  gap: 12px;
}

.nav-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.nav-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--grad-left, #95c967) 0%, var(--grad-right, #de5f92) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-card:hover {
  background: #fff;
  border-color: #ddd;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.nav-card:hover::before {
  opacity: 1;
}

.nav-card.next {
  text-align: center;
}

.nav-card.next::before {
  left: auto;
  right: 0;
}

.nav-card .nav-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: noto-sans-cjk-jp, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.nav-card.prev .nav-label {
  justify-content: flex-start;
}

.nav-card.next .nav-label {
  justify-content: flex-end;
}

.nav-card .nav-event-name {
  font-family: noto-sans-cjk-jp, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-card.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.nav-card.disabled::before {
  display: none;
}

/* 一覧リンク */
.nav-all {
  display: block;
  text-align: center;
  padding: 10px;
  color: #888;
  text-decoration: none;
  font-family: noto-sans-cjk-jp, sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-all:hover {
  color: #ae5353;
}

/* 旧クラス互換（後方互換用） */
.nav-prev,
.nav-next {
  display: none;
}

@media (max-width: 600px) {
  .event-navigation {
    gap: 12px;
    padding: 20px 0;
  }

  .nav-cards {
    gap: 10px;
  }

  .nav-card {
    padding: 14px 14px;
  }

  .nav-card .nav-label {
    font-size: 10px;
  }

  .nav-card .nav-event-name {
    font-size: 13px;
  }
}

/* クレジット表記 */
.credit {
  font-size: 0.9em;
  color: #666;
  text-align: right;
  margin-top: 1em;
  font-style: italic;
}
