/* Home: bold HARU turquoise, balanced with quiet editorial typography. */
#home {
  color: var(--ink);
  font-weight: 400;
}

#home main {
  padding: 0;
}

#home main>section {
  min-height: 0;
  position: relative;
  z-index: auto;
}

#home .home-section {
  padding: 110px max(6%, calc((100% - 1200px) / 2));
}

/* Text-only introduction between the hero and services. */
#home #catch {
  padding: clamp(36px, 5vw, 64px) max(6%, calc((100% - 1200px) / 2));
  background: #eef8f9;
}

#home #catch>div {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  padding: 20px clamp(24px, 4vw, 56px);
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 500;
  line-height: 2.2;
  letter-spacing: .05em;
}

#home #catch>div::before,
#home #catch>div::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  border: solid var(--color1);
}

#home #catch>div::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

#home #catch>div::after {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
}

#home main h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.65;
  margin: 0 0 28px;
  letter-spacing: .07em;
}

#home main h3 {
  font-size: 25px;
  font-weight: 400;
  line-height: 1.7;
  margin: 0 0 18px;
}

#home main p {
  font-size: 14px;
  line-height: 2.1;
  margin: 0 0 24px;
}

#home main .eyebrow {
  color: var(--color-accent-text);
  font-size: 10px;
  font-family: Arial, sans-serif;
  letter-spacing: .2em;
  line-height: 1.6;
  margin-bottom: 28px;
}

#home .home-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  min-width: 265px;
  padding: 19px 24px;
  gap: 32px;
  font-size: 13px;
  transition: background .2s, color .2s;
}

#home .button-light {
  color: var(--ink);
  background: white;
}

#home .button-light:hover,
#home .button-light:focus-visible {
  background: var(--ink);
  color: white;
}

#home .home-button span {
  font-size: 23px;
  line-height: 1;
}

#home .service-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 28px 5%;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: .07em;
}

#home .service-strip i {
  color: #9fc7cd;
  font-style: normal;
}

#home .service-strip a {
  padding-left: 32px;
  border-left: 1px solid var(--line);
  font-size: 11px;
  display: flex;
  gap: 22px;
}

#home .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 45px;
}

#home .section-heading>p {
  color: var(--muted);
  margin-bottom: 40px;
}

#home .service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

#home .service-image {
  position: relative;
  display: block;
  overflow: hidden;
}

#home .service-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .4s;
}

#home .service-image:hover img {
  transform: scale(1.035);
}

#home .service-image>span {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  background: white;
  width: 48px;
  height: 48px;
  color: var(--ink);
  font-size: 23px;
}

#home main .service-number {
  margin: 23px 0 10px;
  font: 24px Georgia, serif;
  color: var(--color-accent-text);
}

#home .service-number span {
  margin-left: 14px;
  font: 9px Arial, sans-serif;
  letter-spacing: .15em;
}

#home .service-grid article {
  display: flex;
  flex-direction: column;
}

#home .service-grid article>p:not(.service-number) {
  color: var(--muted);
}

#home .text-link {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 0;
  border-bottom: 1px solid #90c9d0;
  font-size: 13px;
  transition: color .25s ease;
}

#home .text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--color1);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease;
  pointer-events: none;
}

#home .text-link:is(:hover, :focus-visible) {
  color: var(--color1);
}

#home .text-link:is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}

#home .text-link .link-arrow::before {
  transition: transform .25s ease;
}

#home .text-link:is(:hover, :focus-visible) .link-arrow::before {
  transform: translateX(2px);
}

#home .text-link span {
  font-size: 20px;
}

#home .service-grid .text-link {
  margin-top: auto;
}

#home #featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color1);
  gap: 80px;
}

#home .remote-visual {
  position: relative;
  padding-bottom: 30px;
}

#home .remote-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

#home .remote-label {
  display: block;
  position: absolute;
  bottom: 0;
  right: -25px;
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--color-w);
  padding: 18px 26px;
  background: var(--color1);
}

#home #featured .eyebrow {
  color: var(--color-w);
}

#home #featured h2 {
  color: white;
  font-size: clamp(32px, 3.5vw, 50px);
}

#home #featured p {
  color: var(--color-w);
}

#home #featured .remote-lead {
  font-size: 18px;
  margin-bottom: 18px;
}

#home .remote-cases {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px clamp(30px, 5vw, 80px);
}

#home .remote-cases .remote-steps {
  margin: 0;
  color: var(--color-w);
}

#home .remote-cases-slider {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

#home .remote-cases-slider img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

