:root {
  --blue-primary: #14315c;
  --blue-secondary: #1f4e8c;
  --blue-accent: #4f83cc;
  --text-muted: #666;
  --pop-yellow: #ffc93c;
  --pop-coral: #ff6b6b;
  --pop-mint: #3fbfad;
  --pop-purple: #9b7ee8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scrollbar-gutter: stable;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
  color: #2e2e2e;
  background: #fafafa;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

main.container {
  padding-top: 40px;
  padding-bottom: 64px;
  min-height: 60vh;
}

.home-content {
  padding-top: 40px;
  padding-bottom: 64px;
}

.hero {
  height: 190px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-catch {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .hero {
    height: 110px;
  }

  .hero-catch {
    font-size: 1.3rem;
  }
}

.hero-catch-indent {
  display: inline-block;
  margin-left: 2.5em;
}

.align-right {
  text-align: right;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 57px;
  height: 57px;
  margin-right: 12px;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

.social-icon--inline {
  width: 30px;
  height: 30px;
  margin-right: 0;
  margin-left: 4em;
  vertical-align: middle;
}

.social-icon--inline svg {
  width: 15px;
  height: 15px;
}

.social-icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.social-icon:hover {
  opacity: 0.8;
}

.social-icon--x {
  background: #000;
}

.social-icon--youtube {
  background: #ff0000;
}

.workshop-social {
  margin-top: 12px;
}

.about-en {
  font-size: 2.4rem;
}

.about-jp {
  font-size: 0.85rem;
  margin-left: 12px;
}

.intro-text {
  white-space: pre-line;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--blue-primary);
}

.page-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -12px;
  margin-bottom: 24px;
}

h2 {
  position: relative;
  display: inline-block;
  font-size: 1.2rem;
  margin: 32px 0 12px;
  padding-bottom: 4px;
  color: var(--blue-primary);
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 8px;
  background: var(--pop-yellow);
  z-index: -1;
  opacity: 0.6;
}

h2.marker-coral::after {
  background: var(--pop-coral);
}

h2.marker-mint::after {
  background: var(--pop-mint);
}

h2.marker-purple::after {
  background: var(--pop-purple);
}

.no-marker h2::after {
  content: none;
}

.coming-soon {
  padding: 32px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #9aa7bd;
  background: #f3f5f9;
  border-radius: 8px;
  margin-bottom: 16px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  color: var(--blue-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 2px;
  background: var(--blue-secondary);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn:hover::after {
  transform: scaleX(1);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn:hover .arrow {
  transform: translateX(6px);
}

/* header */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
  background: linear-gradient(120deg, var(--blue-primary), var(--blue-secondary));
  box-shadow: 0 2px 16px rgba(15, 38, 87, 0.25);
}

header.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.site-header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  height: 53px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-logo {
  height: 90%;
  width: auto;
  filter: brightness(0) invert(1);
}

.brand small {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
}

nav.site-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

nav.site-nav a {
  position: relative;
  padding-bottom: 4px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: color 0.25s ease;
}

nav.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.25s ease;
}

nav.site-nav a:hover,
nav.site-nav a.current {
  color: #fff;
}

nav.site-nav a:hover::after,
nav.site-nav a.current::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

/* footer */

footer.site-footer {
  padding: 32px 16px;
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 3px solid var(--blue-primary);
}

footer.site-footer > p {
  text-align: center;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  list-style: none;
  margin-bottom: 16px;
}

.footer-nav a {
  color: var(--blue-secondary);
  text-decoration: none;
  font-size: 0.75rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* members */

.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  list-style: none;
  margin-top: 24px;
}

.member-card {
  text-align: center;
}

.member-photo {
  width: 11.44rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.member-photo--placeholder {
  width: 11.44rem;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: #eceff3;
  color: #9aa7bd;
  font-size: 0.8rem;
}

.member-name {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--blue-primary);
}

.member-birthday {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.member-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* member detail */

.member-detail-layout {
  display: flex;
  flex-direction: column;
}

.member-photo-gallery {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 32px;
}

.member-detail-photo {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: block;
  transition: opacity 0.25s ease;
}

.member-detail-photo.is-fading {
  opacity: 0;
}

.member-photo-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}

.member-photo-thumb {
  width: 56px;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.member-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-photo-thumb:hover {
  opacity: 0.85;
}

.member-photo-thumb.is-active {
  opacity: 1;
  border-color: var(--blue-secondary);
}

@media (min-width: 769px) {
  .member-detail-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .member-detail-main {
    order: 1;
    flex: 1;
    min-width: 0;
  }

  .member-detail-layout .member-photo-gallery {
    order: 2;
    flex: 0 0 320px;
    margin: 0;
  }
}

.member-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.member-table th,
.member-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #e5e9f0;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 400;
}

.member-table th {
  width: 8em;
  color: var(--blue-primary);
  font-weight: 700;
  white-space: nowrap;
}

/* performances */

.performance-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin-top: 24px;
  border-top: 1px solid #e5e9f0;
}

.performance-card {
  border-bottom: 1px solid #e5e9f0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.performance-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.performance-card--latest {
  position: relative;
  background: linear-gradient(90deg, rgba(31, 78, 140, 0.05), transparent 60%);
}

.news-tag {
  display: inline-block;
  padding: 4px 12px;
  margin-right: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #fff;
  border-radius: 6px;
  transform: rotate(-3deg);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.15);
  vertical-align: middle;
}

