/* ==========================================================================
   Foundation
   ========================================================================== */

/* Base
   ========================================================================== */
:root {
  /* カラー設定 */
  --color-primary: #0065b3;
  --color-primary-rgb: 0, 101, 179;
  --color-secondary: #ff7e00;
  --color-accent: #00b7a8;
  --color-dark: #333333;
  --color-text: #333333;
  --color-gray: #666666;
  --color-light-gray: #efefef;
  --color-white: #ffffff;
  --color-background: #ffffff;

  /* フォントサイズ */
  font-size: 62.5%;
  /* 1rem = 10px */
}

body {
  font-size: 1.6rem;
}

#header-placeholder {
  z-index: 1000;
  position: relative;
}

#footer-placeholder {
  z-index: 998;
  position: relative;
}

/* ==========================================================================
     Media Queries
     ========================================================================== */

@media (max-width: 1200px) {
  .p-events__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-venues__container,
  .p-contact__container,
  .p-organizers__container {
    grid-template-columns: 1fr;
  }

  .p-about__container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .p-about__image {
    order: -1;
  }

  .p-about__vision-content {
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  }

  .p-participation__container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "volunteer"
      "projects"
      "downloads";
  }

  .l-footer__main {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
  }

  .l-footer__info {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .l-footer__nav {
    justify-content: center;
  }
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: font-size 0.3s ease;
}

/* テキストサイズ変更機能のためのクラス */

/* 小 -small */
.font-size-small {
  font-size: 1.4rem;
}

.font-size-small .c-gnav__list li a {
  font-size: 1.4rem;
}

.font-size-small .l-footer__nav-title {
  font-size: 1.8rem;
}

.font-size-small .l-footer__nav-link {
  font-size: 1.2rem;
}

.font-size-small .l-footer__external-link {
  font-size: 1.2rem;
}

/* ヒーローセクション関連 */
.font-size-small .p-hero__title {
  font-size: 4.8rem;
}

.font-size-small .p-hero__event-text {
  font-size: 1.6rem;
}

/* セクションタイトル関連 */
.font-size-small .c-section-title {
  font-size: 2.4rem;
}

.font-size-small .c-section-title::before {
  font-size: 1.2rem;
}

/* 段落・テキスト関連 */
.font-size-small p,
.font-size-small li,
.font-size-small .p-about__text p,
.font-size-small .p-events__description,
.font-size-small .p-participation__text,
.font-size-small .p-about__vision-text {
  font-size: 1.3rem;
}

/* 見出し関連 */
.font-size-small h1 {
  font-size: 3.2rem;
}

.font-size-small h2 {
  font-size: 2.4rem;
}

.font-size-small h3 {
  font-size: 2rem;
}

.font-size-small h4 {
  font-size: 1.6rem;
}

/* ニュース関連 */
.font-size-small .p-news__tab-btn,
.font-size-small .p-news__title {
  font-size: 1.3rem;
}

.font-size-small .p-news__date {
  font-size: 1.2rem;
}

.font-size-small .p-news__category {
  font-size: 1.1rem;
}

/* イベント関連 */
.font-size-small .p-events__tab-btn {
  font-size: 1.3rem;
}

.font-size-small .p-events__title {
  font-size: 2rem;
}

/* 中 -medium */
.font-size-medium {
  font-size: 1.6rem;
}

.font-size-medium .c-gnav__list li a {
  font-size: 1.6rem;
}

.font-size-medium .l-footer__external-link {
  font-size: 1.4rem;
}

.font-size-medium .l-footer__nav-title {
  font-size: 2.1rem;
}

.font-size-medium .l-footer__nav-link {
  font-size: 1.4rem;
}

/* ヒーローセクション関連 */
.font-size-medium .p-hero__title {
  font-size: 6rem;
}

.font-size-medium .p-hero__event-text {
  font-size: 2rem;
}

/* セクションタイトル関連 */
.font-size-medium .c-section-title {
  font-size: 3.2rem;
}

.font-size-medium .c-section-title::before {
  font-size: 1.6rem;
}

/* 段落・テキスト関連 */
.font-size-medium p,
.font-size-medium li,
.font-size-medium .p-about__text p,
.font-size-medium .p-events__description,
.font-size-medium .p-participation__text {
  font-size: 1.6rem;
}

.font-size-medium .p-about__vision-text {
  font-size: 1.4rem;
}

/* 見出し関連 */
.font-size-medium h1 {
  font-size: 3.6rem;
}

.font-size-medium h2 {
  font-size: 2.8rem;
}

.font-size-medium h3 {
  font-size: 1.8rem;
}

.font-size-medium h4 {
  font-size: 1.8rem;
}

/* ニュース関連 */
.font-size-medium .p-news__tab-btn,
.font-size-medium .p-news__title {
  font-size: 1.5rem;
}

.font-size-medium .p-news__date {
  font-size: 1.4rem;
}

.font-size-medium .p-news__category {
  font-size: 1.2rem;
}

/* イベント関連 */
.font-size-medium .p-events__tab-btn {
  font-size: 1.6rem;
}

.font-size-medium .p-events__title {
  font-size: 2.2rem;
}

/* 大 -large */
.font-size-large {
  font-size: 1.8rem;
}

.font-size-large .c-gnav__list li a {
  font-size: 1.8rem;
}

.font-size-large .l-footer__nav-title {
  font-size: 2.4rem;
}

.font-size-large .l-footer__nav-link {
  font-size: 1.6rem;
}

.font-size-large .l-footer__external-link {
  font-size: 1.6rem;
}

/* ヒーローセクション関連 */
.font-size-large .p-hero__title {
  font-size: 7.2rem;
}

.font-size-large .p-hero__event-text {
  font-size: 2.4rem;
}

/* セクションタイトル関連 */
.font-size-large .c-section-title {
  font-size: 4rem;
}

.font-size-large .c-section-title::before {
  font-size: 2rem;
}

/* 段落・テキスト関連 */
.font-size-large p,
.font-size-large li,
.font-size-large .p-about__text p,
.font-size-large .p-events__description,
.font-size-large .p-participation__text {
  font-size: 1.8rem;
}

.font-size-large .p-about__vision-text {
  font-size: 1.6rem;
}

/* 見出し関連 */
.font-size-large h1 {
  font-size: 4rem;
}

.font-size-large h2 {
  font-size: 3.2rem;
}

.font-size-large h3 {
  font-size: 2.6rem;
}

.font-size-large h4 {
  font-size: 2.2rem;
}

/* ニュース関連 */
.font-size-large .p-news__tab-btn,
.font-size-large .p-news__title {
  font-size: 1.7rem;
}

.font-size-large .p-news__date {
  font-size: 1.6rem;
}

.font-size-large .p-news__category {
  font-size: 1.4rem;
}

/* イベント関連 */
.font-size-large .p-events__tab-btn {
  font-size: 1.8rem;
}

.font-size-large .p-events__title {
  font-size: 2.4rem;
}

/* ==========================================================================
     Layout
     ========================================================================== */

.l-container {
  width: 92%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media screen and (max-width: 767px) {
  .l-container {
    padding: 0;
  }
}

.l-main {
  margin-top: 11rem;
  padding-top: 8rem;
  /* ヘッダーの高さ分 */
}

/* Header
     ========================================================================== */
/* ヘッダー関連の修正 */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 11rem;
  /* 高さを増やして二段表示に対応 */
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: transform 0.3s ease;
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 2rem;
  max-width: 1480px;
  margin: 0 auto;
}

