@charset "UTF-8";
/*
 Theme Name: SANGO Child
 Theme URI: https://saruwakakun.design
 Author: SARUWAKA
 Author URI: https://saruwakakun.com
 Template: sango-theme
*/

/* =========================
   変数
   ========================= */
:root{
  --header-row: 72px;
  --header-max: 1440px;
  --header-max-lg: 1680px;

  --cta-base:#2f3237;
  --cta-accent:#6b7280;
  --cta-text:#ffffff;

  --feat-bg:#f6f7fb;
  --feat-card:#ffffff;
  --feat-text:#111827;
  --feat-muted:#4b5563;

  /* Flow（灰色系） */
  --flow-bg:#ffffff;
  --flow-card:#f9fafb;
  --flow-text:#1f2937;
  --flow-muted:#6b7280;
  --flow-accent:#374151;
  --flow-accent2:#4b5563;
  --flow-shadow-sm:0 4px 12px rgba(0,0,0,.05);
  --flow-shadow-md:0 10px 24px rgba(0,0,0,.08);

  /* Flow 強調グリーン */
  --flow-green:#10b981;

  /* voices（デフォルト値。JSで上書きされ得る） */
  --voices-slide-w: 88%;
  --voices-nav-size: 42px;
  --voices-gap: 48px;
}

/* =========================
   ヘッダー・ナビ・CTA・ヒーロー
   ========================= */
#inner-header.wrap.cf{
  display:flex; align-items:center; gap:1rem;
  min-height:var(--header-row); overflow:hidden; flex-wrap:nowrap; position:relative;
}
#logo{ order:1; flex:0 0 auto; min-width:max-content; }
.header-search{ order:2; margin-left:.25rem; }
.desktop-nav{ order:3; flex:1 1 auto; display:flex; align-items:center; margin:0 !important; }
#inner-header .rs-header-cta{ order:4; flex:0 0 auto; margin-left:auto; }

header.header .wrap{
  max-width:var(--header-max); width:min(96vw,var(--header-max));
  padding:0 24px; margin:0 auto;
}
@media (min-width:1440px){
  header.header .wrap{ max-width:var(--header-max-lg); width:min(94vw,var(--header-max-lg)); }
}

.desktop-nav > ul.menu{
  display:flex; align-items:center; justify-content:center; gap:.75rem;
  margin:0; padding:0; flex-wrap:nowrap; white-space:nowrap; min-width:max-content;
}
.desktop-nav > ul.menu > li{ display:flex; align-items:center; }
.desktop-nav > ul.menu > li > a{ display:flex; align-items:center; padding:0 .75rem; height:44px; line-height:1; font-size:13px; }
@media (max-width:1200px){ .desktop-nav > ul.menu{ justify-content:flex-start; } }

#logo .header-logo__link{ display:inline-flex; align-items:center; white-space:nowrap; }
.header-logo__img{ height:56px; width:auto; flex-shrink:0; }
@media (max-width:1024px){ .header-logo__img{ height:52px; } }
@media (max-width:767px){ .header-logo__img{ height:48px; } }

/* CTA（下線抑止含む） */
.rs-header-cta{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.6rem 1.1rem; border-radius:9999px;
  background:#ff6b6b; color:#fff; font-weight:700; text-decoration:none;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  transition:transform .03s ease, opacity .2s ease;
}
.rs-header-cta:hover,
.rs-header-cta:focus{ opacity:.95; text-decoration:none; }
.rs-header-cta:active{ transform:translateY(1px); text-decoration:none; }
.rs-header-cta:focus{ outline:none; }

.rs-header-cta.btn-flat{
  position:relative; overflow:hidden; display:inline-flex; align-items:center; justify-content:center;
  padding:.9rem 1.6rem; border-radius:10px; background:var(--cta-base); color:var(--cta-text);
  font-weight:700; line-height:1; box-shadow:0 2px 6px rgba(0,0,0,.08); transition:transform .03s ease; text-decoration:none;
}
.rs-header-cta.btn-flat:hover,
.rs-header-cta.btn-flat:focus{ text-decoration:none; }
.rs-header-cta.btn-flat span{ position:relative; z-index:1; font-size:13px; }
.rs-header-cta.btn-flat::before{
  content:""; position:absolute; inset:0; background:var(--cta-accent); border-radius:inherit;
  transform:translate3d(-101%,0,0); transition:transform .5s ease-in-out;
}
.rs-header-cta.btn-flat:hover::before{ transform:translate3d(0,0,0); }
#inner-header .rs-header-cta.btn-flat{ height:46px; padding:0 1.6rem; }

