/* =======================
   推しカノ TOP page
   （SPメインの1カラム）
   ※ヘッダー・フッターは header-footer.css に記載
   ======================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
  color: #145087;
}

/* 背景より手前に出す */
.page-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* レイアウト共通 */
.main {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* -----------------------
   HERO
   ----------------------- */

.hero {
  margin-top: 12px;
}

.hero__visual {
  width: 100%;
  height: 420px;
  max-height: 65vh;
  background: #dcdcdc;
  border-radius: 28px;
  overflow: hidden;
  position: relative;   /* ← 追加：ナビボタンを中で絶対配置するため */
}

/* HERO スライダー：左右タップエリア */
.hero__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;          /* 左右のどのくらいをタップ領域にするか */
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

/* 左側＝前へ */
.hero__nav--prev {
  left: 0;
}

/* 右側＝次へ */
.hero__nav--next {
  right: 0;
}

/* スマホでタップしやすいように、フォーカス時だけうっすら枠 */
.hero__nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: -4px;
}


.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* スライドドット */
.hero__dots {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c2dff5;
}

.dot.is-active {
  background: #2490ff;
}

.hero__slide-nav {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* スマホ（特にAndroid）でタップ時に出るグレーのハイライトを消す */
* {
  -webkit-tap-highlight-color: transparent;
}

/* -----------------------
   SECTION 共通
   ----------------------- */

.section {
  margin-top: 40px;
}

.section__inner {
  max-width: 480px;
  margin: 0 auto;
}

.section-title {
  font-size: 18px;
  letter-spacing: 0.25em;
  color: #145087;
  margin: 0 0 16px;
}

/* -----------------------
   NEWS
   ----------------------- */

.section-news .section-title {
  margin-bottom: 12px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.news-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffffaa;
}

.news-item__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: #ffffff;
}

.news-tag--blue {
  background: #2a74d8;
}

.news-tag--pink {
  background: #ff80b3;
}

.news-tag--red {
  background: #ff5b6b;
}

.news-tag--green {
  background: #4caf50;
}

.news-date {
  font-size: 11px;
  color: #4a6888;
}

.news-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.news-text strong {
  font-weight: 700;
  color: #145087;
}

/* -----------------------
   RANKING
   ----------------------- */

.section-ranking {
  margin-top: 48px;
}

.ranking {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

/* 共通：カード本体 */
.ranking-card {
  position: relative;
  background: transparent;
  padding: 0;
  box-shadow: none;
  text-align: center; /* 名前ラベル中央寄せ */
}

/* 1位カード（今は全部同じ幅） */
.ranking-card--main {
  width: 70%;
  max-width: 260px;
}

/* クリック領域（カード全部リンク） */
.ranking-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 写真エリア（縦長固定。） */
.ranking-card__photo {
  position: relative;
  width: 100%;
  margin: 40px auto 0px;
  padding-top: 140%;
  background: #dcdcdc;
  border-radius: 6px;
  overflow: hidden;
}

/* 青・黄色の枠線 */
.ranking-card__photo::before,
.ranking-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;               /* 画像より前面に出す */
}

/* 内側：青線 */
.ranking-card__photo::before {
  border: 1.8px solid #1c63d2;
}

/* 外側：黄色線（少し内側） */
.ranking-card__photo::after {
  inset: 4px 4px 4px 4px;
  border: 2px solid #f5d45d;
}

/* 写真本体 */
.ranking-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;               /* 枠線より後ろ */
}

/* ランクタグ */
.ranking-card__rank-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #ffffff;
  background: #9fa9ba;
}

