/* ==========================================================================
   Our Work Page Styles (/work/)
   ========================================================================== */

/* ---------- Hero ---------- */
.work-hero {
  position: relative;
  overflow: hidden;
  background-image: var(--g-hero-band);
  padding: 92px 20px 40px; /* 72pxだとロゴに近すぎるため、適度な余白(20px分)を確保 */
  text-align: center;
}

/* Adjust blob positions for the shorter work-hero section */
.work-hero .decor__blob {
  opacity: 0.9; /* 色をもっと濃くして視認性を高める */
}
.work-hero .decor__blob--1 {
  width: 400px;
  height: 400px;
  inset-block-start: -150px;
  inset-inline-start: -150px;
}
.work-hero .decor__blob--2 {
  width: 400px;
  height: 400px;
  inset-block-start: auto;
  inset-block-end: -50px;
  inset-inline-end: -50px;
}
.work-hero__inner {
  max-width: 1000px; /* Expand slightly to fit title */
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.work-hero__label {
  font-family: var(--f-gothic);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background-image: var(--g-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.work-hero__title {
  font-family: var(--f-mincho);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  color: var(--c-text); /* トップページのヒーローと同じ色 */
  line-height: 1.7;
  margin-bottom: 24px;
}
.work-hero__title-em {
  font-style: normal;
  border-bottom: 2px solid var(--c-accent-1);
  padding-bottom: 2px;
}

.work-section-head__title em {
  font-style: normal;
  color: var(--c-text); /* アクセントカラー（緑） */
}
.work-hero__lead {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.8;
}

/* Override fade-up for work-hero container to avoid double fading */
.work-hero.fade-up {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Staggered animation for hero elements */
.work-hero__label,
.work-hero__title,
.work-hero__lead {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-hero.is-visible .work-hero__label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.work-hero.is-visible .work-hero__title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.work-hero.is-visible .work-hero__lead {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* Hero Line Break Utilities */
.work-br-sp-tab,
.work-br-tab,
.work-br-pc {
  display: none;
}
@media (max-width: 1024px) {
  .work-br-sp-tab { display: block; }
  .work-br-tab { display: block; }
}
@media (min-width: 1025px) {
  .work-br-pc { display: block; }
}

@media (min-width: 721px) {
  .work-hero {
    padding: 145px 40px 60px; /* 固定ヘッダー（96px）分を考慮 */
  }
  .work-hero__title {
    font-size: 32px; /* 1行に収まるサイズ */
  }
  .work-hero__lead {
    font-size: 16px;
  }
}

/* ---------- Work Container (Wrapper) ---------- */
.work-container {
  padding-top: 40px;
  padding-bottom: clamp(60px, 8vw, 120px);
  position: relative;
}

/* ページ全体の背景に浮かぶ巨大なモヤモヤ（ブロブ） */
.work-container::before,
.work-container::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px); /* 大きくぼかす */
  z-index: -1; /* パネルの後ろへ */
  opacity: 0.5;
  pointer-events: none;
}
.work-container::before {
  width: 600px;
  height: 600px;
  background: var(--c-blob-purple); /* トップページのような紫やピンク */
  top: 10%;
  left: -200px;
}
.work-container::after {
  width: 500px;
  height: 500px;
  background: var(--c-blob-yellow);
  bottom: 20%;
  right: -150px;
}

/* ---------- Job Nav ---------- */
.work-nav-wrapper {
  max-width: var(--container);
  width: calc(100% - var(--gutter) * 2);
  margin: 0 auto 32px;
  position: sticky;
  top: 73px; 
  scroll-margin-top: 73px; /* scrollIntoView時のオフセット */
  z-index: 10;
}
.work-nav-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 100%);
  pointer-events: none;
  z-index: 2;
  border-radius: 0 9999px 9999px 0; 
  transition: opacity 0.3s ease;
}
.work-nav-scroll-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  color: var(--c-accent-1);
  font-size: 40px; 
  cursor: pointer; 
  padding: 8px; /* 見えないタップ領域を確保 */
  transition: opacity 0.3s ease;
}
.work-nav-scroll-hint--left {
  left: -8px;
}
.work-nav-scroll-hint--right {
  right: -8px;
}

/* 一番右までスクロールした時は右のグラデーションを消す */
.work-nav-wrapper.is-scrolled-end::after {
  opacity: 0;
}

@media (min-width: 721px) {
  .work-nav-wrapper::after,
  .work-nav-scroll-hint {
    display: none !important; 
  }
}
.work-nav {
  display: flex;
  gap: 8px;
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #b86b6a; 
  border-bottom: 1px solid #b86b6a; 
  padding: 24px 8px; 
  box-shadow: 0 4px 24px rgba(0,0,0,0.03), inset 0 2px 8px rgba(0,0,0,0.02);
  align-items: center;
  transition: padding 0.3s ease, background 0.3s ease;
  
  /* スマホ対応：無理に縮小して改行されないよう横スクロールを許可 */
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.work-nav::-webkit-scrollbar {
  display: none;
}

/* スクロールして固定された時はコンパクトにしてメインエリアの視認性を確保 */
.work-nav.is-stuck {
  padding: 8px 8px;
  background: rgba(255, 255, 255, 0.85);
}
.work-nav__item {
  flex: 0 0 auto; /* 縮むのを防ぐ */
  min-width: 25%; /* PC時は4等分、スマホ時は文字幅に合わせて拡張 */
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 8px 16px; /* 横幅に少しゆとりを持たせる */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  white-space: nowrap; /* 絶対に改行させない */
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.3s ease;
}

/* スクロール固定時は全体を約90%に縮小してさらに高さを抑える */
.work-nav.is-stuck .work-nav__item {
  height: 48px; /* 高さを縮める */
}
.work-nav.is-stuck .work-nav__text {
  transform: scale(0.9); /* テキストも90%に */
}
/* 固定時のアクティブ/ホバーは100%（元の等倍）にする */
.work-nav.is-stuck .work-nav__item:hover .work-nav__text,
.work-nav.is-stuck .work-nav__item.is-active .work-nav__text {
  transform: scale(1.0);
}
.work-nav__item:hover,
.work-nav__item.is-active {
  z-index: 2;
}

/* うるっとしたアクティブ状態（Glossy White Effect + Background Blur） */
.work-nav__item.is-active {
  background: linear-gradient(145deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.6) 100%);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.03), /* やわらかい基本の影 */
    inset 0 2px 4px rgba(255, 255, 255, 0.9); /* 内側の白いハイライト（うるっと感） */
}

