@charset "utf-8";
body {
  font-family: "Noto Sans JP", sans-serif;
}
section {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", 游ゴシック体,
    YuGothic, "游ゴシック Medium", "YuGothic M", メイリオ, Meiryo, sans-serif !important;
}
section {
  font-feature-settings: "palt";
}
p{
  font-size: 14px;
}


/* =====================
  pc
===================== */
.main-container section .sp {
  display: none;
}
.responsive__view-SP {
  display: none;
}
.responsive__viewPC {
  display: block;
}
@media (max-width: 640px) {
  .main-container section .pc {
    display: none;
  }
  .responsive__view-PC{
    display: none;
  }
  .responsive__view-SP{
    display: block;
  }
  .main-container section {
    color: #000000;
  }
  .main-container section p {
    margin: 0;
  }
  .main-container section h2 {
    height: auto;
  }
}

/* 
kvArea
*/
.kvArea_inner .responsive__view-PC img{
  width: 100%;
  display: flex;
  margin: 0 auto;
}
.kvArea_news{
  margin: 0 auto;
  max-width: 960px;
}
.kvArea_news-line {
    margin: 20px 0;
    display: flex;
    align-items: center; 
    gap: 10px; 
}

.kvArea_news-line span {
    background-color: #EA0000;
    padding: 5px 10px;
    color: #fff;
    font-weight: bold;
    flex-shrink: 0; 
}

.kvArea_news-content {
    flex-grow: 1; 
    word-break: break-word; 
}

@media (max-width: 640px) {
  .kvArea_news{
    font-size: 9px;
  }
  .kvArea_inner h1{
    margin: 0;
  }
  .kvArea_inner img{
    width: 100%;
  }
  .kvArea_inner a {
    color: #000000;
    text-decoration: underline;
  }
  .kvArea_news-line span {
      padding: 25px 5px; 
      align-self: flex-start;
  }
  .kvArea_news-content a {
      display: block; 
  }

  .kvArea_news-content {
      display: flex;
      flex-direction: column;
      padding-top: 2px;
  }

  .kvArea_news-content a {
      color: #000000;
      text-decoration: underline;
      margin-top: 3px;
  }
}

#ambassadorArea{
  width: 100%;
  background-image: url(/img/responsive/batterys_ambassador/bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  position: relative;
  padding: 140px 0;
}


.ambassadorArea_inner{
  max-width: 900px;
  padding: 40px;
  margin: 0 auto;
  background: #0086C6;
  line-height: 1.7;
  color: #fff;
}
.ambassadorArea_inner p{
  font-size: 16px;
}
.ambassadorArea_inner h2{
  max-width: 770px;
  margin: -100px 0 30px -100px;
}
.ambassador_flex {
  display: flex;
  justify-content: space-evenly;
  padding-bottom: 30px;
}
.ambassador_flex-text{
  display: flex;
  flex-direction: column;
  font-weight: 700;

}
.ambassadorArea_inner .ambassador_flex-text p{
  font-size: 21px;
  text-align: center;
}
.ambassador_flex-text-heading{
  padding: 33px 0;
}

@media (max-width: 640px) {
  #ambassadorArea{
    background-image: url(/img/responsive/batterys_ambassador/bg-sp.png);
    padding: 60px 0;
  }
  .ambassadorArea_inner h2{
    margin: 0;
  }
  .ambassadorArea_inner h2 img{
    display: block;
    margin: 0 auto;
  }
  .ambassador_flex {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding-bottom: 30px;
    align-items: center;
  }
  .ambassador_flex-text-heading{
    padding: 0;
  }
}


