:root {
  --black: #111;
  --ink: #1f1f1f;
  --dark: #282828;
  --line: rgba(255, 255, 255, 0.35);
  --muted: #777;
  --light-line: #cfcfcf;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0;
}

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

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 38px;
  color: var(--white);
}

.logo {
  display: inline-flex;
  align-items: center;
  width: 200px;
}

.logo img {
  width: 100%;
  height: auto;
}

.contact-pill {
  min-width: 120px;
  padding: 13px 24px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(98, 98, 98, 0.88);
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  color: #fff;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.contact-pill:hover {
  background: #fff;
  color: #111;
}

.hero {
  min-height: 900px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12) 54%, rgba(0, 0, 0, 0.2)),
    url("assets/main.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.hero-sunbeams {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 74% 39%, rgba(255, 255, 255, 0.74) 0 0.75%, rgba(255, 255, 255, 0.34) 2.6%, rgba(255, 255, 255, 0.11) 6.5%, rgba(255, 255, 255, 0) 13%);
  mix-blend-mode: screen;
  opacity: 0;
  filter: blur(3px);
  transform-origin: 74% 39%;
  animation: hero-flash-point 4.8s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 64px 72px 0;
}

@keyframes hero-flash-point {
  0%,
  60%,
  100% {
    opacity: 0;
    transform: scale(0.82);
  }

  66% {
    opacity: 0.68;
    transform: scale(1);
  }

  72% {
    opacity: 0.12;
    transform: scale(1.18);
  }
}

.hero-title {
  margin: 0 0 34px;
  font-family: "Lato", sans-serif;
  font-size: clamp(56px, 7vw, 98px);
  font-weight: 300;
  line-height: 1.28;
}

.hero-title span {
  display: block;
  opacity: 0;
  transform: translateX(-80px);
  filter: blur(8px);
  animation: title-flow-in 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title span:nth-child(2) {
  animation-delay: 0.18s;
}

@keyframes title-flow-in {
  0% {
    opacity: 0;
    transform: translateX(-80px);
    filter: blur(8px);
  }

  65% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

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

  .hero-title span {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

.hero p {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 2.05;
  letter-spacing: 0.24em;
}

.intro {
  min-height: 735px;
  display: grid;
  place-items: center;
  padding: 110px 24px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(235, 235, 235, 0.18), rgba(235, 235, 235, 0.18)),
    url("assets/shadow_bg.png") center / cover fixed no-repeat;
}

.intro__bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: screen;
}

.intro__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #333;
  font-size: 20px;
  font-weight: 400;
  line-height: 2.35;
  letter-spacing: 0.24em;
}

.intro__inner p {
  margin: 0 0 23px;
}

.services {
  padding: 112px 80px 100px;
  color: var(--white);
  background: var(--dark);
}

.section-head {
  position: relative;
  width: min(100%, 1280px);
  margin: 0 auto 58px;
  padding-bottom: 1px;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--light-line);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-head--dark {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-head--dark::after {
  background: var(--line);
}

.section-head.is-line-visible::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .section-head::after {
    transform: scaleX(1);
    transition: none;
  }

  .company-list div {
    opacity: 1;
    transform: none;
    transition: none;
  }

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

  .contact::before,
  .contact::after {
    animation: none;
  }
}

.section-head h2 {
  margin: 0 0 14px;
  font-family: "Lato", sans-serif;
  font-size: clamp(54px, 7vw, 78px);
  font-weight: 300;
  line-height: 1;
  color: #555;
}

.section-head--dark h2 {
  color: #ddd;
}

.section-head p {
  margin: 0 0 20px;
  color: #d9d9d9;
  font-size: 16px;
}

.service-grid {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  grid-column: span 2;
}

.service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.service-card {
  container-type: inline-size;
  min-height: 360px;
  padding: 42px 38px 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js-enabled .services:not(.is-services-visible) .service-card {
  opacity: 0;
  transform: translateY(92px);
}

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

.service-card:nth-child(1) {
  transition-delay: 0s;
}

.service-card:nth-child(2) {
  transition-delay: 0.14s;
}

.service-card:nth-child(3) {
  transition-delay: 0.28s;
}

.service-card:nth-child(4) {
  transition-delay: 0.42s;
}

.service-card:nth-child(5) {
  transition-delay: 0.56s;
}

.service-card__icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 28px;
}

