:root {
  --ink: #09203c;
  --muted: #09203c;
  --teal: #f6bd23;
  --teal-dark: #9a6500;
  --teal-soft: #fff6d8;
  --orange: #ff6b00;
  --orange-soft: #fff0e4;
  --line: #e5ecef;
  --paper: #ffffff;
  --soft: #fff6d8;
  --shadow: 0 18px 48px rgba(9, 32, 60, 0.12);
  color: var(--ink);
  font-family:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, Arial,
    sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
  background: var(--soft);
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

@media (hover: hover) and (pointer: fine) {
  body.has-kamotech-cursor {
    cursor: none;
  }

  body.has-kamotech-cursor a,
  body.has-kamotech-cursor button,
  body.has-kamotech-cursor [role="button"],
  body.has-kamotech-cursor summary {
    cursor: none;
  }

  body.has-kamotech-cursor input,
  body.has-kamotech-cursor textarea,
  body.has-kamotech-cursor select {
    cursor: text;
  }

  .kamotech-cursor,
  .kamotech-cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    will-change: transform;
  }

  body.is-cursor-visible .kamotech-cursor,
  body.is-cursor-visible .kamotech-cursor-trail {
    opacity: 1;
  }

  .kamotech-cursor {
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    transition: opacity 160ms ease, filter 160ms ease;
  }

  .kamotech-cursor::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 14px;
    width: 30px;
    height: 4px;
    background: var(--teal);
    border-radius: 999px;
    box-shadow: 16px 0 0 rgba(246, 189, 35, 0.34);
    transform: rotate(-26deg);
    transform-origin: left center;
    transition: width 160ms ease, background 160ms ease, box-shadow 160ms ease;
  }

  .kamotech-cursor::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 18px;
    width: 8px;
    height: 8px;
    border-top: 3px solid var(--ink);
    border-right: 3px solid var(--ink);
    transform: rotate(45deg);
    transition: transform 160ms ease;
  }

  .kamotech-cursor__core {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 10px;
    height: 10px;
    background: var(--ink);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(246, 189, 35, 0.58);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  }

  .kamotech-cursor__spark {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--teal);
    border-radius: 50%;
    opacity: 0.88;
    animation: cursor-spark 900ms ease-in-out infinite;
  }

  .kamotech-cursor__spark.spark-a {
    top: -2px;
    left: 5px;
  }

  .kamotech-cursor__spark.spark-b {
    right: -3px;
    bottom: 1px;
    animation-delay: 180ms;
  }

  .kamotech-cursor-trail {
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    background: rgba(246, 189, 35, 0.56);
    border-radius: 999px;
    transition: opacity 180ms ease, width 160ms ease, height 160ms ease;
  }

  .kamotech-cursor-trail.trail-2 {
    width: 6px;
    height: 6px;
    background: rgba(255, 107, 0, 0.42);
  }

  .kamotech-cursor-trail.trail-3,
  .kamotech-cursor-trail.trail-4,
  .kamotech-cursor-trail.trail-5,
  .kamotech-cursor-trail.trail-6 {
    width: 4px;
    height: 4px;
    background: rgba(246, 189, 35, 0.32);
  }

  body.is-cursor-interactive .kamotech-cursor {
    filter: drop-shadow(0 10px 18px rgba(9, 32, 60, 0.18));
  }

  body.is-cursor-interactive .kamotech-cursor::before {
    width: 42px;
    background: var(--ink);
    box-shadow: 18px 0 0 rgba(246, 189, 35, 0.55);
  }

  body.is-cursor-interactive .kamotech-cursor::after {
    transform: rotate(45deg) translate(2px, -2px);
  }

  body.is-cursor-interactive .kamotech-cursor__core {
    transform: scale(1.75);
    background: var(--teal);
    box-shadow: 0 0 0 2px var(--ink), 0 0 0 8px rgba(246, 189, 35, 0.18);
  }

  body.is-cursor-pressed .kamotech-cursor__core {
    transform: scale(1.25);
    background: var(--orange);
  }

  .kamotech-cursor-burst {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9998;
    width: 1px;
    height: 1px;
    pointer-events: none;
  }

  .kamotech-cursor-burst::before {
    content: "";
    position: absolute;
    left: -12px;
    top: -12px;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(246, 189, 35, 0.72);
    border-radius: 999px;
    animation: cursor-ring-burst 560ms ease-out forwards;
  }

  .kamotech-cursor-burst__dot {
    position: absolute;
    left: -3px;
    top: -3px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 0 0 2px rgba(246, 189, 35, 0.18);
    animation: cursor-dot-burst 520ms ease-out forwards;
  }

  .kamotech-cursor-burst__dot:nth-child(2n) {
    background: var(--teal);
  }

  @keyframes cursor-spark {
    0%,
    100% {
      transform: translate3d(0, 0, 0) scale(0.7);
      opacity: 0.38;
    }

    45% {
      transform: translate3d(4px, -5px, 0) scale(1.08);
      opacity: 0.95;
    }
  }

  @keyframes cursor-ring-burst {
    0% {
      transform: scale(0.4);
      opacity: 0.8;
    }

    100% {
      transform: scale(2.5);
      opacity: 0;
    }
  }

  @keyframes cursor-dot-burst {
    0% {
      transform: rotate(var(--angle)) translateX(0) scale(1);
      opacity: 0.95;
    }

    100% {
      transform: rotate(var(--angle)) translateX(var(--distance)) scale(0.35);
      opacity: 0;
    }
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 98px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 0;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 160px;
}

.brand strong {
  display: block;
  font-size: clamp(18px, 1.6vw, 25px);
  font-weight: 900;
  line-height: 1.1;
}

.brand small,
.tel small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.brand-logo {
  width: 190px;
  height: 70px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.global-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 38px);
  color: #101010;
  font-size: clamp(17px, 1.15vw, 19px);
  font-weight: 900;
  white-space: nowrap;
}

.global-nav a {
  position: relative;
  padding: 10px 0;
}

.global-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 3px;
  background: var(--teal);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.global-nav a:hover::after {
  transform: scaleX(1);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 172px;
}

.tel > span:first-child {
  color: var(--ink);
}

.tel strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(9, 32, 60, 0.15);
}

.button-orange {
  color: #fff;
  background: var(--orange);
}

.button-teal {
  color: var(--ink);
  background: var(--teal);
}

.button-outline {
  color: var(--ink);
  background: #fff;
  border-color: var(--orange);
}

.button-large {
  min-height: 62px;
  min-width: min(100%, 296px);
  padding: 0 28px;
  font-size: 17px;
}

.header-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: currentColor;
}

