/* =========================================================
   In Blue LP - Design tokens and base
   ========================================================= */
:root {
  --color-bg: #f8f7f3;
  --color-white: #ffffff;
  --color-dark: #20323a;
  --color-dark-soft: #2d434c;
  --color-heading: #172026;
  --color-text: #526068;
  --color-muted: #6f777a;
  --color-accent: #315d6b;
  --color-cta: #15543f;
  --color-cta-hover: #0f4635;
  --color-warm: #9c805d;
  --color-border: #d9d5cc;
  --color-soft-green: #e8ecea;
  --color-soft-gray: #eef0ed;
  --font-body: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-heading: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-serif-en: Georgia, "Times New Roman", serif;
  --container: 1160px;
  --section-space: clamp(104px, 8vw, 124px);
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(49, 93, 107, 0.35);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(46px, 3.55vw, 52px);
  line-height: 1.4;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(40px, 3.2vw, 46px);
  line-height: 1.36;
}

h3 {
  color: var(--color-heading);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
}

.container {
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.section--warm {
  background: #f7f5f0;
}

.lead {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.9;
}

.eyebrow,
.section-index,
.series-label {
  margin-bottom: 18px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
}

.series-label {
  color: var(--color-warm);
  font-family: var(--font-serif-en);
  font-size: 12px;
  letter-spacing: 0.17em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--color-white);
  background: var(--color-heading);
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

/* =========================================================
   Buttons and links
   ========================================================= */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.button--primary {
  color: var(--color-white);
  background: var(--color-cta);
  border-color: var(--color-cta);
}

.button--primary:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
}

.button--secondary {
  color: var(--color-heading);
  background: transparent;
  border-color: #aeb4b5;
}

.button--secondary:hover {
  color: var(--color-white);
  background: var(--color-heading);
  border-color: var(--color-heading);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #234e5c;
  font-size: 14px;
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.text-link:hover {
  color: var(--color-cta);
}

.inline-cta {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 44px;
  padding-block: 22px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.inline-cta strong {
  color: var(--color-heading);
  font-size: 17px;
  font-weight: 500;
}

.inline-cta a {
  flex: 0 0 auto;
  color: var(--color-cta);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

/* =========================================================
   Images
   ========================================================= */
.media-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #e7e4dc;
}

.media-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-frame--portrait {
  aspect-ratio: 5 / 6;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.image-placeholder-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 10px;
  color: var(--color-white);
  background: rgba(17, 27, 31, 0.78);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  height: 88px;
  position: relative;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid #ddd9d0;
}

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

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: var(--color-heading);
  text-decoration: none;
}

.site-brand__logo {
  display: block;
  width: clamp(158px, 14vw, 212px);
  height: auto;
}

.site-brand__tagline {
  color: #667077;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 28px);
}

.global-nav > a:not(.button) {
  color: #303a40;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.global-nav > a:not(.button):hover {
  color: var(--color-cta);
}

.header-cta {
  min-height: 48px;
  padding-inline: 20px;
  white-space: nowrap;
}

.menu-button {
  width: 46px;
  height: 46px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  color: var(--color-heading);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
}

.menu-button__line {
  width: 20px;
  height: 1px;
  display: block;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-button[aria-expanded="true"] .menu-button__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-button__line:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] .menu-button__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   Hero and trust
   ========================================================= */
.hero {
  padding: 0;
  background: #d8d1c6;
}

.hero-stage {
  position: relative;
  min-height: clamp(690px, 51vw, 820px);
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #cfc7ba;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 27, 28, 0.14) 0%, transparent 38%, rgba(8, 13, 14, 0.1) 100%);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 61% center;
}

.hero-media picture {
  display: contents;
}

.container.about-grid--text-only {
  grid-template-columns: minmax(0, 800px);
}

.work-video {
  margin: 0;
}

.work-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #172026;
}

.work-video figcaption {
  margin-bottom: 10px;
}

.work-video-disclosure {
  margin-top: 28px;
  padding: 16px 0;
  border-block: 1px solid var(--color-border);
}

.work-video-disclosure summary {
  color: var(--color-cta);
  cursor: pointer;
}

.work-video--portrait {
  max-width: 300px;
  margin-top: 16px;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: center;
  padding-block: 58px 64px;
}

