/* CSS Variables for responsive header sizing */
:root {
  --header-height: 240px;
  --header-padding: 20px;
  --header-gap: 20px;
  --logo-translate-y: 50%;
  --title-translate-y: -15px;
  --title-gap: 4px;
  --title-align-items: end;
  --title-text-align: left;
  --title-margin-top: 0px;
}

/* Utility Classes */
.text-right {
  text-align: right !important;
}

/* Reset default styles and base setup */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px 0;
  background: linear-gradient(
    135deg,
    #004ea2 0%,
    #003875 25%,
    #002a5c 50%,
    #001d43 75%,
    #001122 100%
  );
  background-attachment: fixed;
  background-size: 100% 100%;
  font-family: "MS PGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 10px;
  color: #ffffff;
  min-height: 100vh;
}

/* Page Container */
.page-container {
  max-width: 799px;
  margin: 0 auto;
  background-color: transparent;
}

/* Header Wrapper */
.header-wrapper {
  height: calc(
    var(--header-height) - (var(--header-height) / 4) + 8px
  ); /* メニューの高さ分小さく */
  overflow: hidden;
  position: relative;
}

/* Header Section */
.header-section {
  width: 100%;
  height: var(--header-height); /* 元の高さを保持 */
  position: relative;
  overflow: hidden;
}

.header-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, #010043 0%, #000830 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.header-section::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ffffff;
  z-index: 1;
}

.header-content {
  width: 100%;
  max-width: 799px;
  margin: 0 auto;
  position: relative;
  height: 100%;
  padding: 0 var(--header-padding);
  display: flex;
  align-items: start;
  gap: var(--header-gap);
  z-index: 2;
}

.logo-container {
  flex-shrink: 0;
  height: 50%;
  aspect-ratio: 1;
  transform: translateY(var(--logo-translate-y));
  border: solid 3px white;
  border-radius: 50%;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

.rwr-logo {
  width: 100%;
  height: 100%;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #ffffff;
  filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.4))
    drop-shadow(0 4px 16px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
  display: block;
}

.rwr-logo:hover {
  transform: scale(1.05);
}

.site-title {
  height: 50%;
  flex: 1;
  color: #ffffff;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: var(--title-align-items);
  gap: var(--title-gap);
  text-align: var(--title-text-align);
  justify-content: center;
}

.site-title-logo {
  width: clamp(200px, 30vw, 360px);
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.45));
}

