/* ==========================================
   MIMICO - 耳のセルフケアブランド
   共通スタイルシート
   ========================================== */

/* --- Google Fonts & CSS Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@300;400;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  /* ブランドカラー：アイボリー×テラコッタ×ウォームゴールド */
  --color-bg:         #faf8f5;
  --color-bg-alt:     #f3ede4;
  --color-cream:      #f7f2ea;
  --color-ivory:      #fffdf8;
  --color-primary:    #c8956c;   /* テラコッタ */
  --color-primary-dk: #a87050;
  --color-accent:     #d4b896;   /* ウォームベージュ */
  --color-gold:       #c9a96e;   /* ゴールド */
  --color-text:       #3a2e26;
  --color-text-sub:   #7a6a5e;
  --color-text-light: #b0a090;
  --color-white:      #ffffff;
  --color-border:     #e8ddd0;

  /* フォント */
  --font-sans:  'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', 'Cormorant Garamond', serif;
  --font-en:    'Cormorant Garamond', serif;

  /* スペーシング */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;

  /* その他 */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-soft: 0 4px 24px rgba(100,60,20,0.08);
  --shadow-card: 0 8px 40px rgba(100,60,20,0.12);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.4;
}

.en-title {
  font-family: var(--font-en);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.12em;
}

/* --- Layout --- */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

/* ロゴ */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.site-logo .logo-en {
  font-family: var(--font-en);
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 300;
  color: var(--color-primary);
  letter-spacing: 0.18em;
}

.site-logo .logo-jp {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--color-text-sub);
  font-weight: 300;
}

/* グローバルナビ */
.global-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.global-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1.1rem;
  gap: 2px;
  transition: color var(--transition);
}

.global-nav a .nav-en {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--color-text-sub);
  transition: color var(--transition);
}

.global-nav a .nav-jp {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.global-nav a:hover .nav-en,
.global-nav a:hover .nav-jp,
.global-nav a.active .nav-en,
.global-nav a.active .nav-jp {
  color: var(--color-primary);
}

.global-nav a.active .nav-en {
  position: relative;
}

.global-nav a.active .nav-en::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  margin-top: 2px;
}

/* CTAボタン */
.btn-header-cta {
  margin-left: var(--space-sm);
  padding: 0.55rem 1.4rem;
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: 100px;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em;
  transition: background var(--transition), transform var(--transition);
}

.btn-header-cta:hover {
  background: var(--color-primary-dk) !important;
  transform: translateY(-1px);
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background: var(--color-ivory);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

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

.mobile-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.4rem 2rem;
  gap: 3px;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  text-align: center;
}

.mobile-menu a .nav-en {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-primary);
  letter-spacing: 0.12em;
}

.mobile-menu a .nav-jp {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--color-text-sub);
}

/* ==========================================
   SECTION HEADINGS (共通)
   ========================================== */
.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-head .label {
  display: inline-block;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section-head p {
  font-size: 0.93rem;
  color: var(--color-text-sub);
  max-width: 540px;
  margin: 0 auto;
  line-height: 2;
}

/* 細いアンダーライン装飾 */
.section-head::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  margin: 1.4rem auto 0;
}

/* ==========================================
   BUTTONS（共通）
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: 100px;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: var(--color-primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,149,108,0.4);
}

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

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

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

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ==========================================
   CARDS（共通）
   ========================================== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--color-text);
  color: var(--color-text-light);
  padding: 4rem 0 2rem;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: 3rem;
}

.footer-brand .logo-en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.3rem;
}

.footer-brand .logo-jp {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 2;
  color: var(--color-text-light);
}

.footer-nav h4 {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--color-accent);
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav ul a {
  font-size: 0.82rem;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.footer-nav ul a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1.5rem var(--space-md) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom small {
  font-size: 0.72rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

/* ==========================================
   PAGE HERO（内部ページ共通）
   ========================================== */
.page-hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(160deg, var(--color-cream) 0%, var(--color-bg) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,149,108,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .label {
  display: inline-block;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.2rem;
}

.page-hero p {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  max-width: 520px;
  margin: 0 auto;
}

/* ==========================================
   FADE-IN ANIMATION
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.22s; }
.fade-in-delay-3 { transition-delay: 0.36s; }
.fade-in-delay-4 { transition-delay: 0.5s; }

/* ==========================================
   DECORATIVE ELEMENTS
   ========================================== */
.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 2rem auto;
}

.tag {
  display: inline-block;
  padding: 0.28rem 0.9rem;
  border-radius: 100px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  background: var(--color-bg-alt);
  color: var(--color-text-sub);
}

.tag--primary {
  background: rgba(200,149,108,0.14);
  color: var(--color-primary);
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-center { text-align: center; }
.text-sub { color: var(--color-text-sub); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
  .global-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 600px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 2.5rem;
  }

  section { padding: 3.5rem 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .page-hero {
    padding: 8rem 0 3.5rem;
  }
}
