/* ココロノミライ TOP LP v1.2.0 | scoped to front page only */
body.kmhp-active{--kmhp-navy:#17345e;--kmhp-teal:#285f5b;--kmhp-gold:#c7a56d;--kmhp-ink:#334352;--kmhp-muted:#69747c;--kmhp-cream:#fbf7ed;--kmhp-white:#fffdf9;background:#fffdf9;overflow-x:clip}
body.kmhp-active .kmhp,body.kmhp-active .kmhp *{box-sizing:border-box}
body.kmhp-active .kmhp{position:relative;isolation:isolate;max-width:none!important;width:100%;margin:0 auto!important;background:var(--kmhp-white);color:var(--kmhp-ink);font-family:"Hiragino Kaku Gothic ProN","Yu Gothic","Noto Sans JP",sans-serif;font-size:16px;line-height:1.9;letter-spacing:.025em;overflow:hidden;text-align:left}
body.kmhp-active .kmhp img{display:block;width:100%;max-width:100%;height:auto;border:0}
body.kmhp-active .kmhp figure{margin:0}
body.kmhp-active .kmhp a{text-decoration:none;color:inherit}
body.kmhp-active .kmhp p{margin:0 0 1.25em}
body.kmhp-active .kmhp h1,body.kmhp-active .kmhp h2,body.kmhp-active .kmhp h3{font-family:"Hiragino Mincho ProN","Yu Mincho","Noto Serif JP","Noto Serif CJK JP",serif!important;font-weight:600!important;line-height:1.55!important;letter-spacing:.02em!important;color:var(--kmhp-navy)!important;background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;text-shadow:none!important;text-indent:0!important;margin:0!important;padding:0!important;word-break:normal!important;overflow-wrap:anywhere!important;white-space:normal!important}
body.kmhp-active .kmhp h1::before,body.kmhp-active .kmhp h1::after,body.kmhp-active .kmhp h2::before,body.kmhp-active .kmhp h2::after,body.kmhp-active .kmhp h3::before,body.kmhp-active .kmhp h3::after{content:none!important;display:none!important}
body.kmhp-active .kmhp h2{font-size:clamp(27px,3vw,40px)!important}
body.kmhp-active .kmhp h3{font-size:clamp(21px,2vw,26px)!important}
body.kmhp-active .kmhp-shell{width:min(100% - 64px,1050px);margin-inline:auto;max-width:1050px}
body.kmhp-active .kmhp-section{position:relative;padding:92px 0}
body.kmhp-active .kmhp-small{display:block;font-family:Georgia,serif;font-size:11px;font-weight:700;letter-spacing:.17em;color:#9a7c48;margin-bottom:15px}
body.kmhp-active .kmhp-heading{position:relative;margin:0 auto 34px;padding:25px 50px 26px;border-top:1px solid #d9c6a5;border-bottom:1px solid #d9c6a5;background:linear-gradient(90deg,rgba(255,253,247,.95),rgba(255,253,247,.97))}
body.kmhp-active .kmhp-heading::before,body.kmhp-active .kmhp-heading::after{position:absolute;content:"";pointer-events:none;background:url("assets/floral-corner.svg") center/contain no-repeat;width:150px;height:100px;opacity:.42}
body.kmhp-active .kmhp-heading::before{bottom:-28px;left:-25px}
body.kmhp-active .kmhp-heading::after{top:-22px;right:-25px;transform:scaleX(-1)}
body.kmhp-active .kmhp-heading>p{font-size:15px;color:var(--kmhp-muted);margin:13px 0 0}
body.kmhp-active .kmhp-heading-centered{text-align:center;padding-inline:70px}
body.kmhp-active .kmhp-heading-centered h2{text-align:center!important}
body.kmhp-active .kmhp-button{display:inline-flex;justify-content:center;align-items:center;gap:18px;min-height:55px;padding:13px 25px;border-radius:999px;border:1px solid var(--kmhp-navy);font-size:14px;font-weight:700;line-height:1.6;text-align:center;transition:transform .2s,box-shadow .2s}
body.kmhp-active .kmhp-button:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(20,55,90,.12)}
body.kmhp-active .kmhp-button-main{background:var(--kmhp-navy);color:#fff!important}
body.kmhp-active .kmhp-button-soft{background:#fffdf9;color:var(--kmhp-navy)!important}
body.kmhp-active .kmhp-inline-link{display:inline-block;margin-top:10px;padding:9px 0 7px;border-bottom:1px solid var(--kmhp-gold);color:var(--kmhp-navy)!important;font-size:14px;font-weight:700}
body.kmhp-active .kmhp-inline-link span{margin-left:10px}
/* hero: editorial text + original user supplied artwork; different aspect on mobile */
body.kmhp-active .kmhp-hero{position:relative;padding:70px 0 45px;background:radial-gradient(ellipse at 50% 0,#f5f8f7 0,transparent 58%),#fffdf8;text-align:center}
body.kmhp-active .kmhp-hero::before,body.kmhp-active .kmhp-hero::after{content:"";position:absolute;width:205px;height:170px;background:url("assets/floral-corner.svg") center/contain no-repeat;opacity:.72;pointer-events:none}
body.kmhp-active .kmhp-hero::before{top:0;left:0}
body.kmhp-active .kmhp-hero::after{top:0;right:0;transform:scaleX(-1)}
body.kmhp-active .kmhp-hero-intro{position:relative;z-index:1}
body.kmhp-active .kmhp-kicker{font:700 13px Georgia,serif;letter-spacing:.17em;color:#957447;margin-bottom:15px!important}
body.kmhp-active .kmhp-kicker span{font-family:"Yu Mincho",serif;letter-spacing:.04em;margin-left:12px;color:var(--kmhp-teal)}
body.kmhp-active .kmhp-role{font-size:13px;color:#6c7379;margin-bottom:15px!important}
body.kmhp-active .kmhp-hero h1{font-size:clamp(33px,4.5vw,54px)!important;text-align:center!important;line-height:1.48!important;letter-spacing:.015em!important}
body.kmhp-active .kmhp-hero h1 span{display:block;color:var(--kmhp-teal)}
body.kmhp-active .kmhp-lead{font-size:16px;line-height:2.05;max-width:760px;margin:23px auto 24px!important;color:#556575}
body.kmhp-active .kmhp-hero-buttons{display:flex;justify-content:center;gap:13px;flex-wrap:wrap;margin:24px 0 35px}
body.kmhp-active .kmhp-hero-art{max-width:1050px;position:relative;border:1px solid #e6d6b5;box-shadow:0 15px 32px rgba(62,67,59,.09);background:#fff}
body.kmhp-active .kmhp-hero-art img{aspect-ratio:1448/1086;object-fit:cover}
body.kmhp-active .kmhp-hero-caption{font-family:"Yu Mincho",serif;font-size:16px;color:var(--kmhp-navy);margin:22px auto 0!important}
/* topics */
body.kmhp-active .kmhp-choose{background:#fffefa}
body.kmhp-active .kmhp-concern-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
body.kmhp-active .kmhp-concern{display:flex;flex-direction:column;min-height:228px;padding:26px 29px;background:linear-gradient(135deg,#fffefa,#f9f8f2);border:1px solid #e4d7c0;border-radius:13px;box-shadow:0 5px 15px rgba(55,75,90,.035)}
body.kmhp-active .kmhp-concern:hover{border-color:#c8b28a}
body.kmhp-active .kmhp-index{font-size:12px;color:#967a4b;letter-spacing:.1em;margin-bottom:10px}
body.kmhp-active .kmhp-concern h3{font-size:22px!important;margin-bottom:10px!important}
body.kmhp-active .kmhp-concern p{font-size:14px;color:var(--kmhp-muted)}
body.kmhp-active .kmhp-more{margin-top:auto;padding-top:11px;border-top:1px solid #e5dbca;color:var(--kmhp-teal);font-size:13px;font-weight:700}
body.kmhp-active .kmhp-more span{margin-left:10px}
/* chapters */
body.kmhp-active .kmhp-chapter-cream{background:var(--kmhp-cream)}
body.kmhp-active .kmhp-prose{max-width:770px;margin:0 auto 32px;font-size:16px;line-height:2.05}
body.kmhp-active .kmhp-figure{overflow:hidden}
body.kmhp-active .kmhp-figure img{border-radius:6px;box-shadow:0 12px 30px rgba(35,54,75,.07)}
body.kmhp-active .kmhp-figure figcaption{text-align:center;font-size:12px;color:#697a7c;margin-top:13px}
body.kmhp-active .kmhp-figure-landscape{max-width:940px;margin:0 auto!important}
body.kmhp-active .kmhp-figure-portrait{max-width:510px;margin:0 auto!important}
body.kmhp-active .kmhp-chapter-layout{display:grid;grid-template-columns:.94fr 1.06fr;align-items:center;gap:65px}
body.kmhp-active .kmhp-chapter-copy h2{margin:0 0 22px!important}
body.kmhp-active .kmhp-chapter-copy p{font-size:16px}
body.kmhp-active .kmhp-image-story{display:grid;grid-template-columns:.92fr 1.08fr;gap:60px;align-items:center}
body.kmhp-active .kmhp-image-story-copy h3{margin-bottom:18px!important}
body.kmhp-active .kmhp-extra-art{margin:40px auto 0!important}
body.kmhp-active .kmhp-practice{background:#fffefa}
body.kmhp-active .kmhp-practice-note{text-align:center;margin:35px auto 0;max-width:750px}
body.kmhp-active .kmhp-practice-note h3{margin-bottom:13px!important;color:var(--kmhp-teal)!important}
/* About */
body.kmhp-active .kmhp-about{background:#f9f8f3}
body.kmhp-active .kmhp-about-grid{display:grid;grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr);gap:65px;align-items:center}
body.kmhp-active .kmhp-about-photo{max-width:380px;justify-self:center;position:relative;padding:12px;background:#fff;border:1px solid #e2d6be;box-shadow:0 12px 25px rgba(40,60,75,.07)}
body.kmhp-active .kmhp-about-photo::after{content:"";position:absolute;right:-24px;bottom:-25px;width:120px;height:95px;background:url("assets/floral-corner.svg") center/contain no-repeat;transform:scaleX(-1)}
body.kmhp-active .kmhp-about-photo img{aspect-ratio:605/740;object-fit:cover;object-position:center top}
body.kmhp-active .kmhp-about-copy h2{margin-bottom:22px!important}
body.kmhp-active .kmhp-calm{background:#fffdf8}
body.kmhp-active .kmhp-calm-grid{display:grid;grid-template-columns:1fr .92fr;gap:60px;align-items:center}
body.kmhp-active .kmhp-calm-grid h2{margin-bottom:22px!important}
/* latest */
body.kmhp-active .kmhp-stories{background:#f8f8f3}
body.kmhp-active .kmhp-latest{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.kmhp-active .kmhp-post{display:flex;flex-direction:column;min-height:170px;padding:25px;background:#fff;border:1px solid #e7ddcb;border-radius:12px}
body.kmhp-active .kmhp-post time{font-size:12px;color:#9a7b4d}
body.kmhp-active .kmhp-post h3{font-size:20px!important;margin:12px 0!important}
body.kmhp-active .kmhp-post>span{margin-top:auto;color:var(--kmhp-teal);font-size:12px;font-weight:700}
/* contact */
body.kmhp-active .kmhp-contact{background:linear-gradient(160deg,#fbf9f1,#f2f7f5);padding:100px 0}
body.kmhp-active .kmhp-contact::before,body.kmhp-active .kmhp-contact::after{content:"";position:absolute;width:210px;height:160px;background:url("assets/floral-corner.svg") center/contain no-repeat;opacity:.7;pointer-events:none}
body.kmhp-active .kmhp-contact::before{bottom:0;left:0}
body.kmhp-active .kmhp-contact::after{top:0;right:0;transform:scaleX(-1)}
body.kmhp-active .kmhp-contact-inner{max-width:800px;position:relative;z-index:1;text-align:center}
body.kmhp-active .kmhp-contact h2{text-align:center!important;margin-bottom:20px!important}
body.kmhp-active .kmhp-contact-inner>p:not(.kmhp-contact-fine){font-size:16px;max-width:670px;margin-inline:auto}
body.kmhp-active .kmhp-contact-terms{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin:28px 0}
body.kmhp-active .kmhp-contact-terms strong{font-size:12px;color:#856c42;border:1px solid #cdbb97;background:#fffefa;border-radius:20px;padding:4px 14px}
body.kmhp-active .kmhp-contact-terms span{font-size:14px;font-weight:700;color:var(--kmhp-teal)}
body.kmhp-active .kmhp-contact-button{min-width:320px}
body.kmhp-active .kmhp-contact-fine{max-width:600px;margin:18px auto 0!important;color:var(--kmhp-muted);font-size:12px}
body.kmhp-active .kmhp-embedded-widget,body.kmhp-active .kmhp-newsletter{max-width:960px;margin:30px auto;padding:24px}
@media(max-width:800px){body.kmhp-active .kmhp-shell{width:min(100% - 42px,680px)}body.kmhp-active .kmhp-chapter-layout,body.kmhp-active .kmhp-image-story,body.kmhp-active .kmhp-about-grid,body.kmhp-active .kmhp-calm-grid{grid-template-columns:1fr;gap:30px}body.kmhp-active .kmhp-chapter-copy{max-width:680px}body.kmhp-active .kmhp-image-story-copy{max-width:680px}body.kmhp-active .kmhp-about-photo{width:280px;order:2}body.kmhp-active .kmhp-about-copy{order:1}}
@media(max-width:640px){
body.kmhp-active .kmhp{font-size:15px;line-height:1.92;letter-spacing:.015em}
body.kmhp-active .kmhp-shell{width:calc(100% - 32px)}
body.kmhp-active .kmhp-section{padding:60px 0}
body.kmhp-active .kmhp h2{font-size:clamp(25px,6.6vw,32px)!important;line-height:1.58!important}
body.kmhp-active .kmhp h3{font-size:20px!important}
body.kmhp-active .kmhp-pc{display:none}
body.kmhp-active .kmhp-heading{padding:22px 20px 24px;margin-bottom:24px}
body.kmhp-active .kmhp-heading::before,body.kmhp-active .kmhp-heading::after{width:90px;height:75px;opacity:.25}
body.kmhp-active .kmhp-heading::before{left:-17px;bottom:-18px}
body.kmhp-active .kmhp-heading::after{right:-17px;top:-18px}
body.kmhp-active .kmhp-heading-centered{padding-inline:18px}
body.kmhp-active .kmhp-heading>p{font-size:13px;line-height:1.9}
body.kmhp-active .kmhp-small{font-size:10px;letter-spacing:.12em;margin-bottom:11px}
body.kmhp-active .kmhp-hero{padding:45px 0 25px}
body.kmhp-active .kmhp-hero::before,body.kmhp-active .kmhp-hero::after{width:115px;height:90px;opacity:.35}
body.kmhp-active .kmhp-kicker{font-size:11px;letter-spacing:.08em}
body.kmhp-active .kmhp-kicker span{display:block;margin:3px 0 0}
body.kmhp-active .kmhp-role{font-size:11px;line-height:1.8;margin-bottom:14px!important}
body.kmhp-active .kmhp-hero h1{font-size:clamp(27px,7.2vw,36px)!important;line-height:1.58!important;letter-spacing:0!important}
body.kmhp-active .kmhp-hero h1 span{display:block}
body.kmhp-active .kmhp-lead{font-size:14px;line-height:1.9;margin:18px auto 20px!important}
body.kmhp-active .kmhp-hero-buttons{display:flex;flex-direction:column;gap:9px;margin:22px 0 24px}
body.kmhp-active .kmhp-button{width:100%;min-height:52px;padding:11px 16px;font-size:13px}
body.kmhp-active .kmhp-hero-art{width:calc(100% - 20px);max-width:430px;box-shadow:0 9px 20px rgba(40,60,70,.07)}
body.kmhp-active .kmhp-hero-art img{aspect-ratio:1055/1491;object-fit:contain}
body.kmhp-active .kmhp-hero-caption{font-size:13px;max-width:90%;margin-top:14px!important}
body.kmhp-active .kmhp-concern-grid,body.kmhp-active .kmhp-latest{grid-template-columns:1fr;gap:12px}
body.kmhp-active .kmhp-concern{min-height:0;padding:20px 21px;border-radius:10px}
body.kmhp-active .kmhp-concern h3{font-size:20px!important;margin-bottom:8px!important}
body.kmhp-active .kmhp-concern p{font-size:13px}
body.kmhp-active .kmhp-prose,body.kmhp-active .kmhp-chapter-copy p{font-size:14px;line-height:2}
body.kmhp-active .kmhp-figure-portrait{width:min(100%,470px)}
body.kmhp-active .kmhp-figure figcaption{font-size:11px;line-height:1.8}
body.kmhp-active .kmhp-extra-art{margin-top:28px!important}
body.kmhp-active .kmhp-image-story-copy h3{font-size:21px!important}
body.kmhp-active .kmhp-practice-note{margin-top:23px}
body.kmhp-active .kmhp-about-photo{width:min(75%,290px)}
body.kmhp-active .kmhp-post{padding:20px;min-height:0}
body.kmhp-active .kmhp-post h3{font-size:19px!important}
body.kmhp-active .kmhp-contact{padding:70px 0 85px}
body.kmhp-active .kmhp-contact::before,body.kmhp-active .kmhp-contact::after{width:120px;height:90px;opacity:.35}
body.kmhp-active .kmhp-contact-inner>p:not(.kmhp-contact-fine){font-size:14px}
body.kmhp-active .kmhp-contact-terms{flex-direction:column;margin:22px 0}
body.kmhp-active .kmhp-contact-terms span{font-size:13px}
body.kmhp-active .kmhp-contact-button{min-width:0}
body.kmhp-active .kmhp-contact-fine{font-size:11px}
}
@media(max-width:360px){body.kmhp-active .kmhp-shell{width:calc(100% - 24px)}body.kmhp-active .kmhp-hero h1{font-size:26px!important}body.kmhp-active .kmhp-heading{padding-inline:16px}}
@media(prefers-reduced-motion:reduce){body.kmhp-active .kmhp *{transition:none!important;scroll-behavior:auto!important}}


/* v1.2: KENI8/figure margin reset previously overrode .kmhp-shell centering. */
body.kmhp-active .kmhp .kmhp-hero-art{
  display:block!important;position:relative!important;
  margin-left:auto!important;margin-right:auto!important;
  float:none!important;clear:both!important;left:auto!important;right:auto!important;
  transform:none!important;max-width:1050px!important;
}
body.kmhp-active .kmhp .kmhp-hero-art picture{display:block;width:100%;}
body.kmhp-active .kmhp .kmhp-hero-art img{display:block;width:100%;height:auto;margin-inline:auto!important;}
/* Books: supplied real-photo composite on desktop, legible individual cover crops on phones. */
body.kmhp-active .kmhp-books{background:#fffdf8;}
body.kmhp-active .kmhp-books-wide{display:block;max-width:1010px;margin:0 auto!important;border:1px solid #e7dcc6;box-shadow:0 13px 35px rgba(40,62,81,.08);}
body.kmhp-active .kmhp-books-mobile{display:none;}
body.kmhp-active .kmhp-books-note{max-width:740px;margin:24px auto 0!important;text-align:center;font-size:15px;color:#52636d;}
body.kmhp-active .kmhp-books-cta{text-align:center;margin:10px 0 0!important;}
/* Embedded plugin shortcodes are scoped to the TOP; do not alter the plugins themselves. */
body.kmhp-active .kmhp-feature{background:#f8f8f3;}
body.kmhp-active .kmhp-feature-voicy{background:#fffdf8;}
body.kmhp-active .kmhp-feature-widget-content{width:100%;max-width:960px;margin:0 auto!important;min-width:0;overflow-x:auto;overflow-y:visible;overscroll-behavior-x:contain;}
body.kmhp-active .kmhp-feature-widget-content iframe,
body.kmhp-active .kmhp-feature-widget-content video,
body.kmhp-active .kmhp-feature-widget-content audio{max-width:100%;}
body.kmhp-active .kmhp-feature-widget-content img{max-width:100%;height:auto;}
body.kmhp-active .kmhp-widget-fallback{text-align:center;font-size:14px;color:#52636d;}
@media(max-width:640px){
 body.kmhp-active .kmhp .kmhp-hero-art{width:calc(100% - 24px)!important;max-width:430px!important;margin-left:auto!important;margin-right:auto!important;}
 body.kmhp-active .kmhp-books-wide{display:none;}
 body.kmhp-active .kmhp-books-mobile{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 13px;max-width:440px;margin:0 auto;}
 body.kmhp-active .kmhp-books-mobile figure{margin:0!important;padding:10px 8px 12px;background:#fff;border:1px solid #e7d9bd;border-radius:9px;min-width:0;box-shadow:0 5px 12px rgba(32,54,70,.04);}
 body.kmhp-active .kmhp-books-mobile figure:last-child{grid-column:1/-1;width:calc(50% - 7px);justify-self:center;}
 body.kmhp-active .kmhp-books-mobile img{display:block;width:100%;max-width:176px;height:auto;aspect-ratio:0.61;object-fit:contain;margin:0 auto!important;}
 body.kmhp-active .kmhp-books-mobile figcaption{font-family:"Yu Mincho","Noto Serif JP",serif;text-align:center;color:#17345e;font-size:13px;font-weight:700;line-height:1.6;margin-top:9px;}
 body.kmhp-active .kmhp-books-note{font-size:13px;line-height:1.9;margin-top:18px!important;}
 body.kmhp-active .kmhp-feature-widget-content{max-width:100%;}
 body.kmhp-active .kmhp-feature-widget-content iframe{width:100%;}
}



/* v1.5.0: Rebuilt, clickable footer inspired by the user-approved watercolor reference. */
body.kmhp-active .kmhp-designed-footer,body.kmhp-active .kmhp-designed-footer *{box-sizing:border-box;}
body.kmhp-active .kmhp-designed-footer{position:relative;isolation:isolate;display:block!important;width:100%;max-width:none;margin:0!important;padding:0!important;background:#fffdf9;color:#12365e;font-family:'Yu Mincho','Noto Serif JP',serif;overflow:hidden;clear:both;}
body.kmhp-active .kmhp-designed-footer a{text-decoration:none!important;color:#163b69!important;transition:color .2s ease;}
body.kmhp-active .kmhp-designed-footer a:hover{color:#0b7181!important;}
body.kmhp-active .kmhp-designed-footer a:focus-visible{outline:3px solid #226c9b;outline-offset:3px;border-radius:3px;}
body.kmhp-active .kmhp-df-main{background:radial-gradient(ellipse at 3% 98%,rgba(186,217,229,.32),transparent 25%),radial-gradient(ellipse at 99% 0%,rgba(191,220,229,.18),transparent 24%),#fffefa;border-top:1px solid #ddc89e;position:relative;}
body.kmhp-active .kmhp-df-main:before,body.kmhp-active .kmhp-df-main:after{content:'';pointer-events:none;position:absolute;background:url('assets/floral-corner.svg') center/contain no-repeat;width:235px;height:235px;opacity:.65;}
body.kmhp-active .kmhp-df-main:before{bottom:-35px;left:-42px;transform:rotate(180deg)}
body.kmhp-active .kmhp-df-main:after{top:-66px;right:-65px;transform:rotate(0deg)}
body.kmhp-active .kmhp-df-inner{max-width:1420px;margin:auto;display:grid;grid-template-columns:1.14fr 1.16fr 1.25fr 1.1fr .95fr;gap:0;padding:54px 32px 49px;position:relative;z-index:1;}
body.kmhp-active .kmhp-df-brand{padding:5px 22px 0 0;min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;}
body.kmhp-active .kmhp-df-brand>a{display:block;max-width:138px;width:100%;}
body.kmhp-active .kmhp-df-logo{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;mix-blend-mode:multiply;border-radius:50%;}
body.kmhp-active .kmhp-df-brand>strong{display:block;margin-top:8px;font-size:clamp(19px,1.75vw,25px);line-height:1.4;letter-spacing:.09em;color:#0f407a;}
body.kmhp-active .kmhp-df-en{display:block;font:10px/1.6 Georgia,serif;letter-spacing:.19em;color:#27598a;}
body.kmhp-active .kmhp-df-motto{margin:21px 0 12px!important;font-size:clamp(16px,1.4vw,20px)!important;line-height:1.7!important;color:#225789!important;text-align:center;}
body.kmhp-active .kmhp-df-caption{font-size:11px!important;line-height:1.9!important;color:#4e6680!important;text-align:center;margin:13px 0 0!important;}
body.kmhp-active .kmhp-df-col{border-left:1px solid #e2d4b9;padding:0 15px 0 25px;min-width:0;}
body.kmhp-active .kmhp-df-col h2{display:flex!important;align-items:center;gap:9px;font-size:clamp(15px,1.45vw,20px)!important;line-height:1.5!important;font-weight:700!important;white-space:normal;color:#173e70!important;background:transparent!important;border:0!important;box-shadow:none!important;margin:0 0 15px!important;padding:5px 0 12px!important;border-bottom:1px solid #d7b679!important;text-align:left!important;}
body.kmhp-active .kmhp-df-col h2:before{content:'❧'!important;display:inline-block;color:#b98c44;font-size:23px;position:static!important;background:none!important;box-shadow:none!important;width:auto!important;height:auto!important;transform:none!important;}
body.kmhp-active .kmhp-df-col h2:after{display:none!important;}
body.kmhp-active .kmhp-df-list{list-style:none!important;padding:0!important;margin:0!important;display:grid;gap:5px;}
body.kmhp-active .kmhp-df-list li{padding:0!important;margin:0!important;list-style:none!important;border:0!important;}
body.kmhp-active .kmhp-df-list li:before{display:none!important;}
body.kmhp-active .kmhp-df-list a{position:relative;display:block;padding:5px 0 5px 16px!important;font-family:'Yu Mincho','Noto Serif JP',serif;font-size:clamp(12px,1.08vw,15px)!important;line-height:1.55!important;overflow-wrap:anywhere;}
body.kmhp-active .kmhp-df-list a:before{content:'›';position:absolute;left:0;top:2px;color:#b58d50;font:21px/1.5 Georgia,serif;}
body.kmhp-active .kmhp-df-bird{color:#87b6da;font-size:30px;letter-spacing:.4em;text-align:center;padding:30px 0 0;}
body.kmhp-active .kmhp-df-social{border-top:1px solid #d7c6a5;border-bottom:1px solid #d7c6a5;background:linear-gradient(90deg,#fdf9ef,#fffefd 45%,#f8fcff);padding:24px max(20px,calc((100vw - 1330px)/2));display:grid;grid-template-columns:195px 1fr;align-items:center;gap:12px;position:relative;}
body.kmhp-active .kmhp-df-social-intro{font-size:18px;line-height:1.75;color:#164b7d;text-align:center;}
body.kmhp-active .kmhp-df-social-links{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;}
body.kmhp-active .kmhp-df-social-link{min-width:0;display:flex;align-items:center;justify-content:center;gap:9px;padding:8px 11px;border-left:1px solid #c5d6e6;}
body.kmhp-active .kmhp-df-social-icon{display:block;flex:0 0 38px;width:38px;height:38px;}
body.kmhp-active .kmhp-df-social-link strong{display:block;font:700 clamp(14px,1.3vw,20px)/1.35 Georgia,'Yu Mincho',serif;overflow-wrap:anywhere;}
body.kmhp-active .kmhp-df-social-link small{display:block;font:12px/1.6 'Yu Mincho',serif;margin-top:6px;color:#315b81;}
body.kmhp-active .kmhp-df-horizon{background:radial-gradient(ellipse at 50% 75%,#fff9e8 0%,transparent 35%),linear-gradient(180deg,#f2faff 0%,#d9eefb 72%,#c0dff2 100%);padding:33px 20px;position:relative;}
body.kmhp-active .kmhp-df-horizon:before{content:'';position:absolute;bottom:0;left:0;right:0;height:55%;opacity:.24;background:linear-gradient(165deg,transparent 25%,#6baccf 26%,transparent 32%),linear-gradient(8deg,transparent 40%,#4c8cb8 42%,transparent 47%);pointer-events:none;}
body.kmhp-active .kmhp-df-horizon-inner{max-width:1140px;margin:auto;display:grid;grid-template-columns:1fr 1fr 1.55fr;gap:20px;align-items:center;position:relative;}
body.kmhp-active .kmhp-df-horizon strong{font-size:24px;color:#154778;letter-spacing:.1em;text-align:center;}
body.kmhp-active .kmhp-df-horizon strong span{display:block;font:10px/1.5 Georgia,serif;letter-spacing:.2em;}
body.kmhp-active .kmhp-df-horizon p{margin:0!important;padding-left:24px;border-left:1px solid #a8bfd5;font-size:22px!important;line-height:1.5!important;color:#245688!important;}
body.kmhp-active .kmhp-df-horizon small{font-size:14px;color:#245688;text-align:center;line-height:1.8;}
body.kmhp-active .kmhp-df-copyright{background:#70a8d3;color:#fff;text-align:center;padding:13px 12px;font:12px/1.6 'Yu Mincho',serif;letter-spacing:.02em;}
/* Keep the theme's wp_footer hooks and floating chat scripts; hide only the native footer visual on this TOP. */
body.kmhp-active.kmhp-hide-native-footer footer#footer:not(#kmhp-designed-footer),
body.kmhp-active.kmhp-hide-native-footer footer.site-footer:not(#kmhp-designed-footer),
body.kmhp-active.kmhp-hide-native-footer #footer:not(#kmhp-designed-footer),
body.kmhp-active.kmhp-hide-native-footer .keni-footer:not(#kmhp-designed-footer){display:none!important;}
@media(max-width:1180px){
 body.kmhp-active .kmhp-df-inner{grid-template-columns:1.15fr 1fr 1.2fr 1.05fr;gap:0;padding:42px 24px;}
 body.kmhp-active .kmhp-df-brand{grid-column:1/-1;display:grid;grid-template-columns:100px 1fr;grid-template-rows:repeat(4,auto);text-align:left;column-gap:18px;justify-content:start;align-items:center;margin-bottom:30px;padding:0;}
 body.kmhp-active .kmhp-df-brand>a{grid-row:1/5;grid-column:1;max-width:100px;}
 body.kmhp-active .kmhp-df-brand>strong,body.kmhp-active .kmhp-df-en,body.kmhp-active .kmhp-df-motto,body.kmhp-active .kmhp-df-caption{grid-column:2;text-align:left;margin:0!important;}
 body.kmhp-active .kmhp-df-brand>strong{font-size:22px;}
 body.kmhp-active .kmhp-df-brand .kmhp-df-motto br,body.kmhp-active .kmhp-df-brand .kmhp-df-caption br{display:none;}
 body.kmhp-active .kmhp-df-col{padding-left:16px;padding-right:10px;}
 body.kmhp-active .kmhp-df-social{grid-template-columns:1fr;}
 body.kmhp-active .kmhp-df-social-intro br{display:none;}
}
@media(max-width:760px){
 body.kmhp-active .kmhp-df-inner{grid-template-columns:repeat(2,minmax(0,1fr));padding:28px 17px 32px;row-gap:28px;}
 body.kmhp-active .kmhp-df-brand{margin:0 0 5px;}
 body.kmhp-active .kmhp-df-col{border-left:0;padding:0 9px;}
 body.kmhp-active .kmhp-df-col:nth-child(even){border-right:1px solid #e2d4b9;}
 body.kmhp-active .kmhp-df-col h2{font-size:15px!important;gap:5px;}
 body.kmhp-active .kmhp-df-col h2:before{font-size:19px;}
 body.kmhp-active .kmhp-df-list a{font-size:13px!important;padding:6px 0 6px 15px!important;}
 body.kmhp-active .kmhp-df-social-links{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:6px;}
 body.kmhp-active .kmhp-df-social-link{justify-content:flex-start;gap:8px;padding:9px 7px;}
 body.kmhp-active .kmhp-df-social-link strong{font-size:15px;}
 body.kmhp-active .kmhp-df-social-link small{font-size:11px;}
 body.kmhp-active .kmhp-df-horizon-inner{grid-template-columns:1fr;gap:10px;}
 body.kmhp-active .kmhp-df-horizon p{border:0;padding:0;text-align:center;font-size:19px!important;}
 body.kmhp-active .kmhp-df-horizon small{font-size:12px;}
}
@media(max-width:360px){
 body.kmhp-active .kmhp-df-inner{padding-inline:12px;}
 body.kmhp-active .kmhp-df-brand{grid-template-columns:82px 1fr;column-gap:12px;}
 body.kmhp-active .kmhp-df-brand>a{max-width:82px;}
 body.kmhp-active .kmhp-df-brand>strong{font-size:19px;}
 body.kmhp-active .kmhp-df-caption{font-size:10px!important;}
 body.kmhp-active .kmhp-df-col{padding:0 6px;}
 body.kmhp-active .kmhp-df-col h2{font-size:15px!important;gap:5px;}
 body.kmhp-active .kmhp-df-list a{font-size:12px!important;}
}

/* v1.6.0 — original diagnostic & Voicy plugin content inside a calm, responsive frame. */
body.kmhp-active .kmhp-feature{padding-block:clamp(44px,6vw,86px)!important;}
body.kmhp-active .kmhp-feature-panel{max-width:1010px;margin:24px auto 0!important;padding:clamp(14px,3.5vw,38px);background:linear-gradient(145deg,#ffffff 0%,#fbfdff 70%,#fffdf8 100%);border:1px solid #d9e7ee;border-radius:20px;box-shadow:0 14px 34px rgba(23,58,90,.055);min-width:0;}
body.kmhp-active .kmhp-feature-voicy .kmhp-feature-panel{border-color:#e9dfc9;}
body.kmhp-active .kmhp-feature-hint{max-width:680px;margin:0 auto 24px!important;color:#45627c;text-align:center;font-size:clamp(13px,1.5vw,15px);line-height:1.9;}
body.kmhp-active .kmhp-feature-widget-content{overflow-x:auto;overflow-y:visible;min-width:0;max-width:100%;}
body.kmhp-active .kmhp-feature-widget-content :is(iframe,embed,object){display:block;max-width:100%;}
body.kmhp-active .kmhp-feature-widget-content :is(input,select,textarea,button){max-width:100%;}
body.kmhp-active .kmhp-feature-widget-content :is(img,svg,canvas){max-width:100%;}
body.kmhp-active .kmhp-feature-widget-content audio{display:block;width:100%;}
body.kmhp-active .kmhp-feature-widget-content > :first-child{margin-top:0;}
body.kmhp-active .kmhp-feature-widget-content > :last-child{margin-bottom:0;}
@media(max-width:640px){
 body.kmhp-active .kmhp-feature{padding-block:42px!important;}
 body.kmhp-active .kmhp-feature-panel{border-radius:14px;padding:18px 12px;margin-top:18px!important;}
 body.kmhp-active .kmhp-feature-hint{margin-bottom:15px!important;}
 body.kmhp-active .kmhp-feature-widget-content{max-width:100%;}
 body.kmhp-active .kmhp-feature-widget-content iframe{width:100%;}
}


/* v1.7.0 — Final KENI8 native footer cleanup and profile image integration. */
/* Every occurrence of the site name is a real link; the URL uses the existing footer_logo setting. */
body.kmhp-active #kmhp-designed-footer .kmhp-df-site-link{color:inherit!important;text-decoration:none!important;display:inline!important;cursor:pointer;transition:opacity .2s ease;}
body.kmhp-active #kmhp-designed-footer .kmhp-df-site-link:hover{opacity:.7;text-decoration:underline!important;text-underline-offset:5px;}
body.kmhp-active #kmhp-designed-footer .kmhp-df-site-link:focus-visible{outline:2px solid #174b87;outline-offset:4px;border-radius:2px;}
body.kmhp-active #kmhp-designed-footer .kmhp-df-copyright a{color:#fff!important;}
/* Hide the theme's bottom copyright and footer even when KENI8 uses a div rather than footer. */
body.kmhp-active.kmhp-hide-native-footer :is(#footer,footer#footer,footer.site-footer,.site-footer,.keni-footer,#footer-wrap,#footer-wrapper,.footer-wrap,.footer-wrapper,.footer-copyright,.footer_copy,.footer-copy,.footer__copyright,.footer-bottom,.footer_bottom,.footer__bottom,.site-info,.siteInfo,#copyright,.copyright-area,#copy-right,.footer-copyright-wrap):not(#kmhp-designed-footer):not(:has(#kmhp-designed-footer)){display:none!important;}
/* KENI8 sometimes places the copyright as a separate block below the native footer. */
body.kmhp-active.kmhp-hide-native-footer :is(#copyright,.copyright,.copyright-area,.footer-copy,.footer_copy,.footer-copyright,.footer__copyright,.site-info,.footer-bottom,.footer_bottom,.footer__bottom,.footerCopyright):not(#kmhp-designed-footer):not(:has(#kmhp-designed-footer)){display:none!important;}
/* Profile portrait: original real photograph stays pixel-identical; only the displayed edges fade into watercolor. */
body.kmhp-active .kmhp-about{background:radial-gradient(ellipse at 21% 56%,#eaf4f8 0%,rgba(241,248,249,.62) 30%,transparent 65%),linear-gradient(115deg,#f7faf9 0%,#fffdf8 100%);}
body.kmhp-active .kmhp-about .kmhp-about-grid{grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:clamp(26px,5vw,65px);align-items:center;}
body.kmhp-active .kmhp-about .kmhp-about-copy{min-width:0;max-width:100%;overflow-wrap:normal;word-break:normal;line-break:strict;}
body.kmhp-active .kmhp-about .kmhp-about-photo{max-width:390px;width:100%;min-width:0;justify-self:center;overflow:visible;background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;}
body.kmhp-active .kmhp-about .kmhp-about-photo:before{content:'';position:absolute;inset:10% -7% -4%;z-index:0;background:radial-gradient(ellipse at 50% 52%,rgba(183,219,236,.33),transparent 70%);pointer-events:none;}
body.kmhp-active .kmhp-about .kmhp-about-photo:after{width:110px;height:90px;right:-14px;bottom:8px;opacity:.65;z-index:2;}
body.kmhp-active .kmhp-about .kmhp-about-photo img{position:relative;z-index:1;display:block;width:100%;height:auto;aspect-ratio:auto!important;object-fit:contain;object-position:center top;border:0!important;border-radius:0!important;box-shadow:none!important;-webkit-mask-image:radial-gradient(ellipse 74% 76% at 50% 43%,#000 66%,transparent 100%);mask-image:radial-gradient(ellipse 74% 76% at 50% 43%,#000 66%,transparent 100%);}
body.kmhp-active .kmhp-about .kmhp-about-title-line{display:block;white-space:normal;word-break:keep-all;overflow-wrap:normal;line-break:strict;}
body.kmhp-active .kmhp-about .kmhp-about-copy h2{font-size:clamp(26px,3.1vw,39px)!important;line-height:1.62!important;letter-spacing:0!important;text-wrap:balance;}
body.kmhp-active .kmhp-about .kmhp-about-copy p{font-size:clamp(14px,1.4vw,16px)!important;line-height:2.05!important;overflow-wrap:normal;word-break:normal;line-break:strict;text-wrap:pretty;}
body.kmhp-active .kmhp-about .kmhp-about-copy .kmhp-inline-link{max-width:100%;white-space:normal;}
/* Don't let the KENI8 wrapper, columns or custom headings force horizontal scroll. */
body.kmhp-active .kmhp,body.kmhp-active .kmhp-section,body.kmhp-active .kmhp-shell,body.kmhp-active .kmhp-about-grid,body.kmhp-active .kmhp-about-copy{min-width:0;max-inline-size:100%;}
body.kmhp-active .kmhp-shell{max-inline-size:1050px;}
body.kmhp-active .kmhp-about-copy h2,body.kmhp-active .kmhp-about-copy p{max-inline-size:100%;}
@media(max-width:800px){
 body.kmhp-active .kmhp-about .kmhp-about-grid{grid-template-columns:minmax(0,1fr);gap:18px;}
 body.kmhp-active .kmhp-about .kmhp-about-copy{order:1;}
 body.kmhp-active .kmhp-about .kmhp-about-photo{order:2;width:min(85%,320px);margin:0 auto!important;}
 body.kmhp-active .kmhp-about .kmhp-about-copy h2{font-size:clamp(25px,5.9vw,32px)!important;}
}
@media(max-width:640px){
 body.kmhp-active .kmhp-about{padding:52px 0 34px!important;}
 body.kmhp-active .kmhp-about .kmhp-about-grid{gap:8px;}
 body.kmhp-active .kmhp-about .kmhp-about-copy h2{font-size:clamp(23px,6vw,29px)!important;line-height:1.7!important;letter-spacing:-.025em!important;}
 body.kmhp-active .kmhp-about .kmhp-about-copy p{font-size:14px!important;line-height:1.95!important;letter-spacing:0!important;}
 body.kmhp-active .kmhp-about .kmhp-about-photo{width:min(85%,310px);}
 body.kmhp-active .kmhp-about .kmhp-about-photo:after{width:84px;height:64px;right:-8px;bottom:4px;}
 body.kmhp-active .kmhp-about .kmhp-about-title-line{word-break:normal;overflow-wrap:normal;}
 body.kmhp-active .kmhp .kmhp-heading h2,body.kmhp-active .kmhp .kmhp-chapter h2{line-break:strict;word-break:normal;overflow-wrap:normal;text-wrap:balance;}
}
@media(max-width:360px){body.kmhp-active .kmhp-about .kmhp-about-copy h2{font-size:22px!important;letter-spacing:-.04em!important;}}


/* v1.7.0 illustrated Matsuno portrait — supplied artwork, transparent background. */
body.kmhp-active .kmhp-about{background:linear-gradient(110deg,#fffdf8 0%,#f7faf8 100%);overflow:hidden;}
body.kmhp-active .kmhp-about .kmhp-about-grid{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:clamp(22px,4.5vw,64px);align-items:center;}
body.kmhp-active .kmhp-about .kmhp-about-copy{order:1;min-width:0;max-width:100%;}
body.kmhp-active .kmhp-about .kmhp-about-photo.kmhp-about-illustration{order:2;position:relative;width:100%;max-width:455px;min-width:0;margin:0!important;justify-self:center;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;}
body.kmhp-active .kmhp-about .kmhp-about-photo.kmhp-about-illustration:before{content:'';position:absolute;inset:12% -10% 0;z-index:0;background:radial-gradient(ellipse at center,rgba(183,218,233,.22) 0%,rgba(183,218,233,0) 69%);pointer-events:none;}
body.kmhp-active .kmhp-about .kmhp-about-photo.kmhp-about-illustration:after{content:none!important;}
body.kmhp-active .kmhp-about .kmhp-about-photo.kmhp-about-illustration img{display:block;width:100%;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center bottom!important;border:0!important;border-radius:0!important;box-shadow:none!important;mask-image:none!important;-webkit-mask-image:none!important;}
body.kmhp-active .kmhp-about .kmhp-about-copy h2{font-size:clamp(25px,3.05vw,38px)!important;line-height:1.6!important;letter-spacing:0!important;word-break:keep-all!important;overflow-wrap:normal!important;}
body.kmhp-active .kmhp-about .kmhp-about-copy p{font-size:clamp(14px,1.3vw,16px)!important;line-height:2!important;word-break:normal!important;overflow-wrap:normal!important;line-break:strict!important;}
/* Two live WordPress posts directly before the watercolor footer. */
body.kmhp-active .kmhp-stories{padding-block:clamp(45px,7vw,80px)!important;background:linear-gradient(180deg,#fffdf8 0%,#f2f8fa 100%);}
body.kmhp-active .kmhp-stories .kmhp-heading{margin-bottom:24px;}
body.kmhp-active .kmhp-stories .kmhp-heading h2{font-size:clamp(25px,3vw,36px)!important;line-height:1.5!important;}
body.kmhp-active .kmhp-stories .kmhp-latest{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
body.kmhp-active .kmhp-stories .kmhp-post{min-width:0;min-height:160px;border:1px solid #dce7ed;border-radius:13px;background:#fff;box-shadow:0 7px 20px rgba(24,59,91,.035);padding:22px 24px;transition:box-shadow .2s ease,transform .2s ease;}
body.kmhp-active .kmhp-stories .kmhp-post:hover{box-shadow:0 10px 25px rgba(24,59,91,.12);transform:translateY(-2px);}
body.kmhp-active .kmhp-stories .kmhp-post h3{font-size:clamp(16px,1.6vw,20px)!important;line-height:1.65!important;word-break:normal!important;overflow-wrap:anywhere!important;line-break:strict!important;}
@media(max-width:800px){
 body.kmhp-active .kmhp-about .kmhp-about-grid{grid-template-columns:minmax(0,1fr);gap:14px;}
 body.kmhp-active .kmhp-about .kmhp-about-copy{order:1;}
 body.kmhp-active .kmhp-about .kmhp-about-photo.kmhp-about-illustration{order:2;width:min(82%,340px);margin:0 auto!important;}
}
@media(max-width:640px){
 body.kmhp-active .kmhp-about .kmhp-about-grid{gap:6px;}
 body.kmhp-active .kmhp-about .kmhp-about-copy h2{font-size:clamp(22px,5.8vw,29px)!important;line-height:1.7!important;letter-spacing:-.02em!important;}
 body.kmhp-active .kmhp-about .kmhp-about-copy p{font-size:14px!important;line-height:1.95!important;letter-spacing:0!important;}
 body.kmhp-active .kmhp-about .kmhp-about-photo.kmhp-about-illustration{width:min(85%,320px);}
 body.kmhp-active .kmhp-stories .kmhp-latest{grid-template-columns:minmax(0,1fr);gap:12px;}
 body.kmhp-active .kmhp-stories .kmhp-post{min-height:0;padding:20px;}
 body.kmhp-active .kmhp-stories .kmhp-post h3{font-size:17px!important;}
}
@media(max-width:360px){body.kmhp-active .kmhp-about .kmhp-about-copy h2{font-size:21px!important;}}


/* v1.8.0 — mobile-first finishing: symbol-only logo and deliberate hero line breaks. */
body.kmhp-active .kmhp-mobile-lead-break{display:none;}
body.kmhp-active .kmhp-df-main:before{opacity:.18!important;}
body.kmhp-active .kmhp-df-main:after{opacity:.20!important;}
/* The brand text is accessible HTML outside the image, so it never clips or pixelates. */
body.kmhp-active #kmhp-designed-footer .kmhp-df-logo{
  aspect-ratio:1/1!important;object-fit:contain!important;object-position:center!important;
  width:100%!important;height:auto!important;max-width:100%!important;
  border-radius:50%;mix-blend-mode:multiply;
}
body.kmhp-active #kmhp-designed-footer .kmhp-df-brand>strong,
body.kmhp-active #kmhp-designed-footer .kmhp-df-brand .kmhp-df-site-link{
  overflow-wrap:normal!important;word-break:keep-all!important;line-break:strict;
}
/* Keep the new first line and the requested second line intact where possible. */
body.kmhp-active .kmhp-hero #kmhp-main-title{
  text-wrap:balance!important;word-break:keep-all!important;
  overflow-wrap:normal!important;line-break:strict!important;
}
body.kmhp-active .kmhp-hero #kmhp-main-title span{
  display:block!important;white-space:nowrap;
}
@media(max-width:640px){
  body.kmhp-active .kmhp-hero #kmhp-main-title{
    font-size:clamp(23px,6.85vw,32px)!important;
    line-height:1.48!important;letter-spacing:-.035em!important;
    margin-inline:auto!important;padding-inline:0!important;
  }
  body.kmhp-active .kmhp-hero #kmhp-main-title span{letter-spacing:-.055em!important;}
  body.kmhp-active .kmhp-mobile-lead-break{display:block;}
  body.kmhp-active .kmhp-hero .kmhp-lead .kmhp-pc{display:block!important;}
  body.kmhp-active #kmhp-designed-footer .kmhp-df-brand .kmhp-df-motto br,
  body.kmhp-active #kmhp-designed-footer .kmhp-df-brand .kmhp-df-caption br{display:block!important;}
  body.kmhp-active .kmhp-hero .kmhp-lead{
    word-break:normal!important;overflow-wrap:normal!important;
    line-break:strict!important;text-wrap:pretty;
  }
  body.kmhp-active #kmhp-designed-footer .kmhp-df-brand>a{min-width:0;}
}
@media(max-width:360px){
  body.kmhp-active .kmhp-hero #kmhp-main-title{font-size:clamp(22px,6.75vw,24px)!important;}
}

/* v1.9.0 — TOP-only user-defined footer labels; prevent broken Japanese line wrapping. */
body.kmhp-active #kmhp-designed-footer .kmhp-df-list a{
  word-break:normal!important;overflow-wrap:break-word!important;
  line-break:strict!important;text-wrap:pretty;hyphens:none;
}
body.kmhp-active #kmhp-designed-footer .kmhp-df-col h2{
  word-break:keep-all!important;overflow-wrap:break-word!important;
  line-break:strict!important;text-wrap:balance;
}
body.kmhp-active #kmhp-designed-footer .kmhp-df-social-link strong,
body.kmhp-active #kmhp-designed-footer .kmhp-df-social-link small{
  word-break:normal!important;overflow-wrap:break-word!important;line-break:strict!important;
}
@media(max-width:700px){
  body.kmhp-active #kmhp-designed-footer .kmhp-df-cat{grid-column:1/-1;}
  body.kmhp-active #kmhp-designed-footer .kmhp-df-cat .kmhp-df-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:15px;row-gap:2px;}
  body.kmhp-active #kmhp-designed-footer .kmhp-df-col{min-width:0;}
  body.kmhp-active #kmhp-designed-footer .kmhp-df-list a{font-size:13px!important;line-height:1.7!important;}
}
@media(max-width:360px){
  body.kmhp-active #kmhp-designed-footer .kmhp-df-cat .kmhp-df-list{grid-template-columns:minmax(0,1fr);}
  body.kmhp-active #kmhp-designed-footer .kmhp-df-inner{grid-template-columns:minmax(0,1fr);}
  body.kmhp-active #kmhp-designed-footer .kmhp-df-brand{grid-column:1;}
  body.kmhp-active #kmhp-designed-footer .kmhp-df-cat{grid-column:1;}
  body.kmhp-active #kmhp-designed-footer .kmhp-df-col{border:0!important;border-top:1px solid #e5d9bf!important;padding:16px 8px 0!important;}
  body.kmhp-active #kmhp-designed-footer .kmhp-df-col h2{font-size:17px!important;}
  body.kmhp-active #kmhp-designed-footer .kmhp-df-list a{font-size:14px!important;}
}
@media(min-width:361px) and (max-width:700px){
  body.kmhp-active #kmhp-designed-footer .kmhp-df-inner > .kmhp-df-col:nth-child(2){grid-column:1/-1;}
  body.kmhp-active #kmhp-designed-footer .kmhp-df-inner > .kmhp-df-col:nth-child(2) .kmhp-df-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:15px;}
}
@media(min-width:361px) and (max-width:700px){
  body.kmhp-active #kmhp-designed-footer .kmhp-df-inner > .kmhp-df-col:nth-child(2){border-right:0!important;}
}

/* v1.10.0 — remove forced portrait aspect ratio that created a blank tall mobile hero frame. */
@media(max-width:640px){
 body.kmhp-active .kmhp .kmhp-hero-art,
 body.kmhp-active .kmhp .kmhp-hero-art picture,
 body.kmhp-active .kmhp .kmhp-hero-art img {
   aspect-ratio:auto!important;height:auto!important;min-height:0!important;max-height:none!important;
 }
 body.kmhp-active .kmhp .kmhp-hero-art img {object-fit:contain!important;}
 body.kmhp-active .kmhp-stories{padding-block:38px 46px!important;}
 body.kmhp-active .kmhp-stories .kmhp-heading{padding:17px 18px 19px!important;margin-bottom:16px!important;}
 body.kmhp-active .kmhp-stories .kmhp-heading h2{font-size:clamp(23px,6.2vw,28px)!important;line-height:1.42!important;letter-spacing:-.02em!important;text-wrap:balance;}
 body.kmhp-active .kmhp-stories .kmhp-heading p{font-size:13px!important;line-height:1.75!important;margin-top:9px!important;}
 body.kmhp-active .kmhp-stories .kmhp-latest{gap:10px!important;}
 body.kmhp-active .kmhp-stories .kmhp-post{min-height:0!important;padding:15px 17px 16px!important;border-radius:13px!important;}
 body.kmhp-active .kmhp-stories .kmhp-post time{font-size:12px!important;}
 body.kmhp-active .kmhp-stories .kmhp-post h3{font-size:clamp(15px,4.1vw,18px)!important;line-height:1.55!important;margin:7px 0 10px!important;overflow-wrap:break-word!important;}
 body.kmhp-active .kmhp-stories .kmhp-post>span{font-size:12px!important;}
}
/* Inner-page footer shares the TOP footer styling but never changes the article content. */
body.kmhp-inner-page .kmhp-designed-footer{clear:both!important;}
body.kmhp-inner-page.kmhp-hide-category-widgets :is(.widget_categories,.wp-block-categories,.wp-block-categories-list,[id^="categories-"]){display:none!important;}
/* Keep the category navigation accessible in the shared footer. */
body.kmhp-inner-page .kmhp-designed-footer .kmhp-df-cat{display:block!important;}

/* Explicit mobile line break in the latest-articles heading. */
@media(max-width:640px){body.kmhp-active .kmhp-stories .kmhp-stories-break{display:block!important;}}

/* v1.11.0 — non-destructive KENI8 sidebar suppression on singular posts/pages.
   Widget registration and contents remain untouched in the WordPress admin.
   On desktop the right sidebar disappears; on mobile the stacked sidebar does too.
   All selectors are restricted to the explicit kmhp-inner-page + kmhp-hide-sidebar flags. */
body.kmhp-inner-page.kmhp-hide-sidebar :is(
  #sidebar, #sidebar-wrapper, #sidebar-wrap, #side, #side-column, #sub,
  #secondary, .sidebar, .sidebar-wrapper, .sidebar-wrap, .sidebar-area,
  .l-sidebar, .p-sidebar, .keni-sidebar, .side-column, .sub-column,
  .sub-conts, .sub-contents, .sub-contents-wrap, .sub-content,
  .secondary, .secondary-column, .widget-area.sidebar-widget-area
){display:none!important;visibility:hidden!important;}
/* Clear the now-unused second column in typical KENI8 layout variants.
   Limit article line length for reading comfort rather than stretching paragraphs edge-to-edge. */
body.kmhp-inner-page.kmhp-hide-sidebar :is(
  #main, #main-contents, #primary, .main-conts, .main-contents,
  .main-column, .main-content, .l-main, .keni-main, .content-area,
  .site-main, .main-area
){float:none!important;flex:1 1 auto!important;width:100%!important;
  max-width:980px!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important;
  grid-column:1/-1!important;}
body.kmhp-inner-page.kmhp-hide-sidebar :is(
  .main-wrap, .main-wrapper, .content-wrap, .content-wrapper,
  .site-content, .keni-section_wrap, .keni-main-wrap, .l-container
){grid-template-columns:minmax(0,1fr)!important;}
/* Footer must span the entire page, never inherit the article-column width. */
body.kmhp-inner-page #kmhp-designed-footer{
  display:block!important;clear:both!important;width:100%!important;max-width:none!important;
  margin:0!important;padding:0!important;float:none!important;
}
/* Footer categories are not part of the sidebar and remain visible. */
body.kmhp-inner-page #kmhp-designed-footer .kmhp-df-cat{display:block!important;visibility:visible!important;}
@media(max-width:767px){
  body.kmhp-inner-page.kmhp-hide-sidebar :is(
    #sidebar,#sidebar-wrapper,#side,#secondary,.sidebar,.l-sidebar,
    .sub-conts,.sub-contents,.sub-column,.secondary
  ){display:none!important;}
  body.kmhp-inner-page.kmhp-hide-sidebar :is(
    #main,#main-contents,#primary,.main-conts,.main-contents,.main-column,.content-area,.site-main
  ){width:100%!important;max-width:100%!important;min-width:0!important;}
}

/* KENI8-specific two-column implementation: .keni-sub is the actual sidebar,
   while .col2 .keni-main reserves its width with right padding and negative margin. */
body.kmhp-inner-page.kmhp-hide-sidebar .keni-sub,
body.kmhp-inner-page.kmhp-hide-sidebar .keni-sub_outer,
body.kmhp-inner-page.kmhp-hide-sidebar .keni-sub_wrap{
  display:none!important;visibility:hidden!important;
}
body.kmhp-inner-page.kmhp-hide-sidebar .keni-main{
  float:none!important;display:block!important;width:100%!important;
  max-width:980px!important;min-width:0!important;
  margin:0 auto!important;padding-right:0!important;padding-left:0!important;
}
body.kmhp-inner-page.kmhp-hide-sidebar .keni-main_outer{
  width:100%!important;max-width:1100px!important;margin-inline:auto!important;
}
@media(max-width:767px){
 body.kmhp-inner-page.kmhp-hide-sidebar .keni-main{
   max-width:100%!important;padding-right:0!important;margin-right:auto!important;
 }
}


/* v1.12.0 — KENI8 author profile reimagined in the homepage's watercolor language.
   Applied only to the injected card after safely detecting the native author box. */
body.kmhp-inner-page .kmhp-author-card,
body.kmhp-inner-page .kmhp-author-card * {box-sizing:border-box;}
body.kmhp-inner-page .kmhp-author-card {
  position:relative;isolation:isolate;clear:both;overflow:hidden;
  width:min(100%,940px);margin:52px auto 36px!important;padding:30px clamp(18px,4vw,44px) 34px!important;
  background:linear-gradient(135deg,rgba(247,251,252,.96),rgba(255,253,248,.98) 65%,rgba(248,252,251,.97));
  border:1px solid #e5d5b3;border-radius:18px;box-shadow:0 10px 34px rgba(36,64,87,.07);
  color:#233e62;font-family:'Yu Mincho','Hiragino Mincho ProN','Noto Serif JP',serif;
}
body.kmhp-inner-page .kmhp-author-card::before,
body.kmhp-inner-page .kmhp-author-card::after {
  content:"";position:absolute;pointer-events:none;z-index:-1;
  background:url('assets/floral-corner.svg') center/contain no-repeat;opacity:.34;width:175px;height:175px;
}
body.kmhp-inner-page .kmhp-author-card::before{top:-38px;right:-48px;transform:rotate(6deg)}
body.kmhp-inner-page .kmhp-author-card::after{bottom:-65px;left:-66px;transform:rotate(182deg)}
body.kmhp-inner-page .kmhp-author-eyebrow{display:flex;align-items:center;gap:12px;letter-spacing:.19em;color:#aa854b;font-size:11px;font-weight:700;margin:0 0 20px;padding:0 0 12px;border-bottom:1px solid #e7d9bf;}
body.kmhp-inner-page .kmhp-author-eyebrow span{font-size:16px;color:#b88c46}
body.kmhp-inner-page .kmhp-author-grid{display:grid;grid-template-columns:170px minmax(0,1fr);align-items:center;gap:clamp(22px,4vw,38px);}
body.kmhp-inner-page .kmhp-author-portrait{border:1px solid #d7e6ea;border-radius:120px 120px 18px 18px;background:#f6f9fa;padding:5px;box-shadow:0 5px 22px rgba(34,66,91,.08);overflow:hidden;}
body.kmhp-inner-page .kmhp-author-portrait img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:240/294;object-fit:cover;object-position:center top;border-radius:120px 120px 13px 13px;max-width:none!important;margin:0!important;}
body.kmhp-inner-page .kmhp-author-kicker{margin:0 0 7px!important;color:#337185;font-size:13px;font-weight:700;letter-spacing:.05em;line-height:1.7;}
body.kmhp-inner-page .kmhp-author-info h2{font-size:clamp(24px,3vw,31px)!important;line-height:1.4!important;letter-spacing:.08em;color:#153a68!important;border:0!important;background:none!important;margin:0 0 6px!important;padding:0!important;box-shadow:none!important;}
body.kmhp-inner-page .kmhp-author-info h2::before,body.kmhp-inner-page .kmhp-author-info h2::after{display:none!important;}
body.kmhp-inner-page .kmhp-author-role{margin:0 0 15px!important;font-size:13px;line-height:1.8!important;color:#336f7d;letter-spacing:.02em;font-weight:600;}
body.kmhp-inner-page .kmhp-author-description{margin:0 0 19px!important;font-size:14px!important;line-height:1.95!important;letter-spacing:.015em;color:#425b6c;overflow-wrap:anywhere;}
body.kmhp-inner-page .kmhp-author-actions{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 10px;}
body.kmhp-inner-page .kmhp-author-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:10px 16px;min-height:42px;border:1px solid #cbdce2;border-radius:999px;background:#fff;color:#214c69!important;text-decoration:none!important;font-size:12px;font-weight:700;line-height:1.5;transition:background .2s,border-color .2s;}
body.kmhp-inner-page .kmhp-author-button:hover{background:#eef8f8;border-color:#8fbcc6;}
body.kmhp-inner-page .kmhp-author-primary{background:#174b70!important;color:#fff!important;border-color:#174b70!important;}
body.kmhp-inner-page .kmhp-author-primary:hover{background:#0e3d5c!important;}
body.kmhp-inner-page .kmhp-author-voicy{display:inline-block;color:#356d7b!important;text-decoration:underline!important;text-decoration-color:#c4a873!important;text-underline-offset:4px;font-size:12px;line-height:1.8;}
body.kmhp-inner-page .kmhp-author-card a:focus-visible{outline:3px solid #357e99;outline-offset:3px;}
@media(max-width:640px){
 body.kmhp-inner-page .kmhp-author-card{margin:36px auto 28px!important;padding:19px 17px 24px!important;border-radius:13px;}
 body.kmhp-inner-page .kmhp-author-eyebrow{font-size:10px;margin-bottom:16px;}
 body.kmhp-inner-page .kmhp-author-grid{grid-template-columns:1fr;gap:13px;align-items:start;}
 body.kmhp-inner-page .kmhp-author-portrait{width:108px;max-width:100%;margin:0 auto;padding:3px;}
 body.kmhp-inner-page .kmhp-author-info{display:block;min-width:0;}
 body.kmhp-inner-page .kmhp-author-kicker{margin:0 0 4px!important;font-size:11px;text-align:center;}
 body.kmhp-inner-page .kmhp-author-info h2{margin:0 0 4px!important;font-size:24px!important;text-align:center;}
 body.kmhp-inner-page .kmhp-author-role{margin-bottom:14px!important;font-size:11px;line-height:1.6!important;text-align:center;}
 body.kmhp-inner-page .kmhp-author-description{margin:5px 0 12px!important;font-size:13px!important;line-height:1.9!important;}
 body.kmhp-inner-page .kmhp-author-actions{gap:7px;margin:0 0 9px;}
 body.kmhp-inner-page .kmhp-author-button{font-size:11px;min-height:42px;padding:9px 13px;flex:1 1 140px;}
 body.kmhp-inner-page .kmhp-author-voicy{display:block;text-align:center;margin-top:3px;font-size:12px;}
}


/* v1.12.0 — legacy AC article's new TOP-style illustration figures.
   Original post text and image captions remain readable on narrow screens. */
body.kmhp-inner-page .kmhp-article-art {
  display:block;clear:both;width:min(100%,850px);max-width:100%;margin:26px auto 34px!important;
  padding:12px 12px 13px!important;border:1px solid #e8dec9;border-radius:13px;
  background:linear-gradient(135deg,#fffdfa,#f8fbfc);box-shadow:0 6px 22px rgba(31,64,86,.045);
  text-align:center;box-sizing:border-box;
}
body.kmhp-inner-page .kmhp-article-art img {
  display:block;width:auto!important;height:auto!important;max-width:100%!important;
  max-height:700px!important;object-fit:contain!important;margin:0 auto!important;border-radius:7px;
}
body.kmhp-inner-page .kmhp-article-art figcaption {
  margin:10px 4px 0!important;padding:0!important;font-size:13px!important;
  line-height:1.8!important;color:#4c6678!important;letter-spacing:.01em;
}
@media(max-width:640px){
 body.kmhp-inner-page .kmhp-article-art{padding:7px 7px 10px!important;margin:22px auto 28px!important;border-radius:9px;}
 body.kmhp-inner-page .kmhp-article-art img{max-height:570px!important;}
 body.kmhp-inner-page .kmhp-article-art figcaption{font-size:11px!important;line-height:1.7!important;margin-top:8px!important;}
}

/* v1.13.0: requested TOP wording and mobile line lengths. */
@media(max-width:640px){
 body.kmhp-active #kmhp-diagnosis-title,
 body.kmhp-active #kmhp-value-title,
 body.kmhp-active #kmhp-family-title,
 body.kmhp-active #kmhp-wish-title,
 body.kmhp-active #kmhp-practice-title,
 body.kmhp-active #kmhp-about-title,
 body.kmhp-active #kmhp-calm-title{
  font-size:clamp(20px,5.5vw,28px)!important;
  letter-spacing:0!important;line-height:1.75!important;
  word-break:normal!important;overflow-wrap:normal!important;text-wrap:wrap!important;
 }
}
