@charset "utf-8";

@import "base.css";
@import "common.css";

/* top
---------------------------------------------------*/
#kv {
  position: relative;
}

#kv picture img{
    max-width: inherit;
    width: 100%;
}

#kv .inner {
  position: relative;
  margin: 0 100px;
  z-index: 10;
}

#kv .en_copy img{
  position: absolute;
  left: 0;
  top: calc(132vw / 12.8);
  width: calc(140vw / 12.8);
}

#kv h1 img{
  position: absolute;
  left: 0;
  top: calc(313vw / 12.8);
  width: calc(448vw / 12.8);
}

#kv .productBtn{
    position: absolute;
    right: 0;
    top: calc(535vw / 12.8);
}

#kv .productBtn a{
    position: relative;
    border: 2px solid #dc186e;
    background: #dc186e;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0;
    padding: 7px 18px 9px 65px;
}

#kv .productBtn a::before,
#kv .productBtn a::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease; /* ここでふわっとさせる */
}

#kv .productBtn a::before {
    background-image: url(../img/top/kv_logo_act_white.svg);
    opacity: 1;
}

#kv .productBtn a::after {
    background-image: url(../img/top/kv_logo_act.svg);
    opacity: 0; /* 最初は隠しておく */
}

#kv .productBtn a:hover {
    background: #fff;
    color: #dc186e;
}

#kv .productBtn a:hover::before {
    opacity: 0;
}

#kv .productBtn a:hover::after {
    opacity: 1;
}

/* --- 共通設定（数値・位置は完全維持） --- */
.jump-shifter {
  position: absolute;
  width: calc(174.5vw / 12.8);
  transform-origin: bottom center;
  margin-right: -100px;    
}

.jump-shifter .pin,
.jump-shifter .fukidashi {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: block;
}

.jump-shifter .pin {
  width: calc(45.5vw / 12.8);
  z-index: 1;
  opacity: 1;
}

/* ★ここが解決策：クラスが外れた（待機状態に戻った）瞬間に、このアニメーションを1回だけ走らせる */
.jump-shifter:not(.is-active) .pin {
  animation: pin-resurrection 0.8s ease-out forwards;
}

.jump-shifter .fukidashi {
  width: 100%;
  z-index: 2;
  opacity: 0;
  transform-origin: bottom center;
  pointer-events: none;
}

/* =========================================
   アニメーション実行時
   ========================================= */

/* 登場：全体が跳ねる */
#kv .is-active {
  animation: jumping-once 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 登場：ピンが跳ねながら消える（復活アニメを一旦打ち消す） */
#kv .is-active .pin {
  animation: pin-pop-out 1.2s forwards !important;
    z-index: 2;
}

/* 登場：吹き出しが大きく出て固定 */
#kv .is-active .fukidashi {
  animation: fukidashi-bounce-in 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    z-index: 5;
}

/* 退場：吹き出しがその場で消える */
#kv .is-active.is-leaving .fukidashi {
  animation: fukidashi-fade-only 0.6s ease-out forwards !important;
}

/* =========================================
   キーフレーム
   ========================================= */