.phone-icon::before {
  content: "☎";
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.mail-icon::before {
  content: "";
  position: absolute;
  inset: 2px 0;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.mail-icon::after {
  content: "";
  position: absolute;
  right: 3px;
  left: 3px;
  top: 5px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.note-icon::before {
  content: "";
  position: absolute;
  inset: 1px 3px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.note-icon::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 6px;
  left: 6px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 3px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  --hero-copy-x: 0px;
  --hero-copy-y: 0px;
  --hero-media-x: 0px;
  --hero-media-y: 0px;
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(560px, 1.14fr);
  min-height: 650px;
  overflow: hidden;
  background: #fff8e6;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: clamp(56px, 7vw, 86px) 0 64px clamp(26px, 6vw, 86px);
  transform: translate3d(var(--hero-copy-x), var(--hero-copy-y), 0);
  transition: transform 420ms ease;
}

.hero-copy > * {
  animation: hero-copy-in 700ms ease both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 100ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 190ms;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 280ms;
}

.area-label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  color: var(--teal-dark);
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 900;
  line-height: 1.4;
}

.area-label::before,
.area-label::after {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--teal);
  border-radius: 3px;
  transform: rotate(56deg);
}

.area-label::after {
  transform: rotate(-56deg);
}

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

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(50px, 6.1vw, 92px);
  font-weight: 950;
  line-height: 1.12;
}

.hero h1 span {
  display: inline-block;
  color: var(--orange);
  padding: 0 8px;
  background: var(--orange-soft);
}

.hero-mascot {
  display: inline-block;
  width: clamp(62px, 8vw, 112px);
  height: auto;
  margin: 0 10px 0 14px;
  opacity: 0.72;
  vertical-align: -0.18em;
  mix-blend-mode: multiply;
  animation: mascot-float 4.6s ease-in-out infinite;
}

.kamopon {
  position: absolute;
  width: clamp(70px, 7vw, 116px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0;
  opacity: 0.36;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

.kamopon-hero {
  right: clamp(18px, 4vw, 54px);
  bottom: 22px;
  z-index: 0;
  opacity: 0.26;
  transform-origin: 50% 90%;
  animation: kamopon-wave 5.4s ease-in-out infinite;
}

.hero-copy > :not(.kamopon) {
  position: relative;
  z-index: 1;
}

.kamopon-media {
  right: clamp(24px, 4vw, 64px);
  top: clamp(30px, 5vw, 74px);
  z-index: 2;
  width: clamp(58px, 6vw, 92px);
  opacity: 0.22;
  transform: rotate(10deg);
  animation: kamopon-bob 4.8s ease-in-out infinite;
}

.hero-lead {
  max-width: min(100%, 760px);
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 700;
  line-height: 1.9;
}

.hero-lead span {
  display: block;
  white-space: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-media {
  position: relative;
  z-index: 0;
  min-height: 650px;
  overflow: hidden;
  background: #fff;
  transform: translate3d(var(--hero-media-x), var(--hero-media-y), 0) scale(1.01);
  transition: transform 420ms ease;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -140px;
  z-index: 1;
  width: 340px;
  background: rgba(255, 255, 255, 0.88);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 650px;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.045);
  transition:
    opacity 900ms ease,
    transform 4800ms ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.area-badge {
  position: absolute;
  right: clamp(22px, 5vw, 78px);
  bottom: 72px;
  display: grid;
  place-items: center;
  width: 246px;
  height: 246px;
  padding: 30px;
  color: var(--teal-dark);
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  transition: transform 420ms ease;
  animation: badge-float 5.2s ease-in-out infinite;
}

.pin-icon {
  position: relative;
  width: 36px;
  height: 40px;
}

.pin-icon::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--teal);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.pin-icon::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.area-badge small {
  font-size: 18px;
  font-weight: 900;
}

.area-badge strong {
  font-size: 24px;
  line-height: 1.58;
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mascot-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes badge-float {
  0%,
  100% {
    transform: translate3d(calc(var(--hero-media-x) * -0.45), calc(var(--hero-media-y) * -0.45), 0) translateY(0);
  }
  50% {
    transform: translate3d(calc(var(--hero-media-x) * -0.45), calc(var(--hero-media-y) * -0.45), 0) translateY(-10px);
  }
}

@keyframes kamopon-wave {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  45% {
    transform: rotate(7deg) translateY(-8px);
  }
  65% {
    transform: rotate(-3deg) translateY(-4px);
  }
}

@keyframes kamopon-bob {
  0%,
  100% {
    transform: rotate(10deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-10px);
  }
}

@keyframes kamopon-peek {
  0%,
  100% {
    transform: translateY(18px) rotate(-12deg);
  }
  50% {
    transform: translateY(2px) rotate(-7deg);
  }
}

@keyframes kamopon-walk {
  0%,
  100% {
    transform: translateX(0) rotate(6deg);
  }
  50% {
    transform: translateX(-10px) rotate(-5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.service-band,
.points,
.faq-section,
.case-faq-grid,
.company-contact,
.contact-section,
.service-detail {
  width: min(100% - 24px, 1880px);
  margin-right: auto;
  margin-left: auto;
}

.service-band {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.05fr repeat(4, minmax(0, 1fr));
  min-height: 148px;
  margin-top: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
}

.section-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 28px clamp(24px, 3vw, 44px);
}

.section-label span,
.mini-label {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.section-label h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.service-band .section-label span {
  font-size: clamp(20px, 1.7vw, 28px);
  letter-spacing: 0.2em;
}

.service-band .section-label h2 {
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1.2;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 20px;
  min-width: 0;
  padding: 28px clamp(20px, 2.1vw, 34px);
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  border: 0;
  cursor: pointer;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.service-card.is-active {
  background: var(--paper);
  box-shadow:
    inset 0 0 0 3px #111,
    0 14px 28px rgba(9, 32, 60, 0.14);
  transform: translateY(-2px);
}

.service-card:hover {
  background: #fff;
  box-shadow: 0 18px 34px rgba(9, 32, 60, 0.12);
  transform: translateY(-4px);
}

.service-card.is-active:hover {
  box-shadow:
    inset 0 0 0 3px #111,
    0 18px 34px rgba(9, 32, 60, 0.16);
}

.service-icon {
  position: relative;
  grid-row: span 2;
  width: 50px;
  height: 50px;
  color: var(--teal);
  line-height: 1;
  transform: scale(1.04);
  transform-origin: center;
}

.icon-repair::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 4px;
  width: 9px;
  height: 40px;
  background: currentColor;
  border-radius: 6px;
  transform: rotate(42deg);
}

.icon-repair::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 18px;
  height: 18px;
  border: 6px solid currentColor;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-24deg);
}

.icon-maintenance::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 9px solid currentColor;
  border-radius: 50%;
}

.icon-maintenance::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(currentColor 0 0) center top / 8px 12px no-repeat,
    linear-gradient(currentColor 0 0) center bottom / 8px 12px no-repeat,
    linear-gradient(90deg, currentColor 0 8px, transparent 8px calc(100% - 8px), currentColor calc(100% - 8px)) center / 100% 8px no-repeat;
  border-radius: 50%;
}

.icon-inspection::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 6px solid currentColor;
  border-radius: 8px;
}

.icon-inspection::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 22px;
  height: 12px;
  border-left: 6px solid currentColor;
  border-bottom: 6px solid currentColor;
  transform: rotate(-45deg);
}

