@charset "UTF-8";
@import "https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap";

/* =====================================================
   Erenplus CSS (Full Replace, 2025-10-22)
   - Base / Utilities / Buttons
   - #elenplus scoped rules
   - Section spacing (single-margin policy)
   ===================================================== */
/* ========== Base ========== */
:root {
  --ep-primary: #009bdd;
  --ep-yellow-300: #fde047;
  --ep-yellow-500: #eab308;
  --ep-orange-from: #f59946;
  --ep-orange-to: #b54000;
  --ep-cyan-from: #00b3ff;
  --ep-cyan-to: #006d9c;
  --ep-black: #000;
  --ep-white: #fff;
  --ep-body: clamp(.875rem, .6rem + .6vw, 1.125rem);
}

.ep-body {
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: var(--ep-body);
}

/* ページ全体（Astro相当） */
#elenplus.eplus.bgb {
  background: #000;
  color: #fff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

/* Breakpoints: sm=640px, md=768px */
@media (min-width:640px) {
  .sm\:block {
    display: block;
  }

  .sm\:hidden {
    display: none;
  }
}

@media (max-width:639.98px) {
  .only-sp {
    display: block;
  }

  .only-pc {
    display: none;
  }
}

@media (min-width:640px) {
  .only-sp {
    display: none;
  }

  .only-pc {
    display: block;
  }
}

/* Container（最大1280px／横センター） */
.ep-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

/* 黒背景＋透過レイヤ（Hero下の帯など） */
.ep-bgk {
  background: rgba(0, 0, 0, .7);
  color: var(--ep-white);
}

/* ========== Utilities（必要最低限） ========== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-black {
  color: #000;
}

.text-white {
  color: #fff;
}

.mb-2 {
  margin-bottom: .5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-700 {
  max-width: 700px;
}

.w-full {
  width: 100%;
}

.inline-block {
  display: inline-block;
}

.block {
  display: block;
}

.hidden {
  display: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.text-sm {
  font-size: .875rem;
  line-height: 1.4;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.6;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.6;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 1.6;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 1.6;
}

@media(min-width:768px) {
  .md\:text-base {
    font-size: 1rem;
    line-height: 1.6;
  }

  .md\:text-lg {
    font-size: 1.125rem;
    line-height: 1.7;
  }

  .md\:text-xl {
    font-size: 1.25rem;
    line-height: 1.7;
  }

  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 1.7;
  }

  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 1.8;
  }

  .md\:mb-8 {
    margin-bottom: 2rem;
  }

  .md\:mb-16 {
    margin-bottom: 4rem;
  }
}

/* ========== Buttons（共通） ========== */
.ep-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
  padding: 16px 48px 16px 32px;
  border-radius: 32px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: all .2s ease-in-out;
  position: relative;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}

.ep-btn:hover {
  opacity: .9;
  filter: saturate(1.15);
}

.ep-btn i {
  display: inline-block;
  margin-right: 8px;
}

.ep-btn--doc {
  background: linear-gradient(to bottom, var(--ep-orange-from), var(--ep-orange-to));
  color: #000;
}

.ep-btn--tel {
  background: linear-gradient(to bottom, var(--ep-cyan-from), var(--ep-cyan-to));
  color: #000;
}

.ep-btn--tel .ep-telno {
  color: #ffff67;
  font-weight: 700;
}

.ep-btn--yellow {
  background: linear-gradient(to bottom, var(--ep-yellow-300), var(--ep-yellow-500));
  color: #000;
}

@media (max-width:768px) {
  .ep-btn {
    max-width: unset;
    width: fit-content;
    padding: 10px 40px;
  }
}

/* ========== Content blocks ========== */
.ep-block {
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 24px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .05);
}

.bgw .ep-block {
  border-color: rgba(0, 0, 0, .12);
  background: rgba(0, 0, 0, .02);
}

/* ========== Tailwind-like display (強制上書き系はここだけ) ========== */
.hidden {
  display: none !important;
}

.block {
  display: block !important;
}

