html {
  background: linear-gradient(135deg, #0077a6 0%, #005781 40%, #004066 100%);
}

/* ヘッダー全体 */
.custom-header {
  background: rgba(0, 87, 129, 0.6); /* ブランドブルーをベースに半透明 */
  backdrop-filter: blur(4px);       /* 背景をほんのりぼかす */
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* フワッと感だけ残す */
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-radius: 0 0 12px 12px; /* 下だけ少し丸み */
}



/* ロゴ横のタイトル */
.custom-header .logo-text {
  color: #ffdd59;
  font-size: 24px;
  font-family: 'Rounded M PLUS 1c', sans-serif;
}


.header-news-bar {
  background: rgba(12, 30, 92, 0.6);
  backdrop-filter: blur(2px);
  color: white;
  padding: 10px 18px;   /* ← 縦横の余白を拡張 */
  border-radius: 30px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;     /* ← テキストの行間に余裕を持たせる */
  display: flex;
  align-items: center;  /* ← 中央寄せ */
  gap: 12px;            /* ← ラベルとの間も確保 */
}

.header-news-bar:hover {
  background: #182d80;
}

@media screen and (max-width: 768px) {
  .header-news-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px;
    gap: 8px;
  }
}


.news-summary-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 0; /* ← 余白が不要ならここもゼロに */
  gap: 8px;        /* ← 必要に応じて調整 */
}

.news-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
}

.news-readmore {
  color: white;
  font-weight: bold;
  font-size: 14px;
  text-decoration: underline;
  white-space: nowrap;
}

.news-readmore:hover {
  text-decoration: none;
  color: white;
}


.news-label {
  background: white;
  color: black !important; /* ← ここが文字色 */
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
  margin-right: 10px;
  margin-left: 0;
}

.news-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
}


/* モーダル本体 */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
}

/* モーダル中身本体 */
.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 90vw;                /* ← 固定widthではなくvwで制限 */
  max-height: 80vh;           /* ← 縦にも制限を */
  overflow-y: auto;           /* ← 中身が長いときスクロール可 */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 閉じるボタン */
.close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #005781;
  cursor: pointer;
}

/* モーダル全体の背景（オーバーレイ） */
#status-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none; /* 開くときに JSで block に */
}


@media screen and (max-width: 600px) {
  .modal-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
  }
}

/* 閉じるボタン */
#status-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  cursor: pointer;
  background: none;
  border: none;
}


