@charset "utf-8";

/* top */
#top #sec-fv{padding: 0;z-index: 2;}
#top #sec-fv .swiper-container{overflow: visible;width:100%;height:100%;}
#top #sec-fv .swiper-wrapper{transition-timing-function: linear;}
#top #sec-fv .swiper-pagination{position: absolute;left:50%;transform: translate(-50%,0);z-index: 3;}
#top #sec-catch{background:url('../img/common/bg_box.png') no-repeat;background-position:top right calc(50% - 510px);z-index: 1;}
#top #sec-catch h2{margin:0 0 30px;font-size: 2.4rem;font-weight: bold;line-height: 1.4;}
#top #sec-catch h2 span{font-size: 4.8rem;color:var(--main-color);}

#top #sec-service{background: #ffa800;padding:20px 0 100px;position: relative;}
#top #sec-service::before {content: '';position: absolute;top: -120px;left: 0;background:#ffffff;transform: skewY(5deg);width:100%;height:295px;z-index: 0;}
#top #sec-service::after {content: '';position: absolute;bottom: 0;left: 0;border-bottom: 4vw solid #e9e9e9;border-left: 100vw solid transparent;}
#top #sec-service .flex{align-items: center;gap:40px;}

#top #sec-service .flex .text-area h2{font-size: 10.0rem;color:#909090;margin-bottom: 40px;}
#top #sec-service .flex .text-area h2::first-letter{color:#000;}
#top #sec-service .flex .text-area p{margin-bottom:40px;}

@keyframes zoomIn {
  0% {
    background-size: 60%;
  }
  100% {
    background-size: 100%;
  }
}
@keyframes slideLeft {
  100% {
    background-position: bottom -1px left 0;
  }
}
@keyframes fadeUp{
  from {
    opacity: 0;
  transform: translateY(50px);
  }

  to {
    opacity: 1;
  transform: translateY(0);
  }
}
@keyframes fadeUp_small{
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  30% {
    opacity: 0;
    transform: translateY(10px);
  }
  50% {
    opacity: 0.4;
    transform: translateY(6px);
  }
  65% {
    opacity: 0.6;
    transform: translateY(4px);
  }
  80% {
    opacity: 0.8;
    transform: translateY(2px);
  }
  100% {
    opacity: 1;
  transform: translateY(0);
  }
}

#top #sec-recruit{padding: 0 0 80px;text-align: center;}
#top #sec-recruit .recruit-title{padding:80px 0 40px;}
#top #sec-recruit .recruit-title .content{z-index: 2;}
#top #sec-recruit .recruit-title h2{font-size: 7.2rem;color:#909090;}
#top #sec-recruit .recruit-title h2::first-letter{color:#000;}
#top #sec-recruit .recruit-piece{position: absolute;bottom: -55px;left: 0;}
#top #sec-recruit .recruit-text{text-align: left;margin:60px auto 40px;}
#top #sec-recruit .recruit-text span{position: relative;background-size: contain;background-repeat: no-repeat;padding: 10px 0;}
#top #sec-recruit .recruit-text .recruit-line01{background-position: center;padding:15px 0px;}
#top #sec-recruit .recruit-text .recruit-line01.is-animated::after{content:"";width: 100%; height:100%;background-image:url("../img/top/recruit_line01.png");animation: fadeUp_small 0.7s ease-in-out forwards;position: absolute;top:0;left: 0;background-repeat: no-repeat;background-size: contain;}
#top #sec-recruit .recruit-text .recruit-line02{background-position: bottom -1px left -200px;}
#top #sec-recruit .recruit-text .recruit-line02.is-animated{background-image:url("../img/top/recruit_line02.png");animation: slideLeft 0.7s ease-in-out forwards; }
#top #sec-recruit .recruit-text .recruit-line03{background-position: bottom -1px left -220px;}
#top #sec-recruit .recruit-text .recruit-line03.is-animated{background-image:url("../img/top/recruit_line03.png");animation: slideLeft 0.7s ease-in-out forwards;}
#top #sec-recruit .recruit-link{opacity: 0;}
#top #sec-recruit .recruit-link.is-animated{animation: fadeUp 0.7s ease-in-out forwards;}
#top #sec-recruit .recruit-link img{margin-left: -90px;}

