/* =======================
  assets/css/front-page.css – BEM only
===================== */

:root {
  /* ABOUT-US グラデーション用（左→右）―― vivid blue → vivid red */
  --about-grad-1: #92d0f0; /* きわめて明るいブルー-ハイライト */
  --about-grad-2: #86d0ff; /* スカイブルー */
  --about-grad-3: #1effff; /* ビビッドなブルー */
  --about-grad-4: #4dd0ff; /* パープル寄りの中間色 */
  --about-grad-5: #5c98ff; /* 鮮やかなピンクレッド */
  --about-grad-6: #fb8484; /* ビビッドレッド（最濃シャドー） */
}

/* ===============
  1. HERO (first-view)
  ================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ===== 画像フェード + ズーム ===== */

.hero__slider,
.hero__wrapper,
.hero__slide {
  height: 100%;
}

/* heroセクション背景要素の共通スタイル */
.hero__bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* アクティブスライドにのみズームアニメーションを再生 */
.swiper-slide-active .hero__bg,
.swiper-slide-duplicate-active .hero__bg {
  animation: zoomUp 6s ease-out both; /*  6 秒に設定 */
}

@keyframes zoomUp {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.12);
  } /* 倍率調整 */
}

/* テキストスタイル */
.hero__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -42%);
  z-index: 2;
  text-align: center;
  width: max-content;
}

.hero__title-text {
  font-family: "Playball", "Brush Script MT", cursive;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); /* 背景画像に埋もれないよう影 */
  white-space: nowrap;
}
/* ========= 共通ベース ========= */
.hero__letter {
  display: inline-block;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 1;
}

/* ==============================================================
   ① Border-Break Slide-in
   ============================================================== */
.hero__title-text.is-slide .hero__letter {
  opacity: 0;
  animation: slideIn 0.8s forwards ease-out;
  animation-delay: calc(var(--i) * 0.1s);
}

/* 交互に左右から */
.hero__title-text.is-slide .hero__letter:nth-child(odd) {
  transform: translateX(-120%);
}
.hero__title-text.is-slide .hero__letter:nth-child(even) {
  transform: translateX(120%);
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== 可読性向上オプション（お好みで） ===== */
/* 文字にシャドウを足す場合 */
.hero__title-text .hero__letter {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Scroll cue（ボタン全体） */
.hero__scroll-btn {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
}
/* 円形 */
.hero__scroll-circle {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  position: relative;
}
@media (max-width: 640px) {
  .hero__scroll-circle {
    width: 44px;
    height: 44px;
  }
}
.hero__scroll-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: sdb 2s infinite ease-out;
}
@keyframes sdb {
  0% {
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
  }
  30% {
    opacity: 1;
    box-shadow: 0 0 10px 10px rgba(255, 255, 255, 0.2);
  }
  60% {
    opacity: 0;
    box-shadow: 0 0 20px 50px rgba(255, 255, 255, 0);
  }
  100% {
    opacity: 0;
  }
}
/* 矢印 */
.hero__scroll-arrow {
  width: 16px;
  height: 16px;
  border-left: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(-45deg);
  animation: arrowMove 2s infinite ease-in-out;
}
@keyframes arrowMove {
  0% {
    transform: translateY(0) rotate(-45deg);
  }
  50% {
    transform: translateY(5px) rotate(-45deg);
  }
  100% {
    transform: translateY(0) rotate(-45deg);
  }
}
@media (max-width: 640px) {
  .hero__scroll-arrow {
    width: 14px;
    height: 14px;
  }
}
/* “Scroll” ラベル */
.hero__scroll-text {
  color: #fff;
  font-size: 12px;
}
@media (max-width: 640px) {
  .hero__scroll-text {
    font-size: 11px;
  }
}

/* =========================================================
   About
   ====================================================== */
/* -----------------------------  セクション基準点  */
#about {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding-block: 6rem;
  padding-inline: 3rem;
  /* height: calc(100vh - 80px); */
}
@media (max-width: 992px) {
  #about {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding-block: 6rem;
    padding-inline: 3rem;
    /* height: calc(100vh - 68px); */
  }
}

.about__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}
@media screen and (max-width: 992px) {
  .about__inner {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
  }
}

