@charset "UTF-8";
/* =========================================================
   kids-nav — 東三河の子連れおでかけ・習い事ガイド
   スマートフォンでの使いやすさを最優先にした設計。
   ブレークポイント: ~767 / 768-1023 / 1024+
   ========================================================= */

/* ---------- 1. デザイントークン ---------- */
:root {
  /* 黄色の面とオレンジの操作部を組み合わせた、あたたかい配色。
     明るい主ボタンには濃い茶色の文字を合わせる。 */
  --c-brand:        #F58A32;
  --c-brand-mid:    #B64C0C;
  --c-brand-dark:   #A94312;
  --c-brand-deep:   #91380F;
  --c-brand-light:  #FFB65C;
  --c-brand-pale:   #FFD99A;
  --c-brand-soft:   #FFF0E3;
  --c-on-brand:     #49352B;

  --c-accent:       #FFD65A;
  --c-accent-dark:  #A94312;
  --c-accent-soft:  #FFF6CF;

  --c-leaf:         #2A7D63;
  --c-leaf-soft:    #E3F4EE;
  --c-sky:          #1E6FB8;
  --c-sky-soft:     #E7F1FB;
  --c-berry:        #D64C77;
  --c-sun:          #FFD65A;
  --c-sun-soft:     #FFF6CF;

  --c-bg:           #FFFFFF;
  --c-surface:      #FFFFFF;
  --c-surface-2:    #FFF6E6;
  --c-line:         #EADFD2;
  --c-line-strong:  #D8BFA1;

  --c-text:         #49352B;
  --c-text-2:       #675346;
  --c-text-3:       #796659;
  --c-white:        #FFFFFF;

  --g-brand:   linear-gradient(135deg, #F58A32 0%, #FFD65A 100%);
  --g-button:  linear-gradient(135deg, #F58A32 0%, #FFB65C 100%);
  --g-mark:    linear-gradient(135deg, #FFE89B 0%, #FFD65A 55%, #FFB65C 100%);
  --g-accent:  linear-gradient(135deg, #F58A32 0%, #FFD65A 100%);
  --g-hero:    radial-gradient(115% 80% at 92% -14%, #FFE89B 0%, #FFF2B8 42%, transparent 68%),
               radial-gradient(90% 65% at -8% 4%, #FFD99A 0%, transparent 62%);

  /* タイポグラフィ */
  --f-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-disp: "Montserrat", var(--f-sans);

  /* 角丸・影 */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(73, 53, 43, .05), 0 2px 8px rgba(73, 53, 43, .06);
  --sh-2: 0 2px 6px rgba(73, 53, 43, .07), 0 8px 24px rgba(73, 53, 43, .09);
  --sh-3: 0 8px 32px rgba(73, 53, 43, .16);

  /* レイアウト */
  --w-max: 1120px;
  --pad: 16px;
  --header-h: 76px;
  --tabbar-h: 60px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  /* スマホ: ボトムナビの高さ分だけ余白を確保 */
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 3. レイアウト ---------- */
.kg-wrap { width: 100%; max-width: var(--w-max); margin-inline: auto; padding-inline: var(--pad); }
.kg-main { padding-block: 20px 40px; min-height: 50vh; }
.kg-section { margin-block: 36px; }
.kg-section:first-child { margin-top: 8px; }

.kg-section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.kg-section__title {
  font-size: 19px; letter-spacing: .01em; display: flex; align-items: center; gap: 8px;
}
.kg-section__title::before {
  content: ""; width: 5px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, var(--c-brand-light), var(--c-brand-mid));
}
.kg-section__sub { font-size: 12px; color: var(--c-text-2); margin: 2px 0 0; font-weight: 400; }
.kg-section__more {
  font-size: 13px; color: var(--c-brand-dark); font-weight: 700;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 2px;
}
.kg-section__more::after { content: "›"; font-size: 16px; line-height: 1; }

/* ---------- 4. ヘッダー ---------- */
.kg-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.kg-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 10px;
  max-width: var(--w-max); margin-inline: auto; padding-inline: var(--pad);
}
.kg-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.kg-logo__mark {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: var(--g-mark);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 2px 8px rgba(169, 67, 18, .34);
}
.kg-logo__text { font-family: var(--f-disp); font-size: 15px; letter-spacing: .02em; }
.kg-logo__text small { display: block; font-family: var(--f-sans); font-size: 10px; color: var(--c-text-3); font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.kg-header__spacer { flex: 1; }
.kg-header__action {
  width: 38px; height: 38px; border-radius: var(--r-pill);
  display: grid; place-items: center; color: var(--c-text-2);
  transition: background .2s var(--ease);
}
.kg-header__action:hover { background: var(--c-surface-2); }
.kg-header__nav { display: none; }

/* PC のグローバルナビ */
@media (min-width: 1024px) {
  .kg-header__nav { display: flex; align-items: center; gap: 4px; }
  .kg-header__nav a {
    padding: 8px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500;
    transition: background .2s var(--ease), color .2s var(--ease);
  }
  .kg-header__nav a:hover { background: var(--c-brand-soft); color: var(--c-brand-dark); }
  .kg-header__nav a.is-current { background: var(--g-button); color: var(--c-on-brand); }
}

/* ハンバーガー（スマホ・タブレット） */
.kg-burger { display: grid; place-items: center; width: 38px; height: 38px; }
.kg-burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--c-text);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.kg-burger span + span { margin-top: 4px; }
.kg-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.kg-burger.is-open span:nth-child(2) { opacity: 0; }
.kg-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1024px) { .kg-burger { display: none; } }

.kg-drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 55;
  background: var(--c-bg); padding: 20px var(--pad) 40px;
  overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.kg-drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.kg-drawer__title { font-size: 12px; color: var(--c-text-3); letter-spacing: .08em; margin: 20px 0 8px; font-weight: 700; }
.kg-drawer__title:first-child { margin-top: 0; }
.kg-drawer__list { display: grid; gap: 2px; }
.kg-drawer__list a {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px;
  border-radius: var(--r-md); font-weight: 500; background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.kg-drawer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kg-drawer__grid a { justify-content: center; }

/* ---------- 5. ボトムナビ（スマホの主導線） ---------- */
.kg-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-line);
  padding-bottom: env(safe-area-inset-bottom);
}
.kg-tabbar__item {
  display: grid; place-items: center; gap: 2px; padding: 8px 2px 6px;
  font-size: 10px; color: var(--c-text-3); font-weight: 500;
  min-height: var(--tabbar-h);
}
.kg-tabbar__item svg { width: 22px; height: 22px; }
.kg-tabbar__item.is-current { color: var(--c-brand-dark); }
.kg-tabbar__item.is-current svg { stroke: var(--c-brand-dark); }
/* アクティブなタブの上に細いグラデーションの線を出す */
.kg-tabbar__item.is-current::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--g-brand);
}
.kg-tabbar__item { position: relative; }
@media (min-width: 1024px) {
  .kg-tabbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- 6. ヒーロー（トップ） ---------- */
.kg-hero {
  position: relative; overflow: hidden;
  background: var(--g-hero), var(--c-sun-soft);
  padding: 26px 0 30px;
}
/* 上端の細いグラデーション。全体を塗らずに主色を印象づける */
.kg-hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--g-brand);
}
.kg-hero__lead { font-size: 12px; color: var(--c-text-2); letter-spacing: .04em; margin-bottom: 6px; font-weight: 500; }
.kg-hero__title { font-size: 25px; line-height: 1.35; letter-spacing: -.01em; }
.kg-hero__title em {
  font-style: normal;
  color: var(--c-brand-dark);
  background: linear-gradient(transparent 72%, var(--c-sun) 72%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.kg-hero__desc { font-size: 13px; color: var(--c-text-2); margin-top: 8px; }
.kg-hero__blob { position: absolute; right: -40px; top: -30px; width: 200px; opacity: .5; pointer-events: none; }

/* 「今日どこ行く？」1タップ導線 */
.kg-quick { margin-top: 18px; }
.kg-quick__label {
  font-size: 12px; font-weight: 700; color: var(--c-text-2);
  margin-bottom: 9px; display: flex; align-items: center; gap: 7px;
}
.kg-quick__label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--g-brand);
}
.kg-quick__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kg-quick__btn {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 12px; border-radius: var(--r-md);
  font-size: 13.5px; letter-spacing: -.015em;
  background: var(--c-surface); border: 1px solid var(--c-line);
  box-shadow: var(--sh-1); font-weight: 700; line-height: 1.35;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.kg-quick__btn > span:not(.kg-quick__ico) { min-width: 0; }
.kg-quick__btn:hover, .kg-quick__btn:active { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--c-brand-pale); }
.kg-quick__ico {
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #FFD99A, #FFF6CF);
  color: var(--c-brand-dark);
}
.kg-quick__btn--rain .kg-quick__ico   { background: linear-gradient(135deg, #C3DFF6, #E3EFFB); color: #1A5E9E; }
.kg-quick__btn--free .kg-quick__ico   { background: linear-gradient(135deg, #C6E8DA, #E5F5EE); color: #226B54; }
.kg-quick__btn--half .kg-quick__ico   { background: linear-gradient(135deg, #FFD99A, #FFF0E3); color: var(--c-brand-dark); }
.kg-quick__btn--lesson .kg-quick__ico { background: linear-gradient(135deg, #D0DAF5, #E9EFFB); color: #33509E; }
.kg-quick__btn--rain, .kg-quick__btn--free { background: #FFFDF5; border-color: #EBD58D; }
.kg-quick__btn--half, .kg-quick__btn--lesson { background: var(--c-brand-soft); border-color: #F0C9A6; }
.kg-quick__btn small { display: block; font-size: 10.5px; font-weight: 500; color: var(--c-text-3); line-height: 1.3; }
@media (min-width: 768px) {
  .kg-hero { padding: 44px 0 46px; }
  .kg-hero__title { font-size: 34px; }
  .kg-hero__desc { font-size: 14px; }
  .kg-quick__grid { grid-template-columns: repeat(4, 1fr); }
}

/* 年齢帯セレクタ */
.kg-agepick { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.kg-agepick::-webkit-scrollbar { display: none; }
.kg-agepick__btn {
  flex: none; display: inline-flex; align-items: center; min-height: 40px;
  padding: 8px 16px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700;
  background: var(--c-surface); border: 1.5px solid var(--c-line); color: var(--c-text-2);
  transition: all .18s var(--ease);
}
.kg-agepick__btn.is-active { background: var(--g-button); border-color: var(--c-brand); color: var(--c-on-brand); }

/* ---------- 7. チップ（絞り込み） ---------- */
.kg-chips {
  display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.kg-chips::-webkit-scrollbar { display: none; }
.kg-chip {
  --chip: var(--c-brand-mid);
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; min-height: 38px;
  padding: 8px 15px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  background: var(--c-surface); border: 1.5px solid var(--c-line); color: var(--c-text-2);
  transition: all .18s var(--ease);
}
.kg-chip:hover { border-color: var(--chip); color: var(--chip); }
.kg-chip.is-active { background: var(--chip); border-color: var(--chip); color: #fff; }

/* 絞り込みバー（スティッキー） */
.kg-filterbar {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
  margin-inline: calc(var(--pad) * -1); padding: 10px var(--pad) 0;
}
.kg-filterbar__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kg-filterbar__sort {
  border: 1.5px solid var(--c-line); border-radius: var(--r-pill); min-height: 40px;
  padding: 8px 30px 8px 14px; font-size: 12.5px; font-weight: 700;
  background: var(--c-surface) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236E625A' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none; appearance: none; max-width: 42vw;
  margin-left: auto; /* 右端に寄せる（スペーサーの div を使わない） */
}
.kg-filterbar__open {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 9px 16px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700;
  background: var(--c-text); color: #fff;
}
.kg-filterbar__open .kg-badge {
  background: var(--c-accent); color: var(--c-on-brand); border-radius: var(--r-pill);
  min-width: 18px; height: 18px; display: grid; place-items: center; font-size: 10.5px;
}
.kg-filterbar__count { font-size: 12px; color: var(--c-text-2); padding-bottom: 10px; }
.kg-filterbar__count strong { color: var(--c-brand-dark); font-size: 15px; font-family: var(--f-disp); }

/* 表示切替（一覧／地図） */
.kg-viewtoggle {
  display: inline-flex; background: var(--c-surface-2); border-radius: var(--r-pill); padding: 3px; flex: none;
}
.kg-viewtoggle button {
  min-height: 34px; padding: 7px 15px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; color: var(--c-text-2);
  transition: all .18s var(--ease);
}
.kg-viewtoggle button.is-active { background: var(--c-surface); color: var(--c-text); box-shadow: var(--sh-1); }

/* ---------- 8. ボトムシート型フィルタ ---------- */
.kg-sheet {
  position: fixed; inset: 0; z-index: 90;
  visibility: hidden; opacity: 0; transition: opacity .25s var(--ease), visibility .25s;
}
.kg-sheet.is-open { visibility: visible; opacity: 1; }
.kg-sheet__scrim { position: absolute; inset: 0; background: rgba(46, 39, 35, .45); }
.kg-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 88vh; display: flex; flex-direction: column;
  background: var(--c-surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-3); transform: translateY(100%);
  transition: transform .28s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.kg-sheet.is-open .kg-sheet__panel { transform: none; }
.kg-sheet__grab { width: 40px; height: 4px; border-radius: 2px; background: var(--c-line-strong); margin: 10px auto 4px; }
.kg-sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 18px 12px; border-bottom: 1px solid var(--c-line);
}
.kg-sheet__title { font-size: 16px; }
.kg-sheet__reset { font-size: 12.5px; color: var(--c-brand-dark); font-weight: 700; }
.kg-sheet__body { overflow-y: auto; padding: 16px 18px 20px; flex: 1; }
.kg-sheet__foot {
  padding: 12px 18px 16px; border-top: 1px solid var(--c-line);
  display: flex; gap: 10px; background: var(--c-surface);
}
.kg-sheet__group { margin-bottom: 22px; }
.kg-sheet__group:last-child { margin-bottom: 0; }
.kg-sheet__label { font-size: 12.5px; font-weight: 700; color: var(--c-text-2); margin-bottom: 9px; display: flex; justify-content: space-between; }
.kg-sheet__label span { color: var(--c-brand-dark); font-family: var(--f-disp); }
.kg-optgrid { display: flex; flex-wrap: wrap; gap: 7px; }
.kg-opt {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 9px 15px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  background: var(--c-surface); border: 1.5px solid var(--c-line); color: var(--c-text-2);
  transition: all .16s var(--ease);
}
.kg-opt.is-active { background: var(--c-brand-soft); border-color: var(--c-brand-mid); color: var(--c-brand-dark); }
@media (min-width: 768px) {
  .kg-sheet__panel {
    left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -46%) scale(.98);
    width: min(560px, 92vw); max-height: 84vh; border-radius: var(--r-xl);
    opacity: 0; transition: transform .26s var(--ease), opacity .26s var(--ease);
  }
  .kg-sheet.is-open .kg-sheet__panel { transform: translate(-50%, -50%); opacity: 1; }
  .kg-sheet__grab { display: none; }
  .kg-sheet__head { padding-top: 18px; }
}

/* デュアルレンジスライダー（年齢） */
.kg-range { position: relative; height: 34px; margin: 6px 4px 0; }
.kg-range__track { position: absolute; top: 15px; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--c-line); }
.kg-range__fill { position: absolute; top: 15px; height: 4px; border-radius: 2px; background: var(--g-brand); }
.kg-range input[type="range"] {
  position: absolute; top: 0; left: 0; width: 100%; height: 34px;
  margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.kg-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-surface); border: 2.5px solid var(--c-brand-mid);
  box-shadow: var(--sh-1); cursor: grab;
}
.kg-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-surface); border: 2.5px solid var(--c-brand-mid); box-shadow: var(--sh-1);
}
.kg-range__scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--c-text-3); margin-top: -2px; }

/* ---------- 9. ボタン ---------- */
.kg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 22px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 700; text-align: center;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.kg-btn:active { transform: translateY(1px); }
.kg-btn--primary { background: var(--g-button); color: var(--c-on-brand); box-shadow: 0 4px 14px rgba(169, 67, 18, .3); }
.kg-btn--primary:hover { background: linear-gradient(135deg, #FF9B42 0%, #FFD65A 100%); }
.kg-btn--ghost { background: var(--c-surface); color: var(--c-text); border: 1.5px solid var(--c-line-strong); }
.kg-btn--line { background: #06C755; color: #fff; box-shadow: 0 4px 14px rgba(6, 199, 85, .28); }
.kg-btn--block { display: flex; width: 100%; }
.kg-btn--sm { padding: 9px 16px; font-size: 13px; }
.kg-btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- 10. カード ---------- */
.kg-grid { display: grid; gap: 12px; }
@media (min-width: 600px) { .kg-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .kg-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* 横スクロールのカルーセル（トップ） */
.kg-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 12px; overflow-x: auto; padding: 2px 0 8px;
  margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.kg-rail::-webkit-scrollbar { display: none; }
.kg-rail > * { scroll-snap-align: start; }
@media (min-width: 600px) { .kg-rail { grid-auto-columns: 44%; } }
@media (min-width: 1024px) {
  .kg-rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 18px; }
}

.kg-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  position: relative;
}
.kg-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--c-line-strong); }
.kg-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface-2); }
/* 写真がない掲載はプレースホルダーを低くして、一覧のスクロール量を減らす */
.kg-card__media:has(.kg-ph) { aspect-ratio: 16 / 6; }
@media (min-width: 600px) { .kg-card__media:has(.kg-ph) { aspect-ratio: 16 / 8; } }
.kg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.kg-card:hover .kg-card__media img { transform: scale(1.04); }

/* 写真がないときのプレースホルダー（種別ごとに色と絵文字を変える） */
.kg-ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: clamp(26px, 8vw, 40px); opacity: .85;
  background: linear-gradient(135deg, var(--ph-a, #FFE89B), var(--ph-b, #FFF6CF));
}
.kg-ph[data-kind="park"]           { --ph-a:#D9F0E4; --ph-b:#EEF8F2; }
.kg-ph[data-kind="support-center"] { --ph-a:#D9E9F8; --ph-b:#EDF4FC; }
.kg-ph[data-kind="indoor-play"]    { --ph-a:#E4E4F7; --ph-b:#F2F2FC; }
.kg-ph[data-kind="indoor-pool"]    { --ph-a:#CFEEF1; --ph-b:#E8F8F9; }
.kg-ph[data-kind="restaurant"]     { --ph-a:#FBE6D6; --ph-b:#FDF4EC; }
.kg-ph[data-kind="seasonal"]       { --ph-a:#F8E1E9; --ph-b:#FCF0F4; }
.kg-ph[data-kind^="event"]         { --ph-a:#FFD99A; --ph-b:#FFF0E3; }
.kg-ph[data-kind^="school"]        { --ph-a:#DCE9F9; --ph-b:#EFF5FD; }

.kg-card__tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--tag, var(--c-brand-mid)); box-shadow: 0 2px 8px rgba(73, 53, 43, .2);
}
.kg-card__fav {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center;
  box-shadow: var(--sh-1); font-size: 15px; color: var(--c-text-3);
  transition: transform .18s var(--ease), color .18s var(--ease);
}
.kg-card__fav:hover { transform: scale(1.1); }
.kg-card__fav.is-on { color: var(--c-berry); }
.kg-card__body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kg-card__meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--c-text-3); font-weight: 500; }
.kg-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.kg-card__title { font-size: 15px; line-height: 1.45; letter-spacing: -.005em; }
.kg-card__excerpt {
  font-size: 12px; color: var(--c-text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kg-card__facts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 6px; }
.kg-fact {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px; border-radius: var(--r-sm); font-size: 11px; font-weight: 700;
  background: var(--c-surface-2); color: var(--c-text-2);
}
.kg-fact--free { background: var(--c-leaf-soft); color: var(--c-leaf); }
.kg-fact--date { background: var(--c-brand-soft); color: var(--c-brand-dark); }
.kg-fact--trial { background: var(--c-sky-soft); color: var(--c-sky); }
.kg-fact--soon { background: var(--c-accent-soft); color: var(--c-accent-dark); }

/* イベントカード: 日付を大きく出す */
.kg-card--event .kg-card__date {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: rgba(255,255,255,.95); border-radius: var(--r-md);
  padding: 5px 10px; text-align: center; box-shadow: var(--sh-1); line-height: 1.1;
}
.kg-card--event .kg-card__date b { display: block; font-family: var(--f-disp); font-size: 17px; color: var(--c-brand-dark); }
.kg-card--event .kg-card__date span { font-size: 10px; color: var(--c-text-3); font-weight: 700; }

/* 有料掲載のバッジ */
.kg-card--paid { border-color: #F0C9A6; box-shadow: var(--sh-1), inset 0 0 0 1px rgba(245, 138, 50, .10); }
.kg-card--paid::before {
  content: "PR"; position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--f-disp); font-size: 9.5px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 7px; border-radius: 5px;
  background: rgba(255,255,255,.94); color: var(--c-text-2);
  box-shadow: 0 1px 3px rgba(73, 53, 43, .14);
}
.kg-card--paid .kg-card__fav { top: 40px; }

/* リスト型カード（比較・マイページ） */
.kg-listcard {
  display: flex; gap: 12px; padding: 12px; align-items: flex-start;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md);
}
.kg-listcard__media { width: 84px; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; flex: none; background: var(--c-surface-2); }
.kg-listcard__media img { width: 100%; height: 100%; object-fit: cover; }
.kg-listcard__body { flex: 1; min-width: 0; }

/* ---------- 11. 地図 ---------- */
.kg-map { width: 100%; height: 62vh; min-height: 380px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); background: var(--c-surface-2); }
.kg-map--single { height: 240px; min-height: 0; }
.kg-map__note { font-size: 11px; color: var(--c-text-3); margin-top: 8px; }
.kg-mapview { display: none; }
.kg-mapview.is-active { display: block; }
.kg-listview.is-hidden { display: none; }
.kg-map__nokey {
  display: grid; place-items: center; height: 100%; text-align: center; padding: 24px;
  font-size: 13px; color: var(--c-text-3); line-height: 1.7;
}

/* ---------- 12. 詳細ページ ---------- */
.kg-single__hero { position: relative; margin-inline: calc(var(--pad) * -1); }
.kg-single__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* 写真がない掲載は帯を低くして、本文に早く届くようにする */
.kg-single__hero .kg-ph { width: 100%; aspect-ratio: 16 / 5; }
@media (min-width: 1024px) { .kg-single__hero .kg-ph { aspect-ratio: 16 / 6; } }
.kg-single__head { padding-top: 16px; }
.kg-single__cat {
  display: inline-block; padding: 4px 11px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 700; color: #fff; background: var(--tag, var(--c-brand-mid)); margin-bottom: 8px;
}
.kg-single__title { font-size: 22px; line-height: 1.4; letter-spacing: -.01em; }
.kg-single__excerpt { font-size: 13.5px; color: var(--c-text-2); margin-top: 8px; }
.kg-single__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.kg-content { font-size: 15px; line-height: 1.9; margin-top: 24px; }
.kg-content h2 {
  position: relative;
  font-size: 18px; line-height: 1.5; margin: 40px 0 16px;
  padding: 12px 16px 12px 24px;
  background: var(--c-brand-soft); border-radius: var(--r-sm);
}
.kg-content h2::before {
  content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px;
  width: 5px; border-radius: 3px; background: var(--g-brand);
}
@media (min-width: 768px) {
  .kg-content h2 { font-size: 19px; padding: 14px 20px 14px 28px; }
  .kg-content h2::before { left: 12px; top: 14px; bottom: 14px; }
}
.kg-content h3 {
  font-size: 16px; margin: 26px 0 10px; color: var(--c-brand-dark);
  display: flex; align-items: center; gap: 7px;
}
.kg-content h3::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--g-accent);
}
.kg-content p { margin-bottom: 1.2em; }
.kg-content ul, .kg-content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.kg-content ul { list-style: disc; }
.kg-content ol { list-style: decimal; }
.kg-content li { margin-bottom: .4em; }
.kg-content a { color: var(--c-sky); text-decoration: underline; text-underline-offset: 2px; }
.kg-content img { border-radius: var(--r-md); }
.kg-content blockquote {
  margin: 1.4em 0; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--c-surface-2); border-left: 4px solid var(--c-line-strong); font-size: 14px;
}
.kg-note {
  padding: 12px 14px; border-radius: var(--r-md); font-size: 12.5px;
  background: #FFF7E9; border: 1px solid #EFDCB6; color: #7A5E12;
}

/* 情報テーブル */
.kg-info {
  margin: 24px 0 0; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden;
}
.kg-info__row { display: grid; grid-template-columns: 96px 1fr; gap: 0; border-bottom: 1px solid var(--c-line); }
.kg-info__row:last-child { border-bottom: 0; }
.kg-info__row dt { padding: 11px 12px; font-size: 12px; font-weight: 700; color: var(--c-text-2); background: var(--c-surface-2); }
.kg-info__row dd { padding: 11px 13px; margin: 0; font-size: 13.5px; }
.kg-info__row dd a { color: var(--c-sky); text-decoration: underline; word-break: break-all; }
@media (min-width: 768px) { .kg-info__row { grid-template-columns: 130px 1fr; } }

/* ワンポイント */
.kg-tips {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md);
  background: linear-gradient(135deg, #FFF2B8, #FFF9E6);
  border: 1px solid #EBD58D; font-size: 13px; line-height: 1.75; color: var(--c-text);
}
.kg-tips__label { font-weight: 700; font-size: 12px; display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }

/* 出典 */
.kg-sources { margin-top: 22px; font-size: 11.5px; color: var(--c-text-3); }
.kg-sources a { color: var(--c-text-3); text-decoration: underline; word-break: break-all; }
.kg-sources li { margin-bottom: 3px; }

/* 詳細ページの固定 CTA（スマホ） */
.kg-actionbar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  z-index: 65; display: flex; gap: 8px; padding: 10px var(--pad);
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-line);
  transform: translateY(120%); transition: transform .28s var(--ease);
}
.kg-actionbar.is-visible { transform: none; }
.kg-actionbar .kg-btn { flex: 1; padding-block: 12px; }
.kg-actionbar__icon { flex: none !important; width: 46px; padding: 0 !important; }
@media (min-width: 1024px) {
  .kg-actionbar { position: static; transform: none; padding: 0; margin-top: 20px; background: none; border: 0; backdrop-filter: none; }
  .kg-actionbar .kg-btn { flex: 0 1 auto; }

}

/* 2 カラム（PC） */
@media (min-width: 1024px) {
  .kg-single { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
  .kg-single__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
  .kg-single__hero { margin-inline: 0; border-radius: var(--r-lg); overflow: hidden; }
}

/* ---------- 13. カレンダー ---------- */
.kg-calendar { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 12px; }
.kg-calendar .fc { --fc-border-color: var(--c-line); --fc-today-bg-color: var(--c-brand-soft); font-size: 12px; }
.kg-calendar .fc .fc-toolbar-title { font-size: 16px; font-weight: 700; }
.kg-calendar .fc .fc-button {
  background: var(--c-surface-2); border: 0; color: var(--c-text-2);
  border-radius: var(--r-sm); padding: 5px 10px; font-size: 12px; font-weight: 700; text-transform: none;
}
.kg-calendar .fc .fc-button-primary:not(:disabled).fc-button-active,
.kg-calendar .fc .fc-button-primary:hover { background: var(--c-brand-mid); color: #fff; }
.kg-calendar .fc-daygrid-event { border-radius: 4px; padding: 1px 3px; font-size: 10.5px; border: 0; }
.kg-calendar .fc-daygrid-day-number { font-size: 12px; }
.kg-calendar .fc-daygrid-day-frame { min-height: 62px; }
.kg-calendar .fc-daygrid-more-link { font-size: 10px; color: var(--c-brand-dark); font-weight: 700; }
/* スマホは日ごとの「点」だけを見せ、詳細は日付タップで下に出す */
@media (max-width: 767px) {
  .kg-calendar { padding: 8px 6px; }
  .kg-calendar .fc .fc-toolbar-title { font-size: 15px; }
  .kg-calendar .fc-daygrid-day-frame { min-height: 54px; }
  .kg-calendar .fc-event-title, .kg-calendar .fc-event-time { display: none; }
  .kg-calendar .fc-daygrid-event {
    display: inline-block; width: 8px; height: 8px; padding: 0;
    border-radius: 50%; margin: 1px 1.5px 0 0; vertical-align: middle;
  }
  .kg-calendar .fc-daygrid-event-dot { display: none; }
  .kg-calendar .fc-h-event, .kg-calendar .fc-daygrid-block-event { border: 0; }
  .kg-calendar .fc-daygrid-event-harness { display: inline-block; width: auto; }
  .kg-calendar .fc-daygrid-day-events { text-align: center; margin-top: 2px; }
  .kg-calendar .fc-daygrid-day-bottom { text-align: center; margin: 0; }
}
.kg-caldetail { margin-top: 18px; }

/* ---------- 14. フォーム ---------- */
.kg-form { display: grid; gap: 18px; }
.kg-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.kg-field .req { color: var(--c-brand-dark); font-size: 11px; margin-left: 5px; }
.kg-field .opt { color: var(--c-text-3); font-size: 11px; margin-left: 5px; font-weight: 500; }
.kg-field input[type="text"], .kg-field input[type="email"], .kg-field input[type="tel"],
.kg-field input[type="url"], .kg-field input[type="date"], .kg-field input[type="datetime-local"],
.kg-field select, .kg-field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--c-line); background: var(--c-surface);
  font-size: 16px; /* iOS のズーム防止 */
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.kg-field textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.kg-field input:focus, .kg-field select:focus, .kg-field textarea:focus {
  outline: 0; border-color: var(--c-brand-mid); box-shadow: 0 0 0 3px var(--c-brand-soft);
}
.kg-field__hint { font-size: 11.5px; color: var(--c-text-3); margin-top: 5px; }
.kg-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.6; }
.kg-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--c-brand-mid); flex: none; }
.kg-hp { position: absolute; left: -9999px; }

