:root {
  --black: #2b2b2b;
  --bg-color: #fffdf8;
  --soft-pink: #ffb3c6;
  --warm-yellow: #ffee99;
  --muted-orange: #ffc4a6;
  --soft-blue: #aae0fa;
  --muted-green: #9df2c1;
  --lilac: #eaccf0;
  --bold-border: 2px solid var(--black);
  --bold-shadow: 6px 6px 0px rgba(43, 43, 43, 0.1);
  --font-kicker: 'Concert One', sans-serif;
}

html {
  scroll-padding-top: 12px;
  scroll-behavior: smooth;
}

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

/* 方眼ノート風：青いマス目 + 5マスごとの少し濃い線 + 左の赤い余白罫線 */
body {
  --notebook-grid: 22px;
  --notebook-line: rgba(65, 125, 210, 0.12);
  --notebook-line-strong: rgba(50, 105, 195, 0.18);
  --notebook-margin: rgba(220, 72, 82, 0.0);
  font-family: 'Zen Maru Gothic', sans-serif;
  color: var(--black);
  background-color: #fffef6;
  background-image:
    repeating-linear-gradient(0deg,
      transparent 0,
      transparent calc(var(--notebook-grid) * 5 - 1px),
      var(--notebook-line-strong) calc(var(--notebook-grid) * 5 - 1px),
      var(--notebook-line-strong) calc(var(--notebook-grid) * 5)),
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent calc(var(--notebook-grid) * 5 - 1px),
      var(--notebook-line-strong) calc(var(--notebook-grid) * 5 - 1px),
      var(--notebook-line-strong) calc(var(--notebook-grid) * 5)),
    repeating-linear-gradient(0deg,
      transparent 0,
      transparent calc(var(--notebook-grid) - 1px),
      var(--notebook-line) calc(var(--notebook-grid) - 1px),
      var(--notebook-line) var(--notebook-grid)),
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent calc(var(--notebook-grid) - 1px),
      var(--notebook-line) calc(var(--notebook-grid) - 1px),
      var(--notebook-line) var(--notebook-grid)),
    linear-gradient(90deg,
      transparent 0,
      transparent 26px,
      var(--notebook-margin) 26px,
      var(--notebook-margin) 29px,
      transparent 29px);
  background-size:
    100% calc(var(--notebook-grid) * 5),
    calc(var(--notebook-grid) * 5) 100%,
    100% var(--notebook-grid),
    var(--notebook-grid) 100%,
    100% 100%;
  background-attachment: local, local, local, local, local;
}

/* モバイル：PC より粗く薄い 2 層だけの軽量方眼（多層・local は使わない） */
@media (max-width: 767px) {
  html {
    scroll-behavior: auto;
  }

  body {
    --mobile-note-grid: 26px;
    --mobile-note-line: rgba(62, 179, 242, 0.125);
    background-color: #fffef6;
    background-image:
      repeating-linear-gradient(0deg,
        transparent 0,
        transparent calc(var(--mobile-note-grid) - 1px),
        var(--mobile-note-line) calc(var(--mobile-note-grid) - 1px),
        var(--mobile-note-line) var(--mobile-note-grid)),
      repeating-linear-gradient(90deg,
        transparent 0,
        transparent calc(var(--mobile-note-grid) - 1px),
        var(--mobile-note-line) calc(var(--mobile-note-grid) - 1px),
        var(--mobile-note-line) var(--mobile-note-grid));
    background-size:
      100% var(--mobile-note-grid),
      var(--mobile-note-grid) 100%;
    background-attachment: scroll, scroll;
  }
}

/* GSAP 初期化前のヒーロー先出しを抑止（FOUC 対策） */
html.hero-intro-pending .hero-section .main-title,
html.hero-intro-pending .hero-section .hero-title-deco-inline,
html.hero-intro-pending .hero-section .hero-sub-wrapper,
html.hero-intro-pending .hero-section .hero-box {
  opacity: 0;
}

html.hero-intro-pending .hero-title-deco-fixed .hero-title-deco {
  opacity: 0;
}

html.hero-intro-pending .slider-section {
  opacity: 0;
}

/* --- スクロール検証用（index.html のクエリで有効化）--- */
html.debug-no-ambient .ambient-decor {
  display: none !important;
}