.l-header__logo {
  flex-shrink: 0;
  margin-right: 3rem;
}

.l-header__right {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.l-header__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.l-header__bottom {
  display: flex;
  justify-content: flex-end;
}

.l-header__sns {
  display: flex;
  gap: 1.2rem;
  margin-right: 2rem;
}

.l-header__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

.l-header__sns-link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* スマホメニューでのSNS見出し - モダンデザイン */
.l-header__sp-sns-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.l-header__sp-sns-heading {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 1.2rem;
  position: relative;
  text-align: center;
  letter-spacing: 0.05em;
}

/* 下線スタイル - サイトのアクセントカラーを使用 */
.l-header__sp-sns-heading::after {
  content: "";
  position: absolute;
  bottom: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-secondary),
    var(--color-accent)
  );
  border-radius: 1px;
}

.l-header__sp-sns {
  display: flex;
  gap: 2rem;
  margin-top: 0.8rem;
}

@media (max-width: 767px) {
  .l-header__sp-top {
    display: flex;
    justify-content: center;
    padding: 2rem 0 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* 文字サイズ変更に対応 */
.font-size-small .l-header__sp-sns-heading {
  font-size: 1.2rem;
}

.font-size-large .l-header__sp-sns-heading {
  font-size: 1.6rem;
}

/* スマホ表示用の調整 */
@media (max-width: 767px) {
  .l-header {
    height: 6rem;
    /* スマホでは高さを縮小 */
  }

  .l-header__right {
    display: none;
    /* PC用のヘッダー右側部分を非表示に */
  }

  .c-hamburger {
    display: block;
    /* ハンバーガーメニューを表示 */
  }

  .l-header__sp-menu {
    top: 6rem;
    /* スマホヘッダーの高さに合わせる */
    height: calc(100vh - 6rem);
  }

  .l-header__sp-top {
    display: flex;
    justify-content: center;
    padding: 3.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .l-header__sp-sns {
    display: flex;
    gap: 2rem;
  }

  .l-header__sp-menu .l-header__sns-link {
    width: 5.5rem;
    height: 5.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
  }

  .l-header__sp-menu .l-header__sns-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
  }

  .l-main {
    margin-top: 6rem;
    /* スマホヘッダーの高さに合わせて調整 */
    padding-top: 0;
  }
}

/* PC表示でのフォントサイズ調整対応 */
@media (min-width: 768px) {
  .c-gnav__list li {
    margin: 0 1rem;
    /* アイテム間の間隔を少し狭める */
  }

  .c-gnav__list li a {
    font-size: 1.5rem;
    /* フォントサイズを少し小さく */
    padding: 0.8rem 0;
  }

  .c-font-size-changer__btn {
    padding: 0.4rem 0.8rem;
    /* ボタンサイズを少し小さく */
  }
}

/* Footer
     ========================================================================== */
.l-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  position: relative;
}

.l-footer__inner {
  padding: 6rem 2rem 3rem;
  max-width: 1480px;
  margin: 0 auto;
}

@media screen and (max-width: 767px) {
  .l-footer__inner {
    padding: 3rem 1rem;
  }
}

.l-footer__main {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.l-footer__info {
  flex-shrink: 0;
  max-width: 41rem;
}

.l-footer__logo {
  margin-bottom: 2rem;
}

.l-footer__logo img {
  width: 100%;
  height: auto;
}

.l-footer__address,
.l-footer__tel {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.l-footer__nav {
  display: flex;
  justify-content: space-around;
  gap: 4rem;
  width: 50%;
}

@media screen and (max-width: 767px) {
  .l-footer__nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .l-footer__nav-block {
    width: calc(50% - 2rem);
  }
}

.l-footer__nav-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.l-footer__nav-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  background-color: var(--color-white);
}

.l-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.l-footer__nav-link {
  font-size: 1.4rem;
  transition: opacity 0.3s;
}

@media (min-width: 768px) {
  .l-footer__nav-link:hover {
    opacity: 0.7;
  }
}

.l-footer__links {
  display: flex;
  justify-content: right;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

@media screen and (max-width: 767px) {
  .l-footer__links {
    flex-direction: column;
  }
}

.l-footer__sns {
  display: flex;
  gap: 1.5rem;
}

.l-footer__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s;
}

@media (min-width: 768px) {
  .l-footer__sns-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
}

.l-footer__external {
  display: flex;
  gap: 2rem;
}

@media screen and (max-width: 767px) {
  .l-footer__external {
    margin-top: 1.5rem;
  }
}

.l-footer__external-link {
  font-size: 1.4rem;
  font-weight: 500;
  transition: opacity 0.3s;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .l-footer__external-link:hover {
    opacity: 0.7;
  }
}

.l-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.l-footer__policy-link {
  font-size: 1.4rem;
  text-decoration: underline;
  transition: opacity 0.3s;
}

@media (min-width: 768px) {
  .l-footer__policy-link:hover {
    opacity: 0.7;
  }
}

.l-footer__copyright {
  font-size: 1.2rem !important;
  opacity: 0.7;
}

.l-footer__pagetop {
  position: fixed;
  right: 3rem;
  bottom: 3rem;
  z-index: 1000;
}

/* ==========================================================================
     Object
     ========================================================================== */

/* Component
     ========================================================================== */

/* Logo */
.c-logo {
  display: block;
  width: 26rem;
  transition: opacity 0.3s;
}

@media (min-width: 768px) {
  .c-logo:hover {
    opacity: 0.8;
  }
}

.c-logo img {
  width: 100%;
  height: auto;
}

/* Global Navigation */
.c-gnav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.c-gnav__list li {
  margin: 0 1.5rem;
}

.c-gnav__list li a {
  position: relative;
  display: block;
  padding: 1rem 0;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-dark);
  transition: color 0.3s;
}

.c-gnav__list li a::after {
  content: "";
  position: absolute;
  bottom: 0.6rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s;
}

@media (min-width: 768px) {
  .c-gnav__list li a:hover {
    color: var(--color-primary);
  }
}

@media (min-width: 768px) {
  .c-gnav__list li a:hover::after {
    width: 100%;
  }
}

.c-gnav__list li a.is-active::after {
  width: 100%;
}

/* SP Navigation */
.c-sp-nav {
  padding: 2rem;
}

.c-sp-nav__list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.c-sp-nav__list li a {
  display: block;
  padding: 1.5rem 0;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-white);
  transition: opacity 0.3s;
}

@media (min-width: 768px) {
  .c-sp-nav__list li a:hover {
    opacity: 0.8;
  }
}

/* Hamburger Button */
.c-hamburger {
  position: relative;
  width: 3rem;
  height: 2.4rem;
  background: transparent;
  border: none;
  padding: 0;
  display: none;
  cursor: pointer;
  z-index: 100;
}

.c-hamburger__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.c-hamburger__line:nth-child(1) {
  top: 0;
}

.c-hamburger__line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.c-hamburger__line:nth-child(3) {
  bottom: 0;
}

.c-hamburger.is-active .c-hamburger__line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.c-hamburger.is-active .c-hamburger__line:nth-child(2) {
  opacity: 0;
}

