html {
  scroll-behavior: smooth;
}

:root {
  --kouwa-accent: #e63977;
  --kouwa-accent-dark: #c72b66;
  --kouwa-accent-light: #fde7ee;
  --kouwa-accent-soft: #ffbfd2;
  --color-primary: var(--kouwa-accent);
  --color-primary-rgb: 230, 57, 119;
  --color-secondary: var(--kouwa-accent-dark);
  --color-secondary-rgb: 199, 43, 102;
  --color-danger: var(--kouwa-accent);
  --color-danger-rgb: 230, 57, 119;
  --color-input-active: var(--kouwa-accent);
  --color-input-active-rgb: 230, 57, 119;
  --color-input-focus: var(--kouwa-accent);
  --color-input-focus-rgb: 230, 57, 119;
  --color-submit-bg: var(--kouwa-accent);
  --color-submit-bg-rgb: 230, 57, 119;
  --color-submit-bg-hover: var(--kouwa-accent-dark);
  --color-submit-bg-hover-rgb: 199, 43, 102;
  --link-color: var(--kouwa-accent);
  --link-hover-color: var(--kouwa-accent-dark);
  --header-height-lg: 82px;
}

@media (max-width: 767.98px) {
  :root {
    --header-height-sm: 64px;
  }
}

.l-drawer__logo__link {
  position: relative;
}

.l-drawer__logo__link img {
  opacity: 0;
}

.l-drawer__logo__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 41px;
  height: 41px;
  transform: translateY(-50%);
  background: var(--kouwa-accent);
  -webkit-mask: url("../../images/kouwa-hero-icon.png") center / contain no-repeat;
  mask: url("../../images/kouwa-hero-icon.png") center / contain no-repeat;
}

@media (max-width: 767px) {
  .l-drawer__nav__wrapper {
    transform: translateX(40px);
  }
}

#page {
  opacity: 1 !important;
}

body.is-drawer-open {
  overflow: hidden;
}

.top-kv,
.top-kv__slide,
.top-kv [data-top-kv-slide],
.top-kv [data-top-kv-slide] .splide__track,
.top-kv [data-top-kv-slide] .splide__list,
.top-kv [data-top-kv-slide] .splide__slide,
.top-kv__slide__img,
.top-kv__slide__img picture,
.top-kv__slide__img img {
  height: 100svh !important;
}

.top-kv [data-top-kv-slide] .splide__slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(.445, .05, .55, .95);
}

.top-kv [data-top-kv-slide] .splide__slide.is-active {
  opacity: 1;
  z-index: 2;
}

.top-kv__slide__img,
.top-kv__slide__img picture,
.top-kv__slide__img img {
  display: block;
  width: 100% !important;
}

.top-kv__slide__img img {
  object-fit: cover;
}

.top-kv__logo {
  width: 92px;
}

.top-kv__logo__icon {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.top-kv__logo__text {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .18em;
  text-align: center;
  transform: translateX(4px);
}

.top .c-title__top .en,
.aside-contact .c-title__top .en,
.top-service__heading__inner,
.top-service__item__heading .num,
.top-company__menu__link .\:en,
.c-card__cat__link {
  color: var(--kouwa-accent) !important;
}

.top [data-is-dark] .c-title__top .en {
  color: var(--kouwa-accent) !important;
}

.top .c-button__black,
.aside-contact .c-button__black,
.l-header__contact {
  background-color: var(--kouwa-accent) !important;
  border-color: var(--kouwa-accent) !important;
  color: #fff !important;
}

.top .c-button__black:hover,
.top .c-button__black:focus-visible,
.aside-contact .c-button__black:hover,
.aside-contact .c-button__black:focus-visible,
.l-header__contact:hover,
.l-header__contact:focus-visible {
  background-color: var(--kouwa-accent-dark) !important;
  border-color: var(--kouwa-accent-dark) !important;
}

.top .c-button__white,
.aside-contact .c-button__white {
  border-color: var(--kouwa-accent) !important;
  color: var(--kouwa-accent) !important;
}

.top .c-button__white:hover,
.top .c-button__white:focus-visible,
.aside-contact .c-button__white:hover,
.aside-contact .c-button__white:focus-visible {
  background-color: var(--kouwa-accent-light) !important;
}

.top-kv__news__link {
  background-color: rgba(230, 57, 119, .72) !important;
  border-color: rgba(255, 255, 255, .55) !important;
}

.l-header__logo__link {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 10px;
  color: var(--kouwa-accent);
}

.l-header__logo__link::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 58px;
  height: 46px;
  transform: translateY(-50%);
  background: currentColor;
  content: "";
  opacity: 0;
  transition: opacity .3s ease;
  -webkit-mask: url("../../images/kouwa-hero-icon.png") center / contain no-repeat;
  mask: url("../../images/kouwa-hero-icon.png") center / contain no-repeat;
}

.l-header__logo__image {
  display: block;
  width: 58px;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 0;
  transition: opacity .3s ease;
}

