/* 追加css */
.mv{
    padding-bottom: 145px;
}
.mv__wrap{
    padding: 0;
}

.mv__wrap video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1264/614;
}

@media (max-width: 999px) {
    .mv{
        padding-bottom: 45px;
    }

    .mv__wrap video{
        aspect-ratio: 1264/614;
    }
}

/* YouTube Video Modal Styles */
.head__video {
  margin-bottom: 60px;
  text-align: center;
}
.head__video img {
  max-width: 100%;
  width: auto;
}
.video-thumbnail {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.video-thumbnail:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.video-modal-content {
  position: relative;
  margin: 10% auto;
  width: 70%;
  max-width: 800px;
  aspect-ratio: 16/9; /* YouTube標準アスペクト比 */
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
}

.video-modal-close:hover {
  opacity: 0.7;
}

.video-container {
  width: 100%;
  height: 100%;
  background: #000;
  position: relative;
  aspect-ratio: 16/9; /* YouTube標準アスペクト比 */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .video-modal-content {
    margin: 15% auto;
    width: 85%;
    /* aspect-ratioを維持してheightは自動計算 */
  }

  .video-modal-close {
    top: -40px;
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .video-modal-content {
    margin: 20% auto;
    width: 90%;
  }

  .video-modal-close {
    top: -35px;
    font-size: 25px;
  }
}

/* 古いブラウザ用のフォールバック */
@supports not (aspect-ratio: 16/9) {
  .video-modal-content {
    height: 39.4vw; /* 16:9のアスペクト比を70vwで計算 */
    max-height: 450px; /* 800px * 9/16 */
  }

  @media (max-width: 768px) {
    .video-modal-content {
      height: 47.8vw; /* 16:9のアスペクト比を85vwで計算 */
    }
  }

  @media (max-width: 480px) {
    .video-modal-content {
      height: 50.6vw; /* 16:9のアスペクト比を90vwで計算 */
    }
  }
}
/* 実績にタイトル追加
================================================== */
.wk__title-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  font-size: 20px;
  color: #fff;
  background: #AE0017;
  padding: 10px 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wk__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  font-size: 14px;
}

@media (max-width: 999px){
  .wk__title-wrapper {
    padding: 5px 20px;
    height: 50px;
  }
}


@media (min-width: 1000px) {
  .wk__item {
    margin-bottom: 120px;
  }
}
@media (max-width: 999px) {
  .wk__item {
    margin-bottom: 70px;
  }
}



/* work */
.work {
  min-height: 1660px;
  height: auto;
}
@media (max-width: 999px) {
  .work {
    min-height: 1100px;
    height: auto;
  }
}
/* faq */
.faq__inner {
    margin: auto;
    padding: 0 20px;
    max-width: 600px;
    width: 100%;
}
@media (min-width: 1000px) {
    .faq__inner {
        padding: 0 25px;
        max-width: 1200px;
    }
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}



.faq-list__item-question {
    background-color: #fff;
    color: #000;
    border: 1px solid #AE0017;
    padding: 10px 70px 10px 10px;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-size: 15px;
    min-height: 60px;
    display: flex;
    gap: 25px;
  }

  @media (min-width: 1000px) {
    .faq-list__item-question {
      align-items: center;
      font-size:20px;
      padding: 0px 70px 0px 0px;
    }
}

.faq-list__item-question span {
  font-family: "Zen Kaku Gothic New", sans-serif;
    color: #fff;
    background-color: #AE0017;
    height: 100%;
    display: inline-block;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 1000px) {
  .faq-list__item-question span {
    font-size: 36px;
    width: 80px;
  }
  .faq-list__item-question:not(:last-child) span{
    border-bottom: 1px solid #fff;
  }
}
/* プラスボタンの丸 */
.faq-list__item-question::after {
    content: '';
    position: absolute;
    right: 22px;
    top: 25px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: #AE0017;
    border: 2px solid #AE0017;
    border-radius: 50%;
}
@media (min-width: 1000px) {
  .faq-list__item-question::after {
    width: 40px;
    height: 40px;
    right: 20px;
    top: 50%;
  }
}

/* プラス記号 */
.faq-list__item-question::before {
    content: '+';
    position: absolute;
    right: 27px;
    top: 24.8px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    z-index: 1;
    transition: all 0.3s ease;
}

@media (min-width: 1000px) {
  .faq-list__item-question::before {
    right: 27px;
    top: 47%;
    font-size: 32px;
  }
}
/* アクティブ時 - 全体が赤背景、テキスト白 */
.faq-list__item-question.is-open {
    background-color: #AE0017;
    color: #fff;
}


.faq-list__item-question.is-open span {
  color: #fff;
  border: 1px solid #fff;

}
@media (min-width: 1000px) {
  .faq-list__item-question.is-open span{
    border: none;
    border-right: 1px solid #fff;
  }
}

.faq-list__item-question.is-open::after {
    background-color: #AE0017;
    border: 2px solid #fff;
}

.faq-list__item-question.is-open::before {
    content: '−';
    color: #fff;
    top: 26px;
    right: 26px;
}

@media (min-width: 1000px) {
  .faq-list__item-question.is-open::before {
    top: 52%;
    right: 26px;
    font-size: 32px;
  }
}
/* 回答 */
.faq-list__item-answer {
    display: none;
    padding: 20px 20px 20px 16px;
    margin: 0;
    background-color: #fff;
    border-left: 2px solid #AE0017;
    border-right: 2px solid #AE0017;
    border-bottom: 2px solid #AE0017;
    font-size: 14px;
    line-height: 1.8;
}
@media (min-width: 1000px) {
  .faq-list__item-answer {
    padding: 20px 20px 20px 30px;
  }
}

/* slideToggleで表示されたときにflexを適用 */
.faq-list__item-answer[style*="display: block"],
.faq-list__item-answer[style*="display:block"] {
    display: flex !important;
    align-items: flex-start;
    gap: 5px;
}

.faq-list__item-answer span {
    color: #AE0017;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 24px;
    line-height: 1;
    width: 60px;

}
@media (min-width: 1000px) {
  .faq-list__item-answer span {
    font-size: 36px;
    width: 60px;
  }
}

/* case */

.case-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 1000px) {
  .case-list {
    gap: 80px;
  }
}
.case-list__item {
  box-shadow:0 15px 15px rgba(255, 120, 141, .149);
  background-color: #fff;
  padding: 63px 6.5% 2%;
  position: relative;
}
.case-list__title-main-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (min-width: 1000px) {
  .case-list__title-main-wrapper {
    gap: 20px;
  }
}

