/* ---------- HEADER / MENU ---------- */

#menu {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #b1caad;
  overflow: visible !important;
}

header #menu {
  border-bottom: none;
}

.menu_inner {
  max-width: 90%;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.menu-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-brand .top-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .menu_inner {
    padding: 12px 24px;
    gap: 20px;
  }

  .menu-brand .top-logo-img {
    height: 60px;
  }
}

/* ---- Navigation (SP: slide-in panel, PC: inline row) ---- */

.nav_list {
  list-style: none;
  margin: 0;
  position: fixed;
  top: 0;
  right: -100%;
  width: 78%;
  max-width: 300px;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 130px 30px;
  z-index: 60;
  transition: right .3s ease;
}

.nav_list.open {
  right: 0;
}

.nav_item {
  border-bottom: 1px solid #b1caad;
}

.nav_item a {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #245b37;
  padding: 15px 0;
  border-bottom: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}

.nav_item a:hover {
  color: #245b37;
  border-color: #a4e56f7d;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 26px;
  flex: none;
}

.hamburger_border {
  display: block;
  height: 2px;
  width: 100%;
  background: #245b37;
  border-radius: 2px;
  transition: .2s;
}

.black_bg {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 14, .5);
  z-index: 49;
  display: none;
}

@media (min-width: 768px) {
  .nav_list {
    position: static;
    top: auto;
    right: auto;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    flex-direction: row;
    gap: 15px;
    padding: 0;
    transition: none;
  }

  .nav_item {
    border-bottom: none;
  }

  .nav_item a {
    display: inline;
    font-size: 16px;
    padding: 0 0 5px;
    line-height: 1.2;
  }

  .hamburger {
    display: none;
  }

  .black_bg {
    display: none !important;
  }
}

/* ---------- HERO / EVENT ---------- */

.first-view {
  /* 共通ヘッダー(115px)＋メニュー高さ＋下の余白16px。メニュー高さが変わったらここを調整 */
  --offset: 200;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--offset));
  min-height: calc(100svh - var(--offset));
}

.first-view > .wrap {
  flex: none;
}

.hero {
  position: relative;
  flex: 0.5 auto;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate; /* 内部のz-indexを閉じ込め、概要ボックスが上に来るようにする */
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #14552b 0%, rgba(6, 20, 13, .60) 30%, rgba(6, 20, 13, .25) 90%, rgba(6, 20, 13, 0) 100%
  );
  z-index: 1;
}

.hero .hero-inner {
  margin: 32px auto 82px;
  position: relative;
  z-index: 2;
  display: flex;
  grid-template-columns: 1fr; /* SP：縦積み（テキスト → ロゴ） */
  gap: 10px;
  align-items: center;
  flex-direction: column-reverse;
}

.hero-content {
  position: relative;
  min-width: 0; /* グリッド内でテキストがはみ出さないように */
  border-radius: 10px;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.eyebrow-line {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: #f4ff8a;
  margin-bottom: 8px;
  display: inline-block;
  border-bottom: 1px solid #f4ff8a;
  padding-bottom: 5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.hero h1.title {
  font-size: 35px;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  letter-spacing: .03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.hero h1.title .cup {
  color: #ffed11;
  -webkit-text-stroke: 1px #ffed11;
}

.presented {
  margin-top: 5px;
  font-size: 16px;
  color: #eef7ef;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

/* ---- HERO LOGO（右側に配置） ---- */

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.hero-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35));
}

@media (min-width: 768px) {
  .first-view {
    --offset: 200;
  }
  .hero .hero-inner {
    display: grid;
    margin: 50px auto 130px;
    gap: 10px;
    grid-template-columns: auto minmax(220px, 600px); /* 左テキスト(内容幅) / 右ロゴ */
  }

  .hero-content {
    border-radius: 20px;
  }

  .eyebrow-line {
    font-size: 25px;
    margin-bottom: 10px;
    padding-bottom: 6px;
  }

  .hero h1.title {
    font-size: 70px;
  }

  .presented {
    font-size: 20px;
    font-weight: 600;
  }

  .hero-logo img {
    /*max-width: 460px;*/
  }
}

/* ---------- INFO PANEL（縦積みレイアウト） ----------
   1カラム。各セクションは「見出し（下線）→ 内容バー → 補足」の順に縦へ積む。
   .overview（概要）だけヒーローに被せ、開催情報は別ボックスで下に続く。 */

.info-panel {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(20, 40, 30, .16);
  padding: 4px 22px 28px;
}

.info-panel + .info-panel {
  margin-top: 24px;
}

/* 概要ボックス：ヒーローの下端に被せる */
.overview {
  position: relative;
  margin-top: -50px;
  margin-bottom: 3rem;
  background: #066928;
}

.info-section {
  margin: 28px 0 0;
}

.info-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2em;
  line-height: 1.5;
  color: #245b37;
  padding-bottom: 6px;
  border-bottom: 1px solid #fff;
}