.icon-factory::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 5px;
  width: 40px;
  height: 26px;
  background: #f3c54a;
  clip-path: polygon(0 100%, 0 48%, 24% 62%, 24% 42%, 50% 58%, 50% 35%, 100% 58%, 100% 100%);
}

.icon-factory::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 12px;
  width: 6px;
  height: 6px;
  background: #fff;
  box-shadow: 12px 0 0 #fff, 24px 0 0 #fff;
}

.service-card strong {
  min-width: 0;
  font-size: clamp(21px, 1.55vw, 26px);
  font-weight: 900;
  line-height: 1.25;
}

.service-card small {
  min-width: 0;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 700;
  line-height: 1.45;
}

.service-detail {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 28px;
  align-items: center;
  margin-top: 0;
  overflow: hidden;
  width: min(100% - 24px, 1880px);
  padding: clamp(30px, 3.4vw, 52px);
  background: #fff8df;
  border: 0;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: none;
}

.service-detail::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 10px;
  background: transparent;
  border-radius: 0 999px 999px 0;
}

.service-detail > div {
  position: relative;
  z-index: 1;
}

.service-detail h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.2vw, 46px);
}

.service-detail p:not(.mini-label) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;
}

.service-detail img {
  position: relative;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.service-detail img.kamopon-service {
  position: absolute;
  right: clamp(24px, 4vw, 60px);
  bottom: -24px;
  width: clamp(70px, 6vw, 102px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0;
  opacity: 0.2;
  transform-origin: center bottom;
  animation: kamopon-peek 5.8s ease-in-out infinite;
}

.points {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, 1fr);
  gap: 0;
  width: min(100% - 24px, 1880px);
  margin-top: 44px;
  padding-top: 14px;
  overflow: hidden;
  background: var(--teal-soft);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.points article {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 250px;
  overflow: hidden;
  padding: 32px 36px;
  background: rgba(255, 255, 255, 0.82);
  border: 0;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.points article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--point-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.points article::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.58);
  opacity: 0;
  transition: opacity 180ms ease;
}

.points article:hover,
.points article:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  outline: 0;
  transform: translateY(-2px);
}

.points article:hover::before {
  opacity: 0.46;
}

.points article:hover::after {
  opacity: 1;
}

.points .section-label {
  position: relative;
  min-height: 250px;
  padding: clamp(34px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.72);
  border: 0;
}

.points .section-label span {
  position: relative;
  z-index: 1;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: 0.22em;
}

.points .section-label h2 {
  position: relative;
  z-index: 1;
  max-width: 320px;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.18;
}

.point-mascot {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(18px, 3vw, 40px);
  width: clamp(98px, 12vw, 170px);
  height: auto;
  border-radius: 0;
  opacity: 0.2;
  mix-blend-mode: multiply;
  animation: kamopon-bob 6.2s ease-in-out infinite;
}

.point-number {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--teal);
  font-size: 48px;
  font-weight: 950;
  line-height: 1;
}

.points strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  font-size: 24px;
  font-weight: 950;
}

.points p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.case-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: min(100% - 24px, 1880px);
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 0;
  background: var(--teal-soft);
  border-radius: 8px;
}

.faq-section {
  position: relative;
  overflow: hidden;
  width: min(100% - 24px, 1880px);
  margin-top: 12px;
  padding: 0;
  background: var(--teal-soft);
  border-radius: 8px;
}

.faq-section .faq-card {
  position: relative;
  max-width: none;
  margin: 0 auto;
  overflow: hidden;
}

.case-card,
.faq-card,
.company-contact,
.company-panel,
.contact-box {
  background: var(--paper);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.case-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 28px;
  align-items: center;
  min-height: 280px;
  padding: 34px;
}

.case-card h2,
.faq-card h2,
.company-contact h2,
.company-panel h2,
.contact-box h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.3;
}

.case-card p:not(.mini-label),
.company-contact p,
.company-panel p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.8;
}

.case-card p:not(.mini-label) {
  font-size: clamp(17px, 1.15vw, 20px);
}

.case-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.case-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
}

.case-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 10px;
  padding: 9px 18px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid #111;
  border-radius: 999px;
  box-shadow: 4px 4px 0 #111;
  font-size: clamp(16px, 1.05vw, 18px);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.case-card a::after {
  content: "→";
  margin-left: 8px;
}

.case-card a:hover {
  background: #ffd95a;
  box-shadow: 6px 6px 0 #111;
  transform: translate(-2px, -2px);
}

.case-card img {
  height: 230px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.case-card img.kamopon-case {
  position: absolute;
  right: clamp(458px, 27vw, 520px);
  bottom: 26px;
  z-index: 0;
  width: clamp(58px, 5.5vw, 88px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0;
  opacity: 0.2;
  transform: rotate(6deg);
  animation: kamopon-walk 5.2s ease-in-out infinite;
}

.case-card > *:not(.kamopon) {
  position: relative;
  z-index: 1;
}

.public-case-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 40px;
}

.public-case-card {
  overflow: hidden;
  background: var(--paper);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(9, 32, 60, 0.08);
  color: inherit;
  transition:
    background 180ms ease;
}

.public-case-card:hover {
  background: #fff;
}

.public-case-card,
.public-case-card:hover,
.public-case-card:focus-within {
  transform: none !important;
  translate: none !important;
}

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

.public-case-card div {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 24px 22px 26px;
}

.public-case-card span,
.admin-case-row span {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.public-case-date {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.public-case-card h3,
.admin-case-row h3 {
  margin: 10px 0 14px;
  color: var(--ink);
  font-size: clamp(18px, 1.2vw, 20px);
  line-height: 1.45;
}

/* メンバーカードの「作成中」表示：イラスト全体に大きく重ねるスタンプ風
   （プロフィール完成後は company.html のバッジ行を削除するだけ） */
.member-card .member-wip-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: rgba(15, 23, 42, 0.45);
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-indent: 0.25em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* トップの工事事例カードのタイトル：しっかり目立つ大きさ＋最大2行（高さをそろえる） */
.top-case-list .public-case-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(2em * 1.4);
}

.public-case-card p,
.admin-case-row p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 0.95vw, 15px);
  font-weight: 700;
  line-height: 1.85;
}

