@charset "UTF-8";

.page-top .contact {
  margin-top: 8rem;
}

.page-top {
  & .heading {
    --min-size: 45;
    --max-size: 80;
    font-size: var(--clamp-size);
    font-family: "Outfit", sans-serif;
    font-weight: 700;
  }

  @media (width >=769px) {
    gap: 1.5rem;
  }
}

.page-top .heading span {
  --min-size: 14;
  --max-size: 16;
  font-size: var(--clamp-size);
  margin-left: 1em;
  color: #ccc;
}


.videoSection {
  position: relative;
}

.topFvVideo {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
}

.topFvVideo video {
  width: 180%;
  height: auto;
  object-fit: contain;

  @media (width >=769px) {
    width: 90%;
    max-width: 1300px;
  }
}

.topFvTxt {
  position: absolute;
  width: 80%;
  max-width: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  mix-blend-mode: multiply;


  @media (width >=769px) {
    width: 70%;
  }
}
/* 1. 左からフェードイン keyframes */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* --- intro --- */
.intro {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 70vh;
  padding: 80px 0;
  overflow: hidden;
  background-color: #fff;
}

.intro_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(-45deg, 
    var(--main-color), 
    color-mix(in srgb, var(--main-color), #000 15%),
    var(--main-color),
    color-mix(in srgb, var(--main-color), #fff 20%)
  );
  background-size: 200% 200%;
  opacity: 1;
  animation: gradientFlow 10s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.introInnerWrapper {
  width: min(92%, 1000px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: left;
}

.intro .introHeading {
  --min-size: 26;
  --max-size: 30;
  font-size: var(--clamp-size);
  line-height: 1.4;
  margin-bottom: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.intro .text {
  --min-size: 14;
  --max-size: 16;
  font-size: var(--clamp-size);
  margin-bottom: 1.2rem;
  font-weight: 500;
  line-height: 1.7;
}

@media (width >= 769px) {
  .intro {
    min-height: 100vh;
    padding: 0;
  }

  .intro_bg {
    opacity: 0;
    background-size: 400% 400%;
    transition: opacity 1.5s ease-in-out;
  }

  .intro.is-active .intro_bg {
    opacity: 1;
    animation: gradientFlow 15s ease infinite;
  }

  .intro .introHeading {
    --min-size: 36;
    --max-size: 56;
    margin-bottom: 4rem;
  }

  .intro .text {
    --min-size: 18;
    --max-size: 22;
    margin-bottom: 1.5rem;
  }
}

/* 主な提供サービス */
.topRecommendedServiceLead {
  margin-top: 2rem;
  max-width: 78rem;
}

.topRecommendedServiceList {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 4rem;

  @media (width >=769px) {
    gap: 3rem;
  }
}

.topRecommendedServiceItem {
  background: var(--base-color);
  border-radius: 2rem;
  padding: 3rem 2rem;

  @media (width >=769px) {
    padding: 4rem;
  }
}

.topRecommendedServiceHead {
  margin-bottom: 2.5rem;
  max-width: 72rem;
}

.topRecommendedServiceLabel {
  color: var(--main-color);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topRecommendedServiceTitle {
  --min-size: 22;
  --max-size: 30;
  font-size: var(--clamp-size);
  line-height: 1.5;
  font-weight: 700;
  margin-top: 1rem;
}

.topRecommendedServiceDesc {
  margin-top: 1.5rem;
  color: #555;
}

.topRecommendedServiceLinks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 2rem;

  @media (width >=769px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
    margin-top: 4rem;
  }
}

.topRecommendedServiceLinks li {
  min-width: 0;
}

.topRecommendedServiceLink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  height: 100%;
  background: #fff;
  border: 0.1rem solid transparent;
  border-radius: 1.6rem;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;

  @media (width >=769px) {
    min-height: 12rem;
    padding: 2.4rem;
  }
}


.topRecommendedServiceLink:hover {
  border-color: var(--main-color);
  transform: translateY(-0.2rem);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.04);
}

.topRecommendedServiceLinkBody {
  flex: 1;
  min-width: 0;
}

.topRecommendedServiceLinkTitle {
  --min-size: 16;
  --max-size: 18;
  font-size: var(--clamp-size);
  font-weight: 700;
  line-height: 1.5;
}

.topRecommendedServiceLinkDesc {
  margin-top: 0.8rem;
  color: #666;
  line-height: 1.7;
  font-size: 1.4rem;
}

.topRecommendedServiceArrow {
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  width: 2.5rem;
  height: 1.2em;
  line-height: 1;
  color: #333;
  margin-top: 0;
  align-self: center;
}

.topRecommendedServiceArrow svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation-fill-mode: forwards;
  animation-duration: 0.6s;
  animation-timing-function: ease;
  transform: translate(-50%, -50%);
}

.topRecommendedServiceArrow .arrow-after {
  transform: translate(calc(-50% - 100%), -50%);
}

.topRecommendedServiceLink:hover .topRecommendedServiceArrow .arrow-before {
  animation-name: transformRightLeft;
  animation-delay: 0s;
}

.topRecommendedServiceLink:hover .topRecommendedServiceArrow .arrow-after {
  animation-name: transformLeftRight;
  animation-delay: 0.2s;
}

/* Cases */

.topCasesLead {
  margin-top: 2rem;
  max-width: 72rem;
}

.topCasesList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 4rem;

  @media (width >= 769px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }
}