@media (max-width:767px){
  .rs-header-cta, .rs-header-cta.btn-flat{ display:none !important; }
  .desktop-nav > ul.menu > li > a{ height:40px; font-size:13px; }
}

.mobile-nav > ul.menu > li.rs-menu-cta > a{
  display:block; margin:.75rem 0 0; padding:.9rem 1rem; text-align:center;
  border-radius:12px; background:#ff6b6b; color:#fff !important; font-weight:700; text-decoration:none;
}
.mobile-nav > ul.menu > li.rs-menu-cta > a:hover,
.mobile-nav > ul.menu > li.rs-menu-cta > a:focus{ text-decoration:none; }

/* SP固定CTA */
.rs-fixed-cta{
  position:fixed; left:0; right:0; bottom:0; z-index:9990;
  display:none; padding:.5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.9); backdrop-filter:saturate(120%) blur(8px); box-shadow:0 -6px 16px rgba(0,0,0,.08);
}
.rs-fixed-cta__btn{
  display:block; width:100%; text-align:center; padding:1rem 1.2rem;
  border-radius:9999px; background:#ff6b6b; color:#fff; font-weight:800; text-decoration:none;
}
.rs-fixed-cta__btn:hover,
.rs-fixed-cta__btn:focus{ text-decoration:none; }
@media (max-width:767px){ .rs-fixed-cta{ display:block; } body{ padding-bottom:84px; } }
@media (min-width:768px){ .rs-fixed-cta{ display:none !important; } }

/* ページ余白 */
body.page header.header{ margin-bottom:0; }
body.page main, body.page #content, body.page .content{ padding-top:0 !important; }
body.page .entry-content > *:first-child,
body.page .entry-content > .wp-block-cover:first-child,
body.page .entry-content > .wp-block-image.alignfull:first-child,
body.page .wrap:first-child{ margin-top:0 !important; }

