@charset "UTF-8";

/* =========================
common
========================= */

:root {
  /* colors: */
  --black: #000;
  --white: #fff;
  --yellow: #f8db02;
  --blue: #0071bc;
  --blue-10: rgba(0, 113, 188, 0.1);
  --blue-60: rgba(0, 113, 188, 0.6);
  /* family: */
  --font-inter: "Inter", sans-serif;
  --font-noto: "Noto Sans JP", sans-serif;
  /* size: */
  --fz-12: clamp(11px, calc(0.01 * 100vw), 16px);
  --fz-14: clamp(12px, calc(0.0117 * 100vw), 18px);
  --fz-15: clamp(13px, calc(0.0125 * 100vw), 22px);
  --fz-16: clamp(14px, calc(0.0133 * 100vw), 22px);
  --fz-18: clamp(14px, calc(0.015 * 100vw), 22px);
  --fz-20: clamp(16px, calc(0.0167 * 100vw), 28px);
  --fz-25: clamp(18px, calc(0.0208 * 100vw), 34px);
  --fz-27: clamp(18px, calc(0.0225 * 100vw), 36px);
  --fz-30: clamp(20px, calc(0.025 * 100vw), 42px);
  --fz-32: clamp(21px, calc(0.0267 * 100vw), 44px);
  --fz-36: clamp(22px, calc(0.03 * 100vw), 48px);
  --fz-40: clamp(24px, calc(0.0333 * 100vw), 56px);
  --fz-50: clamp(28px, calc(0.0417 * 100vw), 70px);
  --fz-60: clamp(32px, calc(0.05 * 100vw), 84px);
  --fz-80: clamp(40px, calc(0.0667 * 100vw), 100px);
  /*header-height: */
  --anchor-offset: 120px; /* 初期値：保険。JSで実サイズに上書きします */
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 10rem;
  @media only screen and (max-width: 799px) {
    scroll-padding-top: 7rem;
  }
}
body {
  font-family: var(--font-noto);
}

img {
  width: 100%;
  height: auto;
  object-fit: cover;
  vertical-align: bottom;
}

a {
  text-decoration: none;
  color: var(--black);
  transition: all ease 0.3s;
}
a:hover {
  opacity: 0.8;
}

li {
  list-style: none;
}
.pc-only {
  display: block;
}
.sp-only {
  display: none;
  @media only screen and (max-width: 499px) {
    display: block;
  }
}
/* =========================
Header 共通
========================= */
#site-header {
  position: relative;
  z-index: 70;
  background: #fff;
}
#site-header .header-inner {
  position: relative;
  max-width: 93%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: content-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ロゴ */
#site-header .logo {
  display: inline-flex;
  align-items: center;
}
#site-header .logo img {
  display: block;
  width: clamp(43%, 15.83vw, 260px);
  height: auto;
}

/* PCナビ */
#site-header .nav-list {
  font-weight: bold;
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 100px);
  margin-right: clamp(2rem, 13.33vw, 14rem);
}
#site-header .nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--black);
}
#site-header .nav-ja {
  font-size: var(--fz-20);
}
#site-header .nav-en {
  margin-top: 6px;
  font-size: var(--fz-15);
}
#site-header .nav-item.is-current .nav-ja,
#site-header .nav-item.is-current .nav-en {
  color: var(--blue-60);
}

/* PC用 ENTRYリボン */
#site-header .entry {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: var(--yellow);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
}
#site-header .entry::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -59.5px;
  width: 100%;
  height: 60px;
  background: var(--yellow);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}
#site-header .entry-text {
  font-size: var(--fz-27);
  font-family: var(--font-inter);
  font-weight: bold;
}
#site-header .entry-line {
  display: block;
  width: clamp(80px, 60%, 280px);
  height: 4px;
  background: var(--white);
  margin-top: 10px;
}
.drawer-entry {
  display: none;
}
/* =========================
ハンバーガー（3本線）
========================= */
.hamburger {
  display: none;
  position: relative;
  z-index: 110;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px; /* ← 3本の間隔 */
  padding: 0;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #000;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* メニューオープン時 → X */
body.menu-open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
body.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}
body.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================
SP ENTRY ボタン
========================= */
.entry-sp {
  display: none;
  text-decoration: none;
  font-family: var(--font-inter);
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--yellow);
  color: var(--black);
  padding: 10px 18px;
  line-height: 1;
}

