/* 新デザイン（azukari-ui）移植スタイル。基本値は src/theme/designValues.ts と同期。
   ブレークポイントは統一基準 560 / 720 / 960 / 1100（designValues.ts breakpoints） */

.rd-page {
  --rd-bg: #ffffff;
  --rd-ink: #111111;
  --rd-muted: #6b7280;
  --rd-line: rgba(24, 19, 17, 0.12);
  --rd-line-strong: rgba(24, 19, 17, 0.24);
  --rd-accent: #29453f;
  --rd-shadow: 0 24px 60px rgba(24, 19, 17, 0.08);
  --rd-radius-lg: 28px;
  --rd-radius-md: 20px;
  --rd-max: 1280px;
  --rd-section-gap: 112px;
  --rd-header-h: clamp(56px, 6vh, 72px);
  --rd-gutter: clamp(20px, 3vw, 40px);
  --rd-hero-bg: #0d0f10;
  --rd-hero-fg: #f8f3ec;

  font-family: 'Noto Sans JP', sans-serif;
  background: var(--rd-bg);
  color: var(--rd-ink);
  min-height: 100vh;
}

.rd-page *,
.rd-page *::before,
.rd-page *::after {
  box-sizing: border-box;
}

/* index.html のグローバル h1-h3（Cormorant明朝・細字）を打ち消し、
   Souta原本（Noto Sans JP ゴシック・太字）に合わせる */
.rd-page h1,
.rd-page h2,
.rd-page h3,
.rd-page h4 {
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  letter-spacing: normal;
  line-height: 1.4;
  font-weight: 700;
}

.rd-page a {
  color: inherit;
  text-decoration: none;
}

.rd-page img {
  display: block;
  max-width: 100%;
}

/* ===== Header ===== */
.rd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--rd-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--rd-gutter);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rd-line);
  transition: background 240ms ease, color 240ms ease;
}

.rd-header.rd-header--on-hero {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--rd-hero-fg);
  backdrop-filter: none;
}

.rd-header__brand {
  font-weight: 700;
  letter-spacing: 0.34em;
  font-size: clamp(0.95rem, 1.4vw, 1.16rem);
}

.rd-header__menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  cursor: pointer;
  padding: 8px 0;
}

.rd-header__menu-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.rd-header__menu-bars span {
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

/* drawer */
.rd-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
}

.rd-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.4);
  border: 0;
  cursor: pointer;
}

.rd-drawer__panel {
  position: relative;
  width: min(320px, 84vw);
  background: #ffffff;
  height: 100%;
  padding: calc(var(--rd-header-h) + 16px) 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--rd-shadow);
}

.rd-drawer__close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rd-ink);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: background-color 160ms ease;
}
.rd-drawer__close:hover {
  background: rgba(24, 19, 17, 0.06);
}

.rd-drawer__panel a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--rd-line);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

/* ===== Hero ===== */
.rd-hero {
  position: relative;
  background: var(--rd-hero-bg);
  color: var(--rd-hero-fg);
  min-height: min(calc(100vw * 9 / 16), 92svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.rd-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.rd-hero__slide.is-active {
  opacity: 1;
}

.rd-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rd-hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 15, 16, 0.85) 0%, rgba(13, 15, 16, 0) 45%);
}

.rd-hero__overlay {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--rd-gutter) clamp(20px, 4vh, 30px);
}

