/* リセット */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Noto Sans JP", sans-serif;
  padding-top: 60px; /* ヘッダー分の余白だけ確保 */
  color: #000000;   
}
body {
  margin: 0 ;
  padding: 0;
}



/* ===== タイトル ===== */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  background: #000000;
}

.hero-title {
  position: absolute;       /* スライダー上に重ねる */
  top: 0;                   /* 上端に配置 */
  left: 0;
  width: 100%;
  padding: 10px 20px;       /* 上下左右の余白 */
  color: #ffffff;
  font-size: 36px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0); /* 半透明の黒帯 */
  text-align: center;       /* 中央寄せ */
  box-sizing: border-box;
  z-index: 100;              /* スライド画像より前面に */
}

@media (max-width: 768px) {
  .hero {
    height: 50vh; /* スマホ時は帯を薄めに */
  }
}


.hero-title h3 {
  font-size: 4rem;
  color: #fff;
  text-shadow: 0 0 20px orange, 0 0 40px red;
  animation: fire 1.5s infinite alternate;
}

/*タイトル*/
h1, h2 {
  text-align: center;               /* 中央寄せ */
  font-size: 2rem;                  /* フォント大きめ */
  font-weight: bold;
  position: relative;
  margin-bottom: 1.5rem;
}

/* 下線をオレンジで追加 */
h1::after, h2::after {
  content: "";
  display: block;
  width: 50%;                       /* 下線の長さ */
  height: 4px;                      /* 下線の太さ */
  background-color: #FFA733;        /* 明度高め彩度中くらいのオレンジ */
  margin: 0.5rem auto 0;            /* 中央配置 */
  border-radius: 2px;
}

h3{
  text-align: center;
  font-size: 4.3rem;
  color: #ff9e1f;
}

/* ブロック紹介 */ 
.block-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.block-card {
  width: 30%;
  margin: 10px;
  padding: 15px;
  border-radius: 8px;
  text-align: left;
  color: rgb(31, 31, 31);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.block-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* スライド用 */
.block-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  margin-top: 10px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.block-card.active .block-details {
  max-height: 500px; /* 内容より大きめに */
  padding: 15px;
}

.toggle-icon {
  margin-right: auto; /* 左詰め */
  font-weight: bold;
  display: inline-block;
  width: 20px;
}

.block-title {
  flex: 1;
  text-align: center; /* 中央寄せ */
}

/* PC時のサイズ調整 */
@media (min-width: 768px) {
  .block-card {
    width: 90%;
  }
  .block-details{
    text-align: center;
  }
}


/* タイトル部分 */
.block-card h3 {
  display: flex;
  align-items: center;
  justify-content: center; /* タイトル中央寄せ */
  font-size: 1.2rem;
  cursor: pointer;
}

.detail {
  text-align: center;
}


/* 結果テーブル */
#results-table table { width: 100%; border-collapse: collapse; }
#results-table th, td { padding: 10px; text-align: center; border: 1px solid #ccc; }
#results-table tr:nth-child(2) { background-color: #FFD700; }
#results-table tr:nth-child(3) { background-color: #C0C0C0; }
#results-table tr:nth-child(4) { background-color: #CD7F32; }

/* モーダル */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex; justify-content: center; align-items: center;
  z-index: 2000;
}
.modal-content {
  background: white; padding: 20px; border-radius: 8px;
  position: relative; max-width: 90%; max-height: 90%;
}
.modal-close {
  position: absolute; top: 10px; right: 10px;
  cursor: pointer; font-size: 20px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  nav ul li { display: block; margin: 10px 0; }
  .block-card { width: 100%; }
  iframe { width: 100%; height: auto; }
}

/* ハンバーガーメニュー常時表示 */
.menu-toggle {
  font-size: 28px;
  cursor: pointer;
  display: block; /* 常に表示 */
  color: white;
  padding: 10px;
}

/* メニュー初期状態非表示 */
.menu {
  display: none;
  background: #2C3E50;
  padding: 10px;
}
.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu ul li {
  margin: 10px 0;
}
.menu ul li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 8px 0;
}