html.debug-no-grid body {
  background-image: none;
  background-color: #fffef6;
}

.application-closed-only {
  display: none !important;
}

html.application-closed .application-open-only {
  display: none !important;
}

html.application-closed .application-closed-only {
  display: block !important;
}

html.application-closed span.application-closed-only {
  display: inline !important;
}

.application-closed-message {
  color: #d60000;
  font-weight: 900;
  font-size: clamp(1.08rem, 2.8vw, 1.5rem);
  line-height: 1.55;
  flex-basis: 100%;
  margin: 4px auto 0;
  padding: 0;
  text-align: center;
}

.application-closed-message__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.application-closed-message__link:hover,
.application-closed-message__link:focus {
  color: inherit;
  text-decoration-thickness: 3px;
}

.application-closed-message__break-under-1000 {
  display: none;
}

@media (max-width: 999px) {
  .application-closed-message__break-under-1000 {
    display: block;
  }
}

@media (max-width: 767px) {
  .application-closed-message {
    font-size: clamp(1.2rem, 5.4vw, 1.55rem);
    line-height: 1.55;
  }
}

.section-anchor,
.flow-anchor {
  scroll-margin-top: 0.75rem;
}

.section-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0;
  font-weight: 700;
}

.section-kicker--center {
  justify-content: center;
  text-align: center;
}

.section-kicker--center .section-kicker__ja {
  width: 100%;
}

.section-kicker--tight {
  margin-bottom: 1rem;
}

.section-kicker__en {
  font-family: var(--font-kicker);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: #58ba37;
  text-transform: uppercase;
}

