* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow: visible !important; /* position: sticky;が効かないため */
}

.site-footer-title:after,
.sub-section-title:after,
h3:where(:not(.wp-block-post-title)):after {
  border: none !important;
}

.recruit-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2em;
}

/********* Header*********/
.header {
  position: fixed;
  top: 0;
  left: 20px;
  right: 20px;
  z-index: 9999;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* ロゴ部分 */
.logo-container {
  width: 25%;
}

.logo-container a {
  display: flex;
  align-items: center;
}

.logo-container a img {
  width: 100%;
}

/* ナビゲーション部分 - 独立した角丸背景 */
.nav-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 12px 20px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 16px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.nav-link:hover {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
  transform: translateY(-1px);
}

/* エントリーボタン - グラデーション背景 */
.entry-btn {
  background: linear-gradient(135deg, #ffc107 0%, #f64006 100%);
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  border-radius: 55px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}

.entry-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #f64006 0%, #ffeb3b 100%);
}

.arrow-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.entry-btn:hover .arrow-icon {
  transform: translate(2px, -2px);
}

/* モバイルメニューボタン - PCでは非表示 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  background: #e2edf2;
  backdrop-filter: blur(20px);
  border-radius: 50px;
  width: 50px;
  height: 50px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* モバイルメニューのアクティブ状態 */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* モバイルメニューの表示制御 */
.nav-container.active {
  display: flex !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 10px;
  flex-direction: column;
  gap: 10px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: menuSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* メニューの初期状態（非表示時） */
.nav-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 55px;
  box-shadow: 0 8px 32px rgb(0 0 0 / 27%);
  padding: 12px 20px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
}

/* ふわっと出るアニメーション */
@keyframes menuSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-5px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* モバイルメニュー内のナビゲーション */
.nav-container.active .nav {
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* メニュー項目の個別アニメーション */
.nav-container.active .nav-link {
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(240, 240, 240, 0.6);
  animation: menuItemSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateX(-20px);
}

.nav-container.active .nav-link:nth-child(1) {
  animation-delay: 0.1s;
}
.nav-container.active .nav-link:nth-child(2) {
  animation-delay: 0.2s;
}
.nav-container.active .nav-link:nth-child(3) {
  animation-delay: 0.3s;
}

.nav-container.active .entry-btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  animation: menuItemSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
  opacity: 0;
  transform: translateX(-20px);
}

@keyframes menuItemSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* アニメーション用クラス */
.animate-ready {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ホバー効果用クラス */
.about-menu-item.hover {
  background-color: #f8f9fa;
}

/* モバイル非表示クラス */
.mobile-hidden {
  display: none !important;
}

/********* Hero Section with Image Slides *********/
.hero-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Background Images Container */
.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transform: translateX(100%);
  transition: all 2s ease;
}

.hero-bg-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e2edf26b;
  z-index: 1;
}

.hero-bg-container.show {
  opacity: 1;
  transform: translateX(0);
}

.hero-image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease;
}

.hero-image-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Initial Background (Light Blue) */
.hero-initial-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2edf2 0%, #b8d4e3 100%);
  z-index: 2;
  opacity: 1;
  transition: opacity 1s ease;
}

.hero-initial-bg.fade-out {
  opacity: 0;
}

/* Content positioning - always visible */
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
}

.hero-text {
  padding-left: 2em;
  margin-top: 3em;
  z-index: 11;
  position: relative;
}

/* Slide Navigation */
.hero-slide-nav {
  position: absolute;
  bottom: 40px;
  left: 87%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 4;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #f8f9fa;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.slide-dot.active {
  background: white;
  border-color: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.slide-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
}

.slide-dot.active::after {
  background: #2c3e50;
}

/* H2 Slide Animation */
.section-title {
  position: relative;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease;
}

.section-title.active {
  opacity: 1;
  transform: translateX(0);
}