/* ★ピン復活：下からフェードイン（これが「パッ」を防ぐ命綱です） */
@keyframes pin-resurrection {
  0%   { opacity: 0; transform: translateX(-50%) translateY(15px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 跳ねる動き */
@keyframes jumping-once {
  0% { transform: translateY(0); }
  20% { transform: translateY(5px); }
  50% { transform: translateY(-50px); }
  85%, 100% { transform: translateY(0); }
}

/* ピン消去（登場時） */
@keyframes pin-pop-out {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  30%  { opacity: 1; }
  60%  { opacity: 0; }
  100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* 吹き出し登場 */
@keyframes fukidashi-bounce-in {
  0%, 40% { opacity: 0; transform: translateX(-50%) scale(0.2); }
  75%  { opacity: 1; transform: translateX(-50%) scale(1.15); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* 吹き出し退場 */
@keyframes fukidashi-fade-only {
  0%   { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.95); }
}

/* =========================================
   個別位置（ご提示の数値を完全維持）
   ========================================= */
.jump-shifter.architecture      { top: calc(275vw / 12.8); right: calc(495vw / 12.8); }
.jump-shifter.truck             { top: calc(542vw / 12.8); right: calc(340vw / 12.8); z-index: 6;}
.jump-shifter.railway           { top: calc(402vw / 12.8); right: calc(334vw / 12.8); }
.jump-shifter.developed-alloy   { top: calc(418vw / 12.8); right: calc(86.5vw / 12.8); }
.jump-shifter.telecommunication { top: calc(267vw / 12.8); right: calc(80vw / 12.8); width: calc(185vw / 12.8); }

/* --- (telecommunication)の個別調整 --- */
.jump-shifter.telecommunication .pin { 
  top: calc(-150vw / 12.8); 
  left: calc(-55vw / 12.8); 
  transform: none; /* 中央寄せを解除している状態を維持 */
}

/* 実行時のアニメーションを専用のものに差し替え */
.is-active.telecommunication .pin {
  animation: pin-pop-out-yellow 1.2s forwards !important;
}

/* 待機（復活）時のアニメーションも専用のものに差し替え */
.jump-shifter.telecommunication:not(.is-active) .pin {
  animation: pin-resurrection-yellow 0.8s ease-out forwards;
}

/* telecommunication専用：左右に動かさず、不透明度と上下移動だけ制御 */
@keyframes pin-pop-out-yellow {
  0%   { opacity: 1; transform: translateY(0); }
  30%  { opacity: 1; }
  60%  { opacity: 0; }
  100% { opacity: 0; transform: translateY(15px); }
}
/* telecommunication専用：復活時も左右位置を固定 */
@keyframes pin-resurrection-yellow {
  0%   { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

#newsBl{
    margin: -40px 0 80px ;
}

#newsBl .inner{
    padding: 0 20px;
}

#newsBl h2{
    display: flex;
    align-items: center;
    gap:0 10px;
    position: relative;
    margin: 0 0 20px 0;
}

#newsBl h2 span{
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
    font-size: 3.0rem;    
    color: #dc186e
}

#newsBl h2 .moreBtn a{
    border: 2px solid #dc186e;
    background: #dc186e;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1px 12px 2px;
    border-radius: 13px;
}

#newsBl .news-list dl{
    display: flex;
    line-height: 1.85;
}

#newsBl .news-list dt{
    width: 160px;
    color: #dc186e;
}

#newsBl .news-list dd{
    flex: 1;
}

#newsBl .news-list dd a:hover{
    text-decoration: underline;
}

#newsBl .news-list dd a::after {
    content: "";
    display: inline-block;
    width: 15px;
    height: 19px;
    margin-left: 5px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 15px auto;
    vertical-align: middle;
}

#newsBl .news-list dd a[href*=".pdf"]::after {
    background: url("../img/common/icn_pdf.svg") no-repeat left center;
}

#pickupBl{
    margin-bottom: 45px;
}

#pickupBl .inner h2{
    margin-bottom: -18px;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

#pickupBl .inner h2 span{
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
    font-size: 4.5rem;    
    color: #dc186e
}

#pickupBl .swiper-bg{
    background: #BDEBE1;
    background: linear-gradient(90deg,rgba(189, 235, 225, 1) 0%, rgba(181, 229, 193, 1) 100%);
    position: relative;
    padding: 50px 0;
    overflow: hidden;
}

#pickupBl .pickup-swiper{
    width: 100%;
    overflow: visible; /* 画面端までスライドを見せたい場合はここを調整 */
}

#pickupBl .pickup-swiper .swiper-slide{
    width: 383px !important;
}

#pickupBl .pickup-swiper a{
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    display: block;
    overflow: hidden;
}

#pickupBl .pickup-swiper figure{
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: relative;
}

#pickupBl .pickup-swiper figure img{
    border-radius: 8px;
    overflow: hidden;
    max-width: 351px;
    transition: opacity 0.3s ease;
}

#pickupBl .pickup-swiper a:hover img {
    opacity: 0.6;
}

#pickupBl .pickup-swiper figcaption{
    text-align: center;
    margin-top: 15px;
    font-size: 1.8rem;
}

#sitecategoryBl .inner{
    max-width: 1255px;
    margin: 0 auto;
    padding: 0 20px;
}

#sitecategoryBl .inner .row{
    display: flex;
    justify-content: space-between;
    gap:13px;
}

