@charset "UTF-8";

/* --------------------------------
  reset
-------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul {
    list-style: none;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    vertical-align: bottom;
}
html {
    font-size: 100%;
}

/* --------------------------------
  body
-------------------------------- */
body {
    background-color: #fff;
    color: #333;
    font-size: 1rem;
    font-family: "Arial", "Noto Sans JP", sans-serif;
    line-height: 1.5;
}

/* --------------------------------
  layout
-------------------------------- */
.container {
    width: min(92%, 1110px);
    margin: 0 auto;
}

/* --------------------------------------------
ここまで先生のコピー
--------------------------------------------*/
/* header */
header {
  position: fixed; /* 固定表示に変更 */
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  background-color: rgba(255, 255, 255, 1.0); /* 初期状態は白背景 */
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* スクロール時にheaderが隠れる */
header.hidden {
  transform: translateY(-100%); /* 上に隠れる */
}

/* スクロール戻したときに再表示 */
header.shown {
  transform: translateY(0); /* 再表示 */
}

.logo {
  z-index: 1001; /* ナビゲーションよりも前面に配置 */
  width: 200px;
}

/* nav */
.gnav ul {
  display: flex;
  gap: 20px;
}
.gnav ul li {
  position: relative;
}
.gnav ul li a {
  font-size: 16px;
  font-weight: bold;
  padding: 5px 0;
  display: inline-block;
  position: relative;
  color:#545454;
}
.gnav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color:#545454;
  transition: width 0.3s ease-in-out;
}
.gnav ul li a:hover::after {
  width: 100%;
}
/* ハンバーガーメニュー */
@media screen and (max-width: 767px) {
  .nav_button {
    position: fixed;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #fff;
    z-index: 1000;
  }
  .nav_button span {
    width: 30px;
    height: 3px;
    background: #444;
    border-radius: 2px;
    transition: all 0.2s ease-in-out;
  }

  /* イベントにより.openが付与されたときのアニメーション */
  .open .nav_button span:nth-child(1) {
    transform: translate(0, 8px) rotate(45deg);
    background: #444;
  }
  .open .nav_button span:nth-child(2) {
    transform: scaleX(0);
    opacity: 0;
  }
  .open .nav_button span:nth-child(3) {
    transform: translate(0, -10px) rotate(-45deg);
    background: #444;
  }

/* ---------- gnav ---------- */
.gnav {
  position: fixed;
  right: -100vw;  /* 初期位置は画面外 */
  top: 0;
  width: 100vw;
  height: 100svh;
  background-color: rgba(18, 112, 188, 1.0);
  color: white;
  transition: right 0.3s ease;
  z-index: 800;
}
  .gnav ul {
    display: grid;
    place-content: center;
    height: 100vh;
  }
    .gnav ul li {
      margin: 15px 0;
      line-height: 1.4;
    }
    .gnav ul li a {
      color: white;
      text-decoration: none;
    }

    /* イベントにより.openが付与されたときの位置 */
    .open .gnav {
      right: 0;
    }
}


/* キービジュアルのスタイル */
.key_visual {
  position: relative;
  width: 100%;
  height: 70vh; /* 画面全体に表示 */
  background: url('../img/Ds3.webp') no-repeat center/cover;
}

.key_visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* グレーのレイヤー */
}

.key_visual h1 {
  position: absolute;
  left: auto;
  right: 330px; /* CompanyのCの位置に合わせる */
  padding-bottom: 100px; /* 下端ギリギリに調整 */
  bottom: 20%;
  font-size: 20px;
  color: white;
  margin: 0;
  transform: translateX(0);
}
.key_visual .h1-p {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 100px; /* 大きめの文字 */
  color: white;
  font-weight: bold;
  text-align: right;
  line-height: 1;
  padding-right: 50px; /* 右端ギリギリに調整 */
  padding-bottom: 100px; /* 下端ギリギリに調整 */
}

.key_visual .h1-p span {
  color:#2563CE; /* C の部分を青に */
}
.key_visual .h1-p2 {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 100px; /* 大きめの文字 */
  color: white;
  font-weight: bold;
  text-align: right;
  line-height: 1;
  padding-right: 0px; /* 右端ギリギリに調整 */
  padding-bottom: 5px; /* 下端ギリギリに調整 */
}

.key_visual .h1-p2 span {
  color:#2563CE; /* C の部分を青に */
}
@media screen and (max-width: 767px) {
  .key_visual {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    align-items: flex-end; /* 右寄せ */
    height: 50vh; /* 高さを明示 */
    padding-left: 100%; /* 右端の余白調整 */
  }

  .key_visual h1,
  .key_visual .h1-p,
  .key_visual .h1-p2 {
    font-weight: bold;
    color: white;
    white-space: nowrap; /* 改行を防ぐ */
  }
  .key_visual h1 {
    position: absolute;
    right: 50px;
    font-size: 16px;
    display: block; /* 明示的にブロック要素にする */
    margin: -50px;
  }
  .key_visual .h1-p {
    position: absolute;
    right: 25px;
    font-size: 50px;
    width: 200px;
    margin: -40px;
  }
  .key_visual .h1-p2 {
    font-size: 50px;
  }
}


