@charset "utf-8";
/* ==========================================================================
   layout.css — 全ページ共通の骨格
     l-header / l-gnav / l-drawer → header.php
     l-footer / l-pagetop         → footer.php
   ========================================================================== */

/* ==========================================================================
   HEADER
   実測（1920px）：高さ130px、左80px にタグライン＋ロゴ、右にナビ＋黒ボタン
   スクロール時は縮んで追従する（js-header に is-scrolled）
   ========================================================================== */
.l-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-bg);
  overflow-anchor: none;
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.l-header.is-scrolled {
  background: rgba(245, 245, 244, .96);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
  backdrop-filter: blur(6px);
}

.l-header__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: var(--header-h);
  transition: height var(--dur) var(--ease);
}

.l-header.is-scrolled .l-header__inner {
  height: var(--header-h-compact);
}

.l-header__brand {
  margin-right: auto;
}

.l-header__tagline {
  font-family: var(--ff-base);
  font-size: var(--fz-sm);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .06em;
  font-feature-settings: normal;
  color: var(--c-text);
  transition: opacity var(--dur) var(--ease), max-height var(--dur) var(--ease), margin var(--dur) var(--ease);
  max-height: 24px;
  margin-bottom: 12px;
}

.l-header.is-scrolled .l-header__tagline {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.l-header__logo img {
  width: 300px;
  height: auto;
}

/* --- グローバルナビ --- */
.l-gnav__list {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.l-gnav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--c-text-strong);
}

.l-gnav__ja {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .04em;
  position: relative;
}

.l-gnav__ja::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.l-gnav__link:hover .l-gnav__ja::after {
  transform: scaleX(1);
}

.l-gnav__en {
  font-family: var(--ff-en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--ls-en);
  line-height: 1;
  color: var(--c-text-light);
}

.l-header__contact {
  margin-left: 46px;
  line-height: 1;
}

/* --- ハンバーガー（SP/TAB） --- */
.l-menubtn {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  margin-left: 12px;
  border-radius: 50%;
  background: var(--c-dark);
}

.l-menubtn__bar {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 2px;
  background: var(--c-white);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.l-menubtn__bar:nth-child(1) { top: 17px; }
.l-menubtn__bar:nth-child(2) { top: 23px; }
.l-menubtn__bar:nth-child(3) { top: 29px; }

/* ==========================================================================
   DRAWER
   ========================================================================== */
.l-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: var(--z-drawer);
  width: min(420px, 100%);
  padding: 0 28px 40px;
  background: var(--c-dark);
  color: var(--c-white);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .45s var(--ease), visibility .45s;
}

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

.l-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.l-drawer__logo img {
  width: 200px;
  filter: invert(1);
}

.l-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  color: var(--c-white);
  font-size: 20px;
}

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

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

.l-drawer__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 4px;
}

.l-drawer__ja {
  font-size: 16px;
  font-weight: 700;
}

.l-drawer__en {
  font-family: var(--ff-en);
  font-size: 11px;
  letter-spacing: var(--ls-en);
  color: var(--c-text-light);
}

.l-drawer__sub {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-left: 4px;
  font-size: 13px;
}

.l-drawer__sub a {
  position: relative;
  padding-left: 14px;
  color: rgba(255, 255, 255, .85);
}

.l-drawer__sub a::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--c-accent);
  border-right: 1px solid var(--c-accent);
  transform: rotate(45deg);
}

.l-drawer__cta {
  margin-top: 32px;
  width: 100%;
  min-width: 0;
}

.l-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}

.l-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.l-drawer__sub-sub {
  color:#ccc;
  padding:20px 10px;
  font-size: 12px;
}

.l-drawer__sub-sub a {
  color:#ccc;
  text-decoration: underline;
}
/* ==========================================================================
   FOOTER
   実測：#222 地。SITE MAP（1200幅）→ Follow Us＋バナー → 罫線 → 会社情報（1520幅）
   ========================================================================== */
.l-footer {
  position: relative;
  z-index: 1;
  background: var(--c-dark);
  color: var(--c-white);
  padding-top: 85px;
}

/* --- SITE MAP --- */
.l-footer__maptitle {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 0;
  font-family: var(--ff-en);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .05em;
}

.l-footer__maptitle::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 1px;
  background: var(--c-line-dark);
}

.l-footer__maptitle::after {
  width: 40px;
  bottom: 0;
}

.l-footer__cols {
  display: flex;
  margin-top: 50px;
}

.l-footer__col:nth-child(1) { width: 16.5%; }
.l-footer__col:nth-child(2) { width: 32%; }
.l-footer__col:nth-child(3) { width: 27%; }
.l-footer__col:nth-child(4) { width: 24.5%; }

.l-footer__col {
  min-width: 0;
  padding: 4px 12px 4px 24px;
  border-left: 1px solid var(--c-line-footer);
}

.l-footer__col:first-child {
  padding-left: 24px;
  border-left: 0;
}

.l-footer__col--top { padding-left: 24px; }

.l-footer__toplink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-en);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
}

.l-footer__toplink .c-icon,
.l-footer__links .c-icon {
  color: var(--c-accent);
  font-size: 12px;
}

.l-footer__coltitle {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.l-footer__coltitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
}

.l-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  padding-left: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.l-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.l-footer__links a:hover,
.l-footer__toplink:hover,
.l-footer__coltitle a:hover {
  color: var(--c-accent);
}

