/*
=========================================
Top Page
トップページ専用
=========================================
*/

.p-top {
  overflow: hidden;
}


/*
=========================================
Hero
=========================================
*/

.p-top-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  background: #fff;
}

.p-top-hero__slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.p-top-hero__slider .swiper-wrapper,
.p-top-hero__slider .swiper-slide {
  width: 100%;
  height: 100%;
}

.p-top-hero__slide {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
}

/*
各スライドの白いグラデーション
*/
.p-top-hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 48%,
    rgba(255, 255, 255, 0.3) 72%
  );
}

.p-top-hero__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.p-top-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: min(100% - 56px, 1280px);
  min-height: calc(100vh - var(--header-height));
  margin-inline: auto;
}

.p-top-hero__content {
  width: min(100%, 840px);
  padding: 90px 0 110px;
}

.p-top-hero__title {
  color: var(--color-primary);
  font-size: clamp(2rem, 4.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.75;
  letter-spacing: 0.12em;
}

.p-top-hero__text {
  margin-top: 32px;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 700;
  line-height: 2.4;
}

.p-top-hero__since {
  position: relative;
  display: inline-grid;
  gap: 3px;
  min-width: 230px;
  margin-top: 48px;
  padding: 16px 26px 16px 32px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 6px 6px 0 rgba(0, 58, 91, 0.1);
  backdrop-filter: blur(4px);
}

/* 左側のアクセントライン */
.p-top-hero__since::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 3px;
  background: var(--color-primary);
}


.p-top-hero__since span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.24em;
  opacity: 0.7;
}

/*
Heroコピーアニメーション
*/
.p-top-hero__title,
.p-top-hero__text,
.p-top-hero__since {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.p-top-hero__slide.swiper-slide-active .p-top-hero__title,
.p-top-hero__slide.swiper-slide-active .p-top-hero__text,
.p-top-hero__slide.swiper-slide-active .p-top-hero__since {
  opacity: 1;
  transform: translateY(0);
}

.p-top-hero__slide.swiper-slide-active .p-top-hero__text {
  transition-delay: 0.15s;
}

.p-top-hero__slide.swiper-slide-active .p-top-hero__since {
  transition-delay: 0.3s;
}


/*
scroll
*/
.p-top-hero__scroll {
  position: absolute;
  z-index: 4;
  bottom: 64px;
  left: 36px;
  writing-mode: vertical-rl;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.p-top-hero__scroll::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 70px;
  margin-top: 12px;
  margin-right: 4px;
  background: var(--color-primary);
  transform: scaleY(0);
  transform-origin: top;
  animation: heroScrollLine 1.2s ease-in-out infinite;
}

@keyframes heroScrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}


/*
=========================================
Strength
=========================================
*/

.p-top-strength {
  color: #fff;
  background: var(--color-primary);
}

.p-top-strength__inner {
  width: min(100% - 56px, 1280px);
  margin-inline: auto;
  padding: 42px 0 56px;
}

.p-top-strength__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.p-top-strength__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 36px;
}

.p-top-strength__item {
  padding: 0 40px;
  text-align: center;
}

.p-top-strength__item + .p-top-strength__item {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.p-top-strength__icon {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
}

.p-top-strength__icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.p-top-strength__name {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.6;
}

.p-top-strength__text {
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 2;
}


/*
=========================================
Section Common
=========================================
*/

.p-top-section {
  padding: 70px 0;
}

.p-top-section__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  width: min(100% - 56px, 1280px);
  margin-inline: auto;
}

.p-top-section__label {
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.5;
}

.p-top-section__title {
  margin-top: 10px;
  color: var(--color-primary);
  font-size: clamp(1.5rem, 1.3vw, 2.625rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0.1em;
}

.p-top-section__text {
  margin-top: 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 2.1;
}

.p-top-section__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 230px;
  min-height: 54px;
  margin-top: 32px;
  padding: 12px 24px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
}


/*
=========================================
Service Cards
=========================================
*/

.p-top-card-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.p-top-card {
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 22px rgba(0, 58, 91, 0.08);
}

.p-top-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.p-top-card__link:hover {
  opacity: 1;
}

.p-top-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.p-top-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.p-top-card__link:hover img {
  transform: scale(1.06);
}

.p-top-card__body {
  padding: 18px;
}

.p-top-card__title {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.6;
}

.p-top-card__text {
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.9;
}