/* --- About Text --------------------------------------- */
.about__content {
  flex: 1 1 60%;
}
.about__text {
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* About Images */
/* ===== 画像コンテナ ===== */
.about__visual {
  position: relative;
  flex: 1 1 48%;
  overflow: hidden; /* ライトなマスク用 */
  border-radius: 14px; /* 角丸を少し大きめに */
  box-shadow: 0 14px 28px rgba(0 0 0 / 0.35);
}

.about__image,
.about__image img {
  width: 100%;
  height: auto;
  margin: 0;
}

/* ===== ふわっと浮くホバー演出（PCのみ） ===== */
@media (hover: hover) {
  .about__visual:hover img {
    transform: scale(1.04) rotate(1deg);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
}

/* ===== SP：高さを自動にし、角丸を維持 ===== */
@media (max-width: 992px) {
  .about__visual {
    flex: none; /* テキストの下に配置 */
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }
}

.about__big-text {
  position: absolute;
  left: 5%;
  bottom: -5%;
  z-index: 0;

  /* フォントまわり */
  font-family: var(--font-en, "Poppins", sans-serif);
  font-weight: 900;
  font-size: clamp(5rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;

  /* ▼グラデーションは親だけに適用 */
  background-image: linear-gradient(
    90deg,
    var(--about-grad-1) 0%,
    /* var(--about-grad-2) 16%,
    var(--about-grad-3) 33%,
    var(--about-grad-4) 50%,
    var(--about-grad-5) 66%, */
      var(--about-grad-6) 83%
  );
  -webkit-background-clip: text;
  background-clip: text; /* Firefox 対応 */
  color: transparent; /* ← 重要：fill を透明に */

  opacity: 0; /* 初期は非表示 */
  pointer-events: none;
  user-select: none;
}

.about__big-text span {
  display: inline-block;
  background: inherit; /* ← 親のグラデを継承 */
  background-clip: text; /* 各文字にも適用 */
  -webkit-background-clip: text; /* 同上 */
  -webkit-text-fill-color: transparent;
}

@media screen and (max-width: 1200px) {
  .about__big-text {
    left: 5%;
    bottom: -5%;
    font-size: clamp(5rem, 12vw, 8rem);
  }
}
@media screen and (max-width: 992px) {
  .about__big-text {
    left: auto;
    right: 2%;
    bottom: -4%;
    font-size: clamp(3rem, 12vw, 7rem);
  }
}
@media screen and (max-width: 576px) {
  .about__big-text {
    left: auto;
    right: 0%;
    bottom: -2%;
    font-size: clamp(3rem, 10vw, 5rem);
  }
}

/* =============== 3. Services ============================ */
/* 固定12カラムグリッドで幅ブレ防止 */
.services__cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  list-style: none;
  padding-inline: 0;
  padding-block: 3rem;
}
.services__card {
  grid-column: span 12; /* base: 1列 */
  display: flex;
  opacity: 0;
  transform: translateY(16px) scale(0.99);
  filter: blur(4px);
  will-change: transform, opacity, filter;
  min-width: 0; /* 子要素のはみ出しで列幅が暴れないように */
}
/* md: 2列 */
@media (min-width: 992px) {
  .services__card {
    grid-column: span 6;
  }
}
/* lg+: 3列 */
@media (min-width: 1200px) {
  .services__card {
    grid-column: span 4;
  }
}

/* 背景画像カード（overlay + image）— light基準のみ */
.services__link {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;

  inline-size: 100%; /* グリッド領域いっぱいに広げる */
  block-size: 100%;
  min-width: 0;

  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow-sm);

  text-decoration: none;
  color: var(--f-black);
  isolation: isolate;
  box-sizing: border-box;

  /* レイヤ（バランス調整版） */
  --overlay: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  --band: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.4) 35%,
    rgba(255, 255, 255, 0) 65%
  );
  --txt-shadow: 0 1px 2px rgba(255, 255, 255, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.4);

  background: var(--overlay), var(--card-bg, none);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover; /* 画像は常に全面カバー */
  background-color: var(--clr-base);

  aspect-ratio: 16/9; /* 高さは幅から算出 */
  min-height: clamp(160px, 14vw, 220px); /* さらに控えめに調整 */
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  will-change: transform;
}

/* 矢印アイコンを右下に追加 */
.services__link::after {
  content: "\F231"; /* Bootstrap Icons */
  font-family: "bootstrap-icons";
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--f-navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              background 0.3s;
  z-index: 2;
}

.services__link:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.25);
}

.services__link:hover::after {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.95);
}

/* テキストは前面 */
.services__link > * {
  position: relative;
  z-index: 1;
}

