/* ============================================
   トップページ専用スタイル
   対応テンプレート: front-page.php
   ============================================ */

/* =============================================
   ヒーロー
============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  background: #1a1a1a;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
}

.hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  padding-bottom: 15%;
}

.hero__copy {
  color: #fff;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* =============================================
   Aboutセクション
============================================= */
.about-section--bleed-right {
  align-items: center;
}

.about__heading {
  font-size: 1.875rem; /* 30px */
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-bottom: 36px;
  color: var(--color-title);
}

.about__body {
  font-size: 0.875rem;
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 250%;
  letter-spacing: 2%;

  /* line-height: 2.2; */
}

.about__link {
  display: block;
  text-align: right;
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--color-text);
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.about__link:hover {
  opacity: 0.8;
}

.about-section--bleed-right .about__image img {
  height: 720px;
}

/* =============================================
   アクセスセクション
============================================= */
.access-section .section-header,
.news-section .section-header {
  margin-bottom: 24px;
}

.access-section .section-title,
.news-section .section-title {
  margin-bottom: 0;
}

/* =============================================
   サービスグリッド 2x2
============================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 700px;
  gap: 0;
}

.service-grid__item {
  position: relative;
  overflow: hidden;
}

.service-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-grid__item:hover img {
  transform: scale(1.05);
}

.service-grid__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px;
  transition: background 0.3s;
}

.service-grid__item:hover .service-grid__overlay {
  background: rgba(0,0,0,0.52);
}

.service-grid__en {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-bottom: 0;
}

.service-grid__label {
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.08em;
}

/* =============================================
   スライダーセクション
============================================= */
.slider-section {
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.slider-section .container {
  max-width: 100%;
  padding: 0;
}

.gallery-swiper {
  width: 100%;
  padding-bottom: 0 !important;
}

.gallery-swiper .swiper-slide {
  /* border-radius: 4px; */
  overflow: hidden;
  height: 500px;
}

.gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
  display: none;
}

.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}

.gallery-swiper .swiper-pagination-bullet-active {
  display: none;
}

/* =============================================
   レスポンシブ
   タブレット: 800px - 1279px
   スマホ:     〜799px
============================================= */
@media (min-width: 800px) and (max-width: 1279px) {
  /* About */
  .about__heading { font-size: 1.6rem; }
  .about-section--bleed-right .about__image img { height: 680px; }

  /* サービスグリッド */
  .service-grid { grid-template-rows: 460px; }

  /* スライダー */
  .gallery-swiper .swiper-slide { height: 360px; }

  /* ヒーローコピー */
  .hero__copy {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
  }
  .hero__inner {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 24%;
    padding-bottom: 0;
    padding-left: 6%;
  }
  /* About */
  .about__body {
    line-height: 200%;
    letter-spacing: 0%;
  }
}

@media (max-width: 799px) {
  /* About */
  .about__heading { font-size: 1.4rem; }
  .about-section--bleed-right .about__image img { height: 260px; }

  /* サービスグリッド */
  .service-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 240px);
  }

  /* スライダー */
  .gallery-swiper .swiper-slide { height: auto; }

  /* ヒーローコピー */
  .hero__copy {
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    line-height: 1.6;
  }
  .hero__inner {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 36%;
    padding-bottom: 0;
    padding-left: 9%;
  }
}
