@charset "UTF-8";

/* ==========================================================================
   変数
   ========================================================================== */
:root {
  --color-text: #4d4d4d;
  --color-green: #34b87f;
  --color-pink: #eb6284;
  --color-blue: #599bbb;
  --color-yellow: #f0bd03;
  --color-lime: #bcd500;
  --color-lemon: #edf76b;
  --color-cream: #fffbc5;
  --color-sky: #acdfe4;
  --color-beige: #f2f0e4;
  --color-paper: #edeae1;

  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-pop: "Mochiy Pop One", var(--font-base);

  --content-width: 600px;
  @media (min-width: 1400px) {
    --content-width: 800px;
  }
  @media (min-width: 2000px) {
    --content-width: 1000px;
  }
  --header-height: 64px;
  /* SPヘッダー（画面上に固定）が占める高さ */
  --sp-header-space: calc(var(--header-height) + env(safe-area-inset-top));
  /* SPの応募メニュー（画面下に固定）が占める高さ */
  --sp-apply-height: 64px;
  --sp-apply-space: calc(var(--sp-apply-height) + env(safe-area-inset-bottom));
}


/* ==========================================================================
   リセット・基本設定
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;

  /* SP：ページ内リンクの移動先が固定ヘッダーに隠れないようにする */
  @media (max-width: 1100px) {
    scroll-padding-top: var(--sp-header-space);
  }

  @media (prefers-reduced-motion: reduce) {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.06em;

  /* SP：画面上に固定したヘッダーの分だけ下げる */
  @media (max-width: 1100px) {
    padding-top: var(--sp-header-space);
  }
}

/* 画面のふちの緑フレーム（PCのみ） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  border: solid var(--color-green);
  border-width: 20px 22px;
  pointer-events: none;

  @media (max-width: 1100px) {
    display: none;
  }
}

body.is-menu-open,
body:has(.modal[open]) {
  overflow: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}


/* ==========================================================================
   補助クラス
   ========================================================================== */