.news-tag--update {
  background: var(--pop-mint);
}

.news-tag--performance {
  background: var(--pop-coral);
}

.news-tag--recruit {
  background: #d35400;
}

.news-tag--other {
  background: var(--blue-secondary);
}

.latest-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--pop-coral);
  border-radius: 6px;
  vertical-align: middle;
  transform: rotate(-4deg);
}

.news-list .latest-badge {
  margin-left: -3px;
  padding: 2px 9px;
  font-size: 0.56rem;
  position: relative;
  top: -0.5em;
  overflow: hidden;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.15);
}

.news-list .latest-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  animation: news-badge-shimmer 2.2s ease-in-out infinite;
}

@keyframes news-badge-shimmer {
  0% {
    left: -60%;
  }
  50% {
    left: 130%;
  }
  100% {
    left: 130%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-list .latest-badge::before {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .performance-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.performance-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 6px;
  color: inherit;
  text-decoration: none;
}

a.performance-row {
  transition: background 0.2s ease;
}

a.performance-row:hover {
  background: #f5f8fc;
}

.performance-thumb-frame {
  flex-shrink: 0;
  width: 84px;
  aspect-ratio: 3 / 4.2;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.performance-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

a.performance-row:hover .performance-thumb {
  transform: scale(1.3);
}

.performance-thumb--placeholder {
  flex-shrink: 0;
  width: 84px;
  aspect-ratio: 3 / 4.2;
  border-radius: 4px;
  background: #eceff3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #a4acb9;
}

.performance-thumb--placeholder svg {
  width: 70%;
  height: auto;
  aspect-ratio: 1;
}

.performance-thumb--placeholder span {
  font-size: 0.6rem;
  letter-spacing: 0.02em;
}

.performance-card-text {
  flex: 1;
  min-width: 0;
}

.performance-number {
  font-size: 0.72rem;
  color: var(--blue-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.performance-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-primary);
}

.performance-venue {
  font-size: 0.88rem;
  margin-top: 6px;
}

.performance-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

a.performance-row::after {
  content: "\2192";
  flex-shrink: 0;
  color: var(--blue-secondary);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s ease;
}

a.performance-row:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.performance-card--disabled .performance-title {
  color: #222;
}

.performance-detail-layout {
  display: flex;
  flex-direction: column;
}

.performance-detail-main h1 {
  margin-bottom: 12px;
}

.performance-detail-thumb {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 32px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

@media (min-width: 769px) {
  .performance-detail-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .performance-detail-main {
    order: 2;
    flex: 1;
    min-width: 0;
  }

  .performance-detail-layout .performance-detail-thumb {
    order: 1;
    flex: 0 0 360px;
    margin: 0;
  }
}

dl.performance-info {
  margin: 24px 0;
}

.workshop-card {
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(15, 38, 87, 0.06);
}

.workshop-card h2 {
  display: block;
  margin: 0;
  padding: 16px 24px;
  background: linear-gradient(120deg, #2d8f80, var(--pop-mint));
  color: #fff;
  font-size: 20px;
  line-height: 28.6px;
}

.workshop-card--special h2 {
  background: linear-gradient(120deg, #8a4b1f, #c07a2e);
}

.workshop-card--recruit h2 {
  background: linear-gradient(120deg, var(--blue-primary), var(--blue-secondary));
}

.workshop-card h2::after {
  content: none;
}

.workshop-tagline {
  margin: 20px 24px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-primary);
}

.workshop-card--special .workshop-tagline {
  color: #8a4b1f;
}

.workshop-card .performance-info {
  margin: 0;
  padding: 8px 24px 24px;
}

.workshop-card .performance-info dt:first-child {
  margin-top: 20px;
}

.workshop-card .performance-info a {
  color: var(--blue-secondary);
  text-decoration: underline;
}

.workshop-card--special .performance-info a {
  color: #a8641f;
}

dl.performance-info dt {
  font-weight: 700;
  color: var(--blue-primary);
  margin-top: 16px;
}

dl.performance-info dd {
  margin-left: 0;
}

.performance-synopsis {
  white-space: pre-line;
  margin: 16px 0;
}

.back-link {
  display: inline-block;
  margin-top: 32px;
}

@media (max-width: 768px) {
  nav.site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--blue-primary);
    transition: max-height 0.3s ease;
  }

  nav.site-nav.is-open {
    max-height: 400px;
  }

  nav.site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }

  nav.site-nav li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  nav.site-nav a {
    display: block;
    padding: 12px 0;
  }

  .nav-toggle {
    display: flex;
  }
}

/* contact form */

.contact-form {
  max-width: 560px;
  margin-top: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid #ccd3de;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-secondary);
}

.form-submit {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.form-errors {
  background: #fdeeee;
  border-left: 3px solid #c0392b;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #a83232;
  font-size: 0.88rem;
}

.form-success {
  background: #eef7ee;
  border-left: 3px solid var(--blue-secondary);
  padding: 16px;
  margin-bottom: 20px;
  color: #1a5c1a;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-email-text {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 16px;
  background: #f3f5f9;
  border-radius: 4px;
  font-weight: 700;
  color: var(--blue-primary);
  user-select: all;
}
