@charset "utf-8";
/* CSS Document */
html {
  font-size: 62.5%; /* 16px * 62.5% = 10px */
  width: 100%;
  box-sizing: border-box;
  background-color: #fffeff;
}
:root{
  --primary-red:#e52828;
}
body {
  color: #484848;
  font-family: 'Noto Sans JP', sans-serif, 'Roboto';
  overflow-x: hidden;
}
#header {
  display: flex;
  justify-content: space-between; /* 左右に分ける */
  align-items: center;            /* 垂直中央揃え */
  padding: 10px 20px;             /* 余白調整（必要に応じて） */
}
#header .site_title_img{
  height: 40px;
  width: auto;
  padding: 0;
  display: block;
}
/* モバイルで少し控えめにするなら */
@media (max-width: 960px) {
  #header .site_title_img { height: 30px; }
  #header { padding: 10px 16px; }
}

/* ローディングアニメ */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOut 1.5s 2.5s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.loading__logo {
  opacity: 0;
  animation: logo_fade 2s 0.5s forwards;
  width: 340px;
}

@keyframes logo_fade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  60% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
  }
}
@media (max-width: 600px) {
  .loading__logo {
    width: 200px; /* ← 画面幅の70%くらいに調整 */
  }
}
/*============navigation======================*/
/*========= ナビゲーションのためのCSS ===============*/
.pc-nav{
  display: block;
  gap: 20px;
  flex: 1; 
  justify-content: flex-end;
}
.pc-nav-ul{
  display: flex;
  justify-content: flex-end;  /* メニュー右寄せ */
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pc-nav-ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1.5rem;
}

.pc-nav-ul li :hover{
  color: var(--primary-red);
}

.g-nav,
.openbtn{
  display: none;
}
/*アクティブになったエリア*/
#g-nav.panelactive {
  position: fixed;
  z-index: 999;
  top: 0px;
  width: 100%;
  height: 100vh;
}
#g-nav-list {
  display: none;
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  overflow: auto;
}
/*丸の拡大*/
.circle-bg {
  position: fixed;
  z-index: 3;
  /*丸の形*/
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #FFF;
  /*丸のスタート位置と形状*/
  transform: scale(0); /*scaleをはじめは0に*/
  right: -50px;
  top: -50px;
  transition: all .6s; /*0.6秒かけてアニメーション*/
}
.circle-bg.circleactive {
  transform: scale(50); /*クラスが付与されたらscaleを拡大*/
}
#g-nav.panelactive #g-nav-list {
  display: block; /*クラスが付与されたら出現*/
}
/*ナビゲーション*/
#g-nav ul {
  opacity: 0;
  position: absolute;
  z-index: 999;
  top: 50%;
  transform: translate(-50%, -50%);
  display: table;
  width: 20%;
  margin: 0px;
  padding: 0px;
}
#g-nav li {
  text-align: left;
  list-style: none;
}
.nav_ul1 {
  left: 50%;
}
#g-nav-list ul li .navi_title {
  font-size: 2rem;
  color: var(--primary-red);
}
/*背景が出現後にナビゲーションを表示*/
#g-nav.panelactive ul {
  opacity: 1;
}
/* 背景が出現後にナビゲーション li を表示※レイアウトによって調整してください。不必要なら削除*/
#g-nav.panelactive ul li {
  animation-name: gnaviAnime;
  animation-duration: 1s;
  animation-delay: 0.2s;
  animation-fill-mode: forwards;
  opacity: 0;
}
#g-nav.panelactive ul li a:hover {
  color: #6689b1;
}
@keyframes gnaviAnime {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/*リストのレイアウト設定*/
#g-nav li {
  text-align: left;
  list-style: none;
}
#g-nav li a {
  color: rgb(72, 72, 72);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.6rem;
  line-height: 1.6;
  text-decoration: none;
  padding: 10px;
}
.circle-bg.circleactive {
  transform: scale(50);
}
.circle-bg {
  position: fixed;
  z-index: 3;
  width: 100px;
  height: 100px;
  transform: scale(0);
  right: -50px;
  top: -50px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  transition: all 0.6s ease 0s;
}
/*========= ボタンのためのCSS ===============*/
.openbtn {
  position: fixed;
  top: 5px;
  right: 10px; /*元は10pxを変更してる*/
  z-index: 9999; /*ボタンを最前面に*/
  cursor: pointer;
  width: 50px;
  height: 50px;
}
/*×に変化*/
.openbtn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background-color: #484848;
  width: 45%;
}
.openbtn span:nth-of-type(1) {
  top: 15px;
}
.openbtn span:nth-of-type(2) {
  top: 23px;
}
.openbtn span:nth-of-type(3) {
  top: 31px;
}
.openbtn.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}
.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}
.openbtn.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}
.navi_title {
  font-size: 1.8rem;
  font-weight: 600;
}
/*================hamburgermenu_sh===========*/
@media (max-width: 770px) {
  #g-nav ul {
    width: 70%;
    opacity: 0;
    position: initial;
    z-index: 999;
    transform: translate(10%, 25%);
    display: table;
    padding-bottom: 20px;
    margin: 0px 2%;
    border-bottom: dotted 1px var(--primary-red);
  }
  #g-nav-list ul li .navi_title {
    font-size: 1.8rem;
  }
  #g-nav li a {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  #g-nav #g-nav-list .nav_ul2 {
    padding-top: 20px;
  }
  #g-nav #g-nav-list .nav_ul3 {
    padding: 20px 0px 30px;
  }
  .pc-nav{
    display: none;
  }
  .pc-nav-ul{
    display: none;
  }
  .g-nav,