.topCasesItem {
  min-width: 0;
}

.topCasesLink {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  height: 100%;

  background: #fff;
  border: 0.1rem solid #e7e7e7;
  border-radius: 2rem;
  padding: 2rem;

  transition: all 0.3s ease;

  @media (width >= 769px) {
    min-height: 14rem;
    padding: 2.4rem;
  }
}

.topCasesLink:hover {
  transform: translateY(-0.2rem);
  border-color: var(--main-color);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.05);
}

.topCasesContent {
  max-width: 44rem;
}

.topCasesTitle {
  --min-size: 17;
  --max-size: 22;
  font-size: var(--clamp-size);
  font-weight: 700;
  line-height: 1.5;
}

.topCasesText {
  margin-top: 0.8rem;
  color: #555;
  line-height: 1.7;
}

.topCasesArrow {
  width: 1.4rem;
  height: 1.4rem;
  border-right: 0.2rem solid currentColor;
  border-bottom: 0.2rem solid currentColor;
  transform: rotate(-45deg);
  flex-shrink: 0;
  color: #333;
  transition: transform 0.3s ease;
}

.topCasesLink:hover .topCasesArrow {
  transform: translateX(0.4rem) rotate(-45deg);
}


/* 選ばれる理由 */
.topReasonList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 4rem;

  @media (width >= 769px) {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
  }
}

.topReasonItem {
  position: relative;
  background: #fff;
  border-radius: 2rem;
  padding: 2.8rem 2.2rem 2.4rem;
  border: 0.1rem solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;

  @media (width >= 769px) {
    padding: 3.4rem 2.8rem 2.8rem;
  }
}

.topReasonItem::after {
  content: attr(data-number);
  position: absolute;
  top: 1.6rem;
  right: 2rem;
  font-family: "Outfit", sans-serif;
  font-size: 5.2rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.035);
  letter-spacing: -0.02em;
  pointer-events: none;
}

.topReasonItemLabel {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--main-color);
}

.topReasonItemTitle {
  --min-size: 18;
  --max-size: 22;
  font-size: var(--clamp-size);
  font-weight: 700;
  line-height: 1.5;
  margin-top: 1rem;
}

.topReasonItemText {
  margin-top: 1.4rem;
  color: #555;
  line-height: 1.8;

  @media (width >= 769px) {
    max-width: 34rem;
  }
}

/* お知らせ */
.topNews {
  .postList {
    margin-top: 3rem;
  }

  .postItemLink {
    display: block;
    padding: 2rem 0;
    transition: background-color 0.3s ease;

    @media (hover: hover) {
      &:hover {
        opacity: 0.7;
      }
    }
  }
    .postItem {
    border-bottom: 1px solid #E3E3E3;
    
    &:first-child {
      border-top: 1px solid #E3E3E3;
    }
  }
}
/* コラム一覧 */
.topColumn .columnItems .columnItem a img.thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 670;
  object-fit: cover;
  display: block;
  border-radius: 1.0rem;
}

.topColumn .columnItems .columnItem a {
  display: block;
}