@import url("../tokens.css");

/* Hallmark · macrostructure: Photographic · tone: utilitarian · genre: editorial
 * theme: custom (chalk paper, iron oxide) · design-system: design.md
 */


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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.sp-only { display: none; }

/* ---------- Splash intro ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--dark);
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease 0.1s, visibility 0.6s ease 0.1s;
}

body.is-loaded .splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-word {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(1.4rem, 5vw, 2.6rem);
  letter-spacing: 0.35em;
  color: var(--on-dark);
  opacity: 0;
  transform: translateY(24px);
  animation: splashIn 0.9s var(--ease-spring) 0.15s forwards;
}

@keyframes splashIn {
  to { opacity: 1; transform: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(246, 245, 242, 0);
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.45s var(--ease-spring);
}

.site-header.is-scrolled {
  background: var(--color-paper);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 2px));
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo img {
  width: clamp(150px, 16vw, 176px);
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.35s ease;
}

.site-header.is-scrolled .logo img,
body.menu-open .logo img {
  filter: brightness(0);
}

.nav-desktop {
  display: none;
  gap: 6px;
  margin-left: auto;
}

.nav-desktop a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-on-dark);
  white-space: nowrap;
  transition: color var(--dur-base) ease, opacity var(--dur-fast) ease;
}

.site-header.is-scrolled .nav-desktop a,
body.is-inner .nav-desktop a { color: var(--ink); }

.nav-jp {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.nav-en {
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  line-height: 1;
  opacity: 0.95;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-spring);
}

.nav-desktop a:hover::after,
.nav-desktop a.is-active::after {
  transform: scaleX(1);
}

.nav-desktop a.is-active .nav-jp { color: var(--accent); }
body.is-home:not(.is-scrolled-ready) .nav-desktop a.is-active .nav-jp { color: var(--color-accent); }

/* Inner pages: header always light */
body.is-inner .site-header {
  background: var(--color-paper);
  box-shadow: 0 1px 0 var(--line);
}

body.is-inner .logo img {
  filter: brightness(0);
}

body.is-inner .btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

body.is-inner .menu-btn {
  background: rgba(20, 20, 20, 0.06);
}

body.is-inner .menu-btn span { background: var(--ink); }

body.is-inner .splash { display: none; }

body.is-inner main {
  padding-top: 0;
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:active { transform: scale(0.96); }

.btn-lg { min-height: 54px; padding: 0 28px; font-size: 0.98rem; }

.btn-accent {
  background: var(--accent);
  color: var(--color-accent-ink);
  box-shadow: none;
}

.btn-fill { overflow: hidden; }

.btn-fill span { position: relative; z-index: 1; }

.btn-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-hover);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease-spring);
}

.btn-fill:hover::before { transform: translateX(0); }

.btn-ghost {
  display: none;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-on-dark);
  transition: color 0.35s ease, border-color 0.35s ease, transform 0.15s var(--ease-spring);
}

.site-header.is-scrolled .btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-on-dark);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-on-dark:hover { background: rgba(255, 255, 255, 0.18); }

.menu-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-content: center;
  gap: 7px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.site-header.is-scrolled .menu-btn,
body.menu-open .menu-btn {
  background: rgba(20, 20, 20, 0.06);
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-surface);
  transition: transform 0.3s var(--ease-spring), background 0.3s ease;
}

.site-header.is-scrolled .menu-btn span,
body.menu-open .menu-btn span { background: var(--ink); }

.menu-btn.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--color-paper);
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 90px 28px 40px;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 1.5rem;
  font-weight: 900;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
}

.mobile-nav.is-in a {
  animation: navItemIn 0.55s var(--ease-spring) forwards;
}

.mobile-nav.is-in a:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav.is-in a:nth-child(2) { animation-delay: 0.11s; }
.mobile-nav.is-in a:nth-child(3) { animation-delay: 0.17s; }
.mobile-nav.is-in a:nth-child(4) { animation-delay: 0.23s; }
.mobile-nav.is-in a:nth-child(5) { animation-delay: 0.3s; }

@keyframes navItemIn { to { opacity: 1; transform: none; } }

.mobile-nav a.is-active {
  color: var(--accent);
}