#home .remote-cases-slider:not(.swiper-initialized) .swiper-slide:not(:first-child) {
  display: none;
}

#home .remote-cases>.home-button {
  grid-column: 1 / -1;
  justify-self: center;
}

#home .remote-steps {
  border-top: 1px solid rgb(255 255 255 / 65%);
  margin: 28px 0 32px;
}

#home .remote-steps li {
  position: relative;
  padding: 13px 0 13px 28px;
  border-bottom: 1px solid rgb(255 255 255 / 65%);
  font-size: 13px;
  font-weight: bold;
}

#home .remote-steps li::before {
  content: "";
  position: absolute;
  top: calc(13px + .45em);
  left: 3px;
  width: 7px;
  height: 12px;
  border: solid var(--color-w);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#home .remote-steps span {
  font: 15px Georgia, serif;
  margin-right: 25px;
}

#home #needs-part {
  background: #f3f6f5;
}

#home .needs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

#home .needs-grid>a {
  display: block;
  position: relative;
  padding: 32px 25px 85px;
  border-top: 2px solid var(--color1);
  background: white;
  transition: background .2s;
}

#home .needs-grid>a:hover {
  background: #e0f2f3;
}

#home .needs-grid .eyebrow {
  display: block;
}

#home .needs-grid h3 {
  font-size: 25px;
}

#home .needs-grid p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

#home .round-arrow {
  position: absolute;
  right: 25px;
  bottom: 25px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #b1d5d9;
  border-radius: 50%;
  font-size: 20px;
}

#home .needs-grid .round-arrow {
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

#home .needs-grid .round-arrow::before {
  transition: background-color .25s ease, transform .25s ease;
}

#home .needs-grid>a:is(:hover, :focus-visible) .round-arrow {
  background-color: var(--color1);
  border-color: var(--color1);
  transform: scale(1.05);
}

#home .needs-grid>a:is(:hover, :focus-visible) .round-arrow::before {
  background-color: var(--color-w);
  transform: translateX(2px);
}

#home #company-part {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

#home .company-intro p {
  color: var(--muted);
}

#home .company-intro .text-link {
  max-width: 280px;
  margin-top: 35px;
}

#home main .company-name {
  font: 25px "Noto Serif JP", serif;
  margin: 0 0 30px;
}

#home .company-details dl>div {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 23px 0;
  font-size: 13px;
  line-height: 1.9;
}

#home .company-details dt {
  color: var(--muted);
}

#home .company-details dd {
  overflow-wrap: anywhere;
}

#home #home-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  background: var(--color1);
}

#home #home-contact .eyebrow {
  color: var(--color-w);
}

#home #home-contact h2 {
  color: white;
  font-size: clamp(28px, 3vw, 42px);
}

#home #home-contact p {
  color: var(--color-w);
  margin: 0;
}

#home .contact-actions {
  text-align: center;
  flex-shrink: 0;
}

#home .contact-actions .home-button {
  min-width: 310px;
}

#home .contact-tel {
  color: var(--color-w);
  display: block;
  margin: 25px 0 8px;
  font: 32px Georgia, serif;
  letter-spacing: .04em;
}

#home .contact-actions small {
  font-size: 10px;
  color: var(--color-w);
}

#home .mobile-break {
  display: none;
}

#home a:focus-visible {
  outline: 3px solid #173f45;
  outline-offset: 5px;
}

/* Original hero composition, refined to match the site's typography. */
#home #hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  min-height: clamp(580px, 76vh, 820px);
  padding: 80px max(6%, calc((100% - 1200px) / 2));
  background: #fff;
  color: var(--ink);
  overflow: visible;
}

#home #hero .hero-left {
  flex: 0 0 40%;
  min-width: 0;
}

#home #hero .hero-right {
  flex: 1;
  min-width: 0;
}

#home #hero .hero-left>div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 1;
  background: var(--color1);
}

#home #hero .hero-left>div::before {
  content: '';
  display: block;
  width: 55%;
  aspect-ratio: 1;
  background: #fff;
  -webkit-mask: url("../img/logo-mark.svg") no-repeat center / contain;
  mask: url("../img/logo-mark.svg") no-repeat center / contain;
}

#home #hero h1 {
  width: auto;
  position: relative;
  z-index: 3;
  margin: 0 0 28px;
  font-size: clamp(28px, 3.6vw, 54px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .045em;
  text-shadow: none;
}

#home #hero h1 span {
  display: block;
}

#home #hero .hero-right strong {
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  margin: 0 0 26px;
  padding: 0;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .12em;
}