/* ヘッダーのようなぼかしを背後に透かす */
.work-nav__item.is-active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%; /* より大きく */
  height: 180%; /* より大きく */
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, var(--c-blob-pink) 0%, transparent 60%);
  filter: blur(16px); /* ぼかしを少し弱めて輪郭を濃く */
  z-index: -1;
  pointer-events: none;
  opacity: 1; /* 100%の濃さでしっかり発色させる */
}

.work-nav__text {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  transition: transform 0.6s var(--ease-elegant, cubic-bezier(0.2, 0.8, 0.2, 1)); /* ゆっくりと上品に */
}
.work-nav__item:hover .work-nav__text,
.work-nav__item.is-active .work-nav__text {
  transform: scale(1.1); /* もう少し大きく */
}
.work-nav__num {
  font-family: "Google Sans", sans-serif; /* 元の綺麗なフォントに戻す */
  font-weight: 500; /* 太字すぎないように調整 */
  font-size: 15px;
  color: var(--c-text);
  opacity: 0.8; /* 太さを変えずに色をやや薄く */
  letter-spacing: 0.08em; /* 文字間を少し開けて余裕を持たせる */
  line-height: 1;
}
.work-nav__label {
  font-family: var(--f-gothic);
  font-size: 15px;
  font-weight: 500; /* 太字すぎないように調整 */
  color: var(--c-text);
  opacity: 0.8; /* 太さを変えずに色をやや薄く */
  letter-spacing: 0.1em; /* 文字間を少し開けて余裕を持たせる */
  line-height: 1.2;
}
/* アクティブ時も色は変えない（光で識別するため） */
.work-nav__item.is-active .work-nav__num,
.work-nav__item.is-active .work-nav__label {
  color: var(--c-text);
  opacity: 0.8;
}
/* アイコン関連のCSSは削除しました */

