* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}


a:link,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}



header {
  color: white;
  position: relative;
  line-height: 1.5;
}

.header-top {
  background-color:#1E3A8A;
  display: flex;
  justify-content: space-between;
  align-items: center;
    flex-wrap: wrap;

}

.logo {
  height: 45px;
  width: 45px;
}
@media (max-width: 768px) {
  .logo {
  height: 35px;
  width: 35px
  }
}

.logo-name {
  font-size: 40px;
  font-weight: bold;
  font-family: 'Noto Serif JP';
  margin-right: auto; /* ← 左に押し付けるため */
  padding-bottom:10px;
}
@media (max-width: 768px) {
  .logo-name {
    font-size: 28px;
  }
}



.contact {
  font-size: 12px;
  text-align: left;
  flex: 1;
}
@media (max-width: 768px) {
  .contact{
    font-size:10px;
    padding-bottom:15px;
  }
}

.nav-menu {
  display: flex;
    flex-direction: row;
  gap: 20px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.main-visual {
  position: relative;
  width: 100%;   /* 画面幅の95% */
  height: 100vh;
  margin: 1px auto 0;
  overflow: hidden;
}

.main-image {
  width: 100%;   /* 画面幅の95% */
  height: 100vh;  /* 画面高さの95% */
  object-fit: cover; /* アスペクト比を維持しつつ切り抜き */
  display: block;
  margin: 1px auto 0;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 0;
  position: relative; /* z-indexを有効にするには position 指定が必要 */
}

.main-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(255, 255, 255);
  background-color: rgba(255, 255, 255, 0.3);
  font-size: 2.5rem;
  font-family: Noto Serif JP;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  display: inline-block;
}

.sp-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp-only {
    display: inline;
  }
}


.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;        /* ← ここを absolute → fixed に */
  margin-top: 60px;/* ヘッダーの下に   koko!*/
  padding-bottom: 50px;
  left: 0;
  font-family:'Noto Sans JP';
  width: 100%;
  background: #3B82F6;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  z-index: 1100;          /* ← 画像や他要素より前に */
}

.mobile-menu a {
  color: white;
  padding: 15px 0;
  text-decoration: none;
  border-top: 1px solid #ffffff33;
}

@media (max-width: 1130px) {
  .mobile-menu{
    margin-top:80px;
  }
}

@media (max-width: 769px) {
  .mobile-menu{
    margin-top:70px;
  }
}


.mobile-menu.active {
  max-height: 400px;
  opacity: 1;
  padding: 10px 0;
}

/* オーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

body.noscroll {
  overflow: hidden;
}

/* セクション */
section {
  padding: 60px 5%;
}

h2 {
  text-align: center;
    margin-top:50px;
  margin-bottom: 20px;
  font-size: 2rem;
  font-family:Noto Serif JP;
}
@media (max-width: 768px) {
  .h2{
    margin-top:30px;
    font-size:2rem;
  }
}
/* 採用情報の文字と下の波線 */
.recruit-fade-in p {
  font-size:2.5rem;
  text-align: center;
  font-family:'Noto serif JP';
  font-weight: bold;
}
@media (max-width: 768px) {
  .recruit-fade-in p{
    font-size:1.7rem;
  }

}

    .custom-wavy {
      position: relative;
      display: inline-block;
    }

    .custom-wavy::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 10px; /* 波の高さ */
      background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="8"><path d="M0 4 Q 5 0, 10 4 T 20 4 T 30 4 T 40 4" fill="transparent" stroke="%233B82F6" stroke-width="2"/></svg>') repeat-x;
      pointer-events: none;
    }
/*  */

