@charset "utf-8";

/* ストーリー
======================================================= */
.story{
  background: #F2fdfd;
  padding-block: 6rem;
  text-align: center;

  h2 {
    background: var(--main-color);
    color: #fff;
    font-size: 6rem;
    display: inline;
    padding-inline: 2rem;
    line-height: 1.8;
    opacity: 0;
    background: linear-gradient(to left, var(--main-color) 0%, var(--main-color) 100%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    transition: background-size 0.8s ease-out, opacity 0.6s ease-out;
  }

  h2.animate-in {
    opacity: 1;
    background-size: 100% 100%;
  }
}
.st_hint {
  font-size: var(--fs-24);
  text-align: center;
  font-weight: 500;
  background: #fff;
  border-radius: 100vmax;
  border: 1px solid var(--main-color);
  max-width: 880px;
  width: 100%;
  margin-inline: auto;
  margin-block: 3rem 6rem;
  padding: 1rem 3%;
  position: relative;

  span {
    position: absolute;
    right: -14rem;
    top: 3rem;
  }
}
.st_bot {
  font-weight: 500;
  .bg {
    background: var(--main-color);
    color: #fff;
    display: inline;
  }
}

/* アンカーリンク
======================================================= */
.anker_link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20rem;

  a {
    position: relative;
    z-index: 1;
    padding-bottom: 1rem;
    width: 300px;
    line-height: 1.5;
  }
}

.anker_link--bg{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 112px;
  z-index: -1;
}

/* 日本財託からお客様へ3つのお約束
======================================================= */
.promise {
  background: var(--main-color);
  padding-block: 6rem  8rem;

  .main_title {
    max-width: 800px;
    width: 100%;
    margin: auto;
  }
}
.p_list {
  max-width: 680px;
  width: 100%;
  margin: auto;
  color: #fff;
  margin-block: 4rem;

  li {
    text-indent: -0.8em;
    padding-left: .8em;
  }
}

/* オーナー様の声
======================================================= */
.voice {
  background: var(--main-color);
  padding-block: 6rem 8rem;
}

.voice_inner {
  max-width: 120rem;
  width: 90%;
  margin: auto;
}

.voice_desc {
  text-align: center;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  margin-block: 4rem;
}

.voice_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.voice_profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #fff;
}

.voice_profile--img {
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: #e6e6e6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.voice_profile--info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.voice_profile--name {
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.voice_profile--detail {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;

  li {
    text-indent: -0.5em;
    padding-left: 0.5em;
  }
}

.voice_video {
  width: 100%;
  max-width: 115.2rem;
}

.voice_video--player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e6e6e6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video_placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d9d9d9;
}

.play_icon {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  &::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 2.5rem 0 2.5rem 4rem;
    border-color: transparent transparent transparent #6d6d6d;
    margin-left: 0.8rem;
  }
}

/* フィルター
======================================================= */
.filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-block: 5rem 3rem;
  width: 100%;
  margin-inline: auto;
}

.filter--btn {
  max-width: 200px;
  width: 100%;
  height: 40px;
  background: var(--main-color);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 50vmax;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-inline: 2rem;
  text-decoration: none;

  &::after {
		content: "";
		background: url(../img/arrow.svg) no-repeat center/contain;
		width: 6px;
		height: 8px;
		display: block;
		position: absolute;
		right: 15px;
		transition: background 0.3s ease;
	}

  &:hover {
    opacity: 0.9;
  }

  &.active {
    background: #faa32b;
    transition: all 0.3s ease;
  }
}

/* その他のオーナー様の声
======================================================= */
.other_voice {
  background: #f2fdfd;
  padding-block: 6rem 8rem;
}

.other_voice--inner {
  max-width: 120rem;
  width: 90%;
  margin: auto;
}

.other_voice .main_title {
  color: #000;
  border-bottom: 0.2rem solid #000;

  p {
    color: #000;
  }

  &::after {
    border-color: transparent transparent #000 #000;
  }
  &::before {
    background: #f2fdfd;
  }
}

