/* ============================================================
   Layout — Header / Drawer / Footer / Utilities
   ============================================================ */

/* ---------- Header ---------- */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h-sp);
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
  border-bottom: 1px solid transparent;
}

.l-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(180, 145, 138, 0.2);
}

/* フロント以外は最初から白ヘッダー */
body:not(.front-page) .l-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(180, 145, 138, 0.2);
}

body:not(.front-page) .l-header__logo-name {
  color: var(--color-muted);
}

body:not(.front-page) .l-header__logo-sub {
  color: rgba(197, 119, 152, 0.75);
}

body:not(.front-page) .l-header__nav-link {
  color: var(--color-heading);
}

body:not(.front-page) .l-header__cta {
  background: var(--color-accent);
  color: var(--color-white);
}

body:not(.front-page) .l-header__hamburger {
  color: var(--color-heading);
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 1024px) {
  .l-header {
    height: var(--header-h);
  }

  .l-header__inner {
    padding-inline: var(--gutter-lg);
  }
}

.l-header__logo {
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.l-header__logo img {
  display: block;
  max-height: 40px;
  width: auto;
}

@media (min-width: 1024px) {
  .l-header__logo img {
    max-height: 48px;
  }
}

.l-header__logo:hover {
  opacity: 0.7;
}

.l-header__logo-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--color-white);
  transition: color 0.4s ease;
}

.l-header__logo-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: -2px;
  transition: color 0.4s ease;
}

.l-header.is-scrolled .l-header__logo-name {
  color: var(--color-muted);
}

.l-header.is-scrolled .l-header__logo-sub {
  color: rgba(197, 119, 152, 0.75);
}

.l-header__nav {
  display: none;
  align-items: center;
  gap: 28px;
}

@media (min-width: 1024px) {
  .l-header__nav {
    display: flex;
  }
}

.l-header__nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color var(--transition), color 0.4s ease;
}

.l-header__nav-link:hover {
  border-bottom-color: currentColor;
}

.l-header.is-scrolled .l-header__nav-link {
  color: var(--color-heading);
}

.l-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.l-header__cta {
  display: none;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-accent);
  transition: background 0.4s ease, color 0.4s ease, opacity var(--transition);
}

.l-header__cta:hover {
  opacity: 0.85;
}

.l-header.is-scrolled .l-header__cta {
  background: var(--color-accent);
  color: var(--color-white);
}

@media (min-width: 1024px) {
  .l-header__cta {
    display: inline-flex;
  }
}

.l-header__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-white);
  transition: color 0.4s ease;
}

.l-header.is-scrolled .l-header__hamburger {
  color: var(--color-heading);
}

@media (min-width: 1024px) {
  .l-header__hamburger {
    display: none;
  }
}

/* ---------- Mobile drawer ---------- */
.l-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.l-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.l-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 42, 42, 0.45);
  backdrop-filter: blur(4px);
}

.l-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 288px;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.l-drawer.is-open .l-drawer__panel {
  transform: translateX(0);
}

.l-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(201, 168, 118, 0.2);
}

.l-drawer__brand {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--color-muted);
}

.l-drawer__close {
  color: var(--color-heading);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.l-drawer__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  gap: 4px;
}

.l-drawer__link {
  display: block;
  width: 100%;
  padding: 12px 0;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-heading);
  border-bottom: 1px solid rgba(201, 168, 118, 0.12);
  transition: color var(--transition);
}

.l-drawer__link:hover {
  color: var(--color-accent);
}

.l-drawer__foot {
  padding: 0 24px 40px;
}

@media (min-width: 1024px) {
  .l-drawer {
    display: none;
  }
}

/* ---------- Footer ---------- */
.l-footer {
  background: var(--color-charcoal-deep);
  color: rgba(255, 255, 255, 0.75);
}

.l-footer__inner {
  display: grid;
  gap: 48px;
  padding-block: 64px;
}

@media (min-width: 768px) {
  .l-footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .l-footer__inner {
    grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
    gap: 32px;
    padding-block: 80px;
  }
}

.l-footer__logo-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.2em;
  color: var(--color-white);
}

.l-footer__logo-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.l-footer__divider {
  width: 32px;
  height: 1px;
  background: var(--color-white);
  opacity: 0.6;
  margin: 16px 0;
}

.l-footer__tagline {
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
}

.l-footer__heading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--color-white);
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.l-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.l-footer__list a,
.l-footer__list button {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--transition);
  text-align: left;
}

.l-footer__list a:hover,
.l-footer__list button:hover {
  color: var(--color-white);
}

.l-footer__label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-white);
  opacity: 0.7;
  margin-bottom: 4px;
}

.l-footer__text {
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
}

.l-footer__access {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.l-footer__sns-text {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
}

.l-footer__sns {
  display: flex;
  gap: 16px;
}

.l-footer__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.8);
  transition: border-color var(--transition), color var(--transition);
}

.l-footer__sns-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.l-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.l-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-block: 20px;
}

@media (min-width: 640px) {
  .l-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.l-footer__legal {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
}

.l-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.l-footer__copy {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Back to top ---------- */
.l-pagetop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(168, 152, 153, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
}

.l-pagetop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.l-pagetop__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1;
}