/* 競技ルールカード */
.rules-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* スマホで3列 */
  gap: 12px;
}

.rule-card {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  margin: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.rule-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}
.rule-details {
  display: none;
  margin-top: 10px;
}

.program-image {
  text-align: center;
  margin: 20px 0;
}

.program-image img {
  max-width: 40%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.rules-caption {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
  text-align: center;
}

.rules-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* スマホで3列 */
  gap: 12px;
}

.rule-card {
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.rule-icon {
  width: 100%;
  aspect-ratio: 1 / 1; /* 正方形にする */
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.rule-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- モーダル --- */
.modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}


.map-container {
  display: flex;
  justify-content: center; /* 横方向中央 */
  align-items: center;     /* 縦方向中央（高さを指定する場合に有効） */
  margin: 20px 0;
}

.map-container img {
  display:flex;
  max-width: 50%;   /* スマホでも収まるように */
  height: auto;     /* アスペクト比を保持 */
  border: 1px solid #ccc; /* オレンジの縁取り（必要なら） */
  border-radius: 8px;       /* 角丸 */
}

.map-description {
  text-align: center;   /* 説明文を中央揃え */
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
}

.map-description-detail {
  text-align: center;   /* 説明文を中央揃え */
  margin-top: 10px;
  font-size: 1.1rem;
  color: #333;
  font-weight:bold;
}

.results-table {
  text-align: center;
}

.instagraminformation {
  text-align: center;
}

/* ギャラリー中央寄せ */
.gallery-button-wrapper {
  text-align: center;
  margin: 20px 0;
}

.gallery-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  background-color: #ff7951; /* 明度高め彩度中くらいのオレンジ */
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.gallery-button:hover {
  background-color: #ff5b25;
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001; /* メニューの上に表示 */
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #333;
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.4s ease;
}

/* ×に変化 */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ナビゲーション（PC用） */
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: 0.3s;
  padding: 6px 10px;
  border-radius: 6px;
}

/* ホバーでオレンジ強調 */
.nav-menu a:hover {
  background: #FF7F27;
  color: white;
}

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex; /* スマホで表示 */
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 15px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .nav-menu.active {
    display: block;
  }
}

.sub-theme{
  max-height: 30px;
  margin-bottom: 1.3rem;

  color: var(--color-base);
  /* display: inline-block; */
  align-items: center;
  gap: 12rem;
  font-size: 5.0rem;

  /* 下線をシアンで太めに */
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.08em;

  /* ネオンっぽい左右ズレ影（必要なら距離を調整） */
  text-shadow: -0.25px 0.25px 0 var(--mag), 0.25px -0.25px 0 var(--cyan);

  /*
    display: flex;
    justify-content: center; /* 横中央 */
}

@keyframes tonext {
  75% {
    left: 0;
  }
  95% {
    left: 100%;
  }
  98% {
    left: 100%;
  }
  99% {
    left: 0;
  }
}
 
@keyframes tostart {
  75% {
    left: 0;
  }
  95% {
    left: -300%;
  }
  98% {
    left: -300%;
  }
  99% {
    left: 0;
  }
}
 
@keyframes snap {
  96% {
    scroll-snap-align: center;
  }
  97% {
    scroll-snap-align: none;
  }
  99% {
    scroll-snap-align: none;
  }
  100% {
    scroll-snap-align: center;
  }
}
 
.carousel {
  margin: 0 auto;
  padding: 0 1.25rem;
  font-family: 'Lato', sans-serif;
}
 
* {
  box-sizing: border-box;
  scrollbar-color: transparent transparent; /* thumb and track color */
  scrollbar-width: 0px;
}
 
*::-webkit-scrollbar {
  width: 0;
}
 
*::-webkit-scrollbar-track {
  background: transparent;
}
 
*::-webkit-scrollbar-thumb {
  background: transparent;
  border: none;
}
 
* {
  -ms-overflow-style: none;
}
 
ol, li {
  list-style: none;
  margin: 0;
  padding: 0;
}
 