.rd-hero__title {
  font-size: clamp(1.55rem, 3.8vw, 3rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.rd-hero__desc {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: rgba(248, 243, 236, 0.78);
  max-width: 32em;
}

.rd-page a.rd-hero__cta {
  flex-shrink: 0;
  background: #ffffff;
  color: #111111;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 26px;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.rd-hero__dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-bottom: 18px;
}

.rd-hero__dot {
  width: 56px;
  height: 5px;
  border: 0;
  border-radius: 2px;
  background: rgba(248, 243, 236, 0.35);
  cursor: pointer;
  padding: 0;
}

.rd-hero__dot.is-active {
  background: #f8f3ec;
}

/* ===== Sections ===== */
.rd-main {
  display: flex;
  flex-direction: column;
  gap: var(--rd-section-gap);
  padding-bottom: var(--rd-section-gap);
}

.rd-section {
  width: 100%;
  max-width: var(--rd-max);
  margin: 0 auto;
  padding: 0 var(--rd-gutter);
}

.rd-section__title {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 12px;
}

.rd-section__lead {
  color: var(--rd-muted);
  font-size: 0.95rem;
  line-height: 1.9;
  margin: 0 0 36px;
  white-space: pre-line;
  max-width: 46em;
}

.rd-section--first {
  margin-top: var(--rd-section-gap);
}

/* numbered card rail */
.rd-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 420px);
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.rd-card {
  scroll-snap-align: start;
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--rd-shadow);
  display: flex;
  flex-direction: column;
}

.rd-card__image {
  aspect-ratio: 44 / 30;
  overflow: hidden;
  background: #f4efe6;
}

.rd-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rd-card__body {
  padding: 20px 22px 26px;
}

.rd-card__number {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--rd-muted);
}

.rd-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 8px 0 10px;
  line-height: 1.5;
}

.rd-card__text {
  font-size: 0.85rem;
  color: var(--rd-muted);
  line-height: 1.9;
  margin: 0;
  white-space: pre-line;
}

/* benefits (dark cards) */
.rd-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rd-benefit {
  position: relative;
  border-radius: var(--rd-radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  color: #f8f3ec;
  text-align: left;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #0d0f10;
  font: inherit;
}

.rd-benefit img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 500ms ease;
}

.rd-benefit:hover img {
  transform: scale(1.04);
}

.rd-benefit__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 15, 16, 0.88) 0%, rgba(13, 15, 16, 0.05) 55%);
}

.rd-benefit__content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
}

.rd-benefit__label {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(248, 243, 236, 0.65);
}

.rd-benefit__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 6px 0 8px;
}

.rd-benefit__body {
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(248, 243, 236, 0.8);
  margin: 0;
}

.rd-benefit__detail {
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(248, 243, 236, 0.7);
  margin: 10px 0 0;
  border-top: 1px solid rgba(248, 243, 236, 0.25);
  padding-top: 10px;
}

/* writers — Souta原本: az-photo-card（縦長ダークカード）+ writer-modal（白2カラム） */
.rd-wcard-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 440px;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.rd-wcard {
  position: relative;
  aspect-ratio: 44 / 65;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 8, 8, 0.08) 0%, rgba(5, 8, 8, 0.18) 44%, rgba(5, 8, 8, 0.78) 100%),
    linear-gradient(135deg, #193328 0%, #09110d 58%, #0a100d 100%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  color: #ffffff;
  scroll-snap-align: start;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-align: left;
}

.rd-wcard__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rd-wcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 8, 0) 40%, rgba(5, 8, 8, 0.72) 100%);
}

.rd-wcard__copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.rd-wcard__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rd-wcard__name {
  margin: 0;
  font-size: clamp(1.32rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.rd-wcard__plus {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.92);
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.rd-wmodal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.rd-wmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  border: 0;
  cursor: pointer;
}

.rd-wmodal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(320px, 1fr);
  width: min(980px, calc(100% - 32px));
  max-height: calc(100vh - 64px);
  overflow: hidden;
  border-radius: 32px;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 32px 96px rgba(15, 23, 42, 0.22);
}

.rd-wmodal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.9);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.rd-wmodal__media {
  min-height: 0;
}

.rd-wmodal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rd-wmodal__body {
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  min-height: 0;
}

.rd-wmodal__location {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rd-muted);
}

.rd-wmodal__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.rd-wmodal__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
}

.rd-wmodal__detail {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--rd-muted);
}

.rd-wmodal__collection-label {
  margin: 14px 0 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rd-muted);
}

.rd-wmodal__mini-rail {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rd-wmini {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--rd-line);
  border-radius: 14px;
  padding: 8px 14px 8px 8px;
  transition: border-color 160ms ease;
}