.service-card h3 {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

.service-card__lead {
  margin: 9px 0 30px;
  padding-bottom: 20px;
  position: relative;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

.service-card__lead::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58px;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
}

.service-card p:last-child {
  margin: 0;
  color: #d7d7d7;
  font-size: 16px;
  font-weight: 400;
  line-height: 2.05;
}

.company {
  position: relative;
  overflow: hidden;
  padding: 570px 80px 185px;
  background: #fff;
}

.ghost-text {
  position: absolute;
  top: 195px;
  left: -18vw;
  width: 150vw;
  color: rgba(0, 0, 0, 0.045);
  font-family: "Lato", sans-serif;
  font-size: clamp(88px, 13vw, 205px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transform: rotate(-4deg);
  transform-origin: left center;
}

.ghost-text__track {
  display: flex;
  gap: clamp(48px, 6vw, 96px);
  width: max-content;
  animation: ghost-diagonal-scroll 34s linear infinite;
  will-change: transform;
}

.ghost-text__track span {
  display: block;
}

@keyframes ghost-diagonal-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(calc(-50% - clamp(24px, 3vw, 48px)), 0, 0);
  }
}

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

  .service-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.company .section-head {
  margin-bottom: 90px;
}

.company-profile {
  width: min(100%, 1280px);
  margin: 0 auto 95px;
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.company-photo {
  overflow: hidden;
}

.company-photo__image {
  width: 100%;
  height: 640px;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1);
  transform: translate3d(0, 0, 0) scale(1.2);
  will-change: transform;
}

.company-list {
  margin: 0;
}

.company-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 45px;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid #dedede;
  color: #333;
  font-size: 16px;
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js-enabled .company-list:not(.is-company-list-visible) div {
  opacity: 0;
  transform: translateY(72px);
}

.company-list.is-company-list-visible div {
  opacity: 1;
  transform: translateY(0);
}

.company-list div:nth-child(1) {
  transition-delay: 0s;
}

.company-list div:nth-child(2) {
  transition-delay: 0.1s;
}

.company-list div:nth-child(3) {
  transition-delay: 0.2s;
}

.company-list div:nth-child(4) {
  transition-delay: 0.3s;
}

.company-list div:nth-child(5) {
  transition-delay: 0.4s;
}

.company-list div:nth-child(6) {
  transition-delay: 0.5s;
}

.company-list div:nth-child(7) {
  transition-delay: 0.6s;
}

.company-list dt {
  width: fit-content;
  min-width: 76px;
  padding: 6px 0.85em;
  border: 1px solid #aaa;
  border-radius: 999px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.company-list dd {
  margin: 0;
  font-weight: 400;
}

.clients {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 64px 64px 66px;
  border-radius: 20px;
  background: #f5f5f5;
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.16);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js-enabled .clients:not(.is-clients-visible) {
  opacity: 0;
  transform: translateY(84px);
}

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

.clients h3 {
  margin: 0 0 31px;
  padding-bottom: 26px;
  border-bottom: 2px solid #a7a7a7;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.clients ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 31px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clients li {
  color: #202020;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  white-space: nowrap;
}

.contact {
  position: relative;
  min-height: 535px;
  padding: 76px 80px 35px;
  color: #fff;
  background: #000;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("assets/sunshine.png") center top / cover no-repeat;
  opacity: 0.8;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.1) 54%, rgba(0, 0, 0, 0.42)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.2));
}

@keyframes contact-light-sweep {
  0% {
    transform: translate3d(-8%, -3%, 0) scale(1.08);
    opacity: 0.72;
  }

  100% {
    transform: translate3d(7%, 1%, 0) scale(1.14);
    opacity: 0.95;
  }
}

@keyframes contact-light-drift {
  0% {
    transform: translate3d(-6%, -1%, 0) rotate(0.5deg);
    opacity: 0.62;
  }

  100% {
    transform: translate3d(8%, 2%, 0) rotate(2deg);
    opacity: 0.88;
  }
}

