/* CSS Document */
.btn__primary {
  display: block;
  background-color: var(--corporate-color);
  /* 元の背景画像をコメントアウトまたは削除 */
  /* background-image: url(/assets/img/arrow_01.svg); */
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 20px;
  color: var(--white-color);
  padding: 9px 1rem;
  border: none;
  border-radius: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  max-width: 200px;
  text-align: center;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.07em;
  
  /* アニメーション用の設定をここに追加 */
  position: relative;
  overflow: hidden;
}

/* 矢印アイコン用の疑似要素を作成 */
.btn__primary::before,
.btn__primary::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url(/assets/img/arrow_01.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    transition: all 0.4s ease;
}

/* 初期状態：beforeが表示、afterは左側に隠れている */
.btn__primary::before {
    opacity: 1;
}

.btn__primary::after {
    opacity: 0;
    transform: translateY(-50%) translateX(-30px); /* 左側に隠す */
}

/* ホバー時のアニメーション */
.btn__primary:hover::before {
    opacity: 0;
    transform: translateY(-50%) translateX(30px); /* 右に移動しながらフェードアウト */
}

.btn__primary:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0); /* 左から元の位置にフェードイン */
}

/* ボタン全体のホバー効果 */
.btn__primary:hover {
    /* 背景色はそのまま変更なし */
    /* transform: translateY(-2px); 上に上がる動きを削除 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}



.btn__primary.black_color {
  background-color: var(--black-link-color);
  /* Corporate color */
}
.btn__primary.white_color {
  background-color: var(--white-color);
  color: var(--black-link-color);
}
.btn__primary.white_color::before,
.btn__primary.white_color::after {
  background-image: url(/assets/img/arrow_01_blk.svg);
}


.btn__primary.yelow_color {
  background-color: var(--yelow-color);
}

@media (max-width: 768px) {
  .btn__primary {
    width: 100%;
    padding: 10px 0;
    font-size: 1.2rem;
    background-position: right 20px center;
    background-size: 18px;
  }
}


/* 一度全部リセットして、シンプルにテスト */
.right_side .btn__primary {
  width: 50px;
  line-height: 1.3;
  padding: 30px 1rem 60px 1rem;
  margin-bottom: 25px;
  display: block;
  color: var(--white-color);
  border: none;
  border-radius: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  text-decoration: none;
  max-width: 200px;
  text-align: center;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.07em;
  position: relative;
  overflow: hidden;

}

/* 1つ目の矢印（初期表示） */
.right_side .btn__primary::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: calc(50% - 10px); /* 20px幅の半分 */
    width: 20px;
    height: 20px;
    background: url(/assets/img/arrow_01.svg) no-repeat center;
    background-size: 20px;
    opacity: 1;
    transition: all 0.4s ease;
      top: auto;
}

/* 2つ目の矢印（隠れている） */
.right_side .btn__primary::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: calc(50% - 40px); /* 左に30px隠す */
    width: 20px;
    height: 20px;
    background: url(/assets/img/arrow_01.svg) no-repeat center;
    background-size: 20px;
    opacity: 0;
    transition: all 0.4s ease;
      top: auto;
}

/* ホバー時のアニメーション */
.right_side .btn__primary:hover::before {
    left: calc(50% + 20px); /* 右に30px移動 */
    opacity: 0;
}

.right_side .btn__primary:hover::after {
    left: calc(50% - 10px); /* 中央位置に */
    opacity: 1;
}