.mobile-nav .btn { margin-top: 24px; border-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding: 10px 10px 0; }

.hero-frame {
  position: relative;
  min-height: min(94svh, 860px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
}

.hero-img {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.12);
  filter: brightness(0.92);
  transition: transform 1.6s var(--ease-spring), filter 1.6s ease;
}

body.is-loaded .hero-img {
  transform: scale(1.0);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 8, 10, 0.78) 0%, rgba(8, 8, 10, 0.34) 55%, rgba(8, 8, 10, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 8, 10, 0.62) 0%, transparent 48%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 26px 64px;
  color: var(--color-on-dark);
}

.hero-en {
  margin: 0 0 14px;
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  font-weight: 600;
  opacity: 0.85;
}

.split-chars .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.9em);
  animation: charUp 0.7s var(--ease-spring) forwards;
  animation-delay: calc(0.55s + var(--i) * 0.028s);
}

@keyframes charUp {
  to { opacity: 1; transform: none; }
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7.6vw, 4.2rem);
  line-height: 1.22;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.line {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 1s var(--ease-spring) forwards;
}

.line-mask:nth-child(1) .line { animation-delay: 0.75s; }
.line-mask:nth-child(2) .line { animation-delay: 0.92s; }

@keyframes lineUp { to { transform: none; } }

[data-fade] {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.9s var(--ease-spring) forwards;
}

.hero-sub[data-fade] { animation-delay: 1.25s; }
.hero-cta[data-fade] { animation-delay: 1.4s; }

@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-sub {
  margin: 20px 0 0;
  font-size: 1rem;
  opacity: 0.92;
  max-width: 30em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.scroll-hint {
  position: absolute;
  right: 26px;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-on-dark);
}

.scroll-hint-text {
  font-family: var(--font-en);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
  opacity: 0.75;
}

.scroll-hint-bar {
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.scroll-hint-bar::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--color-surface);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { top: -40%; }
  70%, 100% { top: 110%; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 34px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(20, 20, 20, 0.28);
}

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

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 88px 0 96px;
}

.section-teaser { padding-top: 64px; padding-bottom: 0; }
.section-service-home { padding-top: 72px; padding-bottom: 88px; }
.section-alt { background: var(--bg-alt); }

/* Works: full-bleed grid touches the next section */
#works { padding-bottom: 0; }

.section-head { position: relative; margin-bottom: 56px; }

.giant-en {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(4.2rem, 13vw, 10.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(20, 20, 20, 0.14);
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

.on-dark .giant-en {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.14);
}

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 32px;
  margin-top: 0;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.05em;
  font-weight: 900;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 1px;
  margin-top: 14px;
  background: var(--accent);
}

.lead {
  margin: 0;
  color: var(--muted);
  text-align: right;
  font-size: 0.95rem;
}

.on-dark h2, .on-dark .lead { color: var(--on-dark); }
.on-dark .lead { opacity: 0.72; }

.tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Before / After ---------- */
.ba-feature {
  display: grid;
  gap: 24px;
  margin-bottom: 56px;
}

.ba-compare {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-dark);
  user-select: none;
  touch-action: none;
  box-shadow: 0 12px 32px -20px rgba(20, 20, 20, 0.28);
}

.ba-after, .ba-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  will-change: width;
}

.ba-before {
  width: 100%;
  max-width: none;
  min-width: 100%;
  height: 100%;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
  will-change: left;
}

.ba-handle-line {
  flex: 1;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
}

.ba-handle-knob {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--color-surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}

.ba-labels {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.ba-labels span {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--color-on-dark);
  background: rgba(0, 0, 0, 0.55);
  padding: 7px 12px;
  border-radius: var(--radius-btn);
}

.ba-meta h3 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
  font-weight: 900;
}

.ba-meta p { margin: 0; color: var(--muted); }

/* ---------- Works grid (full-bleed, Muramoto style) ---------- */
.works-grid {
  display: grid;
  gap: 0;
  width: 100%;
  margin-top: 64px;
}

.work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-dark);
  cursor: pointer;
}

.work-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.9s var(--ease-spring), filter 0.5s ease;
}

.work-card:hover .work-media img {
  transform: scale(1.07);
  filter: brightness(0.8);
}

