@charset "UTF-8";
/* =========================================================
   top.css — TOP（Figma 272:84 TOP_PC 1440x4973）
   ========================================================= */

/* ---------- 共通: セクション見出し（head） ---------- */
.p-top-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 700;
  line-height: 1.5;
}
.p-top-head__en {
  color: var(--c-blue);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.p-top-head__title {
  color: var(--c-text);
  font-size: 28px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.p-top .c-more:not(.c-more--box) {
  min-height: 24px;
}
.p-top .c-more--box {
  min-height: 45px;
  padding-block: 0;
}

/* スライダー下: ドット + more */
.p-top-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  min-height: 24px;
}
.p-top-foot__more {
  margin-left: auto;
}
.p-top-empty {
  padding: 60px 0;
  color: var(--c-text-sub);
  font-size: 14px;
  text-align: center;
}

/* ---------- Hero (FV) 1618:4581 1440x810 ---------- */
.p-top-hero {
  position: relative;
  overflow: hidden;
  background: #9cc3ec;
}
.p-top-hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 810; /* 動画と同じ 16:9 を保つ（高さの上限を付けると横長画面で上下が見切れる） */
  min-height: 320px;
}
.p-top-hero__img,
.p-top-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  animation: p-top-hero-in 2.4s cubic-bezier(0.22, 1, 0.36, 1) both; /* 開いたときにゆっくり引く */
}
@keyframes p-top-hero-in {
  from {
    opacity: 0;
    transform: scale(1.12);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.p-top-hero__poster-sp {
  display: none;
}
.p-top-hero__controls {
  position: absolute;
  left: 3px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.p-top-hero__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 41, 51, 0.85);
  transition: opacity 0.2s;
}
.p-top-hero__btn:hover {
  opacity: 0.8;
}
.p-top-hero__btn:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 2px;
}
/* bi:volume-up-fill 1573:3986 24x24 */
.p-top-hero__btn--sound {
  width: 22px;
  height: 24px;
  padding: 4px 2px;
  border-radius: 15px;
}
/* not-started 1618:4580 31x31 */
.p-top-hero__btn--play {
  width: 31px;
  height: 31px;
  margin: 0 0 3px 0;
  border-radius: 50%;
}
.p-top-hero__btn img {
  flex: none;
}
.p-top-hero__btn .is-on,
.p-top-hero__btn .is-play {
  display: none;
}
.p-top-hero__btn--sound[aria-pressed="true"] .is-on {
  display: block;
}
.p-top-hero__btn--sound[aria-pressed="true"] .is-off {
  display: none;
}
.p-top-hero__btn--play[aria-pressed="false"] .is-play {
  display: block;
}
.p-top-hero__btn--play[aria-pressed="false"] .is-pause {
  display: none;
}

/* ---------- VISION 4905:14345（ヒーロー下 109px） ---------- */
.p-top-solution {
  margin-top: 109px;
}
.p-top-solution__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.p-top-solution__main {
  flex: 1 1 auto;
  min-width: 0;
}
.p-top-solution .p-top-head__title {
  line-height: 1.4;
}
.p-top-solution__list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 58px;
  margin-top: 27px;
}
.p-top-solution__item {
  position: relative;
  display: flex;
  flex-direction: column;
}
/* 項目の間の縦線（Figma 3919:22868: 項目・線の間はそれぞれ 29px、線は #EAF2FB） */
.p-top-solution__item + .p-top-solution__item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -29px;
  width: 1px;
  background: var(--c-blue-pale);
}
/* 1025〜1259px は 03 が2行目に回るので、行頭の線は出さない */
@media (min-width: 1025px) and (max-width: 1259px) {
  .p-top-solution__item:nth-child(3)::before {
    content: none;
  }
}
.p-top-solution__label,
.p-top-solution__num {
  color: var(--c-blue);
  font-weight: 500;
  line-height: 1.65;
  opacity: 0.25;
  font-family: var(--ff-base);
}
.p-top-solution__label {
  font-size: 11.26px;
}
/* 数字は VISION ラベルに重なる（Figma: ラベル top0 / 数字 top1.88 / 本文 top76.95） */
.p-top-solution__num {
  margin-top: -17px;
  font-size: 45.88px;
}
.p-top-solution__text {
  margin-top: -1px;
  color: var(--c-text);
  font-size: 20.64px;
  font-weight: 700;
  line-height: 1.45;
}
.p-top-solution__more {
  margin-top: 35px;
}
/* 3枚の斜めトリミング合成画像 5117:19010（478x261） */
.p-top-solution__img {
  flex: none;
  width: 478px;
  margin-top: 20px;
}
.p-top-solution__img img {
  width: 100%;
  height: 261px;
  object-fit: cover;
}