.section-kicker__ja {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.section-kicker--card-title {
  justify-content: center;
  text-align: center;
  border-bottom: 2px dashed var(--black);
  padding-bottom: 12px;
  margin-bottom: 1.25rem;
}

.section-kicker--card-title .section-kicker__ja {
  width: 100%;
  font-size: 1.25rem;
}

/* Main content above fixed ambient layer */
.main-content {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

/* パネル類の既定（親セクションの z-index 内での相対） */
.info-card,
.section-title {
  position: relative;
  z-index: 1;
}

/* 固定イラスト z:2 の上に来るブロック z:3 */
.hero-section,
.slider-section,
.info-grid,
.requirements-section,
.flow-section article#briefing,
.voices-section,
.form-section,
.main-content>footer {
  position: relative;
  z-index: 3;
}

/* 固定イラスト z:2 の「下」：出前授業当日のイメージ・登録の流れ・FAQ・参考情報・問合せ先 */
.schedule-section,
.flow-section article#flow,
.flow-section article#faq,
.flow-section article#ref-info,
.flow-section article#contact-info {
  position: relative;
  z-index: 1;
}

.header {
  padding: 20px;
  background-color: #fff;
  border-bottom: var(--bold-border);
}

.logo-area img {
  height: 40px;
}

.hero-section {
  position: relative;
  padding: 80px 20px 60px;
  background-color: transparent;
  overflow: hidden;
}

/* タイトル左右イラスト：ビューポート固定（541px 以上で表示、540px 以下は非表示） */
.hero-title-deco-fixed {
  position: fixed;
  top: clamp(88px, 8vh, 168px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.75rem, 3.5vw, 2.5rem);
  padding: 0 clamp(8px, 2vw, 24px);
  pointer-events: none;
  z-index: 2;
}

.hero-title-deco-fixed__gap {
  flex: 0 0 auto;
  width: min(78vw, 28rem);
  min-width: 14rem;
  min-height: 1px;
}

.hero-title-deco-fixed__float {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.hero-title-deco {
  width: clamp(88px, 18vw, 220px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  flex-shrink: 0;
}

.hero-title-wrap {
  position: relative;
  z-index: 2;
  max-width: min(1100px, 100%);
  margin: 0 auto 25px;
  padding: 0 clamp(8px, 2vw, 24px);
}

/* 540px 以下のみ：タイトル直下の左右イラスト */
.hero-title-deco-inline {
  display: none;
}

.hero-title-deco-inline__img {
  width: clamp(72px, 16vw, 200px);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* 人イラストのふわ浮き：全幅共通（GSAP は img の入場のみ）。reduce-motion 時は停止 */
@media (prefers-reduced-motion: no-preference) {

  html:not(.reduce-motion) .hero-title-deco-inline__float,
  html:not(.reduce-motion) .hero-title-deco-fixed__float {
    animation: hero-inline-float 5.5s ease-in-out infinite;
  }

  html:not(.reduce-motion) .hero-title-deco-inline__float:nth-child(2) {
    animation-delay: -2.75s;
  }

  html:not(.reduce-motion) .hero-title-deco-fixed>.hero-title-deco-fixed__float:nth-child(3) {
    animation-delay: -2.75s;
  }
}

.main-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: 'Yusei Magic', sans-serif;
  font-weight: 400;
  font-size: 5rem;
  line-height: 1.15;
  color: #383838;
  -webkit-text-stroke: 0;
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.07);
  letter-spacing: 0.045em;
}

/* メインタイトル：サブタイトルと同系の黄色斜線マーカー */
.main-title__line {
  position: relative;
  display: inline-block;
  z-index: 0;
  padding: 0 0.05em 0.03em;
  margin: 0 -0.03em;
}

/* 斜線ストライプ＋両端を斜めカット（実体要素：GSAP で左→右 scaleX） */
.main-title__line__bar {
  position: absolute;
  z-index: 0;
  left: -0.06em;
  right: -0.06em;
  bottom: -0.03em;
  height: 0.32em;
  transform-origin: left center;
  pointer-events: none;
  background-color: #f9fadf;
  background-image: repeating-linear-gradient(-37deg, transparent 0 3px, #6af7c3 3px 6px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: left bottom;
  -webkit-clip-path: polygon(0.42em 0%, 100% 0%, calc(100% - 0.42em) 100%, 0% 100%);
  clip-path: polygon(0.42em 0%, 100% 0%, calc(100% - 0.42em) 100%, 0% 100%);
  filter: drop-shadow(0 0.06em 0 rgba(200, 190, 60, 0.2));
}

html.reduce-motion .main-title__line__bar {
  transform: none !important;
}

.main-title.char-splitting .main-title__line .char {
  position: relative;
  z-index: 1;
}

.sub-title {
  position: relative;
  z-index: 2;
  font-family: 'Yusei Magic', sans-serif;
  font-weight: 400;
  font-size: 1.8rem;
  margin: 0;
  text-align: left;
  color: #4a4a4a;
  line-height: 1.45;
}

/* 541px 以上：メガホン左＋サブタイトル横並び */
.hero-sub-wrapper {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 25px;
}

.hero-megaphone__float {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-megaphone {
  width: 105px;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.reduce-motion) .hero-megaphone__float {
    animation: hero-megaphone-drift 4.8s ease-in-out infinite;
  }
}

.hero-box {
  position: relative;
  z-index: 2;
  background: #fff;
  border: var(--bold-border);
  box-shadow: var(--bold-shadow);
  border-radius: 12px;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 500;
  line-height: 1.8;
  text-align: left;
}

/* 背景装飾: 次世代グラデーション調のエッジなし円 — 位置は JS、スクロールは GSAP */
.ambient-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-decor__icon {
  position: absolute;
  box-sizing: border-box;
  will-change: transform;
}

@media (max-width: 767px) {

  .ambient-decor__icon,
  .ambient-decor__rise,
  .ambient-decor__float-inner {
    will-change: auto;
  }
}

/* 上方向へのゆっくりした漂い（スクロール用 transform と分離） */
.ambient-decor__rise {
  display: block;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.ambient-decor__float-inner {
  display: block;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.ambient-decor__orb {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: none;
  box-shadow: none;
  outline: none;
}

html.reduce-motion .ambient-decor {
  display: none;
}

.slider-section {
  margin: 10px auto 80px;
  max-width: 900px;
  padding: 0 20px;
}

.schedule-cta-wrap {
  margin-top: 80px;
  margin-bottom: 50px;
}

/* スケジュール欄：2枚のカードを同じ最大幅で中央寄せ */
.schedule-section__card {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.schedule-section__card+.schedule-section__card {
  margin-top: 1.75rem;
}

/* 年間スケジュール：イエローベタ（他ブロックと同様グラデなし） */
.info-card.info-card--annual-schedule {
  background-color: var(--warm-yellow);
  text-align: left;
}

.annual-schedule-timeline {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
}

.annual-schedule-item {
  display: grid;
  grid-template-columns: 5.85rem minmax(0, 1fr);
  gap: 0.75rem 1.15rem;
  align-items: start;
  position: relative;
  padding-bottom: 1.35rem;
}

.annual-schedule-item:last-child {
  padding-bottom: 0;
}

.annual-schedule-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(5.85rem / 2);
  transform: translateX(-50%);
  top: 2.65rem;
  bottom: 0.2rem;
  width: 3px;
  background: rgba(43, 43, 43, 0.15);
  border-radius: 2px;
}

.annual-schedule-item__when {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 4.65rem;
  padding: 0.42rem 0.72rem;
  margin-top: 0.12rem;
  background: #fff;
  border: var(--bold-border);
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  box-shadow: 3px 3px 0 rgba(43, 43, 43, 0.1);
  z-index: 1;
  position: relative;
}

.annual-schedule-item__body {
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(43, 43, 43, 0.22);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: 2px 2px 0 rgba(43, 43, 43, 0.07);
}

.annual-schedule-item__body p {
  line-height: 1.75;
}

p.annual-schedule-item__title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.45rem;
  line-height: 1.35;
  border-bottom: 1px dotted var(--black);
}

.annual-schedule-item__title-note {
  font-weight: 500;
}

.annual-schedule-item__sub {
  font-size: 0.95em;
  font-weight: 500;
}

.annual-schedule-footnote {
  margin-top: 1.2rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(43, 43, 43, 0.28);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  color: rgba(43, 43, 43, 0.82);
}

@media (max-width: 520px) {
  .annual-schedule-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding-bottom: 1.1rem;
  }

  .annual-schedule-item:not(:last-child)::before {
    display: none;
  }

  .annual-schedule-item__when {
    justify-self: start;
  }
}

.swiper {
  border: var(--bold-border);
  box-shadow: var(--bold-shadow);
  border-radius: 12px;
  background: #fff;
}

/* fade モード：クロスフェードでトランジションを滑らかに（9→1 も横スクロールで巻き戻らない） */
.mySwiper.swiper-fade .swiper-slide {
  pointer-events: none;
}

.mySwiper.swiper-fade .swiper-slide-active {
  pointer-events: auto;
}

/* ナビ：デスクトップはホバー時のみ／タッチは操作時のみ（.mySwiper--nav-visible） */
.mySwiper .swiper-button-next,
.mySwiper .swiper-button-prev {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-top: calc(-3rem / 2);
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {

  .mySwiper:hover .swiper-button-next,
  .mySwiper:hover .swiper-button-prev {
    opacity: 0.8;
    pointer-events: auto;
  }

  .mySwiper:hover .swiper-button-next.swiper-button-disabled,
  .mySwiper:hover .swiper-button-prev.swiper-button-disabled {
    opacity: 0.24;
    pointer-events: none;
  }

  .mySwiper:focus-within .swiper-button-next,
  .mySwiper:focus-within .swiper-button-prev {
    opacity: 0.8;
    pointer-events: auto;
  }

  .mySwiper:focus-within .swiper-button-next.swiper-button-disabled,
  .mySwiper:focus-within .swiper-button-prev.swiper-button-disabled {
    opacity: 0.24;
    pointer-events: none;
  }
}

@media (hover: none),
(pointer: coarse) {

  .mySwiper .swiper-button-next,
  .mySwiper .swiper-button-prev {
    opacity: 0;
    pointer-events: none;
  }

  .mySwiper.mySwiper--nav-visible .swiper-button-next,
  .mySwiper.mySwiper--nav-visible .swiper-button-prev {
    opacity: 0.8;
    pointer-events: auto;
  }

  .mySwiper.mySwiper--nav-visible .swiper-button-next.swiper-button-disabled,
  .mySwiper.mySwiper--nav-visible .swiper-button-prev.swiper-button-disabled {
    opacity: 0.24;
    pointer-events: none;
  }
}

/* 六角形ポリゴンで矢印（右向き）— 前へは scaleX(-1) */
.mySwiper .swiper-button-next:after,
.mySwiper .swiper-button-prev:after {
  content: "" !important;
  font-size: 0 !important;
  display: block;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  background-color: #fff;
  clip-path: polygon(60% 0%, 100% 50%, 60% 100%, 0% 100%, 45% 50%, 0% 0%);
  transform-origin: center center;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.22));
  transition: filter 0.2s ease;
}

.mySwiper .swiper-button-prev:after {
  transform: scaleX(-1) !important;
}

.mySwiper .swiper-button-next:hover:after,
.mySwiper .swiper-button-prev:hover:after {
  filter: brightness(1.05) drop-shadow(0 3px 12px rgba(0, 0, 0, 0.28));
}

@media (max-width: 767px) {

  .mySwiper .swiper-button-next,
  .mySwiper .swiper-button-prev {
    width: 2.35rem;
    height: 2.35rem;
    margin-top: calc(-2.35rem / 2);
  }

  .mySwiper .swiper-button-next:after,
  .mySwiper .swiper-button-prev:after {
    width: 2.35rem;
    height: 2.35rem;
  }
}

.swiper-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 9px;
}

.info-card {
  background: #fff;
  border: var(--bold-border);
  box-shadow: var(--bold-shadow);
  border-radius: 20px;
  /* More rounded for pop feel */
  padding: 40px;
  /* Increased padding for breathability */
  margin-bottom: 20px;
  height: 100%;
  /* Ensure equal height in flex columns */
  width: 100%;
  /* Ensure full width in flex columns */
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.info-card:hover {
  box-shadow: 10px 10px 0px rgba(43, 43, 43, 0.12);
}

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

.bg-orange {
  background-color: var(--muted-orange);
}

.bg-purple {
  background-color: var(--lilac);
}

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

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

.bg-pink {
  background-color: var(--soft-pink);
}

.info-card h3 {
  font-family: 'Yusei Magic', sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.45;
  border-bottom: 2px dashed var(--black);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* セクション見出し（Yusei Magic） */
#about-title.section-title,
#schedule-heading.section-title,
#schedule-title.section-title,
#requirements-title.section-title,
#voices-title.section-title,
#flow-title.section-title,
#briefing-title.section-title,
#qa-title.section-title,
#ref-info-title.section-title,
#contact-info-title.section-title,
#apply-form-title.section-title {
  font-family: 'Yusei Magic', sans-serif;
  font-weight: 400;
}

.info-card ul {
  padding-left: 20px;
  line-height: 1.8;
  font-weight: 500;
}

.flow-section .info-card ul {
  padding-left: 10px;
}

/* 年間スケジュール／当日イメージのみ ul 左余白なし（.info-card ul 20px を上書き、他セクションはそのまま） */
.schedule-section .info-card ul {
  padding-left: 0;
}

.info-card p {
  font-weight: 500;
  line-height: 1.8;
}

/* 年間スケジュール：タイトル行のみ太字（.info-card p より詳細度を上げる） */
.info-card.info-card--annual-schedule p.annual-schedule-item__title {
  font-weight: 700;
}

.highlight-text {
  font-weight: 700;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid var(--black);
  margin-top: 15px;
}

.sub-box {
  background: #fff;
  border: 2px solid var(--black);
  border-radius: 8px;
  padding: 15px;
}

.schedule-list {
  list-style: none;
  padding: 0;
  font-weight: 500;
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
}

.schedule-list li {
  padding: 8px 0;
  border-bottom: 1px dotted var(--black);
}

.schedule-list span {
  display: inline-block;
  width: 120px;
  font-weight: 700;
}

.cta-button {
  display: inline-block;
  background-color: var(--soft-pink);
  color: var(--black);
  font-weight: 900;
  font-size: 1.2rem;
  padding: 15px 40px;
  border: var(--bold-border);
  border-radius: 40px;
  box-shadow: 4px 4px 0px var(--black);
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--black);
  color: var(--black);
}

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

.requirements-section {
  max-width: 900px;
  padding-top: 60px;
  padding-bottom: 20px;
}

.flow-section {
  max-width: 600px;
}

.voices-section,
.flow-section,
.form-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* --- Section Visual Divider --- */
.section-wave-divider {
  width: 100%;
  max-width: 800px;
  height: 40px;
  margin: 0px auto;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40' width='80' height='40'%3E%3Cpath d='M 0 10 C 15 10 25 30 40 30 C 55 30 65 10 80 10' fill='none' stroke='%232b2b2b' stroke-width='11' stroke-linecap='butt' /%3E%3Cpath d='M 0 10 C 15 10 25 30 40 30 C 55 30 65 10 80 10' fill='none' stroke='%23ffb3c6' stroke-width='7' stroke-linecap='butt' /%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 80px 40px;
  filter: drop-shadow(6px 6px 0px rgba(43, 43, 43, 0.1));
}

.section-title {
  font-weight: 900;
  text-align: center;
  margin-bottom: 30px;
}

.req-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: var(--bold-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--bold-shadow);
  background: #fff;
}