.work-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-on-dark);
  background: var(--accent);
  border-radius: 3px;
}

.work-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 70px 20px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  color: var(--color-on-dark);
}

.work-info h3 {
  margin: 2px 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.work-meta {
  margin: 0;
  font-size: 0.76rem;
  opacity: 0.82;
  letter-spacing: 0.03em;
}

.work-info .work-meta:first-child {
  color: var(--color-accent);
}

/* ---------- Service ---------- */
.service-grid {
  display: grid;
  gap: 16px;
}

.service-item {
  position: relative;
  padding: 34px 26px 30px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(20, 20, 20, 0.28);
}

.service-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-spring);
}

.service-item:hover::after { transform: scaleX(1); }

.service-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.service-item h3 {
  margin: 10px 0 10px;
  font-size: 1.2rem;
  font-weight: 900;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- About ---------- */
.about-layout {
  display: grid;
  gap: 40px;
}

.about-lead {
  font-size: 1.1rem;
  max-width: 36em;
  margin: 0;
}

.about-table {
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}

.about-table > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.about-table dt { margin: 0; color: var(--muted); font-size: 0.9rem; }
.about-table dd { margin: 0; font-weight: 500; }
.about-table a { text-decoration: underline; text-underline-offset: 3px; }

.staff-slot { max-width: 340px; }

.staff-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #e6e3dc, #d5d1c8);
  border: 1px dashed rgba(20, 20, 20, 0.22);
}

.staff-placeholder span {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: rgba(20, 20, 20, 0.42);
  text-align: center;
  line-height: 2;
}

/* ---------- Contact ---------- */
.section-contact {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.contact-grid {
  display: grid;
  gap: 16px;
}

.contact-card {
  position: relative;
  display: block;
  padding: 32px 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background var(--dur-base) ease, border-color var(--dur-base) ease;
}

a.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

a.contact-card:active { transform: scale(0.985); }

.contact-label {
  margin: 0;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--color-accent);
}

.contact-value {
  margin: 12px 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 900;
  word-break: break-all;
}

.contact-note {
  margin: 8px 0 0;
  font-size: 0.86rem;
  opacity: 0.6;
}

.contact-arrow {
  position: absolute;
  right: 24px;
  top: 28px;
  font-family: var(--font-en);
  opacity: 0.5;
  transition: transform 0.35s var(--ease-spring), opacity 0.3s ease;
}

a.contact-card:hover .contact-arrow {
  transform: translateX(6px);
  opacity: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 20px 0 44px;
  font-size: 0.9rem;
}

.footer-catch {
  margin: 0 0 44px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  line-height: 1.3;
  color: var(--color-on-dark);
}

.footer-meta {
  display: grid;
  gap: 28px;
  padding-top: 28px;
}

.footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-nav a {
  position: relative;
  padding-bottom: 2px;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-surface);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-spring);
}

.footer-nav a:hover { color: var(--color-on-dark); }
.footer-nav a:hover::after { transform: scaleX(1); }

.copy {
  margin: 36px 0 0;
  font-family: var(--font-en);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  opacity: 0.45;
}

/* ---------- Sub pages (flow / faq / area) ---------- */
.sub-page-inner {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
}

.sub-lead {
  margin: 0 0 48px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 40em;
}

.sub-page-note {
  margin-top: 40px;
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--bg-alt);
}

.sub-page-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.sub-page-note a {
  color: var(--accent);
  font-weight: 700;
}

/* Flow timeline */
.flow-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow-step {
  display: grid;
  gap: 16px 20px;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "marker content"
    ". media";
  padding-bottom: 52px;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: color-mix(in srgb, var(--color-accent) 22%, transparent);
}

.flow-step-marker { grid-area: marker; }

.flow-step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--color-on-dark);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.flow-step-content { grid-area: content; }

.flow-step-content h2 {
  margin: 6px 0 10px;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 900;
}

.flow-step-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.96rem;
}

.flow-step-content a {
  color: var(--accent);
  font-weight: 700;
}

.flow-step-media {
  grid-area: media;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-dark);
}

.flow-step-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* FAQ page */
.faq-accordion { max-width: 760px; margin-inline: auto; }