.rd-wmini:hover {
  border-color: var(--rd-line-strong);
}

.rd-wmini img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.rd-wmini span {
  font-size: 0.82rem;
  font-weight: 700;
}

/* blog preview */
.rd-blog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rd-blog__card {
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius-md);
  padding: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 200ms ease;
}

.rd-blog__card:hover {
  border-color: var(--rd-line-strong);
}

.rd-blog__meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--rd-muted);
}

.rd-blog__title {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.6;
}

.rd-blog__excerpt {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--rd-muted);
  margin: 0;
}

.rd-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.rd-section__more {
  font-size: 0.82rem;
  color: var(--rd-muted);
  border-bottom: 1px solid var(--rd-line-strong);
  padding-bottom: 2px;
  flex-shrink: 0;
}

/* newsletter */
.rd-newsletter {
  text-align: center;
  border-top: 1px solid var(--rd-line);
  padding-top: var(--rd-section-gap);
}

.rd-newsletter h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: 0 0 10px;
}

.rd-newsletter p {
  color: var(--rd-muted);
  font-size: 0.9rem;
  margin: 0 0 28px;
}

.rd-newsletter__form {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto;
}

.rd-newsletter__input {
  flex: 1;
  border: 1px solid var(--rd-line-strong);
  border-radius: 8px;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.9rem;
}

.rd-newsletter__submit {
  border: 0;
  border-radius: 8px;
  background: var(--rd-ink);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 13px 26px;
  cursor: pointer;
}

.rd-newsletter__submit:disabled {
  opacity: 0.55;
  cursor: default;
}

/* footer */
.rd-footer {
  background: #0d0f10;
  color: rgba(248, 243, 236, 0.85);
  padding: 48px var(--rd-gutter) 36px;
  text-align: center;
}

.rd-footer__brand {
  letter-spacing: 0.34em;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.rd-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 0.8rem;
  margin-bottom: 24px;
}

.rd-footer__links a,
.rd-footer__links button {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.rd-footer__copy {
  font-size: 0.72rem;
  color: rgba(248, 243, 236, 0.5);
}

/* ===== Bonsai Detail (/v4/marketplace/:id) ===== */
.rd-detail-hero {
  position: relative;
  /* 下限460pxを確保。モバイルで calc(100vw*9/16)≈211px に潰れ、コンテンツが
     ヘッダーへあふれる問題を防ぐ（flex-endで底揃え） */
  min-height: max(460px, min(82svh, calc(100vw * 9 / 16)));
  display: flex;
  align-items: flex-end;
  background: #0b0b0b;
  overflow: hidden;
}

.rd-detail-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) brightness(0.7) contrast(1.04);
}

.rd-detail-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.35) 30%,
      rgba(0, 0, 0, 0.12) 60%,
      rgba(0, 0, 0, 0.7) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0.55) 100%);
}

.rd-detail-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--rd-max);
  margin: 0 auto;
  padding: 0 var(--rd-gutter) clamp(28px, 5vh, 56px);
  color: var(--rd-hero-fg);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rd-detail-hero__lead {
  max-width: 38em;
  font-size: 0.95rem;
  line-height: 1.95;
  color: rgba(248, 243, 236, 0.88);
  margin: 0;
}

.rd-detail-hero__commerce {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(248, 243, 236, 0.25);
  padding-top: 20px;
}

.rd-detail-hero__label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 243, 236, 0.6);
}

.rd-detail-hero__title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 6px 0 0;
}

.rd-detail-hero__price {
  text-align: right;
}

.rd-detail-hero__price span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(248, 243, 236, 0.6);
}

.rd-detail-hero__price strong {
  font-size: 1.4rem;
}

/* 作品セレクタ（4つの盆栽から選ぶ） */
.rd-works {
  max-width: var(--rd-max);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 64px) var(--rd-gutter) 0;
}

.rd-works__eyebrow {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rd-muted);
}

.rd-works__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
}

