@charset "UTF-8";

/* ===================== ブラウザリセット ===================== */
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
}

/* ===================== 共通スタイル ===================== */
/* /header共通部分 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  box-sizing: border-box;
  background: transparent; /* ←初期は透明 */
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* スクロール後：白背景に切り替え */
header.scrolled {
  background: #f7fcff;
}

.header-contact-btn {
  display: none;
}

.logo-box img {
  display: block; /* 余計な隙間防止 */
}
/* PCナビゲーション (デフォルト非表示) */
.nav-pc {
  display: none;
}

.nav-pc ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-pc a {
  color: #000233;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}

.nav-pc a:hover {
  color: #0072e3;
}

/* ハンバーガーメニューアイコン */
.menu-icon {
  /* position: fixed は不要 (headerがfixedのため) */
  width: 40px;
  height: 30px;
  z-index: 2001;
  cursor: pointer;
}

.menu-icon span {
  display: block;
  height: 4px;
  background: #003366;
  margin: 4.5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-icon.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-icon.open span:nth-child(2) {
  opacity: 0;
}

.menu-icon.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* === オーバーレイメニュー === */

.overlay-menu.open {
  top: 0; /* 開いたときに画面内に */
  opacity: 1;
}

/* 閉じるボタン */
.overlay-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 38px;
  color: #004b9b;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2100;
  transition: 0.3s;
}

.overlay-close:hover {
  transform: scale(1.1);
}

/* メニュー内容 */
.overlay-content {
  display: flex;
  flex-direction: column; /* スマホでは縦並び */
  justify-content: center;
  align-items: center;
  width: 80%;
  max-width: 950px;
  height: 80%; /* メニュー全体の高さに対する割合 */
  gap: 30px; /* スマホでの隙間 */
}

.overlay-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center; /* スマホでは中央揃え */
}

.overlay-nav li {
  margin-bottom: 28px;
}

.overlay-nav .menu-item {
  font-family: "Roboto", sans-serif; /*セクションの英語*/
  display: block;
  font-size: 2rem; /* スマホでのサイズ */
  letter-spacing: 3.6px;
  font-weight: 800;
  color: #000233;
}

.overlay-nav .menu-item2 {
  display: block;
  font-size: 1.2rem; /* スマホでのサイズ */
  font-weight: 600;
  letter-spacing: 2px;
  color: #000233;
}

.overlay-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-contact-btn {
  /* オーバーレイ内のボタン */
  display: inline-block;
  background: linear-gradient(to right, #ff5f4d, #ff7a73);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 40px;
  padding: 18px 56px;
  font-size: 1.6rem; /* スマホ・タブレット共通サイズ */
  transition: 0.3s ease;
}

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

/* //header共通部分 */

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-style: normal;
  color: #000233;
  background-color: #F7FCFF;
}

html {
  background-color: #f7fcff; /*全体の背景*/
  font-family: "Zen Kaku Gothic New", sans-serif; /*日本語*/
  font-size: 10px;
}
/* セクションの英語 */
h1 {
  font-family: "Roboto", sans-serif; /*セクションの英語*/
  font-weight: 900;
  color: #000233;
  line-height: 1;
}
/* //セクションの英語 */

/* セクションの日本語 */
h2 {
  font-weight: 700;
  color: #000233;
  line-height: 1.2;
}
/* //セクションの日本語 */

.service ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.service li {
  background-color: #003690;
  border-radius: 30px;
  padding: 0;
}

.service_box {
  background-color: #003690;
  border-radius: 30px;
  margin-bottom: 0;
}

.service_title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: #fff;
}

.service_description {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-style: normal;
  color: #fff;
}

.service_description p {
  margin-bottom: 15px;
}

.img_box {
  background-color: #fff;
  border-radius: 10px;
}

.img_box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ===================== スマートフォン用 ===================== */
@media (max-width: 768px) and (min-width: 466px) {
  /* header共通 */
  header {
      padding-right: 6vw;
      padding-left: 6vw;
      padding-top: 2vw;
  }
  .overlay-content {
      flex-direction: column;
      gap: 30px;
  }

  .overlay-nav ul {
      display: block;
  }

  .overlay-nav li {
      text-align: start;
  }

  .overlay-menu {
      position: fixed;
      top: -100%; /* 初期状態は画面外 */
      left: 0;
      width: 100%;
      height: 100vh; /* スマホでは全画面 */
      background-image: url(../../images/SP_humberger_back.svg);
      background-repeat: no-repeat;
      background-size: cover;
      border-radius: 10px;
      box-sizing: border-box;
      opacity: 0;
      transition: all 0.6s ease;
      z-index: 2000;
      display: flex;
      align-items: center; /* スマホでは中央揃え */
  }

  .logo-box img {
      height: 8vw;
      display: block; /* 余計な隙間防止 */
  }
  /*// header共通 */
}


