/**
 * btn.css
 */

/*************** ハンバーガーメニュー  ***************/
.sp-header .hamburger {
  width: 45px;
  height: 30px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  align-items: center;
  display: flex;
}

/* SP のみ表示、初期は隠す */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  padding: 80px 20px 40px;
  display: flex;
  flex-direction: column;
  /* ↓ スペース自動分配をやめる */
  justify-content: flex-start;
  gap: 40px; /* 要素同士の間隔を固定値で設定 */
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ハンバーガー／クローズアイコン */
.hamburger {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10000;
  right: 10px;
}

.hamburger .icon-close {
  display: none;
}
.hamburger.active .icon-hamburger {
  display: none;
}
.hamburger.active .icon-close {
  display: block;
}

/* ナビリンク */
.mobile-menu-nav {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: max-content;
}

.mobile-menu-nav > li:first-child {
  margin-bottom: 24px;
}

.mobile-subnav {
  list-style: none;
  margin-top: 16px;
}
.mobile-subnav li + li {
  margin-top: 12px;
}

/* ──────────────────────────
   モバイルメニュー内リンク：フォントをフッターと同じに
────────────────────────── */

.mobile-menu-nav > li > a {
  color: var(--blue_1, #29abe2);
  text-align: center;
  font-family: "Gothic A1", sans-serif;
  font-size: 23px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 1.6px;
  text-decoration: none;
}

/* 会社情報以下のサブメニュー */
.mobile-subnav a {
  color: #000;
  text-align: center;
  font-family: "Gothic A1", sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 1.3px;
}

/* 下線アニメーションはそのまま */
.mobile-menu-nav > li > a::after,
.mobile-subnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue_1, #29abe2);
  transition: width 0.3s ease;
}
.mobile-menu-nav > li > a:hover::after,
.mobile-subnav a:hover::after {
  width: 100%;
}

/* SNS */
.mobile-menu-social {
  display: flex;
  gap: 45px;
  justify-content: center;
}

.mobile-menu-social img {
  width: 30px;
  height: 30px;
}

/* お問合せボタン */
.mobile-menu.open > .aboutus-more {
  margin: 0;
}

.mobile-menu.open > .logo {
  margin: 0 auto;
}

.mobile-menu.open > .logo img {
  width: 100px;
  height: 100px;
  margin: -10px 0 0;
}

/* ブレイクポイント */
@media screen and (min-width: 1024px) {
  .hamburger,
  .mobile-menu {
    display: none !important;
  }
}

/*************** 銀色ボタン  ***************/
.info-more {
  text-align: center;
  margin-top: 40px;
}
.info-more .more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 204px;
  height: 52px;
  background: var(--silver, linear-gradient(90deg, #999 0%, #fff 50%));
  box-shadow: 5px 5px 8px 0 rgba(0, 0, 0, 0.2);
  color: #000;
  font-family: Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-decoration: none;
  line-height: normal;
}

/* 流れるグラデーションを全モアボタンに適用 */
.info-more .more-button {
  background: linear-gradient(90deg, #999 0%, #fff 50%, #999 100%);
  background-size: 200% 100%;
  background-position: 0 0;
  transition: background-position 0.8s ease;
}

/* ホバーで流れる */
.info-more .more-button:hover {
  background-position: 100% 0;
}

.company-section > .aboutus > .info-more .more-button {
  font-weight: 500;
}

.single-post .info-more {
  margin-bottom: 50px;
  position: relative;
  justify-content: center;
}

@media screen and (min-width: 1024px) {
  /* more と大きな“Information”を横並び */
  .info-more {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
  }
  .info-more .more-button {
    margin: 0; /* 左端に固定 */
  }

  .company-section .info-more .more-button {
    margin: 0 auto;
  }

  .single-post .info-more {
    margin-top: 4%;
  }
}

/*************** 青ボタン  ***************/
.aboutus-more {
  text-align: center;
  margin-top: 60px;
}

.aboutus-more .more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 350px;
  height: 70px;
  background: linear-gradient(90deg, #165e7c 0%, #29abe2 50.48%);
  box-shadow: 5px 5px 8px 0 rgba(0, 0, 0, 0.2);
  color: var(--white, #fff);
  font-family: "Gothic A1", sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-decoration: none;
  line-height: normal;
}

/* 流れるグラデーションを aboutus-more のボタンにも適用 */
.aboutus-more .more-button {
  background: linear-gradient(90deg, #165e7c 0%, #29abe2 50%, #165e7c 100%);
  background-size: 200% 100%;
  background-position: 0 0;
  transition: background-position 0.8s ease;
}

/* ホバーでグラデーションが流れる */
.aboutus-more .more-button:hover {
  background-position: 100% 0;
}

/*************** お問合せボタン  ***************/
@media screen and (min-width: 1024px) {
  .sp-header .contact-btn {
    display: flex; /* お問い合わせボタンを表示 */
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 80px;
    background: var(--blue_1, #29abe2);
    margin-left: 51px; /* SNS とボタンの間隔 */
    margin-right: 0;
  }
  .sp-header .contact-btn a {
    color: var(--white, #fff);
    text-align: center;
    font-family: "Gothic A1", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    line-height: normal;
  }

  .sp-header .contact-btn {
    margin-left: 51px; /* sns-icons とお問い合わせボタンの間隔 */
  }
  .sp-header .contact-btn a {
    color: var(--white, #fff);
    text-align: center;
    font-family: "Gothic A1", sans‑serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    line-height: normal;
  }

  .sp-header .contact-btn {
    position: relative;
    transition: background-color 1s ease;
  }
  /* a をブロックにして親にフィット */
  .sp-header .contact-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--white, #fff);
  }
  /* ホバーで背景色を少し濃く */
  .sp-header .contact-btn:hover {
    background-color: #1f6f9e; /* お好みで調整してください */
  }
}
