@charset "UTF-8";
/* ==========================================================================
   ALPHAZ — common（全ページ共通パーツ）
   --------------------------------------------------------------------------
   01. Header      Figma PC 174:7889 / SP 182:770
   02. SP menu     ※ Figma にデザインなし。仮実装（要デザイン確認）
   03. Footer      Figma PC 173:2726 / SP 182:719
   04. Page hero   Figma PC 175:9505 / SP 183:1114（下層ページ共通）
   05. Button      「詳細はこちら」ボタン（全ページ共通）
   06. Header (TOP) TOP だけ KV の上に重ねる版。KV を過ぎたら通常ヘッダーに戻る
   ========================================================================== */

/* ==========================================================================
   01. Header
   ========================================================================== */
.header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100;
  background: var(--c-black);
  color: var(--c-white);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 calc(40 * var(--s));
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  width: calc(70 * var(--s));
  height: calc(50 * var(--s));
}

.header__toggle {
  display: none;
}

.header__list {
  display: flex;
  justify-content: space-between;
  /* タブレットでは文字の下限（13px）に合わせて幅も下限を付ける */
  width: max(360px, calc(463 * var(--s)));
}

.header__link {
  display: block;
  padding: calc(8 * var(--s)) 0;
  font-family: var(--font-en);
  font-size: max(13px, calc(16 * var(--s)));
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease-out);
}

.header__link:hover,
.header__link.is-current {
  color: var(--c-accent);
}

/* ==========================================================================
   02. SP menu（仮）
   ========================================================================== */
@media (max-width: 767px) {
  .header__inner {
    padding: 0 20px;
  }

  .header__logo img {
    width: 62.5px;
    height: auto;
  }

  .header__toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5.77px;
    width: 44px;
    height: 44px;
    padding: 0 10.5px;
    border: 1px solid var(--c-white);
    background: rgba(0, 0, 0, 0.5);
  }

  .header__toggle-line {
    display: block;
    width: 23px;
    height: 2px;
    background: var(--c-white);
    transition:
      transform var(--dur) var(--ease-out),
      opacity var(--dur) var(--ease-out),
      width var(--dur) var(--ease-out);
  }

  .header__toggle-line:nth-child(3) {
    width: 15.4px;
    background: var(--c-accent);
  }

  /* 開いたら × に */
  .header__toggle[aria-expanded="true"] .header__toggle-line:nth-child(1) {
    transform: translateY(7.77px) rotate(45deg);
  }

  .header__toggle[aria-expanded="true"] .header__toggle-line:nth-child(2) {
    opacity: 0;
  }

  .header__toggle[aria-expanded="true"] .header__toggle-line:nth-child(3) {
    width: 23px;
    transform: translateY(-7.77px) rotate(-45deg);
  }

  .header__nav {
    position: fixed;
    inset: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px)) 0 0;
    z-index: 1;
    padding: 12px 20px 40px;
    overflow-y: auto;
    background: var(--c-black);
    visibility: hidden;
    opacity: 0;
    transition:
      opacity var(--dur) var(--ease-out),
      visibility 0s linear var(--dur);
  }

  .header__nav.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--dur) var(--ease-out);
  }

  .header__list {
    flex-direction: column;
    width: auto;
  }

  .header__link {
    padding: 18px 0 14px;
    border-bottom: 1px solid var(--c-line-dark);
    font-size: 40px;
    letter-spacing: 0.04em;
  }

  /* メニュー表示中は背面をスクロールさせない */
  html.is-menu-open {
    overflow: hidden;
  }
}

/* ==========================================================================
   03. Footer
   ========================================================================== */
.footer {
  background: var(--c-black);
  color: var(--c-white);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: calc(62 * var(--s));
  padding: calc(40 * var(--s)) calc(30 * var(--s));
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(40 * var(--s));
}

.footer__logo {
  flex-shrink: 0;
}

.footer__logo img {
  width: calc(131.78 * var(--s));
  height: auto;
}

.footer__statement {
  font-family: var(--font-en);
  /* 1440px で 129px。それ以下は画面幅に比例して縮める */
  font-size: calc(129 * var(--s));
  line-height: 0.7;
  letter-spacing: 0.0123em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer__nav {
  padding-top: calc(62 * var(--s));
  border-top: 1px solid var(--c-line-dark);
}

.footer__list {
  display: flex;
  justify-content: space-between;
}

.footer__link {
  display: flex;
  align-items: center;
  font-family: var(--font-en);
  font-size: max(13px, calc(18 * var(--s)));
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease-out);
}

