.ew-hero{height:var(--hero-height,100svh);min-height:600px;position:relative;display:block;overflow:hidden;width:100%;box-sizing:border-box;}
/* alignfull のときだけ全幅ブレイクアウト */
.ew-hero.alignfull{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);}
/* alignwide */
.ew-hero.alignwide{max-width:1180px;margin-left:auto;margin-right:auto;}
/* 標準（align未設定） */
.ew-hero:not(.alignfull):not(.alignwide){max-width:760px;margin-left:auto;margin-right:auto;}
.ew-hero__bg{position:absolute;inset:0;background:linear-gradient(130deg,var(--ew-cream) 0%,var(--ew-sand) 55%,var(--ew-taupe) 100%);}
.ew-hero__img{position:absolute;right:0;top:0;width:60%;height:100%;clip-path:polygon(6% 0%,100% 0%,100% 100%,0% 100%);overflow:hidden;}
.ew-hero__img img{width:100%;height:100%;object-fit:cover;object-position:center top;}
.ew-hero__img::after{content:'';position:absolute;inset:0;background:linear-gradient(to right,var(--ew-cream) 0%,rgba(0,0,0,0) 22%),linear-gradient(to top,rgba(0,0,0,.32) 0%,transparent 52%);}
.ew-hero__content{position:absolute;z-index:2;padding:0 64px 88px;max-width:760px;box-sizing:border-box;width:auto;}
.ew-hero__eyebrow{font-family:var(--ew-font-sans);font-size:10.5px;letter-spacing:.42em;color:var(--ew-accent);text-transform:uppercase;margin-bottom:22px;animation:ew-up .7s ease .15s both;}
.ew-hero__h2{font-family:var(--ew-font-serif);font-size:clamp(34px,4.6vw,56px);font-weight:600;line-height:1.6;letter-spacing:.04em;color:var(--ew-text);margin-bottom:28px;animation:ew-up .8s ease .3s both;}
.ew-hero__h2 em{font-style:normal;color:var(--ew-accent);position:relative;display:inline-block;}
.ew-hero__h2 em::after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--ew-blush);transform:scaleX(0);transform-origin:left;animation:ew-bar-in .55s ease 1.2s forwards;}
@keyframes ew-bar-in{to{transform:scaleX(1);}}
.ew-hero__sub{font-family:var(--ew-font-sans);font-size:13.5px;color:var(--ew-text-sub);line-height:1.9;letter-spacing:.07em;margin-bottom:44px;animation:ew-up .8s ease .48s both;}
.ew-hero__btns{display:flex;gap:14px;flex-wrap:wrap;animation:ew-up .8s ease .64s both;}
.ew-btn{display:inline-flex;align-items:center;font-family:var(--ew-font-sans);font-size:13px;letter-spacing:.14em;text-decoration:none;border-radius:1px;transition:all .28s ease;}
.ew-btn--fill{background:var(--ew-accent);color:#fff;padding:16px 34px;box-shadow:0 4px 18px rgba(192,122,82,.32);}
.ew-btn--fill:hover{background:var(--ew-accent-dark);transform:translateY(-2px);}
.ew-btn--line{background:transparent;color:var(--ew-text);padding:15px 30px;border:1px solid var(--ew-taupe);}
.ew-btn--line:hover{border-color:var(--ew-accent);color:var(--ew-accent);transform:translateY(-2px);}
.ew-hero__badge{position:absolute;bottom:88px;right:64px;z-index:3;background:rgba(250,247,242,.92);backdrop-filter:blur(10px);border:1px solid var(--ew-sand);padding:18px 24px;text-align:center;animation:ew-up .8s ease .9s both;}
.ew-hero__badge-num{font-family:var(--ew-font-serif);font-size:36px;font-weight:700;color:var(--ew-text);line-height:1;}
.ew-hero__badge-num span{font-size:16px;color:var(--ew-text-sub);}
.ew-hero__badge-label{font-family:var(--ew-font-sans);font-size:10px;color:var(--ew-text-light);letter-spacing:.2em;margin-top:6px;}
.ew-hero__scroll{position:absolute;bottom:32px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;animation:ew-up .8s ease 1.1s both;}
.ew-hero__scroll span{font-family:var(--ew-font-sans);font-size:9.5px;letter-spacing:.36em;color:var(--ew-text-light);}
.ew-hero__scroll-bar{width:1px;height:44px;background:linear-gradient(to bottom,var(--ew-taupe),transparent);animation:ew-pulse 2.2s ease infinite;}
@keyframes ew-up{from{opacity:0;transform:translateY(18px);}to{opacity:1;transform:none;}}
@keyframes ew-pulse{0%,100%{opacity:1;}50%{opacity:.3;}}
@media(max-width:600px){
  /* ── スマホ：グリッド縦積みレイアウト ──
     flexではなくgridを使い、全要素をgrid-areaで配置順を強制する
     inline styleのleft/right/top/bottomはgridレイアウトでは無視される */
  .ew-hero {
    --hero-height: auto;
    min-height: 0;
    display: grid !important;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "img"
      "content"
      "badge";
    overflow: hidden;
  }

  /* grid-areaなし要素をすべて非表示 */
  .ew-hero__bg     { display: none !important; }
  .ew-hero__scroll { display: none !important; }
  .ew-hero__img,
  .ew-hero--mode-full .ew-hero__img {
    grid-area: img;
    position: relative !important;
    /* inline styleのleft/right/top/bottom/clip-pathを上書き */
    left: auto !important; right: auto !important;
    top:  auto !important; bottom: auto !important;
    inset: auto !important;
    clip-path: none !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 60vw !important;
    min-height: 200px;
    max-height: 360px;
  }
  .ew-hero__img img { object-position: center top; width:100%; height:100%; object-fit:cover; }
  .ew-hero__overlay { display: none !important; }

  /* コンテンツ：grid-areaで2番目に固定 */
  .ew-hero__content {
    grid-area: content;
    position: relative !important;
    left: auto !important; right: auto !important;
    top:  auto !important; bottom: auto !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 28px 24px 32px !important;
    box-sizing: border-box !important;
    background: var(--ew-cream, #FAF7F2);
    text-align: left !important;
    color: var(--ew-text, #332518) !important;
  }
  .ew-hero__eyebrow { color: var(--ew-accent, #C07A52) !important; }
  .ew-hero__h2      { color: var(--ew-text, #332518) !important; font-size: clamp(24px,6vw,36px) !important; }
  .ew-hero__h2 em   { color: var(--ew-accent, #C07A52) !important; }
  .ew-hero__sub     { color: var(--ew-text-sub, #7A6550) !important; }

  /* バッジ */
  .ew-hero__badge {
    grid-area: badge;
    position: relative !important;
    left: auto !important; right: auto !important;
    top:  auto !important; bottom: auto !important;
    inset: auto !important;
    margin: 0 24px 16px;
    padding: 12px 16px;
    display: inline-block;
  }
  .ew-hero__badge-num { font-size: 24px; }

  /* スクロール非表示 */
  /* ew-hero__scroll は上部で display:none 済み */
}

/* ════════════════════════════════
   コンテンツ位置制御（absolute配置）
   --hero-valign : top | center | bottom  （縦位置）
   --hero-halign : left | center | right  （横位置）
   render.php から CSS変数として渡す
   ════════════════════════════════ */

/* デフォルト：左下 */
.ew-hero__content {
  bottom: 0;
  left:   0;
  right:  auto;
  top:    auto;
  transform: none;
}

/* ── 縦位置 ── */
.ew-hero[style*="--hero-valign:top"] .ew-hero__content,
.ew-hero[style*="--hero-valign: top"] .ew-hero__content {
  top: 0; bottom: auto; transform: translateY(0);
}
.ew-hero[style*="--hero-valign:center"] .ew-hero__content,
.ew-hero[style*="--hero-valign: center"] .ew-hero__content {
  top: 50%; bottom: auto; transform: translateY(-50%);
}
.ew-hero[style*="--hero-valign:bottom"] .ew-hero__content,
.ew-hero[style*="--hero-valign: bottom"] .ew-hero__content {
  bottom: 0; top: auto; transform: translateY(0);
}

/* ── 横位置 ── */
.ew-hero[style*="--hero-halign:center"] .ew-hero__content,
.ew-hero[style*="--hero-halign: center"] .ew-hero__content {
  left: 50%; right: auto;
  max-width: 100%;
  transform: translateX(-50%);
}
/* 縦と横が両方centerのとき */
.ew-hero[style*="--hero-valign:center"][style*="--hero-halign:center"] .ew-hero__content,
.ew-hero[style*="--hero-valign: center"][style*="--hero-halign: center"] .ew-hero__content {
  top: 50%; left: 50%; bottom: auto; right: auto;
  transform: translate(-50%, -50%);
}
.ew-hero[style*="--hero-halign:right"] .ew-hero__content,
.ew-hero[style*="--hero-halign: right"] .ew-hero__content {
  left: auto; right: 0;
}

/* テキスト揃えに連動してボタン群も揃える */
.ew-hero__content[style*="text-align:center"] .ew-hero__btns,
.ew-hero__content[style*="text-align: center"] .ew-hero__btns { justify-content: center; }
.ew-hero__content[style*="text-align:right"] .ew-hero__btns,
.ew-hero__content[style*="text-align: right"] .ew-hero__btns  { justify-content: flex-end; }

/* ════════════════════════════════
   全面背景モード（imageMode: full）
   ════════════════════════════════ */
.ew-hero--mode-full .ew-hero__bg { display: none; }

.ew-hero--mode-full .ew-hero__img {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  clip-path: none !important;
}
.ew-hero--mode-full .ew-hero__img::after { display: none; }
.ew-hero--mode-full .ew-hero__img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}
.ew-hero__overlay {
  position: absolute; inset: 0;
  background: #000; pointer-events: none;
}

/* 全面背景時のデフォルトテキスト色 */
.ew-hero--mode-full .ew-hero__eyebrow { color: rgba(255,255,255,.75); }
.ew-hero--mode-full .ew-hero__h2      { color: #fff; }
.ew-hero--mode-full .ew-hero__h2 em   { color: #fff; }
.ew-hero--mode-full .ew-hero__sub     { color: rgba(255,255,255,.82); }
.ew-hero--mode-full .ew-hero__badge {
  background: rgba(255,255,255,.15); backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,.25);
}
.ew-hero--mode-full .ew-hero__badge-num      { color: #fff; }
.ew-hero--mode-full .ew-hero__badge-num span { color: rgba(255,255,255,.7); }
.ew-hero--mode-full .ew-hero__badge-label    { color: rgba(255,255,255,.55); }
.ew-hero--mode-full .ew-hero__scroll span    { color: rgba(255,255,255,.5); }
.ew-hero--mode-full .ew-hero__scroll-bar     { background: linear-gradient(to bottom,rgba(255,255,255,.4),transparent); }

@media (max-width: 600px) {
  .ew-hero__content { padding: 0 24px 72px; max-width: 100%; }
}
/* ════════════════════════════════
   Lunaria: 分割ヒーローブロック
   ════════════════════════════════ */

.ew-hero-split {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.ew-hero-split.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.ew-hero-split.alignwide {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* ── パネル ── */
.ew-hs__panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  transition: flex .4s ease;
}
.ew-hs__panel:hover { z-index: 1; }

/* ── 背景画像 ── */
.ew-hs__bg {
  position: absolute;
  inset: 0;
}
.ew-hs__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s ease;
}
.ew-hs__panel:hover .ew-hs__bg img {
  transform: scale(1.04);
}
.ew-hs__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── コンテンツ（absolute配置） ── */
.ew-hs__content {
  position: absolute;
  z-index: 2;
  padding: 40px 48px;
  box-sizing: border-box;
  max-width: 100%;
}

.ew-hs__heading {
  font-family: var(--ew-font-serif, serif);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .04em;
  margin: 0 0 12px;
  /* font-size は inline style で制御 */
}
.ew-hs__sub {
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: .06em;
  margin: 0 0 20px;
  opacity: .88;
}
.ew-hs__btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 13px;
  letter-spacing: .12em;
  text-decoration: none;
  border-radius: 1px;
  padding: 12px 28px;
  transition: all .25s ease;
  white-space: nowrap;
}
.ew-hs__btn--fill {
  background: var(--ew-accent, #C07A52);
  color: #fff;
  border: 2px solid transparent;
}
.ew-hs__btn--fill:hover {
  background: var(--ew-accent-dark, #9A5E3C);
  transform: translateY(-2px);
}
.ew-hs__btn--line {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
}
.ew-hs__btn--line:hover {
  border-color: #fff;
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}

/* テキスト揃えに合わせてボタンも揃える */
.ew-hs__content[style*="text-align:center"] .ew-hs__btn,
.ew-hs__content[style*="text-align: center"] .ew-hs__btn { display: block; text-align: center; }

/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .ew-hero-split { flex-direction: column; height: auto !important; }
  .ew-hs__panel  { flex: none !important; width: 100% !important; min-height: 300px; }
  .ew-hs__content { padding: 28px 24px; }
  .ew-hs__heading { font-size: clamp(22px, 5vw, 36px) !important; }
}

/* ── エディター ── */
.ew-hero-split-editor .ew-hs__panel { cursor: pointer; }
.ew-sec-header{margin-bottom:48px;padding-top:64px;}
.ew-sec-tag{font-family:var(--ew-font-sans);font-size:10.5px;letter-spacing:.42em;color:var(--ew-accent);text-transform:uppercase;display:flex;align-items:center;gap:14px;margin-bottom:16px;}
.ew-sec-tag::before{content:'';width:26px;height:1px;background:var(--ew-accent);flex-shrink:0;}
.ew-sec-h2{font-family:var(--ew-font-serif);font-size:clamp(26px,3.2vw,40px);font-weight:600;color:var(--ew-accent);line-height:1.6;letter-spacing:.04em;margin-bottom:14px;}
.ew-sec-lead{font-family:var(--ew-font-sans);font-size:14.5px;color:var(--ew-text-sub);line-height:2;letter-spacing:.05em;max-width:560px;}
.ew-sec-header--center{text-align:center;}
.ew-sec-header--center .ew-sec-tag{justify-content:center;}
.ew-sec-header--center .ew-sec-tag::before{display:none;}
.ew-sec-header--center .ew-sec-lead{margin-inline:auto;}/* ============================================================
   usp-grid — フロントエンド（幅制御自己完結）
   ============================================================ */

/* グリッド基本 */
.ew-usp-grid,
.wp-block-engawa-usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
  box-sizing: border-box;
}

/* デフォルト（align未設定）: コンテンツ幅 */
.ew-usp-grid {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* 幅広 */
.ew-usp-grid.alignwide {
  max-width: 1180px;
}

/* 全幅 */
.ew-usp-grid.alignfull {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* カードスタイル */
.ew-usp-card {
  background: var(--ew-cream);
  border: 1px solid var(--ew-sand);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.ew-usp-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--ew-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s;
}
.ew-usp-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(62,45,32,.09); }
.ew-usp-card:hover::before { transform: scaleY(1); }
.ew-usp-card__num   { font-family: var(--ew-font-serif); font-size: 60px; font-weight: 700; color: var(--ew-sand); line-height: 1; margin-bottom: 20px; }
.ew-usp-card__title { font-family: var(--ew-font-serif); font-size: 20px; font-weight: 600; color: var(--ew-accent); letter-spacing: .04em; margin-bottom: 16px; }
.ew-usp-card__desc  { font-family: var(--ew-font-sans); font-size: 13.5px; color: var(--ew-text-sub); line-height: 1.9; letter-spacing: .05em; }

@media (max-width: 900px) { .ew-usp-grid, .wp-block-engawa-usp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ew-usp-grid, .wp-block-engawa-usp-grid { grid-template-columns: 1fr; } }
/* ============================================================
   menu-grid — フロントエンド（幅制御自己完結）
   ============================================================ */

/* グリッド基本 */
.ew-menu-grid,
.wp-block-engawa-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* デフォルト（align未設定）: コンテンツ幅 */
.ew-menu-grid {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* 幅広 */
.ew-menu-grid.alignwide {
  max-width: 1180px;
}

/* 全幅 */
.ew-menu-grid.alignfull {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* カードスタイル */
.ew-menu-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; background: var(--ew-warm-white); border: 1px solid var(--ew-sand); overflow: hidden; transition: transform .35s, box-shadow .35s; }
.ew-menu-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(62,45,32,.12); }
.ew-menu-card__img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ew-sand); }
.ew-menu-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ew-menu-card:hover .ew-menu-card__img-wrap img { transform: scale(1.04); }
.ew-menu-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--ew-sand), var(--ew-taupe)); }
.ew-menu-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(62,45,32,.3) 0%, transparent 50%); }
.ew-menu-card__body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.ew-menu-card__label { font-family: var(--ew-font-sans); font-size: 10px; letter-spacing: .32em; color: var(--ew-accent); text-transform: uppercase; margin-bottom: 10px; }
.ew-menu-card__title { font-family: var(--ew-font-serif); font-size: 19px; font-weight: 600; color: var(--ew-accent); letter-spacing: .04em; line-height: 1.5; margin-bottom: 12px; }
.ew-menu-card__desc  { font-family: var(--ew-font-sans); font-size: 13px; color: var(--ew-text-sub); line-height: 1.85; flex: 1; }
.ew-menu-card__more  { display: inline-block; margin-top: 20px; font-family: var(--ew-font-sans); font-size: 12px; letter-spacing: .12em; color: var(--ew-accent); border-bottom: 1px solid var(--ew-blush); padding-bottom: 2px; transition: color .25s; }
.ew-menu-card:hover .ew-menu-card__more { color: var(--ew-accent-dark); }

/* 件数自動調整 */
.ew-menu-grid:has(.ew-menu-card:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin-left: auto; margin-right: auto; }
.ew-menu-grid:has(.ew-menu-card:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
.ew-menu-grid:has(.ew-menu-card:first-child:last-child)  { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

@media (max-width: 900px) { .ew-menu-grid, .wp-block-engawa-menu-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .ew-menu-grid, .wp-block-engawa-menu-grid { grid-template-columns: 1fr; }
  .ew-menu-grid:has(.ew-menu-card:nth-child(2):last-child),
  .ew-menu-grid:has(.ew-menu-card:nth-child(4):last-child) { grid-template-columns: 1fr; max-width: 100%; }
}
.ew-voices__grid,.wp-block-engawa-voice-card .ew-voices__grid{display:grid !important;grid-template-columns:repeat(3,1fr) !important;gap:24px !important;width:100% !important;box-sizing:border-box !important;}
.ew-voice-card{background:var(--ew-warm-white);border:1px solid var(--ew-sand);padding:36px 32px;}
.ew-voice-card__qm{font-family:var(--ew-font-serif);font-size:56px;color:var(--ew-sand);line-height:1;display:block;margin-bottom:12px;}
.ew-voice-card__text{font-family:var(--ew-font-sans);font-size:13.5px;color:var(--ew-text);line-height:1.9;letter-spacing:.04em;margin-bottom:24px;}
.ew-voice-card__meta{display:flex;align-items:center;gap:14px;}
.ew-voice-card__avatar{width:40px;height:40px;border-radius:50%;background:var(--ew-sand);display:flex;align-items:center;justify-content:center;font-family:var(--ew-font-serif);font-size:16px;font-weight:600;color:var(--ew-text);flex-shrink:0;}
.ew-voice-card__name{font-family:var(--ew-font-sans);font-size:11.5px;color:var(--ew-text-sub);letter-spacing:.06em;margin-bottom:4px;}
.ew-voice-card__stars{color:var(--ew-gold);font-size:13px;letter-spacing:1px;}
.ew-voices__link{margin-top:40px;text-align:center;}
@media(max-width:900px){.ew-voices__grid,.wp-block-engawa-voice-card .ew-voices__grid{grid-template-columns:1fr 1fr !important;}}
@media(max-width:600px){.ew-voices__grid,.wp-block-engawa-voice-card .ew-voices__grid{grid-template-columns:1fr !important;}}
.ew-cta {
  background: var(--ew-deep-brown);
  padding: 96px 48px;
  width: 100vw; max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.ew-cta__inner { max-width: 720px; margin: 0 auto; text-align: center; }

/* ── ダーク背景（デフォルト） ── */
.ew-cta[data-theme="dark"] .ew-cta__heading { color: #fff; }
.ew-cta[data-theme="dark"] .ew-cta__sub     { color: rgba(255,255,255,.55); }
.ew-cta[data-theme="dark"] .ew-cta-btn--primary {
  background: #fff;
  color: var(--ew-deep-brown);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.ew-cta[data-theme="dark"] .ew-cta-btn--primary:hover { background: var(--ew-cream); }
.ew-cta[data-theme="dark"] .ew-cta-btn--outline {
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.4);
}
.ew-cta[data-theme="dark"] .ew-cta-btn--outline:hover {
  color: #fff;
  border-color: rgba(255,255,255,.8);
}

/* ── ライト背景（明るいプリセット時） ── */
.ew-cta[data-theme="light"] .ew-cta__heading { color: var(--ew-text); }
.ew-cta[data-theme="light"] .ew-cta__sub     { color: var(--ew-text-sub); }
.ew-cta[data-theme="light"] .ew-cta-btn--primary {
  background: var(--ew-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.ew-cta[data-theme="light"] .ew-cta-btn--primary:hover { background: var(--ew-accent-dark); }
.ew-cta[data-theme="light"] .ew-cta-btn--outline {
  color: var(--ew-accent);
  border: 1px solid var(--ew-accent);
}
.ew-cta[data-theme="light"] .ew-cta-btn--outline:hover {
  background: var(--ew-accent);
  color: #fff;
}

/* ── 共通 ── */
.ew-cta__heading {
  font-family: var(--ew-font-serif);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .04em;
  margin-bottom: 20px;
}
.ew-cta__sub {
  font-family: var(--ew-font-sans);
  font-size: 12.5px;
  letter-spacing: .12em;
  margin-bottom: 44px;
}
.ew-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ew-cta-btn {
  display: inline-flex; align-items: center;
  font-family: var(--ew-font-sans);
  font-size: 13.5px; letter-spacing: .1em;
  text-decoration: none;
  padding: 16px 32px; border-radius: 1px;
  transition: all .28s ease;
}
@media (max-width: 600px) { .ew-cta__btns { align-items: stretch; } }

/* ── エディタープレビュー ── */
.ew-cta-editor-preview {
  background: var(--ew-deep-brown);
  padding: 72px 48px;
  text-align: center;
}
.ew-text-section { box-sizing: border-box; }

.ew-ts__inner { max-width: 100%; }

/* テキスト揃え */
.ew-ts--left  { text-align: left; }
.ew-ts--center{ text-align: center; }
.ew-ts--right { text-align: right; }

/* 縦パディング PC（5段階） */
.ew-ts--padpc-0  { padding-top: 0;     padding-bottom: 0; }
.ew-ts--padpc-20 { padding-top: 20px;  padding-bottom: 20px; }
.ew-ts--padpc-40 { padding-top: 40px;  padding-bottom: 40px; }
.ew-ts--padpc-60 { padding-top: 60px;  padding-bottom: 60px; }
.ew-ts--padpc-80 { padding-top: 80px;  padding-bottom: 80px; }

/* 縦パディング SP（5段階）*/
@media (max-width: 768px) {
  .ew-ts--padsp-0  { padding-top: 0;    padding-bottom: 0; }
  .ew-ts--padsp-20 { padding-top: 20px; padding-bottom: 20px; }
  .ew-ts--padsp-40 { padding-top: 40px; padding-bottom: 40px; }
  .ew-ts--padsp-60 { padding-top: 60px; padding-bottom: 60px; }
  .ew-ts--padsp-80 { padding-top: 80px; padding-bottom: 80px; }
}

/* タイトル */
.ew-ts__title {
  font-family: var(--ew-font-serif);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 600;
  color: var(--ew-text);
  line-height: 1.5;
  letter-spacing: .04em;
  margin: 0 0 20px;
}

/* 本文 */
.ew-ts__body {
  font-family: var(--ew-font-body);
  font-size: 15px;
  color: var(--ew-text-sub);
  line-height: 1.9;
  margin: 0 0 28px;
}

/* ボタン */
.ew-ts__btn-wrap { margin-top: 8px; }

.ew-ts__btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--ew-font-sans);
  font-size: 13.5px;
  letter-spacing: .1em;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 1px;
  transition: all .25s;
}
.ew-ts__btn--primary {
  background: var(--ew-accent);
  color: #fff;
}
.ew-ts__btn--primary:hover {
  background: var(--ew-accent-dark);
}
.ew-ts__btn--outline {
  background: transparent;
  color: var(--ew-accent);
  border: 1.5px solid var(--ew-accent);
}
.ew-ts__btn--outline:hover {
  background: var(--ew-accent);
  color: #fff;
}

/* 幅：全幅のときは横パディングを付ける */
.ew-width-full .ew-ts__inner,
.ew-width-wide .ew-ts__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
  box-sizing: border-box;
}
.ew-width-content .ew-ts__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .ew-width-full .ew-ts__inner,
  .ew-width-wide .ew-ts__inner { padding: 0 24px; }
}

.ew-ts--mar-none   { margin-top: 0;    margin-bottom: 0; }
.ew-ts--mar-small  { margin-top: 24px; margin-bottom: 24px; }
.ew-ts--mar-medium { margin-top: 48px; margin-bottom: 48px; }
.ew-ts--mar-large  { margin-top: 80px; margin-bottom: 80px; }
/* ════════════════════════════════
   Lunaria: 関連記事ブロック
   ════════════════════════════════ */

.ew-related-posts {
  box-sizing: border-box;
  padding: 48px 0;
}

/* 見出し */
.ew-related__heading-wrap {
  text-align: center;
  margin-bottom: 36px;
}
.ew-related__heading {
  font-family: var(--ew-font-serif, serif);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600;
  color: var(--ew-text, #332518);
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.ew-related__heading::before,
.ew-related__heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--ew-taupe, #C9B99A);
}

/* 共通 */
.ew-related__link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.ew-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.ew-related__link:hover .ew-related__thumb img {
  transform: scale(1.04);
}
.ew-related__no-thumb {
  width: 100%;
  height: 100%;
  background: var(--ew-sand, #EDE4D5);
}
.ew-related__cat {
  display: inline-block;
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ew-accent, #C07A52);
  margin-bottom: 6px;
}
.ew-related__title {
  font-family: var(--ew-font-serif, serif);
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 600;
  color: var(--ew-text, #332518);
  line-height: 1.6;
  margin: 0 0 6px;
}
.ew-related__excerpt {
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 12px;
  color: var(--ew-text-sub, #7A6550);
  line-height: 1.7;
  margin: 0 0 6px;
}
.ew-related__date {
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 11px;
  color: var(--ew-taupe, #C9B99A);
  letter-spacing: .06em;
}

/* ════════════════════════════════
   A. カードグリッド型
   ════════════════════════════════ */
.ew-related--card-grid .ew-related__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ew-related--card-grid .ew-related__item {
  background: var(--ew-warm-white, #FFFEFB);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(60,30,10,.07);
  transition: box-shadow .3s, transform .3s;
}
.ew-related--card-grid .ew-related__item:hover {
  box-shadow: 0 6px 24px rgba(60,30,10,.12);
  transform: translateY(-3px);
}
.ew-related--card-grid .ew-related__thumb {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.ew-related--card-grid .ew-related__body {
  padding: 16px;
}

/* ════════════════════════════════
   B. 横長リスト型
   ════════════════════════════════ */
.ew-related--list .ew-related__inner {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--ew-sand, #EDE4D5);
  border: 1px solid var(--ew-sand, #EDE4D5);
  border-radius: 4px;
  overflow: hidden;
}
.ew-related--list .ew-related__item {
  background: var(--ew-warm-white, #FFFEFB);
}
.ew-related--list .ew-related__link {
  display: flex;
  gap: 20px;
  padding: 20px;
  transition: background .2s;
}
.ew-related--list .ew-related__link:hover {
  background: var(--ew-cream, #FAF7F2);
}
.ew-related--list .ew-related__thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  overflow: hidden;
  border-radius: 3px;
}
.ew-related--list .ew-related__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ════════════════════════════════
   C. マガジン型
   ════════════════════════════════ */
.ew-related--magazine .ew-related__inner {
  display: grid;
  gap: 16px;
}
.ew-related--magazine .ew-related__inner {
  grid-template-columns: 1fr;
}
.ew-related--magazine .ew-related__item:first-child {
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .ew-related--magazine .ew-related__inner {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .ew-related--magazine .ew-related__item:first-child {
    grid-row: 1 / 3;
  }
}
.ew-related--magazine .ew-related__item {
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.ew-related--magazine .ew-related__link {
  position: relative;
}
.ew-related--magazine .ew-related__thumb {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.ew-related--magazine .ew-related__item:first-child .ew-related__thumb {
  aspect-ratio: 4/3;
}
.ew-related--magazine .ew-related__body {
  padding: 12px;
  background: var(--ew-warm-white, #FFFEFB);
}

/* ════════════════════════════════
   D. ポラロイドカード型
   ════════════════════════════════ */
.ew-related--polaroid .ew-related__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  padding: 16px 8px;
}
.ew-related--polaroid .ew-related__item:nth-child(odd) {
  transform: rotate(-1.5deg);
}
.ew-related--polaroid .ew-related__item:nth-child(even) {
  transform: rotate(1.2deg);
}
.ew-related--polaroid .ew-related__item {
  transition: transform .3s ease, box-shadow .3s ease;
}
.ew-related--polaroid .ew-related__item:hover {
  transform: rotate(0deg) scale(1.03) !important;
  z-index: 2;
}
.ew-related--polaroid .ew-related__polaroid-frame {
  background: #fff;
  padding: 10px 10px 36px;
  box-shadow: 0 4px 20px rgba(60,30,10,.14), 0 1px 4px rgba(60,30,10,.08);
}
.ew-related--polaroid .ew-related__thumb {
  aspect-ratio: 1/1;
  overflow: hidden;
}
.ew-related--polaroid .ew-related__body {
  padding: 12px 4px 0;
  text-align: center;
}
.ew-related--polaroid .ew-related__title {
  font-size: 12px;
  font-weight: 600;
}
.ew-related--polaroid .ew-related__date {
  font-size: 10px;
}

/* ════════════════════════════════
   E. 横長サムネイル型
   ════════════════════════════════ */
.ew-related--thumb-list .ew-related__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ew-related--thumb-list .ew-related__item {
  border-bottom: 1px solid var(--ew-sand, #EDE4D5);
  padding-bottom: 20px;
}
.ew-related--thumb-list .ew-related__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.ew-related--thumb-list .ew-related__link {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.ew-related--thumb-list .ew-related__link:hover .ew-related__title {
  color: var(--ew-accent, #C07A52);
}
.ew-related--thumb-list .ew-related__thumb {
  flex-shrink: 0;
  width: 160px;
  height: 107px;
  overflow: hidden;
  border-radius: 3px;
}
.ew-related--thumb-list .ew-related__body {
  flex: 1;
  min-width: 0;
}
.ew-related--thumb-list .ew-related__title {
  font-size: clamp(14px, 1.8vw, 17px);
  transition: color .2s;
}
.ew-related--thumb-list .ew-related__excerpt {
  font-size: 13px;
  margin-top: 8px;
}

/* ════════════════════════════════
   F. シネマティック型
   ════════════════════════════════ */
.ew-related--cinematic .ew-related__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.ew-related--cinematic .ew-related__item {
  position: relative;
  overflow: hidden;
}
.ew-related--cinematic .ew-related__thumb {
  aspect-ratio: 2/3;
  overflow: hidden;
}
.ew-related--cinematic .ew-related__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(30,15,5,.75) 0%, transparent 100%);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .35s, transform .35s;
}
.ew-related--cinematic .ew-related__item:hover .ew-related__body {
  opacity: 1;
  transform: translateY(0);
}
.ew-related--cinematic .ew-related__cat {
  color: var(--ew-taupe, #C9B99A);
}
.ew-related--cinematic .ew-related__title {
  color: #fff;
  font-size: 13px;
}
.ew-related--cinematic .ew-related__date {
  color: rgba(255,255,255,.6);
}

/* ════════════════════════════════
   レスポンシブ
   ════════════════════════════════ */
@media (max-width: 768px) {
  .ew-related--card-grid .ew-related__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .ew-related--polaroid .ew-related__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
  .ew-related--cinematic .ew-related__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .ew-related--cinematic .ew-related__body {
    opacity: 1;
    transform: translateY(0);
  }
  .ew-related--list .ew-related__thumb {
    width: 90px;
    height: 60px;
  }
  .ew-related--thumb-list .ew-related__thumb {
    width: 110px;
    height: 73px;
  }
}

@media (max-width: 480px) {
  .ew-related--card-grid .ew-related__inner,
  .ew-related--polaroid .ew-related__inner,
  .ew-related--cinematic .ew-related__inner {
    grid-template-columns: 1fr;
  }
  .ew-related--polaroid .ew-related__item:nth-child(odd),
  .ew-related--polaroid .ew-related__item:nth-child(even) {
    transform: none;
  }
  .ew-related--list .ew-related__link,
  .ew-related--thumb-list .ew-related__link {
    gap: 14px;
  }
}

/* ════════════════════════════════
   エディター
   ════════════════════════════════ */
.ew-related-editor-wrap {
  border: 1px dashed #c4b8a8;
  border-radius: 4px;
  padding: 20px;
  background: #faf7f2;
}
.ew-related-editor-header {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #332518;
}
/* ════════════════════════════════
   Lunaria: アクセス・地図ブロック
   ════════════════════════════════ */

.ew-access-map {
  box-sizing: border-box;
  padding: 48px 0;
}

/* ── 共通レイアウト ── */
.ew-access-map--left,
.ew-access-map--right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.ew-access-map--right .ew-access__map  { order: 2; }
.ew-access-map--right .ew-access__info { order: 1; }

.ew-access-map--top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.ew-access-map--top .ew-access__map {
  width: 100%;
  aspect-ratio: 16/6;
}

.ew-access-map--info-only .ew-access__map {
  display: none;
}

/* ── 地図 ── */
.ew-access__map {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(60,30,10,.1);
}
.ew-access__map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── 情報エリア ── */
.ew-access__name {
  font-family: var(--ew-font-serif, serif);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--ew-text, #332518);
  margin: 0 0 24px;
  letter-spacing: .04em;
}

/* ── DLリスト ── */
.ew-access__dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--ew-sand, #EDE4D5);
}
.ew-access__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--ew-sand, #EDE4D5);
  align-items: baseline;
}
.ew-access__dt {
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ew-text-sub, #7A6550);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ew-access__dt svg {
  color: var(--ew-accent, #C07A52);
  flex-shrink: 0;
}
.ew-access__dd {
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 14px;
  color: var(--ew-text, #332518);
  line-height: 1.7;
  margin: 0;
}
.ew-access__postal {
  display: block;
  font-size: 11px;
  color: var(--ew-text-sub, #7A6550);
  margin-bottom: 2px;
}
.ew-access__tel {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--ew-accent, #C07A52);
  text-decoration: none;
  letter-spacing: .04em;
  font-family: var(--ew-font-sans, sans-serif);
}
.ew-access__tel:hover {
  text-decoration: underline;
}

/* ── 注記 ── */
.ew-access__note {
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 12px;
  color: var(--ew-text-sub, #7A6550);
  margin: 16px 0 0;
  line-height: 1.7;
}

/* ── ボタン ── */
.ew-access__btn {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ew-accent, #C07A52);
  border: 1.5px solid var(--ew-accent, #C07A52);
  padding: 10px 24px;
  border-radius: 2px;
  text-decoration: none;
  transition: all .25s;
}
.ew-access__btn:hover {
  background: var(--ew-accent, #C07A52);
  color: #fff;
}

/* 曜日別営業時間テーブル */
.ew-access__row--table {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--ew-sand, #EDE4D5);
}
.ew-access__row--table .ew-access__dd--full {
  margin: 0;
}
.ew-access__dd--full {
  overflow-x: auto;
}
.ew-access__hours-table {
  border-collapse: collapse;
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 12px;
  width: auto;
  min-width: 100%;
}
.ew-access__ht-empty {
  width: 80px;
}
.ew-access__ht-day {
  text-align: center;
  padding: 5px 4px;
  font-weight: 700;
  color: var(--ew-text-sub, #7A6550);
  font-size: 11px;
  border-bottom: 1.5px solid var(--ew-sand, #EDE4D5);
  min-width: 28px;
}
.ew-access__ht-day.is-sun { color: #c0392b; }
.ew-access__ht-day.is-sat { color: #2980b9; }
.ew-access__ht-slot {
  padding: 6px 8px 6px 0;
  font-size: 11px;
  color: var(--ew-text, #332518);
  white-space: nowrap;
  border-bottom: 1px solid var(--ew-sand, #EDE4D5);
}
.ew-access__ht-slot-label {
  display: block;
  font-weight: 700;
  font-size: 11px;
  color: var(--ew-text, #332518);
}
.ew-access__ht-slot-time {
  display: block;
  font-size: 10px;
  color: var(--ew-text-sub, #7A6550);
  margin-top: 1px;
}
.ew-access__ht-cell {
  text-align: center;
  padding: 6px 2px;
  border-bottom: 1px solid var(--ew-sand, #EDE4D5);
}
.ew-access__ht-dot {
  color: var(--ew-text, #332518);
  font-size: 13px;
}
.ew-access__ht-rest {
  font-size: 9px;
  font-weight: 700;
  color: var(--ew-text-sub, #7A6550);
  line-height: 1.3;
}

/* ════════════════════════════════
   レスポンシブ
   ════════════════════════════════ */
@media (max-width: 768px) {
  .ew-access-map--left,
  .ew-access-map--right {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ew-access-map--right .ew-access__map  { order: 1; }
  .ew-access-map--right .ew-access__info { order: 2; }
  .ew-access__map {
    aspect-ratio: 16/9;
  }
  .ew-access-map--top .ew-access__map {
    aspect-ratio: 16/9;
  }
  .ew-access__row {
    grid-template-columns: 80px 1fr;
  }
}

/* ════════════════════════════════
   エディター
   ════════════════════════════════ */
.ew-access-map-editor { padding: 0; }
.ew-access-editor-wrap {
  border: 1px dashed #c4b8a8;
  border-radius: 4px;
  padding: 16px;
  background: #faf7f2;
}
.ew-access-editor-header {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #332518;
}

/* ── 営業時間 dt アイコン列揃え ── */
.ew-access__dt--hours {
  align-items: flex-start;
  flex-direction: row;
  gap: 6px;
}
.ew-access__dt--hours svg {
  margin-top: 2px;
  flex-shrink: 0;
}
.ew-access__dt-time {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ew-text-sub, #7A6550);
  margin-top: 2px;
  white-space: nowrap;
}
/* ── 営業時間テーブル左上ヘッダー ── */
.ew-access__ht-time-header {
  text-align: left;
  padding: 5px 8px 5px 0;
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ew-text-sub, #7A6550);
  border-bottom: 1.5px solid var(--ew-sand, #EDE4D5);
  white-space: nowrap;
  width: 90px;
}
/* ── PhotoBlock: ビフォーアフタースライダー ── */
.ew-before-after {
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.ew-before-after.ew-width-content { max-width: 760px; }
.ew-before-after.ew-width-wide    { max-width: 1180px; }
.ew-before-after.ew-width-full    { max-width: 100%; }

.ew-ba__track {
  position: relative;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  border-radius: 4px;
  background: #000;
}

.ew-ba__img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.ew-ba__img--after {
  position: relative;
  z-index: 1;
}
.ew-ba__before-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  width: 50%; /* JS で動的変更 */
}
.ew-ba__img--before {
  position: absolute;
  inset: 0;
  width: 100%; /* after と同じ幅になるようトラック幅で固定 */
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

/* 仕切り線 */
.ew-ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* JS で動的変更 */
  z-index: 3;
  width: 2px;
  background: rgba(255,255,255,.8);
  transform: translateX(-50%);
  pointer-events: none;
}
.ew-ba__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: col-resize;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: transform .15s;
}
.ew-ba__handle:hover { transform: translate(-50%, -50%) scale(1.1); }

/* ラベル */
.ew-ba__label {
  position: absolute;
  bottom: 14px;
  z-index: 4;
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  color: #fff;
  background: rgba(0,0,0,.35);
  padding: 3px 10px;
  border-radius: 2px;
  pointer-events: none;
  text-transform: uppercase;
}
.ew-ba__label--before { left: 14px; }
.ew-ba__label--after  { right: 14px; }

/* ── JS ── */
/* スライダー初期化スクリプト（wp_footer で出力） */
/* ════════════════════════════════
   Lunaria: 料金表ブロック
   ════════════════════════════════ */

.ew-price-list {
  box-sizing: border-box;
  padding: 48px 0;
  max-width: 760px;
  margin: 0 auto;
}

/* 見出し */
.ew-price__heading-wrap {
  text-align: center;
  margin-bottom: 36px;
}
.ew-price__heading {
  font-family: var(--ew-font-serif, serif);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600;
  color: var(--ew-text, #332518);
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.ew-price__heading::before,
.ew-price__heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--ew-taupe, #C9B99A);
}

/* 共通 */
.ew-price__name {
  font-family: var(--ew-font-serif, serif);
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 600;
  color: var(--ew-text, #332518);
}
.ew-price__price {
  font-family: var(--ew-font-sans, sans-serif);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 700;
  color: var(--ew-text, #332518);
  white-space: nowrap;
  letter-spacing: .02em;
}
.ew-price__badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  background: var(--ew-accent, #C07A52);
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.ew-price__desc {
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 12px;
  color: var(--ew-text-sub, #7A6550);
  line-height: 1.6;
  margin: 0;
}
.ew-price__note {
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 11px;
  color: var(--ew-taupe, #C9B99A);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ew-sand, #EDE4D5);
}

/* ════════════════════════════════
   A. 行ごとに写真（横並び）
   ════════════════════════════════ */
.ew-price-list--A .ew-price__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ew-sand, #EDE4D5);
}
.ew-price-list--A .ew-price__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ew-sand, #EDE4D5);
}
.ew-price-list--A .ew-price__row-img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 3px;
}
.ew-price-list--A .ew-price__row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ew-price-list--A .ew-price__row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ew-price-list--A .ew-price__price {
  margin-left: auto;
  flex-shrink: 0;
}
.ew-price-list--A .ew-price__badge {
  flex-shrink: 0;
}

/* ════════════════════════════════
   B. セクション上部に写真
   ════════════════════════════════ */
.ew-price-list--B .ew-price__sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ew-price-list--B .ew-price__section {
  background: var(--ew-warm-white, #FFFEFB);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(60,30,10,.06);
}
.ew-price-list--B .ew-price__section-img {
  width: 100%;
  aspect-ratio: 16/5;
  overflow: hidden;
}
.ew-price-list--B .ew-price__section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.ew-price-list--B .ew-price__section:hover .ew-price__section-img img {
  transform: scale(1.03);
}
.ew-price-list--B .ew-price__section-body {
  padding: 20px 24px;
}
.ew-price-list--B .ew-price__section-name-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ew-price-list--B .ew-price__price {
  margin-left: auto;
}
.ew-price-list--B .ew-price__desc {
  margin-top: 4px;
}

/* ════════════════════════════════
   C. カード型
   ════════════════════════════════ */
.ew-price-list--C .ew-price__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ew-price-list--C .ew-price__card {
  background: var(--ew-warm-white, #FFFEFB);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(60,30,10,.07);
  position: relative;
  transition: box-shadow .3s, transform .3s;
}
.ew-price-list--C .ew-price__card:hover {
  box-shadow: 0 6px 24px rgba(60,30,10,.12);
  transform: translateY(-3px);
}
.ew-price-list--C .ew-price__badge--card {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}
.ew-price-list--C .ew-price__card-img {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.ew-price-list--C .ew-price__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.ew-price-list--C .ew-price__card:hover .ew-price__card-img img {
  transform: scale(1.04);
}
.ew-price-list--C .ew-price__card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ew-price-list--C .ew-price__price {
  margin-top: 4px;
}

/* ════════════════════════════════
   レスポンシブ
   ════════════════════════════════ */
@media (max-width: 640px) {
  .ew-price-list--C .ew-price__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .ew-price-list--B .ew-price__section-img {
    aspect-ratio: 16/6;
  }
  .ew-price-list--A .ew-price__row-img {
    width: 52px;
    height: 52px;
  }
}
@media (max-width: 400px) {
  .ew-price-list--C .ew-price__cards {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════
   エディター
   ════════════════════════════════ */
.ew-price-list-editor { padding: 0; }
.ew-price-editor-wrap {
  border: 1px dashed #c4b8a8;
  border-radius: 4px;
  padding: 16px;
  background: #faf7f2;
}
.ew-price-editor-header {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #332518;
  margin-bottom: 4px;
}

/* ── 予約ボタン（A/B/C） ── */
.ew-price__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  color: #fff;
  background: var(--ew-accent, #C07A52);
  border-radius: 2px;
  padding: 8px 18px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, transform .15s;
}
.ew-price__btn:hover { background: var(--ew-accent-dark, #9A5E3C); transform: translateY(-1px); }
.ew-price-list--A .ew-price__btn { margin-left: 8px; }
.ew-price-list--B .ew-price__btn { margin-top: 12px; }
.ew-price-list--C .ew-price__btn { width: 100%; margin-top: 8px; }

/* ════════════════════════════════
   D. プランカード（複数価格）
   ════════════════════════════════ */
.ew-price-list--D .ew-price__d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.ew-price__d-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ew-sand, #EDE4D5);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ew-warm-white, #FFFEFB);
  transition: box-shadow .3s, transform .3s;
}
.ew-price__d-card:hover {
  box-shadow: 0 8px 28px rgba(60,30,10,.1);
  transform: translateY(-3px);
}

/* ハイライト */
.ew-price__d-card--hl {
  border-color: var(--ew-accent, #C07A52);
  background: var(--ew-accent, #C07A52);
  color: #fff;
}

/* ヘッダー */
.ew-price__d-header {
  padding: 20px 24px 16px;
  background: var(--ew-sand, #EDE4D5);
  text-align: center;
}
.ew-price__d-card--hl .ew-price__d-header {
  background: rgba(0,0,0,.15);
}
.ew-price__d-name {
  font-family: var(--ew-font-serif, serif);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: var(--ew-text, #3E2D20);
  letter-spacing: .05em;
}
.ew-price__d-card--hl .ew-price__d-name { color: #fff; }

/* バッジ */
.ew-price__d-badge {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ew-accent, #C07A52);
  background: #fff;
  border: 1px solid var(--ew-accent, #C07A52);
  border-radius: 20px;
  padding: 3px 14px;
}
.ew-price__d-card--hl .ew-price__d-badge {
  color: var(--ew-accent, #C07A52);
  background: #fff;
  border-color: #fff;
}

/* 価格行 */
.ew-price__d-prices {
  padding: 16px 24px 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ew-price__d-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dotted var(--ew-sand, #EDE4D5);
  gap: 12px;
}
.ew-price__d-card--hl .ew-price__d-price-row {
  border-bottom-color: rgba(255,255,255,.25);
}
.ew-price__d-price-row:last-child { border-bottom: none; }
.ew-price__d-label {
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 13px;
  color: var(--ew-text-sub, #7A6550);
  white-space: nowrap;
}
.ew-price__d-card--hl .ew-price__d-label { color: rgba(255,255,255,.8); }
.ew-price__d-price {
  font-family: var(--ew-font-sans, sans-serif);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
  color: var(--ew-text, #332518);
  white-space: nowrap;
  letter-spacing: .02em;
}
.ew-price__d-card--hl .ew-price__d-price { color: #fff; }

/* アクセントテキスト */
.ew-price__d-subtext {
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--ew-accent, #C07A52);
  text-align: center;
  padding: 10px 24px 4px;
  letter-spacing: .04em;
}
.ew-price__d-card--hl .ew-price__d-subtext { color: rgba(255,255,255,.9); }

/* 特典リスト */
.ew-price__d-features {
  list-style: none;
  padding: 8px 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.ew-price__d-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 13px;
  color: var(--ew-text, #332518);
  line-height: 1.5;
}
.ew-price__d-card--hl .ew-price__d-features li { color: rgba(255,255,255,.92); }
.ew-price__d-check {
  color: var(--ew-accent, #C07A52);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.5;
}
.ew-price__d-card--hl .ew-price__d-check { color: #fff; }

/* ボタン */
.ew-price__d-btn {
  display: block;
  margin: 16px 20px 20px;
  padding: 14px;
  text-align: center;
  font-family: var(--ew-font-sans, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--ew-accent, #C07A52);
  color: var(--ew-accent, #C07A52);
  background: transparent;
  transition: background .2s, color .2s, transform .15s;
}
.ew-price__d-btn:hover {
  background: var(--ew-accent, #C07A52);
  color: #fff;
  transform: translateY(-1px);
}
.ew-price__d-btn--hl {
  background: #fff;
  color: var(--ew-accent, #C07A52);
  border-color: #fff;
}
.ew-price__d-btn--hl:hover {
  background: rgba(255,255,255,.85);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .ew-price-list--D .ew-price__d-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════
   D. スライダー（複数画像）
   ════════════════════════════════ */
.ew-price__d-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0; /* カード上辺に合わせる */
  aspect-ratio: 3/2;
  background: var(--ew-sand, #EDE4D5);
}
.ew-price__d-slider-track {
  display: flex;
  height: 100%;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.ew-price__d-slide {
  flex: 0 0 100%;
  overflow: hidden;
}
.ew-price__d-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 前後ボタン */
.ew-price__d-slider-prev,
.ew-price__d-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(4px);
  color: var(--ew-text, #332518);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s, opacity .2s;
  opacity: 0;
}
.ew-price__d-slider:hover .ew-price__d-slider-prev,
.ew-price__d-slider:hover .ew-price__d-slider-next {
  opacity: 1;
}
.ew-price__d-slider-prev { left: 8px; }
.ew-price__d-slider-next { right: 8px; }
.ew-price__d-slider-prev:hover,
.ew-price__d-slider-next:hover {
  background: rgba(255,255,255,.97);
}

/* ドット */
.ew-price__d-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.ew-price__d-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.ew-price__d-slider-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* モバイルでは常にボタン表示 */
@media (max-width: 768px) {
  .ew-price__d-slider-prev,
  .ew-price__d-slider-next {
    opacity: .75;
    width: 28px;
    height: 28px;
    font-size: 17px;
  }
}
