/* ===================================================================
   Header & Footer Styles - Salt Plus Redesign
   =================================================================== */

/* ===== Animation Keyframes ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95), transparent);
  animation: fadeIn 1s ease-out;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
}

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

/* ===== LOGO ===== */
.logo {
  font-family: 'Cormorant Garamond', serif;
  z-index: 1001;
  position: relative;
  margin: 0;
}

.logo a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text-primary);
  position: relative;
}

.logo-main::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo a:hover .logo-main::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== NAVIGATION ===== */
.main-nav {
  display: flex;
}

.main-nav__list {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__list .menu-item {
  list-style: none;
}

.main-nav__list .menu-item a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  display: block;
}

.main-nav__list .menu-item a ruby {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.main-nav__list .menu-item a ruby rt {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.main-nav__list .menu-item a::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav__list .menu-item a:hover,
.main-nav__list .menu-item.current-menu-item a,
.main-nav__list .menu-item.current_page_item a {
  color: var(--text-primary);
}

.main-nav__list .menu-item a:hover::before,
.main-nav__list .menu-item.current-menu-item a::before,
.main-nav__list .menu-item.current_page_item a::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

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

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

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

/* ===== FOOTER ===== */
.footer {
  padding: 4rem 4rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-copyright {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ===== BREADCRUMB (共通) ===== */
.breadcrumb {
  padding: 8rem 4rem 2rem;
  background: var(--bg-primary);
}

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

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}

.breadcrumb-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
  color: var(--accent-gold);
}

.breadcrumb-separator {
  color: var(--text-muted);
  margin: 0 0.25rem;
}

.breadcrumb-list span:last-child {
  color: var(--text-primary);
}

/* ===== PAGE TOP BUTTON ===== */
#page-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  margin: 0;
}

#page-top.show {
  opacity: 1;
  visibility: visible;
}

#page-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

#page-top a:hover {
  background: var(--accent-gold-light);
  transform: translateY(-4px);
}

#page-top a i {
  font-size: 1.2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .header {
    padding: 1rem 2rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 1px solid var(--border-subtle);
    padding: 6rem 2rem 2rem;
    z-index: 1000;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .main-nav__list {
    flex-direction: column;
    gap: 2.5rem;
    align-items: baseline;
  }

  .main-nav__list .menu-item a {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }

  .main-nav__list .menu-item a ruby {
    gap: 0.5rem;
  }

  .main-nav__list .menu-item a ruby rt {
    font-size: 0.75rem;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease-out;
  }

  /* Footer Responsive */
  .footer {
    padding: 3rem 2rem 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links {
    justify-content: center;
    gap: 1.5rem;
  }

  /* Breadcrumb Responsive */
  .breadcrumb {
    padding: 7rem 2rem 1.5rem;
  }

  .breadcrumb-list {
    font-size: 0.7rem;
  }

  #page-top {
    bottom: 20px;
    right: 20px;
  }

  #page-top a {
    width: 45px;
    height: 45px;
  }
}

/* ===== CTA SECTION (共通) ===== */
.cta-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-accent), transparent);
}

.cta-section::after {
  content: 'CONTACT';
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 15vw;
  font-weight: 300;
  color: var(--accent-gold);
  opacity: 0.03;
  white-space: nowrap;
  pointer-events: none;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.cta-content {
  flex: 1;
}

.cta-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.cta-heading {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cta-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.cta-highlight {
  color: var(--accent-gold);
  font-weight: 500;
}

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  padding: 1.2rem 2.5rem;
  background: var(--accent-gold);
  color: var(--bg-primary);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease, transform 0.3s ease;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.cta-btn:hover {
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.cta-btn:hover::before {
  transform: translateX(0);
}

.cta-btn span,
.cta-btn svg {
  position: relative;
  z-index: 1;
}

.cta-btn svg {
  transition: transform 0.3s ease;
}

.cta-btn:hover svg {
  transform: translateX(4px);
}

.cta-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.cta-note svg {
  color: var(--accent-gold);
}

.pc-only {
  display: inline;
}

/* CTA Section Responsive */
@media (max-width: 768px) {
  .cta-section {
    padding: 4rem 0;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .cta-action {
    width: 100%;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
  }

  .pc-only {
    display: none;
  }
}