.case-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 40px;
  margin-top: auto;
  padding: 8px 16px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid #111;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.case-detail-link::after {
  content: "→";
  width: auto;
  height: auto;
  background: transparent;
  font-size: 1.05em;
}

.case-detail-link:hover {
  background: #ffd95a;
  transform: none;
}

.top-case-more {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-height: 52px;
  margin-top: 4px;
  padding: 0 28px;
  color: var(--ink);
  background: var(--teal);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
}

.faq-card {
  padding: clamp(28px, 3.4vw, 48px);
}

.faq-question {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  margin-top: 10px;
  padding: 0 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
  text-align: left;
}

.faq-question span {
  position: relative;
  z-index: 1;
  align-self: center;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  border-bottom: 1px solid var(--line);
  transition: grid-template-rows 180ms ease;
}

.faq-answer p {
  min-height: 0;
  margin: 0;
  padding: 0 4px;
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  grid-template-rows: 1fr;
  padding-bottom: 12px;
}

.company-contact {
  position: relative;
  overflow: hidden;
  width: min(100% - 24px, 1880px);
  margin-top: 12px;
  padding: 0;
  background: var(--teal-soft);
  border-radius: 8px;
}

.company-panel {
  position: relative;
  padding: clamp(32px, 3.8vw, 56px);
  overflow: hidden;
  background: var(--paper);
}

.company-panel > * {
  position: relative;
  z-index: 1;
}

.contact-title h2 {
  margin-bottom: 0;
}

.contact-section {
  position: relative;
  overflow: hidden;
  width: min(100% - 24px, 1880px);
  margin-top: 12px;
  padding: 0;
  background: var(--teal-soft);
  border-radius: 8px;
}

.contact-box {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: none;
  margin: 0 auto;
  padding: clamp(28px, 3.4vw, 48px);
  overflow: hidden;
  box-shadow: none;
}

.contact-box > * {
  position: relative;
  z-index: 1;
}

.contact-intro {
  margin: -4px 0 2px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.8;
}

.contact-intro strong {
  display: block;
  margin-top: 8px;
  color: #e60012;
}

.top-contact-section {
  background: var(--teal-soft);
}

.top-contact-box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 34px);
  align-items: center;
  padding: clamp(28px, 3vw, 46px);
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}

.top-contact-box > * {
  position: relative;
  z-index: 1;
}

.top-contact-copy {
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.top-contact-box .contact-title h2 {
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1.1;
}

.top-contact-box .contact-intro {
  max-width: 620px;
  margin: 0;
}

.top-contact-actions {
  display: grid;
  grid-template-columns: minmax(300px, 520px) minmax(260px, 360px);
  gap: 16px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.top-contact-tel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-items: center;
  min-height: 86px;
  padding: 18px 24px;
  color: var(--ink);
  background: var(--teal-soft);
  border: 3px solid var(--teal);
  border-radius: 8px;
  text-decoration: none;
}

.top-contact-actions > .button {
  min-height: 86px;
  padding-inline: 24px;
}

.top-contact-tel span {
  grid-row: span 2;
  font-size: 32px;
  line-height: 1;
}

.top-contact-tel strong {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  white-space: nowrap;
}

.top-contact-tel small {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.company-data {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.company-data div {
  display: grid;
  grid-template-columns: 170px 1fr;
  border-top: 0;
}

.company-data div:first-child {
  border-top: 0;
}

.company-data dt,
.company-data dd {
  margin: 0;
  padding: 16px 22px;
  font-size: 19px;
  line-height: 1.5;
}

.company-data dt {
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.company-data dd {
  color: var(--muted);
  font-weight: 800;
}

.member-intro {
  margin-top: clamp(22px, 2.4vw, 32px);
  padding-top: clamp(18px, 2.3vw, 28px);
  border-top: 1px solid var(--line);
}

.member-intro h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.25;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.member-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(246, 189, 35, 0.32);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(9, 32, 60, 0.07);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.member-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 5px;
  background: var(--teal);
  border-radius: 999px 999px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.member-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 代表の本人写真は頭が切れないよう、上を基準に切り取る（下側が切れるのはOK） */
.member-card img[src*="company-daihyo"] {
  object-position: top;
}

.member-card img {
  transition:
    filter 240ms ease,
    transform 320ms ease;
}

.member-card:hover {
  border-color: rgba(246, 189, 35, 0.72);
  box-shadow: 0 24px 48px rgba(9, 32, 60, 0.14);
  transform: translateY(-8px);
}

.member-card:hover::after {
  transform: scaleX(1);
}

.member-card:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

@media (prefers-reduced-motion: reduce) {
  .member-card,
  .member-card::after,
  .member-card img {
    transition: none;
  }

  .member-card:hover,
  .member-card:hover img {
    transform: none;
  }
}

.member-card > div {
  padding: 15px;
}

.member-card span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.member-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.member-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.member-card dt,
.member-card dd {
  margin: 0;
  font-weight: 800;
  line-height: 1.65;
}

.member-card dt {
  color: var(--teal-dark);
  font-size: 13px;
}

.member-card dd {
  color: var(--ink);
  font-size: 15px;
}

.contact-box label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.contact-box label b,
.radio-group b,
.agree-check b {
  color: #e60012;
}

.contact-box input:not([type="radio"]):not([type="checkbox"]),
.contact-box textarea {
  width: 100%;
  border: 1px solid #cfdee2;
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--ink);
  background: #f9fcfc;
  outline: none;
  font-size: 16px;
  font-weight: 800;
}

.contact-box input:not([type="radio"]):not([type="checkbox"]):focus,
.contact-box textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(246, 189, 35, 0.22);
}

.contact-box input::placeholder,
.contact-box textarea::placeholder {
  color: #a7adb3;
}

.radio-group {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.radio-group legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.radio-group label,
.agree-check {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
}

.radio-group input,
.agree-check input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--teal);
}

.privacy-box {
  max-height: 190px;
  overflow: auto;
  padding: 20px;
  color: var(--ink);
  background: #f6f6f6;
  border-radius: 8px;
}

.privacy-box p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

.privacy-box p + p {
  margin-top: 14px;
}

.contact-box .button {
  width: 100%;
  border: 0;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.sub-page-main {
  width: min(100% - 24px, 1880px);
  margin: 0 auto;
  padding: 16px 0 24px;
}

body:has(.company-page-hero) .sub-page-main {
  background: #fff;
}

.contact-page-main {
  background: #fff;
}

.case-study-main {
  width: 100%;
  padding-top: 0;
}

.sub-page-hero {
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.sub-page-hero h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.1;
}

.sub-page-hero p:not(.mini-label) {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.8;
}

.contact-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(22px, 3vw, 38px);
}

.contact-page-hero h1 {
  font-size: clamp(38px, 4.2vw, 60px);
}

.contact-page-hero p:not(.mini-label) {
  font-size: clamp(15px, 1.15vw, 17px);
}

.contact-page-hero > img {
  width: clamp(96px, 14vw, 170px);
  height: auto;
  mix-blend-mode: multiply;
}

.contact-page-info {
  width: min(100% - 24px, 1040px);
  margin: 16px auto 0;
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--teal-soft);
  border: 3px solid var(--teal);
  border-radius: 8px;
}

