/* 
エコピュア - 日本の最小限のデザインのトイレ洗浄製品サイト
メインスタイルシート
*/

:root {
  --primary-color: #2D8C8C;
  --secondary-color: #F5F5F5;
  --accent-color: #E67E22;
  --text-color: #333333;
  --light-text: #777777;
  --white: #FFFFFF;
  --black: #000000;
  --light-bg: #F9F9F9;
  --border-color: #E0E0E0;
  --success-color: #27AE60;
  --error-color: #E74C3C;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

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

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

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

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

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

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

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 300;
}

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

/* ヘッダー */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

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

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

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

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

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  position: relative;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* ヒーローセクション */
.hero {
  padding: 150px 0 100px;
  background-color: var(--secondary-color);
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-slogan {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--light-text);
}

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

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

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

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

/* 特徴セクション */
.features {
  background-color: var(--white);
}

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

.feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 5px;
  transition: var(--transition);
}

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

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

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary-color);
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 500;
}

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

/* 製品セクション */
.products {
  background-color: var(--light-bg);
}

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

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

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

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

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

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

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.product-price {
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 15px;
}

.product-description {
  color: var(--light-text);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.product-button {
  width: 100%;
  text-align: center;
}

/* ブログセクション */
.blog {
  background-color: var(--white);
}

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

.post-card {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

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

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

.post-content {
  padding: 20px;
}

.post-date {
  font-size: 0.8rem;
  color: var(--light-text);
  margin-bottom: 5px;
}

.post-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.post-excerpt {
  color: var(--light-text);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ブログ記事ページ */
.blog-post {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  background-color: var(--white);
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.post-header {
  margin-bottom: 30px;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 500;
}

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

.post-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  font-weight: 500;
}

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

.post-content img {
  width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 5px;
}

.post-content blockquote {
  padding: 20px;
  background-color: var(--light-bg);
  border-left: 4px solid var(--primary-color);
  margin: 20px 0;
  font-style: italic;
}

/* リスト用のカスタムマーカー */
ul.custom-list {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 20px;
}

ul.custom-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

ul.custom-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M32 96v64c0 17.7 14.3 32 32 32h32V96H64c-17.7 0-32 14.3-32 32zm448 0c0-17.7-14.3-32-32-32h-32v96h32c17.7 0 32-14.3 32-32V96zM320 96H192v96h128V96zm-160 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm96 0c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM256 416c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm-32-64c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32z'%3E%3C/path%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

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

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

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 500;
}

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

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

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

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--primary-color);
}

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

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

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

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 140, 140, 0.2);
}

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

.form-submit {
  width: 100%;
}

/* 会社概要セクション */
.about-section {
  background-color: var(--white);
}

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

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

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 500;
}

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

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

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

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

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 20px;
}

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

.team-position {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--light-text);
  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;
  border-radius: 50%;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

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

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-color);
  transition: var(--transition);
}

.social-link:hover svg {
  fill: var(--white);
}

/* フッター */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 35px;
  height: 35px;
  margin-right: 10px;
  filter: brightness(0) invert(1);
}

.footer-logo h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

.footer-about p {
  margin-bottom: 20px;
  opacity: 0.8;
  font-size: 0.9rem;
}

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

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

.footer-social a:hover {
  background-color: var(--accent-color);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 500;
}

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

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

.footer-links a {
  color: var(--white);
  opacity: 0.8;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
}

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

/* クッキー同意バナー */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1001;
  transition: bottom 0.5s ease;
}

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

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

.cookie-text p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.cookie-text a {
  font-weight: 500;
}

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

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

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

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

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

.customize-btn:hover {
  background-color: #e0e0e0;
}

.decline-btn {
  background-color: transparent;
  border: 1px solid var(--light-text);
  color: var(--text-color);
}

.decline-btn:hover {
  background-color: var(--light-text);
  color: var(--white);
}

/* サンクスモーダル */
.thank-you-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.thank-you-modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: 5px;
  text-align: center;
  max-width: 450px;
  width: 90%;
}

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

.modal-icon svg {
  width: 35px;
  height: 35px;
  fill: var(--white);
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 500;
}

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

/* レスポンシブスタイル */
@media (max-width: 992px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .navbar {
    position: relative;
  }
  
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--white);
    padding: 20px;
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    margin: 0 0 15px 0;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .hero-slogan {
    font-size: 1.2rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }
  
  .post-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-text {
    margin-right: 0;
    margin-bottom: 15px;
  }
}
