/* Google Fonts (Inter) を読み込みます */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap");

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Interフォントを全体に適用します */
body {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: rgb(35, 35, 35);
  color: rgb(251, 251, 251);
}

/* コンテナスタイル */
.container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* メインコンテンツ */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* メインタイトル */
.main-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 2rem;
}

/* ロゴ画像 */
.logo {
  width: 120px;
  height: auto;
}

/* イベント詳細セクション */
.event-details {
  margin: 3rem 0;
  border-top: 2px solid #374151;
  border-bottom: 2px solid #374151;
  width: 100%;
  max-width: 42rem;
  padding: 2rem 0;
}

.event-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.info-item {
  text-align: center;
}

.info-label {
  font-size: 0.875rem;
  color: #9ca3af;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Junctionについてセクション */
.about-junction {
  max-width: 800px;
  padding: 1.5rem;
  margin-top: 2rem;
  line-height: 1.6;
  color: #9ca3af;
}

.about-text {
  font-size: 1.25rem;
}

/* エントリーセクション */
.entry-section {
  width: 100%;
  margin: 3rem;
}

.entry-button {
  background-color: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1rem 3rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.entry-button:hover {
  background-color: #d1d3d8;
}

/* SNSリンクセクション */
.sns-info {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #9ca3af;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  font-size: 1.125rem;
}

.x-logo,
.instagram-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;

  transition: all 0.3s ease;

  img {
    width: 2.5rem;
    height: auto;
  }
}

.x-logo:hover,
.instagram-logo:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.instagram-logo {
  margin-bottom: 0.5rem;
}

/* フッター */
footer {
  width: 100%;
  padding: 1.5rem;
  text-align: center;
}

.footer-text {
  font-size: 0.75rem;
  color: #6b7280;
}

/* アニメーション */
.fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 単純なフェードイン（タイムテーブルで使用） */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.9s ease-out forwards;
}

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

/* アニメーションの遅延を設定 */
.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

.delay-5 {
  animation-delay: 1s;
}

/* パートナーセクション */
.partners-section {
  width: 100vw;
  margin: 4rem 0;
  padding: 2rem 0;
}

.partners-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 3rem;
  color: rgb(251, 251, 251);
  letter-spacing: 0.1em;
}

.partners-slider {
  width: 50%;
  min-width: 350px;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}

.partners-track {
  display: flex;
  align-items: center;
  width: fit-content;
  animation: scroll 4s linear infinite;
}

.partner-logo {
  flex: 0 0 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 2rem;
}

/* 白背景が必要なロゴ用のスタイル */
.partner-logo.white-bg img {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem;
}

.partner-logo img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  filter: brightness(1) contrast(1);
  transition: filter 0.3s ease;
}

/* 白背景でない場合のimg要素のスタイルは従来通り */
.partner-logo:not(.white-bg) img {
  filter: brightness(0.8) contrast(1.2);
}

/* 無限スライドアニメーション */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--track-width)));
  }
}

/* パートナーが少数の場合の中央配置 */
.partners-track.static {
  animation: none;
  justify-content: center;
  width: 100%;
}

.partners-slider.static {
  -webkit-mask-image: none;
  mask-image: none;
}

.delay-5 {
  animation-delay: 1s;
}

/* FAQ セクション */
.faq-section {
  width: 100%;
  max-width: 800px;
  margin: 3rem 0;
  text-align: left;
}

.faq-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  color: rgba(251, 251, 251, 0.9);
}

.faq-item {
  margin-bottom: 0.5rem;
  border: 1px solid rgba(251, 251, 251, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: none;
  color: rgba(251, 251, 251, 0.9);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: rgba(251, 251, 251, 0.05);
}

.faq-question:focus {
  outline: none;
  background-color: rgba(251, 251, 251, 0.05);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: rgba(251, 251, 251, 0.02);

  a {
    color: #ffffff;
    text-decoration: underline;
  }
}

.faq-answer.active {
  max-height: 200px;
}

.faq-answer p {
  padding: 1rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(251, 251, 251, 0.7);
}

/* タイムテーブル（SCHEDULE）セクション */
.schedule-section {
  width: 100%;
  max-width: 64rem;
  margin: 3rem auto;
  text-align: left;
}

.schedule-section h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 3rem;
  color: rgb(251, 251, 251);
  letter-spacing: 0.1em;
  text-align: center;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.day-schedule h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #374151;
}

.day-schedule ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.day-schedule li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.day-schedule li:last-child {
  margin-bottom: 0;
}

.day-schedule time {
  width: 6rem;
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 1rem;
  margin-right: 1rem;
}

.day-schedule span {
  flex: 1;
  color: #ffffff;
  font-size: 1rem;
}

/* レスポンシブデザイン */
@media (min-width: 768px) {
  .schedule-section {
    margin: 4rem auto;
  }

  .schedule-section h2 {
    font-size: 2.25rem;
  }

  .schedule-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  .main-title {
    font-size: 6rem;
  }

  .about-text {
    font-size: 1.5rem;
  }

  .faq-title {
    font-size: 1.8rem;
  }

  .faq-question {
    font-size: 1.1rem;
  }

  .faq-answer p {
    font-size: 1rem;
  }
}