#sitecategoryBl .inner .row + .row{
    margin-top: 15px;
}

#sitecategoryBl .inner div{
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

#sitecategoryBl .inner div > img{
    width: 100%;
    height: auto;
}

#sitecategoryBl .inner div a{
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
}

#sitecategoryBl .inner div a span{
    display: inline-block;
    text-align: left;
    margin: 0 auto;    
    color: #fff;
    font-weight: 700;
    transition: 0.3s ease;
}

#sitecategoryBl .inner .row-top a span.en{
    font-weight: 700;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 8.5rem;
}

#sitecategoryBl .inner .row-bottom a span.en{
    font-weight: 700;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 6.5rem;
}

#sitecategoryBl .inner div a:hover span{
    color: #dc186e;
}

@media only screen and (max-width:1080px) {
   #sitecategoryBl .inner .row-top a span.en {
       font-size: 7rem;
    }
    
   #sitecategoryBl .inner .row-bottom a span.en {
       font-size: 4.5rem;
    }
}

@media only screen and (max-width:767px) {

    #kv{
        margin-bottom: calc(250vw / 7.5);
    }
    
    #kv .inner {
      margin: 0;
      padding: 0 !important;
    }

    #kv .en_copy img{
      top: calc(733vw / 7.5);
      left: calc(55vw / 7.5);
      width: calc(225vw / 7.5);
    }

    #kv h1 img{
      top: calc(1054vw / 7.5);
      left: calc(55vw / 7.5);
      width: calc(656.6vw / 7.5);
    }    
    
    #kv .productBtn{
        right: calc(40vw / 7.5);
        top: calc(985vw / 7.5);
    }

    #kv .productBtn a{
        border-radius: calc(35vw / 7.5);
        font-size: calc(21vw / 7.5);
        padding: calc(10vw / 7.5) calc(20vw / 7.5) calc(14vw / 7.5) calc(95vw / 7.5);
    }

    #kv .productBtn a::before,
    #kv .productBtn a::after {
        left: calc(23vw / 7.5);
        width: calc(67vw / 7.5);
        height:  calc(29vw / 7.5);
    }

    
    /* --- 共通設定（数値・位置は完全維持） --- */
    .jump-shifter {
      width: calc(240vw / 7.5);
      margin-right: 0;    
    }

    .jump-shifter .pin {
      width: calc(59vw / 7.5);
    }
    
    /* =========================================
       個別位置（ご提示の数値を完全維持）
       ========================================= */
    .jump-shifter.architecture      { top: calc(751vw / 7.5); right: calc(233vw / 7.5); }
    .jump-shifter.truck             { top: calc(913vw / 7.5); right: calc(148vw / 7.5); }
    .jump-shifter.railway           { top: calc(515vw / 7.5); right: calc(307vw / 7.5); }
    .jump-shifter.developed-alloy   { top: calc(588vw / 7.5); right: calc(13vw / 7.5); }
    .jump-shifter.telecommunication { top: calc(330vw / 7.5); right: calc(287vw / 7.5); width: calc(272vw / 7.5); }    

    /* --- (telecommunication)の個別調整 --- */
    .jump-shifter.telecommunication .pin { 
        top:calc(-140vw / 7.5); 
        left:calc(275vw / 7.5);
        right:0; 
    }
    
    #newsBl{
        margin: 0 0 calc(130vw / 7.5);
    }

    #newsBl h2{
        gap:0 calc(15vw / 7.5);
        margin: 0 0 calc(30vw / 7.5) 0;
    }

    #newsBl h2 span{
        font-size: calc(50vw / 7.5);
    }

    #newsBl h2 .moreBtn a{
        font-size: calc(24vw / 7.5);
        padding: 1px calc(18vw / 7.5) 2px;
        border-radius: 30px;
    }    

    #newsBl .news-list dl{
        flex-direction: column;
    }
    
    #newsBl .news-list dl + dl{
        margin-top: calc(40vw / 7.5);
    }
    
    #newsBl .news-list dt{
        display: block;
        width: 100%;
    }

    #newsBl .news-list dd{
        display: block;
        width: 100%;
    }    
    
    #pickupBl{
        margin-bottom: calc(135vw / 7.5);
    }

    #pickupBl .inner{
        padding: 0 !important;
    }

    #pickupBl .inner h2{
        margin-bottom:calc(-27vw / 7.5);
        margin-left: calc(40vw / 7.5);
        padding: 0;
    }

    #pickupBl .inner h2 span{
        font-size: calc(70vw / 7.5);
    }

    #pickupBl .swiper-bg{
        padding: calc(65vw / 7.5) 0 calc(80vw / 7.5);
    }

    #pickupBl .pickup-swiper .swiper-slide{
        width: calc(596vw / 7.5);
    }

    #pickupBl .pickup-swiper a{
        padding:calc(25vw / 7.5) ;
    }

    #pickupBl .pickup-swiper figure img{
        width:100%;
        max-width: inherit;
    }

    #pickupBl .pickup-swiper figcaption{
        margin-top: calc(20vw / 7.5);
        font-size: calc(28vw / 7.5);
    }    
    
    #sitecategoryBl .inner .row{
        flex-wrap: wrap;
        flex-direction: column;
        gap:calc(34vw / 7.5) 0;
    }

    #sitecategoryBl .inner .row + .row{
        margin-top:calc(34vw / 7.5);
    }

    #sitecategoryBl .inner div a span{
        font-size: calc(22vw / 7.5);
    }
    
   #sitecategoryBl .inner .row-top a span.en {
       font-size: calc(90vw / 7.5);
    }
    
   #sitecategoryBl .inner .row-bottom a span.en {
       font-size: calc(70vw / 7.5);
    }
    
    
}


