/* ロゴ */
.logo-container {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0;
  background-color: transparent; /* 背景不要 */
}

.logo-container .logo {
  height: 50px;
  width: auto;
  display: block;
}

/* トップバー */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  height: 60px;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5000;
  padding: 0 20px;
}

/* トップバー：左側（ロゴ＋タイトル） */
.top-bar .left-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar .left-group .page-title {
  font-size: 1rem;
  color: purple;
  font-weight: bold;
}

/* トップバー：右側アイコン */
.top-bar .icon-group {
  display: flex;
  align-items: center;
}

.top-bar .icon-group a,
.top-bar .icon-group .nav-icon {
  color: purple;
  text-decoration: none;
  font-size: 20px;
  margin-left: 15px;
  cursor: pointer;
}

.top-bar .icon-group a:hover,
.top-bar .icon-group .nav-icon:hover {
  color: gray;
}

.top-bar {
  background-color: #000; /* 黒 */
  color: white;
}

/* トップバーの文字・アイコンの色も調整 */
.top-bar .left-group .page-title,
.top-bar .icon-group a,
.top-bar .icon-group .nav-icon {
  color: white;
}

.top-bar .icon-group a:hover,
.top-bar .icon-group .nav-icon:hover {
  color: gray;
}

/* フッターの背景色を黒に変更 */
.footer-banner {
  background-color: #000;
  color: #fff;
}

/* ダイアログ */
.menu-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 3000;
  padding-top: 200px;
}

.menu-dialog.active {
  display: flex;
}

.menu-dialog ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu-dialog li {
  margin: 20px 0;
}

.menu-dialog a {
  color: white;
  font-size: 2rem;
  text-decoration: none;
}

.menu-dialog a:hover {
  text-decoration: underline;
}

/* ホーム背景画像：z-indexと配置を再確認 */
#home {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 75px);
}

#home::before,
#home::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.5s ease-in-out;
  z-index: -1;
  opacity: 0;
}

#home::before {
  z-index: -2;
}

#home::after {
  z-index: -1;
}

/* お知らせセクション */
.news-section {
  background: linear-gradient(to bottom, #001122, #112233); /* 落ち着いたグラデーション */
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.news-container {
  max-width: 800px;
  margin: 0 auto;
}

.news-container h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  border-bottom: 2px solid white;
  display: inline-block;
  padding-bottom: 10px;
}

.news-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  text-align: left;
}

.news-date {
  font-weight: bold;
  color: #aaddff;
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.news-text {
  margin: 0;
  font-size: 1rem;
}

.news-more {
  margin-top: 30px;
  font-style: italic;
  color: #ccc;
}


/* フッター */
.footer-banner {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  font-size: 1rem;
  font-weight: normal;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ダイアログ内ロゴとメニュー配置調整 */
.dialog-inner {
  display: flex;
  flex-direction: column; /* デフォルト：縦長用 */
  align-items: center;
  justify-content: flex-start; /* 上部に配置 */
  height: 100dvh; /* アドレスバーを除いた「実際に見える高さ」に合わせる */
  height: calc(100vh - env(safe-area-inset-bottom)); /* iOSのセーフエリア対応 */
  padding-bottom: env(safe-area-inset-bottom);
  width: 100%;
  padding-top: 100; /* 上部の余白0 */
  padding-bottom: 150px;  /* 下部の余白150 */
}

/* ダイアログ内ロゴ */
.dialog-logo-container {
  margin-bottom: 10px; /* ロゴとメニューの間隔を縮小 */
}

.dialog-logo {
  max-width: 250px; /* ロゴの最大幅を少し小さく調整 */
  height: auto;
}

/* メニュー */
.dialog-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.dialog-menu li {
  margin: 15px 0; /* メニューアイテム間の間隔を増やす */
}

.dialog-menu a {
  color: white;
  font-size: 1.6rem;
  text-decoration: none;
}

.dialog-menu a:hover {
  text-decoration: underline;
}

/* 横長のとき：ロゴ左＋メニュー右 */
@media (min-aspect-ratio: 1/1) {
  .dialog-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .dialog-logo-container {
    margin-bottom: 0;
    margin-right: 30px;
  }

  .dialog-menu {
    text-align: left;
  }
}

/* ===== Hero overlay ===== */
.hero-overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none; /* クリックは背面に通す */
}
.hero-inner{
  text-align: center;
  color: #fff;
  text-shadow: 0 6px 24px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.35);
  max-width: 1100px;
  margin: 0 auto;
  pointer-events: auto; /* リンク等があれば反応させる */
}
.hero-sub{
  font-size: clamp(14px, 2.2vw, 22px);
  letter-spacing: .08em;
  margin: 0 0 .4rem;
  opacity: .9;
}
.hero-title{
  font-size: clamp(36px, 9vw, 96px);
  margin: .1rem 0 .4rem;
  line-height: 1.05;
  font-weight: 800;
}
.hero-date{
  font-size: clamp(14px, 2.6vw, 26px);
  margin: 0 0 1.2rem;
}

/* ===== Countdown ===== */
.countdown{
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 10px;
  justify-items: center;
  margin-inline: auto;
  max-width: 680px;
}
.countdown .unit{
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 90px;
}
.countdown span{
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(24px, 6vw, 44px);
  line-height: 1;
}
.countdown small{
  display: block;
  margin-top: 6px;
  font-size: clamp(11px, 2.2vw, 14px);
  opacity: .9;
  letter-spacing: .12em;
}
.countdown-label{
  margin-top: 10px;
  opacity: .9;
  font-size: clamp(12px, 2.2vw, 14px);
}

/* ヒーローがトップバーの下で全高になるよう調整 */
#home{
  position: relative;
  min-height: calc(100vh - 60px); /* ←あなたのトップバー高さに合わせる */
}

/* モバイルでの余白調整 */
@media (max-width: 480px){
  .countdown{ gap: 8px; }
  .countdown .unit{ min-width: 72px; padding: 8px 10px; }
}