@charset "UTF-8";
body {
  font-family: 'Noto Sans', sans-serif;
  color: #333;
}

img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.site-header {
  background-color: #fff;
  width: 100%;
  margin-bottom: 20px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
  box-sizing: border-box;
}

@media (max-width: 390px) {
  .site-header {
    padding: 0.75rem;
  }
}

.site-header .container {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, sans-serif;
}

.site-header .container .logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #333;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  width: 280px;
}

@media (max-width: 390px) {
  .site-header .container .logo {
    width: 180px;
  }
}

.site-header .container .social-links {
  display: flex;
  gap: 1rem;
}

.site-header .container .social-links a {
  position: relative;
  display: flex;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  border-radius: 50%;
  border: 1px solid #ccc;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background-color 0.3s, color 0.3s;
  font-size: 14px;
  overflow: hidden;
}

@media (max-width: 390px) {
  .site-header .container .social-links a {
    width: 28px;
    height: 28px;
  }
}

.site-header .container .social-links a:hover {
  background-color: #0077ff;
  color: #fff;
  border-color: #0077ff;
  cursor: pointer;
}

.carousel-section {
  width: 100%;
  padding: 0;
}

.carousel-section .embla {
  overflow: hidden;
}

.carousel-section .embla__viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-section .embla__container {
  display: flex;
}

.carousel-section .embla__slide {
  flex: 0 0 100%;
  /* 常に1枚表示で横幅100% */
  padding: 0 0.5rem;
}

.carousel-section .embla__slide img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.carousel-section h2 {
  width: -moz-fit-content;
  width: fit-content;
  margin: 20px auto;
  font-size: 24px;
}

@media (max-width: 390px) {
  .carousel-section h2 {
    font-size: 1.2rem;
  }
}

.carousel-section .embla-thumbs {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.carousel-section .embla-thumbs__container {
  display: flex;
  gap: 8px;
}

.carousel-section .embla-thumbs__slide {
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
  outline: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.carousel-section .embla-thumbs__slide.is-selected {
  opacity: 1;
}

.carousel-section .embla-thumbs__slide img {
  display: block;
  width: calc(300 / 1980 * 100vw);
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 4px;
}

.link-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  /* 6分割で柔軟に配置 */
  gap: 12px;
  max-width: 880px;
  margin: 40px auto 0;
}

@media (max-width: 390px) {
  .link-nav {
    padding: 10px 26px;
    text-align: center;
  }
}

/* 1行目（2つ） → 幅を3カラム分ずつ使って均等配置 */
.link-item:nth-child(1) {
  grid-column: 1 / span 3;
  /* 左半分 */
  background-color: #e65496;
}

.link-item:nth-child(1):hover {
  background-color: #f7a0c7;
}

.link-item:nth-child(2) {
  grid-column: 4 / span 3;
  /* 右半分 */
  background-color: #e65496;
}

.link-item:nth-child(2):hover {
  background-color: #f7a0c7;
}

/* 2行目（3つ） → 2カラム分ずつ使って均等配置 */
.link-item:nth-child(3) {
  grid-column: 1 / span 2;
  background-color: #009de6;
}

.link-item:nth-child(3):hover {
  background-color: #ade5ff;
}

.link-item:nth-child(4) {
  grid-column: 3 / span 2;
  background-color: #009de6;
}

.link-item:nth-child(4):hover {
  background-color: #ade5ff;
}

.link-item:nth-child(5) {
  grid-column: 5 / span 2;
  background-color: #009de6;
}

.link-item:nth-child(5):hover {
  background-color: #ade5ff;
}

/* ボタンの見た目 */
.link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  cursor: pointer;
}

.link-item:hover,
.link-item:focus-visible {
  background: #f9f9f9;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.link-item:active {
  transform: translateY(1px);
}

.event-detail {
  padding: 3rem 1rem;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 390px) {
  .event-detail {
    padding: 1.5rem 1rem;
  }
}

.event-detail .announcement {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  text-align: center;
}

@media (max-width: 390px) {
  .event-detail .announcement {
    font-size: 1.5rem;
  }
}

.event-detail .announcement span {
  font-weight: bold;
}

.event-detail h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 390px) {
  .event-detail h2 {
    font-size: 1.5rem;
  }
}

.event-detail h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: #aaa;
  margin: 0.5rem auto 0;
}

.event-detail dl {
  margin-bottom: 2rem;
}

.event-detail dl dt {
  font-weight: bold;
  margin-top: 1.2rem;
}

@media (max-width: 390px) {
  .event-detail dl dt {
    font-size: 16px;
  }
}

.event-detail dl dd {
  line-height: 1.6;
}

@media (max-width: 390px) {
  .event-detail dl dd {
    font-size: 14px;
  }
}

.event-detail .event-rules-link {
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
  margin-top: 2rem;
}

