/* ====================================================================
   Claude Design版 専用 override CSS
   - 旧テーマCSS（common.css, style.css, sp.css）の干渉を打ち消す
   - 新版のセクション別色指定を有効化
   ==================================================================== */

/* ====================================================================
   ナビメニュー文字色のみ視認性確保（2026-05 追加）
   - ヘッダー背景は元のデザイン（透明）のまま
   - 文字を白で統一、選択中（active）とホバーでコッパーに
   ==================================================================== */
.nav a {
  color: #F5F1EA !important;
  transition: color 0.3s ease;
}
.nav a:hover {
  color: #D4A574 !important;
}
.nav a.active {
  color: #D4A574 !important;
}

/* ====================================================================
   PCフル幅対応：左右の黒い余白を解消（2026-05 追加）
   - .page を 100% にして、画面いっぱいまで広がる
   - max-width 1920px で 4K で過度に間延びしないように
   - 背景色を統一して、もし余白出ても違和感ないように
   ==================================================================== */
html, body {
  background: var(--off, #F5F1EA) !important;
}
.page {
  width: 100% !important;
  max-width: 1920px !important;
  margin: 0 auto !important;
}

/* ====================================================================
   暗背景CTAサブボタンの視認性確保（2026-05 追加）
   - reserve-cta / story / news / scenes-cta セクション内の .cta（サブ）を白文字に
   - solid（メインボタン）はそのまま
   - 明るい背景の .cta はそのまま
   ==================================================================== */
.reserve-cta .cta:not(.solid),
.story-cta .cta:not(.solid),
.scenes-cta .cta:not(.solid),
.news .cta:not(.solid),
.flow-cta .cta:not(.solid),
.legacy-cta .cta:not(.solid),
.cta-link {
  color: #F5F1EA !important;
  border-color: rgba(245, 241, 234, 0.5) !important;
}
.reserve-cta .cta:not(.solid):hover,
.story-cta .cta:not(.solid):hover,
.scenes-cta .cta:not(.solid):hover,
.news .cta:not(.solid):hover,
.flow-cta .cta:not(.solid):hover,
.legacy-cta .cta:not(.solid):hover,
.cta-link:hover {
  background: rgba(201, 123, 63, 0.15) !important;
  border-color: #D4A574 !important;
  color: #D4A574 !important;
}

/* CTAアクション内の文字色を暗背景上で確実に白に */
.reserve-cta .actions a,
.reserve-cta .actions a span {
  color: #F5F1EA !important;
}
.reserve-cta .actions a.solid,
.reserve-cta .actions a.solid span {
  color: #F5F1EA !important;
}

/* セクション間のリンクテキスト（テキストリンク）の視認性 */
.news .all,
.scenes .all,
.story .all {
  color: #D4A574 !important;
}

/* 暗背景セクション内の .eyebrow（小見出し）の視認性確保 */
.reserve-cta .eyebrow,
.news .eyebrow,
.story .eyebrow {
  color: #D4A574 !important;
}

/* HERO セクション（背景画像が暗い）の文字を白で確実に */
.hero h1,
.hero p,
.hero span {
  color: #F5F1EA;
}

/* ====================================================================
   SP用ハンバーガーメニュー / ドロワー（2026-05 追加）
   - JS で動的に drawer を生成、burgerクリックで開閉
   ==================================================================== */
.burger { z-index: 101 !important; position: relative; cursor: pointer; }
.burger.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2){ opacity: 0; }
.burger.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
.burger span { transition: transform .3s, opacity .3s; }

