* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background-color: #050305;
  background-image: url("./images/gothic-bg.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
  color: #f5eaf2;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
}

/* ========================= HEADER ========================= */

header {
  position: relative;
  padding: 80px 20px 35px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,.95), rgba(35,0,18,.92));
  border-bottom: 1px solid #8b174e;
  overflow: hidden;
}

header::before {
  content: "✦  🥀  ✦";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(229,43,126,.45);
  font-size: 22px;
  letter-spacing: .5em;
}

.header-sub {
  margin: 0 0 8px;
  color: #c66894;
  font-size: 12px;
  letter-spacing: .35em;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: 38px;
  font-weight: normal;
  letter-spacing: .08em;
  text-shadow: 0 0 12px rgba(230,35,125,.35);
}

.header-copy {
  margin-top: 10px;
  color: #bdb4b9;
  font-size: 14px;
  letter-spacing: .15em;
}

/* ========================= MAIN VISUAL ========================= */

.main-visual {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 0 auto 28px;
  object-fit: contain;
  border-bottom: 1px solid #8b174e;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 20px rgba(213,43,118,.12);
}

/* ========================= NAV ========================= */

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

nav a {
  display: inline-block;
  min-width: 105px;
  padding: 8px 16px;
  color: #e9dbe2;
  border: 1px solid #7d264e;
  background: rgba(20,5,12,.8);
  text-decoration: none;
  letter-spacing: .12em;
  font-size: 13px;
  transition: .2s;
}

nav a:hover {
  color: #fff;
  background: #a71658;
  box-shadow: 0 0 14px rgba(220,35,120,.35);
  transform: translateY(-2px);
}

/* ========================= MAIN / SECTION ========================= */

main {
  width: 90%;
  max-width: 900px;
  margin: 50px auto;
  padding-bottom: 60px;
}

section {
  position: relative;
  margin-bottom: 34px;
  padding: 30px 32px;
  background: linear-gradient(145deg, rgba(24,15,21,.96), rgba(9,9,9,.96));
  border: 1px solid rgba(150,31,83,.45);
  box-shadow: 0 8px 28px rgba(0,0,0,.38);
  overflow: hidden;
}

section::after {
  content: "✧";
  position: absolute;
  right: 18px;
  bottom: 6px;
  color: rgba(221,39,118,.12);
  font-size: 56px;
  pointer-events: none;
}

section h2 {
  position: relative;
  margin-top: 0;
  margin-bottom: 18px;
  padding-bottom: 9px;
  color: #f2d6e3;
  font-size: 23px;
  font-weight: normal;
  letter-spacing: .18em;
  border-bottom: 1px solid rgba(188,40,104,.5);
}

section h2::before {
  content: "✦";
  margin-right: 9px;
  color: #d52b76;
}