/* =========================
SP用 レイアウトとドロワーナビ
========================= */
.nav-overlay {
  display: none;
}

@media (max-width: 799px) {
  /* PCリボンENTRYを非表示 */
  #site-header .entry {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .entry-sp {
    display: inline-block;
  }

  #site-header .header-inner {
    gap: 12px;
  }
  #site-header .header-inner .logo {
    margin-right: auto;
  }

  /* 配置変更 → ENTRYが右、ハンバーガー最右 */
  .entry-sp {
    order: 2;
  }
  .hamburger {
    order: 3;
  }

  /* ドロワー本体 */
  #site-header .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(86vw, 360px);
    background: #fff;
    box-shadow: -6px 0 18px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 96px 24px 24px;
    display: block;
    z-index: 60;
  }
  #site-header .nav-list {
    flex-direction: column;
    gap: 18px;
    margin: 0;
  }
  #site-header .nav-link {
    align-items: flex-start;
  }
  #site-header .nav-en {
    margin-top: 2px;
  }

  /* ドロワー内 ENTRY */
  #site-header .nav .drawer-entry {
    display: block;
    margin-top: 24px;
    text-align: center;
    background: var(--yellow);
    color: #111;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 8px;
    padding: 12px 18px;
  }

  /* 暗幕 */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
    display: block;
  }

  body.menu-open {
    overflow: hidden;
  }
  body.menu-open #site-header .nav {
    transform: translateX(0);
  }
  body.menu-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}
/* スクロール後の固定状態 */
#site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

@media (max-width: 799px) {
  #site-header.is-sticky .header-inner {
    gap: 10px;
  }
}

/* =========================
Top Sections
========================= */

/* ===== Top Sections ===== */
.top-sections {
  margin-block: clamp(60px, 12.5vw, 200px);
}

/* 行の基本（フレックスは .top-link に付与） */
.top-row {
  font-weight: bold;
  width: 100%;
  gap: 0;
  margin-bottom: clamp(60px, 12.5vw, 200px);
}

/* 行全体リンクをフレックス親に */
.top-row > .top-link {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
  color: inherit;
  text-decoration: none;
}

/* テキストパネル：奇数行は水色、偶数行は白 */
.top-text {
  flex: 1 1 50%;
  background: var(--blue-10); /* 奇数行 */
  padding: clamp(40px, 5vw, 80px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: clamp(12px, 2vw, 20px);
}
.top-row:nth-child(even) .top-text,
.is-reverse .top-text {
  background: transparent; /* 偶数行は背景なし（白） */
}

.top-title.en {
  font-size: var(--fz-80);
  color: #1b1f28;
  line-height: 1.05;
}
.is-reverse .top-title.en,
.top-row:nth-child(even) .top-title.en {
  color: var(--blue);
}

.top-copy.jp {
  font-size: var(--fz-30);
  letter-spacing: 0.05em;
  line-height: 1.66;
}

/* 画像 */
.top-fig {
  flex: 1 1 50%;
  min-width: 0;
}
.top-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* recruit 用の装飾 */
.top-row.recruit {
  position: relative;
  overflow: hidden;
}
.top-row.recruit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 21.08vw, 100vh);
  background: url("../images/top/top-recruit-bg.png") center bottom no-repeat;
  background-size: cover;
  pointer-events: none;
}
/* recruit専用テキスト */
.top-row.recruit .recruit-text {
  background: transparent;
  padding: clamp(40px, 5vw, 80px);
  z-index: 1; /* 青帯より前に */
}

/* アクセシビリティ（任意） */
.top-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* SPでは縦積み */
@media (max-width: 900px) {
  .top-row {
    margin-bottom: 0;
  }
  .top-row > .top-link {
    flex-direction: column;
  }
  .top-text {
    justify-items: start;
    text-align: left;
  }
}
@media (max-width: 499px) {
  .top-fig img {
    height: 300px;
    object-fit: cover;
  }
}

/* =========================
Access
========================= */

