/* 基本スタイル設定 */
:root {
  --primary-color: #4A90E2;
  --primary-dark: #3A7BC8;
  --secondary-color: #E2F0FE;
  --accent-color: #8ED1FC;
  --text-color: #333333;
  --light-text: #666666;
  --lighter-text: #999999;
  --bg-color: #FFFFFF;
  --light-bg: #F5F9FE;
  --border-color: #E0E0E0;
  --success-color: #4CAF50;
  --error-color: #F44336;
  --warning-color: #FFC107;
  --info-color: #2196F3;
  --font-main: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* リセットとベース設定 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--primary-dark);
}

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

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

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
  border: 3px solid var(--light-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ヘッダーナビゲーション */
header {
  background-color: var(--bg-color);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.5rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo img {
  height: 6rem;
  width: auto;
}

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

nav li {
  margin-left: 3rem;
}

nav a {
  color: var(--text-color);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  position: relative;
}

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

nav a:hover::after, nav a.active::after {
  width: 100%;
}

nav a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* ヒーローセクション */
.hero {
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  padding: 8rem 2rem;
  margin-bottom: 6rem;
}

.hero-content {
  flex: 1;
  padding-right: 5rem;
}

.hero-image {
  flex: 1;
  text-align: center;
}

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

.hero h1 {
  font-size: 4.8rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.hero p {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--light-text);
}

/* ボタンスタイル */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

.btn-small {
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
}

.btn-submit {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.8rem;
}

.btn-modal-close {
  margin-top: 2rem;
}

/* 特徴セクション */
.features {
  padding: 6rem 2rem;
  text-align: center;
}

.features h2 {
  font-size: 3.6rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.feature-card {
  background-color: var(--light-bg);
  padding: 3rem 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.feature-icon {
  margin-bottom: 2rem;
}

.feature-card h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.feature-card p {
  color: var(--light-text);
}

/* 最新のブログ記事セクション */
.latest-posts {
  padding: 6rem 2rem;
  background-color: var(--light-bg);
}

.latest-posts h2 {
  font-size: 3.6rem;
  text-align: center;
  margin-bottom: 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.post-card {
  background-color: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
}

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

.post-card h3 {
  font-size: 2rem;
  padding: 2rem 2rem 1rem 2rem;
}

.post-card p {
  padding: 0 2rem 2rem 2rem;
  color: var(--light-text);
}

.read-more {
  display: block;
  padding: 0 2rem 2rem 2rem;
  font-weight: 600;
}

.view-all {
  text-align: center;
  margin-top: 4rem;
}

/* ページヘッダー */
.page-header {
  background-color: var(--light-bg);
  padding: 6rem 2rem;
  text-align: center;
  margin-bottom: 4rem;
}

.page-header h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 2rem;
  color: var(--light-text);
  max-width: 600px;
  margin: 0 auto;
}

/* ブログページスタイル */
.blog-content {
  padding: 4rem 2rem;
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--bg-color);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s;
}

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

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

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

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

.blog-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-content h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.blog-meta {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 1.4rem;
  color: var(--lighter-text);
}

.blog-card-content p {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.blog-card-content .btn {
  align-self: flex-start;
}

/* ブログ投稿ページ */
.blog-post {
  padding: 4rem 2rem;
}

.post-header {
  margin-bottom: 3rem;
}

.post-header h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 1.6rem;
  color: var(--light-text);
}

.post-featured-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.post-featured-image img {
  width: 100%;
  height: auto;
}

.post-content {
  font-size: 1.8rem;
  line-height: 1.8;
}

.post-content h2 {
  font-size: 3rem;
  margin: 4rem 0 1.5rem;
}

.post-content h3 {
  font-size: 2.4rem;
  margin: 3rem 0 1.5rem;
}

.post-content p {
  margin-bottom: 2rem;
}

.post-content ul, 
.post-content ol {
  margin: 0 0 2rem 2rem;
}

.post-content li {
  margin-bottom: 1rem;
}

.post-image {
  margin: 3rem 0;
  border-radius: 10px;
  overflow: hidden;
}

.post-image figcaption {
  font-size: 1.4rem;
  color: var(--lighter-text);
  text-align: center;
  padding: 1rem 0;
  background-color: var(--light-bg);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 4rem 0;
}

.tag {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--secondary-color);
  border-radius: 5px;
  font-size: 1.4rem;
  color: var(--primary-dark);
  font-weight: 500;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.post-prev, .post-next {
  max-width: 45%;
}

.post-prev a, .post-next a {
  display: inline-block;
  font-weight: 600;
}

.related-posts {
  margin: 4rem 0;
}

.related-posts h3 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.related-post-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s;
}

.related-post-card:hover {
  transform: translateY(-5px);
}

.related-post-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-post-card h4 {
  padding: 1.5rem;
}

/* 製品ページ */
.product-showcase {
  padding: 4rem 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  padding: 3rem;
}

@media (min-width: 768px) {
  .product-card {
    flex-direction: row;
    align-items: center;
  }
}

.product-image {
  flex: 1;
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .product-image {
    margin-bottom: 0;
    margin-right: 3rem;
  }
}

.product-image img {
  max-width: 100%;
  border-radius: 8px;
}

.product-info {
  flex: 2;
}

.product-info h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 2.4rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 2rem;
}

.product-description {
  margin-bottom: 2rem;
  color: var(--light-text);
}

.product-features {
  margin: 0 0 2.5rem 2rem;
}

.product-features li {
  margin-bottom: 0.8rem;
}

.product-values {
  padding: 6rem 2rem;
  background-color: var(--light-bg);
  text-align: center;
}

.product-values h2 {
  font-size: 3.6rem;
  margin-bottom: 4rem;
}

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

.value-card {
  background-color: var(--bg-color);
  padding: 3rem 2rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.value-icon {
  margin-bottom: 2rem;
}

.value-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.value-card p {
  color: var(--light-text);
}

/* 会社情報ページ */
.about-story, 
.about-values, 
.team-section, 
.mission-section {
  padding: 6rem 2rem;
}

.about-story {
  padding-top: 3rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}

.about-content h2,
.about-values h2,
.team-section h2,
.mission-section h2 {
  font-size: 3.6rem;
  margin-bottom: 2rem;
}

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

.about-values {
  background-color: var(--light-bg);
  text-align: center;
}

.values-grid {
  margin-top: 4rem;
}

.value-item {
  background-color: var(--bg-color);
  padding: 3rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s;
}

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

.value-item h3 {
  font-size: 2.2rem;
  margin: 1.5rem 0;
}

.team-intro {
  text-align: center;
  margin-bottom: 4rem;
  color: var(--light-text);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.team-card {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  background-color: var(--light-bg);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s;
}

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

.team-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 2rem;
}

.team-card h3 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.team-card p {
  color: var(--light-text);
}

.team-card p:nth-child(3) {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.mission-section {
  background-color: var(--light-bg);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}

.mission-content ul {
  margin: 2rem 0 0 2rem;
}

.mission-content li {
  margin-bottom: 1rem;
}

/* お問い合わせページ */
.contact-section {
  padding: 4rem 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.contact-info h2,
.contact-form-container h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

.contact-info p {
  margin-bottom: 3rem;
  color: var(--light-text);
}

.contact-method {
  display: flex;
  margin-bottom: 3rem;
}

.contact-icon {
  margin-right: 2rem;
}

.contact-details h3 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.contact-hours {
  font-size: 1.4rem;
  color: var(--lighter-text);
}

.contact-details a {
  display: block;
  margin-bottom: 0.5rem;
}

.social-contact {
  margin-top: 4rem;
}

.social-contact h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--light-bg);
  color: var(--primary-color);
  transition: background-color 0.3s, color 0.3s;
}

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

.contact-form {
  background-color: var(--light-bg);
  padding: 3rem;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1.6rem;
}

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

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

.checkbox-group input {
  width: auto;
  margin-right: 1rem;
}

.checkbox-group label {
  margin-bottom: 0;
}

.required {
  color: var(--error-color);
}

.map-section {
  padding: 4rem 2rem 8rem;
}

.map-section h2 {
  font-size: 2.8rem;
  margin-bottom: 3rem;
  text-align: center;
}

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

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

/* モーダルウィンドウ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: auto;
}

.modal-content {
  position: relative;
  background-color: var(--bg-color);
  margin: 10% auto;
  padding: 4rem;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 3rem;
  font-weight: bold;
  color: var(--lighter-text);
  cursor: pointer;
}

.close-modal:hover {
  color: var(--text-color);
}

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

.thank-you-message svg {
  margin: 0 auto 2rem;
}

.thank-you-message h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.thank-you-message p {
  margin-bottom: 2.5rem;
  color: var(--light-text);
}

/* ブログ投稿のスタイル */
.eco-recipe, .eco-tip {
  background-color: var(--secondary-color);
  padding: 2.5rem;
  border-radius: 10px;
  margin: 3rem 0;
}

.eco-recipe h3, .eco-tip h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

.eco-recipe ul {
  margin-bottom: 1.5rem;
}

/* Cookieバナー */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 900;
  padding: 2rem;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cookie-content p {
  margin-bottom: 1.5rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-content a {
  font-size: 1.4rem;
}

/* 文法チェックボタン */
.spell-check {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 800;
}

#spellCheckButton {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

#spellCheckButton:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* フッター */
footer {
  background-color: var(--light-bg);
  padding: 6rem 0 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4rem;
}

.footer-logo {
  flex: 1 1 300px;
}

.footer-logo img {
  height: 6rem;
  margin-bottom: 1.5rem;
}

.footer-logo p {
  margin-bottom: 2rem;
  color: var(--light-text);
}

.footer-links {
  flex: 2 1 600px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
}

.footer-section {
  flex: 1 1 200px;
}

.footer-section h4 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

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

.footer-section li {
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--light-text);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  color: var(--lighter-text);
  font-size: 1.4rem;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 4rem 2rem;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav li {
    margin: 0 1.5rem 1rem;
  }
  
  .footer-container {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 50%;
  }
  
  .hero h1 {
    font-size: 3.6rem;
  }
  
  .hero p {
    font-size: 1.8rem;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
}
