/* ========================================
   Uniseed — 化粧品原料LP スタイルシート
   Aesthetic: Botanical Luxury
   ======================================== */

/* ========== LP変数 ========== */
:root {
  --cos-forest: #1a3a2a;
  --cos-forest-light: #2d5a42;
  --cos-sage: #6b8f71;
  --cos-gold: #c9a96e;
  --cos-gold-pale: rgba(201, 169, 110, .1);
  --cos-cream: #faf8f5;
  --cos-linen: #f3efe9;
  --cos-bark: #4a3f35;
  --cos-bark-light: #7a6f63;
  --cos-petal: #e8ddd0;
  --cos-white: #fffefb;
}

/* ========== ヘッダー白文字化（暗背景対応） ========== */
/* スクロール前: 白文字 */
.header:not(.scrolled) .logo { color: var(--cos-white); }
.header:not(.scrolled) .logo span { color: rgba(255,255,255,.45); }
.header:not(.scrolled) .nav-link { color: rgba(255,255,255,.55); }
.header:not(.scrolled) .nav-link:hover,
.header:not(.scrolled) .nav-link.active { color: #fff; }
.header:not(.scrolled) .lang-toggle { color: rgba(255,255,255,.45); }
.header:not(.scrolled) .lang-toggle:hover,
.header:not(.scrolled) .lang-toggle.active { color: #fff; }
.header:not(.scrolled) .lang-sep { color: rgba(255,255,255,.2); }
.header:not(.scrolled) .hamburger span { background: #fff; }

/* ========== 共通ユーティリティ ========== */
.cos-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}
.pc-only { display: inline; }

/* スクロールアニメーション */
.cos-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}
.cos-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* セクション共通ラベル */
.cos-section-label {
  font-family: var(--font-en);
  font-size: .6875rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--cos-sage);
  margin-bottom: 12px;
}
.cos-section-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--cos-forest);
  letter-spacing: .04em;
}
.cos-section-divider {
  width: 48px;
  height: 1px;
  background: var(--cos-gold);
  margin-top: 24px;
}

/* グレインテクスチャ */
.cos-hero-grain,
.cos-cta-grain {
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 1;
}

/* ========== ヒーローセクション ========== */
.cos-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--cos-forest) 0%, #0f2a1c 55%, #1c3325 100%);
  text-align: center;
}
.cos-hero-botanical {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 600px;
  color: var(--cos-gold);
  opacity: 1;
  z-index: 2;
  animation: cosFloat 20s ease-in-out infinite;
}
@keyframes cosFloat {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(-52%) rotate(2deg); }
}
.cos-hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding: 0 40px;
}
.cos-hero-label {
  font-family: var(--font-en);
  font-size: .75rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--cos-gold);
  margin-bottom: 40px;
  opacity: 0;
  animation: cosFadeIn .8s ease .3s forwards;
}
.cos-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 200;
  line-height: 1.7;
  color: var(--cos-white);
  letter-spacing: .08em;
  margin-bottom: 32px;
  opacity: 0;
  animation: cosFadeSlide .8s ease .5s forwards;
}
.cos-hero-divider {
  width: 48px;
  height: 1px;
  background: var(--cos-gold);
  margin: 0 auto 32px;
  opacity: 0;
  animation: cosFadeIn .8s ease .8s forwards;
}
.cos-hero-desc {
  font-size: .9375rem;
  font-weight: 300;
  line-height: 2.2;
  color: rgba(255, 255, 255, .65);
  opacity: 0;
  animation: cosFadeSlide .8s ease 1s forwards;
}
.cos-hero-scroll {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: cosFadeIn .8s ease 1.4s forwards;
}
.cos-hero-scroll span {
  font-family: var(--font-en);
  font-size: .625rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
}
.cos-hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--cos-gold), transparent);
  animation: cosScrollPulse 2s ease-in-out infinite;
}
@keyframes cosScrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: .4; transform: scaleY(.6); }
}
@keyframes cosFadeIn { to { opacity: 1; } }
@keyframes cosFadeSlide { to { opacity: 1; transform: translateY(0); } }