@media (min-width: 721px) {
  .work-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .work-nav__item:hover,
  .work-nav__item.is-active {
    flex: auto; /* グリッドなので無効化されるが念のため */
  }
  .work-nav__item {
    gap: 12px;
    height: 64px; /* PCでは少し大きく */
  }
  .work-nav__item:hover,
  .work-nav__item.is-active {
    z-index: 2;
  }
  /* PCでのスクロール固定時の縮小サイズ */
  .work-nav.is-stuck .work-nav__item {
    height: 52px;
  }
  .work-nav__num {
    font-size: 13px;
  }
  .work-nav__label {
    font-size: 14px;
    br { display: none; } /* PCでは改行しない */
  }
}

@media (min-width: 1025px) {
  .work-nav-wrapper {
    top: 97px; /* PCのヘッダー96px + 1px（上の線が隠れないように） */
    scroll-margin-top: 97px;
  }
}

/* ---------- Panels ---------- */
.work-panels {
  max-width: var(--container);
  width: calc(100% - var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 64px); /* トップページ同等のリッチで広々とした余白！ */
  background: var(--c-surface); /* パネルは真っ白 */
  border: none; /* 細い線を削除！枠なしで背景に馴染ませる */
  border-radius: 32px; /* 上下左右すべて角丸に */
  box-shadow: 0 12px 48px rgba(0,0,0,0.03); /* 全体を浮かせるリッチな影 */
  position: relative;
  overflow: hidden; /* 透かし文字が角丸をはみ出さないように */
  min-height: 100vh;

  z-index: 1;
}
.work-panel {
  display: none;
}
.work-panel.is-active {
  display: block;
  animation: tabFadeIn 0.8s var(--ease-elegant, cubic-bezier(0.2, 0.8, 0.2, 1)) both; /* 上品なアニメーションを適用 */
}

/* タブ切り替え時の上品なフェードインアニメーション */
@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Panel Hero ---------- */
.panel-hero {
  margin-bottom:  40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.panel-hero.is-visible {
  transition-delay: 0.7s;
}
.panel-hero__illust {
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-hero__illust-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.panel-hero__body {
}
.panel-hero__badge {
  display: inline-flex;
  align-items: center;
  font-size: 18px; /* さらに大きく18pxにして視認性を向上 */
  font-weight: 700;
  font-family: var(--f-gothic);
  letter-spacing: 0.1em; /* 文字間を広げて高級感を出す */
  padding: 6px 18px; /* 文字を大きくした分、上下のパディングを抑えてスタイリッシュに */
  margin-bottom: 24px; /* 要素の隙間を広げる (16px -> 24px) */
  background-image: var(--g-accent); /* ボタンと同じグラデーション背景 */
  color: #ffffff; /* 背景に対して読みやすい白抜き文字 */
  border-radius: 0; /* 角丸を完全に廃止し、シャープな四角に */
  position: relative;
  z-index: 1;
}

/* 個別のカラーバリエーションは不要になったため統一 */
.panel-hero__badge--teal,
.panel-hero__badge--pink,
.panel-hero__badge--amber,
.panel-hero__badge--blue {
  /* ベースを引き継ぐので特別指定なし */
}

.panel-hero__title {
  font-size: clamp(20px, 6vw, 24px); /* スマホサイズでも見やすい大きさに変更 (最低20px確保) */
  font-weight: 700;
  color: var(--c-text); /* トップページの基本文字色（チャコール）に合わせる */
  line-height: 1.4;
  margin-bottom: 20px; /* 要素の隙間を広げる (12px -> 20px) */
}
.panel-hero__desc {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: 32px; /* 要素の隙間を広げる (24px -> 32px) */
}

@media (min-width: 721px) {
  .panel-hero {
    flex-direction: row-reverse; /* イラスト右、テキスト左 */
    align-items: center;
    gap: 40px;
  }
  .panel-hero__illust {
    flex: 0 0 250px;
    align-self: center;
  }
  .panel-hero__illust-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: 50% 15%;
  }
  .panel-hero__body {
    flex: 1;
  }
  .work-info {
    margin-left: 0; /* テキスト左揃えに合わせる */
  }
  .panel-hero__title {
    font-size: clamp(24px, 3.5vw, 32px);
  }
  .panel-hero__desc {
    font-size: 15px;
  }
}

@media (min-width: 901px) {
  .panel-hero__illust {
    flex: 0 0 340px;
  }
  .panel-hero__illust-img {
    width: 340px;
    height: 340px;
    object-fit: cover;
    object-position: 50% 15%;
  }
}

/* ---------- Info Row ---------- */
.work-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0; /* 線との余白を調整 */
}
.work-info__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 10px; /* 視覚的な中央揃え（下を2px厚く）を保ちつつ、ぷくっとした高さを復元 */
  background-color: #fdeee6; /* 指定色 */
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1; /* 行高をなくしてフォント自体の余白の偏りを軽減 */
  color: var(--c-text); /* トップページの基本文字色（チャコール）に合わせる */
  /* トップページのペルソナカードのような立体的な影 */
  box-shadow: 
    inset 0 4px 12px rgba(170, 130, 110, 0.12),
    inset 0 1px 4px rgba(170, 130, 110, 0.08),
    inset 0 -2px 4px rgba(255, 255, 255, 0.6); /* うるっとしたハイライト */
}

