.case-page {
  --case-accent: #596adf;
  --case-accent-dark: #202c78;
  --case-warm: #ee7d1a;
  background: #f7f6f2;
}

.reading-progress {
  position: fixed;
  z-index: 210;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: transparent;
}

.reading-progress span {
  width: 0;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--case-accent), var(--case-warm));
}

.case-header {
  position: relative;
  z-index: 100;
  height: 86px;
  border-bottom: 1px solid rgba(17, 19, 26, .1);
  background: rgba(247, 246, 242, .96);
  backdrop-filter: blur(14px);
}

.case-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.case-header__actions,
.case-header__back {
  display: flex;
  align-items: center;
}

.case-header__actions { gap: 34px; }
.case-header__back { gap: 10px; font-size: 13px; font-weight: 900; }
.case-header__back-icon { color: var(--case-accent); font-size: 18px; transition: transform .2s ease; }
.case-header__back:hover .case-header__back-icon { transform: translateX(-3px); }
.case-header__back-label--mobile { display: none; }

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 30px 0 0;
  color: #7d7f87;
  font-size: 11px;
}

.breadcrumb a:hover { color: var(--case-accent-dark); }

.case-hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 8%, rgba(89, 106, 223, .11), transparent 28%),
    linear-gradient(180deg, #f7f6f2 0%, #f0efe9 100%);
}

.case-hero__copy {
  max-width: 1080px;
  padding: clamp(74px, 9vw, 136px) 0 clamp(56px, 7vw, 96px);
}

.case-kicker {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 28px;
  color: var(--case-accent-dark);
  font-size: 10px;
  font-weight: 900;

}

.case-kicker::before { content: ""; width: 42px; height: 1px; background: currentColor; }
.case-kicker b { font-size: 10px; font-weight: 900; opacity: .52; }

.case-hero h1 {
  margin: 0;
  font-size: clamp(48px, 6.4vw, 92px);
  font-weight: 900;
  line-height: 1.18;

}

.case-hero h1 small {
  max-width: 720px;
  display: block;
  margin-top: 34px;
  color: #3d4049;
  font-size: clamp(19px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.7;

}

.case-hero__identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 48px;
}

.case-hero__identity p { margin: 0; display: grid; gap: 2px; }
.case-hero__identity strong { font-size: 14px; }
.case-hero__identity span { color: #696b73; font-size: 12px; }

.case-hero__media {
  position: relative;
  width: min(1480px, calc(100% - 48px));
  max-height: 820px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 0 auto;
  background: #dedbd2;
}

.case-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  pointer-events: none;
}

