/* =========================================================
   株式会社オフィスMURO — 深海 × 近未来
   スクロールするほど深く (暗く) 潜っていく構成
   ========================================================= */

:root {
  /* 深海のグラデーション (上: 浅い → 下: 深い) */
  --bg-0: #01040b;
  --bg-1: #030a1a;
  --bg-2: #061633;
  --bg-3: #0a2550;
  --bg-4: #0f3470;

  --ink: #e6f0ff;
  --ink-2: #a8bbd4;
  --ink-3: #7f95b2;

  /* 生物発光のようなアクセント */
  --cyan: #5ee7ff;
  --teal: #3df2cb;
  --periwinkle: #7aa2ff;
  --danger: #ff9db0;

  --line: rgba(94, 231, 255, 0.16);
  --line-strong: rgba(94, 231, 255, 0.4);

  --font-jp: "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, sans-serif;
  --font-display: "Orbitron", var(--font-jp);
  --font-mono: "Share Tech Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cut: 12px;
}

/* ---------- base ---------- */

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

html {
  background: var(--bg-0);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-jp);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  background-image:
    radial-gradient(120% 50% at 50% -8%, rgba(70, 150, 255, 0.28), transparent 62%),
    linear-gradient(180deg, #0c2b5c 0, #08214a 900px, #051737 32%, #030c20 62%, var(--bg-0) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  font-feature-settings: "palt";
  word-break: auto-phrase;
}

p {
  margin: 0;
}

a {
  color: var(--cyan);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(94, 231, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(1160px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--cyan);
  color: var(--bg-0);
  font-weight: 700;
}

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

/* ---------- 背景演出 ---------- */

.plankton,
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.plankton {
  width: 100%;
  height: 100%;
}

.grid-overlay {
  background-image:
    linear-gradient(rgba(94, 231, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 231, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 10%, transparent 80%);
}

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

/* ---------- 深度メーター ---------- */

.depth-meter {
  --progress: 0;
  position: fixed;
  top: 50%;
  right: 22px;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  pointer-events: none;
}

.depth-meter__track {
  position: relative;
  width: 1px;
  height: 200px;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 1px, transparent 1px 10px);
}

.depth-meter__bar {
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: calc(var(--progress) * 100%);
  background: linear-gradient(180deg, transparent, var(--cyan));
  box-shadow: 0 0 10px var(--cyan);
}

.depth-meter__value {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  min-width: 7ch;
  text-align: center;
}

@media (min-width: 1440px) {
  .depth-meter {
    display: flex;
  }
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition:
    background-color 0.3s,
    color 0.3s,
    filter 0.3s,
    transform 0.3s var(--ease);
}

.button:focus-visible {
  clip-path: none;
}

.button--primary {
  background: linear-gradient(100deg, var(--teal), var(--cyan));
  color: #021024;
}

.button--primary:hover {
  filter: brightness(1.12) saturate(1.1);
  transform: translateY(-1px);
}

.button--ghost {
  background: rgba(94, 231, 255, 0.1);
  color: var(--ink);
}

.button--ghost:hover {
  background: rgba(94, 231, 255, 0.2);
}

.button--small {
  --cut: 8px;
  min-height: 40px;
  padding: 0 20px;
  font-size: 0.875rem;
}

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

.button:disabled {
  opacity: 0.5;
  cursor: progress;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.4s,
    border-color 0.4s,
    backdrop-filter 0.4s;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(3, 10, 26, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.logo__mark {
  width: 30px;
  height: 30px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(94, 231, 255, 0.55));
}

.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.2em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav ul {
  display: flex;
  gap: 28px;
}

.site-nav ul a {
  position: relative;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s;
}

.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.site-nav ul a:hover {
  color: var(--ink);
}

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

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 0.4s var(--ease),
    opacity 0.3s;
}

.nav-toggle__bar {
  top: 21px;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  left: 0;
}

.nav-toggle__bar::before {
  transform: translateY(-7px);
}

.nav-toggle__bar::after {
  transform: translateY(7px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  transform: rotate(-45deg);
}

@media (max-width: 959px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 32px var(--gutter) 48px;
    background: var(--bg-1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.3s,
      transform 0.4s var(--ease),
      visibility 0s 0.4s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.3s,
      transform 0.4s var(--ease);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
    color: var(--ink);
  }

  .site-nav ul a::after {
    display: none;
  }

  .site-nav .button {
    min-height: 52px;
    font-size: 1rem;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 120px;
  overflow: hidden;
}

/* 水面から差し込む光 */
.hero__rays {
  position: absolute;
  inset: 0 -20% 20%;
  background: conic-gradient(
    from 168deg at 50% -30%,
    transparent 0deg,
    rgba(120, 200, 255, 0.1) 4deg,
    transparent 9deg,
    rgba(120, 200, 255, 0.06) 13deg,
    transparent 17deg,
    rgba(120, 200, 255, 0.09) 22deg,
    transparent 27deg,
    rgba(120, 200, 255, 0.05) 31deg,
    transparent 36deg
  );
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  filter: blur(6px);
  transform-origin: 50% -30%;
  animation: rays-sway 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes rays-sway {
  from {
    transform: rotate(-3deg);
  }
  to {
    transform: rotate(3deg);
  }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.eyebrow span {
  color: var(--ink-3);
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(1.75rem, 1rem + 3.4vw, 4rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
}

.hero__title > span {
  display: block;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(95deg, var(--teal) 0%, var(--cyan) 45%, var(--periwinkle) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(94, 231, 255, 0.35));
}

.hero__lead {
  max-width: 34em;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem);
  line-height: 2;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero__readout {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 48px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero__readout dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  color: var(--ink-3);
}

.hero__readout dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.4em;
  color: var(--ink-3);
  text-decoration: none;
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 52px;
  overflow: hidden;
  background: var(--line);
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--cyan));
  animation: dive 2.4s var(--ease) infinite;
}

@keyframes dive {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}

/* ---------- sonar ---------- */

.sonar {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
  margin-inline: auto;
  font-family: var(--font-mono);
}

.sonar::before {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 231, 255, 0.1), rgba(10, 37, 80, 0.15) 55%, transparent 72%);
}

.sonar__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sonar__grid circle,
.sonar__grid path {
  fill: none;
  stroke: rgba(94, 231, 255, 0.26);
  stroke-width: 1;
}

.sonar__grid .sonar__ticks {
  stroke: rgba(94, 231, 255, 0.45);
  stroke-width: 6;
  stroke-dasharray: 1 8.95;
}

.sonar__grid .sonar__diag {
  stroke: rgba(94, 231, 255, 0.14);
  stroke-dasharray: 2 6;
}

.sonar__sweep {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(94, 231, 255, 0.05) 300deg, rgba(94, 231, 255, 0.38) 359deg, transparent 360deg);
  animation: sweep 6s linear infinite;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

.sonar__blip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.5625rem, 0.45rem + 0.3vw, 0.6875rem);
  letter-spacing: 0.18em;
  color: var(--ink-2);
  transform: translate(-6px, -50%);
  animation: blip 6s ease-out infinite;
  animation-delay: var(--d);
}