#top #sec-news{padding: 80px 0 0;}
#top #sec-news h2{font-size: 4.8rem;color:#909090;position: relative;line-height: 1;}
#top #sec-news h2::first-letter{color:#000;}
#top #sec-news h2::after{content:"";background:#909090;width:100%;height:1px;position: absolute;left:4px;bottom:8px;}
#top #sec-news .news-list{list-style: none;padding: 0;margin:0;}
#top #sec-news .news-list li{padding: 30px 0;border-bottom:1px solid #909090;}
#top #sec-news .news-list .news-titlearea .news-title{font-weight: bold;margin-bottom:20px;font-size: 1.8rem;}

@media only screen and (min-width:1050px){
  #top #sec-service .flex .text-area{width:43%;min-width: 445px;}
  #top #sec-service .flex > img{margin-right:-90px;}
}
@media only screen and (max-width:1049px){
  #top #sec-service .flex{display: block;}
  #top #sec-fv .content{padding: 0;}
  #top #sec-service .flex .text-area h2{font-size: 10.0rem;color:#909090;margin-bottom: 40px;}
  #top #sec-service .flex > img{display: none!important;}
  #top #sec-service .flex img.sp-only{display: block!important;margin: 0 auto 20px;}
}
@media only screen and (min-width:600px){
  #top #sec-news .news-list .news-titlearea{display: flex;align-items: flex-start;justify-content: flex-start;gap:30px;}
  #top #sec-service{background: linear-gradient(118deg, #ffa800 calc(50% + 300px), #000 calc(50% + 300px));}
  #top #sec-recruit .recruit-title{background:#e9e9e9;position: relative;}
  #top #sec-recruit .recruit-title::before{content: "";height:34px;width:100%;background:url("../img/top/recruit_bg_bottom.png");position: absolute;bottom: 0;left: 0;}
  #top #sec-recruit .recruit-title::after{content: "";height:100%;width:100%;background:url("../img/top/recruit_bg.png") no-repeat;position: absolute;bottom: 0;right: 0;background-position:calc(100% + 280px) bottom;}
  #top #sec-recruit .recruit-title h2{margin-left: -140px;}
}
@media only screen and (max-width:599px){
  #top #sec-catch{padding:60px 0 40px;}
  #top #sec-catch h2{font-size: 2.2rem;margin:0 0 20px;}
  #top #sec-catch h2 span{font-size: 2.8rem;}
  #top #sec-service{padding: 40px 0;}
  #top #sec-service::after {border-bottom: 4vw solid #fff;}
  #top #sec-service .flex .text-area h2{font-size: 4.8rem;margin-bottom: 20px;}
  #top #sec-recruit{padding: 0 0 40px;}
  #top #sec-recruit .recruit-title h2{font-size: 4.8rem;}
  #top #sec-recruit .recruit-piece{display: none;}
  #top #sec-recruit .recruit-text{margin: 20px auto;}
  #top #sec-recruit .recruit-link img{width:70%;margin-left:-16%;}
  #top #sec-news{padding: 40px 0 0;}
  #top #sec-news h2::after{bottom:4px;}

}

/* 会社案内 */
#company #main{}
#company #main::before{content: "";position: fixed;background:url('../img/common/bg_box.png') no-repeat;background-position: top 60px right 10%;width: 100%;height: 100vh;top:0;right:0;}
#company .company-text{padding:0 0 80px;border-bottom:1px solid #cccccc;margin-bottom: 80px;}
#company .company-text h3{font-weight: bold;padding: 0;margin: 0 0 40px;font-size: 1.8rem; }
#company .company-info h3{text-align: center;font-size: 3.0rem;font-weight: bold;margin:0 0 40px;padding: 0;}
#company .company-info table{width:100%;}
#company .company-info table tr{border-bottom:1px dotted #cccccc;}
#company .company-info table tr:last-of-type{border: none;}
#company .company-info table tr th{padding: 20px 20px 20px 0;text-align: left;width:20%;vertical-align:top;}
#company .company-info table tr td{padding: 20px 0;}
@media only screen and (max-width:599px){
  #company #main{background-position: top 0 right 10%;}
  #p-title h2{font-size: 4.5rem;}
  #company .company-text h3{margin-bottom: 20px;}
  #company .company-info h3{font-size:2.8rem; }
  #company .company-info table tr th{width: 28%;}
}