.kg-alert { padding: 13px 15px; border-radius: var(--r-md); font-size: 13.5px; margin-bottom: 18px; }
.kg-alert--ok { background: var(--c-leaf-soft); border: 1px solid #C6E3DC; color: #1F6551; }
.kg-alert--error { background: #FDECE6; border: 1px solid #F3CFC2; color: #A8401C; }

/* 提供先の明示（送信前に何がどこへ渡るかを見せる） */
.kg-consent {
  background: var(--c-surface); border: 1.5px solid var(--c-brand-pale);
  border-radius: var(--r-md); padding: 14px 16px; margin: 4px 0 6px;
}
.kg-consent__title {
  font-size: 13px; font-weight: 700; color: var(--c-brand-dark);
  margin: 0 0 10px; display: flex; align-items: center; gap: 6px;
}
.kg-consent__title::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g-brand); flex: none;
}
.kg-consent__list { margin: 0; display: grid; gap: 8px; }
.kg-consent__list > div { display: grid; grid-template-columns: 108px 1fr; gap: 8px; font-size: 12.5px; }
.kg-consent__list dt { color: var(--c-text-2); font-weight: 700; }
.kg-consent__list dd { margin: 0; color: var(--c-text); line-height: 1.65; }
@media (max-width: 480px) {
  .kg-consent__list > div { grid-template-columns: 1fr; gap: 2px; }
  .kg-consent__list dt { font-size: 11.5px; }
}

