/* ===== Layout ===== */
/* .container の padding は base.css で統一管理 */
.swx-section { padding: clamp(32px,6vw,72px) 0; }
.swx-section h2 { font-size: clamp(22px,2.6vw,32px); margin: 0 0 16px; font-weight: 800; color: var(--ink, #111); }
.swx-section-em { background: color-mix(in oklab, var(--brand, #ffd400) 8%, transparent); border-top: 1px solid color-mix(in oklab, var(--ink, #111) 10%, transparent); }

/* ===== Hero =====
 * 【リッチヒーロー用CSS】トップページのズーム＋フェードアニメーション付きヒーロー
 * - 用途: リッチヒーロー（背景画像2枚を30秒で切り替え＋ズームアニメーション）
 * - アニメーション: CSS keyframes（JS不要）
 * - 関連セレクタ:
 *   - .swx-hero: ヒーローコンテナ（基本スタイル）
 *   - .hero-bg, .hero-bg-1, .hero-bg-2: 背景レイヤー（アニメーション付き）
 *   - @keyframes heroZoomFade1, heroZoomFade2: 30秒無限ループのズーム＋フェード
 *   - .swx-hero::before: オーバーレイ（可読性確保用グラデーション）
 *   - .hero-title: メインタイトル
 *   - .hero-sub: サブテキスト
 *   - .hero-ctas: CTAボタンコンテナ
 *   - .btn-primary, .btn-secondary: ボタンスタイル（front.css 156-162行目で定義）
 */
.swx-hero {
  position: relative;
  padding: clamp(80px,15vw,180px) 0 clamp(60px,12vw,140px);
  background: var(--swx-c-bg, var(--surface, #fff));
  border-bottom: 1px solid color-mix(in oklab, var(--ink,#111) 10%, transparent);
  overflow: hidden;
  min-height: clamp(500px, 70vh, 800px);
  display: flex;
  align-items: center;
}

/* ヒーロー背景アニメーション（2枚切り替え） */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  width: 100%;
  height: 100%;
}

.hero-bg-1 {
  /* background-image はインラインスタイルで動的に設定されるため、ここでは削除 */
  animation: heroZoomFade1 30s ease-in-out infinite;
}

.hero-bg-2 {
  /* background-image はインラインスタイルで動的に設定されるため、ここでは削除 */
  animation: heroZoomFade2 30s ease-in-out infinite;
}

/* 背景アニメーション1（1枚目: 0-15秒表示） */
@keyframes heroZoomFade1 {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  40% {
    opacity: 1;
    transform: scale(1.12);
  }
  45% {
    opacity: 0;
    transform: scale(1.12);
  }
  85% {
    opacity: 0;
    transform: scale(1);
  }
  90% {
    opacity: 0;
    transform: scale(1);
  }
  95% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 背景アニメーション2（2枚目: 15-30秒表示） */
@keyframes heroZoomFade2 {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  35% {
    opacity: 0;
    transform: scale(1.12);
  }
  40% {
    opacity: 0;
    transform: scale(1.12);
  }
  45% {
    opacity: 1;
    transform: scale(1.12);
  }
  90% {
    opacity: 1;
    transform: scale(1);
  }
  95% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* オーバーレイ（可読性確保） */
.swx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(1200px 400px at 50% -10%,
    color-mix(in oklab, var(--hero-overlay-color, var(--brand,#ffd400)) 18%, transparent),
    transparent),
    linear-gradient(to bottom,
    rgba(255, 255, 255, .8) 0%,
    rgba(255, 255, 255, .7) 100%);
  pointer-events: none;
}

/* コンテンツを前面に */
.swx-hero .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(28px,4.5vw,60px);
  line-height: 1.1;
  margin: 0 0 8px;
  font-weight: 900;
  color: var(--swx-c-text, var(--ink, #111));
  text-shadow: 0 2px 8px rgba(255, 255, 255, .8);
}

.hero-sub {
  margin: 0 0 16px;
  color: color-mix(in oklab, var(--ink,#111) 60%, transparent);
  text-shadow: 0 1px 4px rgba(255, 255, 255, .6);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 動きを抑制したい人向け */
@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none !important;
    opacity: 0.3;
  }
  .hero-bg-1 {
    opacity: 0.3;
  }
}

/* ===== Buttons & Links ===== */
.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 700; border: 1px solid transparent; }
.btn-primary { background: var(--swx-c-brand, var(--brand,#ffd400)); color: var(--swx-c-text, #111); }
.btn-primary:hover { filter: brightness(0.98); }
.btn-secondary { background: var(--swx-c-text, var(--ink,#111)); color: var(--swx-c-bg, var(--surface,#fff)); }
.btn-secondary:hover { filter: brightness(1.05); }
.btn-accent { background: var(--swx-c-accent, var(--accent, #0c6ff9)); color: var(--swx-c-ink-on-brand, #fff); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-outline {
  background: transparent;
  color: var(--swx-c-brand, #0c6ff9);
  border: 2px solid var(--swx-c-brand, #0c6ff9);
  border-radius: 28px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow:
    0 2px 4px rgba(12, 111, 249, 0.2),
    0 1px 2px rgba(12, 111, 249, 0.1);
}

.btn-outline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--swx-c-brand, #0c6ff9);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
  z-index: 0;
}

.btn-outline:hover::before {
  width: 300px;
  height: 300px;
}

.btn-outline:hover {
  color: var(--swx-c-ink-on-brand, #fff);
  transform: translateY(-2px);
  box-shadow:
    0 4px 6px rgba(12, 111, 249, 0.3),
    0 2px 4px rgba(12, 111, 249, 0.2);
}

.btn-outline:active {
  transform: translateY(0);
  box-shadow:
    0 2px 4px rgba(12, 111, 249, 0.2),
    0 1px 2px rgba(12, 111, 249, 0.1);
}

.btn-outline > * {
  position: relative;
  z-index: 1;
}

.cta-line {
  margin-top: clamp(24px, 4vw, 32px);
  text-align: center;
}

/* ===== セクションサブタイトル ===== */
.sec-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: color-mix(in oklab, var(--ink, #111) 65%, transparent);
  margin: clamp(12px, 2vw, 16px) 0 0;
  font-weight: 600;
  line-height: 1.5;
}

/* ===== Voices: Material Design ===== */
#voices-teaser {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 8%, transparent) 0%,
    color-mix(in oklab, var(--swx-c-accent, #0c6ff9) 5%, transparent) 50%,
    color-mix(in oklab, var(--swx-c-success, #16a34a) 6%, transparent) 100%);
}

/* コンテンツコンテナ */
#voices-teaser .container {
  position: relative;
  z-index: 1;
}

/* 見出しレイアウト（マテリアルデザイン風） */
#voices-teaser .sec-head {
  position: relative;
  max-width: 1200px;
  margin: 0 auto clamp(32px, 5vw, 48px);
  padding: 0 var(--swx-container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* マテリアルデザイン風「もっと見る」ボタン */
#voices-teaser .link-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--swx-c-brand, #0c6ff9);
  color: var(--swx-c-ink-on-brand, #fff);
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 16px);
  border: none;
  border-radius: 28px;
  text-decoration: none;
  box-shadow:
    0 4px 6px rgba(12, 111, 249, 0.3),
    0 2px 4px rgba(12, 111, 249, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* リップルエフェクト用の疑似要素 */
#voices-teaser .link-more::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#voices-teaser .link-more:hover::before {
  width: 300px;
  height: 300px;
}

/* 矢印のスタイル */
#voices-teaser .link-more::after {
  content: "→";
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

/* ホバーエフェクト（エレベーション上昇） */
#voices-teaser .link-more:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 12px rgba(12, 111, 249, 0.4),
    0 4px 8px rgba(12, 111, 249, 0.3);
  background: color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 90%, white);
}

#voices-teaser .link-more:hover::after {
  transform: translateX(4px);
}

/* アクティブ状態（エレベーション下降） */
#voices-teaser .link-more:active {
  transform: translateY(0);
  box-shadow:
    0 2px 4px rgba(12, 111, 249, 0.3),
    0 1px 2px rgba(12, 111, 249, 0.2);
}

/* レスポンシブ */
@media (max-width: 960px) {
  #voices-teaser {
    padding: clamp(40px, 6vw, 60px) 0;
  }

  #voices-teaser .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  #voices-teaser .link-more {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* ===== Voices Slider (Material Design) ===== */
.voices-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 clamp(16px, 3vw, 24px);
  overflow: hidden;
  border-radius: 0;
  box-shadow:
    0 8px 10px rgba(0, 0, 0, 0.14),
    0 3px 14px rgba(0, 0, 0, 0.12),
    0 5px 5px rgba(0, 0, 0, 0.2);
  background: var(--swx-c-surface, #f9fafb);
}

/* PC版：スライダーを中央に配置 */
@media (min-width: 768px) {
  .voices-slider {
    margin-left: auto;
    margin-right: auto;
  }
}

.voices-slider-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.voices-slide {
  flex: 0 0 100%;
  position: relative;
}

.voices-slide img {
  width: 100%;
  height: clamp(400px, 60vh, 700px);
  object-fit: cover;
  display: block;
}

/* マテリアルデザイン風ナビゲーションボタン */
.voices-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: clamp(48px, 7vw, 64px);
  height: clamp(48px, 7vw, 64px);
  background: var(--swx-c-brand, #0c6ff9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--swx-c-ink-on-brand, #fff);
  box-shadow:
    0 4px 5px rgba(12, 111, 249, 0.2),
    0 2px 4px rgba(12, 111, 249, 0.14),
    0 1px 10px rgba(12, 111, 249, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  pointer-events: auto;
  user-select: none;
}

/* リップルエフェクト */
.voices-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
  z-index: 0;
}

.voices-nav:hover::before {
  width: 200px;
  height: 200px;
}

.voices-nav:hover {
  background: color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 85%, white);
  transform: translateY(-50%) scale(1.1);
  box-shadow:
    0 6px 10px rgba(12, 111, 249, 0.3),
    0 4px 6px rgba(12, 111, 249, 0.2),
    0 2px 14px rgba(12, 111, 249, 0.15);
}

.voices-nav:active {
  transform: translateY(-50%) scale(0.95);
  box-shadow:
    0 2px 4px rgba(12, 111, 249, 0.2),
    0 1px 2px rgba(12, 111, 249, 0.14);
}

.voices-nav > * {
  position: relative;
  z-index: 1;
}

.voices-nav-prev {
  left: clamp(20px, 4vw, 40px);
}

.voices-nav-next {
  right: clamp(20px, 4vw, 40px);
}

/* マテリアルデザイン風インジケーター */
.voices-indicators {
  position: absolute;
  bottom: clamp(24px, 5vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 5px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.14),
    0 1px 10px rgba(0, 0, 0, 0.12);
}

.voices-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--swx-c-text, #111827) 25%, transparent);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.voices-indicator:hover {
  background: color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 60%, transparent);
  transform: scale(1.3);
}

.voices-indicator.active {
  width: 36px;
  border-radius: 4px;
  background: var(--swx-c-brand, #0c6ff9);
  box-shadow:
    0 2px 4px rgba(12, 111, 249, 0.3),
    0 1px 2px rgba(12, 111, 249, 0.2);
}

/* マテリアルデザイン風カウンター */
.voices-counter {
  position: absolute;
  top: clamp(24px, 5vw, 40px);
  right: clamp(24px, 5vw, 40px);
  z-index: 10;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--swx-c-text, #111827);
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 5px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.14),
    0 1px 10px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.5px;
}

/* タッチスワイプのフィードバック */
.voices-slider.swiping {
  cursor: grabbing;
}

.voices-slider.swiping .voices-slider-wrapper {
  transition: none;
}

/* ===== 募集要項：マテリアルデザインカードグリッド ===== */
#job {
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 6%, transparent) 0%,
    color-mix(in oklab, var(--swx-c-accent, #0c6ff9) 4%, transparent) 50%,
    color-mix(in oklab, var(--swx-c-success, #16a34a) 5%, transparent) 100%);
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 4vw, 32px);
  margin: clamp(24px, 5vw, 40px) 0;
}

.job-card {
  position: relative;
  background: var(--swx-c-bg, #ffffff);
  border: none;
  border-radius: 16px;
  padding: clamp(24px, 5vw, 32px);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  cursor: pointer;
}

/* リップルエフェクト用 */
.job-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(12, 111, 249, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
  z-index: 0;
}

.job-card:hover::before {
  width: 400px;
  height: 400px;
}

.job-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 8px 10px rgba(0, 0, 0, 0.14),
    0 3px 14px rgba(0, 0, 0, 0.12),
    0 5px 5px rgba(0, 0, 0, 0.2);
}

.job-card:active {
  transform: translateY(-4px);
  box-shadow:
    0 4px 5px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.14),
    0 1px 10px rgba(0, 0, 0, 0.12);
}

.job-card.-highlight {
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 12%, #fff) 0%,
    color-mix(in oklab, var(--swx-c-accent, #0c6ff9) 8%, #fff) 100%);
  border: 2px solid var(--swx-c-brand, #0c6ff9);
}

.job-card.-highlight::before {
  background: rgba(255, 255, 255, 0.2);
}

.job-card > * {
  position: relative;
  z-index: 1;
}

.job-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 10vw, 80px);
  height: clamp(64px, 10vw, 80px);
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 auto clamp(16px, 3vw, 20px);
  line-height: 1;
  background: linear-gradient(135deg,
    var(--swx-c-brand, #0c6ff9) 0%,
    color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 85%, white) 100%);
  border-radius: 50%;
  box-shadow:
    0 4px 6px rgba(12, 111, 249, 0.3),
    0 2px 4px rgba(12, 111, 249, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card:hover .job-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow:
    0 6px 10px rgba(12, 111, 249, 0.4),
    0 4px 6px rgba(12, 111, 249, 0.3);
}

.job-card.-highlight .job-icon {
  background: linear-gradient(135deg,
    var(--swx-c-success, #16a34a) 0%,
    color-mix(in oklab, var(--swx-c-success, #16a34a) 85%, white) 100%);
  box-shadow:
    0 4px 6px rgba(22, 163, 74, 0.3),
    0 2px 4px rgba(22, 163, 74, 0.2);
}

.job-card.-highlight:hover .job-icon {
  box-shadow:
    0 6px 10px rgba(22, 163, 74, 0.4),
    0 4px 6px rgba(22, 163, 74, 0.3);
}

.job-card h3 {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--swx-c-text, #111827);
  letter-spacing: 0.3px;
}

.job-card p {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  margin: 8px 0;
  color: var(--swx-c-text, #111827);
  line-height: 1.2;
}

.job-detail {
  display: block;
  font-size: clamp(13px, 1.5vw, 15px);
  color: var(--swx-c-muted, #6b7280);
  margin-top: 8px;
  font-weight: 500;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--swx-c-brand, #0c6ff9);
  color: var(--swx-c-ink-on-brand, #fff);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow:
    0 2px 4px rgba(12, 111, 249, 0.3),
    0 1px 2px rgba(12, 111, 249, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 6px rgba(12, 111, 249, 0.4),
    0 2px 4px rgba(12, 111, 249, 0.3);
}

.job-card.-highlight .tag {
  background: var(--swx-c-success, #16a34a);
  box-shadow:
    0 2px 4px rgba(22, 163, 74, 0.3),
    0 1px 2px rgba(22, 163, 74, 0.2);
}

.job-card.-highlight .tag:hover {
  box-shadow:
    0 4px 6px rgba(22, 163, 74, 0.4),
    0 2px 4px rgba(22, 163, 74, 0.3);
}

/* ===== 1日の流れ：画像付きマテリアルデザインタイムライン ===== */
#flow {
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--swx-c-accent, #0c6ff9) 5%, transparent) 0%,
    color-mix(in oklab, var(--swx-c-success, #16a34a) 4%, transparent) 50%,
    color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 6%, transparent) 100%);
  position: relative;
  overflow: hidden;
}

/* セクション背景装飾 */
#flow::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
    color-mix(in oklab, var(--swx-c-success, #16a34a) 15%, transparent) 0%,
    transparent 70%);
  border-radius: 50%;
  bottom: -200px;
  left: -200px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* 画像メディアのスタイル（マテリアルデザイン風） */
#flow .sec-media {
  position: relative !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto clamp(32px, 6vw, 48px) !important;
  height: clamp(400px, 50vh, 600px) !important;
  min-height: clamp(400px, 50vh, 600px) !important;
  overflow: hidden !important;
  box-shadow:
    0 8px 10px rgba(0, 0, 0, 0.14),
    0 3px 14px rgba(0, 0, 0, 0.12),
    0 5px 5px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  inset: auto !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  z-index: 1;
  box-sizing: border-box;
}

#flow .sec-media:hover {
  transform: translateY(-4px) !important;
  box-shadow:
    0 12px 16px rgba(0, 0, 0, 0.18),
    0 4px 20px rgba(0, 0, 0, 0.15),
    0 6px 8px rgba(0, 0, 0, 0.25) !important;
}

#flow .sec-media img {
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(400px, 50vh, 600px) !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* タイムラインコンテナ */
#flow .flow-timeline {
  margin: clamp(32px, 6vw, 48px) 0;
  display: grid;
  gap: clamp(24px, 4vw, 32px);
  position: relative;
}

/* タイムラインの接続線（装飾用） */
.flow-timeline::before {
  content: "";
  position: absolute;
  left: clamp(40px, 6vw, 60px);
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom,
    var(--swx-c-brand, #0c6ff9) 0%,
    var(--swx-c-success, #16a34a) 50%,
    var(--swx-c-accent, #0c6ff9) 100%);
  border-radius: 2px;
  opacity: 0.3;
  z-index: 0;
}

/* ステップカード（マテリアルデザイン） */
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 32px);
  align-items: start;
  padding: clamp(24px, 5vw, 32px);
  background: var(--swx-c-bg, #ffffff);
  border: none;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
}

/* リップルエフェクト */
.flow-step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(12, 111, 249, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
  z-index: 0;
}

.flow-step:hover::before {
  width: 500px;
  height: 500px;
}

.flow-step:hover {
  transform: translateY(-6px) translateX(4px);
  box-shadow:
    0 8px 10px rgba(0, 0, 0, 0.14),
    0 3px 14px rgba(0, 0, 0, 0.12),
    0 5px 5px rgba(0, 0, 0, 0.2);
}

.flow-step:active {
  transform: translateY(-3px) translateX(2px);
  box-shadow:
    0 4px 5px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.14),
    0 1px 10px rgba(0, 0, 0, 0.12);
}

.flow-step > * {
  position: relative;
  z-index: 1;
}

/* ステップ番号（マテリアルデザイン風） */
.step-number {
  flex-shrink: 0;
  width: clamp(64px, 10vw, 80px);
  height: clamp(64px, 10vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    var(--swx-c-brand, #0c6ff9) 0%,
    color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 85%, white) 100%);
  color: var(--swx-c-ink-on-brand, #fff);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  border-radius: 50%;
  box-shadow:
    0 4px 6px rgba(12, 111, 249, 0.3),
    0 2px 4px rgba(12, 111, 249, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* ステップ番号の装飾リング */
.step-number::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 3px solid var(--swx-c-brand, #0c6ff9);
  border-radius: 50%;
  opacity: 0.2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-step:hover .step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow:
    0 6px 10px rgba(12, 111, 249, 0.4),
    0 4px 6px rgba(12, 111, 249, 0.3);
}

.flow-step:hover .step-number::after {
  opacity: 0.4;
  transform: scale(1.1);
}

/* 2番目のステップは緑系 */
.flow-step:nth-child(2) .step-number {
  background: linear-gradient(135deg,
    var(--swx-c-success, #16a34a) 0%,
    color-mix(in oklab, var(--swx-c-success, #16a34a) 85%, white) 100%);
  box-shadow:
    0 4px 6px rgba(22, 163, 74, 0.3),
    0 2px 4px rgba(22, 163, 74, 0.2);
}

.flow-step:nth-child(2) .step-number::after {
  border-color: var(--swx-c-success, #16a34a);
}

.flow-step:nth-child(2):hover .step-number {
  box-shadow:
    0 6px 10px rgba(22, 163, 74, 0.4),
    0 4px 6px rgba(22, 163, 74, 0.3);
}

/* 3番目のステップはアクセントカラー */
.flow-step:nth-child(3) .step-number {
  background: linear-gradient(135deg,
    var(--swx-c-accent, #0c6ff9) 0%,
    color-mix(in oklab, var(--swx-c-warning, #f59e0b) 30%, var(--swx-c-accent, #0c6ff9)) 100%);
  box-shadow:
    0 4px 6px rgba(12, 111, 249, 0.3),
    0 2px 4px rgba(12, 111, 249, 0.2);
}

.flow-step:nth-child(3) .step-number::after {
  border-color: var(--swx-c-accent, #0c6ff9);
}

/* ステップコンテンツ */
.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--swx-c-text, #111827);
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.step-content p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--swx-c-muted, #6b7280);
  margin: 0;
  line-height: 1.7;
  font-weight: 500;
}

/* flowセクション用のレイアウト調整 */
#flow .sec-body {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 var(--swx-container-padding) !important;
  position: relative;
  z-index: 1;
}

/* ===== FAQ：マテリアルデザインカードスタイル ===== */
#faq-teaser {
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--swx-c-accent, #0c6ff9) 5%, transparent) 0%,
    color-mix(in oklab, var(--swx-c-success, #16a34a) 4%, transparent) 50%,
    color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 6%, transparent) 100%);
}

.faq-cards {
  display: grid;
  gap: clamp(20px, 4vw, 32px);
  margin: clamp(32px, 5vw, 48px) 0;
}

.faq-card {
  position: relative;
  background: var(--swx-c-bg, #ffffff);
  border: none;
  border-radius: 16px;
  padding: clamp(24px, 4vw, 32px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  cursor: pointer;
}

/* リップルエフェクト */
.faq-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(12, 111, 249, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
  z-index: 0;
}

.faq-card:hover::before {
  width: 500px;
  height: 500px;
}

.faq-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 10px rgba(0, 0, 0, 0.14),
    0 3px 14px rgba(0, 0, 0, 0.12),
    0 5px 5px rgba(0, 0, 0, 0.2);
}

.faq-card:active {
  transform: translateY(-2px);
  box-shadow:
    0 4px 5px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.14),
    0 1px 10px rgba(0, 0, 0, 0.12);
}

.faq-card > * {
  position: relative;
  z-index: 1;
}

.faq-q, .faq-a {
  display: flex;
  gap: clamp(16px, 3vw, 20px);
  align-items: flex-start;
}

.faq-a {
  margin-top: clamp(12px, 2vw, 16px);
  padding-top: clamp(12px, 2vw, 16px);
  border-top: 2px solid color-mix(in oklab, var(--swx-c-border, #e5e7eb) 50%, transparent);
}

.faq-label {
  flex-shrink: 0;
  width: clamp(40px, 6vw, 48px);
  height: clamp(40px, 6vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    var(--swx-c-brand, #0c6ff9) 0%,
    color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 85%, white) 100%);
  color: var(--swx-c-ink-on-brand, #fff);
  font-weight: 900;
  font-size: clamp(16px, 2.2vw, 20px);
  border-radius: 50%;
  box-shadow:
    0 4px 6px rgba(12, 111, 249, 0.3),
    0 2px 4px rgba(12, 111, 249, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card:hover .faq-label {
  transform: scale(1.1) rotate(5deg);
  box-shadow:
    0 6px 10px rgba(12, 111, 249, 0.4),
    0 4px 6px rgba(12, 111, 249, 0.3);
}

/* Aラベルは緑系 */
.faq-a .faq-label {
  background: linear-gradient(135deg,
    var(--swx-c-success, #16a34a) 0%,
    color-mix(in oklab, var(--swx-c-success, #16a34a) 85%, white) 100%);
  box-shadow:
    0 4px 6px rgba(22, 163, 74, 0.3),
    0 2px 4px rgba(22, 163, 74, 0.2);
}

.faq-card:hover .faq-a .faq-label {
  box-shadow:
    0 6px 10px rgba(22, 163, 74, 0.4),
    0 4px 6px rgba(22, 163, 74, 0.3);
}

.faq-q strong {
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 700;
  color: var(--swx-c-text, #111827);
  line-height: 1.5;
  letter-spacing: 0.2px;
}

.faq-a p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--swx-c-muted, #6b7280);
  margin: 0;
  line-height: 1.8;
  font-weight: 500;
}

/* ===== アクセス：マテリアルデザイン（画像とテキスト並列） ===== */
#access {
  position: relative;
  overflow: visible; /* 背景を全幅にするため */
  padding: clamp(60px, 8vw, 100px) 0 !important;
  /* コンテンツを1200pxに制限 */
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto;
  padding-left: var(--swx-container-padding) !important;
  padding-right: var(--swx-container-padding) !important;
  min-height: clamp(400px, 50vh, 600px) !important;
}

/* 背景を全幅にする疑似要素 */
#access::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--swx-c-success, #16a34a) 5%, transparent) 0%,
    color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 4%, transparent) 50%,
    color-mix(in oklab, var(--swx-c-accent, #0c6ff9) 6%, transparent) 100%);
  z-index: 0;
  pointer-events: none;
}

/* グリッドアイテムをz-indexで前面に */
#access > * {
  position: relative;
  z-index: 1;
}

/* 既存の.sec-bodyスタイルを上書き（アクセスセクション専用） */
#access.swx-section:has(.sec-media) .sec-body,
#access .sec-body {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: clamp(32px, 5vw, 48px) var(--swx-container-padding) !important;
  position: relative !important;
  z-index: 1;
}

/* PC版：グリッドレイアウト（画像とテキストを並列に） */
@media (min-width: 768px) {
  #access.swx-section:has(.sec-media) .sec-body,
  #access .sec-body {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto 1fr auto !important;
    gap: 0 clamp(24px, 4vw, 48px) !important;
    align-items: start !important;
  }

  /* PC版：見出しを全幅に */
  #access .sec-body > .sec-head {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    padding: 0 !important;
    margin-bottom: clamp(32px, 5vw, 48px) !important;
  }

  /* PC版：画像を左側に */
  #access .sec-body > .sec-media {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    width: 100% !important;
    height: 100% !important;
    min-height: clamp(400px, 50vh, 600px) !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: stretch;
    position: relative;
  }

  #access .sec-body > .sec-media img {
    width: 100% !important;
    height: 100% !important;
    min-height: clamp(400px, 50vh, 600px) !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  /* PC版：画像のフェード効果（右側にフェード） */
  #access .sec-body > .sec-media::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 200px;
    background: linear-gradient(to right, transparent, var(--swx-c-bg, #ffffff));
    pointer-events: none;
    z-index: 1;
  }

  /* PC版：本文とボタンを右側に */
  #access .sec-body > .access-info {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    padding: 0;
    margin: 0;
    align-self: start;
  }

  #access .sec-body > .cta-line {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    padding: 0 !important;
    margin-top: clamp(24px, 4vw, 32px) !important;
  }
}

/* 画像メディア（PC版：.sec-body内の画像） */
/* スタイルは上記の#access .sec-body > .sec-mediaで定義済み */

/* アクセスセクションの見出しとCTA（PC版のデフォルト） */
/* スタイルは上記の#access .sec-body > .sec-head と #access .sec-body > .cta-line で定義済み */

/* アクセス情報コンテナ */
.access-info {
  display: grid;
  gap: clamp(20px, 4vw, 28px);
  margin: clamp(24px, 4vw, 32px) 0;
}

/* アクセスアイテム（マテリアルデザイン） */
.access-item {
  position: relative;
  display: flex;
  gap: clamp(20px, 4vw, 28px);
  align-items: center;
  padding: clamp(24px, 4vw, 32px);
  background: var(--swx-c-bg, #ffffff);
  border: none;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  cursor: pointer;
}

/* リップルエフェクト */
.access-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(12, 111, 249, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
  z-index: 0;
}

.access-item:hover::before {
  width: 400px;
  height: 400px;
}

.access-item:hover {
  transform: translateX(8px) translateY(-2px);
  box-shadow:
    0 8px 10px rgba(0, 0, 0, 0.14),
    0 3px 14px rgba(0, 0, 0, 0.12),
    0 5px 5px rgba(0, 0, 0, 0.2);
}

.access-item:active {
  transform: translateX(4px) translateY(-1px);
  box-shadow:
    0 4px 5px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.14),
    0 1px 10px rgba(0, 0, 0, 0.12);
}

.access-item > * {
  position: relative;
  z-index: 1;
}

/* アクセスアイコン（マテリアルデザイン風） */
.access-icon {
  flex-shrink: 0;
  width: clamp(64px, 10vw, 80px);
  height: clamp(64px, 10vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
  background: linear-gradient(135deg,
    var(--swx-c-brand, #0c6ff9) 0%,
    color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 85%, white) 100%);
  border-radius: 50%;
  box-shadow:
    0 4px 6px rgba(12, 111, 249, 0.3),
    0 2px 4px rgba(12, 111, 249, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.access-item:hover .access-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow:
    0 6px 10px rgba(12, 111, 249, 0.4),
    0 4px 6px rgba(12, 111, 249, 0.3);
}

/* 2番目のアイテムは緑系 */
.access-item:nth-child(2) .access-icon {
  background: linear-gradient(135deg,
    var(--swx-c-success, #16a34a) 0%,
    color-mix(in oklab, var(--swx-c-success, #16a34a) 85%, white) 100%);
  box-shadow:
    0 4px 6px rgba(22, 163, 74, 0.3),
    0 2px 4px rgba(22, 163, 74, 0.2);
}

.access-item:nth-child(2):hover .access-icon {
  box-shadow:
    0 6px 10px rgba(22, 163, 74, 0.4),
    0 4px 6px rgba(22, 163, 74, 0.3);
}

.access-text strong {
  display: block;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--swx-c-text, #111827);
  letter-spacing: 0.2px;
}

.access-text p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--swx-c-muted, #6b7280);
  margin: 0;
  line-height: 1.6;
  font-weight: 500;
}

/* ===== レスポンシブ調整 ===== */
@media (max-width: 960px) {
  .job-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .flow-step {
    grid-template-columns: 1fr;
    text-align: center;
    gap: clamp(16px, 3vw, 20px);
  }

  .step-number {
    margin: 0 auto;
  }

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

  /* スマホ：表示順を調整（見出し → 画像 → 本文） */
  #flow {
    display: flex;
    flex-direction: column;
  }

  /* コンテナをcontentsにして、子要素を#flowの直接の子として扱う */
  #flow .container.sec-body {
    display: contents;
  }

  /* 見出しを最初に表示 */
  #flow .sec-head {
    order: 1;
    margin-bottom: clamp(24px, 4vw, 32px);
    padding: 0 var(--swx-container-padding);
  }

  /* 画像を2番目に表示 */
  #flow .sec-media {
    order: 2;
    height: clamp(250px, 40vh, 350px) !important;
    width: 100% !important;
    margin: 0 auto clamp(24px, 5vw, 32px) !important;
    width: calc(100% - (var(--swx-container-padding) * 2)) !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  #flow .sec-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  /* 本文を3番目に表示 */
  #flow .flow-timeline {
    order: 3;
    padding: 0 var(--swx-container-padding);
  }

  /* ボタンを最後に表示 */
  #flow .cta-line {
    order: 4;
    padding: 0 var(--swx-container-padding);
    margin-top: clamp(24px, 4vw, 32px);
  }

  .flow-timeline::before {
    display: none; /* モバイルでは接続線を非表示 */
  }

  /* アクセスセクション：モバイルでは縦並び（見出し → 画像 → 本文 → ボタン） */
  #access {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    min-height: auto !important;
  }

  /* コンテナをflexにして、中身を縦並びに */
  #access .container.sec-body,
  #access.swx-section:has(.sec-media) .sec-body,
  #access .sec-body {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 var(--swx-container-padding) !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 0 !important;
  }

  /* 見出しを最初に表示 */
  #access .sec-head {
    order: 1;
    padding: 0 !important;
    margin-bottom: clamp(24px, 4vw, 32px) !important;
  }

  /* 画像を2番目に表示 */
  #access .sec-media {
    order: 2;
    height: clamp(250px, 40vh, 350px) !important;
    width: 100% !important;
    margin: 0 auto clamp(24px, 5vw, 32px) !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  #access .sec-media img {
    border-radius: 12px;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  #access .sec-media::after {
    display: none !important; /* スマホではフェード効果を非表示 */
  }

  /* 本文を3番目に表示 */
  #access .access-info {
    order: 3;
    padding: 0;
    margin: 0;
  }

  /* ボタンを最後に表示 */
  #access .cta-line {
    order: 4;
    padding: 0 !important;
    margin-top: clamp(24px, 4vw, 32px) !important;
  }

  /* voices スライダーのレスポンシブ */
  .voices-slide img {
    height: clamp(300px, 50vh, 500px);
  }

  .voices-nav {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .voices-nav-prev {
    left: 16px;
  }

  .voices-nav-next {
    right: 16px;
  }

  .voices-indicators {
    bottom: 20px;
    gap: 8px;
    padding: 8px 14px;
  }

  .voices-counter {
    top: 20px;
    right: 20px;
    font-size: 12px;
    padding: 8px 14px;
  }
}

/* ===== 見出しスタイル ===== */
/* おしゃれ見出し：背景なしバージョン（文字色で目立たせる） */
.sec-head.-fancy h2 {
  position: relative;
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-weight: 900;
  font-size: var(--swx-heading-h2-size);
  letter-spacing: .02em;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  line-height: 1.2;
  color: var(--swx-c-text, var(--ink, #111));
  text-shadow: none;
  transition: transform .3s ease, color .3s ease;
}

/* テキストにグラデーション効果 */
.sec-head.-fancy h2 {
  background: linear-gradient(135deg,
    var(--ink, #111) 0%,
    color-mix(in oklab, var(--ink, #111) 85%, var(--brand, #ffd400)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* アンダーラインで強調 */
.sec-head.-fancy h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: clamp(60px, 10vw, 120px);
  height: 6px;
  background: var(--brand, #ffd400);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(255, 212, 0, .4);
}

/* 見出しにホバーエフェクト */
.sec-head.-fancy:hover h2 {
  transform: translateX(4px);
}

.sec-head.-fancy:hover h2::after {
  width: clamp(80px, 12vw, 140px);
  transition: width .3s ease;
}

/* 中央寄せセクション（cta-final） */
.swx-section.-center .container,
.sec-head.-center {
  text-align: center;
  justify-content: center;
}

/* 中央寄せ見出しをさらに大きく */
.sec-head.-center h2 {
  font-size: var(--swx-heading-h2-size);
  display: inline-block;
}

/* 中央寄せのアンダーラインを中央に */
.sec-head.-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* スライドイン用ステート（front.js が付与） */
.sec-media.enter-right {
  opacity: 0;
  transform: translateX(40px) scale(1.04);
}

.sec-media.enter-left {
  opacity: 0;
  transform: translateX(-40px) scale(1.04);
}

.sec-media.is-in {
  opacity: 1;
  transform: none;
  transition: transform .85s cubic-bezier(.2,.9,.2,1), opacity .6s ease-out;
}

/* 動きを抑制したい人向け */
@media (prefers-reduced-motion: reduce) {
  .sec-media.enter-right,
  .sec-media.enter-left {
    opacity: 1;
    transform: none;
  }

  .sec-media.is-in {
    transition: none;
  }
}

/* ===== 最終CTA：マテリアルデザイン（中央寄せ） ===== */
#cta-final {
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 8%, transparent) 0%,
    color-mix(in oklab, var(--swx-c-success, #16a34a) 6%, transparent) 50%,
    color-mix(in oklab, var(--swx-c-accent, #0c6ff9) 7%, transparent) 100%);
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 120px) 0 !important;
  text-align: center;
}

/* セクション背景装飾 */
#cta-final::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 12%, transparent) 0%,
    transparent 70%);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* コンテンツを前面に */
#cta-final .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* 見出しスタイル */
#cta-final .sec-head {
  margin-bottom: clamp(24px, 4vw, 32px);
}

#cta-final .sec-head h2 {
  margin-bottom: clamp(16px, 2vw, 20px);
}

#cta-final .sec-subtitle {
  font-size: clamp(18px, 2.2vw, 22px);
  color: color-mix(in oklab, var(--swx-c-text, #111827) 75%, transparent);
  margin-top: clamp(8px, 1vw, 12px);
}

/* リードテキスト */
#cta-final .lead {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--swx-c-text, #111827);
  margin: 0 0 clamp(32px, 5vw, 48px);
  line-height: 1.7;
  font-weight: 500;
}

/* CTAボタンコンテナ */
#cta-final .hero-ctas {
  display: flex;
  gap: clamp(16px, 3vw, 24px);
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* プライマリボタン（マテリアルデザイン） */
#cta-final .btn-primary {
  position: relative;
  background: var(--swx-c-brand, #0c6ff9);
  color: var(--swx-c-ink-on-brand, #fff);
  border: none;
  border-radius: 28px;
  padding: clamp(16px, 2.5vw, 20px) clamp(32px, 4vw, 48px);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 18px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 6px rgba(12, 111, 249, 0.3),
    0 2px 4px rgba(12, 111, 249, 0.2),
    0 1px 10px rgba(12, 111, 249, 0.15);
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* リップルエフェクト */
#cta-final .btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
  z-index: 0;
}

#cta-final .btn-primary:hover::before {
  width: 400px;
  height: 400px;
}

#cta-final .btn-primary:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 12px rgba(12, 111, 249, 0.4),
    0 4px 8px rgba(12, 111, 249, 0.3),
    0 2px 14px rgba(12, 111, 249, 0.2);
  background: color-mix(in oklab, var(--swx-c-brand, #0c6ff9) 90%, white);
}

#cta-final .btn-primary:active {
  transform: translateY(-2px);
  box-shadow:
    0 4px 6px rgba(12, 111, 249, 0.3),
    0 2px 4px rgba(12, 111, 249, 0.2);
}

#cta-final .btn-primary > * {
  position: relative;
  z-index: 1;
}

/* セカンダリボタン（マテリアルデザイン） */
#cta-final .btn-secondary {
  position: relative;
  background: var(--swx-c-text, #111827);
  color: var(--swx-c-bg, #ffffff);
  border: none;
  border-radius: 28px;
  padding: clamp(16px, 2.5vw, 20px) clamp(32px, 4vw, 48px);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 18px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 6px rgba(17, 24, 39, 0.3),
    0 2px 4px rgba(17, 24, 39, 0.2),
    0 1px 10px rgba(17, 24, 39, 0.15);
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* リップルエフェクト */
#cta-final .btn-secondary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
  z-index: 0;
}

#cta-final .btn-secondary:hover::before {
  width: 400px;
  height: 400px;
}

#cta-final .btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 12px rgba(17, 24, 39, 0.4),
    0 4px 8px rgba(17, 24, 39, 0.3),
    0 2px 14px rgba(17, 24, 39, 0.2);
  background: color-mix(in oklab, var(--swx-c-text, #111827) 90%, white);
}

#cta-final .btn-secondary:active {
  transform: translateY(-2px);
  box-shadow:
    0 4px 6px rgba(17, 24, 39, 0.3),
    0 2px 4px rgba(17, 24, 39, 0.2);
}

#cta-final .btn-secondary > * {
  position: relative;
  z-index: 1;
}

/* ボタンアイコン */
#cta-final .btn-icon {
  font-size: 1.2em;
  line-height: 1;
}

/* レスポンシブ対応 */
@media (max-width: 960px) {
  #cta-final {
    padding: clamp(60px, 8vw, 80px) 0 !important;
  }

  #cta-final .hero-ctas {
    flex-direction: column;
    gap: 16px;
  }

  #cta-final .btn-primary,
  #cta-final .btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* ===== News band ===== */
.swx-news-band { margin: clamp(12px,3vw,20px) auto; }

/* ==== Latest News: heading with twinkling stars ==== */
.news-heading{
  margin: 6px auto 10px;
  text-align: center;
}
.news-heading span{
  position: relative;
  display: inline-block;
  padding: 6px 14px;
  font-weight: 900;
  font-size: clamp(14px,1.7vw,18px);
  color: var(--swx-c-text, var(--ink, #111));
  background: linear-gradient(180deg,
              color-mix(in oklab, var(--brand,#ffd400) 26%, #fff) 0%,
              #fff 100%);
  border: 1px solid color-mix(in oklab, var(--ink,#111) 12%, transparent);
  border-radius: 999px;
}
/* ☆ を両サイドに。キラッとフェード＆スケール */
.news-heading span::before,
.news-heading span::after{
  content: "★";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25em;
  color: var(--brand, #ffd400);
  filter: drop-shadow(0 0 6px color-mix(in oklab, var(--brand,#ffd400) 60%, #0000));
  animation: swxTwinkle 1.8s ease-in-out infinite;
  opacity: .9;
}
.news-heading span::before{ left: -1.7em; animation-delay: 0s; }
.news-heading span::after { right: -1.7em; animation-delay: .9s; }

@keyframes swxTwinkle{
  0%   { transform: translateY(-50%) scale(.85); opacity:.35 }
  50%  { transform: translateY(-50%) scale(1.15) rotate(8deg); opacity:1 }
  100% { transform: translateY(-50%) scale(.85); opacity:.35 }
}

/* ==== Latest News: banner style（画像の高さを絞る） ==== */
/* ショートコードの中の <img> をそのままコントロール */
.swx-news-band img{
  width: 100%;
  height: clamp(140px, 26vw, 260px);  /* ← 高さをここで調整 */
  object-fit: cover;                  /* トリミングして見栄え良く */
  border-radius: 12px;
  display: block;
  border: 1px solid color-mix(in oklab, var(--ink,#111) 10%, transparent);
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}
/* 画像の外枠（ショートコード側が <figure> 等の場合の余白も整える） */
.swx-news-band :is(figure, .swx-news, .news-card){
  background: color-mix(in oklab, var(--brand,#ffd400) 10%, #fff);
  border-radius: 14px;
  padding: clamp(10px,1.8vw,14px);
  border: 1px solid color-mix(in oklab, var(--ink,#111) 10%, transparent);
}

/* キャプションなどがあっても圧が強くならないように */
.swx-news-band figcaption{
  margin-top: 8px;
  color: color-mix(in oklab, var(--ink,#111) 70%, transparent);
  font-weight: 700;
}