/* ---------- SERVICE 3919:22866（y1349–1817） ---------- */
.p-top-service {
  margin-top: 152px;
}
.p-top-service__top {
  display: flex;
  align-items: flex-end;
  gap: 73px;
}
.p-top-service__chips {
  margin-bottom: 4px;
}
.p-top-service__slider {
  --slider-btn-x: -21px;
  margin-top: 30px;
  padding-inline: 1px;
}
.p-top-service-card {
  position: relative;
  display: block;
  width: 270px;
  height: 332px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--c-white);
  box-shadow: 0 0 14.7px -2px rgba(207, 213, 219, 0.59);
}
.p-top-service-card[hidden] {
  display: none;
}
.p-top-service-card__img {
  height: 202px;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  background: #e6ebf1;
}
.p-top-service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.p-top-service-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px 0;
}
.p-top-service-card__name {
  color: var(--c-text);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
}
.p-top-service-card__text {
  color: var(--c-text-sub);
  font-size: 14px;
  line-height: 1.65;
}
.p-top-service-card:hover .p-top-service-card__img img {
  transform: scale(1.05);
}
.p-top-service-card:hover .p-top-service-card__name {
  color: var(--c-blue);
}

/* ---------- WORKS 1094:789（y1895–2600, 背景 #EAF2FB） ---------- */
.p-top-works {
  margin-top: 115px;
  padding: 49px 0 63px;
  background: var(--c-blue-pale);
}
/* 施工事例の「すべて／外装／内装」: ホバー時の色変化・アニメーションなし */
.p-top-works__filters .c-chip {
  transition: none;
}
.p-top-works__filters .c-chip:not(.is-active):hover {
  background: var(--chip-bg);
}
.p-top-works__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 53px;
  margin-top: 40px;
}
.p-top-works__slider {
  --slider-btn-x: -21px;
  margin-top: 40px;
  padding-inline: 1px;
}
.p-top-works__slide {
  display: flex;
  width: 354px;
}
.p-top-works__slide[hidden] {
  display: none;
}
.p-top-works .c-card-works__title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
} /* TOPは1行（Figma同様） */
.p-top-works .p-top-foot {
  margin-top: 40px;
}