.tagline {
  font-family: "Roboto", sans-serif;
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copyright {
  font-family: "Roboto", sans-serif;
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive adjustments for header using CSS variables */
@media (max-width: 780px) {
  :root {
    --header-height: 200px;
    --title-align-items: flex-end;
    --title-text-align: right;
    --title-translate-y: 0px;
    --title-margin-top: 15px;
  }

  .header-content {
    align-items: flex-start !important;
    justify-content: space-between !important;
  }

  .site-title {
    flex: 0 0 auto !important;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 160px;
    --header-padding: 15px;
    --header-gap: 15px;
    --logo-translate-y: 25px;
    --title-translate-y: -12px;
  }
}
@media (max-width: 480px) {
  :root {
    --header-height: 120px;
    --header-padding: 10px;
    --header-gap: 10px;
    --logo-translate-y: 15px;
    --title-translate-y: -8px;
  }

  .site-title-logo {
    width: clamp(160px, 55vw, 280px);
  }

  .tagline {
    font-size: 0.55rem;
    letter-spacing: 0.5px;
  }

  .copyright {
    font-size: 0.45rem;
  }
}

@media (max-width: 380px) {
  :root {
    --header-height: 100px;
    --header-padding: 8px;
    --header-gap: 8px;
    --logo-translate-y: 12px;
    --title-translate-y: -6px;
  }

  .site-title-logo {
    width: clamp(150px, 60vw, 240px);
  }

  .tagline {
    font-size: 0.5rem;
    letter-spacing: 0.5px;
  }

  .copyright {
    font-size: 0.4rem;
  }
}

@media (max-width: 320px) {
  :root {
    --header-height: 90px;
    --header-padding: 5px;
    --header-gap: 5px;
    --logo-translate-y: 10px;
    --title-translate-y: -5px;
  }

  .site-title-logo {
    width: clamp(140px, 70vw, 210px);
  }

  .tagline {
    font-size: 0.45rem;
    letter-spacing: 0px;
  }

  .copyright {
    font-size: 0.35rem;
  }
}

/* Menu Section */
.menu-section {
  width: 100%;
  height: 54px;
  background: linear-gradient(180deg, #010043 0%, #000830 50%, #000520 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

.menu-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
}

.menu-container {
  display: flex;
  justify-content: stretch;
  align-items: center;
  height: 54px;
  max-width: 100%;
  flex-wrap: nowrap;
}

.menu-btn {
  position: relative;
  flex: 1;
  height: 54px;
  background: linear-gradient(180deg, #010043 0%, #000830 50%, #000520 100%);
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: normal;
  text-align: right;
  transition: all 0.2s ease;
  box-sizing: border-box;
  margin-right: 2px;
  padding: 0 6px 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* Menu responsive for 540px and below */
@media (max-width: 540px) {
  .menu-section {
    height: 108px; /* 54px × 2 */
  }

  .menu-container {
    flex-wrap: wrap;
    height: 108px;
    align-content: stretch;
  }

  .menu-btn {
    flex: 0 0 calc(50% - 1px); /* 2つずつ表示、margin-right分を調整 */
    margin-bottom: 0;
  }

  .menu-btn:nth-child(2n) {
    margin-right: 0; /* 2番目、4番目のボタンは右マージンなし */
  }
}

.menu-btn::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
}

.menu-btn:hover,
.menu-btn.current {
  background: linear-gradient(180deg, #020055 0%, #010043 50%, #000830 100%);
  color: #ffffff;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Content Section */
.content-section {
  width: 100%;
  min-height: 317px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.content-wrapper {
  width: 770px;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

/* Section Headers */
.section-title {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: normal;
  font-style: italic;
  font-size: 24px;
  color: #ffffff;
  margin: 0 0 15px 0;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.profile-section-title {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: normal;
  font-style: italic;
  font-size: 24px;
  color: #ffffff;
  margin: 20px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  border-top: 2px dashed #ffffff;
  border-bottom: 2px dashed #ffffff;
  padding: 15px 0;
}

/* Discography Section */
.discography-section {
  margin-top: 30px;
}

.album-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.album-item {
  display: flex;
  gap: 20px;
  background: linear-gradient(180deg, #010042 0%, #000830 100%);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.album-cover {
  flex-shrink: 0;
}

.album-cover img {
  border-radius: 4px;
  display: block;
}

.album-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.album-info h4 {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.album-info p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  color: #cccccc;
}

.album-info ol {
  font-size: 12px;
  line-height: 1.8;
  margin: 10px 0 0 0;
  padding-left: 20px;
  color: #ffffff;
}

.album-info ol li {
  margin-bottom: 4px;
}

.album-info ol li.highlight {
  color: #ffff00;
  font-weight: bold;
}

.shop-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 12px;
}

.shop-links img {
  display: block;
}

.shop-links span {
  color: #ffffff;
}

/* Main Content */
.main-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-height: 260px;
}

/* Content Spacer */
.content-spacer {
  width: 20px;
  flex: 0 0 20px;
}

/* News Section */
.news-section {
  width: 200px;
  flex: 0 0 200px;
  margin: 1rem 0;
}

.news-content-container {
  background: linear-gradient(180deg, #010042 0%, #000830 100%);
  border-radius: 8px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 15px;
}

.news-item {
  margin-bottom: 15px;
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-item strong {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  margin-bottom: 2px;
}

.news-item .date {
  font-size: 9px;
  color: #cccccc;
  display: block;
  margin-bottom: 2px;
}

.news-item .news-content {
  font-size: 10px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
}

/* Artists Section */
.artists-section {
  flex: 1;
  margin: 1rem 0;
}

.artists-content-container {
  background: linear-gradient(
    180deg,
    rgba(1, 0, 66, 0.4) 0%,
    rgba(1, 0, 66, 0.2) 100%
  );
  border-radius: 8px;
  padding: 15px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments for content sections */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    gap: 15px;
  }

  .news-section,
  .artists-section {
    width: 100%;
    flex: none;
  }

  .section-header h2 {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .section-header {
    padding: 6px 8px;
    margin-bottom: 10px;
  }

  .section-header h2 {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }

  .news-content {
    padding: 10px 8px;
    max-height: 180px;
  }

  .artists-section {
    padding: 10px;
  }
}

.artist-grid {
  width: 100%;
}

.artist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1%;
  align-items: flex-start;
  justify-content: flex-start;
}

.artist-item {
  width: calc(25% - 0.75%);
  aspect-ratio: 70/91;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.artist-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Footer Section */
.footer-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

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

/* Link Styles */
a {
  font-size: 10px;
  color: #ffff00;
  text-decoration: none;
}

a:visited {
  text-decoration: none;
  color: #cccccc;
}

a:hover {
  text-decoration: underline;
}

a:active {
  text-decoration: none;
}

h1 {
  font-size: 11px;
}

/* Demotape Content */
.demo-content {
  width: 767px;
  max-width: 100%;
  background-color: #010042;
  padding: 20px;
  margin: 0 auto;
  color: #ffffff;
  border-radius: 4px;
}

.demo-content h1 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: #ffffff;
}

.demo-info {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.address-info {
  margin-top: 20px;
  font-size: 14px;
}

/* Discography Content */
.discography-content {
  width: 767px;
  max-width: 100%;
  background-color: #010042;
  padding: 20px;
  margin: 0 auto;
  color: #ffffff;
  border-radius: 4px;
}

.shop-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12px;
}

.discography-grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.album-thumbnails {
  flex: 0 0 260px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(6, 40px);
  gap: 2px;
}

.thumb {
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.thumb:hover {
  border-color: #ffffff;
}

.album-display {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.jacket-stage {
  max-width: 450px;
  height: auto;
}

.page-container {
  max-width: 799px;
  margin: 0 auto;
  background-color: transparent;
}

.content-with-border {
  border: 3px solid white;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.2);
  background-color: #004ea2;
  position: relative;
  overflow: hidden;
}

.content-with-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.2) 80%,
    transparent 100%
  );
  z-index: 1;
}

/* Responsive adjustments for content sections */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    gap: 15px;
  }

  .news-section,
  .artists-section {
    width: 100%;
    flex: none;
  }

  .content-spacer {
    display: none;
  }

  .section-title {
    font-size: 20px;
  }

  .artist-item {
    width: calc(50% - 0.5%);
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 18px;
    letter-spacing: 0.5px;
  }

  .news-content-container,
  .artists-content-container {
    padding: 10px;
  }

  .artist-item {
    width: calc(50% - 0.5%);
  }
}

/* Discography Page Styles */
.discography-main {
  flex: 1;
  margin: 1rem 0;
}

.discography-content-container {
  background: linear-gradient(
    180deg,
    rgba(1, 0, 66, 0.4) 0%,
    rgba(1, 0, 66, 0.2) 100%
  );
  border-radius: 8px;
  padding: 15px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shop-link {
  margin-bottom: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  text-align: center;
}

.shop-link span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #cccccc;
}

/* Discography Grid Styles */
.discography-grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.album-thumbnails {
  flex: 1;
  max-width: 300px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumb {
  width: 100%;
  height: auto;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.thumb:hover {
  border-color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.album-display {
  flex: 1;
  min-width: 400px;
  background: linear-gradient(180deg, #010043 0%, #000830 100%);
  border-radius: 12px;
  padding: 30px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.jacket-stage {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.jacket-stage:hover {
  transform: scale(1.02);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  animation: zoomIn 0.3s ease;
}

.lightbox-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Demo Page Styles */
.demo-main {
  flex: 1;
  margin: 1rem 0;
}

.demo-content-container {
  background: linear-gradient(
    180deg,
    rgba(1, 0, 66, 0.4) 0%,
    rgba(1, 0, 66, 0.2) 100%
  );
  border-radius: 8px;
  padding: 15px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.demo-content h3 {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 18px;
  color: #ffffff;
  margin: 0 0 15px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.demo-info p {
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 12px;
}

.address-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 4px;
  border-left: 4px solid #ffffff;
}

.address-info strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

/* Profile Page Styles */
.profile-main {
  flex: 1;
  margin: 1rem 0;
}

.profile-content-container {
  background: linear-gradient(
    180deg,
    rgba(1, 0, 66, 0.4) 0%,
    rgba(1, 0, 66, 0.2) 100%
  );
  border-radius: 8px;
  padding: 20px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.profile-info {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.profile-image {
  flex: 0 0 150px;
}

.profile-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-details {
  flex: 1;
}

.profile-details h3 {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 20px;
  color: #ffffff;
  margin: 0 0 15px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.profile-description {
  line-height: 1.6;
  font-size: 12px;
  color: #ffffff;
}

@media (max-width: 600px) {
  .profile-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-image {
    flex: 0 0 auto;
  }
}