/* Places など外部データの帰属表示 */
.kg-attribution { font-size: 11px; color: var(--c-text-3); margin-top: 6px; }

/* ---------- 15. 空状態・ローディング ---------- */
.kg-empty { text-align: center; padding: 48px 20px; color: var(--c-text-2); }
.kg-empty__icon { margin-bottom: 10px; color: var(--c-brand-pale); display: flex; justify-content: center; }
.kg-empty__msg { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--c-text); }
.kg-empty__hint { font-size: 12.5px; color: var(--c-text-3); }

.kg-skeleton { border-radius: var(--r-lg); background: var(--c-surface-2); position: relative; overflow: hidden; }
.kg-skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  animation: kg-shimmer 1.3s infinite;
}
@keyframes kg-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.kg-grid.is-loading { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* ---------- 16. ページャ・パンくず ---------- */
.kg-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.kg-pager a { padding: 10px 20px; border-radius: var(--r-pill); background: var(--c-surface); border: 1.5px solid var(--c-line); font-size: 13px; font-weight: 700; }
.kg-pager a:hover { border-color: var(--c-brand-mid); color: var(--c-brand-dark); }
.kg-pager__status { font-size: 12.5px; color: var(--c-text-3); font-family: var(--f-disp); }

.kg-breadcrumb { font-size: 11.5px; color: var(--c-text-3); padding: 10px 0 2px; }
.kg-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 5px; }
.kg-breadcrumb li + li::before { content: "›"; margin-right: 5px; color: var(--c-line-strong); }
.kg-breadcrumb a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 17. LP（term ページ） ---------- */
.kg-lp__intro {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 16px 18px; font-size: 13.5px; line-height: 1.85; color: var(--c-text-2);
}
.kg-faq { display: grid; gap: 8px; }
.kg-faq__item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.kg-faq__q {
  width: 100%; text-align: left; padding: 14px 44px 14px 16px; font-size: 14px; font-weight: 700;
  position: relative;
}
.kg-faq__q::after {
  content: "＋"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--c-brand-dark); font-weight: 700; transition: transform .2s var(--ease);
}
.kg-faq__item.is-open .kg-faq__q::after { content: "−"; }
.kg-faq__a { padding: 0 16px 16px; font-size: 13px; color: var(--c-text-2); line-height: 1.8; display: none; }
.kg-faq__item.is-open .kg-faq__a { display: block; }

