/* ========================================
   エレガント横バーヘッダー - les SALON
   ======================================== */

/* エレガントヘッダー - スタイルのみ（追従はheader-sticky-fix.cssで） */
.elegant-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 242, 0.98));
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(139, 115, 85, 0.08);
  border-bottom: 1px solid rgba(201, 168, 130, 0.15);
}

.header-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* エレガントロゴ */
.elegant-branding {
  flex-shrink: 0;
}

.elegant-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.elegant-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  letter-spacing: 0.05em;
}

.elegant-title a {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-serif);
  transition: all 0.3s ease;
}

.elegant-title a:hover {
  opacity: 0.8;
}

.elegant-tagline {
  font-size: 0.625rem;
  color: var(--color-accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
  opacity: 0.8;
}

/* エレガント横ナビゲーション */
.elegant-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 2rem;
}

.elegant-menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  align-items: center;
}

.elegant-menu-item {
  position: relative;
}

/* メニュー区切り線 */
.elegant-menu-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(139, 115, 85, 0.3),
    transparent
  );
}

.elegant-menu-item a {
  display: block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.08em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
}

/* ホバー時のアンダーライン */
.elegant-menu-item a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.elegant-menu-item a:hover,
.elegant-menu-item a.current {
  color: var(--color-accent);
  transform: translateY(-1px);
}

.elegant-menu-item a:hover::before,
.elegant-menu-item a.current::before {
  width: 80%;
}

/* モバイルメニュートグル */
.elegant-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.toggle-bar {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.elegant-menu-toggle.active .toggle-bar:nth-child(2) {
  transform: rotate(45deg) translate(6px, 6px);
}

.elegant-menu-toggle.active .toggle-bar:nth-child(3) {
  opacity: 0;
}

.elegant-menu-toggle.active .toggle-bar:nth-child(4) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* タブレット（1024px以下） */
@media (max-width: 1024px) {
  .header-wrapper {
    padding: 0 1.5rem;
    height: 70px;
  }
  
  .elegant-menu-item a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* モバイル（768px以下） */
@media (max-width: 768px) {
  /* html/body のスクロール制御 - 横スクロール完全防止 */
  html {
    overflow-x: hidden;
    width: 100%;
  }
  
  body {
    overflow-x: hidden;
    /* position削除済み（上で設定） */
    width: 100%;
    max-width: 100vw;
  }
  
  .header-wrapper {
    padding: 0 1rem;
    height: 60px;
  }
  
  .elegant-title {
    font-size: 1.4rem;
  }
  
  .elegant-tagline {
    font-size: 0.5rem;
  }
  
  /* モバイルメニュートグル表示 */
  .elegant-menu-toggle {
    display: flex;
  }
  
  /* モバイルナビゲーション - 完全に画面外に隠す */
  .elegant-navigation {
    position: fixed;
    top: 0;
    left: 100%; /* 画面の右外に完全配置 */
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #fff 0%, #f8f5f2 100%);
    box-shadow: -5px 0 30px rgba(139, 115, 85, 0.2);
    transition: left 0.3s ease;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
  }
  
  .elegant-navigation.active {
    left: 20%; /* 表示時：画面幅の20%位置（80%メニュー） */
  }
  
  .elegant-menu-list {
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    align-items: stretch;
  }
  
  .elegant-menu-item {
    border-bottom: 1px solid rgba(201, 168, 130, 0.2);
  }
  
  .elegant-menu-item a {
    padding: 1.25rem 0;
    font-size: 1rem;
    border-bottom: none;
  }
  
  .elegant-menu-item a:hover {
    padding-left: 0.5rem;
    color: var(--color-accent);
  }
}

/* モバイル小（480px以下） */
@media (max-width: 480px) {
  .header-wrapper {
    padding: 0 0.75rem;
  }
  
  .elegant-title {
    font-size: 1.2rem;
  }
  
  .toggle-bar {
    width: 24px;
  }
}

/* ========================================
   Cozy ロゴ専用スタイル（全ページ共通）
   ======================================== */

/* Google Fonts - Cormorant Garamond をヘッダーでも確実に読み込み */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;1,400;1,500&display=swap');

.cozy-header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.cozy-header-logo:hover {
    opacity: 0.82;
}

.cozy-logo-svg {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    /* スクロール時に少し縮小 */
    transition: transform 0.4s ease;
}

.site-header.scrolled .cozy-logo-svg {
    transform: scale(0.88);
}

.cozy-logo-wordmark {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.cozy-logo-en {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.95rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.1em;
    color: #2C4A3E;
    line-height: 1;
    display: block;
}

.cozy-logo-sub {
    font-size: 0.53rem;
    letter-spacing: 0.42em;
    color: #C4975A;
    font-weight: 400;
    text-transform: uppercase;
    display: block;
    line-height: 1;
}

/* ヘッダーがスクロールして背景が濃い場合の対応 */
.site-header.scrolled .cozy-logo-en { color: #2C4A3E; }
.site-header.scrolled .cozy-logo-sub { color: #C4975A; }

/* ヒーロー上でヘッダーが透明の場合 */
.site-header.transparent-header .cozy-logo-en { color: #F7F3EE; }
.site-header.transparent-header .cozy-logo-sub { color: rgba(196,151,90,0.85); }
.site-header.transparent-header .cozy-logo-svg circle[stroke="#C4975A"] { stroke: rgba(196,151,90,0.8); }
.site-header.transparent-header .cozy-logo-svg path { stroke: rgba(247,243,238,0.9); }

/* モバイル */
@media (max-width: 768px) {
    .cozy-logo-svg { width: 38px; height: 38px; }
    .cozy-logo-en { font-size: 1.65rem; }
    .cozy-logo-sub { font-size: 0.48rem; letter-spacing: 0.32em; }
}