.c-hamburger.is-active .c-hamburger__line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Font Size Changer */
.c-font-size-changer {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.c-font-size-changer__label {
  font-size: 1.2rem;
  margin-right: 1rem;
}

.c-font-size-changer__btn {
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin: 0 2px;
}

@media (min-width: 768px) {
  .c-font-size-changer__btn:hover {
    background-color: rgba(var(--color-primary-rgb), 0.1);
  }
}

.c-font-size-changer__btn.is-active {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
}

/* Section Title */
.c-section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 4rem;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.3;
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: var(--color-primary);
}

.c-section-title::before {
  content: attr(data-en);
  position: absolute;
  top: 0;
  left: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
  color: var(--color-secondary);
  opacity: 0.7;
}

.c-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6rem;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

/* Button Component */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  border-radius: 5rem;
  font-size: 1.5rem;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.c-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s;
  z-index: -1;
}

@media (min-width: 768px) {
  .c-btn:hover::before {
    transform: translateX(0);
  }
}

.c-btn--map {
  background-color: transparent;
  color: var(--color-primary);
  padding: 0.8rem 1.5rem;
  font-size: 1.4rem;
}

@media (min-width: 768px) {
  .c-btn--map:hover {
    text-decoration: underline;
  }
}

.c-btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

@media (min-width: 768px) {
  .c-btn--primary:hover {
    background-color: #005394;
    /* Darker shade of primary */
  }
}

.c-btn--outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .c-btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
  }
}

.c-btn--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

@media (min-width: 768px) {
  .c-btn--accent:hover {
    background-color: #e63d00;
    /* 少し暗いアクセントカラー */
  }
}

.c-btn__icon {
  margin-right: 0.8rem;
  display: flex;
  align-items: center;
}

.c-btn__icon-after {
  margin-left: 0.8rem;
  display: flex;
  align-items: center;
}

/* Page Top Button */
.c-pagetop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background-color: var(--color-white);
  color: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, background-color 0.3s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.c-pagetop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .c-pagetop:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-5px);
  }
}

/* Project
     ========================================================================== */

/* Hero Section */
.p-hero {
  position: relative;
  margin-top: -8rem;
  width: 100%;
  height: auto;
}

