/* ========= 0. RESET ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  height: 100% !important;
}

body {
  position: relative !important;
  min-height: 100vh;
}

.site-footer {
  position: relative;
  z-index: 1;
}

.bg-cube, .bg-cube2, .bg-cube3 {
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}

.bg-cube,
.bg-cube2,
.bg-cube3 {
  display: none !important;
}





/* ヘッダー */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 20px;
  margin-right: 10px;
}

/* ナビゲーションとENTRYを右寄せ */
.menu-container {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* ナビゲーションリンク */
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  margin-right: 20px;
}

.nav-links li a {
  font-size: 18px;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ナビリンク：ホバー時に青 */
.nav-links li a:hover {
  color: #0056b3;
}

/* ENTRYボタン */
.entry-button a {
  background-color: #0047a3;
  color: white;
  font-size: 18px;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.entry-button a:hover {
  background-color: #002f6c; /* もっと濃く */
  transform: scale(1.05);     /* 拡大してわかりやすく */
}

/* ハンバーガー非表示（モバイル用） */
.hamburger {
  display: none;
}

/* モバイルナビ非表示（必要なら後で調整） */
.mobile-nav {
  display: none;
}






/* 背景 */
.about-section-row {
  overflow: visible;   /* ← overflow消しておく */
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.about-section-row::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background-image:
    linear-gradient(90deg, rgba(0,91,172,0.015) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,91,172,0.015) 1px, transparent 1px),
    radial-gradient(circle at 40% 30%, rgba(0,91,172,0.05), transparent 60%);
  background-size: 60px 60px, 60px 60px, 100% 100%;
  background-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  animation: floatGrid 60s linear infinite;
}

@keyframes floatGrid {
  0% {
    background-position: 0 0, 0 0, center;
  }
  100% {
    background-position: 60px 60px, 60px 60px, center;
  }
}


/* キャッチコピー */
.copy {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 1s ease, transform 1s ease, filter 1s ease;
  filter: blur(2px);
  color: #fff;
  font-weight: 600;
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.copy.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.copy p.sup {
  font-size: 18px;
  color: #ddd;
  letter-spacing: 0.05em;
  margin-top: 20px;
}










/* 以下、既存のヒーロー・キューブ・アニメーション等 */
.hero { position:relative; width:100vw; height:100vh; overflow:hidden; }
.slides, .slide { position:absolute; inset:0; }
.slide {
  background-size:cover; background-position:center;
  opacity:0; transition:opacity 1s ease; z-index:0;
}
.slide.show { opacity:1; }
.flash {
  position:absolute; inset:0;
  background:radial-gradient(circle at center,
    rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 80%);
  opacity:0; pointer-events:none;
  transition:opacity .5s ease-out; z-index:2;
}
.flash.active { opacity:1; transition:opacity .2s ease-in; }
.cubes { position:absolute; inset:0; perspective:800px; pointer-events:none; z-index:1; }
.cube-wrapper {
  position:absolute;
  animation: floatUp var(--dur) ease-in-out infinite var(--dly);
  transition:transform .5s ease-in-out;
}
.spin-once {
  animation: spinOnce .6s ease-in-out forwards;
}
.cube {
  width:100%; height:100%;
  transform-style:preserve-3d;
}
.face {
  position:absolute; width:100%; height:100%;
  backface-visibility:hidden; border-radius:6px; opacity:0.8;
  box-shadow:
    inset 0 8px 16px rgba(255,255,255,0.7),
    0 4px 12px  rgba(0,0,0,0.25);
}
/* 各面のグラデーション指定 */
.face--front { transform: translateZ(var(--size)); background: linear-gradient(135deg, #4F8BFF 0%, #CFE6FF 100%); }
.face--back  { transform: rotateY(180deg) translateZ(var(--size)); background: linear-gradient(135deg, #8dc5f3 0%, #E0F7FA 100%); }
.face--right { transform: rotateY(90deg)  translateZ(var(--size)); background: linear-gradient(135deg, #5F9DEF 0%, #D0E8FF 100%); }
.face--left  { transform: rotateY(-90deg) translateZ(var(--size)); background: linear-gradient(135deg, #0077CC 0%, #A8D4FF 100%); }
.face--top   { transform: rotateX(90deg)  translateZ(var(--size)); background: linear-gradient(135deg, #A6CCFF 0%, #F0F8FF 100%); }
.face--bottom{ transform: rotateX(-90deg) translateZ(var(--size)); background: linear-gradient(135deg, #8EE5FF 0%, #FFFFFF 100%); }

@keyframes floatUp { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8vh);} }
@keyframes spinOnce { from{transform:rotateX(25deg) rotateY(15deg);} to{transform:rotateX(25deg) rotateY(375deg);} }

/* キャッチコピー */
.copy { position:relative; z-index:3; max-width:700px; margin-left:5vw; top:55%; transform:translateY(-50%); background:none!important; }
.sup { font-size:.9rem; margin-bottom:.8rem; }
h1 { font-size:3rem; font-weight:900; line-height:1.1; }
h1 span::before { content:none; }

/* レスポンシブ */
@media (max-width:600px) {
  .face { border-radius:4px; }
  .cube-wrapper { animation-duration:15s !important; }
}

/* 全体レイアウト */
.about-section-row {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 80px 0;
  overflow: hidden;
}

/* 左カラム（青背景） */
.about-text {
  width: 85%;
  background: linear-gradient(
    135deg,
    #1a4eac 0%,
    #2c5fc2 20%,
    #4a78d2 40%,
    #6b93e3 60%,
    #4a78d2 80%,
    #2c5fc2 100%
  );
  color: white;
  padding: 60px 40px;
  border-radius: 0 20px 20px 0;
  min-height: 650px;
  position: relative;
  z-index: 1;
  margin-bottom: 50px;
}

.about-en {
  font-size: 1rem;
  margin-bottom: 10px;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.underline {
  width: 40px;
  height: 3px;
  background-color: #f8c24e;
  margin: 10px 0 20px;
  margin-left: 0px !important;
}

.about-description {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* 白いカードコンテナ */
.about-cards {
  width: 38%;
  background: white;
  border-radius: 30px;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 70%;
  right: 10%;
  transform: translateY(-50%);
  z-index: 2;
  min-height: 430px;
}

/* カードリンク共通 */
.card-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* カード本体 */
.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* 画像 */
.card img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 20px 20px 0 0 !important;
}

.card:hover img {
  transform: scale(1.05);
}


/* テキストエリア */
.card-text {
  display: flex;
  flex-direction: column;  /* ← 縦並び */
  align-items: center;     /* ← 中央寄せ */
  text-align: center;
  padding: 8px 4px;
}

.card-text .sub {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 4px;
}

.card-text .title {
  font-size: 1rem;
  font-weight: bold;
  color: #000;
}

.card-text .arrow {
  display: inline-block;
  margin-top: -30px;
  font-size: 0.9rem;
  color: #000;
}

.card a {
  text-decoration: none;
  color: inherit;
}


/* アニメーション */
.animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 波 */
.wave-container {
  position: relative;
  width: 200%;
  height: 400px;
  overflow: visible;
  left: 50%;
  transform: rotate(-15deg) translateY(30px);
  transform-origin: left top;
  top: 30px;
}

.wave-line {
  width: 100%;
  height: 100%;
  display: block;
}

.visual-section {
  position: relative;
}

.photo-frame {
  position: relative;
}

.wave-line,
.wave-fill {
  position: absolute !important;
}

.visual-section,
section.interview,
.visual-section > *,
section.interview > * {
overflow: visible !important;
}





/* 社員インタビュー */
.voice-section {
  width: 100%;
  padding: 60px 0;
  background: #fff;
  margin-top: -300px;
}

.voice-content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 60px;
  width: 100%;
  padding: 0 40px;
  position: relative;
  box-sizing: border-box;
}

.voice-carousel {
  display: flex;
  gap: 30px;
  width: 1000px;
  flex-shrink: 0;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  margin-top: 30px;
}

.voice-member {
  flex: 0 0 260px;  /* 👈 各画像を広げる */
  text-align: center;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.voice-member img.thumb {
  width: 100%;
  height: auto;
  max-height: 310px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

/* 拡大効果を強調 */
.voice-member.enlarged img.thumb {
  transform: scale(1.25); /* 👈 強調拡大 */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* 👈 シャドウ強化 */
  z-index: 2;
}

.voice-text {
  position: absolute;
  right: 240px;
  top: 0;
  max-width: 420px;
  padding: 0 20px;
}

.voice-tag {
  font-size: 0.9rem;
  font-weight: bold;
  color: #3e64a5;
  margin-bottom: 5px;
}

.voice-text h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
}

.voice-underline {
  width: 40px;
  height: 3px;
  background-color: #f5c10f;
  margin: 10px 0 20px;
}

.voice-description {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.voice-buttons {
  margin-top: 10px;
}

.voice-cta {
  background-color: #0d3d91;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 20px;
}

.voice-cta:hover {
  background-color: #0a3378; /* 少し暗い色に変更 */
}

.voice-member a {
  text-decoration: none;
  color: inherit;
}

.slider-controls {
  display: flex;
  gap: 20px;
}

.slider-controls button.arrow {
  background: #3e64a5;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 1.2em;
  border-radius: 50%;
  cursor: pointer;
  width: 42px;
  height: 42px;
}

.slider-indicator {
  font-weight: bold;
  font-size: 1em;
}

/* アニメーション */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}




/* ============================
   静止キューブ 完全停止パッチ
   （CSSの一番最後に貼る）
   ============================ */
/* セクションが基準。はみ出しOKに */
.workstyle-section { position: relative; overflow: visible; }

/* 青パネルは下のレイヤーに、クリップしない */
.workstyle-text { position: relative; z-index: 1; overflow: visible !important; }

/* キューブはパネルより上に出す（青枠外にも表示） */
.cubes--workstyle{
  position: absolute;
  left: 0; top: 0; width: 0; height: 0;
  pointer-events: none;
  z-index: -1;                 /* ← パネルより前 */
  perspective: 800px;
  perspective-origin: 30% 25%;
  transform-style: preserve-3d;
  left: -1150px;
}

/* 静止配置（アニメ無効） */
.cubes--workstyle .cube-wrapper{
  animation: none !important;
  width: calc(var(--size) * 2);
  height: calc(var(--size) * 2);
  opacity: 0.3;
  transform: scale(0.9);
  margin-left: -160px !important;
  margin-top: -140px;
  position: relative;
  z-index: -10000;
}

.cube-wrapper2{
  animation: none !important;
  width: calc(var(--size) * 2);
  height: calc(var(--size) * 2);
  opacity: 0.3;
  transform: scale(0.9);
  position: relative;
  z-index: -20000;
  margin-left: 1050px !important;
  margin-top: 200px;
  }

/* 常に斜め固定（回らないけど3面見える） */
.cubes--workstyle .cube{
  width:100%; height:100%;
  transform-style:preserve-3d;
  transform:
    rotateX(var(--crx,28deg))
    rotateY(var(--cry,-32deg))
    rotateZ(var(--crz,-6deg)) !important;
}

/* 6面配置（--size は半径扱い） */
.cubes--workstyle .face{position:absolute; inset:0; backface-visibility:hidden; border-radius:6px;
  box-shadow: inset 0 8px 16px rgba(255,255,255,.55), 0 5px 14px rgba(0,0,0,.28);}
.cubes--workstyle .face--front  { transform: translateZ(var(--size)); }
.cubes--workstyle .face--back   { transform: rotateY(180deg) translateZ(var(--size)); }
.cubes--workstyle .face--right  { transform: rotateY( 90deg) translateZ(var(--size)); }
.cubes--workstyle .face--left   { transform: rotateY(-90deg) translateZ(var(--size)); }
.cubes--workstyle .face--top    { transform: rotateX( 90deg) translateZ(var(--size)); }
.cubes--workstyle .face--bottom { transform: rotateX(-90deg) translateZ(var(--size)); }

/* 配色（お好みで） */
.cubes--workstyle .face--front  { background: linear-gradient(135deg,#5C7DD9 0%, #AFC8F8 100%); }
.cubes--workstyle .face--back   { background: linear-gradient(135deg,#6E9FD9 0%, #CFE3F9 100%); }
.cubes--workstyle .face--right  { background: linear-gradient(135deg,#567FBF 0%, #B5D2F3 100%); }
.cubes--workstyle .face--left   { background: linear-gradient(135deg,#476CA8 0%, #9FBFE6 100%); }
.cubes--workstyle .face--top    { background: linear-gradient(135deg,#7EA7E6 0%, #DCE8FA 100%); }
.cubes--workstyle .face--bottom { background: linear-gradient(135deg,#9CC3EC 0%, #F7FAFD 100%); }

/* モバイル位置微調整 */
@media (max-width:768px){
  .cubes--workstyle{ left:12px; top:8px; }
}





/* 働き方を知るセクション */
.workstyle-section {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 80px 0;
  background: #fff;
  margin-top: -50px !important;
  z-index: 0;
}

/* 青い背景 */
.workstyle-text {
  width: 83%;
  background: linear-gradient(
    -135deg,
    #1a4eac 0%,
    #2c5fc2 20%,
    #4a78d2 40%,
    #6b93e3 60%,
    #4a78d2 80%,
    #2c5fc2 100%
  );
  color: white;
  padding: 40px 0; /* 上下だけ残す。横はinnerで調整 */
  border-radius: 20px 0 0 20px;
  height: 650px;  /* ← min-height じゃなく height にする */
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: 75px;
}

/* 中身の位置を自由に動かせるようにする */
.workstyle-inner {
  position: absolute;
  top: 65px;    /* ← 好みに調整 */
  right: 100px !important;   /* ← 好みに調整 */
  max-width: 480px;
}

.workstyle-en {
  font-size: 1rem;
  margin-bottom: 10px;
  margin-left: 40px;
}

.workstyle-text h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  padding-left: 40px;
}

.underline2 {
  width: 40px;
  height: 3px;
  background-color: #f8c24e;
  margin: 10px 0 20px;
  margin-left: 40px !important;
}

.workstyle-description {
  font-size: 0.95rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-left: 40px;
}

/* 白いカード */
.workstyle-cards {
  width: 32% !important;
  background: white;
  border-radius: 30px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  position: fixed !important;
  top: 67%;
  left: 25%;
  transform: translateY(-50%);
  z-index: 999999 !important;
  min-height: 430px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.card-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-text .sub {
  font-size: 0.75rem;
  color: #777;
}

.card-text .title {
  font-size: 1rem;
  font-weight: bold;
}

.arrow {
  font-size: 1.2rem;
  color: #1f5fbf;
  margin-left: auto;
}

/* ——— アニメーション ——— */
.animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}





/* ２つ目の波背景 */
.workstyle-wave path {
  vector-effect: non-scaling-stroke;
  /* stroke-widthはSVG初期値を使う想定 */
  /* 緩やかに左細・右太に */
  stroke-linecap: round;
}
.workstyle-wave {
  width: 100%;
  height: 200px;
  transform: scaleX(-1); /* 左→右下がりにするなら反転 */
}
.wave-con {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  overflow: hidden;
  pointer-events: none;
}





/* ——— 採用セクション ——— */
.hero-section {
  position: relative;
  perspective: 1000px;
  overflow: hidden;
  top: 200px;

  background:
    radial-gradient(200px at 5% 15%, #fdf8e2 0%, transparent 100%),  /* 白寄りクリーム */
    radial-gradient(160px at 15% 25%, #e6f6ff 0%, transparent 100%), /* 淡ブルー控えめ */
    radial-gradient(220px at 25% 10%, #fffaf3 0%, transparent 100%), /* 少しクリーム */
    radial-gradient(180px at 35% 40%, #cdeff9 0%, transparent 100%), /* 淡ブルー */
    radial-gradient(200px at 45% 20%, #fffbf5 0%, transparent 100%), /* 柔らかクリーム */
    radial-gradient(240px at 55% 35%, #d6f2ff 0%, transparent 100%), /* 淡ブルー */
    radial-gradient(180px at 65% 10%, #fffcf7 0%, transparent 100%), /* 白寄りクリーム */
    radial-gradient(200px at 75% 25%, #d4efff 0%, transparent 100%), /* 淡ブルー */
    radial-gradient(220px at 85% 45%, #fffaf2 0%, transparent 100%), /* 少しクリーム */
    radial-gradient(240px at 10% 70%, #cff4ff 0%, transparent 100%), /* 淡ブルー */
    radial-gradient(200px at 30% 60%, #fffdf6 0%, transparent 100%), /* 白寄りクリーム */
    radial-gradient(240px at 50% 65%, #c8f0ff 0%, transparent 100%), /* 淡ブルー */
    radial-gradient(180px at 70% 55%, #fffaf4 0%, transparent 100%), /* 柔らかクリーム */
    radial-gradient(200px at 90% 20%, #c4e7ff 0%, transparent 100%), /* 淡ブルー */

    linear-gradient(135deg, #fffefc 0%, #f3fbff 100%); /* 全体のベース色 */

  background-repeat: no-repeat;
  background-size: cover;

  padding: 120px 40px;
  text-align: center;
  border-radius: 16px;
  max-width: 1600px;
  margin: 0 auto 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 控えめな影 */
}

.hero-section .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #333;
}

.hero-section .hero-links {
  margin-bottom: 24px;
}

.hero-section .hero-links a {
  margin: 0 10px;
  color: #666;
  text-decoration: underline;
  font-size: 0.9rem;
}

/* CTA */
.hero-section .cta-button {
  display: inline-block;
  padding: 12px 28px;
  background-color: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-weight: bold;
  color: #000;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: background 0.3s;
  margin-top: 40px;
}
.hero-section .cta-button:hover {
  background-color: #f7f7f7;
}

/* ——— 立体キューブ ——— */
.hero-section .bg-cube {
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 340px;
  height: 340px;
  transform-style: preserve-3d;
  transform: rotateX(-30deg) rotateY(10deg);
  z-index: 1;
}

.hero-section .bg-cube .face {
  position: absolute;
  width: 340px;
  height: 340px;
  backface-visibility: hidden;
  border: none;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.4),
              0 12px 24px rgba(0, 0, 0, 0.08);
}

/* 各面：ほんのり濃いめブルーで立体感出す */
.hero-section .bg-cube .front {
  background: linear-gradient(145deg, #d0e9ff, #a9d3f5);
  transform: translateZ(170px);
}
.hero-section .bg-cube .right {
  background: linear-gradient(145deg, #bbdcf6, #98c8ec);
  transform: rotateY(90deg) translateZ(170px);
}
.hero-section .bg-cube .left {
  background: linear-gradient(145deg, #e5f2fc, #cde6f6);
  transform: rotateY(-90deg) translateZ(170px);
}
.hero-section .bg-cube .top {
  background: linear-gradient(145deg, #f0faff, #d7ecf7);
  transform: rotateX(90deg) translateZ(170px);
}
.hero-section .bg-cube .bottom {
  background: linear-gradient(145deg, #cde6f9, #aed4f0);
  transform: rotateX(-90deg) translateZ(170px);
}
.hero-section .bg-cube .back {
  background: linear-gradient(145deg, #aed4f5, #93c2ea);
  transform: rotateY(180deg) translateZ(170px);
}

/* ——— 新・右下キューブ ——— */
.hero-section .bg-cube2 {
  position: absolute;
  bottom: -50px;
  right: 30px;
  width: 220px;
  height: 230px;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(-60deg);
  z-index: 1;
}
.hero-section .bg-cube2 .face {
  position: absolute;
  width: 220px;
  height: 220px;
  backface-visibility: hidden;
  border: none;
  box-shadow: inset 0 0 24px rgba(255,255,255,0.3),
              0 10px 20px rgba(0,0,0,0.06);
}
.hero-section .bg-cube2 .front {
  background: linear-gradient(145deg, #e1f0ff, #bcdff6);
  transform: translateZ(110px);
}
.hero-section .bg-cube2 .right {
  background: linear-gradient(145deg, #c9e6f9, #a7d2f1);
  transform: rotateY(90deg) translateZ(110px);
}
.hero-section .bg-cube2 .left {
  background: linear-gradient(145deg, #edf5fd, #dceafb);
  transform: rotateY(-90deg) translateZ(110px);
}
.hero-section .bg-cube2 .top {
  background: linear-gradient(145deg, #f4fbff, #e5f4fb);
  transform: rotateX(90deg) translateZ(110px);
}
.hero-section .bg-cube2 .bottom {
  background: linear-gradient(145deg, #d7eaf7, #c0dcf1);
  transform: rotateX(-90deg) translateZ(110px);
}
.hero-section .bg-cube2 .back {
  background: linear-gradient(145deg, #bce0f4, #9ccde9);
  transform: rotateY(180deg) translateZ(110px);
}

/* —遠景・ぼやけキューブ（bg-cube3）— */
.hero-section .bg-cube3 {
  position: absolute;
  top: 50px;
  right: 360px;
  width: 50px;
  height: 50px;
  transform-style: preserve-3d;
  transform: rotateX(25deg) rotateY(25deg);
  z-index: 5;
  filter: blur(2px);
  opacity: 0.9;
}

.hero-section .bg-cube3 .face {
  position: absolute;
  width: 110px;
  height: 110px;
  backface-visibility: hidden;
  border: none;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.2),
              0 4px 10px rgba(0,0,0,0.04);
}

/* 立体感＆視認性上げたグラデーション色味 */
.hero-section .bg-cube3 .front  {
  background: linear-gradient(145deg, #d8ecfc, #b7daf2);
  transform: translateZ(80px);
}
.hero-section .bg-cube3 .back   {
  background: linear-gradient(145deg, #bedef5, #a5ccea);
  transform: rotateY(180deg) translateZ(80px);
}
.hero-section .bg-cube3 .right  {
  background: linear-gradient(145deg, #cae5f7, #aed4ee);
  transform: rotateY(90deg) translateZ(80px);
}
.hero-section .bg-cube3 .left   {
  background: linear-gradient(145deg, #e6f4ff, #cfe8fa);
  transform: rotateY(-90deg) translateZ(80px);
}
.hero-section .bg-cube3 .top    {
  background: linear-gradient(145deg, #f3fbff, #e3f3fa);
  transform: rotateX(90deg) translateZ(80px);
}
.hero-section .bg-cube3 .bottom {
  background: linear-gradient(145deg, #d9edf8, #c3e0f0);
  transform: rotateX(-90deg) translateZ(80px);
}

/* アニメーション */
.animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}





/* フッター */
.site-footer {
  position: relative;
  background-color: #0B1E32;
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(#0B1E32, #0B1E32);
  background-repeat: repeat;
  background-size: 20px 20px, cover;
  padding: 60px 20px 20px;
  color: #fff;
  font-family: 'Helvetica Neue', sans-serif;
  top: 300px;
}

.footer-top {
  text-align: center;
  margin-bottom: 40px;
}
.footer-top h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.footer-top p {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.6;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 40px 0;
}

.footer-logo {
  max-width: 280px;
}
.footer-logo img {
  width: 160px;
  margin-bottom: 10px;
}
.footer-logo p {
  font-size: 14px;
  margin: 6px 0;
}

.footer-icon-group {
  margin-top: 10px;
}
.footer-icon-group a {
  display: inline-block;
  margin-right: 12px; /* アイコン間の余白 */
}
.footer-icon-group img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  filter: brightness(0) invert(1); /* 白アイコン */
}

.footer-nav {
  display: flex;
  margin-left: 0px;
  gap: 70px;
}
.footer-nav h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li {
  font-size: 14px;
  margin-bottom: 6px;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  margin-top: 130px;
  font-size: 13px;
  opacity: 0.7;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s ease;
}

.footer-nav a:hover {
  border-bottom: 1px solid #fff;
}

/* □ LINEバナーとのスペースを調整したい場合は以下を追加 */
.site-footer {
  margin-top: 40px; /* 必要に応じて調整 */
}



/* line・Instagramアイコン */
.footer-icon-group a {
  display: inline-block;
  margin-right: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.footer-icon-group a:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.sns-icon {
  width: 38px !important;
  height: 38px !important;
}


/* モバイル対応 */
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
  }
}






/* -------------------------------- */
/*　 ハンバーガーメニュー・ヘッダー　　*/
/* -------------------------------- */
/* 初期状態では全て非表示 */
.hamburger,
.mobile-nav {
  display: none;
}

/* モバイル表示用 */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
  }

  .hamburger span {
    height: 3px;
    background-color: #000;
    border-radius: 2px;
  }

  .mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed; /* ←絶対必要 */
  top: 0;
  left: 0;
  width: 100vw;
  max-height: 100vh; /* ← スクロールありで最大画面高 */
  background-color: rgba(0, 0, 0, 0.7); /* 透け感ありの黒 */
  padding: 80px 20px 20px; /* ←上にロゴがある分ちょい下げる */
  z-index: 9998;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}


  .mobile-nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* PCメニュー非表示に */
  .menu-container {
    display: none;
  }
}

/* PC表示用 */
@media screen and (min-width: 769px) {
  .hamburger,
  .mobile-nav {
    display: none !important;
  }

  .menu-container {
    display: flex !important;
    align-items: center;
    gap: 20px;
  }
}

 /* ヘッダー */
@media screen and (max-width: 768px) { /* ロゴ画像を小さくする */
  .fixed-header .logo img {
    height: 24px !important;
    width: auto !important;
    max-height: 24px !important;
    display: block;
    left: -10px;
  }

  .fixed-header {
  height: 60px; /* ← 例えば60pxにする */
  padding: 0 16px;
}
}

/* ロゴ画像を小さくする */
@media screen and (max-width: 768px) {
  .fixed-header .logo img {
    height: 11px !important;
    width: auto !important;
    max-height: 11px !important;
    display: block;
    left: -10px;
  }

  .fixed-header {
  height: 60px; /* ← 例えば60pxにする */
  padding: 0 16px;
}
}




/* ----------------------- */
/*　  　ファーストビュー　　　*/
/* ----------------------- */
/* スマホ用の背景調整 */
@media screen and (max-width: 768px) {
 .slide.kagoshima {
  background-image: url("images/matuda4.svg");
  background-position: 85% !important; /* ←ここで右寄せ */
}
}

/* キャッチコピー */
@media screen and (max-width: 768px) {
.copy p.sup {
  font-size: 14px;
  color: #ddd;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.copy h1 {
  font-size: 1.6rem; /* ← 少し小さく */
  line-height: 1.5;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
}







/* ----------------------- */
/*　 　　会社を知る　　　　　*/
/* ----------------------- */
@media screen and (max-width: 768px) {
  .about-section-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(
      135deg,
      #1a4eac 0%,
      #2c5fc2 20%,
      #4a78d2 40%,
      #6b93e3 60%,
      #4a78d2 80%,
      #2c5fc2 100%
    );
    border-radius: 0 24px 24px 0;
    color: white;
    width: 95vw;
    box-sizing: border-box;
    margin-top: 70px;
  }

  .about-text {
    width: 100%;
    margin-bottom: 16px;
  }

  .about-cards {
  position: relative;
  top:  270px;     /* 【白背景】　下へ動かす。大きくしたいときは数値上げる */
  left: -30px;    /* 【白背景】右へ動かす。大きくしたいときは数値上げる */

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 120%;
  box-sizing: border-box;

  background-color: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

  .card {
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0px;
  }

  .card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
  }

 .card-text {
  display: flex;
  flex-direction: column;  /* ← 縦並び */
  align-items: center;     /* ← 中央寄せ */
  text-align: center;
  padding: 8px 4px;
}

.card-text .title {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 2px;      /* ← タイトルとsubの間の余白 */
  color: #000;
}

.card-text .sub {
  font-size: 11px;
  color: #888;
  margin: 0;
  text-align: left;
}

.arrow {
  margin-top: 10px !important;         /* 少し余白 */
  margin-left: 0px;
  font-size: 12px;
}

.about-en {    /* ← about */
  margin-left: 61px;
  margin-top: -20px;
}

.about-text h2 {   /* ← 会社を知るタイトル */
  margin-left: 61px;
}

.underline {
  background-color: #f8c24e;
  margin-left: 62px !important;
  margin-bottom: 25px !important;
}

.about-description {     /* ← 説明文 */
  margin-left: 60px;
  white-space: nowrap;   /* デフォルトでは改行させない */
  overflow-wrap: normal;
}
}





/* ----------------------- */
/* 　　 社員インタビュー　 　*/
/* ----------------------- */
/* モバイル向け社員インタビュー調整 */
@media screen and (max-width: 768px) {
  .voice-content {
    display: flex;
    flex-direction: column; /* 上下に並べる */
    align-items: center;
    gap: 24px;
    padding: 16px;
    position: relative;
    margin-top: 200px;
  }

  .voice-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    width: 100%;
  }

  .voice-member {
    flex: 0 0 80%;
    scroll-snap-align: center;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .voice-member img.thumb {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .voice-info h3 {
    margin: 8px 0 4px;
    font-size: 16px;
  }

  .voice-text {
  position: absolute;
  top: -260px;      /* 上にずらす。マイナスでもOK */
  left: 20px;     /* 左からずらす */
  z-index: 10;    /* 背景の上に出す */
  padding: 20px;
  border-radius: 8px;
  width: 320px;
}

  .voice-cta {
    margin-top: 16px;
    padding: 10px 24px;
    font-size: 14px;
    border: none;
    background-color: #3070ca !important;
    color: #fff;
    border-radius: 24px;
    cursor: pointer;
  }

  .slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    gap: 8px;
  }

  .slider-controls .arrow {
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .slider-indicator {
    font-size: 14px;
    font-weight: bold;
  }

  .voice-member {
  position: relative; /* テキストを絶対配置するために必要 */
  overflow: hidden;
}

.voice-overlay-text {
  position: absolute;
  top: 50%;
  left: -50%;
  transform: translate(0, 0); /* 必要に応じて微調整 */
  color: white;
  text-align: left;
  max-width: 80%;
}

.voice-overlay-text h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.voice-overlay-text .voice-description {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.voice-overlay-text .voice-cta {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0055cc;
  color: white;
  text-decoration: none;
  border-radius: 20px;
}
}

@media screen and (max-width: 768px) {
  .slider-controls {
    display: none;
  }
}




/* ----------------------- */
/* 　　　働き方を知る　　 　*/
/* ----------------------- */
@media screen and (max-width: 768px) {
  .workstyle-section-v2 {
    display: flex;
    justify-content: flex-end; /* 右寄せ */
    padding: 0;
    margin-top: 60px;
  }

  .workstyle-text-v2 {
    background: linear-gradient(
      135deg,
      #1a4eac 0%,
      #2c5fc2 20%,
      #4a78d2 40%,
      #6b93e3 60%,
      #4a78d2 80%,
      #2c5fc2 100%
    );
    color: white;
    border-radius: 24px 0 0 24px;
    padding: 24px;
    width: 95vw;
    position: relative;
    box-sizing: border-box;
    height: 840px;
    margin-top: 70px;
  }

  .workstyle-inner-v2 {
    margin-bottom: 24px;
  }

  @media screen and (max-width: 768px) {
  .workstyle-cards-v2 {
    position: relative;
    top: 655px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 12px;
    width: 80vw !important;
    max-width: 80vw !important;
    margin: 0 auto !important;
    left: 50px;
  }

  .card-v2 {
    width: 100%; /* ← カード自体も列に対して最大幅にする */
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 200px !important;
  }

  .card-v2 img {
    width: 100%;
    height: 100px;
    object-fit: cover;
  }

  .card-v2 .card-text {
    padding: 8px 4px;
  }

  .card-v2 .sub {
    font-size: 11px;
    color: #777;
    text-align: center !important;
  }

  .card-v2 .title {
    font-size: 13px !important;
    font-weight: bold;
    margin: 4px 0;
  }

  .card-v2 .arrow {
    font-size: 12px;
  }

  /* モバイルで説明文を省略せずに全部表示 */
  .workstyle-description {
    white-space: normal !important;   /* 折り返しを許可 */
    overflow: visible !important;     /* はみ出しを隠さない */
    text-overflow: clip !important;   /* 省略記号を無効化 */
    display: block !important;        /* インライン要素でも改行可能に */
  }

  .workstyle-en {
    margin-left: 29px;
  }

  .workstyle-text h2 {   /* ← 会社を知るタイトル */
  margin-left: -10px;
}

  .underline2 {
   margin-left: 33px !important;
   width: 40px;
  height: 3px;
  background-color: #f8c24e;
  margin: 10px 0 20px;
}

  .workstyle-description {
   margin-left: -7px;
   margin-top: 28px;
   margin-bottom: 100px;
}
}
}



/* ----------------------- */
/* 　　　　　求人　　　　　 　*/
/* ----------------------- */
@media screen and (max-width: 768px) {
  .hero-section-sp {
    padding: 24px 16px;
    background-color: #e3f1fb;
    border-radius: 16px;
    text-align: center;
    margin: 40px auto 0;
    width: 95vw;
    max-width: 95vw;
    box-sizing: border-box;
    height: 450px;
    margin-top: -100px;
  }

  .hero-inner-sp {
    max-width: 100%;
  }

  .hero-title-sp {
    font-size: 27px !important;
    font-weight: bold;
    line-height: 1.6;
    margin-top: 30px;
  }

  .hero-text-sp {
    font-size: 15px !important;
    line-height: 1.8;
    color: #333;
    margin-bottom: 5px;
    margin-top: 30px;
  }

  .hero-btn-sp {
    display: inline-block;
    background-color: #1a4eac;
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 25px !important;
  }

  .hero-btn-sp:hover {
    background-color: #163f8f;
  }
}





/* -------------------- */
/* 　　　フッター　　　 　*/
/* -------------------- */
@media screen and (max-width: 768px) {
  .footer-nav {
    display: flex;
    flex-direction: row; /* ← 横並び */
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    text-align: left;
    margin-left: 17px;
  }

  .footer-nav > div {
    flex: 1;
    min-width: 100px;
  }

  .footer-nav h3 {
    font-size: 13px;
    margin-bottom: 4px;
    white-space: nowrap;
  }

  .footer-nav ul {
    padding-left: 0;
    list-style: none;
  }

  .footer-nav li {
    font-size: 11px;
    margin-bottom: 2px;
    white-space: nowrap;
  }

  .footer-nav a {
    text-decoration: none;
    color: #fff;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-main {
    flex-wrap: wrap;
    padding: 12px;
    gap: 12px;
    margin-left: -5px;
  }

  .site-footer {
    font-size: 11px;
  }

  .footer-logo {
    text-align: left !important;
    align-items: flex-start !important;
  }

  .footer-logo p {
    text-align: left !important;
  }

  .footer-icon-group {
    justify-content: flex-start !important;
  }
}



/* ============================================
   recruit：フォント統一（PCと同じに固定）
   ============================================ */
html {
  -webkit-text-size-adjust: 100%;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
               Meiryo, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
body { font-family: inherit; }

/* 見出し/本文/リンク/フォーム等も継承させて“端末依存フォント”を排除 */
h1, h2, h3, h4, h5, h6,
p, a, li, dt, dd, small, strong, em,
button, input, select, textarea {
  font-family: inherit !important;
}

/* （任意）数字や英字を少し整えたい場合は letter-spacing を微調整
.recruit-number, .recruit-en { letter-spacing: .02em; }
*/




/* --------------------------------------------- */
/* 　　　    モバイル・会社を知るのキューブ　　    　*/
/* --------------------------------------------- */
.cubes--workstyle {
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 768px) {
  .cubes--workstyle {
    opacity: 0.3;
    transform: scale(0.8);
    margin-top: 80px;
    margin-left: 310px;
  }
}