/* ============================================================
   Recycle Japan F.C. — Theme Main CSS
   C·Stadium design system (football-pennant aesthetic)
   ============================================================ */

:root {
  --rj-ink: #0a1a3a;
  --rj-blue: #1e5fe6;
  --rj-blue-deep: #0b3fb3;
  --rj-red: #e63946;
  --rj-yellow: #ffd23f;
  --rj-cream: #f7f5ef;
  --rj-white: #ffffff;
  --rj-green: #10b981;

  --rj-font-jp: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --rj-font-disp: "Archivo Black", "Archivo", sans-serif;
  --rj-font-mono: "JetBrains Mono", monospace;

  --rj-border: 3px solid var(--rj-ink);
  --rj-border-thick: 4px solid var(--rj-ink);
  --rj-shadow-sm: 4px 4px 0 var(--rj-ink);
  --rj-shadow-md: 6px 6px 0 var(--rj-ink);
  --rj-shadow-lg: 8px 8px 0 var(--rj-ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--rj-font-jp);
  background: var(--rj-cream);
  color: var(--rj-ink);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rj-blue); }

.rj-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.rj-disp { font-family: var(--rj-font-disp); letter-spacing: -0.02em; }
.rj-mono { font-family: var(--rj-font-mono); }

/* ============ HEADER / NAV ============ */
.rj-header {
  background: var(--rj-ink);
  color: var(--rj-white);
  border-bottom: 3px solid var(--rj-yellow);
  position: sticky; top: 0; z-index: 100;
}
.rj-header-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 12px 28px;
  max-width: 1440px; margin: 0 auto;
}
.rj-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--rj-white); }
.rj-brand-name { font-family: var(--rj-font-disp); font-size: 16px; font-weight: 900; line-height: 1; }
.rj-brand-sub { font-family: var(--rj-font-mono); font-size: 9px; color: var(--rj-yellow); letter-spacing: .2em; margin-top: 3px; }
.rj-nav { flex: 1; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.rj-nav a {
  font-weight: 900; font-size: 13px; color: var(--rj-white);
  text-decoration: none; padding: 8px 14px;
  border: 2px solid transparent;
  transition: all .15s;
}
.rj-nav a:hover { background: rgba(255,210,63,.15); }
.rj-nav a.is-active {
  background: var(--rj-yellow); color: var(--rj-ink);
  border-color: var(--rj-ink); box-shadow: 3px 3px 0 var(--rj-red);
}
.rj-nav-cta {
  font-weight: 900; font-size: 13px; background: var(--rj-red); color: var(--rj-white);
  padding: 10px 18px; border: 3px solid var(--rj-yellow);
  text-decoration: none; box-shadow: 4px 4px 0 var(--rj-yellow);
}

/* Mobile toggle */
.rj-nav-toggle { display: none; background: var(--rj-yellow); color: var(--rj-ink); border: 0; padding: 8px 14px; font-weight: 900; cursor: pointer; font-family: var(--rj-font-disp); }
@media (max-width: 960px) {
  .rj-nav-toggle { display: inline-block; margin-left: auto; }
  .rj-nav, .rj-nav-cta { display: none; }

  /* 開いた時: header内のアイテムを折り返し可能に */
  .rj-header.is-open .rj-header-inner {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .rj-header.is-open .rj-nav {
    display: flex;
    flex: 0 0 100%;            /* 1行全幅で折り返し */
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    border-top: 2px solid var(--rj-yellow);
  }
  .rj-header.is-open .rj-nav a {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    text-align: center;
    white-space: nowrap;       /* 文字の縦積みを防ぐ */
    font-size: 15px;
    box-shadow: none;
  }
  .rj-header.is-open .rj-nav a:last-child { border-bottom: 0; }
  .rj-header.is-open .rj-nav-cta {
    display: inline-flex;
    flex: 0 0 100%;
    justify-content: center;
    align-items: center;
    padding: 14px;
    margin-top: 0;
    white-space: nowrap;
    box-shadow: 4px 4px 0 var(--rj-yellow);
  }
}

/* ============ LOGO SVG ============ */
.rj-logo { display: inline-block; }

/* ============ PAGE HEADER (breadcrumb + hero) ============ */
.rj-page-head {
  background: var(--rj-ink); color: var(--rj-white);
  padding: 48px 40px 56px; position: relative; overflow: hidden;
}
.rj-page-head::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--rj-red) 0 24px, var(--rj-yellow) 24px 48px,
    var(--rj-blue) 48px 72px, var(--rj-ink) 72px 96px);
}
.rj-page-head__bg {
  position: absolute; right: -40px; top: -20px; opacity: .08;
  font-family: var(--rj-font-disp); font-size: 280px; color: #fff;
  font-weight: 900; line-height: .8; pointer-events: none;
}
.rj-page-head__crumbs { font-family: var(--rj-font-mono); font-size: 11px; color: var(--rj-yellow); letter-spacing: .3em; font-weight: 700; margin-bottom: 6px; position: relative; }
.rj-page-head__en { font-family: var(--rj-font-mono); font-size: 12px; color: var(--rj-yellow); letter-spacing: .2em; font-weight: 700; position: relative; }
.rj-page-head__ja { font-size: clamp(40px, 7vw, 80px); font-weight: 900; margin: 6px 0 0; letter-spacing: -0.02em; line-height: .95; text-shadow: 5px 5px 0 var(--rj-red); position: relative; }