.acc-trigger-faq { padding: 20px 24px; }

.acc-faq-q {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  line-height: 1.5;
}

.faq-accordion .acc-item.is-open .acc-faq-q { color: var(--accent); }

.acc-panel-faq > p {
  padding-top: 18px !important;
}

.acc-panel-faq a {
  color: var(--accent);
  font-weight: 700;
}

/* Area page */
.area-primary {
  display: grid;
  gap: 14px;
  margin-bottom: 48px;
}

.area-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.area-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -20px rgba(20, 20, 20, 0.2);
}

.area-card-label {
  margin: 0 0 8px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.area-card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 900;
}

.area-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.area-secondary { margin-bottom: 48px; }

.area-subhead {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 900;
}

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

.area-list li {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg-alt);
  font-weight: 500;
  font-size: 0.94rem;
}

.area-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.area-office {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.area-map-link { margin: 24px 0 0; }

/* Footer sitemap */
.footer-sitemap {
  display: grid;
  gap: 28px 20px;
  padding-bottom: 36px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col-en {
  margin: 0 0 14px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  opacity: 0.78;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-on-dark);
}

.footer-cta { white-space: nowrap; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .btn-ghost { display: inline-flex; }
  .menu-btn { display: none; }
  .header-actions { margin-left: 16px; }

  .hero { padding: 14px 14px 0; }

  .hero-copy { padding: 60px 64px 84px; max-width: 780px; }

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

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

  .ba-feature {
    grid-template-columns: 1.5fr 0.7fr;
    align-items: end;
    gap: 36px;
  }

  .contact-grid { grid-template-columns: repeat(3, 1fr); }

  .about-layout {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }

  .footer-meta {
    grid-template-columns: 1.2fr auto;
    align-items: center;
  }

  .footer-sitemap {
    grid-template-columns: repeat(4, 1fr);
  }

  .area-primary {
    grid-template-columns: repeat(3, 1fr);
  }

  .area-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .flow-step {
    grid-template-columns: 48px 1fr min(320px, 36%);
    grid-template-areas: "marker content media";
    align-items: start;
    gap: 24px 32px;
  }

  .flow-step:not(:last-child)::after {
    left: 23px;
    top: 56px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .header-actions .btn-ghost { display: none; }
}

.header-actions .btn { white-space: nowrap; }

@media (min-width: 1024px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  min-height: min(42vh, 380px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin: 0;
  padding: calc(var(--header-h) + 48px) 0 56px;
  color: var(--color-on-dark);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 8, 10, 0.72) 0%, rgba(8, 8, 10, 0.35) 60%, rgba(8, 8, 10, 0.25) 100%),
    linear-gradient(0deg, rgba(8, 8, 10, 0.55), transparent 50%);
}

.page-hero-dark {
  background: var(--dark);
  min-height: auto;
  padding-bottom: 48px;
}

.page-hero-copy {
  position: relative;
  z-index: 1;
}

.page-hero-copy h1 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 400;
  line-height: 1.2;
}

.page-hero-sub {
  margin: 14px 0 0;
  opacity: 0.88;
  max-width: 28em;
}

/* Home teaser / CTA band */
.works-grid-teaser {
  margin-top: 40px;
}

.section-more {
  margin: 36px 0 0;
  text-align: center;
}

.btn-ghost-dark {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost-dark:hover {
  border-color: var(--ink);
}

.section-cta-band {
  padding: 80px 0;
  background: var(--bg-alt);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.35;
}

.cta-band .eyebrow {
  margin: 0;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent);
}

.service-detail {
  display: grid;
  gap: 0;
}

.service-detail-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 18px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.service-detail-item:first-child {
  border-top: 1px solid var(--line);
}

.service-detail-item h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 900;
}

.service-detail-item p {
  margin: 0;
  color: var(--muted);
  max-width: 40em;
}

.section-contact-page {
  border-radius: 0;
  min-height: 60vh;
}

