/* 全体のスタイル */
:root {
  --main-color: #2a7d2a;
  --accent-color: #4ca178;
  --bg-color: #f8f8f8;
  --text-color: #333;
  --light-accent: #e0f0e0;
  --dark-accent: #1a5c1a;
  --off-white: #fcfcfc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
header {
  background-color: var(--off-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo h1 {
  margin-left: 10px;
  font-size: 24px;
  color: var(--main-color);
}

/* ナビゲーション */
nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 30px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--main-color);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color);
}

/* ヒーローセクション */
.hero {
  height: 80vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  background-color: var(--main-color);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-button:hover {
  background-color: transparent;
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 特徴セクション */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--main-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 15px auto 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 48px;
  color: var(--main-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-color);
}

.feature-card p {
  color: #666;
}

/* ギャラリーセクション */
.gallery {
  padding: 80px 0;
  background-color: var(--light-accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 250px;
}

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

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* テスティモニアルセクション */
.testimonials {
  padding: 80px 0;
  background-color: white;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial {
  text-align: center;
  padding: 20px;
}

.testimonial-content {
  font-size: 18px;
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--main-color);
}

.slider-nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* ブログセクション */
.blog {
  padding: 80px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

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

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 20px;
}

.blog-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.blog-excerpt {
  font-size: 15px;
  color: #666;
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  color: var(--main-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.read-more::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: var(--main-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* お問い合わせセクション */
.contact {
  padding: 80px 0;
  background-color: var(--light-accent);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  color: var(--text-color);
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--main-color);
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-icon {
  font-size: 20px;
  color: var(--main-color);
  margin-right: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--main-color);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--dark-accent);
  transform: translateY(-3px);
}

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--main-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--main-color);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background-color: var(--main-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--dark-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* フッター */
footer {
  background-color: #333;
  color: white;
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  margin-bottom: 15px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-about p {
  color: #bbb;
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--main-color);
  margin-top: 10px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-subscribe form {
  display: flex;
  margin-bottom: 20px;
}

.footer-subscribe input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.footer-subscribe button {
  background-color: var(--main-color);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 30px;
  margin-top: 40px;
  color: #999;
  font-size: 14px;
}

/* ブログページスタイル */
.blog-page {
  padding: 80px 0;
}

.blog-header {
  text-align: center;
  margin-bottom: 50px;
}

.blog-header h1 {
  font-size: 42px;
  color: var(--main-color);
  margin-bottom: 15px;
}

.blog-header p {
  font-size: 18px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* 記事ページスタイル */
.post-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-title {
  font-size: 42px;
  color: var(--main-color);
  margin-bottom: 15px;
}

.post-meta {
  color: #888;
  font-size: 16px;
  margin-bottom: 30px;
}

.post-featured-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 40px;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
}

.post-content p {
  margin-bottom: 25px;
}

.post-content h2 {
  font-size: 30px;
  color: var(--main-color);
  margin: 40px 0 20px;
}

.post-content h3 {
  font-size: 24px;
  color: var(--text-color);
  margin: 30px 0 15px;
}

.post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 30px 0;
}

.post-content blockquote {
  border-left: 4px solid var(--main-color);
  padding-left: 20px;
  font-style: italic;
  color: #666;
  margin: 30px 0;
}

/* About Us ページスタイル */
.about-section {
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text h2 {
  font-size: 36px;
  color: var(--main-color);
  margin-bottom: 25px;
}

.about-text p {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

.team-section {
  padding: 80px 0;
  background-color: var(--light-accent);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-photo {
  height: 300px;
  overflow: hidden;
}

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

.team-member:hover .team-photo img {
  transform: scale(1.1);
}

.team-info {
  padding: 20px;
  text-align: center;
}

.team-info h3 {
  font-size: 20px;
  margin-bottom: 5px;
  color: var(--text-color);
}

.team-info p {
  color: #666;
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #f5f5f5;
  border-radius: 50%;
  color: #555;
  transition: all 0.3s ease;
}

.team-social a:hover {
  background-color: var(--main-color);
  color: white;
}

/* Cookies プラシュカ */
.cookies-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  padding: 15px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookies-content {
  flex: 1;
}

.cookies-content p {
  margin-bottom: 5px;
}

.cookies-buttons {
  display: flex;
  gap: 10px;
}

.cookies-btn {
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accept-btn {
  background-color: var(--main-color);
  color: white;
  border: none;
}

.accept-btn:hover {
  background-color: var(--dark-accent);
}

.settings-btn, .decline-btn {
  background-color: transparent;
  border: 1px solid #ccc;
}

.settings-btn:hover, .decline-btn:hover {
  background-color: #f5f5f5;
}

/* モーダルダイアログ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
}

.modal-title {
  font-size: 24px;
  color: var(--main-color);
  margin-bottom: 20px;
}

/* 引用ブロック */
.quote-block {
  background-color: var(--light-accent);
  border-radius: 10px;
  padding: 30px;
  margin: 40px 0;
  position: relative;
}

.quote-block::before {
  content: """;
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 80px;
  color: var(--main-color);
  opacity: 0.2;
}

.quote-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 15px;
}

.quote-content {
  font-style: italic;
  color: #555;
  font-size: 18px;
  line-height: 1.6;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 15px;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    padding: 80px 20px;
  }
  
  nav li {
    margin: 0 0 20px 0;
  }
  
  .hamburger {
    display: block;
    z-index: 1001;
  }
  
  .hero h2 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .features-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container,
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .cookies-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookies-buttons {
    margin-top: 15px;
  }
}
