@charset "UTF-8";
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #171717;
  --muted: #5c5c5c;
  --line: #d9d9d9;
  --sans: "Poppins", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 50px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button, input, textarea, select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

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

h1, h2, h3 {
  font-weight: 400;
  text-wrap: balance;
}

h1, h2 {
  font-size: clamp(1.65rem, 3.2vw, 2rem);
  line-height: 1.31;
  letter-spacing: -.015em;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.42;
}

.frame {
  width: min(100% - 2 * var(--gutter), 1180px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  inset: 8px auto auto 8px;
  padding: 8px 12px;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(4px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand .wordmark {
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3.5vw, 40px);
}

.language-switcher {
  position: relative;
  color: var(--muted);
  font-size: .8125rem;
  white-space: nowrap;
}

.language-switcher summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 104px;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  list-style: none;
  cursor: pointer;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}

.language-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 4px 14px #00000012;
}

.language-options a {
  display: block;
  padding: 8px;
  border-radius: 3px;
  text-decoration: none;
}

.language-options a:hover,
.language-options a:focus-visible,
.language-options [aria-current] {
  background: #eff0f6;
  color: var(--ink);
}

[lang="ja"] {
  font-family: var(--sans), "Noto Sans JP", sans-serif;
}

html[lang="ja"] {
  --sans: "Poppins", "Noto Sans JP", sans-serif;
}

html[lang="zh-Hans"] {
  --sans: "Poppins", "Noto Sans SC", sans-serif;
}

.line-link {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 16px;
  width: fit-content;
  min-height: 44px;
  padding: 8px 0 12px;
  color: var(--ink);
  text-decoration: none;
}

.line-link::after {
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 25px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: width 200ms ease;
}

.line-link:hover::after, .line-link:focus-visible::after {
  width: 100%;
}

.header-contact {
  justify-content: space-between;
  min-width: 125px;
}

.hero {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-bottom: clamp(56px, 8vw, 112px);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(348px, 32vw, 392px);
  padding-block: 44px;
  padding-inline: 28px;
  text-align: center;
}

.section-label {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.5;
}

.hero .section-label {
  margin-bottom: 16px;
}

.hero-intro {
  max-width: 46ch;
  margin-top: 15px;
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-contact {
  margin-top: 12px;
}

.hero-mark {
  position: absolute;
  right: 0;
  bottom: 44px;
  color: var(--ink);
  font: 400 .75rem/1.4 "Noto Sans JP", sans-serif;
  letter-spacing: .55em;
  writing-mode: vertical-rl;
}

.hero-locations {
  position: absolute;
  left: 0;
  bottom: 44px;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 300;
  letter-spacing: .06em;
  word-spacing: .27em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-carousel {
  --card-width: 180px;
  --card-gap: clamp(8px, 1vw, 12px);
  overflow-x: auto;
  scrollbar-width: thin;
}

.carousel-track {
  display: flex;
  width: max-content;
}

.carousel-cards {
  display: flex;
  flex: 0 0 auto;
  gap: var(--card-gap);
  padding-inline: calc(var(--card-gap) / 2);
}

.carousel-card {
  position: relative;
  flex: 0 0 var(--card-width);
  width: var(--card-width);
  aspect-ratio: 1 / 2;
  overflow: hidden;
  border-radius: 0 49% 0 49% / 0 25% 0 25%;
  background: #f7f6f2;
}

.carousel-card:nth-child(even) {
  border-radius: 49% 0 49% 0 / 25% 0 25% 0;
}

.carousel-card img, .hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--card-position, center);
}

.card-team {
  --card-position: 43% center;
}

.card-stairs {
  --card-position: 61% center;
}

.card-brand {
  display: grid;
  place-items: center;
  background: #000;
}

.card-brand img {
  width: 46%;
  height: auto;
  filter: invert(1);
}

.hero-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.hero-video.is-visible {
  opacity: 1;
}