.hero-paper {
  position: relative;
  width: min(650px, 59%);
  padding: 54px 64px 64px;
  color: var(--color-text);
  background: rgba(250, 248, 241, 0.97);
  /* Closely spaced, uneven points follow the shallow folds of the torn edge. */
  clip-path: polygon(
    1.5% 0, 99% 2%, 97% 96.7%,
    96.2% 96.9%, 95.7% 96.8%, 94.6% 97.2%, 93.9% 97.1%,
    92.5% 97.5%, 91.1% 97.4%, 90.5% 97.7%, 89.1% 97.8%,
    87.3% 98.2%, 86.1% 98.1%, 85.4% 98.4%, 84% 98.2%,
    82.8% 98.4%, 81.2% 98%, 80.4% 98.1%, 78.6% 97.8%,
    77.5% 98%, 75.8% 97.5%, 74.5% 97.7%, 72.2% 97.4%,
    70.1% 97.7%, 69.5% 97.5%, 68% 97.9%, 65.6% 98%,
    64% 98.5%, 62.9% 98.4%, 61.6% 98.7%, 60% 98.6%,
    58.4% 99%, 56.3% 99.1%, 55.8% 98.9%, 54.2% 99.4%,
    52.7% 99.3%, 51.6% 99.7%, 50.1% 99.5%, 48.4% 99.7%,
    46.9% 99.2%, 45.8% 99.4%, 44.7% 99.1%, 43.1% 99.2%,
    41.3% 98.9%, 39.9% 99%, 38.3% 98.5%, 36.2% 98.7%,
    34.6% 98.4%, 33.1% 98.5%, 31.5% 98.1%, 30.2% 98.4%,
    28.4% 98.3%, 26.9% 98.7%, 25.4% 98.5%, 24.3% 98.8%,
    22.3% 99%, 21.6% 98.8%, 19.8% 99.2%, 18.1% 99%,
    16.9% 99.3%, 15% 99%, 14.3% 99.2%, 12.9% 98.8%,
    11.6% 98.9%, 10.9% 98.6%, 9.2% 98.5%, 8.3% 98.2%,
    7.1% 98.3%, 6.3% 98%, 4.8% 98.1%, 4.3% 97.8%,
    2.9% 97.6%, 2.3% 97.7%, 1.4% 97.4%, 0 97.2%
  );
  filter: drop-shadow(0 22px 38px rgba(19, 25, 25, 0.2));
}

.hero-paper .eyebrow::before {
  content: "";
  flex: 0 0 3px;
  height: 1.4em;
  background: #bd7650;
}

.hero-paper .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  color: #334a4e;
}

.hero-paper h1 {
  margin-bottom: 24px;
  font-size: clamp(41px, 3.35vw, 58px);
  line-height: 1.42;
  letter-spacing: -0.055em;
}

.hero-paper .lead {
  max-width: 520px;
  color: #3f4b50;
  font-size: 16px;
  line-height: 1.95;
}

.hero-actions {
  margin-top: 28px;
}

.hero-actions .button {
  min-height: 62px;
  padding-inline: 28px;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 400;
}

.hero-actions .button--primary {
  min-width: 260px;
  box-shadow: 0 14px 28px rgba(21, 84, 63, 0.22);
}

.hero-actions .button span {
  margin-left: 12px;
}

.hero-instagram-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  color: #34515a;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-wordmark {
  position: absolute;
  z-index: 1;
  left: -26px;
  top: 48%;
  color: rgba(250, 248, 241, 0.25);
  font-family: var(--font-serif-en);
  font-size: clamp(90px, 13vw, 200px);
  letter-spacing: 0.08em;
  line-height: 1;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  pointer-events: none;
}

.trust-bar {
  color: #f7f4ec;
  background: #18372f;
  border: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
  position: relative;
  min-height: 126px;
  padding: 28px 24px 28px 58px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-item:first-child {
  padding-left: 0;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  margin-bottom: 5px;
  color: #fffdf7;
  font-size: 16px;
  font-weight: 500;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.6;
}

.trust-item .trust-item__icon {
  position: absolute;
  left: 20px;
  top: 30px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #ddc39d;
  border: 1px solid rgba(221, 195, 157, 0.65);
  border-radius: 50%;
  font-family: var(--font-serif-en);
  font-size: 10px;
  line-height: 1;
}

.trust-grid > .trust-item--certification {
  padding: 24px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
  border-top: 3px solid #ddc39d;
}

.trust-item--certification .certification-source,
.about-certification .certification-source {
  margin: 0 0 8px;
  color: #ddc39d;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.trust-grid > .trust-item--certification strong {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.5;
}

.trust-item--certification .certification-profile-link {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.trust-item--certification .certification-profile-link span {
  display: inline;
}

.trust-item--certification:hover,
.trust-item--certification:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.about-certification {
  margin: 28px 0;
  padding: 24px 26px;
  border-left: 3px solid #9c805d;
  background: #fffdf8;
}

.about-certification .certification-source {
  color: #70583e;
}

.about-certification h3 {
  margin-bottom: 12px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.about-certification > p:not(.certification-source) {
  margin-bottom: 16px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .trust-grid > .trust-item--certification {
    grid-column: 1 / -1;
    padding: 20px;
    border-right: 0;
  }

  .trust-item--certification strong br {
    display: none;
  }

  .trust-item--certification + .trust-item {
    grid-column: 1 / -1;
  }

  .about-certification {
    padding: 20px;
  }
}

/* =========================================================
   Shared section heading
   ========================================================= */
.section-heading {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  margin-bottom: 56px;
}

.section-index {
  padding-top: 13px;
  margin-bottom: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.section-heading__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}

.section-heading__body > p {
  max-width: 390px;
  margin: 0 0 6px;
  color: #657077;
  font-size: 15px;
  line-height: 1.8;
}

#services-title,
#technical-title {
  flex: 0 0 auto;
  font-size: clamp(32px, 2.55vw, 36px);
  line-height: 1.55;
  letter-spacing: -0.04em;
}

#reasons-title {
  flex: 0 0 auto;
  font-size: clamp(30px, 2.3vw, 32px);
  line-height: 1.55;
  letter-spacing: -0.04em;
}

#pricing-title {
  flex: 0 0 auto;
  font-size: clamp(32px, 2.55vw, 36px);
  line-height: 1.55;
  letter-spacing: -0.04em;
}