/* 改行位置の調整（span単位で折り返す） */
.ib {
  display: inline-block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* ==========================================================================
   ページ全体（中央600pxのコンテンツエリア）
   ========================================================================== */
.page {
  /* 上部の点線（::before）のマージンが外にはみ出して、上に余白ができるのを防ぐ */
  display: flow-root;
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  background: #fcfced;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.18);
  overflow-x: clip;
}

/* 上部のカラフルな点線 */
.page::before {
  content: "";
  display: block;
  height: 7px;
  margin: 6px 5px 0;
  background: url("../img/common/border-colorful.svg") repeat-x left center / auto 100%;
}


/* ==========================================================================
   ヘッダー（PC：左右固定 / SP：画面上に固定。左からロゴ・ハンバーガー）
   ========================================================================== */
.header {
  @media (max-width: 1100px) {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: var(--sp-header-space);
    padding: env(safe-area-inset-top) 12px 0 16px;
    background: var(--color-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }
}

/* 左側：ロゴ＋応募ボタン */
.header__side {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 72px;
  width: calc((100% - var(--content-width)) / 2);
  height: 100vh;
  padding-top: 20px;

  @media (max-width: 1100px) {
    position: static;
    flex: 1;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    width: auto;
    height: auto;
    padding-top: 0;
  }
}

/* PC：ロゴの上端を右側ナビの「TOP」の位置に合わせる（--nav-top は common.js で計測）
   JSが動かない場合は上の上下中央配置のまま */
.header__side.is-nav-aligned {
  @media (min-width: 1101px) {
    justify-content: flex-start;
    padding-top: var(--nav-top);
  }
}

/* PC：左の列に収まる範囲で最大300px（左右に最低10pxずつ余白を残す） */
.header__logo {
  display: block;
  width: min(300px, calc(100% - 20px));
  transition: transform 0.3s;
      padding-left: 20px;

  @media (max-width: 1100px) {
    width: 112px;
  }
  
  @media (min-width: 2000px) {
    width: 400px;
  }
}

/* 画像（width="207"）を枠の幅いっぱいに表示する */
.header__logo img {
  width: 100%;
}

.header__logo:hover {
  transform: scale(1.04);
}

/* 応募方法ボタン（PCのみ。SPは画面下の固定メニュー .fixed-apply に表示） */
.header__apply {
  display: block;
  width: 120px;
  transition: transform 0.3s;

  @media (max-width: 1100px) {
    display: none;
  }
}

.header__apply:hover {
  transform: translateY(-6px) rotate(-4deg);
}

/* 右上：入場無料 */
.header__free {
  position: fixed;
  /* 画像上部の余白（120pxで約7.5px）の分だけ上にずらし、リボンを画面上端に付ける */
  top: -7.5px;
  right: 23px;
  z-index: 10;
  width: 120px;

  @media (max-width: 1100px) {
    display: none;
  }
}

.header__free img {
  width: 100%;
}

/* ハンバーガーボタン（SPのみ） */
.header__menu-btn {
  display: none;

  @media (max-width: 1100px) {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
  }
}

.header__menu-line {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-green);
  transition: transform 0.3s, opacity 0.3s;
}

.header__menu-line:nth-child(1) {
  top: 17px;
}

.header__menu-line:nth-child(2) {
  top: 23px;
}

.header__menu-line:nth-child(3) {
  top: 29px;
}

.header__menu-btn.is-open .header__menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header__menu-btn.is-open .header__menu-line:nth-child(2) {
  opacity: 0;
}

.header__menu-btn.is-open .header__menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* JSが無効のとき：ボタンの代わりにリンク（.header__menu-nojs）を表示し、:target でメニューを開閉する
   JSが有効なときは common.js が <html> に .js を付け、通常のボタンを使う */
.js .header__menu-nojs,
html:not(.js) .js-menu-btn,
.header__menu-nojs--close {
  display: none;
}

@media (max-width: 1100px) {
  html:not(.js) .global-nav:target {
    visibility: visible;
    opacity: 1;
  }

  html:not(.js) .header:has(.global-nav:target) .header__menu-nojs--open {
    display: none;
  }

  html:not(.js) .header:has(.global-nav:target) .header__menu-nojs--close {
    display: block;
  }
}


/* ==========================================================================
   SP：画面下の固定メニュー（応募はこちら・応募方法）
   ========================================================================== */
.fixed-apply {
  display: none;

  @media (max-width: 1100px) {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 30px;
    width: 100%;
    height: var(--sp-apply-space);
    padding: 0 40px env(safe-area-inset-bottom);
    background: #e5688a;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
  }
  @media (max-width: 600px) {
    gap: 14px;
    padding: 0 12px env(safe-area-inset-bottom);
  }
}

.fixed-apply__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin: 0 auto;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #e5688a;
  font-family: var(--font-pop);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: opacity 0.3s;
  width: 60%;
}

.fixed-apply__btn:hover {
  opacity: 0.85;
}

/* 白枠のみのボタン */
.fixed-apply__btn--outline {
  background: transparent;
  color: #fff; width: 40%;
}


/* ==========================================================================
   ナビゲーション（PC：右側固定 / SP：ドロワー）
   ========================================================================== */
.global-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc((100% - var(--content-width)) / 2);
  height: 100vh;

  @media (max-width: 1100px) {
    top: var(--sp-header-space);
    bottom: var(--sp-apply-space);
    z-index: 95;
    display: block;
    width: 100%;
    height: auto;
    padding: 24px;
    background: var(--color-paper);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
  }
}

.global-nav.is-open {
  visibility: visible;
  opacity: 1;
}

.global-nav__list {
  display: grid;
  gap: 18px;

  @media (max-width: 1100px) {
    gap: 0;
    max-width: 400px;
    margin: 0 auto;
  }
}

.global-nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: color 0.3s;

  @media (max-width: 1100px) {
    padding: 14px 4px;
    border-bottom: 2px dashed #d5d0c2;
    font-size: 17px;
  }
    @media (min-width: 1400px) {
    font-size: 15px;
  }
    @media (min-width: 1600px) {
    font-size: 17px;
  }
    @media (min-width: 2000px) {
    font-size: 20px;
  }
}

