html {
  scroll-behavior: smooth;
}

body {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  position: relative;
}

/* バーガーメニューボタン */
.burger-menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-menu-button span {
  width: 100%;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-menu-button.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu-button.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu-button.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

main {
  padding: 30px;
}

.logo {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary-pink);
  text-decoration: none;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-pink);
  transition: width 0.3s ease;
}

.logo:hover::after {
  width: 100%;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-pink);
  transition: width 0.3s ease;
}

nav a:hover::before {
  width: 100%;
}

nav a:hover {
  color: var(--primary-pink);
}

main {
  margin-top: 80px;
}

section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-family: 'Kiwi Maru', serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-pink), var(--accent-purple));
  border-radius: 2px;
}

/* お知らせセクション（カレンダー風・他カードと同様の中央ぞろえ・白背景） */
.ionfmaition-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 3rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
}

.ionfmaition-card:hover {
  box-shadow: var(--hover-shadow);
}

.calendar-wrap {
  max-width: 360px;
  margin: 0 auto 2rem;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-month {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
}

.calendar-nav {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary-pink);
  background: rgba(255, 138, 160, 0.15);
  border: 1px solid rgba(255, 138, 160, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.calendar-nav:hover {
  background: rgba(255, 138, 160, 0.3);
  color: var(--text-dark);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.calendar-weekdays span:first-child {
  color: #e53e3e;
}

.calendar-weekdays span:last-child {
  color: #3182ce;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  cursor: default;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.calendar-day:disabled {
  opacity: 0.6;
}

.calendar-day-has-news {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-pink);
  background: rgba(255, 138, 160, 0.12);
  border-color: rgba(255, 138, 160, 0.3);
}

.calendar-day-has-news:hover:not(:disabled) {
  background: rgba(255, 138, 160, 0.25);
  border-color: var(--primary-pink);
}

.calendar-day-has-news.selected {
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
  color: white;
  border-color: transparent;
}

.calendar-day-other {
  color: var(--text-light);
  opacity: 0.5;
}

/* お知らせポップアップ */
.news-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.news-popup-overlay.is-open {
  display: flex;
  opacity: 1;
}

.news-popup {
  position: relative;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 2rem 2rem 2rem 2rem;
}

.news-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-light);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.news-popup-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-dark);
}

.news-popup-body {
  text-align: left;
}

.news-popup-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.news-popup-title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--text-dark);
}

.news-popup-content {
  margin: 0 0 1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.news-popup-content-line {
  margin: 0 0 0.5em;
}

.news-popup-content-line:last-child {
  margin-bottom: 0;
}

.news-popup-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  transition: opacity 0.2s ease;
}

.news-popup-link:hover {
  opacity: 0.9;
}