.hero-carousel.is-moving {
  overflow: hidden;
  cursor: pointer;
  mask-image: linear-gradient(to right, transparent, #000 min(11%, 140px), #000 max(89%, calc(100% - 140px)), transparent);
}

.is-moving .carousel-track {
  animation: carousel-scroll 34s linear infinite;
}

.is-moving.is-paused .carousel-track {
  animation-play-state: paused;
}

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

.services {
  padding-block: clamp(54px, 7vw, 104px);
  border-top: 1px solid var(--line);
}

.services-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: 25px clamp(32px, 8vw, 110px);
  margin-bottom: clamp(27px, 4.1vw, 50px);
}

.services-intro .section-intro > p:not(.section-label) {
  max-width: 53ch;
}

.section-intro h2 {
  margin: 16px 0 19px;
}

.section-intro > p:not(.section-label) {
  max-width: 38ch;
  color: var(--muted);
  text-wrap: pretty;
}

.section-intro > p + p {
  margin-top: 15px;
}

.cost-savings {
  max-width: 38ch;
  padding-left: 14px;
  border-left: 1px solid var(--ink);
}

.cost-savings p:first-child {
  font-weight: 600;
}

.cost-savings strong {
  color: var(--ink);
}

.cost-savings p + p {
  margin-top: 4px;
  color: var(--muted);
  font-size: .86rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: 30px;
}