/* トップページのような1色のチェックマークアイコン */
.work-info__chip::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b86b6a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

/* ---------- Section Header (persona__head style) ---------- */
.work-section-head {
  text-align: center;
  margin-bottom: 32px;
  border-top: 1px solid var(--c-hairline); /* 横に分断する線を追加 */
  padding-top: 40px; /* 線からの余白 */
}
.work-section-head__label {
  font-family: var(--f-gothic);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background-image: var(--g-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.work-section-head__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.35;
}

@media (min-width: 721px) {
  .work-section-head {
    margin-bottom: 40px;
  }
  .work-section-head__title {
    font-size: 28px;
  }
}

/* ---------- Work Steps ---------- */
.work-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 64px;
  position: relative;
}
.work-steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  border-left: 2px solid var(--c-accent-1); /* 濃すぎたため、サイト全体で使われている薄い上品なピンク色に変更 */
  z-index: 0;
}
.work-step {
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03), inset 0 8px 24px rgba(170, 130, 110, 0.12), inset 0 2px 8px rgba(170, 130, 110, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 1;
  container-type: inline-size; /* コンテナクエリを有効化し、幅に応じた可変フォントサイズを使用可能に */
}
.work-step__num-box {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 20px; /* 上下左右のベース余白 */
  position: relative;
  z-index: 1;
}
.work-step__step-label {
  font-family: var(--f-mincho);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
  letter-spacing: 0.2em;
  /* "step"の文字色もトップに合わせてグラデーションに */
  background-image: var(--g-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.work-step__num-value {
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  display: inline-block; /* 幅を文字ぴったりにしてグラデーションを凝縮させる */
  background-image: linear-gradient(120deg, #eac5c4 0%, #f9ccbd 50%, #f2c094 100%); /* 狭い幅でも色がわかるように少し角度をつける */
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.work-step__content {
  flex: 1;
  padding: 34px 32px 24px 0; /* 人間の目から見て、タイトルの位置が「01」の数字の高さとピタッと揃うように上部余白を多く取る */
  position: relative;
  z-index: 1; 
}
.work-step__icon {
  position: absolute;
  bottom: 8px; /* 16pxから8pxへ調整 */
  right: 24px;
  z-index: 0;
  pointer-events: none;
}
.work-step__material-icon {
  font-family: var(--f-gothic) !important;
  font-size: 60px; /* 若干大きく */
  font-weight: 400; /* やや太字に（300 -> 400） */
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap; 
  display: block;
  text-align: right;
  
  /* ピンク色をベースにしたグラデーション塗りのアニメーションへ変更 */
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0 !important; 
  background: linear-gradient(90deg, var(--c-accent-1) 0%, #ffffff 50%, var(--c-accent-1) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: bg-text-shimmer 8s linear infinite;
  opacity: 0.15; /* ピンク色が薄いため少し数値を上げて視認性をキープ */
  
  text-transform: uppercase !important; 
}
.work-step__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
}
.work-step__desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.7;
}
@media (max-width: 720px) {
  .work-step__icon {
    position: absolute;
    bottom: 4px;
    right: 16px;
    z-index: 0;
    pointer-events: none;
    width: auto;
    height: auto;
    padding: 0;
  }
  .work-step__material-icon {
    font-size: 32px; /* スマホでも若干大きく */
  }
  .work-step__content {
    padding: 16px 16px 24px 0;
    position: relative;
    z-index: 1;
  }
  .work-step__num-box {
    width: 64px;
    padding: 16px 12px;
  }
}

@media (min-width: 721px) {
  .work-step__num-box {
    width: 100px;
  }
  .work-step__step-label {
    font-size: 13px;
  }
  .work-step__num-value {
    font-size: 36px;
  }
  .work-steps::before {
    left: 50px;
  }
  .work-step__content {
    padding: 21px 32px; /* PCも統一 */
  }

  .work-step__title {
    font-size: 18px;
  }
  .work-step__desc {
    font-size: 14px;
  }
}

/* ---------- Scene Grid ---------- */
.work-scene {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 64px;
}
@media (min-width: 500px) {
  .work-scene {
    grid-template-columns: repeat(2, 1fr);
  }
}
.scene-card {
  background: #fffdfd; /* ごく薄いピンク（温かみのある白） */
  border: none; /* トップページと体裁を合わせるため枠線を削除 */
  border-radius: 12px;
  /* 直前のセクション（work-step）と同じ、柔らかい立体感を持たせる内側シャドウ */
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03), inset 0 8px 24px rgba(170, 130, 110, 0.12), inset 0 2px 8px rgba(170, 130, 110, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.scene-card__illust {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.15; /* ピンク色に合わせて透明度を少し上げ、視認性をキープ */
  pointer-events: none;
  z-index: 0;
}
.scene-card__material-icon {
  font-family: 'Material Symbols Outlined' !important; 
  font-size: 100px; /* ピンクで見えづらくなったため、大味にならない範囲で少しだけ拡大（80px -> 100px） */
  color: var(--c-accent-1); 
  font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 48; 
}
.scene-card__body {
  padding: 24px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.scene-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
}
.scene-card__desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ---------- Highlight Box ---------- */
.work-highlight {
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(234, 197, 196, 0.2) 0%, rgba(255, 234, 167, 0.15) 100%); /* 薄いピンクと黄色のグラデーション */
  border: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.work-highlight__illust {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.work-highlight__illust img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
}
.work-highlight__content {
  flex: 1;
}
.work-highlight__title-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}
.work-highlight__title {
  position: relative;
  z-index: 1;
  font-family: var(--f-mincho);
  font-size: 24px;
  font-weight: 600;
  margin-top: 0; /* ラッパーの基準位置がズレないよう明示的に0にする */
  background-image: var(--g-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.05em;
}
.work-highlight__en {
  position: absolute;
  top: -30px;
  left: -16px;
  font-family: 'League Script', cursive; 
  font-size: 32px;
  color: var(--c-muted); 
  transform: rotate(-10deg);
  opacity: 0.85; /* 極細フォントのため、透明度を減らしてグレーを濃く（はっきりと）表示 */
  letter-spacing: 0;
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.u-br-sp {
  display: inline;
}
.u-br-pc {
  display: none;
}
.work-highlight__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-muted);
}
@media (min-width: 721px) {
  .work-highlight {
    padding: 45px 40px;
    flex-direction: row;
    gap: 40px;
  }
  .work-highlight__illust {
    width: 200px;
    height: 200px;
  }
}

@media (min-width: 769px) {
  .u-br-sp {
    display: none;
  }
  .u-br-pc {
    display: inline;
  }
}
@media (min-width: 721px) {
  .work-highlight__title {
    font-size: 34px;
    letter-spacing: 0.35rem;
  }
  .work-highlight__desc {
    font-size: 15px;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .work-highlight {
    padding: 32px 24px;
    gap: 20px;
  }
  .work-highlight__illust {
    width: 150px;
    height: 150px;
  }
  .work-highlight__title {
    font-size: 30px;
    letter-spacing: 0.1em;
  }
}

/* ---------- Future Box ---------- */
.work-future {
  margin-top: 40px;
  margin-bottom: 0; /* パネル末尾のため不要なマージンを削除 */
  /* position: relative を削除。これにより ::before が .work-panels を基準に配置される */
}
.work-future::before {
  content: "FUTURE";
  position: absolute;
  bottom: -5vw;
  left: -5vw;
  font-family: var(--f-gothic);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;

  /* トップページの decor__bg-text と完全に同じシマーアニメーション */
  background: linear-gradient(90deg, var(--c-text) 0%, #ffffff 50%, var(--c-text) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bg-text-shimmer 8s linear infinite;
  opacity: 0.06;

  pointer-events: none;
  z-index: 0;
}
.work-future__label {
  border-top: 1px solid var(--c-hairline);
  padding-top: 40px;
  font-family: var(--f-gothic);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background-image: var(--g-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.work-future__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.35;
  margin-bottom: 14px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.work-future__desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.work-future__flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.work-future__step {
  flex: 1;
  background: var(--c-surface-warm);
  border-radius: 12px;
  padding: 30px 20px; /* ご指定のパディングに変更 */
  text-align: center;
  box-shadow: inset 0 2px 12px rgba(170, 130, 110, 0.15);
  position: relative;
  z-index: 1;
}
.work-future__icon {
  width: 100%;
  max-width: 200px;
  height: 135px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.work-future__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 12px;
  display: block;
}
.work-future__step-title {
  font-family: var(--f-mincho);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 4px; /* タイトルとPを密着させる */
}
.work-future__step-desc {
  font-family: var(--f-gothic);
  font-size: 13px;
  font-weight: 400;
  color: var(--c-muted);
  line-height: 1.6;
}
.work-future__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-hairline);
  font-size: 24px;
  padding: 0;
}

@media (min-width: 600px) and (max-width: 900px) {
  .work-future__step {
    padding: 24px 32px; /* スマホよりゆったりとる */
    display: grid;
    grid-template-columns: 1fr 160px 240px 1fr;
    column-gap: 24px;
    align-items: center;
    text-align: left;
  }
  .work-future__icon {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    margin: 0;
    max-width: none;
  }
  .work-future__step-title {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    align-self: flex-end;
    margin-bottom: 4px;
  }
  .work-future__step-desc {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    align-self: flex-start;
  }
}

@media (min-width: 901px) {
  .work-future {
    margin-top: 48px;
    margin-bottom: 0; /* 余計なマージンを削除 */
  }
  .work-future__title {
    font-size: 28px;
  }
  .work-future__desc {
    font-size: 14px;
  }
  .work-future__flow {
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
  }
  .work-future__step {
    padding: 30px 20px; /* ご指定のパディングに変更 */
  }
  .work-future__arrow {
    transform: rotate(-90deg); /* PCでは横向きなので矢印の向きに注意 */
    padding: 0 16px;
  }
}

/* ---------- Bottom CTA ---------- */
.bottom-cta.next-step {
  margin-block-start: clamp(40px, 6vw, 80px); /* トップページ側の巨大な上余白を適正値に上書き */
}

/* 吹き出しデザインはそのまま維持 */
.bottom-cta .decor {
  z-index: 0;
}
.bottom-cta .decor__blob {
  opacity: 0.9;
}
.bottom-cta .decor__blob--cta-1 {
  width: 500px;
  height: 500px;
  inset-block-start: -200px;
  inset-inline-start: -200px;
  background-image: radial-gradient(circle, var(--c-blob-yellow), transparent 70%);
}
.bottom-cta .decor__blob--cta-2 {
  width: 600px;
  height: 600px;
  inset-block-start: auto;
  inset-block-end: -150px;
  inset-inline-end: -150px;
  background-image: radial-gradient(circle, var(--c-blob-pink), transparent 70%);
}

.bottom-cta__bubble-wrapper {
  display: flex;
  justify-content: flex-start; /* 左寄せに変更 */
  margin-bottom: 24px;
}
.bottom-cta__bubble {
  background-color: #ffffff;
  color: var(--c-text);
  padding: 12px 32px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  display: inline-block;
}
.bottom-cta__bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 20%; /* 吹き出しの尻尾を少し左に寄せる */
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

/* トップページと同じタイポグラフィとイラスト配置 */
.bottom-cta__title-wrapper {
  position: relative;
  display: inline-block;
}
@keyframes floatBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.bottom-cta__illust-bubble {
  position: absolute;
  right: 100%;
  top: -16px;
  margin-right: 12px;
  width: 60px;
  animation: floatBubble 3s ease-in-out infinite;
}
.bottom-cta__illust-bubble img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 900px) {
  .bottom-cta__illust-bubble {
    right: auto;
    left: 0;
    top: -35px;
  }
}