#flow-title {
  flex: 0 0 auto;
  font-size: clamp(32px, 2.55vw, 36px);
  line-height: 1.55;
  letter-spacing: -0.04em;
}

.section-title-line {
  display: block;
  white-space: nowrap;
}

.section-heading--dark h2 {
  color: var(--color-white);
}

.section-heading--dark .section-index {
  color: #c7aa80;
}

.section-heading--dark .section-heading__body > p {
  color: #bdc7ca;
}

/* =========================================================
   Problems
   ========================================================= */
.problems {
  padding-block: 112px 124px;
}

.problems-grid {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 70px;
}

.problems-media {
  min-height: 665px;
  align-self: stretch;
}

.problems-media img {
  object-position: 60% center;
}

.problems-content h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 2.65vw, 38px);
  line-height: 1.52;
  letter-spacing: -0.04em;
}

.hero-title-line,
.problems-title-line {
  display: block;
}

.problems-title-line {
  white-space: nowrap;
}

@media (min-width: 1026px) {
  .hero-title-line {
    white-space: nowrap;
  }
}

.problems-content > p:not(.eyebrow) {
  max-width: 610px;
  margin-bottom: 0;
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid #cbc7bd;
}

.problem-item {
  min-height: 150px;
  padding: 24px 22px 22px 0;
  border-bottom: 1px solid #cbc7bd;
}

.problem-item:nth-child(odd) {
  border-right: 1px solid #cbc7bd;
}

.problem-item:nth-child(even) {
  padding-left: 24px;
}

.problem-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--color-warm);
  font-family: var(--font-serif-en);
  font-size: 25px;
  line-height: 1;
}

.problem-item h3 {
  margin-bottom: 7px;
  font-size: 17px;
}

.problem-item p {
  margin-bottom: 0;
  color: #687176;
  font-size: 13px;
  line-height: 1.7;
}

/* =========================================================
   Services
   ========================================================= */
.services {
  background: #fbfaf7;
}

.service-feature {
  min-height: 520px;
  display: grid;
  grid-template-columns: 650px minmax(0, 1fr);
  background: var(--color-white);
  border: 1px solid #dedbd4;
}

.service-feature__media {
  min-height: 520px;
}

.service-feature__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px;
}

.service-feature__content h3 {
  margin-bottom: 16px;
}

.service-feature__content > p:not(.series-label) {
  margin-bottom: 0;
}

.lined-list {
  margin: 24px 0 20px;
  padding: 0;
  list-style: none;
}

.lined-list li {
  padding: 10px 0;
  color: #4d5b62;
  border-top: 1px solid #e2dfd8;
  font-size: 14px;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid #dedbd4;
}

.service-card__media {
  aspect-ratio: 16 / 10;
}

.service-card__content {
  padding: 32px 34px 36px;
}

.service-card__content h3 {
  margin-bottom: 10px;
}

.service-card__content > p:not(.series-label) {
  margin-bottom: 18px;
}

/* =========================================================
   Technical approach
   ========================================================= */
.technical {
  color: #f5f4ef;
  background: var(--color-dark);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
}

.detail-media {
  aspect-ratio: 4 / 3;
}

.detail-grid article > p {
  margin: 20px 0 0;
  color: #dfe5e7;
  font-size: 14px;
  line-height: 1.75;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid #53636a;
  border-left: 1px solid #53636a;
}

.capability-item {
  min-height: 122px;
  padding: 25px;
  border-right: 1px solid #53636a;
  border-bottom: 1px solid #53636a;
}

.capability-item span {
  display: block;
  margin-bottom: 12px;
  color: #c7aa80;
  font-family: var(--font-serif-en);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.12em;
}

.capability-item strong {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

/* =========================================================
   Case studies
   ========================================================= */
.case-feature {
  background: var(--color-white);
  border: 1px solid #ddd9d1;
}

.case-feature__media {
  aspect-ratio: 16 / 8.5;
}

.case-feature__media::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, rgba(11, 18, 20, 0.42));
  pointer-events: none;
}

.case-number {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 2;
  color: var(--color-white);
  font-family: var(--font-serif-en);
  font-size: 18px;
  letter-spacing: 0.14em;
}

.case-feature__body {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  padding: 52px 56px 60px;
}

.case-intro h3 {
  margin-bottom: 18px;
  font-family: var(--font-heading);
  font-size: 34px;
}

.case-intro > p:not(.eyebrow) {
  margin-bottom: 26px;
}

.case-feature__cta {
  min-width: 320px;
  min-height: 64px;
  padding-inline: 38px;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(18, 84, 68, 0.2);
}

.about__cta {
  min-width: 320px;
  min-height: 64px;
  padding-inline: 38px;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(18, 84, 68, 0.2);
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid #dcd9d2;
}

