@font-face {
  font-family: "Noto Sans JP";
  src: url("../assets/fonts/164.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Material Icons";
  src: url("../assets/fonts/1.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #2d2d2b;
  background: #fff;
  font-family: "Noto Sans JP",sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0,0,0,.08);
}

.site-logo img {
  width: 200px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 16px;
  font-weight: 700;
}

.desktop-nav>a:not(.header-contact):hover {
  opacity: .7;
}

.header-contact {
  margin-left: 8px;
  width: 352px;
  padding: 13px 28px;
  border-radius: 28px;
  background: #d54959;
  color: #fff;
  text-align: center;
  box-shadow: 1px 3px 10px rgba(0,0,0,.1);
}

.header-contact span {
  float: right;
  font-size: 24px;
  line-height: 1;
}

.menu-button {
  display: none;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

.case-hero {
  position: relative;
  height: 360px;
  margin-top: 80px;
  background: #f6efe4;
  overflow: hidden;
}

.case-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1280px,100%);
  height: 100%;
  margin: auto;
  padding: 0 30px;
  display: flex;
  align-items: flex-end;
}

.case-hero__person {
  width: 228px;
}

.case-hero__copy {
  margin: 0 0 82px 48px;
}

.case-hero__copy p {
  margin: 0 0 4px;
  color: #c79669;
  font-size: 16px;
  letter-spacing: .1em;
}

.case-hero__copy h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.4;
  letter-spacing: .1em;
}

.case-hero__bird-left {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 220px;
}

.case-hero__bird-right {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 0;
  width: 350px;
}

.breadcrumb {
  width: min(1280px,100%);
  margin: 0 auto;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.case-list {
  position: relative;
  min-height: 620px;
  width: min(1280px,100%);
  margin: auto;
  padding: 80px 30px 120px;
  overflow: hidden;
}

.case-list__decor {
  position: absolute;
  right: -80px;
  top: 10px;
  width: 360px;
  height: 360px;
  opacity: .25;
  transform: rotate(45deg);
  background: linear-gradient(90deg,transparent 0 22%,#eadcc8 22% 38%,transparent 38% 48%,#eadcc8 48% 64%,transparent 64%);
}

.case-list__decor:after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: 30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #eadcc8;
}

.case-card {
  position: relative;
  z-index: 2;
  display: block;
  width: 365px;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,.12);
  transition: .25s;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}

.case-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.case-card__body {
  padding: 28px 28px 30px;
}

.case-card__body h2 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: .05em;
}

.case-card__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.contact-cta {
  padding: 0 0 64px;
}

.contact-cta__inner {
  position: relative;
  width: 100%;
  min-height: 0;
  margin: auto;
  border-radius: 8px;
  overflow: hidden;
  padding: 80px max(15px,calc((100% - 1210px)/2)) 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #d54959 url("../assets/images/case/cta-background.webp") center/cover no-repeat;
  color: #fff;
}

.contact-cta__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 45%;
  max-width: 545px;
}

.contact-cta__copy h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 33px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
}

.contact-cta__copy p {
  margin: 0 0 34px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
}

.contact-cta__copy a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 67px;
  padding: 0 54px;
  border-radius: 33.5px;
  background: #fff;
  color: #d54959;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.contact-cta__copy a span {
  position: absolute;
  right: 28px;
  top: 50%;
  float: none;
  font-family: "Material Icons";
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.contact-cta__device {
  position: relative;
  right: auto;
  bottom: auto;
  display: block;
  width: 45%;
  max-width: 545px;
  height: auto;
  object-fit: contain;
}

