/* Keyper大阪 Studio v3.6.17 — amber UX and legibility refinements.
   Loaded after palette; all changes intentionally scoped to requested areas. */

/* Header: remove telephone CTA on both breakpoints; keep navigation uncluttered. */
.kos-header .kos-header-call{display:none!important}
@media(min-width:901px){.kos-header-inner{gap:clamp(16px,2.2vw,35px)!important}.kos-header .kos-nav{gap:clamp(12px,1.6vw,24px)!important}}

/* Two real hero buttons in place of the telephone CTA. */
.home .kos-hero-v342 .kp617-hero-actions{display:flex!important;align-items:stretch;flex-wrap:nowrap;gap:12px!important;margin:0!important;width:100%;max-width:575px}
.home .kos-hero-v342 .kp617-hero-button{
  box-sizing:border-box;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  text-align:center;text-decoration:none;white-space:nowrap;border-radius:7px;
  padding:11px 14px;min-height:52px;font-size:13px;font-weight:850;line-height:1.4;
  transition:background-color .22s ease,border-color .22s ease,transform .22s ease;
}
.home .kos-hero-v342 .kp617-hero-button span{font-size:16px;font-weight:800}
.home .kos-hero-v342 .kp617-hero-button.kp617-primary{background:#a74925!important;border:1px solid #a74925!important;color:#fff!important;box-shadow:0 5px 12px #6235151b}
.home .kos-hero-v342 .kp617-hero-button.kp617-secondary{background:#fffaf2!important;border:1px solid #b88a6c!important;color:#693d2a!important;box-shadow:none}
.home .kos-hero-v342 .kp617-hero-button:hover{transform:translateY(-1px)}
.home .kos-hero-v342 .kp617-hero-button.kp617-primary:hover{background:#87391e!important}
.home .kos-hero-v342 .kp617-hero-button.kp617-secondary:hover{background:#f9e8d3!important}
.home .kos-hero-v342 .kp617-mobile-actions{display:none!important}
@media(min-width:701px) and (max-width:1120px){
 .home .kos-hero-v342 .kp617-hero-button{font-size:11.5px;padding:10px 9px;gap:4px;min-height:46px}
 .home .kos-hero-v342 .kp617-hero-actions{gap:7px!important}
}
@media(max-width:700px){
 .home .kos-hero-v342 .kp617-hero-actions{display:none!important}
 .home .kos-hero-v342 .kp617-mobile-actions{display:grid!important;grid-column:1/-1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px!important;width:100%;margin:14px 0 0!important;padding:0;min-width:0}
 .home .kos-hero-v342 .kp617-mobile-actions .kp617-hero-button{width:100%;min-width:0;min-height:47px;font-size:clamp(10.5px,3.1vw,13px);gap:4px;padding:8px 4px;letter-spacing:-.045em}
 .home .kos-hero-v342 .kp617-mobile-actions .kp617-hero-button span{font-size:13px}
}
@media(max-width:359px){.home .kos-hero-v342 .kp617-mobile-actions{gap:6px!important}.home .kos-hero-v342 .kp617-mobile-actions .kp617-hero-button{font-size:10.5px;letter-spacing:-.05em;padding-inline:2px}}

/* Travel section: no oversized outer box. Labels become real chips rather than comma-separated prose. */
.home .kp60-travel{background:#fffcf7!important;color:#332c26!important}
.home .kp60-travel::before{opacity:.55}
.home .kp60-heading{align-items:end}
.home .kp60-heading>p{color:#64574a!important}
.home .kp60-heading>p strong{color:#49392e!important}
.home .kp60-board{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;margin:0!important}
.home .kp60-board::before{content:none!important}
.home .kp60-tier,
.home .kp60-tier:nth-child(2){background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-width:0;gap:18px;padding:18px 2px;grid-template-columns:minmax(0,220px) minmax(0,180px) minmax(0,1fr)}
.home .kp60-tier:hover{background:transparent!important}
.home .kp60-tier+.kp60-tier::before{background:#e6d9ca!important;height:1px;left:0;right:0}
.home .kp60-distance{display:flex;flex-wrap:nowrap;align-items:baseline;gap:5px;min-width:0}
.home .kp60-distance strong{font-size:clamp(27px,2.7vw,36px);letter-spacing:-.055em;color:#332c26!important;white-space:nowrap}
.home .kp60-distance .kp60-index{margin-right:9px;color:#9f755a!important;align-self:center}
.home .kp60-range-text{color:#63574b!important}
.home .kp60-price{display:flex;flex-direction:row;align-items:baseline;gap:10px;min-width:0;background:transparent!important;padding:0!important}
.home .kp60-price strong{color:#a74925!important;white-space:nowrap}
.home .kp60-price.kp60-free strong{color:#2b7058!important}
.home .kp60-price>span{color:#776656!important}
.home .kp60-regions{display:flex;align-items:center;gap:10px;min-width:0}
.home .kp60-region-label{display:inline!important;font-size:11px;color:#746253!important}
.home .kp60-places{display:flex;flex-wrap:wrap;gap:6px!important;min-width:0}
.home .kp60-places>span{display:inline-flex!important;align-items:center;background:#f9efe3!important;color:#503e31!important;border:1px solid #e5d3bd!important;border-radius:100px;padding:4px 10px;line-height:1.35;font-size:11px;font-weight:750;white-space:nowrap}
.home .kp60-places>span+span::before{content:none!important}
.home .kp617-travel-foot{display:flex;gap:22px;align-items:center;justify-content:flex-start;border-top:1px solid #e6d9ca;padding:17px 2px 0;margin-top:0}
.home .kp617-travel-foot .kp60-map{background:#a74925!important;color:#fff!important;min-height:42px;padding:10px 15px;border-radius:6px;font-size:12px;flex:0 0 auto;line-height:1.35}
.home .kp617-travel-foot .kp60-map:hover{background:#87391e!important}
.home .kp617-travel-foot .kp60-note{margin:0!important;padding:0!important;max-width:none;min-width:0;flex:1;font-size:11px;line-height:1.65;color:#66594e!important}
@media(max-width:980px){
 .home .kp60-tier,.home .kp60-tier:nth-child(2){grid-template-columns:minmax(0,155px) minmax(0,137px) minmax(0,1fr);gap:12px}
 .home .kp60-distance .kp60-index{margin-right:3px}
 .home .kp60-distance strong{font-size:27px}
 .home .kp60-price strong{font-size:25px}
 .home .kp60-region-label{display:none!important}
 .home .kp60-places>span{font-size:10px;padding:3px 8px}
}
@media(max-width:620px){
 .home .kp60-shell{width:calc(100% - 22px)!important;max-width:none}
 .home .kp60-heading{margin-bottom:10px}
 .home .kp60-heading>p{margin-top:8px;line-height:1.65;font-size:11px}
 .home .kp60-tier,.home .kp60-tier:nth-child(2){
  display:grid;grid-template-columns:minmax(0,51%) minmax(0,49%);column-gap:0;row-gap:9px;
  padding:15px 4px;align-items:center;min-height:0;
 }
 .home .kp60-distance{grid-column:1;grid-row:1;align-items:baseline;gap:5px;display:flex;flex-wrap:nowrap}
 .home .kp60-distance .kp60-index{display:none}
 .home .kp60-distance strong{display:inline;font-size:clamp(23px,6.5vw,31px);line-height:1.28;white-space:nowrap}
 .home .kp60-range-text{display:inline!important;font-size:clamp(10px,2.8vw,12px);margin:0}
 .home .kp60-price{grid-column:2;grid-row:1;justify-content:flex-end;align-items:baseline;flex-direction:row;gap:6px;padding:0 0 0 4px!important}
 .home .kp60-price>span{font-size:10px;line-height:1.3;white-space:nowrap}
 .home .kp60-price strong{font-size:clamp(20px,5.65vw,27px);line-height:1.25;white-space:nowrap}
 .home .kp60-regions{grid-column:1/-1;grid-row:2;display:flex;align-items:center;gap:8px}
 .home .kp60-region-label{display:inline!important;font-size:10px;flex:none}
 .home .kp60-places{gap:5px!important}
 .home .kp60-places>span{font-size:10px;line-height:1.35;padding:4px 8px}
 .home .kp617-travel-foot{gap:10px;padding:13px 4px 0;align-items:flex-start}
 .home .kp617-travel-foot .kp60-map{min-height:38px;padding:8px 9px;font-size:10px;white-space:normal;max-width:145px;text-align:center;gap:4px}
 .home .kp617-travel-foot .kp60-note{font-size:9px;line-height:1.55}
}
@media(max-width:359px){
 .home .kp60-shell{width:calc(100% - 18px)!important}
 .home .kp60-distance strong{font-size:22px}
 .home .kp60-price strong{font-size:20px}
 .home .kp60-price>span{font-size:9px}
 .home .kp60-places>span{font-size:9.5px;padding:3px 7px}
 .home .kp617-travel-foot{flex-wrap:wrap;gap:6px}
 .home .kp617-travel-foot .kp60-map{max-width:none;width:auto;flex:none;white-space:nowrap}
 .home .kp617-travel-foot .kp60-note{flex-basis:100%;font-size:9.5px}
}

/* CONTACT in the chosen amber palette: dark-on-light secondary line/link. */
.home .kos-final .kos-final-inner>div:first-child>p:not(.kos-kicker){color:#5c493c!important;max-width:560px;line-height:1.8}
.home .kos-final .kos-contact-secondary,
.home .kos-final .kos-final-cta .kos-contact-secondary{color:#5c493c!important;opacity:1!important;font-size:12px;line-height:1.65}
.home .kos-final .kos-final-cta .kos-contact-secondary a{color:#73341b!important;font-weight:900;text-decoration:underline;text-underline-offset:3px;opacity:1!important}
.home .kos-final .kos-final-cta .kos-contact-secondary a:hover{color:#a74925!important}
@media(max-width:620px){
 .home .kos-final .kos-final-cta{display:flex!important;flex-direction:column;align-items:stretch;max-width:390px;margin-top:20px}
 .home .kos-final .kos-final-cta .kos-btn-phone{min-height:45px}
 .home .kos-final .kos-final-cta .kos-contact-secondary{font-size:11px}
}

/* Section corner inlay, only while the relevant section is in view. Not a background color change. */
.home #service-finder.kgp-section,
.home #cases.kos-cases-section{position:relative!important;isolation:isolate;overflow:hidden}
.home #service-finder.kgp-section>.kos-shell,
.home #cases.kos-cases-section>.kos-shell{position:relative;z-index:1}
.home #service-finder.kgp-section::after,
.home #cases.kos-cases-section::after{
 content:"";position:absolute;left:-12px;top:-11px;width:clamp(155px,21vw,300px);height:clamp(115px,16vw,205px);
 background:
  radial-gradient(circle at 3px 3px,transparent 61px,rgba(166,114,66,.17) 62px,rgba(166,114,66,.17) 63px,transparent 64px),
  radial-gradient(circle at 3px 3px,transparent 89px,rgba(166,114,66,.13) 90px,rgba(166,114,66,.13) 91px,transparent 92px),
  linear-gradient(132deg,transparent 34%,rgba(183,143,91,.075) 34.4%,transparent 34.9%,transparent 58%,rgba(183,143,91,.06) 58.4%,transparent 58.8%);
 pointer-events:none;z-index:0;opacity:0;transform:translate3d(-6px,-4px,0);
 transition:opacity .9s ease,transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.home #cases.kos-cases-section::after{filter:saturate(.7);opacity:0}
.home #service-finder.kgp-section.kp617-corner-visible::after,
.home #cases.kos-cases-section.kp617-corner-visible::after{opacity:.72;transform:none}
@media(max-width:620px){
 .home #service-finder.kgp-section::after,.home #cases.kos-cases-section::after{left:-26px;top:-12px;width:170px;height:124px}
 .home #service-finder.kgp-section.kp617-corner-visible::after,.home #cases.kos-cases-section.kp617-corner-visible::after{opacity:.45}
}
@media(prefers-reduced-motion:reduce){
 .home .kp617-hero-button{transition:none!important;transform:none!important}
 .home #service-finder.kgp-section::after,.home #cases.kos-cases-section::after{transition:none!important;transform:none!important}
}
/* Keep the large decorative KEYPER lettering BEHIND the new buttons. */
.home .kos-hero-v342 .kp617-hero-actions,
.home .kos-hero-v342 .kp617-mobile-actions{position:relative;z-index:7!important;isolation:isolate}
.home .kos-hero-v342 .kp617-hero-actions .kp617-hero-button,
.home .kos-hero-v342 .kp617-mobile-actions .kp617-hero-button{position:relative;z-index:1}
