:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --text: #111111;
  --muted: #555555;
  --line: #c4c4c0;
  --soft: #e4e4e1;
  --dark: #1a1a1a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  font-kerning: normal;
  font-feature-settings: "palt" 1, "kern" 1;
  -webkit-font-feature-settings: "palt" 1, "kern" 1;
  -webkit-tap-highlight-color: transparent;
}

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

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

.page {
  width: 100%;
  margin: 0 auto;
  background: var(--bg);
}

.container {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 32px) clamp(20px, 3vw, 40px) 0;
}

.section-kicker,
.footer {
  letter-spacing: 0.12em;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.4s ease;
}

.brand img {
  display: block;
  height: clamp(18px, 1.6vw, 24px);
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 600;
  letter-spacing: 0.14em;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1003;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.52s cubic-bezier(0.65, 0, 0.2, 1),
    width 0.45s cubic-bezier(0.65, 0, 0.2, 1);
}

body.is-nav-open .nav-toggle__bar:first-of-type {
  width: 28px;
  transform: translateY(4.5px) rotate(41deg);
}

body.is-nav-open .nav-toggle__bar:last-of-type {
  width: 28px;
  transform: translateY(-4.5px) rotate(-41deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(17, 17, 17, 0.34);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.7s linear;
}

body.is-nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

body.is-nav-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    z-index: 1002;
    flex-direction: row-reverse;
    padding-top: max(16px, env(safe-area-inset-top, 0px));
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: 0;
  }

  .nav-backdrop {
    display: block;
  }

  /* ドロワー展開時もロゴ・閉じる操作が最前面（bre-men.jp 系フルスクリーンメニュー想定） */
  body.is-nav-open .site-header .brand {
    position: relative;
    z-index: 1004;
  }

  body.is-nav-open .nav-toggle {
    z-index: 1004;
    color: var(--text);
  }

  .site-header .site-nav {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: calc(100px + env(safe-area-inset-top, 0px))
      max(28px, env(safe-area-inset-right, 0px))
      max(36px, env(safe-area-inset-bottom, 0px))
      max(28px, env(safe-area-inset-left, 0px));
    gap: 0;
    background: #ebebe8;
    color: var(--text);
    font-size: 16px;
    letter-spacing: 0.08em;
    border-left: 0;
    clip-path: inset(0 0 100% 0);
    -webkit-clip-path: inset(0 0 100% 0);
    transition: clip-path 0.88s cubic-bezier(0.33, 0.86, 0.2, 1),
      -webkit-clip-path 0.88s cubic-bezier(0.33, 0.86, 0.2, 1);
    will-change: clip-path;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.is-nav-open .site-header .site-nav {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
  }

  .site-header .site-nav a {
    padding: clamp(10px, 2.2vw, 16px) 0;
    font-size: clamp(22px, 4.8vw, 34px);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: inherit;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    opacity: 0;
    transform: translate3d(0, 1.85rem, 0);
    transition: color 0.35s ease, border-color 0.35s ease, opacity 0.01s linear,
      transform 0.01s linear;
  }

  body.is-nav-open .site-header .site-nav a {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: color 0.35s ease, border-color 0.35s ease,
      opacity 0.68s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body.is-nav-open .site-header .site-nav a:nth-child(1) {
    transition-delay: 0s, 0s, 0.14s, 0.14s;
  }

  body.is-nav-open .site-header .site-nav a:nth-child(2) {
    transition-delay: 0s, 0s, 0.2s, 0.2s;
  }

  body.is-nav-open .site-header .site-nav a:nth-child(3) {
    transition-delay: 0s, 0s, 0.26s, 0.26s;
  }

  body.is-nav-open .site-header .site-nav a:nth-child(4) {
    transition-delay: 0s, 0s, 0.32s, 0.32s;
  }

  body.is-nav-open .site-header .site-nav a:nth-child(5) {
    transition-delay: 0s, 0s, 0.38s, 0.38s;
  }

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

  .site-header .site-nav a:hover,
  .site-header .site-nav a:focus-visible {
    color: #0a0a0a;
    border-bottom-color: rgba(17, 17, 17, 0.2);
  }

  .site-header .site-nav a[aria-current="page"] {
    color: rgba(17, 17, 17, 0.4);
  }

  h1 {
    font-size: clamp(30px, 11vw, 80px);
    letter-spacing: -0.038em;
  }

  /* トップFVの見出しは PC/タブレット幅でもベースの大きさを維持（SPのみ @media 767 で調整） */
  .hero h1 {
    font-size: clamp(34px, 11vw, 120px);
    line-height: 1.3;
    letter-spacing: -0.04em;
    max-width: 920px;
  }

  .page-hero__inner {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }

  .page-hero__title {
    font-size: clamp(26px, 7vw, 52px);
  }

  .statement {
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
  }

  .gallery__head,
  .gallery__foot {
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
  }

  .container {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }

  .page-block {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }

  .hero__body {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
}

.brand:hover {
  opacity: 0.65;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero__body {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__content {
  width: 100%;
  max-width: none;
}

h1 {
  margin: 0 auto;
  max-width: 920px;
  font-size: clamp(34px, 11vw, 120px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-align: left;
}

h1 > span {
  display: block;
  white-space: nowrap;
}

h1 .hero__line--seo {
  white-space: normal;
  max-width: 100%;
  overflow: visible;
}

h1 .hero__line--seo .hero__line-inner {
  font-size: clamp(12px, 2.35vw, 22px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.45;
  white-space: normal;
}

h1 .hero__line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  padding-bottom: 0.06em;
}

h1 .hero__line-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

body.is-loaded h1 .hero__line-inner {
  animation: hero-line-up 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s forwards;
}

body.is-loaded h1 .hero__line:nth-child(2) .hero__line-inner {
  animation-delay: 0.22s;
}

body.is-loaded h1 .hero__line:nth-child(3) .hero__line-inner {
  animation-delay: 0.38s;
}

.hero__br-sp {
  display: none;
}

@keyframes hero-line-up {
  to {
    transform: translateY(0);
  }
}

.hero__content p,
.hero .lead {
  display: none;
}

.statement {
  padding: clamp(48px, 8vw, 120px) clamp(20px, 4vw, 40px);
}

.statement__inner {
  max-width: 680px;
  margin: 0 auto;
}

.statement p {
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 2.05;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: justify;
  text-justify: inter-character;
  hanging-punctuation: allow-end;
  line-break: strict;
  font-feature-settings: "palt" 1, "kern" 1;
}

.statement--read .statement__phrase {
  display: inline;
  opacity: 0.16;
  transform: translate3d(0, 0.07em, 0);
  will-change: opacity, transform;
}

.mission__text,
.service__copy p {
  font-size: 12px;
  line-height: 2;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.service-card p {
  font-size: 11px;
  line-height: 1.7;
  font-weight: 500;
}

.gallery {
  margin-top: clamp(48px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 22px);
  overflow: hidden;
}

.gallery__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 40px) 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--text);
}

.gallery__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gallery__kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.gallery__meta {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.gallery__foot {
  display: flex;
  justify-content: flex-end;
  padding: 6px clamp(20px, 5vw, 40px) 0;
}

.gallery__more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text);
  position: relative;
  transition: gap 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery__more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}

.gallery__more:hover {
  gap: 18px;
}

.gallery__more:hover::after {
  transform: scaleX(0);
  transform-origin: left center;
}

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

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
  animation-duration: 75s;
}

.marquee__group {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(10px, 1.2vw, 18px);
  padding-right: clamp(10px, 1.2vw, 18px);
}

.works-card {
  position: relative;
  flex: 0 0 auto;
  height: clamp(220px, 24vw, 320px);
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  isolation: isolate;
  user-select: none;
  -webkit-user-drag: none;
}

.works-card--alt {
  aspect-ratio: 1 / 1;
  height: clamp(200px, 22vw, 290px);
}

.works-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.works-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: saturate(0.78) brightness(0.95);
  transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.6s ease;
  border-radius: 0;
}