.sp-drawer {
  position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
  background: rgba(31, 63, 35, 0.82);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 100;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 24px;
  padding: 40px 20px;
}
/* ドロワー閉じるボタン（右上の×） */
.sp-drawer-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 102;
}
.sp-drawer-close span {
  position: absolute;
  display: block;
  width: 26px;
  height: 1.2px;
  background: #F5F1EA;
  transition: background 0.3s;
}
.sp-drawer-close span:nth-child(1) { transform: rotate(45deg); }
.sp-drawer-close span:nth-child(2) { transform: rotate(-45deg); }
.sp-drawer-close:hover span { background: #D4A574; }
.sp-drawer a {
  color: #F5F1EA !important;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-decoration: none;
  padding: 12px 16px;
  font-family: "Noto Serif JP", "游明朝", serif;
  transition: color 0.3s;
}
.sp-drawer a:hover { color: #D4A574 !important; }
.sp-drawer .reserve-btn {
  margin-top: 24px;
  border: 0.5px solid #F5F1EA;
  padding: 14px 36px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
}
body.sp-menu-open { overflow: hidden; }
body.sp-menu-open .sp-drawer { transform: translateX(0); }

/* ====================================================================
   HEROセクション視認性強化（2026-05 追加）
   - about / for-first-time / careers などのHERO背景画像が明るく、
     文字が読みにくい問題への対応
   - オーバーレイを強化＆テキストに影を追加
   ==================================================================== */
.hero-overlay {
  background: linear-gradient(180deg,
    rgba(8, 18, 10, 0.82) 0%,
    rgba(8, 18, 10, 0.68) 35%,
    rgba(8, 18, 10, 0.72) 70%,
    rgba(5, 12, 7, 0.96) 100%) !important;
}
.hero h1,
.hero h1 em,
.hero p,
.hero .hero-eyebrow,
.hero-eyebrow,
.hero-eyebrow .jp,
.hero-title,
.hero-title em,
.hero-en,
.hero-sub,
.hero-sub em,
.hero-tag,
.hero-lead {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85),
               0 1px 3px rgba(0, 0, 0, 0.9) !important;
}
.hero h1 {
  color: #F5F1EA !important;
}
/* 薄い色のサブテキストを濃く */
.hero-en {
  color: #F5F1EA !important;
}
.hero-sub {
  color: #F5F1EA !important;
}

/* HEROアイブロウのコッパー色を視認性ある明るめに */
.hero-eyebrow {
  color: #E5C49E !important;
  font-weight: 600 !important;
}
.hero-eyebrow .jp {
  color: #F5F1EA !important;
}

/* ====================================================================
   Smash Balloon Instagram Feed 既存デザイン適用（2026-05 追加）
   - #sbi_images（中間ラッパー）にgrid適用、3列強制
   - ヘッダー・ロード・フォローボタン非表示
   - 正方形アスペクト + sepiaフィルター
   ==================================================================== */
.sb-feed-wrap {
  padding: 0 120px;
}
.sb-feed-wrap #sb_instagram {
  padding: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  width: 100% !important;
  height: auto !important;
}
.sb-feed-wrap #sb_instagram .sb_instagram_header,
.sb-feed-wrap #sb_instagram .sbi_header_outer,
.sb-feed-wrap #sb_instagram #sbi_load,
.sb-feed-wrap #sb_instagram .sbi_follow_btn {
  display: none !important;
}
.sb-feed-wrap #sbi_images {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 4px !important;
  height: auto !important;
}
.sb-feed-wrap #sb_instagram .sbi_item {
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.sb-feed-wrap #sb_instagram .sbi_photo_wrap {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.sb-feed-wrap #sb_instagram .sbi_photo {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.sb-feed-wrap #sb_instagram .sbi_photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: sepia(.35) saturate(.6) brightness(.92);
  transition: filter 0.4s ease;
  display: block;
  position: relative !important;
}
.sb-feed-wrap #sb_instagram .sbi_photo:hover img {
  filter: sepia(.15) saturate(.85) brightness(1);
}
/* SP */
@media (max-width: 768px) {
  .sb-feed-wrap {
    padding: 0 24px;
  }
  .sb-feed-wrap #sbi_images {
    gap: 3px !important;
  }
}