.case-facts div {
  padding: 18px 16px 17px 0;
  border-bottom: 1px solid #dcd9d2;
}

.case-facts div:nth-child(odd) {
  border-right: 1px solid #dcd9d2;
}

.case-facts div:nth-child(even) {
  padding-left: 18px;
}

.case-facts dt {
  margin-bottom: 7px;
  color: #8e795d;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.case-facts dd {
  margin: 0;
  color: #26333a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.case-detail-grid .media-frame {
  aspect-ratio: 4 / 3;
}

.case-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 36px;
}

.case-card {
  background: var(--color-white);
  border: 1px solid #ddd9d1;
}

.case-card__media {
  aspect-ratio: 16 / 10;
}

.case-card__content {
  padding: 30px 32px 34px;
}

.case-card__content h3 {
  margin-bottom: 10px;
}

.case-card__content > p:not(.eyebrow) {
  margin-bottom: 0;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 0;
  color: #687278;
  font-size: 12px;
  list-style: none;
}

.case-meta li::before {
  content: "—";
  margin-right: 6px;
  color: var(--color-warm);
}

/* =========================================================
   Reasons and reviews
   ========================================================= */
.reasons {
  background: #fbfaf7;
}

.reasons-grid {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 76px;
}

.reasons-media {
  min-height: 760px;
}

.reasons-media img {
  object-position: 67% center;
}

.reason-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #cfcac0;
  list-style: none;
}

.reason-list li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  padding: 26px 0;
  border-bottom: 1px solid #cfcac0;
}

.reason-list > li > span {
  color: var(--color-warm);
  font-family: var(--font-serif-en);
  font-size: 25px;
  line-height: 1;
}

.reason-list h3 {
  margin-bottom: 7px;
  font-size: 19px;
}

.reason-list p {
  margin-bottom: 0;
  color: #616c71;
  font-size: 14px;
  line-height: 1.75;
}

.reviews {
  background: var(--color-white);
}

.review-summary {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 30px;
  padding: 20px 24px;
  background: #f6f4ee;
  border-left: 3px solid var(--color-accent);
}

.review-summary strong {
  color: var(--color-heading);
  font-size: 20px;
  font-weight: 500;
}

.review-summary span,
.review-summary small {
  color: var(--color-muted);
  font-size: 13px;
}