/*
=========================================
Works
=========================================
*/

.p-top-works {
  background: var(--color-bg-light);
}

.p-top-work-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.p-top-work-card {
  background: #fff;
  border: 1px solid var(--color-border);
}

.p-top-work-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.p-top-work-card__link:hover {
  opacity: 1;
}

.p-top-work-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.p-top-work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.p-top-work-card__link:hover img {
  transform: scale(1.06);
}

.p-top-work-card__body {
  padding: 14px;
}

.p-top-work-card__category {
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.4;
}

.p-top-work-card__title {
  margin-top: 4px;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.5;
}

.p-top-work-card__tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 8px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
}


/*
=========================================
News
=========================================
*/

.p-top-news {
  background: #fff;
}

.p-top-news__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 72px;
  width: min(100% - 56px, 1280px);
  margin-inline: auto;
}

.p-top-news__title {
  color: var(--color-primary);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.5;
}

.p-top-news__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 190px;
  min-height: 50px;
  margin-top: 28px;
  padding: 10px 22px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
}

.p-top-news__list {
  border-top: 1px solid var(--color-border);
}

.p-top-news__item {
  display: grid;
  grid-template-columns: 120px 90px 1fr 24px;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.p-top-news__date {
  font-size: 0.875rem;
  font-weight: 700;
}

.p-top-news__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 0.6875rem;
  font-weight: 700;
}

.p-top-news__link {
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.p-top-news__arrow {
  color: var(--color-primary);
  font-weight: 800;
}


/*
=========================================
Responsive
=========================================
*/

@media (max-width: 1024px) {

  .p-top-hero,
  .p-top-hero__slider,
  .p-top-hero__slider .swiper-wrapper,
  .p-top-hero__slider .swiper-slide,
  .p-top-hero__slide,
  .p-top-hero__inner {
    min-height: calc(100vh - var(--header-height));
  }

  .p-top-hero__slide::before {
    background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0.75) 48%,
      rgba(255, 255, 255, 0.3) 72%
    );
  }

  .p-top-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
  }

  .p-top-hero__inner {
    width: min(100% - 32px, 1280px);
  }

  .p-top-hero__content {
    padding: 90px 0 180px;
  }

  .p-top-hero__scroll {
    display: none;
  }

  .p-top-strength__inner,
  .p-top-section__inner,
  .p-top-news__inner {
    width: min(100% - 32px, 1280px);
  }

  .p-top-strength__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }

  .p-top-strength__item:nth-child(odd) {
    border-left: none;
  }

  .p-top-section__inner,
  .p-top-news__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .p-top-card-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-top-work-list {
    grid-template-columns: repeat(2, 1fr);
  }
	.p-top-strength__name br{
		display:none;
	}
}


@media (max-width: 767px) {

  .p-top-hero__slide::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.7) 60%,
      rgba(255, 255, 255, 0.35) 100%
    );
  }

  .p-top-hero__content {
    padding: 64px 0 140px;
  }

  .p-top-hero__title {
    font-size: 1.9rem;
    line-height: 1.65;
  }

  .p-top-hero__text {
    margin-top: 24px;
    line-height: 2;
  }

  .p-top-hero__since {
    margin-top: 32px;
  }

	.p-top-strength__list {
	  grid-template-columns: repeat(2, 1fr);
		gap:8px 32px;
	}

	.p-top-strength__icon{
		width:80px;
		height:80px;
		margin-bottom:24px;
	}
	.p-top-strength__name{
		line-height:1.4;
	}
	.p-top-strength__name br{
		display:inline;
	}

	.p-top-strength__text{
		margin-top:4px;
		line-height:1.5;
		text-align:left;
		font-size:0.8rem;
	}

  .p-top-strength__item {
    padding: 0;
    border-left: none !important;
  }

  .p-top-section {
    padding: 52px 0;
  }

  .p-top-card-list,
  .p-top-work-list {
    grid-template-columns: 1fr;
  }

  .p-top-news__item {
    grid-template-columns: 80px 1fr 24px;
    gap: 8px 14px;
  }

  .p-top-news__date {
    grid-column: 1 / -1;
  }
}


/*
=========================================
視差・アニメーション軽減設定
=========================================
*/

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

  .p-top-hero__title,
  .p-top-hero__text,
  .p-top-hero__since {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .p-top-hero__scroll::after {
    animation: none;
    transform: scaleY(1);
  }
}