/* ========================================
   知夫里水産 LP — Style Sheet
   MUJI-inspired Natural & Premium Design
   ======================================== */

/* ----------------------------------------
   1. Custom Properties / Design Tokens
   ---------------------------------------- */
:root {
  /* Colors — based on #A0C9BF */
  --color-bg-primary: #FAFAF7;
  --color-bg-secondary: #EEF5F3;
  --color-bg-dark: #1E1E1C;
  --color-text-primary: #2C2C2C;
  --color-text-heading: #1A1A1A;
  --color-text-muted: #8A8A82;
  --color-text-light: #E8E4DC;
  --color-accent-green: #A0C9BF;
  --color-accent-dark: #4A8A7E;
  --color-accent-darker: #3B7568;
  --color-accent-gold: #B8A88A;
  --color-border: #D5E5E0;
  --color-white: #FFFFFF;

  /* Typography */
  --font-ja: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en: 'Montserrat', 'Inter', sans-serif;
  --font-size-base: 15px;
  --line-height-base: 1.9;
  --line-height-heading: 1.4;

  /* Spacing */
  --section-padding: 120px;
  --container-width: 1100px;
  --grid-gap: 40px;

  /* Transitions */
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-default: 0.4s;
}

/* ----------------------------------------
   2. Base / Typography
   ---------------------------------------- */
body {
  font-family: var(--font-ja);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
}

h1, h2, h3, h4 {
  font-family: var(--font-ja);
  color: var(--color-text-heading);
  line-height: var(--line-height-heading);
  font-weight: 700;
}

/* ----------------------------------------
   3. Layout / Container
   ---------------------------------------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.gold-rule {
  width: 0;
  height: 1px;
  background-color: var(--color-accent-green);
  margin: 24px 0;
  transition: width 0.8s var(--ease-default) 0.3s;
}

.gold-rule.is-visible {
  width: 60px;
}

/* ----------------------------------------
   4. Navigation
   ---------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color var(--duration-default) var(--ease-default),
              box-shadow var(--duration-default) var(--ease-default);
}

.nav.scrolled {
  background-color: rgba(250, 250, 247, 0.97);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-logo {
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  transition: color var(--duration-default) var(--ease-default);
}

.nav.scrolled .nav-logo {
  color: var(--color-text-heading);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--duration-default) var(--ease-default);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent-green);
  transition: width 0.3s var(--ease-default);
}

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

.nav.scrolled .nav-links a {
  color: var(--color-text-primary);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-white);
  transition: all 0.3s var(--ease-default);
}

.nav.scrolled .nav-hamburger span {
  background-color: var(--color-text-heading);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 4px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -4px);
}

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(30, 30, 28, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-default);
  z-index: 105;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-default), transform 0.4s var(--ease-default);
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }

/* ----------------------------------------
   5. Hero
   ---------------------------------------- */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: url('../images/hero-island.jpg') center/cover no-repeat;
}

/* Color overlay on the photo — #A0C9BF tint, keeps it soft */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(160, 201, 191, 0.55) 0%,
    rgba(140, 190, 179, 0.50) 40%,
    rgba(107, 166, 154, 0.60) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Hide SVG island layer — real photo is used now */
.hero-island-bg {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
}

.hero-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s var(--ease-default) 0.3s forwards;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s var(--ease-default) 0.5s forwards;
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s var(--ease-default) 0.7s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-default) 1.2s forwards;
}

.hero-scroll span {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.4; }
}

/* ----------------------------------------
   6. Philosophy
   ---------------------------------------- */
.philosophy {
  padding: var(--section-padding) 0;
  background-color: var(--color-bg-primary);
}

.philosophy-layout {
  display: flex;
  gap: 80px;
  align-items: center;
}

