/* ==========================================================================
   Header - 2025 Design Trends
   Fluid Typography, Glass Morphism, Micro-interactions
   English Primary + Japanese Sub Typography
   ========================================================================== */

@layer base, layout, components, utilities, pages;

@layer components {

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

.im-header {
  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Noto Sans JP', sans-serif;

  /* Header dimensions */
  --header-height: 88px;
  --header-height-scrolled: 72px;

  /* Colors - Refined palette */
  --header-bg: rgba(255, 255, 255, 0.72);
  --header-bg-scrolled: rgba(255, 255, 255, 0.88);
  --header-text: #1a1a1a;
  --header-text-muted: rgba(26, 26, 26, 0.5);
  --header-border: rgba(26, 26, 26, 0.06);

  /* Accent - Deep amber gold */
  --header-accent: #9a7a2d;
  --header-accent-hover: #7d6324;
  --header-accent-light: rgba(154, 122, 45, 0.08);
  --header-accent-glow: rgba(154, 122, 45, 0.25);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.5s;

  /* Spacing */
  --nav-gap: clamp(20px, 2.5vw, 36px);

  /* Menu overlay */
  --menu-bg: #0f0f0f;
  --menu-text: #fafafa;
  --menu-text-muted: rgba(250, 250, 250, 0.45);
  --menu-border: rgba(250, 250, 250, 0.08);
  --menu-accent: #c9a84c;
}


/* ==========================================================================
   2. HEADER BAR - Glass Morphism 2025
   ========================================================================== */

.im-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--header-border);
  transition:
    background var(--duration-normal) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth);
}

/* Scrolled state - subtle elevation */
.im-header.is-scrolled {
  --header-bg: var(--header-bg-scrolled);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Subtle top accent line */
.im-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--header-accent) 30%,
    var(--header-accent) 70%,
    transparent 100%
  );
  opacity: 0;
  transform: scaleX(0);
  transition:
    opacity var(--duration-normal) var(--ease-smooth),
    transform var(--duration-slow) var(--ease-out);
}

.im-header.is-scrolled::before {
  opacity: 0.6;
  transform: scaleX(1);
}

/* Inner container */
.im-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nav-gap);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  min-height: var(--header-height);
  transition: min-height var(--duration-normal) var(--ease-smooth);
}

.im-header.is-scrolled .im-header__inner {
  min-height: var(--header-height-scrolled);
}


/* ==========================================================================
   3. LOGO / BRAND
   ========================================================================== */

.im-header__brand {
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
}

.im-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--header-text);
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.im-header__logo:hover {
  transform: scale(1.02);
}

.im-header__logo:active {
  transform: scale(0.98);
}

.im-header__logo img {
  display: block;
  height: clamp(40px, 5.5vw, 52px);
  width: auto;
  transition: height var(--duration-normal) var(--ease-smooth);
}

.im-header.is-scrolled .im-header__logo img {
  height: clamp(36px, 4.5vw, 44px);
}


/* ==========================================================================
   4. DESKTOP NAVIGATION - Bilingual Typography
   ========================================================================== */

.im-header__nav-inline {
  display: none;
  flex: 1;
  justify-content: center;
}

@media (min-width: 1100px) {
  .im-header__nav-inline {
    display: flex;
  }
}

.im-header__menu-inline {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Menu item link - Stacked EN/JA */
.im-header__menu-inline a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 4px;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.im-header__menu-inline a:hover {
  transform: translateY(-2px);
}

/* English - Primary display font */
.menu-item__en {
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--header-text);
  line-height: 1.1;
  transition: color var(--duration-fast) var(--ease-smooth);
}

/* Japanese - Subtle sub text */
.menu-item__ja {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--header-text-muted);
  line-height: 1.2;
  transition: color var(--duration-fast) var(--ease-smooth);
}

/* Hover & current states */
.im-header__menu-inline a:hover .menu-item__en,
.im-header__menu-inline a[aria-current="page"] .menu-item__en {
  color: var(--header-accent);
}

.im-header__menu-inline a:hover .menu-item__ja,
.im-header__menu-inline a[aria-current="page"] .menu-item__ja {
  color: var(--header-accent);
  opacity: 0.7;
}

/* Animated underline */
.im-header__menu-inline a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--header-accent);
  transform: translateX(-50%);
  transition: width var(--duration-normal) var(--ease-out);
}

.im-header__menu-inline a:hover::after,
.im-header__menu-inline a[aria-current="page"]::after {
  width: 100%;
}


/* ==========================================================================
   5. HEADER CONTROLS (CTAs + Hamburger)
   ========================================================================== */

.im-header__top-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
}

.im-header__actions {
  display: none;
  align-items: center;
  gap: 10px;
}

@media (min-width: 900px) {
  .im-header__actions {
    display: flex;
  }
}

