:root {
  --brand-blue: #0a1e45;
  --accent-blue: #2e6cff;
  --light-blue: #cfe2ff;
  --text-light: #f4f7fc;
  --text-dark: #111;
  --bg-dark: #030b1c;
  --transition: 0.4s ease;
  --font: "Inter", "Noto Sans JP", sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #0a0f1c, #05070d 70%);
  color: #ffffff;
  font-family: sans-serif;
}
.frx-card:nth-child(1) { animation-delay: 0.2s; }
.frx-card:nth-child(2) { animation-delay: 0.3s; }
.frx-card:nth-child(3) { animation-delay: 0.4s; }

.frx-hall {
  padding: 40px 5%;
  min-height: 100vh;
  color: #ffffff;
  font-family: "Segoe UI", sans-serif;
}

.frx-hall__header {
  text-align: center;
  margin-bottom: 20px;
}

.frx-hall__title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
}

.frx-hall__subtitle {
  opacity: 0.8;
  margin-top: 10px;
}

.frx-hall__controls {
  text-align: center;
  margin-bottom: 40px;
}

.frx-control__search {
  width: 320px;
  padding: 12px 16px;
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 14px;
}

.frx-hall__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.frx-card {
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: white;
  display: block;
  opacity: 0;
  transform: translateY(40px);
}

/* スクロールで表示された時 */
.frx-card.is-visible {
  animation: frxCardReveal 0.8s ease forwards;
}

.frx-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.frx-card__title {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.frx-card__desc {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.5;
}

.frx-card__tag {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 20px;
  background: #00bcd4;
  color: #000;
  font-weight: 600;
}

@keyframes frxHeroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 映像ヒーローエリア ===== */

.frx-hall__hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}


.frx-hero__video {
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.6s ease;
}

.frx-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.85));
  display: flex;
  align-items: center;
  justify-content: center;
}

.frx-hero__text {
  font-size: 48px;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: frxHeroFade 1.5s ease forwards;
  opacity: 0;
}



/* ===== ロゴエリア ===== */

.frx-card__logo-wrapper {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden; /* 拡大時にはみ出さない */
}

.frx-card__logo {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease; /* なめらかな変化 */
}

/* ===== ホバー時のロゴ拡大 ===== */

.frx-card:hover .frx-card__logo {
  transform: scale(1.06);
}

/* -------------------------------
   Header / Navigation
--------------------------------*/
header.topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 30, 69, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8em 2em;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topnav .brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 700;
  font-size: 1.1em;
  color: var(--light-blue);
}

.topnav .brand .logo {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.2));
}




.mv-left {
  flex: 1;
  position: relative;
  z-index: 2;
  padding-right: 2em;
}

.mv-left h1 {
  font-size: clamp(2em, 4vw, 3em);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  background: linear-gradient(90deg, #ffffff 10%, #8ab6ff 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255,255,255,0.1);
  position: relative;
  z-index: 1900;
}

.mv-left .lead {
  font-size: 1.1em;
  margin-top: 1em;
  color: #dbe6ff;
}

/* ===== スクロール誘導UI ===== */

.frx-scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffffff;
  cursor: pointer;
  animation: frxScrollFloat 2s infinite ease-in-out;
}

.frx-scroll-indicator__text {
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.frx-scroll-indicator__arrow {
  width: 18px;
  height: 18px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
  margin: 0 auto;
}

/* 上下ふわふわ動き */
@keyframes frxScrollFloat {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}


/* ===== カード出現アニメーション ===== */

@keyframes frxCardReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================
   Responsive Design
========================================= */

/* ===== タブレット（1024px以下） ===== */
@media (max-width: 1024px) {

  .frx-hall {
    padding: 30px 6%;
  }

  .frx-hall__title {
    font-size: 34px;
  }

  .frx-control__search {
    width: 100%;
    max-width: 420px;
  }

  .frx-hall__hero {
    height: 50vh;
  }

  .frx-hero__text {
    font-size: 36px;
  }
}


/* ===== スマホ（768px以下） ===== */
@media (max-width: 768px) {

  header.topnav {
    padding: 0.6em 1.2em;
  }

  .topnav .brand {
    font-size: 0.95em;
  }

  .frx-hall {
    padding: 20px 5%;
  }

  .mv-left {
    padding-right: 0;
    text-align: center;
    margin-top: 50px;
  }

  .mv-left h1 {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }

  .mv-left .lead {
    font-size: 1em;
  }

  .frx-hall__hero {
    height: 45vh;
  }

  .frx-hero__text {
    font-size: 26px;
    letter-spacing: 2px;
  }

  .frx-hall__title {
    font-size: 28px;
  }

  .frx-hall__grid {
    gap: 18px;
  }

  .frx-card {
    padding: 18px;
  }

  .frx-card__title {
    font-size: 18px;
  }

  .frx-card__desc {
    font-size: 13px;
  }

  .frx-control__search {
    width: 90%;
    font-size: 13px;
  }

  .frx-scroll-indicator {
    bottom: 10px;
  }
}


/* ===== 小型スマホ（480px以下） ===== */
@media (max-width: 480px) {

  .frx-hall__hero {
    height: 40vh;
  }

  .frx-hero__text {
    font-size: 20px;
  }

  .frx-hall__title {
    font-size: 22px;
  }

  .frx-card__logo-wrapper {
    height: 60px;
  }

  .frx-card__logo {
    max-height: 55px;
  }

}

/* ===== 投票セクション ===== */
.frx-vote-section {
  padding: 80px 5% 120px;
  text-align: center;
}

.frx-vote-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: linear-gradient(135deg, rgba(46, 108, 255, 0.1), rgba(0, 188, 212, 0.1));
  border: 1px solid rgba(46, 108, 255, 0.3);
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.frx-vote__title {
  font-size: 28px;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #fff, #8ab6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.frx-vote__text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

.frx-vote__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--accent-blue);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
  box-shadow: 0 10px 20px rgba(46, 108, 255, 0.3);
}

.frx-vote__button:hover {
  transform: translateY(-3px);
  background: #467dff;
  box-shadow: 0 15px 30px rgba(46, 108, 255, 0.5);
}

/* モバイル最適化の追加 */
@media (max-width: 768px) {
  .frx-vote-container {
    padding: 30px 20px;
  }
  .frx-vote__title {
    font-size: 22px;
  }
  .frx-vote__text {
    font-size: 14px;
  }
  .frx-hall__grid {
    grid-template-columns: 1fr; /* スマホでは1列に */
    max-width: 400px;
    margin: 0 auto;
  }
}