#home #hero .hero-right strong::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color1);
}

#home #hero .hero-right p {
  font-size: 14px;
  line-height: 2.1;
  margin: 0;
  color: var(--muted);
}

/* Work samples; independent from the needs cards above. */
#home #works-part {
  background: #fff;
}

#home .works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

#home .work-card {
  min-width: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

#home .work-card>img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

#home .work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 18px;
}

#home .work-tags li {
  padding: 4px 9px;
  background: #eaf5f5;
  color: var(--color-accent-text);
  font-size: 11px;
}

#home .work-card h3 {
  margin-bottom: 8px;
}

#home .work-card p {
  color: var(--muted);
}

#home .work-card .work-location {
  margin-bottom: 18px;
  font-size: 12px;
}

@media (max-width: 1000px) {
  #home .works-grid {
    gap: 22px;
  }

  #home .home-section {
    padding: 75px 6%;
  }

  #home .service-strip {
    gap: 16px;
    font-size: 11px;
    flex-wrap: wrap;
  }

  #home .service-strip a {
    padding-left: 16px;
  }

  #home .service-grid {
    gap: 22px;
  }

  #home #featured,
  #home #company-part {
    gap: 40px;
  }

  #home .needs-grid {
    gap: 16px;
  }

  #home .needs-grid>a {
    padding: 25px 18px 80px;
  }

  #home .needs-grid h3 {
    font-size: 21px;
  }

  #home #home-contact {
    flex-direction: column;
    align-items: flex-start;
  }

  #home #hero {
    min-height: inherit;
    padding-top: 65px;
    padding-bottom: 65px;
    gap: 35px;
  }

  #home #hero .hero-left {
    flex-basis: 38%;
  }

  #home #hero .hero-right p {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  #home .remote-cases {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  #home .works-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  #home .home-button {
    min-width: 250px;
    padding: 18px 22px;
    font-size: 12px;
  }

  #home .service-strip {
    gap: 10px;
    padding: 23px 5%;
    font-size: 10px;
  }

  #home .service-strip a {
    width: 100%;
    justify-content: center;
    border: 0;
    padding: 10px 0 0;
  }

  #home .home-section {
    padding: 60px 7%;
  }

  #home .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  #home main h2 {
    font-size: 31px;
  }

  #home main h3 {
    font-size: 24px;
  }

  #home .section-heading>p {
    font-size: 13px;
    margin: 0;
  }

  #home .service-grid,
  #home .needs-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  #home .service-image img {
    aspect-ratio: 4/3;
  }

  #home #featured {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  #home .remote-visual img {
    aspect-ratio: 4/3;
  }

  #home .remote-label {
    right: -12px;
  }

  #home #featured h2 {
    font-size: 7.8vw;
  }

  #home .needs-grid {
    gap: 20px;
  }

  #home .needs-grid h3 {
    font-size: 26px;
  }

  #home #company-part {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #home .company-details dl>div {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 15px;
    font-size: 12px;
  }

  #home .contact-actions {
    width: 100%;
  }

  #home .contact-actions .home-button {
    min-width: 0;
    width: 100%;
  }

  #home .mobile-break {
    display: block;
  }

  #home #hero {
    flex-direction: column;
    min-height: 0;
    padding: 30px 7% 50px;
    gap: 30px;
  }

  #home #hero .hero-left,
  #home #hero .hero-right {
    width: 100%;
    flex: auto;
  }

  #home #hero .hero-left>div {
    width: 100%;
    aspect-ratio: 16/9;
    margin: auto;
  }

  #home #hero .hero-left>div::before {
    width: 35%;
  }

  #home #hero h1 {
    font-size: clamp(22px, 5.65vw, 34px);
    margin-bottom: 22px;
  }

  #home #hero .hero-right strong {
    margin-bottom: 20px;
    font-size: 13px;
  }

  #home #hero .hero-right p {
    font-size: 14px;
    line-height: 2;
  }
}

@media (prefers-reduced-motion: reduce) {

  #home .text-link::after,
  #home .text-link .link-arrow::before {
    transition: none;
  }

  #home .text-link:is(:hover, :focus-visible) .link-arrow::before {
    transform: none;
  }

  #home .needs-grid .round-arrow,
  #home .needs-grid .round-arrow::before {
    transition: none;
  }

  #home .needs-grid>a:is(:hover, :focus-visible) .round-arrow,
  #home .needs-grid>a:is(:hover, :focus-visible) .round-arrow::before {
    transform: none;
  }

  #home a,
  #home .service-image img {
    transition: none;
  }
}