/* 
  HEARTS EXPO 2026 - Main Stylesheet
  Theme: Ultra-Immersive Dark, Gold and Cyan Highlights, Glassmorphism Cards
*/

/* ----------------------------------------------------
   1. Design System & Variables
---------------------------------------------------- */
:root {
  /* Colors */
  --bg-dark: #07080a;
  --bg-card-dark: #121316;
  --accent-cyan: #00d2ff;
  --accent-gold: #ffbe3b;
  --text-primary: #ffffff;
  --text-secondary: #a0a0ab;
  --text-dark: #111111;
  --text-muted: #6b6b76;
  
  /* Glassmorphism & Translucency */
  --glass-white: rgba(255, 255, 255, 0.92);
  --glass-dark: rgba(18, 19, 22, 0.7);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-dark: rgba(255, 255, 255, 0.05);
  
  /* Fonts */
  --font-display: 'Outfit', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  
  /* Layout & Transitions */
  --container-width: 1100px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* ----------------------------------------------------
   2. Base Styles & Reset
---------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #151a22 0%, var(--bg-dark) 70%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Screen reader only helper (SEO best practice) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #252830;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3c404d;
}

/* ----------------------------------------------------
   3. Layout Utilities
---------------------------------------------------- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.05em;
  text-align: center;
}

.btn-primary {
  background-color: var(--text-dark);
  color: var(--text-primary);
  border: 1px solid var(--text-dark);
}

.btn-primary:hover {
  background-color: #222;
  border-color: #222;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* ----------------------------------------------------
   4. Hero Section
---------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 40px 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, rgba(7, 8, 10, 0.1) 60%, var(--bg-dark) 100%), 
                    url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  transform-origin: center center;
  animation: backgroundZoom 20s linear infinite alternate;
}

@keyframes backgroundZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

/* Subtle overlay grid effect */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
              linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.hero-title-bg {
  font-family: 'Georgia', 'Playfair Display', 'Times New Roman', 'Noto Serif JP', 'ヒラギノ明朝 ProN', serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 7.5vw, 7.8rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px #ffffff;
  paint-order: stroke fill;
  text-align: center;
  line-height: 0.9;
  margin-top: clamp(2rem, 4.5vw, 5rem);
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.85));
  
  opacity: 0; /* Prevents flash of text before animation starts */
  
  /* Text Fill & Fade Animation */
  animation: fillText 6s ease-in-out both;
  animation-delay: 2s;
}

@keyframes fillText {
  0% {
    opacity: 0;
    color: transparent;
  }
  30% {
    opacity: 1;
    color: transparent;
  }
  75%, 100% {
    opacity: 1;
    color: rgba(240, 252, 255, 0.82);
  }
}

.hero-title-bg::after {
  content: 'HEARTS EXPO\A 2026';
  white-space: pre;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-gold);
  paint-order: stroke fill;
  pointer-events: none;
  z-index: 1;
  
  /* Gold outline sweep animation */
  animation: goldSweep 6s ease-out both;
  animation-delay: 2s;
}

@keyframes goldSweep {
  0%, 75% {
    clip-path: circle(0% at 50% 50%);
  }
  100% {
    clip-path: circle(150% at 50% 50%);
  }
}


.hero-card {
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: 760px;
  background: var(--glass-white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 3rem 2.5rem;
  border-radius: 8px;
  color: var(--text-dark);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  
  /* Slide & Fade Animation */
  opacity: 0;
  animation: fadeInCard 1.8s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 1s;
}

@keyframes fadeInCard {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text-dark);
  opacity: 0.65;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-headline {
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
  word-break: keep-all;
}

.hero-subtext {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 2.2rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ----------------------------------------------------
   5. Creator Showcase Section
---------------------------------------------------- */
.creator-section {
  padding: 120px 0;
  position: relative;
  border-bottom: 1px solid var(--border-dark);
}

.creator-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.creator-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: var(--bg-card-dark);
}

.creator-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  pointer-events: none;
}

