/* アスキーコードをutf8に */
@charset "utf-8";

/* パフォーマンス最適化 */
* {
  box-sizing: border-box;
}

/* フォーカス表示の改善 */
:focus {
  outline: 2px solid #007b7f;
  outline-offset: 2px;
}

a:focus {
  outline: 2px solid #007b7f;
  outline-offset: 2px;
}

/* 全ての余白を0に */
* {
  margin: 0;
  padding: 0;
  line-height: 140%;
}

/* ページのスクロール移動をスムーズに */
html {
  scroll-behavior: smooth;
}

:target {
  padding-top: 64px;
}

/* body全体にフォント指定と背景色 */
body {
  width: 100%;
  color: #222831;
  font-family: sans-serif;
  background-color: #eeeeee;
}
h2 {
  font-size: 24px;
  font-weight: bold;
  margin: 4px;
}
h3 {
  font-size: 20px;
}
h4 {
  font-size: 18px;
  margin: 8px;
}
header {
  background-color: #00adb5;
  color: #eeeeee;
}
.header-bar {
  max-width: 960px;
  height: 180px;
  margin: auto;
  display: flex;
}
.logo0 {
  width: 15%;
  margin: auto;
}
.title0 {
  width: 85%;
  margin: auto;
  padding: 8px;
}
/* メインの指定 */
main {
  width: 100%;
}

/* メインのナビゲーションバーを指定 */
nav {
  background-color: #00adb5;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  list-style: none;
}

nav li {
  width: 96px;
  height: 52px;
  text-align: center;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
}

nav a:hover,
nav a:focus {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

nav a:active {
  opacity: 0.5;
}

a p {
  margin-top: 8px;
}
.icon {
  width: 64px;
  margin: 4px 0 4px 52px;
}
#main-visual {
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(135deg, #00adb5 0%, #007b7f 100%);
  position: relative;
  padding: 40px 0;
}
.main-visual-text {
  padding: 64px 32px;
  min-height: 300px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 960px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}
#main-visual p {
  text-align: center;
  color: #007b7f;
  line-height: 200%;
  font-size: 18px;
  margin-bottom: 24px;
}
#main-visual strong {
  font-size: 20px;
  color: #cc0502;
  font-weight: bold;
}
#main-visual h3 {
  text-align: center;
  font-weight: bold;
  margin-top: 16px;
  font-size: 28px;
  color: #cc0502;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
/* VBLFとは */
#main-about {
  max-width: 960px;
  margin: auto;
  height: 800px;
  padding-top: 64px;
  background-color: #e5f2ff;
}
.summary {
  max-width: 900px;
  margin: 16px auto;
}
/* お知らせ */
.news {
  max-width: 720px;
  margin: 32px auto;
  padding: 24px;
  min-height: 200px;
  background-color: white;
  border: 2px solid #00adb5;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.news h3 {
  color: #00adb5;
  border-bottom: 2px solid #00adb5;
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.news li {
  padding: 8px 0;
  border-bottom: 1px dotted #ddd;
}
.news li:last-child {
  border-bottom: none;
}
.news ul {
  max-width: 900px;
  margin: 16px auto;
  padding: 0 16px;
}
/* クラファン */
#main-crowdfunding {
  max-width: 960px;
  margin: auto;
  padding-top: 64px;
  height: 900px;
  background-color: #e5ffe8;
}
#main-crowdfunding ul {
  max-width: 900px;
  margin: 16px auto;
  padding: 0 16px;
}
#main-crowdfunding .image0 {
  margin: auto;
  display: block;
  width: 256px;
}
#main-crowdfunding h4 {
  text-align: center;
}
/* 参加チーム */
#main-participants {
  max-width: 960px;
  margin: auto;
  padding-top: 64px;
  height: 800px;
  background-color: #fff2e5;
}
#main-participants ul {
  max-width: 900px;
  margin: 16px auto;
  padding: 0 16px;
}
.team {
  padding-bottom: 8px;
  width: 480px;
  text-align: center;
}
/* 競技・結果 */
#main-competition {
  max-width: 960px;
  margin: auto;
  padding-top: 64px;
  height: 880px;
  background-color: #e5f2ff;
}
#main-competition h4 {
  margin: 8px 16px;
}
#main-competition ul {
  max-width: 900px;
  margin: 16px 16px;
  padding: 0 16px;
}
#main-competition ol {
  max-width: 900px;
  margin: 16px 16px;
  padding: 0 16px;
}
#main-competition .image1 {
  width: 256px;
  margin-bottom: 16px;
}
.main-flex {
  display: flex;
}
.main-left {
  width: 70%;
}
.main-right {
  width: 30%;
}