.rd-works__item {
  position: relative;
  display: block;
  border: 1px solid var(--rd-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: border-color 200ms ease, transform 200ms ease;
}

.rd-works__item:hover {
  border-color: var(--rd-line-strong);
  transform: translateY(-2px);
}

.rd-works__item.is-active {
  border-color: var(--rd-ink);
  box-shadow: 0 0 0 1px var(--rd-ink);
}

.rd-works__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4efe6;
}

.rd-works__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rd-works__body {
  padding: 12px 14px 14px;
}

.rd-works__name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.rd-works__price {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--rd-muted);
}

.rd-works__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--rd-ink);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}

/* specs */
.rd-detail-specs {
  max-width: var(--rd-max);
  margin: 0 auto;
  padding: var(--rd-section-gap) var(--rd-gutter) 0;
}

.rd-detail-specs__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rd-muted);
  margin: 0 0 24px;
}

.rd-detail-specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--rd-line);
  border: 1px solid var(--rd-line);
}

.rd-detail-specs__grid > div {
  background: #fff;
  padding: 18px 20px;
}

.rd-detail-specs__grid dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--rd-muted);
  margin-bottom: 6px;
}

.rd-detail-specs__grid dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

/* alternating sections */
.rd-detail-sections {
  max-width: var(--rd-max);
  margin: 0 auto;
  padding: var(--rd-section-gap) var(--rd-gutter) 0;
  display: flex;
  flex-direction: column;
  gap: var(--rd-section-gap);
}

.rd-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.rd-detail-row--reverse .rd-detail-row__media {
  order: 2;
}

.rd-detail-row__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--rd-radius-md);
  background: #f4efe6;
}

.rd-detail-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rd-detail-row__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rd-muted);
  margin: 0 0 10px;
}

.rd-detail-row__title {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  margin: 0 0 16px;
}

.rd-detail-row__body {
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--rd-muted);
  margin: 0;
}

/* purchase panel */
.rd-purchase {
  max-width: var(--rd-max);
  margin: var(--rd-section-gap) auto 0;
  padding: 0 var(--rd-gutter);
}

.rd-purchase__inner {
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--rd-shadow);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}

.rd-purchase__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 20px;
}

.rd-plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rd-plan__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--rd-line-strong);
  border-radius: var(--rd-radius-md);
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.rd-plan__option.is-active {
  border-color: var(--rd-ink);
  background: rgba(13, 15, 16, 0.03);
}

.rd-plan__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rd-plan__years {
  font-weight: 700;
  font-size: 1rem;
}

.rd-plan__benefits {
  font-size: 0.78rem;
  color: var(--rd-muted);
  margin-top: 2px;
}

.rd-plan__price {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.rd-purchase__aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rd-currency {
  display: inline-flex;
  border: 1px solid var(--rd-line-strong);
  border-radius: 8px;
  overflow: hidden;
  align-self: flex-start;
}

.rd-currency button {
  border: 0;
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  padding: 8px 16px;
  cursor: pointer;
}

.rd-currency button.is-active {
  background: var(--rd-ink);
  color: #fff;
}

.rd-purchase__total {
  font-size: 1.8rem;
  font-weight: 700;
}

.rd-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--rd-muted);
  cursor: pointer;
}

.rd-consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.rd-consent a {
  color: var(--rd-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rd-purchase__cta {
  border: 0;
  border-radius: 10px;
  background: var(--rd-ink);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 16px;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.rd-purchase__cta:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* sticky CTA */
.rd-detail-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(13, 15, 16, 0.96);
  backdrop-filter: blur(10px);
  color: var(--rd-hero-fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--rd-gutter);
}

.rd-detail-sticky__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(248, 243, 236, 0.6);
}

.rd-detail-sticky__price {
  font-size: 1.1rem;
  font-weight: 700;
}

.rd-detail-sticky__btn {
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
}

/* ===== Blog list (/v4/blog) — Souta原本: 連載 + 記事一覧の行リスト ===== */
.rd-blist {
  background: #ffffff;
  color: var(--rd-ink);
  min-height: 100vh;
}

.rd-blist__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(var(--rd-header-h) + clamp(40px, 6vh, 72px)) var(--rd-gutter) var(--rd-section-gap);
}