/* 代表挨拶 */
#message #main::before{content: "";position: fixed;background:url('../img/common/bg_box.png') no-repeat;background-position: top 60px right 10%;width: 100%;height: 100vh;top:0;right:0;}
#message .president-img{position: relative;padding-bottom: 40px;margin-bottom:80px;}
#message .president-name p{margin-bottom: 20px;font-size: 2.4rem;text-align: right;line-height: 1.6;letter-spacing: 0.4rem;}
#message .president-name img{display: block;margin:0 0 0 auto;}
@media only screen and (min-width:600px){
  #message .president-name{position: absolute;bottom:0;right:0;}
}
@media only screen and (max-width:599px){
  #message #main{background-position: top 0 right 10%;}
  #message .president-img{padding-bottom: 0;margin-bottom: 40px;}
  #message .president-name p{font-size: 1.6rem;margin-bottom: 10px;}
  #message .president-name img{width:50%;}
}

/* お問い合わせ */
#contact #p-title{text-align: center;}
#contact #p-title p{font-size: 1.4rem;}
#contact .contact-form{width:100%;margin:0 auto 30px;font-size: 1.4rem;}
#contact .contact-form tr{border-bottom: 1px solid #cccccc;line-height: 1.6;}
#contact .contact-form tr th{text-align: right;padding: 30px 30px 30px 0;width:35%;position: relative;vertical-align: top;}
#contact .contact-form tr th .require{color:#fff;font-weight: bold;background:#ff0000;font-size: 1.2rem;padding: 2px 15px;}
#contact .contact-form tr td{padding: 20px 0;}
#contact .contact-form tr td .form-textbox{padding: 0.375em 0.525em;background:#e6e6e6;border:1px dashed #9c9c9c;width: 80%;font-family:var(--font-family);}
#contact .contact-form tr td textarea{padding: 0.375em 0.525em;background:#e6e6e6;border:1px dashed #9c9c9c;width: 100%;height: calc(1.6em * 10);font-family:var(--font-family);}
#contact .privacy-box{background:#e6e6e6;text-align: center;padding:40px;width:100%;margin-bottom:50px;font-size: 1.4rem;}
#contact .privacy-box label {padding: 15px 0;display: flex;align-items: center;justify-content: center;cursor: pointer;}
#contact .privacy-box a{text-decoration: underline;}
#contact .privacy-box .privacy-input {margin: 0;width: 0;opacity: 0;}
#contact .privacy-box .privacy-input:checked + .privacy-inputbox::before {content: "";position: absolute;top: 0;left: 0;width: 100%;height: 100%; background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2hlY2siPjxwb2x5bGluZSBwb2ludHM9IjIwIDYgOSAxNyA0IDEyIj48L3BvbHlsaW5lPjwvc3ZnPg==") no-repeat center;background-size: contain;}
#contact .privacy-box .privacy-inputbox {position: relative;width: 20px;height: 20px;border: solid 1px #9a9a9a;background: #FFFFFF;}
#contact .privacy-box .privacy-label {margin-left: 12px;font-weight: bold;line-height: 1.4;}
#contact .send-btn{font-size: 1.8rem;font-weight: bold;background:#ffaa00;padding:20px 90px;border:none;text-decoration: none;font-family:inherit;display: block;margin: 0 auto;cursor: pointer;}
@media only screen and (min-width:600px){
  #contact .contact-form tr th .require{position: absolute;left: 0px;top:30px;}
}
@media only screen and (max-width:599px){
  #contact .privacy-box{padding: 20px;}
  #contact input,#contact textarea{ font-size:16px; } /*フォームのフォーカスOFF*/
  #contact .contact-form tr th{width:100%;display: block;text-align: left;padding: 20px 0 0;}
  #contact .contact-form tr th .require{font-size: 1.2rem;margin-right: 10px;}
  #contact .contact-form tr td{width:100%;display: block;padding: 10px 0 20px;}
  #contact .contact-form tr td .form-textbox{width: 100%;}
}

