/* 取引所比較ページ用スタイル */

/* scoped スタイル */
.ComparisonPage__Section {
  margin: 0 auto;
}

@media (max-width: 767px) {
  .ComparisonPage__Section {
    width: 95%;
  }
}

.ComparisonPage__Section.-full {
  width: 100%;
}

.ComparisonPage__Content {
  max-width: 100%;
  overflow: auto;
}

/* グローバルスタイル */
.ComparisonPage__Content .table-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .ComparisonPage__Content .table-wrapper {
    flex-direction: column;
  }
}

.ComparisonPage__Content .table-wrapper .table-box {
  flex-basis: 65%;
}

@media (max-width: 767px) {
  .ComparisonPage__Content .table-wrapper .table-box {
    flex-basis: 100%;
  }
}

.ComparisonPage__Content .table-wrapper .description {
  flex-basis: 35%;
  padding-left: 15px;
}

@media (max-width: 767px) {
  .ComparisonPage__Content .table-wrapper .description {
    flex-basis: 100%;
    padding-top: 15px;
    padding-left: 0;
  }
}

.ComparisonPage__Content .table-box {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  font-size: 12px;
}

.ComparisonPage__Content .table-box table {
  position: relative;
  background-color: #fff;
  border-collapse: collapse;
  border-spacing: 0;
  letter-spacing: 0.04rem;
}

.ComparisonPage__Content .table-box th:first-child,
.ComparisonPage__Content .table-box td:first-child {
  background-color: #10bdc2;
  word-break: keep-all;
  color: #fff;
  font-weight: bold;
  vertical-align: middle;
  position: sticky;
  left: 0;
  padding: 0.5em;
  z-index: 1;
  border-top: none;
  border-left: none;
  border-bottom: 1px solid #0ea6aa;
  border-right: none;
  min-width: 120px;
}

@media (max-width: 767px) {
  .ComparisonPage__Content .table-box th:first-child,
  .ComparisonPage__Content .table-box td:first-child {
    min-width: 90px;
  }
}

.ComparisonPage__Content .table-box th:first-child::before,
.ComparisonPage__Content .table-box th:first-child::after,
.ComparisonPage__Content .table-box td:first-child::before,
.ComparisonPage__Content .table-box td:first-child::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #0ea6aa;
}

.ComparisonPage__Content .table-box th:first-child::before,
.ComparisonPage__Content .table-box td:first-child::before {
  top: -1px;
}

.ComparisonPage__Content .table-box th:first-child::after,
.ComparisonPage__Content .table-box td:first-child::after {
  bottom: -1px;
}

.ComparisonPage__Content .table-box th:first-child a,
.ComparisonPage__Content .table-box td:first-child a {
  color: #fff;
}

.ComparisonPage__Content .table-box thead th,
.ComparisonPage__Content .table-box thead td {
  background-color: #10bdc2;
  color: #fff;
  font-weight: bold;
}

.ComparisonPage__Content .table-box th p,
.ComparisonPage__Content .table-box td p {
  margin: 0;
}

.ComparisonPage__Content .table-box td {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  padding: 0.5em;
  min-width: 150px;
}

@media (max-width: 767px) {
  .ComparisonPage__Content .table-box td {
    min-width: 135px;
  }
}

.ComparisonPage__Content .description p {
  margin: 0;
}