.other_voice_desc {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  font-size: 0; /* 元のテキストを非表示 */
}

.other_voice_desc::before {
  content: "クリックで動画が表示されます";
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.other_voice_slider {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;

  &::before {
    content: '';
    position: absolute;
    left: 6rem;
    top: 0;
    bottom: 0;
    width: 15rem;
    background: linear-gradient(to right, #f2fdfd 15%, rgba(242, 253, 253, 0) 100%);
    pointer-events: none;
    z-index: 10;
  }

  &::after {
    content: '';
    position: absolute;
    right: 7rem;
    top: 0;
    bottom: 0;
    width: 15rem;
    background: linear-gradient(to left, #f2fdfd 15%, rgba(242, 253, 253, 0) 100%);
    pointer-events: none;
    z-index: 10;
  }
}

.ownerSwiper {
  width: calc(100% - 16rem);
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.ownerSwiper.fade-out {
  opacity: 0;
}

.ownerSwiper.fade-in {
  opacity: 1;
}

.owner_card {
  padding-block: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;

  &:hover {
    img{
      transform: scale(1.1, 1.1);
      border-radius: 50%;
      transition: transform 0.3s ease;
    }
  }

  &.active {
    color: #fff;
    background: var(--main-color);
  }

}

/* フェードインアニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 汎用fadeクラス */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.owner_card--img {
  width: 18rem;
  height: 18rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;

  img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
  }
}

.owner_card--name {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
  line-height: 1.6;
}

.owner_card--detail {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: left;

  li {
    text-indent: -1em;
    padding-left: 1em;
  }
}

/* Swiper ナビゲーション */
.other_voice_nav--prev,
.other_voice_nav--next {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: var(--main-color);
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;

  &:hover {
    opacity: 0.8;
  }

  &::after {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    border-top: 0.3rem solid #fff;
    border-right: 0.3rem solid #fff;
    top: 50%;
    left: 50%;
  }
}

.other_voice_nav--prev::after {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.other_voice_nav--next::after {
  transform: translate(-70%, -50%) rotate(45deg);
}

.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.swiper-wrapper.swiper-wrapper--none {
  justify-content: center ;
}
/* レスポンシブ対応
======================================================= */
@media screen and (max-width: 767px) {

  .mv h2 img {
    width: 100%;
    height: auto;
  }

  .story {
    padding-block: 4rem 6rem;
  }

  .story h2 {
    font-size: 2.8rem;
    padding-inline: 1rem;
    line-height: 1.6;
  }

  .st_hint {
    font-size: 1.4rem;
    max-width: 90%;
    margin-block: 2rem 4rem;
    padding: 1.5rem 5%;
  }

  .st_hint span {
    right: 0;
    top: 7.5rem;
    width: 56px;
  }

  .st_bot {
    font-size: 1.4rem;
    padding: 0 5%;
    line-height: 2;
  }

  .anker_link {
    flex-direction: column;
    gap: 70px;
    margin-top: 8rem;
    padding: 0 5%;

    a:nth-child(3) {
      margin-top: -1rem;
    }
  }

  .anker_link a {
    width: 100%;
    max-width: 250px;
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .anker_link--bg {
    width: 100%;
    max-width: 250px;
    height: 90px;
  }

  .promise {
    padding-block: 4rem 6rem;
  }

  .promise .main_title {
    padding-inline: 5%;
  }

  .p_list {
    width: 90%;
    font-size: 1.4rem;
    line-height: 1.8;
    margin-block: 3rem;

    li {
      padding-bottom: 1em;
      text-align: justify;
    }
  }


  /* オーナー様の声 SP */
  .voice {
    padding-block: 4rem 6rem;
  }

  .voice_desc {
    font-size: 1.4rem;
    line-height: 1.6;
  }

  .voice_profile {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .voice_profile--img {
    width: 12rem;
    height: 12rem;
  }

  .voice_profile--name {
    font-size: 2rem;
    letter-spacing: 0;
  }

  .voice_profile--detail {
    font-size: 1.4rem;
    text-align: left;
  }

  .play_icon {
    width: 8rem;
    height: 8rem;

    &::after {
      border-width: 1.5rem 0 1.5rem 2.5rem;
      margin-left: 0.5rem;
    }
  }
  .other_voice_nav--prev{
    left: 0;
  } 
  .swiper-button-next {
    right: 0;
  }

  /* 追従サイドバー */
  .other_voice {
    padding-block: 4rem 6rem;
  }

  .other_voice_desc {
    font-size: 0; /* 元のテキストを非表示 */
  }

  .other_voice_desc::before {
    content: "タップで動画が表示されます";
    font-size: 1.4rem;
  }

  .other_voice_slider {
    gap: 1rem;

    &::before,
    &::after {
      display: none;
    }
  }

  .ownerSwiper {
    width: calc(100% - 10rem);
  }

  .other_voice_nav--prev,
  .other_voice_nav--next {
    width: 4rem;
    height: 4rem;

    &::after {
      width: 1rem;
      height: 1rem;
      border-width: 0.2rem;
    }
  }

  .owner_card {
    padding: 1.5rem;
  }

  .owner_card--img {
    width: 12rem;
    height: 12rem;
  }

  .owner_card--name {
    font-size: 1.8rem;
  }

  .owner_card--detail {
    font-size: 1.2rem;
  }

  .filter {
    flex-wrap: wrap;
  }

  .filter--btn {
    width: calc(50% - 0.5rem);
    font-size: 1.2rem;
    letter-spacing: 0;

    &::after {
      right: 15px;
      width: 6px;
      height: 10px;
    }
  }

}

/* モーダルウィンドウ
======================================================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.modal_content {
  position: relative;
  background: var(--main-color);
  max-width: 850px;
  width: 90%;
  max-height: calc(90svh - 10rem);
  overflow-y: auto;
  padding: 6rem;
  z-index: 1001;
  transform: translateY(2rem);
  transition: transform 0.3s ease;

  /* スクロールバーカスタマイズ（WebKit系） */
  &::-webkit-scrollbar {
    width: 0.8rem;
  }

  &::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.4rem;
  }

  &::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.4rem;

    &:hover {
      background: rgba(255, 255, 255, 0.8);
    }
  }

  /* スクロールバーカスタマイズ（Firefox） */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.6) rgba(255, 255, 255, 0.2);
}

.modal[aria-hidden="false"] .modal_content {
  transform: translateY(0);
}

.modal_close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;

  span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.4rem;
    height: 0.3rem;
    background: #fff;
    border-radius: 0.2rem;
  }

  span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  &:hover {
    opacity: 0.7;
  }
}