.p-hero__bg-wrapper {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.p-hero__bg {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-hero__bg picture {
  width: 100%;
  height: 100%;
  display: block;
}

.p-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media screen and (max-width: 1200px) {
  .p-hero {
    height: 60vh;
  }
}

@media screen and (max-width: 767px) {
  .p-hero {
    height: auto;
    min-height: 300px;
    margin-top: 0;
  }
}

.p-hero__content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: 4rem 0;
  max-width: 60rem;
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.p-hero__title {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.p-hero__title-line {
  display: block;
  overflow: hidden;
}

.p-hero__title-line:nth-child(1) {
  animation: slideInUp 0.8s 0.2s both;
}

.p-hero__title-line:nth-child(2) {
  animation: slideInUp 0.8s 0.4s both;
}

.p-hero__title-line:nth-child(3) {
  animation: slideInUp 0.8s 0.6s both;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.p-hero__event-name {
  margin-top: 3rem;
  padding: 1.5rem 3rem;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 5px;
  animation: fadeIn 0.8s 0.8s both;
}

.p-hero__event-text {
  font-size: 2rem;
  font-weight: 500;
}

/* Countdown Section */
.p-countdown {
  padding: 8rem 0;
  background-color: var(--color-light-gray);
  position: relative;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .p-countdown {
    padding: 6rem 0;
  }
}

.p-countdown::before {
  content: "";
  position: absolute;
  top: -10rem;
  right: -10rem;
  width: 30rem;
  height: 30rem;
  background-color: rgba(0, 104, 183, 0.05);
  border-radius: 50%;
}

.p-countdown::after {
  content: "";
  position: absolute;
  bottom: -5rem;
  left: -5rem;
  width: 15rem;
  height: 15rem;
  background-color: rgba(0, 104, 183, 0.05);
  border-radius: 50%;
}

.p-countdown__container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 767px) {
  .p-countdown__container {
    flex-direction: column;
  }
}

.p-countdown__item {
  flex: 1;
  background-color: var(--color-white);
  border-radius: 1rem;
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

@media (min-width: 768px) {
  .p-countdown__item:hover {
    transform: translateY(-5px);
  }
}

.p-countdown__title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.p-countdown__title::after {
  content: "";
  position: absolute;
  bottom: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 1.5px;
}

.p-countdown__timer {
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 767px) {
  .p-countdown__timer {
    gap: 0;
  }
}

.p-countdown__number {
  display: flex;
  /* flex-direction: column; */
  align-items: center;
}

.p-countdown__number-days {
  font-size: 5.6rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  -webkit-background-clip: text;
  color: transparent;
  display: block;
  padding: 0.5rem;
  line-height: 1;
  min-width: 7rem;
  text-align: center;
  transition: all 0.3s ease;
}

@media screen and (max-width: 767px) {
  .p-countdown__number-days {
    font-size: 4.5rem;
  }
}

.p-countdown__label {
  font-size: 2.6rem;
  color: var(--color-gray);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.p-countdown__separator {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.5;
  align-self: flex-start;
  line-height: 1;
  margin-top: 0.5rem;
}

/* Events Section */
.p-events {
  padding: 8rem 0;
  background-color: var(--color-light-gray);
  position: relative;
}

@media screen and (max-width: 767px) {
  .p-events {
    padding: 6rem 0;
  }
}

.p-events__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media screen and (max-width: 767px) {
  .p-events__container {
    display: flex;
    flex-direction: column;
  }
}

.p-events__item {
  position: relative;
  background-color: var(--color-white);
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

@media (min-width: 768px) {
  .p-events__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
}

.p-events__image {
  position: relative;
  overflow: hidden;
  height: 20rem;
}

.p-events__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

@media (min-width: 768px) {
  .p-events__item:hover .p-events__image img {
    transform: scale(1.05);
  }
}

.p-events__icon {
  position: absolute;
  bottom: -2rem;
  right: 2rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.p-events__content {
  padding: 3rem 2rem 2rem;
}

.p-events__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.p-events__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 1.5px;
}

.p-events__description {
  font-size: 1.5rem;
  color: var(--color-gray);
  line-height: 1.6;
}

/* Events Tabs */
.p-events__tabs {
  margin-top: 2rem;
}

.p-events__tab-btns {
  display: flex;
  background-color: #f9f9f9;
  border-radius: 1rem;
  padding: 0.5rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 767px) {
  .p-events__tab-btns {
    flex-direction: column;
  }
}

.p-events__tab-btn {
  flex: 1;
  padding: 1.2rem 1.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-gray);
  background-color: transparent;
  border-radius: 0.5rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.p-events__tab-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

@media (min-width: 768px) {
  .p-events__tab-btn:hover {
    color: var(--color-primary);
  }
}

.p-events__tab-btn.is-active {
  color: var(--color-white);
}

.p-events__tab-btn.is-active::before {
  opacity: 1;
}

.p-events__tab-icon {
  margin-right: 0.8rem;
  display: flex;
  align-items: center;
}

.p-events__tab-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.p-events__tab-content.is-active {
  display: block;
}

/* Venues Section */
.p-venues {
  padding: 8rem 0;
  background-color: var(--color-white);
  position: relative;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .p-venues {
    padding: 6rem 0;
  }
}

.p-venues::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80rem;
  height: 80rem;
  background: radial-gradient(
    circle,
    rgba(0, 104, 183, 0.03) 0%,
    rgba(0, 104, 183, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.p-venues__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

/* モバイル対応 */
@media screen and (max-width: 1200px) {
  .p-venues__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .p-venues__container {
    display: flex;
    flex-direction: column;
  }
}

.p-venues__item {
  background-color: var(--color-white);
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

@media (min-width: 768px) {
  .p-venues__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
}

.p-venues__image {
  position: relative;
  overflow: hidden;
  height: 20rem;
}

.p-venues__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

@media (min-width: 768px) {
  .p-venues__item:hover .p-venues__image img {
    transform: scale(1.05);
  }
}

.p-venues__content {
  padding: 2.5rem 2rem;
}

.p-venues__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.p-venues__address {
  font-size: 1.4rem;
  color: var(--color-gray);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.p-venues__address::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230068b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.p-venues__sports {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.p-venues__sport-tag {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-primary);
  background-color: rgba(0, 104, 183, 0.1);
  padding: 0.5rem 1.2rem;
  border-radius: 3rem;
}

/* Participation Section */
.p-participation {
  padding: 8rem 0;
  background-color: var(--color-light-gray);
  position: relative;
}

@media screen and (max-width: 767px) {
  .p-participation {
    padding: 6rem 0;
  }
}

.p-participation__container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

@media screen and (max-width: 767px) {
  .p-participation__container {
    flex-direction: column;
  }
}

.p-participation__block {
  position: relative;
  background-color: var(--color-white);
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  padding: 3rem;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  width: 50%;
  flex: 1;
}

@media screen and (max-width: 767px) {
  .p-participation__block {
    padding: 2rem;
    width: 100%;
  }
}

.p-participation__block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

@media (min-width: 768px) {
  .p-participation__block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
}

.p-participation__block--volunteer {
  grid-area: volunteer;
}

.p-participation__block--projects {
  grid-area: projects;
}

.p-participation__block--downloads {
  grid-area: downloads;
}

.p-participation__block-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
  position: relative;
  padding-left: 3rem;
}

.p-participation__block-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.p-participation__text {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--color-gray);
  margin-bottom: 2.5rem;
}

.p-participation__btn-wrap {
  display: flex;
  justify-content: center;
}

/* Projects */
.p-participation__projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.p-participation__project {
  display: flex;
  background-color: #f9f9f9;
  border-radius: 0.8rem;
  overflow: hidden;
  transition: transform 0.3s;
}

@media screen and (max-width: 767px) {
  .p-participation__project {
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  .p-participation__project:hover {
    transform: translateY(-3px);
  }
}

.p-participation__project-image {
  width: 30%;
  flex-shrink: 0;
}

@media screen and (max-width: 767px) {
  .p-participation__project-image {
    width: 100%;
  }
}

.p-participation__project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-participation__project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-participation__project-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.p-participation__project-text {
  font-size: 1.4rem;
  color: var(--color-gray);
  line-height: 1.6;
}

/* Downloads */
.p-participation__downloads {
  margin-top: 1rem;
}

.p-participation__download-item {
  margin-bottom: 1.5rem;
}

.p-participation__download-item:last-child {
  margin-bottom: 0;
}

.p-participation__download-link {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 0.8rem;
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .p-participation__download-link:hover {
    background-color: rgba(0, 104, 183, 0.1);
  }
}

.p-participation__download-icon {
  margin-right: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.p-participation__download-text {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-dark);
}

/* News Section */
.p-news {
  padding: 8rem 0;
  background-color: var(--color-white);
  position: relative;
}

@media screen and (max-width: 767px) {
  .p-news {
    padding: 6rem 0;
  }
}

.p-news__tabs {
  margin-top: 1rem;
}

.p-news__tab-btns {
  display: flex;
  border-bottom: 3px solid rgba(0, 104, 183, 0.2);
  margin-bottom: 3rem;
}

.p-news__tab-btn {
  position: relative;
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-gray);
  background-color: transparent;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.p-news__tab-btn::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-primary);
  transition: width 0.3s;
}

@media screen and (max-width: 767px) {
  .p-news__tab-btn::after {
    display: none;
  }
}

@media (min-width: 768px) {
  .p-news__tab-btn:hover {
    color: var(--color-primary);
  }
}

.p-news__tab-btn.is-active {
  color: var(--color-primary);
}

.p-news__tab-btn.is-active::after {
  width: 100%;
}

.p-news__tab-icon {
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

.p-news__tab-contents {
  position: relative;
}

.p-news__tab-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.p-news__tab-content.is-active {
  display: block;
}

.p-news__list {
  margin-bottom: 3rem;
}

.p-news__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.p-news__item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.p-news__link {
  display: flex;
  align-items: center;
  padding: 2rem 1rem;
  transition: background-color 0.3s;
}

@media (max-width: 767px) {
  .p-news__link {
    flex-wrap: wrap;
    padding: 1.5rem 0.5rem;
  }
}

@media (min-width: 768px) {
  .p-news__link:hover {
    background-color: rgba(0, 104, 183, 0.05);
  }
}

.p-news__date {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  color: var(--color-gray);
  margin-right: 2rem;
  flex-shrink: 0;
  width: 9rem;
}

.p-news__category {
  display: inline-block;
  min-width: 10rem;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  color: var(--color-white);
  background-color: var(--color-primary);
  border-radius: 3rem;
  margin-right: 2rem;
  flex-shrink: 0;
}

.p-news__title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-dark);
  transition: color 0.3s;
  flex-grow: 1;
}

@media (max-width: 767px) {
  .p-news__title {
    width: 100%;
    margin-top: 1rem;
  }
}

@media (min-width: 768px) {
  .p-news__link:hover .p-news__title {
    color: var(--color-primary);
  }
}

.p-news__more {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* Sponsors Section */
.p-sponsors {
  padding: 8rem 0;
  background-color: var(--color-white);
  position: relative;
}

@media screen and (max-width: 767px) {
  .p-sponsors {
    padding: 6rem 0;
  }
}

.p-sponsors__container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.p-sponsors__intro {
  margin-bottom: 4rem;
}

.p-sponsors__text {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.p-sponsors__category {
  position: relative;
}

.p-sponsors__category-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 104, 183, 0.2);
  position: relative;
}

.p-sponsors__category-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 8rem;
  height: 2px;
  background-color: var(--color-primary);
}

.p-sponsors__list {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.p-sponsors__list--large {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.p-sponsors__list--large .p-sponsors__item {
  width: calc(33.333% - 1.5rem);
}

.p-sponsors__list--large .p-sponsors__item.-small {
  width: calc(25% - 1.5rem);
}

@media (max-width: 767px) {
  .p-sponsors__list--large .p-sponsors__item,
  .p-sponsors__list--large .p-sponsors__item.-small {
    width: 100%;
  }
}

.p-sponsors__list--medium {
  justify-content: center;
  gap: 4rem;
}

.p-sponsors__list--small {
  justify-content: center;
  gap: 2rem;
}

.p-sponsors__item {
  transition: transform 0.3s;
}

@media (min-width: 768px) {
  .p-sponsors__item:hover {
    transform: translateY(-5px);
  }
}

.p-sponsors__btn-container {
  text-align: center;
  margin: 2rem 0;
}

@media (max-width: 767px) {
  .p-sponsors__intro {
    margin-bottom: 3rem;
  }

  .p-sponsors__text {
    text-align: left;
    font-size: 1.4rem;
  }

  .p-sponsors__btn-container {
    margin: 1.5rem 0;
  }
}

.p-sponsors__link {
  display: block;
  /* border: 1px solid rgba(0, 0, 0, 0.05); */
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.p-sponsors__link.no-link {
  pointer-events: none;
}

@media (min-width: 768px) {
  .p-sponsors__link:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
}

.p-sponsors__link img {
  width: 100%;
}

.p-sponsors__text-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: left;
}

.p-sponsors__text-item {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #f9f9f9;
  border-radius: 5rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-gray);
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .p-sponsors__text-item:hover {
    background-color: rgba(0, 104, 183, 0.1);
    color: var(--color-primary);
  }
}

/* Contact & FAQ Section */
.p-contact {
  padding: 8rem 0;
  background-color: var(--color-light-gray);
  position: relative;
}

@media screen and (max-width: 767px) {
  .p-contact {
    padding: 6rem 0;
  }
}

.p-contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

@media screen and (max-width: 767px) {
  .p-contact__container {
    display: flex;
    flex-direction: column;
  }
}

.p-contact__block-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 3rem;
  padding-left: 1rem;
  position: relative;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  border-left: solid 0.5rem var(--color-accent);
}

/* .p-contact__block-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 6rem;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 1.5px;
  } */

/* FAQ Accordion */
.p-contact__accordion {
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--color-white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.p-contact__accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.p-contact__accordion-item:last-child {
  border-bottom: none;
}

.p-contact__accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background-color: var(--color-white);
  text-align: left;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-dark);
  transition: all 0.3s;
  position: relative;
}

@media screen and (max-width: 767px) {
  .p-contact__accordion-header {
    line-height: 1.8;
    column-gap: 1rem;
  }
}

@media (min-width: 768px) {
  .p-contact__accordion-header:hover {
    background-color: rgba(0, 104, 183, 0.05);
  }
}

.p-contact__accordion-icon {
  position: relative;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.p-contact__accordion-icon::before,
.p-contact__accordion-icon::after {
  content: "";
  position: absolute;
  background-color: var(--color-primary);
  transition: transform 0.3s;
}

.p-contact__accordion-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.p-contact__accordion-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.p-contact__accordion-item.is-open .p-contact__accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.p-contact__accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s;
}

.p-contact__accordion-item.is-open .p-contact__accordion-body {
  max-height: 20rem;
}

.p-contact__accordion-content {
  padding: 2rem;
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--color-gray);
}

.p-contact__accordion-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.p-contact__accordion-content a:hover {
  text-decoration: none;
}

/* Contact Form */
.p-contact__form-container {
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 767px) {
  .p-contact__form-container {
    padding: 2rem;
  }
}

.p-contact__form-group {
  margin-bottom: 2rem;
}

.p-contact__form-label {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.p-contact__required {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-white);
  background-color: #e53935;
  padding: 0.2rem 0.8rem;
  border-radius: 3rem;
  vertical-align: middle;
}

.p-contact__form-input,
.p-contact__form-select,
.p-contact__form-textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  font-size: 1.5rem;
  color: var(--color-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.p-contact__form-input:focus,
.p-contact__form-select:focus,
.p-contact__form-textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 104, 183, 0.2);
}

.p-contact__form-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.p-contact__form-checkbox input {
  margin-right: 1rem;
  width: 1.8rem;
  height: 1.8rem;
}

.p-contact__form-checkbox-text {
  font-size: 1.4rem;
}

.p-contact__form-checkbox-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.p-contact__form-policy {
  margin-bottom: 3rem;
}

.p-contact__form-submit {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.p-contact__form-submit input {
  min-width: 20rem;
  text-align: center;
}

.p-contact__form-policy label {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.p-contact__form-policy label span {
  order: 2;
}

.p-contact__form-policy label span.mwform-checkbox-field {
  order: 1;
}

.p-contact__form-policy .mwform-checkbox-field-text {
  display: none;
}

.p-contact__form-policy input {
  margin-right: 1rem;
  width: 1.8rem;
  height: 1.8rem;
}

/* Organizers Section */
.p-organizers {
  padding: 8rem 0;
  position: relative;
  background-color: var(--color-light-gray);
}

@media screen and (max-width: 767px) {
  .p-organizers {
    padding: 6rem 0;
  }
}

.p-organizers__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

@media screen and (max-width: 767px) {
  .p-organizers__container {
    display: flex;
    flex-direction: column;
  }
}

.p-organizers__item {
  background-color: #f9f9f9;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}

.p-organizers__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

@media (min-width: 768px) {
  .p-organizers__item:hover {
    transform: translateY(-5px);
  }
}

.p-organizers__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.p-organizers__description {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--color-gray);
  margin-bottom: 2rem;
}

.p-organizers__description a {
  color: var(--color-primary);
  text-decoration: underline;
}

.p-organizers__description a:hover {
  text-decoration: none;
}

.p-organizers__logo {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* About Section */
.p-about {
  padding: 8rem 0;
  background-color: var(--color-white);
  position: relative;
}

@media screen and (max-width: 767px) {
  .p-about {
    padding: 6rem 0;
  }
}

.p-about::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35%;
  height: 70%;
  background-color: rgba(0, 104, 183, 0.05);
  z-index: 0;
  border-radius: 50% 0 0 0;
}

.p-about__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 5rem;
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 767px) {
  .p-about__container {
    display: flex;
    flex-direction: column-reverse;
  }
}

.p-about__content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.p-about__text {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--color-dark);
}

.p-about__text p {
  margin-bottom: 2rem;
}

.p-about__text p:last-child {
  margin-bottom: 0;
}

.p-about__vision-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 2rem;
}

.p-about__vision-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  height: 2.5rem;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 2px;
}

