/* =========================================================
   Header
========================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  height: var(--header-height);
  transition: box-shadow 0.25s ease;
}

header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

body {
  padding-top: var(--header-height);
}

header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 50px;
}

header .header-logo {
  width: 60px;
}

header .header-logo img {
  width: 100%;
  height: auto;
  display: block;
}

header .header-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

header .header-contact-info {
  text-align: right;
}

header .header-contact-info .header-tel {
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-medium);
  font-size: 24px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

header .header-contact-info .header-tel-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

header .header-contact-info .header-hours {
  font-family: var(--font-family-body);
  font-size: var(--font-size-fixed-xs);
  color: #000;
  font-weight: var(--font-weight-bold);
  margin: 0;
}

header .header-cta-btn {
  display: inline-block;
    padding: 8px 65px;
    background: #1A4780;
    color: #fff;
    font-family: var(--font-family-body);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-fixed-sm);
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

header .header-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  width: 56px;
  height: 50px;
  padding: 10px;
  border: none;
  background: transparent;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  margin: 8px 0;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.hamburger span,
.hamburger.is-active span {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 1024px) {
  header .header-logo {
    width: 60px;
  }

  header .header-inner {
    gap: 20px;
  }

  /* 1024px以下では「今すぐご相談」ボタンを非表示 */
  header .header-cta-btn {
    display: none;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 70px;
  }

  header .header-inner {
    padding: 0 12px;
    gap: 8px;
  }

  header .header-logo {
    width: 40px;
    min-width: 40px;
  }

  header .header-right {
    display: flex;
    min-width: 0;
  }

  header .header-contact-info {
    min-width: 0;
    text-align: right;
  }

  header .header-contact-info .header-tel {
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  header .header-contact-info .header-tel-icon {
    width: 18px;
    height: 18px;
  }

  header .header-contact-info .header-hours {
    font-size: 10px;
    line-height: 1.3;
    word-break: keep-all;
  }

  .hamburger {
    display: none;
  }
}

/* =========================================================
   Existing styles
========================================================= */

.menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  transition: right 0.3s ease-in-out;
}

.menu-overlay.active {
  right: 0;
}

.menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background-color: var(--color-main);
  padding: 80px 30px 40px;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.menu-overlay.active .menu-content {
  transform: translateX(0);
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: #ffffff;
  background: transparent;
  border: none;
  z-index: 1000;
}

.menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.menu-nav li {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.menu-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  display: block;
  padding: 15px 0;
  transition: color 0.3s ease;
}
.menu-nav a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* =========================================================
   追従型アイコン
========================================================= */

.fixed-icons {
  position: fixed;
  right: 0px;
  top: 91%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #00b900;
  padding: 20px;
  border-radius: 24px 0 0 24px;
}

.fixed-icons .btn-fixed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 30px;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.25);
  padding: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fixed-icons .btn-fixed:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.35);
}

.fixed-icons .btn-fixed p {
  color: var(--color-main);
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
}

.fixed-icons .btn-icon-line {
  width: 28px;
  height: 28px;
}

.fixed-icons .btn-icon-arrow {
  width: 31px;
  height: 31px;
}

.fixed-icons > p {
  color: white;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .fixed-icons {
    padding: 16px;
  }

  .fixed-icons .btn-fixed p {
    font-size: 14px;
  }

  .fixed-icons .btn-icon-line {
    width: 24px;
    height: 24px;
  }

  .fixed-icons > p {
    font-size: 11px;
  }
}

@media (max-width: 767px) {
  .fixed-icons {
    padding: 12px;
    opacity: 0;
    transform: translateX(100%) translateY(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }

  .fixed-icons.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
    pointer-events: auto;
  }

  .fixed-icons .btn-fixed {
    gap: 8px;
  }

  .fixed-icons .btn-fixed p {
    font-size: 12px;
  }

  .fixed-icons .btn-icon-line {
    width: 20px;
    height: 20px;
  }

  .fixed-icons .btn-icon-arrow {
    width: 14px;
    height: 14px;
  }

  .fixed-icons > p {
    font-size: 10px;
  }
}