.contact-cta__device-mobile {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-footer {
  background: #f5f5f5;
  margin-top: 70px;
  padding: 60px 0;
  text-align: center;
  width: 100%;
}

.footer-logo-wrap {
  border-bottom: 1px solid #e7e7e7;
  margin-bottom: 65px;
  padding-bottom: 65px;
  width: 100%;
}

.footer-logo-wrap a {
  display: inline-block;
  transition: opacity .3s;
}

.footer-logo-wrap a:hover {
  opacity: .8;
}

.footer-logo-wrap img {
  display: block;
  height: auto;
  margin: auto;
  width: 335px;
  max-width: 100%;
}

.footer-info {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: auto;
  padding: 0 30px;
  width: 1280px;
  max-width: 100%;
  text-align: left;
}

.footer-contact {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

.footer-label {
  color: #000;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
  margin: 0 0 10px;
}

.footer-phone {
  align-items: center;
  color: #000;
  display: flex;
  font-family: Roboto,Arial,sans-serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.1;
  margin: 0;
}

.footer-phone .phone-icon {
  font-family: "Material Icons";
  font-size: 46px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  margin-right: 15px;
}

.footer-phone strong {
  font: inherit;
  letter-spacing: inherit;
}

.footer-company {
  align-items: flex-start;
  display: flex;
  padding: 0 20px;
}

.footer-company>.footer-label {
  margin: 0;
  white-space: nowrap;
}

.footer-company>div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-left: 30px;
}

.footer-company a,.footer-company p {
  color: #000;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.7;
  margin: 0;
}

.footer-company a:hover {
  opacity: .8;
}

.footer-copyright {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 25px 0;
}

.footer-copyright p {
  color: #000;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .1em;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.mobile-modal {
  display: none;
}

@media(max-width:840px) {
  body.menu-open {
    overflow: hidden;
  }
  .site-header {
    height: 50px;
    padding: 0 15px;
  }
  .site-logo img {
    width: 140px;
  }
  .desktop-nav {
    display: none;
  }
  .menu-button {
    display: block;
  }
  .case-hero {
    height: 210px;
    margin-top: 50px;
  }
  .case-hero__inner {
    padding: 0 16px;
  }
  .case-hero__person {
    width: 105px;
  }
  .case-hero__copy {
    margin: 0 0 40px 24px;
  }
  .case-hero__copy p {
    font-size: 13px;
  }
  .case-hero__copy h1 {
    font-size: 28px;
  }
  .case-hero__bird-left {
    width: 100px;
  }
  .case-hero__bird-right {
    width: 150px;
  }
  .breadcrumb {
    padding: 18px 20px;
    font-size: 12px;
  }
  .case-list {
    min-height: 0;
    padding: 55px 20px 80px;
  }
  .case-card {
    width: min(365px,100%);
  }
  .contact-cta {
    padding: 0 16px 40px;
  }
  .contact-cta__inner {
    padding: 40px 25px 30px;
    flex-direction: column;
    justify-content: flex-start;
  }
  .contact-cta__copy {
    width: 500px;
    max-width: 100%;
  }
  .contact-cta__copy h2 {
    font-size: 24px;
  }
  .contact-cta__copy p {
    font-size: 16px;
  }
  .contact-cta__copy a {
    height: auto;
    padding: 10px 48px 10px 15px;
    font-size: 16px;
  }
  .contact-cta__device {
    display: none;
  }
  .contact-cta__device-mobile {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 4px auto 24px;
  }
  .site-footer {
    margin-top: 40px;
    padding: 40px 0;
  }
  .footer-logo-wrap {
    margin-bottom: 30px;
    padding: 0 0 30px;
  }
  .footer-logo-wrap img {
    width: 250px;
  }
  .footer-info {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 0 30px;
  }
  .footer-contact {
    align-items: center;
    margin-bottom: 30px;
  }
  .footer-company {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    text-align: center;
  }
  .footer-company>.footer-label {
    margin-bottom: 5px;
  }
  .footer-company>div {
    align-items: center;
    padding-left: 0;
  }
  .footer-company a,.footer-company p {
    font-size: 16px;
    text-align: center;
  }
  .mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0,0,0,.16);
  }
  .mobile-modal.is-open {
    display: block;
  }
  .mobile-menu__panel {
    position: relative;
    background: #fff;
    padding: 56px 28px 30px;
    box-shadow: 0 6px 15px rgba(0,0,0,.2);
  }
  .mobile-menu__close {
    position: absolute;
    right: 18px;
    top: 12px;
    border: 0;
    background: none;
    font-size: 32px;
  }
  .mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-weight: 700;
  }
  .mobile-menu__contact {
    margin-top: 8px;
    padding: 10px 24px;
    border-radius: 26px;
    background: #d54959;
    color: #fff;
    text-align: center;
  }
}

