/* -----------------------------------
    　           基本部分
   ----------------------------------- */
html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-top: 75px; /* 固定ヘッダー分の余白を確保 */
  font-family: "Noto Sans JP", sans-serif;
  overflow-x: hidden;
  font-display: swap;
}

body.recruit {
  main blockquote {
    white-space: pre;
    border-left: 8px #eeeeee solid;
  }
}

* {
  box-sizing: border-box;
}

/* 文字の折り返し設定 */
.container,
.main-content-wrapper {
  /* 欧米言語の単語を強制的に折り返す */
  overflow-wrap: break-word;
  /* 句読点などを気にせず、どこでも強制的に折り返す */
  word-break: break-all;
}

/* モバイル用スタイル */
@media (max-width: 767px) {
  body {
    padding-top: 70px; /* 固定ヘッダー分の余白を確保 */
  }
}

/* -----------------------------------
            基本部分ここまで
   ----------------------------------- */

/* -----------------------------------
            　  ヘッダー
   ----------------------------------- */
/* 社名のフォント */
.m-plus-1 {
  font-family: "M PLUS 1", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

/* ヘッダーの設定 */
.header-container {
  padding: 5px 40px;
  min-height: 75px;
  background-color: #fff;
  /* 影の追加 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#navbarNav ul {
  margin-bottom: 0;
}

#navbarNav li {
  padding: 0 1rem;
}

#navbarNav li.nav-item a {
  font-size: 1.1rem;
}

/* カスタムハンバーガーメニューの基本スタイル */
.hamburger-trigger {
  position: relative;
  width: 35px;
  height: 40px;
  cursor: pointer;
  box-sizing: border-box;
}

.navbar-toggler {
  border: none;
  box-shadow: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* 各線のスタイル */
.hamburger-trigger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #999;
  /* 角丸の半径を設定 */
  border-radius: 4px;
}

.hamburger-trigger,
.hamburger-trigger span {
  /* すべての変化に0.5秒のアニメーションを適用 */
  transition: all 0.5s;
}

/* ×印部分の調整 */
.hamburger-trigger span:nth-of-type(1) {
  top: 6px;
}
.hamburger-trigger span:nth-of-type(2) {
  top: 18px;
}
.hamburger-trigger span:nth-of-type(3) {
  bottom: 6px;
}

.hamburger-trigger.active span:nth-of-type(1) {
  transform: translateY(12px) rotate(45deg);
}

.hamburger-trigger.active span:nth-of-type(2) {
  opacity: 0;
}

.hamburger-trigger.active span:nth-of-type(3) {
  transform: translateY(-12px) rotate(-45deg);
}

@media (max-width: 991px) {
  .header-container {
    padding: 5px 20px;
  }

  #navbarNav li {
    padding: 0 5px;
  }

  #navbarNav li.nav-item a {
    font-size: 1rem;
  }
}

/* モバイル用スタイル（ヘッダー） */
@media (max-width: 767px) {
  .m-plus-1 {
    font-size: 1.1rem;
  }

  .header-container {
    padding: 10px 20px;
    min-height: 70px;
  }

  /* ハンバーガーメニューが開いているときのヘッダーのスタイル */
  .header-container.menu-open {
    padding: 10px 20px;
  }

  .hamburger-trigger.active {
    z-index: 1051;
  }

  /* メニューが開いたときのスタイル（モバイル版） */
  .collapse.show {
    display: block; /* Bootstrapの非表示スタイルを上書き */
  }
  .hamburger-trigger.active {
    z-index: 1051; /* ナビゲーションの上に表示 */
  }

  #navbarNav ul {
    margin: 0;
    padding: 0;
  }

  /* メニュー項目（非表示時の初期状態） */
  #navbarNav li {
    margin: 0;
    padding: 0.5em 0;
    text-align: center;
    /* アニメーションの共通設定をここに集約 */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
  }

  /* メニューが開いたとき（.showクラスが追加された状態） */
  #navbarNav.show li {
    opacity: 1;
    transform: translateY(0);
  }

  /* 各メニュー項目に時間差でアニメーションを適用 */
  #navbarNav.show li:nth-child(1) {
    transition-delay: 0s;
  }
  #navbarNav.show li:nth-child(2) {
    transition-delay: 0.1s;
  }
  #navbarNav.show li:nth-child(3) {
    transition-delay: 0.2s;
  }
  #navbarNav.show li:nth-child(4) {
    transition-delay: 0.3s;
  }
  #navbarNav.show li:nth-child(5) {
    transition-delay: 0.4s;
  }
}
/* -----------------------------------
            ヘッダーここまで
   ----------------------------------- */

/* -----------------------------------
        メインビジュアル（hero部分）
   ----------------------------------- */