.sonar__blip::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow:
    0 0 0 4px rgba(61, 242, 203, 0.15),
    0 0 16px var(--teal);
}

@keyframes blip {
  0%,
  100% {
    opacity: 0.35;
  }
  8% {
    opacity: 1;
  }
  40% {
    opacity: 0.6;
  }
}

.sonar__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: var(--cyan);
  filter: drop-shadow(0 0 12px rgba(94, 231, 255, 0.7));
}

.sonar__core svg {
  width: 100%;
  height: 100%;
}

.sonar__caption {
  position: absolute;
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  color: var(--ink-3);
}

.sonar__caption--tl {
  top: 0;
  left: 0;
}

.sonar__caption--br {
  right: 0;
  bottom: 0;
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(88px, 12vw, 160px);
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
}

.section-label span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.section-label span::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}

.section-title {
  margin-top: 18px;
  font-size: clamp(1.625rem, 1.15rem + 2vw, 2.75rem);
  line-height: 1.45;
  letter-spacing: 0.03em;
}

/* 枠の角だけ光らせたパネル */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(12, 40, 84, 0.45), rgba(4, 16, 38, 0.35));
  border: 1px solid var(--line);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--cyan);
  pointer-events: none;
}

.panel::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.panel::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.about__text > p:not(.section-label) {
  margin-top: 24px;
  color: var(--ink-2);
}

.about__text .section-title + p {
  margin-top: 36px;
}

.about__text .about__sign {
  margin-top: 36px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.venn {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1.5;
  margin: 0 auto;
}

/* padding の % は .venn の幅が基準。円 (幅 64%) の重なり部分 (36%〜64%) を避けて文字を置く */
.venn__circle {
  position: absolute;
  top: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 64%;
  aspect-ratio: 1;
  padding: 0 5.5%;
  border-radius: 50%;
  transform: translateY(-50%);
  mix-blend-mode: screen;
  white-space: nowrap;
}

.venn__circle--tech {
  left: 0;
  align-items: flex-start;
  padding-right: 30%;
  border: 1px solid rgba(61, 242, 203, 0.55);
  background: radial-gradient(circle at 40% 50%, rgba(61, 242, 203, 0.16), rgba(61, 242, 203, 0.02) 70%);
}

.venn__circle--biz {
  right: 0;
  align-items: flex-end;
  padding-left: 30%;
  text-align: right;
  border: 1px solid rgba(122, 162, 255, 0.6);
  background: radial-gradient(circle at 60% 50%, rgba(122, 162, 255, 0.18), rgba(122, 162, 255, 0.02) 70%);
}

.venn__en {
  font-family: var(--font-display);
  font-size: clamp(0.5625rem, 0.4rem + 0.5vw, 0.75rem);
  letter-spacing: 0.18em;
}

.venn__circle--tech .venn__en {
  color: var(--teal);
}

.venn__circle--biz .venn__en {
  color: var(--periwinkle);
}

.venn__ja {
  font-size: clamp(0.9375rem, 0.8rem + 0.6vw, 1.25rem);
  font-weight: 700;
}

.venn__note {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-3);
}

