@charset "UTF-8";
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #f7f7f7;
  font-family: "Story Script", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
body.fixed {
  overflow: hidden;
}
li {
  list-style: none;
}
a {
  text-decoration: none;
}

.section-title {
  font-size: 2rem;
  color: #696969;
  text-align: center;
  margin-bottom: 2rem;
}
.page-transition {
  position: fixed;
  inset: 0;
  background: #fff; /* 白背景でフェード */
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.page-transition.hidden {
  opacity: 0;
  visibility: hidden;
}

/*-------------
  header
  -------------*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #333; /* 半透明 */
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
}
.logo a {
  color: #fff;
}
.nav > ul {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
header nav a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: color 0.3s ease;
}
header nav a:visited {
  color: #fff;
}
header nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

header nav a:hover::after {
  transform: scaleX(1);
}

/* ハンバーガー */
.hamburger {
  display: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* アクティブ時（×に変化） */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* nav共通 */
.nav ul {
  display: flex;
  gap: 2rem;
}

/* スマホ時は右スライド */
@media (max-width: 900px) {
  .nav ul {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* メニューの間隔 */
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
  }
  .nav li {
    margin: 0;
  }
  .nav a {
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    position: relative;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    max-width: 260px;
    box-sizing: border-box;
    height: 100vh;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  .nav.active {
    transform: translateX(0);
  }
  .hamburger {
    display: flex;
  }
}

/* オーバーレイ */
.overlay {
  position: fixed;
  inset: 0; /* ← 画面全体に広がる */
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999; /* headerより上に */
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/*-------------
hero section
-------------*/
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.hero-slider::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: #f7f7f7; /* 次のセクションの背景色に合わせる */
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide.slide1 {
  background-image: url("https://dummyimage.com/800x800/bfcf61/000000");
}
.hero-slide.slide2 {
  background-image: url("https://dummyimage.com/800x800/69bf87/000000");
}
.hero-slide.slide3 {
  background-image: url("https://dummyimage.com/800x800/587361/000000");
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* 半透明レイヤー */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}
.hero-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-overlay .btn-cta {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 6px;
  background: #696969;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-overlay .btn-cta:hover {
  background: #444;
  transform: translateY(-3px);
}
/*-------------
service section
-------------*/
.services {
  padding: 6rem 8%;
  text-align: center;
  overflow: visible;
}
.animate-section {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease;
}
.animate-section.show {
  opacity: 1;
  transform: translateX(0);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
  opacity: 0;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease;
}
.service-card.fade-up.show {
  opacity: 1;
  transform: translateY(40px);
}
.service-card.fade-up.show:hover {
  transform: translateY(-8px) scale(1.02);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
  border-radius: 8px 8px 0 0;
}
.service-card h3 {
  font-size: 1.3rem;
  margin: 1rem 0 0.5rem;
  color: #333;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}
/*-------------
gallery section
-------------*/
.gallery {
  background: #fff;
  padding: 6rem 8%;
  text-align: center;
}
.gallery-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.gallery-swiper {
  max-width: 1000px;
}

.swiper-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.swiper-pagination {
  bottom: -40px !important;
}
/* ページネーションの色 */
.swiper-pagination-bullet {
  background: #333;
}
.swiper-button-prev {
  color: #333;
  left: -60px;
}
.swiper-button-next {
  color: #333;
  right: -60px;
}

/*-------------
contact section
-------------*/
.contact-cta {
  background: linear-gradient(135deg, #696969, #444);
  color: #fff;
  text-align: center;
  padding: 6rem 8%;
}
.contact-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.contact-cta .btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  background: #fff;
  color: #696969;
  font-weight: 700;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  z-index: 0;
  transition: all 0.4s ease;
}
.contact-cta .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #444;
  transform: translateX(-100%); /* ← 初期状態：左に隠す */
  transition: transform 0.4s ease;
  z-index: -1;
}
.contact-cta .btn:hover::before {
  transform: translateX(0);
}
.contact-cta .btn:hover {
  color: #fff;
}
/*-------------
footer
-------------*/
.site-footer {
  background: #f7f7f7;
  color: #333;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
}

.site-footer p {
  font-size: 0.9rem;
  letter-spacing: 1px;
}