@media (min-width: 640px) {
  .sm\:hidden {
    display: none !important;
  }

  .sm\:block {
    display: block !important;
  }
}

/* =====================
   #elenplus スコープ（LP専用）
   ===================== */
#elenplus.bgb,
#elenplus.eplus.bgb {
  background: #000;
  color: #fff;
}

#elenplus .ep-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

#elenplus .ep-sec {
  padding: 0;
  margin: 0;
}

#elenplus .ep-sec+.ep-sec {
  margin-top: 0;
}

/* 上側は潰す = 1個分だけ残る */
/* 可変ユーティリティ（elen互換のrem運用） */
#elenplus .ep-sec--s {
  margin-bottom: 2rem;
}

/* 32px */
#elenplus .ep-sec--m {
  margin-bottom: 4rem;
}

/* 64px */
#elenplus .ep-sec--l {
  margin-bottom: 6rem;
}

/* 96px */
#elenplus .px-4 {
  padding-inline: 1rem;
}

#elenplus .px-8 {
  padding-inline: 2rem;
}

#elenplus .px-24 {
  padding-inline: 6rem;
}

#elenplus .pt-8 {
  padding-top: 2rem;
}

/* 32px */
#elenplus .pt-12 {
  padding-top: 3rem;
}

/* 48px */
#elenplus .pt-16 {
  padding-top: 4rem;
}

/* 64px */
#elenplus .pb-8 {
  padding-bottom: 2rem;
}

#elenplus .pb-12 {
  padding-bottom: 3rem;
}

#elenplus .pb-16 {
  padding-bottom: 4rem;
}

@media (min-width:48rem) {

  /* md=768px */
  #elenplus .md\:px-0 {
    padding-inline: 0;
  }

  #elenplus .md\:px-8 {
    padding-inline: 2rem;
  }

  #elenplus .md\:px-24 {
    padding-inline: 6rem;
  }

  #elenplus .md\:pt-24 {
    padding-top: 6rem;
  }

  /* 96px */
  #elenplus .md\:pb-24 {
    padding-bottom: 6rem;
  }
}

/* テキスト流し込み用 */
#elenplus .ep-typo>* {
  margin: 0;
}

#elenplus .ep-typo>*+* {
  margin-top: 1rem;
}

#elenplus .ep-typo h2 {
  font-size: 1.75rem;
  line-height: 1.35;
  font-weight: 700;
}

#elenplus .ep-typo h3 {
  font-size: 1.375rem;
  line-height: 1.4;
  font-weight: 700;
}

#elenplus .ep-typo h2+* {
  margin-top: 1rem;
}

#elenplus .ep-typo h3+* {
  /* margin-top: .75rem; */
}

@media (min-width:48rem) {
  #elenplus .ep-typo>*+* {
    margin-top: 1.25rem;
  }

  #elenplus .ep-typo h2 {
    font-size: 2rem;
  }

  #elenplus .ep-typo h3 {
    font-size: 1.5rem;
  }
}

#elenplus .ep-typo ul {
  padding-left: 1.25em;
}

#elenplus .ep-typo ul li {
  list-style: disc;
}

/* 画像はコンテナ幅追従 */
#elenplus img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================
   sec08 YES/NO 診断（最終統合・クリーン）
   - 画像の中央線を使用（CSSでは描かない）
   - PC/SP 同一比率（768:970）
   - ボタンは bottom 固定＋clampで拡大
   ===================== */
/* 背景：PC/SPで同一の縦長比率に統一 */
#sec08 .ep-sec08-wrap {
  --sec08-ar: 768 / 970;
  aspect-ratio: var(--sec08-ar);
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: url('/wp-content/themes/omco2/elenplus/images/pc/pc-sec08-diagnosis-bg.webp') no-repeat center top / cover;
}

/* SPは背景のみ切替（比率は共通） */
@media (max-width:639.98px) {
  #sec08 .ep-sec08-wrap {
    background-image: url('/wp-content/themes/omco2/elenplus/images/sp/sp-sec08-diagnosis-bg.webp');
  }
}

