/* footer-v2.css rev21 (2026-05-11 19:00) */

/* JIN親スペース潰し */
.kidslabWrap #breadcrumb { margin: 0; padding-top: 0; padding-bottom: 0; }
.kidslabWrap > #scroll-content > footer,
body footer[role="contentinfo"] {
  padding: 0 !important; margin: 0 !important; width: 100%; max-width: 100%;
  overflow-x: hidden; border-top: none !important;
  background: #F5F4ED !important; background-color: #F5F4ED !important;
}
/* breadcrumb 下のグレー隙間を解消 */
body #breadcrumb.footer_type1,
body #breadcrumb {
  margin-bottom: 0 !important;
}
body #breadcrumb + footer,
body #breadcrumb ~ footer { margin-top: 0 !important; }
body footer[role="contentinfo"] > .clearfix:empty { display: none; }
body footer[role="contentinfo"]::before,
body footer[role="contentinfo"]::after { display: none !important; }

/* ========== PC HEADER A案 80px ========== */
@media (min-width: 768px) {
  html body .kidslabWrap > #scroll-content > header.wow.fadeIn {
    background: #FFFFFF !important;
    border-bottom: 1px solid rgba(44,41,37,0.06) !important;
    height: 80px !important; min-height: 80px !important;
    z-index: 99999 !important; isolation: isolate !important;
  }
  html body .kidslabWrap > #scroll-content > header.wow.fadeIn .inner {
    max-width: 1200px !important; height: 80px !important; min-height: 80px !important;
    margin: 0 auto !important; padding: 0 40px !important;
    display: flex !important; align-items: center !important;
    width: min(1200px, calc(100% - 32px)) !important;
    overflow: visible !important;
  }
  /* JIN親 .kidslabWrap padding-top: 100px を 80px に上書き */
  html body div#wrapper.kidslabWrap { padding-top: 80px !important; }
  html body .kidslabWrap > #scroll-content { padding-top: 0 !important; }
  html body .kidslabWrap > #scroll-content > header.wow.fadeIn .logoArea { flex-shrink: 0 !important; }
  /* ロゴはサイズ指定しない — JIN親のデフォルトを尊重 */
  html body .kidslabWrap > #scroll-content > header.wow.fadeIn #pcMenu {
    margin-left: auto !important; position: static !important;
  }
  html body .kidslabWrap > #scroll-content > header.wow.fadeIn #pcMenu > ul {
    display: flex !important; gap: 0 !important; align-items: center !important;
    list-style: none !important; margin: 0 !important; padding: 0 !important;
  }
  html body .kidslabWrap > #scroll-content > header.wow.fadeIn #pcMenu > ul > li {
    position: relative; list-style: none !important; margin: 0 !important; padding: 0 !important;
  }
  /* トップメニュー文字色 #4A4844 */
  html body .kidslabWrap > #scroll-content > header.wow.fadeIn #pcMenu > ul > li > span,
  html body .kidslabWrap > #scroll-content > header.wow.fadeIn #pcMenu > ul > li > a {
    font-size: 14px !important; font-weight: 400 !important;
    color: #3B4675 !important;
    padding: 8px 18px !important; display: inline-block !important; cursor: pointer;
  }
  html body .kidslabWrap > #scroll-content > header.wow.fadeIn #pcMenu > ul > li:hover > span,
  html body .kidslabWrap > #scroll-content > header.wow.fadeIn #pcMenu > ul > li:hover > a {
    color: #01B9EF !important;
  }
  /* ドロップダウン — 背景白＋文字 #4A4844（通常・hover とも） */
  html body #pcMenu > ul > li > ul,
  html body #pcMenu > ul > li > ul.faqList {
    background-color: #FFFFFF !important; background: #FFFFFF !important;
    border-radius: 10px !important; box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
    border: 1px solid rgba(44,41,37,0.08) !important; padding: 6px 0 !important;
    min-width: 200px !important;
    z-index: 100000 !important;
    position: absolute !important;
  }
  html body #pcMenu > ul > li > ul > li,
  html body #pcMenu > ul > li > ul.faqList > li {
    border: none !important; margin: 0 !important; padding: 0 !important;
    background-color: transparent !important;
  }
  /* a の color は通常・hover の両方を !important で固定 */
  html body #pcMenu > ul > li > ul > li > a,
  html body #pcMenu > ul > li > ul.faqList > li > a,
  html body #pcMenu > ul > li > ul > li > a:link,
  html body #pcMenu > ul > li > ul.faqList > li > a:link,
  html body #pcMenu > ul > li > ul > li > a:visited,
  html body #pcMenu > ul > li > ul.faqList > li > a:visited {
    font-size: 13px !important;
    color: #3B4675 !important;
    padding: 10px 20px !important; display: block !important;
    background-color: #FFFFFF !important; background: #FFFFFF !important;
    text-decoration: none !important;
  }
  html body #pcMenu > ul > li > ul > li > a:hover,
  html body #pcMenu > ul > li > ul.faqList > li > a:hover,
  html body #pcMenu > ul > li > ul > li > a:focus,
  html body #pcMenu > ul > li > ul.faqList > li > a:focus,
  html body #pcMenu > ul > li > ul > li > a:active,
  html body #pcMenu > ul > li > ul.faqList > li > a:active {
    color: #3B4675 !important;
    background-color: #F5F4ED !important; background: #F5F4ED !important;
  }
}

