@charset "UTF-8";

/* =====================================================
   TOP
   ===================================================== */

/* ===== ① ヒーロー ===== */
.hero {
  position: relative;
  height: 600px;
  margin-top: 30px;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .hero {
    margin-top: 63px;
  }
}

@media (max-width: 767px) {
  .hero {
    height: 460px;
    margin-top: 58px;
  }
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  opacity: 0;
  transition: opacity 500ms;
}

.hero__slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}

.hero__slide--01 {
  background-image: url("../images/top/hero01.webp");
}

.hero__slide--02 {
  background-image: url("../images/top/hero02.webp");
}

.hero__slide--03 {
  background-image: url("../images/top/hero03.webp");
}

.hero__slide--04 {
  background-image: url("../images/top/hero04.webp");
}

.hero__copy {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 40px 32px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.15em;
  color: #FFFFFF;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
  border: 2px solid #FFFFFF;
  transform: translate(-50%, -50%);
}

@media (max-width: 1024px) {
  .hero__copy {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .hero__copy {
    padding: 28px 22px;
    font-size: 28px;
  }
}

/* ===== ② エビアについて（斜めの帯） ===== */
.intro {
  position: relative;
  background: linear-gradient(
    -8deg,
    transparent 35%,
    #EEEEEE 35%,
    #EEEEEE 65%,
    transparent 65%
  );
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  opacity: 0.66;
}

.intro .media-row {
  position: relative;
}

/* ===== ③ 事業内容（4事業のカード） ===== */
.service-top__title {
  margin-bottom: 40px;
}

.service-top__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 767px) {
  .service-top__list {
    grid-template-columns: 1fr;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card__title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.service-top__btn {
  margin-top: 40px;
  text-align: center;
}

/* ===== ④ 会社概要（写真と文の2列） ===== */
.company-top__title {
  margin: 45px 0;
}

.company-top__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0;
}

@media (max-width: 767px) {
  .company-top__row {
    flex-direction: column;
    gap: 24px;
  }
}

.company-top__photo {
  flex: 0 1 550px;
}

.company-top__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.company-top__body {
  display: flex;
  flex: 0 1 550px;
  flex-direction: column;
}

@media (max-width: 767px) {
  .company-top__photo,
  .company-top__body {
    flex: none;
    width: 100%;
  }
}

.company-top__btn {
  margin-top: auto;
  text-align: right;
}

@media (max-width: 767px) {
  .company-top__btn {
    margin-top: 24px;
    text-align: center;
  }
}