.creator-image {
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.creator-image-wrapper:hover .creator-image {
  transform: scale(1.03);
}

.creator-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.creator-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent-cyan);
  margin-bottom: 1.2rem;
  display: inline-block;
  text-transform: uppercase;
}

.creator-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.8rem;
  letter-spacing: 0.03em;
}

.creator-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

/* ----------------------------------------------------
   6. Call for Works Section
---------------------------------------------------- */
.works-section {
  padding: 120px 0;
  background-color: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-dark);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.theme-banner {
  background: radial-gradient(circle at 10% 20%, rgba(0, 210, 255, 0.08) 0%, rgba(0, 0, 0, 0) 90%);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.theme-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-gold));
}

.theme-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 0.5;
  margin-bottom: 0.8rem;
  display: block;
}

.theme-heading {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.theme-heading span {
  font-size: clamp(2.5rem, 6.5vw, 3.8rem);
  font-weight: 900;
  color: var(--accent-cyan);
  position: relative;
  display: inline-block;
  line-height: 1;
}

.theme-heading span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 2px;
  background-color: var(--accent-cyan);
  transform: scaleX(1);
}

.theme-desc {
  font-size: 1.02rem;
  max-width: 780px;
  margin: 0 auto 2.2rem auto;
  line-height: 1.85;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.theme-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.theme-link:hover {
  border-color: var(--accent-cyan);
  gap: 0.8rem;
}

/* Cards Grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.work-card {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--glow-shadow);
}

.work-card:hover::before {
  opacity: 1;
}

.work-card-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.8rem;
}

.work-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.work-card:hover .work-icon {
  background-color: rgba(0, 210, 255, 0.1);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.work-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  opacity: 1.0; /* Ensure maximum legibility and visual clarity */
}

.work-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.capsule-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 1.2rem;
  letter-spacing: 0.06em;
}

.screen-config-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.screen-config-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.2rem;
  text-align: center;
  font-size: 0.72rem;
}

.screen-config-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.screen-config-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.screen-config-item .capsule-tag {
  margin-top: 0;
  font-size: 1em;
  padding: 0.25rem 0.7rem;
}

