/*
  ファンド・事業者詳細ページ 共通スタイル
 */
.favorite-icon-area {
  display: flex;
  align-items: center;
  margin-right: 24px;
}

@media screen and (max-width: 767px) {
  .favorite-icon-area {
    margin-right: 16px;
  }
}

.fund-logo-area {
  height: 50px;
}

.fund-logo {
  max-height: 50px;
  max-width: 215px;
}

@media screen and (max-width: 767px) {
  .fund-logo-area {
    height: 30px;
  }

  .fund-logo {
    max-height: 30px;
    max-width: 129px;
  }
}

/* 運営会社・サービスの概要 */
.related-information {
  display: flex;
  justify-content: center;
  gap: 0 31px;
}

@media screen and (max-width: 1300px) {
  .related-information {
    display: flex;
    flex-direction: column;
    gap: 48px 0;
  }
}

@media screen and (max-width: 767px) {
  .related-information {
    gap: 56px 0;
  }
}

.information-content {
  width: 624px;
  height: 553px;
  border-radius: 8px;
  padding: 40px 40px 24px;
  box-shadow: 0px 2px 8px 3px rgba(0, 0, 0, 0.08), 0px 2px 16px 0px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px 0;
}

@media screen and (max-width: 1300px) {
  .information-content {
    margin: 0 auto;
  }
}

@media screen and (max-width: 699px) {
  .information-content {
    width: 359px;
    gap: 16px 0;
  }
}

.information-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  padding: 0 0 12px;
}

@media screen and (max-width: 699px) {
  .information-title {
    font-weight: 700;
  }
}

.information-logo {
  display: flex;
  align-items: center;
  height: 50px;
}

.information-logo img {
  max-height: 40px;
}

@media screen and (max-width: 699px) {
  .information-logo {
    padding: 0 20px 0 0;
  }
}

.information-detail {
  height: 384px;
  overflow: auto;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

.information-detail-no-logo {
  height: 424px;
  overflow: auto;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

/* 取扱ファンド */
.handling-fund-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 7px;
  width: 300px;
}

@media screen and (min-width: 768px) {
  .handling-fund-list {
    width: 616px;
    gap: 16px 16px;
  }
}

@media screen and (min-width: 1000px) {
  .handling-fund-list {
    width: 948px;
    gap: 16px;
  }
}

@media screen and (min-width: 1350px) {
  .handling-fund-list {
    width: 1248px;
    gap: 16px;
  }
}

/*
  ファンド詳細ページスタイル
 */
.top-fund-card {
  width: 1280px;
  padding: 16px 0 24px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px 0;
  border-radius: 8px;
  box-shadow: 0px 2px 8px 3px rgba(0, 0, 0, 0.08), 0px 2px 16px 0px rgba(0, 0, 0, 0.16);
}

@media screen and (max-width: 1300px) {
  .top-fund-card {
    width: 624px;
  }
}

@media screen and (max-width: 699px) {
  .top-fund-card {
    width: 359px;
    padding: 12px 0;
    gap: 8px 0;
  }
}

.fund-detail-contents {
  padding: 0 24px;
}

@media screen and (max-width: 767px) {
  .fund-detail-contents {
    padding: 0 16px;
  }
}

.fund-name-area {
  background-color: #fff8ca;
  color: #333333;
  margin-top: 8px;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-height: 50px;
}

@media screen and (max-width: 767px) {
  .fund-name-area {
    font-size: 14px;
    font-weight: 400;
    line-height: 40px;
  }
}

.fund-contents-area {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0 24px;
}

.fund-contents-area div:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

@media screen and (max-width: 767px) {
  .fund-contents-area {
    grid-template-rows: 170px 90px;
    margin-top: 8px;
    gap: 8px;
  }

  .fund-contents-area div:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  .fund-contents-area div:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }
}

.fund-image {
  object-fit: contain;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.detail-lavel {
  font-size: 16px;
}

.detail-value {
  font-size: 20px;
}

@media screen and (max-width: 767px) {
  .detail-lavel {
    font-size: 10px;
  }

  .detail-value {
    font-size: 16px;
  }
}

.fund-detail-first div p,
.fund-detail-second div p {
  margin: 0;
}

.fund-detail-first {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fund-detail-first .detail-area {
  display: flex;
  width: 100%;
  padding: 10px 0;
}

.fund-detail-first .detail-area div {
  width: 100%;
  border-right: 1px solid #d9d9d9;
}

.fund-detail-first .detail-area div:last-child {
  border-right: none;
}

.fund-detail-first .detail-area:nth-child(2) {
  border-top: 1px solid #d9d9d9;
}

.fund-detail-first div div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
}

@media screen and (max-width: 767px) {
  .fund-detail-first .detail-area.column-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .detail-area div:nth-child(2) {
    border-right: none;
  }

  .detail-area.column-3 div:nth-child(3) {
    margin-top: 4px;
    border-top: 1px solid #d9d9d9;
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }
}

.fund-detail-second {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fund-detail-second div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
  height: 100%;
  border-top: 1px solid #d9d9d9;
}

@media screen and (max-width: 767px) {
  .fund-detail-second {
    display: flex;
    flex-direction: row;
    gap: 0 8px;
    height: 90px;
  }

  .fund-detail-second div {
    border-top: none;
  }

  .fund-detail-second div:nth-child(1) {
    width: 60%;
  }

  .fund-detail-second div:nth-child(2) {
    width: 40%;
  }

  .fund-detail-second .detail-lavel {
    font-size: 12px;
  }
}


.link-button-area {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0 31px;
}

.cta-button-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px 0;
}