.access {
  margin-block: clamp(80px, calc(0.15 * 100vw), 220px);
}

.access-title {
  text-align: center;
  font-weight: bold;
  font-size: var(--fz-50);
  margin-bottom: clamp(50px, calc(0.1125 * 100vw), 135px);
}

.access-list {
  display: grid;
  gap: clamp(60px, 8vw, 100px);
}

.access-item {
  text-align: center;
}

.access-map {
  height: 640px;
  @media only screen and (max-width: 1440px) {
    height: 400px;
  }
  @media only screen and (max-width: 499px) {
    height: 300px;
  }
}

.access-info {
  font-size: var(--fz-18);
  font-family: var(--font-noto);
  font-weight: normal;
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin-top: clamp(12px, calc(0.02 * 100vw), 36px);
}

/* =========================
Footer
========================= */

/* フッター上のTOPボタン */
.back-to-top {
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.back-btn {
  display: grid;
  place-items: center;
  width: clamp(80px, 10vw, 120px);
  aspect-ratio: 1/1;
  border-radius: 999px;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-inter);
  font-size: var(--fz-25);
}

/* ===== Footer ===== */
.site-footer {
  background: #0071bc;
  color: #fff;
}

.footer-inner {
  max-width: 95%;
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 20px;
  min-height: clamp(460px, 48vw, 770px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
}

/* ===== 上段：ロゴ＋4カラムナビ ===== */
.footer-main {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: clamp(24px, 4vw, 96px);
}

/* ロゴ */
.footer-logo img {
  width: clamp(115px, 20vw, 230px);
  height: auto;
  display: block;
}

/* 4カラム */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  align-items: start;
}

.footer-ttl {
  font-size: var(--fz-18);
  font-family: var(--font-inter);
  line-height: 1.4;
  letter-spacing: 0.05em;
  margin-bottom: 30px;
  white-space: nowrap;
}
.footer-ttl a {
  color: var(--white);
}

.footer-ttl .en {
  display: block;
  font-family: var(--font-inter);
  font-size: var(--fz-18);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.footer-col {
  text-align: center;
}

.footer-list {
  font-size: var(--fz-14);
  font-family: var(--font-noto);
  font-weight: normal;
  display: grid;
  gap: 10px;
  white-space: nowrap;
  text-align: left;
  margin-left: 2.5em;
}

.footer-list a {
  color: #fff;
  padding-left: 1em;
  position: relative;
}

.footer-list a::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}

/* プライバシーポリシー：上段の右下固定 */

.footer-privacy {
  text-align: right;
  padding-right: 20%;
  @media only screen and (max-width: 1999px) {
    padding-right: 10%;
  }
  @media only screen and (max-width: 1599px) {
    padding-right: 5%;
  }
}
.privacy {
  font-size: var(--fz-14);
  color: var(--white);
  white-space: nowrap;
}

/* ===== 下段：中央にコピーライト ===== */
.footer-bottom {
  position: relative;
  padding-top: 170px;
}

.footer-bottom .copy {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  font-family: var(--font-inter);
  font-size: var(--fz-12);
  opacity: 0.9;
  white-space: nowrap;
}

/* ===== SP対応 ===== */
@media (max-width: 900px) {
  .footer-inner {
    padding-top: 0;
    padding-bottom: 10px;
  }
  .footer-main {
    gap: 0;
    align-items: center;
    flex-direction: column;
  }

  .footer-ttl {
    margin-bottom: 16px;
  }
  .footer-privacy {
    text-align: center;
    padding-right: 0;
  }
  .footer-main .privacy {
    position: static;
    justify-self: center;
    margin-top: 8px;
  }

  .footer-bottom {
    position: relative;
    padding-top: 0;
  }
}
@media only screen and (max-width: 767px) {
  .footer-nav {
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 2rem;
    column-gap: 0;
  }
}
@media only screen and (max-width: 499px) {
  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
  .footer-ttl {
    margin-bottom: 10px;
  }
  .back-to-top {
    margin-bottom: 10px;
  }
  .footer-list {
    margin-left: 3.5em;
  }
  .footer-main {
    margin-left: -2em;
  }
  .footer-logo {
    margin-left: 1em;
  }
}