.service-list li:nth-child(6n + 1) { background: #f7f6f2; }
.service-list li:nth-child(6n + 2) { background: #efe9e1; }
.service-list li:nth-child(6n + 3) { background: #fff1e5; }
.service-list li:nth-child(6n + 4) { background: #dce6d6; }
.service-list li:nth-child(6n + 5) { background: #e6e6e3; }
.service-list li:nth-child(6n + 6) { background: #e7ddd2; }

.service-list li:last-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: baseline;
}

.service-list h3 {
  text-wrap: wrap;
}

.service-list p {
  max-width: 52ch;
  color: var(--muted);
}

.approach {
  background: #f7f6f2;
}

.approach-inner {
  padding-block: clamp(60px, 7.1vw, 106px);
}

.approach-intro {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
}

.approach h2 {
  max-width: 19ch;
  margin-bottom: 0;
}

.approach-photo, .about-photo {
  width: 100%;
  object-fit: cover;
}

.approach-photo {
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 30px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 4vw, 65px);
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.step-number {
  color: var(--muted);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.steps h3 {
  margin: 12px 0 10px;
  text-wrap: wrap;
}

.steps p {
  color: var(--muted);
  max-width: 34ch;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 7vw, 100px);
  padding-block: clamp(68px, 9vw, 132px);
}

.about-photo {
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 30px;
}

.about .section-intro > p:not(.section-label) {
  max-width: 55ch;
}

.about-link {
  margin-top: 14px;
}

.about-banner {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: clamp(245px, 40vw, 500px);
  padding: 32px 20px;
  overflow: hidden;
  border-radius: 30px;
  background: #252525;
  color: #fff;
  text-align: center;
}

.about-banner img, .about-banner::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about-banner img {
  z-index: -2;
  object-fit: cover;
}

.about-banner::after {
  z-index: -1;
  background: linear-gradient(90deg, #0004, #0009 26%, #0009 74%, #0004);
  content: "";
}

.about-banner-copy h1 {
  max-width: 20ch;
  margin: 10px auto 0;
}

.about-story {
  width: min(100% - 2 * var(--gutter), 600px);
  margin-inline: auto;
  padding-block: clamp(42px, 6vw, 76px) clamp(64px, 9vw, 120px);
}

.about-story section + section {
  margin-top: clamp(36px, 6vw, 58px);
}

.about-story section > p {
  margin-top: 14px;
  color: var(--muted);
}

.word-card {
  margin-top: 26px;
  padding: clamp(20px, 4vw, 26px);
  border-radius: 30px;
  background: #eff0f6;
}

.word-card-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.word-card dl, .word-card dd {
  margin: 0;
}

.word-card dt {
  font: 400 1.875rem/1.35 "Noto Sans JP", sans-serif;
}

.word-card dd {
  font-size: .875rem;
}

.word-card > p {
  margin-top: 15px;
}

.pronunciation-button {
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000dff;
  cursor: pointer;
}

.pronunciation-button[hidden] {
  display: none;
}

.pronunciation-button:hover {
  background: #0009ba;
}

.word-card .pronunciation-status:empty {
  margin-top: 0;
}

.about-closing {
  margin-top: clamp(44px, 7vw, 76px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.about-closing p {
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.4;
}

.about-closing p span {
  color: var(--muted);
}

.about-closing a {
  margin-top: 16px;
}

.contact-intro {
  padding-block: clamp(36px, 4vw, 50px) 40px;
  border-bottom: 1px solid var(--line);
}

.contact-intro h1 {
  margin-top: 8px;
  text-wrap: wrap;
}

.contact-intro h1 span {
  display: block;
  color: var(--muted);
}

.contact-body {
  padding-block: clamp(44px, 6.25vw, 80px) clamp(60px, 7.8vw, 100px);
}

.contact-body h2 {
  margin-bottom: 26px;
  font-size: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 26px;
  width: min(100%, 500px);
}

.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.field label, .service-field legend {
  font-size: .875rem;
}

.field label span, .service-field legend span {
  color: var(--muted);
}

.field input:not([type="checkbox"]), .field textarea {
  width: 100%;
  min-height: 60px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
}

.field input:not([type="checkbox"]):focus, .field textarea:focus {
  border-color: #767676;
  outline: 1px solid transparent;
  outline-offset: 1px;
}

.field input::placeholder, .field textarea::placeholder {
  color: #737373;
  font-weight: 300;
}

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

.service-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.service-field legend {
  margin-bottom: 5px;
  padding: 0;
}

.service-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}

.service-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}

.service-options input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.service-options input:focus-visible {
  outline: 1px solid #767676;
  outline-offset: 3px;
}

.submit-button {
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 6px;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-weight: 400;
}

.submit-button:hover {
  background: #292929;
}

.submit-button:disabled {
  opacity: .65;
  cursor: wait;
}

.form-status {
  font-size: .875rem;
}

.form-status:empty {
  margin-top: -26px;
}

.form-status.is-error {
  color: #9c271d;
}

.site-footer {
  background: #eff0f6;
}

.footer-inner {
  padding-block: clamp(36px, 4vw, 50px) 40px;
}

.footer-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand span {
  font: 400 .875rem/1.5 "Noto Sans JP", sans-serif;
}

.footer-invitation, .footer-email {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.footer-invitation {
  max-width: 30ch;
  margin-top: clamp(38px, 4vw, 50px);
}

.footer-invitation span {
  color: var(--muted);
}

.footer-email {
  margin-top: clamp(34px, 4vw, 50px);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(24px, 4vw, 50px);
  margin-top: clamp(80px, 10vw, 140px);
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover, .footer-nav [aria-current] {
  text-decoration: underline;
  text-underline-offset: .25em;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 88px;
  }

  .header-inner {
    min-height: 76px;
    gap: 12px;
  }

  .services-intro, .approach-intro, .about {
    grid-template-columns: 1fr;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }

  .steps p {
    max-width: 52ch;
  }

  .about-photo {
    order: 1;
  }
}

@media (max-width: 479px) {
  .header-inner .wordmark {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-contact {
    min-width: auto;
    gap: 5px;
    font-size: .875rem;
    white-space: nowrap;
  }

  .hero-copy {
    min-height: 348px;
    padding-block: 38px 48px;
    padding-inline: 19px;
  }

  .hero-mark, .hero-locations {
    bottom: 24px;
  }

  .hero-carousel {
    --card-width: 144px;
  }

  .service-list, .service-list li:last-child {
    grid-template-columns: 1fr;
  }

  .service-list li {
    gap: 10px;
  }
}

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

  .line-link::after {
    transition: none;
  }
}
