html {
  background: #f3f3f3;
  font-size: 62.5%; /* 16px * 62.5% = 10px */
  width: 100%;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  margin: 0 auto;
  max-width: 646px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-size: 1.6rem;
}

main {
  padding: 0 20px;
}

.margin-top20 {
  display: block;
  margin-top: 20px;
}

.margin-top10 {
  display: block;
  margin-top: 10px;
}

.margin-top30 {
  display: block;
  margin-top: 30px;
}

.margin-top40 {
  display: block;
  margin-top: 40px;
}

/* ================ 欧文フォントにする ================ */
.font-english {
    font-family: "Inter", sans-serif;
}

/* ================ 上付き文字にする ================ */
.example {
	font-size: 0.8em;
	vertical-align: top;
}

/* ================ テキスト調整 ================ */

.text-bold {
  font-weight: 700;
}

.text-red {
  color: #ED1846;
  font-weight: 700;
}

.text-highlight {
  background: linear-gradient(transparent 60%, #FFEF61 60%);
}

.text-small {
  font-size: 1.2rem;
}

.block-description.align-right {
  text-align: right;
}

.text-link {
  color: #0060C7;
  text-decoration: underline;
}




/* ================ ヘッダー ================ */
.site-header {
  padding: 10px 10px;
  height: 40px;
  display: none;
}

/* ================ タイトル・メインビジュアル ================ */
.mv h1 {
    display: none;
}

.mv-img {
    width: 100%;
    height: auto;
    margin-bottom: 20px; 
}

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

/* ================ 説明セクション ================ */

.block-description {
    padding: 0 0 20px;
}

.block-description h2 {
    background-color: #E6F8FF;
    border-left: solid 6px #0060C7;
    padding: 10px 16px;
    margin-bottom: 12px;
    font-size: 1.8rem;
    font-weight: 700;
}

.block-description h3 {
    border-bottom: solid 2px #0060C7;
    padding-bottom: 5px;
    margin-bottom: 12px;
    font-size: 1.8rem;
    font-weight: 700;
}

.block-description p {
    margin-bottom: 20px;
}

.block-description__img {
    width: 100%;
    height: auto;
    margin: 0 auto 24px; 
}

.block-description__img img {
    width: 100%;
    height: auto;
}

.block-description p + h3 {
    margin-top: 40px; /* pタグの後にh3が来たときは余白を追加 */
}

/* ================ ランキングセクション ================ */

.block-ranking {
    width: 100%;
    padding: 0 0 40px;
}

.block-ranking__title {
    background: linear-gradient(to right, #0060C7, #002F61);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.block-ranking__title div {
    display: inline-block;
    background: #FFED65;
    color: #01458E;
    padding: 0 16px;
    margin: 0 auto 10px;
    border-radius: 50px;
}

.block-ranking__title  img{
    width: 100%;
    height: auto;
}

/* ── テーブル全体 ─────────────────────────── */
.ranking-scroll {
    width: 100%;
    overflow-x: auto;
}
.ranking-table {
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; 
    font-size: 1.2rem;
    line-height: 1.8rem;
    text-align: center;
    background-color: #fff;
    margin: 10px 0 10px;
}
.ranking-table th {
  width: 201px;
  padding: 10px 10px 0;
  background-clip: padding-box; /* 背景色が境界を侵食しないように */
  border: none;
}
.ranking-table td {
  width: 201px;
  padding:10px;
  background-clip: padding-box; /* 背景色が境界を侵食しないように */
  border: none;
}
.ranking-table h3 {
    background-color: #0060C7;
    color: #fff;
    border-radius: 100px;
    padding: 5px 16px;
    width: fit-content;
    margin: 0 auto 10px;
    line-height: 1.5rem;
}

@media (max-width:646px) {
    .ranking-table {
        font-size: 1.1rem;
        line-height: 1.5rem;
    }
    .ranking-table h3 {
        font-size: 1rem;
        line-height: 1.2rem;
        padding: 4px 10px;
        margin: 0 auto 8px;
    }
    .ranking-table th {
        width: calc((100vw - 42px) / 3);
        padding: 10px 5px 0; 
    }
    .ranking-table td {
        width: calc((100vw - 42px) / 3);
        padding: 10px 5px; 
    }
}

/* ── 交互背景色設定 ─────────────────────────── */

/* 1〜3行目までは常に白 */
.ranking-table tbody tr:nth-child(-n+3) td {
  background: #fff;
}

/* 4行目以降で交互色 */
.ranking-table tbody tr:nth-child(odd):nth-child(n+3) td {
  background: #fff;
}
.ranking-table tbody tr:nth-child(even):nth-child(n+3) td {
  background: #F8F9FA;
}

/* 1位列（1列目）はピンク交互上書き */
.ranking-table tbody tr:nth-child(even):nth-child(n+3) td:first-child {
  background: #FFF4F6;
}


/* ── 枠線設定 ─────────────────────────── */

/* 中段セル：左右の灰色線のみ（上下はなし） */
.ranking-table tbody tr:not(:last-child) td:not(:first-child) {
  border-left: 2px solid #CBCBCB;
  border-right: 2px solid #CBCBCB;
}

/* 最下段セル：上下左右すべて灰色線（上だけ除く） */
.ranking-table tbody tr:last-child td:not(:first-child) {
  border: 2px solid #CBCBCB;
  border-top: none;
}

/* ヘッダー：2位以降だけ上・左右に灰色線 */
.ranking-table thead th:not(:first-child) {
  border-top: 2px solid #CBCBCB;
  border-left: 2px solid #CBCBCB;
  border-right: 2px solid #CBCBCB;
}

/* ヘッダー：上・左右に赤線 */
.ranking-table thead th:first-child {
  border-top: 2px solid #ED1846;
  border-left: 2px solid #ED1846;
  border-right: 2px solid #ED1846;
}

/* 本文：左右の赤線のみ（上下は中間セルでは非表示） */
.ranking-table tbody td:first-child {
  border-left: 2px solid #ED1846;
  border-right: 2px solid #ED1846;
  border-top: none;   /* 中間セルの上線を消す */
  border-bottom: none;/* 中間セルの下線を消す */
}

/* 最下段セル：下線を追加して完全な枠を形成 */
.ranking-table tbody tr:last-child td:first-child {
  border-bottom: 2px solid #ED1846;
}

/* ── 王冠ブロック ─────────────────────────── */

.ranking__crown-icon {
    width: 30%;
    min-width: 40px;
    margin: 0 auto;
}

.ranking__crown-icon img {
    width: 100%;
    height: auto;
    text-align: center;
}

/* ── メイン画像 ─────────────────────────── */

.ranking__main-img__wrapper {
  vertical-align: middle;
}

.ranking__main-img {
    width: 100%;
    overflow: hidden; /* はみ出し防止 */
    margin: 0 auto;
    object-fit: cover;
}

/* ── リンク ─────────────────────────── */

.site-link {
  color: #0060C7;
  font-weight: 700;
  text-decoration: underline;
  display:inline-block;
  margin-bottom:6px;
}

/* ── 星 ─────────────────────────── */

.ranking-star {
  display: flex;
  justify-content: center;
  align-items: center;
  gap:6px;
  color: #FFB400;
  font-weight: 700;
  margin-bottom:12px;
  font-size: 1.6rem;
}
.ranking-star img {
    width: 70%;
}

@media (max-width:646px) {
    .ranking-star {
        font-size: 1.4rem;
    }
}

/* ── 評価ブロック ─────────────────────────── */

.ranking__icon-rank {
    width: 30%;
    aspect-ratio: 1 / 1;
    margin: 0 auto 10px;
}
.ranking__icon-rank img {
    width: 100%;
}

@media (max-width:646px) {
    .ranking__icon-rank {
        width: 50%;
        max-width: 54px;
        margin: 0 auto 8px;
    }
}

/* ── ボタン ─────────────────────────── */

@keyframes shiny {
    0% { left: -20%; }
    10% { left: 120%; }
    100% { left: 120%; }
}
.btn {
    position: relative;
    display: block;
    width: 100%;
    height: 40px;
    line-height: 4rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(to right, #FFAE00, #FF9500);
    overflow: hidden;
    border-radius: 5px;
    border-bottom: 3px solid #DB8000;
}
.btn::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -20%;
    width: 40px;
    height: 100%;
    transform: scale(2) rotate(20deg);
    background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, .5) 100%, rgba(255, 255, 255, 0) 0%);
    
    /* アニメーション */
    animation-name: shiny;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
.btn:hover {
  margin-top: 3px;
  border-bottom: none;
	color: #fff;
}

@media (max-width:646px) {
    .btn {
    height: 32px;
    line-height: 3.2rem;
    font-size: 1.2rem;
    border-radius: 3px;
    }
}

/* ── 注釈ブロック ─────────────────────────── */

.note {
  display: inline-block;
  color: #585858;
  font-size: 0.8rem;;
  line-height: 1.8;
  text-align: left;
}

/* ── 吹き出しブロック ─────────────────────────── */

/* 吹き出し全体 */
.speech {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 20px 0;
}

/* アイコン */
.speech__icon {
  width: 80px;
  height: 80px;
  border-radius: 100px;
  overflow: hidden;
}

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

/* 吹き出しの基本形 */
.speech__bubble {
  background: #f5f5f5;
  border-radius: 16px;
  padding: 12px 16px;
  position: relative;
  width: calc( 100% - 100px );
  font-size: 1.4rem;
  line-height: 1.8;
}

/* 黄色バージョン */
.speech__bubble-yellow {
  background: #FFF9D6;
}

/* 吹き出しのしっぽ */
.speech-left .speech__bubble::before,
.speech-right .speech__bubble::before {
  content: "";
  position: absolute;
  top: 18px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
}

.speech-left .speech__bubble::before {
  left: -16px;
  border-right-color: #f5f5f5;
}

.speech-right .speech__bubble::before {
  right: -16px;
  border-left-color: #FFF9D6;
}

/* モバイル時調整 */
@media (max-width: 646px) {
  .speech__icon {
    width: 60px;
    height: 60px;
  }
  .speech__bubble {
    width: calc( 100% - 80px );
  }
}

/* ================ ランキング詳細ブロック ================ */

.block-ranking-detail__list li {
  background-color: #F1F4F7;
  border-radius: 20px;
  padding: 0 0 10px;
}

.block-ranking-detail__list__title {
    background: linear-gradient(to right, #0060C7, #002F61);
    padding: 20px;
    border-radius: 20px 20px 0 0;
    text-align: left;
    font-weight: 600;
    font-size: 2.8rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0 10px;
}
.block-ranking-detail__list__title img {
  width: 50px;
  height: auto;
}
.block-ranking-detail__list__main-img {
  width: 80%;
  height: auto;
  margin: 18px auto;
}

.block-ranking-detail__list__main-img img {
  display: block;
  margin: 0 auto;
}

.block-ranking-detail__list__content {
  padding: 0 20px;
}

.block-ranking-detail {
  text-align: center;
}

.block-ranking-detail h2 {
  position: relative;
  display: inline-block;
  background-color: #E6F3FF;
  color: #0060C7;
  font-weight: 700;
  font-size: 2rem;
  padding: 20px 28px;
  border-radius: 100px;
  text-align: center;
  margin: 0 auto 30px;
}

.block-ranking-detail h2:after {
  content: "";
  position: absolute;
  bottom: -15px; /* 三角の位置（下に少し出す） */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #E6F3FF; /* 背景色と同じにする */
}

.block-ranking-detail__list {
  list-style: none;
}

.block-ranking-detail__list li {
  text-align: left;
  margin: 0 0 25px;
}

.block-ranking-detail__list__content img {
  width: 100%;
}

.detail-table__wrapper {
  margin: 20px 0;
}

.detail-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 2px solid #D0D0D0; /* 外枠 */
  font-size: 1.4rem;
  color: #333;
}

.detail-table th,
.detail-table td {
  padding: 12px 20px;
  text-align: left;
  vertical-align: middle;
  border: 1px solid #D0D0D0;
}

.detail-table th {
  width: 35%;
  background-color: #f3f3f3;
  font-weight: 700;
}

.detail-table td {
  background-color: #fff;
}

/* モバイル時調整 */
@media (max-width: 646px) {
  .block-ranking-detail__list__title {
    padding: 16px;
    font-weight: 600;
    font-size: 2.2rem;
}
  .detail-table th,
  .detail-table td {
    padding: 10px 10px;
    font-size: 1.4rem;
  }
}

.detail-table .rating-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.6;
  border: none;
}