.ranking-card__rank-tag--fresh   { background: #7ec4ff; }
.ranking-card__rank-tag--regular { background: #6f8bc7; }
.ranking-card__rank-tag--advance { background: #ff9d7c; }
.ranking-card__rank-tag--premium { background: #f5c948; }

/* 順位バッジ */
.ranking-card__badge {
  position: absolute;
  bottom: 3px;
  right: 10px;
  width: 90px;
  height: auto;
  z-index: 20;
  pointer-events: none;
}

/* 名前ラベル（リボン） */
.ranking-card__name-wrap {
  --ribbon-color: #ffe3a1;
  --ribbon-bg: #e0f3ff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--ribbon-color);
  margin: 18px auto 10px;
  padding: 6px 0;
  box-sizing: border-box;
  min-width: 220px;
}

.ranking-card__name-wrap-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 50px;
  border-top: 2px dashed rgba(255, 255, 255, 0.9);
  border-bottom: 2px dashed rgba(255, 255, 255, 0.9);
}

.ranking-card__name {
  margin: 0;
  line-height: 1.2;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #2b4d86;
}

.ranking-card__name-sub {
  margin: 0;
  line-height: 1.2;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #2b4d86;
}

/* リボンのへこみ（三角） */
.ranking-card__name-wrap::before,
.ranking-card__name-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

.ranking-card__name-wrap::before {
  left: 0;
  border-width: 22px 0 22px 16px;
  border-color: transparent transparent transparent var(--ribbon-bg);
}

.ranking-card__name-wrap::after {
  right: 0;
  border-width: 22px 16px 22px 0;
  border-color: transparent var(--ribbon-bg) transparent transparent;
}

/* 1〜3位の色分け */
.ranking-card__name-wrap--gold   { --ribbon-color: #ffdb88; }
.ranking-card__name-wrap--silver { --ribbon-color: #c9ccd9; }
.ranking-card__name-wrap--bronze { --ribbon-color: #e4b896; }

/* -----------------------
   PIC UP
   ----------------------- */

.section-pickup {
  margin-top: 60px;
}

.pickup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 16px;
  margin-top: 22px;
}

.pickup-item {
  position: relative;
}

/* クリック領域（カード全部リンク） */
.pickup-item__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 写真ブロック */
.pickup-item__photo {
  position: relative;
  width: 100%;
  padding-top: 140%;
  background: #dcdcdc;
  border-radius: 8px;
  overflow: hidden;
}

/* 内側：青い細線 */
.pickup-item__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1.3px solid #1c63d2;
  pointer-events: none;
  z-index: 2;
}

/* 外側：右下に少しずらした黄色線 */
.pickup-item__photo::after {
  content: "";
  position: absolute;
  inset: 4px -4px -4px 4px;
  border-radius: 8px;
  border: 1.5px solid #f5d45d;
  pointer-events: none;
  opacity: 0.9;
  z-index: 2;
}

/* 写真本体 */
.pickup-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

/* ランクタグ（PIC UP 用） */
.pickup-item__rank-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #ffffff;
  background: #9fa9ba;
  z-index: 3;  
}

.pickup-item__rank-tag--fresh   { background: #7ec4ff; }
.pickup-item__rank-tag--regular { background: #6f8bc7; }
.pickup-item__rank-tag--advance { background: #ff9d7c; }
.pickup-item__rank-tag--premium { background: #f5c948; }

/* 名前ラベル（写真の下に配置） */
.pickup-item__label {
  position: static;
  margin-top: 10px;
  display: inline-block;
  padding: 6px 14px;
  background: #ffffff;
  border-radius: 16px 16px 16px 0;
  box-shadow: 0 0 0 1px #1c63d2;
}

.pickup-item__name {
  margin: 0;
  font-size: 12px;
}

.pickup-item__name-sub {
  margin: 1px 0 0;
  font-size: 10px;
  color: #6a7c93;
}

/* 年齢・エリアなど */
.pickup-item__meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.pickup-item__meta-item {
  font-size: 10px;
  color: #4a6888;
}

/* タグ一覧 */
.pickup-item__tags {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pickup-item__tags li {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ffffffaa;
  color: #145087;
}

/* MOREリンク：リンク感を少し弱める */
.section-more {
  text-align: right;
  margin-top: 42px;
}

.section-more__link {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #4a6888;
  text-decoration: none;
}

/* -----------------------
   BLOG
   ----------------------- */

.section-blog {
  margin-top: 72px;
}

.section-blog__inner {
  padding-bottom: 36px;
  position: relative;
}

/* 上下のゆるい波線（簡易版） */
.section-blog__wave {
  height: 12px;
  width: 100%;
  background-image: linear-gradient(90deg, #f5d45d, #1c63d2, #f5d45d);
  border-radius: 999px;
  opacity: 0.7;
}

.section-blog__wave--top {
  margin-bottom: 16px;
}

.section-blog__wave--bottom {
  margin-top: 24px;
}

/* blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
  margin-top: 16px;
}

.blog-card {
  background: transparent;
}

/* クリック領域（カード全部リンク） */
.blog-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* サムネイル */
.blog-card__photo {
  width: 100%;
  padding-top: 150%;
  border-radius: 18px;
  background: #dcdcdc;
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}

.blog-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__meta {
  font-size: 10px;
  color: #6a7c93;
}

.blog-card__date {
  font-size: 10px;
}

.blog-card__title {
  margin: 2px 0 2px;
  font-size: 11px;
}

.blog-card__author {
  margin: 0;
  font-size: 11px;
  color: #1c63d2;
}

/* -----------------------
   小さめ端末用微調整
   ----------------------- */

@media (max-width: 360px) {
  .hero__visual {
    height: 360px;
  }
}

/* -----------------------
   PC向けレイアウト調整
   ----------------------- */

@media (min-width: 768px) {
  .main,
  .section__inner {
    max-width: 960px;
  }

  .hero__visual {
    height: 520px;
    max-height: none;
  }

  .section {
    margin-top: 56px;
  }

  .section-ranking {
    margin-top: 64px;
  }

  .ranking {
    gap: 32px;
    align-items: center;
  }

  .ranking__sub {
    display: flex;
    gap: 120px;
    width: 100%;
    max-width: 480px;
    justify-content: center;
  }

  .pickup-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .blog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 16px;
  }
}