/* ヒーロー */
.rs-hero.alignfull{
  position:relative; background:var(--hero-image) center/cover no-repeat;
  min-height:clamp(480px,65vh,720px); display:grid; align-items:center; justify-items:start; margin:0;
}
.rs-hero__overlay{ display:none; }
.rs-hero__inner{
  position:relative; z-index:1; width:min(92vw,1280px); margin:0 auto;
  padding:clamp(32px,6vw,64px); padding-top:clamp(120px,18vh,200px);
  display:grid; gap:20px; justify-items:start; text-align:left;
}
.rs-hero__title{ color:#4b5563; font-size:clamp(44px,7vw,72px); line-height:1.2; margin:0 0 16px 0; }
.rs-hero__subtitle{ color:#374151; font-size:clamp(18px,2.2vw,24px); line-height:1.6; margin:4px 0 0; max-width:60ch; }
.rs-hero .rs-header-cta{ margin-left:0 !important; text-decoration:none; }
.rs-hero .rs-hero__cta.rs-header-cta.btn-flat{ margin-top:20px; height:72px; padding:0 48px; font-size:20px; }
.rs-hero .rs-hero__cta.rs-header-cta.btn-flat span{ font-size:20px; }
.rs-hero__tags{ display:flex; flex-wrap:wrap; gap:14px; margin-top:28px; }
.rs-hero__tags .tag{ font-size:16px; color:#4b5563; background:#fff; border:1.5px solid #4b5563; border-radius:9999px; padding:8px 18px; line-height:1.5; white-space:nowrap; font-weight:500; transition:all .2s ease; }
.rs-hero__tags .tag:hover{ background:#f9fafb; }
@media (min-width:1024px){ .rs-hero__inner{ padding-left:72px; padding-right:72px; } }
@media (max-width:767px){
  .rs-hero__inner{ padding:24px; }
  .rs-hero__title{ font-size:28px; }
  .rs-hero__subtitle{ font-size:16px; }
  .rs-hero .rs-hero__cta.rs-header-cta.btn-flat{ height:56px; padding:0 28px; font-size:16px; }
}

/* =========================
   Features
   ========================= */

/* 枠線再発防止 */
.rs-features.alignfull,
.rs-features__inner,
.rs-features__grid,
.rs-features__grid > li,
.rs-features__grid > li::before,
.rs-features__grid > li::after,
.rs-feature,
.rs-feature::before,
.rs-feature::after{ border:none !important; }

.rs-features.alignfull{
  position:relative; padding:clamp(72px,9vw,120px) 0; margin:0; overflow:hidden;
}
.rs-features__bg{ position:absolute; inset:0; background:var(--feat-bg); z-index:0; pointer-events:none; }
.rs-features__inner{
  position:relative; z-index:1; width:min(96vw,1320px); margin:0 auto; padding:0 12px; text-align:center;
}

/* セクション見出し */
.c-sechead{
  display:grid; justify-items:center; text-align:center;
  gap:8px; margin:0 0 clamp(20px,3.5vw,32px) 0;
}
.c-sechead__eyebrow{
  order:1; display:inline-block; font-size:12px; letter-spacing:.14em; font-weight:700;
  color:#6b7280; background:#eef2f7; padding:6px 10px; border-radius:9999px; margin-bottom:0;
}
.c-sechead__title{
  order:2; position:relative; display:inline-block; margin:0; padding-bottom:8px;
  font-size:clamp(28px,3.6vw,40px); font-weight:800; letter-spacing:.01em; color:var(--feat-text);
}
.c-sechead__title::after{
  content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:0;
  width:88px; height:3px; border-radius:9999px;
  background:linear-gradient(90deg, rgba(17,24,39,.65), rgba(17,24,39,0)); opacity:.55;
}
.c-sechead__lead, .rs-features__lead{
  order:3; margin:12px auto 0 !important;
  max-width:720px; font-size:clamp(15px,1.6vw,17px); color:var(--feat-muted); line-height:1.9; text-align:center !important;
}

/* グリッド */
.rs-features__grid{
  list-style:none !important; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:clamp(24px,3vw,36px);
}
.rs-features__grid > li{ list-style:none !important; }
@media (max-width:1024px){ .rs-features__grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:640px){ .rs-features__grid{ grid-template-columns:1fr; } }

/* カード */
.rs-feature{
  background:var(--feat-card); border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  transition:transform .18s ease, box-shadow .18s ease;

  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-areas:
    "icon heading"
    "icon text";
  column-gap:10px; row-gap:2px;
  padding:32px 28px 28px 24px; text-align:left;
}
.rs-feature:hover{ transform:translateY(-4px); box-shadow:0 12px 28px rgba(0,0,0,.08); }

/* アイコン */
.rs-feature__icon{
  grid-area:icon; background:none !important;
  height:96px; width:96px; display:grid; place-items:center; overflow:visible; flex:0 0 auto;
  margin:6px 0 0 0;
}
.rs-feature__icon img{ display:block; width:84px; height:84px; object-fit:contain; border:0 !important; background:transparent !important; }

/* 見出し・本文 */
.rs-feature__heading{
  grid-area:heading; align-self:center; margin:0;
  font-size:18px; font-weight:800; color:var(--feat-text); line-height:1.45;
  border:none !important; padding-left:0 !important; background:transparent !important; text-align:left;
}
.rs-feature__heading::before, .rs-feature__heading::after{ content:none !important; }
.rs-feature__text{
  grid-area:text; margin:2px 0 0 0;
  font-size:14.5px; color:var(--feat-muted); line-height:1.85; text-align:left; flex-grow:1;
}

@media (max-width:640px){
  .rs-feature{ grid-template-columns:72px 1fr; padding:24px 16px 20px 16px; column-gap:10px; row-gap:2px; }
  .rs-feature__icon{ height:72px; width:72px; margin:4px 0 0 0; }
  .rs-feature__icon img{ width:62px; height:62px; }
  .rs-feature__heading{ font-size:17px; }
}

/* 動きを減らす設定に配慮 */
@media (prefers-reduced-motion: reduce){
  .rs-feature{ transition:none; }
}

/* =========================
   Flow（灰色系）
   ========================= */
.rs-flow.alignfull{
  position:relative; margin:0;
  padding:clamp(48px, 7vw, 84px) 0;
  background:var(--flow-bg);
}
.rs-flow__inner{
  width:min(92vw,1100px); margin:0 auto; padding:0 16px;
  display:grid; gap:clamp(24px, 4vw, 36px);
}
.rs-flow .c-sechead{ margin:0 0 clamp(24px, 4vw, 40px) 0; }
.rs-flow .c-sechead__lead{ max-width:720px; }

/* ステップ */
.rs-flow__step{
  background:var(--flow-card); border-radius:16px; box-shadow:var(--flow-shadow-sm);
  padding:clamp(18px, 3vw, 28px);
  display:grid; grid-template-columns:1.4fr .9fr; gap:clamp(16px, 3vw, 28px); align-items:center;
}
@media (max-width:900px){
  .rs-flow__step{ grid-template-columns:1fr; padding:18px 16px; }
  .rs-flow__media{ justify-self:start; }
}

/* ヘッダ（バッジ＋タイトル） */
.rs-flow__head{ display:flex; flex-direction:column; align-items:flex-start; gap:2px; margin-bottom:6px; }
.rs-flow__badge{ display:inline-flex; align-items:flex-end; gap:8px; }
.rs-flow__label{
  color:var(--flow-green); font-size:11px; letter-spacing:.18em; font-weight:800; line-height:1; text-transform:uppercase;
}
.rs-flow__num{
  color:var(--flow-green); font-size:clamp(28px, 4.2vw, 40px); font-weight:800; line-height:1; letter-spacing:.02em;
}
.rs-flow__title{
  margin:0; font-size:clamp(18px, 2.4vw, 22px); font-weight:800; color:var(--flow-text);
  border:none !important; padding-left:0 !important; background:transparent !important;
}
.rs-flow__title::before, .rs-flow__title::after{ content:none !important; }

/* 本文・画像 */
.rs-flow__text{ color:var(--flow-text); opacity:.92; line-height:1.9; font-size:15px; margin:0; }
.rs-flow__media{ justify-self:end; }
.rs-flow__img{
  width:clamp(240px, 32vw, 320px); height:auto; border-radius:16px; display:block; box-shadow:var(--flow-shadow-sm);
}
@media (max-width:900px){ .rs-flow__img{ width:100%; max-width:520px; } }

/* ステップ間の矢印 */
.rs-flow__arrow{
  width:0; height:0; justify-self:center;
  border-left:10px solid transparent; border-right:10px solid transparent;
  border-top:14px solid #d1d5db; filter:drop-shadow(0 2px 2px rgba(0,0,0,.06));
}

/* Flow共通ボタン（hover下線抑止） */
.rs-btn{ display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:9999px; font-weight:700; text-decoration:none; box-shadow:var(--flow-shadow-sm); transition:transform .03s ease, opacity .2s ease; }
.rs-btn:hover{ opacity:.96; text-decoration:none; }
.rs-btn:active{ transform:translateY(1px); text-decoration:none; }
.rs-btn:focus{ text-decoration:none; outline:none; }
.rs-btn--line{ background:#6b7280; color:#fff; }
.rs-btn--mail{ background:var(--flow-accent2); color:#fff; }

/* STEP1 CTA（角丸ほぼゼロ＋矢印） */
.rs-flow .rs-flow__step:first-of-type .rs-flow__cta .rs-header-cta.btn-flat{
  border-radius:4px !important; height:52px !important; padding:0 22px !important; text-decoration:none !important;
}
.rs-flow .rs-flow__step:first-of-type .rs-flow__cta .rs-header-cta.btn-flat:hover,
.rs-flow .rs-flow__step:first-of-type .rs-flow__cta .rs-header-cta.btn-flat:focus{ text-decoration:none !important; }
.rs-flow .rs-flow__step:first-of-type .rs-flow__cta .rs-header-cta.btn-flat span{
  display:inline-flex !important; align-items:center !important; gap:8px !important;
}
.rs-flow .rs-flow__step:first-of-type .rs-flow__cta .rs-header-cta.btn-flat span::after{
  content:"▶"; font-size:.95em; line-height:1; display:inline-block; transform:translateY(1px);
}

/* ========== 下線抑止（全体のボタン類） ========== */
.rs-features__cta .rs-header-cta,
.rs-features__cta .rs-header-cta:hover,
.rs-features__cta .rs-header-cta:focus,
.rs-fixed-cta__btn,
.rs-fixed-cta__btn:hover,
.rs-fixed-cta__btn:focus,
.rs-header-cta,
.rs-header-cta:hover,
.rs-header-cta:focus,
.rs-btn,
.rs-btn:hover,
.rs-btn:focus{ text-decoration:none !important; }

/* =========================
   お客様の声 (voices)
   ========================= */

/* セクション全幅化＋ベース */
.section-voices{
  position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  width: 100vw;
  background: #f6f7fb;
  padding: 80px 0;

  /* スライド/矢印 デフォルト変数（JSで上書き可） */
  --voices-slide-w: 88%;
  --voices-nav-size: 42px;
  --voices-gap: 48px;
}
.section-voices .voices__inner{
  width: min(100%, var(--header-max-lg, 1680px));
  padding: 0 24px; margin: 0 auto;
}

/* タイトル */
.section-voices .section-title{ text-align:center; margin:0 auto 28px; }
.section-voices .section-title h2{
  font-size: clamp(22px, 2.2vw, 32px); font-weight:700; color: var(--feat-text, #111827);
}
.section-voices .section-title__line{
  width:56px; height:3px; margin:10px auto 0;
  background: var(--cta-base, #2f3237); border-radius:2px;
}

/* スライダー */
.section-voices .voices-swiper{ position:relative; overflow: visible !important; padding: 0 24px 64px !important; }
.section-voices .voices-swiper .swiper-slide{ display:flex; width: var(--voices-slide-w) !important; box-sizing: border-box; }
.section-voices .voices-swiper .swiper-slide > *{ width:100%; }

/* カード */
.section-voices .voice-card{
  background:#fff; border-radius:20px;
  box-shadow: 0 15px 40px rgba(17,24,39,.08);
  padding: clamp(20px, 3vw, 36px);
  width:100%; /* slidesPerView:'auto' でスライド幅いっぱいに */
}
.section-voices .voice-card__head{ display:flex; align-items:center; gap:14px; margin-bottom:10px; }
.section-voices .voice-card__avatar{
  width:56px; height:56px; border-radius:50%;
  background:#eef2f7; object-fit:cover; flex:0 0 56px;
  border:2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.section-voices .voice-card__tags{ display:flex; flex-wrap:wrap; gap:8px; }
.section-voices .voice-card .tag{
  background:#e8f4ff; color:#1e40af; font-size:12px; line-height:1;
  padding:6px 10px; border-radius:999px; font-weight:600;
}

/* タイトル（最終仕様：左ラインなし＆サイズ控えめ） */
.section-voices .voice-card__title{
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight:700; color:#0f172a; line-height:1.7;
  position:relative; margin:12px 0 14px; padding-left:0 !important; border-left:none !important;
  box-shadow:none !important; background-image:none !important;
}
.section-voices .voice-card__title::before,
.section-voices .voice-card__title::after{ content:none !important; display:none !important; }

/* 本文 */
.section-voices .voice-card__subtitle{ font-weight:700; color:#111827; margin:14px 0 6px; }
.section-voices .voice-card__body{ color:#374151; font-size:15px; line-height:1.9; }

/* ナビ矢印（“カード間”中央配置） */
.section-voices .voices-prev,
.section-voices .voices-next{
  position:absolute; top:50% !important; transform: translateY(-50%) !important;
  width: var(--voices-nav-size) !important; height: var(--voices-nav-size) !important;
  border-radius:50%; background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.12); z-index:5;
}
.section-voices .voices-prev{
  left:  calc(var(--voices-gap) - var(--voices-nav-size)/2) !important;
}
.section-voices .voices-next{
  right: calc(var(--voices-gap) - var(--voices-nav-size)/2) !important;
}
.section-voices .voices-prev::after,
.section-voices .voices-next::after{ font-size:16px; color:#0f172a; }

@media (max-width:767px){
  .section-voices{ --voices-slide-w: 96%; --voices-nav-size: 38px; }
}

/* ドット */
.section-voices .voices-pagination{ bottom:10px !important; }
.section-voices .voices-pagination .swiper-pagination-bullet{
  width:8px; height:8px; background:#cbd5e1; opacity:1; margin:0 6px !important;
}
.section-voices .voices-pagination .swiper-pagination-bullet-active{
  background:#1d4ed8; transform: scale(1.2);
}

/* hover下線抑止 */
.section-voices a:hover, .section-voices button:hover{ text-decoration: none !important; }

/* ====== #voices セクション限定・最終オーバーライド（固定幅＆中央ナビラップ） ====== */
#voices .voices-swiper{ position: relative; overflow: visible !important; padding: 0 24px !important; }
#voices .swiper-slide{ width: 88% !important; box-sizing: border-box; }
@media (max-width: 767px){ #voices .swiper-slide{ width: 96% !important; } }

#voices .voices-nav{
  position: absolute; left:50%; top:50%;
  transform: translate(-50%, -50%);
  width: 88%; display:flex; justify-content:space-between; align-items:center;
  pointer-events:none;
}
@media (max-width:767px){ #voices .voices-nav{ width:96%; } }

#voices .voices-nav .voices-prev,
#voices .voices-nav .voices-next{
  position: static !important; pointer-events:auto;
  width:42px; height:42px; border-radius:50%;
  background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.12);
}

/* 旧ルールの座標を完全無効化（保険） */
#voices .voices-prev, #voices .voices-next{ left:auto !important; right:auto !important; }



/* === Voices: 3/4幅に縮小＆矢印位置は自動追従 === */
.section-voices{
  --voices-slide-w: 75%;   /* ここを 75% に */
  --voices-nav-size: 42px;  /* そのままでもOK。必要なら調整 */
  --voices-gap: 48px;       /* 矢印とカード端の距離 */
}

/* 念のためオーバーフローを常に可視に */
.section-voices .voices-swiper{ overflow: visible !important; }

/* ===== Voices: 最終オーバーライド（幅75% & 安定ナビ） ===== */
#voices { position: relative; }

#voices .voices-swiper{
  overflow: visible !important;
  padding: 0 24px 64px !important;
}

#voices .swiper-wrapper{ align-items: stretch; }

#voices .swiper-slide{
  width: 75% !important;        /* ← これで 3/4 幅 */
  display: flex;
  box-sizing: border-box;
}
#voices .swiper-slide > *{ width: 100%; }

/* 矢印（常にセクション内の左右中央に表示） */
#voices .voices-prev, #voices .voices-next{
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 10;
}
#voices .voices-prev{ left: 12px; }
#voices .voices-next{ right: 12px; }
#voices .voices-prev::after, #voices .voices-next::after{ font-size: 16px; color:#0f172a; }

/* モバイルは少し広げて見せ方を弱める */
@media (max-width: 767px){
  #voices .swiper-slide{ width: 92% !important; }
}

/* ===== Voices: 強制リセット → 安定レイアウト ===== */
#voices { position: relative; }

#voices .voices-swiper{
  /* RTLや親の継承で矢印が逆転しないように固定 */
  direction: ltr;
  position: relative;
  overflow: visible !important;
  padding: 0 24px 64px !important;
}

/* 以前の width:88%!important を完全無効化 */
#voices .swiper-slide{
  width: auto !important;
  height: auto;
  display: flex;
  box-sizing: border-box;
}
#voices .swiper-slide > *{ width: 100%; }

/* カードを“3/4”相当で見せる：slidesPerViewに委譲するのでCSSで幅は持たない */
#voices .swiper-wrapper{ align-items: stretch; }

/* 矢印：常に左右に固定（逆サイドへ飛ぶのを防止） */
#voices .voices-prev, #voices .voices-next{
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 10;
}
#voices .voices-prev{ left: 12px; right: auto; }
#voices .voices-next{ right: 12px; left: auto; }
#voices .voices-prev::after, #voices .voices-next::after{ font-size: 16px; color:#0f172a; }

/* ページネーションの間隔微調整（任意） */
#voices .voices-pagination{ bottom: 12px !important; }

/* スマホでは左右の“チラ見せ”弱く */
@media (max-width: 767px){
  #voices .voices-prev, #voices .voices-next{ width: 38px; height: 38px; }
}

/* === Voices: 強制リセット（過去の 88%/auto 指定などを無効化） === */
#voices.section-voices .voices-swiper{ direction:ltr; overflow:visible !important; padding:0 24px 64px !important; }
#voices.section-voices .voices-swiper .swiper-wrapper{ align-items:stretch; }

/* スライド幅は JS が計算する。CSS 側は絶対に幅を持たせない */
#voices.section-voices .voices-swiper .swiper-slide{
  width:auto !important; /* ← 既存の 88% や var(--voices-slide-w) を潰す */
  display:flex; box-sizing:border-box;
}
#voices.section-voices .voices-swiper .swiper-slide > *{ width:100%; }

/* 矢印は左右固定（逆サイドへ行くのを防止） */
#voices .voices-prev, #voices .voices-next{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border-radius:50%;
  background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.12); z-index:10;
}
#voices .voices-prev{ left:12px; right:auto; }
#voices .voices-next{ right:12px; left:auto; }
#voices .voices-prev::after, #voices .voices-next::after{ font-size:16px; color:#0f172a; }

@media (max-width:767px){ #voices .voices-prev, #voices .voices-next{ width:38px; height:38px; } }

/* ===== Voices: スライダー用の幅を統一 ===== */
#voices .swiper-slide {
  width: 320px !important;   /* ← 横幅を固定。任意で調整（px or %可） */
  flex-shrink: 0;
  display: flex;
}

#voices .swiper-slide > * {
  width: 100%;
  height: 100%;
}

