/* KEYPER OSAKA Studio 3.6.18 — visual priority: location-only diagonal accent,
   shared scroll tone at travel and FAQ. No text/card overlay; no font/layout motion.
   SANKOU! design catalog reference: geometric motifs and slanted color planes. */
:root { --kp618-paper:#FFFCF7; --kp618-scene:#F4EBDD; --kp618-ink:#332C26; }

/* 01 — left-top corner only. Replaces the former circle ornaments.
   Both sections keep their existing base surfaces throughout scrolling. */
.home #service-finder.kgp-section,
.home #cases.kos-cases-section {
  position:relative!important; isolation:isolate!important; overflow:hidden!important;
}
.home #service-finder.kgp-section > .kos-shell,
.home #cases.kos-cases-section > .kos-shell { position:relative!important; z-index:2!important; }
.home #service-finder.kgp-section::after,
.home #cases.kos-cases-section::after {
  content:""!important;
  position:absolute!important; left:0!important; top:0!important; right:auto!important; bottom:auto!important;
  width:clamp(250px,32vw,445px)!important;
  height:clamp(145px,14vw,205px)!important;
  border:0!important; border-radius:0!important; box-shadow:none!important;
  clip-path:polygon(0 0,100% 0,0 100%)!important;
  background:linear-gradient(133deg,rgba(185,123,64,.195),rgba(202,155,104,.105) 65%,rgba(228,191,143,.07))!important;
  filter:none!important; pointer-events:none!important; z-index:0!important;
  opacity:0!important; transform:translate3d(-9px,-5px,0)!important;
  transition:opacity 840ms cubic-bezier(.19,.7,.26,1),transform 900ms cubic-bezier(.19,.7,.26,1)!important;
}
.home #cases.kos-cases-section::after {
  width:clamp(230px,29vw,410px)!important;
  height:clamp(138px,13vw,191px)!important;
  background:linear-gradient(130deg,rgba(179,107,68,.155),rgba(204,153,115,.09) 65%,rgba(227,193,166,.055))!important;
}
.home #service-finder.kgp-section.kp617-corner-visible::after,
.home #cases.kos-cases-section.kp617-corner-visible::after {
  opacity:1!important; transform:translate3d(0,0,0)!important;
}
/* Option B: single diagonal plane with an understated inside fold. */
body[data-kp618-variant="B"] #service-finder.kgp-section::after,
body[data-kp618-variant="B"] #cases.kos-cases-section::after {
  background:linear-gradient(134deg,rgba(177,118,64,.20) 0%,rgba(202,150,98,.14) 48%,rgba(255,252,247,.40) 48.5%,rgba(215,175,128,.10) 52%,rgba(224,188,146,.055) 100%)!important;
}
/* Option C: a single smooth, broader but still corner-limited gradient. */
body[data-kp618-variant="C"] #service-finder.kgp-section::after,
body[data-kp618-variant="C"] #cases.kos-cases-section::after {
  background:linear-gradient(128deg,rgba(184,116,63,.22),rgba(206,159,107,.095) 60%,rgba(228,193,160,.012) 100%)!important;
}
@media(max-width:700px) {
  .home #service-finder.kgp-section::after,
  .home #cases.kos-cases-section::after {
    width:clamp(190px,61vw,260px)!important;
    height:clamp(110px,33vw,145px)!important;
  }
  .home #cases.kos-cases-section::after {
    width:clamp(182px,57vw,247px)!important;
    height:clamp(105px,31vw,134px)!important;
  }
}

/* 02 WHAT WE DO — return to a stable, uncluttered cream surface.
   Both class states are intentionally identical, so no legacy rule can recolor it. */
.home #about.kp43-inversion-zone,
.home #about.kp43-inversion-zone.is-accented {
  background:#FFFCF7!important; background-color:#FFFCF7!important;
  background-image:none!important; transition:none!important; color:var(--kp618-ink)!important;
}
.home #about.kp43-inversion-zone::before,
.home #about.kp43-inversion-zone.is-accented::before {color:rgba(105,73,53,.018)!important;transform:none!important;transition:none!important;}
.home #about.kp43-inversion-zone::after,
.home #about.kp43-inversion-zone.is-accented::after {opacity:.25!important;transform:scaleX(.28)!important;transition:none!important;}
.home #about.kp43-inversion-zone .kp48-padlock,
.home #about.kp43-inversion-zone.is-accented .kp48-padlock {opacity:.045!important;transition:none!important;}

/* 03 TRAVEL and 04 FAQ share exactly the same before/after colors, timing, and text color.
   Unlike previous designs, this paints the section BACKGROUND, not an overlay above text. */
.home #travel-fees.kp60-travel,
.home #faq.kos-faq.kp53-faq-scene {
  background:var(--kp618-paper)!important; background-color:var(--kp618-paper)!important;
  background-image:none!important; color:var(--kp618-ink)!important;
  transition:background-color 840ms cubic-bezier(.21,.69,.27,1)!important;
}
.home #travel-fees.kp60-travel.is-accented,
.home #faq.kos-faq.kp53-faq-scene.is-accented {
  background:var(--kp618-scene)!important; background-color:var(--kp618-scene)!important;
  background-image:none!important;
}
/* Suppress old oversized right-side ornaments that make the fill look like a legibility overlay. */
.home #travel-fees.kp60-travel::before,
.home #faq.kos-faq.kp53-faq-scene::before,
.home #faq.kos-faq.kp53-faq-scene.is-accented::before {
  content:none!important; animation:none!important; transform:none!important;
}
.home #travel-fees.kp60-travel .kp60-shell,
.home #faq.kos-faq.kp53-faq-scene>.kos-shell { position:relative;z-index:1; }
/* High contrast independent of highlighted state. Avoid transparency-based text. */
.home #travel-fees.kp60-travel .kp60-heading h2,
.home #faq.kos-faq.kp53-faq-scene .kos-faq-lead h2,
.home #faq.kos-faq.kp53-faq-scene .kos-faq-item summary { color:#332C26!important; }
.home #travel-fees.kp60-travel .kp60-heading>p,
.home #travel-fees.kp60-travel .kp60-note,
.home #faq.kos-faq.kp53-faq-scene .kos-faq-lead>p:not(.kos-kicker),
.home #faq.kos-faq.kp53-faq-scene .kos-faq-answer {color:#584A3D!important; opacity:1!important;}
.home #travel-fees.kp60-travel .kp60-eyebrow,
.home #faq.kos-faq.kp53-faq-scene .kos-kicker,
.home #faq.kos-faq.kp53-faq-scene .kos-faq-q{color:#91502E!important;}
.home #travel-fees.kp60-travel .kp60-tier + .kp60-tier::before{background:linear-gradient(90deg,transparent,#D9CABC 10%,#D9CABC 90%,transparent)!important;}
.home #faq.kos-faq.kp53-faq-scene .kos-faq-item summary:hover{background:rgba(126,79,42,.035)!important;}
.home #faq.kos-faq.kp53-faq-scene .kos-faq-item[open]{background:rgba(255,255,255,.48)!important;}
@media(prefers-reduced-motion:reduce) {
  .home #service-finder.kgp-section::after,.home #cases.kos-cases-section::after{
    transition:none!important; transform:none!important;
  }
  .home #travel-fees.kp60-travel,.home #faq.kos-faq.kp53-faq-scene{transition:none!important;}
}