.rd-blist__section + .rd-blist__section {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--rd-line);
}

.rd-blist__title {
  margin: 0 0 30px;
  font-size: 1.35rem;
  font-weight: 700;
}

.rd-blist__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd-blist__list li + li {
  margin-top: 10px;
}

.rd-blist__row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: center;
}

.rd-blist__thumb {
  display: block;
  width: 132px;
  height: 88px;
  border: 1px solid #cfcfcf;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), transparent 30%),
    radial-gradient(circle at 52% 68%, #5f4a37 0 10%, transparent 11%),
    linear-gradient(180deg, #e4e0d9 0 26%, #6d8a5c 26% 78%, #9b8f82 78% 100%);
  object-fit: cover;
}

.rd-blist__text {
  min-width: 0;
}

.rd-blist__row-title {
  color: #222222;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  word-break: break-word;
}

.rd-blist__meta {
  display: block;
  margin-top: 4px;
  color: var(--rd-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.rd-blist__date {
  color: var(--rd-muted);
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.rd-blist__empty {
  text-align: center;
  color: var(--rd-muted);
  padding: 96px 0;
}

/* 記事一覧 — 現行/blogの構図（サムネカードグリッド）× SoutaのUIUX */
.rd-blist__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.rd-blist__card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--rd-line);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}

.rd-blist__card:hover {
  border-color: var(--rd-line-strong);
  transform: translateY(-2px);
}

.rd-blist__card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--rd-line);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), transparent 30%),
    radial-gradient(circle at 52% 68%, #5f4a37 0 10%, transparent 11%),
    linear-gradient(180deg, #e4e0d9 0 26%, #6d8a5c 26% 78%, #9b8f82 78% 100%);
}

.rd-blist__card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 26px;
  flex: 1;
}

.rd-blist__card-date {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--rd-muted);
}

.rd-blist__card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.rd-blist__card-excerpt {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--rd-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Artist page (/v4/artists) — 現行/artistsの構図 × SoutaのUIUX ===== */
.rd-asection {
  width: 100%;
  max-width: var(--rd-max);
  margin: 0 auto;
  padding: 0 var(--rd-gutter);
}

.rd-aeyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rd-muted);
}

/* ヘッダー: 左タイトル+プロフィールカード / 右タグライン+導入 */
.rd-aheader {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.rd-aheader__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 28px;
}

.rd-aprofile {
  display: flex;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius-md);
  background: #fff;
  box-shadow: var(--rd-shadow);
}

.rd-aprofile__photo {
  flex: none;
  width: min(180px, 38%);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #f4efe6;
}

.rd-aprofile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.rd-aprofile__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.rd-aprofile__name {
  margin: 0;
  font-size: 1.3rem;
}

.rd-aprofile__specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 18px;
  margin: 0;
}

.rd-aprofile__specs dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rd-muted);
  white-space: nowrap;
  padding-top: 2px;
}

.rd-aprofile__specs dd {
  margin: 0;
  font-size: 0.9rem;
}

.rd-aprofile__bio {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--rd-muted);
}

.rd-aprofile__link {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rd-line-strong);
  padding-bottom: 2px;
  align-self: flex-start;
}

.rd-aheader__tagline {
  margin: 0 0 20px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 300;
  line-height: 1.6;
}

.rd-aheader__intro {
  margin: 0;
  font-size: 0.95rem;
  line-height: 2;
  color: var(--rd-muted);
}

/* 2カラム行（テキスト×写真の交互） */
.rd-arow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.rd-arow__media {
  overflow: hidden;
  border-radius: var(--rd-radius-md);
  background: #f4efe6;
  min-height: min(60vh, 560px);
  position: relative;
}

.rd-arow__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rd-arow--media-right .rd-arow__media {
  order: 2;
}