@media (max-width: 465px) {
      /* header共通 */
      header {
          padding-right: 6vw;
          padding-left: 6vw;
          padding-top: 2vw;
      }
      .overlay-content {
          flex-direction: column;
          gap: 30px;
      }
  
      .overlay-nav ul {
          display: block;
      }
  
      .overlay-nav li {
          text-align: start;
      }
  
      .overlay-menu {
          position: fixed;
          top: -100%; /* 初期状態は画面外 */
          left: 0;
          width: 100%;
          height: 100vh; /* スマホでは全画面 */
          background-image: url(../../images/SP_humberger_back3.svg);
          background-repeat: no-repeat;
          background-size: cover;
          box-sizing: border-box;
          opacity: 0;
          transition: all 0.6s ease;
          z-index: 2000;
          display: flex;
          align-items: center; /* スマホでは中央揃え */
      }
  
      .logo-box img {
          height: 8vw;
          display: block; /* 余計な隙間防止 */
      }
      /*// header共通 */
}



@media (max-width: 767px) {
  /* footer共通部分 */
    /* フッター（モバイル） */
    .footer-mobile {
      background: transparent url("../../images/footer_back.svg") no-repeat
          center ;
      background-size: cover;
      
      padding: 80px 15vw 24px;
      text-align: left;
      color: #000233;
  }

  .footer-mobile .footer-nav ul {
      list-style: none;
      padding: 0;
      margin: 0;
  }

  .footer-mobile .footer-nav li {
      margin-bottom: 5.6vw;
  }

  .footer-mobile .footer-nav a {
      font-family: "Roboto", sans-serif; /*セクションの英語*/
      text-decoration: none;
      font-size: clamp(20px, 6vw, 28px);
      color: #000233;
      letter-spacing: 3px;
      font-weight: 900;
  }

  .footer-mobile .footer-nav span {
      display: block;
      font-weight: 700;
      font-size: clamp(10px, 3vw, 14px);
      letter-spacing: 2px;
      opacity: 0.8;
  }

  .footer-mobile .footer-copy {
      font-family: "Roboto", sans-serif; /*セクションの英語*/
      font-size: clamp(10px, 2.5vw, 14px);
      font-weight: 500;
      letter-spacing: 2px;
      opacity: 0.8;
      margin-top: 40px;
      text-align: center;
  }

  .footer-pc {
      display: none;
  }
  /* //footer共通部分 */

        /* 共通部分 */    
  
      .head {
          max-width: 100%;
          background-repeat: no-repeat;
          background-image: url(../../images/kasou_top_back_sp.svg);
      }
      
      .page {
          padding-top: 23vw;
          max-width: 85%;
          margin: 0 auto;
      }
      .page_subtitle p {
          font-size: clamp(10px, 2.5vw, 14px);
          margin-top: 3vw;
      }
  
  
  
          /* セクションの英語 */
          h1 {
              font-size: 10vw;
              letter-spacing: 0.06em;
          }
          /* //セクションの英語 */
          
          /* セクションの日本語 */
          h2 {
              font-size: 5vw;
              letter-spacing: 0.15em;
          }
          /* //セクションの日本語 */
      /* //共通部分 */

  


  .service {
    margin-top: 22vw;
    padding: 0 4%;
  }

  .service ul {
    gap: 50px;
  }

  .service_box {
    padding: 10% 8%;
  }

  .service_title {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 15px;
  }

  .service_description {
    font-size: 12px;
    line-height: 20px;
  }

  .img_box {
    padding: 2.7%;
    margin: 25px 0;
  }

  .overlay-menu * {
    line-height: 1.15;
  }
}

/* ===================== タブレット用 ===================== */