.philosophy-image {
  flex: 0 0 420px;
  height: 480px;
  background: url('../images/394387.jpg') center/cover no-repeat;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.philosophy-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.philosophy-image-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.philosophy-text h2 {
  font-size: 30px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.philosophy-text p {
  color: var(--color-text-primary);
  margin-bottom: 1.6em;
}

.philosophy-text p:last-of-type {
  margin-bottom: 0;
}

/* ----------------------------------------
   7. Island Story
   ---------------------------------------- */
.island-story {
  padding: var(--section-padding) 0;
  background: linear-gradient(
    180deg,
    var(--color-bg-secondary) 0%,
    #E0EDEA 100%
  );
  position: relative;
  text-align: center;
}

.island-card {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(250, 250, 247, 0.9);
  padding: 60px;
  border-radius: 4px;
}

.island-card h2 {
  font-size: 26px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.island-card p {
  color: var(--color-text-primary);
  text-align: left;
  margin-bottom: 1.4em;
}

.island-card p:last-of-type {
  margin-bottom: 0;
}

/* ----------------------------------------
   8. Products Grid
   ---------------------------------------- */
.products {
  padding: var(--section-padding) 0;
  background-color: var(--color-bg-primary);
}

.products-header {
  text-align: center;
  margin-bottom: 60px;
}

.products-header h2 {
  font-size: 28px;
  letter-spacing: 0.06em;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.product-card {
  background-color: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-default), box-shadow 0.35s var(--ease-default);
  border: 1px solid var(--color-border);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.product-card.sold-out {
  opacity: 0.55;
  pointer-events: none;
}

.product-image {
  aspect-ratio: 1;
  background-color: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, #D5E5E0 100%);
  transition: transform 0.6s var(--ease-default);
}

.product-card:hover .product-image-inner {
  transform: scale(1.03);
}

.product-image-label {
  position: absolute;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

.sold-out-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(250, 250, 247, 0.6);
}

.sold-out-overlay span {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

.product-body {
  padding: 24px;
}

.product-category {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 8px;
}

.product-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 8px;
  line-height: 1.5;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.product-price {
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text-heading);
  font-variant-numeric: tabular-nums;
}

.product-price-suffix {
  font-family: var(--font-ja);
  font-size: 12px;
  color: var(--color-text-muted);
}

.badge-shipping {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
  border: 1px solid var(--color-accent-green);
  border-radius: 2px;
  padding: 2px 8px;
}

.product-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.product-variants {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  padding: 10px 12px;
  background-color: var(--color-bg-primary);
  border-radius: 2px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent-dark);
  transition: gap 0.3s var(--ease-default);
}

.product-link:hover {
  gap: 10px;
}

.product-link-arrow {
  font-size: 14px;
  transition: transform 0.3s var(--ease-default);
}

.product-link:hover .product-link-arrow {
  transform: translateX(2px);
}

/* ----------------------------------------
   9. Beginner Set Feature
   ---------------------------------------- */
.feature-set {
  padding: var(--section-padding) 0;
  background-color: var(--color-bg-secondary);
}

.feature-layout {
  display: flex;
  gap: 60px;
  align-items: center;
}

.feature-image {
  flex: 0 0 440px;
  height: 400px;
  background: url('../images/5.png') center/cover no-repeat;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-image-label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

.feature-text .section-label {
  color: var(--color-accent-dark);
}

.feature-text h2 {
  font-size: 28px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.feature-text p {
  margin-bottom: 1.4em;
  color: var(--color-text-primary);
}

.feature-price {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text-heading);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.feature-price-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* Shared button style */
.btn-primary {
  display: inline-block;
  padding: 16px 44px;
  background-color: var(--color-accent-dark);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-default), transform 0.2s var(--ease-default);
}

.btn-primary:hover {
  background-color: var(--color-accent-darker);
  transform: translateY(-1px);
}

/* ----------------------------------------
   10. CTA
   ---------------------------------------- */
.cta {
  padding: 160px 0;
  background-color: var(--color-bg-primary);
  text-align: center;
}

.cta h2 {
  font-size: 28px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.cta-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 20px;
}

/* ----------------------------------------
   11. Footer
   ---------------------------------------- */
.footer {
  padding: 80px 0 40px;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

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

.footer-company-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-white);
}

.footer-address {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(232, 228, 220, 0.6);
}

.footer-heading {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.4);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(232, 228, 220, 0.7);
  transition: color 0.3s var(--ease-default);
}

.footer-links a:hover {
  color: var(--color-white);
}

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

.footer-copyright {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(232, 228, 220, 0.3);
}

/* ----------------------------------------
   12. Scroll Animations
   ---------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-default), transform 0.8s var(--ease-default);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered product cards */
.product-card.animate-on-scroll:nth-child(3n+2) { transition-delay: 0.1s; }
.product-card.animate-on-scroll:nth-child(3n) { transition-delay: 0.2s; }

/* ----------------------------------------
   13. Responsive — Tablet
   ---------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
    --grid-gap: 30px;
  }

  .container {
    padding: 0 30px;
  }

  .philosophy-layout {
    flex-direction: column;
    gap: 40px;
  }

  .philosophy-image {
    flex: none;
    width: 100%;
    height: 360px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-layout {
    flex-direction: column;
    gap: 40px;
  }

  .feature-image {
    flex: none;
    width: 100%;
    height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .island-card {
    padding: 48px;
  }

  .cta {
    padding: 100px 0;
  }
}

/* ----------------------------------------
   14. Responsive — Mobile
   ---------------------------------------- */
@media (max-width: 600px) {
  :root {
    --section-padding: 60px;
    --grid-gap: 24px;
  }

  .container {
    padding: 0 20px;
  }

  /* Nav */
  .nav {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 500px;
  }

  .hero-title {
    font-size: 28px;
    letter-spacing: 0.04em;
  }

  .hero-label {
    font-size: 11px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-content {
    padding: 0 20px;
  }

  /* Philosophy */
  .philosophy-image {
    height: 260px;
  }

  .philosophy-text h2 {
    font-size: 24px;
  }

  /* Island */
  .island-card {
    padding: 36px 28px;
  }

  .island-card h2 {
    font-size: 22px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-header h2 {
    font-size: 24px;
  }

  /* Feature */
  .feature-image {
    height: 260px;
  }

  .feature-text h2 {
    font-size: 24px;
  }

  /* CTA */
  .cta {
    padding: 80px 0;
  }

  .cta h2 {
    font-size: 24px;
  }

  .btn-primary {
    padding: 14px 36px;
    font-size: 13px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