.works-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(14px, 1.4vw, 20px) clamp(16px, 1.5vw, 22px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0) 28%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
  transition: background 0.4s ease;
}

.works-card__num {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.28em;
  opacity: 0.88;
}

.works-card__info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  font-feature-settings: "palt" 1;
}

.works-card__name {
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  flex: 1 1 auto;
  transform: translateY(8px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.works-card__cat {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
  white-space: nowrap;
  transform: translateY(8px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.04s,
    opacity 0.4s ease;
}

.works-card:hover .works-card__media img {
  transform: scale(1.08);
  filter: saturate(1.05) brightness(0.55);
}

.works-card:hover .works-card__name,
.works-card:hover .works-card__cat {
  transform: translateY(0);
}

.works-card:hover .works-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.05) 28%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.works-card::after {
  content: "VIEW";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%) scale(0.85);
  display: grid;
  place-items: center;
  width: clamp(64px, 7vw, 84px);
  height: clamp(64px, 7vw, 84px);
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.works-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

.section {
  padding-top: 92px;
}

.section-line {
  width: 100%;
  border-top: 1px solid var(--line);
}

.section-line--short {
  width: min(100%, 650px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.mission {
  padding-top: clamp(28px, 3.5vw, 48px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.mission__lead h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-weight: 800;
  text-align: left;
}

.mission__text {
  max-width: 720px;
  margin: clamp(40px, 4vw, 56px) 0 0;
  font-size: 12px;
  line-height: 2;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
  text-align: left;
  text-justify: auto;
  hanging-punctuation: allow-end;
  line-break: strict;
}

.mission__text p {
  text-align: left;
}

.mission__text p + p {
  margin-top: 0;
}

.mission__cta {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(36px, 4vw, 56px);
}

.mission__cta a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.3s ease, gap 0.3s ease;
}

.mission__cta a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}

.mission__cta a:hover {
  gap: 18px;
}

.mission__cta a:hover::after {
  transform: scaleX(0);
  transform-origin: left center;
}

.section--dark {
  margin-top: clamp(60px, 7vw, 96px);
  background: var(--dark);
  color: #ffffff;
  padding: 120px 0px 120px 0px;
}

.section-line--dark {
  border-top-color: #3f3f3f;
}

.section--dark .section-kicker {
  color: #ffffff;
}

.service__content {
  padding-top: clamp(24px, 3vw, 40px);
}

.service__copy {
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.service__copy h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-weight: 800;
  text-align: left;
}

.service__copy p {
  max-width: 720px;
  margin: 0;
  font-size: 12px;
  line-height: 2;
  font-weight: 500;
  color: #d2d2d0;
  letter-spacing: 0.04em;
  text-align: left;
  text-justify: auto;
  hanging-punctuation: allow-end;
  line-break: strict;
}

.service__copy p:first-of-type {
  margin-top: clamp(28px, 3vw, 44px);
}

.service__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  max-width: 100%;
  margin: clamp(40px, 5vw, 64px) 0 0;
}

.service__cta {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(28px, 3.5vw, 44px);
}

.service__cta a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.3s ease, gap 0.3s ease;
}

.service__cta a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}