/* --------------リンク部分---------------- */
.nav2 {
  text-align: center;
  margin: 100px 0; /* 上下100pxのマージン */
}

.nav2 ul {
  display: flex;
  justify-content: center; /* 中央揃え */
  gap: 100px; /* 各要素の間隔 */
  list-style: none;
  padding: 0;
}

.nav2 li {
  font-size: 20px;
  font-weight: bold;
  padding: 10px 20px;
}
.nav2 a {
  position: relative;
  text-decoration: none; /* 下線を消す */
  color: inherit; /* リンクの色を引き継ぐ */
}
.nav2 a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px; /* 下線の太さ */
  background-color: blue; /* 下線の色 */
  transition: width 0.3s ease; /* アニメーションのスピードとタイミング */
}
.nav2 a:hover::before {
  width: 100%; /* ホバー時に下線が広がる */
}

/* スマホ用のスタイル */
@media screen and (max-width: 767px) {
  .nav2 ul {
    display: block; /* 縦並びにする */
    text-align: center;
  }

  .nav2 li {
    margin-bottom: 20px; /* 各要素の間隔を適度に */
    display: block;
  }

  /* ホバー効果を無効にする */
  .nav2 a:hover::before {
    width: 0; /* ホバー時の下線のアニメーションを消す */
  }
}

/* スクロール時にじわっと表示 */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}


/* --------------------------------
DS Section
-------------------------------- */
.DS {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none; /* 最大幅の制限をなくす */
  margin: 10px 0; /* 左右の余白をなくす */
  background-color: #B8C7DF; /* 青い背景色を設定 */
}

.DS-img {
  width: 50%; /* 中央までの幅 */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 左端に寄せる */
  padding-top: 50px; /* 上の余白 */
  padding-bottom: 50px; /* 下の余白 */
}

.DS-img img {
  width: 100%;
  height: 500px; /* 固定の高さを指定（例） */
  object-fit: cover; /* 中央を切り取って表示 */
}


.DS-text {
  flex: 1; /* 50% */
  display: flex;
  flex-direction: column; /* 縦に並べる */
  justify-content: center;
  padding: 0 20px;
}

.DS-text .h2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  color: #333;
}

.DS-text .h2 span {
  color: #2563CE;
}

.DS-text .h2p {
  font-size: 18px;
  text-align: center;
  position: relative;
  margin-top: 10px;
}

.DS-text .h2p::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #2563CE;
  position: absolute;
  bottom: -5px;
  left: 0;
}
.DS-p {
  text-align: left;
  white-space: pre-line;
  margin: 30px auto;
}

/* --------------------------------
DS2 Section
-------------------------------- */
.DS2 {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 100px 0; /* 上下の余白 */
}

.DS2-text {
  flex: 1; /* 50% */
  display: flex;
  flex-direction: column; /* 縦に並べる */
  justify-content: center;
  padding: 0 20px;
}

.DS2-text .h2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
}

.DS2-text .h2 span {
  color: #2563CE; 
}

.DS2-text .h2p {
  font-size: 18px;
  text-align: center;
  position: relative;
  margin-top: 10px;
}

.DS2-text .h2p::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #2563CE;
  position: absolute;
  bottom: -5px;
  left: 0;
}

.DS2-p {
  text-align: left;
  white-space: pre-line;
  margin: 30px auto;
}

.DS2-img {
  width: 50%; /* 右側の画像を中央まで */
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 右端に寄せる */
}

.DS2-img img {
  width: 100%;
  height: 500px; /* 固定の高さを指定（例） */
  object-fit: cover; /* 中央を切り取って表示 */
}
/* --------------------------------
Contact Section
------------------------------- */
.contact {
  text-align: center; /* 全て中央揃え */
  padding: 60px 0; /* 上下の余白を調整 */
}

.contact .h2-p {
  font-size: 48px; /* Contactのフォントサイズ */
  font-weight: bold;
  margin-bottom: 10px;
}

.contact .h2-p span {
  color: #FFD700; /* ゴールドっぽい色 */
}

.contact h2 {
  font-size: 18px; /* お問い合わせのフォントサイズ */
  font-weight: normal;
  margin-bottom: 20px;
}

.contact p {
  font-size: 16px;
  margin-bottom: 30px;
}

.contact .blue-line {
  width: 420px; /* 青い下線の長さ */
  height: 2px;
  background-color: #007BFF; /* 青い色 */
  margin: 20px auto; /* 中央揃え */
}

.contact .btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid black; /* 黒い枠 */
  background-color: transparent;
  color: black;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s; /* ホバー時の色変化にスムーズな遷移 */
}