/* ============ SECTIONS ============ */
.rj-section { padding: 72px 28px; }
.rj-section--cream { background: var(--rj-cream); }
.rj-section--ink { background: var(--rj-ink); color: var(--rj-white); }
.rj-section--blue { background: var(--rj-blue); color: var(--rj-white); position: relative; overflow: hidden; }
.rj-section--yellow { background: var(--rj-yellow); color: var(--rj-ink); }
.rj-section--red { background: var(--rj-red); color: var(--rj-white); }

.rj-eyebrow { font-family: var(--rj-font-mono); font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--rj-blue); }
.rj-section--ink .rj-eyebrow, .rj-section--blue .rj-eyebrow { color: var(--rj-yellow); }
.rj-title-ja { font-size: clamp(32px, 5vw, 64px); font-weight: 900; margin: 8px 0 0; letter-spacing: -0.02em; line-height: 1; }
.rj-title-en { font-family: var(--rj-font-disp); font-size: clamp(44px, 9vw, 140px); font-weight: 900; line-height: .9; }

/* ============ PENNANT ============ */
.rj-pennant {
  display: inline-block; background: var(--rj-red); color: var(--rj-white);
  border: 3px solid var(--rj-ink); padding: 8px 18px;
  font-family: var(--rj-font-disp); font-size: 13px; font-weight: 900;
  transform: rotate(-2deg); box-shadow: 4px 4px 0 var(--rj-ink);
}
.rj-pennant--yellow { background: var(--rj-yellow); color: var(--rj-ink); }
.rj-pennant--blue { background: var(--rj-blue); }
.rj-pennant--ink { background: var(--rj-ink); color: var(--rj-white); }

/* ============ BUTTONS / CTA ============ */
.rj-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-family: var(--rj-font-jp); font-weight: 900; font-size: 16px;
  text-decoration: none; cursor: pointer;
  border: var(--rj-border-thick);
  box-shadow: var(--rj-shadow-md);
  transition: transform .1s, box-shadow .1s;
}
.rj-btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--rj-ink); }
.rj-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--rj-ink); }
.rj-btn--red { background: var(--rj-red); color: var(--rj-white); }
.rj-btn--yellow { background: var(--rj-yellow); color: var(--rj-ink); }
.rj-btn--blue { background: var(--rj-blue); color: var(--rj-white); }
.rj-btn--white { background: var(--rj-white); color: var(--rj-ink); }
.rj-btn--lg { font-size: 20px; padding: 20px 36px; }

/* ============ CARD ============ */
.rj-card {
  background: var(--rj-white); color: var(--rj-ink);
  border: var(--rj-border-thick); box-shadow: var(--rj-shadow-md);
  padding: 24px;
}
.rj-card--tilt { transform: rotate(-1deg); }