.l-footer__links--lg {
  margin-top: 0;
  padding-left: 0;
  gap: 18px;
  font-size: 16px;
  font-weight: 700;
}

/* --- Follow Us ＋ バナー --- */
.l-footer__social {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 85px;
}

.l-footer__follow {
  display: flex;
  align-items: center;
  gap: 40px;
}

.l-footer__followlabel {
  font-family: var(--ff-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}

.l-footer__sns {
  display: flex;
  align-items: center;
  gap: 24px;
}

.l-footer__sns a {
  display: inline-flex;
  font-size: 26px;
  color: var(--c-white);
}

.l-footer__sns a:hover {
  color: var(--c-accent);
}

.l-footer__banners {
  display: flex;
  gap: 10px;
}

.l-footer__banner img {
  width: 280px;
  height: auto;
  transition: opacity var(--dur) var(--ease);
}

.l-footer__banner:hover img {
  opacity: .8;
}

/* --- 会社情報 --- */
.l-footer__bottom {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 75px;
  width: min(var(--w-footer), 100% - var(--gutter) * 2);
  margin: 64px auto 0;
  padding: 44px 40px 125px;
  border-top: 1px solid var(--c-line-footer);
}

.l-footer__tagline {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.4;
}

.l-footer__logo {
  display: block;
  margin-top: 14px;
}

.l-footer__logo img {
  width: 300px;
  height: auto;
}

.l-footer__info {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: .04em;
}

.l-footer__info p + p {
  margin-top: 14px;
}

.l-footer__license {
  margin-bottom: 16px !important;
}

.l-footer__copy {
  margin-left: auto;
  padding-top: 52px;
  font-family: var(--ff-en);
  font-size: 14px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .9);
}

.l-footer__copy small { font-size: inherit; }

/* ==========================================================================
   ページ先頭へ戻る
   ========================================================================== */
.l-pagetop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-cta);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: clamp(32px, 2.5vw, 48px);
  padding: 14px 0 16px;
  background: var(--c-accent);
  color: var(--c-white);
  font-family: var(--ff-en);
  font-size: clamp(10px, 0.65vw, 12px);
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity .5s var(--ease),
    visibility .5s,
    transform .5s var(--ease),
    background-color var(--dur) var(--ease);
}

.l-pagetop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.l-pagetop .c-icon {
  width: 16px;
  height: 16px;
}

.l-pagetop span {
  writing-mode: vertical-rl;
}

.l-pagetop:hover {
  background: var(--c-accent-dark);
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media screen and (max-width: 1399px) {
  .l-gnav__ja {
    font-size: 15px;
  }
  .l-gnav__list { gap: 28px; }
  .l-header__contact { margin-left: 28px; }
}

@media screen and (max-width: 1199px) {
  .l-header__tagline {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .l-header__logo img { width: 220px; }

  .l-gnav { display: none; }

  .l-header__contact {
    min-height: 48px;
    padding: 6px 44px 6px 22px;
    font-size: 13px;
  }

  .l-header__contact .c-btn__arrow { right: 18px; }

  .l-menubtn { display: block; }

  /* footer */
  .l-footer { padding-top: 64px; }

  .l-footer__cols {
    gap: 40px 0;
  }

  .l-footer__social {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 64px;
  }

  .l-footer__bottom {
    flex-wrap: wrap;
    gap: 32px 60px;
    padding-bottom: 110px;
  }

  .l-footer__copy {
    width: 100%;
    margin-left: 0;
    padding-top: 0;
  }
}

@media screen and (max-width: 767px) {
  .l-header__tagline {
    font-size: 10px;
    letter-spacing: .02em;
    margin-bottom: 10px;
  }

  .l-header__logo img { width: 170px; }

  .l-header__contact { display: none; }

  .l-menubtn {
    width: 44px;
    height: 44px;
  }

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

  .l-drawer {
    width: 100%;
    padding: 0 20px 40px;
  }

  /* footer */
  .l-footer { padding-top: 48px; }

  .l-footer__maptitle { font-size: 20px; }

  .l-footer__cols {
    flex-direction: column;
    gap: 28px;
    margin-top: 32px;
  }

  .l-footer__col:nth-child(1),
  .l-footer__col:nth-child(2),
  .l-footer__col:nth-child(3),
  .l-footer__col:nth-child(4) {
    width: 100%;
  }

  .l-footer__col,
  .l-footer__col:first-child,
  .l-footer__col:nth-child(3) {
    padding: 0;
    border-left: 0;
  }

  .l-footer__links {
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
  }

  .l-footer__links--lg {
    gap: 14px;
    font-size: 15px;
  }

  .l-footer__social {
    gap: 28px;
    margin-top: 44px;
  }

  .l-footer__follow {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .l-footer__sns { gap: 18px; }
  .l-footer__sns a { font-size: 24px; }

  .l-footer__banners {
    flex-wrap: wrap;
  }

  .l-footer__banner img { width: min(280px, 100%); }

  .l-footer__bottom {
    flex-direction: column;
    gap: 24px;
    margin-top: 44px;
    padding: 32px 0 110px;
    width: min(var(--w-footer), 100% - var(--gutter) * 2);
  }

  .l-footer__logo img { width: 240px; }

  .l-footer__info {
    font-size: 13px;
  }

  .l-footer__copy {
    font-size: 12px;
  }

  .l-pagetop {
    right: 12px;
    bottom: 12px;
  }
}

