html {
  overflow-y: auto;
}

body {
  font-family: "游ゴシック体", "Yu Gothic", "YuGothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.pc {
  display: block;
}

.sp {
  display: none;
}

/*画像のレスポンシブ*/
.responsive img {
  width: 100%;
  height: auto;
  display: block;
}

#all-wrap {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  min-height: 100vh;
}

#main-wrap {
  padding-top: 70px;
  flex: 1;
}

/* header */
#header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
}

.header-logo a {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
}

.global-nav ul {
  display: flex;
  gap: 30px;
}

.global-nav a {
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}
.global-nav a:hover {
  color: #555;
}

.global-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #333;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.global-nav a:hover::after {
  transform: scaleX(1);
}

/* --------------------------------
 * ハンバーガーボタン
 * -------------------------------- */
.hamburger-btn {
  display: none; /* PCでは非表示 */
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1100;
}

.hamburger-btn span {
  display: block;
  position: absolute;
  left: 5px;
  width: 30px;
  height: 2px;
  background-color: #333;
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn span:nth-child(1) {
  top: 10px;
}
.hamburger-btn span:nth-child(2) {
  top: 19px;
}
.hamburger-btn span:nth-child(3) {
  top: 28px;
}

/* ハンバーガーボタンがアクティブな時（×印） */
.hamburger-btn.is-active span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-active span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* footer */
#footer-wrap {
  padding: 25px 0 15px;
}

.footer-logo {
  max-width: 264px;
  margin: 10px auto 0;
}

.footer-logo:hover {
  opacity: 0.7;
}

.scroll-animation-item {
  opacity: 0;
  visibility: hidden;
}

/* main */
#main-wrap {
  padding-bottom: 100px;
}

/* アコーディオンメニュー */
.accordion-list {
  width: 90%;
  margin: 30px auto 0;
  padding: 20px 10px;
  background-color: gray;
}

.accordion-list .accordion-btn {
  display: block;
  position: relative;
  width: 318px;
  margin: 0 auto 0;
  cursor: pointer;
}

.accordion-list .accordion-btn::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  transition: transform 0.3s ease;
}
.accordion-list .accordion-btn.is-active::after {
  transform: translateY(-50%) rotate(45deg);
}

.accordion-list .accordion-content {
  display: none;
}

@media (max-width: 1000px) {
  .hamburger-btn {
    display: block; /* スマホで表示 */
  }

  .global-nav {
    position: absolute;
    top: 70px; /* ヘッダーの高さ */
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);

    /* アコーディオンのためのスタイル */
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.5s ease, visibility 0.5s ease;
  }

  .global-nav.is-active {
    max-height: 500px; /* メニューの高さに合わせて調整 */
    visibility: visible;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  .global-nav li {
    border-bottom: 1px solid #f0f0f0;
  }

  .global-nav li:last-child {
    border-bottom: none;
  }

  .global-nav a {
    display: block;
    padding: 15px 20px;
    width: 100%;
  }

  .global-nav a::after {
    display: none; /* スマホでは下線アニメーションなし */
  }
}

@media screen and (max-width: 414px) {
  .pc {
    display: none;
  }

  .sp {
    display: block;
  }
}