/* キービジュアルのスタイル */
#main-visual, #rec-carouse {
  position: relative;
  width: 100%;
  height: 80vh;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* 背景画像とオーバーレイ */
.main-visual-bg, .rec-visual-bg01, .rec-visual-bg02, .rec-visual-bg03 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  z-index: -1;
}

.main-visual-bg {
  background-image: url("../images/mainvisual.jpg");
  background-position: top;
}

.rec-visual-bg01 {
  background-image: url('../images/recruit_hero01.jpg');
  background-position: center;
}

.rec-visual-bg02 {
  background-image: url('../images/recruit_hero02.jpg');
  background-position: center;
}

.rec-visual-bg03 {
  background-image: url('../images/recruit_hero03.jpg');
  background-position: top;
}

/* オーバーレイ */
.main-visual-bg::after, .rec-visual-bg01::after, .rec-visual-bg02::after, .rec-visual-bg03::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.rec-visual-bg01::after, .rec-visual-bg02::after, .rec-visual-bg03::after {
  z-index: 0; /* オーバーレイのz-index */
}

/* 題名のスタイル */
.main-visual-content h1 {
  font-size: 4rem;
  padding-bottom: 10px;
  line-height: 1.3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

.main-visual-content h2 {
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  padding-bottom: 10px;
  font-weight: 500;
}

/* アニメーションの初期状態 */
.main-visual-content h1,
.main-visual-content h2,
.main-visual-content p {
  font-family: "Klee One", sans-serif; /* Klee Oneフォントを適用 */
  opacity: 0;
  transition: opacity 1s ease-out;
}

/* アニメーション後の状態 */
/* JavaScriptでこのクラスを追加する */
.main-visual-content h1.is-visible,
.main-visual-content h2.is-visible,
.main-visual-content p.is-visible {
  opacity: 1;
}

/* モバイル用スタイル（メインビジュアル） */
@media (max-width: 767px) {
  #main-visual, #rec-carouse {
    height: 40vh;
  }
  .main-visual-content h1 {
    font-size: 2.5rem;
  }

  .main-visual-content h2 {
    font-size: 1.2rem;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  #main-visual, #rec-carouse {
    /* carousel-itemの高さを100%に設定 */
    height: 50vh;
  }
}

/* -----------------------------------
    メインビジュアル（hero部分）ここまで
   ----------------------------------- */

/* -----------------------------------
        　コンテンツ部分ここから
   ----------------------------------- */
/* 赤字部分 */
.text-red {
  color: #b64a0c;
}

/* スクロールして表示されるアニメーションの初期状態 */
.fade-in-section {
  opacity: 0;
  transform: translateY(50px); /* 50px下にずらして隠す */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* 0.6秒かけてアニメーション */
}

/* アニメーションの初期状態（左に隠す） */
.slide-in-from-left {
  opacity: 0;
  transform: translateX(-2000px); /* 左に1000pxずらして隠す */
  transition: opacity 0.6s ease-out, transform 1.5s cubic-bezier(0.1, 1, 0, 1); 
}

/* 各要素に時間差を適用 */
.col-md-4.fade-in-section:nth-child(1) {
  transition-delay: 0;
}
.col-md-4.fade-in-section:nth-child(2) {
  transition-delay: 0.2s;
}
.col-md-4.fade-in-section:nth-child(3) {
  transition-delay: 0.4s;
}
.col-md-4.fade-in-section:nth-child(4) {
  transition-delay: 0.6s;
}
.col-md-4.fade-in-section:nth-child(5) {
  transition-delay: 0.8s;
}
.col-md-4.fade-in-section:nth-child(6) {
  transition-delay: 1s;
}
.col-md-6.fade-in-section:nth-child(1) {
  transition-delay: 0;
}
.col-md-6.fade-in-section:nth-child(2) {
  transition-delay: 0.2s;
}

/* スクロールして表示されるアニメーション後の状態 */
.is-visible {
  opacity: 1;
  transform: translateY(0); /* 元の位置に戻る */
}

/* ナビゲーションのターゲットとなる各セクションに設定 */
#section-about,
#section-company,
#section-service,
#section-contact {
  /* ヘッダーの高さ分、上部に余白を設ける */
  scroll-margin-top: 100px; /* 例: ヘッダーの高さに合わせて調整 */
}

/* 背景の設定 */
#section-about {
  background: 
          /* 半透明のオーバーレイをグラデーションの上に重ねる */ linear-gradient(
      rgba(0, 0, 0, 0.1),
      rgba(0, 0, 0, 0.1)
    ),
    /* 右上から左下に流れるグラデーション */
      linear-gradient(to bottom left, #0656bd, #4ec1cd, #ebd8bd);
}

