/* =========================
  CF7 confirm modal
  ========================= */
.cf7-confirm[hidden]{
  display:none !important;
}

/* overlay wrapper */
.cf7-confirm{
  position: fixed;
  inset: 0;
  z-index: 10000; /* ヘッダー等より上に */
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

/* backdrop */
.cf7-confirm__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0 0 0 / 0.55);
}

/* panel */
.cf7-confirm__panel{
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100dvh - 48px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0 0 0 / 0.25);
  overflow: hidden; /* 角丸を保つ */
}

/* inner (scroll area) */
.cf7-confirm__inner{
  max-height: calc(100dvh - 48px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
}

/* mobile */
@media (max-width: 767px){
  .cf7-confirm{
    padding: 16px 12px;
  }
  .cf7-confirm__inner{
    padding: 18px 14px;
  }
}

/* optional: focus outline */
.cf7-confirm__inner:focus{
  outline: none;
}

/* optional: table spacing inside modal */
.cf7-confirm .u-table,
.cf7-confirm .u-table-type02{
  width: 100%;
}

  .line-up__list{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap:18px;
  }
  
  .line-up__list li{
    padding:14px;
    background: #ffffff;
  }
  
  .line-up__list-arrow{
    border-radius: 100px;
    padding: 10px 10px;
    border: 1px solid var(--color-main);
    line-height: 0;
    transition: 0.5s;
  }
  
  a:hover .line-up__list-arrow{
    background: var(--color-main);
  }
  
  a:hover .line-up__list-arrow * {
    fill: #ffffff;
  }
  
  .line-up__list-cont{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

.line-up__list-img{
  display: flex;
  aspect-ratio:320 / 240;
  height: auto;
  justify-content: center;
  align-items: center;
}

.line-up__list-del{
  width: 180px;
  letter-spacing: 0;
}

.standard_product_lineup .u-table th{
  text-align: left;
}

.btn-wrap-pt02 svg *{
  transition: 0.5s;
}

.btn-wrap-pt02:hover svg *{
  fill:#ffffff;
}

.standard_product_lineup__block{
  position: relative;
}

.standard_product_lineup__block:not(:last-child):after{
  content:" ";
  width: 100%;
  position: absolute;
  bottom:-40px;
  height: 1px;
  border: 1px dashed #D5D5D5;
}

  .module__title{
    display: flex;
    border-top:var(--color-main) solid 4px;
    align-items: center;
    gap:60px;
    letter-spacing: 0;
  }  
  
  .module__title-span{
    color:#ffffff;
    padding:12px 16px;
    background: var(--color-main);
    position: relative;
    display: block;
  }
  
  .module__title-span:after{
    content: " ";
    height: 102%;
    width: 60px;
    background: var(--color-main);
    position: absolute;
    right: -59px;
    top: -1px;
    clip-path: polygon(100% 0, 0 0, 0 100%);
  }
  
  .module__sencer-list{
    display: grid;
    gap:30px;
    grid-template-columns: repeat(3,1fr);
  }
  
  .module__sencer-item{
    border:var(--color-main) solid 1px;
    padding: 10px;
  }
  
  .module__h3{
    padding: 4px;
    background:#467DC6;
    color:#ffffff;
  }
  
  .module__sencer-item-cont{
    display: grid;
    gap:10px;
    grid-template-columns: repeat(2,1fr);
  }

  .module__pmic-cont{
    display: flex;
    gap:60px;
  }
  
  .module__pmic-list{
    display: grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    width: calc((100% - 120px) / 2);
  }

  .module__pmic-box{
    width: calc((100% - 120px) / 4);
  }
  
  .module__pmic-cont > *{
    position: relative;
  }
  
  .module__pmic-cont > *:not(:last-child):after{
    content: "";
  position: absolute;
  top: 50%;
  right: -50px;
  width: 24px;         /* 線の長さ */
  height: 24px;        /* 線の長さ */
  border-right: 6px solid #2b2621; /* 色：サンプルの黒っぽい色 */
  border-top: 6px solid #2b2621;
  transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 3px;
  }
  
  .module__pmic-box02{
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap:20px;
    border:1px solid var(--color-main);
  }
  
  .module__pmic-box02-inner{
    display: flex;
    align-items: center;
    border:1px solid var(--color-l-gray);
    gap:10px;
  }
  
  .module__pmic-box02-innertitle{
    height: 80px;
    padding: 10px;
    color:#ffffff;
    display: flex;
    align-items: center;
    background:#467DC6;
  }

  .module__hq-cont{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap:30px;
  }
  
  .module__hq-box{
    padding: 10px;
    border:1px solid #E3E3E3;
  }
  
  .module__hq-box .module__h3{
    display: inline-block;
    padding:3px 20px;
  } 
  
  .module__small-cont{
    display: grid;
    gap:30px;
    grid-template-columns: repeat(2,1fr);
  }
  
  .module__small-contbox{
    display: grid;
    gap:10px;
    grid-template-columns: repeat(2,1fr);
    padding: 10px;
    border:1px solid var(--color-main);
  }
  
  .module__small-conttext{
    padding:10px;
  }
  
  .module__small-conttext.pt02{
    display: flex;
    gap:10px;
  }
  
  .module__small-conttext.pt02 span{
    display: block;
    padding: 3px 10px;
    border:#1353AA 1px solid;
    color:#1353AA;
  }
  
  .module__small-contboxinner{
    margin-bottom: 8px;
  }
  
  .module__small-contbox_b h3{
    padding: 5px 10px;
  }

.page-link{
  gap:20px;
  display: flex;
  justify-content: center;
}

.list-wrap{
  align-items: flex-end;
}

.list-wrap .u-list li{
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.mb-0{
  margin-bottom: 0 !important;
}

.standard_product.pt02 .line-up__list{
  grid-template-columns: repeat(3,1fr);
  max-width: 960px;
  gap:30px;
}

.standard_product__ud-wrap{
  padding: 40px;
  border:1px solid var(--color-main);
  display: grid;
  gap:40px;
}

.standard_product__ud-wrap.pt01{
  grid-template-columns: repeat(2,1fr);
}

.standard_product__ud-wrap.pt02{
  display: flex;
  justify-content: center;  /* ← 列の塊を中央へ */
  gap:40px;
  flex-wrap: wrap;
}

.standard_product__ud-wrap.pt02 > div{
  width:340px;
}

.standard_product_lineup__box{
  display: grid;
  gap:20px;
  grid-template-columns: repeat(2,1fr);
}

.mb-10{
  margin-bottom: 10px;
}

.align-canter{
  align-items: center;
}

.sp-mb20{
  margin-bottom: 20px;
}

.u-table.pd10 td,
.u-table.pd10 th{
  padding:20px 10px;
  word-break: break-all;  
}

.standard_product_lineup .aco-content_dl{
  border:none;
}

.standard_product_lineup .standard_product_lineup__block:after{
  display: none;
}

.u-table.t-fixed{
  width: calc(100% - 20px);
  table-layout: fixed; /* ←これが肝 */
}

.custom_product__cont02{
  border:1px solid var(--color-main);
  padding: 40px;
}



.pkg-download-list{
  display: grid;
  grid-template-columns: repeat(5,1fr);
}

.pkg-download-list .btn-wrap-pt02{
  justify-content: space-between;
}




/* title-image */
.company .page-title{
    background-image: url("../images/otherpage/company__title.webp");
  }

.topics .page-title{
    background-image: url("../images/otherpage/topics__title.webp");
  }

.businesses .page-title{
    background-image: url("../images/otherpage/businesses__title.webp");
  }

.rectuit .page-title{
    background-image: url("../images/otherpage/recruit__title.webp");
  }

.document .page-title{
    background-image: url("../images/otherpage/contact__title.webp");
  }

.identity .page-title{
    background-image: url("../images/otherpage/identity__title.webp");
  }

.advantage .page-title{
    background-image: url("../images/otherpage/advantage__title.webp");
  }

.policy .page-title{
    background-image: url("../images/otherpage/policy__title.webp");
  }

.access .page-title{
    background-image: url("../images/otherpage/access__title.webp");
  padding:60px 0;
  }

.outline .page-title{
    background-image: url("../images/otherpage/outline__title.webp");
  }

.wafer_test .page-title{
    background-image: url("../images/otherpage/wafer__title.webp");
  }

.pkg .page-title{
    background-image: url("../images/otherpage/pkg__title.webp");
  }

.analysis .page-title{
    background-image: url("../images/otherpage/reliability_test__title.webp");
  }

.outsourcing .page-title{
    background-image: url("../images/otherpage/outsourcing__title.webp");
  }

.new_rec .page-title{
    background-image: url("../images/otherpage/new-rec__title.webp");
  }

.mid_rec .page-title{
    background-image: url("../images/otherpage/mid-rec__title.webp");
  }

.ems .page-title{
    background-image: url("../images/otherpage/ems__title.webp");
  }

.power_supply .page-title{
    background-image: url("../images/otherpage/power_supply__title.webp");
  }

.prototype .page-title{
    background-image: url("../images/otherpage/prototype_service__title.webp");
  }

.standard_model .page-title{
    background-image: url("../images/otherpage/standard_model__title.webp");
  }

.module .page-title{
    background-image: url("../images/otherpage/module__title.webp");
  }

.standard_product .page-title{
    background-image: url("../images/otherpage/standard_product__title.webp");
  }

.custom_product .page-title{
    background-image: url("../images/otherpage/custom_product__title.webp");
  }

.other-page .page-title{
    background-image: url("../images/otherpage/other__title.webp");
  }

  .embedded-system .page-title{
    background-image:url("../images/otherpage/embedded-system-title.webp");
  }

@media screen (max-width:1100px) and (min-width:768px){

  
}

@media screen and (min-width:1100px){
    .rectuit td{
    height: 80px;
  }
}

@media screen and (min-width:768px){
  .pc-ov{
    overflow: inherit !important;
  }
  
  .scroll-hint-icon-wrap{
    display: none !important;
  }
  
  .outsourcing-features__inner{
    max-width: 1180px !important;
  }
  
  .recruit__gallery{
    padding-left: 5%;
  }
  
}


/* あるいはターゲット要素側で個別に */
/* PC */
@media (min-width: 901px) {
  [id]{
    scroll-margin-top: 85px;
  }
}

/* SP */
@media (max-width: 900px) {
  [id]{
    scroll-margin-top: 64px;
  }
}

/* =========================
   Hover underline（PC only）
   - Mega menu + Footer menu
========================= */
@media (min-width: 1100px) {

  .mega__inner a{
    display:block;           /* 縦並び維持 */
    position:relative;
    width: fit-content;      /* テキスト幅に合わせる */
    max-width:100%;
  }
  .mega__inner a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-2px;
    width:100%;
    height:3px;
    background: var(--color-main);
    transform: scaleX(0);
    transform-origin:center top;
    transition: transform .2s ease;
  }
  .mega__inner a:hover::after{
    transform: scaleX(1);
  }

  /* フッターメニュー内リンク */
  .main-footer__nav-elm,
  .main-footer__nav-sub-elm{
    position: relative;
    display: inline-block; /* 下線をテキスト幅にする */
  }
  .main-footer__nav-elm::after,
  .main-footer__nav-sub-elm::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -1.5px;
    width: 100%;
    height: 2px;
    background: var(--color-main); /* フッターは背景が濃いので白に */
    transform: scaleX(0);
    transform-origin: center top;
    transition: transform .2s ease;
  }
  .main-footer__nav-elm:hover::after,
  .main-footer__nav-sub-elm:hover::after{
    transform: scaleX(1);
  }
}

.contact-message{
  margin-top: 20px;
  display: block;
}


/* =========================
  Recruit gallery (Flickity化)
  - 既存デザイン維持のため flickity-enabled 時のみ
========================= */
.scroll-wrap .scroll-content{
  /* Flickityのドラッグを自然にする（ネイティブスクロールは使わない） */
  overflow: hidden;
}

.recruit__gallery-list.flickity-enabled{
  margin: 0;
  padding: 0;
  list-style: none;
  /* ドラッグ時の誤選択防止 */
  user-select: none;
  -webkit-user-select: none;
}

.recruit__gallery-list.flickity-enabled .recruit__gallery-item{
  /* 余白感：nectar系の“カード間の間隔” */
  margin-right: 24px;

  /* だいたいの見え幅（必要なら数値だけ調整でOK） */
  width: 380px;
}

@media (max-width: 900px){
  .recruit__gallery-list.flickity-enabled .recruit__gallery-item{
    width: 78vw;
    margin-right: 16px;
  }
}

.recruit__gallery-list.flickity-enabled .recruit__gallery-item img{
  display: block;
  width: 100%;
  height: auto;
}

/* FlickityのUIは使わない（既存のスクロールバーUIを使うため） */
.recruit__gallery-list.flickity-enabled .flickity-prev-next-button,
.recruit__gallery-list.flickity-enabled .flickity-page-dots{
  display: none;
}

.flickity-viewport{
  width: 100%;
}

.out_link{
  display: inline-flex;
  gap:4px;
  text-decoration: underline;
  align-items: center;
}

.new_rec .btn-wrap-pt02,
.mid_rec .btn-wrap-pt02{
  margin-top: 20px;
}

.new_rec .page-link .btn-wrap-pt02,
.mid_rec .page-link .btn-wrap-pt02{
  width: 100%;
  max-width: 300px;
}

.businesses-list .font-20px-bold{
    font-size: 16px;
}

    .t-flex{
      display: flex;
      gap:40px;
    }

  .embedded-system-section01__points{
    display:flex;
    gap:0;
    margin-top: 32px;
    border-top:1px solid #E3E3E3;
    border-bottom:1px solid #E3E3E3;
  }
  .embedded-system-section01__points li{
    flex:1;
    text-align:center;
    padding: 18px 12px;
    position:relative;
  }
  .embedded-system-section01__points li + li::before{
    content:"";
    position:absolute;
    left:0;
    top: 50%;
    transform: translateY(-50%);
    width:1px;
    height:60%;
    background:#E3E3E3;
  }

  /* SECTION02：ABOUT レイアウト */
  .embedded-system-section02__grid{
    display:flex;
    gap: 40px;
    align-items:center;
  }
  .embedded-system-section02__text{ flex: 1; }
  .embedded-system-section02__img{ flex: 0 0 520px; }
  .embedded-system-section02__img img{ width:100%; height:auto; display:block; }

  /* SECTION03：フロー画像 */
  .embedded-system-section03__flow img{
    width:100%;
    height:auto;
    display:block;
    background:#fff;
  }

  /* SECTION04：技術表（配色・2段左カラム） */
  .embedded-system-tech-table .es-tech-head{
    color:#fff;
    text-align:center;
    letter-spacing: .02em;
  }
  .embedded-system-tech-table .es-tech-head--blank{
    background:#0F2F57;
  }
  .embedded-system-tech-table .es-tech-head--sw{
    background:#1C355A;
  }
  .embedded-system-tech-table .es-tech-head--hw{
    background:#B05A2A;
  }
  .embedded-system-tech-table .es-tech-group{
    background:var(--color-main);
    color:#fff;
    text-align:center;
    width: 160px;
    vertical-align: middle;
  }
  .embedded-system-tech-table .es-tech-label{
    background: var(--color-main);
    color:#fff;
    width: 220px;
    vertical-align: middle;
  }
  .embedded-system-tech-table td{
    background:#fff;
  }
    
      .embedded-system-tech-table th,
      .embedded-system-tech-table td{
    padding:15px;
  }
    
    .embedded-system-section07{
      padding-top: 0;
    }

  /* SECTION07：TOTAL SOLUTION */
  .embedded-system-section07__grid{
    display:flex;
    gap: 35px;
    align-items: center;
  }
  .embedded-system-section07__text{ flex: 1; }
  .embedded-system-section07__img{ flex: 0 0 510px; }
  .embedded-system-section07__img img{ width:100%; height:auto; display:block; }
  .embedded-system-section07__btn{
    width: 220px;
    justify-content: space-between;
    padding: 14px 22px;
  }

  .embedded-system-case-table th,
    .embedded-system-case-table td{
      padding: 20px;
    }

    
    .embedded-system-section07__btn{
      justify-content: center;
      gap:10px;
      margin-top: 15px;
    }
  /* 承継バナー */
  .embedded-system-section07__inherit{
    border: 1px solid var(--color-main);
    padding: 24px;
    margin-top: 80px;
  }

.businesses__intro-title.pt02{
  margin-top: 60px;
}

.is-en .businesses-intorolist .btn-wrap-pt01{
  display: grid;
  grid-template-columns: 1fr 45px;
}
@media screen and (max-width:1099px){
  .nav__item:last-child{
    margin-top: 15px;
  }
}
@media screen and (max-width:767px){
  .is-en .businesses-intorolist .btn-wrap-pt01{
  grid-template-columns: 1fr 30px;
}
}
@media screen and (max-width:767px){
  .is-en .businesses-intorolist .btn-wrap-pt01{
  grid-template-columns: 1fr 30px;
}
}
@media screen and (min-width:767px){
  .top-reason__title{
    padding-right: 570px;
  }
  
  .main-footer__nav{
    padding-right: 30px;
  }
  
  .is-en .cf-btn .btn-wrap-pt01__arrow{
    position: absolute;
    right: 0;
    top:30px;
  }
  
  .is-en .top-businesses-list .btn-wrap-pt01{
   display: grid;
    grid-template-columns: 1fr 45px;
    align-items: flex-start;
  }
  
  .is-en .outsourcing-catch__cont-list .font-14px-medium{
    display: grid;
  }
  
  .is-en .power_supply__new-product__btn-wrap {
    display: grid;
  }
  
  .is-en .prototype__list-tab-btn li {
    height: 85px;
    text-align: center;
  }
  
  .is-en .line-up__list li{
    position: relative;
  }
  
  .is-en .line-up__list-arrow{
    position: absolute;
    bottom:20px;
    right: 20px;
  }
}
.is-en .font-32px-bold,
.is-en .font-32px-bold * {
    line-height: 1.5;
}

.is-en .module__sencer-item{
  display: block;
}

.is-en .module__h3{
  margin-bottom: 10px;
}

/* CF7 anti-spam honeypot */
.cf7-hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

@media (max-width: 767px){
  .cf7-confirm__panel {
      padding: 0;
  }
}


/* ===== Generic modal UI for page-contact.php ===== */
.cf7-confirm__content h2{margin:0 0 12px;font-size:24px;line-height:1.4;}
.cf7-confirm__content p{margin:0 0 16px;}
.cf7-confirm__table{width:100%;border-collapse:collapse;margin:0 0 16px;}
.cf7-confirm__table th,.cf7-confirm__table td{border:1px solid #ddd;padding: 20px 10px;vertical-align:top;text-align:left;}
.cf7-confirm__table th{width:180px;background:#F9F4F9;}
.cf7-confirm__actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
.cf7-confirm__actions button{min-width:140px;padding:12px 18px;border:1px solid #333;background:#fff;cursor:pointer;}
.cf7-confirm__actions .js-confirm-send{background:var(--color-main);color:#fff;border-color:var(--color-main);}
@media (max-width:767px){.cf7-confirm__table th{width:110px;}.cf7-confirm__table .font-16px-bold,.cf7-confirm__table .font-16px-medium{font-size:12px;}}


/* real submit button is triggered from modal */
.js-real-submit{display:none !important;}