.case-list__num {
  font-size: 30px;
  position: relative;
}
@media (min-width: 1000px) {
  .case-list__num {
    font-size: 48px;
  }
}
.case-list__num::before {
      content:"";
      display:block;
      width:5px;
      height:45px;
      position: absolute;
      background-color: #AE0017;
      top: 50%;
      left: -14px;
      transform: translateY(-50%);
}

.case-list__title-main {
  font-size: 18px;
}
@media (min-width: 1000px) {
  .case-list__title-main {
    font-size: 20px;
  }
}
.case-list__title-sub {
  font-size:  18px;
  color: #AE0017;
  margin-top: 10px;
  font-weight: 600;
}
@media (min-width: 1000px) {
  .case-list__title-sub {
    font-size: 20px;
  }
}

.case-list__link {
  display: block;
  font-size: 16px;
  color: #AE0017;
  text-align: right;
  padding: 14px 20px;
  position: relative;
  line-height: 1;
  letter-spacing: 0.1em;
  width: fit-content;
  margin-left: auto;
}

@media (min-width: 1000px) {
  .case-list__link {
    padding: 14px 60px;
  }
}
.case-list__link::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 6px;
  height: 6px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: translateY(-50%) rotate(45deg);
  transition: .3s;
  z-index: 1;
}
@media (min-width: 1000px) {
  .case-list__link::before {
    right: 26.5px;
  }
}

.case-list__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0px;
  width: 16px;
  height: 16px;
  background-color: #AE0017;
  border-radius: 50%;
  transform: translateY(-50%) rotate(45deg);
  transition: .3s;
  z-index: 0;
}
@media (min-width: 1000px) {
  .case-list__link::after {
    right: 20.5px;
  }
}
.case-list__link:hover::after {
  right: 15px;
}

.case-list__link:hover {
  opacity: 0.7;
}

.case-list__link:hover::before {
  right: 22px;
}
.case-list__text {
  margin-top: 30px;
}

/* FAQ内のリンクスタイル */
.faq-list__item-answer a {
  color: #AE0017;
  text-decoration: underline;
  transition: opacity 0.3s ease;
  display: inline-block;
}

.faq-list__item-answer a:hover {
  opacity: 0.7;
}

.faq-list__item-question a {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.faq-list__item-question a:hover {
  opacity: 0.7;
}




