/* ==================================================================
   Ripemaga Header Component
   ヘッダーのLINEボタン・メニューボタンはリペルンHP（riperun-header.css）と
   同じ寸法・同じ見た目。メニューの中身はサイボウズ式の吹き出し型。
   ================================================================== */

/* SWELL標準ヘッダーを非表示にし、独自ヘッダー(.rph.rpm)に統一する */
#header,
#fix_header,
.l-fixHeader {
  display: none !important;
}

:root {
  --rph-blue: #11aee8;
  --rph-blue-dark: #0789bf;
  --rph-green: #20c65a;
  --rph-green-dark: #0c9e3d;
  --rph-ink: #242424;
  --rph-muted: #6e7479;
  --rph-line: #e5edf2;
  --rpm-sky: #26b7e9;
  --rpm-round: "Zen Maru Gothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.rph,
.rpm-bubble-layer {
  color: var(--rph-ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
}

.rph {
  width: 100%;
  margin: 0;
  background: #fff;
}

html.rpm-menu-open {
  overflow: hidden;
}

/* メニュー展開中もヘッダー上段は操作可能（オーバーレイはヘッダー上段の下から始まる） */

.rph *,
.rph *::before,
.rph *::after,
.rpm-bubble-layer *,
.rpm-bubble-layer *::before,
.rpm-bubble-layer *::after {
  box-sizing: border-box;
}

.rph a,
.rpm-bubble-layer a {
  text-decoration: none;
  color: inherit;
}

/* ---------- ヘッダー本体（PC） ---------- */
.rph-main {
  max-width: 1240px;
  min-height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 195px 1fr 260px 52px;
  align-items: center;
  gap: 16px;
  padding: 12px 22px 12px;
  background: #fff;
  border-bottom: 1px solid var(--rph-line);
}

.rph-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rph-logo-img {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
}

.rpm-pc-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.rpm-pc-nav a {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.rpm-pc-nav a:hover {
  border-bottom-color: var(--rpm-sky);
}

/* ---------- LINEボタン（HPと同一） ---------- */
.rph-line-cta {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 8px 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #bce6a0 0%, #5cb83a 70%, #4fae2e 100%);
  box-shadow: 0 6px 0 #3f8f24, 0 10px 22px rgba(95, 160, 55, .26);
  text-align: left;
  font-weight: 1000;
}

.rph-line-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
  font-weight: 1000;
}

.rph-line-text-mobile {
  display: none;
}

.rph-small {
  display: block;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 3px;
}

.rph-line-bubble {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.rph-line-bubble img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.rph-line-bubble-mobile {
  display: none;
}

/* ---------- メニューボタン（HPのスマホ用と同一寸法・PCでも表示） ---------- */
.rph-menu-button {
  width: 52px;
  height: 47px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #26b7e9, #1391c9);
  box-shadow: 0 3px 0 #0a75a6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  cursor: pointer;
  padding: 13px 0 4px;
  font-family: inherit;
}

.rph-menu-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 17px;
  position: relative;
}

.rph-menu-bars span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

.rph-menu-label {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* 開いているときは同じボタンが「×」になる（サイボウズ式） */
.rph-menu-button.is-open .rph-menu-bars span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.rph-menu-button.is-open .rph-menu-bars span:nth-child(2) {
  opacity: 0;
}
.rph-menu-button.is-open .rph-menu-bars span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- 吹き出しメニュー ---------- */
.rpm-bubble-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
  pointer-events: none;
}

.rpm-bubble-layer[hidden] {
  display: none;
}

.rpm-bubble-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--rpm-bubble-top-ov, 0px);
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.rpm-bubble {
  position: absolute;
  top: var(--rpm-bubble-top, 74px);
  right: 12px;
  left: 12px;
  max-height: calc(100% - var(--rpm-bubble-top, 74px) - 20px);
  max-height: calc(100dvh - var(--rpm-bubble-top, 74px) - 20px);
  overflow-y: auto;
  padding-bottom: 20px;
  overscroll-behavior: contain;
  background: #fff;
  border: 2px solid var(--rpm-sky);
  border-radius: 14px;
  padding: 16px 16px 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}

.rpm-bubble::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 22px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 2px solid var(--rpm-sky);
  border-top: 2px solid var(--rpm-sky);
  transform: rotate(45deg);
}

.rpm-bubble-layer.rpm-open .rpm-bubble-overlay {
  opacity: 1;
  pointer-events: auto;
}