.case-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.case-hero__media figcaption {
  position: absolute;
  right: 22px;
  bottom: 18px;
  padding: 7px 11px;
  color: #fff;
  background: rgba(17, 19, 26, .7);
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.section-label {
  margin: 0 0 18px;
  color: var(--case-accent-dark);
  font-size: 9px;
  font-weight: 900;

}

.case-summary { padding: clamp(86px, 10vw, 150px) 0; background: #fff; }
.case-summary__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); align-items: start; gap: clamp(64px, 9vw, 130px); }
.case-summary__lead h2 { margin: 0 0 34px; font-size: clamp(34px, 4vw, 56px); line-height: 1.45; }
.case-summary__lead > p:not(.section-label) { max-width: 680px; margin: 0 0 20px; color: #4f525b; font-size: 16px; line-height: 2.2; }

.impact-panel { position: relative; overflow: hidden; padding: 36px 38px; color: #fff; background: #171a24; }
.impact-panel::before { content: ""; position: absolute; top: -90px; right: -75px; width: 230px; height: 230px; border: 50px solid rgba(89,106,223,.22); border-radius: 50%; }
.impact-panel > p { position: relative; margin: 0 0 28px; color: #b7bff9; font-size: 10px; font-weight: 900; }
.impact-panel dl { position: relative; margin: 0; }
.impact-panel dl > div { padding: 23px 0; border-top: 1px solid rgba(255,255,255,.14); }
.impact-panel dt { color: #b9bbc2; font-size: 11px; }
.impact-panel dd { min-height: 50px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.impact-panel dd > small { color: #fff; font-size: 11px; }
.impact-panel dd > strong { color: #fff; font-size: 42px; line-height: 1; }
.impact-panel dd > span { color: #fff; font-size: 16px; font-weight: 900; }
.impact-panel dd > b { color: #7786e8; }
.impact-panel > small { position: relative; display: block; margin-top: 18px; color: #888b95; font-size: 9px; }

.case-layout { display: grid; grid-template-columns: 190px minmax(0, 820px); justify-content: space-between; gap: 72px; padding-top: clamp(92px, 11vw, 170px); padding-bottom: clamp(100px, 12vw, 180px); }
.case-toc { position: sticky; top: 36px; align-self: start; }
.case-toc > p { margin: 0 0 19px; color: #999a9e; font-size: 9px; font-weight: 900; }
.case-toc ol { margin: 0; padding: 0; border-top: 1px solid #d2d1cc; list-style: none; counter-reset: toc; }
.case-toc li { border-bottom: 1px solid #d2d1cc; counter-increment: toc; }
.case-toc a { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 14px 0; color: #5d6068; font-size: 11px; line-height: 1.6; }
.case-toc a::before { content: "0" counter(toc); color: var(--case-accent); font-size: 9px; font-weight: 900; }
.case-toc a:hover { color: var(--ink); }

.story-body { min-width: 0; }
.story-section { scroll-margin-top: 28px; margin-bottom: clamp(100px, 11vw, 160px); }
.story-section:last-child { margin-bottom: 0; }
.story-section__number { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 0 22px; border: 1px solid #b7bdea; border-radius: 50%; color: var(--case-accent-dark); font-size: 10px; font-weight: 900; }
.story-section h2 { margin: 0 0 54px; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.55; }
.story-section > p:not(.story-section__number):not(.interview-question):not(.article-note) { margin: 0 0 28px; color: #3e4149; font-size: 16px; line-height: 2.2; }
.story-section strong { color: #222c74; font-weight: 900; background: linear-gradient(transparent 70%, rgba(89,106,223,.15) 70%); }
.interview-question { margin: 54px 0 20px; padding-left: 20px; border-left: 3px solid var(--case-accent); color: #171a24; font-size: 18px; font-weight: 900; line-height: 1.9; }
.article-note { margin: -10px 0 0; padding: 18px 20px; color: #656871; background: #ecebe6; font-size: 11px; line-height: 1.9; }

.story-photo { position: relative; overflow: hidden; margin: 60px 0; background: #ddd9d0; }
.story-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story-photo figcaption { padding: 13px 0 0; color: #777981; background: #f7f6f2; font-size: 10px; }
.story-photo--wide { width: min(980px, calc(100vw - 64px)); margin-left: clamp(-90px, -6vw, -40px); }

.editor-note { position: relative; margin: 56px 0; padding: 36px 40px 36px 82px; border: 1px solid #d7d9e8; color: #393c46; background: #f0f1fa; font-family: inherit; font-size: 15px; line-height: 2.15; }
.editor-note::before { content: "“"; position: absolute; top: 23px; left: 30px; color: #7786e8; font-family: "Noto Sans JP", sans-serif; font-size: 54px; line-height: 1; }

.result-table { margin: 72px 0 0; border: 1px solid #cfd1df; background: #fff; }
.result-table__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 30px 34px; border-bottom: 1px solid #cfd1df; }
.result-table__heading .section-label { margin: 0; }
.result-table h3 { margin: 0; font-size: 22px; }
.result-table h3 small { margin-left: 13px; color: #7d7f88; font-size: 10px; font-weight: 700; }
.result-table table { width: 100%; border-collapse: collapse; }
.result-table th, .result-table td { padding: 18px 22px; border-bottom: 1px solid #e3e3df; text-align: left; vertical-align: middle; font-size: 12px; }
.result-table thead th { color: #74767f; background: #f5f5f2; font-size: 9px; }
.result-table thead th:not(:first-child), .result-table tbody td { text-align: right; }
.result-table tbody th { width: 43%; font-weight: 700; }
.result-table tbody td:last-child { color: #2d3d9d; background: #f4f5ff; }
.result-table tbody td strong { font-size: 16px; background: none; }
.result-table tbody td small { display: block; color: #787b85; font-size: 8px; }
.result-table > p { margin: 0; padding: 16px 22px; color: #81838a; font-size: 9px; }

.closing-quote { position: relative; margin: 64px 0 0; padding: 58px clamp(34px, 6vw, 70px); color: #fff; background: #171a24; }
.closing-quote::before { content: "“"; position: absolute; top: 16px; left: 25px; color: #7e8bea; font-family: "Noto Sans JP", sans-serif; font-size: 62px; }
.closing-quote p { margin: 0; font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; line-height: 1.75; }
.closing-quote cite { display: block; margin-top: 28px; color: #a8abb4; font-size: 10px; font-style: normal; }

.fit-section { padding: clamp(90px, 10vw, 140px) 0; color: #fff; background: #171a24; }
.fit-section__grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(60px, 9vw, 130px); }
.fit-section .section-label { color: #aeb7ff; }
.fit-section h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.4; }
.fit-section ul { margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.16); list-style: none; }
.fit-section li { display: grid; grid-template-columns: 55px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 17px; font-weight: 700; line-height: 1.8; }
.fit-section li span { color: #8d99ee; font-size: 10px; }

.article-cta { padding: clamp(80px, 9vw, 130px) 0; background: var(--case-accent); }
.article-cta__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 70px; }
.article-cta .section-label { color: #d9ddff; }
.article-cta h2 { margin: 0 0 16px; color: #fff; font-size: clamp(36px, 4.5vw, 58px); }
.article-cta p:not(.section-label) { max-width: 700px; margin: 0; color: #e4e6ff; font-size: 14px; line-height: 2; }
.article-cta .button { border-color: #fff; color: #171a24; background: #fff; box-shadow: none; }
.article-cta .button:hover { color: #fff; background: transparent; }

.company-profile { padding: clamp(100px, 12vw, 180px) 0; background: #eeede7; }
.company-profile__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(60px, 9vw, 130px); }
.company-profile figure { position: sticky; top: 34px; overflow: hidden; margin: 0; background: #d8d5cc; }
.company-profile figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.company-profile__body h2 { margin: 0 0 34px; font-size: clamp(34px, 4vw, 52px); }
.company-profile__body > p:not(.section-label) { margin: 0 0 22px; color: #4b4e56; font-size: 14px; line-height: 2.1; }
.company-data { margin: 46px 0 0; border-top: 1px solid #c8c7c1; }
.company-data > div { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 15px 0; border-bottom: 1px solid #c8c7c1; }
.company-data dt { color: #777981; font-size: 10px; }
.company-data dd { margin: 0; font-size: 12px; }
.company-data a { color: var(--case-accent-dark); font-weight: 900; }

.case-footer { padding-bottom: 0; }
.case-mobile-cta { display: none; }

@media (max-width: 1024px) {
  .case-summary__grid,
  .company-profile__grid { grid-template-columns: 1fr; }
  .case-summary__lead { max-width: 760px; }
  .impact-panel { max-width: 680px; }
  .case-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 48px; }
  .story-photo--wide { width: 100%; margin-left: 0; }
  .fit-section__grid { grid-template-columns: 1fr; }
  .fit-section h2 { max-width: 620px; }
  .article-cta__inner { grid-template-columns: 1fr; gap: 35px; }
  .article-cta .button { justify-self: start; }
  .company-profile figure { position: static; max-width: 760px; }
}

@media (max-width: 760px) {
  .case-page { padding-bottom: 0; }
  .case-header { height: 68px; }
  .case-header .brand__icon { width: 22px; height: 30px; }
  .case-header .brand__wordmark { width: 122px; }
  .case-header__back { display: none; }
  .case-header .button { display: none; }
  .breadcrumb { padding-top: 22px; font-size: 9px; }
  .case-hero__copy { padding: 58px 0 50px; }
  .case-kicker { margin-bottom: 22px; }
  .case-hero h1 { font-size: clamp(38px, 12vw, 58px); line-height: 1.28; }
  .case-hero h1 small { margin-top: 24px; font-size: 18px; }
  .case-hero__break { display: none; }
  .case-hero__identity { margin-top: 36px; }
  .case-hero__media { width: 100%; aspect-ratio: 4 / 3; }
  .case-hero__media img { object-position: 58% center; }
  .case-hero__media figcaption { right: 12px; bottom: 10px; font-size: 8px; }
  .case-summary__grid { gap: 50px; }
  .case-summary__lead h2 { font-size: 32px; }
  .case-summary__lead > p:not(.section-label) { font-size: 15px; line-height: 2; }
  .impact-panel { padding: 28px 24px; }
  .impact-panel dd > strong { font-size: 36px; }
  .case-layout { display: block; padding-top: 90px; }
  .case-toc { display: none; }
  .story-section { scroll-margin-top: 18px; }
  .story-section h2 { margin-bottom: 42px; font-size: 30px; line-height: 1.55; }
  .story-section > p:not(.story-section__number):not(.interview-question):not(.article-note) { font-size: 15px; line-height: 2.05; }
  .interview-question { margin-top: 44px; padding-left: 16px; font-size: 16px; line-height: 1.8; }
  .story-photo { margin: 46px 0; }
  .story-photo figcaption { font-size: 9px; }
  .editor-note { padding: 68px 24px 28px; font-size: 14px; }
  .editor-note::before { top: 20px; left: 22px; }
  .result-table { overflow-x: auto; margin-right: -20px; margin-left: -20px; }
  .result-table__heading { min-width: 620px; padding: 24px; }
  .result-table table { min-width: 620px; }
  .result-table > p { min-width: 620px; }
  .closing-quote { padding: 60px 26px 34px; }
  .closing-quote p { font-size: 24px; }
  .fit-section li { grid-template-columns: 40px 1fr; font-size: 15px; }
  .article-cta h2 { font-size: 36px; }
  .article-cta .button { width: 100%; }
  .company-profile__body h2 { font-size: 34px; }
  .company-data > div { grid-template-columns: 92px 1fr; gap: 14px; }
  .case-mobile-cta { position: fixed; z-index: 120; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: block; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .22s var(--ease), transform .25s var(--ease); }
  .case-mobile-cta.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .case-mobile-cta a { min-width: 148px; min-height: 52px; display: grid; grid-template-columns: 20px auto 14px; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #fff; background: var(--case-accent); box-shadow: 0 12px 28px rgba(42,61,172,.28); }
  .case-mobile-cta strong { font-size: 14px; text-align: left; }
  .case-mobile-cta svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .case-mobile-cta__mail { width: 20px; }
  .case-mobile-cta__arrow { width: 14px; }
}

@media (max-width: 420px) {
  .case-page .container { width: calc(100% - 40px); }
  .breadcrumb span:last-child { display: none; }
  .case-hero h1 small { font-size: 16px; }
  .case-hero__identity strong { font-size: 12px; }
  .case-summary__lead h2,
  .story-section h2 { font-size: 28px; }
  .impact-panel dd { gap: 6px; }
  .impact-panel dd > strong { font-size: 34px; }
  .result-table { margin-right: -20px; margin-left: -20px; }
  .fit-section h2 { font-size: 38px; }
  .company-profile figure { margin-right: -20px; margin-left: -20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case-header__back-icon,
  .button { transition: none !important; }
}
