/*
 Theme Name: yukidoke
 Description: The Thaw Project 用カスタムLPテーマ
 Author: Gate of Cybele
 Version: 1.0.0
*/

/* ==========================================
   CSS 変数（カラーパレット）
========================================== */
:root {
  --color-primary: #E8A0A0;
  --color-primary-light: #F5C9C9;
  --color-primary-dark: #D17878;
  --color-secondary: #A3C9E8;
  --color-secondary-light: #C9E0F5;
  --color-accent: #D4AF37;
  --color-accent-wine: #6B4D57;
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #F8F6F4;
  --color-bg-tertiary: #F0EDEA;
  --color-text-primary: #2C2C2C;
  --color-text-secondary: #6B6B6B;
  --color-text-tertiary: #9B9B9B;
}

/* ==========================================
   リセット・グローバルスタイル
========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 80px; /* アンカーリンク時にヘッダーで隠れないように */
}

body {
  font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  letter-spacing: 0.05em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-primary);
  letter-spacing: 0.08em;
}

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

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

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

ul {
  list-style: none;
}

/* ==========================================
   フォント系ユーティリティクラス
========================================== */
.en-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.en-ui {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ==========================================
   レイアウト共通
========================================== */
section {
  padding: 80px 0;
}

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

/* ==========================================
   コンポーネント：セクションタイトル
========================================== */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--color-text-primary);
}

/* ==========================================
   コンポーネント：リード文
========================================== */
.lead {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ==========================================
   コンポーネント：ボタン
========================================== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #E8A0A0, #D17878);
  color: #FFFFFF;
}