/* Recruitment Card Animation */
.recruitment-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.recruitment-card.active {
  opacity: 1;
  transform: translateY(0);
}

/* Section Description Fade-in Animation */
.about-description,
.staff-description,
.section-ex {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.about-description.active,
.staff-description.active,
.section-ex.active {
  opacity: 1;
  transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .hero-slide-nav {
    bottom: 30px;
  }

  .slide-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 768px) {
  .hero-slide-nav {
    bottom: 25px;
    gap: 12px;
  }

  .slide-dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .hero-slide-nav {
    bottom: 20px;
    gap: 10px;
  }

  .slide-dot {
    width: 6px;
    height: 6px;
  }
}

.table-center {
  display: table;
  width: 100%;
  position: relative;
  height: 100%;
}

.table-center > div {
  display: table-cell;
  vertical-align: middle;
  position: relative;
  text-align: center;
}

.table-center > div p {
  color: #fff;
  text-shadow: 0 0px 5px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px;
  font-size: 2em;
  font-weight: 600;
}

/* ファーストビュー文字 */
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.hero-text {
  padding-left: 2em;
  margin-top: 3em;
}

.hero-title {
  text-align: left;
  color: white;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title-bg {
  display: block;
  font-size: 6rem;
  opacity: 0;
  font-weight: 900;
  letter-spacing: 0.1em;
  animation: fadeIn 2s ease-out forwards;
}

.hero-title-bg:nth-child(1) {
  animation-delay: 0.5s;
}

.hero-title-bg:nth-child(3) {
  animation-delay: 1s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
}

/* タイピングアニメーション */
.hero-title-main {
  color: #ffffff;
  font-size: 3.5rem;
  letter-spacing: 0.1em;
  display: block; /* ブロック要素に変更 */
  width: 0; /*最初は隠す*/
  white-space: nowrap;
  overflow: hidden;
  font-family: monospace;
  opacity: 0;
  animation: typing 2s steps(25) 2s forwards,
    typingEffect 0.1s step-end infinite alternate 2s;
}

@keyframes typing {
  0% {
    width: 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    width: 25ch; /*最終的に出現*/
    opacity: 1;
  }
}

@keyframes typingEffect {
  50% {
    border-color: transparent;
  }
}

/********* Scroll Section *********/
.scroll-section {
  position: relative;
  height: 1em;
}
.scroll-indicator {
  position: absolute;
  top: 177%;
  left: 50%;
  transform: translate(-50%, -116%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.scroll-indicator__text {
  display: inline-block;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  color: #ffffff;
}

.scroll-indicator__line {
  position: relative;
  display: block;
  width: 2px;
  height: 50px;
  margin: 0 auto;
  background: #296292;
  overflow: hidden;
}

.scroll-indicator__line::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: #ffffff;
  animation: scroll-line 2s cubic-bezier(1, 0, 0, 1) infinite;
}

@keyframes scroll-line {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  50.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

/********* Flowing Text Animation Section *********/
.flowing-text-section {
  overflow: hidden;
}

.scroll-list {
  display: flex;
  list-style: none;
  padding-inline: 0;
  margin-inline: 0;
  gap: 0;
  overflow: hidden;
}

/* liタグ */
.scroll-list li {
  opacity: 0.1;
  font-size: 4rem;
  white-space: nowrap;
  margin: 0;
  letter-spacing: 0.1em;
  animation: marquee-left 30s linear infinite;
}

/* アニメーション */
@keyframes marquee-left {
  100% {
    transform: translateX(-100%);
  }
}

/********* Message Section *********/
.message-section {
  padding: 7em 0;
  background-image: url("https://sample-company.fanelab.com/wp-content/themes/Lightning-child/images/massage.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* 背景区切り */
.message-section::before {
  content: "";
  width: 100%;
  height: 120px;
  background: #e2edf2;
  position: absolute;
  bottom: -1px;
  clip-path: polygon(0% 100%, 100% 100%, 100% 40%);
}

/* パララックス背景用のdiv要素 */
.parallax-bg {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: url("https://sample-company.fanelab.com/wp-content/themes/Lightning-child/images/massage.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  will-change: transform;
}

.message-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* パララックス効果用のコンテンツ */
.message-content.parallax-content {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.section-title {
  font-size: 3em;
  font-weight: 300;
  color: #296292;
  margin-bottom: 10px;
  border-top: none;
}

.section-subtitle {
  color: #666;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.section-subtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #296292;
}

.message-heading {
  font-size: 1.3em;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.4;
}

.highlight-blue {
  color: #2196f3;
}

.highlight-yellow {
  background: linear-gradient(transparent 60%, #ffeb3b 60%);
  font-weight: 600;
}

.message-description {
  font-size: 0.8em;
  color: #666;
  margin-bottom: 30px;
}

.message-body {
  padding-top: 2em;
}

.message-body p {
  margin-bottom: 20px;
  line-height: 2;
  color: #555;
}

/********* Business Overview Section *********/
.business-overview-section {
  padding: 1em 0 10em;
  position: relative;
  min-height: 200vh;
  background: #e2edf2;
}

/* 背景区切り */
.business-overview-section::before {
  content: "";
  width: 100%;
  height: 120px;
  background: #e2edf2;
  position: absolute;
  bottom: -118px;
  clip-path: polygon(0% 0%, 100% 100%, 100% 0%);
  z-index: 2;
}

/* Stacking Cards */
.stacking-cards {
  position: sticky;
  width: 100%;
  margin: 0 auto;
  height: auto;
}

.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 3.25rem !important;
  box-shadow: 0 20px 40px #6c757d !important;
  transform-origin: center bottom;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: none !important;
}

/* Card Background Colors */
.card:nth-child(1) {
  background: linear-gradient(135deg, #487091f0 0%, #819eb7 100%);
  z-index: 3;
}

.card:nth-child(2) {
  background: linear-gradient(135deg, #67727c 0%, #959fa8 100%);
  z-index: 2;
  transform: translateY(20px) scale(0.95);
  opacity: 0.8;
}

.card:nth-child(3) {
  background: linear-gradient(135deg, #296292 0%, #9aa2da 100%);
  z-index: 1;
  transform: translateY(40px) scale(0.9);
  opacity: 0.5;
}

/* Card Content */
.card-content {
  padding: 4em 2em 2.5em;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.card-text {
  flex: 1;
  text-align: left;
  color: #fff;
}

.card-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2em;
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.button-card a {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 225px;
  padding: 10px 50px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 500;
}

.button-card a:before,
.button-card a:after {
  content: "";
  position: absolute;
  display: block;
  top: 50%;
}
.button-card a:before {
  width: 0.5rem;
  height: 0.5rem;
  left: 1.1rem;
  border-top: solid 2px #343a40;
  border-right: solid 2px #343a40;
  z-index: 2;
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.3s;
}
.button-card a:after {
  left: 0;
  background: #fac46c;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 4rem;
  transform: translateY(-50%);
  transition: all 0.5s;
}
.button-card a span {
  position: relative;
  transition: all 0.3s;
  z-index: 3;
  color: #fff;
}

.button-card a:hover span {
  color: #343a40;
}

.button-card a:hover:after {
  right: 0;
  width: 100%;
}

.card-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: #fff;
  position: relative;
}

.card-title::before {
  content: attr(data-en);
  position: absolute;
  top: -30px;
  left: 0;
  transform: translateX(-8%);
  color: #fac46c;
  opacity: 0.3;
  font-size: 1.3em;
  font-family: serif, "arial black";
  font-style: italic;
}

.card-description {
  line-height: 2;
  margin-bottom: 30px;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-features li {
  font-size: 0.95em;
  position: relative;
  padding-left: 20px;
}

.card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: bold;
}

/********* About Section *********/
.about-section {
  padding: 100px 0 10em;
  background-image: url("https://sample-company.fanelab.com/wp-content/themes/Lightning-child/images/meeting.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgb(255 255 255),
    rgb(255 255 255 / 48%)
  );
  z-index: 1;
}

/* パララックス背景用のdiv要素 */
.parallax-bg-about {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: url("https://sample-company.fanelab.com/wp-content/themes/Lightning-child/images/meeting.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translateZ(0);
}

.about-section .recruit-container {
  position: relative;
  z-index: 2;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-description {
  margin-bottom: 40px;
}

.about-description p {
  margin-bottom: 10px;
  color: #555;
  line-height: 1.8;
}

.about-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 15px 20px;
}

.about-menu-item:hover {
  color: #2196f3;
  transform: translateX(10px);
  background: rgba(33, 150, 243, 0.05);
}

.about-menu-item h3 {
  font-size: 1.1rem;
  font-weight: 400;
}

.arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.about-menu-item:hover .arrow {
  transform: translateX(5px);
}

/********* Staff Interview Section *********/
.staff-interview-section {
  padding: 2em 0 10em; /* 下部パディングを増加 */
  background: #e2edf2;
  position: relative;
}

.staff-interview-section::before {
  content: "";
  width: 100%;
  height: 120px;
  background: #e2edf2;
  position: absolute;
  top: -119px;
  clip-path: polygon(0% 100%, 100% 100%, 100% 25%);
  z-index: 2;
}

.staff-interview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  min-height: clamp(300vh, 3.9vh * 100, 450vh); /* 画面サイズに応じて動的調整 */
}

.staff-text {
  position: sticky;
  top: 5em;
  padding-right: 40px;
  height: fit-content;
  z-index: 10;
  align-self: start;
  max-height: 80vh;
  overflow-y: auto;
}

.staff-text .section-subtitle {
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 30px;
}

.staff-description {
  margin-bottom: 40px;
}

.staff-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4b5563;
}

.staff-gallery {
  position: relative;
  height: clamp(300vh, 3.8vh * 100, 450vh); /* 画面サイズに応じて動的調整 */
  display: flex;
  flex-direction: column;
  padding-top: 3em;
  padding-bottom: 3em; /* 下部にパディングを追加 */
  gap: 70px;
}

.staff-member {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
  flex-shrink: 0;
}

.staff-member.active {
  opacity: 1;
  transform: translateY(0);
}

.staff-card {
  position: relative;
  width: 80%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.staff-image {
  width: 100%;
  height: 0;
  padding-bottom: 133.33%; /* 4:3 aspect ratio (4/3 * 100%) */
  position: relative;
  overflow: hidden;
}

/* Modern browsers with aspect-ratio support */
@supports (aspect-ratio: 1) {
  .staff-image {
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 3/4;
  }
}

.staff-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgb(30 64 175 / 4%) 70%,
    #296292 100%
  );
  z-index: 1;
}

.staff-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.staff-image:hover img {
  transform: scale(1.05);
}

.staff-name-en {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: 2px;
  color: white;
  z-index: 2;
  margin: 0;
}

.staff-info {
  padding: 20px;
}

.staff-role {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 500;
}

.staff-name-jp {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.staff-quote {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #296292bf;
  color: white;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 3;
}

.staff-image:hover .staff-quote {
  opacity: 1;
  transform: translateY(0);
}

.staff-quote p {
  font-size: 1.2em;
  line-height: 2;
  margin: 0;
  letter-spacing: 0.05em;
}

/* タブレット対応 */
@media (max-width: 1024px) and (min-width: 769px) {
  .staff-interview-content {
    min-height: clamp(250vh, 3.5vh * 100, 400vh);
  }

  .staff-gallery {
    height: clamp(250vh, 3.5vh * 100, 400vh);
  }
}

/* MacBook Pro 13インチ専用対応 */
@media (min-width: 1025px) and (max-width: 1440px) and (min-height: 800px) and (max-height: 900px) {
  .staff-interview-content {
    min-height: 390vh; /* 13インチMacBook Pro専用の高さ */
  }

  .staff-gallery {
    height: 380vh; /* 13インチMacBook Pro専用の高さ */
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  .staff-interview-content {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  .staff-text {
    position: static;
    padding-right: 0;
  }

  .staff-gallery {
    height: auto; /* モバイルでは自動高さ */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 0;
  }

  .staff-member {
    position: static;
    height: auto;
    margin-bottom: 0;
    opacity: 1;
    transform: none;
    justify-content: flex-start;
  }

  .staff-card {
    width: 90%;
  }

  .staff-name-en {
    font-size: 1rem;
    bottom: 15px;
    left: 15px;
  }

  .staff-info {
    padding: 15px;
  }

  .staff-role {
    font-size: 0.8rem;
  }

  .staff-name-jp {
    font-size: 1rem;
  }

  .staff-quote p {
    font-size: 0.8em;
  }
}

/* Recruitment List Section */
.recruitment-list-section {
  padding: 100px 0 1em;
  background: #e2edf2;
}

.recruitment-list-section .section-header {
  margin-bottom: 60px;
}

.section-ex {
  font-size: 1.1rem;
  color: #6b7280;
}

.recruitment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4em 1em;
}

.recruitment-card {
  position: relative;
}

.card-details {
  padding: 20px 20px 10px;
}

.card-image-job {
  position: relative;
  width: 100%;
  height: 65%;
  overflow: hidden;
  cursor: pointer;
}

.card-image-job::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(255 255 255 / 35%);
  z-index: 1;
}

.card-image-job img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-image-job:hover img {
  transform: scale(1.1);
}

.job-title {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translateX(-50%);
  color: #f8f9fa;
  font-size: 1.3em;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 4px #343a40;
  z-index: 2;
  width: 100%;
}

.view-details-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #eee;
  align-items: center;
  margin: 0 auto;
  font-weight: 500;
  z-index: 2;
  display: inline-block;
  width: 60%;
  text-align: center;
  text-decoration: none;
  padding: 0.3em;
  outline: none;
  color: #1b85fb;
  border: 1px solid #1b85fb;
  transition: all 0.3s;
}

.view-details-btn a:hover {
  color: #fff;
  border: 1px solid #1b85fb;
  background-color: #1b85fb;
}

.card-details p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #4b5563;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.tag {
  background: #e3f2fd;
  color: #296292;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.location {
  display: flex;
  align-items: center;
}

.location::before {
  content: "📍";
  margin-right: 5px;
}

.type {
  background: rgba(41, 98, 146, 0.8);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-weight: 500;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .recruitment-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .card-overlay {
    padding: 20px;
  }

  .card-content h3 {
    font-size: 1.3rem;
  }

  .card-content p {
    font-size: 0.9rem;
  }

  .view-details-btn {
    font-size: 0.8rem;
    padding: 6px 16px;
    bottom: 15px;
  }

  .card-details p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .recruitment-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* GSAP Entry Section */
.entry-wrapper {
  width: 100%;
  height: 300vh;
  background: #e2edf2;
}

.entry-container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
}

.entry-mask {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.entry-mask::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #21252952;
  z-index: 1;
}

.entry-img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

/* Entry Content */
.entry-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  width: 80%;
}

.entry-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  border-top: none !important;
}

.entry-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.entry-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.entry-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.entry-btn-primary,
.entry-btn-secondary {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 180px;
  text-align: center;
}

.entry-btn-primary {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
}

.entry-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.entry-btn-secondary {
  background: linear-gradient(135deg, #ffc107 0%, #f64006 100%);
  color: white;
}

.entry-btn-secondary:hover {
  background: white;
  color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Show content when animation is complete */
.entry-content.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive Design for Entry Section */
@media (max-width: 768px) {
  .entry-title {
    font-size: 2.5rem;
  }

  .entry-subtitle {
    font-size: 1.2rem;
  }

  .entry-description {
    padding: 0 20px;
  }

  .entry-buttons {
    flex-direction: column;
    align-items: center;
  }

  .entry-btn-primary,
  .entry-btn-secondary {
    width: 100%;
    max-width: 280px;
  }
}

/* Footer */
.site-footer {
  background-color: #e2edf2 !important;
  color: #343a40;
  padding: 0;
  margin-top: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 40px;
  padding: 60px 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* 左側: ブランド情報 */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  width: 200px;
}

.footer-logo img {
  width: 100%;
}

/* 中央: ビジネス情報 */
.footer-business {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #343a40;
  margin: 0;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  color: #343a40;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: white;
}

/* 右側: 採用情報 */
.footer-recruit {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ページトップボタン */
.page-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: absolute;
  right: 40px;
  top: 60px;
}

.page-top-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  color: #343a40;
  letter-spacing: 2px;
}

.page-top-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #343a40;
  border-radius: 50%;
  background: transparent;
  color: #343a40;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.page-top-btn:hover {
  background: white;
  color: #2c3e50;
  transform: translateY(-2px);
}

.arrow-up {
  font-size: 16px;
  font-weight: bold;
}

/* フッター下部 */
.footer-bottom {
  background: #296292;
  padding: 30px 5em;
  border-top: 1px solid #296292;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copyright {
  color: #bdc3c7;
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 30px;
}

.footer-legal a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: white;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .page-top {
    position: static;
    order: -1;
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 20px;
  }

  .page-top-text {
    writing-mode: horizontal-tb;
    text-orientation: initial;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 1em 2em;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-legal {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .footer-bottom {
    padding: 30px 2em;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    top: 0;
    left: 10px;
    right: 10px;
  }

  .header-content {
    gap: 10px;
  }

  .logo-container {
    width: 175px;
  }

  /* モバイル時はナビを非表示、ハンバーガーボタンを表示 */
  .nav-container {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
  }

  .mobile-menu-btn {
    display: flex;
    justify-content: center;
  }

  /* モバイルメニューの初期状態 */
  .nav-container.active {
    display: flex !important;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-title-main {
    font-size: 2.8rem;
  }

  .hero-title-sub {
    font-size: 2rem;
  }

  .message-content,
  .about-content {
    grid-template-columns: 2fr 1fr;
    gap: 40px;
  }

  .section-title {
    font-size: 2em;
  }

  .entry-buttons {
    flex-direction: column;
    align-items: center;
  }

  .entry-btn-large {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /********* Business Overview Section - Mobile *********/
  .business-overview-section .section-title {
    font-size: 2.5em;
  }

  .card-content {
    flex-direction: column;
    gap: 20px;
  }

  .card-text {
    order: 1;
  }

  .card-image {
    order: 2;
  }

  .card-title {
    font-size: 1.5em;
  }

  .card-description {
    font-size: 0.9em;
  }
}

/* PC表示時のナビゲーション */
@media (min-width: 769px) {
  .nav-container {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-container .nav {
    flex-direction: row;
  }

  .nav-container .nav-link {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .nav-container .entry-btn {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-title-bg {
    font-size: 3rem;
  }

  .hero-title-main {
    font-size: 2rem;
  }

  .hero-title-sub {
    font-size: 1.5rem;
  }

  .message-section,
  .about-section {
    padding: 60px 0;
  }

  .logo-bg {
    padding: 8px 12px;
  }

  .logo-main {
    font-size: 14px;
  }

  .logo-sub {
    font-size: 8px;
  }

  .message-content,
  .about-content {
    grid-template-columns: 1fr;
    padding-right: 2em;
  }
}