.contact__inner,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.contact h2 {
  margin: 0 0 26px;
  font-family: "Lato", sans-serif;
  font-size: clamp(56px, 8vw, 86px);
  font-weight: 300;
  line-height: 1;
}

.contact p {
  margin: 0 0 25px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 2;
  font-weight: 400;
}

.mail-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 22px;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.mail-link:hover {
  transform: translateX(14px);
}

.mail-link::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 42px;
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg width='78' height='44' viewBox='0 0 78 44' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 22H74M54 2L74 22L54 42' stroke='white' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
}

.contact-privacy-link {
  display: table;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  transition: color 0.25s ease;
}

.contact-privacy-link:hover {
  color: rgba(255, 255, 255, 0.62);
}

.page-top {
  position: absolute;
  z-index: 2;
  top: 82px;
  right: max(80px, calc((100vw - 1280px) / 2));
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #fff;
  --page-top-button-width: 54px;
  --page-top-button-height: 80px;
  --page-top-arrow-width: 24px;
  --page-top-arrow-height: 36px;
}

.page-top::before,
.page-top::after {
  content: "";
  display: block;
  flex: 0 0 auto;
}

.page-top::before {
  position: absolute;
  top: 50%;
  right: calc((var(--page-top-button-width) - var(--page-top-arrow-width)) / 2);
  width: var(--page-top-arrow-width);
  height: var(--page-top-arrow-height);
  z-index: 1;
  background-color: #fff;
  mask: url("data:image/svg+xml,%3Csvg width='28' height='42' viewBox='0 0 28 42' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 41V2M2 14L14 2L26 14' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='28' height='42' viewBox='0 0 28 42' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 41V2M2 14L14 2L26 14' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(-50%);
  transition: background-color 0.35s ease, transform 0.35s ease;
}

.page-top:hover::before {
  background-color: #111;
  transform: translateY(calc(-50% - 9px));
}

.page-top::after {
  width: var(--page-top-button-width);
  height: var(--page-top-button-height);
  border: 2px solid #fff;
  border-radius: 999px;
  background-color: transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.page-top:hover::after {
  border-color: #111;
  background-color: #fff;
}

.site-footer {
  position: absolute;
  left: max(80px, calc((100vw - 1280px) / 2));
  right: max(80px, calc((100vw - 1280px) / 2));
  bottom: 36px;
  width: auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.footer-logo {
  width: 200px;
  height: auto;
}

.site-footer small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.form-page {
  background: #fff;
  color: #262626;
  overflow-x: hidden;
}

.form-page main {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.form-hero::before {
  content: none;
}

.form-hero::before {
  content: "";
  position: absolute;
  top: -350px;
  right: -52px;
  z-index: 0;
  width: min(62vw, 860px);
  aspect-ratio: 1;
  background: url("assets/ellipse.png") center / contain no-repeat;
  opacity: 0.3;
  filter: blur(18px);
  animation: form-ellipse-float 7.5s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}

.site-header--form {
  position: relative;
  min-height: 88px;
  padding: 22px 40px;
  background: #000;
}

.form-hero {
  position: relative;
  z-index: 1;
  min-height: 455px;
  padding: 120px 80px 72px;
  background: transparent;
  overflow: hidden;
}

@keyframes form-ellipse-float {
  0% {
    transform: translate3d(0, -12px, 0);
  }

  100% {
    transform: translate3d(0, 18px, 0);
  }
}

.form-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.form-hero h1 {
  margin: 0 0 18px;
  font-family: "Lato", sans-serif;
  font-size: clamp(72px, 7vw, 104px);
  font-weight: 300;
  line-height: 1;
  color: #282828;
}

.form-hero p {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.8;
}

.form-section {
  position: relative;
  z-index: 1;
  padding: 0 80px 190px;
}

.form-section::before {
  content: "";
  display: block;
  width: min(100%, 1280px);
  margin: 0 auto 150px;
  border-top: 2px solid #222;
}

.wpcf7 .form-section::before {
  content: none;
}

.contact-form {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.form-section > .wpcf7,
.wpcf7 .contact-form {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.form-section > .wpcf7 > form:not(.contact-form) {
  width: 100%;
}

.wpcf7 form > main,
.wpcf7 form > main > .form-section {
  display: contents;
}

.form-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 30px;
}

.form-row > p {
  display: contents;
  margin: 0;
}

.form-row br {
  display: none;
}

.form-row label {
  color: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.form-row label > span:not(.wpcf7-form-control-wrap) {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 6px 2px;
  border: 1px solid #ff7181;
  border-radius: 4px;
  color: #ff6375;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  vertical-align: 1px;
}

.form-row .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  min-width: 0;
}

.form-row label .wpcf7-form-control-wrap {
  margin-top: 10px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-row input {
  height: 60px;
  padding: 12px 18px;
}

.form-row textarea {
  min-height: 125px;
  padding: 16px 18px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #777;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.form-row--short input {
  max-width: 420px;
}

.form-row--short .wpcf7-form-control-wrap {
  max-width: 420px;
}

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

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

.form-policy {
  margin: 38px 0 80px;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.form-policy a {
  display: inline-block;
  border-bottom: 1px solid #222;
  line-height: 1.25;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.form-policy a:hover {
  color: #777;
  border-color: #777;
}

.form-submit {
  display: block;
  width: min(100%, 300px);
  height: 58px;
  margin: 0 auto;
  border: 1px solid #222;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.wpcf7 .form-submit {
  padding: 0 24px;
}

.form-submit:hover {
  background: #222;
  color: #fff;
}

.wpcf7-spinner {
  display: block;
  margin: 18px auto 0;
}

.wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #ff6375;
  font-size: 13px;
  line-height: 1.5;
}

.wpcf7-response-output {
  width: min(100%, 1280px);
  margin: 32px auto 0 !important;
  padding: 16px 18px !important;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.7;
}

.form-footer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: auto;
  min-height: 180px;
  margin: 0;
  padding: 44px max(80px, calc((100vw - 1280px) / 2)) 46px;
  border-top: 0;
  background: #000;
  transform: none;
}

.form-footer::before {
  content: "";
  position: absolute;
  left: max(80px, calc((100vw - 1280px) / 2));
  right: max(80px, calc((100vw - 1280px) / 2));
  top: 44px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.form-footer .footer-logo,
.form-footer small {
  margin-top: 54px;
}

.privacy-section {
  position: relative;
  z-index: 1;
  padding: 0 80px 220px;
}

.privacy-content {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding-top: 126px;
  border-top: 2px solid #222;
}

.privacy-content h2 {
  margin: 0;
  padding: 0 0 30px;
  border-bottom: 1px solid #d5d5d5;
  color: #222;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.privacy-list {
  margin: 0;
}

.privacy-list div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 56px;
  padding: 30px 0;
  border-bottom: 1px solid #d5d5d5;
}

.privacy-list dt {
  color: #222;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.privacy-list dd {
  margin: 0;
  color: #2c2c2c;
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
}

.privacy-list p {
  margin: 0;
}

.privacy-list p + p,
.privacy-list p + ul {
  margin-top: 12px;
}

.privacy-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-list li::before {
  content: "・";
}

.privacy-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 94px;
}

.privacy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  min-height: 44px;
  border: 1px solid #222;
  border-radius: 999px;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.privacy-button--light,
.privacy-button--dark {
  background: #fff;
  color: #222;
}

.privacy-button--light:hover,
.privacy-button--dark:hover {
  background: #222;
  color: #fff;
}

.thanks-section {
  position: relative;
  z-index: 1;
  padding: 0 80px 220px;
}

.confirm-section {
  position: relative;
  z-index: 1;
  padding: 0 80px 220px;
}

.thanks-content {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding-top: 126px;
  border-top: 2px solid #222;
  text-align: center;
}

.confirm-content {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding-top: 126px;
  border-top: 2px solid #222;
}

.confirm-content h2 {
  margin: 0 0 44px;
  color: #222;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.thanks-content h2 {
  margin: 0 0 28px;
  color: #222;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.thanks-content p {
  margin: 0;
  color: #2c2c2c;
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
}

.thanks-button {
  margin-top: 64px;
}

.confirm-list {
  margin: 0;
  border-top: 1px solid #d5d5d5;
}

.confirm-list div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 56px;
  padding: 26px 0;
  border-bottom: 1px solid #d5d5d5;
}

.confirm-list dt {
  color: #222;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

.confirm-list dd {
  min-height: 1.8em;
  margin: 0;
  color: #2c2c2c;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 76px;
}

.confirm-actions .privacy-button {
  cursor: pointer;
}

@media (max-width: 960px) {
  .site-header {
    padding: 20px 24px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-sunbeams {
    background: radial-gradient(circle at 112% 36%, rgba(255, 255, 255, 0.68) 0 5%, rgba(255, 255, 255, 0.28) 14%, rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0) 58%);
    filter: blur(8px);
    transform-origin: 112% 36%;
  }

  .hero__content {
    padding: 48px 32px 0;
  }

  .intro {
    min-height: 520px;
  }

  .services,
  .company,
  .contact {
    padding-left: 28px;
    padding-right: 28px;
  }

  .section-head--dark {
    display: block;
  }

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

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }

  .company {
    padding-top: 370px;
  }

  .ghost-text {
    top: 170px;
  }

  .company-profile {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .company-photo img {
    height: 430px;
  }

  .clients {
    padding: 42px 32px;
  }

  .clients h3 {
    margin-bottom: 26px;
    padding-bottom: 20px;
  }

  .clients li {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .logo {
    width: 160px;
  }

  .contact-pill {
    min-width: 100px;
    padding: 11px 20px 12px;
  }

  .hero {
    min-height: 610px;
    background-size: auto, auto 100%;
    background-position: center center, 58% center;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero p {
    font-size: 18px;
    letter-spacing: 0.12em;
  }

  .intro {
    padding: 80px 22px;
  }

  .intro__inner {
    font-size: 18px;
    letter-spacing: 0.12em;
  }

  .services {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .section-head h2 {
    font-size: 52px;
  }

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

  .service-card {
    min-height: 0;
    padding: 32px 28px;
  }

  .company {
    padding-top: 340px;
    padding-bottom: 100px;
  }

  .ghost-text {
    top: 118px;
  }

  .company .section-head {
    margin-bottom: 42px;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0;
  }

  .company-list dt {
    width: fit-content;
    min-width: 76px;
  }

  .company-photo img {
    height: 310px;
  }

  .clients h3 {
    font-size: 22px;
  }

  .clients li {
    font-size: 16px;
  }

  .contact {
    min-height: 500px;
    padding-top: 62px;
  }

  .page-top {
    top: 64px;
    right: 28px;
  }

  .page-top::after {
    width: var(--page-top-button-width);
    height: var(--page-top-button-height);
  }

  .page-top {
    --page-top-button-width: 46px;
    --page-top-button-height: 68px;
    --page-top-arrow-width: 20px;
    --page-top-arrow-height: 30px;
  }

  .mail-link {
    font-size: 18px;
  }

  .site-footer {
    left: 28px;
    right: 28px;
  }
}

@media (max-width: 500px) {
  .contact {
    min-height: 620px;
  }

  .page-top {
    top: auto;
    right: 28px;
    bottom: 150px;
  }
}

@media (max-width: 960px) {
  .site-header--form {
    padding: 20px 28px;
  }

  .form-hero {
    min-height: 380px;
    padding: 96px 28px 56px;
  }

  .form-hero::before {
    top: -245px;
    right: -180px;
    width: 640px;
  }

  .form-section {
    padding: 0 28px 130px;
  }

  .privacy-section {
    padding: 0 28px 160px;
  }

  .thanks-section {
    padding: 0 28px 160px;
  }

  .confirm-section {
    padding: 0 28px 160px;
  }

  .privacy-content {
    padding-top: 96px;
  }

  .thanks-content {
    padding-top: 96px;
  }

  .confirm-content {
    padding-top: 96px;
  }

  .form-section::before {
    margin-bottom: 96px;
  }

  .form-row {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 32px;
  }

  .form-footer {
    left: auto;
    right: auto;
    bottom: auto;
    padding-right: 28px;
    padding-left: 28px;
  }

  .form-footer::before {
    left: 28px;
    right: 28px;
  }
}

@media (max-width: 640px) {
  .site-header--form {
    min-height: 72px;
    padding: 18px 20px;
  }

  .site-header--form .logo img {
    width: 180px;
  }

  .site-header--form .contact-pill {
    min-width: 92px;
    padding: 10px 20px 11px;
    font-size: 14px;
  }

  .form-hero {
    min-height: 300px;
    padding: 74px 20px 48px;
  }

  .form-hero::before {
    top: -215px;
    right: -260px;
    width: 520px;
  }

  .form-hero h1 {
    font-size: clamp(54px, 16vw, 64px);
  }

  .form-hero p {
    font-size: 16px;
  }

  .form-section::before {
    margin-bottom: 72px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 28px;
  }

  .form-row label {
    font-size: 15px;
  }

  .form-row input,
  .form-row textarea {
    min-width: 0;
    max-width: 100%;
  }

  .form-row--short input {
    max-width: none;
  }

  .form-row--short .wpcf7-form-control-wrap {
    max-width: none;
  }

  .form-row--textarea label {
    padding-top: 0;
  }

  .form-policy {
    margin: 34px 0 58px;
    font-size: 15px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .privacy-section {
    padding-bottom: 130px;
  }

  .thanks-section {
    padding-bottom: 130px;
  }

  .confirm-section {
    padding-bottom: 130px;
  }

  .privacy-content {
    padding-top: 72px;
  }

  .thanks-content {
    padding-top: 72px;
  }

  .thanks-content h2 {
    font-size: 18px;
  }

  .thanks-button {
    margin-top: 52px;
  }

  .confirm-content {
    padding-top: 72px;
  }

  .confirm-content h2 {
    margin-bottom: 32px;
    font-size: 20px;
  }

  .confirm-list div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .confirm-list dt,
  .confirm-list dd {
    font-size: 15px;
  }

  .confirm-actions {
    gap: 16px;
    margin-top: 58px;
  }

  .confirm-actions .privacy-button {
    width: min(42vw, 170px);
    min-height: 42px;
    font-size: 14px;
  }

  .privacy-content h2 {
    padding: 0 0 24px;
    font-size: 16px;
  }

  .privacy-list div {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }

  .privacy-list dt,
  .privacy-list dd {
    font-size: 15px;
  }

  .privacy-actions {
    gap: 16px;
    margin-top: 64px;
  }

  .privacy-button {
    width: min(42vw, 170px);
    min-height: 42px;
    font-size: 14px;
  }

  .form-submit {
    height: 54px;
    font-size: 18px;
  }

  .footer-logo,
  .form-footer .footer-logo {
    width: 160px;
  }

  .form-footer {
    min-height: 160px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
  }

  .form-footer small {
    display: block;
    margin-top: 0;
    text-align: right;
  }
}

@media (max-width: 480px) {
  .site-header--form {
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-header--form .logo img {
    width: 156px;
  }

  .site-header--form .contact-pill {
    min-width: 84px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .form-hero {
    min-height: 270px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .form-hero::before {
    top: -178px;
    right: -246px;
    width: 470px;
  }

  .form-section {
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 100px;
  }

  .privacy-section {
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 110px;
  }

  .thanks-section {
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 110px;
  }

  .confirm-section {
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 110px;
  }

  .form-section::before {
    margin-bottom: 56px;
  }

  .form-row {
    margin-bottom: 26px;
  }

  .form-row input {
    height: 56px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .form-row textarea {
    min-height: 150px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .form-submit {
    width: min(100%, 260px);
  }

  .privacy-content {
    padding-top: 56px;
  }

  .thanks-content {
    padding-top: 56px;
  }

  .confirm-content {
    padding-top: 56px;
  }

  .thanks-content h2 {
    margin-bottom: 22px;
    font-size: 18px;
  }

  .thanks-content p {
    text-align: left;
  }

  .confirm-actions {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .confirm-actions .privacy-button {
    width: min(100%, 260px);
  }

  .privacy-actions {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .privacy-button {
    width: min(100%, 260px);
  }

  .form-footer {
    min-height: 160px;
    padding: 50px 20px 34px;
  }

  .form-footer::before {
    left: 20px;
    right: 20px;
  }

  .footer-logo,
  .form-footer .footer-logo {
    width: min(150px, 52vw);
  }

  .form-footer small {
    margin-top: 0;
    text-align: right;
  }
}