.contact-address {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-address h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.contact-address p {
  margin: 0;
  opacity: 0.75;
  line-height: 1.9;
}

.staff-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Contact form (Muramoto-like) ---------- */
.contact-page {
  padding: calc(var(--header-h) + 48px) 0 100px;
  background: var(--bg);
}

.contact-page-inner {
  width: min(920px, calc(100% - 40px));
}

.contact-page-head {
  margin-bottom: 48px;
}

.contact-giant {
  margin: 0;
  font-size: clamp(3.6rem, 12vw, 7.5rem);
  line-height: 0.9;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--color-accent) 35%, transparent);
  color: transparent;
}

.contact-page-head h1 {
  margin: 0 0 0;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.contact-intro {
  margin-top: 28px;
  max-width: 40em;
}

.contact-intro p {
  margin: 0 0 0.85em;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.9;
}

.inquiry-form {
  margin-top: 8px;
}

.form-row {
  display: grid;
  gap: 10px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.form-row:first-of-type {
  border-top: 1px solid var(--line);
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label label {
  font-weight: 700;
  font-size: 0.98rem;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.req {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-danger);
  letter-spacing: 0.04em;
}

.req-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-danger);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 14px 20px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  border-radius: 22px;
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23141414' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 42px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: none;
}

.form-agree {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.agree-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
}

.agree-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.agree-check a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: min(320px, 100%);
  min-height: 56px;
  padding: 0 36px;
  border: 0;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-on-dark);
  cursor: pointer;
  background: var(--color-dark);
  box-shadow: none;
  transition: transform 0.15s var(--ease-spring), filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 28px rgba(20, 20, 20, 0.22);
}

.btn-submit:active {
  transform: scale(0.97);
}

.btn-submit-arrow {
  font-size: 0.7rem;
  opacity: 0.9;
}

.contact-intro a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-intro a:hover { opacity: 0.85; }

.blog-en {
  margin: 0;
  color: var(--accent);
}

.blog-intro {
  color: var(--muted);
  line-height: 1.9;
}

.blog-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.blog-list li {
  border-bottom: 1px solid var(--line);
}

.blog-list a {
  display: grid;
  gap: 6px;
  padding: 22px 4px;
  color: inherit;
  text-decoration: none;
}

.blog-list a:hover strong { color: var(--accent); }

.blog-list time,
.blog-date {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.blog-list strong {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.6;
}

.blog-list span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.blog-figure {
  margin: 24px 0 0;
}

.blog-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-body ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.blog-body h2 {
  margin-top: 40px;
  font-size: 1.2rem;
}

.recruit-h2 {
  margin: 56px 0 20px;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.recruit-h2:first-child {
  margin-top: 0;
}

.recruit-points {
  margin: 8px 0 0;
  padding-left: 1.2em;
  line-height: 2;
}

[data-page="recruit"] .about-body a:not(.btn) {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.line-add-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #06c755;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.line-add-btn:hover { opacity: 0.9; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  max-width: 40em;
}

.contact-line img {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background: #fff;
}

.contact-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.9;
}

.thanks-page,
.legal-page {
  padding: calc(var(--header-h) + 64px) 0 100px;
  min-height: 70vh;
}

.thanks-inner,
.legal-inner {
  width: min(760px, calc(100% - 40px));
}

.thanks-inner h1,
.legal-inner h1 {
  margin: 8px 0 18px;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 900;
}

.thanks-inner p {
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.9;
}

.legal-body {
  margin: 28px 0 36px;
  color: var(--muted);
  line-height: 1.9;
}

.legal-body h2 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

.legal-body p { margin: 0 0 0.6em; }

.legal-date {
  margin-top: 28px !important;
  font-size: 0.88rem;
}

/* ---------- Service accordion (Muramoto-like) ---------- */
.biz-page {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 100px;
  background: var(--color-paper);
  overflow: hidden;
}

.biz-layout {
  display: grid;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.biz-layout-solo {
  max-width: 920px;
  margin-inline: auto;
}

.biz-side-nav {
  display: none;
}

.biz-side-nav a {
  position: relative;
  padding: 6px 0 6px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
}

.biz-side-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transform: translateY(-50%);
  transition: background 0.25s ease;
}

.biz-side-nav a:hover,
.biz-side-nav a.is-active {
  color: var(--accent);
  font-weight: 700;
}

.biz-side-nav a.is-active::before {
  background: var(--accent);
}

.biz-head {
  margin-bottom: 36px;
}

.biz-en {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(3.6rem, 12vw, 7.5rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--color-accent) 35%, transparent);
}

