:root {
  --ink: #0a0a0b;
  --muted: #666a73;
  --line: #dfe2e8;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --blue: #246bfe;
  --cyan: #35d6ff;
  --violet: #7445ff;
  --content: 920px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "游ゴシック体", "Yu Gothic", "YuGothic", "游ゴシック", "Yu Gothic UI", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  overflow-x: hidden;
}

body.opening-active {
  overflow: hidden;
}

body.menu-active {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.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: fixed;
  top: 12px;
  left: 12px;
  z-index: 12000;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* 共通オープニング */
.opening {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.opening[hidden] {
  display: none;
}

.opening.is-playing {
  animation: opening-failsafe 0.5s ease 4.8s forwards;
}

.opening.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening-stage {
  position: absolute;
  inset: 0;
}

.opening-brand {
  position: relative;
  z-index: 20;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(76vw, 360px);
  opacity: 0;
}

.opening-logo {
  width: min(48vw, 190px);
  height: auto;
}

.opening-tagline {
  margin: 0;
  color: #50545d;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.opening-skip {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 50;
  min-width: 70px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: 0.13em;
  backdrop-filter: blur(10px);
}

@keyframes opening-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* グローバルナビゲーション */
.global-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 3000;
  display: grid;
  width: calc(100% - 48px);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 34px 0 16px;
  pointer-events: none;
  transform: translateX(-50%);
}

.global-logo,
.global-links,
.hamburger {
  pointer-events: auto;
}

.global-logo {
  position: relative;
  z-index: 2;
  display: block;
  grid-column: 1;
  justify-self: start;
  width: clamp(200px, 18vw, 245px);
  padding: 12px 10px;
  transition: opacity 300ms ease, filter 300ms ease;
}

.global-logo img {
  width: 100%;
  height: auto;
}

.global-links {
  display: flex;
  grid-column: 2;
  align-items: center;
  gap: clamp(32px, 3.5vw, 52px);
  justify-self: center;
  padding: 10px 8px;
  transition: opacity 300ms ease, transform 300ms ease;
}

.global-links a {
  position: relative;
  color: #172133;
  font-family: "Oswald", sans-serif;
  font-size: clamp(19px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.global-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.global-links a:hover::after,
.global-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger {
  position: relative;
  z-index: 2;
  display: grid;
  grid-column: 3;
  justify-self: end;
  width: 62px;
  height: 62px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  transition: color 280ms ease, transform 280ms ease, opacity 280ms ease;
}

.hamburger:hover {
  color: #0755d9;
  transform: translateY(-2px);
}

.hamburger-glyph {
  position: relative;
  display: block;
  width: 36px;
  height: 25px;
}

.hamburger-glyph i {
  position: absolute;
  left: 0;
  display: block;
  width: 36px;
  height: 3px;
  background: currentColor;
  transform-origin: center;
  transition: top 320ms ease, transform 320ms ease, opacity 220ms ease;
}

.hamburger-glyph i:nth-child(1) { top: 2px; }
.hamburger-glyph i:nth-child(2) { top: 11px; }
.hamburger-glyph i:nth-child(3) { top: 20px; }

.hamburger.active {
  color: #65cfff;
}

.hamburger.active .hamburger-glyph i:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.hamburger.active .hamburger-glyph i:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-glyph i:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

body.menu-active .global-logo {
  filter: brightness(0) invert(1);
}

body.menu-active .global-links {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
}

.slide-menu {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(520px, 1.25fr);
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
  overflow: hidden;
  padding: 110px clamp(42px, 7vw, 110px) 58px;
  background:
    radial-gradient(circle at 12% 16%, rgba(52, 130, 255, 0.3), transparent 34%),
    linear-gradient(135deg, #06142e 0%, #092d65 58%, #075fb7 100%);
  color: #fff;
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  visibility: hidden;
  transition: clip-path 760ms cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0s linear 760ms;
}

.slide-menu.open {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  visibility: visible;
  transition-delay: 0s;
}

.menu-prism {
  position: absolute;
  pointer-events: none;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.menu-prism--one {
  top: -18%;
  left: -9%;
  width: min(48vw, 680px);
  aspect-ratio: 2 / 1.732;
  border: 1px solid rgba(132, 208, 255, 0.3);
  background: linear-gradient(145deg, rgba(28, 102, 224, 0.2), rgba(123, 218, 255, 0.02));
  transform: rotate(-14deg);
}

.menu-prism--two {
  right: -8%;
  bottom: -27%;
  width: min(54vw, 760px);
  aspect-ratio: 2 / 1.732;
  background: linear-gradient(145deg, rgba(78, 179, 255, 0.18), rgba(153, 231, 255, 0.03));
  transform: rotate(19deg);
}

.menu-intro {
  position: relative;
  z-index: 1;
  max-width: 390px;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 540ms ease 180ms, transform 700ms cubic-bezier(0.16, 1, 0.3, 1) 180ms;
}

.slide-menu.open .menu-intro {
  opacity: 1;
  transform: translateY(0);
}

.menu-intro > span {
  color: #7fd8ff;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.menu-intro p {
  margin: 30px 0 0;
  font-size: clamp(28px, 3.2vw, 50px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.menu-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list li {
  opacity: 0;
  transform: translate3d(70px, 24px, 0);
  transition: opacity 420ms ease, transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-menu.open .menu-list li {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: calc(220ms + var(--menu-order) * 80ms);
}

.menu-list a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}

.menu-list a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 19px;
  background: linear-gradient(145deg, #56c9ff, #b6efff);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0;
  transform: translate3d(-24px, -50%, 0) rotate(-18deg);
  transition: opacity 260ms ease, transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-list a:hover::before,
.menu-list a:focus-visible::before {
  opacity: 1;
  transform: translate3d(0, -50%, 0) rotate(0);
}

.menu-en {
  font-family: "Oswald", sans-serif;
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  transition: color 260ms ease, transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-ja {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.menu-list a:hover .menu-en,
.menu-list a:focus-visible .menu-en {
  color: #8fe0ff;
  transform: translateX(38px);
}

.menu-signature {
  position: absolute;
  bottom: 25px;
  left: clamp(42px, 7vw, 110px);
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-family: "Oswald", sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
}

/* ヒーロー */
.site-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 110px 24px 80px;
  background: #fff;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 28, 53, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 53, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent 3%, #000 30%, #000 70%, transparent 97%);
}

.hero-accent {
  position: absolute;
  aspect-ratio: 2 / 1.7320508;
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
}

.hero-triangle {
  display: block;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: blur(0.5px);
  transform-origin: center;
  will-change: transform;
}

.hero-accent-one {
  top: -2vw;
  right: -3vw;
  width: min(44vw, 580px);
}

.hero-accent-one .hero-triangle {
  background: linear-gradient(145deg, rgba(8, 47, 153, 0.62), rgba(31, 103, 238, 0.28) 58%, rgba(48, 130, 255, 0.05) 100%);
  opacity: 0.74;
  animation: triangle-drift-one 30s ease-in-out -5s infinite alternate;
}

.hero-accent-two {
  top: 35%;
  left: -6vw;
  width: min(26vw, 340px);
}

.hero-accent-two .hero-triangle {
  clip-path: none;
  opacity: 0.72;
  animation: triangle-drift-two 26s ease-in-out -12s infinite alternate;
}

.hero-triangle-outline {
  fill: none;
  stroke: url(#hero-triangle-outline-gradient);
  stroke-width: 8;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-miterlimit: 8;
}

.hero-accent-three {
  right: 4%;
  bottom: 7%;
  width: min(19vw, 250px);
}

.hero-accent-three .hero-triangle {
  background: linear-gradient(150deg, rgba(55, 150, 255, 0.38), rgba(116, 207, 255, 0.22) 60%, rgba(177, 229, 255, 0.08) 100%);
  opacity: 0.64;
  animation: triangle-drift-three 22s ease-in-out -8s infinite alternate;
}

@keyframes triangle-drift-one {
  0% {
    transform: translate3d(0, 0, 0) rotate(2deg);
  }
  50% {
    transform: translate3d(-8%, 8%, 0) rotate(8deg);
  }
  100% {
    transform: translate3d(4%, 17%, 0) rotate(-4deg);
  }
}

@keyframes triangle-drift-two {
  0% {
    transform: translate3d(0, 0, 0) rotate(-5deg);
  }
  50% {
    transform: translate3d(10%, -7%, 0) rotate(3deg);
  }
  100% {
    transform: translate3d(17%, 3%, 0) rotate(-1deg);
  }
}

@keyframes triangle-drift-three {
  0% {
    transform: translate3d(0, 0, 0) rotate(4deg);
  }
  50% {
    transform: translate3d(11%, 12%, 0) rotate(-7deg);
  }
  100% {
    transform: translate3d(-6%, 21%, 0) rotate(6deg);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 850px);
  text-align: center;
}

.hero-kicker {
  margin: 0 0 20px;
  color: var(--blue);
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.site-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 74px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.32;
}

.site-hero h1:focus {
  outline: none;
}

.emotion-word {
  display: inline-block;
  transform-origin: center;
}

.hero-emotions-active .emotion-word--waku {
  animation: waku-excitement 6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s infinite both;
}

.hero-emotions-active .emotion-word--doki {
  animation: doki-heartbeat 6s ease-in-out 3.5s infinite both;
}

@keyframes waku-excitement {
  0%, 14%, 100% {
    transform: translateY(0) rotate(0) scale(1);
  }
  3% {
    transform: translateY(-0.16em) rotate(-2deg) scale(1.04);
  }
  6% {
    transform: translateY(0.03em) rotate(1deg) scale(0.99);
  }
  9% {
    transform: translateY(-0.08em) rotate(2deg) scale(1.025);
  }
  12% {
    transform: translateY(0) rotate(-0.5deg) scale(1);
  }
}

@keyframes doki-heartbeat {
  0%, 14%, 100% {
    transform: scale(1);
  }
  3% {
    transform: scale(1.1);
  }
  5% {
    transform: scale(0.98);
  }
  8% {
    transform: scale(1.14);
  }
  12% {
    transform: scale(1);
  }
}

.hero-scroll {
  position: absolute;
  right: clamp(22px, 3.5vw, 54px);
  bottom: clamp(28px, 5vh, 58px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: #646873;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-scroll-label {
  writing-mode: vertical-rl;
}

.hero-scroll-icon {
  display: grid;
  width: 44px;
  height: 32px;
  place-items: center;
  color: var(--blue);
  animation: scroll-guide-bob 1.8s ease-in-out infinite;
  transition: color 180ms ease, opacity 180ms ease;
}

.direction-triangle {
  display: block;
  width: 30px;
  height: 14px;
  overflow: visible;
}

.direction-triangle path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-miterlimit: 6;
  vector-effect: non-scaling-stroke;
}

.hero-scroll:hover .hero-scroll-icon,
.hero-scroll:focus-visible .hero-scroll-icon {
  color: #0b48c9;
  opacity: 0.82;
}

@keyframes scroll-guide-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(9px);
  }
}

/* 本文 */
main {
  width: min(calc(100% - 72px), var(--content));
  margin: 0 auto;
}

.sns-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 230px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.sns-section p {
  margin: 0;
}

.sns-icons {
  display: flex;
  gap: 18px;
}

.sns-icons a {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sns-icons a:hover {
  border-color: #9da3af;
  transform: translateY(-3px);
}

.sns-icons img {
  width: 26px;
  height: 26px;
}

.content-section {
  position: relative;
  padding: 150px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 40px;
}

.content-section h2 {
  display: inline-block;
  position: relative;
  margin: 0 0 52px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.content-section h2:focus {
  outline: none;
}

.content-section h2::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: 6px;
  width: 32px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.section-lead {
  max-width: 720px;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.example-link {
  color: #075bd8;
  text-underline-offset: 4px;
}

.profile-list {
  margin: 0;
}

.profile-list > div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.profile-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.profile-list dt {
  font-weight: 700;
}

.profile-list dd {
  margin: 0;
}

.clients-row dt {
  padding-top: 11px;
}

.client-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-list li {
  padding: 10px 0 11px;
  font-size: 13px;
  line-height: 1.6;
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.address-grid > div {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.address-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.address-grid p {
  margin: 0;
}

.access-list {
  padding-left: 1.2em;
  margin: 0 0 40px;
}

.map-container {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(15, 31, 58, 0.12);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}

.contact-section {
  border-bottom: 0;
}

.contact-lead {
  margin: -12px 0 48px;
  font-size: 18px;
}

.contact-form {
  display: grid;
  gap: 24px;
  max-width: 800px;
}

.required-note,
.privacy-notice,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-group {
  display: grid;
  gap: 9px;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group label {
  font-size: 15px;
  font-weight: 700;
}

.required {
  color: #d82626;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #cbd0d9;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.1);
}

.contact-form textarea {
  min-height: 210px;
  resize: vertical;
}

.example-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
}

.submit-button {
  justify-self: start;
  min-width: 180px;
  min-height: 54px;
  padding: 13px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.submit-button:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-status {
  min-height: 1.8em;
}

/* フッター */
footer {
  padding: 28px 24px 32px;
  background: var(--paper);
  color: var(--muted);
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(54px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 721px) and (max-width: 840px) {
  .global-header {
    gap: 18px;
  }

  .global-logo {
    width: 175px;
  }

  .global-links {
    gap: 20px;
  }

  .global-links a {
    font-size: 16px;
  }

  .hamburger {
    width: 52px;
    height: 52px;
  }

  .hamburger-glyph {
    transform: scale(0.86);
  }
}

@media (min-width: 721px) and (max-width: 760px) {
  .global-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .global-links {
    display: none;
  }

  .hamburger {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .opening-skip {
    top: 14px;
    right: 14px;
  }

  .global-header {
    width: calc(100% - 28px);
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 22px 0 10px;
  }

  .global-logo {
    width: min(48vw, 175px);
    padding: 12px 6px;
  }

  .global-logo img {
    width: 100%;
  }

  .global-links {
    display: none;
  }

  .hamburger {
    grid-column: 2;
    width: 54px;
    height: 54px;
    margin-left: auto;
    padding: 0;
  }

  .hamburger-glyph {
    transform: scale(0.92);
  }

  .slide-menu {
    display: block;
    padding: 102px 24px 54px;
    overflow-y: auto;
  }

  .menu-intro {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .menu-intro p {
    margin-top: 13px;
    font-size: clamp(21px, 7vw, 30px);
    line-height: 1.4;
  }

  .menu-list a {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0 15px;
  }

  .menu-en {
    font-size: clamp(34px, 12vw, 50px);
  }

  .menu-ja {
    grid-column: 1;
    margin-top: -7px;
    font-size: 11px;
  }

  .menu-list a::before {
    left: 0;
    width: 16px;
    height: 14px;
  }

  .menu-list a:hover .menu-en,
  .menu-list a:focus-visible .menu-en {
    transform: translateX(24px);
  }

  .menu-signature {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 28px;
  }

  .site-hero {
    min-height: 100svh;
    padding: 96px 20px 70px;
  }

  .hero-grid {
    background-size: 40px 40px;
  }

  .hero-accent-one {
    top: 7%;
    right: -20%;
    width: 70vw;
  }

  .hero-accent-two {
    top: 36%;
    left: -18%;
    width: 48vw;
  }

  .hero-accent-three {
    top: auto;
    right: -8%;
    bottom: 5%;
    width: 34vw;
  }

  .hero-kicker {
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .site-hero h1 {
    font-size: clamp(30px, 8.8vw, 44px);
  }

  .hero-scroll {
    right: 16px;
    bottom: 24px;
    gap: 7px;
    font-size: 10px;
  }

  .hero-scroll-icon {
    width: 40px;
    height: 30px;
  }

  main {
    width: min(calc(100% - 40px), var(--content));
  }

  .sns-section {
    flex-direction: column;
    gap: 15px;
    min-height: 220px;
  }

  .content-section {
    padding: 100px 0;
  }

  .content-section h2 {
    margin-bottom: 38px;
  }

  .content-section h2::after {
    right: -34px;
    width: 24px;
  }

  .profile-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 19px 0;
  }

  .clients-row dt {
    padding-top: 0;
  }

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

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

  .address-grid > div {
    padding: 22px;
  }

  .map-container iframe {
    height: 330px;
  }

  .contact-lead {
    font-size: 16px;
  }

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

@media (min-width: 721px) and (max-width: 1040px) {
  .global-links {
    display: none;
  }

  .hamburger {
    margin-left: auto;
  }

  .slide-menu {
    grid-template-columns: minmax(210px, 0.65fr) minmax(430px, 1.35fr);
    gap: 42px;
    padding-right: 46px;
    padding-left: 46px;
  }
}

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

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .opening-stage {
    display: none;
  }

  .opening-brand {
    opacity: 1;
    transform: none !important;
  }

  .hero-emotions-active .emotion-word {
    animation: none;
  }

  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Services：三角形の3頂点に配置した展開カード */
.services-showcase {
  overflow: visible;
}

.services-showcase .section-lead {
  max-width: 720px;
  margin: 0;
}

.services-system-lead {
  max-width: 760px;
  margin: 60px auto 56px;
  font-weight: 600;
  text-align: center;
}

.services-stage {
  /* Circle/triangle motion: 900ms = 0.9 seconds (open and close). */
  --service-morph-duration: 900ms;
  --service-triangle-size: min(66vw, 660px);
  --service-circle-size: 210px;
  position: relative;
  width: min(100%, 980px);
  min-height: 782px;
  margin: 0 auto;
  isolation: isolate;
}

.services-triangle {
  position: absolute;
  top: 105px;
  left: 50%;
  z-index: -1;
  display: block;
  width: var(--service-triangle-size);
  height: auto;
  aspect-ratio: 2 / 1.7320508;
  filter: drop-shadow(0 22px 34px rgba(24, 93, 170, 0.14));
  transform: translateX(-50%);
  pointer-events: none;
}

.services-list {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-node {
  position: absolute;
  z-index: 1;
  width: var(--service-circle-size);
  transition: opacity 360ms ease, filter 360ms ease;
}

.service-node--top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.service-node--right {
  right: max(0px, calc(50% - min(33vw, 330px) - 105px));
  bottom: 0;
}

.service-node--left {
  bottom: 0;
  left: max(0px, calc(50% - min(33vw, 330px) - 105px));
}

.service-trigger {
  position: relative;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--service-circle-size);
  padding: 28px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: var(--service-ink, #073d82);
  background: transparent;
  box-shadow: none;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transform: translateX(-50%);
  transition: width var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1),
    height var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1),
    padding var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1),
    color var(--service-morph-duration) ease,
    transform var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1);
}

.service-trigger::before,
.service-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(115deg, #ffffff, #e6f4ff);
  clip-path: polygon(
    50% 0%, 58.68% 0.76%, 67.1% 3.02%, 75% 6.7%, 82.14% 11.7%,
    88.3% 17.86%, 93.3% 25%, 96.98% 32.9%, 99.24% 41.32%, 100% 50%,
    99.24% 58.68%, 96.98% 67.1%, 93.3% 75%, 88.3% 82.14%, 82.14% 88.3%,
    75% 93.3%, 67.1% 96.98%, 58.68% 99.24%, 50% 100%, 41.32% 99.24%,
    32.9% 96.98%, 25% 93.3%, 17.86% 88.3%, 11.7% 82.14%, 6.7% 75%,
    3.02% 67.1%, 0.76% 58.68%, 0% 50%, 0.76% 41.32%, 3.02% 32.9%,
    6.7% 25%, 11.7% 17.86%, 17.86% 11.7%, 25% 6.7%, 32.9% 3.02%,
    41.32% 0.76%
  );
  filter: drop-shadow(0 18px 22px rgba(21, 65, 121, 0.16));
  transition: clip-path var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1),
    filter var(--service-morph-duration) ease;
}

/* 通常時は各サービス色の円＋白抜きアイコン。展開時は明色の逆三角形＋文字へ反転。 */
.service-node--top {
  --service-bg-start: #0756bd;
  --service-bg-end: #178ee0;
  --service-ink: #073d82;
  --service-accent: #2686d8;
}

.service-node--right {
  --service-bg-start: #d94a42;
  --service-bg-end: #ff6d61;
  --service-ink: #7d302b;
  --service-accent: #d95850;
}

.service-node--left {
  --service-bg-start: #078456;
  --service-bg-end: #17b779;
  --service-ink: #075d43;
  --service-accent: #11986a;
}

.service-trigger::after {
  background: linear-gradient(135deg, var(--service-bg-start, #073b88) 0%, var(--service-bg-end, #187bd2) 100%);
  opacity: 1;
  filter: none;
  transition: clip-path var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1),
    opacity var(--service-morph-duration) ease;
}

.service-trigger > span,
.service-icon {
  position: relative;
  z-index: 1;
}

.service-icon {
  display: block;
  width: 168px;
  height: 168px;
  max-height: 168px;
  flex: 0 0 auto;
  margin: 0;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  order: -2;
  transform: scale(1);
  transform-origin: center;
  transition: max-height var(--service-morph-duration) ease,
    opacity calc(var(--service-morph-duration) * 0.55) ease,
    transform var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1);
}

.service-node--top .service-trigger {
  transform-origin: 50% 0;
}

.service-node--right .service-trigger,
.service-node--left .service-trigger {
  transform-origin: 50% 100%;
}

.service-title {
  max-height: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.55;
  opacity: 0;
  order: -1;
  transform: translateY(10px);
  transition: max-height var(--service-morph-duration) ease,
    font-size var(--service-morph-duration) ease,
    letter-spacing var(--service-morph-duration) ease,
    opacity var(--service-morph-duration) ease,
    transform var(--service-morph-duration) ease;
}

.service-en {
  max-height: 0;
  overflow: hidden;
  color: #2686d8;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height var(--service-morph-duration) ease, margin var(--service-morph-duration) ease, color var(--service-morph-duration) ease,
    opacity var(--service-morph-duration) ease, transform var(--service-morph-duration) ease;
}

.service-description {
  display: block;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: #21394f;
  font-size: 15px;
  letter-spacing: 0.015em;
  line-height: 1.85;
  opacity: 0;
  transform: translateY(12px);
  transition: max-height var(--service-morph-duration) ease, margin var(--service-morph-duration) ease, color var(--service-morph-duration) ease,
    opacity var(--service-morph-duration) ease, transform var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1);
}

.service-node.is-active {
  z-index: 3;
}

.service-node.is-active .service-trigger {
  width: 600px;
  height: 520px;
  justify-content: flex-start;
  padding: 72px 110px 140px;
  color: var(--service-ink, #073d82);
  transform: translate3d(var(--service-shift-x, 0px), var(--service-shift-y, 0px), 0)
    translateX(-50%) scale(1.015);
}

.service-node.is-active .service-trigger::before,
.service-node.is-active .service-trigger::after {
  clip-path: polygon(
    50% 0%, 58.33% 0%, 66.67% 0%, 75% 0%, 83.33% 0%, 91.67% 0%,
    100% 0%, 95.83% 8.33%, 91.67% 16.67%, 87.5% 25%, 83.33% 33.33%,
    79.17% 41.67%, 75% 50%, 70.83% 58.33%, 66.67% 66.67%, 62.5% 75%,
    58.33% 83.33%, 54.17% 91.67%, 50% 100%, 45.83% 91.67%,
    41.67% 83.33%, 37.5% 75%, 33.33% 66.67%, 29.17% 58.33%, 25% 50%,
    20.83% 41.67%, 16.67% 33.33%, 12.5% 25%, 8.33% 16.67%, 4.17% 8.33%,
    0% 0%, 8.33% 0%, 16.67% 0%, 25% 0%, 33.33% 0%, 41.67% 0%
  );
}

.service-node.is-active .service-trigger::before {
  filter: drop-shadow(0 26px 30px rgba(5, 42, 99, 0.22));
}

.service-node.is-active .service-trigger::after {
  opacity: 0;
}

.service-node.is-active .service-icon {
  max-height: 0;
  opacity: 0;
  transform: scale(0.72);
  pointer-events: none;
}

.service-node.is-active .service-title {
  max-height: 86px;
  font-size: 23px;
  letter-spacing: 0.045em;
  opacity: 1;
  transform: translateY(1px);
}

.service-node.is-active .service-title-break {
  display: none;
}

.service-node.is-active .service-en {
  max-height: 22px;
  margin-top: 10px;
  color: var(--service-accent, #2686d8);
  opacity: 1;
  transform: translateY(0);
}

.service-node.is-active .service-description {
  width: 330px;
  max-height: 150px;
  margin-top: 20px;
  color: #21394f;
  font-size: 15px;
  line-height: 1.8;
  opacity: 1;
  transform: translateY(0);
}

.services-stage.has-active .service-node:not(.is-active) {
  opacity: 0.38;
  filter: saturate(0.65);
}

@media (max-width: 900px) {
  .services-stage {
    --service-triangle-size: min(72vw, 590px);
    --service-circle-size: 190px;
    min-height: 701px;
  }

  .services-triangle {
    top: 95px;
  }

  .service-node--right {
    right: max(0px, calc(50% - min(36vw, 295px) - 95px));
  }

  .service-node--left {
    left: max(0px, calc(50% - min(36vw, 295px) - 95px));
  }

  .service-icon {
    width: 140px;
    height: 140px;
    max-height: 140px;
  }

  .service-node.is-active .service-trigger {
    width: 520px;
    height: 450px;
    padding: 64px 88px 122px;
  }

  .service-node.is-active .service-description {
    width: 300px;
  }
}

@media (max-width: 720px) {
  .services-system-lead {
    margin-top: 16px;
    margin-bottom: 36px;
  }

  .services-stage {
    --service-triangle-size: min(116vw, 450px);
    --service-circle-size: 178px;
    min-height: 568px;
  }

  .services-triangle {
    top: 89px;
  }

  .service-node--top {
    top: 0;
  }

  .service-node--right {
    top: auto;
    right: max(0px, calc(50% - min(58vw, 225px) - 89px));
    bottom: 0;
  }

  .service-node--left {
    top: auto;
    bottom: 0;
    left: max(0px, calc(50% - min(58vw, 225px) - 89px));
  }

  .service-trigger {
    padding: 24px;
  }

  .service-icon {
    width: 230px;
    height: 230px;
    max-height: 230px;
  }

  .service-title {
    font-size: 16px;
  }

  .service-node.is-active .service-trigger {
    width: min(96vw, 400px);
    height: min(84vw, 340px);
    padding: 48px 48px 92px;
  }

  .service-node.is-active .service-title {
    font-size: 19px;
  }

  .service-node.is-active .service-description {
    width: min(260px, 70vw);
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-node,
  .service-trigger,
  .service-trigger::before,
  .service-trigger::after,
  .service-icon,
  .service-title,
  .service-en,
  .service-description {
    transition: none;
  }
}


/* =========================================================
   Services concept v8:
   true Triforce geometry / solid blue / no gradients
   ========================================================= */

.services--mosaic {
  overflow: visible;
}

.services--mosaic .services-system-lead {
  margin-bottom: 52px;
}

.services--mosaic .mosaic-stage {
  --service-morph-duration: 900ms;
  --tri-side: clamp(240px, 31vw, 320px);
  --tri-height: calc(var(--tri-side) * 0.8660254);

  position: relative;
  width: calc(var(--tri-side) * 2);
  height: calc(var(--tri-height) * 2);
  min-height: 0;
  margin: 0 auto;
  isolation: isolate;
}

.services--mosaic .services-list {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services--mosaic .service-node {
  position: absolute;
  z-index: 3;
  width: var(--tri-side);
  height: var(--tri-height);
  transition: opacity 360ms ease, filter 360ms ease;
}

/* True Triforce placement:
   top triangle + two lower triangles.
   The three vertices touch exactly, leaving one inverted triangle in the center. */
.services--mosaic .service-node--planning {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.services--mosaic .service-node--design {
  top: var(--tri-height);
  left: 25%;
  transform: translateX(-50%);
}

.services--mosaic .service-node--editing {
  top: var(--tri-height);
  left: 75%;
  transform: translateX(-50%);
}

.services--mosaic .service-trigger {
  position: relative;
  left: 50%;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 16% 14% 11%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #073d82;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transform: translateX(-50%);
  transform-origin: center;
  transition:
    width var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1),
    height var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1),
    padding var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1),
    transform var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1);
}

.services--mosaic .service-trigger::before,
.services--mosaic .service-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transition:
    clip-path var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1),
    opacity var(--service-morph-duration) ease,
    filter var(--service-morph-duration) ease;
}

.services--mosaic .service-trigger::before {
  background: transparent;
}

/* Solid color only — no gradient. */
.services--mosaic .service-trigger::after {
  background: #2f6fc3;
  opacity: 1;
  filter: none;
}

.services--mosaic .service-node--planning,
.services--mosaic .service-node--design,
.services--mosaic .service-node--editing {
  --service-ink: #073d82;
  --service-accent: #2f6fc3;
}

.services--mosaic .service-trigger > span,
.services--mosaic .service-icon {
  position: relative;
  z-index: 1;
}

.services--mosaic .service-icon {
  display: block;
  width: 74%;
  height: 74%;
  max-height: none;
  flex: 0 0 auto;
  margin: 7% 0 0;
  object-fit: contain;
  opacity: 1;
  order: -2;
  transform: scale(1);
  transform-origin: center;
  transition:
    opacity calc(var(--service-morph-duration) * .55) ease,
    transform var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1);
}

.services--mosaic .service-title {
  max-height: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.55;
  opacity: 0;
  order: -1;
  transform: translateY(10px);
  transition:
    max-height var(--service-morph-duration) ease,
    font-size var(--service-morph-duration) ease,
    letter-spacing var(--service-morph-duration) ease,
    opacity var(--service-morph-duration) ease,
    transform var(--service-morph-duration) ease;
}

.services--mosaic .service-en {
  max-height: 0;
  overflow: hidden;
  color: var(--service-accent);
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition:
    max-height var(--service-morph-duration) ease,
    margin var(--service-morph-duration) ease,
    opacity var(--service-morph-duration) ease,
    transform var(--service-morph-duration) ease;
}

.services--mosaic .service-description {
  display: block;
  width: 330px;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: #21394f;
  font-size: 15px;
  letter-spacing: .015em;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(12px);
  transition:
    max-height var(--service-morph-duration) ease,
    margin var(--service-morph-duration) ease,
    opacity var(--service-morph-duration) ease,
    transform var(--service-morph-duration) cubic-bezier(0.16, 1, 0.3, 1);
}

.services--mosaic .service-trigger:focus-visible {
  outline: 3px solid rgba(36,107,254,.34);
  outline-offset: 7px;
}

.services--mosaic .service-node.is-active {
  z-index: 20;
}

.services--mosaic .service-node.is-active .service-trigger {
  width: 600px;
  height: 520px;
  justify-content: flex-start;
  padding: 76px 110px 136px;
  color: var(--service-ink);
  transform:
    translate3d(var(--service-shift-x, 0px), var(--service-shift-y, 0px), 0)
    translateX(-50%);
}

.services--mosaic .service-node.is-active .service-trigger::before,
.services--mosaic .service-node.is-active .service-trigger::after {
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.services--mosaic .service-node.is-active .service-trigger::after {
  background: #2f6fc3;
  opacity: .08;
  filter: drop-shadow(0 26px 34px rgba(5,42,99,.22));
}

.services--mosaic .service-node.is-active .service-icon {
  opacity: 0;
  transform: scale(.72);
  pointer-events: none;
}

.services--mosaic .service-node.is-active .service-title {
  max-height: 86px;
  font-size: 23px;
  letter-spacing: .045em;
  opacity: 1;
  transform: translateY(1px);
}

.services--mosaic .service-node.is-active .service-title-break {
  display: none;
}

.services--mosaic .service-node.is-active .service-en {
  max-height: 22px;
  margin-top: 10px;
  opacity: 1;
  transform: translateY(0);
}

.services--mosaic .service-node.is-active .service-description {
  max-height: 150px;
  margin-top: 20px;
  opacity: 1;
  transform: translateY(0);
}

.services--mosaic .mosaic-stage.has-active .service-node:not(.is-active) {
  opacity: .20;
  filter: saturate(.60);
}

@media (max-width: 900px) {
  .services--mosaic .mosaic-stage {
    --tri-side: clamp(210px, 31vw, 270px);
  }

  .services--mosaic .service-node.is-active .service-trigger {
    width: 520px;
    height: 450px;
    padding: 66px 88px 118px;
  }

  .services--mosaic .service-node.is-active .service-description {
    width: 300px;
  }
}

@media (max-width: 720px) {
  .services--mosaic .services-system-lead {
    margin-bottom: 34px;
  }

  .services--mosaic .mosaic-stage {
    --tri-side: min(43vw, 165px);
  }

  .services--mosaic .service-icon {
    width: 64%;
    height: 64%;
  }

  .services--mosaic .service-node.is-active .service-trigger {
    width: min(94vw, 390px);
    height: min(82vw, 335px);
    padding: 48px 46px 88px;
  }

  .services--mosaic .service-node.is-active .service-title {
    font-size: 19px;
  }

  .services--mosaic .service-node.is-active .service-description {
    width: min(260px, 70vw);
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.65;
  }
}

/* v9 icon optical-size tuning */
.services--mosaic .service-node--planning .service-icon {
  width: 76%;
  height: 76%;
}
.services--mosaic .service-node--design .service-icon {
  width: 73%;
  height: 73%;
}
.services--mosaic .service-node--editing .service-icon {
  width: 79%;
  height: 79%;
}



/* =========================================================
   Services concept v12:
   tap/hover = expand upright triangle to full Triforce size
   ========================================================= */

/* Normal icons: compact and visually centered inside each triangle. */
.services--mosaic .service-icon,
.services--mosaic .service-node--planning .service-icon,
.services--mosaic .service-node--design .service-icon,
.services--mosaic .service-node--editing .service-icon {
  position: absolute;
  top: 64%;
  left: 50%;
  width: 43%;
  height: auto;
  max-height: 39%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
}

/* Selected service:
   enlarge from one Triforce cell to the size of the WHOLE Triforce. */
.services--mosaic .service-node.is-active {
  z-index: 20;
}

.services--mosaic .service-node.is-active .service-trigger {
  width: calc(var(--tri-side) * 2);
  height: calc(var(--tri-height) * 2);
  padding: 24% 21% 12%;
  align-items: center;
  justify-content: center;
  color: #fff;
  transform:
    translate3d(var(--service-shift-x, 0px), var(--service-shift-y, 0px), 0)
    translateX(-50%);
}

/* Keep the same upright equilateral-triangle orientation. */
.services--mosaic .service-node.is-active .service-trigger::before,
.services--mosaic .service-node.is-active .service-trigger::after {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* Same solid blue as the normal state. No gradient. */
.services--mosaic .service-node.is-active .service-trigger::after {
  background: #2f6fc3;
  opacity: 1;
  filter: drop-shadow(0 22px 34px rgba(5, 42, 99, .22));
}

/* Details replace the icon. */
.services--mosaic .service-node.is-active .service-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.82);
  pointer-events: none;
}

.services--mosaic .service-node.is-active .service-title {
  max-height: 82px;
  color: #fff;
  font-size: clamp(22px, 2.5vw, 29px);
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.35;
  opacity: 1;
  transform: none;
}

.services--mosaic .service-node.is-active .service-title-break {
  display: none;
}

.services--mosaic .service-node.is-active .service-en {
  max-height: 24px;
  margin-top: 10px;
  color: rgba(255,255,255,.78);
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: .10em;
  line-height: 1.3;
  opacity: 1;
  transform: none;
}

.services--mosaic .service-node.is-active .service-description {
  width: min(420px, 58%);
  max-height: 140px;
  margin-top: 18px;
  color: rgba(255,255,255,.96);
  font-size: clamp(13px, 1.45vw, 16px);
  line-height: 1.7;
  letter-spacing: .01em;
  opacity: 1;
  transform: none;
}

/* The other two remain underneath, faintly visible during the overlap. */
.services--mosaic .mosaic-stage.has-active .service-node:not(.is-active) {
  opacity: .22;
  filter: saturate(.55);
}

@media (max-width: 900px) {
  .services--mosaic .service-node.is-active .service-trigger {
    width: calc(var(--tri-side) * 2);
    height: calc(var(--tri-height) * 2);
    padding: 23% 19% 11%;
  }

  .services--mosaic .service-node.is-active .service-description {
    width: 62%;
    font-size: 13px;
    line-height: 1.6;
  }
}

@media (max-width: 720px) {
  .services--mosaic .service-icon,
  .services--mosaic .service-node--planning .service-icon,
  .services--mosaic .service-node--design .service-icon,
  .services--mosaic .service-node--editing .service-icon {
    width: 42%;
    max-height: 38%;
  }

  .services--mosaic .service-node.is-active .service-trigger {
    width: calc(var(--tri-side) * 2);
    height: calc(var(--tri-height) * 2);
    padding: 22% 16% 10%;
  }

  .services--mosaic .service-node.is-active .service-title {
    max-height: 60px;
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.28;
  }

  .services--mosaic .service-node.is-active .service-en {
    max-height: 18px;
    margin-top: 6px;
    font-size: 8.5px;
    letter-spacing: .07em;
  }

  .services--mosaic .service-node.is-active .service-description {
    width: 66%;
    max-height: 92px;
    margin-top: 10px;
    font-size: 10px;
    line-height: 1.45;
  }
}


/* =========================================================
   Services concept v13:
   active-state typography fitted to the large triangle
   ========================================================= */

/* Put the content lower than the apex and keep everything centered. */
.services--mosaic .service-node.is-active .service-trigger {
  padding: 0;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

/* Title uses the intentional slash line-break again. */
.services--mosaic .service-node.is-active .service-title {
  display: block;
  width: 44%;
  max-width: 360px;
  max-height: none;
  margin-top: 39%;
  color: #fff;
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.32;
  text-align: center;
  text-wrap: balance;
  opacity: 1;
  transform: none;
}

.services--mosaic .service-node.is-active .service-title-break {
  display: initial;
}

/* English line stays compact directly below the title. */
.services--mosaic .service-node.is-active .service-en {
  display: block;
  width: 50%;
  max-width: 390px;
  max-height: none;
  margin-top: 9px;
  color: rgba(255,255,255,.78);
  font-size: clamp(10px, 1.05vw, 12.5px);
  letter-spacing: .10em;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  opacity: 1;
  transform: none;
}

/* Description is intentionally broken into three short centered lines. */
.services--mosaic .service-node.is-active .service-description {
  display: block;
  width: 56%;
  max-width: 430px;
  max-height: none;
  margin-top: 16px;
  color: rgba(255,255,255,.96);
  font-size: clamp(13px, 1.35vw, 15.5px);
  line-height: 1.65;
  letter-spacing: .01em;
  text-align: center;
  text-wrap: balance;
  opacity: 1;
  transform: none;
}

/* Slightly tune each title block so the three variants feel optically centered. */
.services--mosaic .service-node--planning.is-active .service-title {
  width: 46%;
}

.services--mosaic .service-node--design.is-active .service-title {
  width: 38%;
}

.services--mosaic .service-node--editing.is-active .service-title {
  width: 40%;
}

@media (max-width: 900px) {
  .services--mosaic .service-node.is-active .service-title {
    width: 46%;
    margin-top: 39%;
    font-size: clamp(19px, 2.5vw, 24px);
  }

  .services--mosaic .service-node.is-active .service-en {
    width: 52%;
    margin-top: 7px;
    font-size: 10px;
  }

  .services--mosaic .service-node.is-active .service-description {
    width: 58%;
    margin-top: 13px;
    font-size: 12.5px;
    line-height: 1.58;
  }
}

@media (max-width: 720px) {
  .services--mosaic .service-node.is-active .service-title,
  .services--mosaic .service-node--planning.is-active .service-title,
  .services--mosaic .service-node--design.is-active .service-title,
  .services--mosaic .service-node--editing.is-active .service-title {
    width: 48%;
    margin-top: 38%;
    font-size: clamp(14px, 4.1vw, 18px);
    line-height: 1.28;
  }

  .services--mosaic .service-node.is-active .service-en {
    width: 56%;
    margin-top: 5px;
    font-size: 7.8px;
    line-height: 1.25;
    letter-spacing: .06em;
  }

  .services--mosaic .service-node.is-active .service-description {
    width: 62%;
    margin-top: 8px;
    font-size: 9.2px;
    line-height: 1.42;
  }
}


/* v14: remove legacy Services min-height so bottom spacing matches other sections */
@media (max-width: 900px) {
  .services--mosaic .mosaic-stage {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .services--mosaic .mosaic-stage {
    min-height: 0;
  }
}


/* v15: lower only the Editing / Proofreading icon slightly */
.services--mosaic .service-node--editing:not(.is-active) .service-icon {
  top: 67%;
  left: 51.5%;
}


/* v17: service color coding */
.services--mosaic .service-node--planning .service-trigger::after,
.services--mosaic .service-node--planning.is-active .service-trigger::after {
  background: #2f6fc3;
}

.services--mosaic .service-node--design .service-trigger::after,
.services--mosaic .service-node--design.is-active .service-trigger::after {
  background: #d94b4b;
}

.services--mosaic .service-node--editing .service-trigger::after,
.services--mosaic .service-node--editing.is-active .service-trigger::after {
  background: #49a46c;
}

/* Keep service accent values aligned with each triangle color. */
.services--mosaic .service-node--planning {
  --service-accent: #2f6fc3;
}

.services--mosaic .service-node--design {
  --service-accent: #d94b4b;
}

.services--mosaic .service-node--editing {
  --service-accent: #49a46c;
}