.resolution-note {
  display: block;
  font-size: 0.85em;
  opacity: 0.85;
  margin-top: 0.45rem;
  color: var(--text-secondary);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.specs-list li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-label {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-value {
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}

.spec-note {
  display: block;
  flex-basis: 100%;
  width: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ff696b;
  margin-top: 0.35rem;
  line-height: 1.6;
}

.guidelines-notes {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.2rem;
  line-height: 1.6;
}

/* ----------------------------------------------------
   7. Event Overview Section
---------------------------------------------------- */
.overview-section {
  padding: 120px 0;
  background-color: var(--bg-dark);
}

.overview-card {
  max-width: 860px;
  margin: 0 auto;
  background-color: var(--glass-white);
  border-radius: 8px;
  color: var(--text-dark);
  padding: 4rem 3.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.overview-header-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
}

.overview-item {
  display: flex;
  flex-direction: column;
}

.overview-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 4px;
}

.overview-value {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
}

.overview-subvalue {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 0.2rem;
}

/* ----------------------------------------------------
   8. Footer
---------------------------------------------------- */
footer {
  background-color: #04140f;
  border-top: 1px solid var(--border-dark);
  padding: 5rem 0 2.5rem 0;
  color: var(--text-secondary);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  display: block;
}

.footer-address {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-address a:hover {
  color: #ffffff;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition-fast);
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-nav a:not(:last-child)::after {
  content: '/';
  position: absolute;
  right: -1.1rem;
  color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------
   9. Scroll Reveal Animations & Micro-Interactions
---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  z-index: 101;
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 82vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(-50px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----------------------------------------------------
   20260615
---------------------------------------------------- */
.form-group label .notes {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: #555555;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
/* ----------------------------------------------------
   20260615
---------------------------------------------------- */

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 0.8rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  cursor: pointer;
  padding-right: 2.5rem;
  background: #121316 !important; /* Solid opaque dark background using shorthand background */
  transition: none !important; /* Disable transition to prevent transition-state rendering flash */
  -webkit-tap-highlight-color: transparent !important; /* Disable tap highlight flash on mobile */
  outline: none !important;
}

.form-group select option {
  background-color: var(--bg-card-dark);
  color: #fff;
}

.form-group select:focus,
.form-group select:active,
.form-group select:focus-visible,
.form-group select:hover {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  outline: none !important;
  transition: none !important;
}

.form-group select:focus,
.form-group select:active,
.form-group select:focus-visible {
  background: #1a1b20 !important; /* Keep solid dark color on focus */
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15) !important;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

.form-group .select-wrapper {
  position: relative;
  width: 100%;
}

.form-group .select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 5px;
  background-color: var(--accent-cyan);
  clip-path: polygon(100% 0, 0 0, 50% 100%);
  pointer-events: none;
}

.radio-group {
  display: flex;
  gap: 2rem;
  margin-top: 0.6rem;
  margin-bottom: 0.4rem;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  user-select: none;
}

.radio-label input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  accent-color: var(--accent-cyan);
}

/* Terms Accordion Styles inside Modal */
.terms-accordion {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.02);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.terms-toggle {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  cursor: pointer;
  color: var(--accent-cyan);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  outline: none;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.terms-toggle:hover {
  background-color: rgba(0, 210, 255, 0.05);
  color: #fff;
}

.terms-toggle-icon {
  position: relative;
  width: 12px;
  height: 12px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.terms-toggle-icon::before,
.terms-toggle-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: transform 0.3s ease;
}

.terms-toggle-icon::before {
  top: 5px;
  left: 0;
  width: 12px;
  height: 2px;
}

.terms-toggle-icon::after {
  top: 0;
  left: 5px;
  width: 2px;
  height: 12px;
}

.terms-toggle[aria-expanded="true"] .terms-toggle-icon {
  transform: rotate(90deg);
}

.terms-toggle[aria-expanded="true"] .terms-toggle-icon::after {
  transform: scaleY(0);
}

.terms-content-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.terms-content {
  padding: 1rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-height: 200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: rgba(0, 0, 0, 0.15);
}

.terms-content strong {
  display: block;
  color: #fff;
  margin-top: 0.8rem;
  margin-bottom: 0.3rem;
}

.terms-content strong:first-child {
  margin-top: 0;
}

.terms-content p {
  margin-bottom: 0.8rem;
}

.terms-content p:last-child {
  margin-bottom: 0;
}

.submit-btn {
  width: 100%;
  background-color: var(--accent-cyan);
  color: #000;
  border: none;
  font-weight: 700;
  padding: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  background-color: #00b6dd;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
}

/* ----------------------------------------------------
   10. Responsive Design Breakpoints
---------------------------------------------------- */
@media (max-width: 968px) {
  .creator-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .works-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }
  
  .hero-card {
    padding: 2.2rem 1.5rem;
  }
  
  .modal-container {
    padding: 2rem 1.2rem;
    max-height: 88vh;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .works-grid {
    grid-template-columns: 1fr;
  }
  
  .theme-banner {
    padding: 2rem 1.5rem;
  }
  
  .overview-card {
    padding: 2.5rem 1.5rem;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }
  
  .footer-nav {
    gap: 1rem 1.8rem;
  }
  
  .footer-nav a:not(:last-child)::after {
    display: none;
  }
}

/* ----------------------------------------------------
   15. Application Form Modifications (Top & Bottom)
---------------------------------------------------- */

/* Top Modal Form overrides (White Window, Dark Text, Black Button) */
#apply-modal .modal-container {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

#apply-modal .modal-close {
  color: #6b6b76;
}

#apply-modal .modal-close:hover {
  color: #111111;
}

#apply-modal .modal-title {
  color: #111111;
}

.modal-deadline {
  font-size: 0.9rem;
  color: #e63946;
  font-weight: 700;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

#apply-modal .form-group label {
  color: #555555;
}

#apply-modal .form-group input,
#apply-modal .form-group textarea {
  background: #f8f9fa;
  border: 1px solid #ced4da;
  color: #111111;
}