/* ビジョンセクションのh4見出しをモダンデザインに */
.p-about__vision-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  position: relative;
  display: inline-block;
}

/* 下部のアクセントライン */
.p-about__vision-heading::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--color-secondary),
    var(--color-accent)
  );
  border-radius: 1px;
  opacity: 0.7;
}

/* 文字サイズ変更対応 */
.font-size-small .p-about__vision-heading {
  font-size: 1.6rem;
}

.font-size-large .p-about__vision-heading {
  font-size: 2rem;
}

/* ホバー時のエフェクト（PCのみ） */
@media (min-width: 768px) {
  .p-about__vision-item:hover .p-about__vision-heading {
    color: var(--color-secondary);
    transition: color 0.3s ease;
  }

  .p-about__vision-item:hover .p-about__vision-heading::after {
    width: 4rem;
    transition: width 0.3s ease;
  }
}

.p-about__vision-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media screen and (max-width: 767px) {
  .p-about__vision-content {
    display: flex;
    flex-direction: column;
  }
}

.p-about__vision-item {
  background-color: #f9f9f9;
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

@media (min-width: 768px) {
  .p-about__vision-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
}

.p-about__vision-number {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-primary);
  width: 3.6rem;
  height: 3.6rem;
  line-height: 3.6rem;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.p-about__vision-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.p-about__vision-text {
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--color-gray);
}

.p-about__image {
  max-width: 50%;
}

@media screen and (max-width: 767px) {
  .p-about__image {
    max-width: 100%;
  }
}

.p-about__image img {
  width: 100%;
  object-fit: cover;
}