.footer__link .icon {
  display: none;
}

.footer__link:hover {
  color: var(--c-accent);
}

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer__copy {
  color: var(--c-gray);
  font-family: var(--font-sub);
  font-size: max(12px, calc(12 * var(--s)));
  font-weight: 700;
  line-height: 1.2;
}

.footer__tagline {
  color: var(--c-accent);
  font-family: var(--font-sub);
  font-size: max(12px, calc(12 * var(--s)));
  font-weight: 700;
  line-height: 1.2;
}

.footer__social {
  display: flex;
  gap: calc(16 * var(--s));
  justify-self: end;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(44 * var(--s));
  height: calc(44 * var(--s));
  border: 1px solid var(--c-line-dark);
  color: var(--c-white);
  transition:
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.footer__social-link:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.footer__social-link .icon {
  width: calc(18 * var(--s));
  height: calc(18 * var(--s));
}

.footer__social-link .icon--youtube {
  width: calc(16 * var(--s));
}

@media (max-width: 767px) {
  .footer {
    background: var(--c-black-footer-sp);
  }

  .footer__inner {
    gap: 35px;
    padding: 46px 20px 33px;
  }

  .footer__brand {
    justify-content: flex-start;
    gap: 19px;
  }

  .footer__logo img {
    width: 62.5px;
  }

  .footer__statement {
    /* 375px で約 32px。1行に収める */
    font-size: min(33px, 8.6vw);
    line-height: 0.9;
    letter-spacing: -0.01em;
  }

  .footer__nav {
    padding-top: 35px;
  }

  .footer__list {
    flex-direction: column;
  }

  .footer__link {
    justify-content: space-between;
    height: 50px;
    border-bottom: 1px solid var(--c-line-dark);
    font-size: 17.3px;
    letter-spacing: 0.08em;
  }

  .footer__link .icon {
    display: block;
    width: 14.4px;
    height: 14.4px;
  }

  .footer__item--contact .icon {
    color: var(--c-accent);
  }

  .footer__bottom {
    grid-template-columns: 1fr;
    grid-template-areas:
      "social"
      "copy"
      "tagline";
    row-gap: 11.5px;
  }

  .footer__social {
    grid-area: social;
    justify-self: start;
    gap: 9.6px;
    margin-bottom: 23.5px;
  }

  .footer__social-link {
    width: 42.3px;
    height: 42.3px;
  }

  .footer__social-link .icon {
    width: 17.3px;
    height: 17.3px;
  }

  .footer__copy {
    grid-area: copy;
    color: rgba(255, 255, 255, 0.47);
    font-family: var(--font-ja);
    font-size: 7.7px;
    font-weight: 500;
    letter-spacing: 0.08em;
  }

  .footer__tagline {
    grid-area: tagline;
    font-family: var(--font-ja);
    font-size: 7.7px;
    letter-spacing: 0.1em;
  }
}

/* ==========================================================================
   04. Page hero（下層ページ共通）
   --------------------------------------------------------------------------
   背景画像は 1440px 幅基準。それより広い画面では画面幅に合わせて拡大、
   狭い画面（SP含む）では 1440px のまま左上基準で切り抜き（Figma と同じ見え方）。
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    var(--c-black) url("../img/common/page-hero-bg.jpg") left top / max(calc(1440 * var(--s)), 100%) auto
    no-repeat;
  color: var(--c-white);
}

.page-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0 calc(40 * var(--s));
  max-width: calc(1620 * var(--s));
  margin: 0 auto;
  padding: calc(40 * var(--s)) max(20px, calc(108 * var(--s))) calc(100 * var(--s));
}

.page-hero__title {
  font-family: var(--font-en);
  /* 1440px で 230px */
  font-size: max(94px, calc(230 * var(--s)));
  /* Bebas Neue のキャップハイト（0.7em）に行ボックスを合わせる */
  line-height: 0.7;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-hero__lead {
  margin-top: calc(49.5 * var(--s));
  font-size: max(13px, calc(17 * var(--s)));
  font-weight: 800;
  line-height: 1.8;
  letter-spacing: 0.047em;
}

@media (max-width: 767px) {
  .page-hero__inner {
    flex-direction: column;
    gap: 30px;
    padding: 28px 20px 64px;
  }

  .page-hero__title {
    font-size: 94px;
  }

  .page-hero__lead {
    margin-top: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.9;
    letter-spacing: 0;
  }
}

/* ---- 低い版（NEWS 詳細。Figma 175:9789: 高さ 224・英字 120px） -------------- */
.page-hero--small {
  background-image: url("../img/common/page-hero-bg-small.jpg");
}

.page-hero--small .page-hero__title {
  font-size: max(56px, calc(120 * var(--s)));
  letter-spacing: 0.048em;
}

@media (max-width: 767px) {
  .page-hero--small .page-hero__inner {
    padding-bottom: 44px;
  }

  .page-hero--small .page-hero__title {
    font-size: 56px;
    letter-spacing: 0.03em;
  }
}

/* ==========================================================================
   05. Button
   --------------------------------------------------------------------------
   <a class="c-btn c-btn--dark">詳細はこちら<svg class="icon icon--arrow-right">…</svg></a>
   --dark   : 黒地・白文字・黄矢印（NEWS など）
   --accent : 黄地・黒文字・黒矢印（ABOUT / RECRUIT など）
   --kv     : 黒地・黄文字・黄矢印（TOP の KV）
   ========================================================================== */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  /* タブレットでは文字の下限（13px）に合わせて幅も下限を付ける */
  width: max(180px, calc(220 * var(--s)));
  padding: calc(17 * var(--s)) calc(24 * var(--s)) calc(17 * var(--s)) calc(58 * var(--s));
  white-space: nowrap;
  font-size: max(13px, calc(14 * var(--s)));
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.1429em;
  transition:
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}