.rpm-bubble-layer.rpm-open .rpm-bubble {
  pointer-events: auto;
}

.rpm-bubble-layer.rpm-open .rpm-bubble {
  opacity: 1;
  transform: none;
}

@media (min-width: 961px) {
  .rpm-bubble {
    left: auto;
    width: 420px;
    right: var(--rpm-bubble-right, 40px);
  }
  .rpm-bubble::before {
    right: 18px;
  }
}

.rpm-nav {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.rpm-nav li {
  margin: 0;
}

.rpm-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #2d2f32;
}

.rpm-nav a::before {
  content: "›";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rpm-sky);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding-bottom: 2px;
  flex: 0 0 auto;
}

.rpm-nav small {
  font-size: 11px;
  color: var(--rph-muted);
  font-weight: 500;
  margin-left: 4px;
}

.rpm-search {
  display: flex;
  align-items: center;
  border: 1.5px solid #c9d6df;
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  margin: 0 0 18px;
  background: #fff;
}

.rpm-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px; /* 16px未満だとiOSがフォーカス時に画面を拡大し、固定表示が見切れる */
  padding: 8px 0;
  color: #2d2f32;
  font-family: inherit;
}

.rpm-search input::placeholder {
  color: #8a9aa5;
}

.rpm-search button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #2d2f32;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.rpm-search button svg {
  width: 18px;
  height: 18px;
}

.rpm-tags-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--rpm-round);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 10px;
}

.rpm-tags-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #2d2f32;
}

.rpm-tags {
  display: grid;
  gap: 9px;
}

.rpm-tag {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--rph-muted);
}

.rpm-tag b {
  background: var(--rpm-sky);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* メニュー最下段のLINEボタン（HPのドロワー用と同一） */
.rph-drawer-line {
  margin-top: 18px;
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 1000;
  text-align: center;
  box-shadow: 0 7px 15px rgba(0, 0, 0, .16);
  background: var(--rph-green);
}

.rph-drawer-line span {
  color: #fff;
}

.rph-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  overflow: hidden;
}

.rph-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rph-drawer-line .rph-go {
  color: var(--rph-green);
  background: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  padding-bottom: 2px;
}

/* ---------- スマホ（HPと同じブレークポイント・同じ寸法） ---------- */
@media (max-width: 960px) {
  .rpm-pc-nav {
    display: none;
  }

  /* 画面下の固定メニュー（約56px）に潜らないよう、吹き出しの下端を上げる */
  .rpm-bubble {
    max-height: calc(100% - var(--rpm-bubble-top, 74px) - 84px);
    max-height: calc(100dvh - var(--rpm-bubble-top, 74px) - 84px);
  }

  .rph-main {
    min-height: 64px;
    display: grid;
    grid-template-columns: 1fr 132px 52px;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--rph-line);
  }

  .rph-brand {
    min-width: 0;
    gap: 8px;
  }

  .rph-logo-img {
    width: auto;
    max-width: 100%;
    max-height: 38px;
  }

  .rph-line-cta {
    min-height: 36px;
    padding: 3px 10px;
    gap: 6px;
    font-size: 11px;
    box-shadow: 0 3px 0 var(--rph-green-dark);
  }

  .rph-line-text-pc {
    display: none;
  }

  .rph-line-text-mobile {
    display: block;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }

  .rph-line-bubble {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }

  .rph-line-bubble img.rph-line-bubble-pc {
    display: none;
  }

  .rph-line-bubble-mobile {
    display: block;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 390px) {
  .rph-main {
    grid-template-columns: 1fr 118px 46px;
    gap: 6px;
    padding: 7px 10px;
  }

  .rph-line-cta {
    font-size: 10px;
    padding: 2px 8px;
    gap: 5px;
  }

  .rph-line-text-mobile {
    font-size: 10px;
  }

  .rph-line-bubble {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
  }

  .rph-menu-button {
    width: 46px;
    height: 43px;
  }

  .rph-menu-bars {
    width: 22px;
    height: 15px;
  }

  .rph-menu-button.is-open .rph-menu-bars span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .rph-menu-button.is-open .rph-menu-bars span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .rph-menu-label {
    font-size: 9px;
  }
}

/* ---------- 追従ヘッダー（HPと同じ挙動） ---------- */
.rph-spacer {
  height: 0;
}