/* p-news__tab-btnsをスマホサイズで横スクロールできるようにする */
@media (max-width: 767px) {
  .p-news__tab-btns {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    margin-bottom: 2.5rem;
    border-bottom: none;
  }

  .p-news__tab-btn {
    flex: 0 0 auto;
    /* 幅を内容に合わせる */
    padding: 1.2rem 2rem;
  }

  /* スクロールバーをカスタマイズ（オプション） */
  .p-news__tab-btns::-webkit-scrollbar {
    height: 3px;
  }

  .p-news__tab-btns::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 3px;
  }

  .p-news__tab-btns::-webkit-scrollbar-track {
    background-color: rgba(0, 104, 183, 0.1);
  }
}

/* シルバースポンサーの画像をスマホサイズで2カラムにする */
@media (max-width: 767px) {
  .p-sponsors__list--small {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 1.5rem;
  }

  .p-sponsors__item {
    width: 100%;
  }
}

/* ハンバーガーメニューのスタイル修正 */

/* ハンバーガーボタンのスタイル */
.c-hamburger {
  position: relative;
  width: 3rem;
  height: 2.4rem;
  background: transparent;
  border: none;
  padding: 0;
  display: none;
  /* PCでは非表示 */
  cursor: pointer;
  z-index: 100;
}

.c-hamburger__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.c-hamburger__line:nth-child(1) {
  top: 0;
}

.c-hamburger__line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.c-hamburger__line:nth-child(3) {
  bottom: 0;
}

/* ハンバーガーボタンがアクティブな時のスタイル */
.c-hamburger.is-active .c-hamburger__line {
}

.c-hamburger.is-active .c-hamburger__line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.c-hamburger.is-active .c-hamburger__line:nth-child(2) {
  opacity: 0;
}

.c-hamburger.is-active .c-hamburger__line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* スマホメニューのスタイル */
.l-header__sp-menu {
  position: fixed;
  top: 6rem;
  /* スマホヘッダーの高さに合わせる */
  left: 0;
  width: 100%;
  height: calc(100vh - 6rem);
  background-color: var(--color-primary);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 99;
  overflow-y: auto;
  display: block;
  /* 初期状態でも表示する（非表示はtransformで制御） */
}

.l-header__sp-menu.is-active {
  transform: translateX(0);
}

/* Tourism Section */
.p-tourism {
  padding: 8rem 0;
  background-color: var(--color-white);
  position: relative;
}

@media screen and (max-width: 767px) {
  .p-tourism {
    padding: 6rem 0;
  }
}

.p-tourism__lead {
  margin-bottom: 4rem;
  font-size: 1.6rem;
  line-height: 1.8;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.p-tourism__lead p {
  width: 50%;
}

.p-tourism__lead img {
  width: 12rem;
}

@media screen and (max-width: 767px) {
  .p-tourism__lead {
    flex-direction: column;
    gap: 2rem;
  }

  .p-tourism__lead p {
    width: 100%;
  }

  .p-tourism__lead img {
    width: 100%;
  }
}

.p-tourism__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 5rem;
}

@media screen and (max-width: 1200px) {
  .p-tourism__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .p-tourism__container {
    display: flex;
    flex-direction: column;
  }
}

.p-tourism__item {
  position: relative;
  background-color: var(--color-white);
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

@media (min-width: 768px) {
  .p-tourism__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
}

.p-tourism__image {
  position: relative;
  overflow: hidden;
  height: 20rem;
}

.p-tourism__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

@media (min-width: 768px) {
  .p-tourism__item:hover .p-tourism__image img {
    transform: scale(1.05);
  }
}

.p-tourism__content {
  padding: 2.5rem 2rem;
}

.p-tourism__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.p-tourism__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 1.5px;
}

.p-tourism__description {
  font-size: 1.5rem;
  color: var(--color-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.p-tourism__info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 1.4rem;
  color: var(--color-gray);
}

.p-tourism__access,
.p-tourism__time,
.p-tourism__location {
  display: flex;
  align-items: center;
}

.p-tourism__access::before,
.p-tourism__time::before,
.p-tourism__location::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 0.8rem;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-size: contain;
}

.p-tourism__access::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230068b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolygon points='16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76'%3E%3C/polygon%3E%3C/svg%3E");
}

.p-tourism__time::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230068b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
}

.p-tourism__location::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230068b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.p-tourism__more {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

@media screen and (max-width: 767px) {
  .p-tourism__more {
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }
}

.p-tourism__highlight {
  background-color: var(--color-white);
  border-radius: 1rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 4rem;
}

.p-tourism__highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background: linear-gradient(
    90deg,
    var(--color-secondary),
    var(--color-accent)
  );
}

.p-tourism__highlight-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 2rem;
}

.p-tourism__highlight-content p {
  font-size: 1.5rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.p-tourism__links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.p-tourism__link-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--color-white);
  border-radius: 1rem;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.p-tourism__link-item + .p-tourism__link-item {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .p-tourism__link-item:hover {
    transform: translateX(5px);
    background-color: rgba(0, 104, 183, 0.1);
  }
}

.p-tourism__link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.p-tourism__link-text {
  display: flex;
  flex-direction: column;
}

.p-tourism__link-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.p-tourism__link-description {
  font-size: 1.2rem;
  color: var(--color-gray);
}

/* 文字サイズ変更対応 */
.font-size-small .p-tourism__title {
  font-size: 2rem;
}

.font-size-small .p-tourism__description,
.font-size-small .p-tourism__highlight-content p {
  font-size: 1.3rem;
}

.font-size-small .p-tourism__info {
  font-size: 1.2rem;
}

.font-size-small .p-tourism__link-title {
  font-size: 1.4rem;
}

.font-size-large .p-tourism__title {
  font-size: 2.4rem;
}

.font-size-large .p-tourism__description,
.font-size-large .p-tourism__highlight-content p {
  font-size: 1.7rem;
}

.font-size-large .p-tourism__info {
  font-size: 1.6rem;
}

.font-size-large .p-tourism__link-title {
  font-size: 1.8rem;
}

/* SPナビゲーションのスタイル */
.c-sp-nav {
  padding: 2rem;
  padding-bottom: 10rem;
}

.c-sp-nav__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.c-sp-nav__link {
  display: block;
  padding: 1.5rem 0;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-white);
  transition: opacity 0.3s;
}

@media (min-width: 768px) {
  .c-sp-nav__link:hover {
    opacity: 0.8;
  }
}

/* メディアクエリでスマホ表示の設定 */
@media (max-width: 767px) {
  /* PCナビゲーションを非表示 */
  .l-header__nav {
    display: none;
  }

  /* ハンバーガーボタンを表示 */
  .c-hamburger {
    display: block;
  }

  /* スマホメニューを表示状態に（transformで非表示） */
  .l-header__sp-menu {
    display: block;
    top: 6rem;
  }

  /* 文字サイズ変更ボタンの調整 */
  .c-font-size-changer__label {
    display: none;
    /* スマホでは「文字サイズ」のラベルを非表示 */
  }

  /* ロゴサイズの調整 */
  .c-logo {
    width: 15rem;
  }

  .c-font-size-changer {
    margin-right: 1rem;
  }
}

/* 文字サイズ変更用の共通トランジション効果 */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
.p-news__tab-btn,
.p-news__date,
.p-news__category,
.p-news__title,
.p-events__tab-btn,
.p-events__title,
.p-events__description,
.p-about__vision-text,
.p-about__text p,
.p-participation__text,
.c-gnav__list li a,
.c-btn,
.l-footer__nav-link,
.l-footer__external-link {
  transition: font-size 0.3s ease;
}