/* 先頭の丸（現在ページは大きな緑の丸） */
.global-nav__link::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #bbb 0 4px, transparent 4.5px);
  transition: background 0.3s;
}

.global-nav__link:hover {
  color: var(--color-green);
}

.global-nav__link:hover::before {
  background: radial-gradient(circle, var(--color-green) 0 5px, transparent 5.5px);
  animation: nav-dot-pulse 0.9s ease-in-out infinite;
}

/* hover中：緑の丸をゆっくり縮小→拡大（くり返し） */
@keyframes nav-dot-pulse {
  0%,
  100% {
    scale: 1;
  }

  45% {
    scale: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-nav__link:hover::before {
    animation: none;
  }
}

.global-nav__link.is-current {
  color: var(--color-green);
}

.global-nav__link.is-current::before {
  background: radial-gradient(circle, var(--color-green) 0 9.5px, transparent 10px);
}


/* ==========================================================================
   ボタン
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 354px;
  min-height: 56px;
  padding: 8px 40px;
  border-radius: 999px;
  background: var(--color-pink);
  box-shadow: 3px 4px 6px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: var(--font-pop);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;

  @media (max-width: 600px) {
    min-width: 0;
    width: 100%;
    max-width: 354px;
    font-size: 20px;
  }
}

/* 内側の白い点線 */
.btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px dashed #fff;
  border-radius: inherit;
  pointer-events: none;
}

.btn:hover {
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  transform: translate(2px, 3px);
}

.btn--blue {
  background: var(--color-blue);
}

.btn--green {
  background: var(--color-green);
}

.btn--yellow {
  background: var(--color-yellow);
}

/* 小さいボタン（下層ページのリンク一覧など） */
.btn--small {
  min-width: 0;
  min-height: 48px;
  padding: 6px 28px;
  font-size: 16px;

  @media (max-width: 600px) {
    width: auto;
  }
}

/* 遷移先未定のボタン */
.btn.is-disabled {
  background: #b5b5b5;
  cursor: not-allowed;
}

.btn.is-disabled:hover {
  box-shadow: 3px 4px 6px rgba(0, 0, 0, 0.2);
  transform: none;
}

.btn__sub {
  display: block;
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* 外部リンク用の小さなボタン */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 2px solid var(--color-green);
  border-radius: 999px;
  background: #fff;
  color: var(--color-green);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  transition: background 0.3s, color 0.3s;
}

.link-btn::after {
  content: "↗";
  flex-shrink: 0;
}

.link-btn:hover {
  background: var(--color-green);
  color: #fff;
}

/* 下線付きテキストリンク（モーダルを開くボタンなど） */
.text-link {
  border-bottom: 2px solid var(--color-pink);
  line-height: 1.4;
  transition: color 0.3s;
}

.text-link:hover {
  color: var(--color-pink);
}


/* ==========================================================================
   見出し
   ========================================================================== */
/* セクション見出し（背景の丸＋装飾） */
.section-head {
  position: relative;
  padding-top: 30px;
}

.section-head__heading {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 89px;
  margin: 0 auto;
}

/* 背景の丸（見出し文字の左端を基準に配置） */
.section-head__heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: -58px;
  z-index: -1;
  width: 110px;
  height: 89px;
  background: url("../img/common/heading-bg-yellow.svg") no-repeat center / contain;
}

.section-head--white .section-head__heading::before {
  background-image: url("../img/common/heading-bg-white.svg");
}

/* 画像がない見出し用のテキスト */
.section-head__text {
  color: var(--color-green);
  font-family: var(--font-pop);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.18em;
}

.section-head__deco {
  position: absolute;
}

.section-head__deco--sun {
  top: 0;
  left: calc(50% - 205px);
  width: 45px;

  @media (max-width: 600px) {
    left: calc(50% - 160px);
  }
}

.section-head__deco--bird {
  top: 65px;
  left: calc(50% - 252px);
  width: 27px;

  @media (max-width: 600px) {
    left: inherit;
    right:15%;
    top: 90px;
  }
}