/* 黒パネル：wrapの高さに追従、左右はインセット */
#sec08 .ep-sec08-panel {
  --panel-pad-x: clamp(16px, 7.5vw, 108px);
  padding-inline: var(--panel-pad-x);
  padding-bottom: clamp(12px, 3.5vw, 32px);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* タイトルをパネルいっぱいに（左右インセット打ち消し） */
#sec08 .ep-sec08-ttl {
  margin: 0;
  margin-left: calc(-1 * var(--panel-pad-x));
  margin-right: calc(-1 * var(--panel-pad-x));
}

#sec08 .ep-sec08-ttl img {
  display: block;
  width: 100%;
  height: auto;
}

/* 2カラム：中央線は“画像側”に含まれるためCSSでは描かない */
#sec08 .ep-sec08-cols {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(8px, 2.5vw, 20px);
  background: none;
  overflow: hidden;
}

@media (max-width:639.98px) {
  #sec08 .sp-stack.ep-sec08-cols {
    grid-template-columns: 1fr;
  }
}

#sec08 .ep-sec08-col {
  position: relative;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: clamp(64px, 9vw, 112px);
}

#sec08 .ep-sec08-btnbox {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--btn-bottom, 48px);
  width: var(--btn-w, clamp(12rem, 22vw, 18rem));
  aspect-ratio: 495/162;
  display: grid;
  place-items: center;
}

#sec08 .ep-sec08-btnbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .15s ease, opacity .15s ease;
}

#sec08 .ep-sec08-link:hover img,
#sec08 .ep-sec08-link:active img {
  transform: translateY(-2px);
  opacity: .95;
}

/* ===== ブレイクポイント別 微調整（最新値を統合） ===== */
/* SP（〜639px）：指定どおり位置確定＋やや大きめ */
@media (max-width:639.98px) {
  #sec08 .ep-sec08-col:nth-child(1) {
    --btn-bottom: 0px;
    --btn-w: min(88%, 13.5rem);
  }

  /* YES */
  #sec08 .ep-sec08-col:nth-child(2) {
    --btn-bottom: 12px;
    --btn-w: min(88%, 13.5rem);
  }

  /* NO  */
}

/* Tablet（640–767px）：SP寄りにブレンド */
@media (min-width:640px) and (max-width:767.98px) {
  #sec08 .ep-sec08-col:nth-child(1) {
    --btn-bottom: 0px;
    --btn-w: clamp(13rem, 33vw, 19rem);
  }

  #sec08 .ep-sec08-col:nth-child(2) {
    --btn-bottom: 20px;
    --btn-w: clamp(13rem, 33vw, 19rem);
  }
}

/* PC（768px〜）：さらに拡大＆下寄せ（必要なら±数pxで微調整） */
@media (min-width:768px) {
  #sec08 .ep-sec08-col:nth-child(1) {
    --btn-bottom: 0px;
    --btn-w: clamp(18rem, 33vw, 26rem);
  }

  /* YES */
  #sec08 .ep-sec08-col:nth-child(2) {
    --btn-bottom: 25px;
    --btn-w: clamp(18rem, 33vw, 26rem);
  }

  /* NO  */
}

/* アニメ無効（任意） */
@media (prefers-reduced-motion:reduce) {
  #sec08 .ep-sec08-btnbox img {
    transition: none;
  }
}

/* ===== ELEN CTA（clean & SP見本準拠）================================== */
/* ラッパー */
.ep-cta {
  padding: 2rem 1rem;
  background: transparent;
}

