:root {
  --ra-black: #080808;
  --ra-black-soft: #121212;
  --ra-yellow: #f9ca00;
  --ra-yellow-soft: #fff4bd;
  --ra-white: #fff;
  --ra-off-white: #f6f6f4;
  --ra-gray: #6d6d6d;
  --ra-line: #dcdcd8;
  --ra-green: #06c755;
  --ra-max: 1180px;
  --ra-radius: 18px;
  --ra-shadow: 0 18px 50px rgba(0, 0, 0, .12);
  --ra-font-body: "Noto Sans JP", sans-serif;
  --ra-font-display: "Oswald", "Noto Sans JP", sans-serif;
}

.ra-store *, .ra-store *::before, .ra-store *::after { box-sizing: border-box; }
.ra-store { margin: 0; color: var(--ra-black); background: var(--ra-off-white); font-family: var(--ra-font-body); line-height: 1.8; }
.ra-store img { display: block; max-width: 100%; height: auto; }
.ra-store a { color: inherit; }
.ra-store button, .ra-store a { -webkit-tap-highlight-color: transparent; }
.ra-store__container { width: min(calc(100% - 48px), var(--ra-max)); margin-inline: auto; }
.ra-store__eyebrow { margin: 0 0 14px; color: var(--ra-yellow); font: 700 .82rem/1.2 var(--ra-font-display); letter-spacing: .28em; text-transform: uppercase; }
.ra-store__title { margin: 0; font: 700 clamp(2.25rem, 5vw, 4.75rem)/1.04 var(--ra-font-display); letter-spacing: .01em; }
.ra-store__lead { max-width: 760px; margin: 24px 0 0; color: #d8d8d8; font-size: clamp(1rem, 1.6vw, 1.18rem); }

.ra-store__hero { position: relative; overflow: hidden; padding: clamp(86px, 11vw, 154px) 0 clamp(74px, 9vw, 124px); color: var(--ra-white); background: var(--ra-black); }
.ra-store__hero::after { position: absolute; right: -90px; bottom: -140px; width: 420px; height: 420px; border: 1px solid rgba(249,202,0,.3); border-radius: 50%; box-shadow: 0 0 0 54px rgba(249,202,0,.035), 0 0 0 108px rgba(249,202,0,.02); content: ""; }
.ra-store__hero-inner { position: relative; z-index: 1; }
.ra-store__hero-note { display: inline-flex; margin-top: 30px; padding: 10px 15px; border: 1px solid rgba(249,202,0,.55); color: var(--ra-yellow); font-size: .84rem; font-weight: 700; letter-spacing: .04em; }

.ra-store__section { padding: clamp(72px, 8vw, 116px) 0; }
.ra-store__section--white { background: var(--ra-white); }
.ra-store__section--dark { color: var(--ra-white); background: var(--ra-black); }
.ra-store__section-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr); gap: 48px; align-items: end; margin-bottom: 44px; }
.ra-store__heading { margin: 0; font: 700 clamp(2rem, 3.7vw, 3.4rem)/1.12 var(--ra-font-display); }
.ra-store__intro { margin: 0; color: var(--ra-gray); }
.ra-store__section--dark .ra-store__intro { color: #c8c8c8; }

.ra-store__category-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.ra-store__category { position: relative; display: flex; min-height: 350px; overflow: hidden; border: 1px solid #292929; border-radius: var(--ra-radius); color: var(--ra-white); background: linear-gradient(145deg,#0c0c0c,#1d1d1d); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.ra-store__category:hover { transform: translateY(-4px); border-color: var(--ra-yellow); }
.ra-store__category::before { position: absolute; inset: 0; background: linear-gradient(110deg,rgba(0,0,0,.96) 0%,rgba(0,0,0,.72) 55%,rgba(0,0,0,.26) 100%); content:""; }
.ra-store__category-media { position: absolute; inset: 0; display: grid; place-items: center; color: #777; background: repeating-linear-gradient(135deg,#202020 0,#202020 12px,#191919 12px,#191919 24px); font-size: .75rem; letter-spacing: .08em; }
.ra-store__category-content { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; justify-content: flex-end; padding: clamp(28px,4vw,48px); }
.ra-store__number { color: var(--ra-yellow); font: 700 .82rem/1 var(--ra-font-display); letter-spacing: .24em; }
.ra-store__category h2, .ra-store__category h3 { margin: 14px 0 10px; font: 700 clamp(1.75rem,3vw,2.8rem)/1.1 var(--ra-font-display); }
.ra-store__category p { max-width: 520px; margin: 0; color: #d4d4d4; }
.ra-store__text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 25px; color: var(--ra-yellow); font-weight: 900; }
.ra-store__text-link::after { content: "→"; }

.ra-store__button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ra-store__button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border: 1px solid transparent; border-radius: 4px; font-weight: 900; line-height: 1.35; text-align: center; text-decoration: none; transition: transform .2s ease, filter .2s ease; }
.ra-store__button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.ra-store__button--yellow { color: var(--ra-black); background: var(--ra-yellow); }
.ra-store__button--line { color: var(--ra-white); background: var(--ra-green); }
.ra-store__button--outline { border-color: #777; color: var(--ra-white); background: transparent; }

.ra-store__cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.ra-store__card { overflow: hidden; border: 1px solid var(--ra-line); border-radius: 14px; background: var(--ra-white); }
.ra-store__card-media { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 24px; color: #777; background: repeating-linear-gradient(135deg,#eee 0,#eee 12px,#e7e7e7 12px,#e7e7e7 24px); font-size: .75rem; text-align: center; }
.ra-store__card-body { padding: 25px; }
.ra-store__tag { display: inline-block; padding: 5px 9px; color: var(--ra-black); background: var(--ra-yellow); font: 700 .72rem/1 var(--ra-font-display); letter-spacing: .12em; }
.ra-store__card h3 { margin: 15px 0 8px; font-size: 1.1rem; line-height: 1.45; }
.ra-store__card p { margin: 0; color: var(--ra-gray); font-size: .9rem; }
.ra-store__meta { display: grid; gap: 7px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ra-line); font-size: .88rem; }
.ra-store__meta div { display: flex; justify-content: space-between; gap: 20px; }
.ra-store__meta dt { color: var(--ra-gray); }
.ra-store__meta dd { margin: 0; font-weight: 700; text-align: right; }

.ra-store__steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid #333; border-radius: var(--ra-radius); background: #333; }
.ra-store__step { padding: 35px; background: var(--ra-black-soft); }
.ra-store__step strong { display: block; margin-bottom: 12px; color: var(--ra-yellow); font: 700 .82rem/1 var(--ra-font-display); letter-spacing: .2em; }
.ra-store__step h3 { margin: 0 0 10px; font-size: 1.1rem; }
.ra-store__step p { margin: 0; color: #bcbcbc; font-size: .9rem; }

.ra-store__purpose-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.ra-store__purpose { padding: 24px; border-left: 4px solid var(--ra-yellow); background: var(--ra-white); box-shadow: 0 8px 30px rgba(0,0,0,.05); }
.ra-store__purpose h3 { margin: 0 0 8px; font-size: 1rem; }
.ra-store__purpose p { margin: 0; color: var(--ra-gray); font-size: .86rem; }

.ra-store__split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px,5vw,72px); align-items: center; }
.ra-store__feature-media { aspect-ratio: 4/3; display: grid; place-items: center; border: 1px solid #333; color: #888; background: repeating-linear-gradient(135deg,#1d1d1d 0,#1d1d1d 14px,#151515 14px,#151515 28px); font-size: .8rem; text-align: center; }
.ra-store__copy h2 { margin: 0 0 22px; font: 700 clamp(2rem,4vw,3.6rem)/1.1 var(--ra-font-display); }
.ra-store__copy p { color: inherit; opacity: .78; }
.ra-store__list { display: grid; gap: 12px; padding: 0; list-style: none; }
.ra-store__list li { position: relative; padding-left: 24px; }
.ra-store__list li::before { position: absolute; left: 0; color: var(--ra-yellow); content: "■"; font-size: .62rem; }

.ra-store__notice { padding: 20px 22px; border: 1px solid #d6bd40; color: #473d00; background: var(--ra-yellow-soft); font-size: .9rem; }
.ra-store__cta { padding: clamp(42px,6vw,72px); border-radius: var(--ra-radius); color: var(--ra-white); background: var(--ra-black); text-align: center; }
.ra-store__cta h2 { max-width: 760px; margin: 0 auto 14px; font: 700 clamp(1.8rem,3.5vw,3rem)/1.25 var(--ra-font-display); }
.ra-store__cta p { max-width: 660px; margin: 0 auto; color: #c7c7c7; }
.ra-store__cta .ra-store__button-row { justify-content: center; }

.ra-store__source-note { display: inline-flex; margin-top: 14px; padding: 6px 9px; border: 1px dashed #999; color: #666; background: #fafafa; font-size: .72rem; }
.ra-store__home-banner { position: relative; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); overflow: hidden; border-radius: var(--ra-radius); color: var(--ra-white); background: var(--ra-black); text-decoration: none; }
.ra-store__home-banner-copy { padding: clamp(34px,6vw,70px); }
.ra-store__home-banner-copy h2 { margin: 8px 0 15px; font: 700 clamp(2.3rem,5vw,4.4rem)/1 var(--ra-font-display); }
.ra-store__home-banner-copy p { color: #ccc; }
.ra-store__home-banner-media { min-height: 310px; display: grid; place-items: center; color: #888; background: repeating-linear-gradient(135deg,#202020 0,#202020 14px,#161616 14px,#161616 28px); text-align:center; }

@media (max-width: 900px) {
  .ra-store__section-head, .ra-store__split, .ra-store__home-banner { grid-template-columns: 1fr; }
  .ra-store__category-grid, .ra-store__cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ra-store__purpose-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ra-store__home-banner-media { min-height: 240px; }
}

@media (max-width: 640px) {
  .ra-store__container { width: min(calc(100% - 32px), var(--ra-max)); }
  .ra-store__hero { padding: 72px 0 64px; }
  .ra-store__hero::after { right: -180px; bottom: -200px; }
  .ra-store__section { padding: 64px 0; }
  .ra-store__section-head { gap: 20px; margin-bottom: 30px; }
  .ra-store__category-grid, .ra-store__cards, .ra-store__steps, .ra-store__purpose-grid { grid-template-columns: 1fr; }
  .ra-store__category { min-height: 300px; }
  .ra-store__category-content { padding: 28px; }
  .ra-store__button-row { flex-direction: column; }
  .ra-store__button { width: 100%; }
  .ra-store__cta { padding: 38px 22px; }
  .ra-store__home-banner-copy { padding: 34px 26px; }
  .ra-store__home-banner-media { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .ra-store__category, .ra-store__button { transition: none; }
}

/* ============================================================
 * 既存テーマ style.css の `.section-title, h1..h6 { color: var(--brand-black) }`
 * が .ra-store 内の見出しを黒く上書きするための対策。
 * .ra-store スコープ内で見出し色を明示し直す（既存カラー値と整合）。
 * ダーク/ヒーロー等の黒背景セクションの見出しは白にする。
 * ============================================================ */
.ra-store h1, .ra-store h2, .ra-store h3, .ra-store h4, .ra-store h5, .ra-store h6 { color: var(--ra-black); }

/* 黒背景セクションの見出し・テキストは白（＋アクセントは黄のまま） */
.ra-store__hero, .ra-store__hero h1, .ra-store__hero h2, .ra-store__hero h3 { color: var(--ra-white); }
.ra-store__section--dark, .ra-store__section--dark h1, .ra-store__section--dark h2, .ra-store__section--dark h3 { color: var(--ra-white); }
.ra-store__category, .ra-store__category h2, .ra-store__category h3 { color: var(--ra-white); }
.ra-store__step, .ra-store__step h3 { color: var(--ra-white); }
/* CTAボックスは白背景セクション内でも背景=黒。見出しは白にする（既存h2黒ルール対策） */
.ra-store__cta, .ra-store__cta h1, .ra-store__cta h2, .ra-store__cta h3 { color: var(--ra-white); }

/* eyebrow（黄ラベル）は常に黄を維持（見出しルールに巻き込まれないよう明示） */
.ra-store .ra-store__eyebrow, .ra-store .ra-store__number { color: var(--ra-yellow); }