.section-head__deco--star {
  top: 104px;
  left: calc(50% + 180px);
  width: 24px;

  @media (max-width: 600px) {
    left: calc(50% + 100px);
    top: 30px;
  }
}

/* 小見出し（ジグザグの下線） */
.sub-heading {
  width: fit-content;
  margin: 0 auto;
  padding-bottom: 14px;
  background: url("../img/common/border-zigzag-green.svg") round no-repeat left bottom / 32px auto;
  font-family: var(--font-pop);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-align: center;

  @media (max-width: 600px) {
    font-size: 21px;
  }
}

/* リード文 */
.lead-text {
  font-weight: 700;
  line-height: 1.85;
  text-align: center;

  @media (max-width: 600px) {
    font-size: 14px;
    letter-spacing: 0.02em;
  }
}


/* ==========================================================================
   注意書き・リスト
   ========================================================================== */
/* ※付きのリスト（2行目以降を字下げ） */
.note-list {
  font-size: 13px;
  line-height: 1.8;
}

.note-list li {
  padding-left: 1em;
  text-indent: -1em;
}

.note-list li::before {
  content: "※";
}

/* 画像準備中の枠 */
.image-dummy {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: #8c8c8c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}


/* ==========================================================================
   セクション上部の雲（各ページ共通）
   ========================================================================== */
.cloud-top {
  position: relative;
}

.cloud-top::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 1px);
  left: 0;
  width: 100%;
  aspect-ratio: 651 / 70;
  background: url("../img/common/border-cream.svg") no-repeat center bottom / 100% auto;
}

.cloud-top--blue::before {
  background-image: url("../img/common/border-light-blue.svg");
}

.cloud-top--lemon::before {
  background-image: url("../img/common/border-light-green.svg");
}

.cloud-top--white::before {
  background-image: url("../img/common/border-off-whie.svg");
}

.cloud-top--orange::before {
  background-image: url("../img/common/border-orange.svg");
}


/* ==========================================================================
   下層ページ共通：ページ見出し
   ========================================================================== */
.page-head {
  position: relative;
  padding: 20px 26px 40px;

  @media (max-width: 600px) {
    padding: 16px 16px 32px;
  }
}

.page-head__lead {
  margin-top: 24px;
}


/* ==========================================================================
   モーダル
   ========================================================================== */
.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 64px);
  padding: 0;
  border: none;
  border-radius: 20px;
  color: var(--color-text);
  overscroll-behavior: contain;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.modal__inner {
  padding: 48px 32px 36px;

  @media (max-width: 600px) {
    padding: 48px 18px 28px;
  }
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-green);
  transition: opacity 0.3s;
}

.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 11px;
  width: 18px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.modal__close::after {
  transform: rotate(-45deg);
}

.modal__close:hover {
  opacity: 0.75;
}

.modal__title {
  margin-bottom: 20px;
  color: var(--color-green);
  font-family: var(--font-pop);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-align: center;
}

.modal__title-sub {
  display: inline-block;
  margin-left: 0.3em;
  font-size: 14px;
}

.modal__image {
  max-width: 320px;
  margin: 0 auto 16px;
  aspect-ratio: 420 / 250;
  border-radius: 10px;
  overflow: hidden;
}

.modal__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal__item-name {
  margin-bottom: 14px;
  font-weight: 700;
  text-align: center;
}

.modal__text {
  font-size: 14px;
  line-height: 1.9;
}

.modal__text + .modal__text {
  margin-top: 1em;
}

.modal__list {
  margin-top: 4px;
}

.modal__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.modal__copyright {
  margin-top: 16px;
  color: #888;
  font-size: 11px;
  text-align: center;
}


/* ==========================================================================
   フッター
   ========================================================================== */