@media(max-width:540px) {
  .case-hero {
    height: 190px;
  }
  .case-hero__inner {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-start;
  }
  .case-hero__person {
    position: absolute;
    left: 5px;
    bottom: 0;
    width: 95px;
  }
  .case-hero__copy {
    margin: 35px 0 0;
    text-align: center;
  }
  .case-hero__copy h1 {
    font-size: 26px;
  }
  .case-card img {
    height: auto;
  }
  .contact-cta__inner {
    padding: 40px 15px 30px;
  }
  .contact-cta__copy h2 {
    font-size: 21px;
    letter-spacing: normal;
  }
  .contact-cta__copy p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .contact-cta__device {
    display: none;
  }
  .contact-cta__device-mobile {
    display: block;
    width: 100%;
    margin: 2px auto 20px;
  }
  .footer-phone {
    font-size: 24px;
  }
  .footer-phone .phone-icon {
    font-size: 28px;
    margin-right: 10px;
  }
  .footer-logo-wrap img {
    width: 200px;
  }
  .footer-company a,.footer-company p {
    font-size: 14px;
    letter-spacing: normal;
  }
  .footer-copyright {
    padding: 25px 15px;
  }
}

/* Header contact button: match the TOP page */
.desktop-nav .header-contact {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: none;
  width: 352px;
  min-height: 51px;
  margin-left: 20px;
  padding: 15px 48px 15px 30px;
  border-radius: 25.5px;
  background: #d54959;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  box-shadow: 1px 3px 10px rgba(0,0,0,.1);
  transition: transform .3s ease,box-shadow .3s ease;
}

.desktop-nav .header-contact:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 1px 3px 20px rgba(0,0,0,.1);
}

.desktop-nav .header-contact span {
  position: absolute;
  right: 16px;
  top: 50%;
  float: none;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Material Icons";
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
}

@media screen and (max-width:1200px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }
  .desktop-nav .header-contact {
    width: 280px;
    margin-left: 10px;
    padding: 15px 42px 15px 24px;
    font-size: 14px;
  }
}

/* Case detail mobile header/menu: match the TOP page */
.material-icons {
  font-family: "Material Icons";
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media screen and (max-width:840px) {
  .site-header {
    height: 64px;
    padding: 0 15px 0 18px;
  }
  .site-logo img {
    width: 150px;
    height: auto;
  }
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
  }
  .case-hero {
    margin-top: 64px;
  }
  .mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: auto;
  }
  .mobile-modal.is-open {
    display: block;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: rgba(0,0,0,.16);
  }
  .mobile-menu__panel {
    position: relative;
    display: flex;
    flex: none;
    flex-direction: column;
    align-content: flex-end;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,.2);
  }
  .mobile-menu__close {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
  }
  .mobile-menu__nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 15px 15px 40px;
    background: #fff;
    gap: 0;
  }
  .mobile-menu__nav>a:not(.mobile-menu__contact) {
    display: flex;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 0 12px;
    color: #333;
    font-family: "Noto Sans JP",sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .1em;
    text-align: left;
    text-decoration: none;
  }
  .mobile-menu__contact {
    position: relative;
    display: flex;
    flex: none;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 7px 30px;
    border-radius: 25.5px;
    background: #d54959;
    box-shadow: 1px 3px 10px rgba(0,0,0,.1);
    color: #fff;
    font-family: "Noto Sans JP",sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
  }
  .mobile-menu__contact i {
    position: absolute;
    right: 5px;
    bottom: 6px;
    color: #fff;
    font-size: 24px;
  }
}

@media screen and (max-width:540px) {
  .mobile-menu__contact i {
    right: 0;
    font-size: 22px;
  }
}

@media screen and (min-width:841px) {
  .mobile-modal {
    display: none!important;
  }
}

/* Mobile menu: match the TOP page exactly (case list and case detail). */
.mobile-modal, .mobile-menu {
  display: none;
}

