/* Basic Reset & Typography */
:root {
  --primary-font: 'Outfit', sans-serif;
  --japanese-font: 'Noto Sans JP', sans-serif;
}

body {
  font-family: var(--japanese-font);
  overflow-x: hidden;
}

.bg-white {
  opacity: 0.8;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
  /* Height of your sticky header */
}

.font-outfit {
  font-family: var(--primary-font);
}

.font-noto {
  font-family: var(--japanese-font);
}

/* Button Inverted Animation */
.btn-inverted {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-color: #fff !important;
  color: #322E29 !important;
  border: none !important;
}

.btn-inverted::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #322E29;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-inverted:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.btn-inverted:hover {
  color: #fff !important;
}

.btn-fixed-width {
  min-width: 200px;
}

.btn-dark-inverted {
  background-color: #322E29 !important;
  color: #fff !important;
  border: none !important;
}

.btn-dark-inverted::before {
  background: #fff !important;
}

.btn-dark-inverted:hover {
  color: #322E29 !important;
}

/* Base state: white arrow */
.btn-inverted .btn-arrow-white {
  display: block;
}

.btn-inverted .btn-arrow-black {
  display: none;
}

/* Hover state for inverted buttons: show black arrow */
.btn-inverted:hover .btn-arrow-white {
  display: none;
}

.btn-inverted:hover .btn-arrow-black {
  display: block;
}

/* Arrow SVG styling inside buttons */
.btn-inverted .btn-arrow {
  width: 8px;
  height: auto;
  transition: transform 0.3s ease;
  filter: brightness(0) saturate(100%) invert(15%) sepia(5%) saturate(735%) rotate(341deg) brightness(97%) contrast(88%);
  /* #322E29 */
}

.btn-inverted:hover .btn-arrow {
  transform: translateX(4px);
  filter: brightness(0) invert(1);
  /* white */
}

/* Removed Custom Scroll Animation CSS, GSAP handles this now */

/* Large Background Text for About Section */
.about-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15vw;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

/* Service Card Hover */
.service-card {
  transition: transform 0.5s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card img {
  transition: opacity 0.5s ease;
}

.service-card:hover img {
  opacity: 1 !important;
}

/* Split Section Images Hover */
.split-card .split-img {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.split-card:hover .split-img {
  transform: scale(1.05);
  opacity: 0.7 !important;
}

/* Splide custom styling */
.splide__pagination__page.is-active {
  background: #000;
}

/* Custom Nav Menu */
.custom-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-nav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  height: 14px;
  width: 1px;
  background-color: #ddd;
}

.custom-nav-link {
  font-family: var(--primary-font);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: #111 !important;
  transition: opacity 0.3s ease;
}

.custom-nav-link:hover {
  opacity: 0.7;
}

/* Footer Section Styles */
.footer-logo {
  opacity: 0.25;
}

.footer-link-label {
  font-size: 18px;
  font-weight: 700;
}

.footer-link-sub {
  font-size: 14px;
  margin-left: 0.25rem;
}

.footer-chevron {
  height: 12px;
  width: auto;
}

/* About Us Page Specifics */
.text-yellow {
  color: #ffc202 !important;
}

.about-title-dot {
  color: #fff;
  font-size: 0.6em;
  vertical-align: middle;
}

.hero-content-block {
  position: relative;
  padding-left: 2.5rem;
}

.hero-content-block .about-title-dot {
  position: absolute;
  left: 0;
  top: 0.8rem;
}

.about-hero-title {
  letter-spacing: 1px;
}

.bg-section-dark {
  background-color: #322E29 !important;
}

.mission-main-title,
.vision-main-title {
  letter-spacing: 2px;
  font-weight: 300 !important;
  line-height: 1;
}

.mission-kanji,
.vision-kanji {
  position: absolute;
  top: 0;
  right: -35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.mission-kanji span,
.vision-kanji span {
  font-size: 1.2rem;
  color: #ffc202;
  font-weight: 500;
  line-height: 1;
}

.mission-kanji span:first-child,
.vision-kanji span:first-child {
  margin-top: 0.2rem;
}

.mission-kanji span:last-child,
.vision-kanji span:last-child {
  margin-bottom: 0.1rem;
}

.vh-70 {
  height: 70vh;
}

.max-width-500 {
  max-width: 500px;
}

.leading-loose {
  line-height: 2.2;
}

.z-index-1 {
  z-index: 1;
}

.z-index-2 {
  z-index: 2;
}

.about-hero {
  position: relative;
}

.work-with-us img {
  filter: brightness(0.6);
}

/* .about-us-page section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
} */

.about-us-page h2 {
  letter-spacing: 2px;
}

.work-with-us .btn-warning {
  background-color: #ffc107;
  border: none;
  transition: all 0.3s ease;
}

.work-with-us .btn-warning:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

@media (max-width: 991.98px) {
  .vh-70 {
    height: 400px;
  }
}

.work-with-us .btn-join.btn-inverted {
  background-color: #ffc107 !important;
  color: #000 !important;
}

.btn-join .btn-arrow-black {
  display: none !important;
}

.btn-join .btn-arrow-white {
  display: inline-block !important;
}

.btn-join:hover .btn-arrow-black {
  display: inline-block !important;
}

.btn-join:hover .btn-arrow-white {
  display: none !important;
}

/* Service Page Specifics */
.service-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.service-hero-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.1;
  letter-spacing: 2px;
}

.service-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  opacity: 0.9;
}