/* ========================= NEWS ========================= */

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.news-item:last-child { border-bottom: none; }
.news-date { margin: 0; color: #ce5d90; font-size: 13px; letter-spacing: .06em; }
.news-item p { margin: 0; }

/* ========================= PROFILE ========================= */

.profile-main h3 { margin: 0 0 4px; color: #fff; font-size: 25px; font-weight: normal; }
.profile-role { margin-top: 0; color: #cf5f92; letter-spacing: .12em; }

.profile-info {
  margin-top: 24px;
  padding: 18px 20px;
  background: rgba(255,255,255,.03);
  border-left: 3px solid #b51f63;
}

.profile-info p { margin: 6px 0; }
.profile-info span { display: inline-block; width: 100px; color: #cf6a98; font-size: 13px; letter-spacing: .08em; }

/* ========================= MEMORY ========================= */

.memory-box {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(196,38,105,.35);
}

.memory-box h3 { margin-top: 0; color: #d46899; letter-spacing: .18em; font-weight: normal; }

.memory-item {
  position: relative;
  margin-left: 9px;
  padding: 4px 0 16px 20px;
  border-left: 1px solid #7f244d;
}

.memory-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 11px;
  width: 9px;
  height: 9px;
  background: #d42874;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(212,40,116,.55);
}

.memory-item span { color: #d66f9e; font-size: 13px; }
.memory-item p { margin: 2px 0 0; }

/* ========================= MUSIC ========================= */

.song-card {
  display: grid;
  grid-template-columns: 170px minmax(0,1fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  background: linear-gradient(135deg, rgba(91,13,49,.55), rgba(18,11,15,.9));
  border: 1px solid rgba(189,43,105,.45);
  box-shadow: inset 0 0 18px rgba(220,30,110,.05);
}

.song-cover {
  display: block;
  width: 170px;
  height: 170px;
  object-fit: cover;
  border: 1px solid #9f245b;
  box-shadow: 0 0 18px rgba(214,40,116,.28);
}

.song-info { width: 100%; min-width: 0; }
.song-label { margin: 0 0 3px; color: #cf5f92; font-size: 11px; letter-spacing: .2em; }
.song-card h3 { margin: 0 0 5px; color: #fff; font-size: 22px; font-weight: normal; }
.song-credit { margin: 0 0 16px; color: #aaa0a5; font-size: 13px; }
.song-card audio { display: block; width: 100%; max-width: 100%; }

/* ========================= LINK ========================= */

.link-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.link-list a {
  display: inline-block;
  min-width: 120px;
  padding: 10px 18px;
  text-align: center;
  color: #f2dce6;
  background: rgba(112,20,62,.5);
  border: 1px solid #a12a60;
  text-decoration: none;
  letter-spacing: .1em;
  transition: .2s;
}

.link-list a:hover { color: #fff; background: #b51f63; box-shadow: 0 0 14px rgba(223,36,119,.3); }

/* ========================= FOOTER ========================= */

footer {
  padding: 35px 20px;
  text-align: center;
  color: #70676c;
  background: #030303;
  border-top: 1px solid #431126;
  font-size: 12px;
}

footer p { margin: 2px; }
.footer-sub { letter-spacing: .15em; }
.site-credit { margin-top: 6px; font-size: 11px; letter-spacing: .08em; opacity: .55; }

/* ========================= NEWS + SCHEDULE ========================= */

.news-schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.news-column, .schedule-column { min-width: 0; }

.schedule-column {
  padding-left: 28px;
  border-left: 1px solid rgba(213,43,118,.35);
}

.schedule-column h3 {
  margin: 0 0 12px;
  color: #d95a91;
  font-size: 16px;
  font-weight: normal;
  letter-spacing: .15em;
}

.schedule-column p { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.schedule-column p:last-child { border-bottom: none; }

/* ========================= TERMS ========================= */

.sub-page { max-width: 900px; margin: 60px auto; padding: 0 20px; }
.sub-page h2 { text-align: center; margin-bottom: 30px; }

.sub-page-box {
  padding: 32px;
  background: rgba(20,12,17,.90);
  border: 1px solid rgba(213,43,118,.45);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  line-height: 1.9;
}

.sub-page-box h3 {
  margin-top: 34px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  color: #e55a91;
  border-bottom: 1px solid rgba(213,43,118,.35);
  letter-spacing: .08em;
}

.sub-page-box p { margin: 0 0 20px; }

/* ========================= SITE CONTACT ========================= */

.site-contact-note { margin-top: 15px; text-align: center; font-size: 13px; line-height: 1.8; }
.site-contact-note a { color: #e55a91; font-weight: bold; }

/* ========================= NEWS / SCHEDULE / MEMORY SCROLL ========================= */

#news-list, #schedule-list, #memory-list {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(229,90,145,.55) rgba(255,255,255,.04);
}

#news-list::-webkit-scrollbar,
#schedule-list::-webkit-scrollbar,
#memory-list::-webkit-scrollbar { width: 6px; }

#news-list::-webkit-scrollbar-thumb,
#schedule-list::-webkit-scrollbar-thumb,
#memory-list::-webkit-scrollbar-thumb {
  background: rgba(229,90,145,.55);
  border-radius: 10px;
}

#news-list::-webkit-scrollbar-track,
#schedule-list::-webkit-scrollbar-track,
#memory-list::-webkit-scrollbar-track { background: rgba(255,255,255,.04); }

/* ========================= GALLERY - HOME ========================= */

.gallery-text { margin-bottom: 22px; }

.gallery-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.gallery-grid a {
  display: block;
  flex: 0 0 220px;
  overflow: hidden;
  background: #1c1017;
  border: 1px solid rgba(189,43,105,.35);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  scroll-snap-align: start;
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .3s ease;
}

.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid::-webkit-scrollbar { height: 6px; }
.gallery-grid::-webkit-scrollbar-thumb { background: rgba(229,90,145,.45); border-radius: 10px; }
.gallery-grid::-webkit-scrollbar-track { background: transparent; }

.gallery-more { margin: 20px 0 0; text-align: right; }
.gallery-more a { color: #d95a91; text-decoration: none; font-size: 13px; letter-spacing: .08em; transition: .2s; }
.gallery-more a:hover { color: #fff; }

/* ========================= GALLERY PAGE ========================= */

.gallery-page {
  width: min(92%,900px);
  margin: 0 auto;
  padding: 60px 0 80px;
  text-align: center;
}

.gallery-page h2 { margin-bottom: 12px; }
.gallery-page .gallery-text { margin-bottom: 32px; line-height: 1.9; }

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,220px));
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.gallery-page-grid a {
  display: block;
  width: 100%;
  max-width: 220px;
  overflow: hidden;
  background: #1c1017;
  border: 1px solid rgba(189,43,105,.35);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.gallery-page-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .3s ease;
}

.gallery-page-grid a:hover img { transform: scale(1.04); }

/* ========================= PAGINATION ========================= */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
}

.pagination a { color: inherit; border: 1px solid rgba(255,255,255,.18); }
.pagination a:hover { opacity: .7; }
.pagination-current { color: #fff; background: #a5225d; }
.pagination-prev, .pagination-next { padding-left: 16px !important; padding-right: 16px !important; }

/* ========================= GALLERY PAGE HEADER ========================= */

.gallery-page-header-image {
  display: block;
  width: min(100%,700px);
  height: auto;
  margin: 0 auto 24px;
  object-fit: contain;
}

/* ========================= MOBILE ========================= */

@media screen and (max-width: 600px) {
  header { padding: 65px 18px 28px; }
  h1 { font-size: 27px; }

  .main-visual {
    width: 72%;
    max-width: 72%;
    height: auto;
    display: block;
    margin: 0 auto 18px;
    object-fit: contain;
  }

  nav { margin-top: 22px; }
  main { width: 92%; margin-top: 30px; }
  section { padding: 24px 20px; }
  section h2 { font-size: 20px; }

  .news-item { grid-template-columns: 1fr; gap: 1px; }

  .profile-info span {
    display: block;
    width: auto;
    margin-bottom: 2px;
  }

  .song-card {
    display: block;
    width: 100%;
    padding: 20px;
    text-align: center;
  }

  .song-cover {
    display: block;
    width: min(200px,100%);
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto 18px;
    object-fit: cover;
  }

  .song-info {
    display: block;
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .song-card audio {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 16px auto 0;
  }

  .link-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .news-schedule-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .schedule-column {
    margin-top: 8px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(91,13,49,.75), rgba(18,11,15,.92));
    border: 1px solid rgba(213,43,118,.55);
    border-radius: 12px;
  }

  .schedule-column h3 {
    margin: -18px -18px 16px;
    padding: 12px 16px;
    background: rgba(181,31,99,.42);
    border-bottom: 1px solid rgba(229,90,145,.45);
    color: #fff;
    font-size: 17px;
    letter-spacing: .18em;
    text-align: center;
  }

  .schedule-column h3::before { content: "◆ "; color: #ff4fa0; }

  .sub-page { margin: 35px auto; padding: 0 14px; }
  .sub-page-box { padding: 22px 18px; font-size: 14px; }

  .gallery-grid { gap: 12px; }
  .gallery-grid a { flex-basis: 160px; }
  .gallery-more { text-align: center; }

  .gallery-page {
    width: 100%;
    padding: 24px 0 40px;
  }

  .gallery-page .gallery-text { font-size: 14px; }

  .gallery-page-grid {
    grid-template-columns: repeat(2,minmax(0,150px));
    gap: 12px;
    margin-top: 24px;
  }

  .gallery-page-grid a { max-width: 150px; }

  .pagination { gap: 7px; margin-top: 32px; }

  .pagination a, .pagination span {
    min-width: 36px;
    min-height: 36px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .gallery-page-header-image {
    width: 85%;
    margin-bottom: 18px;
  }
}


/* =========================
   SCHEDULE READABILITY
   PC + SMARTPHONE
========================= */

#schedule-list {
  width: 100%;
}

#schedule-list > * {
  margin: 0;
  padding: 16px 0;
  line-height: 2;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: pre-line;
  border-bottom: 1px solid rgba(229, 90, 145, 0.22);
}

#schedule-list > *:first-child {
  padding-top: 4px;
}

#schedule-list > *:last-child {
  padding-bottom: 4px;
  border-bottom: none;
}

@media screen and (min-width: 601px) {
  .news-schedule-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
  }

  .schedule-column {
    padding-left: 32px;
  }

  #schedule-list {
    font-size: 14px;
  }

  #schedule-list > * {
    padding: 16px 4px;
    line-height: 2.05;
  }
}

@media screen and (max-width: 600px) {
  .schedule-column {
    padding: 18px 16px;
  }

  #schedule-list {
    font-size: 14px;
  }

  #schedule-list > * {
    padding: 15px 2px;
    line-height: 2;
    text-align: left;
    letter-spacing: 0.01em;
  }

  #schedule-list p,
  #schedule-list div {
    max-width: 100%;
  }
}