/* ハンバーガーメニューボタン */
.hamburger-block {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
}
    .hamburger {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      width: 20px;
      height: 24px;
      cursor: pointer;
      transition: transform 0.3s ease;
      z-index: 1001;
      position: relative;
    }

    .hamburger span {
      display: block;
      height: 1px;
      width: 100%;
      background:#999;
      border-radius: 2px;
      transition: all 0.3s ease;
      transform-origin: center;
    }

    aside.active .hamburger span {
      background: var(--white-color);
    }

    /* ハンバーガーメニューアクティブ時のアニメーション */
    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
      transform: scaleX(0);
    }

    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
    }

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

  .hamburger span {
    height: 1px;
  }   
    /* タッチターゲットサイズの確保 */
  .hamburger {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}



    /* フルスクリーンメニュー */
    .fullscreen-menu {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color:var(--corporate-color);
      background-image: url(/assets/img/mainnav_bg.png);
      background-position: right top;
      background-repeat: no-repeat;
      backdrop-filter: blur(10px);
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

 .fullscreen-menu .fullscreen-menu__inner {
      max-width: 960px;
      width: 100%;
      margin: 0 auto;
      padding-left: 100px;
 }
 .fullscreenn-logo {
      position: absolute;
      top: 10%;
      left: 15%;
      z-index: 1001;
      width: 350px;
    }

    .fullscreen-menu.active {
      opacity: 1;
      visibility: visible;
    }

    @media (max-width: 768px) {
    .fullscreen-menu {
      background-image: url(/assets/img/mainnav_bg.png);
      background-position: right -50px top;
      background-size: cover;
    }
 .fullscreen-menu .fullscreen-menu__inner {
      max-width: 960px;
      width: 100%;
      margin: 0 auto;
      padding-left: 0;
 }
    
  .fullscreenn-logo {
    top: 20px;
    left: 5%;
    width: 230px;
  }
    } 

    /* メニューコンテンツ */
    .menu-content {
      text-align: center;
      color: white;
      transform: translateY(50px);
      transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .fullscreen-menu.active .menu-content {
      transform: translateY(0);
    }
    .fullscreen-submenu_blk {
      display: flex;
      align-items: center;
      margin-top: 50px;
      justify-content: space-between;
    }
    @media screen and (max-width: 768px) {
      .fullscreen-submenu_blk {
        flex-direction: column;
        align-items: center;
      margin-top: 0;
      }   
    }
.fullscreen-submenu_contact {
  width: 180px;
}
.fullscreen-submenu ul {
  display: flex;
  justify-content: end;
  align-items: center;
}

.fullscreen-submenu ul li {
  list-style: none;
  margin-left: 30px;
  font-size: 1.2rem;
  color: var(--white-color);
}
.fullscreen-submenu ul li::before {
  content: "- ";
}
@media screen and (max-width: 768px) {  
  .fullscreen-submenu {
    order: -1;
    margin-bottom: 20px;
  }
  .fullscreen-submenu ul {
    flex-direction: column;
    align-items: center;
  }
  .fullscreen-submenu ul li {
    margin-left: 0;
    margin-bottom: 10px;
  }
}

    /* メニューナビゲーション */
    .menu-nav {
      list-style: none;
      margin-bottom: 50px;
    }

    .menu-nav li {
      margin: 30px 0;
      opacity: 0;
      transform: translateX(-50px);
      transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .fullscreen-menu.active .menu-nav li {
      opacity: 1;
      transform: translateX(0);
    }

    .menu-nav li:nth-child(1) { transition-delay: 0.1s; }
    .menu-nav li:nth-child(2) { transition-delay: 0.2s; }
    .menu-nav li:nth-child(3) { transition-delay: 0.3s; }
    .menu-nav li:nth-child(4) { transition-delay: 0.4s; }
    .menu-nav li:nth-child(5) { transition-delay: 0.5s; }

    .menu-nav a {
      color: white;
      text-decoration: none;
      font-size: 2.5rem;
      font-weight: 300;
      letter-spacing: 2px;
      transition: all 0.3s ease;
      position: relative;
      display: inline-block;
    }

    .menu-nav a:hover {
      color: #fff;
      transform: scale(1.1);
    }

    .menu-nav a::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%) scaleX(0);
      width: 100%;
      height: 2px;
      background: white;
      transition: transform 0.3s ease;
    }

    .menu-nav a:hover::after {
      transform: translateX(-50%) scaleX(1);
    }

    /* メニューボタン */
    .menu-buttons {
      display: flex;
      gap: 20px;
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      transition-delay: 0.6s;
    }

    .fullscreen-menu.active .menu-buttons {
      opacity: 1;
      transform: translateY(0);
    }

    .menu-btn {
      padding: 15px 30px;
      background: transparent;
      border: 2px solid white;
      color: white;
      text-decoration: none;
      border-radius: 50px;
      transition: all 0.3s ease;
      font-weight: 500;
      letter-spacing: 1px;
    }

    .menu-btn:hover {
      background: white;
      color: black;
      transform: translateY(-2px);
    }

    .menu-btn.primary {
      background: white;
      color: black;
    }

    .menu-btn.primary:hover {
      background: transparent;
      color: white;
    }

    /* レスポンシブ対応 */
    @media (max-width: 768px) {
      .menu-nav a {
        font-size: 2rem;
      }

      .menu-buttons {
        flex-direction: column;
        align-items: center;
      }
    }

/* アクティブ状態（×印に変化） */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.contaeiner__2corum {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 2カラム */
}

.contaeiner__2col-7-3 {
  width: 100%;
  display: grid;
  grid-template-columns: 7fr 3fr; /* 左7、右3の比率 */
}
.contaeiner__2col-3-7 {
  width: 100%;
  display: grid;
  grid-template-columns: 3fr 7fr; /* 左7、右3の比率 */
}

.contaeiner__2col-4-6 {
  width: 100%;
  display: grid;
  grid-template-columns: 4fr  6fr; /* 左3、右7の比率 */
}

@media screen and (max-width: 768px) {
    .contaeiner__2corum,
    .contaeiner__2col-7-3,
    .contaeiner__2col-3-7,
    .contaeiner__2col-4-6 {
      grid-template-columns: 1fr; /* スマホでは1カラム */
    }
  
}



.text__line01 {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--corporate-color);
  font-family: var(--font-family-obun);
  margin-bottom: 70px;
  position: relative;
  
  /* 初期状態：文字非表示 */
  opacity: 0;
  transform: translateX(-20px);
    white-space: nowrap; /* 文字の折り返しを防ぐ */
}