.review-summary small {
  margin-left: auto;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.review-card {
  min-height: 290px;
  margin: 0;
  padding: 34px 32px;
  background: #f6f4ee;
  border-top: 2px solid var(--color-accent);
}

.review-stars {
  color: var(--color-warm);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.review-card strong {
  display: block;
  margin: 22px 0 14px;
  color: #263238;
  font-size: 14px;
  font-weight: 500;
}

.review-card p {
  margin-bottom: 0;
  color: #29363c;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.85;
}

.review-card footer {
  margin-top: 22px;
  color: #788084;
  font-size: 11px;
}

/* =========================================================
   Pricing
   ========================================================= */
.pricing {
  background: var(--color-soft-gray);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.price-card {
  background: var(--color-white);
  border-top: 3px solid var(--color-accent);
}

.price-card__media {
  aspect-ratio: 16 / 10;
}

.price-card__content {
  padding: 28px 28px 32px;
}

.price-card__content h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.price-card__content > p:last-child {
  margin-bottom: 0;
  color: #687378;
  font-size: 13px;
  line-height: 1.75;
}

.price-message {
  min-height: 105px;
  margin-bottom: 16px;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.65;
}

.price-factors {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 35px;
  margin-top: 34px;
  padding: 30px 34px;
  background: var(--color-white);
}

.price-factors strong {
  color: var(--color-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

.price-factors ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  color: #59666c;
  font-size: 16px;
  line-height: 1.6;
  list-style: none;
}

.price-factors li::before {
  content: "\2022";
  margin-right: 8px;
  color: var(--color-warm);
}

/* =========================================================
   Flow and about
   ========================================================= */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid #cbc7be;
  border-left: 1px solid #cbc7be;
  list-style: none;
}

.flow-grid li {
  min-height: 245px;
  padding: 30px 24px;
  border-right: 1px solid #cbc7be;
  border-bottom: 1px solid #cbc7be;
}

.flow-grid span {
  display: block;
  margin-bottom: 45px;
  color: var(--color-warm);
  font-family: var(--font-serif-en);
  font-size: 25px;
  line-height: 1;
}

.flow-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.flow-grid p {
  margin-bottom: 0;
  color: #667176;
  font-size: 13px;
  line-height: 1.75;
}

.flow-note {
  margin: 22px 0 0;
  color: #59666b;
  font-size: 13px;
  text-align: right;
}

.about {
  background: var(--color-soft-green);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 76px;
  align-items: center;
}

.about-copy h2 {
  margin-bottom: 26px;
}

.about-copy > p:not(.eyebrow) {
  max-width: 575px;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0;
  border-top: 1px solid #bcc4c0;
  border-bottom: 1px solid #bcc4c0;
}

.about-points div {
  padding: 22px 18px 22px 0;
  border-right: 1px solid #bcc4c0;
}

.about-points div + div {
  padding-left: 18px;
}

.about-points div:last-child {
  border-right: 0;
}

.about-points dt {
  margin-bottom: 5px;
  color: #28353b;
  font-size: 18px;
  font-weight: 500;
}

.about-points dd {
  margin: 0;
  color: #657075;
  font-size: 16px;
  line-height: 1.6;
}

.about-media {
  min-height: 660px;
}

.about-media img {
  object-position: 66% center;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  background: #fbfaf7;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 42px;
  border-top: 1px solid #cbc8c0;
}

.faq-item {
  border-bottom: 1px solid #cbc8c0;
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  width: 100%;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  color: #263238;
  background: transparent;
  border: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  text-align: left;
  cursor: pointer;
}

.faq-question > span:first-child {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.faq-question b {
  color: var(--color-warm);
  font-family: var(--font-serif-en);
  font-weight: 500;
}

.faq-icon {
  width: 16px;
  height: 16px;
  position: relative;
  flex: 0 0 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--transition);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 0 46px 24px 32px;
}

.faq-answer p {
  margin: 0;
  color: #657075;
  font-size: 16px;
  line-height: 1.8;
}

/* =========================================================
   Service area
   ========================================================= */
.service-area {
  padding-block: 86px;
  color: var(--color-white);
  background: var(--color-dark);
}

.service-area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 70px;
  align-items: center;
}

.service-area .eyebrow {
  color: #c7aa80;
}

.service-area h2 {
  margin: 8px 0 20px;
  color: var(--color-white);
}

.service-area p:not(.eyebrow) {
  margin-bottom: 0;
  color: #c8d1d3;
  font-size: 14px;
}

.area-map {
  height: 250px;
  position: relative;
  background: var(--color-dark-soft);
  border: 1px solid #53666d;
}

.area-map__ring {
  width: 270px;
  height: 155px;
  position: absolute;
  left: 115px;
  top: 48px;
  border: 1px solid #71848a;
  border-radius: 50%;
  transform: rotate(-8deg);
}

.area-map__city {
  position: absolute;
  color: var(--color-white);
  font-size: 13px;
}

.area-map__city::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  background: #c7aa80;
  border-radius: 50%;
}

.area-map__city--okayama { left: 208px; top: 112px; }
.area-map__city--kurashiki { left: 95px; top: 145px; }
.area-map__city--setouchi { right: 63px; top: 92px; }
.area-map__city--soja { left: 145px; top: 58px; }

.area-map small {
  position: absolute;
  right: 20px;
  bottom: 15px;
  color: #aebcc0;
  font-size: 11px;
}

/* =========================================================
   Contact and form
   ========================================================= */
.contact {
  background: #f0ede5;
}

.contact-heading {
  max-width: 900px;
  margin-bottom: 58px;
}

.contact-heading h2 {
  margin-bottom: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.contact-channels {
  display: grid;
  gap: 12px;
}

.contact-channel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 22px 20px;
  color: #253138;
  background: var(--color-white);
  border: 1px solid #d7d4cd;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}

.contact-channel:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.contact-channel--primary {
  color: var(--color-white);
  background: var(--color-cta);
  border-color: var(--color-cta);
}

.contact-channel__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}

.contact-channel strong,
.contact-channel small {
  display: block;
}

.contact-channel strong {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 500;
}

.contact-channel small {
  color: inherit;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.78;
}

.contact-requirements {
  margin-top: 25px;
  padding: 24px;
  background: #e4e1d8;
}

.contact-requirements strong {
  display: block;
  margin-bottom: 12px;
  color: var(--color-heading);
  font-size: 20px;
  font-weight: 500;
}

.contact-requirements ol {
  margin: 0;
  padding-left: 20px;
  color: #5d696f;
  font-size: 16px;
  line-height: 1.9;
}

.estimate-form {
  padding: 34px 36px 38px;
  background: var(--color-white);
  border: 1px solid #d3d0c8;
}

.form-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dedbd4;
}

.form-heading h3 {
  margin: 0;
  font-size: 20px;
}

.form-heading span {
  color: #718086;
  font-size: 11px;
}

.form-field {
  margin-top: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: #334149;
  font-size: 20px;
  font-weight: 500;
}

.form-field label > span,
.form-field label > small {
  margin-left: 7px;
  color: #8c6d48;
  font-size: 10px;
  font-weight: 500;
}

.form-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--color-heading);
  background: #faf9f6;
  border: 1px solid #cbc8c0;
  border-radius: 0;
  font-size: 13px;
}

.form-field input::placeholder {
  color: #90989b;
}

.form-field input:user-invalid {
  border-color: #a75f52;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  margin-top: 24px;
  font-size: 20px;
  font-weight: 300;
}

.form-status {
  min-height: 1.8em;
  margin: 12px 0 0;
  color: var(--color-cta);
  font-size: 12px;
  text-align: center;
}

.form-status.is-error {
  color: #9b4639;
}

