/* --- 全体リセット・共通設定 --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  overflow-x: hidden;
}

/* --- ヒーローセクション全体 --- */
.hero {
  display: flex;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* --- 左側キャッチコピーエリア --- */
.hero-content {
  height: 100%;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.company-en {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: #666;
  letter-spacing: 0.05em;
}

.company-ja {
  display: block;
  font-size: 0.85rem;
  color: #bbbbbb;
  margin-top: 4px;
}

.sub-title {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 12px;
}

.main-title {
  font-size: 2.8rem;
  line-height: 1.3;
  font-weight: 700;
  color: #222;
  margin-bottom: 30px;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 200px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  transition: opacity 0.3s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background-color: #009be3;
  color: #ffffff;
}

.btn-secondary {
  background-color: #55caea;
  color: #ffffff;
}







/* --- 右側アコーディオンエリア --- */
.hero-accordion {
  width: 60%;
  height: 100%;
  display: flex;
  gap: 0px; /* カードの間に少し隙間を入れる場合（不要なら 0px に） */
}

/* 個々のカード設定（通常の長方形） */
.card {
  position: relative;
  flex: 1; /* 初期状態は均等幅 */
  height: 100%;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;

  /* 横幅が広がるアニメーション（滑らかなイージング） */
  transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start; /* 水平方向は左揃え */
  padding-top: 70vh;
  padding-bottom: 50px;
  padding-left: 30px;
  padding-right: 40px;

  /* 上部余白(padding-top)の変化をアニメーションさせる */
  transition:
    flex 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    padding-top 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* カーソルを合わせた時のカード拡張 */
.card:hover {
  flex: 2.5; /* ホバーしたカードを広げる倍率 */
  padding-top: 35vh;
}

/* 背景画像（ズーム効果用） */
.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

/* ホバー時に背景画像を拡大 */
.card:hover .card-bg {
  transform: scale(1.1);
}

/* 半透明のグラデーション・カラーオーバーレイ */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
  opacity: 0.75;
}

/* グラデーション色指定 */
.color-1 {
  background: linear-gradient(135deg, #007997, #2a82e6);
}
.color-2 {
  background: linear-gradient(135deg, #007997, #006891);
}
.color-3 {
  background: linear-gradient(135deg, #007997, #0087d3);
}
.color-4 {
  background: linear-gradient(135deg, #007997, #0060a8);
}

/* テキストコンテンツ */
.card-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 400px;
  white-space: nowrap; /* 縮小時にテキストが予期せぬ改行をしないように固定 */
  text-align: left; /* テキスト自体は左揃え */
  margin-left: 0;
  margin-right: auto;
  /* アニメーション設定 */
  transition:
    margin-left 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    text-align 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
/* --- ホバー時にテキストブロック自体を水平中央へ移動（前のステップから維持） --- */
.card:hover .card-content {
  margin-left: auto;
  margin-right: auto;
}

.card-num {
  display: block;
  font-size: 1.7rem;
 /* font-weight: 700;*/
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.35);
  transition: font-size 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  border-bottom: 1px solid #ffffffb5;
}
.card-num::first-letter {
  font-size: 2em;
}

.card:hover .card-num {
  font-size: 3rem;
  color: #ffffffa6;
  text-shadow: none;
}
.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
  transition: font-size 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.card:hover .card-title {
  font-size: 2rem;
}

/* 説明文（初期状態は非表示） */
.card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: normal;
  opacity: 0;
  max-height: 0;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
  transform: translateY(10px);
  transition:
    opacity 0.15s ease 0s,
    transform 0.15s ease 0s;
}

/* ホバー時に説明文を表示 */
.card:hover .card-desc {
  opacity: 1;
  max-height: 150px;
  transform: translateY(0);
  transition:
    opacity 0.4s ease 0.5s,
    transform 0.4s ease 0.5s;
}

/* --- 「くわしくはこちら →」の設定 --- */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.05em;
  background: #272e52;
  width: 100%;
  justify-content: center;
  line-height: 3em;
  border-radius: 5px;

  /* --- [通常時 / マウスを離した時] --- */
  /* カーソルが外れたら 説明文よりもさらに最速（0.1s / 遅延なし）で即消す */
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.1s ease 0s,
    transform 0.1s ease 0s,
    color 0.3s ease;
}

/* ホバー時の表示設定 */
.card:hover .card-link {
  /* --- [ホバー時] --- */
  /* 説明文が出た直後（0.65s遅延）に表示 */
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.4s ease 0.65s,
    transform 0.4s ease 0.65s,
    color 0.3s ease;
}

.card-link .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.card:hover .card-link .arrow {
  transform: translateX(5px);
}

/* --- レスポンシブ対応 (スマホ向け) --- */
@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    height: 100vh;
  }

  .hero-content {
    width: 100%;
    padding: 40px 20px;
  }

  .hero-accordion {
    width: 100%;
    height: 500px;
    flex-direction: column;
    display: none;
  }

  .card:hover {
    flex: 2.5;
  }
}

/* --- ハンバーガーボタン（固定配置） --- */
.header_top {
  position: fixed;
  top: 25px;
  right: 30px;
  z-index: 1000; /* メニューより上に表示 */
}

.menu-btn {
  width: 50px;
  height: 50px;
  background: rgba(10, 25, 50, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease;
}

.menu-btn:hover {
  background: #009be3;
}

.menu-btn__line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* ボタンが開いた状態（×印に変形） */
.menu-btn.is-active .menu-btn__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn.is-active .menu-btn__line:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-active .menu-btn__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- フルスクリーンメニュー本体 --- */
.full-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* 高級感のある深みのあるネイビーグラデーション */
  background: linear-gradient(135deg, rgba(8, 20, 42, 0.96), rgba(12, 35, 75, 0.98));
  backdrop-filter: blur(15px);
  z-index: 999;

  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 60px 20px;

  /* 非表示状態 */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

/* メニュー開いた状態 */
.full-menu.is-active {
  opacity: 1;
  visibility: visible;
}

.full-menu__inner {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

/* メインメニューリスト */
.full-menu__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.full-menu__link {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 15px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.full-menu__link:hover {
  transform: translateX(8px);
}

.full-menu__link .en {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.full-menu__link .ja {
  font-size: 0.95rem;
  color: #8be2fe;
}

/* サブメニュー（事業内容のリスト） */
.full-menu__child {
  list-style: none;
  margin-top: 12px;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 2px solid rgba(0, 155, 227, 0.3);
  padding-left: 15px;
}

.full-menu__child a {
  text-decoration: none;
  color: #c5e7ff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

.full-menu__child a:hover {
  color: #ffffff;
}

.full-menu__child .num {
  font-size: 0.8rem;
  font-weight: bold;
  color: #00abec;
}

/* ボタンエリア（RECRUIT & CONTACT） */
.full-menu__action {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 280px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 30px;
  border-radius: 12px;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.action-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 155, 227, 0.3);
}

.action-btn .en {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.action-btn .ja {
  font-size: 0.85rem;
  margin-top: 4px;
}

/* 求人ボタン（グラデーションライン風） */
.action-btn--recruit {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 226, 254, 0.4);
  color: #ffffff;
}

.action-btn--recruit .ja {
  color: #8be2fe;
}

/* お問い合わせボタン（シアンブルー塗りつぶし） */
.action-btn--contact {
  background: linear-gradient(135deg, #00abec, #0077c8);
  color: #ffffff;
  border: none;
}

.action-btn--contact .ja {
  color: rgba(255, 255, 255, 0.9);
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
  .full-menu__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .full-menu__action {
    width: 100%;
  }
}

/* ==========================================
   スクロール誘導（下矢印アニメーション）
========================================== */
.hero {
  position: relative; /* ヒーローセクション基準で位置固定するため必要 */
}

.scroll-indicator {
  text-decoration: none; /* 下線を消す */
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  cursor: pointer;
}

/* 「SCROLL」のテキスト */
.scroll-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* CSSだけで作成する下矢印 */
.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg); /* 正方形の右・下枠線を45度傾けて下矢印にする */

  /* 上下アニメーションの適用 */
  animation: bounceArrow 2s infinite ease-in-out;
}

/* 上下に優しく揺れるキーフレーム定義 */
@keyframes bounceArrow {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(10px) rotate(45deg); /* 下に10px移動 */
    opacity: 1; /* 移動時に少し明るくして目立たせる */
  }
}