#apply-modal .form-group input:focus,
#apply-modal .form-group textarea:focus {
  border-color: #111111;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

#apply-modal .form-group input::placeholder,
#apply-modal .form-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

#apply-modal .form-group select {
  background: #f8f9fa !important;
  border: 1px solid #ced4da !important;
  color: #111111 !important;
}

#apply-modal .form-group select option {
  background-color: #ffffff !important;
  color: #111111 !important;
}

#apply-modal .form-group select:focus,
#apply-modal .form-group select:active,
#apply-modal .form-group select:focus-visible {
  background: #ffffff !important;
  border-color: #111111 !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08) !important;
}

#apply-modal .form-group .select-wrapper::after {
  background-color: #111111;
}

/* Modal Terms Accordion Overrides */
#apply-modal .terms-accordion {
  border: 1px solid #ced4da;
  background-color: #f8f9fa;
}

#apply-modal .terms-toggle {
  color: #111111;
}

#apply-modal .terms-toggle:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

#apply-modal .terms-content {
  border-top: 1px solid #ced4da;
  color: #555555;
  background-color: #ffffff;
}

#apply-modal .terms-content strong {
  color: #111111;
}

/* Modal Radio Overrides */
#apply-modal .radio-label {
  color: #111111;
}

#apply-modal .radio-label input[type="radio"] {
  accent-color: #111111;
}

/* Modal Submit Button Overrides */
#apply-modal .submit-btn {
  background-color: #111111;
  color: #ffffff;
  border: 1px solid #111111;
}

#apply-modal .submit-btn:hover {
  background-color: #333333;
  border-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Bottom Section and Glowing Trigger Button */
.bottom-apply-section {
  padding: 120px 0;
  background: radial-gradient(circle at 50% 0%, #12161f 0%, #07080a 80%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.bottom-apply-trigger-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.bottom-trigger-btn {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  padding: 1.1rem 3rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.35), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.bottom-trigger-btn:hover {
  background-color: #e5e5e5;
  border-color: #e5e5e5;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Bottom Modal Form overrides (Dark Modal, White Text, White Button) */
#apply-modal-bottom .modal-container {
  background-color: #0d0e12 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6) !important;
}

#apply-modal-bottom .modal-close {
  color: #ffffff !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s ease !important;
}

#apply-modal-bottom .modal-close:hover {
  opacity: 1 !important;
}

#apply-modal-bottom .modal-title {
  color: #ffffff !important;
}

#apply-modal-bottom .modal-deadline {
  color: var(--accent-gold) !important;
}

#apply-modal-bottom .form-group label {
  color: #a0a0ab !important;
}

#apply-modal-bottom .form-group input,
#apply-modal-bottom .form-group textarea {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

#apply-modal-bottom .form-group input:focus,
#apply-modal-bottom .form-group textarea:focus {
  border-color: var(--accent-cyan) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15) !important;
}

#apply-modal-bottom .form-group input::placeholder,
#apply-modal-bottom .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.25) !important;
}

#apply-modal-bottom .form-group select {
  background: #121316 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

#apply-modal-bottom .form-group select option {
  background-color: #121316 !important;
  color: #ffffff !important;
}

#apply-modal-bottom .form-group select:focus,
#apply-modal-bottom .form-group select:active,
#apply-modal-bottom .form-group select:focus-visible {
  background: #1a1b20 !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15) !important;
}

#apply-modal-bottom .form-group .select-wrapper::after {
  background-color: var(--accent-cyan) !important;
}

/* Accordion in Dark Modal */
#apply-modal-bottom .terms-accordion {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
}

#apply-modal-bottom .terms-toggle {
  color: var(--accent-cyan) !important;
}

#apply-modal-bottom .terms-toggle:hover {
  background-color: rgba(0, 210, 255, 0.05) !important;
  color: #ffffff !important;
}