.service__cta a:hover {
  gap: 18px;
}

.service__cta a:hover::after {
  transform: scaleX(0);
  transform-origin: left center;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  min-height: clamp(220px, 22vw, 320px);
  padding: clamp(28px, 3vw, 44px);
  background: #efefec;
  color: var(--text);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.5s ease, color 0.5s ease;
  cursor: pointer;
  text-decoration: none;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 0;
}

.service-card::after {
  content: "→";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 14px;
  opacity: 0;
  transform: translate(-6px, 0);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.4s ease;
  z-index: 1;
}

.service-card > * {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  color: #fff;
}

.service-card:hover::before {
  transform: translateY(0);
}

.service-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
  color: #fff;
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.7);
}

.service-card h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 800;
}

.service-card p {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.section--hidden {
  display: none;
}

.section--case {
  padding-top: clamp(60px, 8vw, 96px);
  padding-bottom: clamp(60px, 8vw, 96px);
}

.section--case .case-slider {
  margin-top: clamp(48px, 7vw, 88px);
}

.case-slider {
  margin-top: clamp(40px, 5vw, 72px);
}

.case-slider__viewport {
  overflow: hidden;
}

.case-slider__track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.case-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.case-slide__text {
  text-align: left;
  align-self: center;
}

.case-slide__title {
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.case-slide__desc {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.case-slide__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--soft);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-slide__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.case-slide__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(0, 0, 0, 0.06) 50%,
    transparent 70%
  );
  background-size: 220% 100%;
  background-position: 100% 0;
  transition: background-position 0.9s cubic-bezier(0.77, 0, 0.18, 1);
}

.case-slide__thumb::after {
  content: "VIEW";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.3em;
  font-weight: 800;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.case-slide:hover .case-slide__thumb {
  transform: translateY(-4px);
}

.case-slide:hover .case-slide__thumb::before {
  background-position: 0 0;
}

.case-slide:hover .case-slide__thumb::after {
  opacity: 1;
  transform: translateY(0);
}

.works__card {
  cursor: default;
}

.works__link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.works__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  background: var(--soft);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.4s ease;
}

.works__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.works__link:hover .works__thumb {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(0.96);
}

.case-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 72px);
}

.case-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--text);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.case-pager__btn:hover {
  background: var(--text);
  color: #ffffff;
}

.case-pager__count {
  display: inline-flex;
  align-items: baseline;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.case-pager__sep {
  margin: 0 2px;
  color: var(--muted);
}

.works {
  padding-bottom: 66px;
}

.section--blog {
  padding-top: 66px;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
  max-width: 100%;
  padding-top: clamp(28px, 3.5vw, 48px);
}

.works__cta {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(28px, 3.5vw, 44px);
}

.works__cta a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  text-decoration: none;
  transition: gap 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.works__cta a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}