.info-section h2 .ico {
  flex: none;
  width: 22px;
  height: 22px;
  color: #3c6746;
}

.info-lead {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  color: #fff;
}

.info-value {
  margin: 14px 0 0;
  padding: 10px 14px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
  color: #245b37;
  background: linear-gradient(90deg, #faffca, rgba(250, 255, 202, 0));
  border-left: 5px solid #3c6746;
}

.info-value .tax {
  font-size: 12px;
  font-weight: 700;
  margin-left: 2px;
}

.info-note {
  margin: 10px 0 0;
  padding-left: 19px;
  font-size: 14px;
  line-height: 1.7;
  color: #156600;
}

.url {
  display: flex;
  font-family: "toppan-bunkyu-midashi-go-std", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 16px;
  background: #3c6746;
  border-radius: 100px;
  color: #fff;
  padding: 1rem;
  margin: 1rem 0;
  justify-content: center;
  width: 100%;
  height: auto;
}

/* ---------- MANEGOL（SP: 縦積み／ベース） ---------- */

.manegol {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1rem;
}

.program-box {
  width: 100%;
  margin: 0 0 1rem;
}

.program-box img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.program-copy {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
}

.program-copy h2 {
  color: #004117;
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.program-copy p {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.6;
  color: #156600;
}

.air-pill {
  margin: 12px 0 0;
  padding: 8px 10px;
  font-family: "toppan-bunkyu-midashi-go-std", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: #ff408b;
  background: linear-gradient(90deg, #faffca, rgba(250, 255, 202, 0));
  border-left: 4px solid #ff408b;
}

.manegol .cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 1.25rem auto 0;
  padding: 0.85rem 1rem;
  font-family: "toppan-bunkyu-midashi-go-std", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 17px;
  background: #066928;
  border-radius: 100px;
  color: #fff;
}

/* ---------- PC (768px以上) ---------- */

@media (min-width: 768px) {
  .info-panel {
    padding: 10px 70px 44px;
  }

  .info-panel h2 {
    color: #fff;
  }

  .info-panel + .info-panel {
    margin-top: 32px;
  }

  .overview {
    margin-top: -80px;
    margin-bottom: 5rem;
    background: #066928;
  }

  .info-section {
    margin-top: 40px;
  }

  .info-section h2 {
    font-size: 30px;
    padding-bottom: 8px;
    font-family: "toppan-bunkyu-midashi-go-std", sans-serif;
    font-weight: 900;
    font-style: normal;
    color: #3c6746;
  }

  .info-section .overview h2 {
    color: #fff;
  }

  .info-section h2 .ico {
    width: 26px;
    height: 26px;
  }

  .info-lead {
    margin-top: 18px;
    font-size: 18px;
  }

  .info-value {
    margin-top: 18px;
    padding: 12px 20px;
    font-size: 24px;
  }

  .info-value .tax {
    font-size: 14px;
  }

  .info-note {
    padding-left: 25px;
    font-size: 18px;
  }

  .url {
    display: flex;
    font-family: "toppan-bunkyu-midashi-go-std", sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 18px;
    background: #066928;
    border-radius: 100px;
    color: #fff;
    padding: 1rem;
    margin: 2rem 0;
    justify-content: center;
    width: 100%;
    height: auto;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }

  .url:hover {
    color: #ffeb3b;
    transform: translateY(-4px);
    box-shadow: 0 0 0 4px #ffeb3b;
  }

  .manegol {
    display: flex;
    flex-direction: row;
    padding: 0;
    background: #fff;
    border-radius: 20px;
  }

  .program-box {
    width: 40%;
    height: auto;
    margin: 2rem;
  }

  .program-box img {
    border-radius: 20px;
  }

  .program-copy {
    display: flex;
    flex-direction: column;
    width: 50%;
    margin: 2rem;
  }

  .program-copy h2 {
    color: #004117;
    font-size: 30px;
    margin-bottom: 10px;
  }

  .program-copy p {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.5;
    color: #156600;
  }

  .air-pill {
    margin: 14px 0 0;
    padding: 10px 14px;
    font-family: "toppan-bunkyu-midashi-go-std", sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 22px;
    line-height: 1.5;
    color: #ff408b;
    background: linear-gradient(90deg, #faffca, rgba(250, 255, 202, 0));
    border-left: 5px solid #ff408b;
  }

  .manegol .cta {
    display: flex;
    font-family: "toppan-bunkyu-midashi-go-std", sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 22px;
    background: #066928;
    border-radius: 100px;
    color: #fff;
    padding: 1rem;
    margin: 2rem auto;
    justify-content: center;
    width: 100%;
    height: auto;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }

  .manegol .cta:hover {
    color: #ffeb3b;
    transform: translateY(-4px);
    box-shadow: 0 0 0 4px #ffeb3b;
  }
} /* ← PC用ブロックの閉じ括弧（元のCSSでは抜けていた） */

/* ---------- PAGE TOP BUTTON ---------- */

#page-top {
  position: fixed;
  right: 15px;
  bottom: 150px;
  z-index: 99;
  margin: 0;
  padding: 0;
}

#page-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #245b37;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
  border: 1px solid #faffca;
}

#page-top a::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 4px solid #fff;
  border-right: 4px solid #fff;
  transform: translateY(3px) rotate(-45deg);
}

