:root {
  --ink: #0a1626;
  --ink-soft: #18283c;
  --paper: #f4f1ea;
  --paper-2: #ece7dd;
  --white: #ffffff;
  --mist: rgba(255, 255, 255, 0.72);
  --line: rgba(10, 22, 38, 0.16);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --glass-card: rgba(255, 255, 255, 0.28);
  --glass-card-hover: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --glass-radius: 18px;
  --glass-blur: blur(22px) saturate(160%);
  --glass-blue-parent: linear-gradient(
    180deg,
    rgba(63, 150, 184, 0.38) 0%,
    rgba(46, 143, 178, 0.44) 45%,
    rgba(28, 111, 152, 0.5) 100%
  );
  --glass-blue-parent-hover: linear-gradient(
    180deg,
    rgba(74, 160, 191, 0.48) 0%,
    rgba(46, 143, 178, 0.54) 50%,
    rgba(28, 111, 152, 0.58) 100%
  );
  --glass-blue-parent-border: rgba(255, 255, 255, 0.42);
  --glass-blue-parent-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 28px rgba(21, 54, 90, 0.08);
  --glass-blue-parent-text: rgba(255, 255, 255, 0.94);
  --glass-blue-child: linear-gradient(
    180deg,
    rgba(168, 220, 240, 0.22) 0%,
    rgba(130, 200, 225, 0.26) 45%,
    rgba(95, 180, 210, 0.3) 100%
  );
  --glass-blue-child-hover: linear-gradient(
    180deg,
    rgba(168, 220, 240, 0.32) 0%,
    rgba(130, 200, 225, 0.36) 50%,
    rgba(95, 180, 210, 0.4) 100%
  );
  --glass-blue-child-active: linear-gradient(
    180deg,
    rgba(130, 200, 225, 0.42) 0%,
    rgba(95, 180, 210, 0.48) 100%
  );
  --glass-blue-child-border: rgba(255, 255, 255, 0.52);
  --glass-blue-child-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 6px 20px rgba(21, 54, 90, 0.06);
  --glass-blue-child-text: rgba(21, 54, 90, 0.82);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ink);
  font-family: var(--sans);
  line-height: 1.9;
}

body.nav-open {
  overflow: hidden;
}

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 34px) clamp(20px, 4vw, 60px);
  color: var(--white);
  text-shadow: 0 2px 16px rgba(10, 22, 38, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand-logo {
  display: block;
  width: clamp(92px, 9vw, 128px);
  height: auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(10, 22, 38, 0.18);
}

.brand-mark {
  position: relative;
  display: block;
  width: 44px;
  height: 38px;
  border: 2px solid currentColor;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.brand-mark::before {
  position: absolute;
  inset: 7px;
  content: "";
  border: 2px solid currentColor;
  opacity: 0.65;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.brand-mark span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.brand-mark span:first-child { top: 15px; }
.brand-mark span:last-child { top: 21px; }

.brand-mark--image {
  width: 58px;
  height: 48px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 12px;
  clip-path: none;
  box-shadow: 0 10px 30px rgba(10, 22, 38, 0.18);
}

.brand-mark--image::before {
  display: none;
}

.brand-mark--image img {
  position: absolute;
  left: 50%;
  top: 43%;
  display: block;
  width: 112px;
  max-width: none;
  height: 112px;
  transform: translate(-50%, -50%) rotate(-0.9deg);
  object-fit: cover;
}

.brand strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.brand small {
  display: block;
  margin-top: 3px;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  opacity: 0.7;
}

.global-nav {
  display: flex;
  gap: clamp(14px, 1.8vw, 28px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.global-nav a {
  position: relative;
  padding-bottom: 4px;
  opacity: 0.82;
}

.global-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transition: width 0.4s ease;
}

.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- Scene ---------- */
.scene {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 120px);
  overflow: hidden;
  isolation: isolate;
}

.scene--center { align-items: center; }
.scene--tight { min-height: 86svh; }

.scene__bg {
  position: absolute;
  inset: -2px;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--p, 0), 0) scale(1.14);
  will-change: transform;
}

.scene__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.scene.is-dark { color: var(--white); }
.scene.is-dark .scene__veil {
  background: linear-gradient(180deg, rgba(10, 22, 38, 0.55), rgba(10, 22, 38, 0.28) 40%, rgba(10, 22, 38, 0.82));
}

.scene.is-light { color: var(--ink); }
.scene.is-light .scene__veil {
  background: linear-gradient(180deg, rgba(244, 241, 234, 0.42), rgba(244, 241, 234, 0.1) 40%, rgba(244, 241, 234, 0.78));
}

.scene__inner {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.kicker {
  margin: 0 0 clamp(18px, 3vw, 30px);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  opacity: 0.85;
}

.statement {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 6.6rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.statement.huge {
  font-size: clamp(3rem, 11vw, 9.5rem);
  line-height: 1.02;
}

.sub {
  margin: clamp(22px, 3vw, 38px) 0 0;
  max-width: 40ch;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.86;
}

.scene--center .sub { margin-inline: auto; }
.align-center { text-align: center; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  transform: translateX(-50%);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  opacity: 0.8;
}

.scroll-cue::after {
  display: block;
  width: 1px;
  height: 46px;
  margin: 12px auto 0;
  content: "";
  background: currentColor;
  opacity: 0.6;
  animation: cue 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.3); opacity: 0.2; }
  50% { transform: scaleY(1); opacity: 0.7; }
}

/* ---------- Flow (narrative) ---------- */
.flow {
  padding: clamp(110px, 18vw, 240px) clamp(20px, 6vw, 120px);
  background: transparent;
  color: var(--ink);
}

.flow__inner {
  max-width: 1100px;
  margin-inline: auto;
}

.flow__lead {
  margin: 0 0 clamp(60px, 10vw, 140px);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.flow__steps {
  display: grid;
  gap: clamp(40px, 7vw, 110px);
}

.flow__step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.flow__step:nth-child(even) .flow__shot { order: 2; }

.flow__word {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.flow__word small {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  opacity: 0.55;
}

.flow__shot {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

.flow__last {
  margin: clamp(60px, 10vw, 140px) 0 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  text-align: right;
}

/* ---------- Gallery ---------- */
.gallery {
  background: var(--ink);
  color: var(--white);
  padding: clamp(90px, 14vw, 200px) 0 clamp(40px, 8vw, 120px);
}

.gallery__head {
  max-width: 1180px;
  margin: 0 auto clamp(50px, 8vw, 110px);
  padding: 0 clamp(20px, 6vw, 120px);
}

.shots {
  display: grid;
  gap: clamp(60px, 10vw, 150px);
}

.shot {
  position: relative;
  overflow: hidden;
}

.shot__img {
  height: clamp(60vh, 84vh, 92vh);
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--p, 0), 0) scale(1.12);
  will-change: transform;
}

.shot--wide { width: 100%; }

.shot--inset .shot__img {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  height: clamp(56vh, 70vh, 80vh);
}

.shot__cap {
  max-width: 1180px;
  margin: 22px auto 0;
  padding: 0 clamp(20px, 6vw, 120px);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  opacity: 0.66;
}

.shot__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

img.shot__img {
  display: block;
  object-fit: contain;
  object-position: center center;
}

/* ---------- Works archive ---------- */
.works-section {
  position: relative;
  padding: 0.5em clamp(20px, 6vw, 120px) clamp(100px, 14vw, 180px);
  color: var(--ink);
  background: transparent;
  overflow-anchor: auto;
}

.works-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 40px);
  max-width: 1160px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}

.works-filter-group {
  display: grid;
  gap: 14px;
}