/* Defie 2026 homepage refresh: isolated styles */
.defie-scenes{position:relative;min-height:clamp(390px,57vw,660px);overflow:hidden;background:#132f4c;color:#fff}
.defie-scene{position:absolute;inset:0;background-position:center;background-size:cover;opacity:0;visibility:hidden;transition:opacity 1.1s ease,transform 6s linear;transform:scale(1);display:flex;align-items:center}
.defie-scene.is-active{opacity:1;visibility:visible;transform:scale(1.055);z-index:1}
.defie-scene-content{width:min(1100px,90%);margin:auto;position:relative;padding:65px 0 90px;text-shadow:0 2px 14px rgba(0,0,0,.5)}
.defie-scene-content h1{font-size:clamp(30px,4.3vw,58px);line-height:1.35;color:#fff;margin:12px 0 18px;font-weight:800}
.defie-scene-content p{font-size:clamp(16px,2vw,24px);line-height:1.8;color:#fff;max-width:850px}
.defie-scene-content .defie-scene-kicker{font-size:16px;letter-spacing:.12em}
.defie-scene-controls{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);z-index:3;display:flex;align-items:center;gap:12px}
.defie-scene-controls button{cursor:pointer;border:1px solid #fff;background:rgba(0,0,0,.3);color:white}
.defie-scene-dot{width:12px;height:12px;border-radius:50%;padding:0}
.defie-scene-dot.is-active{background:#fff}
.defie-scene-toggle{border-radius:24px;padding:5px 12px;font-size:13px}
.defie-service-overview{max-width:900px;margin:24px auto 40px;background:#fff;padding:24px 28px;border-radius:8px;color:#18334a}
.defie-service-overview h3{font-size:clamp(20px,2.5vw,28px);line-height:1.5;margin:0 0 12px}
.defie-service-overview p{font-size:16px;line-height:1.8;margin:0}
@media(max-width:599px){.defie-scenes{min-height:510px}.defie-scene-content{padding:50px 0 85px}.defie-scene-content h1{font-size:30px}.defie-service-overview{padding:20px 16px}}
@media(prefers-reduced-motion:reduce){.defie-scene{transition:none;transform:none!important}}

/* Defie-Test 2026: harbor main hero. Add to END of css/style.css */
.defie-main-hero{position:relative;isolation:isolate;min-height:clamp(590px,76vh,850px);display:flex;align-items:center;color:#fff;background:#17496c url('../img/top/defie_sasebo_hero.png') center center/cover no-repeat}
.defie-main-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(5,26,47,.83) 0%,rgba(5,26,47,.53) 52%,rgba(5,26,47,.16) 100%)}
.defie-main-hero__inner{width:min(1140px,90%);margin:auto;padding:70px 0 60px;text-shadow:0 2px 14px rgba(0,0,0,.45)}
.defie-main-hero__logo{display:block;width:clamp(135px,18vw,220px);height:auto;max-height:95px;object-fit:contain;object-position:left center;opacity:.94;margin:0 0 18px;filter:drop-shadow(0 2px 8px rgba(0,0,0,.45))}
.defie-main-hero__eyebrow{font-size:14px;letter-spacing:.12em;margin:0 0 14px;color:#fff}
.defie-main-hero h1{font-size:clamp(30px,4.1vw,55px);line-height:1.35;font-weight:800;color:#fff;margin:0 0 22px}
.defie-main-hero__language{font-size:clamp(22px,2.8vw,36px);font-weight:800;color:#fff;margin:0 0 12px}
.defie-main-hero__tagline{font-size:clamp(15px,1.7vw,20px);line-height:1.8;max-width:760px;color:#fff;margin:0 0 34px}
.defie-main-hero__services{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:36px}
.defie-main-hero__services a{display:flex;justify-content:center;align-items:center;min-height:82px;padding:16px 12px;border:1px solid rgba(255,255,255,.55);background:rgba(6,32,55,.66);border-radius:8px;color:#fff;text-align:center;font-size:clamp(13px,1.2vw,16px);font-weight:700;text-decoration:none;line-height:1.5;transition:background .2s}
.defie-main-hero__services a:hover,.defie-main-hero__services a:focus{background:rgba(6,32,55,.9);color:#fff}
@media(max-width:767px){.defie-main-hero{min-height:640px;background-position:60% center}.defie-main-hero__inner{padding:45px 0}.defie-main-hero__services{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.defie-main-hero__services a{min-height:72px;padding:10px 8px}.defie-main-hero h1{font-size:clamp(28px,7vw,38px)}}

/* Defie-Test: TOP hero layout refinement */
@media (min-width: 768px) {
  .defie-main-hero {
    min-height: 760px;
    align-items: stretch;
  }
}

.defie-main-hero::before {
  background: linear-gradient(
    180deg,
    rgba(4, 24, 48, .08) 0%,
    rgba(4, 24, 48, .12) 40%,
    rgba(4, 24, 48, .22) 100%
  );
}

.defie-main-hero__inner {
  width: min(1140px, 92%);
  margin: 0 auto;
  padding: 25px 0 42px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.defie-main-hero__logo {
  width: clamp(155px, 19vw, 230px);
  max-height: 125px;
  object-position: center;
  opacity: 1;
  margin: 0 auto 8px;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.25));
}

.defie-main-hero__eyebrow {
  font-size: 14px;
  margin: 0 0 12px;
}

.defie-main-hero__language {
  order: 0;
  font-size: clamp(26px, 3.1vw, 40px);
  font-weight: 800;
  margin: 0 0 12px;
}

.defie-main-hero h1 {
  font-size: clamp(28px, 3.3vw, 43px);
  line-height: 1.3;
  margin: 0 0 18px;
}

.defie-main-hero__tagline {
  max-width: 800px;
  margin: 0 auto 24px;
  font-size: clamp(14px, 1.5vw, 18px);
}

.defie-main-hero__services {
  width: 100%;
  margin-top: auto;
  gap: 10px;
}

.defie-main-hero__services a {
  min-height: 95px;
  background: linear-gradient(
    180deg,
    rgba(8, 92, 148, .90),
    rgba(3, 36, 77, .94)
  );
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
  font-size: clamp(13px, 1.15vw, 16px);
}

@media (max-width: 767px) {
  .defie-main-hero {
    min-height: 690px;
  }

  .defie-main-hero__inner {
    padding: 24px 0 30px;
  }

  .defie-main-hero__services {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .defie-main-hero__services a {
    min-height: 76px;
  }
}
/* Defie-Test SERVICE: four consistent cards, 2026-11-16 */
#service.defie-service-section .content{max-width:1100px;margin:0 auto}
#service .defie-service-cards{width:min(100%,960px);margin:22px auto 0;display:grid;grid-template-columns:1fr;gap:14px}
#service .defie-service-card{box-sizing:border-box;background:#f5f6f8;color:#17232d;border-radius:12px;padding:22px 26px;text-align:left;box-shadow:none}
#service .defie-service-card h3{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;font-size:clamp(17px,2vw,22px);line-height:1.45;font-weight:700;color:#152331;text-align:left}
#service .defie-service-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px;color:#0876d8;font-size:21px;font-weight:700}
#service .defie-service-number{font-size:16px;font-weight:700;white-space:nowrap}
#service .defie-service-card p{font-size:15px;line-height:1.85;margin:0 0 12px;color:#202c36;text-align:left}
#service .defie-service-card .defie-service-rate-label{font-size:13px;color:#606b75;margin:10px 0 7px}
#service .defie-service-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#service .defie-service-price-card{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:8px;padding:17px 10px 18px;background:#fff;border-radius:10px;text-align:center}
#service .defie-service-duration{font-size:13px;color:#66727d}
#service .defie-service-price-card strong{font-size:clamp(25px,3.3vw,35px);line-height:1.25;font-weight:800;color:#101c26;white-space:nowrap}
#service .defie-service-price-card strong span{font-size:15px;font-weight:600}
#service .defie-service-price-card .buy-button{margin:4px 0 0;display:block;width:auto}
#service .defie-service-price-card .buy-button a{display:inline-block;box-sizing:border-box;min-width:130px;padding:10px 18px;background:#2685d7;color:#fff;border-radius:8px;font-size:14px;text-decoration:none;line-height:1.5}
#service .defie-service-price-card .buy-button a:hover{background:#126db9}
#service .defie-service-card .defie-service-quote{font-weight:700;margin:12px 0 0}
#service .defie-service-card .defie-service-note{font-size:13px;margin:12px 0 0}
@media(max-width:600px){#service .defie-service-card{padding:18px 15px}#service .defie-service-prices{gap:8px}#service .defie-service-price-card{padding:14px 6px}#service .defie-service-price-card strong{font-size:25px}#service .defie-service-price-card .buy-button a{min-width:105px;padding:9px 10px}}


/* TOP-only conservative refinement: leaves all SERVICE/COMPANY styles intact. */
.defie-main-hero::before {
  background: linear-gradient(180deg,rgba(3,22,43,.03) 0%,rgba(3,22,43,.04) 44%,rgba(3,22,43,.19) 100%);
}
.defie-main-hero__inner {padding:30px 0 42px;text-shadow:0 2px 5px rgba(0,17,35,.78);}
.defie-main-hero__identity {display:flex;align-items:center;justify-content:center;gap:18px;margin-bottom:18px;flex-wrap:wrap;}
.defie-main-hero__logo-frame {background:#fff;padding:10px 16px;border-radius:5px;box-shadow:0 3px 14px rgba(0,0,0,.18);text-shadow:none;}
.defie-main-hero__logo {display:block;width:clamp(125px,14vw,180px);max-height:95px;margin:0;filter:none;opacity:1;object-fit:contain;}
.defie-main-hero__company {margin:0;font-size:clamp(14px,1.45vw,20px);font-weight:700;color:#fff;line-height:1.5;}
.defie-main-hero__company span {display:block;font-size:.8em;letter-spacing:.06em;}
.defie-main-hero__language {order:initial;font-size:clamp(30px,4.4vw,56px);line-height:1.2;margin:0 0 10px;color:#fff;}
.defie-main-hero__accent {width:190px;height:5px;border-radius:5px;background:#ffd04b;margin:0 auto 16px;box-shadow:0 1px 4px rgba(0,0,0,.2);}
.defie-main-hero h1 {font-size:clamp(19px,2.5vw,33px);line-height:1.5;margin:0 0 9px;max-width:920px;color:#fff;}
.defie-main-hero__english {font-size:clamp(16px,2vw,25px);font-weight:700;margin:0 0 2px;color:#fff;}
.defie-main-hero__tagline {font-size:clamp(12px,1.2vw,17px);line-height:1.6;margin:0 auto 24px;color:#fff;}
.defie-main-hero__services a {display:flex;flex-direction:column;gap:4px;min-height:94px;}
.defie-main-hero__services a small {font-size:clamp(10px,.9vw,13px);font-weight:500;line-height:1.3;}
@media(max-width:767px) {
  .defie-main-hero {min-height:670px;}
  .defie-main-hero__inner {padding:22px 0 26px;}
  .defie-main-hero__identity {gap:8px;margin-bottom:14px;}
  .defie-main-hero__logo-frame {padding:6px 10px;}
  .defie-main-hero__logo {width:125px;}
  .defie-main-hero__company {font-size:12px;}
  .defie-main-hero__language {font-size:clamp(26px,7vw,36px);}
  .defie-main-hero__accent {width:125px;height:4px;}
  .defie-main-hero h1 {font-size:clamp(18px,4.4vw,24px);}
  .defie-main-hero__english {font-size:16px;}
  .defie-main-hero__tagline {font-size:12px;}
  .defie-main-hero__services a {min-height:85px;padding:9px 5px;}
  .defie-main-hero__services a small {font-size:10px;}
}

/* TOP画面：会社名の文字サイズ調整 */
.defie-main-hero__company {
  font-size: clamp(18px, 1.9vw, 26px);
}

@media (max-width: 767px) {
  .defie-main-hero__company {
    font-size: 16px;
  }
}
    /* Defie-Test TOP approved update: only background and four service cards */
.defie-main-hero {
  background-image: url('../img/top/defie_sasebo_hero_logo.png');
}
@media (min-width: 768px) {
  .defie-main-hero__services {
    position: relative;
    top: 35px;
  }
}

/* Defie-Test TOP: preserve original background image proportions. */
.defie-main-hero {
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #07335d;
}
/* Give the cards more room without altering the underlying hero artwork. */
@media (min-width: 768px) {
  .defie-main-hero { min-height: clamp(760px, 58vw, 900px); }
  .defie-main-hero__services { top: 80px; }
  .defie-main-hero__inner { padding-bottom: 75px; }
}
@media (max-width: 767px) {
  .defie-main-hero { min-height: 750px; }
  .defie-main-hero__services { position: relative; top: 45px; }
  .defie-main-hero__inner { padding-bottom: 70px; }
}
/* Light navy contrast directly behind white text, not an opaque blue cloud. */
.defie-main-hero::before {
  background: radial-gradient(ellipse 46% 33% at 50% 43%,
    rgba(4, 37, 78, .25) 0%,
    rgba(4, 37, 78, .10) 65%,
    rgba(4, 37, 78, 0) 100%);
}
    /* Defie-Test / ABOUT US only: keep the original photo aspect ratio. */
#about .flex > img {
  display: block;
  width: min(38%, 420px);
  max-width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  align-self: center;
  flex: 0 1 auto;
}
#about .flex > .text-block {
  min-width: 0;
  flex: 1 1 0;
}
@media (max-width: 767px) {
  #about .flex {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  #about .flex > .text-block {
    width: 100%;
    max-width: 100%;
  }
  #about .flex > img {
    width: auto;
    max-width: min(100%, 420px);
    height: auto !important;
    margin: 24px auto 0;
  }
}

/* Defie-Test COMPANY only: align white table with SERVICE cards. */
#company .company-table {
  box-sizing: border-box;
  width: min(100%, 960px);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
#company .company-table table {
  width: 100%;
}

/* Defie-Test 2026-11-16: mobile slideshow image visibility only.
   Keep desktop, main hero, ABOUT US, SERVICE, COMPANY and CONTACT unchanged. */
@media only screen and (max-width: 767px) {
  .defie-scenes {
    height: calc(100vw * 0.565 + 235px);
    min-height: 0;
    max-height: none;
    background: #102f4d;
  }
  .defie-scene {
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #102f4d;
    align-items: flex-start;
  }
  .defie-scene-content {
    box-sizing: border-box;
    width: 92%;
    margin: calc(100vw * 0.565) auto 0;
    padding: 16px 0 58px;
    text-shadow: none;
  }
  .defie-scene-content h1 {
    font-size: clamp(21px, 5.6vw, 28px);
    line-height: 1.4;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
  }
  .defie-scene-content p {
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1.65;
    margin: 0;
  }
  .defie-scene-content .defie-scene-kicker {
    display: none;
  }
  .defie-scene-controls {
    bottom: 14px;
  }
  .defie-scene.is-active {
    transform: none;
  }
}

/* Defie-Test: clear visual boundary between approved TOP hero and slideshow. */
.defie-main-hero + .defie-scenes { border-top: 14px solid #fff; }
@media (max-width: 767px) { .defie-main-hero + .defie-scenes { border-top-width: 10px; } }


/* Defie-Test: COMPANY mobile layout only (JP / EN).
   Keep desktop and all other sections unchanged. */
@media only screen and (max-width: 599px) {
  #company #p-title h2 {
    font-size: clamp(2.6rem, 10vw, 3.8rem);
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: keep-all;
  }
  #company .company-table,
  #company .company-info {
    min-width: 0;
    max-width: 100%;
  }
  #company .company-table table,
  #company .company-info table {
    width: 100%;
    table-layout: auto;
  }
  #company .company-table table tr,
  #company .company-info table tr {
    display: block;
    border-bottom: 1px dotted #ccc;
    padding: 12px 0;
  }
  #company .company-table table tr th,
  #company .company-table table tr td,
  #company .company-info table tr th,
  #company .company-info table tr td {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    text-align: left;
    overflow-wrap: break-word;
    word-break: normal;
  }
  #company .company-table table tr th,
  #company .company-info table tr th {
    font-weight: 700;
    margin-bottom: 6px;
  }
}


/* Defie-Test: prevent the COMPANY heading from splitting on narrow screens.
   Only the COMPANY section heading is affected; tables and desktop stay unchanged. */
@media only screen and (max-width: 599px) {
  #company #p-title h2,
  #company #p-title h1,
  #company > h2,
  #company > .content > h2,
  #company .content > h2 {
    font-size: clamp(26px, 8vw, 36px) !important;
    line-height: 1.15;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
}