.related-information .cta-button-area {
  margin-top: -30px;
}

@media screen and (max-width: 1300px) {
  .link-button-area {
    flex-direction: column;
    align-items: center;
    gap: 16px 0;
  }

  .related-information .cta-button-area {
    margin-top: 0;
  }
}


/*
  事業者詳細ページスタイル
 */
/* 事業者カード */
.top-tenant-card {
  width: 100%;
  max-width: 1280px;
  padding: 48px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 0px 2px 8px 3px rgba(0, 0, 0, 0.08), 0px 2px 16px 0px rgba(0, 0, 0, 0.16);
}

@media screen and (max-width: 1300px) {
  .top-tenant-card {
    max-width: 624px;
  }
}

@media screen and (max-width: 767px) {
  .top-tenant-card {
    margin-bottom: 24px;
  }
}

@media screen and (max-width: 699px) {
  .top-tenant-card {
    max-width: 359px;
    padding: 16px 0;
    gap: 8px 0;
  }
}

.top-tenant-card .favorite-icon-area {
  margin-bottom: -24px;
  z-index: 100;
}

@media screen and (max-width: 920px) {
  .top-tenant-card .favorite-icon-area {
    margin-bottom: 0;
  }
}

.tenant-detail-contents {
  display: flex;
  justify-content: space-between;
  gap: 0 30px;
}

@media screen and (max-width: 920px) {
  .tenant-detail-contents {
    display: flex;
    flex-direction: column;
    gap: 0 30px;
  }
}

@media screen and (max-width: 920px) {
  .tenant-detail-top-area {
    display: flex;
    justify-content: space-between;
  }
}

.tenant-detail-bottom-area {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.tenant-detail-top-area,
.tenant-detail-bottom-area {
  width: 40%;
}

@media screen and (max-width: 920px) {
  .tenant-detail-top-area,
  .tenant-detail-bottom-area {
    width: 100%;
    padding: 0 16px;
  }
}

.tenant-logo-review-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tenant-review-area {
  display: flex;
  align-items: center;
  gap: 0 16px;
  margin-top: 16px;
}

.tenant-review-area div {
  display: flex;
}

@media screen and (max-width: 920px) {
  .tenant-review-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px 0;
  }
}

/* チャート */
.tenant-show-radar-chart {
  width: 405px;
}

@media screen and (max-width: 1300px) {
  .tenant-show-radar-chart {
    width: 100%;
  }
}

@media screen and (max-width: 920px) {
  .tenant-show-radar-chart {
    width: 50%;
  }
}

/* 詳細情報テーブル */
.tenant-table-area {
  display: flex;
  flex-direction: column;
}

.tenant-table-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d9d9d9;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  padding: 12px;
}

@media screen and (max-width: 1300px) {
  .tenant-table-item {
    padding: 8px;
  }
}

@media screen and (max-width: 920px) {
  .tenant-table-item {
    font-size: 14px;
  }
}

.table-item-value {
  font-size: 20px;
}

.table-item-value span {
  font-size: 14px;
}

.table-item-rank {
  font-weight: 700;
}

/* 紹介動画 - 1枚の場合 */
.tenant-introduction-movie .count-one {
  width: 100%;
  max-width: 700px;
  margin: 16px auto 0;
  padding: 0 16px;
}

.tenant-introduction-movie .count-one iframe {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 16/9;
}
/* 紹介動画 - 1枚以上の場合（swiper） */
.tenant-slider-content {
  overflow: hidden;
  margin-top: 16px;
}

.tenant-slider-content .swiper {
  max-width: 94%;
  margin: 0 auto;
  overflow: visible;
}

.tenant-slider-content .swiper-wrapper {
  pointer-events: auto;
}

.tenant-slider-content .swiper-slide {
  transform: scale(1);
}

.tenant-slider-content .swiper-slide .thumbnail {
  width: 100%;
  max-width: 860px;
  height: auto;
  object-fit: contain;
  aspect-ratio: 16/9;
}

.tenant-slider-content .swiper-slide .icon-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tenant-slider-content .swiper-pagination {
  position: relative;
  bottom: 0;
}