/* ---------- 私たちについて / ESG 295:1543 / 295:1548（y2600–2900） ---------- */
.p-top-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.p-top-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--c-white);
}
.p-top-banner--esg {
  background: var(--c-blue);
}
.p-top-banner__img {
  position: absolute;
  top: 1px;
  right: 0;
  bottom: 0;
  width: 448px;
  max-width: 62.3%;
}
.p-top-banner__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-top-banner__img::after {
  content: "";
  position: absolute;
  inset: 0;
}
.p-top-banner--about .p-top-banner__img::after {
  background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
}
.p-top-banner--esg .p-top-banner__img::after {
  background: linear-gradient(
    to right,
    var(--c-blue) 0%,
    rgba(77, 111, 150, 0) 72.1%,
    rgba(136, 159, 185, 0) 100%
  );
}
.p-top-banner__body {
  position: relative;
  z-index: 1;
  padding: 72px 90px 0;
}
.p-top-banner__title {
  color: var(--c-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}
.p-top-banner__text {
  margin-top: 14px;
  color: var(--c-text-sub);
  font-size: 14px;
  line-height: 1.8;
}
.p-top-banner__more {
  margin-top: 14px;
  min-width: 114px;
}
.p-top-banner--esg .p-top-banner__title {
  color: var(--c-white);
}
.p-top-banner--esg .p-top-banner__text {
  color: #cfe0f2;
  font-size: 13px;
  line-height: 1.75;
}
.p-top-banner--esg .p-top-banner__more {
  margin-top: 18px;
  border-color: var(--c-white);
  color: var(--c-white);
}
.p-top-banner--esg .p-top-banner__more:hover {
  background: var(--c-white);
  color: var(--c-blue);
}

/* ---------- NEWS 295:1614 / BLOG 295:1642（y2987–3392） ---------- */
.p-top-media {
  margin-top: 87px;
}
.p-top-media__inner {
  display: grid;
  grid-template-columns: minmax(0, 468px) minmax(0, 568px);
  justify-content: space-between;
  padding-left: calc(var(--gutter) + 3px);
  padding-right: calc(var(--gutter) + 2px);
}
.p-top-media .p-top-head {
  padding-block: 3px;
}
.p-top-news__list,
.p-top-blog__list {
  height: 285px;
  margin-top: 16px;
}
.p-top-blog__list {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #d9e1e8 transparent;
}
.p-top-blog__list > .c-card-blog {
  flex: 0 0 240px;
  border-bottom: 1px solid #dce3ea;
}
.p-top-media__more {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* ---------- Recruit 295:1681（y3485–3853） ---------- */
.p-top-recruit {
  position: relative;
  margin-top: 113px;
  overflow: hidden;
  background: var(--c-blue-pale);
}
.p-top-recruit__img {
  position: absolute;
  top: 0;
  right: 0;
  width: 775px;
  height: 100%;
}
.p-top-recruit__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
.p-top-recruit__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-block: 72px;
  min-height: 368px;
}
.p-top-recruit__text {
  max-width: 546px;
  color: var(--c-text-sub);
  font-size: 14px;
  line-height: 1.85;
}
.p-top-recruit__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.p-top-recruit__links > li {
  display: flex;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .p-top-recruit__img {
    width: 55%;
  }
  .p-top-recruit__img::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
    width: 30%;
    background: linear-gradient(
      to right,
      var(--c-blue-pale),
      rgba(234, 242, 251, 0)
    );
  }
}
@media (max-width: 1024px) {
  .p-top-solution__inner {
    flex-direction: column;
  }
  .p-top-solution__img {
    width: 100%;
    max-width: 640px;
  }
  .p-top-solution__img img {
    height: auto;
    aspect-ratio: 478 / 261;
  }
  .p-top-banners {
    grid-template-columns: 1fr;
  }
  .p-top-banner__img {
    max-width: 60%;
  }
  .p-top-media__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 64px;
    padding-inline: var(--gutter);
  }
  .p-top-news__list,
  .p-top-blog__list {
    height: auto;
  }
  .p-top-recruit__img {
    position: relative;
    width: 100%;
    height: 280px;
  }
  .p-top-recruit__img::before {
    display: none;
  }
  .p-top-recruit__inner {
    min-height: 0;
    padding-block: 48px 56px;
  }
}
/* =========================================================
   SP（≤767px） Figma TOP_SP 656:1047（375x5592）
   ========================================================= */
