/* reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: radial-gradient(circle at center, #1b1f3b 0%, #05060f 70%);
  color: #e6e9ff;
  min-height: 100vh;
}

/* main space */
.space {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 40px 20px;
}

/* hero */
.hero {
  text-align: center;
  margin-top: 40px;
}

.hero h1 {
  font-size: 3rem;
  letter-spacing: 0.2em;
}

.subtitle {
  margin-top: 8px;
  font-size: 1rem;
  opacity: 0.7;
}

/* stars (Trapezium image) */
.stars {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 40px 0;
}

.star {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px 4px rgba(180,200,255,0.8);
}

/* trapezium layout */
.star.a { top: 40px;  left: 60px; }
.star.b { top: 60px;  left: 130px; }
.star.c { top: 120px; left: 70px; }
.star.d { top: 140px; left: 140px; }

/* menu */
.menu {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  display: block;
  width: 220px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #e6e9ff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background: rgba(20, 24, 60, 0.6);
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: rgba(40, 60, 120, 0.7);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.card h2 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* footer */
footer {
  margin-top: 40px;
  font-size: 0.8rem;
  opacity: 0.5;
}
/* --- star twinkle animation --- */
@keyframes twinkle {
  0%   { opacity: 0.3; transform: scale(0.9); }
  50%  { opacity: 1;   transform: scale(1.2); }
  100% { opacity: 0.3; transform: scale(0.9); }
}

.star {
  animation: twinkle 6s ease-in-out infinite;
}

/* 星ごとに少しずつタイミングをずらす */
.star.a { animation-delay: 0s; }
.star.b { animation-delay: 1.5s; }
.star.c { animation-delay: 3s; }
.star.d { animation-delay: 4.5s; }


/* ===== shooting star animation ===== */

.shooting-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.shooting-star {
  position: absolute;
  top: -50px;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(200,220,255,1));
  opacity: 0;
  transform: rotate(35deg);
  animation: shooting 12s linear infinite;
}

/* 個体差 */
.shooting-star.s1 { left: 10%;  animation-delay: 2s; }
.shooting-star.s2 { left: 40%;  animation-delay: 6s; }
.shooting-star.s3 { left: 70%;  animation-delay: 9s; }

@keyframes shooting {
  0% {
    opacity: 0;
    transform: translate(0,0) rotate(35deg);
  }
  10% {
    opacity: 1;
  }
  30% {
    opacity: 0;
    transform: translate(600px,600px) rotate(35deg);
  }
  100% {
    opacity: 0;
    transform: translate(600px,600px) rotate(35deg);
  }
}
/* =========================
   TRP COMMON UI
========================= */

a{
  color:#8ea6ff;
}

a:hover{
  color:#b8c6ff;
}

/* content card */

.trp-card{
  background:rgba(20,24,60,0.6);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:12px;
  padding:20px;
  backdrop-filter:blur(4px);
}

/* headings */

h1,h2,h3{
  color:#ffffff;
}
/* MovableType title fix */

.title a{
  color:#ffffff;
}

.title a:hover{
  color:#8ea6ff;
}
/* ============================= */
/* MovableType dark theme fix   */
/* ============================= */

/* 上部ナビ (アバウト / ブログ) */
[role="banner"] [role="navigation"] a{
  color:#cfd6ff;
}

[role="banner"] [role="navigation"] a:hover{
  color:#ffffff;
}

/* 記事の日付 */
#posts ol li time{
  color:#9aa6ff;
}

/* フッターナビ */
footer [role="navigation"] a{
  color:#9aa6ff;
}

/* サイドバー */
.widget h3{
  color:#cfd6ff;
}

.widget a{
  color:#8ea6ff;
}
#posts ol li a{
  transition: all .2s ease;
}

#posts ol li a:hover{
  background: rgba(40,60,120,0.4);
}

/* =========================
   TRP TABLE
========================= */

.trp-table{
  width:100%;
  border-collapse:collapse;
  margin-top:20px;
  font-size:0.95rem;
}

.trp-table th{
  background:rgba(40,60,120,0.6);
  border:1px solid rgba(255,255,255,0.15);
  padding:8px;
  text-align:left;
}

.trp-table td{
  border:1px solid rgba(255,255,255,0.1);
  padding:8px;
}

.trp-table tr:nth-child(even){
  background:rgba(255,255,255,0.04);
}

.trp-table tr:hover{
  background:rgba(255,255,255,0.08);
}

/* ヒート名 */
#heat-name {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* パイロット名（順位含む） */
.race-name {
  font-size: 1.4rem;
  font-weight: bold;
}

/* Node / 周回 */
.race-meta {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* タイム */
.race-time {
  font-size: 1.2rem;
}

/* table全体の余白強化 */
td {
  padding: 15px;
}