/* ボタン（共通） */
.nav-btn {
  background-color: white;
  color: #005781;
  border-radius: 20px;
  padding: 6px 16px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.nav-btn:hover {
  background-color: #e0e0e0;
}

/* 日付メッセージ */
.custom-header span {
  color: white;
  font-size: 14px;
  margin: 0 5px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .custom-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .custom-header > div:last-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media screen and (max-width: 768px) {
  .building-img {
    height: auto;
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .header-news-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media screen and (max-width: 768px) {
  #news-summary {
    font-size: 14px;
    line-height: 1.4;
    padding: 4px 0;
  }

  .header-news-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .news-readmore {
    align-self: flex-end;
    font-size: 13px;
  }
}


.main-section {
  display: flex;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  width: 100%;
}

.image-column {
  flex: 0 1 35%;        /* ← 横幅を画面の35%までに抑える */
  max-width: 480px;     /* ← 必要に応じて狭める */
  min-width: 280px;     /* ← 最小サイズも確保 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== 画像 & 稼働状況パネルを縦方向で中央揃え ===== */
.content-wrapper { align-items: center !important; }
.image-column   { align-self: center; }          /* 念のため単体でも中央 */


@media screen and (max-width: 1024px) and (min-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .image-column,
  .menu-column {
    width: 100%;
    max-width: 600px;
    justify-content: center;
  }

  .building-img {
    max-width: 90%;
    height: auto;
  }
}

.status-title {
  flex-wrap: nowrap;         /* 改行しない */
  flex-shrink: 1;            /* 縮む */
  flex-grow: 1;              /* 伸びる */
  flex-basis: auto;
}

.status-column h2 {
  display: flex;
  align-items: flex-start;     /* 上寄せに変更 */
  justify-content: space-between;
  flex-wrap: wrap;             /* ✅ 折り返し可能に */
  gap: 10px;
  font-size: clamp(14px, 2vw, 20px);
  white-space: normal;         /* ✅ 折り返し許可 */
  word-break: break-word;
}


.status-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0c1e5c;
  padding: 20px;
  border-radius: 20px;
  max-width: 1100px; /* ✅ 広くする */
  margin: 0 auto;
  color: white;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: #0c1e5c;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: bold;
  cursor: pointer;
}

.status-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  color: #0c1e5c;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 100px; /* ← 必要に応じて微調整 */
  justify-content: flex-start;
  font-size: 14px;
  line-height: 1.2;
  vertical-align: middle;
  width: 120px;
}

.status-arrow {
  font-size: 18px;
}

.main-section {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap; /* ← スマホで折り返す用 */
  max-width: 1300px;
  width: 100%;
}

.image-column {
  flex: 0 1 60%;        /* ← 少し広くする */
  max-width: 540px;     /* ← 上限も少し広げる */
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.status-column {
  flex: 1;               /* 右側は自動サイズに */
  max-width: 900px;      /* 上限をつけることで押し出し防止 */
  min-width: 320px;
  overflow-y: auto; /* ←必要なときだけ表示（ちらつき防止） */
  scrollbar-width: none;       /* Firefox対応 */
  -ms-overflow-style: none;    /* IE対応 */
}

.status-legend {
  display: flex;
  gap: 20px;
  margin: 10px 0 20px;
  font-size: 14px;
  font-weight: bold;
}

.status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 〇：稼働中（青） */
.status-legend .active {
  color: #01c75d !important;
}

/* △：一部制限あり（黄） */
.status-legend .warning {
  color: #ffcc00 !important;
}

/* ×：停止中（赤） */
.status-legend .stopped {
  color: #ff4d4d !important;
}


.image-wrapper {
  position: relative;
  display: inline-block;  /* 画像のサイズに合わせる */
}


.building-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ターゲット全体を画像の上に配置 */
.target-wrapper {
  position: absolute;
  top: 80%;     /* ← エントランスの縦位置（画像比率で） */
  left: 50%;  /* ← エントランスの横位置（画像比率で） */
  width: 10vw;  /* ← 画面幅に応じて縮む（最大でも10%） */
  max-width: 120px;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
}

/* SVG スタイル */
.target-svg {
  width: 100%;
  height: 100%;
}

.outer-ring,
.inner-ring,
.crosshair {
  fill: none;
  stroke: #00f2ff;
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px #00f2ff);
  opacity: 0.85;
}

/* 外円：収縮アニメ */
.outer-ring {
  animation: pulse-ring 2s infinite ease-in-out;
  transform-origin: 50% 50%;
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.9; }
  50%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1);   opacity: 0.9; }
}


.outer-ring,
.inner-ring,
.crosshair {
  fill: none;
  stroke: #00f2ff;
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px #00f2ff);
  opacity: 0.85;
}

/* 脈動アニメーション（外円のみ） */
.outer-ring {
  animation: pulse-ring 2s infinite ease-in-out;
  transform-origin: 50% 50%;
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.9; }
  50%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1);   opacity: 0.9; }
}


