:root {
  --primary-color: #7fd1d1;
  --secondary-color: #e0f7f7;
  --accent-color: #4a8f8f;
  --text-color: #333;
  --light-text: #666;
  --white: #fff;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', sans-serif;
}

body {
  background-color: var(--white);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

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

.logo h1 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

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

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

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  padding: 100px 0;
  text-align: center;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/salt-pattern.png');
  background-size: 200px;
  opacity: 0.1;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

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

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

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

.section-title h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--light-text);
  max-width: 700px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

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

.feature-content {
  padding: 25px;
}

.feature-content h3 {
  margin-bottom: 15px;
  color: var(--text-color);
  font-weight: 600;
}

.feature-content p {
  color: var(--light-text);
  margin-bottom: 15px;
}

/* Blog Section */
.blog {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

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

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

.new-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #ff4757;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: bold;
  z-index: 10;
}

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

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

.blog-content {
  padding: 25px;
}

.blog-content .date {
  font-size: 0.85rem;
  color: var(--light-text);
  margin-bottom: 10px;
  display: block;
}

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

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

.blog-content a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: var(--transition);
}

.blog-content a:hover {
  color: var(--primary-color);
}

/* Calculator */
.calculator {
  background: var(--white);
  padding: 80px 0;
}

.calculator-container {
  background: var(--secondary-color);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 500px;
  margin: 0 auto;
}

.calculator h2 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--accent-color);
}

.calculator-form {
  display: flex;
  flex-direction: column;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

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

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(127, 209, 209, 0.2);
}

.calculator-result {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-top: 20px;
  text-align: center;
  display: none;
}

.calculator-result h3 {
  color: var(--accent-color);
  margin-bottom: 10px;
}

.calculator-result p {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

/* About Section */
.about {
  padding: 80px 0;
}

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

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about-text h2 {
  margin-bottom: 20px;
  color: var(--text-color);
}

.about-text p {
  margin-bottom: 15px;
  color: var(--light-text);
}

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

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

.team-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

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

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

.team-info {
  padding: 20px;
}

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

.team-info p {
  color: var(--light-text);
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

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

.social-links a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #f9f9f9 100%);
}

.contact-flex {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  margin-bottom: 20px;
  color: var(--text-color);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-item svg {
  min-width: 25px;
  height: 25px;
  margin-right: 15px;
  color: var(--accent-color);
}

.info-item span {
  color: var(--light-text);
}

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

.contact-form h3 {
  margin-bottom: 20px;
  color: var(--text-color);
}

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

.form-control label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-color);
}

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

.form-control input:focus,
.form-control textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(127, 209, 209, 0.2);
}

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

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

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

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

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

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

.footer-col ul li a {
  color: #ddd;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

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

.footer-bottom p {
  color: #ddd;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: bottom 0.5s ease;
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-text {
  flex: 1;
  padding-right: 20px;
}

.cookie-text h4 {
  margin-bottom: 10px;
  color: var(--text-color);
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--light-text);
}

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

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

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

.accept-btn:hover {
  background-color: #3a7070;
}

.settings-btn, .reject-btn {
  background-color: #f0f0f0;
  color: var(--text-color);
}

.settings-btn:hover, .reject-btn:hover {
  background-color: #e0e0e0;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-content h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.modal-content p {
  margin-bottom: 25px;
  color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  nav ul {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul li {
    margin: 10px 0;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .about-content,
  .contact-flex {
    grid-template-columns: 1fr;
  }
  
  .contact-flex {
    flex-direction: column;
  }
  
  .cookie-banner {
    flex-direction: column;
  }
  
  .cookie-text {
    margin-bottom: 15px;
    padding-right: 0;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: space-between;
  }
}

/* Blog Page */
.blog-page {
  padding: 80px 0;
}

.blog-full {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-bottom: 40px;
}

.blog-full img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.blog-full-content {
  padding: 40px;
}

.blog-full-content .date {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 15px;
  display: block;
}

.blog-full-content h1 {
  margin-bottom: 20px;
  color: var(--text-color);
  font-size: 2rem;
}

.blog-full-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--light-text);
}

.blog-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.blog-nav a {
  color: var(--accent-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

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

.blog-nav a svg {
  width: 20px;
  height: 20px;
}

.blog-nav a.prev svg {
  margin-right: 8px;
}

.blog-nav a.next svg {
  margin-left: 8px;
}

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-up {
  animation: slideUp 0.8s ease forwards;
}