@media (max-width: 1024px) and (min-width: 769px) {
   /*/header共通部分 */
    /* ヘッダーのお問い合わせボタン (タブレットでは非表示のまま) */
    header {
      padding-right: 4vw;
      padding-left: 4vw;
      padding-top: 2vw;
  }
  .header-contact-btn {
      display: none;
  }
  .logo-box img {
      height: 7vw;
      display: block; /* 余計な隙間防止 */
  }
    .overlay-menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background-image: url(../../images/TB_humberger_back.svg);
        background-repeat: no-repeat;

        background-size: 100% auto;
        background-position: center top;

        border-radius: 10px;
        box-sizing: border-box;
        opacity: 0;
        transition: all 0.6s ease;
        z-index: 2000;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 80px;
        padding-bottom: 101px;
        overflow-y: auto;
    }

    .overlay-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        width: 90%; /* 幅を少し可変に */
        margin: 0 auto;
        padding: 4vw 5vw; /* 画面幅に応じて余白を調整 */
        gap: 5vw; /* 文字とボタンの間隔を相対値で */
    }

    .overlay-nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2vw 4vw; /* カラム間の隙間も相対値に */
        text-align: left;
    }

    .overlay-nav .menu-item {
        font-size: clamp(1.4rem, 1.8vw, 2.2rem); /* ← 可変フォント */
        letter-spacing: 0.2vw;
    }

    .overlay-nav .menu-item2 {
        font-size: clamp(1rem, 1.2vw, 1.6rem);
    }

    .overlay-right {
        flex: 0 0 auto;
        align-self: flex-end;
        margin-right: 4vw;
    }

    .overlay-contact-btn {
        font-size: clamp(1.2rem, 1.5vw, 1.8rem); /* ← ボタン文字も可変 */
        padding: 1.2em 3em;
    }
  /* //header共通部分 */

  /* footer共通部分 */
  /* モバイル用のフッターは非表示 */
  .footer-mobile {
      display: none;
  }

  .footer-pc {
      display: block;
      padding: 80px 7.6vw 20px 7.6vw;
      color: #000233;

  }

  .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 60px;
      max-width: 1400px;
      margin: 0 auto;
  }

  .footer-left {
      flex: 1;
  }

  .footer-menu {
      display: grid;
      grid-template-columns: repeat(2, auto);
      gap: 30px 80px;
      list-style: none;
      padding: 0;
      margin: 0;
  }

  .footer-menu a {
      font-family: "Roboto", sans-serif; /*セクションの英語*/
      text-decoration: none;
      font-size: 1.8rem;
      font-weight: 900;
      letter-spacing: 3px;
      color: #000233;
  }

  .footer-menu span {
      letter-spacing: 3px;
      font-size: 1.2rem;
      font-weight: 700;
      margin-top: 3px;
  }

  .footer-right {
      flex: 1;
      text-align: left;
      background: url("../../images/logo_lightbule.png") no-repeat right
          bottom;
      background-size: contain;
      padding-left: 40px;
  }

  .footer-right h2 {
      font-size: 3.6rem;
      font-weight: 900;
      line-height: 1.5;
      margin-bottom: 30px;
  }

  .footer-text {
      font-size: 1.2rem;
      line-height: 1.8;
      font-weight: 700;
      margin-bottom: 30px;
  }

  /* フッターのお問い合わせボタン */
  .footer-btn {
      display: inline-block;
      background: linear-gradient(90deg, #ff5f4d, #ff7a73);
      color: #fff;
      font-size: 1.4rem;
      font-weight: 500;
      text-decoration: none;
      padding: 24px 60px;
      border-radius: 100px;
      transition: all 0.3s ease;
      letter-spacing: 3px;
  }

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

  .footer-copy {
      text-align: center;
      font-weight: 500;
      margin-top: 60px;
      font-size: 1.4rem;
      opacity: 0.8;
  }
  
  .footer-menu_top li {
      margin-top: 20px;
  }
  .footer-menu_news li {
      margin-top: 20px;
  }

  /* //footer共通部分 */

     /* 共通部分 */

    .head {
      max-width: 100%;
      min-width: 100%;
      background-repeat: no-repeat;
      background-image: url(../../images/kasou_top_back_tb.svg);
      background-size: contain;
  }

  .page {
      max-width: 74%;
      padding-top: 16vw;
      margin: 0 auto;
  }
  
  .page-title {
      margin-left: -5%;
  }

      /* セクション */
      h1{
          font-size: 7.3vw;
          letter-spacing: 0.1em;
      }
  
      h2{
          font-size: 2.6vw;
          letter-spacing: 0.1em;
      }

      .page_subtitle p {
          font-size: clamp(10px, 1.8vw, 14px);
          margin-top: 3vw;
      }
      /* //セクション */
      /* //共通部分 */


  .service {
    margin-top: 23vw;
    padding: 0 8%;
  }

  .service ul {
    gap: 70px;
  }

  .service_box {
    padding: 7.3% 5.3%;
  }

  .service_title {
    font-size: 22px;
    line-height: 36px;
    margin-bottom: 20px;
  }

  .service_description {
    font-size: 16px;
    line-height: 24px;
  }

  .service_description p {
    margin-bottom: 25px;
  }

  .img_box {
    border-radius: 15px;
    padding: 2.7%;
    margin: 35px 0;
  }

  .img_box img {
    border-radius: 10px;
  }
}

/* ===================== デスクトップ用 ===================== */
@media (min-width: 1161px) {
  .header-contact-btn {
      padding: 24px 56px;
  }
}
@media (max-width: 1160px) and (min-width: 1060px) {
  .header-contact-btn {
      padding: 20px 40px;
  }
}