#voices .voice-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ===== Voices 最終オーバーライド（#voices 専用） ===== */
#voices .voices-swiper{
  direction:ltr;
  overflow:visible !important;
  padding:0 24px 64px !important;
}
#voices .swiper-wrapper{ align-items:stretch; }

/* ★ カード幅を統一（ここだけ変えれば調整可） */
#voices .swiper-slide{
  width:560px !important;  /* PC幅 */
  flex:0 0 auto;
  display:flex; box-sizing:border-box;
}
@media (max-width:1024px){ #voices .swiper-slide{ width:480px !important; } }
@media (max-width:767px) { #voices .swiper-slide{ width:88vw !important; } }

#voices .swiper-slide > *{ width:100%; height:100%; display:flex; flex-direction:column; }

/* 矢印を左右固定（消えたり逆側へ行くのを防止） */
#voices .voices-prev, #voices .voices-next{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border-radius:50%;
  background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.12);
  z-index:10;
}
#voices .voices-prev{ left:12px; right:auto; }
#voices .voices-next{ right:12px; left:auto; }
#voices .voices-prev::after, #voices .voices-next::after{ font-size:16px; color:#0f172a; }

/* voices ナビを左右の端に固定配置（親幅に追従） */
#voices .voices-slider{ position: relative; display:block; width:100%; }