.works__cta a:hover {
  gap: 18px;
}

.works__cta a:hover::after {
  transform: scaleX(0);
  transform-origin: left center;
}

.works__title {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.works__meta {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.section--contact {
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(56px, 7vw, 96px);
  scroll-margin-top: clamp(72px, 12vh, 120px);
}

.home-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(28px, 3.5vw, 48px);
  align-items: start;
}

.home-contact__intro h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.home-contact__intro > p:first-of-type {
  margin-top: clamp(20px, 2.4vw, 28px);
  font-size: 12px;
  line-height: 2;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 420px;
}

.home-contact__email {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-contact__email a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: opacity 0.3s ease;
}

.home-contact__email a:hover {
  opacity: 0.65;
}

.home-contact__page-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  position: relative;
  padding: 4px 0;
  transition: gap 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-contact__page-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}

.home-contact__page-link:hover {
  gap: 16px;
}

.home-contact__page-link:hover::after {
  transform: scaleX(0);
  transform-origin: left center;
}

.contact-grid--home {
  margin-top: 0;
}

.footer {
  padding: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.footer__shell {
  padding: clamp(44px, 6vw, 88px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.footer__brand {
  display: inline-flex;
  line-height: 0;
}

.footer__brand img {
  display: block;
  height: clamp(18px, 1.6vw, 24px);
  width: auto;
}

.footer__lead {
  margin-top: 20px;
  max-width: 400px;
  font-size: 12px;
  line-height: 2;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 22px);
  justify-content: flex-end;
  align-self: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.footer__nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}

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

.footer__nav a[aria-current="page"] {
  opacity: 0.45;
  pointer-events: none;
}

.footer__nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.footer__bottom {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__legal {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--muted);
}

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

.footer__copy {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--muted);
}

.footer__marquee {
  width: 100%;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px) 0 clamp(24px, 3vw, 40px);
}

.footer__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(20px, 2.5vw, 36px);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 1;
  white-space: nowrap;
  animation: footer-scroll 32s linear infinite;
  will-change: transform;
}

.footer__item {
  display: inline-block;
  flex: 0 0 auto;
}

.footer__dot {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 0.35em;
  transform: translateY(-0.25em);
  opacity: 0.55;
}

@keyframes footer-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.footer:hover .footer__track {
  animation-play-state: paused;
}

@media (min-width: 1440px) {
  .hero__body {
    max-width: 980px;
  }
}

@media (max-width: 900px) {
  .page {
    width: 100%;
  }

  .container {
    width: 100%;
  }

  .mission__text {
    max-width: min(360px, 92%);
  }

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

  .case-slide__text {
    text-align: left;
    align-self: start;
  }

  .case-slide__desc {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .hero__body {
    max-width: none;
    padding: clamp(40px, 10vw, 88px) clamp(18px, 4.5vw, 24px)
      clamp(56px, 14vw, 100px);
    align-items: center;
    justify-content: center;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    min-width: 0;
  }

  .hero__br-sp {
    display: inline;
  }

  .hero h1 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(82px, 13vw, 118px);
    line-height: 1.06;
    letter-spacing: -0.052em;
  }

  .hero h1 .hero__line {
    overflow: hidden;
    white-space: nowrap;
  }

  .hero h1 .hero__line--sp-br {
    white-space: normal;
  }

  .hero h1 .hero__line--seo .hero__line-inner {
    font-size: clamp(11px, 3.2vw, 16px);
    line-height: 1.5;
  }

  .site-header {
    padding: 20px 20px 0;
  }

  .mission__text,
  .service__copy p,
  .case-slide__desc {
    text-align: left;
  }

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

@media (max-width: 560px) {
  .site-header {
    padding: 16px 18px 0;
    gap: 12px;
  }

  .gallery {
    margin-top: 36px;
  }

  .works-card {
    height: clamp(160px, 36vw, 220px);
  }

  .works-card--alt {
    height: clamp(150px, 34vw, 210px);
  }

  .gallery__head,
  .gallery__foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding-top: 56px;
  }

  .service__cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .works__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer__nav {
    justify-content: flex-start;
  }
}

/* === Animations & rich interactions === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 {
  transition-delay: 0.08s;
}

.reveal--delay-2 {
  transition-delay: 0.18s;
}

.reveal--delay-3 {
  transition-delay: 0.3s;
}

.reveal-line {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.18, 1);
}

.reveal-line.is-visible {
  transform: scaleX(1);
}

/* === Loader === */
body.is-loading {
  overflow: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  color: #ffffff;
  font-family: inherit;
}