.contact-page-info div {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.contact-page-info p,
.contact-page-info small {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.contact-page-info a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 950;
  line-height: 1.05;
  text-decoration: none;
}

.contact-page-info a span {
  color: var(--ink);
  font-size: 0.72em;
}

.contact-page-section {
  width: min(100% - 24px, 1880px);
  margin: 18px auto 0;
  background: #fff;
  border: 0;
}

.case-page-section {
  position: relative;
  width: min(100% - 12px, 1880px);
  margin: 28px auto 0;
  padding: clamp(24px, 3vw, 44px);
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}

.case-page-list {
  position: relative;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 24px;
  align-items: stretch;
}

.case-page-list .public-case-card {
  background: #fff;
  border: 2px solid #1f1f1f;
  border-radius: 4px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-page-list .public-case-card:hover {
  background: #fff;
  box-shadow: none;
}

.case-page-list .public-case-card img {
  flex: 0 0 auto;
  height: 220px;
  border-radius: 0;
}

.case-page-list .public-case-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-height: 150px;
  padding: 18px 18px 18px;
  text-align: center;
}

.case-page-list .public-case-date {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 950;
}

.case-page-list .public-case-card span,
.case-page-list .public-case-card p {
  display: none;
}

.case-page-list .public-case-card h3 {
  margin: 0;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.36;
  text-wrap: balance;
}

.case-page-list .case-detail-link {
  margin-top: auto;
  color: var(--ink);
  font-size: 15px;
}

.case-page-list .case-detail-link::after {
  display: inline;
  width: auto;
  height: auto;
  background: transparent;
}

.case-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
}

.case-pagination button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: #fff;
  border: 2px solid #111;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.case-pagination button.is-active {
  background: var(--teal);
}

.case-pagination-ellipsis {
  color: var(--teal-dark);
  font-size: 22px;
  font-weight: 950;
}

.case-filter {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.case-filter button {
  position: relative;
  min-width: 168px;
  min-height: 50px;
  padding: 0 24px;
  color: var(--ink);
  background: #fffdf6;
  border: 2px solid #1f1f1f;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateY(0);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.case-filter button.is-active {
  color: var(--ink);
  background: var(--teal);
}

.case-filter button:focus-visible {
  outline: 4px solid rgba(247, 184, 32, 0.34);
  outline-offset: 4px;
}

@media (hover: hover) {
  .case-filter button:hover {
    background: #fff3c2;
    box-shadow: 0 8px 0 #1f1f1f, 0 16px 28px rgba(2, 22, 44, 0.16);
    transform: translateY(-6px);
  }

  .case-filter button.is-active:hover {
    background: #ffd04d;
  }
}

.case-study-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  width: min(100% - 24px, 1880px);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px);
  overflow: hidden;
  background: var(--teal-soft);
}

.case-study-hero h1 {
  font-size: clamp(46px, 5.4vw, 82px);
}

.case-study-hero p:not(.mini-label) {
  max-width: 780px;
  font-size: clamp(17px, 1.25vw, 21px);
}

.case-hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  grid-template-rows: auto auto;
  gap: 16px;
  align-items: end;
  min-height: 0;
}

.case-hero-visual img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.case-hero-visual img:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / 3;
  height: 250px;
}

.case-hero-visual img:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  height: 205px;
  transform: translateY(24px);
}

.case-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 40px 20px;
  color: var(--muted);
  background: #fff;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
}

.case-detail {
  padding: clamp(28px, 4vw, 54px);
  background: #fff;
  border-radius: 8px;
}

.case-detail h1 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.15;
}

.case-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: start;
}

.case-detail-info {
  padding: clamp(22px, 3vw, 36px);
  background: var(--soft-yellow);
  border-radius: 8px;
}

.case-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 900;
}

.case-detail-meta span {
  padding: 8px 14px;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
}

.case-detail-image {
  width: 100%;
  height: min(42vw, 520px);
  min-height: 320px;
  object-fit: cover;
  border-radius: 8px;
}

.case-detail-photo {
  margin: 0;
}

.case-detail-body {
  margin-top: 0;
}

.case-detail-body h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 42px);
}

.case-detail-body p,
.case-detail-text {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.9;
}

.case-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

@media (max-width: 820px) {
  .case-detail-layout {
    grid-template-columns: 1fr;
  }

  .case-detail-info {
    order: 2;
  }

  .case-detail-photo {
    order: 1;
  }

  .case-detail-image {
    height: auto;
    max-height: 420px;
    min-height: 0;
  }
}

.company-page-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.company-page-hero > img {
  width: clamp(96px, 14vw, 170px);
  height: auto;
  mix-blend-mode: multiply;
}

.company-message,
.company-page-card {
  margin-top: 6px;
  padding: clamp(28px, 3.6vw, 48px);
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.company-message h2,
.company-page-card h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.25;
}

.company-message p:not(.mini-label),
.company-sign {
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.75;
}

.company-sign {
  margin: 16px 0 0;
  color: var(--ink);
  text-align: right;
}

.company-message-layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
}

.company-message-layout > img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.company-message-layout p {
  margin: 0;
}

.company-message-layout p + p {
  margin-top: 10px;
}

.company-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.company-data-wide div {
  grid-template-columns: 230px 1fr;
}

.company-equipment {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
}

.company-cta {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 6px;
  padding: clamp(26px, 4vw, 48px);
  color: var(--ink);
  text-align: center;
  background: var(--teal-soft);
  border-radius: 8px;
}

.company-cta h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.2;
}

.company-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.license-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.license-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.license-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
}

.admin-page {
  min-height: 100vh;
  background: #fff;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 0;
  backdrop-filter: blur(14px);
}

.admin-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-main {
  width: min(100% - 24px, 1880px);
  margin: 0 auto;
  padding: 20px 0 32px;
}

.admin-hero {
  margin-bottom: 12px;
  padding: clamp(34px, 4vw, 58px);
  background: var(--teal-soft);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.admin-hero h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: 1.15;
}