.footer {
  position: relative;
  margin-top: 64px;
  padding: 50px 30px 50px;
  background: var(--color-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;
  text-align: center;

  @media (max-width: 1100px) {
    padding-bottom: calc(50px + var(--sp-apply-space));
  }

  @media (max-width: 600px) {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* 上部の雲 */
.footer::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 1px);
  left: 0;
  width: 100%;
  aspect-ratio: 651 / 70;
  background: url("../img/common/border-green.svg") no-repeat center bottom / 100% auto;
}

.footer__logo {
  display: block;
  width: 300px;
  margin: 0 auto;

  @media (max-width: 500px) {
    width: 240px;
  }
}

.footer__media {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 15px;
  width: fit-content;
  max-width: 600px;
  margin: 40px auto 40px;
}

.footer__media a {
  display: block;
  transition: opacity 0.3s;
}

.footer__media a:hover {
  opacity: 0.7;
}

.footer__media img {
  width: auto;
  height: 36px;

  @media (max-width: 500px) {
     height: 28px;
  }
}

/* 協賛ロゴ（トップページのみ）：雑誌ロゴと同じ高さ22pxで並べる */
.footer__sponsor-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, 100px);
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-bottom: 40px;
}
.footer__sponsor-logos li{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 60px;
  background: #fff;
  border: 1px solid var(--color-text);
  padding: 5px;
}
.footer__sponsor-logos img {
 display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;

}

/* 画像準備中の枠（雑誌ロゴ1つ分くらいの大きさ） */
.footer__sponsor-dummy {
  display: block;
  width: 74px;
  height: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  border-radius: 3px;
}

.footer__label {
  display: inline-block;
  margin: 28px 0 10px;
  padding: 1px 16px;
  border-radius: 3px;
  background: #fff;
  color: var(--color-green);
  font-size: 12px;
}

.footer__sponsors {
  text-align: left;
}

.footer__contact a {
  text-decoration: underline;
}

.footer__policy {
  margin-top: 28px;
}

.footer__copyright {
  margin-top: 4px;
}


/* ==========================================================================
   プログラムカード（ステージ・体験ページ共通）
   お土産カードに合わせた4色のフレーム（色付きの見出し帯＋枠）。色は 黄→黄緑→青→ピンク の順でくり返す
   ========================================================================== */
.program-card {
  --card-color: var(--color-yellow);
  padding: 24px 24px 20px;
  border: 6px solid var(--card-color);
  border-radius: 16px;
  background: #fff;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.12);
  overflow: clip;

  @media (max-width: 600px) {
    padding: 20px 16px 16px;
  }
}

li:nth-child(4n + 2) > .program-card {
  --card-color: var(--color-lime);
}

li:nth-child(4n + 3) > .program-card {
  --card-color: var(--color-blue);
}

li:nth-child(4n) > .program-card {
  --card-color: var(--color-pink);
}

.program-card__title {
  margin: -24px -24px 0;
  padding: 8px 24px 12px;
  background: var(--card-color);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;

  @media (max-width: 600px) {
    margin: -20px -16px 0;
    padding: 8px 16px 10px;
    font-size: 17px;
  }
  .small {
    font-size: 0.8em;
  }
  
  .icon{
    width: 50px;
    height: 20px;
    margin-right: 0.3em;
    display: inline-block;
    position: relative;

    &:after{
      content: "";
      position: absolute;
      top: -10px;
      left: 0;
      width: 100%;
      height: 40px;
      z-index: 1000;
      background: url(../img/common/program/icon-stage.svg) no-repeat center / contain;
    }
    &.icon-experience:after{
      background: url(../img/common/program/icon-experience.svg) no-repeat center / contain;
    }
    &.icon-attraction:after{
      background: url(../img/common/program/icon-attraction.svg) no-repeat center / contain;
    }
    &.icon-exhibition:after{
      background: url(../img/common/program/icon-exhibition.svg) no-repeat center / contain;
    }
  }
}

.program-card__times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
}

.program-card__time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}

.program-card__time-label {
  padding: 0 10px;
  border-radius: 999px;
  background: var(--color-blue);
  color: #fff;
  font-size: 12px;
  line-height: 1.8;
}

.program-card__time:nth-child(2) .program-card__time-label {
  background: var(--color-pink);
}

/* 画像：比率が揃わないため、画像の縦横比のまま表示（トリミングしない） */
.program-card__image {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
}

