body {
  font-family: 'DotGothic16', monospace;
  background: radial-gradient(circle, #000010 30%, #0a0a0a 100%);
  color: #fff;
  margin: 0;
  padding: 0;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  padding: 15px 0;
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 15px #b86eff, 0 0 30px #b86eff, 0 0 50px #b86eff;
  z-index: 1000;
}

.nav-link {
  color: #e0b3ff;
  text-decoration: none;
  font-size: 1.2rem;
  text-shadow: 0 0 5px #d36aff, 0 0 15px #a64dff;
  transition: transform 0.3s, text-shadow 0.3s;
}

.nav-link:hover {
  transform: scale(1.1);
  text-shadow: 0 0 10px #ffaa00, 0 0 20px #ff8800;
}

.form-on-screen {
  max-width: 600px;
  margin: 120px auto;
  background-color: rgba(0, 0, 0, 0.85);
  border: 2px solid #00ffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ccff;
}

.form-on-screen h2 {
  text-align: center;
  text-shadow: 0 0 10px #00ffff;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-top: 15px;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #00ffff;
  border-radius: 5px;
  background-color: #111;
  color: #fff;
  font-family: 'DotGothic16', monospace;
}

button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #00ffff;
  color: #000;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ccff;
  transition: transform 0.3s;
}

button:hover {
  transform: scale(1.05);
}

.back-button {
  text-align: right;
  margin: 20px 40px;
}

.back-button a {
  color: #00ffff;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid #00ffff;
  border-radius: 10px;
  box-shadow: 0 0 10px #00ffff;
  transition: all 0.3s ease;
}

.back-button a:hover {
  background-color: #00ffff;
  color: #000;
}

.footer {
  background-color: rgb(1, 1, 26);
  color: gold;
  padding: 20px;
  border-top: 5px solid gold;
  text-align: center;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.sns-links img {
  width: 100px;
} 
@media (max-width: 768px) {
  header#main-header {
    display: none; /* スマホではヘッダーを非表示 */
  }
}
/* 既存の下に追記 */

/* ハニーポットは完全非表示 */
.hp-field { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* アラート領域 */
.form-alert {
  margin-top: 12px;
  color: #ffcccc;
  text-shadow: 0 0 6px #ff5555;
  font-size: 0.95rem;
}

/* アクセシビリティ: フォーカス強調 */
input:focus, textarea:focus, button:focus, a:focus {
  outline: 2px solid #00ffff;
  outline-offset: 2px;
}

/* フッター右リストを端に固定 */
footer.footer .footer-content{
  position: relative;            /* 子のabsolute基準にする */
}

footer.footer .footer-links{
  position: absolute;
  right: 1vw;                    /* ← 端寄せ。もっと端なら 0 に */
  top: 0;
  text-align: right;
}

footer.footer .footer-links ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.footer .footer-links li{
  margin: 8px 0;
  letter-spacing: .18em;
  white-space: nowrap;           /* 改行させない（任意） */
}

footer.footer .footer-links a{
  color: gold;
  text-decoration: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(14px, 1.3vw, 18px);
}

@media (max-width: 720px){
  footer.footer .footer-links{ right: 12px; }
}
.is-invalid { border-color: #ff6b6b; box-shadow: 0 0 8px rgba(255,107,107,.6); }



/* ===============================
   Header / Global Navigation (HTML優先で統合)
   =============================== */

/* ベース */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: space-around; /* index.html優先 */
  align-items: center;

  padding: 10px 0;              /* index.html優先 */
  background-color: rgba(0, 0, 0, 0.8);
  /* ネオン感はindex.html寄りのマゼンタ */
  box-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff;
  font-family: 'DotGothic16', monospace; /* 共通 */
}

/* リンク（両方の記法に対応） */
header a,
.nav-link {
  color: #fff;                  /* index.html優先（home.cssは淡い紫） */
  text-decoration: none;
  font-size: 1.1rem;            /* index.html優先 */
  transition: color .3s ease, text-shadow .3s ease, transform .3s ease;
  padding: 10px 16px;           /* クリック領域を少し広めに */
}

/* hover */
header a:hover,
.nav-link:hover {
  color: #0ff;                  /* index.html優先のシアン発光 */
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
  transform: translateY(-1px);
}

/* ナビの並び */
nav ul {
  display: flex;
  gap: 20px;                    /* index.html優先 */
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ハンバーガーアイコン（スマホ） */
.menu-icon {
  display: none;                /* PCは非表示 */
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  gap: 5px;
}
.menu-icon div {
  width: 25px;
  height: 3px;
  background-color: #0ff;       /* 既存の発光色に合わせる */
  box-shadow: 0 0 8px #0ff;
  transition: all .3s ease;
}

/* スマホ時の展開メニュー */
@media (max-width: 768px) {
  header {
    justify-content: center;    /* スマホは中央寄せ */
    padding: 10px 0;
  }

  .menu-icon {
    display: flex;              /* スマホで表示 */
    position: absolute;
    right: 16px;
  }

  nav ul {
    display: none;              /* 初期は隠す */
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 60px;                  /* ヘッダー高に応じて調整 */
    left: 0;
    width: 100%;
    padding: 15px 0;
    gap: 12px;
    box-shadow: 0 0 20px #ff00ff;
  }
  nav ul.active {
    display: flex;              /* JSで .active を付与して開閉 */
  }

  header a,
  .nav-link {
    font-size: 1.3rem;
    padding: 12px 0;
    width: 100%;
    text-align: center;
  }
}

/* さらに小さい端末向け（任意） */
@media (max-width: 640px) {
  nav ul {
    top: 56px;
  }
}