.openbtn{
  display: block;
}
}
/*=================footer===================*/
#footer {
  width: 100%;
  background-color: rgb(225, 233, 242);
  margin-top: 280px;
}
.footer_nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: 40px;
}
nav ul {
  list-style: none;
}
.footer_nav ul li {
  padding-right: 40px;
  margin-top: 100px;
}
.footer_nav ul li a {
  color: rgb(72, 72, 72);
  font-size: 1.6rem;
  text-decoration: none;
}
.footer_logo {
  display: flex;
  justify-content: center;
  margin: 60px 0px;
}
.footer_logo img {
  height: 40px;
}
#footer small {
  display: block;
  text-align: center;
  font-size: 1.2rem;
  padding-bottom: 30px;
}
.footer_nav a {
  position: relative;
}

.footer_nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.footer_disclosure {
  margin-top: 30px !important; /* 必須：100pxを上書き */
  width: 100%;
  text-align: center;
  margin-top: 20px;  /* 上のメニューとの距離 */
  padding-right: 0 !important; /* 他メニューの右余白を消す */
}

.footer_disclosure a {
  font-size: 1.4rem; /* 少し小さめが馴染む */
  line-height: 1.2;
  color: #8c8c8c!important;
  text-decoration: underline;
}
/* ========================
   ISMS & ホワイト企業認定ロゴ 横並び
======================== */
.footer_certification {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;             /* ← ロゴ同士の間隔 */
  margin: 60px 0 40px;
  flex-wrap: wrap;       /* ← スマホで自動改行 */
}

.footer_certification img {
  height: 75px;          /* ISMSロゴに合わせる */
  width: auto;
  transition: opacity 0.3s ease;
  opacity: 0.95;
}

.footer_certification img:hover {
  opacity: 1;
}

/* スマホ時 */
@media (max-width: 960px) {
  .footer_certification {
    gap: 24px;
    margin: 40px 0 20px;
  }

  .footer_certification img {
    height: 36px;        /* 小さめに */
  }
}
/*** 下線（疑似要素） ***/
.footer_nav a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgb(102, 137, 177);
  visibility: hidden;
  opacity: 0;
  transition: .3s;
}
/*** ホバー時の下線 ***/
.footer_nav a:hover::after {
  visibility: visible;
  opacity: 1;
}
@media (max-width:960px) {
  #footer {
    margin-top: 140px;
  }
  .footer_nav {
    padding-top: 40px;
  }
  .footer_nav ul li {
    margin-top: 40px;
  }
  .footer_logo img {
    height: 30px;
  }
  .footer_nav a:after, .footer_nav a:hover::after {
    display: none;
  }
}
/*========= ページトップのためのCSS ===============*/
/*リンクの形状*/
#page-top a {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #c1c1c1;
  border-radius: 5px;
  width: 45px;
  height: 45px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s;
}
#page-top a:hover {
  background: #777;
}
/*リンクを右下に固定*/
#page-top {
  position: fixed;
  right: 10px;
  z-index: 2;
  /*はじめは非表示*/
  opacity: 0;
  transform: translateY(100px);
}
/*　上に上がる動き　*/
#page-top.UpMove {
  animation: UpAnime 0.5s forwards;
}
@keyframes UpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*　下に下がる動き　*/
#page-top.DownMove {
  animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 1;
    transform: translateY(100px);
  }
}
@media(max-width:960px) {
  #page-top a {
    width: 50px;
    height: 40px;
  }
}