.l-header__logo__text {
  display: inline-block;
  color: var(--kouwa-accent);
  font-family: var(--font-roboto);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(1px);
  transition: opacity .3s ease;
}

.l-header.\:not-top .l-header__logo__text {
  opacity: 0;
}

.l-header.\:past-hero .l-header__logo__link::before,
.l-header.\:past-hero .l-header__logo__text {
  opacity: 1;
}

.l-header.\:not-top:not(.\:past-hero) .l-header__gnav__link,
.l-header.\:not-top:not(.\:past-hero) .l-header__gnav__str {
  color: #fff !important;
}

.l-header.\:past-hero .l-header__gnav__link,
.l-header.\:past-hero .l-header__gnav__str {
  color: var(--kouwa-accent) !important;
}

.l-header.\:past-hero .l-header__gnav__link {
  position: relative;
}

.l-header.\:past-hero .l-header__gnav__link::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--kouwa-accent);
  content: "";
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.l-header.\:past-hero .l-header__gnav__link:hover::after,
.l-header.\:past-hero .l-header__gnav__link:focus-visible::after {
  transform: scaleX(1);
}

.l-header {
  transition: background-color .3s ease, backdrop-filter .3s ease;
}

.l-header.\:past-hero {
  background: rgba(255, 255, 255, .35) !important;
  -webkit-backdrop-filter: blur(5px) saturate(110%);
  backdrop-filter: blur(5px) saturate(110%);
}

@media (max-width: 767.98px) {
  .l-header__logo__link {
    gap: 8px;
  }

  .l-header__logo__image {
    width: 50px;
  }

  .l-header__logo__link::before {
    width: 50px;
    height: 39px;
  }

  .l-header__logo__text {
    font-size: 15px;
    letter-spacing: .14em;
  }
}

.top-service__item__img {
  aspect-ratio: 672.5 / 408.515625;
}

.top-service__item__img picture,
.top-service__item__img img {
  display: block;
  width: 100%;
  height: 100%;
}

.top-service__item__img img {
  object-fit: cover;
}

@media (min-width: 768px) {
  [data-aside-blog-slider] .splide__list {
    display: flex !important;
    transform: translateX(0) !important;
  }

  [data-aside-blog-slider] .splide__slide {
    flex: 0 0 440px !important;
    width: 440px !important;
  }
}

@media (max-width: 767.98px) {
  [data-top-works-slide] .splide__track {
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-padding-inline: 24px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  [data-top-works-slide] .splide__track::-webkit-scrollbar {
    display: none;
  }

  [data-top-works-slide] .splide__list {
    display: flex !important;
    padding-inline: 24px !important;
    transform: none !important;
  }

  [data-top-works-slide] .splide__slide {
    flex: 0 0 min(80vw, 320px) !important;
    width: min(80vw, 320px) !important;
    margin-right: 18px !important;
    scroll-snap-align: start;
  }
}

.top-works {
  overflow: hidden;
  background-image:
    linear-gradient(rgba(12, 18, 22, .66), rgba(12, 18, 22, .66)),
    url("/assets/images/top/works-bg-kouwa.jpg") !important;
  background-position: center;
  background-size: cover;
}

.top-works .container {
  overflow: visible;
}

.top-works__lead {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, .78);
  font-size: .94rem;
  line-height: 1.95;
  letter-spacing: .08em;
  text-align: center;
}

.top-works .container > .grid {
  display: flex;
  gap: clamp(18px, 2.2vw, 30px);
  overflow-x: auto;
  overflow-y: hidden;
  margin-right: calc(50% - 50vw);
  padding-right: clamp(24px, 7vw, 112px);
  padding-bottom: 0;
  scroll-padding-inline: 0;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.top-works .container > .grid::-webkit-scrollbar {
  display: none;
}

.top-works .c-card.--works {
  flex: 0 0 clamp(260px, 25vw, 350px);
  width: clamp(260px, 25vw, 350px);
  height: auto;
  padding: 0;
  scroll-snap-align: start;
  background: transparent;
  color: #fff;
}

.top-works .c-card.--works .c-card__content {
  display: grid !important;
  grid-template-areas:
    "media"
    "title";
  grid-template-rows: auto auto;
  position: relative;
}

.top-works .c-card.--works .c-card__cat {
  z-index: 2;
  display: flex;
  grid-area: media;
  flex-wrap: wrap;
  align-self: end;
  justify-self: start;
  gap: 8px;
  margin: 0 16px 16px;
}

.top-works .c-card.--works .c-card__cat__link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0;
  padding: 5px 11px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .94);
  color: var(--color-base) !important;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .05em;
  pointer-events: none;
  transition: background-color .35s cubic-bezier(.165, .84, .44, 1), color .35s cubic-bezier(.165, .84, .44, 1);
}

.top-works .c-card.--works:hover .c-card__cat__link,
.top-works .c-card.--works:focus-visible .c-card__cat__link {
  background: var(--kouwa-accent);
  color: #fff !important;
}