.rd-arow__heading {
  margin: 0 0 18px;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

.rd-arow__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 2;
  color: var(--rd-muted);
}

/* 目次 */
.rd-atoc {
  border-top: 1px solid var(--rd-line);
  border-bottom: 1px solid var(--rd-line);
  padding: clamp(28px, 4vw, 48px) 0;
}

.rd-atoc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rd-atoc a {
  display: flex;
  gap: 12px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--rd-muted);
  transition: color 160ms ease;
}

.rd-atoc a:hover {
  color: var(--rd-ink);
}

.rd-atoc__num {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--rd-accent);
  flex-shrink: 0;
  padding-top: 2px;
}

/* Q&Aブロック（縦積み） */
.rd-aqa + .rd-aqa {
  margin-top: 40px;
}

.rd-aqa__q {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.7;
}

.rd-aqa__a {
  margin: 0;
  font-size: 0.93rem;
  line-height: 2;
  color: var(--rd-muted);
}

/* 作品ギャラリー */
.rd-agallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
}

.rd-agallery a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: #f4efe6;
}

.rd-agallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.rd-agallery a:hover img {
  transform: scale(1.05);
}

.rd-agallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  font-size: 0.74rem;
  color: #f8f3ec;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

/* メッセージ（最終Q） */
.rd-amessage {
  border-radius: var(--rd-radius-lg);
  background: #0d0f10;
  color: var(--rd-hero-fg);
  padding: clamp(32px, 5vw, 64px);
}

.rd-amessage .rd-aeyebrow {
  color: rgba(248, 243, 236, 0.6);
}

.rd-amessage__text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 2.1;
  max-width: 44em;
}

/* ===== Blog article (/v4/blog/:slug) — Souta原本: ワイドサムネ + 中央ヘッダー + 640px本文 ===== */
.rd-article {
  background: #ffffff;
  color: var(--rd-ink);
  min-height: 100vh;
}

.rd-article__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(var(--rd-header-h) + clamp(32px, 5vh, 56px)) var(--rd-gutter) var(--rd-section-gap);
}

.rd-article__thumb {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 360px);
  margin: 0 auto 48px;
  border: 1px solid #cfcfcf;
  object-fit: cover;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 24%),
    radial-gradient(circle at 50% 72%, #5f4a37 0 8%, transparent 8.8%),
    linear-gradient(180deg, #e4e0d9 0 22%, #6d8a5c 22% 76%, #9b8f82 76% 100%);
}

.rd-article__header {
  text-align: center;
}

.rd-article__series {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--rd-muted);
}

.rd-article__title {
  margin: 20px 0 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.rd-article__author {
  margin: 26px 0 0;
  font-weight: 500;
  font-size: 1.25rem;
}

.rd-article__date {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--rd-muted);
}

.rd-article__body {
  max-width: 640px;
  margin: clamp(64px, 9vw, 132px) auto 0;
  font-size: 1rem;
  line-height: 2.05;
  color: var(--rd-ink);
}

.rd-article__body h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 88px 0 34px;
  line-height: 1.5;
}

.rd-article__body h2:first-child {
  margin-top: 0;
}

.rd-article__body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 40px 0 14px;
}

.rd-article__body p {
  margin: 0 0 24px;
}

.rd-article__body a {
  color: #7e5a2e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rd-article__body ul,
.rd-article__body ol {
  margin: 0 0 24px;
  padding-left: 1.4em;
}

.rd-article__body li {
  margin-bottom: 8px;
}

/* 引用 = Souta原本の article-quote（上下罫線・大きめ文字） */
.rd-article__body blockquote {
  margin: 68px 0;
  padding: 36px 0;
  border-top: 1px solid var(--rd-line);
  border-bottom: 1px solid var(--rd-line);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.95;
  color: var(--rd-ink);
}

.rd-article__body blockquote p {
  margin: 0;
}

.rd-article__footer-nav {
  max-width: 640px;
  margin: 82px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rd-line);
}

.rd-article__footer-nav a {
  font-size: 0.92rem;
  color: var(--rd-muted);
}

