/* ===== base ===== */
body {
  margin: 0;
  font-family: "Kosugi Maru", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  background-color: #ffefef;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

.l-main {
  overflow: hidden;
}
br.sp_only {
  display: none;
}

@media (max-width: 640px) {
  br.sp_only {
    display: inline;
  }
}

/* ===== FV ===== */
.fv-image img {
  width: 100%;
  display: block;
}
.p-result-lead {
  text-align: center;
  margin: 24px auto 40px;
  padding: 0 16px;
}

.p-result-lead p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: bold;
}

.p-result-lead strong {
  font-size: 28px;
  color: #ff6699;
}

/* ===== ranking ===== */
.p-ranking {
  padding: 48px 20px;
}

.p-ranking__inner {
  max-width: 900px;
  margin: 0 auto;
}

.p-ranking__title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 16px;
}

.p-ranking__main {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.p-ranking__image {
  width: 200px;
}

.p-ranking__box {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  width: 500px;
  box-sizing: border-box;

  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.p-ranking__comment {
  line-height: 1.6;
	background-color: #fff4f8;
padding: 10px;
}
.p-ranking__comment-title {
  font-weight: bold;
  margin-bottom: 5px;
}


.p-ranking__btn {
  display: inline-block;
  background: #ff8fb1;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
	margin:1rem 0;
}

.p-ranking__btn:hover {
  opacity: 0.9;
}

/* ===== モーダル ===== */
.p-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.p-modal.is-active {
  display: block;
}

/* 背景 */
.p-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* 中身 */
.p-modal__content {
    position: relative;
    background: #fff;
    width: 92%;
    max-width: 520px;
    margin: 8vh auto;
    padding: 10px 20px;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);

    max-height: 84vh;
    overflow-y: auto;
}

/* 閉じるボタン */
.p-modal__close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  z-index: 10;

  background: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
}




/* キャラ名 */
.p-modal__chara {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 22px;
}

/* セクション */
.p-modal__section + .p-modal__section {
  margin-top: 28px;
}

/* 見出し */
.p-modal__title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 4px solid #ff8fb1;
}

/* すきなところ */
.p-modal__favorites,
.p-modal__messages{
  margin-bottom: 2rem;
}

.p-modal__list {
  padding-left: 1.2em; /* ← 文字揃え用に調整 */
  font-size: 14px;
  list-style-type: disc; /* ← ・表示 */
  margin-bottom: 1rem;
}

.p-modal__list li {
  font-weight: bold;
  color: #ff3366;
  list-style-position: outside; /* ← これがぶら下げインデント */
}




.p-modal__balloons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-modal__balloons p {
  background: #fff4f8;
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.4;
}
/* ===== footer ===== */
.site-footer {
  padding: 24px 10px;
  text-align: center;
  font-size: 12px;
  color: #777;
}

/* ===== 4位以下 ===== */

.p-ranking-sub {
  padding: 60px 0;
}

.p-ranking-sub__inner {
  width: min(1100px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}





/* ===== カード ===== */

.p-ranking-sub__card {
  background: #fff;
  border-radius: 24px;
  padding: 20px 16px 24px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);

  width: 100%;
}




/* 順位タイトル */

.p-ranking-sub__rank {
  font-weight: bold;
  margin-bottom: 14px;
}


/* 画像 */

.p-ranking-sub__image img {
  width: 100%;
  height: auto;
}


/* ボタン */

.p-ranking-sub__btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 999px;
  background: #ff7bac;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}


/* ===== タブレット ===== */

@media (max-width: 900px) {
  .p-ranking-sub__inner {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}


/* ===== スマホ ===== */

@media (max-width: 640px) {
  .p-ranking-sub__inner {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 16px;
  }
}



/* ===== 11位以下 ===== */

.p-ranking-mini {
  padding: 50px 0 70px;
}

.p-ranking-mini__inner {
  width: min(900px, 92%);
  margin: auto;
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  text-align: center;
}

.p-ranking-mini__title {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

/* ▼ リスト */

.p-ranking-mini__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 14px;

  width: fit-content; /* ← 全体中央配置 */
}

/* ▼ 各キャラ */

.p-ranking-mini__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start; /* ← 左揃え */
}

/* ▼ 画像 */

.p-ranking-mini__list img {
  width: 80px;
  height: auto;
}

/* ▼ テキスト */

.p-ranking-mini__list p {
  font-weight: bold;
  font-size: 0.95rem;
  margin: 0;
}
