@charset "utf-8";
/* ===================================================
   layout.css — ヘッダー / ドロワー / フッター / 追従CTA
   =================================================== */

/* ===================================================
   ヘッダー
   =================================================== */

.l-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.l-header.is-scrolled {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: var(--c-line);
  box-shadow: 0 2px 16px rgba(23, 23, 43, .05);
}

.l-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ロゴ */
.l-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.l-logo__text {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
}

.l-logo__text em {
  font-style: normal;
  color: var(--c-purple);
}

/* グローバルナビ */
.l-gnav {
  margin-left: auto;
}

.l-gnav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.l-gnav__link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c-ink-2);
  position: relative;
  padding-block: 6px;
  transition: color .2s var(--ease);
}

.l-gnav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--c-purple);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .3s var(--ease);
}

.l-gnav__link:hover {
  color: var(--c-purple);
}

.l-gnav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.l-header__cta {
  flex-shrink: 0;
}

/* ハンバーガー */
.l-burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  position: relative;
  flex-shrink: 0;
}

.l-burger__bar {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.l-burger__bar:nth-child(1) { top: 15px; }
.l-burger__bar:nth-child(2) { top: 21px; }
.l-burger__bar:nth-child(3) { top: 27px; }

.l-burger[aria-expanded="true"] .l-burger__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.l-burger[aria-expanded="true"] .l-burger__bar:nth-child(2) { opacity: 0; }
.l-burger[aria-expanded="true"] .l-burger__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===================================================
   ドロワー(SP)
   =================================================== */

.l-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: #fff;
  padding: 12px var(--gutter) 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}

.l-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.l-drawer__list {
  border-top: 1px solid var(--c-line);
}

.l-drawer__item {
  border-bottom: 1px solid var(--c-line);
}

.l-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 4px;
  font-size: 15.5px;
  font-weight: 500;
}

.l-drawer__cta {
  margin-top: 28px;
}

/* ===================================================
   追従CTA(SP下部)
   =================================================== */

.l-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-line);
  transform: translateY(120%);
  transition: transform .35s var(--ease);
  display: none;
}

.l-sticky-cta.is-visible {
  transform: none;
}

/* ===================================================
   フッター
   =================================================== */

.l-footer {
  background: #16162a;
  color: rgba(255, 255, 255, .68);
  padding-block: 64px 28px;
  font-size: 14px;
}

.l-footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 40px 56px;
  align-items: center;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.l-footer .l-logo__text {
  color: #fff;
}

.l-footer .l-logo__text em {
  color: #b990ff;
}

.l-footer__desc {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .55);
}

.l-footer__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.l-footer__links a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .62);
  transition: color .2s var(--ease);
}

.l-footer__links a:hover {
  color: #fff;
}

.l-footer__bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.l-footer__company {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

.l-footer__copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, .38);
  letter-spacing: .04em;
}

/* ===================================================
   タブレット
   =================================================== */

@media (max-width: 960px) {
  .l-gnav__list { gap: 18px; }
  .l-gnav__link { font-size: 13.5px; }
  .l-header__inner { gap: 20px; }
}

/* ===================================================
   スマートフォン
   =================================================== */

@media (max-width: 767px) {
  .l-gnav { display: none; }
  .l-header__cta { display: none; }

  .l-burger {
    display: block;
    margin-left: auto;
  }

  .l-logo__text { font-size: 17px; }

  .l-sticky-cta { display: block; }

  .l-footer {
    padding-block: 48px 24px;
  }

  .l-footer__top {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 32px;
  }

  .l-footer__links {
    justify-content: flex-start;
    gap: 10px 22px;
  }

  .l-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* 追従CTAぶんの余白 */
  body { padding-bottom: 72px; }
}