.top-works .c-card.--works .c-card__cat__link::before {
  content: none;
}

.top-works .c-card.--works .c-card__cat__link:not(:last-child)::after {
  content: none;
}

.top-works .c-card.--works .c-card__time {
  display: none;
}

.top-works .c-card.--works .c-card__figure {
  grid-area: media;
  position: relative;
  aspect-ratio: 100 / 124;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
}

.top-works .c-card.--works .c-card__figure::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, rgba(12, 18, 22, 0), rgba(12, 18, 22, .48));
  content: "";
  pointer-events: none;
}

.top-works .c-card.--works .c-card__image__link {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.top-works .c-card.--works .c-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-works .c-card.--works .c-card__title {
  grid-area: title;
  margin-top: 15px;
  color: #fff;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .05em;
}

.top-works .c-card.--works .c-card__title__link {
  color: inherit;
  transition: color .35s cubic-bezier(.165, .84, .44, 1);
}

.top-works .c-card.--works:hover .c-card__title__link,
.top-works .c-card.--works:focus-visible .c-card__title__link {
  color: var(--kouwa-accent-soft);
}

.top-works .c-card.--works .c-button__gray__arrow {
  display: none;
}

.top-works__scroll-indicator {
  position: relative;
  width: min(420px, 44vw);
  height: 22px;
  margin: 24px 0 0;
  overflow: hidden;
}

.top-works__scroll-indicator[hidden],
.top-works__scroll-indicator.--mobile {
  display: none;
}

.top-works__scroll-indicator::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .28);
  content: "";
}

.top-works__scroll-indicator span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 72px;
  min-width: 56px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff 0%, var(--kouwa-accent-soft) 48%, var(--kouwa-accent) 100%);
  box-shadow: 0 0 18px rgba(230, 57, 119, .32);
  transform: translate3d(0, -50%, 0);
  transition: width .2s ease;
  will-change: transform, width;
}

@media (max-width: 767.98px) {
  .top-works .container > .grid.-md\:hide {
    display: none !important;
  }

  .top-works__lead {
    margin-top: 18px;
    padding: 0 10px;
    font-size: .86rem;
    line-height: 1.85;
    text-align: left;
  }

  .top-works .c-card.--works {
    width: min(80vw, 320px);
  }

  .top-works .c-card.--works .c-card__cat {
    gap: 6px;
    margin: 0 12px 12px;
  }

  .top-works .c-card.--works .c-card__cat__link {
    min-height: 28px;
    padding: 4px 9px;
    font-size: .72rem;
  }

  .top-works__scroll-indicator.--desktop {
    display: none;
  }

  .top-works__scroll-indicator.--mobile {
    display: block;
    width: min(230px, calc(100vw - 48px));
    margin: 20px 24px 0;
  }
}

.c-button__black__arrow::before,
.c-button__black__arrow::after,
.c-button__arrow::before,
.c-button__arrow::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20width%3D%2710%27%20height%3D%275%27%20viewBox%3D%270%200%2010%205%27%20fill%3D%27none%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Cpath%20d%3D%27M6.46387%200.470516C6.464%200.100676%206.87157%20-0.12398%207.18457%200.0730552L9.71094%201.66388C10.0037%201.84827%2010.0037%202.27538%209.71094%202.45977L7.18457%204.05059C6.87156%204.24764%206.46398%204.02299%206.46387%203.65313V2.53204H0.469727C0.210267%202.53182%202.26871e-08%202.32085%200%202.06134C0.000215496%201.80201%200.2104%201.59183%200.469727%201.59161H6.46387V0.470516Z%27%20fill%3D%27white%27%2F%3E%3C%2Fsvg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg%20width%3D%2710%27%20height%3D%275%27%20viewBox%3D%270%200%2010%205%27%20fill%3D%27none%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Cpath%20d%3D%27M6.46387%200.470516C6.464%200.100676%206.87157%20-0.12398%207.18457%200.0730552L9.71094%201.66388C10.0037%201.84827%2010.0037%202.27538%209.71094%202.45977L7.18457%204.05059C6.87156%204.24764%206.46398%204.02299%206.46387%203.65313V2.53204H0.469727C0.210267%202.53182%202.26871e-08%202.32085%200%202.06134C0.000215496%201.80201%200.2104%201.59183%200.469727%201.59161H6.46387V0.470516Z%27%20fill%3D%27white%27%2F%3E%3C%2Fsvg%3E") !important;
}

[data-scroll-trigger],
[data-scroll-trigger="mask"],
[data-scroll-trigger="fade"],
[data-scroll-trigger="fadeup"],
[data-scroll-trigger="clip"] {
  opacity: 1 !important;
  visibility: visible !important;
  clip-path: none !important;
  transform: none !important;
}

.kouwa-about {
  overflow: hidden;
  scroll-margin-top: 96px;
  padding-bottom: clamp(70px, 9vw, 130px);
}