.req-table th,
.req-table td {
  padding: 15px;
  border-bottom: 1px solid var(--black);
  border-right: 1px solid var(--black);
  font-weight: 500;
  line-height: 1.6;
}

.req-table tr:last-child th,
.req-table tr:last-child td {
  border-bottom: none;
}

.req-table th {
  background: var(--soft-blue);
  width: 25%;
  font-weight: 700;
}

.req-table td:last-child {
  border-right: none;
}

.voice-box {
  background: #fff;
  border: 2px solid var(--black);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.voice-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 20px;
}

.flow-steps {
  font-weight: 700;
  max-width: 600px;
  margin: 1rem auto;
}

.flow-steps .step-badge {
  background: var(--black);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 10px;
}

.step-text-wrap {
  display: inline-block;
  border-bottom: 2px dashed var(--black);
  padding: 8px;
}

.flow-steps .arrow {
  font-size: 2rem;
  margin: 10px 0;
  opacity: 1;
}

.qa-item {
  margin-bottom: 20px;
}

.qa-item .q {
  font-weight: 700;
  background: #fff;
  border: 2px solid var(--black);
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 5px;
}

.qa-item .a {
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.4);
  border-left: 4px solid var(--soft-pink);
  border-radius: 0 8px 8px 0;
}

/* 参考情報（FLOW/FAQ と同じ info-card 内。URL は狭い画面でも折り返し） */
.ref-info-block__list {
  margin: 0;
  padding: 0;
}