@media (max-width: 767px) {
  /* 見出し head（11px/21px, 1.55） */
  .p-top-head__en {
    font-size: 11px;
    letter-spacing: 0.05em;
    line-height: 1.55;
  }
  .p-top-head__title {
    font-size: 21px;
    letter-spacing: 0;
    line-height: 1.55;
  }
  .p-top .c-more:not(.c-more--box) {
    min-height: 19px;
  }

  /* スライダー下: ドット（中央）→ more（中央）を縦積み */
  .p-top-foot {
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    min-height: 0;
  }
  .p-top-foot__more {
    margin-left: 0;
  }
  .p-top-empty {
    padding: 40px 0;
  }

  /* ---------- Hero (FV) 656:1056 375x500 ---------- */
  .p-top-hero__media {
    aspect-ratio: auto;
    height: 500px;
    min-height: 0;
    max-height: none;
  }
  .p-top-hero__img,
  .p-top-hero__video {
    object-position: center;
  }
  /* 動画が再生されるまでの静止画（タップで再生） */
  .p-top-hero__poster-sp {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    animation: p-top-hero-in 2.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .p-top-hero.is-started .p-top-hero__poster-sp {
    display: none;
  }
  /* bi:volume-up-fill 1618:4925（x3, 下3px）/ not-started 1618:4926（x27, 下0） */
  .p-top-hero__controls {
    left: 3px;
    bottom: 3px;
    gap: 4px;
  }
  /* SP は音声・再生とも 24px の円 */
  .p-top-hero__btn--sound,
  .p-top-hero__btn--play {
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
  }
  .p-top-hero__btn--sound img {
    width: 15px;
    height: auto;
  }
  .p-top-hero__btn--play img {
    width: 11px;
    height: auto;
  }

  /* ---------- our solution 656:1063 ---------- */
  .p-top-solution {
    margin-top: 44px;
  }
  .p-top-solution__inner {
    gap: 25px;
  }
  .p-top-solution .p-top-head__title {
    font-size: 20px;
    letter-spacing: 0.02em;
    line-height: 1.4;
  }
  /* Group 280 3919:22869: 1列の縦並び。各行は左に VISION＋番号（40px）、右に本文 */
  .p-top-solution__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 25px;
  }
  .p-top-solution__item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
    min-height: 60px;
  }
  .p-top-solution__item + .p-top-solution__item::before {
    content: none;
  }
  .p-top-solution__label,
  .p-top-solution__num {
    grid-area: 1 / 1;
    align-self: start;
  }
  .p-top-solution__label {
    font-size: 12px;
  }
  /* 数字はラベルの 2px 下から重ねる */
  .p-top-solution__num {
    margin-top: 2px;
    font-size: 35px;
    line-height: 1.65;
  }
  .p-top-solution__text {
    grid-area: 1 / 2;
    margin-top: 0;
    font-size: 15px;
    line-height: 1.65;
  }
  .p-top-solution__more {
    margin-top: 9px;
  }
  .p-top-solution__img {
    width: 100%;
    max-width: none;
    margin-top: 0;
  }
  .p-top-solution__img img {
    height: auto;
    aspect-ratio: 478 / 261; /* PC と同じ画像を見切れずに表示 */
    border-radius: 4px;
  }

  /* ---------- Service 656:1098 ---------- */
  .p-top-service {
    margin-top: 57px;
  }
  .p-top-service__top {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .p-top-service__chips {
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 0;
  }
  .p-top-service__label {
    flex: none;
    color: var(--c-text-sub);
    font-size: 13px;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
  }
  .p-top-service__slider {
    margin-top: 24px;
    padding-inline: 0;
    --slider-btn-top-sp: 145px; /* カード上端+133（トラックの上下余白12px分を加算） */
  }
  .p-top-service .p-top-foot {
    margin-top: 25px;
  }
  /* card-service 3093:32181（210x258） */
  .p-top-service-card {
    width: 210px;
    height: 258px;
    border-radius: 3px;
    box-shadow: 0 0 11.5px -1.5px rgba(207, 213, 219, 0.59);
  }
  .p-top-service-card__img {
    height: 158px;
    border-radius: 3px 3px 0 0;
  }
  .p-top-service-card__body {
    gap: 4.7px;
    padding: 9.4px 7px 0 8px;
  }
  .p-top-service-card__name {
    font-size: 14px;
  }
  .p-top-service-card__text {
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .p-top-service-card__more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--c-blue);
    font-size: 11px;
    font-weight: 700;
    line-height: normal;
  }

  /* ---------- Works 656:1172（背景グラデ #EAF2FB→#DCEBFB） ---------- */
  .p-top-works {
    margin-top: 54px;
    padding: 40px 0 26px;
    background: linear-gradient(to bottom, var(--c-blue-pale), #dcebfb 95.85%);
  }
  .p-top-works__filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 24px;
  }
  .p-top-works__select {
    width: 204px;
  }
  .p-top-works__slider {
    margin-top: 32px;
    padding-inline: 0;
    --slider-btn-top-sp: 119px;
  }
  .p-top-works__slide {
    width: 210px;
  }
  .p-top-works .p-top-foot {
    margin-top: 22px;
    gap: 19px;
  }

  /* ---------- 私たちについて / ESG 3919:22895（縦積み 375x195 x2） ---------- */
  .p-top-banners {
    grid-template-columns: 1fr;
  }
  .p-top-banner {
    height: 195px;
    min-height: 0;
  }
  .p-top-banner__img {
    top: 0;
    right: -20px;
    width: 292px;
    max-width: none;
    opacity: 1;
  }
  .p-top-banner--esg .p-top-banner__img {
    top: 1px;
    right: -7px;
    width: 290px;
  }
  .p-top-banner__body {
    padding: 24px 20px 0;
  }
  .p-top-banner__title {
    font-size: 18px;
    line-height: 1.55;
  }
  .p-top-banner__text,
  .p-top-banner--esg .p-top-banner__text {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.75;
  }
  .p-top-banner__more {
    margin-top: 13px;
  }
  .p-top-banner--esg .p-top-banner__more {
    margin-top: 18px;
  }

  /* ---------- NEWS 656:1248 / BLOG 656:1280（縦積み Frame 28） ---------- */
  .p-top-media {
    margin-top: 51px;
  }
  .p-top-media__inner {
    row-gap: 64px;
  }
  .p-top-news,
  .p-top-blog {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "head more" "list list";
    align-items: center;
    column-gap: 16px;
  }
  .p-top-media .p-top-head {
    grid-area: head;
    padding-block: 0;
  }
  .p-top-media .p-top-head__en {
    letter-spacing: 0.06em;
    line-height: 1.5;
  }
  .p-top-media .p-top-head__title {
    letter-spacing: 0.02em;
    line-height: 1.5;
  }
  .p-top-blog .p-top-head {
    gap: 6px;
  }
  .p-top-media__more {
    grid-area: more;
    margin: 0 23px 0 0;
  }
  .p-top-blog__slider {
    grid-area: list;
    min-width: 0;
  }
  .p-top-news__list,
  .p-top-blog__list {
    grid-area: list;
    height: auto;
    margin-top: 36px;
  }
  .p-top-blog__list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
  }
  .p-top-blog__list > .c-card-blog {
    flex: none;
  }

  /* ---------- Recruit (SP) 656:1320（本文 → 画像 375x181） ---------- */
  .p-top-recruit {
    display: flex;
    flex-direction: column;
    margin-top: 86px;
  }
  .p-top-recruit__img {
    order: 2;
    position: relative;
    width: 100%;
    height: 181px;
    margin-top: 38px;
  }
  .p-top-recruit__img img {
    object-position: left 20%;
  }
  .p-top-recruit__inner {
    gap: 16px;
    padding-block: 40px 0;
  }
  .p-top-recruit .p-top-head {
    gap: 6px;
  }
  .p-top-recruit__links {
    gap: 12px;
    margin-top: 9px;
  }
  .p-top-recruit .c-more {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-top-service-card__img img {
    transition: none;
  }
}

/* 狭い画面でスライダーの矢印がはみ出さないように */
body.home .l-main {
  overflow-x: clip;
}

/* タブレット: コンテナの外側余白が 20px しかなく、矢印（外へ 20px）が画面端で切れるので内側へ寄せる */
@media (min-width: 768px) and (max-width: 1199px) {
  .p-top-service__slider,
  .p-top-works__slider {
    --slider-btn-x: -12px;
  }
}