.admin-hero p:not(.mini-label) {
  max-width: 1080px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.8;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(560px, 0.95fr) minmax(620px, 1.05fr);
  gap: 14px;
  align-items: start;
}

.admin-faq-layout {
  margin-top: 16px;
}

.admin-form,
.admin-list-panel {
  display: grid;
  gap: 18px;
  padding: clamp(30px, 3.4vw, 48px);
  background: var(--paper);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.admin-form-heading,
.admin-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-form-heading h2,
.admin-list-heading h2 {
  margin: 0;
  font-size: clamp(32px, 3vw, 44px);
}

.admin-form label {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.admin-form b {
  color: #e60012;
}

.admin-form input:not([type="checkbox"]):not([type="file"]),
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 20px 22px;
  color: var(--ink);
  background: #f9fcfc;
  border: 1px solid #cfdee2;
  border-radius: 8px;
  outline: none;
  font-size: 18px;
  font-weight: 800;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(246, 189, 35, 0.22);
}

.admin-image-preview {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #fffdf6;
  border: 0;
  border-radius: 8px;
}

.admin-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-form-actions .button {
  width: 100%;
  border: 2px solid var(--orange);
}

.admin-case-list {
  display: grid;
  gap: 16px;
}

.admin-more-button {
  width: min(100%, 420px);
  margin: 22px auto 0;
}

.admin-case-row {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: #fffdf6;
  border: 0;
  border-radius: 8px;
}

.admin-faq-row {
  grid-template-columns: 1fr auto;
}

.admin-case-row img {
  width: 190px;
  height: 128px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 1220px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .global-nav,
  .header-contact {
    grid-column: 1 / -1;
    display: none;
  }

  .site-header.is-open .global-nav,
  .site-header.is-open .header-contact {
    display: flex;
  }

  .global-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-contact {
    flex-wrap: wrap;
  }

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

  .hero-copy {
    padding-right: clamp(24px, 6vw, 72px);
  }

  .hero-media {
    min-height: 420px;
  }

  .hero-media::before {
    display: none;
  }

  .hero-slide {
    min-height: 420px;
  }

  .service-band,
  .points {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .points {
    grid-auto-rows: minmax(240px, 1fr);
  }

  .service-band .section-label,
  .points .section-label {
    grid-column: 1 / -1;
  }

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

@media (max-width: 820px) {
  .site-header {
    min-height: 82px;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 138px;
    height: 52px;
  }

  .brand small,
  .tel small {
    display: none;
  }

  .global-nav,
  .site-header.is-open .global-nav,
  .site-header.is-open .header-contact {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .tel,
  .header-contact .button {
    width: 100%;
  }

  .hero {
    min-height: 0;
    background: #fff;
  }

  .hero-copy {
    padding: 38px 20px 28px;
  }

  .area-label {
    gap: 10px;
  }

  .area-label::before,
  .area-label::after {
    width: 18px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-lead span {
    white-space: normal;
  }

  .hero-mascot {
    width: clamp(48px, 18vw, 74px);
    margin-right: 6px;
    margin-left: 8px;
  }

  .button-large {
    width: 100%;
  }

  .hero-media,
  .hero-slide {
    min-height: 360px;
  }

  .area-badge {
    right: 18px;
    bottom: 18px;
    width: 178px;
    height: 178px;
    padding: 20px;
  }

  .area-badge strong {
    font-size: 17px;
  }

  .service-band,
  .points,
  .service-detail,
  .faq-section,
  .case-faq-grid,
  .company-contact,
  .contact-section,
  .company-page-hero,
  .company-page-grid,
  .case-card,
  .public-case-list,
  .admin-layout,
  .admin-case-row {
    grid-template-columns: 1fr;
  }

  .service-band,
  .points,
  .faq-section,
  .case-faq-grid,
  .company-contact,
  .contact-section,
  .service-detail {
    width: min(100% - 20px, 1880px);
  }

  .service-band {
    margin-top: 14px;
  }

  .service-card,
  .points article,
  .points .section-label {
    border-left: 0;
    border-top: 0;
  }

  .points .section-label {
    min-height: 0;
    padding: 32px 24px;
  }

  .points article {
    min-height: 230px;
    padding: 28px 24px;
  }

  .points .section-label h2 {
    max-width: none;
  }

  .point-mascot {
    position: static;
    width: 112px;
    margin-top: 18px;
    opacity: 0.8;
  }

  .company-data div {
    grid-template-columns: 1fr;
  }

  .company-message-layout {
    grid-template-columns: 1fr;
  }

  .company-data-wide div {
    grid-template-columns: 1fr;
  }

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

  .member-card {
    display: grid;
    grid-template-columns: 128px 1fr;
  }

  .member-card img {
    height: 100%;
    min-height: 170px;
    aspect-ratio: auto;
  }

  .service-detail {
    padding: 20px;
  }

  .service-detail img {
    height: 210px;
  }

  .case-card img {
    height: 210px;
  }

  .company-panel {
    padding: 20px;
  }

  .case-study-main {
    width: 100%;
  }

  .case-study-hero,
  .case-page-section {
    width: min(100% - 20px, 1880px);
  }

  .case-study-hero {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }

  .case-hero-visual {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
    min-height: 0;
  }

  .case-hero-visual img:nth-child(1),
  .case-hero-visual img:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
    height: 220px;
    transform: none;
  }

  .case-filter button {
    min-width: 0;
    flex: 1 1 160px;
  }

  .case-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .case-page-list .public-case-card img {
    height: 180px;
  }

  .case-page-list .public-case-card div {
    min-height: 190px;
    padding: 16px 14px 20px;
  }

  .public-case-card img {
    height: 220px;
  }

  .admin-main {
    width: min(100% - 20px, 1880px);
    padding-top: 24px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-form-actions {
    grid-template-columns: 1fr;
  }

  .admin-case-row img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 92px;
  }

  body {
    background: #fff6d8;
  }

  .site-header {
    min-height: 72px;
    gap: 10px;
    padding: 8px 14px;
  }

  .brand-logo {
    width: 124px;
    height: 46px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .site-header.is-open .global-nav,
  .site-header.is-open .header-contact {
    margin-top: 6px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
  }

  .global-nav a {
    padding: 12px 10px;
    font-size: 17px;
  }

  .tel {
    min-width: 0;
    justify-content: center;
    padding: 10px 12px;
    background: #fff6d8;
    border-radius: 8px;
  }

  .tel strong {
    font-size: 20px;
  }

  .header-contact .button {
    min-height: 48px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    background: #fff6d8;
  }

  .hero-copy {
    padding: 28px 18px 20px;
  }

  .area-label {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    text-align: center;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: 43px;
    line-height: 1.18;
    letter-spacing: 0;
  }

  .hero h1 span {
    padding: 0 4px;
  }

  .hero-mascot {
    width: 54px;
    margin: 0 4px 0 6px;
    vertical-align: -0.12em;
  }

  .kamopon-hero {
    right: 14px;
    bottom: 18px;
    width: 58px;
    opacity: 0.18;
  }

  .kamopon-media,
  .kamopon-service,
  .kamopon-case {
    display: none;
  }

  .hero-lead {
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-actions {
    gap: 10px;
  }

  .button-large {
    min-height: 54px;
    font-size: 16px;
  }

  .hero-media,
  .hero-slide {
    min-height: 0;
    height: auto;
  }

  .hero-media {
    margin-top: 4px;
    min-height: 370px;
  }

  .hero-slides {
    position: relative;
    min-height: 370px;
  }

  .hero-slide {
    aspect-ratio: 4 / 3;
    height: 370px;
    object-position: center;
  }

  .area-badge {
    right: 12px;
    bottom: 12px;
    width: 138px;
    height: 138px;
    padding: 14px;
  }

  .pin-icon {
    width: 28px;
    height: 28px;
  }

  .area-badge small {
    font-size: 13px;
  }

  .area-badge strong {
    font-size: 15px;
    line-height: 1.45;
  }

  .service-band,
  .points,
  .service-detail,
  .faq-section,
  .case-faq-grid,
  .company-contact,
  .contact-section,
  .contact-page-section,
  .case-study-hero,
  .case-page-section,
  .sub-page-main {
    width: min(100% - 18px, 1880px);
  }

  .service-band {
    margin-top: 10px;
    border-radius: 8px 8px 0 0;
  }

  .service-band .section-label {
    padding: 18px 20px 14px;
  }

  .service-band .section-label span {
    font-size: 15px;
  }

  .service-band .section-label h2 {
    font-size: 30px;
  }

  .service-card {
    min-height: 82px;
    padding: 16px 18px;
    column-gap: 12px;
  }

  .service-card.is-active {
    box-shadow: inset 0 0 0 2px #111;
    transform: none;
  }

  .service-icon {
    width: 36px;
    height: 36px;
  }

  .service-card strong {
    font-size: 20px;
  }

  .service-card small {
    font-size: 13px;
  }

  .service-detail {
    gap: 18px;
    padding: 24px 20px;
  }

  .service-detail h2 {
    font-size: 31px;
    line-height: 1.25;
  }

  .service-detail p:not(.mini-label) {
    font-size: 15px;
    line-height: 1.85;
  }

  .service-detail img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .points {
    margin-top: 26px;
    padding: 0;
    grid-auto-rows: auto;
  }

  .points .section-label,
  .points article {
    min-height: 0;
    padding: 26px 22px;
  }

  .points .section-label h2 {
    font-size: 36px;
    max-width: 230px;
  }

  .points .section-label span {
    font-size: 18px;
  }

  .point-mascot {
    position: absolute;
    right: 20px;
    bottom: 22px;
    width: 86px;
    margin: 0;
    opacity: 0.18;
  }

  .point-number {
    font-size: 40px;
  }

  .points strong {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.45;
  }

  .points p {
    font-size: 14px;
    line-height: 1.75;
  }

  .case-faq-grid,
  .faq-section,
  .company-contact,
  .contact-section {
    margin-top: 10px;
  }

  .case-card {
    min-height: 0;
    gap: 18px;
    padding: 24px 20px;
  }

  .case-card h2,
  .faq-card h2,
  .company-contact h2,
  .company-panel h2,
  .contact-box h2 {
    font-size: 32px;
    line-height: 1.25;
  }

  .case-card p:not(.mini-label),
  .company-contact p,
  .company-panel p,
  .contact-intro {
    font-size: 15px;
    line-height: 1.8;
  }

  .member-card {
    grid-template-columns: 1fr;
  }

  .member-card img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .member-card > div {
    padding: 16px;
  }

  .member-card strong {
    font-size: 22px;
  }

  .case-card img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .public-case-list {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
  }

  .public-case-card {
    border-radius: 8px;
  }

  .public-case-card img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .public-case-card div {
    min-height: 0;
    padding: 18px 18px 20px;
  }

  .public-case-card h3 {
    margin: 8px 0 10px;
    font-size: 20px;
    line-height: 1.45;
  }

  .public-case-card p {
    font-size: 14px;
    line-height: 1.75;
  }

  .case-detail-link {
    padding: 8px 14px;
  }

  .top-case-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .top-case-list .public-case-card {
    display: grid;
    grid-template-columns: 38% 1fr;
    min-height: 122px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: none;
  }

  .top-case-list .public-case-card img {
    width: 100%;
    height: 100%;
    min-height: 122px;
    object-fit: cover;
  }

  .top-case-list .public-case-card div {
    min-height: 0;
    padding: 12px;
  }

  .top-case-list .public-case-card span {
    display: inline-flex;
    margin-bottom: 6px;
    font-size: 10px;
  }

  .top-case-list .public-case-date {
    margin-bottom: 5px;
    font-size: 10px;
    line-height: 1.2;
  }

  .top-case-list .public-case-card h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .top-case-list .public-case-card p {
    display: none;
  }

  .top-case-list .case-detail-link {
    padding-top: 10px;
    font-size: 12px;
  }

  .top-case-more {
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    font-size: 15px;
  }

  .faq-card,
  .company-panel,
  .contact-box {
    padding: 24px 20px;
  }

  .top-contact-box {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 20px;
  }

  .top-contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .top-contact-tel {
    min-width: 0;
    min-height: 0;
    padding: 18px;
  }

  .top-contact-actions > .button {
    min-width: 0;
    min-height: 62px;
  }

  .faq-question {
    min-height: 58px;
    padding: 0;
    font-size: 16px;
    gap: 14px;
  }

  .faq-answer p {
    font-size: 14px;
    line-height: 1.75;
  }

  .company-data {
    margin-top: 22px;
    background: #fff;
  }

  .company-data dt,
  .company-data dd {
    padding: 12px 0;
    font-size: 15px;
  }

  .company-data dt {
    padding-bottom: 2px;
    background: #fff;
  }

  .company-data dd {
    padding-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-box {
    gap: 14px;
  }

  .contact-box label,
  .radio-group legend,
  .radio-group label,
  .agree-check {
    font-size: 15px;
  }

  .contact-box input:not([type="radio"]):not([type="checkbox"]),
  .contact-box textarea {
    padding: 14px 14px;
    font-size: 15px;
  }

  .privacy-box {
    max-height: 150px;
    padding: 16px;
  }

  .contact-page-hero,
  .company-page-hero {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .contact-page-hero h1,
  .company-page-hero h1,
  .sub-page-hero h1,
  .case-study-hero h1 {
    font-size: 40px;
  }

  .sub-page-hero p:not(.mini-label),
  .case-study-hero p:not(.mini-label) {
    font-size: 15px;
    line-height: 1.8;
  }

  .contact-page-info {
    width: min(100% - 18px, 1040px);
    padding: 18px 14px;
  }

  .contact-page-info a {
    font-size: 30px;
  }

  .case-study-hero {
    gap: 20px;
    padding: 32px 22px;
  }

  .case-hero-visual img:nth-child(1),
  .case-hero-visual img:nth-child(2) {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .case-filter {
    gap: 10px;
    margin-bottom: 22px;
  }

  .case-filter button {
    min-height: 46px;
    flex: 1 1 calc(50% - 10px);
    padding: 0 14px;
    font-size: 14px;
  }

  .case-page-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .case-page-list .public-case-card img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .case-page-list .public-case-card div {
    min-height: 160px;
  }

  .case-pagination {
    margin-top: 28px;
  }

  .case-pagination button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero-copy {
    padding-right: 14px;
    padding-left: 14px;
  }

  .area-badge {
    width: 122px;
    height: 122px;
  }

  .area-badge strong {
    font-size: 13px;
  }

  .service-band,
  .points,
  .service-detail,
  .faq-section,
  .case-faq-grid,
  .company-contact,
  .contact-section,
  .contact-page-section,
  .case-study-hero,
  .case-page-section,
  .sub-page-main {
    width: min(100% - 14px, 1880px);
  }

  .case-card h2,
  .faq-card h2,
  .company-contact h2,
  .company-panel h2,
  .contact-box h2,
  .service-detail h2,
  .points .section-label h2 {
    font-size: 30px;
  }

  .contact-page-info a {
    font-size: 26px;
  }
}

@media (max-width: 820px) {
  .case-study-main {
    background: #fff6d8;
  }

  .case-study-hero {
    margin-top: 8px;
    padding: 24px 18px;
    background: #fff;
  }

  .case-study-hero h1 {
    margin-bottom: 10px;
    font-size: 36px;
  }

  .case-study-hero p:not(.mini-label) {
    font-size: 14px;
    line-height: 1.75;
  }

  .case-hero-visual {
    display: none;
  }

  .case-page-section {
    margin-top: 10px;
    padding: 16px 10px 22px;
    background: #fff;
  }

  .case-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -10px 16px;
    padding: 0 10px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .case-filter::-webkit-scrollbar {
    display: none;
  }

  .case-filter button {
    min-width: auto;
    min-height: 40px;
    flex: 0 0 auto;
    padding: 0 15px;
    border-width: 1px;
    font-size: 13px;
    white-space: nowrap;
  }

  .case-page-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .case-category-heading {
    margin: 6px 0 -2px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff6d8;
    border-left: 5px solid var(--teal);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.2;
  }

  .case-page-list .public-case-card {
    display: grid;
    grid-template-columns: 38% 1fr;
    min-height: 128px;
    overflow: hidden;
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    background: #fff;
  }

  .case-page-list .public-case-card img {
    width: 100%;
    height: 100%;
    min-height: 128px;
    object-fit: cover;
    border-radius: 0;
  }

  .case-page-list .public-case-card div {
    align-items: flex-start;
    min-height: 0;
    padding: 12px 12px 12px;
    text-align: left;
  }

  .case-page-list .public-case-date {
    display: block;
    margin-bottom: 6px;
    color: var(--teal-dark);
    font-size: 11px;
    line-height: 1;
  }

  .case-page-list .public-case-card h3 {
    display: -webkit-box;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.35;
    text-align: left;
    text-wrap: balance;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .case-page-list .case-detail-link {
    margin-top: auto;
    padding: 8px 14px;
    color: var(--ink);
    font-size: 12px;
  }

  .case-page-list .case-detail-link::after {
    width: auto;
    height: auto;
  }

  .case-pagination {
    gap: 8px;
    margin-top: 22px;
  }

  .case-pagination button {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .case-page-list .public-case-card h3 {
    font-size: 15px;
  }

  .case-page-list .public-case-card div {
    padding: 10px 10px;
  }

  .case-page-list .public-case-card {
    grid-template-columns: 36% 1fr;
  }

  .service-card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .service-card strong {
    font-size: 18px;
  }
}

/* Final audit polish */
body.has-kamotech-cursor,
body.has-kamotech-cursor *,
.kamotech-cursor,
.kamotech-cursor-trail,
.kamotech-cursor-burst {
  cursor: auto !important;
}

.kamotech-cursor,
.kamotech-cursor-trail,
.kamotech-cursor-burst {
  display: none !important;
}

.service-section {
  gap: 0 !important;
}

.service-card.is-active {
  background: #fff !important;
  box-shadow: inset 0 0 0 3px #1f1f1f;
}

.service-detail {
  margin-top: 0 !important;
  border: 0 !important;
  border-radius: 0 0 10px 10px;
  background: #fff !important;
  box-shadow: none !important;
}

.service-detail::before {
  display: none !important;
}

.case-page-section {
  width: 100%;
  max-width: 1880px;
  padding: clamp(18px, 2.2vw, 34px);
}

.case-page-list {
  gap: 44px 24px;
  align-items: stretch;
}

.case-page-list .public-case-card div {
  flex: 1;
  min-height: 132px;
  padding: 16px 16px 20px;
}

.case-page-list .public-case-card h3 {
  margin-bottom: 12px;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  hyphens: none;
  letter-spacing: 0;
}

.case-page-list .case-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: auto;
  padding: 0 16px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
}

.case-page-list .case-detail-link:hover {
  background: var(--yellow);
  transform: none;
}

.case-filter button:hover {
  transform: translateY(-3px);
}

.case-category-heading {
  margin-top: 18px;
}

.company-page-card {
  padding: clamp(22px, 3vw, 44px);
}

.company-page-grid {
  gap: clamp(18px, 2vw, 30px);
}

.license-list {
  gap: 10px;
}

.case-detail {
  padding: clamp(22px, 3vw, 42px);
}

.case-detail h1 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.6vw, 52px);
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.case-detail-layout {
  grid-template-columns: minmax(280px, 0.75fr) minmax(360px, 1fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}

.case-detail-image {
  height: min(34vw, 420px);
  min-height: 260px;
}

.case-detail-body {
  padding-top: 0;
}

@media (max-width: 820px) {
  .case-page-section {
    width: 100%;
    padding: 22px 14px;
  }

  .case-page-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-page-list .public-case-card h3 {
    word-break: keep-all;
    overflow-wrap: normal;
  }

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