@charset "UTF-8";

/* ════ カラー・レイアウト変数 ════ */
:root {
  --color-primary: #00a0e9;
  --color-primary-dark: #009dae;
  --color-current-page: #8f8f8f;
  --color-text: #2f2f2f;
  --color-bg: #ffffff;
  --header-height: 200px;
  --accent: #14B5C6;
  --accent-dark: #0B98A7;
  --container-max: 1080px;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  font-family: 'Noto Sans JP', sans-serif;
}

/* 画像：実サイズ表示・はみ出し時のみ縮小 */
img {
  max-width: 100%;
  height: auto;
}

.mo-br {
  display: none;
}
@media (max-width: 480px) {
  .mo-br {
    display: block;
  }
  .pc-br {
    display: none;
  }
  .l-mgn {
    padding-left: 12px;
  }
}

/* ════ コンテナ ════ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ════ 下層ページタイトル ════ */
.page-title-section {
  padding: 96px 20px;
  background: #fff;
  color: #000;
  text-align: center;
}

.page-title-heading {
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0em;
}

.page-title-mark {
  display: block;
  width: 110px;
  margin: 0 auto 4px;
}

.page-title-logo {
  display: block;
  width: min(360px, 40vw);
  margin: 0 auto 4px;
}
.page-title-en,
.page-title-ja {
  display: block;
}

.page-title-en {
  font-size: clamp(40px, 5vw, 90px);
  font-weight: 500;
  line-height: 1;
  font-family: 'Jost', sans-serif;
}

.page-title-ja {
  margin-top: 0px;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.16em;
}

@media (max-width: 480px) {
  .page-title-section {
    padding: 64px 20px;
  }
}

/* ════ サイトヘッダー ════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding-top: 0px;
  transition: box-shadow 0.28s ease;
}

body {
  padding-top: var(--header-height);
  transition: padding-top 0.28s ease;
}

.header-inner {
  display: flex;
  align-items: flex-end;
  height: var(--header-height);
  padding: 0 16px 20px;
  gap: 10px;
  max-width: 1600px;
  margin: 0 auto;
  transition: height 0.28s ease, padding 0.28s ease;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  order: 1;
}

.header-logo img {
  height: 140px;
  width: auto;
  display: block;
  transition: height 0.28s ease;
}

/* 参加登録ボタン: ロゴ直後・ナビの前 */
.header-entry {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  order: 2;
  margin-left: auto;
  margin-right: 22px;
  transition: margin 0.28s ease;
}
.header-entry img {
  height: 84px;
  width: auto;
  display: block;
  transition: height 0.28s ease;
}

/* ════ Instagramリンク ════ */
.header-instagram {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  order: 4;
  margin-bottom: 10px;
  margin-left: 10px;
  transition: margin 0.28s ease;
}

.header-instagram img {
  height: 38px;
  width: auto;
  display: block;
  transition: height 0.28s ease, opacity 0.2s;
}

.header-instagram:hover img {
  opacity: 0.75;
}
@media (max-width: 1440px) {
  .header-logo img {
    height: 100px;
  }
  .header-entry {
    margin-right: 10px;
  }
  .header-entry img {
    height: 64px;
  }
  .header-instagram {
    margin-bottom: 10px;
    margin-left: 0px;
  }
  .header-instagram img {
    height: 28px;
  }
}

@media (min-width: 939px) {
  html.header-compact {
    --header-height: 96px;
  }

  .site-header.is-compact {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  }

  .site-header.is-compact .header-inner {
    padding-bottom: 6px;
  }

  .site-header.is-compact .header-logo img {
    height: 76px;
  }

  .site-header.is-compact .header-entry {
    margin-right: 14px;
  }

  .site-header.is-compact .header-entry img {
    height: 66px;
  }

  .site-header.is-compact .global-nav,
  .site-header.is-compact .header-instagram {
    margin-bottom: 2px;
  }

  .site-header.is-compact .header-instagram img {
    height: 30px;
  }

  .site-header.is-compact .nav-list li a {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

@media (max-width: 938px) {
  html {
    scroll-padding-top: 124px;
  }

  body {
    padding-top: 100px;
  }

  .header-inner {
    height: 100px;
    padding: 0 16px 20px;
  }
  .header-logo img {
    height: 70px;
  }
  .header-entry {
  }
  .header-instagram {
    margin-bottom: 0px;
  }
  .header-instagram img {
    height: 44px;
  }
}
@media (max-width: 480px) {
  .header-entry img {
    height: 44px;
  }
}

/* ════ グローバルナビゲーション ════ */
.global-nav {
  flex-shrink: 0;
  overflow: visible;
  order: 3;
  margin-bottom: 10px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.nav-list li {
  flex: 0 0 auto;
  position: relative;
}

/* ════ サブメニュー ════ */
.sub-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 160px;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 210;
}

.has-sub:hover .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  background: #fff;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  border-bottom: #fff 1px solid transparent;
}

.sub-menu li a:hover {
  background: var(--color-primary);
  color: #fff;
}

.sub-menu li a[aria-current="page"] {
  background: var(--color-current-page);
  color: #fff;
}

.nav-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
  padding: 8px 20px;
  font-weight: 300;
  transition: background 0.2s;
  line-height: 1.3;
  border-radius: 999px;
}