.form-privacy {
  margin: 4px 0 0;
  color: #81898c;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 48px 0 54px;
  color: #dbe0e1;
  background: #18262c;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #44545a;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  margin-bottom: 6px;
  color: var(--color-white);
  font-family: var(--font-serif-en);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.footer-brand span {
  color: #aeb9bc;
  font-size: 11px;
}

.footer-nav,
.footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.footer-nav a,
.footer-legal a {
  color: #d9dfe0;
  font-size: 12px;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-top: 24px;
  color: #89979b;
  font-size: 10px;
}

.footer-legal a {
  color: #89979b;
  font-size: 10px;
}

.mobile-fixed-cta {
  display: none;
}

/* =========================================================
   1024px - 1199px
   ========================================================= */
@media (max-width: 1199px) {
  :root {
    --section-space: 104px;
  }

  .container {
    width: calc(100% - 96px);
  }

  .site-brand__tagline {
    display: none;
  }

  .global-nav {
    gap: 17px;
  }

  .global-nav > a:not(.button) {
    font-size: 13px;
  }

  .header-cta {
    padding-inline: 16px;
    font-size: 13px;
  }

  .hero-paper {
    width: min(620px, 62%);
    padding-inline: 54px;
  }

  .hero-paper h1 {
    font-size: clamp(39px, 4.1vw, 50px);
  }

  .service-feature {
    grid-template-columns: 55% 45%;
  }

  .service-feature__content {
    padding: 42px;
  }

  .reasons-grid {
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 58px;
  }

  .about-grid,
  .service-area-grid {
    grid-template-columns: minmax(0, 1fr) 43%;
    gap: 56px;
  }

  .contact-grid {
    grid-template-columns: 38% minmax(0, 1fr);
    gap: 46px;
  }
}

/* =========================================================
   768px - 1024px
   The next whole-pixel threshold keeps exact device-width
   boundaries stable on displays with fractional DPR values.
   ========================================================= */
@media (max-width: 1025px) {
  .container {
    width: calc(100% - 80px);
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 38px;
  }

  .menu-button {
    display: flex;
  }

  .global-nav {
    display: none;
    position: absolute;
    left: 40px;
    right: 40px;
    top: 76px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 24px 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 16px 30px rgba(23, 32, 38, 0.12);
  }

  .global-nav.is-open {
    display: flex;
  }

  body.menu-open {
    overflow: hidden;
  }

  .global-nav > a:not(.button) {
    padding: 13px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
  }

  .global-nav .button {
    margin-top: 18px;
  }

  .hero-stage {
    min-height: 680px;
  }

  .hero-paper {
    width: 68%;
    padding: 46px 48px 58px;
  }

  .hero-paper h1 {
    font-size: clamp(37px, 4.6vw, 47px);
  }

  .section-heading {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .section-heading__body {
    display: block;
  }

  .section-heading__body > p {
    max-width: 560px;
    margin-top: 18px;
  }

  .problems-grid {
    grid-template-columns: 34% minmax(0, 1fr);
    gap: 46px;
  }

  .problem-list {
    grid-template-columns: 1fr;
  }

  .problem-item,
  .problem-item:nth-child(even) {
    min-height: auto;
    padding: 20px 0;
    border-right: 0;
  }

  .service-feature {
    grid-template-columns: 1fr 1fr;
  }

  .service-feature__content {
    padding: 34px;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-feature__body {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 44px;
  }

  .reasons-grid {
    grid-template-columns: 38% minmax(0, 1fr);
    gap: 46px;
  }

  .review-grid,
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }

  .review-card:last-child,
  .price-card:last-child {
    grid-column: 1 / -1;
  }

  .price-card:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) 40%;
    gap: 46px;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .about-points div,
  .about-points div + div {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid #bcc4c0;
  }

  .about-points div:last-child {
    border-bottom: 0;
  }

  .service-area-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .area-map__ring {
    left: 14%;
    width: 70%;
  }

  .area-map__city--okayama { left: 48%; }
  .area-map__city--kurashiki { left: 15%; }
  .area-map__city--setouchi { right: 8%; }
  .area-map__city--soja { left: 26%; }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 38px;
  }
}

/* =========================================================
   767px and below
   ========================================================= */
