/*----------------------------------------------------
  全体リセット & ベース
----------------------------------------------------*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  font-family: 'ヒラギノ角ゴ ProN', 'メイリオ', sans-serif;
  color: #333;
}

/*----------------------------------------------------
  コンテナ幅の定義
----------------------------------------------------*/
.container {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/*----------------------------------------------------
  ヘッダー & ナビゲーション
----------------------------------------------------*/
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo img {
  height: 40px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover {
  color: #007acc;
}

/* ハンバーガーメニュー */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle .hamburger {
  position: relative;
  width: 24px;
  height: 2px;
  background-color: #333;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #333;
  left: 0;
}
.nav-toggle .hamburger::before {
  top: -8px;
}
.nav-toggle .hamburger::after {
  top: 8px;
}

/*----------------------------------------------------
  ヒーローセクション
----------------------------------------------------*/
.hero {
  position: relative;
  height: 100vh; /* 必要に応じて調整 */
  background-image: url("../images/hero-bg.jpg"); /* ←背景画像のパス */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background-color: #007acc;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}
.btn-primary:hover {
  background-color: #005f99;
}

/* お知らせセクション全体 */
.news-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* 任意の背景色 */
}

/* 見出し */
.news-section .container h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* お知らせリスト */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.news-list li {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
}

.news-list li time {
  display: inline-block;
  width: 140px;
  font-weight: bold;
  color: #555;
}

.news-list li a {
  color: #007acc; /* 任意のリンク色 */
  text-decoration: underline;
}

.news-list li a:hover {
  color: #005a99;
}


/*----------------------------------------------------
  セクション共通スタイル
----------------------------------------------------*/
.section {
  padding: 4rem 0;
}
.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #007acc;
}

/*----------------------------------------------------
  About セクション
----------------------------------------------------*/
.about-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 6px;
  text-align: center;
}
.feature-item h3 {
  margin-bottom: 0.75rem;
  color: #333;
}

/*----------------------------------------------------
  Program セクション
----------------------------------------------------*/
.program-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.program-table th,
.program-table td {
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  text-align: center;
}

.program-table th {
  background-color: #007acc;
  color: #fff;
  font-weight: 500;
}




/* 「出店紹介」セクション全体 */
.booths-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* 背景色はお好みで調整 */
}

/* 見出し中央寄せ */
.booths-section .container h2 {
  text-align: center;
  font-size: 2rem;
  color: #007acc;
  margin-bottom: 40px;
}

/* グリッドレイアウト */
.booths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px; /* カード間の余白 */
}

/* 各カード */
.booth-card {
  background-color: #fff;
  border-radius: 8px;
  max-width: 300px;
  min-height: 250px; 
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  /* カード内の余白 */
  padding-bottom: 16px;
}

/* カード内の画像 */
.booth-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* 部活名 */
.booth-card h3 {
  font-size: 1.25rem;
  margin: 16px 0 8px;
}

/* 説明文 */
.booth-card p {
  font-size: 0.95rem;
  padding: 0 12px;
  color: #555;
}




/*----------------------------------------------------
  協賛企業様 セクション
----------------------------------------------------*/
.協賛企業紹介 .container h2 {
  color: #007acc;
  text-align: center;
  font-size: 2rem;
}
.kyosan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.kyosan-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}

.kyosan-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.kyosan-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}
.kyosan-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

/*----------------------------------------------------
  Gallery セクション
----------------------------------------------------*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 4px;
  transition: transform 0.3s;
}
.gallery-item img:hover {
  transform: scale(1.05);
}

/*----------------------------------------------------
  Contact セクション
----------------------------------------------------*/
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.required {
  color: #cc0000;
}

.contact-form button {
  display: inline-block;
  background-color: #007acc;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.contact-form button:hover {
  background-color: #005f99;
}

/*----------------------------------------------------
  Footer
----------------------------------------------------*/
.site-footer {
  background-color: #f5f5f5;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 0.75rem;
}
.social-links li img {
  width: 24px;
  height: 24px;
}

/*----------------------------------------------------
  レスポンシブ調整
----------------------------------------------------*/
@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 70%;
    height: calc(100% - 60px);
    background-color: rgba(255, 255, 255, 0.98);
    transition: left 0.3s ease-in-out;
    padding-top: 1.5rem;
  }
  .site-nav.open {
    left: 0;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding-left: 1rem;
  }
  .nav-toggle {
    display: block;
  }
}