.news-popup-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.news-popup-media-item {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.news-popup-video-wrap {
  width: 100%;
  min-height: 200px;
  max-height: 50vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-popup-media video {
  width: 100%;
  height: 100%;
  max-height: 50vh;
  object-fit: contain;
  background: #000;
  display: block;
}

.news-detail {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 138, 160, 0.2);
  min-height: 80px;
  text-align: left;
}

.news-detail-placeholder {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

.news-detail-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.news-detail-item {
  margin-bottom: 1rem;
}

.news-detail-item:last-child {
  margin-bottom: 0;
}

.news-detail-title {
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: var(--text-dark);
}

.news-detail-link {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.news-detail-link:hover {
  opacity: 0.9;
}

.profile-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 3rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-card:hover {
  box-shadow: var(--hover-shadow);
}

.profile-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.avatar-container {
  position: relative;
  text-align: center;
}

.avatar {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: contain;
  animation: float 3s ease-in-out infinite;
  transition: opacity 0.35s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

.avatar-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto 0;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #ff8aa0;
  background: rgba(255, 138, 160, 0.15);
  border: 1px solid rgba(255, 138, 160, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 138, 160, 0.15);
}

.avatar-switch-btn:hover {
  background: rgba(255, 138, 160, 0.3);
  border-color: #ff8aa0;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(255, 138, 160, 0.25);
}

.avatar-switch-btn:active {
  transform: scale(0.98);
}

.avatar-switch-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.profile-info table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.profile-info td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 138, 160, 0.2);
  font-weight: bold;
}

.profile-info td:first-child {
  font-weight: 600;
  color: var(--primary-pink);
  width: 140px;
  white-space: nowrap;
}

.name-ruby {
  font-size: 1.2rem;
  font-weight: 500;
}

.name-blue {
  color: #4299e1;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.sns-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.sns-link {
  display: inline-block;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sns-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.sns-link svg {
  width: 30px;
  height: 30px;
  transition: all 0.3s ease;
}

.sns-link.youtube svg {
  fill: #FF0000;
}

.sns-link.youtube:hover {
  background: rgba(255, 0, 0, 0.1);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.sns-link.twitch svg {
  fill: #9146FF;
}

.sns-link.twitch:hover {
  background: rgba(145, 70, 255, 0.1);
  box-shadow: 0 8px 25px rgba(145, 70, 255, 0.3);
}

.sns-link.x svg {
  fill: #000000;
}

.sns-link.x:hover {
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.sns-link.discord svg {
  fill: #5865F2;
}

.sns-link.discord:hover {
  background: rgba(88, 101, 242, 0.1);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.video-container {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 20px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.goods-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.goods-swiper {
  max-width: 100%;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.goods-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.goods-card img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.booth-link {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(255, 138, 160, 0.3);
  margin-top: 1rem;
}

.booth-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 138, 160, 0.4);
}

/* ミニゲームセクション */
.minigame-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.minigame-card:hover {
  box-shadow: var(--hover-shadow);
}

.minigame-description {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.minigame-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(255, 138, 160, 0.3);
}

.minigame-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 138, 160, 0.4);
}

.gallery-container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.swiper {
  border-radius: 20px;
  overflow: hidden;
}

.swiper-slide {
  text-align: center;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 600px;
  object-fit: contain;
  border-radius: 15px;
  object-position: top;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-pink);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
}

.swiper-pagination-bullet-active {
  background: var(--primary-pink);
}

.footer-link {
  color: var(--text-light);
  text-decoration: underline;
  margin-left: 0.5rem;
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--primary-pink);
  text-decoration: none;
}

#page-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 138, 160, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

#page-top.show {
  opacity: 1;
  transform: translateY(0);
}

#page-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255, 138, 160, 0.5);
}

@media (max-width: 768px) {

 main{
  padding: 0;
 }
 
 section{
  max-width: 100%;
  padding: 3rem 0;
 }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }

  .burger-menu-button {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    padding-top: 80px;
    overflow-y: auto;
  }

  nav.active {
    transform: translateY(0);
  }

  nav ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
    list-style: none;
    grid-template-columns: none !important;
  }

  nav ul li {
    width: 100% !important;
    display: block !important;
    grid-column: unset !important;
    grid-row: unset !important;
  }

  nav a {
    display: block;
    text-align: left;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 138, 160, 0.1);
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    letter-spacing: 0.1em;
    width: 100%;
    box-sizing: border-box;
  }

  nav a:hover {
    background-color: rgba(255, 138, 160, 0.05);
    color: var(--primary-pink);
  }

  nav a:last-child {
    border-bottom: none;
  }

  main {
    margin-top: 140px;
  }

 #profile{
  scroll-margin-top: 140px;
  padding-top: 6rem;
 }


  .profile-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  h2 {
    font-size: 2rem;
  }

  .profile-card {
    padding: 2rem;
    width: 100%;
  }

  .profile-info table {
    word-break: break-word;
    table-layout: auto;

  }

  .profile-info td {
    display: table-cell;
    padding: 0.5rem;
    font-size: 0.95rem;
  }

  .name-ruby {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .name-ruby ruby,
  .name-ruby span:not(rt span) {
    white-space: nowrap;
    line-height: 1.2;
    font-size: 1rem;
  }

  .name-ruby rt {
    font-size: 0.6em;
    line-height: 1;
    white-space: nowrap;
  }


  .intro-text {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 1rem;
  }

  .sns-link svg {
    width: 24px;
    height: 24px;
  }

  .sns-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .sns-link {
    padding: 0.6rem;
  }

.profile-card,
.ionfmaition-card,
.goods-card,
.video-container,
.gallery-container,
.minigame-card {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  padding: 2rem 1rem;
  box-shadow: none;
}

  .swiper-slide img {
    height: 60vw;
    max-height: 400px;
    align-self: center;
    object-position: center;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;

   
  }

}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