.biz-head h1 {
  margin: 10px 0 0;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.accordion {
  display: grid;
  gap: 14px;
}

.acc-item {
  background: var(--color-surface);
  border-radius: 10px;
  box-shadow: 0 8px 28px -18px rgba(20, 20, 20, 0.28);
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.35s var(--ease-spring);
}

.acc-item:hover {
  box-shadow: 0 14px 36px -16px rgba(20, 20, 20, 0.32);
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background 0.25s ease;
}

.acc-trigger:hover {
  background: color-mix(in srgb, var(--color-accent) 4%, transparent);
}

.acc-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.acc-jp {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 900;
  color: var(--accent);
}

.acc-en {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(20, 20, 20, 0.35);
}

.acc-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.35s var(--ease-spring), opacity 0.25s ease;
}

.acc-icon::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.acc-icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.acc-item.is-open .acc-icon::after {
  transform: translateX(-50%) scaleY(0);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-spring);
}

.acc-item.is-open .acc-panel {
  grid-template-rows: 1fr;
}

.acc-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.acc-panel-inner > * {
  padding: 4px 24px 28px;
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.acc-panel-inner > p {
  margin: 0;
  padding-top: 22px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 48em;
}

.acc-cols {
  display: grid;
  gap: 22px;
  padding-top: 22px !important;
}

.acc-cols h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--ink);
}

.acc-cols p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.85;
}

.biz-watermark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  margin: 0;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(5rem, 18vw, 14rem);
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ---------- Work detail (before / after) ---------- */
.work-detail {
  padding: calc(var(--header-h) + 40px) 0 100px;
  background: var(--bg);
}

.work-detail-inner {
  width: min(980px, calc(100% - 40px));
}

.work-back {
  margin: 0 0 28px;
  font-size: 0.92rem;
  font-weight: 700;
}

.work-back a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.work-back a:hover { color: var(--accent); }

.work-detail-head {
  margin-bottom: 36px;
}

.work-detail-head .work-badge {
  position: static;
  display: inline-block;
  margin-bottom: 14px;
}

.work-detail-head h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.work-meta-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.work-meta-list li {
  font-size: 0.95rem;
  color: var(--ink);
}

.work-meta-list span {
  display: inline-block;
  margin-right: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.work-lead {
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.9;
  max-width: 40em;
}

.work-ba-stack {
  display: grid;
  gap: 40px;
  margin: 12px 0 48px;
}

.work-ba-stack .ba-compare {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
}

.ba-pair-label {
  margin: 0 0 12px;
  font-weight: 900;
  font-size: 1.05rem;
}

.ba-side-by-side {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.ba-side-by-side figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--color-surface);
}

.ba-side-by-side img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--color-dark);
}

.ba-side-by-side figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  background: var(--color-surface);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.ba-side-by-side figcaption span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0;
  color: var(--ink);
}

.work-ba-note {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-accent) 8%, transparent);
  color: var(--muted);
  font-size: 0.94rem;
}

.work-gallery {
  margin: 40px 0;
}

.work-gallery h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  font-weight: 900;
}

.work-gallery-grid {
  display: grid;
  gap: 14px;
}

.work-gallery-grid figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-dark);
}