.ep-cta__item {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.ep-cta,
.ep-cta * {
  font-family: inherit;
}

/* ボタン共通（a.ep-cta__btn） */
.ep-cta__btn {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem 1rem;
  width: 100%;
  border-radius: 16px;
  /* 角丸は16pxで統一 */
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  color: #000 !important;
  letter-spacing: .01em;
  transition: opacity .25s;
}

.ep-cta__btn:hover {
  opacity: .9;
}

.ep-cta__btn:visited {
  color: #000;
  text-decoration: none;
}

/* 背景グラデ */
.ep-cta__btn--doc {
  background-image: linear-gradient(#f5a257, #b84c0b);
}

.ep-cta__btn--tel {
  background-image: linear-gradient(#04b6ff, #0477a8);
}

/* 右の黒丸＋白三角（テキスト中央を崩さないよう重ね表示） */
.ep-cta__btn::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23000'/%3E%3Cpath d='M10 7v10l6-5z' fill='%23fff'/%3E%3C/svg%3E") center/100% no-repeat;
}

.ep-cta__arrow {
  display: none !important;
}

/* 既存のspanは無効化 */
/* テキスト（ボタン幅100%で真ん中） */
.ep-cta__label,
.ep-cta__lead {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 18px;
}

.ep-cta__telwrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
}

.ep-cta__tel {
  color: #ffff67;
  font-weight: 900;
  line-height: 1;
  font-size: 26px;
}

/* アイコン共通（サイズのみ。位置指定は各ボタンで） */
.ep-cta__icon {
  width: 26px;
  height: 26px;
}

/* ── 書類アイコン：左側に“絶対配置”（高さはテキストに影響させない） */
.ep-cta__icon--doc {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  background:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2028%2036'%3e%3cstyle%3e.st0{fill:%23FFF;stroke:%23000;stroke-width:2;stroke-miterlimit:10}.st1{fill:%23FFF;stroke:%23000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:10}.st2{fill:none;stroke:%23000;stroke-width:3;stroke-miterlimit:10}%3c/style%3e%3cg%3e%3cpolygon%20class='st0'%20points='1,1%201,35%2027,35%2027,10.2%2017.92,1'/%3e%3cpolygon%20class='st1'%20points='27,10.2%2017.92,1%2017.92,10.2'/%3e%3cline%20class='st2'%20x1='7.11'%20y1='15.49'%20x2='21.22'%20y2='15.49'/%3e%3cline%20class='st2'%20x1='7.11'%20y1='21.76'%20x2='21.22'%20y2='21.76'/%3e%3cline%20class='st2'%20x1='7.11'%20y1='28.02'%20x2='21.22'%20y2='28.02'/%3e%3c/g%3e%3c/svg%3e") center/auto 100% no-repeat;
}

/* ── 電話アイコン：番号の“左隣”に並べる（絶対配置しない！） */
.ep-cta__icon--tel {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  /* ← リセットが重要 */
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: url(/wp-content/themes/omco2/elen/_astro/icon-tel.nH6CLQEF.svg) center/contain no-repeat;
  margin-right: .1em;
  /* 見た目の余白微調整 */
  align-self: center;
}

/* ── SP基準の高さ（ご指定：オレンジ64px／ブルー82px） */
@media (max-width:768px) {
  .ep-cta__btn--doc {
    min-height: 64px;
    padding: 8px 32px;
  }

  .ep-cta__btn--tel {
    min-height: 82px;
    padding: 16px 32px;
  }

  .ep-cta__btn::after {
    right: 8px;
    width: 24px;
    height: 24px;
  }

  /* 矢印をSPサイズに */
}

/* === 書類（オレンジ）だけ：アイコンをラベルの隣に中央配置 ================== */
.ep-cta__btn--doc {
  justify-content: center;
}

/* ラベルを幅autoのインラインフレックスにして、アイコンと並べて1塊で中央へ */
.ep-cta__btn--doc .ep-cta__label {
  display: inline-flex;
  width: auto;
  /* ← ここがポイント：100%をやめる */
  align-items: center;
  gap: .5em;
  /* アイコンと文字の間隔 */
  text-align: center;
  /* 念のため維持 */
}

/* 書類アイコンは絶対配置を解除して、ラベルの左隣に並べる */
.ep-cta__btn--doc .ep-cta__icon--doc {
  position: static !important;
  left: auto;
  top: auto;
  transform: none;
  width: 22px;
  height: 22px;
  /* 行高さに合わせて少しだけ小ぶりに */
  background-size: auto 100%;
  /* 縦フィットで潰れ防止 */
}

/* ===== PC(>=769px) は Astro と完全一致に ===== */
@media (min-width: 769px) {

  /* ボタン本体：高さ/余白/角丸 */
  .ep-cta__btn {
    min-height: 110px;
    padding: 16px;
    border-radius: 16px;
  }

  .ep-cta__btn--doc,
  .ep-cta__btn--tel {
    min-height: 110px;
    padding: 16px;
  }

  /* 右の丸矢印サイズ/位置 */
  .ep-cta__btn::after {
    right: 16px;
    width: 54px;
    height: 54px;
  }

  /* アイコン（PCサイズに拡大） */
  /* 書類：ラベルの左隣に並べる前提でサイズだけPC値へ */
  .ep-cta__btn--doc .ep-cta__icon--doc {
    width: 30px;
    height: 38px;
    background-size: 100% auto;
  }

  /* 電話：番号左のアイコン */
  .ep-cta__icon--tel {
    width: 32px;
    height: 32px;
    background-size: 100% auto;
  }

  .ep-cta__btn--doc .ep-cta__label {
    gap: .5em;
  }
}

/* PCだけ電話番号を36pxに */
@media (min-width: 769px) {
  .ep-cta__tel {
    font-size: 36px;
  }

  .ep-cta__label {
    font-size: 30px;
  }

  .ep-cta__lead {
    font-size: 28px;
  }
}

/* ========================================
   #sec03-system : タイトル帯 & 背景（PC/SP統合修正版）
======================================== */
#sec03-system {
  --sp-pad-x: 1rem;
  --pc-pad-x: 1.5rem;
  --pc-content: 1180px;
  --pc-title: 1280px;
}