.modal_profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #fff;
  margin-bottom: 3rem;
}

.modal_profile--img {
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: #e6e6e6;
  overflow: hidden;
  flex-shrink: 0;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.modal_profile--info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal_profile--name {
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.modal_profile--detail {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;

  li {
    text-indent: -0.5em;
    padding-left: 0.5em;
  }
}

.modal_video {
  width: 100%;
  margin-bottom: 3rem;
}

.modal_video--player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e6e6e6;
  overflow: hidden;
}

/* body スクロール禁止 */
body.modal-open {
  overflow: hidden;
}

/* モーダル レスポンシブ対応 */
@media screen and (max-width: 767px) {
  .modal_content {
    padding: 6rem 0;
    background: none;
    width: 100%;
    max-height: 100dvh;
  }

  .modal_video--player {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
  }

  .modal_close {
    top: 1rem;
    right: 1rem;
    width: 3.5rem;
    height: 3.5rem;

    span {
      width: 2rem;
    }
  }

  .modal_profile {
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-direction: column;
    display: none;
  }

  .modal_profile--img {
    width: 10rem;
    height: 10rem;
  }

  .modal_profile--name {
    font-size: 1.7rem;
    letter-spacing: 0;
  }

  .modal_profile--detail {
    font-size: 1.4rem;
  }

  .modal_video {
    margin-bottom: 2rem;
  }
}