* { box-sizing: border-box; }

body {
  margin: 0;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display","Helvetica Neue", sans-serif;
  overflow-x: hidden;

  background:
    radial-gradient(circle at top, #0b1f3a, #000 70%),
    linear-gradient(to bottom, #0b1f3a 0%, #000 60%);
}

/* ガラス */
.glass {
  backdrop-filter: blur(28px) saturate(180%);
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.06));
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.45),
    0 25px 50px rgba(0,120,255,0.35);
}

/* ロゴ */
.logo-area {
  position: absolute;   /* ← ここ重要 */
  top: 50px;
  left: 50px;

  width: 95px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  z-index: 10;
}
.logo-area img {
  height: 90px;
  border-radius: 50%;
}

/* ヒーロー */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 下の光のにじみ（復活） */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 260px;
  pointer-events: none;
  z-index: 1;

  background:
    radial-gradient(ellipse at 30% 100%, rgba(0,140,255,0.35), transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(255,215,0,0.25), transparent 60%);
  filter: blur(40px);
}

/* 溶けるグラデーション（復活） */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
  z-index: 2;

  background: linear-gradient(
    to bottom,
    rgba(11,31,58,0) 0%,
    rgba(11,31,58,0.6) 45%,
    rgba(0,0,0,0.9) 100%
  );
}

/* タイトル */
.hero-title {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 22px 44px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.12em;
  z-index: 3;

  animation: titleFloat 5s ease-in-out infinite;

  text-shadow:
    0 0 20px rgba(255,255,255,0.4),
    0 0 50px rgba(0,150,255,0.7);
}

.hero-title .line1 { font-size: 1rem; }
.hero-title .line2 { font-size: 4rem; }

/* サブ画像 */
.hero-images {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: flex;
  gap: 15px;
  z-index: 3;
}
.hero-images img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 固定情報 */
.fixed-info {
  position: fixed;
  right: 20px;
  top: 120px;
  padding: 20px;
  width: 220px;
  z-index: 5;
}

/* NEWS */
.news {
  margin: 80px auto;
  width: min(800px, 90%);
  padding: 30px;
}
.news-scroll { max-height: 220px; overflow-y: auto; }

/* コンテンツ */
.contents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
  padding: 80px 60px 120px;
}

/* フワフワボタン復活 */
.glass-btn {
  position: relative;
  padding: 30px 22px;
  border-radius: 999px;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: #ffd700;
  text-decoration: none;
  overflow: hidden;

  background:
    linear-gradient(145deg, rgba(255,255,255,0.25), rgba(0,0,0,0.25)),
    linear-gradient(180deg, #0a0f1f, #000);

  border: 1px solid rgba(255,215,0,0.4);

  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.25),
    inset 0 -6px 12px rgba(0,0,0,0.6),
    0 20px 40px rgba(0,0,0,0.9),
    0 0 20px rgba(255,215,0,0.25);

  animation: float 6s ease-in-out infinite;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-btn:hover {
  transform: scale(1.08) translateY(-8px);
}

/* Admin */
.admin { width: min(500px, 90%); margin: 100px auto; padding: 30px; }
.admin textarea, .admin input { width: 100%; margin: 10px 0; padding: 12px; border-radius: 14px; border: none; }

/* アニメーション */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes titleFloat {
  0%,100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-12px); }
}

/* スマホ */
@media (max-width: 768px) {

  body { font-size: 18px; }

  .hero-title { font-size: 2.2rem; padding: 16px 20px; }
  .hero-title .line2 { font-size: 2.6rem; }

  .fixed-info { position: static; width: auto; margin: 20px; }

  .contents { padding: 40px 20px 80px; gap: 20px; }

  .glass-btn { font-size: 1.3rem; padding: 26px; }

  .news { padding: 20px; }
}


/* =========================
   スマホ横向き専用
========================= */

@media (max-width: 900px) and (orientation: landscape) {

  /* ヒーロー高さを小さく */
  .hero {
    height: 60vh;
  }

  /* タイトル位置を少し上へ */
  .hero-title {
    top: 40%;
    font-size: 1.6rem;
    padding: 14px 18px;
  }

  .hero-title .line2 {
    font-size: 2.2rem;
  }

  /* サブ画像を小さく */
  .hero-images img {
    width: 80px;
    height: 54px;
  }

  /* 固定情報を固定解除 */
  .fixed-info {
    position: static;
    width: auto;
    margin: 20px;
  }

  /* ボタンを詰める */
  .contents {
    padding: 30px 20px 60px;
    gap: 14px;
  }

  .glass-btn {
    padding: 18px;
    font-size: 1rem;
  }

  /* NEWSの余白縮小 */
  .news {
    margin: 40px auto;
    padding: 18px;
  }

}


/* =========================
   MEMBER PAGE
========================= */

.member-header {
  margin: 20px;
  padding: 14px 20px;
}

.member-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.member-logo {
  height: 32px;
}

.member-header h1 {
  margin: 0;
  letter-spacing: 0.15em;
}

/* メンバーリスト */