/* 開催の様子 */
#main-gallery {
  max-width: 960px;
  margin: auto;
  padding-top: 64px;
  min-height: 1800px;
  background-color: #e5ffe8;
}
#main-gallery h4 {
  margin: 24px 0 12px 0;
  color: #007b7f;
  font-size: 20px;
  padding-left: 16px;
  border-left: 4px solid #007b7f;
}
#main-gallery p {
  margin: 8px 0 20px 0;
  line-height: 1.8;
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* イベントセクション */
.event-section {
  margin: 24px 0;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #007b7f;
}

.event-section h4 {
  margin: 0 0 12px 0;
  color: #007b7f;
  font-size: 18px;
}

.event-section p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

/* フォトギャラリー */
.photo-gallery {
  margin: 40px 0 0 0;
}

.photo-gallery h4 {
  margin: 0 0 20px 0;
  padding-left: 16px;
  border-left: 4px solid #cc0502;
  color: #cc0502;
  font-size: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-item .caption {
  padding: 12px 16px;
  margin: 0;
  font-size: 14px;
  color: #666;
  text-align: center;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}
/* 実行委員会 */
#main-committee {
  width: 100%;
  margin: 0 auto;
  background-color: white;
  height: 520px;
}
.main-committee-text {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}
#main-committee h4 {
  margin: 16px;
}
#main-committee ul {
  max-width: 900px;
  margin: 16px 16px;
  padding: 0 16px;
}
/* フッターの指定 */
footer {
  padding: 4px;
  height: 64px;
  background-color: #00adb5;
  color: #eeeeee;
  text-align: center;
}
/* プライバシーポリシー */
#privacypolicy {
  max-width: 960px;
  margin: 32px auto;
  background-color: #eeeeee;
}

/* スマホ対応 960 */
@media screen and (max-width: 960px) {
  .header-bar {
    height: 140px;
  }
  .logo0 {
    width: 16%;
    margin-top: 8px;
    margin-left: 4px;
  }
  .title0 {
    width: 80%;
    margin-top: 4px;
  }
  nav li {
    width: 90px;
    height: 36px;
  }
  nav a {
    font-size: 14px;
  }
  #main-visual video {
    width: 320px;
    height: auto;
    aspect-ratio: 16/9;
  }
  .main-visual-text {
    min-height: 250px;
    padding: 40px 24px;
    margin: 20px;
  }
  #main-visual p {
    font-size: 16px;
  }
  #main-visual h3 {
    font-size: 24px;
  }
  #main-visual p {
    font-size: 14px;
    line-height: 200%;
  }
  #main-visual strong {
    font-size: 16px;
  }
  #main-visual h3 {
    margin-top: 32px;
    font-size: 20px;
  }
  /* VBLFとは */
  #main-about {
    max-width: 100%;
    min-height: 600px;
    padding: 80px 16px 40px 16px;
  }
  .summary {
    max-width: 90%;
  }
  /* お知らせ */
  .news {
    max-width: 90%;
    min-height: 300px;
    padding: 20px;
  }
  .news ul {
    max-width: 100%;
  }
  /* クラファン */
  #main-crowdfunding {
    max-width: 100%;
    padding-top: 80px;
    height: 1220px;
  }
  /* 参加チーム */
  #main-participants {
    max-width: 100%;
    padding-top: 80px;
    height: 860px;
  }
  .team {
    padding-bottom: 8px;
    width: 100%;
    text-align: left;
  }
  /* 競技結果 */
  #main-competition {
    max-width: 100%;
    padding-top: 80px;
    height: 1000px;
  }
  /* 開催の様子 */
  #main-gallery {
    max-width: 100%;
    padding: 80px 16px 40px 16px;
    min-height: 900px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-item img {
    height: 200px;
  }

  .event-section {
    padding: 16px;
    margin: 16px 0;
  }
  /* 実行委員会 */
  #main-committee {
    height: 720px;
  }
  .main-flex {
    display: block;
  }
  .main-left {
    width: 100%;
  }
  .main-right {
    width: 100%;
  }
}

/* スマホ対応 420 */
@media screen and (max-width: 420px) {
  .header-bar {
    display: block;
    text-align: center;
    height: 220px;
  }
  .logo0 {
    width: 25%;
    margin-top: 8px;
  }
  .title0 {
    width: 85%;
  }
  nav li {
    width: 86px;
    height: 36px;
  }
  nav a {
    font-size: 14px;
  }
  .main-visual-text {
    min-height: 280px;
    padding: 32px 16px;
    margin: 16px;
  }
  #main-visual p {
    font-size: 14px;
    line-height: 180%;
  }
  #main-visual h3 {
    font-size: 20px;
    margin-top: 20px;
  }
  #main-visual strong {
    font-size: 16px;
  }

  .event-section {
    padding: 16px;
    margin: 16px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-item img {
    height: 180px;
  }

  .gallery-item .caption {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* 開催の様子 - スマホ */
  #main-gallery {
    min-height: 1100px;
  }
}
