/* トップページ専用スタイル */

/* ヒーロースライダー */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}

.slide.active img {
  animation: zoomIn 5s ease-out forwards;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

.hero-text-fixed {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 10;
  width: 90%;
  max-width: 1200px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}


.slider-dots {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--white);
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* 施工実績ギャラリー */
.achievements-gallery {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin: 0;
  padding: 0;
}

.achievement-item {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  cursor: pointer;
}

/* 施工実績ギャラリーのアニメーション */
.achievement-item.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.achievement-item.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.achievement-item.fade-in:nth-child(1) {
  transition-delay: 0.1s;
}

.achievement-item.fade-in:nth-child(2) {
  transition-delay: 0.3s;
}

.achievement-item.fade-in:nth-child(3) {
  transition-delay: 0.5s;
}

.achievement-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.achievement-item:hover img {
  transform: scale(1.05);
}

.achievement-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.achievement-item:hover .achievement-overlay {
  background-color: rgba(255, 255, 255, 0.7);
}

.achievement-info {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.achievement-item:hover .achievement-info {
  opacity: 1;
  transform: translateY(0);
}

.achievement-location {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.achievement-client {
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary-color);
}

/* SERVICEセクション */
.service-section {
  position: relative;
  background-image: url('../images/achievements_3.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.service-section .container {
  position: relative;
  z-index: 2;
}

.service-content {
  max-width: 900px;
  margin: 0 auto;
}

.service-content .section-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-content .section-subtitle {
  color: var(--secondary-color);
  margin-bottom: 3rem;
}

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

.service-item {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  border-radius: 8px;
  transition: var(--transition);
}

.service-item:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-5px);
}

.service-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.service-item p {
  color: var(--secondary-color);
  line-height: 1.9;
  font-size: 0.95rem;
}

/* STRENGTHSセクション */
.strengths-section {
  background-color: var(--white);
}

.strengths-section .section-subtitle {
  color: var(--secondary-color);
  margin-bottom: 4rem;
}

.strengths-subtitle {
  font-size: 1.6rem !important;
  font-weight: 700;
  color: var(--primary-color) !important;
  margin-bottom: 3rem !important;
  letter-spacing: 0.15em;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.strength-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.strength-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.15;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.strength-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.strength-item p {
  color: var(--secondary-color);
  line-height: 1.9;
  font-size: 0.95rem;
}

/* 施工実績セクション */
.works-cta-section {
  position: relative;
  background-image: url('../images/achievements_4.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0;
}

.works-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.works-cta-section .container {
  position: relative;
  z-index: 2;
}

.works-cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.works-cta-content .section-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.works-cta-content .section-subtitle {
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.works-cta-text {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--secondary-color);
  margin-bottom: 3rem;
}

.works-cta-content .btn {
  font-size: 1.1rem;
  padding: 1rem 3rem;
}

/* 社長からのメッセージセクション */
.message {
  background-color: var(--light-gray);
}

.message-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.message-image {
  width: 100%;
  height: 450px;
  background-color: #e0e0e0;
  background-size: cover;
  background-position: center;
}

.message-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.message-text {
  color: var(--secondary-color);
  line-height: 2;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.message-content .btn {
  margin-top: 2rem;
}

/* お知らせセクション */
.news-cta-section {
  position: relative;
  background-image: url('../images/slider_2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0;
}

.news-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.news-cta-section .container {
  position: relative;
  z-index: 2;
}

.news-cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.news-cta-content .section-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.news-cta-content .section-subtitle {
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.news-cta-text {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--secondary-color);
  margin-bottom: 3rem;
}

.news-cta-content .btn {
  font-size: 1.1rem;
  padding: 1rem 3rem;
}

/* CTAセクション */
.cta {
  background-color: var(--primary-color);
  color: var(--white);
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.cta-text {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  line-height: 1.9;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn {
  background-color: var(--white);
  color: var(--primary-color);
}

.cta .btn:hover {
  background-color: var(--dark-gray);
  color: var(--white);
}

.cta .btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.cta .btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .achievement-item {
    height: 350px;
  }

  .message-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .message-image {
    height: 350px;
  }

  .works-cta-section {
    padding: 6rem 0;
  }

  .service-section {
    padding: 6rem 0;
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .strengths-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .achievement-item {
    height: 300px;
  }

  .hero-slider {
    height: 100vh;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .works-cta-section {
    padding: 5rem 0;
    min-height: 400px;
  }

  .service-section {
    padding: 5rem 0;
    min-height: 500px;
  }

  .service-list {
    gap: 2rem;
  }

  .service-item {
    padding: 1.5rem;
  }

  .strengths-grid {
    gap: 2.5rem;
  }

  .strength-item {
    padding: 1.5rem 1rem;
  }

  .strength-number {
    font-size: 2.5rem;
  }

  .works-cta-text {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .works-cta-content .btn {
    font-size: 1rem;
    padding: 0.9rem 2.5rem;
  }

  .news-cta-section {
    padding: 5rem 0;
    min-height: 400px;
  }

  .news-cta-text {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .news-cta-content .btn {
    font-size: 1rem;
    padding: 0.9rem 2.5rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-text {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .achievement-item {
    height: 250px;
  }

  .message-image {
    height: 280px;
  }

  .works-cta-section {
    padding: 4rem 0;
    min-height: 350px;
  }

  .service-section {
    padding: 4rem 0;
    min-height: 400px;
  }

  .service-item h3 {
    font-size: 1.1rem;
  }

  .service-item p {
    font-size: 0.9rem;
  }

  .strength-number {
    font-size: 2rem;
  }

  .strength-item h3 {
    font-size: 1.1rem;
  }

  .strength-item p {
    font-size: 0.9rem;
  }

  .works-cta-text {
    font-size: 0.95rem;
  }

  .works-cta-content .btn {
    padding: 0.8rem 2rem;
  }

  .news-cta-section {
    padding: 4rem 0;
    min-height: 350px;
  }

  .news-cta-text {
    font-size: 0.95rem;
  }

  .news-cta-content .btn {
    padding: 0.8rem 2rem;
  }
}