/* 背景：SPデフォルト（WebP優先） */
#sec03-system.ep-bgk {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: center center / cover no-repeat;
  background-image: image-set(url("/wp-content/themes/omco2/elenplus/images/sp/sp-sec03-bg.webp") type("image/webp") 1x,
      url("/wp-content/themes/omco2/elenplus/images/sp/sp-sec03-bg.png") type("image/png") 1x);
}

#sec03-system.ep-bgk::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

/* コンテナ（SP基準） */
#sec03-system .ep-container {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* ===== タイトル：SPはフル幅（余白ゼロ） ===== */
#sec03-system .ep-ttl {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #009FE8;
  line-height: 0;
  border-radius: 0;
  /* コンテナの左右paddingを相殺してフルブリードにする */
  width: calc(100% + var(--sp-pad-x) * 2);
  margin-left: calc(-1 * var(--sp-pad-x));
  margin-right: calc(-1 * var(--sp-pad-x));
  padding: .5rem 0;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

#sec03-system .ep-ttl img {
  width: 180px;
  height: auto;
  display: block;
}

/* 本文（SP） */
#sec03-system .ep-system-text {
  max-width: 800px;
  margin: 0 auto;
  color: #fff;
  line-height: 1.6;
}

#sec03-system .ep-system-text p {
  margin: 0 0 1.1em;
  font-size: 16px;
}

#sec03-system .ep-system-text .is-lead-mincho {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif;
  font-size: 18px;
  line-height: 1.6;
}

#sec03-system .ep-system-text .is-small {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.95;
}

/* 図版（SP） */
#sec03-system .ep-system-fig {
  margin-top: 1.8rem;
  text-align: center;
}

#sec03-system .ep-system-fig img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* =========================================================
   PC上書き（769px以上）