.nav-list li a:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.nav-list li a[aria-current="page"] {
  background: var(--color-current-page);
  color: #fff;
}

.nav-list li a[href*="#"][aria-current="page"] {
  background: var(--color-primary);
}

.nav-list li a.is-section-active {
  background: #8f8f8f;
  color: #fff;
}

@media (max-width: 1440px) {
  .nav-list {
    gap: 10px;
  }
  .nav-list li a {
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    padding: 5px 10px;
  }
  .sub-menu li a {
    padding: 10px 16px;
    font-size: 12px;
  }
}


/* ════ ハンバーガーボタン ════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  order: 5;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════ モバイルナビゲーション ════ */
.mobile-nav {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  z-index: 310;
  padding: 12px 16px 28px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 2px;
}

.mobile-nav ul li a {
  display: block;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s;
}

.mobile-nav ul li a.mobile-sub-toggle {
  position: relative;
  padding-right: 44px;
}

.mobile-nav ul li a.mobile-sub-toggle::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.mobile-nav ul li.is-open > a.mobile-sub-toggle::after {
  content: "−";
}

.mobile-nav ul li a:hover {
  background: var(--color-primary-dark);
}

.mobile-nav ul li a[aria-current="page"] {
  background: var(--color-current-page);
  color: #fff;
}

.mobile-nav ul li a.is-section-active {
  background: #8f8f8f;
  color: #fff;
}

/* モバイルサブメニュー */
.mobile-sub {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 0;
  margin-top: 0;
  padding-left: 12px;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.2s ease;
}

.mobile-nav li.is-open > .mobile-sub {
  max-height: 420px;
  margin-top: 5px;
  opacity: 1;
}

.mobile-nav .mobile-sub li a {
  background: #e8f8fb;
  color: var(--color-primary-dark);
  font-size: 13px;
  padding: 8px 16px;
}

.mobile-nav .mobile-sub li a:hover {
  background: #d5f1f6;
  color: var(--color-primary-dark);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 938px) {
  .global-nav {
    display: none;
  }
  .header-entry {
    margin-left: 0;
  }
  .header-instagram {
    margin-left: auto;
  }
  .hamburger {
    display: flex;
    margin-left: 0;
  }
}

/* ════ 主催・運営・後援 ════ */
.section-organizer {
  padding: 48px 0 0;
  width: 1080px;
  margin-inline: auto;
  max-width: 96%;
}

.organizer-box {
  background: #dcdcdc;
  padding: 24px 28px;
  font-size: 14px;
  line-height: 2;
  color: #333;
}

.organizer-box p + p {
  margin-top: 4px;
}

.org-label {
  font-weight: 700;
}

@media (max-width: 480px) {
  .organizer-box {
    font-size: 11px;
    padding: 18px 16px;
  }
}

/* ════ サイトフッター ════ */
.site-footer {
  background: #fff;
  color: #2f2f2f;
  padding: 36px 20px;
  margin-top: 0;
  border-top: 1px solid #e8e8e8;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 46px;
  margin-bottom: 28px;
}

.footer-links a {
  display: block;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.75;
}

.footer-links img {
  width: 200px;
  height: auto;
  display: block;
}

.footer-copy {
  font-size: 12px;
  color: #555;
  letter-spacing: 0.05em;
}

@media (max-width: 480px) {
  .footer-links img {
    width: 160px;
  }
}

/* ════ ページトップボタン ════ */
.pagetop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s, transform 0.2s;
  z-index: 300;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.pagetop.visible {
  opacity: 1;
  pointer-events: auto;
}

.pagetop:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

.pagetop svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 480px) {
  .pagetop {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }
}
