:root {
  --base-bg: #0f1115;
  --text-main: #f5f7fa;
  --text-dark: #1c1f24;
  --section-bg: #f0f2f5;
  --accent: #ab3568;
  --accent-rgb: 171, 53, 104;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text-main);
  background: var(--base-bg);
  scroll-behavior: smooth;
}

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

.container {
  width: 92%;
  max-width: 1080px;
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(8, 10, 14, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  display: block;
  height: 40px;
  width: auto;
}

.gnav {
  display: flex;
  gap: 18px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.gnav a {
  opacity: 0.85;
}

.gnav a:hover {
  opacity: 1;
  color: var(--accent);
}

.hero,
.mid-visual {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 20px 80px;
  background-image:
    linear-gradient(rgba(8, 12, 18, 0.5), rgba(8, 12, 18, 0.7)),
    url("https://images.unsplash.com/photo-1646872315584-0c0a0f97ee3f?q=80&w=3132&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}

.overlay {
  position: relative;
  z-index: 2;
  text-align: center;
}

.overlay .sub {
  margin: 0 0 14px;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  opacity: 0.95;
}

.overlay h1 {
  margin: 0;
  line-height: 1.45;
  font-size: 1.8rem;
}

.hero-float-words {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-float {
  position: absolute;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 5rem;
  color: rgba(245, 247, 250, 0.3);
  text-shadow:
    0 0 20px rgba(var(--accent-rgb), 0.22),
    0 2px 20px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
}

.hero-float--a {
  top: 15%;
  left: 5%;

  font-size: 5rem;
  /* max-width: 290px; */
  text-align: left;
  animation: heroFloatSoftA 22s ease-in-out infinite;
}

.hero-float--b {
  top: 42%;
  right: 5%;
  left: auto;
  max-width: 330px;
  text-align: right;
  animation: heroFloatSoftB 26s ease-in-out -5s infinite;
}

.hero-float--c {
  bottom: 13%;
  left: 6%;
  top: auto;
  max-width: 350px;
  text-align: left;
  animation: heroFloatSoftC 24s ease-in-out -9s infinite;
}

@keyframes heroFloatSoftA {
  0%,
  100% {
    opacity: 0.62;
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    opacity: 0.82;
    transform: translate(18px, 24px) rotate(2.2deg);
  }
  66% {
    opacity: 0.68;
    transform: translate(-14px, 14px) rotate(-1.8deg);
  }
}

@keyframes heroFloatSoftB {
  0%,
  100% {
    opacity: 0.58;
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    opacity: 0.78;
    transform: translate(-24px, -18px) rotate(-2.4deg);
  }
}

@keyframes heroFloatSoftC {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(0, 0) rotate(0deg);
  }
  40% {
    opacity: 0.84;
    transform: translate(20px, -14px) rotate(1.9deg);
  }
  75% {
    opacity: 0.65;
    transform: translate(-12px, 20px) rotate(-2.1deg);
  }
}

.btn {
  display: inline-block;
  margin-top: 26px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: 0.25s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
}

.content-section {
  padding: 88px 0;
  background: #ffffff;
  color: var(--text-dark);
}

.content-section.alt {
  background: var(--section-bg);
}

.content-section h2 {
  margin: 0 0 20px;
  font-size: 2rem;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.content-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 2px;
  background: var(--accent);
}

.content-section p {
  margin: 0 0 10px;
  line-height: 1.9;
}

.works-lead {
  margin-bottom: 28px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-card {
  padding: 14px 14px 18px;
  background: #ffffff;
  border: 1px solid rgba(28, 31, 36, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(9, 16, 28, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.work-image-wrap {
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dde3ea;
}

.work-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.work-card h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  line-height: 1.7;
  font-weight: 600;
}

.work-catch {
  margin: 10px 0 8px;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(28, 31, 36, 0.78);
  font-weight: 600;
}

.work-subtitle {
  position: relative;
  display: inline-block;
  margin: 0 0 14px;
  padding: 0 0 0 13px;
  color: #5a6773;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.7;
  text-transform: uppercase;
}

.work-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 1px;
  height: calc(100% - 2px);
  background: linear-gradient(to bottom, rgba(var(--accent-rgb), 0.95), rgba(var(--accent-rgb), 0.15));
}

.work-card p {
  margin: 10px 0 0;
  color: rgba(28, 31, 36, 0.88);
  font-size: 0.88rem;
  line-height: 1.5;
}

.work-card .work-subtitle {
  color: #5a6773;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(9, 16, 28, 0.14);
  border-color: rgba(var(--accent-rgb), 0.55);
}

.work-card:hover .work-image-wrap img {
  transform: scale(1.04);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .work-card {
    transition: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-float-words {
    position: relative;
    inset: auto;
    overflow: visible;
    margin-top: 22px;
    padding: 0 16px;
    max-width: 520px;
    pointer-events: auto;
  }

  .hero-float {
    position: static !important;
    display: block;
    max-width: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
    opacity: 0.88 !important;
    transform: none !important;
    animation: none !important;
    will-change: auto;
    font-size: 0.8rem !important;
    letter-spacing: 0.14em !important;
    color: rgba(245, 247, 250, 0.92) !important;
    padding: 0.4em 0;
  }

  .hero-float:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 0.55em;
    margin-bottom: 0.55em;
  }
}

.map-wrap {
  margin: 0 0 24px;
  position: relative;
  border: 1px solid rgba(28, 31, 36, 0.15);
  border-radius: 12px;
  overflow: hidden;
  background: #d9dde3;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.map-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: rgba(28, 31, 36, 0.75);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.company-list {
  margin: 28px 0 0;
  border-top: 1px solid rgba(28, 31, 36, 0.2);
}

.company-list dt,
.company-list dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 31, 36, 0.12);
}

.company-list dt {
  font-weight: 700;
}

.company-list dd {
  line-height: 1.8;
}

.mid-visual {
  min-height: 52vh;
}

.visual-works {
  background-image:
    linear-gradient(rgba(14, 16, 22, 0.35), rgba(14, 16, 22, 0.65)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80");
}

.visual-access {
  background-image:
    linear-gradient(rgba(14, 16, 22, 0.35), rgba(14, 16, 22, 0.65)),
    url("https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=1800&q=80");
}

.contact {
  text-align: center;
}

.contact h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact .btn {
  color: var(--text-dark);
  border-color: rgba(28, 31, 36, 0.5);
}

.contact .btn:hover {
  background: rgba(var(--accent-rgb), 0.12);
}

.contact .contact-form,
.contact .wpcf7 {
  max-width: 720px;
  margin: 22px auto 0;
  padding: 28px;
  border: 1px solid rgba(28, 31, 36, 0.12);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(252, 245, 248, 0.92));
  box-shadow: 0 14px 34px rgba(9, 16, 28, 0.08);
  text-align: left;
}

.contact .contact-form label,
.contact .wpcf7 form label {
  display: block;
  margin: 0 0 14px;
  color: rgba(28, 31, 36, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
}

.contact .contact-form label:last-of-type,
.contact .wpcf7 form label:last-of-type {
  margin-bottom: 18px;
}

.contact .contact-form input[type="text"],
.contact .contact-form input[type="email"],
.contact .contact-form textarea,
.contact .wpcf7 input[type="text"],
.contact .wpcf7 input[type="email"],
.contact .wpcf7 textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid rgba(28, 31, 36, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.98);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact .contact-form textarea,
.contact .wpcf7 textarea {
  min-height: 170px;
  resize: vertical;
}

.contact .contact-form input[type="text"]:focus,
.contact .contact-form input[type="email"]:focus,
.contact .contact-form textarea:focus,
.contact .wpcf7 input[type="text"]:focus,
.contact .wpcf7 input[type="email"]:focus,
.contact .wpcf7 textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.95);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
  background: #ffffff;
  outline: none;
}

.contact .contact-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact .contact-form-note {
  margin: 0 0 18px;
  font-size: 0.82rem;
  color: rgba(28, 31, 36, 0.72);
  line-height: 1.7;
}

.contact .wpcf7 + .contact-form-note {
  max-width: 720px;
  margin: -6px auto 0;
  padding: 0 28px 8px;
  text-align: left;
}

.contact .contact-form button[type="submit"],
.contact .wpcf7 input[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  margin: 0 auto;
  border: 1px solid rgba(28, 31, 36, 0.5);
  border-radius: 999px;
  padding: 12px 24px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  background: rgba(var(--accent-rgb), 0.16);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact .contact-form button[type="submit"]:hover,
.contact .wpcf7 input[type="submit"]:hover {
  transform: translateY(-1px);
  background: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 8px 18px rgba(9, 16, 28, 0.12);
}

.contact .contact-form button[type="submit"]:disabled,
.contact .wpcf7 form .wpcf7-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.contact-form-status {
  max-width: 720px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.7;
}

.contact-form-status.is-success {
  color: #1f5f3f;
  background: rgba(46, 125, 50, 0.12);
  border: 1px solid rgba(46, 125, 50, 0.25);
}

.contact-form-status.is-error {
  color: #8b2f2f;
  background: rgba(198, 40, 40, 0.1);
  border: 1px solid rgba(198, 40, 40, 0.25);
}

.contact .wpcf7 .wpcf7-spinner {
  margin-left: 10px;
  vertical-align: middle;
}

.contact .wpcf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 0.78rem;
}

.contact .wpcf7 .wpcf7-response-output {
  margin: 14px 0 0;
  border-radius: 10px;
}

.contact .contact-urgent-note {
  margin-top: 24px;
}

.site-footer {
  padding: 28px 16px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(245, 247, 250, 0.8);
  background: #0a0d12;
}

@media (max-width: 920px) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .gnav {
    flex-wrap: wrap;
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .hero,
  .mid-visual {
    background-attachment: scroll;
  }

  .content-section {
    padding: 72px 0;
  }

  .overlay h1 {
    line-height: 1.6;
  }

  .hero-float {
    font-size: 1.5rem;
    letter-spacing: 0.11em;
  }

  .hero-float--a {
    top: calc(84px + env(safe-area-inset-top, 0px));
    left: 14px;
    max-width: 268px;
  }

  .hero-float--b {
    top: 46%;
    right: 14px;
    max-width: 288px;
  }

  .hero-float--c {
    bottom: 10%;
    left: 14px;
    max-width: 300px;
  }

  .map-wrap iframe {
    height: 320px;
  }

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

  .contact .contact-form,
  .contact .wpcf7 {
    padding: 18px;
    border-radius: 12px;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .overlay h1 {
    font-size: 2.5rem;
  }

  .hero-float {
    font-size: 1.02rem;
  }

  .hero-float--a {
    font-size: 2rem;
    max-width: 320px;
  }

  .hero-float--b {
    font-size: 2rem;
    max-width: 360px;
  }

  .hero-float--c {
    font-size: 2rem;
    max-width: 380px;
  }
}

@media (min-width: 1201px) {
  .overlay h1 {
    font-size: 3.2rem;
  }

  .hero-float {
    font-size: 1.12rem;
    letter-spacing: 0.19em;
  }

  .hero-float--a {
    font-size: 3rem;
    max-width: 360px;
  }

  .hero-float--b {
    font-size: 3rem;
    max-width: 400px;
  }

  .hero-float--c {
    font-size: 3rem;
    max-width: 420px;
  }
}

.grecaptcha-badge { visibility: hidden; }
