@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Kiwi+Maru:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  /* Organic & Coastal Color Palette */
  --bg-cream: #FEFBF1;       /* 有機生活のメイン背景 (ごく薄いクリーム) */
  --bg-accent-yellow: #FDF1C6; /* トピックスや一部セクションの背景 (薄い黄色) */
  --primary-blue: #0077B6;    /* 有明海をイメージしたブルー (メインアクセント) */
  --secondary-blue: #0096C7;  /* 爽やかな水色 */
  --accent-green: #54953F;    /* 新鮮な野菜をイメージしたグリーン (有機生活風) */
  --accent-orange: #DE5E00;   /* 会社概要やアクセントに使う温かみのあるオレンジ */
  --text-dark: #3E3A39;       /* 柔らかい黒 */
  --text-muted: #7E7A75;     /* 薄いグレーブラウン */
  --white: #FFFFFF;
  
  /* Fonts */
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-accent: 'Kiwi Maru', serif;
  --font-english: 'Caveat', cursive; /* 手書き風の英語フォント */

  /* Layout & Decor */
  --border-radius-large: 60px;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --box-shadow: 0 10px 30px rgba(62, 58, 57, 0.06);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-jp);
  color: var(--text-dark);
  background-color: var(--bg-cream);
  line-height: 1.8;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 4px;
}

/* Typography & Titles */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-accent);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-subtitle-en {
  font-family: var(--font-english);
  font-size: 3rem;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: -10px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.section-title::after {
  content: '';
  display: block;
  width: 50%;
  height: 3px;
  background-color: var(--secondary-blue);
  margin: 10px auto 0;
  border-radius: 2px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-accent);
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.2);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--secondary-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 119, 182, 0.3);
}

.btn i {
  margin-left: 10px;
  transition: var(--transition);
}

.btn:hover i {
  transform: translateX(5px);
}

/* Dynamic Capsule Header */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: var(--box-shadow);
  z-index: 1000;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.logo {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.header-logo-img,
.logo img {
  height: 45px;
  width: auto;
  transition: var(--transition);
}

/* ヘッダーがスクロールされた時のロゴ縮小 */
header.scrolled .header-logo-img,
header.scrolled .logo img {
  height: 35px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--primary-blue);
  transition: var(--transition);
  border-radius: 2px;
}

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

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

/* Rounded Floating Menu Button (Drawer Trigger) */
.menu-btn {
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
  transition: var(--transition);
}

.menu-btn:hover {
  background-color: var(--accent-green);
  transform: scale(1.08);
}

.menu-btn:hover span:nth-child(1) {
  transform: translateY(-2px) scaleX(0.7);
}

.menu-btn:hover span:nth-child(2) {
  transform: scaleX(1.1);
}

.menu-btn:hover span:nth-child(3) {
  transform: translateY(2px) scaleX(0.7);
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Drawer Menu (Organic Slide-in) */
.drawer-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100%;
  height: 100vh;
  background-color: var(--bg-cream);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  z-index: 2000;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 80px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--border-radius-large) 0 0 var(--border-radius-large);
  transform: translateX(100%);
}

.drawer-menu.active {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close:hover {
  color: var(--primary-blue);
  transform: rotate(90deg);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
}

.drawer-links a {
  font-size: 1.5rem;
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 1px dashed rgba(62, 58, 57, 0.1);
  padding-bottom: 10px;
}

.drawer-links a:hover {
  color: var(--primary-blue);
  padding-left: 10px;
}

.drawer-info {
  margin-top: 40px;
}

.drawer-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(62, 58, 57, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

/* Header style after scroll (More compact) */
header.scrolled {
  top: 10px;
  width: 95%;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Hero Section (Trace of Organic Market Home) */
.hero {
  position: relative;
  height: 100vh;
  min-height: 820px;
  background: linear-gradient(rgba(254, 251, 241, 0.25), rgba(254, 251, 241, 0.25)),
              url('images/hero_bg.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
  overflow: hidden;
}

.hero-box {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  padding: 40px 50px;
  border-radius: var(--border-radius-large);
  max-width: 700px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(62, 58, 57, 0.1);
  border: 4px solid var(--bg-accent-yellow);
  z-index: 10;
}

.hero-title {
  font-size: 2.8rem;
  color: var(--primary-blue);
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 30px;
  font-weight: 500;
}

/* Fuwafuwa Scroll Down (Trace of yuukiseikatsu) */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary-blue);
  font-family: var(--font-accent);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fuwafuwa 2s ease-in-out infinite;
  z-index: 10;
  cursor: pointer;
}

.scroll-down i {
  font-size: 1.5rem;
}

@keyframes fuwafuwa {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -12px);
  }
}

/* Organic curved section wrappers */
.organic-section {
  padding: 100px 0;
  position: relative;
}

.organic-section.accent-bg {
  background-color: var(--bg-accent-yellow);
  border-radius: var(--border-radius-large);
  margin: 40px 15px;
}

/* News Section (Organic Card Style) */
.news-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  background: var(--white);
  padding: 25px 40px;
  border-radius: 30px;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  gap: 30px;
  transition: var(--transition);
  border: 1px solid rgba(253, 241, 198, 0.5);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 35px rgba(0, 119, 182, 0.1);
  border-color: var(--primary-blue);
  background-color: #FFFDF8;
}

.news-date-block {
  min-width: 100px;
}

.news-date {
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 1.05rem;
}

.news-tag {
  background-color: var(--primary-blue);
  color: var(--white);
  font-size: 0.8rem;
  padding: 4px 16px;
  border-radius: 20px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}

.news-tag.event {
  background-color: var(--accent-orange);
}