.contact .btn:hover {
  background-color: #007BFF; /* 青い背景 */
  color: white; /* 文字色を白く */
}

/* --------------------------------
footer
-------------------------------- */
.footer {
  margin: 100px 0 0 0;
  position: relative;
  width: 100%;
  background-image: url("../../img/footer.webp"); /* 背景画像 */
  background-size: cover;
  background-position: center;
  color: #FFF;
  padding: 40px 10%;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-logo img {
  width: 300px;
  height: auto;
}

.footer-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.footer-nav li {
  position: relative;
}

.footer-nav a {
  color: #FFF;
  text-decoration: none;
  font-size: 16px;
  padding: 5px 10px;
  position: relative;
  display: inline-block;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: #2563CE;
  transition: width 0.3s ease;
}

.footer-nav a:hover::after {
  width: 100%;
}

.contact-link {
  display: inline-block; /* 背景色を適用するために追加 */
  background-color: #FFF;
  color: #2563CE !important; /* 他のスタイルを上書き */
  padding: 5px 30px !important;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-link:hover {
  background-color: #2563CE;
  color: #FFF !important;
}

.contact-link::after {
  width: 0 !important;
}

.footer-line {
  width: 100%;
  height: 1px;
  background-color: #FFF;
  margin: 20px 0;
}

.footer-bottom {
  display: flex;
  justify-content: flex-end;
}

.copyright {
  font-size: 14px;
}

.copyright a {
  color: #FFF;
  text-decoration: none;
  margin-left: 10px;
}

.copyright a:hover {
  text-decoration: underline;
}


/* ------------------------------ スマホ対応--------------*/
@media (max-width: 768px) {
  .DS {
    flex-direction: column; /* 縦並びに変更 */
    text-align: center; /* スマホでは中央揃え */
  }

  /* 画像を上部に配置 */
  .DS-img {
    order: -1; /* 順番を一番上に */
    width: 100%;
    justify-content: center;
    margin-bottom: 20px;
  }

  .DS-img img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
  }

  /* テキストエリア */
  .DS-text {
    width: 100%;
    padding: 0 20px;
  }

  .DS-text .h2,
  .DS-text .h2p {
    text-align: center;
  }

  .DS-p {
    text-align: left; /* 本文は左揃え */
  }
}

/* ----------------------------
スマホ用（幅768px以下のとき）
---------------------------- */
@media (max-width: 768px) {
  .DS2 {
    flex-direction: column; /* 縦並びに変更 */
    text-align: center; /* スマホでは中央揃え */
  }

  /* 画像を上部に配置 */
  .DS2-img {
    order: -1; /* 順番を一番上に */
    width: 100%;
    justify-content: center;
    margin-bottom: 20px;
  }

  .DS2-img img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
  }

  /* テキストエリア */
  .DS2-text {
    width: 100%;
    padding: 0 20px;
  }

  .DS2-text .h2,
  .DS2-text .h2p {
    text-align: center;
  }

  .DS2-p {
    text-align: left; /* 本文は左揃え */
  }
}

@media screen and (max-width: 767px) {
  .contact {
    padding: 40px 20px; /* スマホ用に余白を調整 */
  }

  .contact .h2-p {
    font-size: 36px; /* 見出しを少し小さく */
  }

  .contact h2 {
    font-size: 16px; /* サブ見出しを小さく */
  }

  .contact p {
    font-size: 14px; /* 説明文を調整 */
    margin-bottom: 20px;
    white-space: pre-line;
  }

  .contact .blue-line {
    width: 80%; /* 横幅を可変に */
    max-width: 300px; /* 最大幅を設定 */
  }

  .contact .btn {
    display: block; /* ボタンを幅いっぱいに */
    width: 100%;
    max-width: 300px;
    padding: 14px 0;
    font-size: 14px;
    margin: 0 auto; /* 中央配置 */
  }
}
@media screen and (max-width: 767px) {
  .footer {
    background-color: #000; /* 背景を黒に */
    background-image: none; /* 背景画像を消す */
  }

  .footer-content {
    flex-direction: column; /* 縦並びに */
    align-items: left;
  }

  .footer-logo {
    align-self: flex-start; /* 左寄せ */
  }

  .footer-logo img {
    width: 200px; /* 少し小さく */
  }

  .footer-nav ul {
    flex-direction: column; /* 縦並び */
    gap: 20px; /* 各リンクの間隔 */
    margin: 0 0 0 -100px;
  }

  .footer-nav a {
    color: #FFF; /* 白抜き */
    font-size: 18px; /* 少し大きめ */
  }

  .footer-line {
    background-color: #FFF; /* 白いライン */
  }

  .copyright {
    font-size: 12px; /* 少し小さめ */
  }

  .copyright a {
    color: #FFF; /* 白抜き */
  }
}

