/* C-3 design v1.0: all changes are limited to pages containing [kaigodou_c3] */
body.kd-c3-page #header-container,
body.kd-c3-page #navi,
body.kd-c3-page #breadcrumb,
body.kd-c3-page .breadcrumb,
body.kd-c3-page #sidebar,
body.kd-c3-page .sidebar,
body.kd-c3-page .article-header,
body.kd-c3-page .article-footer,
body.kd-c3-page .sns-share,
body.kd-c3-page .sns-follow,
body.kd-c3-page .date-tags,
body.kd-c3-page .toc,
body.kd-c3-page .entry-title,
body.kd-c3-page .post-date,
body.kd-c3-page .post-update,
body.kd-c3-page .under-entry-content { display:none!important; }
body.kd-c3-page #content,
body.kd-c3-page #content-in,
body.kd-c3-page .content-in {max-width:1250px!important;width:100%!important;margin-left:auto!important;margin-right:auto!important;}
body.kd-c3-page #main,
body.kd-c3-page .main {float:none!important;width:100%!important;max-width:none!important;margin:0 auto!important;box-sizing:border-box!important;}
body.kd-c3-page .article {padding:0!important;}
body.kd-c3-page .entry-content {margin-top:0!important;}
body.kd-c3-page .kd-root {max-width:1200px;margin:0 auto;padding:0 14px 30px;box-sizing:border-box;}
body.kd-c3-page .kd-root h1::before,body.kd-c3-page .kd-root h1::after{content:none!important;}
.kd-site-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#fff;padding:12px 14px;border-radius:16px;margin-bottom:12px;box-shadow:0 2px 8px #20343c0d}
.kd-site-brand{display:flex;align-items:center;gap:8px;color:#186c4b!important;text-decoration:none!important}
.kd-house{font-size:41px;color:#0a9661;line-height:1}
.kd-site-brand strong{display:block;color:#16684b;font-size:22px;line-height:1.25}
.kd-site-brand small{display:block;font-size:11px;color:#435f60}
.kd-site-nav{display:flex;gap:6px;align-items:center;justify-content:center;flex-wrap:wrap}
.kd-site-nav a{display:inline-block;border-radius:20px;padding:8px 10px;background:#f1f6f7;color:#183f54!important;text-decoration:none!important;font-size:12px;font-weight:700}
.kd-site-nav a:focus-visible,.kd-site-nav a:hover{outline:2px solid #2786af;outline-offset:2px}
/* かいごどうブログ C-3 初期版 / 全スタイル kd- で名前空間分離 */
.kd-hero,.kd-categories,.kd-comic,.kd-promo,.kd-section-head,.kd-beginners,.kd-preview-head{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#233143;box-sizing:border-box}
.kd-hero *,.kd-categories *,.kd-comic *,.kd-promo *,.kd-section-head *,.kd-beginners *{box-sizing:border-box}
.kd-hero,.kd-categories,.kd-comic,.kd-promo,.kd-section-head,.kd-beginners,.kd-latest-list{width:min(1120px,100%);margin-left:auto!important;margin-right:auto!important}
.kd-hero a,.kd-categories a,.kd-comic a,.kd-promo a,.kd-beginners a{ text-decoration:none!important }
.kd-hero a:focus-visible,.kd-categories a:focus-visible,.kd-comic a:focus-visible,.kd-promo a:focus-visible,.kd-beginners a:focus-visible{outline:3px solid #1c8ac6;outline-offset:3px}
.kd-hero{background:linear-gradient(115deg,#f7fcf9 0%,#f7fcff 55%,#e7f6df 100%);border:1px solid #e0eee8;border-radius:20px;overflow:hidden;display:grid;grid-template-columns:1fr .94fr;min-height:315px;margin-top:8px!important;margin-bottom:18px!important}
.kd-hero-copy{padding:35px 12px 28px 34px;position:relative;z-index:1}
.kd-kicker{font-size:13px;letter-spacing:.08em;color:#158159;font-weight:800;margin:0 0 10px}
.kd-hero h1{background:transparent!important;border:0!important;box-shadow:none!important;margin:0 0 12px!important;padding:0!important;font-size:clamp(24px,3.1vw,39px)!important;line-height:1.4!important;color:#1f2730!important;font-weight:900!important}
.kd-hero .kd-orange{color:#f17a1e}.kd-hero .kd-green{color:#158c58}
.kd-hero-copy p{font-size:14px;line-height:1.9;margin:0 0 17px;color:#344a52}
.kd-actions{display:flex;gap:9px;flex-wrap:wrap}
.kd-pill{display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;border-radius:24px;color:white!important;background:#0b995f;font-size:13px;font-weight:800;line-height:1.35;white-space:normal;box-shadow:0 2px 3px #cfe1d9}
.kd-pill.kd-blue{background:#147dc7}.kd-pill.kd-orange-bg{background:#f38121}
.kd-hero-art{min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;background:radial-gradient(circle at 70% 80%, #e2f0d0, transparent 60%)}
.kd-hero-art img{display:block;width:100%;max-width:none;height:auto;object-fit:contain;object-position:center;mix-blend-mode:multiply;border-radius:0!important;}
.kd-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:23px!important}
.kd-category{padding:19px 14px 17px;border-radius:14px;border:1px solid #e0e9e5;min-height:194px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:#f1faed;box-shadow:0 3px 10px #3d76440c}
.kd-category.kd-c-blue{background:#eef8ff;border-color:#d6e8fa}.kd-category.kd-c-pink{background:#fff1f4;border-color:#f9dce3}.kd-category.kd-c-orange{background:#fff8ee;border-color:#fae1c6}
.kd-category .kd-icon{font-size:36px;line-height:1.1}.kd-category h3{border:0!important;background:transparent!important;padding:0!important;margin:0!important;color:#146b45!important;font-size:17px!important;line-height:1.4!important}
.kd-category.kd-c-blue h3{color:#176eaa!important}.kd-category.kd-c-pink h3{color:#c92f62!important}.kd-category.kd-c-orange h3{color:#c65c12!important}
.kd-category p{font-size:13px;line-height:1.65;color:#394851;margin:0;flex:1}
.kd-category .kd-more{background:white;color:#087649;border-radius:30px;font-weight:800;font-size:12px;padding:6px 14px;align-self:stretch;text-align:center}
.kd-c-blue .kd-more{color:#1a74af}.kd-c-pink .kd-more{color:#c43d65}.kd-c-orange .kd-more{color:#b15c17}
.kd-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px!important;margin-bottom:12px!important}
.kd-section-head h2{background:transparent!important;border:0!important;padding:0!important;margin:0!important;font-size:23px!important;font-weight:900!important;line-height:1.4!important;color:#20364a!important}
.kd-section-head a{color:#147fc5;text-decoration:none!important;font-weight:700;font-size:13px}
.kd-comic{border:1px solid #dce8f4;border-radius:14px;overflow:hidden;padding:15px;background:linear-gradient(#fdfefe,#fffaf0);margin-bottom:22px!important}
.kd-comic .kd-comic-title{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px;font-weight:900;color:#153757;font-size:20px}
.kd-episode{background:#168f58;border-radius:20px;color:#fff;padding:4px 12px;font-size:14px}
.kd-comic-title small{font-size:13px;font-weight:500;color:#536573}
.kd-comic img{width:100%;height:auto;display:block;border-radius:8px;border:1px solid #e8e9ee}
.kd-comic-foot{text-align:right;margin:10px 2px 0;font-size:13px}.kd-comic-foot a{color:#087bba;font-weight:800}
.kd-promo{background:linear-gradient(115deg,#f0fff1,#eefaff);border:1px solid #dcebe5;border-radius:15px;display:grid;grid-template-columns:230px 1fr auto;align-items:center;gap:20px;padding:19px 26px;margin-bottom:23px!important}
.kd-promo img{width:100%;height:auto;display:block;mix-blend-mode:multiply}
.kd-promo h2{background:transparent!important;border:0!important;padding:0!important;margin:0 0 8px!important;font-size:31px!important;color:#0c7053!important;font-weight:900!important}
.kd-promo p{font-size:13px;margin:4px 0 8px;color:#3c5554}.kd-promo .kd-checks{font-size:12px;line-height:1.8;color:#135f4c;font-weight:700}
.kd-promo .kd-pill{min-width:125px;background:#ed5a75}
.kd-latest-list{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;list-style:none!important;padding:0!important;margin-top:0!important;margin-bottom:22px!important}
.kd-latest-list li{margin:0!important;background:#fff;border:1px solid #e7e8eb;border-radius:12px;overflow:hidden;box-shadow:0 3px 10px #0000000b;min-width:0;padding:0 0 12px!important;display:flex;flex-direction:column;gap:7px}
.kd-latest-list .wp-block-latest-posts__featured-image{margin:0!important;width:100%;order:-1}
.kd-latest-list .wp-block-latest-posts__featured-image a{display:block}
.kd-latest-list .wp-block-latest-posts__featured-image img{width:100%!important;aspect-ratio:1.62;object-fit:cover;display:block;height:auto;border-radius:0!important}
.kd-latest-list li>a{font-size:14px;line-height:1.5;color:#243445!important;font-weight:800;padding:0 12px;text-decoration:none!important}
.kd-latest-list time{font-size:12px;color:#75818a;padding:0 12px}
.kd-beginners{background:linear-gradient(90deg,#f2fff3,#fcfdff);border-radius:16px;padding:17px 15px;margin-bottom:24px!important}
.kd-beginners h2{font-size:22px!important;color:#195f49!important;background:transparent!important;padding:0!important;border:0!important;margin:0 0 14px!important}
.kd-beginner-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.kd-beginner{border-radius:13px;padding:16px 13px;background:#fff;border:1px solid #daeade;color:#273749!important;min-height:118px;display:flex;flex-direction:column;gap:6px}
.kd-beginner:nth-child(2){border-color:#d1e5fb}.kd-beginner:nth-child(3){border-color:#f5dfe5}.kd-beginner:nth-child(4){border-color:#f4dfc8}
.kd-beginner b{font-size:14px;color:#146e48}.kd-beginner:nth-child(2) b{color:#1477ae}.kd-beginner:nth-child(3) b{color:#c93366}.kd-beginner:nth-child(4) b{color:#cb681c}
.kd-beginner span{font-size:12px;line-height:1.65}
/* モバイル */
@media(max-width:840px){.kd-hero{grid-template-columns:1fr .78fr}.kd-hero-copy{padding:24px 10px 25px 22px}.kd-hero h1{font-size:28px!important}.kd-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.kd-promo{grid-template-columns:165px 1fr;gap:10px}.kd-promo .kd-pill{grid-column:1/-1;justify-self:center}.kd-latest-list,.kd-beginner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.kd-hero{grid-template-columns:1fr}.kd-hero-copy{padding:22px 19px 8px}.kd-hero h1{font-size:28px!important}.kd-hero-art{height:auto;padding:0 12px 12px}.kd-hero-art img{object-position:50% 32%}.kd-pill{padding:9px 13px;font-size:12px}.kd-categories{gap:8px}.kd-category{min-height:180px;padding:14px 11px}.kd-category h3{font-size:14px!important}.kd-category .kd-icon{font-size:28px}.kd-category p{font-size:12px}.kd-section-head h2{font-size:19px!important}.kd-comic{padding:11px}.kd-comic .kd-comic-title{font-size:17px}.kd-comic-title small{display:block;flex-basis:100%;line-height:1.6}.kd-promo{grid-template-columns:100px 1fr;padding:12px;gap:10px}.kd-promo h2{font-size:25px!important}.kd-promo p{font-size:12px}.kd-promo .kd-checks{font-size:11px}.kd-beginners{padding:12px}.kd-beginner{padding:10px}.kd-beginner b{font-size:12px}}
@media(max-width:390px){.kd-categories,.kd-latest-list,.kd-beginner-grid{grid-template-columns:minmax(0,1fr);gap:12px}.kd-hero h1{font-size:25px!important}.kd-hero-art{height:auto}.kd-latest-list li>a{font-size:12px}}

/* C-3改良：写真風カードとレスポンシブ四コマ */
.kd-category-art{display:block;width:100%;height:105px;object-fit:contain;object-position:center;border-radius:8px;margin-top:auto;mix-blend-mode:multiply}
.kd-comic-panels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.kd-comic-panels img{display:block;width:100%;height:auto;object-fit:contain;border-radius:8px;border:1px solid #dde5eb}
@media(max-width:600px){.kd-comic-panels{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.kd-category-art{height:74px}}

/* 表示調整：Cocoon・WordPress標準ブロックとの競合を抑える */
.kd-hero,.kd-categories,.kd-comic,.kd-promo,.kd-section-head,.kd-beginners,
.kd-latest-list{max-width:100%;overflow-wrap:anywhere}
.kd-hero > *,.kd-categories > *,.kd-promo > *,.kd-beginner-grid > *{min-width:0}
.kd-latest-list,
.kd-latest-list *{box-sizing:border-box}
.kd-latest-list{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}
/* 標準の columns-4 の幅と余白を解除 */
.kd-latest-list > li{width:auto!important;max-width:none;float:none;margin:0!important}
.kd-latest-list::before,
.kd-latest-list::after{content:none!important}
.kd-comic h2.kd-comic-title{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 0 12px!important;line-height:1.6}
.kd-comic h2.kd-comic-title::before,.kd-comic h2.kd-comic-title::after,
.kd-category h3::before,.kd-category h3::after{content:none!important}
.kd-category-art{flex-shrink:0}
.kd-comic-panels{align-items:start}
.kd-comic-panels img{max-width:100%;height:auto}
.kd-pill{min-height:44px;text-align:center}
.kd-pill,.kd-hero .kd-pill{background:#08764b}
.kd-pill.kd-blue{background:#126ba8}
.kd-pill.kd-orange-bg{background:#a84c0b}
.kd-promo .kd-pill{background:#b72d53}
.kd-section-head a,.kd-comic-foot a{display:inline-flex;align-items:center;min-height:44px}
.kd-section-head a:focus-visible,.kd-latest-list a:focus-visible{outline:3px solid #1c8ac6;outline-offset:3px}
@media(hover:hover){
.kd-category:hover,.kd-beginner:hover{border-color:#16835b;box-shadow:0 4px 12px #23314320}
.kd-pill:hover{filter:brightness(.92)}
.kd-latest-list li>a:hover,.kd-section-head a:hover,.kd-comic-foot a:hover{text-decoration:underline!important}
}
@media(max-width:840px){.kd-comic-panels{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
.kd-hero-art img{max-height:260px;object-position:center}
.kd-promo{grid-template-columns:minmax(0,1fr);text-align:center;padding:18px}
.kd-promo > img{max-width:220px;justify-self:center}
.kd-section-head{flex-wrap:wrap;gap:4px}
.kd-latest-list{grid-template-columns:minmax(0,1fr)}
.kd-latest-list li>a{font-size:15px;line-height:1.7}
.kd-beginner b{font-size:14px}
.kd-beginner span{font-size:13px}
}
/* 漫画の文字が読めるよう、スマホでは読む順に縦並び */
@media(max-width:480px){.kd-comic-panels{grid-template-columns:minmax(0,1fr)}}
.kd-latest-list.kd-c3-post-grid{list-style:none!important;padding:0!important;}
.kd-latest-list .kd-post-title{font-weight:800}
.kd-latest-list .kd-no-photo{aspect-ratio:1.62;background:#e8f5ee;display:flex;align-items:center;justify-content:center;color:#286d50;font-weight:800}
.kd-latest-list .kd-no-posts{grid-column:1/-1;padding:22px!important}
@media (max-width:600px){.kd-site-head{padding:11px}.kd-site-brand strong{font-size:19px}.kd-site-nav a{font-size:11px;padding:7px}.kd-root .kd-comic-panels{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.kd-root .kd-comic-panels{grid-template-columns:minmax(0,1fr)}}

/* v1.1: スマホで「もっと安心に。」の途中改行を防ぐ */
.kd-root .kd-hero h1 .kd-phrase-last{white-space:nowrap;display:inline-block}

/* v1.2: the introduction page uses the same styling scope as the C-3 home */
.kd-about { color:#233143; font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif; }
.kd-about *, .kd-about *::before, .kd-about *::after { box-sizing:border-box; }
.kd-about-poster { max-width:1120px; margin:10px auto 25px; border:1px solid #e1ebf5; border-radius:22px; overflow:hidden; background:#fff; box-shadow:0 6px 24px #16385412; }
.kd-about-full { display:block; width:100%; height:auto; margin:0!important; border:0!important; border-radius:0!important; }
.kd-about-mobile { display:none; }
.kd-about-explain { max-width:950px; padding:24px 28px; margin:0 auto 20px; background:#fff; border:1px solid #e3edec; border-radius:18px; }
.kd-about h2 { background:none!important; border:0!important; padding:0!important; margin:0 0 12px!important; color:#153b59!important; font-weight:800!important; font-size:clamp(21px,2.5vw,28px)!important; line-height:1.5!important; }
.kd-about-explain p { line-height:1.9; margin:0 0 22px; }
.kd-about-explain ul { list-style:disc; padding-left:1.6em; line-height:1.9; margin:0 0 20px; }
.kd-about .kd-about-disclaimer { font-size:13px; line-height:1.85; color:#546879; padding:12px 14px; border-left:3px solid #82c7ab; background:#f4f9f8; }
.kd-about-next { max-width:950px; margin:0 auto 30px; text-align:center; padding:26px 18px; border-radius:18px; background:linear-gradient(110deg,#f1faff,#effaf1); border:1px solid #d9ebed; }
.kd-about-next p { margin:0 0 12px; line-height:1.8; }
.kd-about-next .kd-pill { margin:13px auto 0; text-decoration:none!important; }
.kd-about a:focus-visible { outline:3px solid #1c8ac6; outline-offset:3px; }
@media(max-width:600px) {
  .kd-about-poster { margin:6px auto 18px; border-radius:17px; }
  .kd-about-full { display:none; }
  .kd-about-mobile { display:block; padding:18px 14px 12px; }
  .kd-about-mobile h1 { background:none!important; padding:0!important; border:0!important; color:#163654!important; font-size:clamp(24px,7.1vw,34px)!important; font-weight:900!important; line-height:1.35!important; margin:0 0 13px!important; }
  .kd-about-lead { font-size:14px; line-height:1.75; }
  .kd-about-panels { display:grid; grid-template-columns:1fr; gap:14px; margin:18px 0 10px; }
  .kd-about-panels img { display:block; width:100%; height:auto; border-radius:12px!important; border:1px solid #d9e8ed; margin:0!important; }
  .kd-about-poster-note { font-size:13px; text-align:center; color:#667484; }
  .kd-about-state { background:linear-gradient(110deg,#f2faff,#f3fbea); border-radius:14px; padding:16px 12px; text-align:center; }
  .kd-about .kd-about-state h2 { font-size:22px!important; margin:0 0 6px!important; }
  .kd-about-state p { font-size:13px; line-height:1.7; margin:7px 0; }
  .kd-about-explain { padding:18px 16px; }
  .kd-about-next { padding:20px 15px; }
}