.text__line01::after {
  content: '';
  height: 1px;
  width: 100%;
  background-color: var(--corporate-color);
  /* 初期状態：ライン非表示 */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease-out;
}

/* アニメーション実行時 */
.text__line01.line-animate::after {
  transform: scaleX(1);
}

.text__line01.whiteline {
  color: var(--white-color);
}

.about__article .text__line01.whiteline .text__line__text {
  width: 200px;
  line-height: 1;
  display: block;
  margin: 0;
}

.text__line01.whiteline::after {
  background-color: var(--white-color);
}
@media screen and (max-width: 768px) {
  .text__line01 {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  .text__line01::after {
    height: 1px;
    width: 100%;
  }
  
}


.vslide-section {
  background-color: var(--black-color);
  width: 100%;
}

.vslide-section__container {
  display: grid;
  grid-template-columns: 1fr 1fr;

  margin: 0 auto;
  padding: 0 5%;
}

.vslide-section__article {
  color: #fff;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;

}

.vslide-section__title {
  font-family: var(--font-family-obun);
  letter-spacing: 0.05em;
  font-size: 7.5rem;
  font-weight: 200;
  line-height: 1;
}

.vslide-section__title--sub {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 60px;
}

.vslide-section__headline {
  font-size: 2.7rem;
  font-weight: 500;
  margin-bottom: 60px;
}

.vslide-section__sliders {
  display: flex;
  gap: 20px;
  height: 100vh;
  overflow: hidden;
}

.vslide-section__slider {
  height: 100vh;
  width: 50vw;
  overflow: hidden;
  position: relative;
}


.scroll-wrapper {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  height: calc(350px * 15); /* 5個 × 3セット = 15個分の高さ */
}

/* 下方向スクロール（上から下へ） */
.is-down .scroll-wrapper {
  animation: infiniteScrollDown 20s linear infinite;
}

/* 上方向スクロール（下から上へ） */
.is-up .scroll-wrapper {
  animation: infiniteScrollUp 20s linear infinite;
}

.slide-item {
  height: 330px;
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.slide-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: brightness(1.1);
  z-index: -1;
}

/* 下方向スクロール（上から下へ）のキーフレーム */
@keyframes infiniteScrollDown {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(calc(-350px * 8));
    /* 8個分下に移動 */
  }
}

/* 上方向スクロール（下から上へ）のキーフレーム */
@keyframes infiniteScrollUp {
  0% {
    transform: translateY(calc(-350px * 5));
    /* 8個分下から開始 */
  }

  100% {
    transform: translateY(0);
    /* 上に移動 */
  }
}