.ComparisonPage__Content .CheckPoint .checktext {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ComparisonPage__Content .CheckPoint .checktext li {
  border-bottom: 2px dashed;
  border-color: #cdcdcd;
  position: relative;
  margin: 0.5em 0;
  padding: 0 0 0.5em 1.4em;
  text-decoration: underline;
  text-decoration-color: red;
}

.ComparisonPage__Content .CheckPoint .checktext li:last-child {
  border: none;
}

.ComparisonPage__Content .CheckPoint .checktext li::before {
  font-family: 'Font Awesome 5 Free';
  content: "\f058";
  color: #10bdc2;
  position: absolute;
  left: 0;
  top: 5px;
}

.ComparisonPage__Content .RecommendSmartphoneAppList {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0;
}

.ComparisonPage__Content .RecommendSmartphoneAppListItem {
  margin-left: 0;
  padding: 0.5rem;
  list-style: none;
  flex-basis: 100%;
}

@media (min-width: 768px) {
  .ComparisonPage__Content .RecommendSmartphoneAppListItem:nth-child(-n+2) {
    flex-basis: 50%;
  }

  .ComparisonPage__Content .RecommendSmartphoneAppListItem:nth-child(n+3) {
    flex-basis: calc(100% / 3);
  }
}

.ComparisonPage__Content .RecommendSmartphoneAppListItem h4 {
  margin: 0;
}

/* 記事内容の汎用スタイルはstyle.cssに統合済み */

/* テーブル非表示 */
.exchange-comparison-table .hidden {
  display: none;
}

/* ソートアイコン */
.sort-icon {
  margin-left: 5px;
  transition: opacity 0.3s;
}

/* ===== comparison.cssから統合されたスタイル ===== */

.comparison-page {
    margin: 0 auto;
    max-width: 1200px;
}

.comparison-section {
    margin: 0 auto 40px;
    width: 95%;
}

.comparison-section.full-width {
    width: 100%;
}

/* ランキング表示 */
.comparison-ranking-exchange {
    margin-bottom: 3em;
    padding-bottom: 2em;
    /* border-bottom: 1px solid #e0e0e0; */
    background: white;
    font-size: 13px;
    letter-spacing: 0.04rem;
}

.exchange-name {
  color: #fff;
}

.exchange-overview {
    border: 1px solid #e0e0e0;
    display: grid;
    grid-template-areas:
        "title title title"
        "summary recommend image";
    grid-template-columns: 20% 30% 50%;
}

@media (max-width: 768px) {
    .exchange-overview {
        grid-template-columns: 25% 40% 35%;
    }
}

.exchange-title {
    grid-area: title;
    background: #10bdc2;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.5em;
    color: white;
    margin: 0;
}

.ranking {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.25rem;
    background-color: white;
    border-radius: 50%;
    margin-right: 10px;
}

.rank-number {
    display: inline-flex;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-align: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    background: linear-gradient(to right, #10bdc2 0%, #68e0cf 100%);
}

.rank-number.rank-1,
.rank-number.rank-2,
.rank-number.rank-3 {
    font-size: 14px;
}

.rank-number.rank-1 {
    background: linear-gradient(45deg, #b67b03 0%, #daaf08 45%, #fee9a0 70%, #daaf08 85%, #b67b03 90% 100%);
}

.rank-number.rank-2 {
    background: linear-gradient(45deg, #757575 0%, #9e9e9e 45%, #e8e8e8 70%, #9e9e9e 85%, #757575 90% 100%);
}

.rank-number.rank-3 {
    background: linear-gradient(45deg, #6c2e16 0%, #97461a 45%, #fbd8c5 70%, #97461a 85%, #6c2e16 90% 100%);
}

.valuation-summary {
    grid-area: summary;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
    border-right: 1px solid #e0e0e0;
}

.valuation-summary .number {
    font-size: 2em;
    font-weight: bold;
    color: #10bdc2;
}

.recommendation {
    grid-area: recommend;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
    border-right: 1px solid #e0e0e0;
}

.reputation-section {
    grid-area: reputation;
}

.reputation-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.reputation-item {
    flex: 1;
    min-width: 250px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #f9f9f9;
    padding: 0.8em;
}

.reputation-item .reputation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.star-rating {
    color: #ffb500;
    font-size: 1.2em;
}

.reputation-item .user-info {
    font-size: 0.9em;
    color: #666;
}

@media (max-width: 768px) {
    .reputation-list {
        flex-direction: column;
        gap: 10px;
    }

    .reputation-item {
        min-width: auto;
    }
}

.exchange-image {
    grid-area: image;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
}

.exchange-image img {
    max-width: 100%;
    max-height: 60px;
}

/* 取引所詳細部分 */
.exchange-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-areas:
        "banner points"
        "chart points"
        "reputation reputation"
        "link link";
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .exchange-details {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "banner chart"
            "points points"
            "reputation reputation"
            "link link";
        gap: 15px;
    }
}

/* バナー画像リンク */
.banner-wrapper {
    grid-area: banner;
    text-align: center;
    margin-bottom: 10px;
}

.banner-wrapper a {
    display: block;
    text-decoration: none;
}

.banner-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.banner-wrapper img:hover {
    transform: scale(1.02);
}

/* 水平棒グラフ用スタイル */
.chart-wrapper {
    grid-area: chart;
    width: 100%;
    max-width: 400px;
    height: 250px;
    margin: 0 auto;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .chart-wrapper {
        max-width: 350px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .chart-wrapper {
        max-width: 300px;
        height: 180px;
        padding: 10px;
    }
}

.radar-chart {
    width: 100% !important;
    height: 100% !important;
}

.point-list {
    grid-area: points;
    padding-right: 0.5rem;
}

.point-list .point {
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
}

.point-list .point h4 {
  grid-area: title;
  background: #10bdc2;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.5em;
  color: white;
  margin: 0;
}

.point-list .point p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    padding-top: 0.5rem;
}

/* LinkWrapperのスタイル */
.comparison-ranking-exchange__link-wrapper {
  position: relative;
  grid-area: link;
}

.comparison-ranking-exchange__link-wrapper a {
  overflow: hidden;
  position: relative;
}

.comparison-ranking-exchange__link-wrapper a::before {
  animation: reflection 2.5s ease-in-out infinite;
  background-color: white;
  content: "";
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: -180px;
  transform: rotate(45deg);
  width: 30px;
}

/* 複数のリンクボタンがある場合のアニメーション遅延 */
.comparison-ranking-exchange__link-wrapper + .comparison-ranking-exchange__link-wrapper a::before {
  animation-delay: 0.3s;
}

/* リフレクションアニメーション */
@keyframes reflection {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  81% {
    transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}

/* スマートフォン用スタイル */
@media (max-width: 768px) {
  .comparison-ranking-exchange__link-wrapper {
    padding: 0 10px;
  }
}

/* ボタンスタイル（button-cvミックスインの内容） */
.comparison-ranking-exchange__link {
  position: relative;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 15px 30px 5px;
  color: white !important;
  font-weight: bold;
  background: linear-gradient(#ff9700, #ff9700);
  box-shadow: 0 5px 0 0 rgba(218, 206, 184, 0.65);
  transition: 0.2s;
  font-size: 1.2em;
  text-decoration: none;
  width: 100%;
  margin-top: 20px;
}

.comparison-ranking-exchange__link::after {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  position: absolute;
  top: 50%;
  right: 17px;
  transform: translateY(-50%) rotate(45deg);
  border-style: solid;
  border-color: white;
  border-width: 3px 3px 0 0;
  color: white;
}

.comparison-ranking-exchange__link:hover {
  opacity: 1;
  transform: translateY(5px);
  box-shadow: none;
  color: white !important;
  text-decoration: none;
}

/* 比較テーブル */
.comparison-ranking-table {
    position: relative;
    font-size: 12px;
    margin-bottom: 1.5rem;
}

.table-inner {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
}

.comparison-table {
    position: relative;
    background-color: white;
    border-collapse: collapse;
    border-spacing: 0;
    letter-spacing: 0.04rem;
    min-width: 100%;
}

.header-cell {
    background-color: #10bdc2;
    word-break: keep-all;
    color: white;
    font-weight: bold;
    vertical-align: middle;
    position: sticky;
    left: 0;
    padding: 0.5em;
    z-index: 10;
    border-bottom: 1px solid #0ea6aa;
    min-width: 120px;
}

@media (max-width: 768px) {
    .header-cell {
        min-width: 90px;
    }
}

.header-cell::before,
.header-cell::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: #0ea6aa;
}

.header-cell::before {
    top: -1px;
}

.header-cell::after {
    bottom: -1px;
}

.cell {
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 0.5em;
    min-width: 150px;
    vertical-align: top;
}

@media (max-width: 768px) {
    .cell {
        min-width: 135px;
    }
}

.name-cell {
    padding: 0.3rem;
}

.image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.3rem;
    height: 40px;
}

@media (max-width: 768px) {
    .image-wrapper {
        height: 30px;
    }
}

.image-wrapper img {
    max-height: 100%;
}

.detail-link {
    display: inline-block;
    background: linear-gradient(to bottom, #10bdc2, #0ea6aa);
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1em;
    text-align: center;
    transition: all 0.3s ease;
}

.detail-link:hover {
    background: linear-gradient(to bottom, #0ea6aa, #10bdc2);
    transform: translateY(-2px);
}

/* 目次 */
.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
}

.table-of-contents li {
    margin-bottom: 10px;
}

.table-of-contents li:last-child {
    margin-bottom: 0;
}

.table-of-contents a {
    text-decoration: none;
    color: #10bdc2;
    font-weight: bold;
    padding: 5px 0;
    display: block;
}

.table-of-contents a:hover {
    color: #0ea6aa;
}

/* コンテンツエリア */
.comparison-content {
    max-width: 100%;
    overflow: auto;
}

.comparison-content .table-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .comparison-content .table-wrapper {
        flex-direction: column;
    }
}

.comparison-content .table-box {
    flex-basis: 65%;
}

@media (max-width: 768px) {
    .comparison-content .table-box {
        flex-basis: 100%;
    }
}

.comparison-content .description {
    flex-basis: 35%;
    padding-left: 15px;
}

@media (max-width: 768px) {
    .comparison-content .description {
        flex-basis: 100%;
        padding-top: 15px;
        padding-left: 0;
    }
}

.ComparisonRankingTable {
  position: relative;
  z-index: 10; /* z-index値は適宜調整 */
  font-size: 12px;
  margin-bottom: 1.5rem;
}

.ComparisonRankingTable__Inner {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
}

.ComparisonRankingTable__Table {
  position: relative;
  background-color: #ffffff;
  border-collapse: collapse;
  border-spacing: 0;
  letter-spacing: 0.04rem;
}

.ComparisonRankingTable__HeaderCell {
  background-color: #0ea6aa; /* $c_leading の値 */
  word-break: keep-all;
  color: #ffffff;
  font-weight: bold;
  vertical-align: middle;
  position: sticky;
  left: 0;
  padding: 0.5em;
  z-index: 11; /* ComparisonRankingTableHeaderのz-index */
  border-bottom: 1px solid #0ea6aa;
  min-width: 120px;
}

/* スマートフォン画面用 */
@media screen and (max-width: 768px) {
  .ComparisonRankingTable__HeaderCell {
    min-width: 90px;
  }
}

.ComparisonRankingTable__HeaderCell::before,
.ComparisonRankingTable__HeaderCell::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: #0ea6aa;
}

.ComparisonRankingTable__HeaderCell::before {
  top: -1px;
}

.ComparisonRankingTable__HeaderCell::after {
  bottom: -1px;
}

.ComparisonRankingTable__Cell {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 0.5em;
  min-width: 150px;
}

/* スマートフォン画面用 */
@media screen and (max-width: 768px) {
  .ComparisonRankingTable__Cell {
    min-width: 135px;
  }
}

.ComparisonRankingTable__Rank {
  display: inline-flex;
  width: 20px;
  height: 20px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-align: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  background: linear-gradient(to right, #0ea6aa 0%, #68e0cf 100%);
}

.ComparisonRankingTable__Rank.-rank1,
.ComparisonRankingTable__Rank.-rank2,
.ComparisonRankingTable__Rank.-rank3 {
  font-size: 14px;
}

.ComparisonRankingTable__Rank.-rank1 {
  background: linear-gradient(45deg, #b67b03 0%, #daaf08 45%, #fee9a0 70%, #daaf08 85%, #b67b03 90% 100%);
}

.ComparisonRankingTable__Rank.-rank2 {
  background: linear-gradient(45deg, #757575 0%, #9e9e9e 45%, #e8e8e8 70%, #9e9e9e 85%, #757575 90% 100%);
}

.ComparisonRankingTable__Rank.-rank3 {
  background: linear-gradient(45deg, #6c2e16 0%, #97461a 45%, #fbd8c5 70%, #97461a 85%, #6c2e16 90% 100%);
}

.ComparisonRankingTable__NameCell {
  padding: 0.3rem;
}

.ComparisonRankingTable__ImageWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.3rem;
  height: 40px;
}

/* スマートフォン画面用 */
@media screen and (max-width: 768px) {
  .ComparisonRankingTable__ImageWrapper {
    height: 30px;
  }
}

.ComparisonRankingTable__ImageWrapper img {
  max-height: 100%;
}

.ComparisonRankingTable__LinkWrapper {
  /* reflection mixin の代替 - 適宜調整 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 3px;
}

.ComparisonRankingTable__Link {
  /* button-cv mixin の代替 - ボタンスタイル */
  display: inline-block;
  background-color: #0ea6aa;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 1em;
  text-align: center;
  transition: background-color 0.3s ease;
}

.ComparisonRankingTable__Link:hover {
  background-color: #0c8a8d;
  color: #ffffff;
  text-decoration: none;
}

.ComparisonRankingTable__Name {
  margin-left: 0.5rem;
}