/* ============ STRIPES BG ============ */
.rj-stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--rj-blue) 0 40px, var(--rj-blue-deep) 40px 80px);
  opacity: .9;
}

/* ============ GRID UTILS ============ */
.rj-grid { display: grid; gap: 16px; }
.rj-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rj-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rj-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rj-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) {
  .rj-grid--3, .rj-grid--4, .rj-grid--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .rj-grid--2, .rj-grid--3, .rj-grid--4, .rj-grid--5 { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.rj-footer { background: var(--rj-ink); color: var(--rj-white); padding: 60px 28px 30px; }
.rj-footer-inner { max-width: 1280px; margin: 0 auto; }
.rj-footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px;
  padding-bottom: 32px; border-bottom: 2px solid var(--rj-blue);
}
@media (max-width: 960px) { .rj-footer-grid { grid-template-columns: 1fr 1fr; } }
.rj-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rj-footer-tel { font-family: var(--rj-font-disp); font-size: 22px; color: var(--rj-yellow); font-weight: 900; }
.rj-footer h4 { font-family: var(--rj-font-mono); font-size: 10px; color: var(--rj-yellow); letter-spacing: .2em; font-weight: 700; margin: 0 0 14px; text-transform: uppercase; }
.rj-footer ul { list-style: none; margin: 0; padding: 0; }
.rj-footer li a { font-size: 13px; opacity: .8; padding: 5px 0; color: var(--rj-white); text-decoration: none; display: block; }
.rj-footer li a:hover { opacity: 1; color: var(--rj-yellow); }
.rj-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; font-family: var(--rj-font-mono); font-size: 11px; opacity: .6;
  flex-wrap: wrap; gap: 12px;
}

/* ============ LEAD FORM ============ */
.rj-form-card { background: var(--rj-white); border: var(--rj-border-thick); box-shadow: var(--rj-shadow-lg); padding: 32px; }
.rj-form-grid { display: grid; gap: 14px; }
.rj-form-label { font-weight: 900; font-size: 13px; color: var(--rj-ink); margin-bottom: 4px; display: block; }
.rj-form-label .req { color: var(--rj-red); margin-left: 4px; }
.rj-form-input, .rj-form-select, .rj-form-textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--rj-ink); background: var(--rj-cream);
  font-family: var(--rj-font-jp); font-size: 14px; font-weight: 500;
  outline: none;
}
.rj-form-input:focus, .rj-form-select:focus, .rj-form-textarea:focus {
  background: var(--rj-white); box-shadow: 3px 3px 0 var(--rj-yellow);
}
.rj-form-textarea { min-height: 110px; resize: vertical; }
.rj-form-radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.rj-form-radio {
  padding: 10px 16px; border: 2px solid var(--rj-ink);
  background: var(--rj-cream); cursor: pointer; font-weight: 700; font-size: 13px;
}
.rj-form-radio input { display: none; }
.rj-form-radio.is-checked { background: var(--rj-yellow); box-shadow: 3px 3px 0 var(--rj-ink); }
.rj-form-submit { width: 100%; justify-content: center; }
.rj-form-notice { padding: 12px 16px; border: 2px solid var(--rj-ink); font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.rj-form-notice--ok { background: #d1fae5; color: #065f46; }
.rj-form-notice--err { background: #fee2e2; color: #991b1b; }

/* ============ LINE / PHONE CTA (button style, webfont icon) ============ */
.rj-cta-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px; border: 3px solid var(--rj-ink);
  text-decoration: none; line-height: 1.2;
  box-shadow: 4px 4px 0 var(--rj-ink); transition: transform .1s, box-shadow .1s;
}
.rj-cta-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--rj-ink); }
.rj-cta-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--rj-ink); }
.rj-cta-btn__icon { font-size: 22px; display: inline-flex; align-items: center; line-height: 1; }
.rj-cta-btn__main { font-family: var(--rj-font-disp); font-size: 16px; font-weight: 900; letter-spacing: .02em; }
.rj-cta-btn__sub  { font-family: var(--rj-font-mono); font-size: 10px; letter-spacing: .1em; margin-top: 2px; }

