:root {
  --white: #ffffff;
  --surface: #fafafa;
  --black: rgb(26, 26, 26);
  --dark: #1f1f1f;
  --gray-600: #666666;
  --gray-400: #999999;
  --header-h: 72px;
  --ease: cubic-bezier(0.37, 0, 0.63, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  color: var(--black);
  background: var(--surface);
  line-height: 1.6;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--black);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

body.home .site-header {
  background: transparent;
  box-shadow: none;
}

body.home .site-header.is-scrolled {
  background: var(--surface);
  backdrop-filter: none;
  box-shadow: none;
}

.site-header.is-scrolled {
  background: var(--surface);
  backdrop-filter: none;
  box-shadow: none;
}

.header-inner {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 49px;
  height: 50px;
  object-fit: contain;
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  transition: opacity 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  opacity: 0.55;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-contact {
  display: none;
  padding: 10px 22px;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 0.85rem;
  transition: background 0.25s, color 0.25s;
}

.btn-contact:hover {
  background: var(--black);
  color: var(--white);
}

.menu-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease),
    top 0.3s var(--ease),
    background 0.3s var(--ease);
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

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

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

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

.mobile-nav-panel {
  background: var(--surface);
  width: min(360px, 100%);
  height: 100%;
  margin-left: auto;
  padding: 32px 28px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.mobile-nav.is-open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-panel li + li {
  margin-top: 18px;
}

.mobile-nav-panel a {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 40px) 0 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 45%, rgba(255, 255, 255, 0.92) 100%),
    url("./images/hero-bg.jpg") center center / cover no-repeat;
}

.hero-layout {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 920px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.hero-copy .hero-en {
  margin: 4px 0 0;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-copy .hero-tagline {
  margin: clamp(16px, 3vw, 28px) 0 0;
  font-size: clamp(1.15rem, 2.8vw, 2rem);
  font-weight: 500;
  line-height: 1.45;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
  min-height: auto;
  padding-bottom: 100px;
}

.hero-panels {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.service-panel {
  position: relative;
  max-width: 100%;
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 32px);
  background: rgba(246, 246, 246, 0.94);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
  border: none;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}

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

.service-panel.is-active {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.service-panel::before {
  display: none;
}

.service-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  object-fit: contain;
}

.service-panel svg.service-icon {
  color: rgb(26, 26, 26);
}

.service-panel p {
  margin: 0;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.75;
  color: #222;
  font-weight: 400;
}

.hero-dragon-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.hero-dragon {
  width: min(78vw, 420px);
  max-height: 70vh;
  object-fit: contain;
  animation: breathe 6s ease-in-out infinite;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.14));
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(80px, 12vw, 140px);
  z-index: 5;
  pointer-events: none;
  line-height: 0;
}

.hero-wave img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: bottom;
}

/* Dark service band */
.service-band {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding: 56px 24px 100px;
  margin-top: -2px;
}

.service-band-login {
  position: absolute;
  top: 24px;
  right: max(24px, calc((100% - 1280px) / 2 + 24px));
  z-index: 2;
}

.service-band-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding-top: 48px;
}

.service-band-top {
  display: none;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s, background 0.2s;
}