#page-top a:hover {
  background-color: #ffed11;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}

@media (min-width: 768px) {
  #page-top {
    right: 25px;
    bottom: 250px;
  }

  #page-top a {
    width: 50px;
    height: 50px;
  }

  #page-top a::after {
    border-top: 5px solid #fff;
    border-right: 5px solid #fff;
  }
}

/* ==========================================================
   TABLET (768px〜1024px)
   ========================================================== */

@media (min-width: 768px) and (max-width: 1024px) {
  /* --- HERO --- */

  .first-view {
    --offset: 200;
  }

  .hero .hero-inner {
    max-width: 90%;
    gap: 10px;
    grid-template-columns: auto minmax(200px, 300px);
  }

  .hero h1.title {
    font-size: 42px;
  }

  .eyebrow-line {
    font-size: 17px;
  }

  .hero-logo img {
    max-width: 320px;
  }

  /* --- INFO PANEL --- */

  .info-panel {
    padding: 6px 40px 36px;
  }

  .info-section h2 {
    font-size: 18px;
  }

  .info-lead {
    font-size: 16px;
  }

  .info-value {
    font-size: 22px;
  }

  /* --- CTA（詳細はこちら） --- */

  .cta-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 3rem 0;
    margin: auto;
  }

  .cta-row .cta {
    display: inline-flex;
    visibility: visible;
    opacity: 1;
  }

  #page-top {
    bottom: 100px;
  }

  /* --- MENU --- */

  .menu_inner {
    padding: 10px 20px;
  }

  .nav_item a {
    font-size: 14px;
  }

  /* --- MANEGOL --- */

  .manegol {
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 16px;
  }

  .program-box {
    width: 100%;
    margin: 0 0 1.25rem;
  }

  .program-box img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
  }

  .program-copy {
    width: 100%;
    margin: 0;
  }

  .program-copy h2 {
    font-size: 26px;
  }

  .program-copy p {
    font-size: 16px;
  }

  .air-pill {
    font-size: 19px;
    padding: 8px 12px;
  }

  .manegol .cta {
    font-size: 19px;
    padding: 0.9rem;
    margin: 1.5rem auto 0;
  }
}

/* ==========================================================
   SHORT SCREEN（画面の高さが低いとき）
   ファーストビューに概要ボックスが収まるよう、文字と余白を少し詰める
   ========================================================== */

@media (min-width: 768px) and (max-height: 800px) {
  .hero .hero-inner {
    margin: 24px auto 96px;
  }
  .eyebrow-line {
    font-size: 16px;
  }
  .hero h1.title {
    font-size: 40px;
  }
  .presented {
    margin-top: 4px;
    font-size: 15px;
  }
  .hero-logo img {
    max-width: 340px;
  }
  .overview .info-section {
    margin-top: 22px;
  }
  .overview .info-lead {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.8;
  }
  .overview.info-panel {
    padding-bottom: 28px;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .hero .hero-inner {
    margin: 20px auto 66px;
  }
  .eyebrow-line {
    font-size: 15px;
  }
  .hero h1.title {
    font-size: 28px;
  }
  .hero-logo img {
    max-width: 160px;
  }
  .overview .info-lead {
    font-size: 14px;
    line-height: 1.7;
  }
}

footer #foot_menu section h2 {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Hiragino Sans", Meiryo, Arial, sans-serif;
  font-style: normal;
}