/* 固定されるのはヘッダー上段（.rpm-top）だけ。青いカテゴリ帯はページと一緒に自然にスクロールして上段の下に隠れる */
.rpm-top {
  background: #fff;
}

.rph.is-stuck .rpm-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9990;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}

/* ログイン中のWordPress管理バー（32px／スマホ46px）の分だけ下げる */
.admin-bar .rph.is-stuck .rpm-top {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .rph.is-stuck .rpm-top {
    top: 46px;
  }
}

/* ==================================================================
   トップページ：PICK UP／タグライン／セクション見出し
   ================================================================== */
.rpm-pick {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  padding: 44px 0 0;
  overflow: hidden;
}

.rpm-pick-label {
  position: absolute;
  right: 6vw;
  top: 10px;
  z-index: 3;
  font-family: var(--rpm-round);
  font-weight: 900;
  font-size: 46px;
  letter-spacing: .04em;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 2px var(--rpm-sky);
  paint-order: stroke fill;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.rpm-pick-frame {
  position: relative;
  margin: 0;
  overflow: visible;
}

.rpm-pick-track {
  display: flex;
  gap: 12px;
  transition: transform 1.1s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.rpm-pick-track.no-anim {
  transition: none;
}

.rpm-pick-slide {
  flex: 0 0 82vw;
  max-width: 560px;
  display: block;
  background: #fff;
  color: #2d2f32;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(31, 43, 52, .14);
}

.rpm-pick-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.rpm-pick-cap {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 10px 14px 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .02em;
  min-height: 58px;
}

.rpm-pick-arr {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #2d2f32;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 4px;
  z-index: 3;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}

.rpm-pick-arr-l { left: 3vw; }
.rpm-pick-arr-r { right: 3vw; }

.rpm-pick-pag {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #8a9aa5;
  font-variant-numeric: tabular-nums;
}

.rpm-pick-pag span {
  position: relative;
  padding-top: 12px;
  cursor: pointer;
}

.rpm-pick-pag span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d6e2ea;
  transform: translateX(-50%);
}

.rpm-pick-pag span.on {
  color: #2d2f32;
}

.rpm-pick-pag span.on::before {
  background: var(--rpm-sky);
}

@media (min-width: 961px) {
  .rpm-pick {
    padding-top: 44px;
    margin-top: 0;
  }
  .rpm-pick-label {
    font-size: 64px;
    right: calc(50% - 300px);
    top: 0;
  }
  .rpm-pick-slide {
    flex-basis: 640px;
    max-width: 640px;
  }
  .rpm-pick-cap {
    padding: 14px 20px 16px;
    font-size: 18px;
  }
  .rpm-pick-arr {
    width: 46px;
    height: 46px;
    font-size: 34px;
  }
  .rpm-pick-arr-l { left: calc(50% - 380px); }
  .rpm-pick-arr-r { right: calc(50% - 380px); }
}

.rpm-tagline {
  text-align: center;
  padding: 24px 22px 24px;
  margin: 6px 0 12px;
  background: #f6f9fb;
  border-radius: 14px;
}

.rpm-tagline-head {
  font-family: var(--rpm-round);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: .04em;
  white-space: nowrap;
  color: #2d2f32;
  margin: 0;
  transform: translateX(2px);
}

.rpm-tagline-logo {
  display: block;
  width: 78%;
  max-width: 320px;
  height: auto;
  margin: 12px auto 14px;
  transform: translateX(-9px);
}

.rpm-tagline-body {
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: .04em;
  color: #2d2f32;
  margin: 0 auto;
  max-width: 340px;
  font-weight: 700;
}

@media (max-width: 360px) {
  .rpm-tagline-head { font-size: 17px; }
}

@media (min-width: 961px) {
  .rpm-tagline-head { font-size: 28px; }
  .rpm-tagline-logo { max-width: 380px; }
  .rpm-tagline-body { font-size: 15px; max-width: 560px; }
}

.rpm-sec-title {
  text-align: center;
  margin: 26px 0 14px;
}

.rpm-sec-en {
  font-family: var(--rpm-round);
  font-weight: 900;
  font-size: 40px;
  letter-spacing: .04em;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 2px var(--rpm-sky);
  paint-order: stroke fill;
}

.rpm-sec-ja {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--rph-muted);
  margin-top: 4px;
}

/* ==================================================================
   特集一覧
   ================================================================== */
