@charset "utf-8";

/* ===============================================
   Renewal Header Styles
   =============================================== */

/* ヘッダー全体 */
.renewal-header {
  background-color: #ffffff;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.renewal-header-container {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px;
}

/* ===============================================
   左側：ロゴエリア
   =============================================== */

.renewal-header-left {
  display: flex;
  align-items: center;
}

.renewal-header-logo-group {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: 40px;
}

.renewal-site-logo {
  margin: 0;
}

.renewal-site-logo a {
  display: block;
  line-height: 0;
}

.renewal-logo-img {
  height: 60px;
  width: auto;
  display: block;
}

/* Powered by エリア */
.renewal-powered-by {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.powered-text {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #666;
  line-height: 1;
}

.renewal-company-logo {
  height: 36px;
  width: auto;
  display: block;
}

/* ===============================================
   右側：メニュー・電話・CTAエリア
   =============================================== */

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

/* ナビゲーションメニュー */
.renewal-nav {
  height: 100%;
  display: flex;
  align-items: center;
}

.renewal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  height: 100%;
  align-items: center;
}

.renewal-menu li {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.renewal-menu a {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 0 8px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  height: 100%;
}

.renewal-menu a:hover {
  color: #004ea2;
}

/* 電話番号エリア */
.renewal-phone-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.renewal-phone-number {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #004ea2;
  text-decoration: none;
  line-height: 1.2;
  transition: opacity 0.3s ease;
}

.renewal-phone-number:hover {
  opacity: 0.8;
}

.renewal-phone-hours {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #666;
  margin: 0;
  line-height: 1;
}

/* お問い合わせボタン */
.renewal-cta-button {
  background-color: #004ea2;
  color: #ffffff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.renewal-cta-button:hover {
  background-color: #003a7a;
}

/* ハンバーガーメニューボタン */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* ===============================================
   レスポンシブ対応
   =============================================== */

@media screen and (max-width: 1024px) {
  .renewal-header-container {
    gap: 16px;
  }

  .renewal-header-right {
    gap: 20px;
  }

  .renewal-menu {
    gap: 16px;
  }

  .renewal-menu a {
    font-size: 14px;
  }

  .renewal-phone-number {
    font-size: 20px;
  }

  .renewal-cta-button {
    font-size: 18px;
    padding: 0 24px;
  }
}

@media screen and (max-width: 768px) {
  .renewal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .renewal-header-container {
    height: 64px;
    padding: 0 16px;
    position: relative;
  }

  .renewal-header-left {
    width: auto;
    justify-content: flex-start;
    margin-bottom: 0;
  }

  .renewal-header-logo-group {
    gap: 12px;
    flex-direction: row;
    margin-left: 0;
  }

  .renewal-logo-img {
    height: 40px;
  }

  .renewal-company-logo {
    height: 24px;
  }

  /* ハンバーガーメニューボタンを表示 */
  .hamburger-menu {
    display: flex;
  }

  /* モバイルメニューのスタイル */
  .renewal-header-right {
    position: fixed;
    top: 0;
    right: -75%;
    width: 75%;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 80px 24px 32px;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 999;
  }

  .renewal-header-right.active {
    right: 0;
  }

  /* オーバーレイ */
  .renewal-header-right::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 25%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: -1;
  }

  .renewal-header-right.active::before {
    opacity: 1;
    pointer-events: auto;
  }

  .renewal-nav {
    width: 100%;
    height: auto;
    margin-bottom: 32px;
  }

  .renewal-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
  }

  .renewal-menu li {
    height: auto;
  }

  .renewal-menu a {
    font-size: 16px;
    height: auto;
    padding: 16px 0;
    justify-content: flex-start;
  }

  .renewal-phone-area {
    text-align: center;
    padding: 24px 0;
    margin-bottom: 24px;
  }

  .renewal-phone-number {
    font-size: 28px;
  }

  .renewal-cta-button {
    width: 100%;
    height: 56px;
    font-size: 18px;
    border-radius: 4px;
  }
}

@media screen and (max-width: 480px) {
  .renewal-header-logo-group {
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }

  .powered-text {
    font-size: 10px;
  }

  .renewal-logo-img {
    height: 35px;
  }

  .renewal-company-logo {
    height: 20px;
  }

  .renewal-phone-number {
    font-size: 18px;
  }

  .renewal-phone-hours {
    font-size: 11px;
  }
}