.rd-article__footer-nav a:hover {
  color: #222;
}

.rd-article__body .blog-figure-full {
  margin: 40px 0;
}

.rd-article__body .blog-figure-full img {
  width: 100%;
  border-radius: var(--rd-radius-md);
}

.rd-article__body .blog-figure-left {
  float: left;
  width: 44%;
  margin: 6px 28px 18px 0;
}

.rd-article__body .blog-figure-left img {
  width: 100%;
  border-radius: var(--rd-radius-md);
}

.rd-article__body figure figcaption {
  font-size: 0.78rem;
  color: var(--rd-muted);
  margin-top: 8px;
  text-align: center;
}

.rd-article__body .blog-youtube {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 40px 0;
  border-radius: var(--rd-radius-md);
  overflow: hidden;
}

.rd-article__body .blog-youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rd-article__body .blog-cta {
  clear: both;
  margin: 48px 0;
  text-align: center;
}

.rd-article__body .blog-cta a {
  display: inline-block;
  background: #0d0f10;
  color: #f8f3ec;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.rd-article__body img {
  max-width: 100%;
}

/* ===== Responsive（統一BP: 560 / 720 / 960 / 1100） ===== */
@media (max-width: 960px) {
  .rd-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .rd-blog {
    grid-template-columns: repeat(2, 1fr);
  }

  .rd-detail-specs__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rd-purchase__inner {
    grid-template-columns: 1fr;
  }

  .rd-blist__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rd-works__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .rd-page {
    --rd-section-gap: 72px;
  }

  .rd-hero__overlay {
    flex-direction: column;
    align-items: flex-start;
  }

  .rd-cards {
    grid-auto-columns: minmax(260px, 82vw);
  }

  .rd-blog {
    grid-template-columns: 1fr;
  }

  .rd-newsletter__form {
    flex-direction: column;
    padding: 0 var(--rd-gutter);
  }

  .rd-detail-row,
  .rd-detail-row--reverse .rd-detail-row__media {
    grid-template-columns: 1fr;
    order: 0;
  }

  .rd-detail-row__media {
    order: 0 !important;
  }

  .rd-wcard-grid {
    grid-auto-columns: minmax(280px, 82vw);
  }

  .rd-wmodal__dialog {
    /* grid→block: gridだと行がmax-height内に圧縮されscrollHeight=clientHになり
       スクロールが効かず本文が外へあふれる。blockで自然に縦積みし overflow-y:auto を効かせる */
    display: block;
    max-height: calc(100svh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* スクロールしても閉じる×が常に届くよう、スクロールコンテナ上部に固定 */
  .rd-wmodal__close {
    position: sticky;
    top: 10px;
    float: right;
    margin: 0 10px 0 0;
  }

  .rd-wmodal__media img {
    max-height: 40vh;
  }

  .rd-blist__row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .rd-blist__thumb {
    width: 96px;
    height: 64px;
  }

  .rd-blist__date {
    grid-column: 2;
    text-align: left;
  }

  .rd-blist__grid {
    grid-template-columns: 1fr;
  }

  .rd-aheader,
  .rd-arow,
  .rd-arow--media-right .rd-arow__media {
    grid-template-columns: 1fr;
    order: 0;
  }

  .rd-arow__media {
    order: 0 !important;
    min-height: 320px;
  }

  .rd-agallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .rd-aprofile {
    flex-direction: column;
  }

  .rd-aprofile__photo {
    width: 100%;
    max-width: 260px;
  }

  .rd-article__body .blog-figure-left {
    float: none;
    width: 100%;
    margin: 28px 0;
  }
}

@media (max-width: 560px) {
  .rd-benefits {
    grid-template-columns: 1fr;
  }

  .rd-hero {
    min-height: 72svh;
  }

  .rd-detail-specs__grid {
    grid-template-columns: 1fr;
  }

  .rd-detail-hero__commerce {
    flex-direction: column;
    align-items: flex-start;
  }

  .rd-detail-hero__price {
    text-align: left;
  }
}