#gallery{
  width: 100%;
  background-image: url(/img/responsive/batterys_ambassador/img_bg2.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  position: relative;
  padding: 140px 0;
}
.gallery_inner{
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.ace{
  position: absolute;
  bottom: 100px;
  left: 40px;
  width: 280px;
}
.tsuyoshi{
  position: absolute;
  bottom: -20px;
  right: 30px;
  z-index: 100;
  width: 280px;
}

@media (max-width: 640px) {
  .ace{
    bottom: -45vw;
    left: 10%;
    width: 41vw;
  }
  .tsuyoshi{
    bottom: -45vw;
    right: 10%;
    width: 41vw;
  }
}

.gallery_inner h2{
  max-width: 1200px;
  margin: 0 auto;
}
.gallery_inner h2 img{
  display: block;
  width: 30%;
  margin: 0 auto;
}
.gallery_txt{
  margin: 50px auto 50px;
}
.gallery_txt-heading img{
  display: block;
  width: 30%;
  margin: 0 auto;
}
.gallery_txt-heading.txt2 img{
  width: 15%;
}
.gallery_movie {
  max-width: 530px;
  height: 298px;
  margin-top: 20px;
  background: #00215B;
  padding: 10px;
  border-radius: 20px;
  margin: 20px auto 0;
}

@media (max-width: 640px) {
  #gallery{
    background-image: url(/img/responsive/batterys_ambassador/img_bg2_sp.png);
    padding:100px 0 230px;
  }
  .gallery_inner h2{
    max-width: 500px;
    margin: 30px auto;
    width: 100%;
    height: auto;
  }
  .gallery_inner h2 img{
    display: block;
    width: 50%;
    margin: 0 auto;
  }
  .gallery_movie {
    width: 80%;
    height: 54vw;
  }
  .gallery_txt-heading img{
    max-width: 290px;
    width: 100%;
  }
  .gallery_txt-heading.txt2 img{
    max-width: 190px;
    width: 100%;
  }
}


.sns_area{
  display: flex;
  margin: 80px auto ;
  max-width: 800px;
  justify-content: space-around;
}
.sns_area-button{
  max-width: 340px;
  width: 100%;
}
.sns_area-button a{
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  padding: 10px 0;
  border: #D9D9D9 solid 2px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 10px;
}
.bnr_area{
  display: flex;
  margin: 0 auto 120px;
  max-width: 1200px;
  justify-content: space-around;
}

@media (max-width: 640px) {
  .sns_area{
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .sns_area-button a{
    justify-content: flex-start;

  }
  .sns_area-button a img{
    padding-left: 15px;
  }
}

/* ====================================
   1. カルーセル全体の基本設定
   ==================================== */
.carousel-container {
    position: relative; 
    overflow: hidden; /* スライドアイテムのはみ出しを隠す */
    margin: 20px auto;
    max-width: 1200px; 
    box-sizing: border-box;
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    padding: 20px;
}

/* スライドを格納するラッパー */
.carousel {
    display: flex; 
    transition: transform 0.5s ease-in-out; /* スライド時のアニメーション */
    align-items: center; /* 縦方向の中央寄せ */
}

/* スライドアイテム */
.carousel-item {
    flex-shrink: 0; 
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out; 
}

/* 動画ラッパー */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; 
    height: 0;
    border-radius: 10px; 
    overflow: hidden;
    border: 5px solid #00215B; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* iFrameの配置 */
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* ====================================
   2. PC画面のレイアウト (3つ表示 + ハイライト)
   ==================================== */
@media (min-width: 641px) {
    .carousel-item {
        /* 3つ表示: 33.33% */
        width: calc(100% / 3);
        opacity: 0.7; 
        transform: scale(0.9); 
    }

    /* 中央に表示されているアイテムをハイライト（拡大、不透明に）*/
    .carousel-item.active {
        opacity: 1 !important;
        transform: scale(1.1) !important; /* 拡大 */
        z-index: 5; 
        padding: 0 110px;
    }
    
    /* 無限ループ時のジャンプの瞬間、アニメーションを無効化するクラス */
    .carousel-item.no-transition {
        transition: none !important;
    }
}





/* ====================================
   4. 左右のナビゲーションボタン
   ==================================== */
.prev-button,
.next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #002266; /* 濃い青 */
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1000;
    
    /* ボタンの形を丸く大きく調整 */
    font-size: 24px;
    line-height: 1;
    border-radius: 50%; 
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.prev-button {
    left: 320px;
}

.next-button {
    right: 320px;
}

/* ====================================
   3. モバイル画面のレイアウト (1つ表示)
   ==================================== */
@media (max-width: 640px) {
    .carousel-item {
        /* 1つ表示: 100% */
        width: 80%;
        transform: scale(1); 
        opacity: 1; 
        padding: 0 10%;
    }
    .prev-button {
        left: 0.5%;
    }
    .next-button {
        right: 0.5%;
    }
}