#voices .voices-nav{
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 12px;                 /* 端からの余白 */
  pointer-events: none;            /* 中のボタンだけクリック可に */
  z-index: 20;
}

#voices .voices-nav .voices-prev,
#voices .voices-nav .voices-next{
  pointer-events: auto;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border: none; cursor: pointer;
}

#voices .voices-nav .voices-prev::after,
#voices .voices-nav .voices-next::after{
  content:""; display:block; width:0; height:0; margin:0 auto;
  border-top:6px solid transparent; border-bottom:6px solid transparent;
  border-left:8px solid #0f172a;
}
#voices .voices-nav .voices-prev::after{ transform: scaleX(-1); }

/* （既存の .voices-prev / .voices-next の absolute 位置指定は無効化） */
#voices .voices-prev, #voices .voices-next{ position: static !important; left:auto !important; right:auto !important; top:auto !important; transform:none !important; }


/* ===== Voices: 1枚表示＋左右チラ見せ & 矢印センタリング（最終上書き） ===== */
#voices{
  --card-w: 560px;   /* カードの横幅（PC） */
  --peek:   36px;    /* 左右の“チラ見せ”量 */
}

/* トラックを「カード1枚＋左右チラ見せ」の幅にして中央寄せ */
#voices .voices-track{
  width: calc(var(--card-w) + (2 * var(--peek)));
  margin-inline: auto;
  padding-inline: var(--peek);         /* ← これで左右が少し見える */
}