.loader__panels {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 100%;
}

.loader__panel {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--dark);
  box-shadow: 1px 0 0 0 var(--dark), -1px 0 0 0 var(--dark);
  transform: translateY(0);
  transition: transform 0.95s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.loader__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.loader__counter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(96px, 18vw, 260px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  mix-blend-mode: difference;
  color: #ffffff;
}

.loader__counter-inner {
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
}

.loader__num {
  display: inline-block;
  min-width: 1.6ch;
  text-align: right;
}

.loader__pct {
  display: inline-block;
  font-size: 0.34em;
  font-weight: 800;
  margin-left: 0.16em;
  margin-top: 0.2em;
  opacity: 0.55;
  letter-spacing: 0;
}

.loader__corner {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  opacity: 0.7;
}

.loader__corner--tl {
  top: clamp(20px, 2.4vw, 32px);
  left: clamp(20px, 3vw, 40px);
}

.loader__corner--br {
  bottom: clamp(20px, 2.4vw, 32px);
  right: clamp(20px, 3vw, 40px);
}

.loader__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  animation: loader-dot 1.1s ease-in-out infinite;
}

@keyframes loader-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.6);
    opacity: 1;
  }
}

.loader__bar {
  position: absolute;
  left: clamp(20px, 3vw, 40px);
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(56px, 6vw, 96px);
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.loader__bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: #ffffff;
  transform-origin: left center;
}

.loader.is-done .loader__content {
  opacity: 0;
  transition-duration: 0.35s;
}

.loader.is-done .loader__panel {
  transform: translateY(-101%);
}

.loader.is-done .loader__panel:nth-child(1) {
  transition-delay: 0s;
}
.loader.is-done .loader__panel:nth-child(2) {
  transition-delay: 0.06s;
}
.loader.is-done .loader__panel:nth-child(3) {
  transition-delay: 0.12s;
}
.loader.is-done .loader__panel:nth-child(4) {
  transition-delay: 0.18s;
}
.loader.is-done .loader__panel:nth-child(5) {
  transition-delay: 0.24s;
}
.loader.is-done .loader__panel:nth-child(6) {
  transition-delay: 0.3s;
}

.loader.is-hidden {
  display: none;
}

@media (max-width: 560px) {
  .loader__panels {
    grid-template-columns: repeat(4, 1fr);
  }
  .loader.is-done .loader__panel:nth-child(5),
  .loader.is-done .loader__panel:nth-child(6) {
    transition-delay: 0.18s;
  }
}

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

  .reveal,
  .reveal-line {
    opacity: 1;
    transform: none;
    transition: none;
  }

  h1 .hero__line-inner {
    transform: none;
    animation: none;
  }

  .marquee__track,
  .footer__track {
    animation: none;
  }

  .service-card:hover,
  .case-slide:hover .case-slide__thumb,
  .works__link:hover .works__thumb,
  .blog-index__article:hover .blog-index__thumb,
  .case-index__item:hover .case-index__thumb,
  .works-card:hover .works-card__media img,
  .works-card:hover .works-card__name,
  .works-card:hover .works-card__cat {
    transform: none;
    filter: none;
  }

  .works-card::after,
  .works-card:hover::after {
    display: none;
  }

  .loader,
  .loader__panel,
  .loader__dot {
    display: none;
    animation: none;
  }

  body.is-loading {
    overflow: auto;
  }

  .statement__phrase {
    opacity: 1 !important;
    transform: none !important;
  }

  body.is-nav-open .site-header .site-nav {
    transition: none !important;
  }

  .nav-backdrop {
    transition: none !important;
  }

  .nav-toggle__bar {
    transition: none !important;
  }

  .hero__content {
    transform: none !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  @media (max-width: 900px) {
    .site-header .site-nav {
      transition: none !important;
    }

    .site-header .site-nav a,
    body.is-nav-open .site-header .site-nav a {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
      transition-delay: 0s !important;
    }
  }
}

/* === Scroll progress bar === */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}

.scroll-progress__bar {
  width: 100%;
  height: 100%;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
  will-change: transform;
}

/* === Custom magnetic cursor === */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9998;
  transform: translate3d(-50%, -50%, 0) scale(0.6);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s ease;
  will-change: transform;
}

