/* Base Styles */
:root {
  --primary-color: #3a6351;
  --secondary-color: #b5c99a;
  --tertiary-color: #f2f3d9;
  --accent-color: #c26e33;
  --dark-color: #333;
  --light-color: #f9f9f9;
  --success-color: #4caf50;
  --error-color: #f44336;
  --grey-color: #8a8a8a;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 4px;
  --container-width: 1200px;
  --header-height: 80px;
}

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

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

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

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Custom List Markers */
.glossary-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

.glossary-list li::before {
  content: "茶";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 20px;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  color: var(--primary-color);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: bold;
  text-align: center;
}

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

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

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

.btn-tertiary {
  background-color: transparent;
  border: 1px solid var(--grey-color);
  color: var(--grey-color);
}

/* Header */
.header {
  background-color: white;
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

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

.logo a {
  display: flex;
  align-items: center;
  color: var(--dark-color);
}

.logo img {
  width: 50px;
  height: 50px;
  margin-right: 15px;
  border-radius: 50%;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
}

.nav ul {
  display: flex;
}

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

.nav a {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--primary-color);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
}

/* Main Content */
main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height) - 300px);
}

/* Hero Section */
.hero {
  background-color: var(--tertiary-color);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero-content h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 450px;
  object-fit: cover;
  width: 100%;
}

/* Blog Section */
.blog {
  padding: 80px 0;
}

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

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

.blog-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-content {
  padding: 25px;
}

.blog-content h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.blog-content p {
  color: var(--grey-color);
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: bold;
}

.read-more:hover {
  color: var(--accent-color);
}

/* Glossary Section */
.glossary {
  background-color: var(--tertiary-color);
  padding: 60px 0;
}

.glossary h2 {
  text-align: center;
  margin-bottom: 40px;
}

.glossary-list {
  max-width: 800px;
  margin: 0 auto;
}

.glossary-list strong {
  color: var(--primary-color);
}

/* Page Header */
.page-header {
  background-color: var(--tertiary-color);
  padding: 60px 0 40px;
  text-align: center;
  margin-bottom: 50px;
}

.page-header h2 {
  font-size: 2.5rem;
  margin: 0;
}

/* About Us Page */
.about-us {
  padding: 50px 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.vision, .mission {
  background-color: var(--tertiary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.vision h4, .mission h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Team Section */
.team {
  padding: 60px 0;
  background-color: white;
}

.team h3 {
  text-align: center;
  margin-bottom: 50px;
}

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

.team-member {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  padding-bottom: 20px;
}

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

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 20px;
}

.team-member h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.team-member p {
  color: var(--grey-color);
  margin-bottom: 10px;
  padding: 0 20px;
}

.team-member p:nth-child(3) {
  color: var(--primary-color);
  font-weight: 500;
}

/* Philosophy Section */
.philosophy {
  background-color: var(--tertiary-color);
  padding: 60px 0;
}

.philosophy h3 {
  text-align: center;
  margin-bottom: 50px;
}

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

.philosophy-item {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.philosophy-item:hover {
  transform: translateY(-5px);
}

.philosophy-item .icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--tertiary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.philosophy-item .icon svg {
  color: var(--primary-color);
}

.philosophy-item h4 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

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

.contact-info {
  background-color: var(--tertiary-color);
  padding: 30px;
  border-radius: 10px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-item .icon {
  min-width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.contact-item .icon svg {
  color: var(--primary-color);
}

.contact-item h4 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.contact-social h4 {
  margin-bottom: 15px;
}

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

.social-icons li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons li a:hover {
  background-color: var(--primary-color);
}

.social-icons li a:hover svg {
  fill: white;
}

.social-icons li a svg {
  fill: var(--primary-color);
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--light-color);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
}

.checkbox-group label {
  margin: 0;
  font-size: 0.9rem;
  color: var(--grey-color);
}

/* Map Section */
.map-section {
  padding: 50px 0;
}

.map-section h3 {
  text-align: center;
  margin-bottom: 30px;
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
}

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

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.footer-logo h3 {
  margin: 0;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

.footer-links ul li a {
  color: white;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-contact p {
  margin-bottom: 10px;
  opacity: 0.8;
}

.footer-social .social-icons {
  margin-top: 15px;
}

.footer-social .social-icons li a {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-social .social-icons li a svg {
  fill: white;
}

.footer-social .social-icons li a:hover {
  background-color: var(--secondary-color);
}

.footer-social .social-icons li a:hover svg {
  fill: var(--dark-color);
}

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

.footer-bottom p {
  margin: 0;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-color);
  color: white;
  padding: 20px;
  z-index: 9999;
  display: none;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 300px;
}

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

.cookie-link {
  color: var(--secondary-color);
  text-decoration: underline;
  margin-top: 10px;
  display: inline-block;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

.thank-you-message {
  text-align: center;
}

.thank-you-message svg {
  margin: 0 auto 20px;
}

.thank-you-message h3 {
  color: var(--success-color);
  margin-bottom: 15px;
}

.thank-you-message p {
  margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    text-align: center;
    margin-bottom: 40px;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .vision-mission {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    height: auto;
    padding: 15px 0;
  }

  .header .container {
    flex-direction: column;
  }

  .logo {
    margin-bottom: 15px;
  }

  .nav ul {
    justify-content: center;
  }

  .nav li {
    margin: 0 15px;
  }

  main {
    margin-top: 130px;
  }

  .blog-grid,
  .team-grid,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .nav ul {
    flex-wrap: wrap;
  }

  .nav li {
    margin: 0 10px;
  }
}