.works-filter-group__label {
  display: inline-block;
  width: fit-content;
  margin: 0;
  padding: 9px 18px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: #fff;
  background: linear-gradient(135deg, var(--card-blue) 0%, var(--card-blue-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(21, 54, 90, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.works-filter-group__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.works-filter-tag {
  padding: 9px 17px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--card-blue-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(46, 143, 178, 0.5);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(21, 54, 90, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.works-filter-tag:hover {
  color: var(--card-blue-deep);
  background: #fff;
  border-color: var(--card-blue);
  transform: translateY(-1px);
}

.works-filter-tag.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--card-blue) 0%, var(--card-blue-deep) 100%);
  border-color: var(--card-blue-deep);
  box-shadow: 0 8px 22px rgba(21, 54, 90, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.works-filter-status {
  max-width: 1160px;
  margin: 0 auto clamp(24px, 4vw, 36px);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(21, 54, 90, 0.68);
}

.works-empty {
  grid-column: 1 / -1;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  color: rgba(21, 54, 90, 0.68);
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.works-empty p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px);
  max-width: 1160px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  overflow-anchor: auto;
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

a.work-card:focus-visible {
  outline: 2px solid var(--card-blue);
  outline-offset: 3px;
}

.work-card:hover {
  border-color: rgba(224, 185, 104, 0.6);
  background: var(--glass-card-hover);
}

.work-card:active {
  transform: scale(0.98);
}

.work-card__tag {
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: 6px;
}

.work-card__tag--parent {
  color: var(--glass-blue-parent-text);
  background: var(--glass-blue-parent);
  border: 1px solid var(--glass-blue-parent-border);
  box-shadow: var(--glass-blue-parent-shadow);
}

.work-card__tag--child {
  color: var(--glass-blue-child-text);
  background: var(--glass-blue-child);
  border: 1px solid var(--glass-blue-child-border);
  box-shadow: var(--glass-blue-child-shadow);
}

.work-card__media {
  position: relative;
  overflow: hidden;
}

.work-card__img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.work-card:hover .work-card__img {
  transform: scale(1.05);
}

.work-card__cat {
  position: absolute;
  top: 0;
  left: 0;
  padding: 7px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, rgba(46, 143, 178, 0.96), rgba(28, 111, 152, 0.96));
  border-bottom-right-radius: 12px;
  box-shadow: 0 4px 14px rgba(21, 54, 90, 0.22);
}

.work-card__body {
  position: relative;
  padding: 16px 18px 20px;
}

.work-card__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.work-card__meta {
  margin: 8px 0 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(21, 54, 90, 0.6);
}

/* ---------- All-works marquee ---------- */
.works-marquee {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0 clamp(90px, 13vw, 170px);
  overflow: hidden;
}

.works-marquee__head {
  max-width: 1160px;
  margin: 0 auto clamp(32px, 5vw, 52px);
  padding: 0 clamp(20px, 6vw, 120px);
}

.works-marquee__head .sub {
  max-width: 52ch;
}

.works-marquee__viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.works-marquee__track {
  display: flex;
  width: max-content;
  padding-block: 18px;
  animation: works-marquee 97.5s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes works-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.marquee-card {
  position: relative;
  flex: 0 0 clamp(220px, 24vw, 300px);
  margin-right: clamp(16px, 2vw, 26px);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.marquee-card:hover {
  transform: scale(1.07);
  z-index: 2;
  box-shadow: 0 22px 54px rgba(21, 54, 90, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.marquee-card__img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.marquee-card:hover .marquee-card__img {
  transform: scale(1.08);
}

.marquee-card__cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 16px;
}

.marquee-card__cat {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--card-blue-deep);
}

.marquee-card__title {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .works-marquee__track {
    animation: none;
    transform: translateX(0);
  }
}

.contact__address {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  opacity: 0.72;
}

/* ---------- Section titles (JP-first) ---------- */
.section-title {
  margin: 0 0 clamp(18px, 3vw, 30px);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.scene--intro .statement {
  font-size: clamp(2.2rem, 6.5vw, 5.4rem);
}

/* ヒーロー上部キッカー削除後の余白 */
.scene--intro .scene__inner,
.works-hero .scene__inner {
  padding-top: clamp(18px, 3vw, 30px);
}

/* ---------- Building targets ---------- */
.target-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin: clamp(48px, 8vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}

.target-list li {
  padding: clamp(32px, 5vw, 52px) clamp(12px, 2vw, 20px);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

@media (hover: hover) {
  .target-list li:hover {
    border-color: rgba(224, 185, 104, 0.6);
    background: var(--glass-card-hover);
  }
}

/* ---------- Services ---------- */
.services {
  position: relative;
  padding: clamp(100px, 16vw, 200px) clamp(20px, 6vw, 120px);
  color: var(--ink);
  background: transparent;
}

.services__inner {
  max-width: 1100px;
  margin-inline: auto;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin: clamp(48px, 8vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  display: grid;
  gap: 10px;
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 44px);
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

@media (hover: hover) {
  .service-list li:hover {
    border-color: rgba(224, 185, 104, 0.6);
    background: var(--glass-card-hover);
  }
}

.service-list__name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.service-list__desc {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(21, 54, 90, 0.58);
}

.gallery__more {
  max-width: 1180px;
  margin: clamp(48px, 8vw, 80px) auto 0;
  padding: 0 clamp(20px, 6vw, 120px);
  text-align: center;
}

.gallery__more a {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.gallery__more a:hover {
  border-color: rgba(224, 185, 104, 0.6);
  background: var(--glass-card-hover);
}

/* ---------- Works hero ---------- */
.works-hero.scene {
  min-height: auto;
  padding-top: clamp(88px, 10vw, 130px);
  padding-bottom: 0.5em;
}

.works-hero .statement {
  font-size: clamp(1.5rem, 5.5vw, 4.75rem);
  line-height: 1.2;
}

.works-hero .sub {
  margin-top: clamp(14px, 2vw, 22px);
  margin-bottom: 0;
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
}

/* ---------- Contact ---------- */
.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86svh;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 120px);
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.contact__inner {
  max-width: 760px;
  padding: clamp(32px, 5vw, 48px);
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(34px, 5vw, 56px);
}

.contact__links a {
  padding: 15px 26px;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.contact__links a:hover {
  border-color: rgba(224, 185, 104, 0.6);
  background: var(--glass-card-hover);
}

.contact-form {
  margin-top: clamp(34px, 5vw, 56px);
  text-align: left;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.contact-form__field {
  display: block;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.contact-form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: rgba(21, 54, 90, 0.78);
}

.contact-form__required {
  font-size: 0.72rem;
  color: var(--card-blue-deep);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(224, 185, 104, 0.6);
  background: var(--glass-card-hover);
}

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

.contact-form__submit {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: clamp(24px, 4vw, 40px) auto 0;
  padding: 16px 32px;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--card-blue-deep);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.25s ease;
}

.contact-form__submit:hover {
  background: var(--card-blue);
  transform: translateY(-1px);
}

.contact:has(.contact-form) .contact__links {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--glass-border);
}

/* ---------- Work detail ---------- */
.work-detail-section {
  position: relative;
  padding: clamp(48px, 8vw, 100px) clamp(20px, 6vw, 120px) clamp(100px, 14vw, 180px);
  color: var(--ink);
}

.work-detail__inner {
  max-width: 960px;
  margin-inline: auto;
}

.work-detail__back {
  display: inline-block;
  margin-bottom: clamp(24px, 4vw, 40px);
  padding: 12px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.work-detail__back:hover {
  border-color: rgba(224, 185, 104, 0.6);
  background: var(--glass-card-hover);
}

.work-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.work-detail__title {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.work-detail__meta {
  margin: 0 0 clamp(32px, 5vw, 48px);
  padding: clamp(8px, 1.5vw, 12px) 0;
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.work-detail__meta div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-border);
}

.work-detail__meta div:last-child {
  border-bottom: none;
}

.work-detail__meta dt {
  margin: 0;
  color: rgba(21, 54, 90, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.work-detail__meta dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.work-detail__lead,
.work-detail__text {
  max-width: 62ch;
  margin: 0 0 clamp(28px, 4vw, 40px);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.9;
  color: rgba(21, 54, 90, 0.82);
}

.work-detail__body {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.work-detail__gallery {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.work-detail__photo {
  margin: 0;
  overflow: hidden;
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.work-detail__photo-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

.work-detail__photo-full {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.04);
}

.work-detail__caption {
  margin: 0;
  padding: 12px 16px 14px;
  font-size: 0.88rem;
  color: rgba(21, 54, 90, 0.7);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .work-detail__meta div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Profile / Staff ---------- */
.profile-section {
  padding: clamp(100px, 16vw, 220px) clamp(20px, 6vw, 120px);
  background: transparent;
  color: var(--ink);
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 48px);
  align-items: stretch;
  max-width: 900px;
  margin-inline: auto;
}

.profile-photo,
.staff-image {
  min-height: clamp(240px, 36vw, 380px);
  background-size: cover;
  background-position: center;
}

.profile-photo--logo,
.staff-image--logo {
  min-height: clamp(200px, 28vw, 300px);
  background-color: var(--white);
  background-size: 55%;
  background-repeat: no-repeat;
  background-position: center;
}

.outline .section-title {
  margin-bottom: clamp(16px, 2vw, 24px);
  margin-top: 0;
}

.outline .sub {
  margin-top: 0;
  margin-bottom: clamp(24px, 4vw, 40px);
  max-width: 48ch;
}

.staff-card .section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
}

.outline {
  padding: clamp(24px, 4vw, 36px);
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.outline dl {
  margin: clamp(24px, 4vw, 50px) 0 0;
}

.outline div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-border);
}

.outline div:last-child {
  border-bottom: none;
}

.outline dt,
.outline dd {
  margin: 0;
}

.outline dt {
  color: rgba(10, 22, 38, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.outline dd {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  letter-spacing: -0.02em;
}

/* ---------- Philosophy ---------- */
.philosophy {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 120px);
}

.philosophy__inner {
  max-width: 1080px;
  margin-inline: auto;
}

.philosophy__lead {
  margin: clamp(12px, 2vw, 20px) 0 clamp(40px, 6vw, 72px);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 2.1rem);
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.philosophy__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.philosophy__item {
  padding: clamp(28px, 3.5vw, 44px) clamp(22px, 2.6vw, 34px);
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.philosophy__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--card-blue);
  letter-spacing: 0.04em;
}

.philosophy__title {
  margin: clamp(10px, 1.5vw, 16px) 0 clamp(8px, 1vw, 12px);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.philosophy__text {
  margin: 0;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  line-height: 1.85;
  color: rgba(21, 54, 90, 0.78);
}

/* ---------- History timeline ---------- */
.history {
  padding: clamp(40px, 7vw, 100px) clamp(20px, 6vw, 120px) clamp(90px, 14vw, 180px);
}

.history__inner {
  max-width: 880px;
  margin-inline: auto;
}

.timeline {
  margin: clamp(36px, 5vw, 60px) 0 0;
  padding: 0 0 0 clamp(18px, 3vw, 34px);
  list-style: none;
  border-left: 2px solid rgba(46, 143, 178, 0.4);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: clamp(72px, 9vw, 110px) 1fr;
  gap: clamp(18px, 3vw, 40px);
  padding: 0 0 clamp(32px, 5vw, 52px);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  position: absolute;
  top: 6px;
  left: calc(-1 * clamp(18px, 3vw, 34px) - 8px);
  width: 14px;
  height: 14px;
  content: "";
  background: var(--card-blue);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(46, 143, 178, 0.22);
}

.timeline__year {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--card-blue-deep);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.timeline__body {
  padding-top: 2px;
}

.timeline__title {
  margin: 0 0 clamp(6px, 1vw, 10px);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.timeline__text {
  margin: 0;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  line-height: 1.85;
  color: rgba(21, 54, 90, 0.78);
}

@media (max-width: 720px) {
  .philosophy__list {
    grid-template-columns: 1fr;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  max-width: 1240px;
  margin-inline: auto;
}

.staff-card {
  display: grid;
  gap: 26px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

@media (hover: hover) {
  .staff-card:hover {
    border-color: rgba(224, 185, 104, 0.6);
    background: var(--glass-card-hover);
  }
}

.staff-card--large {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.staff-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.staff-card p:not(.kicker) {
  max-width: 42em;
  margin: 20px 0 0;
  color: rgba(10, 22, 38, 0.72);
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 30px clamp(20px, 6vw, 120px);
  background: #050d18;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

.site-footer p { margin: 0; }

/* ---------- Reveal (progressive enhancement) ---------- */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(26px);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .scene__bg, .shot__img { transform: scale(1.04) !important; }
  .scene__slide { transition: none; }
  .scroll-cue::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .global-nav {
    position: fixed;
    inset: 0;
    z-index: 25;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 0 32px;
    font-size: 1.6rem;
    letter-spacing: 0.12em;
    background: var(--glass-card);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    color: var(--ink);
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .nav-open .global-nav { transform: translateY(0); }
  .nav-open .nav-toggle { color: var(--ink); mix-blend-mode: normal; }

  .flow__step { grid-template-columns: 1fr; }
  .flow__step:nth-child(even) .flow__shot { order: 0; }
  .flow__last { text-align: left; }
  .shot__img { height: 64vh; }
  .scene { padding-left: clamp(16px, 4.5vw, 28px); padding-right: clamp(16px, 4.5vw, 28px); }
  .profile-layout,
  .staff-grid,
  .staff-card--large {
    grid-template-columns: 1fr;
  }
  .staff-card--large {
    grid-column: auto;
  }
  .outline div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .profile-photo,
  .staff-image {
    min-height: 380px;
  }

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

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass-card: rgba(255, 255, 255, 0.82);
    --glass-card-hover: rgba(255, 255, 255, 0.92);
  }
}

/* ---------- Business card inspired skin ---------- */
:root {
  --ink: #15365a;
  --ink-soft: #245173;
  --paper: #f8f7f2;
  --paper-2: #efede6;
  --card-blue: #2e8fb2;
  --card-blue-deep: #1c6f98;
  --card-blue-line: #1f6090;
  --line: rgba(21, 54, 90, 0.16);
}

.glass-surface {
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-panel {
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

@media (hover: hover) {
  .glass-panel--hover:hover,
  a.glass-panel--hover:hover,
  button.glass-panel--hover:hover {
    border-color: rgba(224, 185, 104, 0.6);
    background: var(--glass-card-hover);
  }
}

body {
  color: var(--ink);
  background:
    radial-gradient(1000px 600px at 50% -10%, rgba(46, 143, 178, 0.22), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(28, 111, 152, 0.14), transparent 60%),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9), transparent 28rem),
    repeating-linear-gradient(0deg, rgba(21, 54, 90, 0.025) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(21, 54, 90, 0.018) 0 1px, transparent 1px 9px),
    var(--paper);
}

/* 背景ウォーターマーク：ブランドの気配だけ残し、コンテンツを主役にする */
body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.07;
  background: url("assets/extec-logo.png") center / min(72vw, 680px) no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at center, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 55% at center, #000 55%, transparent 100%);
  filter: saturate(0.2) opacity(0.9);
}

/* 旧・右側の波オブジェクト（HTMLキャッシュが残った場合の保険） */
.brand-wave,
.brand-mark-wm,
.brand-plate {
  display: none !important;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(6px, 1vw, 12px);
  padding: 6px clamp(20px, 4vw, 60px);
  color: var(--ink);
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: none;
  line-height: 1;
  z-index: 30;
}

.brand {
  flex: 0 0 auto;
  min-width: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: clamp(72px, 9vw, 128px);
  height: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.global-nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
}

.global-nav::-webkit-scrollbar {
  display: none;
}

.global-nav a {
  flex: 0 0 auto;
  padding: 14px clamp(6px, 0.8vw, 12px);
  white-space: nowrap;
  opacity: 0.8;
}

.global-nav a::after {
  bottom: 1px;
}

.nav-toggle {
  display: none;
}

.scene,
.scene.is-dark,
.scene.is-light {
  color: var(--ink);
  background: transparent;
}

.scene {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "content"
    "media";
  gap: clamp(36px, 6vw, 56px);
  align-items: start;
  min-height: auto;
  padding-top: clamp(88px, 10vw, 130px);
  padding-bottom: clamp(64px, 8vw, 100px);
}

.scene__bg {
  grid-area: media;
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-width: 1160px;
  height: clamp(280px, 52vh, 560px);
  margin-inline: auto;
  z-index: 0;
  background-size: cover;
  background-position: center;
  border: 12px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 80px rgba(21, 54, 90, 0.16);
  transform: translate3d(0, var(--p, 0), 0) scale(1.02);
}

.scene__bg::after {
  position: absolute;
  inset: -12px;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(21, 54, 90, 0.08);
  z-index: 1;
}

.scene__slideshow {
  overflow: hidden;
}

.scene__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.scene__slide.is-active {
  opacity: 1;
}

.scene__veil {
  display: none;
}

.scene__inner {
  grid-area: content;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
}

.scene--center .scene__inner.align-center {
  justify-self: center;
  text-align: center;
}

.statement {
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow-wrap: anywhere;
}

.sub {
  color: rgba(21, 54, 90, 0.76);
}

.scroll-cue {
  color: var(--card-blue-line);
}

.flow,
.gallery,
.contact,
.profile-section,
.philosophy,
.history,
.services {
  position: relative;
  color: var(--ink);
  background: transparent;
}

.flow .sub,
.services .sub,
.gallery__head .sub {
  max-width: 52ch;
}

.flow .kicker + .section-title {
  margin-top: 0;
}

.flow__shot,
.shot__img,
.profile-photo,
.staff-image {
  border: 10px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(21, 54, 90, 0.14);
}

.flow__shot {
  aspect-ratio: 16 / 11;
}

.gallery {
  padding-top: clamp(80px, 11vw, 150px);
}

.shot {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.shot--wide {
  width: min(1160px, calc(100% - 48px));
}

.shot__img,
.shot--inset .shot__img {
  width: 100%;
  height: clamp(360px, 58vh, 620px);
  margin-inline: auto;
  transform: translate3d(0, var(--p, 0), 0) scale(1.03);
}

.shot__cap {
  color: rgba(21, 54, 90, 0.68);
  padding-inline: 0;
}

.contact {
  min-height: 70svh;
  padding-top: clamp(260px, 38vw, 520px);
}

.contact:has(.contact__inner) {
  min-height: auto;
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(140px, 20vw, 260px);
}

.contact:has(.contact__inner) .section-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.contact:has(.contact__inner) .sub {
  margin-inline: auto;
  max-width: 48ch;
}

.contact:has(.contact-form) .contact__inner {
  max-width: 640px;
}

.site-footer {
  color: rgba(21, 54, 90, 0.66);
  background: rgba(248, 247, 242, 0.84);
  border-top: 1px solid rgba(21, 54, 90, 0.1);
}

.site-footer {
  position: relative;
  min-height: clamp(430px, 56vw, 760px);
  align-items: flex-end;
  padding: clamp(86px, 12vw, 170px) clamp(28px, 7vw, 120px) clamp(34px, 5vw, 58px) clamp(28px, 7vw, 120px);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #4d9dbd 0%, var(--card-blue) 44%, var(--card-blue-deep) 100%);
  border-top: 0;
}

.site-footer::before {
  position: absolute;
  left: clamp(22px, 8vw, 150px);
  bottom: clamp(22px, 4vw, 58px);
  width: clamp(320px, 48vw, 760px);
  aspect-ratio: 1 / 0.84;
  pointer-events: none;
  content: "";
  background: url("assets/extec-logo.png") center / contain no-repeat;
  opacity: 0.42;
  filter: grayscale(1) brightness(1.75) contrast(1.28);
  mix-blend-mode: screen;
}

.site-footer::after {
  display: none;
}

.site-footer__contact {
  position: absolute;
  right: clamp(28px, 7vw, 120px);
  bottom: clamp(34px, 5vw, 58px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: clamp(260px, 26vw, 360px);
  text-align: right;
}

.site-footer__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.site-footer__btn--company {
  font-family: var(--serif);
  font-size: clamp(0.76rem, 1.05vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(74, 160, 191, 0.92), rgba(46, 143, 178, 0.92));
  border-color: rgba(255, 255, 255, 0.45);
}

.site-footer__btn--company:hover {
  background: linear-gradient(135deg, rgba(85, 167, 196, 0.98), rgba(46, 143, 178, 0.98));
}

.site-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  font-size: clamp(0.72rem, 1vw, 0.84rem);
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 18px rgba(21, 54, 90, 0.14);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.site-footer__btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.55);
}

.site-footer__btn--tel {
  background: linear-gradient(135deg, rgba(74, 160, 191, 0.92), rgba(46, 143, 178, 0.92));
  border-color: rgba(255, 255, 255, 0.45);
}

.site-footer__btn--tel:hover {
  background: linear-gradient(135deg, rgba(85, 167, 196, 0.98), rgba(46, 143, 178, 0.98));
}

.site-footer__btn--mail {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.48);
}

.site-footer__btn--mail:hover {
  background: rgba(255, 255, 255, 0.3);
}

.site-footer__btn--instagram {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.82), rgba(225, 48, 108, 0.82), rgba(247, 119, 55, 0.82));
  border-color: rgba(255, 255, 255, 0.42);
}

.site-footer__btn--instagram:hover {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.95), rgba(225, 48, 108, 0.95), rgba(247, 119, 55, 0.95));
}

.site-footer__btn--line {
  background: rgba(6, 199, 85, 0.88);
  border-color: rgba(6, 199, 85, 0.95);
}

.site-footer__btn--line:hover {
  background: rgba(6, 199, 85, 0.98);
}

.site-footer__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .scene {
    gap: 32px;
    padding-top: 150px;
    padding-bottom: 80px;
  }

  .scene__bg {
    height: 44vh;
  }

  .scene__inner {
    max-width: 100%;
  }

  .scene--center .scene__inner.align-center {
    justify-self: stretch;
    text-align: center;
  }

  .global-nav {
    background: var(--glass-card);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: var(--ink);
  }

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

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

  .site-footer__contact {
    right: clamp(18px, 5vw, 28px);
    width: min(320px, calc(100% - 40px));
  }
}

/* ---------- Mobile layout (PC表示は変更なし) ---------- */
@media (max-width: 860px) {
  main {
    overflow-x: clip;
  }

  .scene,
  .flow,
  .gallery,
  .contact,
  .profile-section,
  .philosophy,
  .history,
  .services,
  .works-section,
  .work-detail-section,
  .works-marquee {
    padding-left: clamp(16px, 4.5vw, 28px);
    padding-right: clamp(16px, 4.5vw, 28px);
  }

  .scene {
    padding-top: clamp(76px, 14vw, 96px);
    padding-bottom: clamp(44px, 7vw, 68px);
    gap: clamp(22px, 4.5vw, 32px);
  }

  .scene__bg {
    height: clamp(200px, 50vw, 320px);
    border-width: 8px;
  }

  .works-hero.scene {
    padding-top: clamp(62px, 12vw, 78px);
  }

  .contact {
    min-height: auto;
    padding-top: clamp(72px, 12vw, 110px);
  }

  .contact:has(.contact__inner) {
    padding-bottom: clamp(72px, 12vw, 110px);
  }

  /* 見出し・キッカーの折り返し */
  .kicker {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    overflow-wrap: anywhere;
  }

  .statement,
  .scene--intro .statement {
    font-size: clamp(1.7rem, 7.8vw, 2.5rem);
    line-height: 1.22;
  }

  .section-title {
    font-size: clamp(1.6rem, 6.8vw, 2.35rem);
  }

  .sub {
    max-width: none;
    font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  }

  /* フッター — 青背景を画面最下部まで延長 */
  html {
    background: var(--card-blue-deep);
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
    min-height: clamp(440px, 78svh, 640px);
    padding: clamp(40px, 8vw, 60px) clamp(16px, 4.5vw, 28px) max(clamp(32px, 6vw, 48px), env(safe-area-inset-bottom, 0px)) clamp(16px, 4.5vw, 28px);
    gap: clamp(20px, 4.5vw, 32px);
    overflow: hidden;
  }

  .site-footer::before {
    position: absolute;
    left: clamp(14px, 4vw, 22px);
    bottom: max(clamp(20px, 4vw, 32px), env(safe-area-inset-bottom, 0px));
    width: min(200px, 52vw);
    margin: 0;
    opacity: 0.36;
  }

  .site-footer__contact {
    position: absolute;
    right: clamp(16px, 4.5vw, 28px);
    bottom: max(clamp(24px, 5vw, 36px), env(safe-area-inset-bottom, 0px));
    z-index: 2;
    width: min(300px, calc(100% - 36px));
    max-width: 320px;
    margin: 0;
    text-align: right;
  }

  .site-footer__actions {
    align-items: stretch;
  }

  .site-footer__btn {
    font-size: 0.78rem;
    padding: 11px 14px;
  }

  .site-footer__btn--company {
    white-space: normal;
  }

  /* カード系グリッド */
  .target-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: clamp(32px, 6vw, 48px);
  }

  .target-list li {
    padding: clamp(18px, 4vw, 28px) clamp(8px, 2vw, 12px);
    font-size: clamp(0.9rem, 3.4vw, 1.1rem);
  }

  .service-list li {
    padding: clamp(24px, 5vw, 36px) clamp(18px, 4vw, 24px);
  }

  .shot,
  .shot--wide {
    width: 100%;
  }

  .shot__img,
  .shot--inset .shot__img {
    height: clamp(200px, 46vw, 340px);
  }

  .works-marquee {
    padding-bottom: clamp(56px, 10vw, 90px);
  }

  .works-marquee__head {
    padding-inline: clamp(18px, 5vw, 28px);
  }

  .gallery__head,
  .shot__cap {
    padding-inline: 0;
  }

  /* ヘッダー — ロゴ左・メニュー右（1行） */
  .nav-toggle {
    display: none;
  }

  .site-header {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 4px clamp(12px, 3.5vw, 20px);
    line-height: 1;
  }

  .brand {
    flex: 0 0 auto;
    min-width: 0;
    line-height: 0;
  }

  .brand-logo {
    display: block;
    width: clamp(68px, 18vw, 88px);
    max-width: 100%;
    height: auto;
  }

  .global-nav {
    position: static;
    inset: auto;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    transform: none;
    transition: none;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
    z-index: auto;
  }

  .global-nav::-webkit-scrollbar {
    display: none;
  }

  .global-nav a {
    flex: 0 0 auto;
    display: block;
    width: auto;
    padding: 12px 7px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.25;
    white-space: nowrap;
    opacity: 0.85;
  }

  .global-nav a::after {
    bottom: 1px;
  }

  body.nav-open {
    overflow: auto;
  }
}

@media (max-width: 480px) {
  .target-list {
    gap: 8px;
  }

  .target-list li {
    font-size: 0.88rem;
    padding: 16px 8px;
  }

  .service-list__name {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }

  .global-nav a {
    padding: 12px 6px;
    font-size: 0.64rem;
  }

  .staff-grid {
    gap: 18px;
  }

  .profile-photo,
  .staff-image {
    min-height: 240px;
  }
}

/* ============================================================
   CV components ─ v50
   （読みやすさ・問い合わせ導線を最優先した追加コンポーネント）
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px clamp(20px, 3vw, 32px);
  font: inherit;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: center;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--card-blue) 0%, var(--card-blue-deep) 100%);
  box-shadow: 0 10px 26px rgba(28, 111, 152, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(28, 111, 152, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--secondary {
  color: var(--card-blue-deep);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(46, 143, 178, 0.55);
  box-shadow: 0 6px 18px rgba(21, 54, 90, 0.1);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--card-blue);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(21, 54, 90, 0.28);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(21, 54, 90, 0.45);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* ---------- Hero ---------- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  padding: 8px 16px;
  font-size: clamp(0.72rem, 1vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--card-blue-deep);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(46, 143, 178, 0.4);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1vw, 10px);
  margin: clamp(20px, 3vw, 32px) 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  padding: 8px 16px;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--glass-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(21, 54, 90, 0.08);
}

.hero-chips li.is-strong {
  color: #fff;
  background: linear-gradient(135deg, var(--card-blue) 0%, var(--card-blue-deep) 100%);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.5vw, 14px);
  margin-top: clamp(26px, 4vw, 40px);
}

.hero-tel {
  margin: clamp(14px, 2vw, 20px) 0 0;
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: rgba(21, 54, 90, 0.72);
}

.hero-tel a {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--card-blue-deep);
  text-decoration: underline;
  text-decoration-color: rgba(46, 143, 178, 0.4);
  text-underline-offset: 4px;
}

/* ---------- Section shell ---------- */
.block {
  position: relative;
  padding: clamp(72px, 10vw, 150px) clamp(20px, 6vw, 120px);
  color: var(--ink);
}

.block--tight {
  padding-block: clamp(48px, 7vw, 96px);
}

.block__inner {
  max-width: 1160px;
  margin-inline: auto;
}

.block__lead {
  margin: 0 0 clamp(36px, 5vw, 60px);
}

/* ---------- Audience switch (法人 / 個人) ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.audience-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vw, 14px);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px);
  overflow: hidden;
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.audience-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: linear-gradient(180deg, var(--card-blue), var(--card-blue-deep));
}

.audience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 143, 178, 0.6);
  background: var(--glass-card-hover);
}

.audience-card__kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--card-blue-deep);
}

.audience-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.audience-card__text {
  margin: 0;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.8;
  color: rgba(21, 54, 90, 0.76);
}

.audience-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: clamp(12px, 2vw, 18px);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--card-blue-deep);
}

.audience-card__arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.audience-card:hover .audience-card__arrow::after {
  transform: translateX(4px);
}

/* ---------- Stats (数字で見るExtec) ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.stat {
  display: grid;
  gap: 6px;
  padding: clamp(24px, 3.5vw, 40px) clamp(14px, 2vw, 24px);
  text-align: center;
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat__value {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--card-blue-deep);
}

.stat__value small {
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stat__label {
  font-size: clamp(0.82rem, 1.1vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.stat__note {
  font-size: clamp(0.72rem, 0.95vw, 0.8rem);
  color: rgba(21, 54, 90, 0.6);
}

/* ---------- Reasons (選ばれる理由) ---------- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.reason {
  display: grid;
  gap: clamp(10px, 1.5vw, 14px);
  padding: clamp(24px, 3.5vw, 38px) clamp(20px, 2.6vw, 30px);
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

@media (hover: hover) {
  .reason:hover {
    transform: translateY(-3px);
    border-color: rgba(46, 143, 178, 0.55);
    background: var(--glass-card-hover);
  }
}

.reason__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: linear-gradient(135deg, var(--card-blue) 0%, var(--card-blue-deep) 100%);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(28, 111, 152, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.reason__icon svg {
  width: 24px;
  height: 24px;
}

.reason__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.reason__text {
  margin: 0;
  font-size: clamp(0.88rem, 1.15vw, 0.95rem);
  line-height: 1.85;
  color: rgba(21, 54, 90, 0.76);
}

/* ---------- Works preview (トップ用・大きな事例カード) ---------- */
.works-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.works-preview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.works-preview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(46, 143, 178, 0.6);
  box-shadow: 0 24px 56px rgba(21, 54, 90, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.works-preview-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.works-preview-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.works-preview-card:hover .works-preview-card__img {
  transform: scale(1.06);
}

.works-preview-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, rgba(46, 143, 178, 0.96), rgba(28, 111, 152, 0.96));
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(21, 54, 90, 0.25);
}

.works-preview-card__body {
  display: grid;
  gap: 6px;
  padding: clamp(16px, 2vw, 22px) clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 26px);
}

.works-preview-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}

.works-preview-card__meta {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(21, 54, 90, 0.6);
}

.works-preview-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--card-blue-deep);
}

.works-preview-card__more::after {
  content: "→";
  transition: transform 0.2s ease;
}

.works-preview-card:hover .works-preview-card__more::after {
  transform: translateX(4px);
}

.works-preview__more {
  margin: clamp(28px, 4vw, 44px) 0 0;
  text-align: center;
}

/* ---------- Service detail (対応工事：工法・特徴・用途) ---------- */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.service-detail {
  display: grid;
  gap: clamp(12px, 1.8vw, 18px);
  padding: clamp(26px, 3.5vw, 42px) clamp(22px, 3vw, 36px);
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-detail__name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0;
}

.service-detail__desc {
  margin: 0;
  font-size: clamp(0.88rem, 1.15vw, 0.95rem);
  line-height: 1.85;
  color: rgba(21, 54, 90, 0.78);
}

.service-detail__spec {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
}

.service-detail__spec div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
}

.service-detail__spec dt {
  margin: 0;
  padding: 5px 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--card-blue-deep);
  background: rgba(46, 143, 178, 0.12);
  border: 1px solid rgba(46, 143, 178, 0.3);
  border-radius: 8px;
}

.service-detail__spec dd {
  margin: 0;
  padding-top: 3px;
  font-size: clamp(0.85rem, 1.1vw, 0.92rem);
  line-height: 1.75;
  color: rgba(21, 54, 90, 0.82);
}

/* ---------- Steps (施工の流れ) ---------- */
.steps {
  display: grid;
  gap: 0;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: clamp(52px, 7vw, 64px) 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  padding: 0 0 clamp(30px, 4.5vw, 48px);
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  position: absolute;
  top: clamp(52px, 7vw, 64px);
  bottom: 6px;
  left: calc(clamp(52px, 7vw, 64px) / 2);
  width: 2px;
  content: "";
  background: linear-gradient(180deg, rgba(46, 143, 178, 0.5), rgba(46, 143, 178, 0.15));
}

.step:last-child::before {
  display: none;
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(52px, 7vw, 64px);
  height: clamp(52px, 7vw, 64px);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--card-blue) 0%, var(--card-blue-deep) 100%);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(28, 111, 152, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.step__body {
  padding-top: clamp(6px, 1vw, 12px);
}

.step__title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step__title small {
  margin-left: 10px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--card-blue-deep);
}

.step__text {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(0.88rem, 1.15vw, 0.95rem);
  line-height: 1.85;
  color: rgba(21, 54, 90, 0.76);
}

/* ---------- CTA band (各セクションの問い合わせ導線) ---------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 32px);
  margin: clamp(44px, 6vw, 72px) 0 0;
  padding: clamp(26px, 3.5vw, 44px) clamp(22px, 3.5vw, 48px);
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(255, 255, 255, 0.16), transparent 65%),
    linear-gradient(135deg, #3f9cbe 0%, var(--card-blue) 40%, var(--card-blue-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--glass-radius);
  box-shadow: 0 18px 46px rgba(28, 111, 152, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cta-band__copy {
  flex: 1 1 320px;
  min-width: 0;
}

.cta-band__title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.cta-band__text {
  margin: 0;
  font-size: clamp(0.85rem, 1.1vw, 0.94rem);
  line-height: 1.75;
  opacity: 0.92;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-band .btn--primary {
  color: var(--card-blue-deep);
  background: #fff;
  box-shadow: 0 10px 26px rgba(10, 30, 50, 0.28);
}

.cta-band .btn--primary:hover {
  background: #f4fbff;
}

.cta-band .btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.8);
}

/* ---------- Floating CTA (右下固定) ---------- */
.floating-cta {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: calc(clamp(12px, 2vw, 24px) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.floating-cta a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.floating-cta a:hover {
  transform: translateY(-2px);
}

.floating-cta a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.floating-cta__tel {
  color: var(--card-blue-deep);
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(46, 143, 178, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(21, 54, 90, 0.22);
}

.floating-cta__form {
  color: #fff;
  background: linear-gradient(135deg, var(--card-blue) 0%, var(--card-blue-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 30px rgba(28, 111, 152, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ---------- Troubles (住まいのお悩み・BtoC) ---------- */
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.trouble {
  display: grid;
  gap: 8px;
  padding: clamp(22px, 3vw, 32px) clamp(16px, 2.2vw, 24px);
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.trouble__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.5;
}

.trouble__text {
  margin: 0;
  font-size: clamp(0.82rem, 1.05vw, 0.88rem);
  line-height: 1.75;
  color: rgba(21, 54, 90, 0.72);
}

.trouble-note {
  margin: clamp(20px, 3vw, 28px) 0 0;
  font-size: clamp(0.88rem, 1.15vw, 0.96rem);
  line-height: 1.85;
  color: rgba(21, 54, 90, 0.8);
}

/* ---------- 住まい（BtoC）テーマ ----------
   同じExtecブランドのまま、光を増やした柔らかな世界観へ切り替える */
body.theme-home {
  --card-blue: #3a9ec2;
  --card-blue-deep: #2379a3;
  --glass-radius: 22px;
  background:
    radial-gradient(1100px 640px at 50% -12%, rgba(88, 176, 208, 0.2), transparent 62%),
    radial-gradient(900px 540px at 12% 30%, rgba(255, 250, 240, 0.85), transparent 55%),
    radial-gradient(800px 500px at 50% 112%, rgba(58, 158, 194, 0.12), transparent 60%),
    #fbfaf6;
}

body.theme-home::before {
  opacity: 0.05;
}

body.theme-home .kicker {
  color: var(--card-blue-deep);
  opacity: 1;
}

body.theme-home .hero-badge {
  color: #b26b1d;
  border-color: rgba(224, 168, 90, 0.5);
  background: rgba(255, 250, 240, 0.85);
}

/* ---------- Responsive (新コンポーネント) ---------- */
@media (max-width: 1024px) {
  .reasons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .block {
    padding-left: clamp(16px, 4.5vw, 28px);
    padding-right: clamp(16px, 4.5vw, 28px);
  }

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

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

  .works-preview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-cta .btn {
    flex: 1 1 auto;
    min-width: min(100%, 220px);
  }
}

@media (max-width: 560px) {
  .reasons-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-band {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cta-band__actions {
    flex-direction: column;
  }

  .cta-band__actions .btn {
    width: 100%;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .floating-cta a span {
    display: none;
  }

  .floating-cta a {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }

  .floating-cta a svg {
    width: 22px;
    height: 22px;
  }

  .service-detail__spec div {
    grid-template-columns: 56px 1fr;
    gap: 10px;
  }

  .stat__value {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }
}

/* ============================================================
   Construction Tech UI ─ v51
   光・奥行き・微細な動きで先進性を表現し、写真→コピー→CTAを優先
   ============================================================ */

/* 意味の薄い背景ロゴは完全に撤去。ポインター光のため疑似要素を再利用する */
body::before,
.site-footer::before {
  display: none;
}

body {
  --pointer-x: 50vw;
  --pointer-y: 30vh;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(
    520px circle at var(--pointer-x) var(--pointer-y),
    rgba(74, 160, 191, 0.09),
    transparent 68%
  );
}

.site-header {
  transition:
    padding 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  padding-top: 2px;
  padding-bottom: 2px;
  background: rgba(248, 247, 242, 0.86);
  border-color: rgba(46, 143, 178, 0.22);
  box-shadow: 0 12px 38px rgba(10, 31, 52, 0.12);
}

/* マウス追従スポットライト。JSが座標だけ更新する軽量実装 */
.is-pointer-lit {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.is-pointer-lit::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: radial-gradient(
    260px circle at var(--spot-x) var(--spot-y),
    rgba(119, 211, 242, 0.2),
    transparent 68%
  );
  transition: opacity 0.25s ease;
}

.is-pointer-lit:hover::after {
  opacity: 1;
}

.is-pointer-lit > * {
  position: relative;
  z-index: 1;
}

/* ボタンの光沢はホバー時だけ走らせ、常時アニメーションを避ける */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn::after {
  position: absolute;
  inset: -60% auto -60% -45%;
  z-index: -1;
  width: 34%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.btn:hover::after {
  left: 112%;
}

.btn:focus-visible,
.audience-card:focus-visible,
.works-preview-card:focus-visible {
  outline: 2px solid #77d3f2;
  outline-offset: 4px;
}

/* ---------- BtoB / Construction Tech theme ---------- */
.theme-tech {
  --tech-night: #06121f;
  --tech-night-2: #0a1d2e;
  --tech-line: rgba(121, 207, 238, 0.2);
  --tech-glow: rgba(74, 160, 191, 0.34);
  background:
    radial-gradient(900px 540px at 15% 9%, rgba(46, 143, 178, 0.16), transparent 68%),
    radial-gradient(760px 480px at 90% 36%, rgba(28, 111, 152, 0.1), transparent 70%),
    #f5f8fa;
}

.theme-tech .site-header {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(6, 18, 31, 0.72);
  border-color: rgba(121, 207, 238, 0.14);
  box-shadow: 0 12px 36px rgba(0, 8, 18, 0.24);
}

.theme-tech .site-header.is-scrolled {
  background: rgba(6, 18, 31, 0.9);
  border-color: rgba(121, 207, 238, 0.24);
  box-shadow: 0 16px 44px rgba(0, 8, 18, 0.32);
}

.theme-tech .global-nav a {
  opacity: 0.76;
}

.theme-tech .global-nav a:hover,
.theme-tech .global-nav a[aria-current="page"] {
  color: #fff;
  opacity: 1;
  text-shadow: 0 0 18px rgba(119, 211, 242, 0.45);
}

.theme-tech .scene--intro {
  grid-template-areas:
    "media"
    "content";
  gap: clamp(26px, 5vw, 64px);
  min-height: min(940px, 100svh);
  padding-top: clamp(78px, 10vw, 126px);
  padding-bottom: clamp(54px, 8vw, 96px);
  color: #fff;
  background:
    linear-gradient(rgba(121, 207, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 207, 238, 0.045) 1px, transparent 1px),
    radial-gradient(700px 480px at 82% 26%, rgba(46, 143, 178, 0.27), transparent 70%),
    linear-gradient(145deg, var(--tech-night) 0%, #071827 54%, var(--tech-night-2) 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.theme-tech .scene--intro::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(115deg, transparent 34%, rgba(119, 211, 242, 0.055) 50%, transparent 66%);
  transform: translateX(-45%);
  animation: tech-ambient-sweep 11s ease-in-out infinite;
}

.theme-tech .scene--intro .scene__inner {
  max-width: 640px;
}

.theme-tech .scene--intro .statement {
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(2.05rem, 5.2vw, 4.8rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.055em;
  text-shadow: 0 12px 46px rgba(0, 0, 0, 0.34);
}

.theme-tech .scene--intro .sub {
  max-width: 52ch;
  color: rgba(223, 241, 249, 0.78);
  line-height: 1.8;
}

.theme-tech .hero-badge {
  position: relative;
  color: #bcecff;
  background: rgba(88, 185, 220, 0.08);
  border-color: rgba(121, 207, 238, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 26px rgba(74, 160, 191, 0.09);
}

.theme-tech .hero-badge::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  content: "";
  background: #77d3f2;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(119, 211, 242, 0.1), 0 0 16px #77d3f2;
  animation: tech-status-pulse 2.4s ease-in-out infinite;
}

.theme-tech .hero-chips li {
  color: rgba(227, 244, 250, 0.88);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(121, 207, 238, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.theme-tech .hero-chips li.is-strong {
  color: #fff;
  background: linear-gradient(135deg, rgba(74, 160, 191, 0.66), rgba(28, 111, 152, 0.76));
  border-color: rgba(155, 226, 250, 0.35);
  box-shadow: 0 0 24px rgba(46, 143, 178, 0.18);
}

.theme-tech .scene--intro .btn--secondary,
.theme-tech .scene--intro .btn--ghost {
  color: rgba(232, 248, 253, 0.94);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(121, 207, 238, 0.28);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.theme-tech .scene--intro .btn--secondary:hover,
.theme-tech .scene--intro .btn--ghost:hover {
  background: rgba(119, 211, 242, 0.12);
  border-color: rgba(155, 226, 250, 0.5);
}

.theme-tech .scene--intro .btn--primary {
  background: linear-gradient(135deg, #4aa0bf 0%, #2e8fb2 46%, #1c6f98 100%);
  border-color: rgba(168, 231, 253, 0.3);
  box-shadow: 0 0 0 1px rgba(121, 207, 238, 0.08), 0 14px 34px rgba(24, 112, 151, 0.4);
}

.theme-tech .hero-tel {
  color: rgba(216, 238, 247, 0.66);
}

.theme-tech .hero-tel a {
  color: #bcecff;
  text-decoration-color: rgba(119, 211, 242, 0.38);
}

.theme-tech .scene--intro .scene__bg {
  height: clamp(280px, 56vw, 680px);
  border: 1px solid rgba(155, 226, 250, 0.2);
  border-radius: clamp(18px, 2.4vw, 30px);
  box-shadow:
    0 36px 90px rgba(0, 6, 16, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 72px rgba(46, 143, 178, 0.16);
  transform: none;
}

.theme-tech .scene--intro .scene__bg::before {
  position: absolute;
  inset: -40% 0 auto;
  z-index: 2;
  height: 42%;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(144, 224, 249, 0.17), transparent);
  transform: translateY(-100%);
  animation: tech-scan 8s cubic-bezier(0.3, 0.1, 0.3, 1) infinite;
}

.theme-tech .scene--intro .scene__bg::after {
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 -100px 100px rgba(2, 11, 20, 0.28);
}

.theme-tech .scene__slide {
  transform: scale(1.025);
  transition: opacity 1.4s ease, transform 6s ease;
}

.theme-tech .scene__slide.is-active {
  transform: scale(1.075);
}

/* 3秒以内に法人／個人を判断できる、ヒーロー直下の明確なゲート */
.theme-tech #audience {
  color: #fff;
  background:
    radial-gradient(620px 320px at 20% 0%, rgba(46, 143, 178, 0.17), transparent 70%),
    linear-gradient(180deg, #071827 0%, #0a1d2e 100%);
  border-top: 1px solid rgba(121, 207, 238, 0.12);
}

.audience-intro {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.audience-intro__eyebrow {
  margin: 0 0 10px;
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #77d3f2;
}

.audience-intro__title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.65rem, 3.5vw, 2.8rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.audience-intro__text {
  max-width: 58ch;
  margin: 14px 0 0;
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  line-height: 1.8;
  color: rgba(218, 239, 247, 0.7);
}

.theme-tech #audience .audience-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.theme-tech #audience .audience-card {
  min-height: clamp(230px, 27vw, 320px);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  border-color: rgba(121, 207, 238, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 24px 60px rgba(0, 7, 16, 0.24);
}

.theme-tech #audience .audience-card::before {
  width: 2px;
  background: linear-gradient(180deg, #77d3f2, rgba(46, 143, 178, 0.08));
  box-shadow: 0 0 24px rgba(119, 211, 242, 0.48);
}

.theme-tech #audience .audience-card--business {
  background:
    radial-gradient(460px 240px at 0% 0%, rgba(74, 160, 191, 0.2), transparent 72%),
    linear-gradient(145deg, rgba(37, 89, 118, 0.48), rgba(255, 255, 255, 0.025));
  border-color: rgba(121, 207, 238, 0.28);
}

.theme-tech #audience .audience-card:hover {
  border-color: rgba(155, 226, 250, 0.46);
  background-color: rgba(74, 160, 191, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 28px 70px rgba(0, 7, 16, 0.34),
    0 0 42px rgba(46, 143, 178, 0.12);
}

.theme-tech #audience .audience-card__kicker,
.theme-tech #audience .audience-card__arrow {
  color: #9be2fa;
}

.theme-tech #audience .audience-card__title {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.theme-tech #audience .audience-card__text {
  color: rgba(218, 239, 247, 0.7);
}

/* 数字は計器パネルのように見せ、信頼情報を視認しやすくする */
.theme-tech #results {
  color: #fff;
  background:
    linear-gradient(rgba(121, 207, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 207, 238, 0.035) 1px, transparent 1px),
    linear-gradient(155deg, #06121f, #0a2032);
  background-size: 48px 48px, 48px 48px, auto;
}

.theme-tech #results .section-title {
  color: #fff;
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.theme-tech #results .sub {
  color: rgba(218, 239, 247, 0.7);
}

.theme-tech #results .stat {
  text-align: left;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  border-color: rgba(121, 207, 238, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 44px rgba(0, 6, 14, 0.24);
}

.theme-tech #results .stat__value {
  color: #bcecff;
  font-family: var(--sans);
  font-weight: 650;
  text-shadow: 0 0 28px rgba(74, 160, 191, 0.25);
}

.theme-tech #results .stat__label {
  color: rgba(255, 255, 255, 0.9);
}

.theme-tech #results .stat__note {
  color: rgba(218, 239, 247, 0.54);
}

.theme-tech .block .section-title,
.theme-tech .service-detail__name,
.theme-tech .reason__title,
.theme-tech .works-preview-card__title,
.theme-tech .step__title {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.theme-tech .reason,
.theme-tech .service-detail,
.theme-tech .works-preview-card {
  border-color: rgba(46, 143, 178, 0.2);
  box-shadow:
    0 20px 48px rgba(8, 35, 58, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.theme-tech .reason:hover,
.theme-tech .works-preview-card:hover {
  border-color: rgba(46, 143, 178, 0.5);
  box-shadow:
    0 28px 64px rgba(8, 35, 58, 0.2),
    0 0 38px rgba(46, 143, 178, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.theme-tech .reason__icon {
  border: 1px solid rgba(190, 238, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(74, 160, 191, 0.08),
    0 10px 24px rgba(28, 111, 152, 0.3),
    0 0 28px rgba(46, 143, 178, 0.15);
}

.theme-tech .cta-band {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(600px 300px at 85% 0%, rgba(119, 211, 242, 0.2), transparent 65%),
    linear-gradient(135deg, #173e57 0%, var(--card-blue) 48%, var(--card-blue-deep) 100%);
  background-size: 36px 36px, 36px 36px, auto, auto;
  border-color: rgba(168, 231, 253, 0.3);
  box-shadow:
    0 22px 54px rgba(28, 111, 152, 0.3),
    0 0 48px rgba(46, 143, 178, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

/* BtoCも同じ技術ブランド。暖色アクセントを除き、青い光で統一する */
body.theme-home {
  background:
    radial-gradient(1000px 620px at 16% 4%, rgba(58, 158, 194, 0.16), transparent 64%),
    radial-gradient(820px 520px at 88% 38%, rgba(35, 121, 163, 0.08), transparent 70%),
    #f7fafb;
}

body.theme-home .hero-badge {
  color: var(--card-blue-deep);
  border-color: rgba(58, 158, 194, 0.34);
  background: rgba(235, 249, 254, 0.78);
  box-shadow: 0 0 28px rgba(58, 158, 194, 0.08);
}

body.theme-home .reason,
body.theme-home .trouble,
body.theme-home .service-detail,
body.theme-home .works-preview-card,
body.theme-home .audience-card {
  border-color: rgba(58, 158, 194, 0.2);
  box-shadow:
    0 20px 48px rgba(12, 52, 76, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@keyframes tech-status-pulse {
  0%, 100% { opacity: 0.65; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes tech-scan {
  0%, 18% { transform: translateY(-120%); opacity: 0; }
  24% { opacity: 1; }
  58% { opacity: 0.6; }
  72%, 100% { transform: translateY(430%); opacity: 0; }
}

@keyframes tech-ambient-sweep {
  0%, 100% { transform: translateX(-52%); opacity: 0.35; }
  50% { transform: translateX(48%); opacity: 0.75; }
}

@media (min-width: 961px) {
  .theme-tech .scene--intro {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    grid-template-areas: "content media";
    align-items: center;
  }

  .theme-tech .scene--intro .scene__inner {
    justify-self: end;
  }

  .theme-tech .scene--intro .scene__bg {
    justify-self: start;
    width: 100%;
    height: min(68vh, 680px);
  }
}

@media (max-width: 960px) {
  .theme-tech #audience .audience-grid {
    grid-template-columns: 1fr;
  }

  .theme-tech #audience .audience-card {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .theme-tech .site-header {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(6, 18, 31, 0.88);
  }

  .theme-tech .global-nav {
    color: rgba(255, 255, 255, 0.9);
  }

  .theme-tech .scene--intro {
    padding-top: clamp(74px, 15vw, 96px);
  }

  .theme-tech .scene--intro .scene__bg {
    height: clamp(230px, 62vw, 420px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-tech .scene--intro::before,
  .theme-tech .scene--intro .scene__bg::before,
  .theme-tech .hero-badge::before {
    animation: none;
  }

  .theme-tech .scene__slide,
  .theme-tech .scene__slide.is-active {
    transform: none;
  }

  .btn::after,
  .is-pointer-lit::after {
    display: none;
  }
}

/* ============================================================
   Aqua Tech palette ─ v52
   紺面を廃止し、元の水色を主役にした明るいテックUIへ戻す
   ============================================================ */
.theme-tech {
  --tech-night: #eaf8fc;
  --tech-night-2: #d9f1f8;
  --tech-line: rgba(46, 143, 178, 0.16);
  --tech-glow: rgba(74, 160, 191, 0.25);
  background:
    radial-gradient(920px 560px at 12% 6%, rgba(74, 160, 191, 0.2), transparent 68%),
    radial-gradient(760px 480px at 92% 34%, rgba(46, 143, 178, 0.12), transparent 70%),
    #f4fbfd;
}

.theme-tech .site-header,
.theme-tech .site-header.is-scrolled {
  color: var(--ink);
  background: rgba(234, 248, 252, 0.82);
  border-color: rgba(46, 143, 178, 0.2);
  box-shadow:
    0 12px 36px rgba(28, 111, 152, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.theme-tech .global-nav a:hover,
.theme-tech .global-nav a[aria-current="page"] {
  color: var(--card-blue-deep);
  text-shadow: 0 0 18px rgba(74, 160, 191, 0.28);
}

.theme-tech .scene--intro {
  color: var(--ink);
  background:
    linear-gradient(rgba(46, 143, 178, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 143, 178, 0.055) 1px, transparent 1px),
    radial-gradient(760px 520px at 82% 24%, rgba(74, 160, 191, 0.3), transparent 70%),
    radial-gradient(620px 420px at 8% 88%, rgba(255, 255, 255, 0.94), transparent 72%),
    linear-gradient(145deg, #f5fcfe 0%, #e4f6fb 54%, #d4eff7 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.theme-tech .scene--intro::before {
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.48) 50%, transparent 66%);
}

.theme-tech .scene--intro .statement {
  color: var(--ink);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 48px rgba(28, 111, 152, 0.12);
}

.theme-tech .scene--intro .sub {
  color: rgba(21, 54, 90, 0.76);
}

.theme-tech .hero-badge {
  color: var(--card-blue-deep);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(46, 143, 178, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 0 28px rgba(74, 160, 191, 0.12);
}

.theme-tech .hero-chips li {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(46, 143, 178, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 6px 18px rgba(28, 111, 152, 0.07);
}

.theme-tech .hero-chips li.is-strong {
  color: #fff;
  background: linear-gradient(135deg, #55a7c4, var(--card-blue) 52%, var(--card-blue-deep));
  border-color: rgba(255, 255, 255, 0.56);
  box-shadow:
    0 10px 24px rgba(28, 111, 152, 0.2),
    0 0 26px rgba(74, 160, 191, 0.16);
}

.theme-tech .scene--intro .btn--secondary,
.theme-tech .scene--intro .btn--ghost {
  color: var(--card-blue-deep);
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(46, 143, 178, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 22px rgba(28, 111, 152, 0.1);
}

.theme-tech .scene--intro .btn--secondary:hover,
.theme-tech .scene--intro .btn--ghost:hover {
  color: var(--card-blue-deep);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(46, 143, 178, 0.52);
}

.theme-tech .hero-tel {
  color: rgba(21, 54, 90, 0.66);
}

.theme-tech .hero-tel a {
  color: var(--card-blue-deep);
}

.theme-tech .scene--intro .scene__bg {
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 32px 80px rgba(28, 111, 152, 0.22),
    0 0 0 1px rgba(46, 143, 178, 0.12),
    0 0 72px rgba(74, 160, 191, 0.2);
}

.theme-tech .scene--intro .scene__bg::after {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 -90px 100px rgba(15, 75, 105, 0.1);
}

.theme-tech #audience {
  color: var(--ink);
  background:
    linear-gradient(rgba(46, 143, 178, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 143, 178, 0.045) 1px, transparent 1px),
    radial-gradient(620px 320px at 18% 0%, rgba(74, 160, 191, 0.2), transparent 72%),
    linear-gradient(180deg, #e5f6fb 0%, #f4fbfd 100%);
  background-size: 46px 46px, 46px 46px, auto, auto;
  border-color: rgba(46, 143, 178, 0.14);
}

.audience-intro__title {
  color: var(--ink);
}

.audience-intro__text {
  color: rgba(21, 54, 90, 0.7);
}

.theme-tech #audience .audience-card {
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(226, 246, 252, 0.5));
  border-color: rgba(46, 143, 178, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 56px rgba(28, 111, 152, 0.12);
}

.theme-tech #audience .audience-card--business {
  background:
    radial-gradient(460px 240px at 0% 0%, rgba(74, 160, 191, 0.24), transparent 72%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(207, 239, 249, 0.68));
  border-color: rgba(46, 143, 178, 0.34);
}

.theme-tech #audience .audience-card:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(46, 143, 178, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 28px 66px rgba(28, 111, 152, 0.18),
    0 0 42px rgba(74, 160, 191, 0.12);
}

.theme-tech #audience .audience-card__kicker,
.theme-tech #audience .audience-card__arrow {
  color: var(--card-blue-deep);
}

.theme-tech #audience .audience-card__text {
  color: rgba(21, 54, 90, 0.72);
}

.theme-tech #results {
  color: var(--ink);
  background:
    linear-gradient(rgba(46, 143, 178, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 143, 178, 0.05) 1px, transparent 1px),
    radial-gradient(720px 420px at 88% 18%, rgba(74, 160, 191, 0.2), transparent 70%),
    linear-gradient(155deg, #def3f9, #f3fbfd);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.theme-tech #results .section-title {
  color: var(--ink);
}

.theme-tech #results .sub {
  color: rgba(21, 54, 90, 0.72);
}

.theme-tech #results .stat {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(226, 246, 252, 0.54));
  border-color: rgba(46, 143, 178, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 42px rgba(28, 111, 152, 0.11);
}

.theme-tech #results .stat__value {
  color: var(--card-blue-deep);
  text-shadow: 0 0 28px rgba(74, 160, 191, 0.18);
}

.theme-tech #results .stat__label {
  color: var(--ink);
}

.theme-tech #results .stat__note {
  color: rgba(21, 54, 90, 0.58);
}

@media (max-width: 860px) {
  .theme-tech .site-header,
  .theme-tech .site-header.is-scrolled {
    color: var(--ink);
    background: rgba(234, 248, 252, 0.92);
  }

  .theme-tech .global-nav {
    color: var(--ink);
  }
}

/* ============================================================
   Image fitting audit ─ v53
   写真用途は全体表示、背景用途のみトリミングを許容する
   ============================================================ */

/* サービス・事例詳細など、内容確認が目的の大判写真 */
.scene:not(.scene--intro) .scene__bg,
.flow__shot,
.shot__img,
.shot--inset .shot__img,
.work-detail__photo-img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background-color: #e8f2f5;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  transform: none;
  will-change: auto;
}

/* ヒーローはフレームを維持しつつ、元写真全体を優先 */
.scene--intro .scene__bg,
.theme-tech .scene--intro .scene__bg {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background-color: #dceef4;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  transform: none;
  will-change: auto;
}

.scene__slide,
.theme-tech .scene__slide,
.theme-tech .scene__slide.is-active {
  background-color: #dceef4;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  transform: none;
}

/* 一覧カード：同一比率の中で全体を表示し、余白は淡い水色で吸収 */
.work-card__media,
.marquee-card,
.works-preview-card__media {
  background: #e8f2f5;
}

.work-card__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center center;
  background: #e8f2f5;
  transform: none;
}

.marquee-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center center;
  background: #e8f2f5;
  transform: none;
}

.works-preview-card__img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #e8f2f5;
  transform: none;
}

.work-card:hover .work-card__img,
.marquee-card:hover .marquee-card__img,
.works-preview-card:hover .works-preview-card__img {
  transform: none;
}

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  color: var(--card-blue-deep);
  background:
    linear-gradient(rgba(46, 143, 178, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 143, 178, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 30%, rgba(74, 160, 191, 0.2), transparent 58%),
    #e8f4f7;
  background-size: 24px 24px, 24px 24px, auto, auto;
}

.image-placeholder::before {
  content: "Extec";
  font-family: var(--sans);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.image-placeholder::after {
  content: "PHOTO COMING SOON";
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.62;
}

.work-card__img.image-placeholder,
.marquee-card__img.image-placeholder {
  aspect-ratio: 4 / 3;
}

/* スタッフ・会社紹介：人物やロゴの全体を欠かさず表示 */
.profile-photo,
.staff-image {
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background-color: #edf5f7;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.profile-photo--logo,
.staff-image--logo {
  min-height: 0;
  aspect-ratio: 16 / 9;
  background-color: #fff;
  background-size: min(55%, 320px);
  background-position: center center;
}

/* 横長の住宅写真は元画像（1200×630）に近い比率で余白を抑える */
.scene--intro .scene__bg.scene__bg--wide,
.works-preview-card__media.works-preview-card__media--wide {
  aspect-ratio: 40 / 21;
}

/* 詳細本文の実画像は自然高を維持 */
.work-detail__photo {
  background: #eef5f7;
}

.work-detail__photo-full {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  background: #eef5f7;
}

@media (max-width: 860px) {
  .scene:not(.scene--intro) .scene__bg,
  .scene--intro .scene__bg,
  .theme-tech .scene--intro .scene__bg,
  .shot__img,
  .shot--inset .shot__img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    background-size: contain;
    background-position: center center;
    transform: none;
  }

  .works-preview-card__media {
    aspect-ratio: 4 / 3;
  }

  .profile-photo,
  .staff-image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .scene--intro .scene__bg,
  .theme-tech .scene--intro .scene__bg {
    aspect-ratio: 4 / 3;
  }

  .work-card__img,
  .works-preview-card__media,
  .marquee-card__img {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene__bg,
  .shot__img,
  .scene__slide,
  .theme-tech .scene__slide,
  .theme-tech .scene__slide.is-active {
    transform: none !important;
  }
}

/* ============================================================
   Opening & motion system ─ v56
   筆記体オープニング／ヒーロー段階表示／左から開くスクロール演出
   ============================================================ */

/* ---- 写真の「引き」表示：フレームを画像より約2割広く取り、全体を見せる ---- */
.scene__slide,
.theme-tech .scene__slide,
.theme-tech .scene__slide.is-active,
.scene--intro .scene__bg,
.theme-tech .scene--intro .scene__bg,
.scene:not(.scene--intro) .scene__bg,
.flow__shot,
.shot__img,
.shot--inset .shot__img,
.work-detail__photo-img,
.profile-photo,
.staff-image {
  background-origin: content-box;
  background-clip: content-box;
  padding: clamp(12px, 6.5%, 56px);
}

.work-card__img,
.marquee-card__img,
.works-preview-card__img {
  padding: clamp(10px, 6%, 34px);
}

/* ---- オープニング ---- */
html.opening-lock,
html.opening-lock body {
  overflow: hidden;
}

.opening {
  display: none;
}

html.has-opening .opening {
  --pen-base: 7.6s;
  --pen-step: 0.48s;
  --pen-dur: 1.7s;
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  min-height: 100svh;
  background:
    radial-gradient(720px 480px at 50% 40%, rgba(74, 160, 191, 0.1), transparent 68%),
    linear-gradient(165deg, #f9fcfd 0%, #eef7fa 100%);
  /* script.js が読み込めなかった場合の保険：一定時間後に必ず消える */
  animation: opening-failsafe 0.8s ease 17s forwards;
}

.opening.is-leaving {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0s linear 0.65s;
}

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

.opening__inner {
  position: relative;
  width: min(82vw, 720px);
  overflow: hidden;
}

.opening-logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
}

.opening-origin {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.opening-origin__word {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  gap: 0.35em;
  color: #15365a;
  font-family: "Great Vibes", "Snell Roundhand", "Segoe Script", cursive;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  opacity: 1;
}

.opening-origin__en,
.opening-origin__ja {
  display: block;
  opacity: 0;
}

.opening-origin__ja {
  font-family: var(--sans);
  font-size: clamp(0.62rem, 1.5vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.25em;
}

.opening-origin__word--excellent { left: 25%; top: 32%; transform: translate(-50%, -50%); }
.opening-origin__word--technical { left: 75%; top: 32%; transform: translate(-50%, -50%); }
.opening-origin__word--quality { left: 50%; top: 72%; transform: translate(-50%, -50%); }

.opening.is-writing .opening-origin__word--excellent {
  animation: opening-converge 1.5s cubic-bezier(0.22, 1, 0.36, 1) 6.7s forwards;
}

.opening.is-writing .opening-origin__word--technical {
  animation: opening-converge 1.5s cubic-bezier(0.22, 1, 0.36, 1) 6.7s forwards;
}

.opening.is-writing .opening-origin__word--quality {
  animation: opening-converge 1.5s cubic-bezier(0.22, 1, 0.36, 1) 6.7s forwards;
}

.opening.is-writing .opening-origin__word--excellent .opening-origin__en {
  animation: opening-origin-enter 0.25s ease 0.2s forwards;
}

.opening.is-writing .opening-origin__word--excellent .opening-origin__ja {
  animation: opening-origin-enter 0.25s ease 1.45s forwards;
}

.opening.is-writing .opening-origin__word--technical .opening-origin__en {
  animation: opening-origin-enter 0.25s ease 2.2s forwards;
}

.opening.is-writing .opening-origin__word--technical .opening-origin__ja {
  animation: opening-origin-enter 0.25s ease 3.45s forwards;
}

.opening.is-writing .opening-origin__word--quality .opening-origin__en {
  animation: opening-origin-enter 0.25s ease 4.2s forwards;
}

.opening.is-writing .opening-origin__word--quality .opening-origin__ja {
  animation: opening-origin-enter 0.25s ease 5.45s forwards;
}

.opening.is-writing .opening-logo {
  animation: opening-logo-arrive 0.9s ease 7.95s forwards;
}

@keyframes opening-origin-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes opening-converge {
  0% { opacity: 1; }
  72% { left: 50%; top: 50%; opacity: 1; transform: translate(-50%, -50%) scale(0.72); }
  100% { left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.88); }
}

@keyframes opening-logo-arrive {
  to { opacity: 1; }
}

.opening-word {
  font-family: "Great Vibes", "Snell Roundhand", "Segoe Script", cursive;
  fill: #15365a;
  fill-opacity: 0;
  stroke: #1c6f98;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.opening-word--main {
  font-size: 150px;
  letter-spacing: 0.05em;
}

.opening-word--sub {
  font-size: 56px;
  letter-spacing: 0.08em;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
}

/* 第2パターン：ロゴに合わせた力強いゴシック体 */
.opening--gothic .opening-origin__word,
.opening--gothic .opening-word {
  font-family: "Arial Black", "Arial Narrow", var(--sans);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.opening--gothic .opening-origin__word {
  font-size: clamp(1.65rem, 4.6vw, 3.35rem);
  text-transform: uppercase;
}

.opening--gothic .opening-word--main {
  font-size: 132px;
}

.opening--gothic .opening-word--sub {
  font-size: 42px;
  letter-spacing: 0.12em;
}

.opening.is-writing.opening--gothic .opening-origin__en,
.opening.is-writing.opening--gothic .opening-origin__ja {
  animation-name: opening-gothic-enter;
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.opening.is-writing.opening--gothic .opening-logo {
  animation: opening-gothic-logo-arrive 1s cubic-bezier(0.22, 1, 0.36, 1) 7.8s forwards;
  transform-origin: center;
}

.opening.is-writing.opening--gothic .opening-letter {
  animation: opening-gothic-letter 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(8s + var(--i, 0) * 0.18s);
}

.opening.is-writing.opening--gothic .opening-word--main {
  animation: opening-ink 1s ease 8.8s forwards;
}

.opening.is-writing.opening--gothic .opening-word--sub {
  animation:
    opening-draw 1.1s cubic-bezier(0.22, 1, 0.36, 1) 9s forwards,
    opening-ink 0.9s ease 9.5s forwards;
}

@keyframes opening-gothic-enter {
  from { opacity: 0; transform: translateY(18px); letter-spacing: 0.2em; }
  to { opacity: 1; transform: translateY(0); letter-spacing: inherit; }
}

@keyframes opening-gothic-logo-arrive {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes opening-gothic-letter {
  from { fill-opacity: 0; stroke-dashoffset: 1800; }
  to { fill-opacity: 1; stroke-dashoffset: 0; }
}

.opening-letter {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
}

.opening.is-writing .opening-letter {
  animation: opening-draw var(--pen-dur) cubic-bezier(0.45, 0.05, 0.35, 1) forwards;
  animation-delay: calc(var(--pen-base) + var(--i, 0) * var(--pen-step));
}

.opening.is-writing .opening-word--main {
  animation: opening-ink 1.8s ease 10.4s forwards;
}

.opening.is-writing .opening-word--sub {
  animation:
    opening-draw 1.8s cubic-bezier(0.45, 0.05, 0.35, 1) 10.3s forwards,
    opening-ink 1.4s ease 11.5s forwards;
}

@keyframes opening-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes opening-ink {
  to {
    fill-opacity: 1;
  }
}

.opening-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 43%,
    rgba(122, 196, 222, 0.32) 49%,
    rgba(255, 255, 255, 0.75) 51%,
    rgba(122, 196, 222, 0.32) 53%,
    transparent 59%
  );
  transform: translateX(-120%);
  opacity: 0;
}

.opening.is-flash .opening-sheen {
  animation: opening-sheen 0.75s cubic-bezier(0.5, 0, 0.2, 1) forwards;
}

@keyframes opening-sheen {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

.opening-skip {
  position: absolute;
  right: clamp(16px, 4vw, 42px);
  bottom: clamp(18px, 4vw, 38px);
  min-height: 44px;
  min-width: 44px;
  padding: 10px 24px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: rgba(21, 54, 90, 0.62);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(21, 54, 90, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.opening-skip:hover,
.opening-skip:focus-visible {
  color: var(--ink);
  border-color: rgba(21, 54, 90, 0.42);
  background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 640px) {
  html.has-opening .opening {
    --pen-base: 7.45s;
    --pen-step: 0.38s;
    --pen-dur: 1.4s;
  }

  .opening__inner {
    width: min(88vw, 520px);
  }
}

/* ---- ヒーロー：オープニング後の段階表示 ---- */
.statement__line {
  display: block;
}

html.js .scene--intro [data-hero] {
  opacity: 0;
  transform: translate3d(-30px, 0, 0);
  transition:
    opacity 0.8s ease var(--hero-delay, 0ms),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--hero-delay, 0ms);
}

html.js body.hero-ready .scene--intro [data-hero] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.js .scene--intro .scene__bg,
html.js .theme-tech .scene--intro .scene__bg {
  opacity: 0;
  transform: scale(1.05);
  filter: brightness(0.76);
  transition:
    opacity 1s ease,
    transform 1.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.5s ease;
}

html.js body.hero-ready .scene--intro .scene__bg,
html.js body.hero-ready.theme-tech .scene--intro .scene__bg {
  opacity: 1;
  transform: scale(1);
  filter: none;
}

@media (max-width: 640px) {
  html.js .scene--intro [data-hero] {
    transform: translate3d(-18px, 0, 0);
  }
}

/* ---- スクロール演出のバリエーション ---- */
html.js .reveal.is-visible {
  transition-delay: var(--reveal-delay, 0ms);
}

/* 左からスライド＋フェード（本文は移動量を小さく） */
html.js .reveal-left:not(.is-visible) {
  transform: translate3d(-32px, 0, 0);
}

html.js .sub.reveal-left:not(.is-visible),
html.js .audience-intro__text.reveal-left:not(.is-visible) {
  transform: translate3d(-24px, 0, 0);
}

/* 英字見出し：左から右へマスクが開く */
html.js .reveal-mask:not(.is-visible) {
  opacity: 0;
  transform: none;
  clip-path: inset(0 100% 0 0);
}

html.js .reveal-mask.is-visible {
  clip-path: inset(0 0 0 0);
  transition:
    opacity 0.6s ease var(--reveal-delay, 0ms),
    clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

/* 見出し下の細いライン：幅0から左へ伸びる */
.reveal-line::after {
  content: "";
  display: block;
  width: min(86px, 26%);
  height: 2px;
  margin-top: clamp(10px, 1.4vw, 16px);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--card-blue), rgba(46, 143, 178, 0));
  transform: scaleX(1);
  transform-origin: left center;
}

html.js .reveal-line:not(.is-visible)::after {
  transform: scaleX(0);
}

html.js .reveal-line.is-visible::after {
  transform: scaleX(1);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--reveal-delay, 0ms) + 220ms);
}

/* カード：左から順番に表示（スタガーはJSが --reveal-delay を設定） */
html.js .reveal-card:not(.is-visible) {
  transform: translate3d(-30px, 0, 0);
}

/* TOP施工事例：レイアウトは維持し、左右から入る動きだけを追加 */
html.js .works-preview-card--from-left:not(.is-visible) {
  transform: translate3d(-72px, 0, 0);
}

html.js .works-preview-card--from-right:not(.is-visible) {
  transform: translate3d(72px, 0, 0);
}

/* 画像：マスクが左から開き、中の写真がわずかに引いて定位置へ */
html.js .reveal-image:not(.is-visible) {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: scale(1.04);
}

html.js .reveal-image.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: scale(1);
  transition:
    opacity 0.8s ease var(--reveal-delay, 0ms),
    clip-path 1.05s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

/* カード内の写真：表示時に scale(1.04) → scale(1) */
html.js .reveal-card .works-preview-card__img {
  transform: scale(1.04);
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal-card.is-visible .works-preview-card__img {
  transform: scale(1);
}

@media (max-width: 640px) {
  html.js .reveal-left:not(.is-visible),
  html.js .reveal-card:not(.is-visible) {
    transform: translate3d(-18px, 0, 0);
  }

  html.js .works-preview-card--from-left:not(.is-visible) {
    transform: translate3d(-24px, 0, 0);
  }

  html.js .works-preview-card--from-right:not(.is-visible) {
    transform: translate3d(24px, 0, 0);
  }
}

/* ---- prefers-reduced-motion：演出を無効化し、常に読める状態を保証 ---- */
@media (prefers-reduced-motion: reduce) {
  html.has-opening .opening {
    display: none;
  }

  html.js .scene--intro [data-hero],
  html.js .scene--intro .scene__bg,
  html.js .theme-tech .scene--intro .scene__bg {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  html.js .reveal-mask:not(.is-visible),
  html.js .reveal-image:not(.is-visible) {
    opacity: 1;
    clip-path: none;
    transform: none;
  }

  html.js .reveal-line:not(.is-visible)::after {
    transform: scaleX(1);
  }

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

/* ============================================================
   Contact page ─ v57
   ============================================================ */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: clamp(22px, 3vw, 32px);
  text-decoration: none;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(226, 246, 252, 0.56));
  border: 1px solid rgba(46, 143, 178, 0.22);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 36px rgba(28, 111, 152, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-channel:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 143, 178, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 22px 44px rgba(28, 111, 152, 0.14);
}

.contact-channel__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--card-blue-deep);
}

.contact-channel__value {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  word-break: break-word;
}

.contact-channel__note {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(21, 54, 90, 0.62);
}

.page-contact .works-hero .sub {
  margin-inline: auto;
}

.page-contact .contact {
  min-height: auto;
  padding-top: clamp(40px, 6vw, 72px);
}

@media (max-width: 860px) {
  .contact-channels {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-channel:hover {
    transform: none;
  }
}

/* ============================================================
   Philosophy / Recruit pages ─ v58
   ============================================================ */
.message-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.message-profile {
  text-align: center;
}

.message-profile__photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 18px;
  background-color: #edf5f7;
  background-size: min(58%, 180px);
  background-position: center center;
  background-repeat: no-repeat;
  border: 1px solid rgba(46, 143, 178, 0.18);
  box-shadow: 0 18px 40px rgba(28, 111, 152, 0.1);
}

.message-profile__role {
  margin: 18px 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--card-blue-deep);
}

.message-profile__name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 500;
  color: var(--ink);
}

.message-lead,
.philosophy-statement {
  margin: 0 0 clamp(18px, 3vw, 28px);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.message-copy {
  display: grid;
  gap: 1.1em;
  max-width: 62ch;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.95;
  color: rgba(21, 54, 90, 0.78);
}

.message-copy p {
  margin: 0;
}

.spirit-grid,
.partner-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}

.spirit-card,
.partner-point {
  padding: clamp(22px, 3vw, 30px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(226, 246, 252, 0.54));
  border: 1px solid rgba(46, 143, 178, 0.2);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 36px rgba(28, 111, 152, 0.08);
}

.spirit-card__num {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--card-blue-deep);
}

.spirit-card__title,
.partner-point__title {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--ink);
}

.spirit-card__text,
.partner-point__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(21, 54, 90, 0.7);
}

.recruit-pay {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}

.recruit-pay__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(24px, 3.5vw, 36px);
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(226, 246, 252, 0.58));
  border: 1px solid rgba(46, 143, 178, 0.22);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 40px rgba(28, 111, 152, 0.1);
}

.recruit-pay__item.is-accent {
  background:
    linear-gradient(145deg, rgba(46, 143, 178, 0.12), rgba(226, 246, 252, 0.72));
  border-color: rgba(28, 111, 152, 0.28);
}

.recruit-pay__label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--card-blue-deep);
}

.recruit-pay__value {
  font-family: var(--sans);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.recruit-pay__value small {
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.recruit-pay__note {
  font-size: 0.88rem;
  color: rgba(21, 54, 90, 0.62);
}

.recruit-spec {
  display: grid;
  gap: 0;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  border-top: 1px solid rgba(21, 54, 90, 0.12);
}

.recruit-spec > div {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(21, 54, 90, 0.12);
}

.recruit-spec dt {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--card-blue-deep);
}

.recruit-spec dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
}

@media (max-width: 860px) {
  .message-layout,
  .recruit-pay {
    grid-template-columns: 1fr;
  }

  .message-profile__photo {
    max-width: 220px;
  }

  .recruit-spec > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* 大規模防水工事：旧画像枠を外した文章セクションの余白 */
.theme-tech #waterproofing.scene--text-only {
  grid-template-areas: "content";
  gap: 0;
  padding-bottom: clamp(56px, 7vw, 88px);
}

/* 大規模ページの施工事例を住まいページのカード表示に統一 */
.theme-tech [data-corporate-works] {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.theme-tech [data-corporate-works] .shot,
.theme-tech [data-corporate-works] .shot--wide {
  width: 100%;
  margin-inline: 0;
}

.theme-tech [data-corporate-works] .shot__img,
.theme-tech [data-corporate-works] .shot--inset .shot__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: clamp(10px, 6%, 34px);
}

@media (max-width: 860px) {
  .theme-tech [data-corporate-works] {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }
}