.news-title {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 1.05rem;
  flex-grow: 1;
}

.news-arrow {
  color: var(--primary-blue);
  font-size: 1.2rem;
  transition: var(--transition);
}

.news-card:hover .news-arrow {
  transform: translateX(8px);
  color: var(--accent-green);
}

/* Products Section (Trace Grid Style) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.product-card {
  background: var(--white);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 45px rgba(0, 119, 182, 0.12);
  border-color: rgba(0, 119, 182, 0.2);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
}

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

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

.product-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--accent-green);
  color: var(--white);
  font-size: 0.8rem;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-info {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-name {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Commitment / Charm Section (Circular Organic Shapes) */
.circle-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 60px;
}

.circle-item {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle-image-container {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--box-shadow);
  margin-bottom: 25px;
  transition: var(--transition);
}

.circle-item:hover .circle-image-container {
  transform: scale(1.06) rotate(4deg);
  border-color: var(--primary-blue);
  box-shadow: 0 15px 35px rgba(0, 119, 182, 0.2);
}

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

.circle-item:hover .circle-image-container img {
  transform: scale(1.1);
}

.circle-number {
  font-family: var(--font-english);
  font-size: 3rem;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 5px;
}

.circle-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
  transition: var(--transition);
}

.circle-item:hover .circle-title {
  color: var(--primary-blue);
}

.circle-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Infinite Loop Background Slider (Trace of yuukiseikatsu about section) */
.infinite-slider-container {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  margin: 60px 0;
  border-radius: var(--border-radius-large);
  box-shadow: var(--box-shadow);
}

.infinite-slider-track {
  display: flex;
  width: 200%; /* 2x size to allow continuous loop */
  animation: scroll-loop 40s linear infinite;
}

.infinite-slider-track:hover {
  animation-play-state: paused;
}

.slide-image {
  width: 50%;
  height: 280px;
  display: flex;
  gap: 15px;
}

.slide-image img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

@keyframes scroll-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Access & Info Section (Organic Dark Layout) */
.access-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  margin-top: 50px;
}

.info-box {
  background-color: var(--white);
  padding: 50px;
  border-radius: var(--border-radius-large);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0,0,0,0.03);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px dashed rgba(62, 58, 57, 0.1);
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table th {
  text-align: left;
  padding: 20px 0;
  width: 130px;
  font-family: var(--font-accent);
  color: var(--primary-blue);
  font-size: 1.1rem;
}

.info-table td {
  padding: 20px 0;
  font-size: 1rem;
}

.info-tel {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-orange);
  font-family: var(--font-accent);
}

.map-box {
  border-radius: var(--border-radius-large);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  box-shadow: var(--box-shadow);
  border: 6px solid var(--white);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Organic Deep Gray Footer */
footer {
  background-color: #313131; /* 有機生活のフッター背景 (ダークグレー) */
  color: var(--bg-cream);
  padding: 80px 0 30px;
  border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 25px;
  transition: var(--transition);
}

.footer-logo:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.footer-desc {
  color: #B5B2A9;
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 450px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.footer-nav a {
  color: #D1CEC5;
  font-weight: 700;
  font-size: 1rem;
}

.footer-nav a:hover {
  color: var(--secondary-blue);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-size: 0.85rem;
  color: #8C8981;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition);
}

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



/* Sticky Bottom CTA for Mobile */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: none; /* 初期状態は非表示（PC） */
  grid-template-columns: 1fr 1fr;
  z-index: 999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

.cta-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-accent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.cta-tel {
  background-color: var(--accent-orange);
}

.cta-tel:hover {
  background-color: #c95400;
}

.cta-map {
  background-color: var(--accent-green);
}

.cta-map:hover {
  background-color: #437a32;
}

/* news.html Filter Buttons styling */
.filter-btn {
  border: 2px solid transparent;
  transition: var(--transition);
}

.filter-btn:hover {
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
  border-color: currentColor;
}

.filter-btn.active {
  background-color: var(--primary-blue) !important;
  color: var(--white) !important;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .access-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .nav-links {
    display: none; /* Hide header links on smaller screens, rely on drawer */
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --border-radius-large: 40px;
  }
  
  header {
    top: 10px;
    width: 95%;
  }

  .header-container {
    padding: 10px 20px;
  }
  
  .logo {
    font-size: 1.3rem;
  }

  .organic-section {
    padding: 60px 0;
  }
  
  .hero {
    height: auto;
    min-height: auto;
    padding: 120px 0 60px 0;
    border-radius: 0 0 40px 40px;
  }

  .hero-box {
    padding: 30px 15px;
    width: 92%;
  }

  .hero-logo-container img {
    width: 110px !important;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .scroll-down {
    display: none;
  }

  .news-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
  }
  
  .news-date-block {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .circle-grid {
    gap: 30px;
  }

  .circle-image-container {
    width: 180px;
    height: 180px;
  }

  .infinite-slider-container {
    height: 180px;
  }

  .slide-image {
    height: 180px;
  }

  .info-box {
    padding: 30px 20px;
  }
  
  .sticky-cta {
    display: grid;
  }
  
  body {
    padding-bottom: 60px;
  }
}

@media (max-width: 576px) {
  .info-table tr {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
  }

  .info-table th {
    width: 100%;
    padding: 0 0 5px 0;
    font-size: 1rem;
  }

  .info-table td {
    width: 100%;
    padding: 0;
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .btn-hide-mobile {
    display: none !important;
  }

  .hero-cta-group {
    gap: 10px !important;
    padding: 0 10px;
  }

  .hero-cta-group .btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 10px !important;
    font-size: 0.85rem !important;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle-en {
    font-size: 2.2rem;
  }
  
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
