/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: white;
}

a {
  text-decoration: none;
}

.p_tb120-80{
  padding-top: clamp(80px, calc(80px + 2.59vw), 120px);
  padding-bottom: clamp(80px, calc(80px + 2.59vw), 120px);
}

/* CSS Variables */
:root {
  --primary-blue: #004f9c;
  --light-blue: #0769c9;
  --gradient-blue: linear-gradient(294deg, rgba(0,98,199,1) 0%, rgba(109,211,239,1) 100%);
  --overlay-gradient: linear-gradient(284.12deg, rgba(26, 201, 215, 0.83) -13.21%, rgba(71, 169, 251, 0.83) 46.82%, rgba(25, 98, 224, 0.83) 96.82%);
  --hero-overlay: linear-gradient(180deg, rgba(244,250,255,0.58) 0%, rgba(5,117,158,0.49) 91%, rgba(0,73,119,0.31) 100%);
  --card-overlay: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(78,187,255,0.2) 100%);
  --section-padding: 120px;
  --container-padding: 340px;
}

/* 共通 */
@media (min-width: 769px) {
.sp-only {
display: none;
}
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
}

.hero-background picture img{
  width: 100%;
  margin-top: 129px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 32px 64px;
  z-index: 10;
  background-color: #fff;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4.17vw, 80px);
  position: relative;
}

.logo {
  max-width: 120px;
  height: 44px;
  object-fit: cover;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}

.nav-menu a {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-menu:not(.active) a:hover {
  color: var(--primary-blue);
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 45px;
  border-radius: 60px;
  border: none;
  background: var(--overlay-gradient);
  background-size: cover;
  background-position: 50% 50%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
}

.contact-btn span {
  font-family: 'Noto Sans JP', Helvetica;
  font-weight: 700;
  color: white;
  font-size: 15px;
  white-space: nowrap;
}

.contact-icon {
  width: 25px;
  height: 25px;
  object-fit: cover;
}

/* Business Section */
.business-section {
  width: 95%;
  max-width: 1420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 60px);
}

.card-title {
  font-family: 'Noto Sans JP', Helvetica;
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 20px);
  color: #333;
  line-height: 25px;
  transition: color 0.3s ease;
}

.business-card a:hover .card-title {
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

.section-header {
  position: relative;
}

.section-subtitle {
  font-family: 'Noto Sans JP', Helvetica;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary-blue);
  line-height: 25px;
}

.section-title {
  margin-top: 9px;
  font-family: 'Poppins', Helvetica;
  font-weight: 700;
  font-size: 70px;
  line-height: 70px;
  letter-spacing: 2.8px;
  white-space: nowrap;
}

.gradient-text {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  width: fit-content;
}

.business-cards {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
}

.business-card {
  width: calc((100% - 56px) / 3);
}

.card-image {    
  overflow: hidden;    
  border-radius: 20px;      
  display: block;
  position: relative;
}

.card-image img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;  
  display: block;
}

.card-image img {
  width: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  transition: transform 0.4s ease;  
  position: relative;
}

.card-image:hover img {
  transform: scale(1.1);    
}

.card-content {
  margin-top: 20px;
}

.card-header {
  display: flex;
  align-items: start;
  gap: 10px;
}

.card-icon {
  height: 26px;
}

.card-description {
  margin-top: 20px;
  margin-left: 5px;
  font-family: 'Noto Sans JP', Helvetica;
  font-weight: 400;
  color: #333;
  font-size: 16px;
  letter-spacing: 0.64px;
  line-height: 25.6px;
}

.business-card {
  width: calc((100% - 56px) / 3);
}

.card-image img {
  width: 100%;
  height: auto;
  border-radius: clamp(12px, 1.5vw, 20px);
  display: block;
  position: relative;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: clamp(12px, 1.5vw, 20px);
  background: var(--card-overlay);
  mix-blend-mode: multiply;
}

.card-content {
  margin-top: clamp(12px, 1.5vw, 20px);
}

.card-header {
  display: flex;
  align-items: start;
  gap: clamp(6px, 0.8vw, 10px);
}

.card-icon {
  height: clamp(18px, 2vw, 26px);
  width: auto;
}

.card-description {
  margin-top: clamp(12px, 1.5vw, 20px);
  margin-left: clamp(4px, 0.5vw, 5px);
  font-family: 'Noto Sans JP', Helvetica;
  font-weight: 400;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: #333;
}


/* Company/Recruit Section */
.company-recruit-section {
  display: flex;
  width: 100%;
}

.company-card,
.recruit-card {
  width: 50%;
  aspect-ratio: 48 / 25;
  position: relative;
}

.company-card a,
.recruit-card a {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 5;
  transition: 0.4s ease;
}

.company-card a:hover,
.recruit-card a:hover {
  transition: 0.4s ease;
  background: rgb(25 163 224 / 40%);
}

.company-content,
.recruit-content {
  position: absolute;
  top: 50%;
  left: 10.42%;
  transform: translateY(-50%);
  z-index: 2;
}


.company-subtitle,
.recruit-subtitle {
  font-family: 'Noto Sans JP', Helvetica;
  font-weight: 700;
  font-size: clamp(17px, 1.5vw, 20px);
  color: white;
  line-height: 25px;
  white-space: nowrap;
}

.company-title,
.recruit-title {
  margin-top: 9px;
  font-family: 'Poppins', Helvetica;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 70px);
  color: white;
  line-height: 70px;
  letter-spacing: 2.8px;
  white-space: nowrap;
}

/* News Section */
.news-section {
  max-width: 1420px;
  margin: 0 auto;
}

.news-container {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 60px);
  width: 95%;
  max-width: 1240px;
  margin: 0 auto;
}

.news-header {
  position: relative;
  height: 104px;
  margin-bottom: 38px;
}