/* カードの横幅を統一（全スライド同じ幅） */
#voices .voices-slide{ width: var(--card-w); }

/* 矢印はトラックと同じ幅で中央に配置 → 左右端に固定される */
#voices .voices-nav{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);    /* 中央基準に */
  width: calc(var(--card-w) + (2 * var(--peek)));
  display: flex; justify-content: space-between; align-items: center;
  padding: 0;                          /* 余白は不要 */
  pointer-events: none;                /* ラッパーはクリック無効 */
  z-index: 20;
}
#voices .voices-nav .voices-prev,
#voices .voices-nav .voices-next{
  pointer-events: auto;                /* ボタンは有効 */
}

/* 以前の absolute 位置指定を無効化（保険） */
#voices .voices-prev, #voices .voices-next{
  position: static !important;
  left: auto !important; right: auto !important; top: auto !important;
  transform: none !important;
}

/* ブレイクポイント（数値は好みで調整OK） */
@media (max-width: 1024px){
  #voices{ --card-w: 480px; --peek: 24px; }
}
@media (max-width: 767px){
  #voices{ --card-w: 88vw;  --peek: 12px; }  /* 端末幅に追従して1枚表示 */
}
/* ===== Voices: ナビをトラック上に重ねて中央揃え（最終オーバーライド） ===== */
#voices{ --card-w:560px; --peek:36px; }               /* PC幅とチラ見せ量 */
@media (max-width:1024px){ #voices{ --card-w:480px; --peek:24px; } }
@media (max-width:767px){  #voices{ --card-w:88vw;  --peek:12px; } }

/* スライダーを“重ね合わせ”レイアウトに。ナビとトラックを同じグリッド上に配置 */
#voices .voices-slider{
  position:relative;
  display:grid;               /* ← これで子要素を重ねられる */
  justify-items:center;
  padding:0 0 56px;
}

/* トラック：1枚＋左右チラ見せの幅にし、中央寄せ */
#voices .voices-track{
  grid-area:1 / 1;            /* ← ナビと同じレイヤー */
  width: calc(var(--card-w) + 2*var(--peek));
  margin: 0 auto;
  padding-inline: var(--peek);
}