.work-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-gallery-grid figcaption {
  padding: 10px 14px;
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-top: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.work-detail-cta {
  margin-top: 56px;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  text-align: center;
}

.work-detail-cta p {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: 1.1rem;
}

a.work-card {
  color: inherit;
  text-decoration: none;
}

@media (min-width: 768px) {
  .ba-side-by-side {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .work-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (min-width: 900px) {
  .biz-layout:not(.biz-layout-solo) {
    grid-template-columns: 200px 1fr;
    gap: 56px;
    align-items: start;
  }

  .biz-side {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }

  .biz-side-nav {
    flex-direction: column;
    gap: 4px;
  }

  .acc-cols {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .acc-trigger {
    padding: 26px 32px;
  }

  .acc-panel-inner > * {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: center;
    padding: 26px 0;
  }

  .form-row-top {
    align-items: start;
  }

  .form-row-top .form-label {
    padding-top: 12px;
  }
}



a.service-item {
  display: block;
  color: inherit;
}

#works-teaser { padding-bottom: 0; }

@media (min-width: 768px) {
  .page-hero { min-height: min(48vh, 420px); padding-bottom: 72px; }
}


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

  .splash { display: none; }

  .hero-img { transform: none !important; transition: none; }

  .split-chars .char,
  .line,
  [data-fade] {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .marquee-track { animation: none; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .giant-en { transform: none !important; }

  .scroll-hint-bar::after { animation: none; }
}


/* ---------- Post-audit: nav / footer / service list / focus ---------- */
.nav-desktop a::after {
  left: 10%;
  right: 10%;
}

.nav-desktop a.is-active {
  color: var(--accent);
}

body.is-home:not(.is-scrolled-ready) .nav-desktop a.is-active {
  color: var(--color-accent);
}

.btn-ghost {
  border-radius: var(--radius-btn);
  font-variant-numeric: tabular-nums;
}

.btn-on-dark {
  border-radius: var(--radius-btn);
  backdrop-filter: none;
}

.menu-btn {
  border-radius: var(--radius-btn);
  backdrop-filter: none;
}

.ba-labels span {
  border-radius: var(--radius-btn);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: none;
}

.ba-handle-knob {
  background: var(--color-surface);
  backdrop-filter: none;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  border-bottom: 1px solid var(--line);
}

.service-list a {
  display: grid;
  gap: 6px;
  padding: 22px 4px;
  transition: color var(--dur-fast) ease, padding-left var(--dur-base) var(--ease-out);
}

.service-list a:hover,
.service-list a:focus-visible {
  color: var(--accent);
  padding-left: 8px;
}

.service-list strong {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.service-list span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.section-more {
  text-align: left;
}

.footer-close {
  display: grid;
  gap: 28px;
  padding-bottom: 36px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand p {
  margin: 0;
  line-height: 1.8;
}

.footer-brand a {
  color: var(--color-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 40rem;
}

.footer-inline a {
  font-size: 0.88rem;
  opacity: 0.78;
  white-space: nowrap;
  transition: opacity var(--dur-fast) ease, color var(--dur-fast) ease;
}

.footer-inline a:hover,
.footer-inline a:focus-visible {
  opacity: 1;
  color: var(--color-on-dark);
}

.footer-meta {
  display: none;
}

.about-layout-solo {
  max-width: 40rem;
}

.section-cta-band {
  padding: 64px 0 72px;
}

.cta-band h2 {
  max-width: 16em;
}

.work-info .work-meta:first-child {
  color: var(--color-accent);
}

/* Focus rings — instant, never animated */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.menu-btn:focus-visible,
.acc-trigger:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.btn-accent:focus-visible {
  outline-color: var(--color-accent-ink);
  box-shadow: 0 0 0 3px var(--color-dark);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: none;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .footer-close {
    grid-template-columns: 1.2fr 1.4fr auto;
    align-items: end;
    gap: 32px;
  }
}

/* Keep giant-en for contact page title only — muted */
.contact-giant {
  -webkit-text-stroke: 1.5px rgba(196, 90, 44, 0.28);
}


/* =========================================================
 * Polish pass (2026-11-26) — 公開前チェックの指摘を反映
 * ========================================================= */

/* Intro splash: 2回目以降は出さない */
body.no-splash .splash { display: none; }

/* Header: ロゴに上下の余白を持たせる */
.logo img { width: clamp(124px, 11vw, 146px); }
.logo { display: inline-flex; align-items: center; }

/* Hero: 引き伸ばしで粗く見えないよう高さを抑え、暗さを軽く */
.hero-frame { min-height: min(80svh, 700px); }
.hero-img { filter: none; object-position: center 35%; }
.hero-shade {
  background:
    linear-gradient(100deg, rgba(8, 8, 10, 0.70) 0%, rgba(8, 8, 10, 0.30) 55%, rgba(8, 8, 10, 0.10) 100%),
    linear-gradient(0deg, rgba(8, 8, 10, 0.55) 0%, transparent 45%);
}

/* Page heads: 全ページ同じ濃色帯 */
.page-hero-dark {
  min-height: 0;
  padding: calc(var(--header-h) + 56px) 0 56px;
  background: var(--color-dark);
  border-bottom: 3px solid var(--color-accent);
}
.page-hero-dark .hero-en { color: var(--color-accent); opacity: 1; }
.page-hero-copy h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero-sub { font-size: 1rem; line-height: 1.8; opacity: 0.82; max-width: 40em; }
@media (min-width: 768px) {
  .page-hero.page-hero-dark { min-height: 0; padding-bottom: 64px; }
}
.biz-page,
.contact-page,
.legal-page-after-hero { padding-top: 72px; }

/* Type scale: 小さすぎる文字を底上げ（最小 13px） */
.tag,
.work-badge,
.contact-label,
.area-card-label,
.req,
.footer-col-en,
.cta-band .eyebrow { font-size: 0.8125rem; }
.work-meta,
.copy,
.form-hint,
.ba-labels span,
.ba-side-by-side figcaption,
.staff-placeholder span { font-size: 0.8125rem; }
.hero-en { font-size: 0.8125rem; }
.acc-en,
.work-meta-list span,
.flow-step-num { font-size: 0.875rem; }
.contact-note,
.staff-note,
.footer-inline a,
.footer-links a,
.legal-date,
.blog-date,
.work-gallery-grid figcaption { font-size: 0.9375rem; }
.lead,
.contact-intro p,
.acc-cols p,
.service-list span { font-size: 1rem; }
.about-table dt { font-size: 0.9375rem; }

/* Section lead: スマホでは左寄せ（右寄せの折り返しが字下げに見えるため） */
@media (max-width: 767px) {
  .lead { text-align: left; }
  .lead br { display: none; }
}

/* Accordion: 影つきカード → 線で区切る（トップの業務一覧と同じ見た目） */
.accordion { gap: 0; border-top: 1px solid var(--line); }
.acc-item,
.acc-item:hover {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}
.acc-trigger { padding-left: 4px; padding-right: 4px; }
.acc-panel-inner > * { border-top: 0; padding-left: 4px; padding-right: 4px; }

/* Buttons: すべてオレンジ基調・角丸10pxに統一 */
.btn-submit { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-submit:hover { background: var(--color-accent-hover); filter: none; box-shadow: none; }
.line-add-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  background: #06c755; /* LINE 公式の緑はそのまま */
  color: var(--color-on-dark);
}

/* Works cards: 写真の上の文字を読みやすく */
.work-info {
  padding: 96px 20px 18px;
  background: linear-gradient(0deg, rgba(8, 8, 10, 0.9) 0%, rgba(8, 8, 10, 0.6) 45%, transparent 100%);
}
.work-info .work-meta:first-child { color: var(--color-on-dark); opacity: 0.9; }
.work-info h3 { font-size: 1.12rem; }

/* About: PC で細すぎる列を広げる */
.about-layout.about-layout-solo { max-width: 860px; margin-inline: auto; grid-template-columns: 1fr; }
.about-lead { max-width: none; }
@media (min-width: 768px) {
  .about-table > div { grid-template-columns: 11rem 1fr; padding: 20px 0; }
}

/* Contact: フォームの幅をほかと揃える */
.contact-page-head { margin-bottom: 40px; }

/* About: LINE 友だち追加 */
.about-table dd.about-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.about-line img { width: 120px; height: 120px; border-radius: 6px; background: #fff; }
.about-line span { line-height: 1.8; }
.about-line .line-add-btn { margin-top: 8px; text-decoration: none; }

/* Mobile: 画面下の LINE 相談ボタン */
.sticky-line { display: none; }
@media (max-width: 767px) {
  .sticky-line {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: var(--radius-btn);
    background: #06c755; /* LINE 公式の緑 */
    color: var(--color-on-dark);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 18px rgba(8, 8, 10, 0.22);
  }
  body.has-sticky-line { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.menu-open .sticky-line { display: none; }
}

/* Section head: 見出しの真下にひとこと（ポツンと浮かないよう、見出しと組にする） */
.section-head .head-row {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.section-head .lead {
  margin: 0;
  max-width: 30em;
  text-align: left;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--color-ink-2);
}
@media (min-width: 900px) {
  .section-head .lead br { display: inline; }
}