/* LINE — brand green */
.rj-line-cta { background: #06c755; color: #fff; }
.rj-line-cta .rj-cta-btn__sub { color: rgba(255,255,255,.85); }

/* Phone — ink background with yellow accent */
.rj-tel-cta { background: var(--rj-ink); color: #fff; font-family: inherit; font-size: inherit; }
.rj-tel-cta .rj-cta-btn__icon { color: var(--rj-yellow); }
.rj-tel-cta .rj-cta-btn__sub  { color: var(--rj-yellow); }
.rj-tel-cta small { font-family: var(--rj-font-mono); font-size: 10px; letter-spacing: .1em; color: var(--rj-yellow); display: block; margin-top: 2px; }

/* ============ STICKY MOBILE ACTIONS ============ */
.rj-mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--rj-ink); padding: 8px; gap: 8px;
  border-top: 3px solid var(--rj-yellow);
}
.rj-mobile-bar a { flex: 1; text-align: center; padding: 12px 4px; font-weight: 900; font-size: 13px; text-decoration: none; border: 2px solid var(--rj-ink); }
.rj-mobile-bar a:nth-child(1) { background: var(--rj-red); color: #fff; }
.rj-mobile-bar a:nth-child(2) { background: #06c755; color: #fff; }
.rj-mobile-bar a:nth-child(3) { background: var(--rj-yellow); color: var(--rj-ink); }
@media (max-width: 760px) {
  .rj-mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* ============ UTILS ============ */
.rj-center { text-align: center; }
.rj-mt-sm { margin-top: 12px; } .rj-mt-md { margin-top: 24px; } .rj-mt-lg { margin-top: 48px; }
.rj-mb-sm { margin-bottom: 12px; } .rj-mb-md { margin-bottom: 24px; } .rj-mb-lg { margin-bottom: 48px; }
.rj-text-red { color: var(--rj-red); }
.rj-text-blue { color: var(--rj-blue); }
.rj-text-yellow { color: var(--rj-yellow); }

/* ============ POST CONTENT (single.php) ============ */
.rj-post { max-width: 820px; margin: 0 auto; padding: 48px 24px; }
.rj-post h1 { font-size: 40px; font-weight: 900; margin: 0 0 20px; }
.rj-post h2 { font-size: 28px; font-weight: 900; margin: 40px 0 12px; border-left: 6px solid var(--rj-red); padding-left: 14px; }
.rj-post p { margin: 0 0 14px; }
.rj-post img { border: var(--rj-border); box-shadow: var(--rj-shadow-sm); margin: 20px 0; }

/* ============ BUYBACK RESULT CARDS ============ */
.rj-result-card {
  background: var(--rj-white); border: var(--rj-border-thick); box-shadow: var(--rj-shadow-md);
  display: grid; grid-template-columns: 240px 1fr auto; gap: 20px; padding: 20px; align-items: center;
}
.rj-result-card__thumb { aspect-ratio: 1; background: #e7e1d4; border: var(--rj-border); }
.rj-result-card__price { font-family: var(--rj-font-disp); font-size: 42px; color: var(--rj-red); font-weight: 900; line-height: 1; }
.rj-result-card__meta { font-family: var(--rj-font-mono); font-size: 11px; color: var(--rj-ink); opacity: .65; letter-spacing: .1em; }
@media (max-width: 720px) {
  .rj-result-card { grid-template-columns: 1fr; }
  .rj-result-card__thumb { aspect-ratio: 16/9; }
}

/* ============ FAQ ============ */
.rj-faq-item { border: var(--rj-border-thick); background: var(--rj-white); box-shadow: var(--rj-shadow-sm); margin-bottom: 14px; }
.rj-faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 900; font-size: 16px;
  display: flex; align-items: center; gap: 14px;
  list-style: none;
}
.rj-faq-item summary::-webkit-details-marker { display: none; }
.rj-faq-item summary::before {
  content: 'Q'; font-family: var(--rj-font-disp); font-size: 22px; color: var(--rj-red);
  border: 3px solid var(--rj-ink); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--rj-yellow); flex-shrink: 0;
}
.rj-faq-item[open] summary { background: var(--rj-cream); border-bottom: 2px solid var(--rj-ink); }
.rj-faq-item__a {
  padding: 18px 22px 22px 74px; font-size: 14px; line-height: 1.9;
  position: relative;
}
.rj-faq-item__a::before {
  content: 'A'; font-family: var(--rj-font-disp); font-size: 22px; color: var(--rj-white);
  background: var(--rj-blue); border: 3px solid var(--rj-ink);
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  position: absolute; left: 22px; top: 18px;
}

/* ============ TOP スライダー (Swiper 上書き) ============ */
.rj-swiper-results, .rj-swiper-voices { overflow: visible; }
.rj-swiper-results .swiper-slide, .rj-swiper-voices .swiper-slide { height: auto; }
.rj-swiper-results .swiper-slide > *, .rj-swiper-voices .swiper-slide > * { height: 100%; }

/* Pagination bullets */
.rj-swiper-results__pag,
.rj-swiper-voices__pag {
  position: relative; margin-top: 20px; text-align: center;
}
.rj-swiper-results__pag .swiper-pagination-bullet,
.rj-swiper-voices__pag .swiper-pagination-bullet {
  width: 12px; height: 12px; opacity: 1;
  background: #fff; border: 2px solid var(--rj-ink);
  margin: 0 5px !important; border-radius: 0;
  transition: transform .1s;
}
.rj-swiper-results__pag .swiper-pagination-bullet-active {
  background: var(--rj-red);
}
.rj-swiper-voices__pag .swiper-pagination-bullet {
  background: rgba(255,255,255,.4); border-color: var(--rj-yellow);
}
.rj-swiper-voices__pag .swiper-pagination-bullet-active {
  background: var(--rj-yellow);
}

/* Prev/Next buttons */
.rj-swiper-results__prev,
.rj-swiper-results__next {
  width: 44px; height: 44px;
  background: var(--rj-ink); color: var(--rj-yellow);
  border: 3px solid var(--rj-ink);
  box-shadow: 4px 4px 0 var(--rj-red);
  top: 40%;
  transition: transform .1s;
}
.rj-swiper-results__prev::after,
.rj-swiper-results__next::after {
  font-size: 18px; font-weight: 900;
}
.rj-swiper-results__prev { left: -4px; }
.rj-swiper-results__next { right: -4px; }
.rj-swiper-results__prev:hover,
.rj-swiper-results__next:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--rj-red); }
@media (max-width: 768px) {
  .rj-swiper-results__prev, .rj-swiper-results__next { display: none; }
}