.btn-primary:hover {
  opacity: 0.85;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(232, 160, 160, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* ==========================================
   コンポーネント：カード
========================================== */
.card {
  background-color: var(--color-bg-primary);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

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

.card ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* ==========================================
   コンポーネント：背景画像セクション
========================================== */
.section-bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.section-bg-image .container {
  position: relative;
  z-index: 2;
}

/* ==========================================
   コンポーネント：箇条書きリスト
========================================== */
.list-bullets {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.list-bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.list-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* ==========================================
   ヘッダー
========================================== */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 100;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.global-nav ul {
  display: flex;
  gap: 2rem;
}

.global-nav a {
  font-weight: 500;
  color: var(--color-text-primary);
  transition: color 0.3s;
}

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

/* ハンバーガーメニュー（SP用） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--color-text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   フッター
========================================== */
.site-footer {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.footer-nav {
  margin-bottom: 2rem;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* ==========================================
   Hero セクション
========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url('./img/0101TOP.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

/* Hero セクションはヘッダー直下から始める（上の余白を詰める） */
#hero {
  padding-top: 0;
  padding-bottom: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(232, 160, 160, 0.5), rgba(163, 201, 232, 0.3));
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 700px;
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem;
  border-radius: 12px;
}

.hero-text .en-title {
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-text .lead {
  text-align: left;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================
   パーパスセクション
========================================== */
.section-purpose {
  background-image: url('./img/0102Purpose.webp');
  text-align: center;
}

.section-purpose p,
.section-brand-concept p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.0rem;
  line-height: 2;
}

/* ==========================================
   ブランドコンセプトセクション
========================================== */
.section-brand-concept {
  background-image: url('./img/0103BrandConcept.webp');
}

#brand-concept .container {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

#brand-concept p {
  text-align: center;
  line-height: 2;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
}

.section-brand-concept p,
.section-brand-concept .list-bullets {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   ミッションセクション
========================================== */
.section-missions {
  background-color: var(--color-bg-secondary);
}

.mission {
  padding: 60px 0;
}

.mission-inner {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-direction: row;
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.mission-text {
  flex: 1;
}

.mission-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.mission-text .lead {
  text-align: left;
  line-height: 1.9;
}

.mission-text p {
  margin-bottom: 1rem;
}

.mission-note {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  font-style: italic;
}

.mission-visual {
  flex: 1;
  margin-bottom: 1rem;
}

.mission-visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.mission-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

.mission-bg-health {
  background-image: url('./img/0104mission_HealthCare.webp');
}

.mission-bg-beauty {
  background-image: url('./img/0105mission_Beauty.webp');
}

.mission-bg-wine {
  background-image: url('./img/0106mission_wine.webp');
}

/* Mission 02（Beauty）はDOMの順序で左画像・右テキストになります */

/* ==========================================
   メディア／コミュニティセクション
========================================== */
.section-media {
  text-align: center;
}

.section-media p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

/* ==========================================
   ブランド一覧セクション
========================================== */
.section-brands {
  background-color: var(--color-bg-tertiary);
}

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

.brand-grid .card ul li {
  list-style: disc;
  margin-left: 1.5rem;
}

/* ==========================================
   最終CTAセクション
========================================== */
.section-cta-final {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
}

.section-cta-final .section-title {
  font-size: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* ==========================================
   Mission 見出しスタイル（2段構成）
========================================== */
.mission-heading {
  margin-bottom: 1.25rem;
  text-align: left;
}

.mission-label {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.mission-title {
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  font-size: 1.6rem;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================
   スワイプ型 LP：スマホのみ適用
========================================== */
@media (max-width: 768px) {
  html {
    scroll-snap-type: y proximity;  /* mandatory → proximity に変更：自然な位置で止まりやすく */
    scroll-behavior: smooth;
    scroll-padding-top: 72px; /* SP でヘッダーが被らないように */
  }

  body {
    margin: 0;
  }

  .snap-section {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* セクション全体を上寄せ */
    padding-top: 24px;       /* 上余白をタイトに */
    padding-bottom: 40px;
  }

  .snap-section > .container,
  .snap-section .mission-inner,
  .snap-section .hero-inner {
    width: 100%;
  }

  /* Hero はヘッダー直下から始める */
  #hero.snap-section {
    align-items: flex-start;
    padding-top: 16px; /* ほぼヘッダー直下にカードがくるように */
  }

  /* Purpose / Brand Concept / Missions / CTA も上寄せ */
  #purpose.snap-section,
  #brand-concept.snap-section,
  .mission.snap-section,
  #cta-final.snap-section {
    align-items: flex-start;
  }

  /* フッターはスナップ対象から外して、ふつうのスクロールにする */
  footer {
    scroll-snap-align: none;
    min-height: auto;
    display: block;
    padding-top: 24px;
    padding-bottom: 32px; /* コピーライトまで確実に見えるよう余白だけ残す */
  }
}

/* ==========================================
   レスポンシブ対応（SP）
========================================== */
@media (max-width: 768px) {
  /* グローバルレイアウト */
  body {
    font-size: 14px;
    line-height: 1.7;
  }

  /* 共通セクション余白を少しタイトに */
  section {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  /* Hero はヘッダー直下から始める */
  #hero {
    padding-top: 0;
  }

  .container {
    padding: 0 22px;
  }

  /* セクションタイトル */
  .section-title {
    font-size: 1.75rem;
  }

  .lead {
    font-size: 1rem;
  }

  /* ヘッダー */
  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .global-nav.active {
    display: block;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .global-nav li {
    border-bottom: 1px solid #f0f0f0;
  }

  .global-nav a {
    display: block;
    padding: 1rem 2rem;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 60vh;
  }

  .hero-text {
    padding: 1.5rem;
    margin: 1.2rem auto 2rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.5;
  }

  .hero-buttons {
    flex-direction: column;
  }

  /* Mission */
  .mission {
    padding-top: 0;      /* カード上のベージュ帯をほぼゼロに */
    padding-bottom: 32px;
  }

  .mission-inner {
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background-color: #fff;
  }

  .mission-visual {
    order: -1; /* 画像を上に */
    margin-bottom: 0.08rem;  /* 画像とラベルの隙間をさらに詰める */
  }

  .mission-heading {
    text-align: center;
    margin-top: 0.20rem;     /* 画像直下からすぐラベルが来るイメージ */
    margin-bottom: 0.60rem;  /* ラベル〜見出し〜本文のバランスを少しタイトに */
  }

  .mission-label {
    margin-bottom: 0.04rem;  /* ラベルと見出しの隙間もほんの少しだけに */
  }

  .mission-title {
    font-size: 1.35rem;
  }

  .mission-text {
    text-align: left;
  }

  .mission-text p,
  .mission-text .lead {
    margin-bottom: 0.9rem;
  }

  .mission-text ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .mission-text li {
    margin-bottom: 0.4rem;
  }

  /* Missions セクションの上余白をゼロにする */
  #missions {
    padding-top: 0;
  }

  /* フッターのスナップを確実に外す */
  footer,
  .site-footer {
    scroll-snap-align: none;
    min-height: auto;
    display: block;
    padding-top: 24px;
    padding-bottom: 40px;
  }

  /* Purpose セクション本文を左寄せ（見出しは中央のまま） */
  #purpose p,
  .section-purpose p {
    text-align: left;
  }

  /* Brand Concept セクション本文・箇条書きを左寄せ（見出しは中央のまま） */
  #brand-concept p,
  #brand-concept li {
    text-align: left;
  }

  /* 最後の CTA セクション見出し・本文を左寄せ */
  #cta-final h2,
  #cta-final h3,
  #cta-final p {
    text-align: left;
  }

  /* Brand Grid */
  .brand-grid {
    grid-template-columns: 1fr;
  }

  /* CTA Buttons */
  .cta-buttons {
    flex-direction: column;
  }
}

/* ==========================================
   Mission 画像とラベルの間隔を詰める
   （スマホ専用の調整は @media 内で完結させるため、ここはコメントアウト）
========================================== */
/*
.mission-heading {
  margin-top: 0.25rem !important;
}

.mission-visual {
  margin-bottom: 0.25rem !important;
}
*/

/* ==========================================
   PC でヘッダーを完全固定
========================================== */
@media (min-width: 769px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }
}

/* ==========================================
   法的ページ（プライバシーポリシー・利用規約）
========================================== */
.legal-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
  line-height: 1.9;
}

.legal-section h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-text-primary);
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
  color: var(--color-text-primary);
}

.legal-section p {
  margin-bottom: 1.25rem;
  color: var(--color-text-secondary);
}

.legal-section ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  list-style: disc;
}

.legal-section li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.legal-section a {
  color: var(--color-primary);
  text-decoration: underline;
}

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

@media (max-width: 768px) {
  .legal-section {
    padding: 40px 24px;
  }

  .legal-section h1 {
    font-size: 1.8rem;
  }

  .legal-section h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
  }
}

