@charset "UTF-8";
/*全体設定　-----------------------------*/
html,
body {
  font-size: 62.5%;
  font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
  color: #666;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  transition: 0.5s;
  text-decoration: none;
  color: inherit;
}

p {
  font-size: 1.4rem;
  line-height: 1.6;
}

.wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}


/*メインビジュアル部分　-----------------------------*/
.main-v img {
  width: 100%;
  object-fit: cover;
}


/*ヘッダー部分　-----------------------------*/
.page_title .logo {
    display: flex;
    align-items: center;
    gap: -0.69vw;
}

.page_title .logo .logo-mark {
    height: 5vw;
    margin-left: 1.7vw;
    width: auto;
}

.page_title .logo .logo-text {
    position: relative;
    height: 12vw;
    margin-top: -1.4vw;
    margin-left: -1.8vw;
    width: auto;
    z-index: 2;
}

.global-header {
  background-color: #ddeeffc4;
  height: 7.5vw;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 100;
  left: 0;
}

.global-header h1 {
  font-size: 2.5rem;
  margin-left: 3.5vw;
  font-weight: bold;
}

/* PC用画面 */
.global-header .main-nav {
  display: flex;
  margin-left: auto;
  padding-right: 2vw;
}

.global-header .main-nav ul {
  display: flex;
  gap: 1.4vw;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-header ul li {
  font-size: 1.6rem;
  margin-left: 1.4vw;
  font-weight: bold;
}

.global-header ul li a {
  position: relative;
  display: inline-block;
}

.global-header ul li a:after {
  position: absolute;
  bottom: -0.28vw;
  left: 0;
  content: '';
  width: 100%;
  height: 0.14vw;
  background: #333;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: transform 0.3s;
}

.global-header ul li a:hover:after {
  transform: scale(1, 1);
}


/*フッター部分　-----------------------------*/
.footer-nav {
  display: none;
}

.global-footer {
  background-color: #808080;
  color: #fff;
  padding: 1.4vw 0;
  text-align: left;
}

.global-footer .info p {
  font-size: 1.5rem;
  margin-left: 2vw;
}

.global-footer .c_right {
  text-align: center;
}

.global-footer .c_right p {
  font-size: 2rem;
}


/* レスポンシブ対応　-----------------------------*/
@media screen and (max-width: 768px) {
  /*スクロール操作を制御する*/
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .wrapper {
    max-width: 100%;
    overflow-x: hidden;
  }

  /*ヘッダー部分*/
  .global-header {
    height: 15vw;
    padding: 2.5vw 0;
  }

  .page_title .logo .logo-mark {
    height: 8vw;
  }

  .page_title .logo .logo-text {
    height: 22vw;
    margin-left: -3vw;
  }

  /* PC用画面を非表示にする */
  .global-header .main-nav {
    display: none !important;
    padding-left: 0;
    margin-left: 0;
  }

  /* ハンバーガー開いた時のみ表示 */
  .global-header .main-nav.open {
    display: block !important;
    position: absolute;
    top: 15vw;
    left: 0;
    width: 100%;
    background-color: #ddeeffb3;
    padding: 2.5vw 0;
    text-align: center;
    z-index: 150;
    animation: fadeSlideIn 0.3s ease forwards;
  }
  
  /* ナビゲーションメニューの中身 */
  .main-nav ul {
    padding: 0;
    margin: 0;
    display: flex; /* フレックスボックスを使用 */
    flex-direction: column; /* 縦並び */
    align-items: center;
    list-style: none;
  }

  .main-nav ul li {
    margin: 2.5vw 0; /* アイテムの間隔を縦に設定 */
    text-align: center;
  }

  .main-nav ul li a {
    display: block;
    width: 100%;
    text-align: center;
  } 

  /* ハンバーガーメニュー */
  .hamburger-menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 6.4vw;
    top: 4.8vw;
    right: 2.5vw;
    width: 8.5vw;
    z-index: 200; /* 重なり順を調整 */
    cursor: pointer;
  }

  .hamburger-menu span {
    display: block;
    position: absolute;
    height: 0.8vw;
    width: 100%;
    background-color: #2d36b4;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  /* 変形前（≡マーク） */
  .hamburger-menu span:nth-child(1) {
    top: 0;
  }
  .hamburger-menu span:nth-child(2) {
    top: 2.5vw;
  }
  .hamburger-menu span:nth-child(3) {
    top: 5.4vw;
  }

  /* 変形後（×マーク） */
  .hamburger-menu.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 2.5vw;
  }
  .hamburger-menu.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 2.5vw;
  }


  /*フッター部分*/
  .footer-nav {
    display: block;
    background-color: #808080;
    margin: 0;
    padding: 5.4vw 0 0 0;
    text-align: center;
    border-top: none;
  }

  .footer-nav ul {
    display: flex;
    flex-wrap: wrap;  /* 幅足りなければ2行に */
    justify-content: center;  /* 中央寄せ */
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-nav ul li {
    margin: 1vw 4vw;
    white-space: nowrap;
  }
  
  .footer-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
  }
  
  .footer-nav ul li a:hover {
    text-decoration: underline;
  }
  
  .global-footer {
    padding: 8vw 0;
    margin-top: 0;
    line-height: 1.8;
  }
  .global-footer .c_right p{
    font-size: 1.5rem;
  }

  /* 開閉アニメーション */
  @keyframes fadeSlideIn {
    0% {
      opacity: 0;
      transform: translateY(-2.5vw);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
} 