/* ========== フィロソフィーセクション ========== */
.cos-philosophy {
  padding: 140px 0;
  background: var(--cos-cream);
  position: relative;
}
.cos-philosophy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--cos-gold), transparent);
}
.cos-philosophy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.cos-philosophy-right p {
  font-size: .9375rem;
  font-weight: 300;
  line-height: 2.4;
  color: var(--cos-bark-light);
  margin-bottom: 20px;
}
.cos-philosophy-right p:last-child {
  margin-bottom: 0;
}

/* ========== 数字セクション ========== */
.cos-numbers {
  padding: 80px 0;
  background: var(--cos-forest);
  position: relative;
}
.cos-numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}
.cos-number-item {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}
.cos-number-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, .1);
}
.cos-number-value {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--cos-gold);
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.cos-number-value span {
  font-size: .6em;
  opacity: .7;
}
.cos-number-label {
  font-size: .8125rem;
  font-weight: 300;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .06em;
}

/* ========== 製品セクション ========== */
.cos-products {
  background: var(--cos-cream);
  padding-top: 140px;
}
.cos-section-header {
  text-align: center;
  margin-bottom: 100px;
}
.cos-section-header .cos-section-divider {
  margin: 24px auto 0;
}

/* 個別製品ブロック */
.cos-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  position: relative;
}
.cos-product--reverse {
  direction: rtl;
}
.cos-product--reverse > * {
  direction: ltr;
}

/* 製品ビジュアル */
.cos-product-visual {
  position: relative;
  overflow: hidden;
  background: var(--cos-linen);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.cos-product-img-wrap {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  position: relative;
  z-index: 2;
}
.cos-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .8s cubic-bezier(0.23, 1, 0.32, 1);
}
.cos-product-visual:hover .cos-product-img-wrap img {
  transform: scale(1.04);
}
.cos-product-num-float {
  position: absolute;
  right: 32px;
  bottom: 32px;
  font-family: var(--font-en);
  font-size: 8rem;
  font-weight: 200;
  color: rgba(0, 0, 0, .03);
  line-height: 1;
  z-index: 1;
  pointer-events: none;
}

/* 製品本文 */
.cos-product-body {
  display: flex;
  align-items: center;
  padding: 80px 0;
  background: var(--cos-white);
}
.cos-product--reverse .cos-product-body {
  background: var(--cos-cream);
}
.cos-product-content {
  max-width: 520px;
}
.cos-product-num {
  font-family: var(--font-en);
  font-size: .6875rem;
  letter-spacing: .3em;
  color: var(--cos-gold);
  margin-bottom: 16px;
}
.cos-product-num::before {
  content: 'No.';
}
.cos-product-name {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--cos-forest);
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.cos-product-name-en {
  font-family: var(--font-en);
  font-size: .75rem;
  letter-spacing: .18em;
  color: var(--cos-sage);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.cos-product-lead {
  font-size: .9375rem;
  font-weight: 300;
  line-height: 2.2;
  color: var(--cos-bark-light);
  margin-bottom: 32px;
}
.cos-product-quote {
  padding: 20px 24px;
  background: var(--cos-linen);
  border-left: 2px solid var(--cos-gold);
  border-radius: 0 4px 4px 0;
  font-size: .8125rem;
  font-weight: 300;
  line-height: 2;
  color: var(--cos-bark-light);
  font-style: italic;
  margin-bottom: 32px;
}

/* 機能アイテム */
.cos-product-features {
  margin-bottom: 32px;
}
.cos-feature-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--cos-petal);
  align-items: start;
}
.cos-feature-item:last-child {
  border-bottom: none;
}
.cos-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cos-gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cos-feature-icon svg {
  width: 18px;
  height: 18px;
  color: var(--cos-gold);
}
.cos-feature-item strong {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--cos-forest);
  margin-bottom: 4px;
}
.cos-feature-item p {
  font-size: .8125rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--cos-bark-light);
  margin: 0;
}