.service-block {
  padding: 12rem 0;
}

.service-block:first-of-type {
  padding-top: 5rem;
}

.text-yellow-custom {
  color: #ffc202 !important;
}

.service-item-number {
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.service-item-title {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.service-item-description {
  color: #a0a09a;
  line-height: 2.2;
  margin-bottom: 4rem;
  font-size: 1rem;
  max-width: 500px;
}

.service-image-slanted-right {
  /* clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%); */
  height: 100%;
  min-height: 424px;
}

.service-image-slanted-left {
  /* clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 0% 100%); */
  height: 100%;
  min-height: 424px;
}

.btn-service {
  background-color: #fff;
  color: #322e29;
  border: none;
  font-weight: 500;
  padding: 1.2rem 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 320px;
  transition: all 0.3s ease;
  font-size: 1rem;
  border-radius: 0;
}

.btn-service:hover {
  background-color: #ffc202;
  color: #000;
  transform: translateY(-3px);
}

.btn-service-inverted {
  background-color: #ffc202;
  color: #000;
}

.btn-service-inverted:hover {
  background-color: #fff;
  color: #322e29;
}

/* Full Width Service Section */
.section-padding-v {
  padding-top: 10rem !important;
  padding-bottom: 10rem !important;
  border-bottom: 1px solid #5D5851;
}

.service-section-fullwidth .text-content-col {
  min-height: 424px;
}

.service-section-fullwidth .image-content-col {
  min-height: 424px;
}

.service-item-number-styled {
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.service-item-title-fluid {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 2px;
}

.service-item-description-styled {
  font-size: 1rem;
  line-height: 2;
  max-width: 500px;
}

.btn-service-wide {
  min-width: 320px;
}

.btn-arrow-icon {
  width: 8px;
}

.work-with-us-title-fluid {
  font-size: clamp(4rem, 8vw, 8.5rem);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: 2px;
}

.service-item-content {
  padding: 0;
}

@media (max-width: 991.98px) {
  .service-block {
    padding: 6rem 0;
  }

  .service-image-slanted-right,
  .service-image-slanted-left {
    clip-path: none;
    min-height: 450px;
  }
}

/* Recruit Page Specifics */
.recruit-page {
  background-color: #ffc202;
  color: #000;
}

.recruit-hero-box {
  background-color: #ffc202;
  padding: 3rem 4rem;
  position: absolute;
  bottom: 0px;
  left: 0;
  z-index: 5;
  display: inline-block;
}

.recruit-hero-dot {
  display: inline-block;
  vertical-align: middle;
  margin-right: 15px;
  font-size: 1.5rem;
}

.recruit-hero-box h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  display: inline-block;
  vertical-align: middle;
}

.recruit-hero-box h1 span {
  font-size: 1.5rem;
  margin: 0 5px;
}

.recruit-page-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.drop-cap-block {
  display: flex;
  align-items: flex-end;
  margin-bottom: 3rem;
  position: relative;
}

.drop-cap-letter {
  font-size: 13rem;
  line-height: 0.8;
  font-weight: 700;
  margin-right: 1.5rem;
  font-family: var(--primary-font);
  color: #000;
}

.drop-cap-content-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.drop-cap-text {
  font-size: 8rem;
  font-weight: 400;
  font-family: var(--primary-font);
  padding-bottom: 0;
  line-height: 90px;
  color: #fff;
}

.drop-cap-subtitle-top {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  /* margin-bottom: 42px; */
  font-family: var(--japanese-font);
  position: absolute;
  top: 10px;
}

.recruit-info-paragraph {
  padding-left: 14.5rem;
  /* Aligns with the 'e' of ecruit */
  max-width: 100%;
}

.recruit-info-text {
  font-size: 1.15rem;
  line-height: 2.3;
  max-width: 850px;
}

.recruit-label-dark {
  background-color: #111;
  color: #fff;
  padding: 0.5rem 2.2rem;
  display: inline-block;
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.recruit-image-grid img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.recruit-detail-list {
  list-style: none;
  padding-left: 0;
}

.recruit-detail-list li {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
  padding-left: 1.2rem;
  position: relative;
}

.recruit-detail-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* News Page Specifics */
.news-page {
  background-color: #221f1b;
  /* Dark theme background */
  color: #fff;
  min-height: 100vh;
}

.news-grid-item {
  margin-bottom: 5rem;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-grid-item:hover {
  color: #ffc202;
}

.news-grid-item:hover .news-item-img {
  opacity: 0.8;
}

.news-item-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 2rem;
  width: 100%;
  transition: opacity 0.3s ease;
}

.news-item-date {
  font-size: 0.95rem;
  opacity: 0.6;
  margin-bottom: 1.2rem;
  display: block;
  font-family: var(--primary-font);
}

.news-item-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  font-family: var(--japanese-font);
}

.news-item-excerpt {
  font-size: 1rem;
  line-height: 2;
  opacity: 0.6;
  font-family: var(--japanese-font);
}

/* Pagination Styling (Prev/Next) */
.news-pagination {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--primary-font);
}

.news-pagination a {
  color: #fff !important;
  text-decoration: none;
  font-size: 1rem;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
  letter-spacing: 1px;
}

.news-pagination a:hover {
  opacity: 1;
  color: #ffc202 !important;
}

.news-pagination .prev-link,
.news-pagination .next-link {
  display: inline-block;
}

/* Single News Post Content Area */
.post-entry-content p {
  margin-bottom: 2rem;
  line-height: 2;
}

.post-entry-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
}