#apply-modal-bottom .terms-content {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: var(--text-secondary) !important;
  background-color: rgba(0, 0, 0, 0.15) !important;
}

#apply-modal-bottom .terms-content strong {
  color: #ffffff !important;
}

/* Radio in Dark Modal */
#apply-modal-bottom .radio-label {
  color: #ffffff !important;
}

#apply-modal-bottom .radio-label input[type="radio"] {
  accent-color: var(--accent-cyan) !important;
}

/* Submit Button in Dark Modal (White Button, Black Text) */
#apply-modal-bottom .submit-btn {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
  font-weight: 700 !important;
}

#apply-modal-bottom .submit-btn:hover {
  background-color: #e5e5e5 !important;
  border-color: #e5e5e5 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15) !important;
}

@media (max-width: 640px) {
  .bottom-apply-section {
    padding: 80px 0;
  }
  
  .bottom-trigger-btn {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    width: 100%;
  }
}

/* ----------------------------------------------------
   16. Awards & Prizes Details Modal (Minimalist Serif Theme)
---------------------------------------------------- */
.awards-modal-container {
  background-color: #030303 !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8) !important;
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  color: #e5e5e5 !important;
  padding: 3.5rem 3rem !important;
  max-width: 540px !important;
}

.awards-modal-title {
  text-align: center;
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #e5e5e5;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.awards-modal-subtitle {
  display: block;
  font-size: 0.75rem;
  color: #d4af37; /* Muted gold */
  letter-spacing: 0.15em;
  font-weight: 300;
  margin-top: 0.4rem;
  opacity: 0.9;
}

.awards-details-content {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.award-category-group {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.award-category-title {
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
  padding-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.award-category-sub {
  font-size: 0.75rem;
  color: #8a8a8f;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.awards-table {
  width: 100%;
  border-collapse: collapse;
}

.awards-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.awards-table tr:last-child {
  border-bottom: none !important;
}

.awards-table td {
  padding: 0.75rem 0;
  vertical-align: middle;
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
}

.award-name {
  font-weight: 400;
  color: #e5e5e5;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  letter-spacing: 0.02em;
}

.award-badge-gold {
  background: transparent !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  color: #d4af37 !important;
  font-size: 0.65rem;
  font-weight: 400;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  margin-left: 0.6rem;
  letter-spacing: 0.05em;
  display: inline-block;
  line-height: 1.2;
}

.award-prize {
  text-align: right;
  color: #e5e5e5 !important;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.award-arrow {
  color: rgba(212, 175, 55, 0.4);
  margin: 0 0.5rem;
  font-size: 0.8rem;
}

#awards-modal-close {
  color: #8a8a8f !important;
  opacity: 0.6 !important;
  font-size: 1.6rem !important;
  top: 1.2rem !important;
  right: 1.2rem !important;
  transition: opacity 0.2s ease, color 0.2s ease !important;
}

#awards-modal-close:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}

.awards-notes {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-size: 0.9rem !important;
  line-height: 1.8 !important;
  color: #e5e5e5 !important;
  text-align: left !important;
  letter-spacing: 0.02em !important;
}

.awards-notes p {
  margin-bottom: 0.8rem !important;
}

.awards-notes p:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 640px) {
  .awards-modal-container {
    padding: 2.5rem 1.8rem !important;
    max-width: 90% !important;
  }
  
  .awards-modal-title {
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
  }
  
  .award-category-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.95rem;
  }
}

/* ----------------------------------------------------
   17. Technical Resources & Sounds Modal & Trigger
---------------------------------------------------- */
.resources-sounds-trigger-section {
  padding: 100px 0;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
}