.detail-table .rating-cell img {
  display: block;
  height: 1.4em;
  width: auto;
  margin: 0;
}

.block-ranking-detail__list__description {
  margin: 20px 0;
}

.block-ranking-detail__list__img {
   margin: 20px 0;
}

/* ================ 特徴ブロック ================ */

.feature-box {
  margin: 40px 0;
}

.feature-box__title {
  display: block;
  width: fit-content;
  background: #0060C7;
  color: #fff;
  font-weight: 600;
  padding: 5px 16px;
  margin: 0 auto 0 0;
  border-radius: 8px 8px 0 0;
  text-align: left;
}

.feature-box__content {
  border: 2px solid #0060C7;
  background-color: #fff;
  border-radius: 0 12px 12px 12px;
  list-style: none;
  margin: 0;
  padding: 16px 20px;
  text-align: left;
}

.feature-box__content li {
  position: relative;
  padding: 0 0 0 28px;
  margin-bottom: 6px;
  background-color: #fff;
}

.feature-box__content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  background: url("../img/check-icon.png") no-repeat center center / contain;
}

.feature-box__content img {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 10px auto 0;
}

.feature-box p {
  margin: 0;
}

.btn__wrapper {
  width: 260px;
  text-align: center;
  margin: 20px auto;
}

.btn__wrapper .btn {
  width: 100%;
  height: auto;
  line-height: 2.4rem;
  font-size: 1.8rem;
  padding: 12px 0;
}

