:root {
  --brand-blue: #2f7ad9;
  --blue-600: #2563eb;
  --blue-50: #eef3fe;

  --line-600: #06C755;
  --line-50: #ebfbf2;

  --red-600: #ec413e;
  --red-50: #fff0f0;

  --text: #1f2937;
  --border: #e5e7eb;
}

header .gnav,
header .pnav {
  font-family: "Yu Gothic Medium", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

header .gnav ul li a span {
  white-space: nowrap;
}

header .custom-btn {
  box-sizing: border-box;
  justify-content: center;
}

header .custom-btn i {
  flex: 0 0 42px;
  width: 42px;
  text-align: center;
  line-height: 1;
}

@media screen and (min-width: 1280px) and (max-width: 1599px) {
  header .logo {
    left: 24px;
    max-width: 240px;
  }

  header .custom-btn {
    min-width: 220px;
    padding: 13px 16px;
    font-size: 15px;
  }

  header .custom-btn i {
    flex-basis: 36px;
    width: 36px;
  }

  header .gnav ul li {
    font-size: 1.35rem;
    letter-spacing: 0.06em;
  }

  header .gnav ul li a {
    padding: 24px 0;
  }

  header .gnav ul li a span {
    padding: 0 18px;
  }
}

@media screen and (min-width: 1280px) and (max-width: 1439px) {
  header .custom-btn {
    min-width: 205px;
    padding: 12px 14px;
    font-size: 14px;
  }

  header .custom-btn i {
    flex-basis: 32px;
    width: 32px;
  }

  header .gnav ul li {
    font-size: 1.3rem;
    letter-spacing: 0.04em;
  }

  header .gnav ul li a span {
    padding: 0 12px;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1279px) {
  header .logo {
    position: static;
    max-width: none;
    height: 60px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    transform: none;
  }

  header .logo img {
    width: 100%;
    max-width: 133px;
    margin-left: auto;
    margin-right: auto;
  }

  header .spmenu_btn {
    display: block;
  }

  header .pnav {
    display: none;
  }

  header .gnav {
    position: fixed;
    display: none;
    z-index: 999;
    width: 100%;
    height: 100%;
    top: 60px;
    padding-top: 1px;
    background: #fff;
    overflow-y: scroll;
  }

  header .gnav::after {
    content: "";
    width: 100%;
    height: 1px;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to right, #3091ce 0%, #0b4281 100%);
  }

  header .gnav ul {
    flex-wrap: wrap;
    padding: 0;
    background: #fff;
  }

  header .gnav ul li {
    width: 100%;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
  }

  header .gnav ul li a {
    display: block;
    padding: 20px 0;
    text-align: center;
  }

  header .gnav ul li a span,
  header .gnav ul li+li span {
    padding: 0;
    border-left: none;
  }

  header .gnav ul li.nav_pc {
    display: none;
  }

  header .gnav ul li.nav_sp {
    display: block;
  }

  header .gnav .nav_sp a.custom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin-right: 0;
    padding: 20px 16px;
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 15px;
    text-align: center;
  }

  header .gnav .nav_sp a i {
    flex: 0 0 16px;
    width: 16px;
    font-size: 16px;
    line-height: 1;
  }

  #main_contents {
    margin-top: 60px;
  }
}


.button-area {
  padding-top: 1rem;
}

/* 共通ボタン（形・余白・配置） */
.custom-btn {
  display: inline-flex;
  /* アイコンと文字を横並び */
  align-items: center;
  /* 縦中央揃え */
  gap: 8px;
  /* アイコンと文字の間隔 */
  padding: 15px 20px;
  /* ボタン内余白 */
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  border-radius: 9999px;
  /* pill型に統一 */
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
  min-width: 260px;
}

.custom-btn:hover {
  opacity: 0.85;
  /* 共通hover（薄く） */
  text-decoration: none;
}


/* LINE（緑） */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* アイコンとの間隔 */
  padding: 14px 20px;
  /* ボタンのサイズ */
  background-color: #06C755;
  /* LINEグリーン */
  color: #fff;
  border: none;
  border-radius: 9999px;
  /* カプセル型 */
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-right: 1rem;
}

.btn-line:hover {
  background-color: #05b34c;
  /* hover時 */
  transform: translateY(-1px);
}

.btn-line i {
  font-size: 28px;
  /* 現状40px → ボタンに合わせて少し小さく推奨 */
  color: #fff;
  /* アイコンも白 */
  line-height: 1;
}

/* 資料請求（黄） */
.btn-download {
  background: #2f7ad9;
  color: #fff;
  border-color: rgba(245, 158, 11, .25);
  margin-right: 1rem;
}

/* 電話（赤系） */
.btn-phone {
  background: #c9302c;
  /* Bootstrap Dangerの濃い色 */
  color: #fff;
  border-color: rgba(201, 48, 44, .3);
  line-height: 1.2;
  margin-right: 1rem;
}

/* WEB無料査定（青） */
.btn-assessment {
  background: #961717;
  color: #fff;
  border-color: rgba(0, 0, 0, 0);
  margin-right: 1rem;
}

/* すでに :root と .custom-btn / .btn-line / .btn-download / .btn-assessment を定義済みなら、下だけ追加でOK */
@media (max-width: 768px) {
  .gnav .nav_sp a.custom-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid var(--border);
    text-align: center;
  }

  .gnav .nav_sp a.btn-download {
    background: #ffe8b3;
    color: var(--amber-600);
    border-color: rgba(245, 158, 11, .25);
  }

  .gnav .nav_sp a.btn-assessment {
    background: var(--brand-blue);
    color: #fff;
    border-color: transparent;
  }

  /* アイコンサイズの微調整 */
  .gnav .nav_sp a i {
    font-size: 16px;
    flex-basis: 16px;
    width: 16px;
    line-height: 1;
  }
}

@media (max-width: 768px) {
  .gnav .nav_sp a.custom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    /* ← これで中央寄せ */
    gap: 8px;
    width: 100%;
    padding: 20px 16px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    /* 複数行でも中央 */
    border: 1px solid var(--border);
    border-radius: 0;
    /* 丸みなし */
  }

  .gnav .nav_sp a i {
    font-size: 16px;
    line-height: 1;
  }
}
