body {
  margin: 0;
  font-family: "Hiragino Sans", "Meiryo", sans-serif;
  background: #000814;
  color: #fff;
  /* overflow-x: hidden; */
}


/* ===== レイアウト全体 ===== */
.layout-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== header + hero + about を1画面 ===== */
.header-hero-about {
  display: grid;
  grid-template-rows: auto auto 1fr auto; /* header, hero, about */
  height: 100vh; /* 1画面に収める */
  overflow: hidden; /* about が短いときは収まる */
}

/* ===== hero ===== */
.hero {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 180, 255, 0.5), transparent 70%),
    radial-gradient(circle at 80% 70%, rgba(0, 120, 255, 0.4), transparent 80%),
    radial-gradient(circle at 40% 80%, rgba(0, 100, 200, 0.3), transparent 85%),
    radial-gradient(circle at 60% 40%, rgba(0, 150, 255, 0.25), transparent 85%),
    #000814;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 150px;
  background: linear-gradient(to bottom, 
    rgba(0, 8, 20, 0) 0%,   /* hero 本体は透明 */
    rgba(0, 8, 20, 1) 100%  /* about に向かって暗く */
  );
  pointer-events: none;
  z-index: 2;
}

.hero-content h1 {
  font-size: 56px;
  background: linear-gradient(90deg, #00f0ff, #66a6ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 30px;
}

/* ===== about ===== */
.about {
  padding: 40px 20px;
  text-align: center;
}
.about-titles {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.about h1 { font-size: 30px; margin-bottom: 10px; }
.about h2 { font-size: 22px; margin: 5px 0; }

/* ===== contents ===== */
.poster-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background: url("/material/back/index.png") center/cover no-repeat;
  color: white;
  text-align: center;
  position: relative;
}

@supports (background-image: url("data:image/webp;base64,UklGRiIAAABXRUJQVlA4TAYAAAAvAAAAAAfQ//73v/+BiOh/AAA=")) {
  .poster-section {
    background: url("/material/back/index.webp") center/cover no-repeat;
  }
}


.poster-section::after {
  content: "";
  position: absolute;
  top: 0; left: 0;   /* ← 上からかける */
  width: 100%; height: 150px;
  background: linear-gradient(to bottom,
    rgba(0, 8, 20, 1) 0%,   /* 上が黒い */
    rgba(0, 8, 20, 0) 100%  /* 下に行くほど透明 */
  );
  pointer-events: none;
  z-index: 2;
}


.poster-content {
  position: relative;
  z-index: 1;
}

/* ===== フッター ===== */

.stars {
  position: absolute;
  width: 100%; height: 100%;
  background: transparent;
  overflow: hidden;
  z-index: 0;
}
.twinkle-star {
  position: absolute;
  border-radius: 50%;
  background: white;
  opacity: 0.8;
  animation: twinkle 2s infinite ease-in-out;
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
}
@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
    filter: blur(0px);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
    filter: blur(2px);
  }
}

/* ===== シンボル図形 ===== */
.shapes-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 1;
}
.shape {
  position: absolute;
  opacity: 0.9;
  animation: fall linear forwards;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
}
.shape.circle {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #66a6ff);
}
.shape.square {
  width: 12px; height: 12px;
  background: linear-gradient(135deg, #ffcc00, #ff66cc);
  transform: rotate(45deg);
}
.shape.pentagon {
  width: 40px; 
  height: 40px;
  background: #00f0ff;
  clip-path: polygon(
    50% 0%,   /* 上 */
    100% 38%, /* 右上 */
    82% 100%, /* 右下 */
    18% 100%, /* 左下 */
    0% 38%    /* 左上 */
  );
  filter: drop-shadow(0 0 10px #00f0ff);
}
.shape.star-symbol {
  font-size: 20px;
  color: #fff;
  text-shadow: 0 0 10px #66a6ff, 0 0 20px #ff66cc;
}

/* 図形の動き */
@keyframes fall {
  0% { transform: translate(0, -10%) rotate(0deg); opacity: 1; }
  100% { transform: translate(300px, 110vh) rotate(720deg); opacity: 0; }
}

/* ===== 流れ星 ===== */
.shooting-star {
  position: absolute;
  width: 100px; height: 2px;
  background: linear-gradient(90deg, white, transparent);
  opacity: 0.8;
  transform: rotate(45deg);
  animation: shoot 2s linear forwards;
  filter: drop-shadow(0 0 6px white);
  z-index: 2;
}
@keyframes shoot {
  from { transform: translate(-200px, -200px) rotate(45deg); opacity: 1; }
  to   { transform: translate(800px, 800px) rotate(45deg); opacity: 0; }
}


@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes fadeGlow {
  from { opacity: 0.7; text-shadow: 0 0 5px #66a6ff; }
  to   { opacity: 1; text-shadow: 0 0 20px #00f0ff; }
}

/* 星と流れ星のスタイルは省略せずそのまま残す */
.stars, .shapes-container { position:absolute; width:100%; height:100%; top:0; left:0; }
.twinkle-star { position:absolute; border-radius:50%; background:white; opacity:0.8; animation:twinkle 2s infinite ease-in-out; box-shadow:0 0 6px rgba(255,255,255,0.8);}
@keyframes twinkle {0%,100%{opacity:.3;transform:scale(.8);}50%{opacity:1;transform:scale(1.4);}}
.shooting-star { position:absolute;width:100px;height:2px;background:linear-gradient(90deg,white,transparent);opacity:.8;transform:rotate(45deg);animation:shoot 2s linear forwards;filter:drop-shadow(0 0 6px white);}
@keyframes shoot {from{transform:translate(-200px,-200px) rotate(45deg);opacity:1;}to{transform:translate(800px,800px) rotate(45deg);opacity:0;}}

@font-face {
  font-family: "RondeSquare";
  src: url("/common/font/ronde_square/Ronde-B_square.otf") format("opentype");
}

.ronde {
  font-family: "RondeSquare", sans-serif;
}


topic {
background: #084B82;
color: #fff;
display: flex;
align-items: center;
padding: 8px 20px; 
overflow: hidden;
position: relative;
}

/* ニューステキスト部分（左から右へ流れる） */
.news-ticker { 
flex: 1;
 white-space: nowrap;
  overflow: hidden;
   position: relative;
} .news-ticker span {
 display: inline-block;
  padding-left: 100%;
   /* 最初は右端から登場 */
    animation: ticker 15s linear infinite;
}
@keyframes ticker {
 0% {
  transform: translateX(0%);
  } 100% {
   transform: translateX(-100%); 
   } 
   }


.news-links {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

/* a全体をカードに */
.news-links a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 横並びカード */
.school-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  border: 2px solid #0A62A9;
  transition: transform 0.3s, background 0.3s;
}

.school-card:hover {
  background: #66a6ff;
  transform: translateY(-2px);
}

.school-card img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.school-info h3 {
  margin: 0;
  font-size: 14px;
  color: #084B82;
}