.venn__core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 26%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.venn__core::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(94, 231, 255, 0.6);
  border-radius: 50%;
  animation: sweep 30s linear infinite;
}

.venn__core span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.5625rem, 0.35rem + 0.7vw, 0.875rem);
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-align: center;
  color: #fff;
  text-shadow:
    0 0 12px var(--cyan),
    0 0 28px rgba(94, 231, 255, 0.6);
}

/* ---------- strengths ---------- */

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

.strength {
  padding: clamp(28px, 3vw, 40px);
  transition:
    border-color 0.4s,
    background-color 0.4s;
}

.strength:hover {
  border-color: var(--line-strong);
}

.strength__num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(94, 231, 255, 0.35);
}

.strength__icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(94, 231, 255, 0.5));
}

.strength h3 {
  margin-top: 28px;
  font-size: 1.1875rem;
  line-height: 1.6;
}

.strength p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* ---------- services ---------- */

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

.service {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.service__en {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
}

.service h3 {
  margin-top: 10px;
  font-size: 1.375rem;
}

.service p:last-child {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* ---------- works ---------- */

.works {
  border-top: 1px solid var(--line);
}

.work {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 24px;
  padding: 26px 12px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s;
}

.work:has(a):hover {
  background: linear-gradient(90deg, rgba(94, 231, 255, 0.08), transparent 70%);
}

.work:has(a:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.work__id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}

.work__body h3 {
  font-size: 1.125rem;
  line-height: 1.6;
}

.work__body h3 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s;
}

/* 行全体をリンクにする */
.work__body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.work__body h3 a:focus-visible {
  outline: none;
}

.work:hover h3 a {
  color: var(--cyan);
}

.work__body p {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.work__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.work__tags li {
  padding: 2px 12px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.work__arrow {
  grid-column: 4;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}

.work:hover .work__arrow {
  transform: translate(3px, -3px);
}

.works__more {
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* ---------- company ---------- */

.company__table {
  margin: 0;
  padding: 8px clamp(20px, 4vw, 48px);
}

.company__table > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.company__table > div:last-child {
  border-bottom: 0;
}

.company__table dt {
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.company__table dd {
  margin: 0;
}

/* ---------- contact ---------- */

.section--contact {
  padding-bottom: clamp(100px, 14vw, 180px);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(40px, 6vw, 88px);
}

.contact__intro > p:not(.section-label) {
  margin-top: 28px;
  color: var(--ink-2);
}

.contact__intro .contact__note {
  padding-left: 16px;
  border-left: 1px solid var(--cyan);
  color: var(--ink);
  font-size: 0.9375rem;
}

.contact-form {
  padding: clamp(24px, 4vw, 44px);
}

.field + .field,
.field + .field-row,
.field-row + .field {
  margin-top: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.field-row > .field {
  margin-top: 0;
}

.field label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}

.required {
  padding: 0 7px;
  background: rgba(61, 242, 203, 0.16);
  color: var(--teal);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  line-height: 1.7;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(94, 231, 255, 0.24);
  border-radius: 0;
  background: rgba(1, 6, 18, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.8;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow:
    0 0 0 3px rgba(94, 231, 255, 0.16),
    0 0 24px rgba(94, 231, 255, 0.14);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field__error {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--danger);
}

.field__error:empty {
  display: none;
}

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

.contact-form__privacy {
  margin: 26px 0 20px;
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--ink-3);
}

.contact-form__status {
  margin-top: 16px;
  font-size: 0.9375rem;
}

.contact-form__status:empty {
  display: none;
}

.contact-form__status[data-state="pending"] {
  color: var(--ink-2);
}

.contact-form__status[data-state="success"] {
  padding: 14px 16px;
  border: 1px solid rgba(61, 242, 203, 0.45);
  background: rgba(61, 242, 203, 0.08);
  color: var(--teal);
}

.contact-form__status[data-state="error"] {
  color: var(--danger);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 36px;
}

.site-footer__copy {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

/* ---------- スクロールで表示 ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 959px) {
  .hero__inner,
  .about,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .sonar {
    width: min(100%, 360px);
  }

  .hero__scroll {
    display: none;
  }

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

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }
}

@media (max-width: 639px) {
  body {
    line-height: 1.85;
  }

  .hero {
    padding-bottom: 72px;
  }

  .hero__actions .button {
    flex: 1 1 100%;
  }

  .hero__readout {
    gap: 12px 28px;
  }

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

  .venn__note {
    display: none;
  }

  .work {
    grid-template-columns: minmax(0, 1fr) 22px;
    grid-template-areas:
      "id arrow"
      "body arrow"
      "tags arrow";
    gap: 8px 16px;
    padding: 22px 4px;
  }

  .work__id {
    grid-area: id;
  }

  .work__body {
    grid-area: body;
  }

  .work__tags {
    grid-area: tags;
    justify-content: flex-start;
    margin-top: 6px;
  }

  .work__arrow {
    grid-area: arrow;
    grid-column: auto;
  }

  .company__table > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 18px 0;
  }

  .company__table dt {
    font-size: 0.8125rem;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