@media (max-width: 767px) {
  /* スマホ表示でのフォントサイズ調整（small, medium, large） */
  /* --- small --- */
  .font-size-small .p-hero__title {
    font-size: 3.2rem;
  }

  .font-size-small .p-hero__event-text {
    font-size: 1.4rem;
  }

  .font-size-small .c-section-title {
    font-size: 2.1rem;
  }

  .font-size-small .c-section-title::before {
    font-size: 1.2rem;
  }

  .font-size-small .p-news__tab-btn,
  .font-size-small .p-events__tab-btn {
    font-size: 1.2rem;
  }

  .font-size-small .p-news__title {
    font-size: 1.2rem;
  }

  /* --- medium --- */
  .font-size-medium .p-hero__title {
    font-size: 3.8rem;
  }

  .font-size-medium .p-hero__event-text {
    font-size: 1.6rem;
  }

  .font-size-medium .c-section-title {
    font-size: 2.6rem;
  }

  .font-size-medium .c-section-title::before {
    font-size: 1.4rem;
  }

  .font-size-medium .p-news__tab-btn,
  .font-size-medium .p-events__tab-btn {
    font-size: 1.4rem;
  }

  .font-size-medium .p-news__title {
    font-size: 1.4rem;
  }

  /* --- large --- */
  .font-size-large .p-hero__title {
    font-size: 4.8rem;
  }

  .font-size-large .p-hero__event-text {
    font-size: 1.8rem;
  }

  .font-size-large .c-section-title {
    font-size: 3.2rem;
  }

  .font-size-large .c-section-title::before {
    font-size: 1.6rem;
  }

  .font-size-large .p-news__tab-btn,
  .font-size-large .p-events__tab-btn {
    font-size: 1.6rem;
  }

  .font-size-large .p-news__title {
    font-size: 1.6rem;
  }
}

/* リハーサル大会ボタン（固定表示） */
.c-rehearsal-btn {
  position: fixed;
  right: 3rem;
  bottom: 10rem;
  /* ページトップボタンの上 */
  z-index: 999;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media screen and (max-width: 767px) {
  .c-rehearsal-btn {
    right: auto;
    /* 右からの位置指定を無効化 */
    left: 1.5rem;
    /* 左からの位置に変更 */
    bottom: 3rem;
    /* 下からの位置調整 */
  }
}

.c-rehearsal-btn__link {
  display: flex;
  align-items: center;
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 1.2rem 2rem;
  border-radius: 5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: bold;
}

@media (min-width: 768px) {
  .c-rehearsal-btn__link:hover {
    background-color: #e56f00;
    /* 少し暗めのセカンダリカラー */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 767px) {
  .c-rehearsal-btn__link {
    padding: 1rem 2rem;
    border-radius: 5rem;
  }
}

.c-rehearsal-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.8rem;
}

@media screen and (max-width: 767px) {
  .c-rehearsal-btn__icon {
    margin-right: 0.5rem;
  }
}

.c-rehearsal-btn__text-pc {
  font-size: 1.4rem;
  font-weight: 500;
  display: block;
}

.c-rehearsal-btn__text-sp {
  font-size: 1.6rem;
  font-weight: 500;
  display: none;
}

@media screen and (max-width: 767px) {
  .c-rehearsal-btn__text-pc {
    display: none;
  }

  .c-rehearsal-btn__text-sp {
    display: block;
  }
}

/* 文字サイズ変更対応 */
.font-size-small .c-rehearsal-btn__text-pc,
.font-size-small .c-rehearsal-btn__text-sp {
  font-size: 1.2rem;
}

.font-size-large .c-rehearsal-btn__text-pc,
.font-size-large .c-rehearsal-btn__text-sp {
  font-size: 1.6rem;
}

/* ページトップボタンとの重なり防止 */
.c-rehearsal-btn.is-pagetop-active {
  bottom: 12rem;
}

@media screen and (max-width: 767px) {
  .c-rehearsal-btn.is-pagetop-active {
    bottom: 1.5rem;
    /* スマホでは高さ位置を変えない */
    left: 1.5rem;
    /* 左に配置 */
  }

  .c-rehearsal-btn {
    max-width: 45%;
    /* ボタン幅を調整 */
    right: auto;
    /* 右からの位置指定を無効化 */
    left: 1.5rem;
    /* 左からの位置に変更 */
  }
}

/* 極小画面サイズ対応 */
@media screen and (max-width: 360px) {
  .c-rehearsal-btn__link {
    padding: 0.8rem 1.2rem;
  }

  .c-rehearsal-btn__text-sp {
    font-size: 1.1rem;
  }

  .c-rehearsal-btn__icon svg {
    width: 16px;
    height: 16px;
  }
}

.u-mb-3 {
  margin-bottom: 3rem;
}

/* 画像なしレイアウト用のスタイル */
.p-about__container--no-image {
  grid-template-columns: 1fr;
  gap: 0;
}

.p-about__content--full {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

/* 注釈スタイル */
.p-about__note {
  font-size: 0.9em;
  color: var(--color-gray);
  display: block;
  margin-top: 0.5rem;
}

/* 大会概要スタイル */
.p-about__overview {
  margin-top: 40px;
}

.p-about__overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  margin-bottom: 30px;
}

.p-about__overview-item {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  /* 高さを均等に */
}

.p-about__overview-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.6rem;
  padding-left: 1rem;
  position: relative;
  display: inline-block;
}

.p-about__competition-block + .p-about__competition-block {
  margin-top: 4rem;
}

/* 左側のバーを削除し、下部のアクセントラインを追加 */
.p-about__overview-title::before {
  display: none;
}

.p-about__overview-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--color-secondary),
    var(--color-accent)
  );
  border-radius: 1px;
  opacity: 0.7;
}

/* ホバーエフェクトの追加 */
.p-about__overview-item:hover .p-about__overview-title {
  color: var(--color-secondary);
  transition: color 0.3s ease;
}

.p-about__overview-item:hover .p-about__overview-title::after {
  width: 4rem;
  transition: width 0.3s ease;
}

/* 文字サイズ変更対応 */
.font-size-small .p-about__overview-title {
  font-size: 1.6rem;
}

.font-size-large .p-about__overview-title {
  font-size: 2rem;
}

/* スマホ表示の調整 */
@media screen and (max-width: 767px) {
  .p-about__overview-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
}

.p-about__overview-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
  /* 内容部分が伸縮して均等化 */
  justify-content: space-between;
  /* 内容を均等に配置 */
}

.p-about__overview-image {
  margin-top: auto;
  /* 画像が下部に揃うように */
  text-align: center;
}

.p-about__overview-image img {
  width: 100%;
  height: auto;
  max-height: 200px;
  /* 画像の高さを揃える */
  object-fit: contain;
  /* 画像比率を維持 */
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.p-about__overview-item:hover .p-about__overview-image img {
  transform: scale(1.05);
}

/* レスポンシブ対応をより確実に */
@media screen and (max-width: 767px) {
  .p-about__overview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .p-about__overview-item {
    padding: 20px;
  }

  .p-about__overview-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .p-about__overview-content {
    gap: 15px;
  }
}

.p-about__competition-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  margin: 1.5rem 0 1rem;
  position: relative;
}

.p-about__competition-subtitle::before {
  content: "";
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-secondary)
  );
  margin-right: 0.8rem;
}

/* 不要になった疑似要素を削除 */
.p-about__competition-subtitle::after {
  display: none;
}

.p-about__competition-list {
  margin: 0 0 2rem 0;
  padding-left: 1.5rem;
}