@media screen and (max-width: 840px) {
  body.menu-open {
    overflow: hidden;
  }
  .mobile-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
    display: none !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    pointer-events: auto !important;
  }
  .mobile-modal.is-open {
    display: block !important;
  }
  .mobile-menu {
    display: flex !important;
    flex-direction: column !important;
    align-content: center !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.16) !important;
  }
  .mobile-menu__panel {
    position: relative !important;
    display: flex !important;
    flex: none !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-content: flex-end !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2) !important;
  }
  .mobile-menu__close {
    position: static !important;
    display: inline-flex !important;
    flex: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #333 !important;
    cursor: pointer !important;
    font-family: "Material Icons" !important;
    font-size: 36px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    white-space: nowrap !important;
    direction: ltr !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
  }
  .mobile-menu__nav {
    display: flex !important;
    flex: 1 !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-content: center !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 15px 15px 40px !important;
    gap: 0 !important;
    background: #fff !important;
  }
  .mobile-menu__nav > a:not(.mobile-menu__contact) {
    display: flex !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #333 !important;
    font-family: "Noto Sans JP", sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.1em !important;
    text-align: left !important;
    text-decoration: none !important;
  }
  .mobile-menu__contact {
    position: relative !important;
    display: flex !important;
    flex: none !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-content: center !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 7px 30px !important;
    border-radius: 25.5px !important;
    background: #d54959 !important;
    box-shadow: 1px 3px 10px rgba(0, 0, 0, 0.1) !important;
    color: #fff !important;
    font-family: "Noto Sans JP", sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;
  }
  .mobile-menu__contact .material-icons {
    position: absolute !important;
    right: 5px !important;
    bottom: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-family: "Material Icons" !important;
    font-size: 24px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
  }
}

@media screen and (max-width: 540px) {
  .mobile-menu__contact .material-icons {
    right: 0 !important;
    font-size: 22px !important;
  }
}

@media screen and (max-width: 360px) {
  .mobile-menu__contact .material-icons {
    right: 5px !important;
    bottom: 9px !important;
    font-size: 17px !important;
  }
}

@media screen and (min-width: 841px) {
  .mobile-modal {
    display: none !important;
  }
}

/* Case list mobile layout: match the supplied reference */
@media screen and (max-width: 840px) {
  .case-hero {
    height: 380px;
    margin-top: 64px;
  }
  .case-hero__inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 20px;
  }
  .case-hero__copy {
    position: relative;
    z-index: 3;
    margin: 0;
    padding-top: 65px;
    text-align: center;
  }
  .case-hero__copy p {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: .12em;
  }
  .case-hero__copy h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.25;
    letter-spacing: .12em;
  }
  .case-hero__person {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: -2px;
    width: 215px;
    height: auto;
    transform: translateX(-50%);
  }
  .case-hero__bird-left {
    left: -5px;
    bottom: -2px;
    width: 190px;
  }
  .case-hero__bird-right {
    right: -15px;
    top: 0;
    width: 300px;
  }
  .breadcrumb {
    width: 100%;
    min-height: 78px;
    padding: 24px 22px;
    gap: 14px;
    font-size: 20px;
    line-height: 1.5;
    white-space: nowrap;
    overflow-x: auto;
  }
  .case-list {
    width: 100%;
    min-height: 0;
    padding: 180px 22px 110px;
    overflow: hidden;
  }
  .case-list__decor {
    display: none;
  }
  .case-card {
    width: 100%;
    max-width: none;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
  }
  .case-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 850 / 566;
    object-fit: cover;
  }
  .case-card__body {
    padding: 42px 30px 46px;
  }
  .case-card__body h2 {
    margin: 0 0 20px;
    font-size: 35px;
    line-height: 1.4;
    letter-spacing: .06em;
  }
  .case-card__body p {
    margin: 0;
    font-size: 25px;
    line-height: 1.65;
  }
}

@media screen and (max-width: 540px) {
  .case-hero {
    height: 190px;
  }
  .case-hero__copy {
    padding-top: 30px;
  }
  .case-hero__copy p {
    margin-bottom: 4px;
    font-size: 13px;
  }
  .case-hero__copy h1 {
    font-size: 27px;
  }
  .case-hero__person {
    width: 108px;
  }
  .case-hero__bird-left {
    width: 95px;
  }
  .case-hero__bird-right {
    right: -8px;
    width: 155px;
  }
  .breadcrumb {
    min-height: 56px;
    padding: 16px 12px;
    gap: 10px;
    font-size: 13px;
  }
  .case-list {
    padding: 88px 12px 70px;
  }
  .case-card {
    border-radius: 8px;
  }
  .case-card__body {
    padding: 28px 15px 30px;
  }
  .case-card__body h2 {
    margin-bottom: 10px;
    font-size: 22px;
  }
  .case-card__body p {
    font-size: 16px;
  }
}