.cursor.is-active {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.cursor.is-hovering {
  transform: translate3d(-50%, -50%, 0) scale(2.4);
}

.cursor.is-pressed {
  transform: translate3d(-50%, -50%, 0) scale(0.8);
}

@media (hover: none), (max-width: 720px) {
  .cursor {
    display: none;
  }
}

/* === Split-character reveal === */
.split-reveal {
  display: block;
  overflow: hidden;
}

.split-reveal .char,
.split-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.split-reveal.is-revealed .char,
.split-reveal.is-revealed .word {
  opacity: 1;
  transform: translateY(0);
}

/* === Parallax === */
[data-parallax] {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .split-reveal .char,
  .split-reveal .word {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-progress__bar,
  [data-parallax] {
    transition: none !important;
    transform: none !important;
  }

  .cursor {
    display: none;
  }
}

/* === Sub-page shared styles === */
.page-hero {
  padding: clamp(120px, 14vw, 200px) 0 clamp(56px, 7vw, 104px);
}

.page-hero__inner {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 0 20px;
}

.page-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text);
}

.page-hero__kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.page-hero__title {
  margin-top: clamp(16px, 2vw, 28px);
  font-size: clamp(32px, 4.6vw, 72px);
  line-height: 1.16;
  letter-spacing: -0.026em;
  font-weight: 800;
  text-align: left;
}

.page-hero__lead {
  margin-top: clamp(24px, 2.6vw, 40px);
  max-width: 560px;
  font-size: 12px;
  line-height: 2;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: left;
}

.page-section {
  padding: clamp(60px, 8vw, 120px) 0;
}

.page-section--dark {
  background: var(--dark);
  color: #ffffff;
}

.page-block {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 0 20px;
}

.page-block__head {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 4vw, 80px);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.page-section--dark .page-block__head {
  border-top-color: #3f3f3f;
}

.page-block__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.page-block__label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.page-block__title {
  font-size: clamp(17px, 1.85vw, 23px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.page-block__body {
  margin-top: clamp(28px, 3vw, 48px);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 80px);
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  text-align: left;
}

.page-block__body p + p {
  margin-top: 1em;
}

.page-block__body--single {
  grid-template-columns: 1fr;
  max-width: 720px;
}

/* About: representative message + portrait */
.page-block__body--message {
  margin-top: clamp(28px, 3vw, 48px);
  display: grid;
  grid-template-columns: min(300px, 34vw) 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  max-width: min(960px, 100%);
  text-align: left;
}

.about-message__figure {
  margin: 0;
}

.about-message__figure img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.08);
}

.about-message__text {
  text-align: left;
  min-width: 0;
}

.about-message__text p {
  text-align: left;
}