.rpm-tokushu-list {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .rpm-tokushu-list {
    grid-template-columns: 1fr 1fr;
  }
}

.rpm-tokushu-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--rph-line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #2d2f32;
}

.rpm-tokushu-card img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  display: block;
}

.rpm-tokushu-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 8px 0;
}

.rpm-tokushu-body b {
  font-size: 15px;
  font-weight: 700;
}

.rpm-tokushu-desc {
  font-size: 12px;
  color: var(--rph-muted);
}

.rpm-tokushu-count {
  font-size: 11px;
  color: var(--rpm-sky);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .rpm-pick-track,
  .rpm-bubble,
  .rpm-bubble-overlay,
  .rph.is-stuck.is-anim {
    transition: none;
  }
}

/* ==================================================================
   「記事一覧を見る」ピルボタン（黒・ホバーで反転）
   ================================================================== */
.rpm-btn-wrap {
  text-align: center;
  margin: 20px 0 40px;
}

.rpm-btn-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 92%;
  max-width: 420px;
  min-height: 60px;
  padding: 14px 28px;
  border: 2px solid #2d2f32;
  border-radius: 999px;
  background: #2d2f32;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none !important;
  position: relative;
  transition: background .2s ease, color .2s ease;
}

.rpm-btn-all .rpm-btn-arrow {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 24px;
  line-height: 1;
}

.rpm-btn-all:hover,
.rpm-btn-all:focus-visible {
  background: #fff;
  color: #2d2f32 !important;
}

.rpm-btn-all:focus-visible {
  outline: 3px solid var(--rpm-sky);
  outline-offset: 2px;
}

/* ==================================================================
   PC レイアウト（サイボウズ式ヘッダー＋tetewan型ヒーロー）
   ================================================================== */
.rpm-pc-left,
.rpm-search-btn,
.rpm-catbar {
  display: none;
}

/* SPではラッパーを透過させ、LINE・メニューを従来のグリッド列に置く */
.rpm-pc-right {
  display: contents;
}

/* SPでは紹介文をPICK UPの下に */
.rpm-hero {
  display: flex;
  flex-direction: column;
}
.rpm-hero .rpm-tagline { order: 2; }
.rpm-hero .rpm-pick { order: 1; }