========================================================= */
@media (min-width: 769px) {

  /* 背景パスPC版 */
  #sec03-system.ep-bgk {
    background-image: image-set(url("/wp-content/themes/omco2/elenplus/images/pc/pc-sec03-bg.webp") type("image/webp") 1x,
        url("/wp-content/themes/omco2/elenplus/images/pc/pc-sec03-bg.png") type("image/png") 1x);
  }

  /* コンテナ */
  #sec03-system .ep-container {
    max-width: 1180px;
    /* ←これが本文とタイトルの基準幅 */
    padding: 4rem 1.5rem;
  }

  /* コンテナ側（参考）：本文は1180px */
  #sec03-system .ep-container {
    max-width: var(--pc-content);
    padding: 4rem var(--pc-pad-x);
  }

  #sec03-system .ep-ttl {
    position: relative;
    left: 50%;
    /* 画面中央を基準に */
    transform: translateX(-50%);
    /* 真ん中へ戻す */
    width: 1280px;
    /* 固定幅 */
    height: 120px;
    background-color: #009FE8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 3rem;
    line-height: 1;
  }

  #sec03-system .ep-ttl img {
    width: auto;
    height: 65px;
  }

  /* 本文 */
  #sec03-system .ep-system-text {
    max-width: 1180px;
    margin: 0 auto;
  }

  #sec03-system .ep-system-text p {
    font-size: 40px;
    line-height: 60px;
    margin: 0 0 1.5em;
  }

  #sec03-system .ep-system-text .is-lead-mincho {
    font-size: 52px;
    line-height: 80px;
  }

  #sec03-system .ep-system-text .is-small {
    font-size: 30px;
    line-height: 45px;
  }

  /* 図版 */
  #sec03-system .ep-system-fig {
    margin-top: 3rem;
    text-align: center;
  }

  #sec03-system .ep-system-fig img {
    max-width: 1180px;
  }
}

/* 背景画像を本体から外し、:before＝背景、:after＝暗幕に変更 */
#sec03-system {
  --bg-pc-width: 1280px;
  /* 背景のPC幅 */
}

/* 本体：背景指定はしない */
#sec03-system.ep-bgk {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: none;
  /* ←ここ重要：100%幅の背景を無効化 */
}

/* :before = 背景画像（中央に1280pxで固定。SPは100vw） */
#sec03-system.ep-bgk::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, var(--bg-pc-width));
  height: 100%;
  background: center center / cover no-repeat;
  z-index: 0;
  /* SPデフォルト（WebP優先） */
  background-image:
    image-set(url("/wp-content/themes/omco2/elenplus/images/sp/sp-sec03-bg.webp") type("image/webp") 1x,
      url("/wp-content/themes/omco2/elenplus/images/sp/sp-sec03-bg.png") type("image/png") 1x);
}

/* :after = 暗幕（常にセクション全体を覆う） */
#sec03-system.ep-bgk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .30);
  z-index: 1;
}

/* コンテンツは前面に */
#sec03-system .ep-container {
  position: relative;
  z-index: 2;
}

/* PCで背景画像をPCパスに切替（幅は1280pxのまま中央） */
@media (min-width:769px) {
  #sec03-system.ep-bgk::before {
    background-image:
      image-set(url("/wp-content/themes/omco2/elenplus/images/pc/pc-sec03-bg.webp") type("image/webp") 1x,
        url("/wp-content/themes/omco2/elenplus/images/pc/pc-sec03-bg.png") type("image/png") 1x);
  }
}

/* ==============================
   #sec10-proof
   ============================== */
/* Base */
#sec10-proof .ep-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1rem;
  color: #fff;
}

#sec10-proof .ep-proof-lead img,
#sec10-proof .ep-proof-sub img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* Image pair (2:3, same height) */
#sec10-proof .ep-proof-imgpair {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 2rem;
}

#sec10-proof .ep-proof-imgpair figure {
  overflow: hidden;
}

#sec10-proof .ep-proof-imgpair figure:first-child {
  aspect-ratio: 1/1;
}

#sec10-proof .ep-proof-imgpair figure:last-child {
  aspect-ratio: 3/2;
}

#sec10-proof .ep-proof-imgpair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Heading */
#sec10-proof .is-lead-mincho {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif;
  text-align: center;
  letter-spacing: .02em;
  margin: 40px 0 24px;
}

@media (max-width:767.98px) {
  #sec10-proof .is-lead-mincho {
    font-size: 20px;
    line-height: 1.5;
  }
}

