/* ===== 全体基本設定 ===== */
body {
  font-family: "Roboto", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  background-color: #f8f9fb;
  color: #222;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  padding: 0;
}

a {
  color: #005bbb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

:target::before {
  content: "";
  display: block;
  height: 60px; /* 固定ヘッダーの高さ + 余裕 */
  margin-top: -60px;
}


/* ===== 固定ヘッダーとレスポンシブ対応ナビ ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #e6f3ff;
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title a {
  font-weight: bold;
  font-size: 1.2em;
  color: #32354e;
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  align-items: center;  /* ← これが重要！ */
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 40px; /* 任意：ナビ全体の高さ指定 */
}

.main-nav li {
  display: flex;
  align-items: center;
}

.main-nav li a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 8px;
  font-weight: 500;
  font-size: 0.95em;
  color: #2e303b;
  text-decoration: none;
}

.main-nav li a:hover {
  color: #99ccff;
}

.nav-toggle {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
  color: #2e303b;
}

.site-logo {
  height: 40px;
  display: block;
}

/* ===== ボタン風リンク ===== */
/* ===== ナビ内の強調ボタン ===== */
.nav-button {
  display: inline-block;
  padding: 6px 16px;
  font-weight: bold;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95em;
  white-space: nowrap;
}

/* 青背景 × 白文字（ログイン） */
.nav-button--solid {
  background-color: #0c58a8;
  color: white!important;
  border: 2px solid #0c58a8;
}

.nav-button--solid:hover {
  background-color: #093c74;
  color: #ffffff!important;
  border-color: #093c74;
}


/* ===== ヘッダーによる隠れ防止用マージン ===== */
.page {
  margin-top: 70px; /* ヘッダーの高さ分 */
}


/* ===== 全体コンテナ ===== */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 64, 128, 0.05);
  border-radius: 4px;
}

/* ===== トップセクション（ビジュアル） ===== */
.top {
  background: linear-gradient(to bottom right, #004080, #66ccff); /* 紺～水色 */
  color: white;
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2em;
  box-shadow: 0 0 20px rgba(0, 64, 128, 0.3);
  position: relative;
  overflow: hidden;
}

.top::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://jashinology.oujashin.jp/images/top-bg-pattern.png"); /* 薄い背景模様があると映える */
  opacity: 0.25;
  background-size: cover;
  z-index: 0;
}

.title .text-block {
  font-size: 2.5em;
  font-weight: 900;
  line-height: 1.2;
  margin: 0.2em 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.sub-info {
  font-size: 1.1em;
  margin-top: 1em;
  font-weight: bold;
  color: #ffffff;
}

.title,
.sub-info {
  position: relative;
  z-index: 1;
}

/* ===== セクション見出し ===== */
h2 {
  font-size: 1.6em;
  border-left: 6px solid #005bbb;
  padding-left: 0.5em;
  color: #003366;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.3em;
  color: #005bbb;
  margin-top: 2em;
  margin-bottom: 0.5em;
  margin-left: 1em;
}

/* ===== コンテンツボックス ===== */
.content {
  background: #f1f6fb;
  padding: 20px 24px;
  border: 1px solid #dde8f2;
  border-radius: 6px;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 6px rgba(0, 64, 128, 0.04);
}

/* ===== Twitter 埋め込み調整 ===== */
.twitter-timeline {
  width: 100% !important;
  max-width: 600px;
  margin: 0 auto;
  display: block;
}

/* ===== フッター ===== */
footer.footer {
  font-size: 0.9em;
  padding: 24px;
  background: #eaeef5;
  border-top: 2px solid #005bbb;
  margin-top: 3em;
  color: #333;
}

/* ===== レスポンシブ対応 ===== */
@media screen and (max-width: 790px) {
  .page {
    padding: 16px;
  }

  .top {
    padding: 40px 16px;
  }

  .title .text-block {
    font-size: 1.8em;
  }

  .sub-info {
    font-size: 1em;
  }

  h2 {
    font-size: 1.4em;
  }

  .content {
    padding: 16px;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 500%;
    background: #003366;
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    gap: 12px;
    margin: 0;
    font-size: 1.2em
  }

  .main-nav li {
    padding: 0.5em 1em;
  }

  .main-nav li a {
    color: white;
    display: block;
    width: 20em;
    font-weight: bold;
  }

  .nav-toggle {
    display: block;
  }

  .nav-button {
    width: 90%;
    text-align: center;
    margin: 6px auto;
    padding-top: 1em;
  }

}

  .map-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9アスペクト比 */
  }

  .map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }


/* ===== コンテンツがヘッダーに隠れないように調整 ===== */
.page {
  margin-top: 70px;
}