.btn-login:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.btn-login svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.service-labels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.service-label {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: clamp(2rem, 7vw, 4.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  opacity: 0.4;
}

.service-label.is-active {
  opacity: 1;
  transform: translateX(6px);
}

.service-label:last-child {
  border-bottom: 0;
}

/* Home CTA bar */
.home-cta-bar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 0 24px 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-cta-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.home-cta-inner p {
  margin: 0;
  font-size: 0.95rem;
}

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

.home-cta-actions a {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.home-cta-actions .primary {
  background: var(--surface);
  color: var(--black);
}

.home-cta-actions .secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.home-cta-actions .secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Site footer */
.site-footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 0 24px 40px;
}

.footer-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.footer-nav a {
  font-size: calc(0.85rem * 1.2);
  color: var(--white);
  opacity: 0.75;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-meta {
  font-size: calc(0.39rem * 1.2);
  font-weight: 400;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: calc(0.39rem * 1.2);
}

.footer-legal a {
  font-weight: 400;
}

.footer-legal a:hover {
  color: var(--white);
}

/* Scroll to top — 右下固定 */
.scroll-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 120;
  width: calc(48px * 1.2 * 1.2);
  height: calc(48px * 1.2 * 1.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(246, 246, 246, 0.94);
  color: rgb(26, 26, 26);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: #fafafa;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.scroll-to-top:focus-visible {
  outline: 2px solid rgb(26, 26, 26);
  outline-offset: 3px;
}

.scroll-to-top-icon {
  display: block;
  flex-shrink: 0;
  width: calc(20px * 1.2 * 1.2);
  height: calc(20px * 1.2 * 1.2);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .btn-contact {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero-visual {
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    gap: 16px;
    min-height: 480px;
    align-items: end;
    padding-bottom: 120px;
  }

  .hero-panels .service-panel:nth-child(1) {
    margin-right: 40px;
    max-width: 420px;
  }

  .hero-panels .service-panel:nth-child(2) {
    margin-left: 20px;
    margin-right: 20px;
    max-width: 440px;
  }

  .hero-panels .service-panel:nth-child(3) {
    margin-left: 40px;
    max-width: 420px;
  }

  .hero-dragon {
    width: min(100%, 520px);
    max-height: none;
  }

  .service-labels {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .service-label {
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding: 24px 16px;
    text-align: center;
  }

  .service-label:last-child {
    border-right: 0;
  }

  .service-label.is-active {
    transform: translateY(-4px);
  }

  .home-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1100px) {
  .hero-visual {
    min-height: 560px;
    padding-bottom: 140px;
  }

  .hero-dragon {
    width: min(100%, 600px);
  }
}

/* Subpages */
body.subpage .site-header {
  background: var(--surface);
  backdrop-filter: none;
  box-shadow: none;
}

.page-hero {
  padding: calc(var(--header-h) + 56px) 24px 48px;
  background: var(--surface);
}

.page-hero-inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.page-eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-lead {
  margin: 20px 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: #333;
}

.page-body {
  background: var(--dark);
  color: var(--white);
  padding: 48px 24px 80px;
}

.page-body-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.section-block + .section-block {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-block h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.06em;
}

.section-block .section-desc {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.anchor-nav a {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  transition: background 0.2s, border-color 0.2s;
}

.anchor-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.detail-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.detail-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
}

.detail-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.detail-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  font-size: 0.95rem;
}

.sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.sub-links a {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.cta-band {
  margin-top: 64px;
  padding: 40px 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.cta-band p {
  margin: 0 0 20px;
  line-height: 1.8;
}

.cta-band .btn-contact {
  display: inline-flex;
  background: var(--surface);
  color: var(--black);
  border-color: var(--white);
}

.cta-band .btn-contact:hover {
  background: transparent;
  color: var(--white);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.85rem;
  transition: background 0.2s, opacity 0.2s;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--surface);
  color: var(--black);
  border-color: var(--white);
}

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

.work-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.work-card.is-hidden {
  display: none;
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgb(26, 26, 26);
}

.work-card-body {
  padding: 20px 22px 24px;
}

.work-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.work-card-subtitle {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.work-card .client {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.work-card .roles {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.company-row {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-row:last-child {
  border-bottom: 0;
}

.company-row dt {
  margin: 0;
  padding: 16px 20px 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.company-row dd {
  margin: 0;
  padding: 0 20px 18px;
  line-height: 1.8;
}

.sns-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.sns-links a {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
}

.sns-links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: imp-reveal-up 0.5s var(--ease) both;
}

@keyframes imp-reveal-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* モバイル — ページ遷移直後にヒーローを即表示（load 待ちで真っ白になるのを防ぐ） */
@media (max-width: 1099px) {
  html.theme-impact body.subpage .page-hero-inner.reveal,
  html.theme-impact body.page-contact .contact-layout.reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  html.theme-impact .reveal.is-visible {
    animation-duration: 0.3s;
  }
}

/* For who / sales sections */
.for-who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.for-who-card {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.for-who-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.for-who-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 28px 0 28px 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.process-step:last-child {
  border-bottom: 0;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 28px;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.process-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
}

.process-note {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

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

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

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.form-field label .req {
  color: #ff8a8a;
  font-size: 0.75rem;
  margin-left: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  font: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field select option {
  color: var(--black);
}

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.form-check input {
  margin-top: 4px;
}

.btn-submit {
  justify-self: start;
  padding: 14px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--black);
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  opacity: 0.88;
}

.contact-aside h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.contact-aside ul {
  margin: 0;
  padding-left: 1.2em;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.faq-item {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.form-notice {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.form-success {
  margin-top: 24px;
  padding: 20px;
  font-size: 0.92rem;
  line-height: 1.75;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

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

.contact-output-lead {
  margin: 0 0 20px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
}

.contact-output-block {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-output-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.contact-output-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-output-value {
  display: block;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-all;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-output-body {
  min-height: 280px;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.75;
  resize: vertical;
}

.contact-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn-submit-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-submit-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.contact-copy-btn {
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  white-space: nowrap;
}

.contact-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.contact-copy-feedback {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.work-card-link {
  display: block;
  color: inherit;
}

.work-card-link .read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  opacity: 0.7;
}

.work-detail-hero img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgb(26, 26, 26);
}

.work-case-gallery {
  margin-top: 32px;
}

.work-case-gallery-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.work-case-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .work-case-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.work-case-gallery-item {
  margin: 0;
}

.work-case-gallery-item img {
  display: block;
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgb(26, 26, 26);
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 32px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.case-meta-row {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.case-meta-row:last-child {
  border-bottom: 0;
}

.case-meta-row dt {
  margin: 0;
  padding: 14px 18px 6px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.case-meta-row dd {
  margin: 0;
  padding: 0 18px 16px;
  line-height: 1.7;
}

.case-block h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.case-block p {
  margin: 0 0 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.case-block ul {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-list span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.back-link:hover {
  color: var(--white);
}

.page-hero .back-link {
  color: var(--gray-600);
}

.page-hero .back-link:hover {
  color: var(--black);
}

.top-sales {
  background: var(--dark);
  color: var(--white);
  padding: 64px 24px;
}

.top-sales-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.top-sales h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.top-sales-lead {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.top-sales-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.top-sales-actions a {
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.top-sales-actions .primary {
  background: var(--surface);
  color: var(--black);
}

.top-sales-actions .secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.top-sales-actions .secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .company-row {
    grid-template-columns: 180px 1fr;
  }

  .company-row dt {
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .company-row dd {
    padding: 20px;
  }

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

  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .case-meta-row {
    grid-template-columns: 160px 1fr;
  }

  .case-meta-row dt {
    padding: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .case-meta-row dd {
    padding: 18px;
  }
}

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

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

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

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

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

/* ===== Custom cursor — 自前矢印 + 後ろに付く顔 ===== */
.cursor-arrow,
.cursor-face-group,
.cursor-eye,
.cursor-mouth {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0;
  /* will-change 常時指定はホバー解除後の残像の原因になりやすいので外す */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cursor-follower,
.cursor-ear {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  color: #fff;
}

/* 先端 (1,1) ＝クリック位置。顔より前面 */
.cursor-arrow {
  z-index: 10002;
  width: 18px;
  height: 20px;
  transform-origin: 1px 1px;
  transition: opacity 0.3s ease;
}

.cursor-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cursor-arrow-fill {
  fill: currentColor;
}

.cursor-arrow-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* 頭＋耳を1枚として合成してから反転（耳の重なりが白くならない） */
.cursor-face-group {
  z-index: 10000;
  width: 0;
  height: 0;
  transition: opacity 0.3s ease;
}

.cursor-follower {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  background: currentColor;
  border-radius: 50%;
}

.cursor-eye,
.cursor-mouth {
  z-index: 10001;
  transition: opacity 0.25s ease, width 0.1s ease, height 0.1s ease,
    margin 0.1s ease, border-width 0.1s ease, border-radius 0.1s ease,
    background-color 0.1s ease;
}

.cursor-eye {
  width: 4px;
  height: 6px;
  margin: -3px 0 0 -2px;
  background: currentColor;
  border: 0 solid currentColor;
  border-radius: 50%;
}

.cursor-mouth {
  width: 11px;
  height: 6px;
  margin: -3px 0 0 -5.5px;
  border: 0 solid currentColor;
  border-bottom-width: 2px;
  border-radius: 0 0 10px 10px;
}

/* クマ耳（時々表示） */
.cursor-ear {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.cursor-cat-ears .cursor-ear {
  opacity: 1;
}

body.cursor-active .cursor-arrow,
body.cursor-active .cursor-face-group,
body.cursor-active .cursor-eye,
body.cursor-active .cursor-mouth {
  opacity: 1;
}

/* 無料相談ホバー：レインボー＋ぉおおおーーー！ */
.cursor-shout {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10003;
  pointer-events: none;
  opacity: 0;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1;
  transform-origin: left bottom;
  /* will-change 常時指定は残像の原因になりやすいので外す */
}

body.cursor-active.cursor-contact-hype .cursor-shout {
  opacity: 1;
  background: linear-gradient(
    90deg,
    #ff0040,
    #ff8a00,
    #ffe600,
    #00e676,
    #00b0ff,
    #d500f9,
    #ff0040
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cursor-shout-pop 0.35s ease-out both, cursor-rainbow-shift 0.55s linear infinite;
}

body.cursor-contact-hype .cursor-face-group {
  mix-blend-mode: normal;
}

body.cursor-contact-hype .cursor-follower {
  background: conic-gradient(
    from 0deg,
    #ff0040,
    #ff8a00,
    #ffe600,
    #00e676,
    #00b0ff,
    #d500f9,
    #ff0040
  );
  animation: cursor-rainbow-hue 0.5s linear infinite;
}

body.cursor-contact-hype .cursor-ear {
  opacity: 0 !important;
}

body.cursor-contact-hype .cursor-eye,
body.cursor-contact-hype .cursor-mouth {
  mix-blend-mode: normal;
  color: rgb(26, 26, 26);
}

/* レインボー顔：縦長めの目を中央寄り、口はアウトラインの O */
body.cursor-contact-hype .cursor-eye {
  width: 3.5px;
  height: 5px;
  margin: -2.5px 0 0 -1.75px;
  background: rgb(26, 26, 26);
  border-radius: 50%;
}

body.cursor-contact-hype .cursor-mouth {
  width: 7.2px;
  height: 7.8px;
  margin: -3.9px 0 0 -3.6px;
  background: transparent;
  border: 1.7px solid rgb(26, 26, 26);
  border-radius: 50%;
}

@keyframes cursor-rainbow-hue {
  to {
    filter: hue-rotate(360deg);
  }
}

@keyframes cursor-rainbow-shift {
  to {
    background-position: 200% 0;
  }
}

@keyframes cursor-shout-pop {
  from {
    opacity: 0;
    filter: blur(2px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* 表情バリエーション（何もない所でクリックすると巡回） */
/* face-1: 真顔（一直線の口・目もまん丸） */
body.cursor-face-1 .cursor-mouth {
  width: 9px;
  height: 0;
  margin: 0 0 0 -4.5px;
  border-bottom-width: 2px;
  border-radius: 0;
}
body.cursor-face-1 .cursor-eye {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
}

/* face-2: しょんぼり（上向きの弧・目が下がる） */
body.cursor-face-2 .cursor-mouth {
  border-bottom-width: 0;
  border-top-width: 2px;
  border-radius: 10px 10px 0 0;
}
body.cursor-face-2 .cursor-eye {
  width: 5px;
  height: 3px;
  margin: -1.5px 0 0 -2.5px;
  border-radius: 60% 60% 40% 40%;
}

/* face-3: 口を開けて笑う（丸い口・目まん丸） */
body.cursor-face-3 .cursor-mouth {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: currentColor;
  border-width: 0;
  border-radius: 50%;
}

/* face-4: ニコッ（目が下向きの弧＝^ ^、口はにっこり） */
body.cursor-face-4 .cursor-eye {
  width: 6px;
  height: 4px;
  margin: -2px 0 0 -3px;
  background: transparent;
  border-top-width: 2px;
  border-radius: 8px 8px 0 0;
}

/* face-5: びっくり（目が大きい・口はO） */
body.cursor-face-5 .cursor-eye {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
}
body.cursor-face-5 .cursor-mouth {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: transparent;
  border-width: 2px;
  border-radius: 50%;
}

/* face-6: ウインク（右目だけ弧、口はにっこり） */
body.cursor-face-6 .cursor-eye--right {
  width: 6px;
  height: 4px;
  margin: -1px 0 0 -3px;
  background: transparent;
  border-top-width: 2px;
  border-radius: 8px 8px 0 0;
}

/* face-7: ジト目（半目・口は一直線） */
body.cursor-face-7 .cursor-eye {
  width: 6px;
  height: 2px;
  margin: -1px 0 0 -3px;
  border-radius: 1px;
}
body.cursor-face-7 .cursor-mouth {
  width: 6px;
  height: 0;
  margin: 0 0 0 -3px;
  border-bottom-width: 2px;
  border-radius: 0;
}

/* face-8: 左ウインク（左目だけ弧、口はにっこり） */
body.cursor-face-8 .cursor-eye--left {
  width: 6px;
  height: 4px;
  margin: -1px 0 0 -3px;
  background: transparent;
  border-top-width: 2px;
  border-radius: 8px 8px 0 0;
}

/* face-9: 上下ひっくり返し（口が上・目が下） */
body.cursor-face-9 .cursor-mouth {
  border-bottom-width: 0;
  border-top-width: 2px;
  border-radius: 10px 10px 0 0;
}

/* クリック中は口を「O」の形に（表情に関わらず優先） */
body.cursor-down .cursor-mouth {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: transparent;
  border-width: 2px;
  border-radius: 50%;
}

/* ohhh! 時は表情・クリック状態より優先して必ず O 口 */
body.cursor-contact-hype .cursor-mouth,
body.cursor-contact-hype.cursor-down .cursor-mouth {
  width: 7.2px !important;
  height: 7.8px !important;
  margin: -3.9px 0 0 -3.6px !important;
  background: transparent !important;
  border: 1.7px solid rgb(26, 26, 26) !important;
  border-radius: 50% !important;
  border-top-width: 1.7px !important;
  border-bottom-width: 1.7px !important;
  border-left-width: 1.7px !important;
  border-right-width: 1.7px !important;
}

body.cursor-contact-hype .cursor-eye,
body.cursor-contact-hype.cursor-down .cursor-eye {
  width: 3.5px !important;
  height: 5px !important;
  margin: -2.5px 0 0 -1.75px !important;
  background: rgb(26, 26, 26) !important;
  border-width: 0 !important;
  border-radius: 50% !important;
}

body.has-custom-cursor,
body.has-custom-cursor * {
  cursor: none;
}

body.has-custom-cursor :is(input, textarea, [contenteditable="true"]) {
  cursor: text;
}

@media (hover: none), (pointer: coarse) {
  .cursor-arrow,
  .cursor-face-group,
  .cursor-eye,
  .cursor-mouth,
  .cursor-shout {
    display: none;
  }
}