/* CTA buttons - Bilingual */
.im-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--header-border);
  border-radius: 24px;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition:
    background var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth),
    box-shadow var(--duration-fast) var(--ease-smooth);
}

.im-header__cta:hover {
  background: var(--header-accent-light);
  border-color: var(--header-accent);
  transform: translateY(-2px);
}

.im-header__cta:active {
  transform: translateY(0) scale(0.98);
}

.im-header__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--header-text-muted);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.im-header__cta:hover .im-header__cta-icon {
  color: var(--header-accent);
}

.im-header__cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.im-header__cta-en {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--header-text);
  line-height: 1.1;
}

.im-header__cta-ja {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--header-text-muted);
  line-height: 1.2;
}

/* Primary CTA */
.im-header__cta--primary {
  border-color: var(--header-accent);
  background: var(--header-accent);
  padding: 0 24px;
}

.im-header__cta--primary .im-header__cta-en,
.im-header__cta--primary .im-header__cta-ja {
  color: #fff;
}

.im-header__cta--primary .im-header__cta-ja {
  opacity: 0.8;
}

.im-header__cta--primary:hover {
  background: var(--header-accent-hover);
  border-color: var(--header-accent-hover);
  box-shadow: 0 8px 24px var(--header-accent-glow);
}


/* ==========================================================================
   6. HAMBURGER BUTTON - Modern Minimal
   ========================================================================== */

.im-header__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--header-border);
  border-radius: 50%;
  background: transparent;
  color: var(--header-text);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-bounce);
}

.im-header__toggle:hover {
  background: var(--header-accent-light);
  border-color: var(--header-accent);
}

.im-header__toggle:active {
  transform: scale(0.95);
}

/* Toggle label */
.im-header__toggle-label {
  font-family: var(--font-display);
  font-size: 0.5625rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.05em;
  color: var(--header-text-muted);
  text-transform: uppercase;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.im-header__toggle:hover .im-header__toggle-label {
  color: var(--header-accent);
}

/* Burger icon */
.im-header__burger {
  position: relative;
  width: 20px;
  height: 12px;
}

.im-header__burger span {
  position: absolute;
  left: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition:
    transform var(--duration-normal) var(--ease-smooth),
    opacity var(--duration-fast) var(--ease-smooth),
    width var(--duration-fast) var(--ease-smooth);
}

.im-header__burger span:nth-child(1) { top: 0; width: 100%; }
.im-header__burger span:nth-child(2) { top: 5px; width: 60%; left: 40%; }
.im-header__burger span:nth-child(3) { top: 10px; width: 80%; left: 20%; }

/* Burger → X animation */
.im-header.is-open .im-header__burger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
  width: 100%;
}

.im-header.is-open .im-header__burger span:nth-child(2) {
  opacity: 0;
  transform: translateX(8px);
}

.im-header.is-open .im-header__burger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  width: 100%;
  left: 0;
}

/* Toggle state when menu open */
.im-header.is-open .im-header__toggle {
  border-color: var(--menu-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--menu-text);
}

.im-header.is-open .im-header__toggle-label {
  color: var(--menu-text-muted);
}


/* ==========================================================================
   7. FULL-SCREEN MENU OVERLAY
   ========================================================================== */

.im-header__nav {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  background: var(--menu-bg);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    visibility 0s linear var(--duration-slow),
    opacity var(--duration-slow) var(--ease-smooth);
}

.im-header.is-open .im-header__nav {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Ambient gradient background */
.im-header__nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 10% 20%, rgba(154, 122, 45, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 90%, rgba(154, 122, 45, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.8s var(--ease-smooth) 0.2s;
}

.im-header.is-open .im-header__nav::before {
  opacity: 1;
}

/* Subtle noise texture */
.im-header__nav::after {
  content: '';
  position: absolute;
  inset: 0;
  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)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Close button hidden (use toggle) */
.im-header__close {
  display: none;
}


/* ==========================================================================
   8. MENU CONTAINER
   ========================================================================== */

.im-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 100px clamp(28px, 10vw, 140px) 40px;
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
  .im-menu {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(80px, 10vw, 160px);
    padding: 140px clamp(60px, 12vw, 200px) 80px;
  }
}

/* Media area (desktop only) */
.im-menu__media {
  display: none;
}

@media (min-width: 1024px) {
  .im-menu__media {
    display: block;
    position: relative;
    width: 32%;
    max-width: 420px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition:
      opacity 0.7s var(--ease-smooth) 0.3s,
      transform 0.7s var(--ease-out) 0.3s;
  }

  .im-header.is-open .im-menu__media {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .im-menu__media::before {
    content: '';
    display: block;
    padding-top: 130%;
  }

  .im-menu__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.08) saturate(0.9);
  }

  .im-menu__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(15, 15, 15, 0.1) 0%,
      rgba(15, 15, 15, 0.5) 100%
    );
    pointer-events: none;
  }
}