/* スライド幅を統一（既存指定の上書き用に再宣言） */
#voices .voices-slide{ width: var(--card-w) !important; }

/* ナビ：絶対配置を無効化してグリッド重ねに */
#voices .voices-nav{
  grid-area:1 / 1;            /* ← トラックと同じ位置に重ねる */
  position:static !important; /* ← 旧 absolute を無効化 */
  top:auto !important; left:auto !important; right:auto !important;
  transform:none !important;
  width: calc(var(--card-w) + 2*var(--peek)) !important; /* ← トラックと同幅 */
  display:flex; justify-content:space-between; align-items:center;
  pointer-events:none; z-index:5;
  padding:0 !important;
}
#voices .voices-nav .voices-prev,
#voices .voices-nav .voices-next{
  pointer-events:auto;        /* ボタンのみクリック可 */
  width:42px; height:42px; border-radius:50%;
  background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.12);
  border:none; cursor:pointer;
}
#voices .voices-nav .voices-prev::after,
#voices .voices-nav .voices-next::after{
  content:""; display:block; width:0; height:0; margin:0 auto;
  border-top:6px solid transparent; border-bottom:6px solid transparent;
  border-left:8px solid #0f172a;
}
#voices .voices-nav .voices-prev::after{ transform:scaleX(-1); }