.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal.is-active {
    display: block;
}

.modal__bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    max-width: 90%;
    background: #fff;
    z-index: 1;
    overflow: hidden;
}

.modal__content .js-close-modal2{
    position: absolute;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 15px;
    border: none;    
    color:#dc186e;
    top: 10px;
    right: 10px;
    padding: 0;
    font-size: 2.3rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #fff;
    transition: all 0.5s ease 0s;
}

.modal__content .js-close-modal2:hover{
    background: #dc186e;
    color:#fff;
}

.modal__content .cateTit{
    text-align: center;
    color: #fff;
    font-size: 2.0rem;
    padding: 15px;
    background: #dc186e;
}

.modal__content .modal__thumb{
    border-radius: 8px;
    overflow: hidden;
    margin: 33px 35px 28px;
}

.modal__content ul{
    display: flex;
    flex-direction: column;
    gap:8px;
    margin: 35px;
}

.modal__content ul li a{
    display: block;
    width: 100%;
    text-align: center;
    border: 2px solid #dc186e;
    border-radius: 25px;
    line-height: 1.25;
    height: 46px;
    font-size: 1.8rem;
    transition: all 0.5s ease 0s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    padding: 0;
}

.modal__content ul li a.window span{
background: url("../img/common/icn_window.svg") no-repeat right center;
    background-size: auto;
  background-size: 18px auto;
  padding-right: 22px;
}

.modal__content ul li a:hover{
    border: 2px solid #dc186e;
    background: #dc186e;
    color: #fff;
}

@media only screen and (max-width:767px) {

    .modal__content .js-close-modal2{
        width: calc(50vw / 7.5);
        height: calc(50vw / 7.5);
        top: calc(10vw / 7.5);
        right: calc(15vw / 7.5);
        font-size: calc(30vw / 7.5);
        border-radius: calc(25vw / 7.5);
    }

    .modal__content .cateTit{
        font-size:calc(30vw / 7.5);
        padding: calc(20vw / 7.5);
    }
    
    .modal__content .modal__thumb{
        border-radius: 8px;
        width: calc(512vw / 7.5);
        margin: calc(53vw / 7.5) auto calc(60vw / 7.5);
        display: block;
        overflow: hidden;
    }
    
    .modal__content{
        width: calc(620vw / 7.5);
    }

    .modal__content ul{
        width: calc(512vw / 7.5);
        gap:calc(15vw / 7.5);
        margin: calc(40vw / 7.5) auto calc(80vw / 7.5);
    }

    .modal__content ul li a{
        height: calc(80vw / 7.5);
        border-radius: calc(46vw / 7.5);
        font-size: calc(26vw / 7.5);
    }
        

}