/* ---------- 18. LINE の誘導 ---------- */
.kg-linecta {
  background: linear-gradient(135deg, #FFE89B, #FFF6CF); color: var(--c-text);
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: 20px 18px; text-align: center;
}
.kg-linecta h3 { font-size: 16px; margin-bottom: 6px; }
.kg-linecta p { font-size: 12.5px; opacity: .92; margin-bottom: 14px; }
.kg-linecta .kg-btn { background: #087C3B; color: #fff; box-shadow: none; }

/* ---------- 19. 広告 ---------- */
.kg-ad { margin: 24px 0; text-align: center; }
.kg-ad__label { display: block; font-size: 10px; color: var(--c-text-3); letter-spacing: .1em; margin-bottom: 4px; }

/* ---------- 20. フッター ---------- */
.kg-footer {
  background: var(--c-sun-soft); padding: 32px 0 28px; margin-top: 48px;
  border-top: 3px solid transparent;
  border-image: var(--g-brand) 1 / 3px / 0 stretch;
}
.kg-footer__grid { display: grid; gap: 24px; }
.kg-footer__title { font-size: 12px; color: var(--c-text-3); letter-spacing: .08em; font-weight: 700; margin-bottom: 8px; }
.kg-footer__links { display: grid; gap: 6px; font-size: 13px; }
.kg-footer__links a:hover { color: var(--c-brand-dark); }
.kg-footer__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.kg-footer__copy { font-size: 11px; color: var(--c-text-3); margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--c-line); text-align: center; }
@media (min-width: 768px) { .kg-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ---------- 21. アニメーション ---------- */
/* JS が動いているときだけ隠す。JS が失敗しても本文が消えないようにするため */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(14px); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 22. ユーティリティ ---------- */
.kg-hide-sp { display: none; }
@media (min-width: 768px) { .kg-hide-sp { display: initial; } .kg-hide-pc { display: none; } }
.kg-stack { display: grid; gap: 12px; }
.kg-mt-lg { margin-top: 28px; }

/* ---------- 21. 写真（イメージ写真・帯・タイル） ---------- */
/* 写真がない掲載に出すイメージ写真。実物ではないので必ず「イメージ」と添える */
.kg-phimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.kg-imgnote {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 500; letter-spacing: .04em;
  color: #fff; background: rgba(20, 40, 48, .55);
}
.kg-single__hero .kg-phimg { aspect-ratio: 16 / 9; height: auto; }
.kg-single__imgnote { font-size: 11px; color: var(--c-text-3); padding: 6px var(--pad) 0; }
@media (min-width: 1024px) {
  .kg-single__hero .kg-phimg { border-radius: var(--r-lg); }
  .kg-single__imgnote { padding-inline: 2px; }
}

/* トップのヒーロー写真 */
.kg-hero__photos { position: relative; margin-top: 16px; }
.kg-hero__photo { display: block; object-fit: cover; box-shadow: var(--sh-2); }
.kg-hero__photo--main { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
.kg-hero__photo--sub {
  position: absolute; right: 12px; bottom: -14px;
  width: 34%; aspect-ratio: 4 / 3; border-radius: var(--r-md);
  border: 3px solid #fff;
}
@media (min-width: 768px) {
  .kg-hero__top { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: center; }
  .kg-hero__photos { margin-top: 0; }
  .kg-hero__photo--main { aspect-ratio: 3 / 2; }
  .kg-hero__photo--sub { left: -22px; right: auto; bottom: -18px; width: 38%; }
  .kg-quick { margin-top: 34px; }
}

/* 1 タップ導線の写真つきボタン */
.kg-quick__btn--photo { padding: 8px 12px 8px 8px; }
.kg-quick__btn--photo .kg-quick__ico { display: none; }
.kg-quick__photo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }

/* 一覧ページの見出し */
.kg-pagehead { margin: 6px 0 14px; }
.kg-pagehead h1 { font-size: 22px; line-height: 1.4; }
.kg-pagehead p { font-size: 13px; color: var(--c-text-2); margin-top: 6px; }
.kg-pagehead--photo {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  min-height: 150px; display: flex; align-items: flex-end;
  background: var(--c-surface-2);
}
.kg-pagehead__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kg-pagehead--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 40, 48, 0) 20%, rgba(8, 40, 48, .72) 100%);
}
.kg-pagehead--photo .kg-pagehead__text { position: relative; z-index: 1; padding: 44px 16px 14px; color: #fff; }
.kg-pagehead--photo h1 { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.kg-pagehead--photo p { color: #fff; font-size: 12.5px; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
@media (min-width: 768px) {
  .kg-pagehead--photo { min-height: 220px; }
  .kg-pagehead--photo .kg-pagehead__text { padding: 60px 26px 22px; }
  .kg-pagehead--photo h1 { font-size: 28px; }
  .kg-pagehead--photo p { font-size: 14px; }
}

/* ジャンルの写真タイル */
.kg-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kg-tile {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  aspect-ratio: 4 / 3; display: flex; align-items: flex-end;
  background: var(--chip, var(--c-brand)); box-shadow: var(--sh-1);
}
.kg-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.kg-tile:hover img { transform: scale(1.05); }
.kg-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 40, 48, 0) 35%, rgba(8, 40, 48, .7) 100%);
}
.kg-tile__label {
  position: relative; z-index: 1; padding: 8px 9px; color: #fff;
  font-size: 13px; font-weight: 700; line-height: 1.3;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .4);
}
.kg-tile__label small { display: block; font-size: 10px; font-weight: 500; opacity: .92; }
@media (min-width: 768px) {
  .kg-tiles { grid-template-columns: repeat(9, 1fr); }
  .kg-tile { aspect-ratio: 3 / 4; }
}

