/* ========= Q&A 共通スタイル（index/homeと統一） ========= */

/* ベース（背景・フォント・スクロール挙動） */
html, body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: #ffffff;
  background-color: #000000;
  margin: 0;
  background-image: url(../image/background.png);
  background-attachment: fixed;
  background-size: cover;
  overflow-x: hidden;
}
html { scrollbar-gutter: stable; }
body { overflow-y: auto; }

/* ===============================
   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;
  }
}


/* －－－－ コンテンツ（Q&A フォーム） －－－－ */
.pc-wrapper {
  width: 100%;
  box-sizing: border-box;
  padding: 0 16px;
}

/* 固定ヘッダーに被らないよう上に余白確保 */
.form-on-screen {
  max-width: 680px;
  margin: 120px auto 40px;
  background-color: rgba(0, 0, 0, 0.85);
  border: 2px solid #00ffff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 0 10px #00ffff, 0 0 22px #00ccff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-on-screen h2 {
  text-align: center;
  text-shadow: 0 0 10px #00ffff;
  margin: 6px 0 18px;
  font-family: 'DotGothic16', monospace;
  letter-spacing: 2px;
}

.form-on-screen label {
  margin-top: 12px;
  display: block;
  text-align: left;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
  font-family: 'DotGothic16', monospace;
}

.form-on-screen input,
.form-on-screen textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  background-color: #111;
  border: 1px solid #00ffff;
  border-radius: 8px;
  color: #fff;
  font-family: 'DotGothic16', monospace;
  box-sizing: border-box;
}

.form-on-screen textarea {
  resize: vertical;
  min-height: 120px;
}

.form-on-screen button {
  margin-top: 22px;
  padding: 12px 20px;
  background-color: #00ffff;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ccff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  font-family: 'DotGothic16', monospace;
}
.form-on-screen button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 0 16px #00ffff, 0 0 32px #00ccff;
}

/* サンクスメッセージ */
#thank-you-message {
  text-align: center;
  padding: 40px 24px;
  background-color: rgba(0, 0, 0, 0.9);
  border: 2px solid #0ff;
  border-radius: 12px;
  color: #0ff;
  box-shadow: 0 0 20px #0ff;
  margin-top: 30px;
  font-size: 1.1rem;
  text-shadow: 0 0 5px #0ff;
  font-family: 'DotGothic16', monospace;
}

/* －－－－ TOP に戻る（ページ共通UIと統一） －－－－ */
.back-button {
  text-align: right;
  margin: 20px 24px 0;
}
.back-button a {
  color: #00ffff;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid #00ffff;
  border-radius: 10px;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ccff;
  transition: all 0.25s ease;
  display: inline-block;
  font-family: 'DotGothic16', monospace;
}
.back-button a:hover {
  background-color: #00ffff;
  color: #000;
  transform: translateY(-1px);
}

/* －－－－ フッター（index/home と同じ雰囲気） －－－－ */
.footer {
  background-color: rgb(1, 1, 26);
  color: gold;
  padding: 24px 16px;
  border-top: 5px solid gold;
  text-align: center;
  margin-top: 50px;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 4px 0 16px;
  flex-wrap: wrap;
}
.sns-links img {
  width: 100px;
  height: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.footer-image img { width: 180px; height: auto; }

.footer-links {
  display: flex;
  gap: 48px;
}
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace;
}
.footer-links ul li a {
  color: gold;
  text-decoration: none;
}

/* フッター内の「お問い合わせ」ブロック（index と統一） */
.footer-contact {
  margin-top: 6px;
  text-align: center;
}
.footer-headline {
  font-size: 1.4rem;
  font-family: 'DotGothic16', monospace;
  color: #00ffff;
  text-shadow: 0 0 5px #0ff, 0 0 15px #00ccff;
  margin-bottom: 10px;
}
.event-list-button {
  font-size: 1rem;
  padding: 10px 20px;
  color: #00ffff;
  border: 2px solid #00ffff;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ccff;
  transition: all 0.25s ease;
  display: inline-block;
}
.event-list-button:hover {
  background-color: #00ffff;
  color: #000;
  transform: translateY(-1px);
}

/* －－－－ レスポンシブ調整 －－－－ */
@media (max-width: 1024px) {
  .footer-content {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  /* ヘッダーは隠す運用（index と同じ） */
  header#main-header { display: none; }

  .form-on-screen {
    margin: 20px auto 32px; /* SPはヘッダー非表示なので余白を詰める */
    padding: 18px 16px;
  }

  .sns-links img { width: 72px; }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .footer-image img { width: 120px; }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .footer-headline {
    font-size: 1.1rem;
    line-height: 1.35;
    max-width: 90vw;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
  }
  .footer-contact .event-list-button {
    width: min(320px, 86vw);
    padding: 12px 16px;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .back-button { text-align: center; margin: 12px 0 0; }
  .back-button a { width: min(320px, 86vw); text-align: center; }
}
/* ===============================
   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;
  }
}