/* KĀHUI Guides — search-friendly editorial pages */
.guide{padding-top:5.5rem}
.guide-wrap{width:min(1080px,calc(100% - 80px));margin-inline:auto}
.guide-hero{padding:8rem 0 6rem;border-bottom:1px solid var(--line)}
.guide-hero .eyebrow{margin:0 0 1.3rem;color:var(--forest)}
.guide-hero h1{max-width:960px;margin:0;font-family:"Noto Sans JP",sans-serif;font-size:clamp(2.7rem,6.8vw,6.6rem);font-weight:300;line-height:1.2;letter-spacing:-.055em}
.guide-lead{display:grid;grid-template-columns:1fr 1.35fr;gap:5vw;margin-top:3.5rem;padding-top:2rem;border-top:1px solid var(--line)}
.guide-lead strong{font-size:1rem;font-weight:500;line-height:1.8}
.guide-lead p{margin:0;font-family:"Noto Sans JP";font-size:.9rem;line-height:2.1}
.guide-summary{padding:4.5rem 0}
.guide-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}
.guide-summary article{min-height:190px;padding:1.5rem;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.guide-summary small{font-size:.58rem;letter-spacing:.15em;text-transform:uppercase;color:var(--forest)}
.guide-summary h2{margin:2.4rem 0 .8rem;font-size:1.25rem;font-weight:400}
.guide-summary p{margin:0;font-family:"Noto Sans JP";font-size:.74rem;line-height:1.9}
.guide-section{padding:6rem 0;border-top:1px solid var(--line)}
.guide-section-head{display:grid;grid-template-columns:.72fr 1.28fr;gap:5vw;margin-bottom:3.5rem}
.guide-section .section-label{margin:0;color:var(--forest)}
.guide-section h2{margin:0;font-family:"Noto Sans JP";font-size:clamp(2rem,4vw,4rem);font-weight:300;line-height:1.45;letter-spacing:-.04em}
.guide-copy{max-width:760px;margin-left:auto}
.guide-copy>p{margin:0 0 1.4rem;font-family:"Noto Sans JP";font-size:.9rem;line-height:2.15}
.guide-copy h3{margin:3rem 0 1rem;font-family:"Noto Sans JP";font-size:1.35rem;font-weight:400}
.guide-list{list-style:none;margin:2rem 0 0;padding:0;border-top:1px solid var(--line)}
.guide-list li{display:grid;grid-template-columns:3rem 1fr;gap:1rem;padding:1.4rem 0;border-bottom:1px solid var(--line);font-family:"Noto Sans JP";font-size:.82rem;line-height:1.9}
.guide-list span{font-family:Manrope,sans-serif;font-size:.58rem;letter-spacing:.12em;color:var(--forest)}
.guide-system{background:var(--forest);color:#f4f5ec;padding:6.5rem 0}
.guide-system .section-label{color:#bdcdb7}
.guide-system-grid{display:grid;grid-template-columns:.75fr 1.25fr;gap:5vw}
.guide-system h2{margin:0;font-family:"Noto Sans JP";font-size:clamp(2.1rem,4.4vw,4.6rem);font-weight:300;line-height:1.4}
.guide-system-copy p{margin:0 0 1.4rem;font-family:"Noto Sans JP";font-size:.88rem;line-height:2;color:#dfe7dc}
.guide-products{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-top:3.5rem;border-top:1px solid #607561;border-left:1px solid #607561}
.guide-products a{min-height:155px;padding:1.2rem;border-right:1px solid #607561;border-bottom:1px solid #607561}
.guide-products small{font-size:.55rem;letter-spacing:.13em;color:#c4d3be}
.guide-products strong{display:block;margin:2.5rem 0 .45rem;font-size:1rem;font-weight:500}
.guide-products span{display:block;font-family:"Noto Sans JP";font-size:.66rem;line-height:1.7;color:#cad7c7}
.guide-faq{padding:6rem 0}
.guide-faq h2{margin:0 0 3rem;font-family:"Noto Sans JP";font-size:clamp(2rem,4vw,3.8rem);font-weight:300}
.guide-faq details{border-top:1px solid var(--line);padding:1.35rem 0}
.guide-faq details:last-of-type{border-bottom:1px solid var(--line)}
.guide-faq summary{cursor:pointer;font-family:"Noto Sans JP";font-size:1rem;font-weight:400}
.guide-faq details p{max-width:760px;margin:1rem 0 0;font-family:"Noto Sans JP";font-size:.8rem;line-height:2}
.guide-related{padding:5.5rem 0 7rem;border-top:1px solid var(--line)}
.guide-related h2{margin:0 0 2.5rem;font-size:.65rem;font-weight:400;letter-spacing:.17em;text-transform:uppercase}
.guide-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.guide-related a{display:flex;min-height:170px;flex-direction:column;justify-content:space-between;padding:1.4rem;border:1px solid var(--line);transition:background .25s,transform .25s}
.guide-related a:hover{background:#e7ebe2;transform:translateY(-3px)}
.guide-related small{font-size:.55rem;letter-spacing:.13em;color:var(--forest)}
.guide-related strong{font-family:"Noto Sans JP";font-size:1.05rem;font-weight:400;line-height:1.6}
.guide-cta{padding:7rem 0;background:#e5e8df}
.guide-cta h2{max-width:780px;margin:0;font-family:"Noto Sans JP";font-size:clamp(2.3rem,5vw,5.2rem);font-weight:300;line-height:1.35;letter-spacing:-.045em}
.guide-cta p{max-width:650px;margin:2rem 0 0;font-family:"Noto Sans JP";font-size:.86rem;line-height:2}
.guide-cta-links{display:flex;gap:2rem;margin-top:2.5rem}
.guide-cta-links a{padding-bottom:.6rem;border-bottom:1px solid currentColor;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
@media(max-width:760px){
  .guide-wrap{width:calc(100% - 40px)}
  .guide{padding-top:4rem}
  .guide-hero{padding:6rem 0 4rem}
  .guide-hero h1{font-size:clamp(2.3rem,11vw,4rem)}
  .guide-lead,.guide-section-head,.guide-system-grid{grid-template-columns:1fr;gap:1.8rem}
  .guide-summary-grid{grid-template-columns:1fr}
  .guide-summary article{min-height:0}
  .guide-summary h2{margin-top:1.4rem}
  .guide-section,.guide-faq{padding:4.5rem 0}
  .guide-copy{margin-left:0}
  .guide-products{grid-template-columns:1fr}
  .guide-products a{min-height:115px}
  .guide-products strong{margin-top:1.3rem}
  .guide-related-grid{grid-template-columns:1fr}
  .guide-related a{min-height:130px}
  .guide-cta{padding:5rem 0}
  .guide-cta-links{flex-direction:column;align-items:flex-start;gap:1.3rem}
}


/* Visual language aligned with the KĀHUI homepage */
.kahui-guide-page{font-family:Manrope,"Noto Sans JP",sans-serif;font-weight:400;background:#f8f8f3;color:#202c25}
.kahui-guide-page .site-header,.kahui-guide-page .brand,.kahui-guide-page .global-nav,.kahui-guide-page .brand-finale{font-family:Manrope,"Noto Sans JP",sans-serif}
.kahui-guide-page .guide,.kahui-guide-page .guides-index{font-family:Manrope,"Noto Sans JP",sans-serif}
.kahui-guide-page .guide h1,.kahui-guide-page .guide h2,.kahui-guide-page .guide h3,.kahui-guide-page .guide p,.kahui-guide-page .guide strong,.kahui-guide-page .guide li,.kahui-guide-page .guide summary,.kahui-guide-page .guide details p{font-family:Manrope,"Noto Sans JP",sans-serif}
.guide-hero h1{font-weight:600;line-height:1.35}
.guide-lead p,.guide-summary p,.guide-copy>p,.guide-copy h3,.guide-list li,.guide-system h2,.guide-system-copy p,.guide-products span,.guide-faq h2,.guide-faq summary,.guide-faq details p,.guide-related strong,.guide-cta h2,.guide-cta p{font-family:Manrope,"Noto Sans JP",sans-serif}
.guide-section h2,.guide-system h2,.guide-faq h2,.guide-cta h2{font-weight:600}
.guide-summary h2,.guide-copy h3,.guide-related strong{font-weight:600}
.guide-visual-section{padding:0 0 5rem}
.guide-visual{position:relative;overflow:hidden;margin:0;border:1px solid #d9dfd5;border-radius:16px;background:#f0f4ec;box-shadow:0 18px 38px rgba(24,58,43,.05)}
.guide-visual-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px 22px;border-bottom:1px solid #d9dfd5;background:rgba(255,255,255,.5)}
.guide-visual-head small{font-size:10px;font-weight:600;letter-spacing:.14em;color:#5d6a61}
.guide-visual-head span{font-size:12px;color:#5d6a61}
.guide-visual-body{padding:34px}
.guide-visual figcaption{padding:16px 22px;border-top:1px solid #d9dfd5;background:#fffefa;font-size:12px;line-height:1.8;color:#5d6a61}

/* SaaS: fragmented tools converge on HUB */
.saas-visual-grid{display:grid;grid-template-columns:1fr 110px 1.35fr;gap:22px;align-items:center;min-height:290px}
.saas-scatter{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.saas-scatter span{display:grid;place-items:center;min-height:72px;padding:10px;border:1px solid #cfd7ca;border-radius:10px;background:#fffefa;font-size:13px;font-weight:600}
.saas-scatter span:nth-child(2){transform:translateY(12px)}.saas-scatter span:nth-child(3){transform:translateY(-8px)}
.saas-arrow{position:relative;text-align:center;color:#60705f;font-size:11px}
.saas-arrow:before{content:"";display:block;width:70px;height:1px;margin:0 auto 10px;background:#8da084}
.saas-arrow:after{content:"›";position:absolute;top:-19px;right:11px;font-size:28px;color:#60705f}
.saas-core{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
.saas-hub{grid-row:1/3;display:flex;flex-direction:column;justify-content:center;min-height:190px;padding:24px;border-radius:14px;background:#183a2b;color:#fff}
.saas-hub small,.saas-module small{font-size:9px;letter-spacing:.13em}.saas-hub strong{margin-top:12px;font-size:28px;letter-spacing:.04em}.saas-hub span{margin-top:8px;font-size:11px;color:#dce8df;line-height:1.7}
.saas-modules{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.saas-module{display:flex;min-height:87px;flex-direction:column;justify-content:space-between;padding:13px;border:1px solid;border-radius:10px;background:#fffefa;font-size:12px;font-weight:600}
.saas-module.site{border-color:#8eb9df;color:#176bb8}.saas-module.flow{border-color:#a7d9b8;color:#238a4a}.saas-module.bi{border-color:#e3d46b;color:#806e00}.saas-module.ai{border-color:#efb5aa;color:#c84b36}

/* Customer management: one customer, one continuous history */
.customer-journey{display:grid;grid-template-columns:repeat(5,1fr);gap:0;align-items:center;min-height:260px}
.customer-step{position:relative;min-height:145px;padding:19px 16px;border:1px solid #ccd6c8;background:#fffefa}
.customer-step:first-child{border-radius:12px 0 0 12px}.customer-step:last-child{border-radius:0 12px 12px 0}
.customer-step:not(:last-child):after{content:"→";position:absolute;z-index:2;right:-13px;top:50%;width:26px;height:26px;display:grid;place-items:center;transform:translateY(-50%);border-radius:50%;background:#183a2b;color:#fff;font-size:13px}
.customer-step small{font-size:9px;letter-spacing:.12em;color:#667464}.customer-step strong{display:block;margin:34px 0 7px;font-size:16px}.customer-step span{display:block;font-size:11px;line-height:1.6;color:#5d6a61}
.customer-person{position:absolute;right:26px;bottom:22px;width:54px;height:54px;border-radius:50%;background:#dfe8da}
.customer-person:before{content:"";position:absolute;left:19px;top:10px;width:16px;height:16px;border-radius:50%;background:#183a2b}
.customer-person:after{content:"";position:absolute;left:12px;bottom:9px;width:30px;height:18px;border-radius:18px 18px 9px 9px;background:#183a2b}

/* BI: compact dashboard illustration */
.bi-visual-layout{display:grid;grid-template-columns:.75fr 1.25fr;gap:18px;min-height:300px}
.bi-metric-stack{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bi-metric-card{padding:18px;border:1px solid #e0d47d;border-radius:11px;background:#fffefa}
.bi-metric-card small{display:block;font-size:9px;letter-spacing:.12em;color:#776600}.bi-metric-card strong{display:block;margin-top:20px;font-size:28px;color:#4d4720}.bi-metric-card span{font-size:10px;color:#736b3f}
.bi-board{display:grid;grid-template-rows:1fr auto;gap:12px;padding:18px;border:1px solid #ded6a4;border-radius:12px;background:#fffefa}
.bi-chart{display:flex;align-items:end;gap:9px;min-height:175px;padding:20px 12px 0;border-left:1px solid #ddd6af;border-bottom:1px solid #ddd6af}
.bi-chart i{flex:1;min-width:8px;background:#e1c928;border-radius:4px 4px 0 0}.bi-chart i:nth-child(1){height:34%}.bi-chart i:nth-child(2){height:58%}.bi-chart i:nth-child(3){height:47%}.bi-chart i:nth-child(4){height:74%}.bi-chart i:nth-child(5){height:63%}.bi-chart i:nth-child(6){height:88%}.bi-chart i:nth-child(7){height:78%}
.bi-board-footer{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#776f43}.bi-board-footer strong{font-size:11px;color:#4d4720}

/* AI: data → model → prediction → human */
.ai-pipeline{display:grid;grid-template-columns:1fr 44px 1fr 44px 1fr 44px 1fr;align-items:center;min-height:280px}
.ai-stage{min-height:158px;padding:18px;border:1px solid #e1c9c3;border-radius:12px;background:#fffefa}
.ai-stage small{font-size:9px;letter-spacing:.12em;color:#9a5d52}.ai-stage strong{display:block;margin:32px 0 8px;font-size:17px}.ai-stage span{display:block;font-size:11px;line-height:1.65;color:#6c625f}
.ai-stage.model{background:#fff0ed;border-color:#efb5aa}.ai-stage.human{background:#183a2b;border-color:#183a2b;color:#fff}.ai-stage.human small,.ai-stage.human span{color:#dbe6de}
.ai-link{text-align:center;color:#b66c5e;font-size:22px}
.ai-signal{display:flex;gap:4px;align-items:end;height:28px;margin-top:15px}.ai-signal i{flex:1;background:#f06a52;border-radius:2px 2px 0 0}.ai-signal i:nth-child(1){height:35%}.ai-signal i:nth-child(2){height:72%}.ai-signal i:nth-child(3){height:52%}.ai-signal i:nth-child(4){height:88%}.ai-signal i:nth-child(5){height:66%}

/* Guide index gets visual cards rather than text-only rows */
.guides-index .guides-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-top:4rem}
.guides-index .guides-list a{position:relative;display:flex!important;min-height:330px;flex-direction:column;align-items:stretch!important;gap:0!important;padding:0!important;overflow:hidden;border:1px solid #d9dfd5!important;border-radius:14px;background:#fffefa;transition:transform .25s,border-color .25s}
.guides-index .guides-list a:hover{transform:translateY(-4px);border-color:#aebfa5!important}
.guides-index .guides-list a>small,.guides-index .guides-list a>strong,.guides-index .guides-list a>p,.guides-index .guides-list a>span{margin-left:22px;margin-right:22px}
.guides-index .guides-list a>small{margin-top:20px}.guides-index .guides-list a>strong{margin-top:14px}.guides-index .guides-list a>p{margin-top:8px}.guides-index .guides-list a>span{margin-top:auto;margin-bottom:20px}
.guide-index-visual{position:relative;height:132px;border-bottom:1px solid #d9dfd5;background:#eef3ea;overflow:hidden}
.guide-index-visual i{position:absolute;display:block}
.guide-index-visual.saas i{width:44px;height:30px;border:1px solid #aebca9;border-radius:6px;background:#fff}.guide-index-visual.saas i:nth-child(1){left:12%;top:23%}.guide-index-visual.saas i:nth-child(2){left:12%;bottom:20%}.guide-index-visual.saas i:nth-child(3){right:18%;top:27%;width:72px;height:72px;border-radius:14px;background:#183a2b;border-color:#183a2b}.guide-index-visual.saas:after{content:"→";position:absolute;left:48%;top:43%;color:#60705f}
.guide-index-visual.customer i{width:44px;height:44px;border:1px solid #aebca9;border-radius:50%;background:#fff}.guide-index-visual.customer i:nth-child(1){left:9%;top:34%}.guide-index-visual.customer i:nth-child(2){left:36%;top:34%}.guide-index-visual.customer i:nth-child(3){right:9%;top:34%}.guide-index-visual.customer:before{content:"";position:absolute;left:18%;right:18%;top:50%;height:1px;background:#8ca083}
.guide-index-visual.bi{background:#fff9d8}.guide-index-visual.bi i{bottom:22px;width:10%;background:#d4b900;border-radius:3px 3px 0 0}.guide-index-visual.bi i:nth-child(1){left:13%;height:28%}.guide-index-visual.bi i:nth-child(2){left:29%;height:52%}.guide-index-visual.bi i:nth-child(3){left:45%;height:39%}.guide-index-visual.bi i:nth-child(4){left:61%;height:68%}.guide-index-visual.bi i:nth-child(5){left:77%;height:58%}
.guide-index-visual.ai{background:#fff0ed}.guide-index-visual.ai i{top:50%;width:42px;height:42px;transform:translateY(-50%);border:1px solid #e8b9af;border-radius:9px;background:#fff}.guide-index-visual.ai i:nth-child(1){left:9%}.guide-index-visual.ai i:nth-child(2){left:34%;background:#f06a52;border-color:#f06a52}.guide-index-visual.ai i:nth-child(3){right:9%;background:#183a2b;border-color:#183a2b}.guide-index-visual.ai:before,.guide-index-visual.ai:after{content:"→";position:absolute;top:42%;color:#b66c5e}.guide-index-visual.ai:before{left:25%}.guide-index-visual.ai:after{right:26%}

@media(max-width:760px){
  .guide-visual-section{padding-bottom:3.5rem}
  .guide-visual-body{padding:22px}
  .guide-visual-head{align-items:flex-start;flex-direction:column;gap:4px}
  .saas-visual-grid{grid-template-columns:1fr;gap:16px}.saas-arrow{transform:rotate(90deg);padding:8px 0}.saas-arrow span{display:none}.saas-core{grid-template-columns:1fr}.saas-hub{grid-row:auto;min-height:130px}.saas-modules{grid-template-columns:1fr 1fr}
  .customer-journey{grid-template-columns:1fr;gap:13px}.customer-step{min-height:105px;border-radius:10px!important}.customer-step:not(:last-child):after{content:"↓";right:50%;top:auto;bottom:-20px;transform:translateX(50%)}
  .bi-visual-layout{grid-template-columns:1fr}.bi-chart{min-height:150px}
  .ai-pipeline{grid-template-columns:1fr;gap:11px}.ai-link{transform:rotate(90deg)}.ai-stage{min-height:120px}.ai-stage strong{margin-top:20px}
  .guides-index .guides-list{grid-template-columns:1fr!important}.guides-index .guides-list a{min-height:310px}
}