.ref-info-block__item {
  margin-bottom: 0.95rem;
}

.ref-info-block__item:last-child {
  margin-bottom: 0;
}

.ref-info-block__head {
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.2rem;
}

.ref-info-block__link {
  display: inline-block;
  max-width: 100%;
  line-height: 1.55;
  word-break: break-all;
  overflow-wrap: anywhere;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ref-info-block__contact-body {
  line-height: 1.75;
}

.contact-info__org-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact-info__org-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 0.12em;
}

.ref-info-block__org {
  display: block;
  flex: 1;
  min-width: 0;
  line-height: inherit;
}

.ref-info-block__contact-tail {
  display: block;
  margin-top: 0.3rem;
}

.ref-info-block__contact-body a {
  color: var(--black);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #fdfaf2;
  height: auto;
}

.form-wrapper .form-label {
  font-weight: 700;
}

.form-control,
.form-check-input {
  border: 2px solid var(--black);
  border-radius: 8px;
  padding: 10px;
  background-color: #fff;
}

.form-control:focus {
  border-color: var(--soft-pink);
  box-shadow: none;
  background-color: #fff;
}

.form-check-input:checked {
  background-color: var(--soft-pink);
  border-color: var(--black);
}

.badge {
  font-size: 0.8rem;
  padding: 5px 8px;
}

