/* KOTOYA responsive improvement, additive to the original theme. 2026-11 */
:root{--kotoya-red:#bc4746;--kotoya-dark:#362e2c;--kotoya-paper:#fbf6f2;--kotoya-line:#eaded7}
html{scroll-behavior:smooth;scroll-padding-top:95px}
*,*::before,*::after{box-sizing:border-box}
body{font-size:16px;line-height:1.75;color:var(--kotoya-dark);overflow-wrap:anywhere;-webkit-font-smoothing:antialiased}
p{line-height:1.8}
a:focus-visible,button:focus-visible{outline:3px solid #2b6b89;outline-offset:4px}
img,video,iframe{max-width:100%}img{height:auto}
.container{max-width:1160px;padding-inline:clamp(20px,4vw,56px)}
#mainNav{height:78px;position:sticky;top:0;background:rgba(249,241,237,.96);box-shadow:0 2px 18px rgba(45,20,20,.05);backdrop-filter:blur(12px)}
#mainNav.is-fixed{position:sticky;transition:none}
.mainNav__inner{padding:0 clamp(20px,3vw,52px);height:100%;gap:16px}
.header-logo{padding:0;width:132px;flex-shrink:0}
.header-logo img{width:100%;height:auto;max-height:54px;object-fit:contain}
#navbarResponsive{width:auto;flex:1;max-width:760px}
.navbar-nav{max-width:760px;gap:4px}
.navbar-nav .nav-item{width:auto;flex:1;min-width:0}
#mainNav .navbar-nav>li.nav-item>*{font-size:clamp(12px,1vw,15px);padding:12px 9px;line-height:1.4}
#mainNav .navbar-nav>li.nav-item>a:hover{color:var(--kotoya-red)}
.top-view.top{height:clamp(420px,61vw,740px);background-size:clamp(270px,38vw,560px);background-color:var(--kotoya-paper)}
.site-heading{height:100%;margin-top:0}
.top-view.top h1{width:min(76%,780px);max-width:90%;filter:drop-shadow(0 12px 18px rgba(80,30,30,.06))}
.top-view.top h1 img{width:100%;height:auto}
.p-second-view{padding:clamp(65px,8vw,110px) 0}
.p-second-view .__head{height:auto;min-height:220px;margin-bottom:clamp(32px,5vw,65px);align-items:center;gap:5%}
.p-second-view .__head li{width:48%;height:auto}
.p-second-view .__head li img{height:auto;max-height:340px}
.p-second-view .__body{font-size:clamp(17px,2vw,22px);line-height:2;letter-spacing:.07em;margin-bottom:clamp(38px,6vw,76px);max-width:850px}
.p-second-view .__foot{margin:0;gap:clamp(12px,2vw,24px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.p-second-view .__foot li{width:auto;padding:0;min-width:0}
.p-second-view .__foot li a{height:100%;display:flex;flex-direction:column;text-decoration:none;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 7px 25px rgba(60,24,16,.07);transition:transform .3s ease,box-shadow .3s ease}
.p-second-view .__foot li a:hover{transform:translateY(-7px);box-shadow:0 17px 32px rgba(60,24,16,.14)}
.p-second-view .__foot li h3{min-height:72px;display:flex;align-items:center;justify-content:center;padding:14px;background:#fff}
.p-second-view .__foot li h3 img{max-height:40px;max-width:100%;object-fit:contain}
.p-second-view .__foot li .__thumbnail{width:100%;height:clamp(110px,13vw,170px);object-fit:cover;margin:0}
.p-second-view .__foot li p{font-size:clamp(13px,1.3vw,17px);letter-spacing:.04em;padding:15px 9px;margin-top:auto;line-height:1.5;border-bottom:0}
.p-service section{margin-top:clamp(72px,9vw,120px);scroll-margin-top:100px}
.p-service h2{margin-bottom:clamp(34px,5vw,70px)}
.c-ttl__01{font-size:clamp(22px,3vw,32px);letter-spacing:.12em;line-height:1.5;padding:30px 170px 30px 150px;min-height:118px;display:flex;align-items:center}
.c-ttl__01::before{width:116px}
.c-ttl__01::after{width:130px}
.c-ttl__02{font-size:clamp(17px,2.2vw,23px);width:fit-content;min-width:min(450px,100%);max-width:100%;line-height:1.5;letter-spacing:.1em;padding:13px 22px}
.c-ttl__03{font-size:clamp(17px,1.8vw,21px);line-height:1.5;letter-spacing:.06em;padding:6px 0 6px 18px}
.c-description__02{font-size:clamp(14px,1.6vw,17px);letter-spacing:.04em;line-height:1.9}
.c-description__03{font-size:15px;line-height:1.9;letter-spacing:.025em}
.p-service__parts>li{margin-bottom:clamp(46px,6vw,82px)}
.p-service__parts li,.p-service__parts h3,.p-service__parts p{margin-bottom:20px}
.p-service__contents{margin:0;gap:clamp(22px,3vw,36px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.p-service__contents>li{width:auto;min-width:0;padding:0}
.p-service__contents>li.__video,.p-service__contents>li.__site{width:auto;grid-column:1/-1}
.p-service__contents li .__image{height:auto;min-height:0;margin:0 0 16px;gap:10px;align-items:start;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.p-service__contents li .__image>a,.p-service__contents li .__image>div{width:auto;height:auto;padding:0;overflow:hidden;border-radius:8px;display:block;aspect-ratio:4/3;background:#f3ece6}
.p-service__contents li .__image img{width:100%;height:100%;object-fit:cover;margin:0;display:block;transition:transform .6s ease}
.p-service__contents li .__image a:hover img{transform:scale(1.055)}
.p-service__contents li .__image.__one{height:auto;grid-template-columns:minmax(0,1fr);max-width:640px}
.p-service__contents li .__image.__one>a,.p-service__contents li .__image.__one>div{aspect-ratio:16/10}
.p-service__contents li .__image img.__contain{object-fit:contain;background:white}
.p-service__contents li.__site .__link>img,.slider img,.slider video{height:auto;aspect-ratio:16/9;object-fit:cover}
.kotoya-travel-vertical{grid-template-columns:minmax(0,1fr);max-width:900px}
.p-service__contents.kotoya-travel-vertical>li{width:100%;padding:0}
.p-service__contents.kotoya-travel-vertical>li+li{margin-top:30px;padding-top:42px;border-top:1px solid var(--kotoya-line)}
.kotoya-travel-vertical .__image{max-width:840px}
.kotoya-travel-vertical .__image.__one{max-width:580px}
.kotoya-video-embed{position:relative;aspect-ratio:16/9;max-width:760px;width:100%;overflow:hidden;border-radius:9px;background:#1d1b1a;margin:18px 0 20px}
.kotoya-video-embed iframe{display:block;width:100%;height:100%;border:0}
.kotoya-website-link{margin:20px 0 0}
.kotoya-website-link a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;max-width:100%;padding:12px 24px;border:1.5px solid var(--kotoya-red);border-radius:5px;background:var(--kotoya-red);color:white;font-size:15px;font-weight:600;line-height:1.5;text-decoration:none;transition:background .2s ease,transform .2s ease}
.kotoya-website-link a:hover{background:#973b3a;color:#fff;transform:translateY(-2px)}
.p-corpinfo{padding:clamp(65px,8vw,110px) 0}
.c-players{gap:28px;margin:0}
.c-players li{width:calc((100% - 56px)/3);padding:0;min-width:0}
.c-players li img{display:block;width:100%;max-width:350px;min-width:0;height:auto;aspect-ratio:auto;object-fit:contain;border-radius:8px}
.c-players li .__description{margin:14px 0;line-height:1.85}
.c-company{margin-left:0;gap:0;letter-spacing:.02em;font-size:15px}
.c-company dt,.c-company dd{line-height:1.8;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.32)}
.c-company dt{width:30%;font-weight:700}
.c-company dd{width:70%}
/* Reveal only when JS is active and intersection observer supported */
.kotoya-motion .kotoya-reveal{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.kotoya-motion .kotoya-reveal.is-visible{opacity:1;transform:none}
@media(max-width:1023px){
 #mainNav{height:68px}#mainNav .mainNav__inner{padding:0 24px}.header-logo{width:110px}
 #navbarResponsive{position:absolute;top:68px;right:0;width:min(360px,100vw);height:auto;max-height:calc(100dvh - 68px);overflow-y:auto;margin:0;background:var(--kotoya-paper);box-shadow:0 12px 24px rgba(0,0,0,.12);display:none;opacity:1;transition:none}
 #navbarResponsive.is-active{display:block;right:0;opacity:1}
 .navbar-nav{display:flex;flex-direction:column;gap:0;height:auto;align-items:stretch}
 .navbar-nav .nav-item{width:100%;height:auto;min-height:54px;flex:auto;border-bottom:1px solid #e9ddd7}
 #mainNav .navbar-nav>li.nav-item>*{font-size:15px;min-height:54px;justify-content:flex-start;padding:14px 24px}
 .hamburger-menu{display:flex;flex-direction:column;justify-content:center;width:44px;height:44px;gap:5px;padding:8px;border:0;background:transparent;cursor:pointer}
 .hamburger-menu>span{height:2px;display:block;width:100%;position:static;transition:transform .25s,opacity .25s}
 #btn03.is-active{transform:none}#btn03.is-active span:nth-of-type(1){transform:translateY(7px) rotate(45deg)}#btn03.is-active span:nth-of-type(2){opacity:0;transform:none}#btn03.is-active span:nth-of-type(3){transform:translateY(-7px) rotate(-45deg)}
 .site-heading{margin-top:0;height:100%}
 .p-second-view .__foot{grid-template-columns:repeat(2,minmax(0,1fr))}
 .c-ttl__01{padding:25px 100px 25px 104px;min-height:105px;letter-spacing:.06em}
 .c-ttl__01::before{width:88px}.c-ttl__01::after{width:90px;height:100%;top:50%;bottom:auto;transform:translateY(-50%)}
 .c-players li{width:calc((100% - 28px)/2)}
}
@media(max-width:768px){
 .container{min-width:0;max-width:100%;padding-inline:20px}
 .top-view.top{height:clamp(300px,85vw,470px);background-size:65%}.top-view.top h1{width:86%}
 .p-second-view{padding:60px 0}.p-second-view .__head{gap:14px;min-height:0;margin-bottom:30px;flex-direction:column;align-items:stretch}
 .p-second-view .__head li,.p-second-view .__head li:nth-of-type(1),.p-second-view .__head li:nth-of-type(2){width:100%;height:auto;margin:0;opacity:1}
 .p-second-view .__head li img{max-height:180px;object-position:left}
 .p-second-view .__body{font-size:16px;line-height:2;letter-spacing:.02em;margin-bottom:36px}
 .p-second-view .__body br{display:none}
 .p-second-view .__foot{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .p-second-view .__foot li h3{min-height:56px;padding:9px}
 .p-second-view .__foot li .__thumbnail{height:auto;aspect-ratio:4/3;object-fit:cover}
 .p-second-view .__foot li p{font-size:13px;letter-spacing:0;padding:11px 5px}
 .p-service section{margin-top:68px}.p-service h2{margin-bottom:34px}
 .c-ttl__01{font-size:20px;line-height:1.55;min-height:88px;padding:22px 70px 22px 68px;border-radius:0 12px 0 0;letter-spacing:.04em}
 .c-ttl__01::before{width:55px}.c-ttl__01::after{width:64px}
 .c-ttl__02{font-size:17px;line-height:1.55;padding:12px 18px;min-width:0;width:100%;border-radius:0 18px 18px 0}
 .c-ttl__03{font-size:17px;letter-spacing:.015em;border-left-width:5px;padding:7px 0 7px 12px}
 .p-service__contents{grid-template-columns:minmax(0,1fr);gap:32px}
 .p-service__contents li,.p-service__contents>li{width:100%;padding:0}
 .p-service__contents li .__image{height:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .p-service__contents li .__image>a,.p-service__contents li .__image>div{aspect-ratio:4/3}
 .p-service__contents li .__image.__one>a,.p-service__contents li .__image.__one>div{aspect-ratio:16/10}
 .p-service__contents.kotoya-travel-vertical>li+li{margin-top:16px;padding-top:34px}
 .c-description__02,.c-description__03{font-size:14px;line-height:1.9;letter-spacing:.02em}
 .slider img,.slider video{height:auto;aspect-ratio:16/10}
 .p-corpinfo{padding:65px 0}.c-players{gap:38px}.c-players li{width:100%;text-align:left}.c-players li img{height:auto;width:min(100%,340px);min-width:0}
 .c-ttl__05{font-size:23px;line-height:1.4;letter-spacing:.08em}
 .c-company{font-size:14px}.c-company dt,.c-company dd{width:100%;text-align:left;padding:7px 4px}.c-company dt{padding-top:18px;border-bottom:0}.c-company dd{padding-bottom:17px}
}
@media(max-width:380px){.c-ttl__01{padding-right:28px;font-size:19px}.c-ttl__01::after{opacity:.3}.p-second-view .__foot{gap:9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.kotoya-motion .kotoya-reveal{opacity:1;transform:none}}

/* 2026-11 CONTACT navigation visibility and uncropped portraits */
#mainNav .navbar-nav{max-width:none;width:100%;min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:clamp(2px,.6vw,10px)}
#mainNav .navbar-nav>.nav-item{width:auto;min-width:0;flex:0 1 auto;white-space:nowrap}
#mainNav .navbar-nav>.nav-item>a{width:auto;padding-inline:clamp(8px,1.1vw,18px)}
#mainNav .navbar-nav>.nav-item.__accent{flex-shrink:0}
#mainNav .navbar-nav>.nav-item.__accent>a{color:#fff;background-color:#c2544e;padding-inline:clamp(13px,1.5vw,24px)}
#mainNav .navbar-nav>.nav-item.__accent>a:hover{background-color:#a63e39;color:white}
#navbarResponsive{max-width:none;min-width:0}
.c-players li img{width:100%;max-width:350px;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center;border-radius:8px}
@media(max-width:1023px){
 #mainNav .navbar-nav{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0}
 #mainNav .navbar-nav>.nav-item{width:100%;min-height:54px;white-space:normal}
 #mainNav .navbar-nav>.nav-item>a{width:100%;min-height:54px;padding:14px 24px}
 #mainNav .navbar-nav>.nav-item.__accent>a{padding:14px 24px}
}