/* ホバー時に一時停止 */
.vslide-section__slider:hover .scroll-wrapper {
  animation-play-state: paused;
}

/* 速度調整用クラス */
.speed-slow .scroll-wrapper {
  animation-duration: 40s;
}

.speed-normal .scroll-wrapper {
  animation-duration: 20s;
}

.speed-fast .scroll-wrapper {
  animation-duration: 10s;
}

.speed-super-fast .scroll-wrapper {
  animation-duration: 5s;
}


/* ラベル */
.direction-label {
  position: absolute;
  top: 20px;
  left: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .vslide-section__slider {
    height: 50vh;
    width: 100vw;
  }

  .container::before {
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
  }

  .slide-item {
    height: 120px;
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .scroll-wrapper {
    height: calc(135px * 16);
  }

  @keyframes infiniteScrollDown {
    0% {
      transform: translateY(0);
    }

    100% {
      transform: translateY(calc(-135px * 8));
    }
  }

  @keyframes infiniteScrollUp {
    0% {
      transform: translateY(calc(-135px * 8));
    }

    100% {
      transform: translateY(0);
    }
  }
}
@media screen and (max-width: 768px) {
  .vslide-section__title {
    font-size: 5.0rem;
  }

  .vslide-section__title--sub {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  
}
/* SP用のレスポンシブ対応（横スライド） */
@media (max-width: 768px) {
  .vslide-section__container {
    grid-template-columns: 1fr;
    padding: 40px 5%;
    gap: 40px;
  }

  .vslide-section__title {
    font-size: 4rem;
  }

  .vslide-section__title--sub {
    font-size: 1.4rem;
    margin-bottom: 40px;
  }

  .vslide-section__headline {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  /* SPでは横レイアウトに変更 */
  .vslide-section__sliders {
    height: 515px;
    flex-direction: column;
    gap: 15px;
  }

  .vslide-section__slider {
    height: 250px;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
  }

  /* 横スクロール用のwrapper */
  .scroll-wrapper {
    width: calc(300px * 16); /* 16個分の幅 */
    height: 100%;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
  }

  /* 横方向のアニメーション */
  .is-down .scroll-wrapper {
    animation: infiniteScrollRight 20s linear infinite;
  }

  .is-up .scroll-wrapper {
    animation: infiniteScrollLeft 20s linear infinite;
  }

  /* slide-containerを横並びに */
  .slide-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    height: 100%;
    align-items: center;
  }

  .slide-item {
    height: 250px;
    min-width: 200px;
    width: 200px;
    margin-bottom: 0;
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  .slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  /* 横スクロール用キーフレーム */
  @keyframes infiniteScrollRight {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-300px * 8)); /* 8個分右に移動 */
    }
  }

  @keyframes infiniteScrollLeft {
    0% {
      transform: translateX(calc(-300px * 8)); /* 8個分左から開始 */
    }
    100% {
      transform: translateX(0); /* 右に移動 */
    }
  }

  /* 速度調整もSP用に対応 */
  .speed-slow .scroll-wrapper {
    animation-duration: 40s;
  }

  .speed-normal .scroll-wrapper {
    animation-duration: 20s;
  }

  .speed-fast .scroll-wrapper {
    animation-duration: 10s;
  }

  .speed-super-fast .scroll-wrapper {
    animation-duration: 5s;
  }

  /* ラベルの位置調整 */
  .direction-label {
    top: 10px;
    left: 15px;
    font-size: 0.8rem;
  }
}



.scroolBlock {
position: absolute;
bottom: 5%;
left: 50px;
z-index: 10;
}

@media (max-width: 768px) {
 .scroolBlock {
position: absolute;
bottom: 5%;
left: 50px;
z-index: 10;
display: none;
} 
}

.scroolText {
  font-family: var(--font-family-obun);
  font-size: 1rem;
  transform: rotate(-90deg);
  position: relative;
  left: -22px;
  top: -130px;
}

.scroolIcon {
  content: '';
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 100px;
  background: var(--black-color);
  z-index: 3
}

.scroolIcon {
  animation: scroolIcon 2.5s cubic-bezier(1, 0, 0, 1) infinite;
}
/* キーフレームアニメ部分 */
@keyframes scroolIcon {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  30% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  70.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}