@media (max-width: 767px) {
  .page-block__body--message {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-message__figure {
    max-width: 260px;
  }

  .about-message__figure img {
    max-width: 100%;
  }
}

.page-block__sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.page-section--dark .page-block__sub {
  color: #b8b8b6;
}

@media (max-width: 767px) {
  .page-block__body {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* About page */
.about-info {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(20px, 3vw, 56px);
  font-size: 12px;
  line-height: 2;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.about-info dt {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted);
  align-self: center;
}

.about-info dd {
  margin: 0;
  letter-spacing: 0.04em;
}

.about-message__sign {
  margin-top: 2em;
}

@media (max-width: 767px) {
  .about-info {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Service page */
.service-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(40px, 5vw, 64px);
}

.service-detail__card {
  background: #efefec;
  color: var(--text);
  padding: clamp(28px, 3vw, 48px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-section--dark .service-detail__card {
  background: #efefec;
  color: var(--text);
}

.service-detail__card:hover {
  transform: translateY(-6px);
}

.service-detail__card h3 {
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.service-detail__card p {
  margin-top: 18px;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.service-detail__card ul {
  margin-top: 24px;
  font-size: 11px;
  line-height: 2.2;
  letter-spacing: 0.06em;
  color: var(--muted);
  list-style: none;
}

.service-detail__card ul li::before {
  content: "—";
  margin-right: 8px;
  color: var(--text);
}

.service-price {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

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

.service-price th,
.service-price td {
  padding: 10px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  vertical-align: top;
  text-align: left;
  font-weight: 500;
}

.service-price th {
  font-weight: 700;
  color: var(--text);
  width: 58%;
}

.service-price td {
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.service-price tbody tr:last-child th,
.service-price tbody tr:last-child td {
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.service-detail__note {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.service-detail__card h4 {
  margin: 20px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text);
}

@media (max-width: 767px) {
  .service-detail {
    grid-template-columns: 1fr;
  }
}

/* Case index */
.case-index__intro {
  margin: clamp(12px, 2vw, 20px) 0 0;
  max-width: min(640px, 100%);
  font-size: 12px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: left;
}

.case-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 56px) clamp(20px, 2.4vw, 32px);
  margin-top: clamp(28px, 3.5vw, 48px);
}

.case-index__item {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.case-index__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--soft);
  overflow: hidden;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-index__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.case-index__thumb::after {
  content: "VIEW";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.3em;
  font-weight: 800;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.case-index__item:hover .case-index__thumb {
  transform: translateY(-4px);
}

.case-index__item:hover .case-index__thumb::after {
  opacity: 1;
  transform: translateY(0);
}

.case-index__title {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: left;
}

.case-index__meta {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.case-index__group-title {
  margin: clamp(40px, 6vw, 64px) 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text);
  text-align: left;
}

.case-index__group-lead {
  margin: 0 0 clamp(20px, 3vw, 28px);
  max-width: min(640px, 100%);
  font-size: 11px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: left;
}

.case-index__group-lead a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-index__group-lead a:hover {
  opacity: 0.75;
}

@media (max-width: 767px) {
  .case-index {
    grid-template-columns: 1fr;
  }
}

/* Blog index */
.blog-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(40px, 5vw, 64px);
}

.blog-index__article {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.blog-index__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--soft);
  overflow: hidden;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.blog-index__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.blog-index__article:hover .blog-index__thumb {
  transform: translateY(-4px);
}

.blog-index__title {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-align: left;
}

.blog-index__meta {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: left;
}

@media (max-width: 900px) {
  .blog-index {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Blog post (single) */
.blog-post {
  padding: clamp(32px, 5vw, 72px) 0 clamp(80px, 12vw, 140px);
}

.blog-post__shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 0 20px;
}

.blog-post__header {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.blog-post__kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.blog-post__title {
  margin-top: 16px;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: left;
}

.blog-post__meta {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.blog-post__hero {
  margin-top: clamp(28px, 4vw, 40px);
  margin-bottom: 0;
}

.blog-post__hero img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post__content {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.04em;
  text-align: left;
}

.blog-post__content > *:first-child {
  margin-top: 0;
}

.blog-post__source {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.blog-post__source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-post__source a:hover {
  opacity: 0.75;
}

.blog-post .page-back {
  margin-top: 32px;
}

/* WordPress-imported article body */
.wp-import p {
  margin: 0 0 1.25em;
}

.wp-import h2,
.wp-import h3 {
  margin: 2em 0 0.75em;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.wp-import h2:first-child,
.wp-import h3:first-child {
  margin-top: 0;
}

.wp-import ul,
.wp-import ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}

.wp-import li {
  margin: 0.35em 0;
}

.wp-import figure {
  margin: clamp(24px, 4vw, 40px) 0;
}

.wp-import figure img {
  width: 100%;
  height: auto;
  display: block;
}

.wp-import a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wp-import a:hover {
  opacity: 0.75;
}

.page-hero__lead a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero__lead a:hover {
  opacity: 0.75;
}

/* Case study detail */
.case-detail {
  padding: clamp(36px, 5vw, 72px) 0 clamp(72px, 10vw, 120px);
  text-align: left;
}

.case-detail__shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 20px;
}

.case-detail__shell--header {
  padding-top: clamp(4px, 1vw, 12px);
}

.case-detail__header {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.case-detail__kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.case-detail__title {
  margin-top: 14px;
  font-size: clamp(22px, 3.4vw, 38px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.case-detail__meta {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.case-detail__lead {
  margin-top: clamp(18px, 2.5vw, 28px);
  max-width: min(640px, 100%);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.case-detail__hero {
  margin: clamp(28px, 4vw, 48px) auto 0;
  width: min(100%, 920px);
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.case-detail__hero img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.07);
}

.case-detail__shell--body {
  padding-top: clamp(36px, 5vw, 56px);
}

.case-detail__content {
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.04em;
  text-align: left;
}

.case-detail__source {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.case-detail__source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-detail__source a:hover {
  opacity: 0.75;
}

.case-detail__stub-note {
  margin-top: 1.5em;
  padding: 1em 1.1em;
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--soft);
}

.case-detail__stub-note a {
  color: inherit;
  font-weight: 700;
}

.case-detail__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}

.case-detail__pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--text);
  transition: gap 0.3s ease, opacity 0.3s ease;
}

.case-detail__pager:hover {
  gap: 12px;
}

.case-detail__pager--next {
  justify-self: end;
}

.case-detail__pager--prev {
  justify-self: start;
}

.case-detail__pager.is-disabled {
  opacity: 0;
  pointer-events: none;
}

.case-detail__back {
  justify-self: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.case-detail__back:hover {
  border-bottom-color: currentColor;
}

.wp-import--case .swell-block-fullWide,
.wp-import--case .wp-block-group {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
}

.wp-import--case .swell-block-fullWide[style*="background"] {
  margin-top: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(24px, 4vw, 40px);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px) !important;
}

.wp-import--case h2.is-style-section_ttl,
.wp-import--case .wp-block-heading.is-style-section_ttl {
  margin: 0 0 0.75em;
  font-size: clamp(14px, 1.65vw, 17px) !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--text) !important;
}

.wp-import--case .pc_only {
  display: block;
}

.wp-import--case .sp_only {
  display: none;
}

@media (max-width: 767px) {
  .wp-import--case .pc_only {
    display: none !important;
  }

  .wp-import--case .sp_only {
    display: block !important;
  }
}

/* Case & blog: WordPress移行コンテンツの左揃え・画像・カラムレイアウト */
.blog-post__content.wp-import,
.case-detail__content.wp-import--case {
  text-align: left;
}

.blog-post__content.wp-import .l-article,
.case-detail__content.wp-import--case .l-article {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.blog-post__content.wp-import p,
.blog-post__content.wp-import h2,
.blog-post__content.wp-import h3,
.blog-post__content.wp-import h4,
.blog-post__content.wp-import li,
.blog-post__content.wp-import .wp-block-heading,
.case-detail__content.wp-import--case p,
.case-detail__content.wp-import--case h2,
.case-detail__content.wp-import--case h3,
.case-detail__content.wp-import--case h4,
.case-detail__content.wp-import--case li,
.case-detail__content.wp-import--case .wp-block-heading {
  text-align: left;
}

.blog-post__content.wp-import .has-text-align-center,
.case-detail__content.wp-import--case .has-text-align-center,
.blog-post__content.wp-import .has-text-align-right,
.case-detail__content.wp-import--case .has-text-align-right {
  text-align: left !important;
}

.blog-post__content.wp-import .wp-block-columns,
.case-detail__content.wp-import--case .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(16px, 3vw, 32px);
  margin: 1.25em 0;
  align-items: start;
}

.blog-post__content.wp-import .wp-block-column,
.case-detail__content.wp-import--case .wp-block-column {
  min-width: 0;
}

.blog-post__content.wp-import figure.wp-block-image,
.case-detail__content.wp-import--case figure.wp-block-image {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.blog-post__content.wp-import figure.wp-block-image img,
.case-detail__content.wp-import--case figure.wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post__content.wp-import figure.wp-block-table,
.case-detail__content.wp-import--case figure.wp-block-table {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blog-post__content.wp-import .wp-block-table table,
.case-detail__content.wp-import--case .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.blog-post__content.wp-import .wp-block-table th,
.blog-post__content.wp-import .wp-block-table td,
.case-detail__content.wp-import--case .wp-block-table th,
.case-detail__content.wp-import--case .wp-block-table td {
  text-align: left;
  vertical-align: top;
}

.blog-post__content.wp-import .wp-block-group,
.case-detail__content.wp-import--case .wp-block-group {
  text-align: left;
}

.blog-post__content.wp-import .swell-block-fullWide__inner,
.case-detail__content.wp-import--case .swell-block-fullWide__inner {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.case-detail__content.wp-import--case .alignwide,
.case-detail__content.wp-import--case .alignfull {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(40px, 5vw, 64px);
}

.contact-info dt {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 18px;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.contact-form__wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form__privacy {
  margin: 0;
  font-size: 11px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.contact-form__privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form__privacy a:hover {
  opacity: 0.75;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form__field {
  display: grid;
  gap: 6px;
}

.contact-form__field label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-bottom-color: var(--text);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__submit {
  margin-top: 12px;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--text);
  color: #ffffff;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: gap 0.3s ease, background 0.3s ease;
  justify-self: end;
}

.contact-form__submit:hover {
  gap: 18px;
  background: #2a2a2a;
}

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

/* Privacy / legal long-form */
.page-legal {
  max-width: 720px;
}

.page-legal__h {
  margin: 2em 0 0.65em;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
}

.page-legal__h:first-child {
  margin-top: 0;
}

.page-legal p {
  margin: 0;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-legal p + p {
  margin-top: 1em;
}

.page-legal__list {
  margin: 0.75em 0 0;
  padding-left: 1.2em;
  font-size: 12px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-legal__list li + li {
  margin-top: 0.45em;
}

.page-legal__date {
  margin-top: 2.5em;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-legal a:hover {
  opacity: 0.75;
}

/* Sub-page back-to-top link */
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 72px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  position: relative;
  padding: 4px 0;
}

.page-back::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}

.page-back:hover {
  gap: 18px;
}

.page-back:hover::after {
  transform: scaleX(0);
  transform-origin: left center;
}