/* LINE 誘導の写真 */
.kg-linecta--photo { padding: 0; display: grid; text-align: left; }
.kg-linecta__img { width: 100%; height: 150px; object-fit: cover; display: block; }
.kg-linecta--photo .kg-linecta__body { padding: 18px; }
@media (min-width: 768px) {
  .kg-linecta--photo { grid-template-columns: 42% 1fr; align-items: center; }
  .kg-linecta__img { height: 100%; min-height: 200px; }
  .kg-linecta--photo .kg-linecta__body { padding: 26px 30px; }
}

/* 固定ページ・記事の冒頭写真 */
.kg-pagephoto { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px; }
.kg-pagephoto img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }

/* ---------- 22. 季節の特集 ---------- */
/* イラストは横長（約 2.8:1）。文字はイラストに重ねず、下の帯に置く */
.kg-feature-banner {
  display: block; overflow: hidden; border-radius: var(--r-lg);
  background: var(--c-sun-soft); border: 1px solid var(--c-line); box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.kg-feature-banner:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.kg-feature-banner img { display: block; width: 100%; aspect-ratio: 25 / 9; object-fit: cover; }
.kg-feature-banner__text { display: block; padding: 14px 16px 16px; border-top: 4px solid var(--feature, var(--c-brand)); }
.kg-feature-banner__text small { display: block; font-size: 11.5px; font-weight: 700; color: var(--feature, var(--c-brand-dark)); letter-spacing: .04em; }
.kg-feature-banner__text strong { display: block; font-size: 19px; line-height: 1.4; margin-top: 3px; }
.kg-feature-banner__text span { display: block; font-size: 13px; color: var(--c-text-2); margin-top: 6px; line-height: 1.75; }
.kg-feature-banner__text em { display: inline-block; font-style: normal; font-size: 13px; font-weight: 700; color: var(--c-brand-dark); margin-top: 10px; }
.kg-feature-banner__text em::after { content: " ›"; }
@media (min-width: 768px) {
  .kg-feature-banner { display: grid; grid-template-columns: 1.35fr 1fr; align-items: stretch; }
  .kg-feature-banner img { height: 100%; aspect-ratio: auto; min-height: 220px; }
  .kg-feature-banner__text { border-top: 0; border-left: 5px solid var(--feature, var(--c-brand)); padding: 24px 26px; align-self: center; }
  .kg-feature-banner__text strong { font-size: 24px; }
}

.kg-feature-hero { margin: 6px 0 8px; border-radius: var(--r-lg); overflow: hidden; background: var(--c-sun-soft); border: 1px solid var(--c-line); }
.kg-feature-hero__img { display: block; width: 100%; aspect-ratio: 25 / 9; object-fit: cover; }
.kg-feature-hero__text { padding: 16px 16px 18px; border-top: 4px solid var(--feature, var(--c-brand)); }
.kg-feature-hero__label { font-size: 11.5px; font-weight: 700; color: var(--feature, var(--c-brand-dark)); }
.kg-feature-hero h1 { font-size: 23px; line-height: 1.4; margin-top: 4px; }
.kg-feature-hero__text > p:last-child { font-size: 13.5px; color: var(--c-text-2); margin-top: 8px; line-height: 1.8; }
@media (min-width: 768px) {
  .kg-feature-hero__text { padding: 22px 26px 24px; }
  .kg-feature-hero h1 { font-size: 30px; }
}
.kg-feature-strip { display: block; width: 100%; aspect-ratio: 25 / 6; object-fit: cover; border-radius: var(--r-lg); margin: 8px 0; }

.kg-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .kg-feature-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.kg-feature-card { min-width: 0;
  display: block; overflow: hidden; border-radius: var(--r-md);
  background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.kg-feature-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.kg-feature-card img { display: block; width: 100%; aspect-ratio: 25 / 11; object-fit: cover; }
.kg-feature-card__body { display: block; padding: 9px 11px 11px; border-top: 3px solid var(--feature, var(--c-brand)); }
.kg-feature-card__body small { display: block; font-size: 10.5px; color: var(--c-text-3); }
.kg-feature-card__body strong { display: block; font-size: 13px; line-height: 1.45; margin-top: 2px; }
.kg-feature-card.is-now { outline: 2px solid var(--feature, var(--c-brand)); outline-offset: -2px; }
.kg-feature-card.is-now small { color: var(--feature, var(--c-brand-dark)); font-weight: 700; }

/* ---------- 23. LIFF（LINE の中で開く登録画面） ---------- */
.kg-liff-body { background: var(--c-bg); }
.kg-liff { max-width: 560px; margin: 0 auto; padding: 22px 16px 40px; }
.kg-liff__brand { font-size: 12px; font-weight: 700; color: var(--c-brand-dark); }
.kg-liff__title { font-size: 21px; margin-top: 4px; }
.kg-liff__lead { font-size: 13px; color: var(--c-text-2); margin-top: 6px; line-height: 1.8; }
.kg-liff__state { margin-top: 24px; font-size: 14px; color: var(--c-text-2); text-align: center; }
.kg-liff__state--error { color: var(--c-accent-dark); background: var(--c-accent-soft); border-radius: var(--r-md); padding: 14px; }
.kg-liff__q { margin-top: 22px; }
.kg-liff__q h2 { font-size: 15px; margin-bottom: 10px; }
.kg-liff__q h2 small { font-size: 11.5px; font-weight: 500; color: var(--c-text-3); }
.kg-liff .kg-opt { cursor: pointer; }
.kg-liff .kg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.kg-liff .kg-opt:has(input:focus-visible) { outline: 2px solid var(--c-brand-mid); outline-offset: 2px; }
.kg-liff__topic { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 13px 14px; }
.kg-liff__note, .kg-liff__privacy { font-size: 11.5px; color: var(--c-text-3); margin-top: 10px; line-height: 1.8; }
.kg-liff__privacy { margin: 24px 0 14px; }
.kg-liff__privacy a { color: var(--c-sky); text-decoration: underline; }
.kg-liff__done { text-align: center; padding: 30px 0 10px; }
.kg-liff__done-mark { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: var(--c-on-brand); background: var(--g-button); }
.kg-liff__done h2 { font-size: 20px; }
.kg-liff__done p { font-size: 13px; color: var(--c-text-2); margin-top: 6px; }
.kg-liff__picks-title { font-size: 15px; margin: 22px 0 10px; }
.kg-liff__picks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.kg-liff__picks a { display: block; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 12px 14px; font-weight: 700; font-size: 14px; }
.kg-liff__picks small { display: block; font-weight: 500; font-size: 12px; color: var(--c-text-3); margin-top: 3px; }

/* ---------- 24. 写真がない掲載の線画アイコン ---------- */
.kg-ph--icon { color: var(--ph-ink, var(--c-brand-dark)); opacity: 1; }
.kg-ph--icon svg { width: clamp(38px, 11vw, 56px); height: auto; }
.kg-single__hero .kg-ph--icon svg { width: clamp(56px, 12vw, 84px); }
.kg-listcard__media .kg-ph--icon svg { width: 34px; }
.kg-ph[data-kind="park"]           { --ph-ink:#2A7D63; }
.kg-ph[data-kind="support-center"] { --ph-ink:#1E6FB8; }
.kg-ph[data-kind="indoor-play"]    { --ph-ink:#5B55A8; }
.kg-ph[data-kind="indoor-pool"]    { --ph-ink:#0B7D84; }
.kg-ph[data-kind="restaurant"]     { --ph-ink:#B84A26; }
.kg-ph[data-kind="seasonal"]       { --ph-ink:#B5397A; }
.kg-ph[data-kind^="school"]        { --ph-ink:#33509E; }

/* ---------- 25. フォームの横はみ出し対策 ---------- */
/* グリッドの子は既定で中身より狭くならない。横スクロールのチップや長い入力欄で画面からはみ出すのを防ぐ */
.kg-form > *, .kg-fieldrow > * { min-width: 0; }
.kg-field input, .kg-field select, .kg-field textarea { max-width: 100%; }
/* 2 列の入力欄はスマホでは 1 列にする */
.kg-fieldrow { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 600px) { .kg-fieldrow { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* ---------- 26. 地図は押したときだけ表示 ---------- */
.kg-map__show {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--c-brand-dark); font-weight: 700; font-size: 14px;
  background: repeating-linear-gradient(45deg, var(--c-surface-2) 0 12px, #F5E9D5 12px 24px);
}
.kg-map__show:hover span { text-decoration: underline; }

/* ---------- 27. カレンダーのイベント名はリンク ---------- */
.kg-calendar a.fc-event { cursor: pointer; }
.kg-calendar a.fc-event:hover .fc-event-title,
.kg-calendar a.fc-event:focus-visible .fc-event-title { text-decoration: underline; }

/* ---------- 28. 要点まとめ・よくある質問（詳細ページ） ---------- */
.kg-keyfacts { margin: 18px 0 22px; padding: 16px 16px 12px; border-radius: var(--r-lg); background: var(--c-sun-soft); border: 1px solid #EBD58D; }
.kg-keyfacts__title { font-size: 14px; color: var(--c-brand-dark); margin-bottom: 6px; }
.kg-keyfacts__summary { font-size: 14.5px; line-height: 1.85; font-weight: 500; }
.kg-keyfacts__list { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 10px; }
@media (min-width: 600px) { .kg-keyfacts__list { grid-template-columns: 1fr 1fr; column-gap: 18px; } }
.kg-keyfacts__list > div { display: flex; gap: 10px; font-size: 13px; padding: 6px 0; border-top: 1px dashed #EBD58D; }
.kg-keyfacts__list dt { flex: none; width: 6.5em; color: var(--c-text-2); font-weight: 700; }
.kg-keyfacts__list dd { margin: 0; }
.kg-keyfacts__asof { font-size: 11px; color: var(--c-text-3); margin-top: 8px; }
.kg-qa__item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 0 14px; margin-bottom: 8px; }
.kg-qa__item summary { cursor: pointer; padding: 13px 0; font-weight: 700; font-size: 14px; list-style: none; }
.kg-qa__item summary::-webkit-details-marker { display: none; }
.kg-qa__item summary::before { content: "Q. "; color: var(--c-brand-dark); }
.kg-qa__item p { font-size: 13.5px; line-height: 1.8; padding-bottom: 13px; color: var(--c-text-2); }
.kg-qa__item p::before { content: "A. "; font-weight: 700; color: var(--c-accent-dark); }

/* ---------- 25. 白い余白と写真を使ったホームデザイン ---------- */
.kg-logo__image { display: block; width: 182px; height: auto; }
.kg-header { border-bottom-color: #F0ECE6; }
.kg-footer { background: #fff; border-top: 1px solid var(--c-line); border-image: none; padding-top: 40px; }
.kg-footer__brand { display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: center; margin-bottom: 32px; }
.kg-footer__brand img { display: block; width: 240px; height: auto; }
.kg-footer__brand p { font-size: 13px; color: var(--c-text-2); margin: 0; line-height: 1.9; }
.home .kg-main { padding-top: 0; }
.home .kg-section { margin-block: 52px; }
.home .kg-section__title { font-size: 21px; }
.home .kg-section__title::before { width: 6px; height: 22px; background: var(--c-sun); }
.kg-card { box-shadow: 0 4px 20px rgba(73, 53, 43, .04); }
.kg-feature-banner, .kg-feature-hero { background: #fff; }
.kg-feature-banner__text { background: linear-gradient(135deg, #FFFDF5, #fff); }
.kg-hero--editorial { padding: 0 0 12px; background: #fff; overflow: visible; }
.kg-hero--editorial::before { display: none; }
.kg-hero--editorial .kg-hero__top {
  position: relative; isolation: isolate; display: flex; align-items: flex-start;
  min-height: 490px; margin-inline: calc(-1 * var(--pad)); overflow: hidden;
  background: #F5F3E8;
}
.kg-hero--editorial .kg-hero__photos { position: absolute; inset: 0; margin: 0; z-index: -2; }
.kg-hero--editorial .kg-hero__photo--main {
  width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none;
  object-fit: cover; object-position: 68% center;
}
.kg-hero--editorial .kg-hero__top::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.87) 28%, rgba(255,255,255,.08) 68%, transparent 100%);
}
.kg-hero--editorial .kg-hero__copy { padding: 28px 24px 200px; width: 100%; }
.kg-hero--editorial .kg-hero__lead { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--c-text); margin-bottom: 14px; }
.kg-hero--editorial .kg-hero__title { font-size: clamp(32px, 9vw, 40px); line-height: 1.35; letter-spacing: .02em; color: #382B23; }
.kg-hero--editorial .kg-hero__title em { color: inherit; background: none; }
.kg-hero--editorial .kg-hero__desc { color: #49352B; font-size: 13px; line-height: 1.9; margin: 12px 0 18px; font-weight: 500; }
.kg-hero__cta { display: inline-flex; align-items: center; gap: 24px; padding: 11px 18px; background: var(--c-sun); color: var(--c-text); border-radius: 999px; font-weight: 700; font-size: 12px; transition: background .2s; }
.kg-hero__cta:hover { background: #FFE89B; }
.kg-hero__cta span { font-size: 18px; line-height: 1; }
.kg-hero--editorial .kg-quick { position: relative; margin-top: 26px; }
.kg-hero--editorial .kg-quick__label { font-size: 13px; margin-bottom: 12px; }
.kg-hero--editorial .kg-quick__grid { gap: 10px; }
.kg-hero--editorial .kg-quick__btn--photo {
  position: relative; isolation: isolate; overflow: hidden; min-height: 150px;
  display: flex; align-items: flex-end; padding: 15px 12px; border: none;
  border-radius: 16px; background: #49352B; box-shadow: none; color: #fff;
}
.kg-hero--editorial .kg-quick__photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; z-index: -2; transition: transform .4s; }
.kg-hero--editorial .kg-quick__btn--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 10%, rgba(22,29,22,.83) 100%); }
.kg-hero--editorial .kg-quick__btn--photo:hover .kg-quick__photo { transform: scale(1.05); }
.kg-hero--editorial .kg-quick__btn--photo small { color: #fff; margin-top: 5px; font-size: 10px; }
.kg-hero--editorial .kg-agepick { margin-top: 0; gap: 8px; }
.kg-hero--editorial .kg-agepick__btn { background: #fff; border-color: #E9E4DC; box-shadow: none; }
.kg-hero--editorial .kg-agepick__btn.is-active { background: var(--c-sun); color: var(--c-text); }
.kg-section__head--photo { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; min-height: 190px; align-items: flex-end; padding: 24px 20px; color: #fff; background: #49352B; }
.kg-section__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.kg-section__head--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,25,20,.05), rgba(15,25,20,.82)); }
.kg-section__head--photo .kg-section__title { font-size: 20px; }
.kg-section__head--photo .kg-section__title::before { display: none; }
.kg-section__head--photo .kg-section__sub { color: #fff; margin-top: 8px; }
.kg-section__head--photo .kg-section__more { color: #fff; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 3px; }
@media (min-width: 768px) {
  :root { --header-h: 88px; }
  .kg-logo__image { width: 222px; }
  .kg-hero--editorial { padding-top: 14px; }
  .kg-hero--editorial .kg-hero__top { min-height: 530px; align-items: center; margin-inline: 0; border-radius: 28px; }
  .kg-hero--editorial .kg-hero__photo--main { object-position: center 56%; }
  .kg-hero--editorial .kg-hero__top::after { background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 27%, rgba(255,255,255,.25) 53%, transparent 70%); }
  .kg-hero--editorial .kg-hero__copy { padding: 52px 44px; width: 60%; }
  .kg-hero--editorial .kg-hero__lead { font-size: 12px; }
  .kg-hero--editorial .kg-hero__title { font-size: clamp(40px, 4.3vw, 56px); }
  .kg-hero--editorial .kg-hero__desc { font-size: 15px; margin-block: 20px 26px; }
  .kg-hero__cta { padding: 14px 22px; font-size: 14px; }
  .kg-hero--editorial .kg-quick { margin-top: 34px; }
  .kg-hero--editorial .kg-quick__grid { gap: 16px; }
  .kg-hero--editorial .kg-quick__btn--photo { min-height: 176px; padding: 20px; font-size: 17px; }
  .kg-hero--editorial .kg-quick__btn--photo small { font-size: 11px; }
  .home .kg-section { margin-block: 68px; }
  .home .kg-section__title { font-size: 25px; }
  .kg-section__head--photo { min-height: 240px; padding: 32px; }
  .kg-footer__brand { margin-bottom: 42px; }
}
@media (max-width: 360px) {
  .kg-hero--editorial .kg-hero__copy { padding-inline: 20px; }
  .kg-section__head--photo { padding-inline: 16px; gap: 8px; }
  .kg-section__head--photo .kg-section__title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .kg-hero--editorial .kg-quick__photo { transition: none; }
}

/* ---------- 29. 写真のない施設・習い事（アイコン中心のデザイン） ---------- */
html { overflow-x: clip; }

/* 種別アイコンの色タイル: 種別の色を薄く敷き、線画を同系の濃い色で */
.kg-icon-tile {
  --s: 44px;
  flex: none; width: var(--s); height: var(--s); border-radius: 14px;
  display: grid; place-items: center;
  color: var(--tile, var(--c-brand));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--tile, var(--c-brand)) 16%, #fff), color-mix(in srgb, var(--tile, var(--c-brand)) 6%, #fff));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tile, var(--c-brand)) 18%, transparent);
}
.kg-icon-tile svg { width: 58%; height: 58%; stroke-width: 1.5; }
.kg-icon-tile--lg { --s: 72px; border-radius: 22px; }
@media (min-width: 768px) { .kg-icon-tile--lg { --s: 88px; border-radius: 26px; } }

/* 写真のないカード: 画像の枠を出さず、アイコンと種別を 1 行に */
.kg-card--noimg .kg-card__head { display: flex; align-items: center; gap: 10px; padding: 14px 52px 0 14px; }
.kg-card__label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  color: color-mix(in srgb, var(--tag, var(--c-brand)) 80%, #2b1d14);
}
.kg-card--noimg .kg-card__body { padding-top: 10px; }
.kg-card--noimg .kg-card__fav { top: 14px; right: 12px; background: var(--c-surface-2); box-shadow: none; }

.kg-card--noimg:hover .kg-icon-tile { transform: rotate(-4deg) scale(1.04); }
.kg-icon-tile { transition: transform .25s var(--ease); }

/* 写真のない詳細ページの見出し: 画面いっぱいの季節イラスト＋白いパネル */
.kg-dhero { position: relative; isolation: isolate; padding: 0 0 8px; margin-bottom: 8px; margin-inline: calc(50% - 50vw); }
.kg-dhero__bg {
  position: absolute; inset: 0 0 auto; width: 100%; height: 240px; object-fit: cover; z-index: -2;
}
.kg-dhero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 240px; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.25) 55%, #fff 100%);
}
.kg-dhero__inner { padding-top: 10px; }
.kg-dhero .kg-breadcrumb { background: rgba(255,255,255,.85); display: inline-block; border-radius: var(--r-pill); padding: 4px 12px; backdrop-filter: blur(6px); }
.kg-dhero__panel {
  margin-top: 96px; display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255,255,255,.96); border: 1px solid var(--c-line); border-radius: var(--r-xl);
  padding: 18px 16px; box-shadow: 0 18px 50px rgba(73, 53, 43, .10); backdrop-filter: blur(8px);
}
.kg-dhero__panel .kg-icon-tile--lg { margin-top: -46px; box-shadow: 0 10px 28px rgba(73,53,43,.14), inset 0 0 0 1px color-mix(in srgb, var(--tile) 18%, transparent); background: #fff linear-gradient(145deg, color-mix(in srgb, var(--tile) 18%, #fff), #fff); }
.kg-dhero__text { min-width: 0; flex: 1; }
.kg-dhero__label { display: inline-block; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--tile) 80%, #2b1d14); letter-spacing: .04em; }
.kg-dhero__title { font-size: 22px; line-height: 1.4; margin-top: 2px; }
.kg-dhero__excerpt { font-size: 13.5px; color: var(--c-text-2); margin-top: 6px; line-height: 1.75; }
.kg-dhero__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
@media (max-width: 599px) {
  .kg-dhero__panel { flex-direction: column; gap: 10px; }
  .kg-dhero__panel .kg-icon-tile--lg { margin-top: -50px; }
}
@media (min-width: 768px) {
  .kg-dhero__bg, .kg-dhero::before { height: 340px; }
  .kg-dhero__panel { margin-top: 150px; padding: 26px 28px; gap: 24px; }
  .kg-dhero__panel .kg-icon-tile--lg { margin-top: -60px; }
  .kg-dhero__title { font-size: 30px; }
  .kg-dhero__excerpt { font-size: 14.5px; }
}

/* 一覧ページの見出し写真は画面の端から端まで */
.kg-pagehead--photo { margin-inline: calc(50% - 50vw); border-radius: 0; min-height: 200px; }
.kg-pagehead--photo .kg-pagehead__text { width: 100%; max-width: var(--w-max); margin-inline: auto; padding-inline: var(--pad); }
@media (min-width: 768px) {
  .kg-pagehead--photo { min-height: 320px; }
  .kg-pagehead--photo h1 { font-size: 34px; }
}

/* よくある質問は見出しとの間をあける */
.kg-faq { margin-top: 14px; }

/* ---------- 30. 公式LINE の説明ページ（/line/） ---------- */
.kg-lineh { position: relative; margin: -20px calc(50% - 50vw) 0; padding: 28px 0 40px; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, #D9F7E4 0%, transparent 60%), radial-gradient(90% 80% at 0% 100%, #FFF2C2 0%, transparent 60%), #F7FFF9; }
.kg-lineh::after { content: ""; position: absolute; right: -60px; top: 40px; width: 260px; height: 260px; border-radius: 50%; background: #06C755; opacity: .08; }
.kg-lineh__inner { position: relative; z-index: 1; }
.kg-lineh__eyebrow { margin-top: 14px; font-size: 12px; font-weight: 700; color: #04893C; letter-spacing: .06em; }
.kg-lineh__title { font-size: 30px; line-height: 1.35; margin-top: 6px; letter-spacing: -.01em; }
.kg-lineh__lead { font-size: 14px; color: var(--c-text-2); line-height: 1.85; margin-top: 12px; }
.kg-lineh__cta { margin-top: 20px; padding: 15px 26px; font-size: 15px; }
.kg-lineh__note { font-size: 11.5px; color: var(--c-text-3); margin-top: 10px; }
@media (min-width: 768px) { .kg-lineh { padding: 40px 0 56px; } .kg-lineh__title { font-size: 44px; } .kg-lineh__lead { font-size: 15.5px; } }

.kg-line__merits { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 768px) { .kg-line__merits { grid-template-columns: 1fr 1fr; gap: 14px; } }
.kg-line__merit { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--sh-1); }
.kg-line__merit b { display: block; font-size: 16px; }
.kg-line__merit b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #06C755; margin-right: 8px; vertical-align: middle; }
.kg-line__merit span { display: block; font-size: 13.5px; color: var(--c-text-2); line-height: 1.8; margin-top: 6px; }

.kg-line__topics { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 768px) { .kg-line__topics { grid-template-columns: repeat(2, 1fr); } }
.kg-line__topic { border-left: 4px solid #06C755; background: #F4FCF7; border-radius: 0 var(--r-md) var(--r-md) 0; padding: 12px 16px; }
.kg-line__topic h3 { font-size: 15px; }
.kg-line__topic p { font-size: 13px; color: var(--c-text-2); line-height: 1.75; margin-top: 4px; }
.kg-line__topic .kg-line__when { font-size: 11.5px; font-weight: 700; color: #04893C; }

.kg-line__menu { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 600px) { .kg-line__menu { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .kg-line__menu { grid-template-columns: repeat(3, 1fr); } }
.kg-line__menuitem { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 14px; }
.kg-line__menuitem b { display: block; font-size: 14.5px; }
.kg-line__menuitem span:not(.kg-icon-tile) { display: block; font-size: 12.5px; color: var(--c-text-2); line-height: 1.7; margin-top: 3px; }

.kg-line__steps { counter-reset: step; list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
@media (min-width: 768px) { .kg-line__steps { grid-template-columns: repeat(3, 1fr); } }
.kg-line__steps li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 16px 16px 16px 58px; }
.kg-line__steps li::before { content: counter(step); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-disp); font-weight: 700; color: #fff; background: #06C755; }
.kg-line__steps b { display: block; font-size: 15px; }
.kg-line__steps span { display: block; font-size: 13px; color: var(--c-text-2); line-height: 1.75; margin-top: 4px; }

.kg-line__privacy { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 768px) { .kg-line__privacy { grid-template-columns: repeat(3, 1fr); } }
.kg-line__privacy > div { background: var(--c-surface-2); border-radius: var(--r-lg); padding: 14px 16px; }
.kg-line__privacy h3 { font-size: 14px; }
.kg-line__privacy p { font-size: 13px; color: var(--c-text-2); line-height: 1.8; margin-top: 4px; }

/* ---------- 31. 記事: 開催済みのイベント（記録） ---------- */
.kg-article-past { margin-top: 18px; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 12px 14px; background: var(--c-surface-2); }
.kg-article-past > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--c-text-2); }
.kg-article-past .kg-article-list { margin-top: 12px; }
.kg-article-past .kg-card { opacity: .82; }

/* ---------- 32. ドライブがてら ---------- */
.kg-drive__chips { margin-top: 14px; }
.kg-drive__chips + .kg-drive__chips { margin-top: 8px; }
.kg-drive__note { font-size: 11.5px; color: var(--c-text-3); margin-top: 10px; }
.kg-drive__km { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--c-text-3); vertical-align: middle; }
.kg-drive__posts { display: grid; gap: 10px; margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kg-drive__post { display: block; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }
.kg-drive__post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.kg-drive__post span { display: block; padding: 10px 12px; font-size: 13.5px; font-weight: 700; line-height: 1.6; }

.kg-drivebn { position: relative; overflow: hidden; margin-inline: calc(50% - 50vw); min-height: 300px; display: flex; align-items: center; }
.kg-drivebn__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kg-drivebn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .82) 45%, rgba(255, 255, 255, 0) 80%); }
.kg-drivebn__text { position: relative; z-index: 1; width: 100%; max-width: var(--w-max); margin-inline: auto; padding: 36px var(--pad); }
.kg-drivebn__text > * { max-width: 460px; }
.kg-drivebn__eyebrow { font-size: 12px; font-weight: 700; color: var(--c-primary-ink, #C2410C); letter-spacing: .08em; }
.kg-drivebn h2 { font-size: 24px; line-height: 1.4; margin-top: 6px; }
.kg-drivebn p:not(.kg-drivebn__eyebrow) { font-size: 13.5px; color: var(--c-text-2); line-height: 1.8; margin-top: 8px; }
.kg-drivebn .kg-btn { margin-top: 16px; }
@media (max-width: 599px) { .kg-drivebn::after { background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .93) 55%); } .kg-drivebn { align-items: flex-end; min-height: 360px; } }
@media (min-width: 768px) { .kg-drivebn { min-height: 380px; } .kg-drivebn h2 { font-size: 32px; } }

/* ---------- 33. フォームの確認画面 ---------- */
.kg-confirm { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 20px 18px; box-shadow: var(--sh-1); }
.kg-confirm__title { font-size: 18px; }
.kg-confirm__lead { font-size: 13px; color: var(--c-text-2); margin-top: 6px; }
.kg-confirm__table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.kg-confirm__table th, .kg-confirm__table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--c-line); }
.kg-confirm__table th { width: 34%; color: var(--c-text-2); font-weight: 700; font-size: 13px; }
.kg-confirm__table td { white-space: pre-wrap; word-break: break-word; }
.kg-confirm__table td.is-empty { color: var(--c-text-3); }
.kg-confirm__actions { display: flex; gap: 10px; margin-top: 18px; }
.kg-confirm__actions .kg-btn { flex: 1; justify-content: center; }
@media (max-width: 599px) { .kg-confirm__table th, .kg-confirm__table td { display: block; width: auto; border: 0; padding: 4px 0; } .kg-confirm__table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--c-line); } }
.kg-form[hidden], .kg-confirm[hidden] { display: none !important; }

/* ---------- 34. 花火カレンダー ---------- */
.kg-hanabi-head .kg-pagehead__img { object-position: center 30%; }
.kg-hanabi__stats { margin-top: 14px; font-size: 13px; color: var(--c-text-2); }
.kg-hanabi__stats b { font-size: 18px; color: var(--c-text); }
.kg-hanabi__months { margin: 12px 0 4px; flex-wrap: wrap; overflow: visible; }
.kg-hanabi__month { font-size: 18px; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 2px solid #2C3E7A; scroll-margin-top: 80px; }
.kg-hanabi__list { display: grid; gap: 10px; }
@media (min-width: 768px) { .kg-hanabi__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .kg-hanabi__list { grid-template-columns: repeat(3, 1fr); } }
.kg-hanabi__item { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kg-hanabi__top { display: flex; gap: 8px; align-items: center; font-size: 11.5px; }
.kg-hanabi__type { font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; background: #2C3E7A; }
.kg-hanabi__type--tezutsu { background: #C2410C; }
.kg-hanabi__type--both { background: linear-gradient(90deg, #C2410C, #2C3E7A); }
.kg-hanabi__area { color: var(--c-text-3); font-weight: 700; }
.kg-hanabi__item h4 { font-size: 15px; line-height: 1.5; margin-top: 2px; }
.kg-hanabi__when { font-size: 13px; font-weight: 700; }
.kg-hanabi__when span { display: block; font-weight: 400; font-size: 12.5px; }
.kg-hanabi__when .is-next { color: #C2410C; font-weight: 700; }
.kg-hanabi__when .is-past { color: var(--c-text-3); }
.kg-hanabi__venue, .kg-hanabi__tips { font-size: 12.5px; color: var(--c-text-2); line-height: 1.7; }
.kg-hanabi__link { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--c-sky); text-decoration: underline; }
.kg-hanabi__notes { margin: 12px 0 0 1.2em; font-size: 13.5px; line-height: 1.9; color: var(--c-text-2); }

/* ---------- アフィリエイトの紹介カード（[kg_aff]・2026-10-06） ---------- */
.kg-aff { margin: 28px 0; padding: 18px 16px 14px; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-surface-2); }
.kg-aff__title { margin: 0 0 12px; font-weight: 700; color: var(--c-text); }
.kg-aff__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.kg-aff__card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; }
.kg-aff__pr { position: absolute; top: 10px; right: 10px; font-size: 10.5px; font-weight: 700; color: var(--c-text-2); border: 1px solid var(--c-line-strong); border-radius: 3px; padding: 0 5px; line-height: 1.6; }
.kg-aff__name { margin: 0; padding-right: 32px; font-weight: 700; font-size: 15px; line-height: 1.5; }
.kg-aff__desc { margin: 0 0 6px; font-size: 13px; line-height: 1.7; color: var(--c-text-2); flex: 1; }
.kg-aff__btn { align-self: flex-start; }
.kg-aff__px { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kg-aff__note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--c-text-2); }