.program-card__image .image-dummy {
  aspect-ratio: 16 / 9;
}

.program-card__image img {
  width: 100%;
}

.program-card__text {
  margin-top: 14px;
  font-size: 14px;
}

.program-card__info {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.program-card__row {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--color-beige);
  font-size: 13px;
  line-height: 1.7;

  @media (max-width: 600px) {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.program-card__term {
  align-self: start;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--color-green);
  color: #fff;
  font-weight: 700;
  text-align: center;

  @media (max-width: 600px) {
    width: fit-content;
  }
}

.program-card__desc {
  margin: 0;
}

.program-card__notes {
  margin-top: 12px;
}

.program-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.program-card__copyright {
  margin-top: 12px;
  color: #999;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0;
}


/* ==========================================================================
   スクロール出現アニメーション（common.js で対象に data-reveal を付与）
   ・JSが動いたとき（html.is-reveal-ready）だけ非表示にするため、JS無効時も表示される
   ・transform ではなく translate を使い、既存の transform・hover の動きと重ならないようにする
   ・transition ではなく animation を使い、既存の transition の指定を上書きしないようにする
   ========================================================================== */
.is-reveal-ready [data-reveal] {
  opacity: 0;
}

.is-reveal-ready [data-reveal].is-revealed {
  animation: reveal-up 1.2s cubic-bezier(0.25, 0.8, 0.35, 1) both;
}
@keyframes reveal-up {
  0% {
    opacity: 0;
    translate: 0 20px;
  }

  35% {
    opacity: 0.08;
  }

  100% {
    opacity: 1;
    translate: 0 0;
  }
}

/* セクション見出しの飾り：最長10秒で止める
   出現と同時（.is-deco-spin）に動かす
   ・sun：回転開始。だんだん遅くなって10秒で止まる
   ・star：ゆっくり点滅しながら拡大（2.5秒×2回＝5秒）＋ゆっくり144°回転しながら右へ28px移動（5秒、移動後はその位置で止まる）
     ※星は5つの角なので、144°（72°×2）回すと元と同じ向きで止まる
   見出しの出現後（.is-deco-active）に動かす
   ・bird：右から左へ、上下にふわふわ揺れながら飛んでくる（2.4秒） */
.is-reveal-ready .section-head:not(.is-deco-active) .section-head__deco--bird {
  opacity: 0;
}

.section-head.is-deco-spin .section-head__deco--sun {
  animation: deco-spin 10s cubic-bezier(0.25, 0.5, 0.35, 1);
}

.section-head.is-deco-spin .section-head__deco--star {
  animation:
    deco-glow 2.5s ease-in-out 2,
    deco-drift 5s ease-in-out both;
}

.section-head.is-deco-active .section-head__deco--bird {
  animation: deco-fly-in 2.4s ease-out both;
}

@keyframes deco-spin {
  from {
    rotate: 0deg;
  }

  to {
    rotate: 360deg;
  }
}

/* 点滅（opacity・scale）とは別のプロパティ（rotate・translate）で動かし、重ねても打ち消し合わないようにする */
@keyframes deco-drift {
  from {
    rotate: 0deg;
    translate: 0 0;
  }

  to {
    rotate: 144deg;
    translate: 28px 0;
  }
}

@keyframes deco-glow {
  0%,
  100% {
    opacity: 1;
    scale: 1;
  }

  50% {
    opacity: 0.4;
    scale: 1.25;
  }
}

/* 早めに不透明にして、移動している姿が見えるようにする */
@keyframes deco-fly-in {
  0% {
    opacity: 0;
    translate: 70px 0;
  }

  20% {
    opacity: 1;
    translate: 52px -6px;
  }

  45% {
    translate: 30px 0;
  }

  70% {
    translate: 12px -5px;
  }

  100% {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-reveal-ready [data-reveal] {
    opacity: 1;
    animation: none;
  }

  .section-head.is-deco-spin .section-head__deco,
  .section-head.is-deco-active .section-head__deco {
    animation: none;
  }
}