.im-menu__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}


/* ==========================================================================
   9. MENU LIST
   ========================================================================== */

.im-menu__listInner {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
}

.im-menu__item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease-smooth),
    transform var(--duration-slow) var(--ease-out);
}

.im-header.is-open .im-menu__item {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.im-header.is-open .im-menu__item:nth-child(1) { transition-delay: 0.08s; }
.im-header.is-open .im-menu__item:nth-child(2) { transition-delay: 0.12s; }
.im-header.is-open .im-menu__item:nth-child(3) { transition-delay: 0.16s; }
.im-header.is-open .im-menu__item:nth-child(4) { transition-delay: 0.20s; }
.im-header.is-open .im-menu__item:nth-child(5) { transition-delay: 0.24s; }
.im-header.is-open .im-menu__item:nth-child(6) { transition-delay: 0.28s; }
.im-header.is-open .im-menu__item:nth-child(7) { transition-delay: 0.32s; }
.im-header.is-open .im-menu__item:nth-child(8) { transition-delay: 0.36s; }
.im-header.is-open .im-menu__item:nth-child(9) { transition-delay: 0.40s; }
.im-header.is-open .im-menu__item:nth-child(10) { transition-delay: 0.44s; }
.im-header.is-open .im-menu__item:nth-child(11) { transition-delay: 0.48s; }
.im-header.is-open .im-menu__item:nth-child(12) { transition-delay: 0.52s; }
.im-header.is-open .im-menu__item:nth-child(13) { transition-delay: 0.56s; }

/* Privacy item styling */
.im-menu__item--privacy {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--menu-border);
}


/* ==========================================================================
   10. MENU LINK - Large Bilingual Typography
   ========================================================================== */

.im-menu__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  text-decoration: none;
  position: relative;
  border-bottom: 1px solid var(--menu-border);
  transition: padding var(--duration-fast) var(--ease-smooth);
}

@media (min-width: 1024px) {
  .im-menu__link {
    padding: 28px 0;
  }
}

/* Hover background sweep */
.im-menu__link::before {
  content: '';
  position: absolute;
  left: -40px;
  right: -40px;
  top: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(154, 122, 45, 0.1) 0%,
    rgba(154, 122, 45, 0.04) 100%
  );
  opacity: 0;
  transform: translateX(-100%);
  transition:
    opacity var(--duration-normal) var(--ease-smooth),
    transform var(--duration-normal) var(--ease-out);
}

.im-menu__link:hover::before,
.im-menu__link[aria-current="page"]::before {
  opacity: 1;
  transform: translateX(0);
}

.im-menu__link:hover,
.im-menu__link[aria-current="page"] {
  padding-left: 20px;
}

/* Arrow indicator */
.im-menu__link::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c9a84c' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  transition:
    opacity var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth);
}

.im-menu__link:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* English label - Large elegant */
.im-menu__text-en {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--menu-accent);
  line-height: 1.2;
  transition: color var(--duration-fast) var(--ease-smooth);
}

@media (min-width: 1024px) {
  .im-menu__text-en {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
  }
}

.im-menu__link:hover .im-menu__text-en {
  color: #d4b85e;
}

/* Japanese label */
.im-menu__text-ja {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--menu-text);
  line-height: 1.4;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.im-menu__link:hover .im-menu__text-ja {
  color: #fff;
}


/* ==========================================================================
   10.5. COMPANY INFO SECTION (In Menu Panel - Scrollable)
   ========================================================================== */

.im-menu__company-info {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--menu-border);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-slow) var(--ease-smooth) 0.5s,
    transform var(--duration-slow) var(--ease-smooth) 0.5s;
}

.im-header.is-open .im-menu__company-info {
  opacity: 1;
  transform: translateY(0);
}

.im-menu__company-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 20px;
}

.im-menu__company-title-en {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--menu-accent);
  line-height: 1.2;
}

.im-menu__company-title-ja {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--menu-text-muted);
  line-height: 1.3;
}

/* Locations in menu */
.im-menu__locations {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .im-menu__locations {
    flex-direction: row;
    gap: 24px;
  }
}

.im-menu__location {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.im-menu__location-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.im-menu__location-en {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--menu-accent);
  line-height: 1.2;
}

.im-menu__location-ja {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--menu-text-muted);
  line-height: 1.3;
}

.im-menu__location-address {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--menu-text);
  line-height: 1.5;
}

.im-menu__location-note {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--menu-text-muted);
  margin: 0;
}

/* Tel link in menu */
.im-menu__tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--menu-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.im-menu__tel svg {
  color: var(--menu-accent);
  flex-shrink: 0;
}

.im-menu__tel:hover {
  color: var(--menu-accent);
}


