/*
 * revia-treatment.css
 * レヴィア 施術記事 共通スタイル
 *
 * ※ フォント・行間・文字間・見出しスタイルは
 *    親テーマ / 子テーマの style.css に委ねています。
 *    このファイルはレイアウト・背景色・コンポーネント装飾のみを担います。
 *
 * 【読み込み方法】子テーマの functions.php に以下を追記してください
 * ─────────────────────────────────────────
 * function revia_enqueue_treatment_styles() {
 *     if ( is_singular('post') ) {
 *         wp_enqueue_style(
 *             'revia-treatment',
 *             get_stylesheet_directory_uri() . '/revia-treatment.css',
 *             array(),
 *             '1.0.0'
 *         );
 *     }
 * }
 * add_action( 'wp_enqueue_scripts', 'revia_enqueue_treatment_styles' );
 * ─────────────────────────────────────────
 */

/* ══════════════════════════════════════
   ラッパー
   Gutenberg の entry-content の横幅を突き破って全幅にします
   ══════════════════════════════════════ */
.rt-wrap {
  /* entry-content の横幅制限を突き破って全幅にします */
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  /* 100vw はスクロールバー分だけはみ出すことがあるため
     overflow-x: hidden で横スクロールを防ぎます */
  overflow-x: hidden;
  --rt-mint-pale:  #E8F5F2;
  --rt-mint-mid:   #C8E8E3;
  --rt-gold-pale:  #EEE2D0;
  --rt-section-py: 64px;
}

/* ══════════════════════════════════════
   コンテナ（各セクション内の最大幅）
   ══════════════════════════════════════ */
.rt-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ══════════════════════════════════════
   ヒーローエリア（左テキスト／右画像 2カラム）
   ══════════════════════════════════════ */
.rt-hero {
  background: #fff;
  padding: var(--rt-section-py) 0;
}

.rt-hero__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 56px;
}

/* テキスト側 */
.rt-hero__text {
  flex: 1;
}

.rt-hero__badge {
  display: inline-block;
  background: var(--color-green);
  color: #fff;
  letter-spacing: 0.14em;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.rt-hero__en {
  line-height: 1.3;
  margin: 0 0 10px;
}

.rt-hero__catch {
  font-family: var(--font-noto);
  color: var(--color-beige);
  letter-spacing: 0.1em;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rt-gold-pale);
}

.rt-hero__lead {
  font-family: var(--font-noto);
  line-height: 2.2;
  margin: 0;
}

/* 画像側 */
.rt-hero__img-col {
  flex: 0 0 360px;
}

