:root {
  --primary-color: #4eadb8;
  --secondary-color: #65c1a0;
  --accent-color: #e6f7f2;
  --dark-color: #333;
  --light-color: #f9f9f9;
  --font-main: 'Noto Sans JP', sans-serif;
  --font-title: 'M PLUS 1p', sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #fff;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo h1 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
}

.nav ul {
  display: flex;
  list-style: none;
}

.nav ul li {
  margin-left: 30px;
}

.nav ul li a {
  color: white;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: var(--transition);
}

.nav ul li a:hover, 
.nav ul li a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  background: url('../images/1.jpg') center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(78, 173, 184, 0.7), rgba(101, 193, 160, 0.7));
}

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

.hero h2 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background: white;
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Features */
.features {
  padding: 80px 0;
  background-color: var(--light-color);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

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

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-title);
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Blog Posts */
.blog-posts {
  padding: 80px 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.post-img {
  height: 200px;
  overflow: hidden;
}

.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.post-card:hover .post-img img {
  transform: scale(1.05);
}

.post-content {
  padding: 20px;
}

.post-date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.post-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.post-excerpt {
  margin-bottom: 15px;
  color: #555;
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.read-more i {
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Single Post */
.single-post {
  padding: 80px 0;
}

.post-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-header .post-date {
  margin: 10px 0;
}

.post-header .post-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.post-featured-img {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.post-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body h2, .post-body h3 {
  font-family: var(--font-title);
  margin: 30px 0 20px;
  color: var(--primary-color);
}

.post-body img {
  border-radius: 8px;
  margin: 30px auto;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

/* About Page */
.about-section {
  padding: 80px 0;
}

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

.about-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
}

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

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

.team-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
}

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

.team-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-info {
  padding: 20px;
}

.team-name {
  font-family: var(--font-title);
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-role {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.team-bio {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: var(--light-color);
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Contact Page */
.contact-section {
  padding: 80px 0;
}

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

.contact-info h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  margin-bottom: 25px;
}

.info-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
  width: 25px;
}

.info-detail h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

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

.contact-form-container h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

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

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(78, 173, 184, 0.2);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.admin-preview {
  margin-top: 50px;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.admin-preview h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.admin-iframe {
  width: 100%;
  height: 400px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: white;
}

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

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

.footer-links li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links li a:hover {
  color: white;
  padding-left: 5px;
}

.social-links-footer {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-link-footer:hover {
  background: white;
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 15px 30px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  margin-right: 20px;
  min-width: 300px;
}

.cookie-text h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.accept-all {
  background: var(--primary-color);
  color: white;
}

.accept-all:hover {
  background: var(--secondary-color);
}

.customize, .reject {
  background: #f0f0f0;
  color: var(--dark-color);
}

.customize:hover, .reject:hover {
  background: #e0e0e0;
}

/* Thank You Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.modal h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.modal p {
  margin-bottom: 20px;
}

.modal-btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
}

.modal-btn:hover {
  background: var(--secondary-color);
}

/* Responsive */
@media (max-width: 992px) {
  .header-content {
    flex-direction: column;
  }
  
  .nav {
    margin-top: 20px;
  }
  
  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav ul li {
    margin: 0 10px 10px;
  }
  
  .about-content, 
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .about-img {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 50vh;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-text {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .post-header .post-title {
    font-size: 2rem;
  }
}