/* Case list mobile hero sizing: align with the other pages */
@media screen and (min-width: 541px) and (max-width: 840px) {
  .case-hero {
    height: 250px;
    margin-top: 64px;
  }
  .case-hero__copy {
    padding-top: 40px;
  }
  .case-hero__copy p {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: .1em;
  }
  .case-hero__copy h1 {
    font-size: 34px;
    line-height: 1.3;
    letter-spacing: .1em;
  }
  .case-hero__person {
    width: 145px;
  }
  .case-hero__bird-left {
    width: 125px;
  }
  .case-hero__bird-right {
    right: -10px;
    width: 205px;
  }
  .breadcrumb {
    min-height: 60px;
    padding: 17px 20px;
    gap: 10px;
    font-size: 15px;
  }
  .case-list {
    padding-top: 110px;
  }
}

/* Case listing grid: desktop 3 columns, tablet 2 columns, mobile 1 column */
.case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 56px 34px;
}

.case-list__decor {
  pointer-events: none;
}

.case-card {
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-card img {
  flex: none;
  width: 100%;
  aspect-ratio: 850 / 566;
  height: auto;
  object-fit: cover;
}

.case-card__body {
  flex: 1;
}

@media screen and (max-width: 1024px) {
  .case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 28px;
  }
}

@media screen and (max-width: 640px) {
  .case-list {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 55px;
  }
  .case-card__body {
    padding: 24px 22px 28px;
  }
  .case-card__body h2 {
    margin-bottom: 10px;
    font-size: 20px;
  }
  .case-card__body p {
    font-size: 14px;
  }
}

/* Astro case components */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
  width: 100%;
}

.case-card__date {
  display: block;
  margin: 0 0 6px;
  color: #777;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.case-card__industry {
  margin: 0 0 8px;
  color: #a56c3f;
  font-size: 0.82rem;
  font-weight: 700;
}

.related-cases {
  padding: 72px 24px 88px;
  background: #faf8f5;
}

.related-cases__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.related-cases h2 {
  margin: 0 0 36px;
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

@media (max-width: 960px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .case-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .related-cases {
    padding: 56px 20px 64px;
  }
}

/* The outer section controls page width; CaseGrid controls card columns. */
.case-list {
  display: block;
}

/* Case list pagination: generated only when there are more than 9 published cases. */
.case-list__count {
  position: relative;
  z-index: 2;
  margin: 0 0 28px;
  color: #777;
  font-size: 14px;
  text-align: right;
}

.case-pagination {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
}

.case-pagination__pages {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-pagination__pages--mobile {
  display: none;
}

.case-pagination__page, .case-pagination__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #ded7cd;
  border-radius: 50%;
  background: #fff;
  color: #2d2d2b;
  font-size: 15px;
  font-weight: 700;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.case-pagination__page:hover, .case-pagination__control:hover {
  border-color: #c6966a;
  color: #a56c3f;
}

.case-pagination__page.is-current {
  border-color: #c6966a;
  background: #c6966a;
  color: #fff;
}

.case-pagination__control {
  gap: 6px;
  min-width: auto;
  padding: 0 18px;
  border-radius: 24px;
}

.case-pagination__control.is-disabled {
  opacity: .35;
  pointer-events: none;
}

.case-pagination__ellipsis {
  min-width: 22px;
  text-align: center;
}

@media (max-width: 640px) {
  .case-pagination__pages--desktop {
    display: none;
  }
  .case-pagination__pages--mobile {
    display: flex;
  }
  .case-list__count {
    margin-bottom: 22px;
    font-size: 13px;
    text-align: left;
  }
  .case-pagination {
    gap: 10px;
    margin-top: 44px;
  }
  .case-pagination__pages {
    gap: 6px;
  }
  .case-pagination__page {
    min-width: 38px;
    min-height: 38px;
    font-size: 14px;
  }
  .case-pagination__control {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
  .case-pagination__control span:first-child:last-child {
    display: none;
  }
}
