/*
Theme Name: RIFFリフォームLPデモ
Description: RIFFリフォームのランディングページテンプレート
Version: 1.0.0
Text Domain: riff-reform-lp
*/

/* リセットCSS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
    "游ゴシック Medium", "Yu Gothic", "游ゴシック", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ボタンスタイル */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(45deg, #4caf50, #8bc34a);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #4caf50;
  border: 2px solid #4caf50;
}

.btn-secondary:hover {
  background: #4caf50;
  color: white;
  transform: translateY(-2px);
}

/* セクションタイトル */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #2e7d32;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, #4caf50, #8bc34a);
  border-radius: 2px;
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* メインビジュアルセクション */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 50%, #e0f2f1 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* 波線背景 */
.wave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z" fill="%234CAF50" fill-opacity="0.1"></path></svg>')
    bottom center / cover no-repeat;
}

/* 雲のアニメーション */
.cloud {
  position: absolute;
  width: 100px;
  height: 60px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 60"><ellipse cx="25" cy="35" rx="25" ry="25" fill="white" opacity="0.8"/><ellipse cx="55" cy="35" rx="30" ry="25" fill="white" opacity="0.8"/><ellipse cx="75" cy="30" rx="20" ry="20" fill="white" opacity="0.8"/></svg>')
    center / contain no-repeat;
  animation: float 8s ease-in-out infinite;
}

.cloud1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.cloud2 {
  top: 20%;
  right: 15%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* 家のイラスト */
.houses-illustration {
  position: absolute;
  bottom: 10%;
  right: 5%;
  z-index: 2;
}

.house {
  position: absolute;
  width: 60px;
  height: 80px;
  background: linear-gradient(45deg, #4caf50, #66bb6a);
  clip-path: polygon(50% 0%, 0% 60%, 100% 60%, 100% 100%, 0% 100%);
  animation: house-bounce 6s ease-in-out infinite;
}

.house1 {
  left: 0;
  animation-delay: 0s;
}

.house2 {
  left: 40px;
  top: 20px;
  animation-delay: 2s;
}

.house3 {
  left: 80px;
  top: 10px;
  animation-delay: 4s;
}

@keyframes house-bounce {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

/* ヒーローコンテンツ */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #2e7d32;
  line-height: 1.2;
}

.hero-subtitle {
  display: block;
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
  color: #4caf50;
}

.hero-main {
  display: block;
  background: linear-gradient(45deg, #2e7d32, #4caf50);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: #555;
  max-width: 800px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* サービスセクション */
.services-section {
  padding: 6rem 0;
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.service-item {
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  background: #f8f9fa;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(45deg, #4caf50, #8bc34a);
  transition: left 0.3s ease;
}

.service-item:hover::before {
  left: 0;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(45deg, #4caf50, #8bc34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2e7d32;
}

.service-description {
  color: #666;
  line-height: 1.8;
}

/* 特徴セクション */
.features-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
  position: relative;
}

.wave-divider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z" fill="white"></path></svg>')
    top center / cover no-repeat;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.feature-item {
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-number {
  position: absolute;
  top: -20px;
  left: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #4caf50, #8bc34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2e7d32;
  padding-top: 1rem;
}

.feature-description {
  color: #666;
  line-height: 1.8;
}

/* 施工実績セクション */
.portfolio-section {
  padding: 6rem 0;
  background: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f0f0f0;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* お客様の声セクション */
.testimonials-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
  position: relative;
}

.wave-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="white"></path></svg>')
    top center / cover no-repeat;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.testimonial-item {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial-item::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-size: 4rem;
  color: #4caf50;
  opacity: 0.3;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #555;
}

.testimonial-author strong {
  color: #2e7d32;
  font-size: 1.2rem;
}

.testimonial-author span {
  display: block;
  color: #888;
  margin-top: 0.5rem;
}

/* お問い合わせセクション */
.contact-section {
  padding: 6rem 0;
  background: white;
}

.contact-description {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #4caf50, #8bc34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-info h4 {
  font-size: 1.3rem;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.contact-phone {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4caf50;
  margin-bottom: 0.5rem;
}

.contact-hours {
  color: #666;
}

.contact-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background: #f8f9fa;
  border-radius: 20px;
}

/* Contact Form 7 スタイル */
.wpcf7-form {
  display: grid;
  gap: 1.5rem;
}

.wpcf7-form p {
  margin: 0;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #2e7d32;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: #4caf50;
}

.wpcf7-form textarea {
  resize: vertical;
  min-height: 120px;
}

.wpcf7-submit {
  background: linear-gradient(45deg, #4caf50, #8bc34a);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  justify-self: center;
}

.wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* フッター */
.site-footer {
  background: #2e7d32;
  color: white;
  padding: 3rem 0 1rem;
  text-align: center;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #8bc34a;
}

.footer-nav {
  margin-bottom: 2rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #8bc34a;
}

.footer-copyright {
  border-top: 1px solid #4caf50;
  padding-top: 1rem;
  color: #a5d6a7;
  font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid,
  .features-grid,
  .portfolio-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .contact-method {
    flex-direction: column;
    text-align: center;
  }

  .houses-illustration {
    display: none;
  }

  .container {
    padding: 0 15px;
  }

  .hero-content {
    text-align: center;
  }

  .feature-item,
  .testimonial-item {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .services-grid,
  .features-grid,
  .portfolio-grid,
  .testimonials-grid {
    gap: 1.5rem;
  }

  .service-item,
  .feature-item,
  .testimonial-item {
    padding: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-item,
.feature-item,
.testimonial-item {
  animation: fadeInUp 0.6s ease forwards;
}

/* スクロール時のアニメーション準備 */
.service-item,
.feature-item,
.testimonial-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.service-item.animate,
.feature-item.animate,
.testimonial-item.animate {
  opacity: 1;
  transform: translateY(0);
}