.p-about__competition-list li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.p-about__competition-list li:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 767px) {
  .p-about__competition-subtitle {
    font-size: 1.4rem;
    margin: 1.2rem 0 0.8rem;
  }

  .p-about__competition-subtitle::before {
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.6rem;
  }

  .p-about__competition-list {
    margin: 0 0 1.5rem 0;
    padding-left: 1.2rem;
  }
}

/* モーダル関連スタイル */
.c-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.c-modal.is-active {
  display: block;
  animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.c-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.c-modal.is-active .c-modal__overlay {
  opacity: 1;
}

.c-modal__container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  z-index: 1002;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  /* ブラウザデフォルトのスクロールバーを非表示 */
  scrollbar-width: none;
  /* Firefox用 */
  -ms-overflow-style: none;
  /* IE・Edge用 */
}

/* WebKit (Safari, Chrome)用のスクロールバー非表示 */
.c-modal__container::-webkit-scrollbar {
  display: none;
}

/* スクロールインジケーター */
.c-modal__scroll-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background-color: #f0f0f0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  overflow: hidden;
  display: none;
  /* デフォルトでは非表示 */
}

.c-modal__scroll-indicator.is-visible {
  display: block;
  /* スクロール可能な場合のみ表示 */
}

.c-modal__scroll-indicator-bar {
  width: 100%;
  height: 30px;
  /* インジケーターバーの高さ */
  background-color: #2d8cff;
  position: absolute;
  top: 0;
  transition: top 0.1s ease;
  /* 位置の変更をスムーズに */
}

.c-modal.is-active .c-modal__container {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.c-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: var(--color-primary);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.c-modal__title {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

.c-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.c-modal__close:hover {
  transform: rotate(90deg);
}

.c-modal__content {
  padding: 2rem;
}

.c-modal__venue-info {
  display: none;
}

.c-modal__info-list {
  margin: 0;
}

.c-modal__info-list dt {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.c-modal__info-list dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 2px;
}

.c-modal__info-list dd {
  margin: 0 0 1.5rem 0;
  padding-left: 1rem;
}

.c-modal__info-list dd:last-child {
  margin-bottom: 0;
}

/* アクセスボタン */
.c-btn--access {
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 1.4rem;
  margin-right: 0.5rem;
  transition: background-color 0.3s;
}

.c-btn--access:hover {
  background-color: var(--color-secondary);
}

@media screen and (max-width: 767px) {
  .c-modal__container {
    width: 95%;
    max-height: 80vh;
  }

  .c-modal__header {
    padding: 1.2rem 1.5rem;
  }

  .c-modal__title {
    font-size: 1.6rem;
  }

  .c-modal__content {
    padding: 1.5rem;
  }
}

.p-tourism__links-wrapper {
  background-color: var(--color-white);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.p-tourism__links-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 1rem 1rem 0 0;
}

.p-tourism__links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media screen and (max-width: 1200px) {
  .p-tourism__links-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .p-tourism__links-container {
    grid-template-columns: 1fr;
  }

  .p-tourism__links-wrapper {
    padding: 2rem;
  }
}

.p-tourism__visit-link {
  margin-bottom: 4rem;
}

.p-tourism__links-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
  position: relative;
}

/* .p-tourism__links-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 2px;
} */

.p-tourism__link-group-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
  display: flex;
  align-items: center;
}

.p-tourism__link-group-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-secondary)
  );
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  .p-tourism__links-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .p-tourism__link-group-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    padding-left: 1.6rem;
  }

  .p-tourism__link-group-title::before {
    width: 0.6rem;
    height: 0.6rem;
  }
}

/* 文字サイズ変更対応 */
.font-size-small .p-tourism__links-title {
  font-size: 1.8rem;
}

.font-size-small .p-tourism__link-group-title {
  font-size: 1.6rem;
}

.font-size-large .p-tourism__links-title {
  font-size: 2.2rem;
}

.font-size-large .p-tourism__link-group-title {
  font-size: 2rem;
}

.p-tourism__link-group a {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 0.8rem;
  transition: all 0.3s;
  box-shadow: none;
}

@media (min-width: 768px) {
  .p-tourism__link-group a:hover {
    background-color: rgba(0, 104, 183, 0.1);
  }
}

.p-tourism__link-group a.no-link {
  pointer-events: none;
}

/* 保護ページ用 */
.c-password {
  position: fixed;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem;
  background-color: #f2f2f2;
  z-index: 10000;
}

.c-password__inner {
  background-color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.c-password__logo {
  text-align: center;
  margin-bottom: 3.2rem;
}

.c-password__logo img {
  max-width: 200px;
  height: auto;
}

.c-password p {
  font-size: 1.4rem;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 1.5rem;
}

.c-password form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.c-password form input[type="password"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1.4rem;
}

.c-password form input[type="submit"] {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

.c-password form input[type="submit"]:hover {
  background-color: var(--color-primary-dark, #0056b3);
}

.c-password__back {
  text-align: center;
}

.c-password__back-button {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-size: 1.4rem;
  text-decoration: none;
  position: relative;
  padding-left: 1.5rem;
  transition: opacity 0.3s;
}

.c-password__back-button:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.8rem;
  height: 0.8rem;
  border-top: 2px solid var(--color-primary);
  border-left: 2px solid var(--color-primary);
  transform: translateY(-50%) rotate(-45deg);
}

.c-password__back-button:hover {
  opacity: 0.7;
}


@media print{
  .c-rehearsal-btn {
    display: none;
  }
}


.p-contact__form-select-field {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 1rem;
}

.p-contact__form-select-field {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 1rem;
}

.p-contact__form-select-label {
  font-weight: 600;
  color: #333;
  min-width: 10rem;
  flex-shrink: 0;
}

.p-contact__form-select-input {
  flex: 1;
}

.p-contact__form-select-input select {
  width: 100%;
  max-width: 32rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  font-size: 1.5rem;
  background-color: #fff;
  color: #333;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 3rem;
}

.p-contact__form-select-input select:focus {
}

.p-contact__form-select-input select:hover {
}

.p-contact__form-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 2rem;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.p-contact__form-table thead {
}

.p-contact__form-table thead th {
  padding: 1rem 1.5rem;
  font-weight: 600;
  border: none;
  position: relative;
  text-align: center;
}

.p-contact__form-table tbody {
  background-color: #fff;
}

.p-contact__form-table tbody td {
  width: 32%;
  padding: 1.5rem 1.5rem;
  border: none;
  vertical-align: middle;
  position: relative;
}

.p-contact__form-table tbody tr {
}

.p-contact__form-table tbody tr:hover {
}

.p-contact__form-table tbody tr:not(:last-child) td {
}

.p-contact__form-table tbody td:first-child {
  font-weight: 600;
  text-align: center;
  width: 60px;
}

.p-contact__form-table tbody td select {}

.p-contact__form-table tbody td select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.p-contact__form-table tbody td select:hover {
  border-color: #9ca3af;
}

.p-contact__form-table tbody td select:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .p-contact__form-select-field {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .p-contact__form-select-label {
    min-width: auto;
  }

  .p-contact__form-table {
    font-size: 0.875rem;
  }

  .p-contact__form-table thead th,
  .p-contact__form-table tbody td {
    padding: 1rem 0.75rem;
  }

  .p-contact__form-table tbody td select {
    font-size: 0.875rem;
    padding: 0.625rem 0.75rem;
    padding-right: 2.25rem;
  }
}