.carousel {
  position: relative;
  padding-top: 75%;
  filter: drop-shadow(0 0 10px #0003);
  margin: 0 auto;
  aspect-ratio: 16 / 9; /* 16:9の比率 */
}
 
.carousel__viewport {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  overflow-x: scroll;
  counter-reset: item;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
 
.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  background-color: rgba(255, 153, 153, 0);
  counter-increment: item;
}
 
.carousel__slide:nth-child(even) {
  background-color: rgba(153, 153, 255, 0);
}
 
.carousel__slide:before {
  content: counter(item);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%,-40%,70px);
  color: #fff;
  font-size: 2em;
}
 
.carousel__snapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
}
/*  
@media (hover: hover) {
  .carousel__snapper {
    animation-name: tonext, snap;
    animation-timing-function: ease;
    animation-duration: 4s;
    animation-iteration-count: infinite;
  }
 
  .carousel__slide:last-child .carousel__snapper {
    animation-name: tostart, snap;
  }
}
 
@media (prefers-reduced-motion: reduce) {
  .carousel__snapper {
    animation-name: none;
  }
}
 
.carousel:hover .carousel__snapper,
.carousel:focus-within .carousel__snapper {
  animation-name: none;
} */
 
.carousel__navigation {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
}

.carousel__navigation-list,
.carousel__navigation-item {
  display: inline-block;
}

.carousel__navigation-button {
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  background-color: #333;
  background-clip: content-box;
  border: 0.25rem solid transparent;
  border-radius: 50%;
  font-size: 0;
  transition: transform 0.1s;
  top: 30px;
}

.carousel::before,
.carousel::after,
.carousel__prev,
.carousel__next {
  position: absolute;
  top: 0;
  margin-top: 30%;
  width: 4rem;
  height: 4rem;
  transform: translateY(-50%);
  border-radius: 50%;
  font-size: 0;
  outline: 0;
}
 
.carousel::before,
.carousel__prev {
  left: 0.5rem;
}
 
.carousel::after,
.carousel__next {
  right: 0.5rem;
}
 
.carousel::before,
.carousel::after {
  content: '';
  z-index: 1;
  background-color: #333;
  background-size: 1.5rem 1.5rem;
  background-repeat: no-repeat;
  background-position: center center;
  color: #fff;
  font-size: 2.5rem;
  line-height: 4rem;
  text-align: center;
  pointer-events: none;
}
 
.carousel::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,50 80,100 80,0' fill='%23fff'/%3E%3C/svg%3E");
}
 
.carousel::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='100,50 20,100 20,0' fill='%23fff'/%3E%3C/svg%3E");
}

.carousel__slide img {
  width: 100%;        /* 横幅いっぱいに */
  height: auto;       /* 縦横比を維持 */
  object-fit: cover;  /* スライド枠いっぱいに切り抜き */
  display: block;     /* 下に余白が出ないように */
}

.carousel__slide img {
  width: 100%;        /* 横幅いっぱいに */
  height: auto;       /* 縦横比を維持 */
  object-fit: cover;  /* スライド枠いっぱいに切り抜き */
  display: block;     /* 下に余白が出ないように */
}

.carousel__slide {
  display: flex;
  justify-content: center; /* 横中央 */
  align-items: center;     /* 縦中央 */
}

.carousel__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* 枠に収める */
}

.carousel {
  position: relative;
  width: 80%;        /* 画面幅の8割 */
  margin: 0 auto;    /* 中央寄せ */
  padding-top: 45%;  /* アスペクト比（調整可） */
  filter: drop-shadow(0 0 10px #0003);
  perspective: 100px;
}


/* programモーダル背景 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
}

/* モーダル内の画像 */
.modal-content {
  margin: auto;
  display: block;
  max-width: 50%;
  max-height: 80vh;
  object-fit: contain;
}

/* キャプション */
#caption {
  margin: 10px auto;
  text-align: center;
  color: #fff;
  font-size: 16px;
}

.blocks{
  background-color:#f5f4f0 ;
}