.members {
  width: min(900px, 92%);
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.member-card {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.member-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.member-text {
  flex: 1;
}

.member-name {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

/* 小さいボタン */

.small-contents {
  padding-top: 20px;
}

.glass-btn.small {
  padding: 14px 16px;
  font-size: 0.9rem;
}

/* スマホ */

@media (max-width: 768px) {

  .member-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .member-card img {
    width: 160px;
    height: 160px;
  }

}





.top-thumbs {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}


.top-thumbs {
  display: flex;
  justify-content: center;
  gap: 20px;
}





@media (max-width: 768px) {
  .top-thumbs {
    flex-wrap: wrap;
  }

  .thumb-box {
    width: 48%;
  }
}



.thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* ← ここが重要 */
.thumb-box:hover img {
  transform: scale(1.1);
}


.top-thumbs{
  display:flex;
  gap:15px;
  margin:30px 40px;
}

.thumb-box{
  width:170px;
  height:105px;
  overflow:hidden;
  border-radius:12px;
}

.thumb-box img{
  width:100%;
  height:100%;
  object-fit:cover;
  cursor:pointer;
  transition:.3s;
}

.thumb-box:hover img{
  transform:scale(1.08);
}



/* ギャラリー画像 ホバー演出 */
/* ===== GALLERY HOVER FINAL ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 20px;
  padding: 40px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.gallery-item img {
  display: block;
  width: 100%;
}

.gallery-item:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}


/* ===== ギャラリー画像サイズ固定 ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 20px;
  padding: 40px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
}

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



/* 通常グリッド用だけ制御 */
.gallery-grid img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
}


/* ===== グリッド幅を強制固定 ===== */

.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  width: 100% !important;
}

.gallery-item img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  display: block;
}

/* ===== 美しいギャラリー最終版 ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 60px auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
}



/* ===== 上段サムネイルを整える ===== */

.top-thumbs {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px auto;
}

.small-thumb {
  width: 200px !important;
  height: 130px !important;
  object-fit: cover !important;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.small-thumb:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* =================================================
   FINAL LOCK BLOCK（安全固定ゾーン）
   既存デザインは一切削除していません
   ================================================= */

/* 上段サムネ */
.top-thumbs {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px auto;
}

.small-thumb {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.small-thumb:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* 下段ギャラリー */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 60px auto;
}

.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
}


/* =========================
   SUPER PUNI BUTTON
========================= */

.glass-btn,
.btn {
  position: relative;
  transition: transform 0.18s cubic-bezier(.34,1.8,.64,1),
              box-shadow 0.18s ease,
              filter 0.18s ease;
  box-shadow: 
    0 15px 30px rgba(0,0,0,0.45),
    0 5px 10px rgba(0,0,0,0.35);
}

/* ホバーで浮く */
.glass-btn:hover,
.btn:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.5),
    0 8px 15px rgba(0,0,0,0.4);
}

/* 押した瞬間 ぷに */
.glass-btn:active,
.btn:active {
  transform: translateY(8px) scaleX(0.92) scaleY(0.85);
  box-shadow:
    0 6px 12px rgba(0,0,0,0.6) inset,
    0 3px 6px rgba(0,0,0,0.4);
  filter: brightness(0.85);
}


@media (max-width: 1024px) {

  .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-grid img {
    height: 180px;
  }

}


/* =========================
   GALLERY OVERLAY FIX
========================= */

.gallery-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.98) 100%);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18vh 15vw; /* ← これ追加 */

  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.gallery-overlay img {
  width: 85%;
  max-width: 1200px;
  height: auto;
  border-radius: 28px;

  /* 浮き影 */
  box-shadow:
    0 50px 120px rgba(0,0,0,0.75),
    0 0 60px rgba(255,255,255,0.12);

  /* 外へ自然に溶ける */
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0,0,0,1) 70%,
    rgba(0,0,0,0.85) 80%,
    rgba(0,0,0,0.5) 90%,
    transparent 100%
  );

  mask-image: radial-gradient(
    ellipse at center,
    rgba(0,0,0,1) 70%,
    rgba(0,0,0,0.85) 80%,
    rgba(0,0,0,0.5) 90%,
    transparent 100%
  );
}


  /* 外へ溶けるフェード */
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0,0,0,1) 75%,
    rgba(0,0,0,0.85) 85%,
    rgba(0,0,0,0.4) 95%,
    transparent 100%
  );

  mask-image: radial-gradient(
    ellipse at center,
    rgba(0,0,0,1) 75%,
    rgba(0,0,0,0.85) 85%,
    rgba(0,0,0,0.4) 95%,
    transparent 100%
  );
}
  box-shadow:
    0 50px 120px rgba(0,0,0,0.8),
    0 0 40px rgba(255,215,0,0.25),
    0 0 60px rgba(0,140,255,0.2),
    inset 0 4px 12px rgba(255,255,255,0.4);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 20px;
}

.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }


@media (max-width: 1024px) {

  .gallery-grid {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
  }

}


@media (max-width: 768px) {

  .top-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    position: relative !important;
    margin: 40px auto !important;
  }

  .small-thumb {
    width: 45% !important;
    height: 120px !important;
  }

  .gallery-overlay img {
    width: 95%;
    max-width: none;
    transform: scale(1.03);
  }

}


.zoomable {
  touch-action: manipulation;
  cursor: pointer;
}


.image-wrap {
  position: relative;
  display: inline-block;
}

s

  filter: blur(80px);
  z-index: -1;
  border-radius: 40px;
  pointer-events: none;
}