.kouwa-about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  align-items: center;
  gap: clamp(56px, 7vw, 112px);
}

.kouwa-about__media {
  display: grid;
  position: relative;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(12, minmax(0, 1fr));
  gap: 0;
  min-height: clamp(620px, 48vw, 720px);
  padding: clamp(18px, 2vw, 28px) clamp(10px, 1.2vw, 18px) clamp(22px, 2.5vw, 36px) 0;
}

.kouwa-about__media::before {
  content: "";
  position: absolute;
  top: 14%;
  left: 4%;
  z-index: 0;
  width: 56%;
  height: 72%;
  background:
    linear-gradient(90deg, rgba(230, 57, 119, .08) 0 1px, transparent 1px),
    linear-gradient(rgba(230, 57, 119, .08) 0 1px, transparent 1px),
    var(--kouwa-accent-light);
  background-size: 28px 28px;
  transform: rotate(-2deg);
}

.kouwa-about__photo {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--kouwa-accent-light);
  box-shadow: 0 18px 42px rgba(31, 24, 28, .13);
}

.kouwa-about__photo picture,
.kouwa-about__photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.kouwa-about__photo img {
  object-fit: cover;
}

.kouwa-about__photo.--main {
  grid-column: 1 / 8;
  grid-row: 1 / 10;
}

.kouwa-about__photo.--pipe {
  grid-column: 8 / 13;
  grid-row: 2 / 7;
  margin-left: clamp(14px, 1.5vw, 22px);
  transform: translateY(-2%);
}

.kouwa-about__photo.--duct {
  grid-column: 6 / 12;
  grid-row: 8 / 13;
  z-index: 3;
  margin-top: clamp(10px, 1vw, 16px);
  border: clamp(6px, .7vw, 10px) solid #fff;
  transform: translateX(4%);
}

.kouwa-about__photo.--conveyor {
  z-index: 4;
  grid-column: 2 / 6;
  grid-row: 9 / 13;
  align-self: end;
  margin-right: clamp(10px, 1vw, 16px);
  border: clamp(5px, .55vw, 8px) solid #fff;
  transform: translate(-6%, 8%);
}

.kouwa-about__photo.--main img {
  object-position: 48% center;
}

.kouwa-about__photo.--pipe img {
  object-position: 54% center;
}

.kouwa-about__photo.--duct img {
  object-position: center 58%;
}

.kouwa-about__photo.--conveyor img {
  object-position: 62% center;
}

.kouwa-about__content {
  max-width: 620px;
}

.kouwa-about .top-about__text {
  line-height: 2.18;
}

@media (max-width: 1023.98px) {
  .kouwa-about__layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .kouwa-about__content {
    order: 1;
    max-width: 660px;
  }

  .kouwa-about__media {
    order: 2;
    min-height: clamp(620px, 86vw, 740px);
  }
}