/* 社長メッセージ */
.pre-message {
  width: 95%;
  margin: auto;
  background: linear-gradient(rgba(0, 0, 0, 0.2)), linear-gradient( to bottom right, #4169e1, #4ec1cd, #d2b48c, transparent 150%); /* 背景のグラデーションと同じ方向のグラデーション */
  background-repeat: no-repeat; 
  /* 浮き出た感じを出すためのbox-shadow */
  box-shadow:  5px 5px 10px rgba(0, 0, 0, 0.5), /* 暗い影（右下） */ -5px -5px 10px rgba(255, 255, 255, 0.5); /* 明るい影（左上） */
}

/* 社長メッセージ モバイル版のスタイル */
@media (max-width: 991px) {
  .pre-img {
    padding-bottom: 3rem;
  }

  #section-about .col-md-6 {
    width: 100%;
  }
}

/* 会社情報、募集要項共通の部分有 */
table {
  /* セルのボーダーを結合させる */
  border-collapse: collapse;
  /* セル間のスペースを0にする */
  border-spacing: 0;
}

#section-company .table th,
#section-company .table td {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  vertical-align: middle;
}

/* 会社情報テーブルのホバー時の動き */
#section-company tr:hover th,
#section-company tr:hover td {
  background-color: transparent;
  transition: all 0.2s ease-in-out;
}

/* Google Mapsのレスポンシブ対応 */
.embed-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9比率 */
  height: 0;
  overflow: hidden;
}

.embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 会社情報 モバイル版のスタイル */
@media (max-width: 767px) {
  #section-company h3,
  #section-company .table {
    width: 90%;
    margin: auto;
  }

  /* テーブルのスタイルはBootstrapに任せる */
  #section-company .table tbody,
  #job-description .table tbody {
    display: block;
    width: 100%;
  }

  /* tr部分のコンテナとボーダー設定 */
  #section-company .table tbody tr {
    display: block;
    border-top: 1px solid #ddd;
  }

  #section-company .table tbody tr:last-child {
    border-bottom: 1px solid #ddd;
  }

  /* td, th部分のスタイル */
  #section-company .table th,
  #section-company .table td,
  #job-description .table th,
  #job-description .table td {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    padding: 0.5rem 0;
  }
}

/* Serviceの背景色を変更 */
#section-service {
  background-color: #5aafe1;
}

.Service-bg {
  background-color: #73c3f2;
}

/* 案件実例の高さを統一 */
.row.justify-content-center {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.h-95 {
  height: 95%;
}

/* Service 案件事例文字サイズ変更 */
@media (min-width: 767px) and (max-width: 1048px) {
  #section-service dt,
  #section-service dd,
  #section-service li {
    font-size: 14px;
  }
}

/* お問い合わせフォームの送信の色を変更 */
#contactForm a {
  background-color: #5aafe1;
  border: 2px solid #5aafe1;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  /* ホバー時のアニメーションを滑らかにする */
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* 送信のホバー時 */
#contactForm a:hover {
  /* 背景色を少し明るくして、ボタンを輝かせる */
  background-color: #fff;
  color: #5aafe1;
  border-color: #5aafe1;
}

/* お問い合わせページ(contact.html) */
#contact {
  /* main { background-image: linear-gradient(170deg, #0656bd 0%, #4ec1cd 20%, #ebd8bd 40%, transparent 60%);
        } */
  background: 
        /* 半透明のオーバーレイをグラデーションの上に重ねる */ linear-gradient(
      rgba(0, 0, 0, 0.1),
      rgba(0, 0, 0, 0.1)
    ),
    /* 左上から右下に流れるグラデーション */
      linear-gradient(
        to bottom right,
        #0656bd,
        #4ec1cd,
        #ebd8bd,
        transparent 100%
      );
  background-repeat: no-repeat;
}

/* 採用情報ページ(recruit.html) */

/* カルーセル */
#rec-carouse {
  /* カルーセルコンポーネントの高さ */
  height: auto;
}

.carousel-item {
  /* carousel-itemの高さを100%に設定 */
  height: 80vh;
}

.carousel-caption {
/* bottomプロパティを上書き */
  bottom: auto;
  /* キャッチフレーズを垂直方向の中央に配置 */
  top: 45%;
  transform: translateY(-45%);
}

/* カルーセルインジケーターのスタイル */
.carousel-indicators [data-bs-target] {
  width: 15px;
  height: 15px;
  margin: 0 10px;
  border-radius: 50%;
  background-color: #FFF;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.carousel-indicators .active {
  opacity: 1;
}

/* タブの配置 */
.nav-tabs {
 justify-content: space-between;
}

