/* =======================
   推しカノ 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;
}

/* 画面には出さないけど SEO / スクリーンリーダー用に読むクラス */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* 背景より前に出す */
.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 {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #dcdcdc;
  padding-top: 133%;  /* 約4:5の縦長カード */
}

/* 画像は枠いっぱいにトリミングして表示 */
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 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: none;
}

/* スライドドット（画像のすぐ下） */
.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;
}

/* HERO 下半分の半透明オーバーレイ */
.hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%; /* 下から何割くらい覆うか */
  background: linear-gradient(
    to top,
    rgba(20, 80, 135, 0.75), /* 下が濃いめ */
    rgba(20, 80, 135, 0.0)   /* 上は透明 */
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 16px;
  opacity: 0;              /* デフォルトは非表示 */
  pointer-events: none;    /* ボタン以外はクリックさせない */
  transition: opacity 0.3s ease;
}

/* 表示状態用クラス（1枚目のときだけJSで付ける） */
.hero__overlay--show {
  opacity: 1;
  pointer-events: auto;
}

/* ボタン */
.hero__overlay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 10px 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #145087;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

/* =========================
   ABOUT：文字だけでデザイン
   ========================= */

.section-about {
  margin-top: 24px;
}

.section-about .section__inner {
  background: #ffffff;
  border-radius: 22px;
  padding: 16px 16px 18px;
  box-shadow: 0 10px 22px rgba(20, 80, 135, 0.07);
  border: 1px solid rgba(20, 80, 135, 0.05);
}

/* タイトル */
.section-about .section-title {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 10px;
  color: #145087;
  font-weight: 600; /* ← 強調しすぎず上品に */
  padding-left: 12px;
  position: relative;
}

.section-about .section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 999px;
  background: #ffd95e;
}

/* 本文 */
.section-about__text {
  font-size: 0.82rem;
  line-height: 1.9;
  color: #3b526d;
  margin: 0 0 8px;
}

/* 文章中の強調 */
.section-about__strong {
  font-weight: 600;
  color: #145087; /* ← 青で軽く強調 */
}

/* 箇条書き */
.section-about__points {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
}

.section-about__points li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.9;
  color: #3b526d;
}

.section-about__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffd95e;
}

/* リンク */
.section-about__links {
  font-size: 0.78rem;
  line-height: 1.8;
  color: #6b7d93;
}

.section-about__links a {
  color: #1e7ad2;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}




/* -----------------------
   SECTION 共通
   ----------------------- */

.section {
  margin-top: 40px;
}

.section__inner {
  max-width: 480px;
  margin: 0 auto;
}

.section-title {
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #145087;
  margin: 0 0 16px;
}

@media (min-width: 768px) {

  .hero {
    max-width: none;
    margin-top: 40px;
  }

  .hero__visual {
    width: 90%;
    max-width: 780px; 
    margin: 0 auto;
    padding-top: 60%;
    border-radius: 28px;
    overflow: hidden;
  }

  .hero__img {
    object-position: center 30%;
  }
}




/* -----------------------
   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（PICUPと同デザイン）
   ----------------------- */

.section-ranking {
  margin-top: 48px;
}

/* 1位：中央寄せ */
.ranking-top {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

/* 2・3位：横並び */
.ranking-sub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 16px;
}

/* RANKING のカード幅統一 */
.section-ranking .pickup-item {
  width: 100%;
  max-width: 230px;
}

/* ★スマホ：1位のみ少し小さく */
.ranking-top .pickup-item {
  max-width: 180px;
}

/* 下部情報は非表示（名前だけ） */
.ranking-sub .pickup-item__meta,
.ranking-sub .pickup-item__tags,
.ranking-top .pickup-item__meta,
.ranking-top .pickup-item__tags {
  display: none !important;
}

/* 名前の位置調整：中央寄せ */
.ranking-sub .pickup-item__label,
.ranking-top .pickup-item__label {
  margin-top: 8px;
  text-align: center;
  display: flex;
}

.section-ranking .pickup-item__label {
  width: fit-content;
  max-width: 80%;
  text-align: center;
  margin: 8px auto 0;
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

/* バッジ（画像右下） */
.ranking-badge--img {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 54px;
  height: auto;
  z-index: 5;
}

@media (min-width: 768px) {

  /* PC：全部同じ大きさに統一 */
  .ranking-top .pickup-item,
  .ranking-sub .pickup-item {
    max-width: 260px;
  }

  .ranking-top {
    margin-bottom: 32px;
  }

  .ranking-sub {
    max-width: 600px;
    margin: 0 auto;
    gap: 28px 32px;
  }

  /* PCだけバッジ少し大きく */
  .ranking-badge--img {
    width: 64px;
  }
}

/* -----------------------
   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;
}

/* -----------------------
   PC向けレイアウト調整
   ----------------------- */

@media (min-width: 768px) {
  .main,
  .section__inner {
    max-width: 960px;
  }

  .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;
  }
}