@media (max-width: 767.98px) {
  .kouwa-about {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .kouwa-about__layout {
    gap: 44px;
  }

  .kouwa-about__content br {
    display: none;
  }

  .kouwa-about .top-about__text {
    line-height: 2.05;
  }

  .kouwa-about__media {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(12, 28px);
    gap: 0;
    min-height: 360px;
    padding: 0 0 12px;
  }

  .kouwa-about__media::before {
    top: 24px;
    left: 10px;
    width: 58%;
    height: 70%;
    background-size: 22px 22px;
    transform: rotate(-2deg);
  }

  .kouwa-about__photo.--main {
    grid-column: 1 / 8;
    grid-row: 1 / 10;
  }

  .kouwa-about__photo.--pipe {
    grid-column: 8 / 13;
    grid-row: 2 / 7;
    margin-left: 8px;
    transform: none;
  }

  .kouwa-about__photo.--duct {
    grid-column: 6 / 13;
    grid-row: 8 / 13;
    margin-top: 5px;
    border-width: 5px;
    transform: translateX(0);
  }

  .kouwa-about__photo.--conveyor {
    grid-column: 2 / 6;
    grid-row: 9 / 13;
    align-self: end;
    margin-right: 6px;
    border-width: 4px;
    transform: translate(-4%, 4%);
  }
}

.l-drawer {
  display: block !important;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .38s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .38s;
}

.l-drawer .modal__container {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  animation: none !important;
  transition: opacity .38s cubic-bezier(.22, 1, .36, 1), transform .46s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.l-drawer__bg,
.l-drawer__content {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.l-drawer[aria-hidden="true"] {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.l-drawer[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.l-drawer[aria-hidden="false"] .modal__container {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .l-drawer,
  .l-drawer .modal__container {
    transition: none;
  }
}

@media (max-width: 1023.98px) {
  .l-drawer__bg,
  .l-drawer .modal__container,
  .l-drawer__wrapper {
    background-color: #fff;
  }

  .l-drawer__wrapper {
    min-height: 100svh;
  }

  .l-drawer__header {
    background: transparent;
  }

  .l-drawer__container {
    align-items: flex-start;
    padding: 8px 0 72px;
  }

  .l-drawer__content {
    max-width: none;
    margin: 0;
    padding: 0 34px;
  }

  .l-drawer__logo,
  .l-drawer__bottom {
    display: none;
  }

  .l-drawer__nav__wrapper {
    transform: none;
  }

  .l-drawer__nav {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
  }

  .l-drawer__list {
    flex: none;
    width: 100%;
    gap: 0;
  }

  .l-drawer__list__item {
    padding: .4rem 0;
  }

  .l-drawer__list__link {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    color: var(--kouwa-accent);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 2px;
    text-decoration: none;
  }

  .l-drawer__list__link .ja {
    color: rgba(230, 57, 119, .62);
    font-size: .82rem;
    letter-spacing: .1em;
  }

  .l-drawer__sub__list {
    margin-top: 12px;
    gap: 12px;
  }

  .l-drawer__sub__list__item {
    display: block;
  }

  .l-drawer__sub__list__item::before {
    display: none;
  }

  .l-drawer__sub__list__link {
    display: inline-block;
    overflow: hidden;
    color: var(--kouwa-accent);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 2px;
    text-decoration: none;
  }
}

@media (min-width: 576px) and (max-width: 1023.98px) {
  .l-drawer__content {
    padding-right: 48px;
    padding-left: 48px;
  }

  .l-drawer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
  }
}

.kouwa-footer {
  background: #070707;
  color: #fff;
}

.kouwa-footer__inner {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(56px, 7vw, 92px) clamp(24px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.kouwa-footer__brand {
  max-width: 560px;
}

.kouwa-footer__logo {
  display: inline-block;
  max-width: min(420px, 100%);
}

.kouwa-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.kouwa-footer__lead {
  margin-top: 24px;
  color: var(--kouwa-accent-soft);
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .08em;
}

.kouwa-footer__info {
  margin-top: 20px;
  color: rgba(255, 255, 255, .48);
  font-size: .82rem;
  line-height: 2;
  letter-spacing: .04em;
}

.kouwa-footer__nav h2 {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: var(--kouwa-accent);
  font-family: var(--font-roboto);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .3em;
}

.kouwa-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kouwa-footer__nav a,
.kouwa-footer__subnav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .56);
  font-size: .86rem;
  line-height: 1.55;
  letter-spacing: .04em;
  transition: color .3s ease;
}

.kouwa-footer__nav a::before {
  content: ">";
  color: var(--kouwa-accent);
  font-family: var(--font-roboto);
  font-size: .78rem;
  line-height: 1;
}

.kouwa-footer__nav a:hover,
.kouwa-footer__nav a:focus-visible,
.kouwa-footer__subnav a:hover,
.kouwa-footer__subnav a:focus-visible {
  color: #fff;
}

.kouwa-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(24px, 4vw, 56px);
}

.kouwa-footer__copy {
  color: rgba(255, 255, 255, .28);
  font-family: var(--font-roboto);
  font-size: .68rem;
  line-height: 1.5;
  letter-spacing: .18em;
}

.kouwa-footer__subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.kouwa-footer__subnav a {
  color: rgba(255, 255, 255, .3);
  font-size: .72rem;
  letter-spacing: .08em;
}

@media (max-width: 1023.98px) {
  .kouwa-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kouwa-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .kouwa-footer__inner {
    grid-template-columns: 1fr;
    padding: 52px 20px 44px;
  }

  .kouwa-footer__logo {
    max-width: 320px;
  }

  .kouwa-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 20px 22px;
  }

  .kouwa-footer__subnav {
    justify-content: flex-start;
  }
}

/* ドロワー開閉: .l-drawer は display:none が基底のため、開時に表示する
   (旧テンプレートは MicroModal の is-open 付与に依存していたが現JSは aria-hidden のみ切替) */
.l-drawer[aria-hidden="false"] {
  display: block;
}

/* Top contact: align the background with Kouwa's industrial work. */
.aside-contact {
  background-image:
    linear-gradient(115deg, rgba(8, 15, 25, .84) 0%, rgba(8, 15, 25, .58) 52%, rgba(230, 57, 119, .2) 100%),
    url("../../images/top/works-bg-kouwa.jpg");
  background-position: center 52%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.aside-contact__card {
  background-color: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .24);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@media (max-width: 767.98px) {
  .aside-contact {
    background-position: 62% center;
  }
}

/* Top company: editorial introduction with a static photo collage. */
.top-company {
  margin-top: 0;
  padding: clamp(88px, 11vw, 160px) 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(230, 57, 119, .055) 0 1px, transparent 1px),
    linear-gradient(rgba(230, 57, 119, .055) 0 1px, transparent 1px),
    #f7f5f2;
  background-size: 64px 64px;
}

.top-company .container {
  position: relative;
}

.top-company .container::before {
  content: none;
  position: absolute;
  top: -72px;
  right: -2vw;
  color: rgba(230, 57, 119, .08);
  font-family: var(--font-roboto);
  font-size: clamp(6rem, 15vw, 13rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  pointer-events: none;
}

.top-company__heading {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.top-company__content {
  display: grid !important;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  margin-top: 0;
}

.top-company__sp {
  display: none !important;
}

.top-company__menu__list__wrapper {
  display: flex !important;
  flex-direction: column;
}

.top-company__menu__list__wrapper::before {
  content: none;
  display: none;
  margin-bottom: 16px;
  color: var(--kouwa-accent);
  font-family: var(--font-roboto);
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.035em;
  order: 1;
}

.top-company__menu__list__wrapper::after {
  content: "確かな技術とチームワークで、現場の安全と産業の未来を支える。";
  display: block;
  max-width: 400px;
  margin-top: 28px;
  color: #555;
  font-size: .94rem;
  line-height: 2;
  letter-spacing: .06em;
  order: 2;
}

.top-company__menu__list {
  gap: 0;
  margin-top: clamp(40px, 5vw, 68px);
  border-top: 1px solid rgba(27, 30, 41, .18);
  order: 3;
}

.top-company__menu__item {
  border-bottom: 1px solid rgba(27, 30, 41, .18);
}

.top-company__menu__link {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  width: 100%;
  padding: 20px 4px;
  color: #1b1e29;
  line-height: 1.4;
  transition: color .3s ease, padding .3s ease;
}

.top-company__menu__link::before {
  content: "0" counter(company-link);
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  color: var(--kouwa-accent);
  font-family: var(--font-roboto);
  font-size: .72rem;
  font-weight: 700;
  opacity: 1;
  transform: none;
}

.top-company__menu__list {
  counter-reset: company-link;
}

.top-company__menu__item {
  counter-increment: company-link;
}

.top-company__menu__link::after {
  content: "↗";
  position: static;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 1px solid rgba(27, 30, 41, .25);
  border-radius: 50%;
  background: none;
  color: #1b1e29;
  font-size: 1rem;
  line-height: 32px;
  text-align: center;
  opacity: 1;
  transform: none;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}

.top-company__menu__link .\:en {
  grid-column: 2;
  grid-row: 1;
  color: #1b1e29 !important;
  font-family: var(--font-roboto);
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  text-shadow: none;
}

.top-company__menu__link .\:ja {
  display: block;
  grid-column: 2;
  grid-row: 2;
  margin-top: 5px;
  color: #777;
  font-size: .72rem;
  line-height: 1.4;
  letter-spacing: .1em;
  opacity: 1;
}

.top-company__menu__link:hover,
.top-company__menu__link:focus-visible {
  padding-right: 0;
  padding-left: 10px;
}

.top-company__menu__link:hover::after,
.top-company__menu__link:focus-visible::after {
  border-color: var(--kouwa-accent);
  background: var(--kouwa-accent);
  color: #fff;
}

.top-company__menu__list__wrapper > .c-button__black {
  margin-top: 34px !important;
  order: 4;
}

.top-company__card__list {
  display: grid;
  position: static;
  grid-template-columns: 1.08fr 1fr;
  grid-template-rows: clamp(360px, 31vw, 430px);
  gap: 16px;
  width: auto;
  aspect-ratio: auto;
  margin: 0;
}

@media (min-width: 1024px) {
  .top-company__card__list {
    align-self: start;
    margin-top: 0;
  }
}

.top-company__card__item,
.top-company__card__item.--active {
  position: relative;
  inset: auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #1b1e29;
}

.top-company__card__item:first-child {
  grid-row: auto;
}

.top-company__card__link {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  padding: 0;
  border: 0;
}

.top-company__card__img,
.top-company__card__img picture,
.top-company__card__img img {
  display: block;
  width: 100%;
  height: 100%;
}

.top-company__card__img {
  border-radius: 0;
}

.top-company__card__img img {
  object-fit: cover;
  transition: transform .7s cubic-bezier(.165, .84, .44, 1), filter .5s ease;
}

.top-company__greeting-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 16px;
  background: #fff;
}

.top-company__greeting-logo img {
  display: block;
  width: min(42%, 180px);
  height: auto;
  object-fit: contain;
  filter: invert(51%) sepia(76%) saturate(1800%) hue-rotate(305deg) brightness(101%) contrast(88%);
}

.top-company__greeting-logo span {
  color: #e95d84;
  font-family: "Roboto", sans-serif;
  font-size: clamp(1.3rem, 2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1;
}

.top-company__card__item:first-child .top-company__card__img img {
  object-position: 50% center;
}

.top-company__card__item:last-child .top-company__card__img img {
  object-position: 86% center;
}

.top-company__card__tit {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  margin: 0;
  padding: 56px 22px 20px;
  background: linear-gradient(to top, rgba(10, 15, 24, .9), rgba(10, 15, 24, .42) 58%, transparent);
  color: #fff;
}

.top-company__card__tit .\:en {
  font-family: var(--font-roboto);
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: 500;
}

.top-company__card__tit .\:ja {
  margin-top: 5px;
  font-size: .74rem;
  letter-spacing: .1em;
}

.top-company__card__tit .c-button__white__arrow {
  display: none;
}

.top-company__card__link:hover .top-company__card__img img,
.top-company__card__link:focus-visible .top-company__card__img img {
  transform: scale(1.045);
  filter: brightness(.88);
}

.top-company__card__link:hover .top-company__greeting-logo img,
.top-company__card__link:focus-visible .top-company__greeting-logo img {
  filter: invert(51%) sepia(76%) saturate(1800%) hue-rotate(305deg) brightness(101%) contrast(88%);
}

@media (max-width: 1023.98px) {
  .top-company__content {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .top-company__menu__list__wrapper::after {
    max-width: 560px;
  }

  .top-company__card__list {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: clamp(340px, 43vw, 410px);
  }
}

@media (max-width: 767.98px) {
  .top-company__content {
    gap: 0;
  }

  .top-company__card__list {
    display: none;
  }
}

@media (max-width: 575px) {
  .top-company {
    padding: 76px 0 84px;
    background-size: 40px 40px;
  }

  .top-company .container::before {
    content: none;
  }

  .top-company__heading {
    margin-bottom: 40px;
  }

  .top-company__menu__list__wrapper::before {
    display: none;
  }

  .top-company__menu__list__wrapper::after {
    margin-top: 20px;
    font-size: .86rem;
  }

  .top-company__menu__list {
    margin-top: 34px;
  }

  .top-company__menu__link {
    grid-template-columns: 34px 1fr auto;
    padding: 17px 2px;
  }

  .top-company__card__list {
    grid-template-columns: 1fr;
    grid-template-rows: 400px 190px;
    gap: 8px;
  }

  .top-company__card__item:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .top-company__card__item:first-child .top-company__card__img img {
    object-position: 58% center;
  }

  .top-company__card__item:last-child .top-company__card__img img {
    object-position: 62% center;
  }

  .top-company__card__tit {
    padding: 48px 14px 14px;
  }

  .top-company__card__tit .\:en {
    font-size: 1.45rem;
  }
}

/* Top hero catchphrase */
.top-kv__catch {
  right: auto;
  bottom: clamp(32px, 5vw, 72px);
  left: clamp(24px, 5vw, 72px);
}

.top-kv__catch__text {
  writing-mode: horizontal-tb;
}

@media (max-width: 575px) {
  .top-kv__catch {
    bottom: 40px;
    left: 18px;
  }

}

/* Top service */
.top-service {
  overflow: clip;
  background:
    linear-gradient(90deg, rgba(230, 57, 119, .04) 0 1px, transparent 1px),
    linear-gradient(rgba(230, 57, 119, .04) 0 1px, transparent 1px),
    #f7f5f2;
  background-size: 64px 64px;
}

.top-service__heading {
  color: var(--kouwa-accent);
  font-size: clamp(3.5rem, 4.5vw, 4.5rem);
  letter-spacing: -.035em;
  text-align: center;
}

.top-service__heading .container::after {
  display: block;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  color: #1b1e29;
  content: "事業内容";
  font-family: var(--font-base);
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .12em;
  transform: translateX(-50%);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .top-service__wrapper {
    padding-top: 34px;
  }
}

.top-service__heading .container {
  position: relative;
}

.top-service__heading__inner {
  display: inline-block;
  color: var(--kouwa-accent) !important;
  font-weight: 500;
  line-height: .78;
}

.top-service__heading__inner::before {
  content: none;
}

.top-service__heading__inner::after {
  content: none;
}

.top-service__item {
  --service-no: "01";
  border-top: 0;
  background:
    linear-gradient(90deg, rgba(230, 57, 119, .04) 0 1px, transparent 1px),
    linear-gradient(rgba(230, 57, 119, .04) 0 1px, transparent 1px),
    #f7f5f2;
  background-size: 64px 64px;
}

.top-service__item.--02 {
  --service-no: "02";
}

.top-service__item.--03 {
  --service-no: "03";
}

.top-service__item.--04 {
  --service-no: "04";
}

.top-service__item__heading {
  display: flex;
  align-items: center;
  height: 55px;
  padding: 0;
  border-top: 1px solid rgba(23, 26, 32, .22);
  color: transparent;
  font-size: 0;
}

.top-service__item__heading .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 25px;
  margin-right: 14px;
  border: 1px solid rgba(230, 57, 119, .36);
  border-radius: 999px;
  background: rgba(230, 57, 119, .08);
  color: var(--kouwa-accent) !important;
  font-family: var(--font-roboto);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.top-service__item__heading::after {
  color: #555960;
  content: "SCAFFOLDING";
  font-family: var(--font-roboto);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
}

.top-service__item.--02 .top-service__item__heading::after {
  content: "PIPING";
}

.top-service__item.--03 .top-service__item__heading::after {
  content: "DUCT RENEWAL";
}

.top-service__item.--04 .top-service__item__heading::after {
  content: "CONVEYOR RENEWAL";
}

.top-service__item__wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  height: clamp(475px, 42vw, 560px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 26, 32, .1);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(43, 32, 36, .045);
}

.top-service__item__wrapper > div {
  grid-column: auto !important;
  grid-row: auto !important;
  min-width: 0;
}

.top-service__item.--02 .top-service__item__wrapper > div:first-child,
.top-service__item.--04 .top-service__item__wrapper > div:first-child {
  order: 2;
}

.top-service__item__img {
  height: 100%;
  min-height: 475px;
  margin: 0;
  overflow: hidden;
  aspect-ratio: auto;
}

.top-service__item__img img {
  filter: saturate(.88) contrast(1.02);
  transform: scale(1.002);
  transition: filter .65s ease, transform .9s cubic-bezier(.165, .84, .44, 1);
}

.top-service__item__wrapper:hover .top-service__item__img img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.045);
}

.top-service__item__inner {
  position: relative;
  z-index: 0;
  height: 100%;
  padding: clamp(42px, 5vw, 72px);
  overflow: hidden;
  background: rgba(255, 255, 255, .98);
  color: #171a20;
}

.top-service__item__inner::before {
  position: absolute;
  z-index: -1;
  top: -28px;
  right: -10px;
  color: rgba(230, 57, 119, .055);
  content: var(--service-no);
  font-family: var(--font-roboto);
  font-size: clamp(8rem, 14vw, 13rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.08em;
}

.top-service__item__title {
  position: relative;
  margin: 0 0 30px;
  padding-bottom: 26px;
  border-bottom: 0;
  color: #171a20;
  font-size: clamp(1.75rem, 2.7vw, 2.55rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .1em;
}

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

.top-service__item__text {
  max-width: 34em;
  color: #5d6067;
  font-size: .94rem;
  line-height: 2;
  letter-spacing: .075em;
}

.top-service .top-service__item .c-button__black {
  margin-top: 34px !important;
  padding: 15px 40px;
  border-color: var(--kouwa-accent) !important;
  border-radius: 5px;
  background: var(--kouwa-accent) !important;
  color: #fff !important;
}

.top-service .top-service__item .c-button__black::after {
  content: none;
}

.top-service .top-service__item .c-button__black:hover,
.top-service .top-service__item .c-button__black:focus-visible {
  border-color: var(--kouwa-accent-dark) !important;
  background: var(--kouwa-accent-dark) !important;
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .top-service {
    padding-top: 82px !important;
  }

  .top-service__heading {
    position: sticky;
    z-index: 0;
    top: 64px;
    min-height: 610px;
    margin-bottom: 176px;
    font-size: clamp(3.25rem, 16vw, 4.5rem);
    letter-spacing: -.035em;
  }

  .top-service__heading .container::after {
    z-index: 5;
    top: calc(100% + 12px);
    padding: 4px 12px 5px;
    border-radius: 999px;
    background: #f7f5f2;
    font-size: .7rem;
    line-height: 1;
  }

  .top-service__wrapper {
    margin-top: -650px;
  }

  .top-service__item {
    position: sticky;
    top: 184px;
    height: clamp(540px, calc(100svh - 236px), 610px);
    min-height: 540px;
    margin-bottom: 132px;
    padding-bottom: 0;
  }

  .top-service__item.--01 {
    z-index: 1;
    top: 184px;
    margin-bottom: 132px;
  }

  .top-service__item.--02 {
    z-index: 2;
    top: 228px;
    margin-bottom: 88px;
  }

  .top-service__item.--03 {
    z-index: 3;
    top: 272px;
    margin-bottom: 44px;
  }

  .top-service__item.--04 {
    z-index: 4;
    top: 316px;
    min-height: 540px;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .top-service__item > .container {
    height: 100%;
  }

  .top-service__item__heading {
    height: 48px;
  }

  .top-service__item__wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, .78fr) minmax(0, 1.22fr);
    height: calc(100% - 48px);
    min-height: 0;
    border-radius: 5px;
    box-shadow: 0 10px 26px rgba(43, 32, 36, .045);
  }

  .top-service__item.--02 .top-service__item__wrapper > div:first-child,
  .top-service__item.--04 .top-service__item__wrapper > div:first-child {
    order: 0;
  }

  .top-service__item__img {
    height: 100%;
    min-height: 0;
  }

  .top-service__item__inner {
    justify-content: center;
    padding: 22px 24px 24px;
  }

  .top-service__item__inner::before {
    top: -12px;
    font-size: 8rem;
  }

  .top-service__item__title {
    margin-bottom: 16px;
    padding-bottom: 14px;
    font-size: 1.4rem;
  }

  .top-service__item__text {
    font-size: .84rem;
    line-height: 1.75;
  }

  .top-service .top-service__item .c-button__black {
    margin-top: 18px !important;
  }
}