@media (min-width:768px) {
  #sec10-proof .is-lead-mincho {
    font-size: 48px;
    line-height: 1.5;
  }
}

/* Table text size (SP) */
@media (max-width:767.98px) {

  #sec10-proof .ep-table.is-proof thead th,
  #sec10-proof .ep-table.is-proof tbody th,
  #sec10-proof .ep-table.is-proof tbody td {
    font-size: 10px;
    line-height: 1.3;
  }

  #sec10-proof .ep-table.is-proof thead th:nth-child(3) {
    font-size: 12px;
    line-height: 1.3;
  }
}

/* Table text size (PC) */
@media (min-width:768px) {

  #sec10-proof .ep-table.is-proof thead th,
  #sec10-proof .ep-table.is-proof tbody th {
    font-size: 30px;
    line-height: 30px;
  }

  #sec10-proof .ep-table.is-proof tbody td {
    font-size: 24px;
    line-height: 30px;
  }

  #sec10-proof .ep-table.is-proof thead th:nth-child(3) {
    font-size: 36px;
    line-height: 36px;
  }

  #sec10-proof .ep-table.is-proof tbody td:nth-child(3) {
    font-size: 30px;
    line-height: 40px;
  }
}

/* Table (common: SP/PC) */
#sec10-proof .ep-table.is-proof {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  background: #000;
}

#sec10-proof .ep-table.is-proof th,
#sec10-proof .ep-table.is-proof td {
  border: 2px solid rgba(255, 255, 255, .85);
  padding: .8rem .7rem;
  color: #fff;
  line-height: 1.6;
  vertical-align: middle;
  word-break: break-word;
}

#sec10-proof .ep-table.is-proof thead th,
#sec10-proof .ep-table.is-proof tbody th {
  background: #666;
  text-align: center;
  font-weight: 700;
}

#sec10-proof .ep-table.is-proof thead th:first-child {
  background: #000;
  border-top: none;
  border-left: none;
}

#sec10-proof .ep-table.is-proof thead tr:first-child>* {
  border-top: none !important;
}

#sec10-proof .ep-table.is-proof tr>*:first-child {
  border-left: none !important;
  border-right: none !important;
}

#sec10-proof .ep-table.is-proof tr>*:last-child {
  border-right: none !important;
}

#sec10-proof .ep-table.is-proof thead tr>th:nth-child(2),
#sec10-proof .ep-table.is-proof tbody tr>td:nth-child(2) {
  border-left: none !important;
}

#sec10-proof .ep-table.is-proof thead th:nth-child(3),
#sec10-proof .ep-table.is-proof tbody td:nth-child(3) {
  color: #FFE100;
  font-weight: 700;
}

/* Table column widths */
#sec10-proof .ep-table.is-proof col.col-head {
  width: 25%;
}

#sec10-proof .ep-table.is-proof col.col-jousui {
  width: 35%;
}

#sec10-proof .ep-table.is-proof col.col-seisui {
  width: 40%;
}

@media (max-width:360px) {
  #sec10-proof .ep-table.is-proof col.col-head {
    width: 28%;
  }

  #sec10-proof .ep-table.is-proof col.col-jousui {
    width: 32%;
  }

  #sec10-proof .ep-table.is-proof col.col-seisui {
    width: 40%;
  }
}

/* SP layout */
@media (max-width:767.98px) {
  #sec10-proof {
    padding-block: clamp(28px, 8vw, 100px);
  }

  #sec10-proof .ep-container {
    padding-inline: clamp(16px, 8vw, 100px);
    max-width: none;
  }

  #sec10-proof .ep-proof-top {
    margin-bottom: clamp(20px, 6vw, 80px);
  }

  #sec10-proof .ep-proof-table {
    margin-bottom: clamp(24px, 8vw, 100px);
  }

  #sec10-proof .ep-proof-imgpair {
    grid-template-columns: 2fr 3fr;
    gap: 12px;
    align-items: center;
  }
}

