/* =========================================================
   トレカの本音 — 怪しいオリパサイトを徹底検証
   ========================================================= */

:root {
  --blue-header: #1875d9;
  --blue-footer: #3a9ee4;
  --blue-edge:   #1b365d;
  --parchment:   #efe6d0;
  --content-max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #333;
  background: var(--parchment);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { text-decoration: none; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue-header);
  border-bottom: 3px solid var(--blue-edge);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
}
.site-header__logo img { height: 36px; width: auto; }

/* ===== Hero ===== */
.hero {
  background-image: url("./assets/hero_map_pc.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 60px 8px 56px;
  display: flex;
  justify-content: center;
}
.hero__board {
  width: 100%;
  max-width: 1300px;
}
.hero__board img {
  width: 100%;
  filter: drop-shadow(0 14px 28px rgba(40, 24, 8, .35));
}

/* ===== Shared section heading ===== */
.section-heading {
  margin: 0 auto 36px;
  max-width: 760px;
  text-align: center;
}
.section-heading img { width: 100%; margin: 0 auto; }

/* ===== Profile ===== */
.profile {
  background-image: url("./assets/section_bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 64px 16px 72px;
}
.profile__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}
.profile__card {
  margin: 0 auto 40px;
  max-width: 1080px;
  filter: drop-shadow(0 10px 24px rgba(40, 24, 8, .18));
}
.profile__card img { width: 100%; }

/* ===== CTA button ===== */
.cta-button {
  display: inline-block;
  max-width: 600px;
  width: 100%;
  transition: transform .18s ease, filter .18s ease;
  filter: drop-shadow(0 8px 16px rgba(24, 117, 217, .35));
}
.cta-button img { width: 100%; }
.cta-button:hover { transform: translateY(-3px) scale(1.01); filter: drop-shadow(0 12px 22px rgba(24, 117, 217, .5)); }
.cta-button:active { transform: translateY(0) scale(.99); }

/* ===== Ranking ===== */
.ranking {
  background-image: url("./assets/ranking_bg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 64px 16px 96px;
}
.ranking__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}
.ranking__heading { max-width: 720px; }
.ranking__list {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.ranking__card {
  position: relative;
  flex: 0 1 320px;
  max-width: 340px;
}
.ranking__frame {
  width: 100%;
  filter: drop-shadow(0 8px 18px rgba(60, 80, 120, .25));
}
.ranking__rank {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  line-height: 52px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 26px;
  color: #fff;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}
.ranking__rank--1 { background: linear-gradient(160deg, #ffd34d, #e0a008); }
.ranking__rank--2 { background: linear-gradient(160deg, #d7dde6, #9aa6b6); }
.ranking__rank--3 { background: linear-gradient(160deg, #e6b072, #b9763a); }

/* ===== Footer ===== */
.site-footer {
  background: var(--blue-footer);
  padding: 28px 16px 90px; /* 下余白は追従バナー回避 */
}
.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}
.site-footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  letter-spacing: .04em;
}

/* ===== Sticky banner ===== */
.sticky-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  width: 320px;
  max-width: 42vw;
  transition: transform .18s ease;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .3));
}
.sticky-banner img { width: 100%; }
.sticky-banner:hover { transform: translateY(-3px); }

/* =========================================================
   Responsive — SP (<=768px)
   ========================================================= */
@media (max-width: 768px) {
  .site-header__inner { padding: 9px 14px; }
  .site-header__logo img { height: 30px; }

  .hero {
    background-image: url("./assets/hero_map_sp.png");
    padding: 20px 12px 32px;
  }

  .section-heading { margin-bottom: 24px; max-width: 92%; }

  .profile { padding: 40px 12px 48px; }
  .profile__card { margin-bottom: 28px; max-width: 560px; }
  .cta-button { max-width: 92%; }

  .ranking { padding: 40px 12px 64px; }
  .ranking__list { gap: 24px; }
  .ranking__card { flex: 0 1 100%; max-width: 320px; margin: 0 auto; }
  .ranking__rank { width: 44px; height: 44px; line-height: 44px; font-size: 22px; top: -15px; }

  .site-footer { padding: 24px 14px 112px; }

  .sticky-banner {
    width: 190px;
    max-width: 44vw;
    right: 10px;
    bottom: 10px;
  }
}

@media (max-width: 420px) {
  .sticky-banner { width: 168px; }
}