/* タブを3等分する */
.nav-tabs .nav-item {
 width: 33.3%;
 text-align: center;
}

/* タブの文字色 */
.nav-tabs .nav-link {
 border: none;
 background-color: transparent;
 color: #555;
 width: 100%;
}

.nav-tabs .nav-link:hover {
 color: #000;
}

.nav-tabs .nav-link.active {
 color: #000;
 font-weight: bold;
}

/* タブの縦幅 */
#tab1-tab,
#tab2-tab,
#tab3-tab {
 height: 100%;
}

/* アクティブなタブボタンのスタイル */
.nav-link.active {
  background-color: #87CEEB;
}

/* アクティブなタブコンテンツのスタイル */
.tab-pane.active {
  background-color: #87CEEB;
}

/* 募集要項の背景 */
#job-description table {
 width: 90%;
 margin: auto;
}

/* タブのコンテンツとテーブルのセルの背景色を連動させる */
#tab1-tab, #tab1,
#tab1 .table th,
#tab1 .table td {
  background-color: #87CEEB; /*スカイブルー*/
}

#tab2-tab, #tab2,
#tab2 .table th,
#tab2 .table td {
  background-color: #AFEEEE; /*ペイルターコイズ*/
}

#tab3-tab, #tab3,
#tab3 .table th,
#tab3 .table td {
  background-color: #FFEBCD;
}

/* 募集要項 テーブル幅調整 */
#job-description .table th {
  width: 20%;
}

#job-description .table td {
  width: 80%;
}

/* 募集要項 テーブルのボーダー */
#job-description .rec-bdtop {
 border-top: 1px solid #777;
}

#job-description .table th,
#job-description .table td {
 border-bottom: 1px solid #777;
}

body.recruit #section-contact {
  background: 
    /* 半透明のオーバーレイをグラデーションの上に重ねる */ linear-gradient(
  rgba(0, 0, 0, 0),
  rgba(0, 0, 0, 0)
  ),
  /* 右上から左下に流れるグラデーション */
    linear-gradient(to bottom left, #4169e1, #4ec1cd, #d2b48c);
}

/* 採用ページモバイル版 */
@media (max-width: 767px) {
  .rec-visual-bg01, .rec-visual-bg02, .rec-visual-bg03 {
    /* 画像の表示位置を調整 */
    background-position: top center; /* 画像の上部を基準に中央に表示 */
  }

  .carousel-item {
    /* carousel-itemの高さを100%に設定 */
    height: 40vh;
  }

  .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 7px;
  }


  .nav-tabs li {
    font-size: 14px;
  }

  .nav-tabs li span {
    font-size: 12px;
  }

  #job-description th.rec-bdtop {
   border-top: 1px solid #777;
  }

  #job-description .table th {
   border-bottom: none;
  }

  #job-description .table th, #job-description .table td {
    width: 100%;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .carousel-item {
    /* carousel-itemの高さを100%に設定 */
    height: 50vh;
  }
}

/* プライバシーポリシー(privacy.html) */
#privacy ol {
  list-style: none; /* デフォルトのマーカーを削除 */
  padding-left: 1rem;
}

#privacy li {
  position: relative; /* ::beforeの基準位置 */
  padding-left: 2em; /* アイコン分の余白を確保 */
}

.decimal-parenthesis-list li::before {
  content: "(" counter(list-item) ")"; /* (1), (2) ...と表示 */
  position: absolute;
  left: 0;
}

.circle-number-list li::before {
  content: "①"; /* 1番目 */
  position: absolute;
  left: 0;
}

.circle-number-list li:nth-child(2)::before {
  content: "②"; /* 2番目 */
}

.circle-number-list li:nth-child(3)::before {
  content: "③"; /* 3番目 */
}

/* プライバシーポリシー（モバイル版） */
/* テーブルの文字サイズ変更 */
@media (max-width: 767px) {
  #privacy ol {
  padding-left: 0;
  }
  
  #privacy th {
    font-size: 14px;
  }

  #privacy td {
    font-size: 12px;
  }
}

/* -----------------------------------
        　コンテンツ部分ここまで
   ----------------------------------- */

/* -----------------------------------
        　 フッター部分ここから
   ----------------------------------- */
footer a {
  /* デフォルトでは下線をなくす */
  text-decoration: none;
  /* ホバー時のアニメーションを滑らかにする */
  transition: text-decoration-color 0.2s ease-in-out;
  /* 下線の色を透明に設定しておく */
  text-decoration-line: underline;
  text-decoration-color: transparent;
}

footer a:hover {
  /* ホバー時に下線の色を白くする */
  text-decoration-color: #fff;
}
/* -----------------------------------
          フッター部分ここまで
   ----------------------------------- */