.resources-sounds-trigger-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-resources-trigger {
  background-color: #030303;
  color: #e5e5e5;
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-weight: 500;
  padding: 1.1rem 3rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.06em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.btn-resources-trigger:hover {
  background-color: #0a0a0a;
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
}

.resources-modal-container {
  background-color: #030303 !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8) !important;
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  color: #e5e5e5 !important;
  padding: 3.5rem 3rem !important;
  max-width: 560px !important;
}

.resources-modal-title {
  text-align: center;
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #e5e5e5;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.resources-modal-subtitle {
  display: block;
  font-size: 0.75rem;
  color: #d4af37; /* Muted gold */
  letter-spacing: 0.15em;
  font-weight: 300;
  margin-top: 0.4rem;
  opacity: 0.9;
}

.resources-modal-content {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.resource-group-modal {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.resource-title-modal {
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-size: 0.9rem;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 0.6rem;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
  padding-bottom: 0.5rem;
}

.resource-desc-modal {
  font-size: 0.8rem;
  color: #8a8a8f;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  font-weight: 300;
}

.modal-screen-configs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.modal-config-card {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(212, 175, 55, 0.15) !important;
  padding: 1rem 1.2rem !important;
  border-radius: 4px;
}

.config-heading-modal {
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin-bottom: 0.5rem !important;
  letter-spacing: 0.02em !important;
}

.config-text-modal {
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-size: 0.82rem !important;
  color: #8a8a8f !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  margin-bottom: 0.25rem !important;
}

.config-text-modal:last-child {
  margin-bottom: 0 !important;
}

.highlight-gold {
  color: #d4af37 !important;
  font-weight: 700 !important;
}

/* 一括ダウンロードボタンのスタイル */
.btn-zip-download-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-size: 0.85rem;
  font-weight: 500;
  color: #030303 !important;
  background-color: #e5e5e5;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  text-align: center;
}

.download-btn-wrapper-modal {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-zip-download-modal:hover {
  background-color: transparent;
  color: #e5e5e5 !important;
  border-color: #e5e5e5;
}

/* おすすめ音源サイトのスタイル */
.sounds-list-modal {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.sound-site-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding-bottom: 1.5rem;
}

.sound-site-item:last-child {
  border-bottom: none !important;
  padding-bottom: 0;
}

.sound-site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.sound-site-name {
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  letter-spacing: 0.02em !important;
}

.btn-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-size: 0.75rem !important;
  padding: 0.4rem 0.8rem !important;
  border-radius: 2px !important;
  cursor: pointer;
  background-color: transparent;
  color: #d4af37 !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  transition: all 0.2s ease !important;
  letter-spacing: 0.02em !important;
}

.btn-site-link:hover {
  background-color: rgba(212, 175, 55, 0.08) !important;
  border-color: #d4af37 !important;
}

.sound-site-desc {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 0.8rem !important;
  color: #8a8a8f !important;
  line-height: 1.6 !important;
  font-weight: 300 !important;
}

.sounds-warning-note {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-size: 0.9rem !important;
  line-height: 1.7 !important;
  color: #ff5252 !important;
  text-align: left !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
}

#resources-modal-close {
  color: #8a8a8f !important;
  opacity: 0.6 !important;
  font-size: 1.6rem !important;
  top: 1.2rem !important;
  right: 1.2rem !important;
  transition: opacity 0.2s ease, color 0.2s ease !important;
}

#resources-modal-close:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}

@media (max-width: 640px) {
  .resources-modal-container {
    padding: 2.5rem 1.8rem !important;
    max-width: 90% !important;
  }
  
  .resources-modal-title {
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
  }
  
  .resource-title-modal {
    font-size: 0.85rem;
  }
}

@media (max-width: 500px) {
  .soundtrack-table-modal th {
    display: none;
  }
  
  .soundtrack-table-modal tr {
    display: flex;
    flex-direction: column;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .soundtrack-table-modal tr:last-child {
    border-bottom: none;
  }
  
  .soundtrack-table-modal td {
    padding: 0.25rem 0;
    border-bottom: none;
  }
  
  .track-actions-modal {
    text-align: left;
    margin-top: 0.5rem;
  }
}

/* ----------------------------------------------------
   16. Technical Resources Download Guidelines Box
   ---------------------------------------------------- */
.download-instructions-card {
  background-color: rgba(255, 255, 255, 0.01) !important;
  border: 1px solid rgba(212, 175, 55, 0.15) !important;
  padding: 1.5rem !important;
  border-radius: 4px;
  margin-bottom: 1.5rem !important;
  text-align: left !important;
}

.instructions-title {
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #ffbe3b !important;
  margin-bottom: 1.2rem !important;
  letter-spacing: 0.05em !important;
  border-left: 3px solid #ffbe3b;
  padding-left: 0.6rem;
}

.instructions-section {
  margin-bottom: 1.2rem !important;
}

.instructions-section:last-child {
  margin-bottom: 0 !important;
}

.instructions-subtitle {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 0.4rem !important;
  letter-spacing: 0.02em !important;
}

.instructions-text {
  font-size: 0.8rem !important;
  color: #a0a0ab !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  margin-bottom: 0.6rem !important;
}

.instructions-text strong {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.instructions-rules-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0.8rem 0 0 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.instructions-rules-list li {
  display: flex !important;
  align-items: flex-start !important;
  font-size: 0.8rem !important;
  line-height: 1.6 !important;
  border-bottom: none !important;
  padding: 0 !important;
}

.rule-type {
  font-weight: 700 !important;
  color: #ffffff !important;
  width: 190px;
  flex-shrink: 0;
  position: relative;
}

.rule-type::before {
  content: '・';
  color: #ffbe3b;
  font-weight: 700;
}

.rule-desc {
  color: #a0a0ab !important;
  flex-grow: 1;
}

.rule-subdesc {
  font-size: 0.75rem !important;
  color: #8a8a8f !important;
  opacity: 0.95;
}

@media (max-width: 640px) {
  .download-instructions-card {
    padding: 1.2rem 1rem !important;
  }
  
  .instructions-rules-list li {
    flex-direction: column !important;
    gap: 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    padding-bottom: 0.6rem !important;
  }
  
  .instructions-rules-list li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  
  .rule-type {
    width: 100% !important;
  }
}

.resource-actions-area {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem !important;
  flex-wrap: wrap;
}

.btn-resource-download {
  background-color: #ffbe3b !important;
  color: #030303 !important;
  border: 1px solid #ffbe3b !important;
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-weight: 700 !important;
  padding: 1rem 2.5rem !important;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-align: center;
  box-shadow: 0 10px 20px rgba(255, 190, 59, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-resource-download:hover {
  background-color: transparent !important;
  color: #ffbe3b !important;
  border-color: #ffbe3b !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 30px rgba(255, 190, 59, 0.25);
}

.btn-sounds-open {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-weight: 700 !important;
  padding: 1rem 2.5rem !important;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-sounds-open:hover {
  background-color: #ffffff !important;
  color: #030303 !important;
  border-color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
  .resource-actions-area {
    flex-direction: column !important;
    gap: 1rem;
    width: 100%;
  }
  
  .btn-resource-download,
  .btn-sounds-open {
    width: 100% !important;
  }
}

/* ----------------------------------------------------
   18. Reference Video Modal & Button
---------------------------------------------------- */
.btn-video-popup {
  background: transparent !important;
  border: none !important;
  color: #ffbe3b !important; /* Accent Gold */
  font-family: 'Playfair Display', 'Noto Serif JP', serif !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0 !important;
  margin-top: 0.6rem !important;
  transition: color 0.3s ease, transform 0.2s ease !important;
  border-bottom: 1px dashed rgba(255, 190, 59, 0.4) !important;
  padding-bottom: 1px !important;
  outline: none !important;
}

.btn-video-popup:hover {
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.6) !important;
  transform: translateX(2px) !important;
}

.btn-video-popup .play-icon {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.video-modal-container {
  background-color: #030303 !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9) !important;
  padding: 3.5rem 2rem 2rem 2rem !important;
  max-width: 800px !important;
  width: 90% !important;
  border-radius: 4px;
}

.video-modal-wrapper {
  width: 100%;
  position: relative;
  aspect-ratio: 16/9;
  background-color: #000;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-modal-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}