.news-subtitle {
  font-weight: 700;
  font-size: 20px;
  color: var(--primary-blue);
}

.news-subtitle::before {
  content: "・";
  color: var(--light-blue);
}

.news-title {
  position: absolute;
  top: 34px;
  left: 0;
  font-family: 'Poppins', Helvetica;
  font-weight: 700;
  font-size: 70px;
  line-height: 70px;
  letter-spacing: 2.8px;
  white-space: nowrap;
}

.news-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.news-separator {
  width: 100%;
  height: 1px;
  background-color: #cccccc;
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 30px 10px;
}

.news-date {
  font-family: 'Noto Sans JP', Helvetica;
  font-weight: 400;
  color: #333;
  font-size: 16px;
  letter-spacing: 0.64px;
  line-height: 200%;
  white-space: nowrap;
}

.news-text {
  font-family: 'Noto Sans JP', Helvetica;
  font-weight: 400;
  color: #333;
  font-size: 16px;
  letter-spacing: 0.64px;
  line-height: 200%;
}

.news-text a {
  color: #333;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.news-text a:hover {
  color: var(--primary-blue);
}

.news-nav-btn {
  position: absolute;
  width: 50px;
  height: 50px;
  bottom: 19px;
  right: 79px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.news-nav-btn:hover {
  transform: scale(1.1);
}

/* Footer Section */
.footer-section {
  width: 100%;
}

.footer-background {
  width: 100%;
  background: var(--overlay-gradient);
}

.footer-content {
  width: 95%;
  max-width: 1420px;
  top: 120px;
  margin: 0 auto;
  z-index: 2;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 30px;
}

.footer-logo {
  max-width: 120px;
  object-fit: cover;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-nav a {
  font-family: 'Noto Sans JP', Helvetica;
  font-weight: 700;
  color: white;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: text-decoration 0.3s ease;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-certifications {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: clamp(15px, 1.5625vw, 30px);
}

.footer-certifications img{
  min-width: 60px;
}

.footer-certifications a img{
  display: block;
  min-width: 60px;
  width: 100%;
}

.cert-badge {
  width: 104.63px;
  height: 104.63px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cert-badge img {
  max-width: 94px;
  max-height: 94px;
  object-fit: contain;
}

/* Responsive Design */
@media (max-width: 1200px) {
  :root {
    --container-padding: 40px;
  }
  
  .business-cards {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-content {
    width: 90%;
    max-width: 1420px;
  }
}

@media (max-width: 800px) {
  .business-card {
      width: calc((100% - 28px) / 2);
  }

  .business-cards {
      justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .business-card{
    width: 100%;
  }
}


@media (max-width: 768px) {
  .logo{
    width: 100px;
    object-fit: contain;
  }

  .contact-btn{
    display: none;
  }

  .nav-container{
    display: block;
  }

  .navbar {
    padding: 12px 20px;
  }
  
  .nav-left {
    gap: 20px;
    justify-content: space-between;
  }

  .hero-background picture img{
    margin-top: 74.59px;
  }
  
  .company-recruit-section {
    flex-direction: column;
  }
  
  .company-card,
  .recruit-card {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .company-content,
  .recruit-content {
    position: absolute;
    top: 50%;
    left:50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }
  
  .section-title,
  .news-title {
    font-size: 50px;
    line-height: 50px;
  }
  
  .company-title,
  .recruit-title {
    font-size: 50px;
    line-height: 50px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .footer-nav{
    flex-direction: column;
    gap: 1em;
  }
  
  .footer-content {
    top: 32px;
  }
  
  .footer-certifications {
    position: static;
    justify-content: center;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .business-card {
    /* max-width: 393px; */
  }

  .card-image img {
    aspect-ratio: 4 / 3;
}
  
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 1em 10px;
  }

  
  .cert-badge {
    width: 80px;
    height: 80px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hover effects */
.business-card {
  transition: transform 0.3s ease;
}

.business-card:hover {
  transform: translateY(-5px);
}

.company-card,
.recruit-card {
  cursor: pointer;
  transition: 0.4s ease;
}

/* 追加CSS */
.company-card,
.recruit-card {
  position: relative;
  background-image: url(../img/company_img001.jpg);
  background-size: cover;
  background-position: center;
}

.recruit-card {
  background-image: url(../img/recruit_img001.jpg);
}

@media (max-width: 600px) {
  .business-cards {
    flex-direction: column;
    align-items: center;
  }
  }

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block !important;
    background: none;
    border: none;
    font-size: 30px;
    color: #333;
    cursor: pointer;
  }

  .nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%; /* または任意 */
  max-width: 300px;
  height: 100vh;
  background:  var( --primary-blue);
  z-index: 12;
  transform: translateX(100%); /* 初期状態で画面外へ */
  transition: transform 0.3s ease;
  flex-direction: column;
  padding: 60px;
}

.nav-menu li{
  padding: 0.5em 1em;
}

.nav-menu li a{
  color: #fff;
  transition: 0.4s ease;
}

.nav-menu li:hover a {
  border-bottom: 1px solid #fff;
  transition: 0.4s ease;
}

.nav-menu.active {
  transform: translateX(0); /* 画面内にスライドイン */
}
}

/* PCでは非表示、スマホ時に表示 */
.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size:30px;
    color: #333;
    cursor: pointer;
    z-index: 13;
  }
}


/* topへ戻る */
.js-backToTop {
  position: fixed;
  bottom: clamp(10px, 3vw, 30px);
  right: clamp(10px, 3vw, 30px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-blue);
  color: #fff;
  border: 1px solid;
  font-weight: bold;
  border: #0769c9;
  cursor: pointer;
}

.js-backToTop.is-active {
  opacity: 1;
  visibility: visible;
}