.target-marker {
  position: absolute;
  top: 75%;     /* ←位置調整：建物入口に合わせて */
  left: 47%;  /* ←位置調整：横も */
  width: 40px;
  height: 40px;
  border: 2px solid #ff4d4d;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff4d4d;
  z-index: 2;
  animation: pulse 1.5s infinite ease-in-out;
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.target-marker::before,
.target-marker::after {
  content: "";
  position: absolute;
  background-color: #ff4d4d;
  z-index: 3;
}

/* 横線 */
.target-marker::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

/* 縦線 */
.target-marker::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

@keyframes pulse {
  0%   { box-shadow: 0 0 5px #ff4d4d; }
  50%  { box-shadow: 0 0 15px #ff4d4d, 0 0 30px #ff4d4d inset; }
  100% { box-shadow: 0 0 5px #ff4d4d; }
}

.target-marker {
  animation: pulse 1.5s infinite ease-in-out;
}

.target-marker.shrink {
  transform: scale(0);
  opacity: 0;
}


/* 💬 ログインテキスト */
.login-wrapper {
  text-align: center;
  margin-top: -50px;
  z-index: 10;    
}

.login-label {
  color: #00ffff;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 0 5px #00ffff;
}

.connect-line {
  position: fixed;  /* ←戻す */
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.connect-line line {
  stroke: #00f2ff;
  stroke-width: 2;
  stroke-dasharray: 4 2;
  filter: drop-shadow(0 0 4px #00f2ff);
}


/* テキストふわっと表示 */
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}


.status-column {
  background: #0c1e5c; /* ← お知らせと同じ背景色に */
  color: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  position: relative; /* ✅ これを追加！ */
  overflow-y: scroll;   /* ← チラつき完全防止 */
  overflow-x: hidden;        /* ← 追加①：カードはみ出し防止 */
  box-sizing: border-box;   /* ← 追加②：padding込みで幅計算 */
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(#ffffff10 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: -1;
  opacity: 0.1;
}

body {
  overflow-x: hidden;
}


body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-color: #005781;
  animation: rippleMove 20s linear infinite;
  z-index: -1;
  opacity: 0.15;
}

@keyframes rippleMove {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 1000px; }
}

/* テーブル相当の内部構造 */

.avd-info-table {
  max-width: 1200px;
  margin: 0 auto;
}

.avd-description {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.avd-info div {
  margin-bottom: 12px;
  text-indent: -1.5em;       /* ●をやや左に出す */
  padding-left: 1.5em;       /* 全体を右に戻す */
}

.avd-label {
  font-weight: bold;
  color: #005781;
  white-space: nowrap;       /* 改行しない */
  margin-right: 0;           /* ← すきま詰める */
}


.avd-info-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

.avd-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 8px;
}

.avd-label-block {
  display: table;
  table-layout: fixed;
  min-width: 220px;  /* ←ここを調整して「：」の位置を揃える */
}


.label-text {
  display: table-cell;
  font-weight: bold;
  color: #0077aa;
  padding-left: 4px;
  white-space: nowrap;
  font-size: 16px;
}

.colon {
  display: table-cell;
  padding-left: 4px;
  font-weight: bold;
  color: #0077aa;
  vertical-align: top;
}

.avd-content {
  flex: 1;
  font-size: 16px;
  line-height: 1.8;
}


/* モバイル対応：ラベル下に回り込み */
@media screen and (max-width: 768px) {
  .avd-row {
    flex-direction: column;
  }
  .avd-label {
    margin-bottom: 4px;
  }
}


.avd-section {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  margin: 40px auto;
  max-width: 1200px;  /* ← 1000pxから広げると余白感UP */
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}


.avd-section .container {
  max-width: 1000px;  /* ← これに変更！ */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.avd-title {
  width: 100%;
  font-size: 22px;
  font-weight: bold;
  color: #005781;
  margin-bottom: 16px;
}

.login-banner {
  background-color: #005781; /* 近未来的な深青 */
  text-align: center;
  padding: 10px 0; /* 元: 60px → 少し狭く */
  position: relative;
  z-index: 1;
  margin-top: -10px;  /* 上との余白を詰める */
  margin-bottom: -10px;  /* 下との余白を詰める */
}

.login-banner img {
  width: 360px;
  max-width: 90%;
  animation: symmetricPulse 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 12px #00f2ff);
  transition: transform 0.3s;
}

.login-caption {
  color: #fff;
  font-size: 18px;
  margin-top: 5px; /* 少し詰める */
  font-weight: bold;
  text-shadow: 0 0 8px #00f2ff;
}

/* アニメーション定義 */
@keyframes symmetricPulse {
  0%, 100% {
    transform: scaleX(1) scaleY(1);
    filter: drop-shadow(0 0 12px #00f2ff);
  }
  50% {
    transform: scaleX(1.08) scaleY(1.08); /* 等比で大きく＝左右対称 */
    filter: drop-shadow(0 0 28px #00e0ff);
  }
}

h3.blue-background {
  background: linear-gradient(to left, #00cfff, #0077b6);
  color: #fff;
  padding: 14px 24px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);

  width: calc(100% - 60px);  /* 30pxずつ左右のpaddingぶん縮める */
  margin: 0 auto 24px;
  box-sizing: border-box;
  scroll-margin-top: 100px;
}

#status-container {
  position: relative;
  max-height: 600px; /* 任意の高さ */
  overflow-y: auto;
}

/* ▼ スクロール可能にするスタイル */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 640px;        /* 10行分（1行 ≒ 64px） */
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: none;    /* Firefox用 */
  max-height: 600px;            /* 必要に応じて高さ指定 */
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ✅ 明示的に4列指定 */
  gap: 12px;
}


/* デフォルト：スマホでは1列 */
@media screen and (max-width: 600px) {
  .status-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* タブレット：2列 */
@media screen and (min-width: 601px) and (max-width: 1024px) {
  .status-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* PCサイズ：3列 */
@media screen and (min-width: 1025px) {
  .status-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


.status-card {
  background: white;
  color: #0c1e5c;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  text-align: center;
  font-weight: bold;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 13px;
  min-width: 0; /* ✅ グリッド調整 */
  width: 100%;
  box-sizing: border-box;
}

.status-card:hover {
  transform: translateY(-4px);
}

.status-name {
  font-size: 13px;                /* 統一サイズ */
  line-height: 1.4;               /* 行間で全体高さ調整 */
  text-align: center;
  white-space: pre-line;         /* ← \n対応 */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;                  /* ← 全体高さ固定 */
  padding: 0 8px;
  background: white;
  color: #0c1e5c;
  border-radius: 6px;
  box-sizing: border-box;
  font-weight: bold;             /* ← 太字で統一 */
  transform: translateY(1px);    /* ← 見た目の中央調整（微差） */
}


.status-card .status-icon {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 6px;
}

.status-card .status-text {
  font-size: 13px;
}

.status-card.active {
  background-color: #007d3a;
  color: white; /* ✅ ここで白文字に */
}

.status-card.warning {
  background-color: #f59e0b;
  color: white;
}

.status-card.stopped {
  background-color: #c8102e;
  color: white;
}

.red-frame-box {
  border: 2px solid red;
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin: 30px auto;
  max-width: 1000px;
  box-shadow: 0 2px 5px rgba(255, 0, 0, 0.1);
}

.red-frame-box .red-title {
  font-weight: bold;
  color: red;
  font-size: 18px;
  margin-bottom: 10px;
}

.red-frame-box p {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 10px;
}

.red-frame-box a {
  color: #0785f2;
  text-decoration: underline;
}

.attention-static-bubble {
  position: relative;
  background: red;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 16px;
  margin-left: 12px;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

/* 吹き出しの三角 */
.attention-static-bubble::after {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-right-color: red;
}

.category {
  margin-bottom: 2em;
}

.category-title {
  position: relative;
  padding-left: 12px;
  margin: 1em 0 0.5em;
  font-size: 16px;
  font-weight: bold;
  color: #005781;
  border-left: 4px solid #005781; /* ← ここが縦線 */
}

.label {
  display: inline-block;
  min-width: 4em; /* ← 詳細：の幅に調整 */
  vertical-align: top;
}

.detail-text {
  display: inline-block;
  white-space: pre-line; /* 改行を反映させる */
}

.refresh-round-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fff;
  color: #005781;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.refresh-round-btn:hover {
  background-color: #ffdd59; /* ロゴの黄色 */
  transform: rotate(90deg) scale(1.1);
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 8px 14px;
  font-size: 14px;
  background-color: #005781;
  color: white;
  border: none;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 999;
  display: block; 
  transition: background 0.2s, transform 0.2s;
}

#back-to-top:hover {
  background-color: #ffdd59;
  color: #005781;
  transform: translateY(-2px);
}

#back-to-top i {
  margin-right: 6px;
}

@media screen and (max-width: 768px) {
  #back-to-top {
    bottom: 100px; /* スマホではさらに高めにする */
  }
}

/* モーダル用の稼働状況スタイル */
.modal-active {
  background-color: #d4edda;
  color: #155724;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
}

.modal-warning {
  background-color: #fff3cd;
  color: #856404;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
}

.modal-stopped {
  background-color: #f8d7da;
  color: #721c24;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
}

body.domain-expand::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, #00f2ff 0%, #000 80%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  animation: expandDomain 1s forwards ease-out;
}

@keyframes expandDomain {
  0% {
    width: 0;
    height: 0;
    opacity: 0.2;
  }
  100% {
    width: 200vw;
    height: 200vw;
    opacity: 1;
  }
}

/* 初期：縦メニュー */
.cyber-side-menu {
  position: fixed;
  top: 120px;
  left: 200px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* 横バーに変身させるクラス */
.cyber-side-menu.fixed-top {
  top: 0;
  left: 0;
  right: 0;
  flex-direction: row;
  justify-content: center;
  padding: 10px 20px;
  background: #005781; /* ブランド背景色 */
  border-bottom: 2px solid white;
  box-shadow: 0 2px 10px #ffdd59aa;
}

/* ボタンの見た目調整（共通） */
.cyber-side-menu a {
  position: relative;
  display: inline-block;
  background: #005781;
  color: white;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 24px;
  border: 2px solid #ffdd59aa;
  border-radius: 12px;
  overflow: hidden;
  transition: background 0.3s ease;
  box-shadow: 0 0 8px #ffdd59aa;
}

/* 光のライン */
.cyber-side-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  pointer-events: none;
  z-index: 0;
}

/* テキストが上に来るように */
.cyber-side-menu a::after {
  content: attr(data-text);
  position: relative;
  z-index: 1;
}

/* シャキーン */
.cyber-side-menu a:hover::before {
  animation: beam-slide 0.6s ease-in-out;
}

@keyframes beam-slide {
  0% {
    left: -100%;
  }
  50% {
    left: 0%;
  }
  100% {
    left: 100%;
  }
}


/* メインセクション調整 */
@media screen and (min-width: 1025px) {
  .main-section {
    padding-left: 220px;
  }
}

@media screen and (max-width: 768px) {
  .main-section {
    padding-top: 60px;
    padding-left: 0;
  }
}

.status-note {
  font-size: 13px;
  color: white;
  text-align: left;
  padding: 6px 12px;
  margin-top: 16px;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 4px #005781;
  background: transparent;
  border: none;
}

.avd-section,
.main-section,
#about-section,
#start-section,
#try-section,
#caution-section,
#trouble-section {
  scroll-margin-top: 120px; /* ← ヘッダー＆横メニューぶん */
}

.hamburger {
  display: none;
  font-size: 28px;
  color: #ffdd59;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 1001;
}

@media screen and (max-width: 768px) {
  .hamburger {
    position: fixed;
    top: 10px;
    right: 16px;
    z-index: 1100;
    font-size: 28px;
    color: #005781;
    background: #ffdd59;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    display: block;
  }

  .cyber-side-menu {
    position: fixed;
    top: 56px;
    right: 16px;
    width: 200px;
    background: #ffdd59;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;

    /* 表示制御 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .cyber-side-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .cyber-side-menu a {
    box-sizing: border-box;  /* ← はみ出し防止 */
    color: #005781;
    background: #ffdd59;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 16px;
    width: 100%;
    text-align: left;
    border-radius: 6px;
  }

  .cyber-side-menu a:hover {
    background: #0c1e5c;
    color: white;
  }
}


@media screen and (max-width: 768px) {
  .image-column {
    width: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .image-wrapper {
    display: flex;
    justify-content: center;
  }

  .building-img {
    display: block;
    max-width: 90%;
    height: auto;
  }

  .login-wrapper {
    text-align: center;
    margin-top: 12px;
  }
}

@media screen and (max-width: 768px) {
  .status-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;  /* ← 中央揃えのキモ！ */
    text-align: center;
  }

  .status-column h2 {
    justify-content: center; /* h2内のボタンなども中央寄せ */
    text-align: center;
  }

  .status-note,
  .status-legend,
  .status-grid {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .status-grid {
    justify-content: center;
  }
}

.faq-sub-content ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.faq-sub-content li {
  position: relative;
  padding-left: 1.6em;  /* ●とテキストの距離 */
  line-height: 1.8;
  margin-bottom: 0.6em;
  word-break: break-word;
}

.faq-sub-content li::before {
  content: "●";
  color: #000;
  position: absolute;
  left: 0;
  top: 0.1em;
}