.event-detail .event-rules-link a {
  font-size: 0.95rem;
  color: #007bff;
  text-decoration: none;
}

.event-detail .event-rules-link a:hover {
  text-decoration: underline;
}

.event-detail .btn-form {
  position: relative;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1rem 2rem;
  color: #fff;
  background: #eb6100;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  margin: 40px auto 0;
}

@media (max-width: 390px) {
  .event-detail .btn-form {
    font-size: 1.2rem;
    margin: 20px auto 0;
  }
}

.event-detail .btn-form::after {
  content: "›";
  position: absolute;
  right: 1rem;
  top: 48%;
  transform: translateY(-50%);
  display: block;
}

.access {
  padding: 3rem 1rem;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 390px) {
  .access {
    padding: 1.5rem 1rem;
  }
}

.access h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
  padding: 4px;
}

@media (max-width: 390px) {
  .access h2 {
    font-size: 1.2rem;
  }
}

.access h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: #aaa;
  margin: 0.5rem auto 0;
}

.access .map-container {
  border: 2px solid #6495ed;
  margin: 0 auto 2rem;
  width: 100%;
}

.access .map-container iframe {
  width: 100%;
  height: 450px;
  display: block;
}

.access .access-info {
  text-align: left;
  width: 100%;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.access .access-info dl {
  margin-bottom: 2rem;
}

.access .access-info dl dt {
  font-weight: bold;
  margin-top: 1.2rem;
}

@media (max-width: 390px) {
  .access .access-info dl dt {
    font-size: 16px;
  }
}

.access .access-info dl dd {
  line-height: 1.6;
}

@media (max-width: 390px) {
  .access .access-info dl dd {
    font-size: 14px;
  }
}

.access .btn-form {
  position: relative;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1rem 2rem;
  color: #fff;
  background: #eb6100;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  margin: 40px auto 0;
}

@media (max-width: 390px) {
  .access .btn-form {
    font-size: 1.2rem;
    margin: 20px auto 0;
  }
}

/* モーダル全画面 */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* 非表示状態 */
.modal.hidden {
  display: none;
  /* 必要ならvisibilityやopacityでアニメーションも可能 */
}

/* モーダルコンテンツ全画面 */
.modal-content {
  background: #fff;
  width: 100%;
  height: 100%;
  padding: 3rem 1rem 0;
  overflow-y: auto;
  border-radius: 0;
  /* 全画面なら角丸なしでもOK */
  position: relative;
  box-sizing: border-box;
}

.modal-content h2 {
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
  padding: 4px 8px;
  margin-bottom: 10px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
}

.modal-content h2.red {
  background-color: #e65496;
}

.modal-content h2.blue {
  background-color: #009de6;
}

@media (max-width: 390px) {
  .modal-content h2 {
    top: 5px;
    right: 5px;
    font-size: 20px;
  }
}

.modal-content .embla {
  max-width: 80rem;
  margin: 0 auto 30px;
  --slide-height: 19rem;
  --slide-spacing: 1rem;
  --slide-size: 70%;
  --slide-height-sp: 10rem;
  --slide-spacing-sp: 0.5rem;
  --slide-size-sp: 80%;
}

.modal-content .embla .embla__viewport {
  overflow: hidden;
}

.modal-content .embla .embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
  margin-left: calc(var(--slide-spacing) * -1);
}

@media (max-width: 390px) {
  .modal-content .embla .embla__container {
    margin-left: calc(var(--slide-spacing-sp) * -1);
  }
}

.modal-content .embla .embla__slide {
  transform: translate3d(0, 0, 0);
  flex: 0 0 var(--slide-size);
  min-width: 0;
  padding-left: var(--slide-spacing);
}

@media (max-width: 390px) {
  .modal-content .embla .embla__slide {
    flex: 0 0 var(--slide-size-sp);
    padding-left: var(--slide-spacing-sp);
  }
}

/* クローズボタンを右上に固定（スクロールしても動かない） */
.modal-content {
  overflow-x: hidden;
}

.modal-content .closeTop {
  position: fixed;
  /* fixedに変更 */
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 4rem;
  z-index: 2100;
  /* モーダルより前面 */
}

@media (max-width: 390px) {
  .modal-content .closeTop {
    top: 5px;
    right: 5px;
  }
}

.modal-content .closeBottom {
  display: flex;
  margin: 0 auto;
  padding: 14px 40px;
  background: #fff9ee;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  font-weight: bold;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  cursor: pointer;
}

/* イベントコンテンツの下に40px余白 */
.event {
  margin-bottom: 40px;
}

/* Embla スライダーは必要に応じて */
.embla__viewport {
  overflow: hidden;
  width: 100%;
}

.embla__container {
  display: flex;
}

.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
}

footer {
  padding: 10px 0;
  text-align: center;
}