.tenant-slider-content .swiper-pagination-bullet {
  width: 46px;
  height: 4px;
  margin: 0 8px;
  border-radius: 0;
  outline: none;
}

.tenant-slider-content .swiper-pagination-bullet-active {
  background: #dcd081;
}

@media screen and (max-width: 767.8px) {
  .tenant-slider-content .swiper {
    max-width: 90%;
  }
}

/* サムネイルクリック時のモーダル */
body.modal-is-open {
  overflow: hidden;
}

.detail-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 9999;
  transition: 0.3s ease-out;
  opacity: 1;
  visibility: visible;
}

.detail-modal.hidden {
  opacity: 0;
  visibility: hidden;
}

.detail-modal-bg {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: -1;
  background: rgba(0, 0, 0, 0.7);
}

.detail-modal-body {
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
  padding: 40px 32px 24px;
  position: relative;
}

.detail-modal-close-button {
  position: absolute;
  top: 2px;
  right: 32px;
  cursor: pointer;
}

.detail-modal-close-button span {
  display: inline-block;
  position: relative;
  width: 32px;
  height: 2px;
  background: var(--color-white);
  transform: rotate(45deg);
}

.detail-modal-close-button span::before {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--color-white);
  transform: rotate(-90deg);
}

.detail-modal iframe {
  display: inline-block;
  max-width: 100%;
  max-height: calc(100vh - 64px);
  height: auto;
  aspect-ratio: 16/9;
}

/* 事業者の評判・レビュー */
.tenant_detail_card_review {
  margin: 16px 0 0;
}

@media screen and (max-width: 920px) {
  .tenant_detail_card_review {
    margin: 16px 16px 0;
  }
}

.tenant_detail_card_review_link {
  display: block;
  padding: 4px;
  border: 1px solid #afafaf;
  border-radius: 4px;
  background-color: rgba(249, 232, 122, 0.25);
  text-align: left;
  text-decoration: none;
}

.tenant_detail_card_review_top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #fff;
}

.tenant_detail_card_review_top_left {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 700px) {
  .tenant_detail_card_review_top_left {
    justify-content: space-between;
    width: 100%;
  }
}

.tenant_detail_card_review_headline {
  position: relative;
  margin: 0 16px 0 0;
  padding: 8px 24px 8px 8px;
  background-color: #f9e87a;
  color: #343434;
  font-size: 16px;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
}

@media screen and (max-width: 700px) {
  .tenant_detail_card_review_headline {
    margin: 0;
    font-size: 11px;
  }
}

.tenant_detail_card_review_headline::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-bottom: 40px solid #fff;
}

.tenant_detail_card_review_post_date {
  margin: 0 16px 0 0;
  color: #c3c3c3;
  font-size: 16px;
  white-space: nowrap;
}

@media screen and (max-width: 700px) {
  .tenant_detail_card_review_post_date {
    margin: 0;
    padding-right: 12px;
    font-size: 11px;
  }
}

.tenant_detail_card_review_tags {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 0 4px;
}

@media screen and (max-width: 1122px) {
  .tenant_detail_card_review_tags.pc {
    display: none;
  }
}

@media screen and (max-width: 1122px) {
  .tenant_detail_card_review_tags {
    justify-content: flex-start;
    padding: 4px 0 8px;
    border-top: 1px solid #8f8f8f;
  }
}

.tenant_detail_card_review_tag {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: #f8f8f8;
  color: #3869e6;
  font-size: 12px;
  text-decoration: none;
}

.tenant_detail_card_review_bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background-color: #fff;
}

@media screen and (max-width: 700px) {
  .tenant_detail_card_review_bottom {
    display: block;
    padding: 20px 12px 18px;
  }
}

.tenant_detail_card_review_title {
  margin: 0 16px 0 0;
  color: #343434;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
}

@media screen and (max-width: 700px) {
  .tenant_detail_card_review_title {
    margin: 0;
  }
}

.tenant_detail_card_review_read_more_link {
  display: inline-block;
  position: relative;
  margin: 0 0 0 -3px;
  padding-right: 12px;
  color: #343434;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

@media screen and (max-width: 700px) {
  .tenant_detail_card_review_read_more_link {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-right: 12px;
    text-align: right;
  }
}

.tenant_detail_card_review_read_more_link::after {
  content: '';
  position: absolute;
  top: 1px;
  right: 0;
  bottom: 0;
  width: 9px;
  height: 9px;
  margin: auto;
  border-top: 2px solid #343434;
  border-right: 2px solid #343434;
  vertical-align: middle;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.tenant_detail_card_review_bottom_tags {
  display: none;
}

@media screen and (max-width: 1122px) {
  .tenant_detail_card_review_bottom_tags {
    display: block;
    padding: 0 12px;
    background-color: #fff;
  }
}