/* ===== Voices: 1枚＋左右チラ見せ／矢印は外側に固定 ===== */
#voices{
  --card-w: 560px;   /* PCのカード幅 */
  --peek:   36px;    /* 左右のチラ見せ量 */
  --nav-gap: 16px;   /* トラック端から矢印までの距離 */
}
@media (max-width:1024px){ #voices{ --card-w:480px; --peek:24px; --nav-gap:14px; } }
@media (max-width:767px){  #voices{ --card-w:88vw;  --peek:12px; --nav-gap:10px; } }

#voices .voices-slider{
  position:relative;
  display:grid;               /* ナビとトラックを重ねる */
  justify-items:center;
  padding:0 0 56px;
}

/* トラック＝ 1枚幅 + 左右チラ見せ。常に中央配置 */
#voices .voices-track{
  grid-area:1 / 1;
  width: calc(var(--card-w) + 2*var(--peek));
  margin: 0 auto;
  padding-inline: var(--peek);
  display:flex; gap:24px;
  overflow-x:auto; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  scrollbar-width:none; -ms-overflow-style:none;
}
#voices .voices-track::-webkit-scrollbar{ display:none; }

/* 全スライドの横幅を統一 */
#voices .voices-slide{ flex:0 0 auto; width:var(--card-w) !important; scroll-snap-align:start; display:flex; }
#voices .voices-slide .voice-card{ width:100%; display:flex; flex-direction:column; }

/* ナビ：トラックと同じ中心に重ね、トラックの外側に配置 */
#voices .voices-nav{
  grid-area:1 / 1;            /* トラックと同レイヤー */
  position:static !important; /* 旧 absolute を殺す */
  top:auto !important; left:auto !important; right:auto !important;
  transform:none !important;
  width: calc(var(--card-w) + 2*var(--peek) + 2*var(--nav-gap));
  display:flex; justify-content:space-between; align-items:center;
  pointer-events:none; z-index:5; padding:0;
}
#voices .voices-nav .voices-prev,
#voices .voices-nav .voices-next{
  pointer-events:auto;
  width:42px; height:42px; border-radius:50%;
  background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.12);
  border:none; cursor:pointer;
}
#voices .voices-nav .voices-prev::after,
#voices .voices-nav .voices-next::after{
  content:""; display:block; width:0; height:0; margin:0 auto;
  border-top:6px solid transparent; border-bottom:6px solid transparent;
  border-left:8px solid #0f172a;
}
#voices .voices-nav .voices-prev::after{ transform:scaleX(-1); }

/* Swiper残骸の影響を消す（保険） */
#voices .swiper, #voices .swiper-container, #voices .swiper-wrapper, #voices .swiper-slide{ all:unset; }
#voices .swiper, #voices .swiper-container{ display:block; }

/* ドット（そのまま） */
#voices .voices-dots{ position:absolute; left:0; right:0; bottom:10px; display:flex; gap:8px; justify-content:center; }
#voices .voices-dots button{ width:8px; height:8px; border-radius:50%; border:none; background:#cbd5e1; cursor:pointer; }
#voices .voices-dots button[aria-selected="true"]{ background:#1d4ed8; transform:scale(1.2); }

/* スワイプ後に必ず“次の1枚”で止まる（微妙なズレ防止） */
#voices .voices-slide{ scroll-snap-stop: always; }