.company-overview p,
.recruit p {
  text-align: center;
  margin-bottom: 20px;
  font-size:1.1rem;
  font-family:Noto Sans JP;
}
@media (max-width: 768px) {
.company-overview p,
.recruit p{
    font-size:1rem;
  }
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.box {
  display: block;
  background: rgb(255, 255, 255);
  text-decoration: none;
  color: inherit;
}

.fields {
  background: #f9f9f9;
}

.btn-link {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-detail {
  font-size: 1rem;
  text-decoration: none;
  background:#FACC15;
  font-weight: bold;
  border: 1px solid #FACC15;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
  transition: background-color 0.2s, color 0.2s;
  margin-bottom:3rem;
}

.btn-detail:hover {
  background-color: #FACC15;
  color: #fff;
}




.footer {
  display: flex;
    align-items: center;
  background-color: #1E3A8A;
  color: #fff;
    height: 500px;
    margin-top:3rem;
}

.footer-left, .footer-right {
  flex-wrap: wrap;
  flex: 1 1 50%;
  box-sizing: border-box;
  width:100%;
  min-width: 300px;
  height: 500px;
}

.footer-left {
  background-color: #1E3A8A;
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
    padding: 30px;
    gap: 10px;
}

.footer-title {
  margin-bottom: 0px;
  font-size: 1.9rem;
  font-family: 'Noto Serif JP';
}

.footer-logo {
  width: 35px;
  height: 35px;
  margin-top:5px;
}
@media (max-width: 768px) {
  .footer-logo{
  height: 35px;
  width: 35px;
  }
}

.footer-company-info p {
  margin: 1px 0;
  font-size: 0.7rem;
}

.footer-right {
  display :flex;
  justify-content:center;
  background-color: #1E3A8A;
  position: relative;
}

.footer-right iframe {
  width: 100%;
  height: 90%;
  border: 0;
  position: absolute; bottom: 0;
}

.access {
  align-items: center;
  color: #ffffff;
  font-size:1.5rem;
  font-family:'Noto Serif JP'
}
.access-text {
    display :flex;
  justify-content:center;
  padding-top:3px;
}

/* mapピン */
.dli-pin-fill {
  display: inline-block;
  vertical-align: middle;
  color: #db4646;
  line-height: 1;
  position: relative;
  width: 27px;
  height: 27px;
  background: currentColor;
  border: 0.1em solid currentColor;
  border-radius: 40% 60% 0% 100% / 40% 100% 0% 60%;
  box-sizing: content-box;
  transform: rotate(45deg);
}
/* mapピン */
.dli-pin-fill::before {
  content: '';
  position: absolute;
  top: 18%;
  left: 18%;
  width: 9px;
  height: 9px;
  background: #911010;
  border-radius: 50%;
  box-sizing: border-box;
}

.copy{
    position: absolute;
  bottom: 0px;
  left: 50%;
    transform: translateX(-50%);
  white-space: nowrap; /* テキストが折り返さないように */
  font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer {
        height: 750px;
    flex-direction: column-reverse;
  }


  .footer-left, .footer-right {
    width: 100%;
  }

}

/* スクロールアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 1130px) {
  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .contact {
    width: 100%;
    text-align: left;
    margin-top: 10px;
  }
}
/* ヘッダーの上部を固定表示にする */
.header-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: 1200;
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* 固定ヘッダーにより下の要素が隠れないよう余白を追加 */

/* ボックスの画像の大きさ変更 */
.box-image {
  width:100%;
  height: 170px; /* 好みに応じて調整可能 */
  object-fit: cover;
}

/* ボックス画像のスマホ対応（768px以下の画面） */
@media (max-width: 768px) {
  .box-image {
    height: 120px; /* スマホでは少し高さを低く */
  }
}



/* メインビジュアルのスライドショー用 */

.slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
@media (max-width: 768px){
  .slide-wrapper {
  position: relative;
  width: 45%;
  height: 100%;
  }
}

.slide-image {
  position: absolute;
  width: 120%;
  height: 100%;
  object-fit: fill; /* 縦横ぴったりにフィット */
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.9s ease-in-out;
}
@media (max-width: 768px){
  .slide-image {
  position: absolute;
  width: 350%;
  height: 100%;
  object-fit: fill; /* 縦横ぴったりにフィット */
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.8s ease-in-out;
  }
}

.slide-image.active {
  opacity: 1;
  animation: panAnimation 4.3s linear forwards;
}
@media screen and (max-width: 768px) {
  .slide-image.active {
    animation: panRight 7.3s linear forwards;
  }

  @keyframes panRight {
    0% {
      left: 0;
    }
    100% {
      left: calc(100% - 100vw); /* 画像の右端が画面の右端に来る */
    }
  }
}




@keyframes panAnimation {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-10%);
  }
}

/* メインテキスト表示 */
.main-text {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  text-align: center;
  text-shadow: 1px 1px 3px black;
}

@media (max-width: 768px) {
  .main-text {
    font-size: 1.4rem;
    padding: 0 1em;
  }
}










/* リンク先のメインビジュアル用 */

.short-main {
  padding: 0;
  margin-top: 10px;
}
@media (max-width: 411px) {
  .short-main {
  padding:0;
  margin-top:0px;
  }
}

.sub-text {
  font-size: 0.6em !important; /* 親要素の60%サイズに */

}

.image-container {
  position: relative;
  padding-top:0px;
  width: 100%;
  height: 40vh;
  overflow: hidden;

}

.image-container img {
  display: block;
  object-fit: cover;
  height: 100%;
  width: 100%;


}

.centered-text {
  position: absolute;
  top: calc(50% + 40px); /* ← padding-top: 80px の半分を補正 */
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(0, 0, 0);
  font-size:2rem;
  font-family:'Noto Serif JP';
  text-align: center;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 10px 20px;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  display: inline-block;
    line-height: 1; /* 1.0〜1.2くらいにすると余白が縮まる */
}

/* タブレット対応（768px以下） */
@media (max-width: 768px) {
  .centered-text {
    font-size: 1.7rem;
    padding: 8px 16px;
  }
}

/* スマホ対応（480px以下） */
@media (max-width: 480px) {
  .centered-text {
    font-size: 1.5rem;
    padding: 6px 12px;
  }
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}




/* topに戻るボタン） */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: #1e50a2;  /* ボタン背景：青 */
  color: #fff!important;                /* ★← 矢印の色を白に */
  border-radius: 50%;         /* 丸く */
  text-align: center;
  line-height: 48px;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

@media (max-width: 768px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    bottom: 20px;
    right: 15px;
  }
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #144182;
}