/* 読ませ帯（テキスト背後を強める） */
.services__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--band);
  z-index: 0;
  pointer-events: none;
}

/* sheen効果は削除（矢印と競合するため） */
/* .services__link::after は上記で矢印用に使用 */

/* タイトル（グラス調のピル - バランス版） */
.services__card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem); /* 大画面でのサイズを抑制 */
  font-weight: 700;
  line-height: 1.25;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0.6)
  );
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-shadow: var(--txt-shadow);
}

/* アイコン（Bootstrap Icons使用時） */
.services__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* 画像アイコン（imgを使う場合） */
.services__card-title img {
  width: 36px;
  height: 36px;
  padding: 0.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* 本文 */
.services__card-text {
  flex: 1;
  margin: 0;
  font-size: clamp(0.875rem, 2.5vw, 1.125rem); /* 大画面での文字サイズを抑制 */
  font-weight: 600; /* 700→600で少し細く */
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-shadow: var(--txt-shadow);
  /* グラデーション背景で自然に */
  padding: 0.2rem 0.4rem;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0.25)
  );
  border-radius: 0.25rem;
  backdrop-filter: blur(2px);

  /* 全文表示（行数制限を削除） */
  /* display: -webkit-box; */
  /* -webkit-box-orient: vertical; */
  /* overflow: hidden; */
}
/* CTAテキストは削除（PHPで削除するため不要） */

/* SPではテキストシャドウを削除 */
@media (max-width: 576px) {
  .services__card-title,
  .services__card-text {
    text-shadow: none;
  }
  /* モバイルでは背景を少し強化して視認性確保 */
  .services__card-text {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.65),
      rgba(255, 255, 255, 0.45)
    );
  }
  /* 矢印アイコンを少し小さく */
  .services__link::after {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}

/* "もっと見る" 等（必要なら） */
.services__card--more .services__link {
  background: var(--clr-gray-100);
  color: var(--clr-text);
  border-color: var(--clr-gray-200);
}
.services__card--more .services__link::before,
.services__card--more .services__link::after {
  display: none;
}

/* ===== 順次アニメ（1枚ずつ） ===== */
.section.is-visible .services__card {
  animation: services-pop 0.6s cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.16s + 0.08s);
}
.section.is-visible .services__link::after {
  animation: services-sheen 0.6s ease-out forwards;
  animation-delay: calc(var(--i, 0) * 0.16s + 0.18s);
}
@keyframes services-pop {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
    filter: blur(4px);
  }
  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* reduce-motion 尊重 */
@media (prefers-reduced-motion: reduce) {
  .services__card {
    opacity: 1;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
  .services__link {
    transform: none !important;
  }
  .services__link::before,
  .services__link::after {
    display: none !important;
  }
}

/* ==========================================================
    4.Join Us  セクション  ―  パララックス
   ========================================================== */
.join {
  /* 背景画像とマスクを変数で指定 */
  --parallax-image: url("../img/join-bg.webp");
  --parallax-overlay: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));

  position: relative;
  padding-block: 6rem;
  overflow: hidden;
  z-index: 10;
}
.section__sub--join {
  color: #ffd600;
  border-bottom: 2px solid var(--f-yellow);
}
.section__title--join {
  color: var(--f-white);
}

/* ---------- Join 内部レイアウト ---------- */
.join__content {
  width: 60%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 12px;
  background: #005b94d6;
}
@media (max-width: 960px) {
  .join__content {
    width: 100%;
    margin-inline: auto;
  }
}

.join__catch {
  color: var(--f-white);
}
.join__text {
  color: var(--f-white);
}

@media (max-width: 640px) {
  .join__link {
    text-align: center;
  }
  .join__message {
    font-size: 1rem;
    line-height: 22px;
    margin-bottom: 10px;
  }
}

.join__visual {
  width: 60%;
  position: absolute;
  bottom: -7%;
  z-index: -1;
}
@media (max-width: 640px) {
  .join__visual {
    display: none;
  }
}


/* =============== 5. OFFICE FLOW IMAGE ================== */
.office__img {
  width: 100%;
  height: 293px;
  background: url("/img/recruit-flow.webp") repeat-x;
  background-size: auto 293px;
  animation: loop 30s linear infinite;
  position: relative;
  z-index: 999;
  margin: 120px calc(50% - 50vw) 100px;
}
@keyframes loop {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -2000px 0;
  }
}

/* ==========================================================
    6. NEWS  セクション -> news.cssへ移動
   ========================================================== */

