@charset "UTF-8";
/* ==========================================================================
   子育て応援WEEK 特設ページ  page-specific CSS
   - クラス名はすべて ko- 接頭辞（global_header_footer.css との衝突防止）
   - html{font-size:62.5%} の影響を避けるため、単位は px で統一
   - .global-header / .global-footer / #top / html は上書きしない
   - ブレークポイント：768px 以上を PC・タブレット表示（スマホ優先で記述）
   ========================================================================== */

.ko-page {
  --ko-ink: #3a2e1f;        /* 本文色（クリーム背景で 11:1 以上） */
  --ko-green: #1b7f43;      /* ボタン・見出し（白文字で 5:1 以上） */
  --ko-green-dk: #14653a;
  --ko-yellow: #ffe94d;
  --ko-yellow-lt: #fff7b8;
  --ko-cream: #fffbe0;
  --ko-pink: #f9bdb7;
  --ko-blue: #1f6fa5;       /* 白地で 5:1 以上 */
  --ko-orange: #b8420c;     /* 白地で 5:1 以上 */
  --ko-coral: #c9372c;      /* ボタン（白文字で 5:1 以上） */
  --ko-radius: 16px;

  display: block;
  margin: 0;
  padding: 0;
  color: var(--ko-ink);
  background: #fff;
  font-family: "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", "BIZ UDPGothic", "Yu Gothic Medium", "游ゴシック Medium", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
.ko-page *, .ko-page *::before, .ko-page *::after { box-sizing: border-box; }
.ko-page :where(img) { display: block; max-width: 100%; height: auto; border: 0; }
.ko-page :where(ul, ol, dl, dd) { margin: 0; padding: 0; list-style: none; }
.ko-page :where(h1, h2, h3, p) { margin: 0; padding: 0; font-weight: normal; }
.ko-page :where(a) { color: inherit; text-decoration: none; }
.ko-page :where(b) { font-weight: bold; }
.ko-page :where(em) { font-style: normal; }
.ko-page :where(small) { font-size: inherit; }

.ko-page :focus-visible { outline: 4px solid var(--ko-blue); outline-offset: 3px; border-radius: 6px; }

.ko-sr {                       /* スクリーンリーダー専用テキスト */
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ko-sp-br { display: inline; }

/* ---------- WEEK終了後の注記 ---------- */
.ko-ended {
  padding: 10px 16px;
  background: var(--ko-ink);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.ko-ended[hidden] { display: none; }

/* ==========================================================================
   ヒーロー
   ========================================================================== */
.ko-hero {
  position: relative;
  min-height: 500px;
  background: #fffdf0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 64px;
}
.ko-hero { contain: paint; }
.ko-hero.ko-paused *, .ko-hero.ko-paused { animation-play-state: paused !important; }
.ko-hero__bg {
  position: absolute; inset: 0;
  background: url("../img/web/hero_bg.jpg") center center / cover no-repeat;
}
.ko-hero__inner { position: relative; z-index: 2; width: 100%; max-width: 640px; text-align: center; }
.ko-hero__title { margin: 0; }
/* ロゴ：文字・キャッチ・星の3枚を重ね、それぞれ別のリズムでゆっくり揺らす */
.ko-logo {
  position: relative; display: block;
  width: 100%; max-width: 560px; margin: 0 auto;
  aspect-ratio: 1254 / 485;
  animation: ko-pop 0.9s cubic-bezier(.34, 1.56, .64, 1) both;
}
.ko-logo__layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; will-change: transform; }
.ko-logo__layer--main  { transform-origin: 50% 40%; animation: ko-sway-a 6.1s ease-in-out 0.9s infinite; }
.ko-logo__layer--sub   { transform-origin: 50% 90%; animation: ko-sway-b 4.7s ease-in-out 1.1s infinite; }
.ko-logo__layer--stars { transform-origin: 50% 50%; animation: ko-sway-c 7.3s ease-in-out 0.6s infinite; }
@keyframes ko-sway-a {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  28%      { transform: translate(0.5%, -1.2%) rotate(-0.5deg); }
  55%      { transform: translate(-0.4%, -0.4%) rotate(0.4deg); }
  80%      { transform: translate(-0.6%, -1.0%) rotate(-0.2deg); }
}
@keyframes ko-sway-b {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  35%      { transform: translate(-0.8%, -0.8%) rotate(0.3deg); }
  70%      { transform: translate(0.7%, 0.2%) rotate(-0.3deg); }
}
@keyframes ko-sway-c {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  20%      { transform: translate(-0.6%, 0.9%) rotate(0.9deg); }
  50%      { transform: translate(0.7%, -0.7%) rotate(-0.8deg); }
  78%      { transform: translate(0.3%, 0.6%) rotate(0.5deg); }
}
.ko-hero__date {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 8px;
  margin-top: 20px; padding: 8px 16px 8px 10px;
  background: #fff;
  border: 3px solid var(--ko-ink); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ko-ink);
  white-space: nowrap; line-height: 1;
}
.ko-hero__year {
  padding: 5px 9px; background: var(--ko-ink); color: #fff; border-radius: 999px;
  font-size: 13px; font-weight: bold; letter-spacing: 0.06em;
}
.ko-d { display: inline-flex; align-items: center; gap: 5px; }
.ko-d b { font-size: clamp(22px, 7.2vw, 30px); letter-spacing: 0.01em; line-height: 1; }
.ko-wd {                     /* 曜日：正円バッジ */
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 26px; height: 26px; aspect-ratio: 1 / 1;
  border-radius: 50%; background: var(--ko-green); color: #fff;
  font-size: 14px; font-weight: bold; font-style: normal; line-height: 1;
}
.ko-wd--sun { background: var(--ko-coral); }
.ko-hero__to { font-size: 18px; font-weight: bold; }
.ko-hero__lead { margin-top: 16px; font-size: 18px; font-weight: bold; line-height: 1.7; }

/* 風船（装飾・ふわふわ） */
.ko-hero__balloons { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ko-balloon {
  position: absolute; width: 52px; height: auto; opacity: 0.95;
  animation: ko-float 6s ease-in-out infinite alternate;
  will-change: transform;
}
.ko-balloon--1 { left: 5%;  top: 8%;    animation-duration: 6.5s; }
.ko-balloon--2 { right: 6%; top: 14%;   animation-duration: 5.5s; animation-delay: -2s; width: 46px; }
.ko-balloon--3 { left: 8%;  bottom: 7%; animation-duration: 7s;   animation-delay: -3s; width: 44px; }
.ko-balloon--4 { right: 7%; bottom: 9%; animation-duration: 6s;   animation-delay: -1s; width: 56px; }

@keyframes ko-float {
  0%   { transform: translate3d(0, 0, 0) rotate(-4deg); }
  50%  { transform: translate3d(8px, -16px, 0) rotate(3deg); }
  100% { transform: translate3d(-6px, -28px, 0) rotate(-2deg); }
}
@keyframes ko-bob {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50%      { transform: translateY(-8px) rotate(0.6deg); }
}
@keyframes ko-pop {
  0%   { opacity: 0; transform: scale(0.82) translateY(16px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================================
   共通：セクション・見出し・カード・ボタン
   ========================================================================== */
.ko-sec {
  --ko-sec-bg: #fff;
  position: relative;
  padding: 64px 0 56px;
  background: var(--ko-sec-bg);
}
.ko-sec::before {            /* 上辺：ギザギザ（万国旗ふう） */
  content: "";
  position: absolute; left: 0; right: 0; top: -14px; height: 14px;
  background:
    linear-gradient(135deg, var(--ko-sec-bg) 25%, transparent 25%) -14px 0 / 28px 28px,
    linear-gradient(225deg, var(--ko-sec-bg) 25%, transparent 25%) -14px 0 / 28px 28px;
  pointer-events: none;
}
.ko-sec--special  { --ko-sec-bg: var(--ko-cream); }
.ko-sec--schedule { --ko-sec-bg: #fff; }
.ko-sec--programs { --ko-sec-bg: var(--ko-cream); }
.ko-sec--links    { --ko-sec-bg: #fff; }

.ko-wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 16px; }

.ko-h2 {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-bottom: 28px;
  color: var(--ko-green);
  font-size: 24px; font-weight: bold; line-height: 1.5; text-align: center;
}
.ko-h2__en {
  display: inline-block; padding: 2px 14px;
  background: var(--ko-coral); color: #fff;
  border: 2px solid var(--ko-ink); border-radius: 6px;
  transform: rotate(-3deg);
  font-size: 13px; font-weight: bold; letter-spacing: 0.14em;
}
.ko-h2__ttl { background: linear-gradient(transparent 62%, var(--ko-yellow) 62%); padding: 0 6px; }
.ko-h3 { font-size: 22px; font-weight: bold; line-height: 1.5; }
.ko-h3 span { font-size: 16px; }

.ko-text { margin-top: 14px; font-size: 16px; line-height: 1.9; }
.ko-text:first-of-type { margin-top: 0; }
.ko-text--hl {
  padding: 12px 14px; background: var(--ko-yellow-lt);
  border-left: 6px solid var(--ko-yellow); border-radius: 8px;
}
.ko-note { margin: -8px auto 24px; max-width: 720px; font-size: 16px; line-height: 1.8; text-align: center; }
.ko-when { margin-top: 10px; font-size: 17px; font-weight: bold; color: var(--ko-orange); line-height: 1.6; }
.ko-when b { font-size: 20px; }

.ko-badge {
  display: inline-block; padding: 2px 12px;
  background: var(--ko-coral); color: #fff;
  border: 2px solid var(--ko-ink); border-radius: 6px;
  font-size: 14px; font-weight: bold; line-height: 1.7; margin-bottom: 8px;
}
.ko-badge--blue { background: var(--ko-blue); }

/* カード（ふちどり＋ずらし影のポップな見た目） */
.ko-card {
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--ko-ink);
  border-radius: var(--ko-radius);
  box-shadow: 6px 6px 0 var(--ko-ink);
}
.ko-card__img { width: 100%; height: auto; background: var(--ko-yellow-lt); border-bottom: 3px solid var(--ko-ink); }
.ko-card__body { padding: 20px 18px 24px; }

/* ボタン（塗りつぶし＋ふちどり。タップでキラキラ） */
.ko-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; margin-top: 18px; padding: 10px 22px 10px 26px;
  background: var(--ko-coral); color: #fff !important;
  border: 3px solid var(--ko-ink); border-radius: 14px;
  font-size: 17px; font-weight: bold; line-height: 1.4; text-align: center;
  box-shadow: 4px 4px 0 var(--ko-ink);
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.ko-btn::after {
  content: "›"; flex: 0 0 auto; width: 28px; height: 28px; padding-bottom: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--ko-ink); border-radius: 50%;
  font-size: 22px; line-height: 1; transition: transform .2s ease;
}
.ko-btn::before {            /* 光が走る（transformのみ＝GPU処理。通常は止めておき、ホバー/フォーカス時に再生） */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-160%) skewX(-20deg);
  pointer-events: none;
}
.ko-btn:hover::before, .ko-btn:focus-visible::before { animation: ko-shine .9s ease-out 1; }
.ko-btn--primary::before { animation: ko-shine 4.5s ease-in-out infinite; }
.ko-btn--primary { background: var(--ko-green); width: 100%; max-width: 440px; }
.ko-btn:hover { background: #b02d23; }
.ko-btn--primary:hover { background: var(--ko-green-dk); }
.ko-btn:hover::after { transform: translateX(3px); }
.ko-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ko-ink); }
@keyframes ko-shine {
  0%, 60% { transform: translateX(-160%) skewX(-20deg); }
  100%    { transform: translateX(380%) skewX(-20deg); }
}

.ko-spark {                  /* タップ位置に出る星（main.jsが生成） */
  position: fixed; z-index: 9999; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  pointer-events: none;
  background: var(--ko-yellow);
  clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%);
  filter: drop-shadow(0 0 2px rgba(255, 170, 0, .9));
  animation: ko-spark .75s ease-out forwards;
}
.ko-spark:nth-child(3n)   { background: var(--ko-pink); }
.ko-spark:nth-child(3n+1) { background: #b9e36f; }
@keyframes ko-spark {
  0%   { opacity: 1; transform: translate(0, 0) scale(.4) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.3) rotate(160deg); }
}

/* ==========================================================================
   特別番組・イベント
   ========================================================================== */
.ko-card--special { margin-bottom: 28px; }

/* ゲスト紹介（写真は正方形のままトリミングしない） */
.ko-guest {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px;
  margin: 0 18px 24px; padding: 16px; background: var(--ko-cream);
  border: 3px dashed var(--ko-ink); border-radius: 14px;
}
.ko-guest__img { width: 100%; max-width: 360px; height: auto; margin: 0 auto 6px; background: #fff; border: 3px solid var(--ko-ink); border-radius: 12px; }
.ko-guest__body { display: contents; }
.ko-guest__label { justify-self: start; padding: 2px 12px; background: var(--ko-green); color: #fff; border-radius: 999px; font-size: 14px; font-weight: bold; line-height: 1.6; }
.ko-guest__name { margin: 0; font-size: 24px; font-weight: bold; line-height: 1.4; }
.ko-guest__name small { margin-left: 1px; font-size: 14px; font-weight: normal; }
.ko-guest__text { margin: 4px 0 0; font-size: 16px; line-height: 1.85; }
.ko-event {
  padding: 26px 18px 28px;
  background: #fff;
  border: 3px solid var(--ko-ink);
  border-radius: var(--ko-radius);
  box-shadow: 6px 6px 0 var(--ko-blue);
  text-align: center;
}
.ko-h3--event { color: var(--ko-blue); font-size: 24px; }
.ko-event__info { margin: 18px auto 4px; max-width: 520px; text-align: left; }
.ko-event__info > div { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #e8dfb8; }
.ko-event__info dt {
  flex: 0 0 64px; padding: 1px 0; background: var(--ko-yellow); border-radius: 999px;
  font-size: 14px; font-weight: bold; text-align: center;
}
.ko-event__info dd { flex: 1; font-size: 16px; line-height: 1.7; }
.ko-event__info dd b { font-size: 18px; }

/* ==========================================================================
   スケジュール（確定している日程 ＋ 放送日調整中の番組）
   ========================================================================== */
.ko-days { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ko-day {
  position: relative;
  display: flex; gap: 14px; align-items: center;
  padding: 16px 14px 16px 14px;
  background: var(--ko-cream);
  border: 3px solid var(--ko-ink); border-radius: var(--ko-radius);
  box-shadow: 5px 5px 0 var(--ko-ink);
}
.ko-day__date {
  flex: 0 0 64px; width: 64px; height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--ko-green); color: #fff; border-radius: 50%;
  border: 3px solid var(--ko-ink);
  line-height: 1.05;
}
.ko-day--sat .ko-day__date { background: var(--ko-blue); }
.ko-day--sun .ko-day__date { background: var(--ko-coral); }
.ko-day__date b { font-size: 24px; }
.ko-day__date small { font-size: 14px; }
.ko-day__list { flex: 1; min-width: 0; }
.ko-day__list li { padding: 4px 0; font-size: 16px; line-height: 1.6; font-weight: bold; }
.ko-t { display: block; color: var(--ko-orange); font-weight: bold; font-size: 15px; line-height: 1.5; }
.ko-day__list em { display: block; font-size: 14px; font-weight: normal; line-height: 1.5; }

/* 番組／イベントの見分け（色＋文字ラベル＋左の線） */
.ko-day__list li.ko-it { margin-top: 6px; padding: 6px 0 6px 12px; border-left: 5px solid var(--ko-coral); }
.ko-day__list li.ko-it--ev { border-left-color: var(--ko-blue); }
.ko-day__list li.ko-it:first-child { margin-top: 0; }
.ko-day__list li.ko-it + li.ko-it { border-top: 0; }
.ko-kind {
  display: inline-block; margin-left: 8px; padding: 0 9px; vertical-align: 1px;
  background: var(--ko-coral); color: #fff; border-radius: 999px;
  font-size: 12px; font-weight: bold; font-style: normal; line-height: 1.7; letter-spacing: 0.04em;
}
.ko-it--ev .ko-kind, .ko-kind--ev { background: var(--ko-blue); }
.ko-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; margin: -6px 0 22px; font-size: 14px; }
.ko-legend .ko-kind { margin-left: 0; }
.ko-legend .ko-kind + .ko-kind, .ko-legend .ko-kind--ev { margin-left: 12px; }
.ko-nw { display: inline-block; white-space: nowrap; }

.ko-day.is-today { background: var(--ko-yellow-lt); box-shadow: 5px 5px 0 var(--ko-coral); }
.ko-day__today {
  position: absolute; top: -14px; right: 12px; padding: 1px 12px;
  background: var(--ko-coral); color: #fff; border: 2px solid var(--ko-ink); border-radius: 6px;
  font-size: 13px; font-weight: bold; line-height: 1.7;
}

/* 放送日・内容を調整中の番組 */
.ko-tbd {
  margin-top: 36px; padding: 22px 16px 24px;
  background: #fff; border: 3px dashed var(--ko-ink); border-radius: var(--ko-radius);
}
.ko-tbd__ttl { font-size: 18px; font-weight: bold; line-height: 1.6; text-align: center; }
.ko-tbd__ttl small { display: block; margin-top: 2px; font-size: 15px; font-weight: normal; }
.ko-tbd__list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.ko-tbd__list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; background: var(--ko-yellow-lt); border-radius: 12px;
  line-height: 1.5;
}
.ko-tbd__list b { font-size: 17px; }
.ko-tbd__list span { font-size: 14px; }

/* ==========================================================================
   番組カード
   ========================================================================== */
.ko-programs { display: grid; grid-template-columns: 1fr; gap: 24px; }
.ko-card--prog { display: flex; flex-direction: column; }
.ko-card--prog .ko-card__img { height: auto; }   /* 元の縦横比のまま表示（トリミングしない） */
.ko-card--prog .ko-card__body { display: flex; flex-direction: column; flex: 1; }
.ko-card--prog .ko-btn { margin-top: auto; align-self: center; width: 100%; max-width: 360px; }
.ko-card--prog .ko-text:last-of-type { margin-bottom: 22px; }

/* ==========================================================================
   リンク集（スマホ・PCとも1列）
   ========================================================================== */
.ko-links { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; }
.ko-link {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 68px; padding: 12px 14px 12px 20px;
  background: #fff;
  border: 3px solid var(--ko-ink); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ko-ink);
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.ko-link__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ko-link__name { font-size: 16px; font-weight: bold; line-height: 1.55; }
.ko-link__url { font-size: 13px; color: #6b5d48; line-height: 1.4; word-break: break-all; }
.ko-link::after {
  content: "↗"; flex: 0 0 auto; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ko-yellow); border: 2px solid var(--ko-ink); border-radius: 50%;
  color: var(--ko-ink); font-size: 18px; font-weight: bold; line-height: 1;
}
.ko-link:hover { background: var(--ko-yellow-lt); }
.ko-link:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ko-ink); }
.ko-link__sub { font-size: 14px; font-weight: normal; line-height: 1.45; color: #4a3d2a; }
.ko-link--muni { min-height: 60px; padding: 8px 12px 8px 16px; }
.ko-link--muni .ko-link__name { font-size: 17px; line-height: 1.4; }
.ko-link--muni::after { width: 32px; height: 32px; font-size: 16px; }
.ko-links--top { margin-bottom: 8px; }

/* 地域ごとのまとまり（スマホでは開閉式） */
.ko-areas { max-width: 880px; margin: 0 auto; }
.ko-area { margin-top: 30px; }
.ko-area__sum {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 52px; padding: 8px 14px 8px 18px; list-style: none; cursor: pointer;
  background: var(--ko-green); color: #fff;
  border: 3px solid var(--ko-ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ko-ink);
  -webkit-tap-highlight-color: transparent;
}
.ko-area__sum::-webkit-details-marker { display: none; }
.ko-area__sum::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px; margin: -4px 4px 0 0;
  border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg);
  transition: transform .2s ease;
}
.ko-area[open] > .ko-area__sum::after { transform: rotate(-135deg); margin-top: 4px; }
.ko-area__ttl { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 19px; font-weight: bold; line-height: 1.4; color: #fff; }
.ko-area__ttl small { font-size: 14px; font-weight: normal; }
.ko-links--grid { max-width: none; margin-top: 16px; }

.ko-link__sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   協賛企業枠（将来用：HTMLのコメントを外したときに有効）
   ========================================================================== */
.ko-sec--sponsors { --ko-sec-bg: var(--ko-cream); }
.ko-sponsors { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ko-sponsors li { flex: 0 1 240px; }
.ko-sponsors a { display: block; padding: 10px; background: #fff; border: 2px solid var(--ko-yellow); border-radius: 12px; }

/* ==========================================================================
   ページ先頭へ戻る
   ========================================================================== */
.ko-totop {
  position: fixed; right: 14px; bottom: 16px; z-index: 50;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: var(--ko-green); color: #fff !important; border: 3px solid #fff; border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
  font-size: 16px; line-height: 1;
  transition: opacity .3s ease, transform .3s ease;
}
html.ko-js .ko-totop { opacity: 0; transform: translateY(12px); pointer-events: none; }
html.ko-js .ko-totop.is-show { opacity: 1; transform: none; pointer-events: auto; }

/* ==========================================================================
   スクロールでふわっと表示
   ========================================================================== */
/* 見出しラベルが画面に入ったときに、ぽんと弾む（文章は最初から表示：隠さない） */
.ko-h2.is-in .ko-h2__en { animation: ko-label 0.6s cubic-bezier(.34, 1.56, .64, 1) 1; }
@keyframes ko-label {
  0%   { transform: rotate(-3deg) scale(.85); }
  100% { transform: rotate(-3deg) scale(1); }
}

/* ==========================================================================
   PC・タブレット（768px 以上）
   ========================================================================== */
@media (min-width: 768px) {
  .ko-sp-br { display: none; }
  .ko-hero { min-height: 620px; padding: 72px 24px 80px; }
  .ko-hero__inner { max-width: 760px; }
  .ko-logo { max-width: 640px; }
  .ko-hero__year { font-size: 15px; padding: 6px 12px; }
  .ko-d b { font-size: 40px; }
  .ko-wd { width: 36px; height: 36px; font-size: 18px; }
  .ko-hero__to { font-size: 24px; }
  .ko-hero__date { gap: 12px; padding: 10px 24px 10px 14px; }
  .ko-hero__lead { font-size: 22px; }

  /* 風船：背景画像（hero_bg）に元々描かれていた位置・大きさに合わせて4つ配置。
     左上＝ピンク＋緑、右下＝緑＋ピンク（同じ色が隣り合わない） */
  .ko-balloon { width: clamp(72px, 9.4vw, 150px); }
  .ko-balloon--1 { left: 8%;    top: 2%;  right: auto; bottom: auto; }
  .ko-balloon--2 { left: 2.4%;  top: 34%; right: auto; bottom: auto; }
  .ko-balloon--3 { right: 2.5%; top: 52%; left: auto;  bottom: auto; }
  .ko-balloon--4 { right: 9.7%; top: 74%; left: auto;  bottom: auto; }

  .ko-sec { padding: 84px 0 72px; }
  .ko-wrap { padding: 0 24px; }
  .ko-h2 { font-size: 30px; margin-bottom: 36px; }
  .ko-text { font-size: 17px; }
  .ko-about, .ko-sec--about .ko-wrap { max-width: 860px; }

  .ko-card--special { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; }
  .ko-card--special .ko-card__img { height: auto; }
  .ko-card--special .ko-card__body { padding: 32px 30px; align-self: center; }
  .ko-card--special .ko-guest { grid-column: 1 / -1; grid-template-columns: 300px minmax(0, 1fr); gap: 8px 32px; margin: 0 30px 30px; padding: 26px 30px; }
  .ko-guest__img { grid-row: 1 / 4; max-width: none; width: 300px; margin: 0; }
  .ko-guest__name { font-size: 28px; }
  .ko-h3 { font-size: 26px; }
  .ko-event { padding: 36px 32px 40px; }

  .ko-days { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .ko-day { flex-direction: column; align-items: stretch; gap: 10px; padding: 20px 16px 18px; }
  .ko-day__date { align-self: center; }

  .ko-programs { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ko-tbd { padding: 28px 28px 30px; }
  .ko-tbd__list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .ko-link { padding: 14px 18px 14px 26px; }
  .ko-days > .ko-day:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc((100% - 22px) / 2); justify-self: center; }   /* 奇数枚のとき、最後の1枚は同じ幅のまま中央に */
  .ko-links--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .ko-link--muni { padding: 10px 14px 10px 20px; }
  .ko-area__sum { cursor: default; }
  .ko-area__sum::after { display: none; }

  .ko-btn:hover, .ko-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ko-ink); }
  .ko-totop { right: 24px; bottom: 24px; }
}

/* ==========================================================================
   動きを減らす設定（視覚過敏・省電力への配慮）
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ko-page *, .ko-page *::before, .ko-page *::after {
    animation: none !important;
    transition: none !important;
  }
  .ko-spark { display: none; }
}