.post-entry-content blockquote {
  padding-left: 2rem;
  border-left: 4px solid #ffc202;
  font-style: italic;
  margin: 3rem 0;
}

.post-footer-nav .btn-warning {
  transition: all 0.4s ease;
}

.post-footer-nav .btn-warning:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Custom Hamburger Menu Animation */
.navbar-toggler:focus {
  box-shadow: none !important;
}

.hamburger-lines {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hamburger-lines .line {
  display: block !important;
  height: 2px !important;
  width: 100% !important;
  background: #000 !important;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

/* Transition to X */
.navbar-toggler[aria-expanded="true"] .line1 {
  transform: translateY(8px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .line2 {
  opacity: 0 !important;
  transform: scale(0);
}

.navbar-toggler[aria-expanded="true"] .line3 {
  transform: translateY(-8px) rotate(-45deg);
}

.splide__pagination {
  bottom: -30px;
}

/* 404 Page Specifics */
.page-404 {
  padding: 100px 0;
  text-align: center;
  background-color: #fff;
  color: #333;
}

.error-404-icon {
  width: 120px;
  margin-bottom: 30px;
}

.error-404-number {
  font-size: 15rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2rem;
  color: #222;
  letter-spacing: -5px;
}

.error-404-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #333;
}

.error-404-text {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: #666;
}

.btn-404-home {
  background-color: #e61a30;
  color: #fff;
  padding: 1rem 4rem;
  border-radius: 4px;
  font-weight: 700;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-404-home:hover {
  background-color: #b31425;
  color: #fff;
}

.btn-404-contact {
  background-color: transparent;
  color: #e61a30;
  padding: 1rem 4rem;
  border: 2px solid #e61a30;
  border-radius: 4px;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-404-contact:hover {
  background-color: #e61a30;
  color: #fff;
}

.breadcrumb-404 {
  margin-top: 5rem;
  font-size: 0.9rem;
}

.breadcrumb-404 a {
  color: #e61a30;
  text-decoration: none;
}

.breadcrumb-404 span {
  color: #999;
}

/* Company Profile Table */
.company-profile-section {
  background-color: #fcfcfc;
}

.company-table {
  border-top: 1px solid #eee;
  margin-bottom: 0;
}

.company-table th {
  background-color: #f9f9f9;
  width: 280px;
  font-weight: 700;
  color: #322e29;
  border-bottom: 1px solid #eee;
  padding: 2rem !important;
  vertical-align: middle;
}

.company-table td {
  background-color: #fff;
  color: #322e29;
  border-bottom: 1px solid #eee;
  padding: 2rem !important;
  vertical-align: middle;
  line-height: 2;
}

@media (max-width: 767.98px) {
  .company-table th {
    width: 100%;
    display: block;
    padding: 1.5rem 2rem !important;
    border-bottom: none;
  }

  .company-table td {
    display: block;
    padding: 0.5rem 2rem 2rem !important;
  }

  .company-table tr {
    border-bottom: 1px solid #eee;
  }
}

/* ---------------------------------
   Sanyo Style Integration
   --------------------------------- */
.c-main-visual {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.c-main-visual__wrapper {
  width: 100%;
  height: 100%;
}

.c-main-visual__video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.c-main-visual__video video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.c-main-visual__inner {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.c-main-visual__scroll {
  width: 3.9375rem;
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.c-main-visual__scroll-text {
  font-family: var(--primary-font, "Montserrat", sans-serif);
  font-weight: 800;
  font-size: .8125rem;
  line-height: 1;
  letter-spacing: .11em;
  color: #fff;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.scroll-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background-color: #fff;
  animation: scrollDown 2s cubic-bezier(1, 0, 0, 1) infinite;
}

@keyframes scrollDown {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  50.1% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.is-gradation {
  background: linear-gradient(180deg, rgba(102, 102, 102, 0) 0%, rgba(0, 0, 0, 0.8) 39%);
  background-blend-mode: multiply;
}

.c-top-lead {
  padding: 9.375rem 0 11.125rem;
}

@media (max-width: 991px) {
  .c-top-lead {
    padding: 6.875rem 0 3.5rem;
  }
}
