/* layout.css — ヘッダー/フッター/メインの共通レイアウト */

/* ============ Header ============ */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: 50px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  background-color: var(--color-white);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding-inline: 20px;
}

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

.header__logo-text {
  font-family: var(--ff-en-body); /* Poppins */
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-black);
  letter-spacing: 0.1em;
}

.header__nav {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 24px;
  font-family: var(--ff-en-body); /* Poppins */
  font-size: 17px;
  font-weight: var(--fw-medium);
  color: var(--color-red);
  letter-spacing: 0.1em;
  background-color: var(--color-white);
}

.header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding-inline: 20px;
  font-family: var(--ff-en-body); /* Poppins */
  font-size: 17px;
  font-weight: var(--fw-medium);
  color: var(--color-white);
  letter-spacing: 0.1em;
  transition: opacity var(--transition-base);
}

.header__btn--entry  { background-color: #3cabe6; }
.header__btn--mypage { background-color: #0091dd; }

.header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--color-white);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.header__menu-btn img { width: 22px; height: 14px; display: block; }

@media (max-width: 767px) {
  .header { height: 56px; }
  .header__logo-img { width: 120px; }
  .header__logo-text { display: none; }
  .header__link { display: none; }
  .header__btn {
    min-width: 76px;
    font-size: 13px;
    padding-inline: 8px;
  }
  .header__menu-btn { width: 56px; height: 56px; }
}

/* ============ Main ============ */
.main {
  padding-top: 50px;
  min-height: 100vh;
}

@media (max-width: 767px) {
  .main { padding-top: 56px; }
}

/* ============ Footer ============ */
.footer {
  position: relative;
  background-color: var(--color-white);
  height: 92px;
}

.footer__inner {
  position: relative;
  width: 1200px;
  max-width: 100%;
  height: 92px;
  margin: 0 auto;
}

/* 上部中央: ロゴ + RECRUITING */
.footer__logo {
  position: absolute;
  top: 21px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 26px;
  text-decoration: none;
}
.footer__logo-img { width: 192px; height: auto; display: block; }
.footer__logo-text {
  font-family: var(--ff-en-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--color-black);
}

/* 下部: リンク (左 x=290) + Copyright (中央 x=780) */
.footer__bottom {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  width: 100%;
  font-family: var(--ff-jp);
  font-size: 11px;
  line-height: 1;
  color: var(--color-black);
}
.footer__links {
  position: absolute;
  left: 290px;
  top: 0;
  margin: 0;
  white-space: nowrap;
}
.footer__links a {
  color: var(--color-black);
  text-decoration: none;
}
.footer__links a:hover { text-decoration: underline; }
.footer__sep { margin: 0 4px; }
.footer__copyright {
  position: absolute;
  left: 780px;
  top: 0;
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
  font-family: var(--ff-en-body);
  font-size: 11px;
  letter-spacing: 0.33px;
  color: var(--color-black);
}

/* 右上: トップへ戻るボタン (28x28 円, 青枠) */
.footer__top {
  position: absolute;
  top: 36px;
  right: 26px;
  width: 28px;
  height: 28px;
  border: 1px solid #0091DD;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__top:hover { background: rgba(0, 145, 221, 0.08); }
/* 上向き矢印 (SVG) */
.footer__top-arrow {
  display: block;
  width: 12px;
  height: 13px;
}

/* タブレット: 1200px 以下 - レイアウトを横並び・柔軟に */
@media (max-width: 1199px) {
  .footer { height: auto; }
  .footer__inner { width: 100%; height: auto; padding: 16px 24px; }
  .footer__logo {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    display: flex;
    justify-content: center;
    margin: 0 auto 12px;
  }
  .footer__bottom {
    position: relative;
    top: auto; left: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    padding-right: 60px;
  }
  .footer__links {
    position: relative;
    left: auto; top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    white-space: normal;
  }
  .footer__copyright {
    position: relative;
    left: auto; top: auto;
    transform: none;
  }
  .footer__top {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
  }
}

/* SP: 767px 以下 - 完全縦並び */
@media (max-width: 767px) {
  .footer { padding: 16px 0; }
  .footer__inner {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer__logo {
    gap: 12px;
    margin: 8px 0 12px;
  }
  .footer__logo-img { width: 160px; }
  .footer__logo-text { font-size: 13px; }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 0;
  }
  .footer__top {
    position: absolute;
    right: 12px;
    top: 12px;
    transform: none;
  }
}

/* 極小画面: footer__links を縦並び + セパレータ非表示 */
@media (max-width: 480px) {
  .footer__links {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .footer__sep { display: none; }
}