/* ==========================================================================
   11. BRAND PANEL - Compact Fixed Footer (CTAs only)
   ========================================================================== */

.im-header__brandpanel {
  display: flex;
  margin-top: auto;
  padding: 16px clamp(24px, 6vw, 48px);
  background: rgba(15, 15, 15, 0.95);
  border-top: 1px solid var(--menu-border);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--duration-slow) var(--ease-smooth) 0.55s,
    transform var(--duration-slow) var(--ease-smooth) 0.55s;
}

.im-header.is-open .im-header__brandpanel {
  opacity: 1;
  transform: translateY(0);
}

/* Legacy (hidden) */
.im-header__brandpanel-header,
.im-header__brandpanel-logo,
.im-header__brandpanel-company,
.im-header__locations,
.im-header__location,
.im-header__contact,
.im-header__address {
  display: none;
}

/* Brand Panel Actions - Compact CTAs */
.im-header__brandpanel-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}

.im-header__brandpanel-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--menu-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--menu-text);
  text-decoration: none;
  transition:
    background var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-bounce),
    box-shadow var(--duration-fast) var(--ease-smooth);
}

.im-header__brandpanel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.im-header__brandpanel-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--menu-text-muted);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.im-header__brandpanel-btn:hover .im-header__brandpanel-btn-icon {
  color: var(--menu-accent);
}

.im-header__brandpanel-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.im-header__brandpanel-btn-en {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--menu-text);
  line-height: 1.1;
}

.im-header__brandpanel-btn-ja {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--menu-text-muted);
  line-height: 1.2;
}

/* Primary CTA Button */
.im-header__brandpanel-btn--primary {
  border: none;
  background: linear-gradient(135deg, var(--menu-accent) 0%, #9a7a2d 100%);
  color: #0f0f0f;
}

.im-header__brandpanel-btn--primary .im-header__brandpanel-btn-icon {
  color: rgba(15, 15, 15, 0.6);
}

.im-header__brandpanel-btn--primary .im-header__brandpanel-btn-en {
  color: #0f0f0f;
  font-weight: 600;
}

.im-header__brandpanel-btn--primary .im-header__brandpanel-btn-ja {
  color: rgba(15, 15, 15, 0.7);
}

.im-header__brandpanel-btn--primary:hover {
  background: linear-gradient(135deg, #d4b85e 0%, var(--menu-accent) 100%);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(201, 168, 76, 0.3);
}

.im-header__brandpanel-btn--primary:hover .im-header__brandpanel-btn-icon {
  color: #0f0f0f;
}


/* ==========================================================================
   12. QUICK ACTIONS (Bottom CTAs) - Hidden, integrated into brandpanel
   ========================================================================== */

.im-header__quick {
  display: none;
}

.im-header__quick .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 32px;
  border-radius: 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition:
    background var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-bounce),
    box-shadow var(--duration-fast) var(--ease-smooth);
}

.im-header__quick .btn:not(.btn--primary) {
  border: 1px solid var(--menu-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--menu-text);
}

.im-header__quick .btn:not(.btn--primary):hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.im-header__quick .btn.btn--primary {
  border: none;
  background: linear-gradient(135deg, var(--menu-accent) 0%, #9a7a2d 100%);
  color: #0f0f0f;
  font-weight: 700;
}

.im-header__quick .btn.btn--primary:hover {
  background: linear-gradient(135deg, #d4b85e 0%, var(--menu-accent) 100%);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(201, 168, 76, 0.3);
}


/* ==========================================================================
   13. MENU SECTION CHILDREN
   ========================================================================== */

.im-menu__section-children {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--menu-border);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-slow) var(--ease-smooth) 0.65s,
    transform var(--duration-slow) var(--ease-smooth) 0.65s;
}

.im-header.is-open .im-menu__section-children {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   14. UTILITY STATES
   ========================================================================== */

html.is-menu-open,
html.is-menu-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.is-menu-open body {
  touch-action: none;
}


/* ==========================================================================
   15. ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .im-header,
  .im-header__nav,
  .im-menu__item,
  .im-menu__link,
  .im-menu__link::before,
  .im-menu__link::after,
  .im-header__brandpanel,
  .im-header__quick,
  .im-header__burger span,
  .im-menu__media,
  .im-header__cta,
  .im-header__toggle,
  .im-header__menu-inline a {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .im-header {
    border-bottom: 2px solid CanvasText;
  }

  .im-header__toggle {
    border: 2px solid CanvasText;
  }

  .im-menu__link::before {
    background: Highlight;
  }
}

/* Focus visible styles */
.im-header__menu-inline a:focus-visible,
.im-header__cta:focus-visible,
.im-header__toggle:focus-visible,
.im-menu__link:focus-visible {
  outline: 2px solid var(--header-accent);
  outline-offset: 4px;
}

}