@media (max-width: 1060px) and (min-width: 1025px) {
  .header-contact-btn {
      padding: 20px 30px;
  }
}
@media (min-width: 1025px) {
 /* header共通部分 */
 header {
  padding-right: 2vw;
  padding-left: 2vw;
}

.header-contact-btn {
  display: inline-block;
  background: linear-gradient(to right, #ff5f4d, #ff7a73);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px;
  font-size: clamp(12px, 1vw, 18px);
  letter-spacing: 4px;
  transition: 0.3s ease;
  order: 2;
}

.menu-icon {
  display: none;
}

.overlay-menu {
  display: none !important;
}

.nav-pc {
  display: block;
  order: 1;
  font-size: clamp(12px, 1vw, 18px);
  margin-left: auto;
  margin-right: 20px;
  letter-spacing: 3px;
}
.logo-box img {
  height: 5vw;
  display: block; /* 余計な隙間防止 */
}

/* //header共通部分 */

/* footer共通部分 */
/* モバイル用のフッターは非表示 */
.footer-mobile {
  display: none;
}

/* PC用のフッター */
.footer-pc {
  display: block;
  padding: 80px 8% 20px 8%;
  color: #000233;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-left {
  flex: 1;
}

.footer-menu_top li {
  margin-top: 20px;
}
.footer-menu_news li {
  margin-top: 20px;
}
.footer-menu {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 30px 80px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu a {
  font-family: "Roboto", sans-serif; /*セクションの英語*/
  text-decoration: none;
  font-size: 2.4rem;
  letter-spacing: 3.6px;
  font-weight: 900;
  color: #000233;
}

.footer-menu span {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  opacity: 0.8;
  margin-top: 3px;
}

.footer-right {
  flex: 1;
  text-align: left;
  background: url("../../images/logo_lightbule.png") no-repeat right
      bottom;
  background-size: contain;
  padding-left: 40px;
}

.footer-right h2 {
  font-size: 4.8rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 30px;
}

.footer-text {
  font-size: 1.6rem;
  line-height: 1.8;
  font-weight: 700;
  margin-bottom: 40px;
}

.footer-btn {
  display: inline-block;
  background: linear-gradient(90deg, #ff5f4d, #ff7a73);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  padding: 24px 60px;
  border-radius: 100px;
  letter-spacing: 4px;
  transition: all 0.3s ease;
}

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

.footer-copy {
  font-weight: 500;
  text-align: center;
  margin-top: 60px;
  font-size: 1.6rem;
  opacity: 0.8;
}

/* //footer共通部分 */

          /* 共通部分 */
          .head {
            background-image: url(../../images/kasou_top_back_pc.svg);
            background-repeat: no-repeat;
            background-size: contain;
        }
    
        h1 {
            font-size: 8.3vw;
            letter-spacing: 0.1em;
        }
        
        h2 {
            font-size: 3.3vw;
            letter-spacing: 0.1em;
        }
    
        .page {
            padding-top: 20%;
            max-width: 75%;
            margin: 0 auto;
        }
    
        .page-title {
            margin-left: -5%;
        }
    
        .page_subtitle p {
            font-size: 1.38vw;
            margin-top: 2.8vw;
        }
    
        /* //共通部分 */

  .service {
    margin-top: 29vw;
    padding: 0 5%;
  }

  .service ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .service li {
    overflow: hidden;
  }

  /* 1番目の要素（システムエンジニアリングサービス）：横並び */
  .service li:first-child {
    grid-column: 1 / -1;
  }

  .service li:first-child .service_box {
    display: flex;
    flex-direction: column;
    padding: 5.8% 4.2%;
  }

  .service li:first-child .content_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
  }

  .service li:first-child .service_title {
    font-size: 24px;
    margin-bottom: 50px;
  }

  .service li:first-child .img_box {
    margin: 0;
  }

  /* 2番目、3番目の要素：縦並び */
  .service li:nth-child(2) .service_box,
  .service li:nth-child(3) .service_box {
    display: flex;
    flex-direction: column;
    padding: 10% 8%;
  }

  .service_title {
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 0;
  }

  .service_description {
    font-size: 18px;
    line-height: 32px;
  }

  .service_description p {
    margin-bottom: 25px;
  }

  .img_box {
    border-radius: 15px;
    padding: 1.7%;
    margin: 50px 0;
  }

  .img_box img {
    border-radius: 10px;
  }

  /* 3番目の要素の個別調整 */
  .service li:nth-child(3) .service_title {
    margin-top: 15px;
  }

  .service li:nth-child(3) .img_box {
    margin-top: 80px;
  }
}