.badge-required {
  background-color: var(--muted-green);
  /* 爽やかなグリーン */
  color: var(--black);
  border: 1px solid var(--black);
  box-shadow: 2px 2px 0px var(--black);
  border-radius: 4px;
  font-weight: 700;
  padding: 5px 10px;
}

/* Hero type splits — motion via GSAP (not CSS transitions) */
.char-splitting .char,
.word-splitting .word {
  display: inline-block;
  opacity: 0;
}

/* メインタイトル：inline-block .char による行ボックスの膨らみを抑えて行間を詰める */
.main-title.char-splitting {
  line-height: 1.08;
}

.main-title.char-splitting .char {
  line-height: 1;
  vertical-align: top;
}

/* デスクトップ幅：タイトル小型化（1025px〜）／さらにワイドで左右イラスト対策 */
@media (min-width: 1025px) {
  .main-title {
    font-size: 4rem;
  }
}

@media (min-width: 1200px) {
  .main-title {
    font-size: 3.65rem;
  }
}

/* --- Tablet Responsive (1024px and below) --- */
@media (max-width: 1024px) {
  .main-title {
    font-size: 3.8rem;
  }

  .sub-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .info-card h3 {
    font-size: 1.2rem;
  }

  .info-card {
    margin-bottom: 30px;
  }
}