@media (min-width: 961px) {
  /* ---- ヘッダー上段：左=補助リンク／中央=ロゴ／右=ボタン ---- */
  .rph-main {
    max-width: 1500px;
    min-height: 118px;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    padding: 18px 40px 16px;
    border-bottom: 0;
  }

  .rpm-pc-nav {
    display: none;
  }

  .rpm-pc-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-self: start;
  }

  /* リペルン本サイトへの小さな入口（ロゴ＋「公式サイトへ」） */
  .rpm-pc-left .rpm-pc-parent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 6px;
    border: 1.5px solid #cfdbe3;
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    color: #2d2f32;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease;
  }

  .rpm-pc-left .rpm-pc-parent:hover {
    background: #f1f8fc;
    border-color: var(--rpm-sky);
  }

  .rpm-pc-left .rpm-pc-parent img {
    height: 22px;
    width: auto;
    display: block;
  }

  .rpm-pc-left .rpm-pc-parent span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--rph-muted);
  }

  .rpm-pc-left .rpm-pc-parent b {
    color: var(--rpm-sky);
    font-size: 14px;
    line-height: 1;
  }

  .rpm-sns {
    display: flex;
    gap: 8px;
  }

  .rpm-sns a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
  }

  .rpm-sns a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  .rpm-sns .ig { background: #e1306c; }
  .rpm-sns .ln { background: #06c755; }
  .rpm-sns .hp { background: #26b7e9; }

  .rph-brand {
    justify-self: center;
  }

  .rph-logo-img {
    max-width: 330px;
  }

  .rpm-pc-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    justify-self: end;
  }

  .rpm-search-btn {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    border: 0;
    border-radius: 50%;
    background: #2d2f32;
    color: #fff;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 3px 0 #111;
  }

  .rpm-search-btn svg {
    width: 20px;
    height: 20px;
  }

  /* ---- カテゴリ帯 ---- */
  .rpm-catbar {
    display: block;
    background: var(--rpm-sky);
  }

  .rpm-catbar-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    padding: 0 40px;
  }

  .rpm-catbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 6px 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
    border-left: 1px solid rgba(255, 255, 255, .45);
    transition: background .15s ease;
  }

  .rpm-catbar a:last-child {
    border-right: 1px solid rgba(255, 255, 255, .45);
  }

  .rpm-catbar a:hover {
    background: rgba(255, 255, 255, .14);
  }

  .rpm-catbar svg {
    width: 30px;
    height: 30px;
    fill: #fff;
  }

  /* ---- ヒーロー：左=紹介／右=PICK UP ---- */
  .rpm-hero {
    display: grid;
    grid-template-columns: 38fr 62fr;
    align-items: center;
    gap: 40px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 36px 40px 10px;
  }

  .rpm-hero .rpm-tagline,
  .rpm-hero .rpm-pick {
    order: 0;
  }

  .rpm-hero .rpm-tagline {
    background: transparent;
    padding: 0 10px;
    margin: 0;
  }

  .rpm-hero .rpm-tagline-head {
    font-size: 20px;
    letter-spacing: .18em;
    transform: none;
  }

  .rpm-hero .rpm-tagline-logo {
    max-width: 460px;
    width: 100%;
    margin: 22px auto 26px;
    transform: translateX(-10px);
  }

  .rpm-hero .rpm-tagline-body {
    font-size: 15px;
    line-height: 2.3;
    letter-spacing: .08em;
    max-width: 480px;
  }

  .rpm-hero .rpm-pick {
    width: auto;
    margin: 0;
    padding: 52px 0 0;
    overflow: visible;
    display: grid;
    grid-template-columns: 74px 1fr;
    align-items: center;
    column-gap: 10px;
  }

  .rpm-hero .rpm-pick-label {
    font-size: 78px;
    letter-spacing: .04em;
    right: -6px;
    top: -6px;
    -webkit-text-stroke: 2.5px var(--rpm-sky);
  }

  .rpm-hero .rpm-pick-frame {
    overflow: hidden;
    padding: 0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(31, 43, 52, .16);
    background: #fff;
    grid-column: 2;
    position: static; /* 矢印は .rpm-pick 基準で枠の外に置く（クリップされない） */
  }

  .rpm-hero .rpm-pick-track {
    gap: 0;
  }

  .rpm-hero .rpm-pick-slide {
    flex: 0 0 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  .rpm-hero .rpm-pick-slide img {
    border-radius: 0;
    box-shadow: none;
  }

  /* タイトルは画像の下（画像には重ねない） */
  .rpm-hero .rpm-pick-cap {
    position: static;
    padding: 16px 24px 18px;
    font-size: 19px;
    line-height: 1.6;
    min-height: 82px;
    -webkit-line-clamp: 2;
    background: #fff;
  }

  /* 縦並びのページ番号（左列） */
  .rpm-hero .rpm-pick-pag {
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding-left: 34px;
    font-size: 14px;
  }

  .rpm-hero .rpm-pick-pag span {
    padding: 0 0 0 16px;
  }

  .rpm-hero .rpm-pick-pag span::before {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .rpm-hero .rpm-pick-arr {
    width: 44px;
    height: 44px;
    font-size: 34px;
    background: transparent;
    box-shadow: none;
    color: #2d2f32;
  }

  .rpm-hero .rpm-pick-arr-l {
    left: -4px;
    top: 52%;
  }

  .rpm-hero .rpm-pick-arr-r {
    right: -48px;
    top: 52%;
  }

  /* ---- NEW POSTS を大きく・横いっぱい ---- */
  .home .l-content,
  .home .l-mainContent,
  .home .l-article,
  .home .l-container {
    max-width: 1500px;
  }

  .rpm-sec-title {
    margin: 48px 0 22px;
  }

  .rpm-sec-en {
    font-size: 66px;
    letter-spacing: .06em;
    -webkit-text-stroke: 2.5px var(--rpm-sky);
  }

  .rpm-sec-ja {
    font-size: 14px;
    letter-spacing: .16em;
    margin-top: 10px;
  }

  .home .p-postList.-type-card .p-postList__title {
    font-size: 17px;
    line-height: 1.6;
  }

  .rpm-btn-all {
    max-width: 380px;
    min-height: 64px;
    font-size: 16px;
  }
}

@media (min-width: 1280px) {
  .rpm-hero .rpm-tagline-head { font-size: 22px; }
  .rpm-hero .rpm-tagline-body { font-size: 16px; }
  .rpm-catbar a { font-size: 15px; padding: 16px 8px 14px; }
}