.rt-hero__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.rt-hero__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-lightbeige);
  border: 1px dashed var(--color-lightgray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rt-hero__placeholder-inner {
  text-align: center;
  color: var(--color-lightgray);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════
   イントロセクション
   ══════════════════════════════════════ */
.rt-intro {
  background: #fff;
  padding: var(--rt-section-py) 0;
}

.rt-intro__inner {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.rt-intro__body {
  flex: 1;
}

/* h2 はテーマスタイルをそのまま使用 */
.rt-intro__body h2 {
  margin-bottom: 20px;
}

/* p タグはテーマと同様に Noto Sans を指定 */
.rt-intro__body p {
  font-family: var(--font-noto);
}

.rt-intro__icon-col {
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rt-intro__icon-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--rt-mint-pale);
  border: 1px solid var(--rt-mint-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rt-intro__icon-label {
  color: var(--color-green);
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   アプローチセクション
   ══════════════════════════════════════ */
.rt-approach {
  background: var(--rt-mint-pale);
  padding: var(--rt-section-py) 0;
}

.rt-approach__header {
  text-align: center;
  margin-bottom: 40px;
}

.rt-approach__header h2 {
  margin-bottom: 10px;
}

.rt-approach__header p {
  font-family: var(--font-noto);
}

.rt-approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rt-approach__card {
  background: #fff;
  padding: 32px 24px;
  text-align: center;
}

.rt-approach__icon {
  margin: 0 auto 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rt-approach__num-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rt-mint-pale);
  border: 1px solid var(--color-green);
  margin: 0 auto 14px;
}

.rt-approach__num {
  color: var(--color-green);
  line-height: 1;
}

/* h3 はテーマスタイル使用。下線のみ追加 */
.rt-approach__title {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rt-gold-pale);
  line-height: 1.6;
}

.rt-approach__text {
  font-family: var(--font-noto);
  text-align: left;
  margin: 0;
}

/* ══════════════════════════════════════
   こだわりセクション
   ══════════════════════════════════════ */
.rt-commit {
  background: #fff;
  padding: var(--rt-section-py) 0;
}

.rt-commit__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.rt-commit__left h2 {
  margin-bottom: 20px;
}

.rt-commit__left p {
  font-family: var(--font-noto);
}

.rt-commit__cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rt-commit__card {
  padding: 24px 28px;
  border-left: 3px solid var(--color-green);
  background: var(--rt-mint-pale);
}

.rt-commit__card-title {
  font-family: var(--font-noto);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rt-commit__card-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  flex-shrink: 0;
}

.rt-commit__card-text {
  font-family: var(--font-noto);
  margin: 0;
}

.rt-commit__note {
  margin-top: 18px;
  padding: 20px 24px;
  background: var(--color-lightbeige);
  border-left: 3px solid var(--color-beige);
}

.rt-commit__note p {
  font-family: var(--font-noto);
  margin: 0;
}

/* ══════════════════════════════════════
   料金セクション
   ══════════════════════════════════════ */
.rt-price {
  background: var(--color-lightbeige);
  padding: var(--rt-section-py) 0;
}

.rt-price__header {
  text-align: center;
  margin-bottom: 40px;
}

.rt-price__header h2 {
  margin-bottom: 10px;
}

.rt-price__header p {
  font-family: var(--font-noto);
}

.rt-price__wrap {
  display: flex;
  justify-content: center;
}

.rt-price__card {
  background: #fff;
  max-width: 620px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

.rt-price__card-head {
  background: var(--color-beige);
  padding: 14px 32px;
  text-align: center;
}

.rt-price__card-head span {
  font-family: var(--font-noto);
  color: #fff;
  letter-spacing: 0.2em;
}

.rt-price__card-body {
  padding: 36px 44px;
  font-family: var(--font-noto);
}

.rt-price__name {
  text-align: center;
  margin: 0 0 4px;
}

.rt-price__include {
  text-align: center;
  letter-spacing: 0.06em;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rt-gold-pale);
}

.rt-price__figures {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.rt-price__old {
  color: var(--color-lightgray);
  text-decoration: line-through;
}

.rt-price__arrow {
  color: var(--color-beige);
}

.rt-price__new {
  color: var(--color-beige);
  line-height: 1;
}

.rt-price__unit {
}

.rt-price__tax {
  text-align: center;
  margin: 0 0 20px;
}

.rt-price__ribbon {
  background: var(--color-lightbeige);
  border: 1px solid var(--color-beige);
  padding: 10px 16px;
  text-align: center;
  color: var(--color-beige);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════
   CTAセクション
   ══════════════════════════════════════ */
.rt-cta {
  background: var(--rt-mint-pale);
  padding: var(--rt-section-py) 0;
  text-align: center;
}

.rt-cta h2 {
  margin-bottom: 32px;
}

.rt-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-beige);
  color: #fff !important;
  font-family: var(--font-noto);
  letter-spacing: 0.16em;
  padding: 16px 48px;
  text-decoration: none !important;
}

.rt-cta__btn:hover {
  opacity: 0.8;
  color: #fff !important;
  text-decoration: none !important;
}

.rt-cta__staff {
  display: block;
  margin-top: 20px;
  font-family: var(--font-noto);
  color: var(--color-lightgray);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════
   レスポンシブ
   テーマに倣い max-width: 1199.98px で切り替えます
   ══════════════════════════════════════ */
@media (max-width: 1199.98px) {
  .rt-wrap {
    --rt-section-py: 48px;
  }

  .rt-container,
  .rt-hero__inner {
    padding: 0 15px;
  }

  .rt-hero__inner {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .rt-hero__img-col {
    flex: unset;
    width: 100%;
  }

  .rt-intro__inner {
    flex-direction: column;
    gap: 24px;
  }

  .rt-intro__icon-col {
    flex-direction: row;
    flex: unset;
    width: 100%;
    justify-content: flex-start;
  }

  .rt-approach__grid {
    grid-template-columns: 1fr;
  }

  .rt-commit__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .rt-price__card-body {
    padding: 28px 20px;
  }
}