/* --- Mobile Responsive (768px and below) --- */
@media (max-width: 768px) {
  .hero-title-deco-fixed {
    gap: 3.35rem;
    padding: 0 6px;
  }

  .hero-title-deco-fixed__gap {
    width: min(32vw, 16rem);
    min-width: 0;
  }

  .hero-title-deco {
    width: clamp(52px, 40vw, 180px);
  }

  .main-title {
    font-size: 2.4rem;
  }

  /* Made larger for better visibility */
  .sub-title {
    font-size: 1.2rem;
    text-align: center;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .info-card h3 {
    font-size: 1.4rem;
  }

  .hero-sub-wrapper {
    gap: 10px;
  }

  .hero-megaphone {
    width: 96px;
  }

  .swiper-slide img {
    height: 260px;
  }

  .slider-section {
    margin-bottom: 48px;
  }

  .schedule-cta-wrap {
    margin-top: 2.25rem;
    margin-bottom: 1.75rem;
  }

  /* 縦積みカード：info-card と Bootstrap の mb-* が二重にならないよう詰める */
  .info-card {
    height: auto;
    margin-bottom: 0;
    padding: 30px;
  }

  .main-content .row>[class*='col-'].mb-4 {
    margin-bottom: 1.25rem !important;
  }

  .main-content .row>[class*='col-'].mb-5 {
    margin-bottom: 1.5rem !important;
  }

  .req-table th,
  .req-table td {
    display: block;
    width: 100%;
    border-right: none;
    padding: 10px;
  }

  .req-table th {
    border-bottom: 1.5px solid var(--black);
    font-size: 0.9rem;
  }

  /* 問合せ先：事務局名の2行だけ行間を詰める（768px 以下で改行する部分） */
  .ref-info-block__org {
    line-height: 1.28;
  }

  /* サポーターの声：横並びだと本文が極細になり読みづらいため、アイコン上・本文下 */
  .voices-section .voice-box.d-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .voices-section .voice-avatar {
    margin-right: 0;
    margin-bottom: 0.85rem;
    align-self: center;
  }

  .voices-section .voice-text {
    width: 100%;
  }
}

@keyframes hero-inline-float {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -14px, 0);
  }
}

@keyframes hero-megaphone-drift {

  0%,
  100% {
    transform: translate3d(-5px, 0, 0);
  }

  50% {
    transform: translate3d(5px, 0, 0);
  }
}

/* 540px以下：固定イラストを隠しタイトル下インライン／サブタイトル→メガホンの縦並び */
@media (max-width: 540px) {
  .hero-title-deco-fixed {
    display: none;
  }

  .hero-title-wrap {
    margin-bottom: 12px;
  }

  .hero-title-deco-inline {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(0.5rem, 5vw, 1.25rem);
    margin: 0 auto 1rem;
    max-width: 100%;
    padding: 0 10px;
    pointer-events: none;
    z-index: 2;
  }

  .hero-title-deco-inline__float {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
  }

  .hero-title-deco-inline__img {
    width: clamp(64px, 37vw, 200px);
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
  }

  .hero-sub-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  /* 見た目：サブタイトル上・メガホン下（アニメ順は JS でメガホン→サブタイトルのまま） */
  .hero-sub-wrapper .sub-title {
    order: 1;
  }

  .hero-sub-wrapper .application-closed-message {
    order: 2;
  }

  .hero-sub-wrapper .hero-megaphone__float {
    order: 3;
  }
}