/* ============ TOP AI SIM (HOME パシャッ!で15秒 アニメ) ============ */
.rj-sim-imgwrap { overflow: hidden; }
.rj-sim-scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #ffd23f 40%, #fff 50%, #ffd23f 60%, transparent);
  box-shadow: 0 0 14px 4px rgba(255,210,63,.55), 0 2px 0 rgba(255,210,63,.2);
  animation: rj-sim-scan 2.4s linear infinite;
  z-index: 2; pointer-events: none;
}
.rj-sim-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(30,95,230,.18) 1px, transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg, rgba(30,95,230,.18) 1px, transparent 1px) 0 0/24px 24px;
  mix-blend-mode: screen; opacity: .55;
  z-index: 1; pointer-events: none;
}
.rj-sim-dot { animation: rj-sim-blink 1s step-end infinite; display: inline-block; }
.rj-sim-recog {
  animation: rj-sim-pulse 1.5s ease-in-out infinite;
}
.rj-sim-price { opacity: .25; transition: opacity .5s; }
.rj-sim-price.is-on { opacity: 1; animation: rj-sim-pop .4s ease-out; }
.rj-sim-label, .rj-sim-match, .rj-sim-v { transition: opacity .3s; }
.rj-sim-imgwrap.is-changing::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(10,26,58,.75);
  animation: rj-sim-flash .4s ease-out;
  pointer-events: none; z-index: 3;
}
@keyframes rj-sim-scan {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(237px); }
  100% { transform: translateY(0); }
}
@keyframes rj-sim-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: .25; }
}
@keyframes rj-sim-pulse {
  0%, 100% { transform: scale(1); box-shadow: 3px 3px 0 #0a1a3a; }
  50%      { transform: scale(1.05); box-shadow: 4px 4px 0 #0a1a3a; }
}
@keyframes rj-sim-pop {
  0%   { transform: scale(.85); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes rj-sim-flash {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}
/* motionを減らす設定に配慮 */
@media (prefers-reduced-motion: reduce) {
  .rj-sim-scanline, .rj-sim-dot, .rj-sim-recog { animation: none !important; }
  .rj-sim-price { opacity: 1; }
}

/* ============ APPRAISAL (AI) ============ */
.rj-appraisal {
  background: var(--rj-white); border: var(--rj-border-thick); box-shadow: var(--rj-shadow-lg); padding: 32px;
}
@media (max-width: 768px) {
  /* AI査定ページの widget 周りをエッジ近くまで広げる */
  .rj-appraisal { padding: 0 !important; border-width: 3px !important; box-shadow: 3px 3px 0 var(--rj-ink) !important; }
  /* AI査定ページ: サイドバーを下に落として本体フル幅に */
  .page-template-page-appraisal .rj-container[style*="grid-template-columns:1.2fr 1fr"],
  body[class*="page-id-"] .rj-container[style*="grid-template-columns:1.2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  /* ページヒーロー下の rj-section cream パディング縮小 */
  body .rj-section.rj-section--cream[style*="padding"] { padding: 24px 6px !important; }
  .rj-section { padding: 32px 6px !important; }
  .rj-container { padding: 0 6px !important; }
}
.rj-appraisal__drop {
  border: 3px dashed var(--rj-ink); background: var(--rj-cream);
  padding: 40px; text-align: center; cursor: pointer;
  transition: background .15s;
}
.rj-appraisal__drop.is-hover { background: var(--rj-yellow); }
.rj-appraisal__preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 16px 0; }
.rj-appraisal__preview img { aspect-ratio: 1; object-fit: cover; border: 2px solid var(--rj-ink); }
.rj-appraisal__result {
  margin-top: 24px; padding: 28px; background: var(--rj-ink); color: var(--rj-white);
  border: var(--rj-border-thick); box-shadow: var(--rj-shadow-md);
}
.rj-appraisal__price-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.rj-appraisal__price-cell { background: var(--rj-white); color: var(--rj-ink); padding: 16px; border: 3px solid var(--rj-yellow); text-align: center; }
.rj-appraisal__price-cell .label { font-family: var(--rj-font-mono); font-size: 10px; letter-spacing: .2em; color: var(--rj-blue); }
.rj-appraisal__price-cell .val { font-family: var(--rj-font-disp); font-size: 28px; font-weight: 900; margin-top: 4px; }
.rj-appraisal__price-cell.is-mid { background: var(--rj-yellow); }

/* ============ CATEGORY LP ============ */
.rj-cat-hero { padding: 80px 28px; position: relative; overflow: hidden; }
.rj-cat-hero__bg-icon { position: absolute; right: -30px; top: -20px; font-size: 340px; opacity: .15; pointer-events: none; }
.rj-cat-hero__title { font-size: clamp(44px, 8vw, 120px); font-weight: 900; line-height: .9; letter-spacing: -0.03em; }

/* ============================================================
   SP (mobile ≤768px) — front-page.phpの inline grid を1列化
   ============================================================ */
@media (max-width: 768px) {

  /* 共通: alignfull や padding 40px のセクションを詰める */
  body section[style*="padding:60px 40px"],
  body section[style*="padding:72px 40px"],
  body section[style*="padding:80px 40px"] {
    padding: 40px 18px !important;
  }
  body div[style*="padding:6px 40px"] {
    padding: 8px 14px !important;
    font-size: 10px !important;
    overflow-x: auto;
    white-space: nowrap;
    gap: 12px !important;
  }

  /* 全てのインラインgridを1列 or 2列に */
  body div[style*="grid-template-columns:1.2fr 1fr"],
  body div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  body div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2,1fr) !important;
    gap: 14px !important;
  }
  body div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* LOW/MID/HIGH のLeica判定内の3列は横並び維持（小さく） */
  body div[style*="grid-template-columns:repeat(3,1fr)"][style*="gap:8px"] {
    grid-template-columns: repeat(3,1fr) !important;
    gap: 6px !important;
  }

  /* HERO: 巨大な h1 を縮小 */
  body h1[style*="108px"],
  body h1[style*="92px"] { font-size: clamp(42px, 11vw, 60px) !important; }

  /* Yellow CTA 巨大見出し */
  body h2[style*="120px"],
  body h2[style*="84px"],
  body h2[style*="80px"] { font-size: clamp(36px, 10vw, 56px) !important; }

  /* Section title (先発メンバー紹介、など) */
  body h2[style*="72px"],
  body h2[style*="64px"],
  body h2[style*="56px"] { font-size: clamp(30px, 7vw, 44px) !important; }

  /* HEROジャージナンバー（08）を小さく */
  body div[style*="font-size:140px"] { font-size: 92px !important; }
  body div[style*="font-size:80px"]  { font-size: 56px !important; }

  /* ヘッダー navの大きいアイコン類 */
  body span[style*="font-size:26px"] { font-size: 22px !important; }

  /* Scoreboard: 4列の統計 → 2列に */
  body div[style*="border:4px solid #ffd23f"][style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2,1fr) !important;
    padding: 16px !important;
    gap: 14px !important;
    margin-top: 32px !important;
  }
  body div[style*="border:4px solid #ffd23f"] > div > div[style*="font-size:clamp(28px,3.5vw,44px)"] {
    font-size: 22px !important;
  }

  /* HEROジャージカードの回転を解除（SPだとはみ出す） */
  body div[style*="transform:rotate(2deg)"],
  body div[style*="transform:rotate(-1deg)"],
  body div[style*="transform:rotate(0.8deg)"] {
    transform: none !important;
  }

  /* サポーター声カードの回転解除 */
  body div[style*="transform:rotate(1deg)"],
  body div[style*="transform:rotate(-1deg)"] {
    transform: none !important;
  }

  /* Pennant / KICK OFFラベルも回転緩和 */
  body div[style*="transform:rotate(-2deg)"] { transform: rotate(-1deg) !important; }

  /* 出張予約 / ☎ 電話の 20px 36px パディングを縮小 */
  body a[style*="padding:20px 36px"] {
    padding: 16px 20px !important;
    font-size: 15px !important;
  }
  body a[style*="padding:18px 28px"] {
    padding: 14px 18px !important;
    font-size: 14px !important;
  }

  /* アクションボタン群が横スクロールするのを防ぐ */
  body div[style*="display:flex"][style*="gap:14px"],
  body div[style*="display:flex"][style*="gap:16px"],
  body div[style*="display:flex"][style*="gap:12px"] {
    gap: 10px !important;
  }

  /* 今日のゴール集 セクション見出しとボタンの横並び */
  body div[style*="justify-content:space-between"][style*="align-items:flex-end"] {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  /* Big display text shadows もSPで軽く */
  body h1[style*="text-shadow:6px 6px 0"],
  body h2[style*="text-shadow:6px 6px 0"],
  body h2[style*="text-shadow:5px 5px 0"] {
    text-shadow: 3px 3px 0 #0a1a3a !important;
  }

  /* パディング大きなPタグ (17-18px) を縮小 */
  body p[style*="font-size:18px"],
  body p[style*="font-size:17px"] { font-size: 15px !important; }

  /* フッター: 5カラム → 2カラム */
  .rj-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .rj-footer-brand { grid-column: span 2; }
}

/* さらに狭いSP (≤420px) */
@media (max-width: 420px) {
  body div[style*="grid-template-columns:repeat(4,1fr)"],
  body div[style*="border:4px solid #ffd23f"][style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* LOW/MID/HIGH は1列に */
  body div[style*="grid-template-columns:repeat(3,1fr)"][style*="gap:8px"] {
    grid-template-columns: 1fr !important;
  }
  .rj-footer-grid { grid-template-columns: 1fr !important; }
  .rj-footer-brand { grid-column: auto; }
}