.block-ranking-detail h4 {
  border-bottom: solid 2px #0060C7;
  padding-bottom: 3px;
  margin-bottom: 3px;
  font-size: 1.8rem;
  font-weight: 700;
}

.block-ranking-detail__list__description .speech .speech__bubble {
  background-color: #fff;
}

.block-ranking-detail__list__description .speech .speech__bubble::before {
  border-right-color: #fff;
}

/* ================ 口コミブロック ================ */


.review-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;     /* スクロールをパチッと止める */
  gap: 20px;
  padding: 20px 0;
  -webkit-overflow-scrolling: touch; /* スマホ慣性スクロール対応 */
}

.review-card {
  flex: 0 0 90%;                     /* 1カードの幅（画面の85%） */
  max-width: 520px;
  background-color: #fff;
  border: 1px solid #D0D0D0;
  border-radius: 12px;
  padding: 28px;
  scroll-snap-align: center;         /* 中央で止まる */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.review-card__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.review-card__icon {
  width: 80px; 
  height: 80px;
  overflow: hidden;
  margin: 0 16px 0 0;
}

.review-card__icon img {
  width: 100%;
  height: auto;
  border-radius: 100px;
  margin: 0;
  justify-content: cover;
}

.review-card__head h5 {
  width: calc( 100% - 100px );
  font-size: 1.8rem;
  font-weight: 700;
}

.review-card__content p {
  font-size: 1.4rem;
  line-height: 1.2;
  text-align: left;
}

/* モバイル時調整 */
@media (max-width: 646px) {
  .review-card__icon {
    width: 60px; 
    height: 60px;
  }
  .review-card__head h5 {
    width: calc( 100% - 80px );
    font-size: 1.5rem;
    line-height: 1.5;
  }
}

/* スクロールバーを非表示（必要なら） */
.review-scroll::-webkit-scrollbar {
  display: none;
}

.scroll-link {
  display: block;
  text-align: center;
  margin: 10px auto;
  color: #0060C7;
  text-decoration: underline;
}




.margin-top20 {
  display: block;
  margin-top: 20px;
}

.margin-top10 {
  display: block;
  margin-top: 10px;
}

.margin-top30 {
  display: block;
  margin-top: 30px;
}

.margin-top40 {
  display: block;
  margin-top: 40px;
}

.img-90percent {
  width: 90%;
}

.img-80percent {
  width: 80%;
}

.img-70percent {
  width: 70%;
}

.img-60percent {
  width: 60%;
}

.img-50percent {
  width: 50%;
}

.img-40percent {
  width: 40%;
}

.img-30percent {
  width: 30%;
}

.img-20percent {
  width: 20%;
}

.img-10percent {
  width: 10%;
}