/* 使用方法 */
.cos-product-usage {
  margin-bottom: 28px;
  padding: 24px;
  background: var(--cos-linen);
  border-radius: 4px;
}
.cos-product-usage h5 {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--cos-forest);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cos-product-usage h5::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--cos-gold);
}
.cos-product-usage p {
  font-size: .8125rem;
  font-weight: 300;
  line-height: 2;
  color: var(--cos-bark-light);
  margin: 0;
}
.cos-product-usage ul {
  padding: 0;
  list-style: none;
}
.cos-product-usage li {
  font-size: .8125rem;
  font-weight: 300;
  line-height: 2;
  color: var(--cos-bark-light);
  padding-left: 16px;
  position: relative;
}
.cos-product-usage li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cos-gold);
  opacity: .5;
}

/* 認証バッジ */
.cos-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--cos-forest);
  border-radius: 4px;
  color: var(--cos-white);
}
.cos-product-badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--cos-gold);
}
.cos-product-badge span {
  font-size: .8125rem;
  font-weight: 300;
  letter-spacing: .04em;
}

/* ========== CTAセクション ========== */
.cos-cta {
  padding: 140px 0;
  background: linear-gradient(165deg, var(--cos-forest) 0%, #0f2a1c 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cos-cta-content {
  position: relative;
  z-index: 2;
}
.cos-cta-heading {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--cos-white);
  letter-spacing: .04em;
  margin-bottom: 20px;
}
.cos-cta-desc {
  font-size: .9375rem;
  font-weight: 300;
  line-height: 2;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 48px;
}
.cos-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 56px;
  border: 1px solid var(--cos-gold);
  color: var(--cos-gold);
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: .08em;
  transition: all .5s cubic-bezier(0.23, 1, 0.32, 1);
  background: transparent;
  text-decoration: none;
}
.cos-cta-btn:hover {
  background: var(--cos-gold);
  color: var(--cos-forest);
}
.cos-cta-btn svg {
  transition: transform .3s;
}
.cos-cta-btn:hover svg {
  transform: translateX(4px);
}

/* ========== レスポンシブ ========== */
@media (max-width: 1023px) {
  .cos-philosophy-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .cos-product {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .cos-product--reverse {
    direction: ltr;
  }
  .cos-product-visual {
    min-height: 50vh;
    padding: 40px;
  }
  .cos-product-body {
    padding: 60px 0;
  }
  .cos-product-content {
    max-width: none;
  }
  .cos-numbers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cos-hero-botanical {
    width: 300px;
    right: -10%;
  }
}

@media (max-width: 767px) {
  .cos-container {
    padding: 0 24px;
  }
  .pc-only {
    display: none;
  }
  .cos-hero {
    min-height: 90vh;
  }
  .cos-hero-content {
    padding: 0 24px;
  }
  .cos-hero-botanical {
    width: 200px;
    right: -15%;
    opacity: .5;
  }
  .cos-hero-scroll {
    bottom: 40px;
  }
  .cos-philosophy {
    padding: 80px 0;
  }
  .cos-philosophy::before {
    height: 48px;
  }
  .cos-numbers {
    padding: 48px 0;
  }
  .cos-numbers-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cos-number-item {
    padding: 28px 24px;
  }
  .cos-number-item:not(:last-child)::after {
    right: 20%;
    top: auto;
    bottom: 0;
    height: 1px;
    width: 60%;
  }
  .cos-products {
    padding-top: 80px;
  }
  .cos-section-header {
    margin-bottom: 60px;
  }
  .cos-product-visual {
    min-height: 40vh;
    padding: 32px;
  }
  .cos-product-num-float {
    font-size: 5rem;
    right: 16px;
    bottom: 16px;
  }
  .cos-product-body {
    padding: 48px 0;
  }
  .cos-cta {
    padding: 80px 0;
  }
  .cos-cta-btn {
    padding: 16px 40px;
    font-size: .875rem;
  }
}