/* PC layout */
@media (min-width:768px) {
  #sec10-proof {
    padding-block: 100px;
  }

  #sec10-proof .ep-container {
    box-sizing: border-box;
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: 100px;
  }

  #sec10-proof .sp-br {
    display: none;
  }

  /* top pair: same height with bigger gap */
  #sec10-proof .ep-proof-imgpair.ep-proof-top {
    grid-template-columns: 2fr 3fr;
    gap: 40px;
    align-items: stretch;
  }

  #sec10-proof .ep-proof-top {
    margin-bottom: 80px;
  }

  #sec10-proof .ep-proof-table {
    margin-bottom: 100px;
  }
}

/* Figure image */
#sec10-proof .ep-proof-fig img {
  max-width: 100%;
  height: auto;
}

/* ==========================================
   #sec11-tasteproof　味覚分析セクション
   ========================================== */
/* セクション全体 */
#sec11-tasteproof .ep-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 100px;
  color: #fff;
  box-sizing: border-box;
}

/* タイトル画像：横幅100％（余白貫通） */
#sec11-tasteproof .ep-taste-lead {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-bottom: 100px;
  max-width: 1280px;
}

#sec11-tasteproof .ep-taste-lead img {
  width: 100%;
  height: auto;
  display: block;
}

/* 見出し（ごはん／出汁） */
#sec11-tasteproof .ep-taste-heading {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 700;
  color: #00a0e9;
  text-align: left;
  margin: 0 0 16px;
  font-size: 2rem;
  line-height: 1.4;
}

/* 本文テキスト */
#sec11-tasteproof .ep-taste-text {
  font-size: 24px;
  line-height: 1.6;
  margin: 0 0 40px;
}

/* 画像ブロック（グラフ＋写真：縦2行構成） */
#sec11-tasteproof .ep-taste-imgpair {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 80px;
}

#sec11-tasteproof .ep-taste-imgpair img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ------------------------------------------
   SP（～767.98px）
   ------------------------------------------ */
@media (max-width: 767.98px) {

  /* セクション余白 */
  #sec11-tasteproof .ep-container {
    padding: 8vw 6vw;
  }

  /* タイトル画像下の余白を調整 */
  #sec11-tasteproof .ep-taste-lead {
    margin-bottom: 40px;
  }

  /* 見出しサイズ */
  #sec11-tasteproof .ep-taste-heading {
    font-size: 1.5rem;
  }

  /* 本文 */
  #sec11-tasteproof .ep-taste-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 32px;
  }

  /* 画像ブロック：間隔を軽減（約半分） */
  #sec11-tasteproof .ep-taste-imgpair {
    gap: 20px;
    margin-bottom: clamp(32px, 6vw, 60px);
  }
}

@media (min-width: 768px) {
  #sec11-tasteproof .ep-taste-heading {
    font-size: 2rem !important;
    line-height: 1;
    margin-bottom: 0;
  }
}

/* =========================
   sec11 余白バランス再調整（最終）
   ========================= */
/* 画像下 → 次の見出し：ゆとりを広げる */
@media (min-width: 768px) {
  #sec11-tasteproof .ep-taste-imgpair {
    margin-bottom: 80px;
    /* 56 → 80 に広げる */
  }
}

@media (max-width: 767.98px) {
  #sec11-tasteproof .ep-taste-imgpair {
    margin-bottom: clamp(40px, 8vw, 80px);
  }
}

/* 見出し → 本文：間隔を狭めて流れを自然に */
@media (min-width: 768px) {
  #sec11-tasteproof .ep-taste-heading {
    margin-bottom: 8px;
    /* 28 → 8 に変更（見出しと本文を近づける） */
  }
}

@media (max-width: 767.98px) {
  #sec11-tasteproof .ep-taste-heading {
    margin-bottom: 6px;
    /* スマホ時も近めに */
  }
}

#elenplus .ep-typo h3+** {
  margin-top: 0 !important;
}

#sec12-cta .ep-container {
  background-color: #ffffff;
}