@media (max-width: 768px) {
  :root {
    --section-space: 80px;
  }

  html {
    scroll-padding-top: 16px;
  }

  body {
    padding-bottom: 72px;
    font-size: 16px;
    line-height: 1.8;
  }

  .container {
    width: calc(100% - 40px);
  }

  h1 {
    margin-bottom: 22px;
    font-size: 36px;
    line-height: 1.35;
  }

  h2 {
    font-size: 30px;
    line-height: 1.45;
  }

  #services-title,
  #technical-title,
  #reasons-title,
  #pricing-title,
  #flow-title {
    font-size: 30px;
  }

  .section-title-line {
    white-space: normal;
  }

  .problems-content h2 {
    font-size: 30px;
  }

  .problems-title-line {
    white-space: normal;
  }

  h3 {
    font-size: 21px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.8;
  }

  .eyebrow,
  .section-index {
    font-size: 11px;
  }

  .site-header {
    height: 72px;
  }

  .site-brand__logo {
    width: clamp(148px, 44vw, 180px);
  }

  .global-nav {
    left: 20px;
    right: 20px;
    top: 66px;
  }

  .button-group {
    align-items: stretch;
    flex-direction: column;
  }

  .button-group .button {
    width: 100%;
  }

  .inline-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    background: #f4f0e8;
  }

  .hero-stage {
    min-height: auto;
    overflow: visible;
    padding-bottom: 36px;
  }

  .hero-media {
    position: relative;
    inset: auto;
    height: min(74vw, 530px);
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero-overlay {
    min-height: 0;
    display: block;
    padding: 0;
  }

  .hero-paper {
    width: 100%;
    margin-top: -48px;
    padding: 38px 28px 50px;
  }

  .hero-paper .eyebrow {
    gap: 8px;
    margin-bottom: 22px;
    font-size: 10px;
  }

  .hero-paper h1 {
    margin-bottom: 20px;
    font-size: clamp(23px, 6.5vw, 29px);
    line-height: 1.45;
    letter-spacing: -0.07em;
  }

  .hero-paper .hero-title-line {
    white-space: nowrap;
  }

  .hero-paper .lead {
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-actions .button,
  .hero-actions .button--primary {
    width: 100%;
    min-width: 0;
  }

  .hero-instagram-link {
    font-size: 12px;
  }

  .hero-wordmark {
    display: none;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-item,
  .trust-item:first-child {
    min-height: 118px;
    padding: 22px 14px 22px 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .trust-item:nth-child(even) {
    border-right: 0;
  }

  .trust-item .trust-item__icon {
    left: 13px;
    top: 23px;
  }

  .trust-item strong {
    font-size: 14px;
  }

  .section-heading {
    display: block;
    margin-bottom: 38px;
  }

  .section-index {
    margin-bottom: 16px;
    padding-top: 0;
  }

  .section-heading__body > p {
    margin-top: 16px;
    font-size: 14px;
  }

  .problems {
    padding-block: 80px;
  }

  .problems-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .problems-media {
    min-height: 0;
    order: 2;
    aspect-ratio: 4 / 3;
  }

  .problems-content {
    display: contents;
  }

  .problems-content > .eyebrow,
  .problems-content > h2,
  .problems-content > p,
  .problem-list,
  .problems-content > .inline-cta {
    grid-column: 1;
  }

  .problems-content > .eyebrow { order: 0; margin-bottom: -22px; }
  .problems-content > h2 { order: 1; margin-bottom: -22px; }
  .problems-content > p { order: 1; margin-top: 0; }
  .problem-list { order: 3; margin-top: 0; }
  .problems-content > .inline-cta { order: 4; margin-top: 12px; }

  .problem-list {
    grid-template-columns: 1fr;
  }

  .problem-item,
  .problem-item:nth-child(even) {
    min-height: 0;
    padding: 20px 0;
    border-right: 0;
  }

  .service-feature,
  .service-card-grid,
  .detail-grid,
  .case-feature__body,
  .case-card-grid,
  .reasons-grid,
  .review-grid,
  .price-grid,
  .about-grid,
  .faq-grid,
  .service-area-grid,
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .service-feature__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .service-feature__content,
  .service-card__content,
  .case-card__content {
    padding: 28px 24px 32px;
  }

  .service-card-grid,
  .case-card-grid {
    gap: 20px;
  }

  .capability-grid {
    grid-template-columns: 1fr 1fr;
  }

  .capability-item {
    min-height: 112px;
    padding: 20px 16px;
  }

  .case-feature__media {
    aspect-ratio: 4 / 3;
  }

  .case-number {
    left: 18px;
    bottom: 18px;
    font-size: 14px;
  }

  .case-feature__body {
    gap: 34px;
    padding: 30px 22px 34px;
  }

  .case-intro h3 {
    font-size: 28px;
  }

  .case-feature__cta {
    width: 100%;
    min-width: 0;
  }

  .about__cta {
    width: 100%;
    min-width: 0;
  }

  .case-facts {
    grid-template-columns: 1fr;
  }

  .case-facts div,
  .case-facts div:nth-child(even) {
    padding: 16px 0;
    border-right: 0;
  }

  .case-detail-grid {
    gap: 8px;
  }

  .reasons-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .reason-list li {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .review-summary {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .review-summary small {
    width: 100%;
    margin-left: 0;
  }

  .review-card {
    min-height: 0;
  }

  .review-card:last-child,
  .price-card:last-child {
    grid-column: auto;
  }

  .price-card:last-child {
    display: block;
  }

  .price-message {
    min-height: 0;
  }

  .price-factors {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 26px 22px;
  }

  .price-factors ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .flow-grid li {
    min-height: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0 14px;
    padding: 24px 0;
    border-right: 0;
  }

  .flow-grid span {
    grid-row: 1 / 3;
    margin-bottom: 0;
  }

  .flow-grid h3 {
    margin-bottom: 6px;
  }

  .flow-note {
    text-align: left;
  }

  .about-grid {
    gap: 36px;
  }

  .about-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .faq-grid {
    gap: 0;
  }

  .faq-question {
    min-height: 82px;
  }

  .faq-answer {
    padding: 0 20px 24px 32px;
  }

  .service-area {
    padding-block: 72px;
  }

  .service-area-grid {
    gap: 36px;
  }

  .area-map {
    height: 230px;
  }

  .area-map__ring {
    left: 12%;
    top: 42px;
    width: 75%;
    height: 145px;
  }

  .area-map__city--okayama { left: 46%; top: 104px; }
  .area-map__city--kurashiki { left: 10%; top: 135px; }
  .area-map__city--setouchi { right: 5%; top: 84px; }
  .area-map__city--soja { left: 23%; top: 52px; }

  .contact-heading {
    margin-bottom: 42px;
  }

  .contact-grid {
    gap: 36px;
  }

  .estimate-form {
    padding: 28px 20px 30px;
  }

  .form-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .footer-main,
  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav,
  .footer-legal nav {
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .mobile-fixed-cta {
    min-height: 64px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 8px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 18px;
    color: var(--color-white);
    background: var(--color-cta);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(12, 31, 24, 0.24);
    text-decoration: none;
  }

  .mobile-fixed-cta span {
    font-size: 11px;
  }

  .mobile-fixed-cta strong {
    font-size: 16px;
    font-weight: 500;
  }

  body.menu-open .mobile-fixed-cta {
    display: none;
  }
}

/* Very narrow phones */
@media (max-width: 381px) {
  h1 {
    font-size: 34px;
  }

  .capability-grid,
  .price-factors ul {
    grid-template-columns: 1fr;
  }

  .trust-item strong {
    font-size: 14px;
  }

  .contact-channel {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding-inline: 14px;
  }

  .contact-channel__icon {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms;
  }
}

/* =========================================================
   WordPress / Blanky compatibility
   ========================================================= */
.inblue-site {
  margin: 0;
}

.inblue-site main,
.inblue-site header,
.inblue-site footer {
  max-width: none;
}

.admin-bar .site-header {
  top: 32px;
}

.case-feature__media .attachment-inblue-work-feature,
.case-card__media .attachment-large,
.case-detail-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.estimate-form .wpcf7,
.estimate-form .wpcf7-form {
  margin: 0;
}

.estimate-form .wpcf7-form-control-wrap {
  display: block;
}

.estimate-form .wpcf7-not-valid-tip,
.estimate-form .wpcf7-response-output,
.form-setup-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
}

.estimate-form .wpcf7-response-output {
  margin-inline: 0;
  padding: 12px 14px;
}

.estimate-form .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

.estimate-form .wpcf7-submit.form-submit,
.inblue-form-placeholder .form-submit {
  min-height: 64px;
  border: 1px solid var(--color-cta);
  color: var(--color-white);
  background: var(--color-cta);
  cursor: pointer;
}

.inblue-form-placeholder .form-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.form-setup-note {
  color: #8c6d48;
  text-align: center;
}

.entry-shell {
  min-height: 60vh;
  padding-block: 100px;
  background: var(--color-bg);
}

.entry-shell__inner {
  max-width: 900px;
}

.entry-shell__title {
  margin-bottom: 36px;
}

.series-case__inner {
  max-width: 980px;
  min-width: 0;
}

.series-case__header,
.series-case__facts,
.series-case__gallery,
.series-case__video,
.series-case__contact {
  margin-block: clamp(32px, 6vw, 72px);
}

.series-case__cover,
.series-case__photo-grid figure {
  margin: 0;
  min-width: 0;
}

.series-case [data-series-photo],
.series-case [data-series-photo] img {
  display: block;
  width: 100%;
}

.series-case [data-series-photo] {
  cursor: zoom-in;
}

.series-case__cover img {
  height: auto;
}

.series-case figcaption {
  margin-top: 10px;
  font-size: 14px;
}

.series-case__photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 24px;
}

.series-case__photo-grid img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #eeebe6;
}

.series-case__contact {
  padding: clamp(24px, 5vw, 48px);
  background: #eeebe6;
}

.series-case__contact h2,
.series-case__gallery h2,
.series-case__video h2,
.series-case__subheading {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 16px;
}

.series-case__gallery:has(.series-case__photo-grid > :only-child) .series-case__photo-grid {
  max-width: 680px;
}

@media (min-width: 769px) {
  .series-case__gallery[aria-labelledby="series-featured-gallery"] .series-case__photo-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .series-case__gallery[aria-labelledby="series-featured-gallery"] figure {
    grid-column: span 2;
  }

  .series-case__gallery[aria-labelledby="series-featured-gallery"] figure:nth-child(-n + 2) {
    grid-column: span 3;
  }
}

.series-photo-dialog {
  max-width: min(94vw, 1200px);
  max-height: 94vh;
  padding: 12px;
  border: 0;
  background: #fffdf8;
}

.series-photo-dialog::backdrop {
  background: rgba(16, 27, 31, 0.84);
}

.series-photo-dialog form {
  margin-bottom: 8px;
  text-align: right;
}

.series-photo-dialog img {
  display: block;
  max-height: 76vh;
  width: auto;
  object-fit: contain;
}

.entry-shell__content > * + * {
  margin-top: 1.4em;
}

.entry-list {
  display: grid;
  gap: 32px;
}

.entry-list article {
  padding: 30px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