/* ========== FOOTER — ベージュ帯 + 白カード ========== */
.kl-footer {
  width: 100vw; position: relative; left: 50%;
  margin-left: -50vw; margin-right: -50vw;
  background: #F5F4ED; padding: 56px 0 64px;
  -webkit-font-smoothing: antialiased; border: none !important;
}
.kl-footer * { box-sizing: border-box; }
.kl-footer a { color: #4A4844; text-decoration: none; }
.kl-footer-inner {
  background: #FFFFFF; max-width: 1040px; margin: 0 auto;
  border-radius: 16px; padding: 52px 44px 40px;
  font-size: 13px; line-height: 1.65; color: #4A4844;
}
.kl-footer-tagline { margin: 0 0 32px; text-align: center; font-size: 13.5px; font-weight: 500; }
.kl-footer-nav--pc { display: grid; grid-template-columns: repeat(4,1fr); gap: 36px; padding: 4px 0 30px; }
html body .kl-footer .kl-footer-nav--pc .kl-col-title {
  display: inline-block !important; margin: 0 0 16px !important; padding: 0 0 8px !important;
  font-size: 12.5px !important; font-weight: 500 !important;
  border-bottom: 2px solid #00B4ED !important;
  border-top: none !important; border-left: none !important; border-right: none !important;
}
.kl-footer-nav--pc ul { margin: 0; padding: 0; list-style: none; }
.kl-footer-nav--pc li { margin: 0; padding: 6px 0; font-size: 12.5px; list-style: none; }
.kl-footer-nav--pc a { color: rgba(74,72,68,0.85); }
.kl-footer-nav--sp { display: none; }
.kl-acc { background: transparent !important; border-radius: 0; margin: 0 0 18px; overflow: hidden; text-align: center; }
html body .kl-footer .kl-acc summary { list-style: none !important; cursor: pointer; padding: 6px 0 10px !important; font-size: 13px !important; font-weight: 500 !important; color: #3B4675 !important; position: relative; text-align: center; -webkit-tap-highlight-color: transparent; display: inline-block !important; margin: 0 auto !important; border-bottom: none !important; border-top: none !important; border-left: none !important; border-right: none !important; background: transparent !important; }
.kl-acc summary::-webkit-details-marker { display: none; }
.kl-acc summary::after { content: ""; position: absolute; right: -14px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid #3B4675; border-bottom: 1.5px solid #3B4675; transform: translateY(-70%) rotate(45deg); transition: transform .22s, border-color .18s; }
.kl-acc[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: #00B4ED; }
.kl-acc[open] summary { font-weight: 600; }
.kl-acc[open] ul { border-top: none; margin: 0; padding: 10px 16px 14px; }
.kl-acc ul { margin: 0; padding: 0 16px 12px; list-style: none; text-align: center; }
.kl-acc li { margin: 0; padding: 12px 2px; font-size: 13px; border-bottom: 1px solid rgba(74,72,68,0.05); list-style: none; }
.kl-acc li:last-child { border-bottom: none; }
.kl-acc li a { color: rgba(59,70,117,0.85); }
.kl-footer-sns { display: flex; justify-content: center; gap: 28px; margin: 4px 0 0; padding: 18px 0 6px; list-style: none; }
.kl-footer-sns li { margin: 0; padding: 0; list-style: none; }
.kl-footer-sns a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: rgba(74,72,68,0.85); }
.kl-footer-sns svg, .kl-footer-sns svg path, .kl-footer-sns svg rect, .kl-footer-sns svg circle:not(.ig-dot) { fill: none !important; stroke: currentColor !important; }
.kl-footer-sns svg circle.ig-dot { fill: currentColor !important; stroke: none !important; }
.kl-footer-legal { margin: 12px 0 0; padding: 10px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: center; font-size: 11.5px; }
.kl-footer-legal li { margin: 0; padding: 0; list-style: none; }
.kl-footer-legal a { color: rgba(74,72,68,0.65); }

/* SP */
@media (max-width: 768px) {
  .kl-footer { padding: 26px 0 90px; }
  .kl-footer-inner { max-width: 100%; margin: 0 14px; border-radius: 14px; padding: 18px 14px 22px; }
  .kl-footer-tagline { font-size: 12.5px; margin-bottom: 14px; }
  .kl-footer-nav--pc { display: none; }
  .kl-footer-nav--sp { display: block; }
  .kl-footer-sns { gap: 24px; padding: 14px 0 4px; }
  .kl-footer-legal { flex-direction: column; align-items: center; gap: 8px; }
}

/* ============================================================
 * Single 1-column layout (sidebar disabled, 300+ posts bulk fix)
 * サイドバーOFFでも二カラム想定で狭かった
 * main-contents を 中央寄せ + max-width:900px に拡張
 * ============================================================ */
@media (min-width: 769px) {
  html body #contents { display: block !important; }
  html body #main-contents,
  html body main.main-contents {
    width: 100% !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
  }
  /* If a sidebar slot still exists in DOM, hide it cleanly */
  html body #side,
  html body .side,
  html body #sidebar-wrap,
  html body aside.sidebar { display: none !important; }
}

/* ============================================================
 * Hide kl-role-card inside CTA section (2026-05-11)
 * CTA テンプレートに誤って埋め込まれた
 * 「この記事を監修した人」カードを非表示
 * (同一情報は .profile-card / ABOUT ME ですでに表示されている)
 * ============================================================ */
.cta-content .kl-role-card,
.cta-content .kl-role-card-v2,
section.cta-content [data-kl-rolecard] { display: none !important; }