.c-btn .icon {
  flex-shrink: 0;
  width: calc(16 * var(--s));
  height: calc(16 * var(--s));
  transition: transform var(--dur) var(--ease-out);
}

.c-btn:hover .icon {
  transform: translateX(calc(4 * var(--s)));
}

.c-btn--dark {
  background: var(--c-black);
  color: var(--c-white);
}

.c-btn--dark .icon,
.c-btn--kv {
  color: var(--c-accent);
}

.c-btn--kv {
  background: var(--c-black);
}

.c-btn--accent {
  background: var(--c-accent);
  color: var(--c-black);
}

@media (max-width: 767px) {
  .c-btn {
    width: 100%;
    height: 46px;
    padding: 0 19px;
    font-size: 10.6px;
    letter-spacing: 1.5px;
  }

  .c-btn .icon {
    width: 13.5px;
    height: 13.5px;
  }
}

/* ==========================================================================
   06. Header (TOP)
   --------------------------------------------------------------------------
   Figma PC 173:2552（ロゴ白・縦並びナビ黒）/ SP 173:5154（透明の上にロゴ＋メニュー）
   KV を過ぎたら main.js が .is-stuck を付け、通常の黒いヘッダーで上から出てくる。
   ========================================================================== */
.header--top:not(.is-stuck) {
  position: absolute;
  right: 0;
  left: 0;
  background: transparent;
}

.header--top.is-stuck {
  position: fixed;
  right: 0;
  left: 0;
  animation: header-in 0.4s var(--ease-out);
}

@keyframes header-in {
  from {
    transform: translateY(-100%);
  }
}

@media (min-width: 768px) {
  .header--top:not(.is-stuck) .header__inner {
    align-items: flex-start;
    height: auto;
    padding: calc(40 * var(--s)) calc(50 * var(--s)) 0 calc(40 * var(--s));
  }

  .header--top:not(.is-stuck) .header__logo img {
    width: calc(131.78 * var(--s));
    height: auto;
  }

  .header--top:not(.is-stuck) .header__list {
    flex-direction: column;
    align-items: flex-end;
    gap: calc(15.85 * var(--s));
    width: auto;
  }

  .header--top:not(.is-stuck) .header__link {
    padding: 0;
    color: var(--c-black);
    line-height: 0.7;
    letter-spacing: 0.04em;
  }

  .header--top:not(.is-stuck) .header__link:hover {
    color: var(--c-white);
  }
}

@media (max-width: 767px) {
  .header--top:not(.is-stuck) .header__inner {
    padding: 0 19px;
  }

  /* メニューを開いたら背景を黒に（KV 上で開いたとき用） */
  html.is-menu-open .header--top {
    background: var(--c-black);
  }
}
