@charset "UTF-8";

/* 2026-06-16 楽天ヘッダー・フッター完全合わせ修正版
   目的：
   ・rakuten.html と同じヘッダー/フッターを、旧ページでも崩さず表示する
   ・マウスオーバーメニューは通常時は必ず非表示
   ・フッターロゴの巨大化を防止
*/

/* ヘッダーのプルダウンが親要素で切れないようにする */
#header,
#header .header_inner,
#header .header_wrap,
#header .h_btn_wrap,
#header .h-menu,
#header .h-menu > li {
  overflow: visible !important;
}

#header .h_btn_wrap .h-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0 !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#header .h_btn_wrap .h-menu > li {
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

#header .h_btn_wrap .h-menu > li > a {
  display: block !important;
  padding: 14px 12px !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  background: transparent !important;
}

#header .h_btn_wrap .h-menu-has-sub > a::after {
  content: "▼" !important;
  display: inline-block !important;
  margin-left: 6px !important;
  font-size: 10px !important;
  vertical-align: middle !important;
}

/* 通常時は必ず非表示 */
#header .h_btn_wrap .h-sub-menu {
  position: absolute !important;
  left: 50% !important;
  top: 100% !important;
  transform: translateX(-50%) !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 310px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 8px 0 !important;
  background: #fff !important;
  border: 1px solid rgba(0, 75, 147, .18) !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .18) !important;
  z-index: 999999 !important;
}

/* PCのマウスオーバー時だけ表示。focus-within は出っぱなしの原因になるので使わない */
@media (min-width: 981px) {
  #header .h_btn_wrap .h-menu-has-sub:hover > .h-sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

#header .h_btn_wrap .h-sub-menu li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

#header .h_btn_wrap .h-sub-menu a {
  display: block !important;
  padding: 11px 16px !important;
  color: #004b93 !important;
  background: #fff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  border-bottom: 1px solid #eef3f8 !important;
  font-size: 14px !important;
}

#header .h_btn_wrap .h-sub-menu li:last-child a {
  border-bottom: 0 !important;
}

#header .h_btn_wrap .h-sub-menu a:hover {
  background: #f2f7fc !important;
}

/* スマホではPC用プルダウンは開かない。ハンバーガー側を使用 */
@media (max-width: 980px) {
  #header .h_btn_wrap .h-sub-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* フッター：旧CSSの影響を受けないようにリセット */
#footer.site-footer-menu-renew,
.site-footer-menu-renew {
  background: #004b93 !important;
  color: #fff !important;
  padding: 38px 0 !important;
  box-sizing: border-box !important;
  clear: both !important;
}

.site-footer-menu-renew *,
.site-footer-menu-renew *::before,
.site-footer-menu-renew *::after {
  box-sizing: border-box !important;
}

.site-footer-menu-renew .footer-menu-renew-inner {
  width: min(1180px, 92%) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 280px 1fr !important;
  gap: 36px !important;
  align-items: start !important;
}

.site-footer-menu-renew .footer-menu-renew-logo {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  width: 280px !important;
  max-width: 100% !important;
}

/* ロゴ巨大化防止 */
.site-footer-menu-renew .footer-menu-renew-logo > a {
  display: block !important;
  width: 260px !important;
  max-width: 100% !important;
  height: auto !important;
  text-decoration: none !important;
}

.site-footer-menu-renew .footer-menu-renew-logo > a > img {
  display: block !important;
  width: 260px !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer-menu-renew .footer-contact-buttons {
  display: grid !important;
  gap: 10px !important;
  width: 260px !important;
  max-width: 100% !important;
}

.site-footer-menu-renew .footer-contact-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  border-radius: 999px !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-footer-menu-renew .footer-contact-btn--tel {
  background: #20a700 !important;
}

.site-footer-menu-renew .footer-contact-btn--mail {
  background: #ff5a22 !important;
}

.site-footer-menu-renew .footer-menu-renew-nav,
.site-footer-menu-renew .footer-menu-renew-nav--merged {
  display: grid !important;
  grid-template-columns: minmax(210px, .75fr) minmax(520px, 1.55fr) !important;
  gap: 42px !important;
  align-items: start !important;
}

.site-footer-menu-renew .footer-menu-group h6 {
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  margin: 0 0 12px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid rgba(255,255,255,.35) !important;
  background: transparent !important;
  line-height: 1.5 !important;
}

.site-footer-menu-renew .footer-menu-group ul,
.site-footer-menu-renew .footer-service-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.site-footer-menu-renew .footer-menu-group li {
  margin: 0 0 7px !important;
  padding: 0 !important;
  background: none !important;
  list-style: none !important;
}

.site-footer-menu-renew .footer-menu-group a {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  display: inline-block !important;
  position: relative !important;
  padding-left: 14px !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 14px !important;
}

.site-footer-menu-renew .footer-menu-group a::before {
  content: "›" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  font-weight: 900 !important;
  color: #fff !important;
}

.site-footer-menu-renew .footer-menu-group a:hover {
  text-decoration: underline !important;
}

.site-footer-menu-renew .footer-service-plan-columns {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px 30px !important;
}

.copy_area {
  padding: 18px 16px !important;
  text-align: center !important;
  background: #fff !important;
  clear: both !important;
}

.copy_area .copy,
p.copy {
  margin: 0 !important;
  color: #333 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  text-align: center !important;
}

@media (max-width: 1120px) {
  #header .h_btn_wrap .h-menu > li > a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 13px !important;
  }

  .site-footer-menu-renew .footer-menu-renew-inner,
  .site-footer-menu-renew .footer-menu-renew-nav,
  .site-footer-menu-renew .footer-menu-renew-nav--merged {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .site-footer-menu-renew .footer-service-plan-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .site-footer-menu-renew .footer-menu-renew-inner {
    width: 100% !important;
    padding: 0 22px !important;
  }

  .site-footer-menu-renew .footer-menu-renew-logo {
    width: 100% !important;
  }

  .site-footer-menu-renew .footer-menu-renew-logo > a,
  .site-footer-menu-renew .footer-menu-renew-logo > a > img,
  .site-footer-menu-renew .footer-contact-buttons {
    width: min(100%, 300px) !important;
  }

  .site-footer-menu-renew .footer-service-plan-columns {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .site-footer-menu-renew .footer-service-list a {
    white-space: normal !important;
  }
}
/* 2026-06-16 フッター：プライバシーポリシー改行・下ずれ修正 */
.site-footer-menu-renew .footer-menu-group--company {
  min-width: 260px !important;
}

.site-footer-menu-renew .footer-menu-group--company a {
  white-space: nowrap !important;
}

.site-footer-menu-renew .footer-menu-group--company li {
  line-height: 1.5 !important;
}

.site-footer-menu-renew .footer-menu-renew-nav,
.site-footer-menu-renew .footer-menu-renew-nav--merged {
  grid-template-columns: minmax(270px, .8fr) minmax(560px, 1.55fr) !important;
}

@media (max-width: 1120px) {
  .site-footer-menu-renew .footer-menu-group--company {
    min-width: 0 !important;
  }

  .site-footer-menu-renew .footer-menu-group--company a {
    white-space: normal !important;
  }

  .site-footer-menu-renew .footer-menu-renew-nav,
  .site-footer-menu-renew .footer-menu-renew-nav--merged {
    grid-template-columns: 1fr !important;
  }
}
/* 2026-06-16 フッター：3箇所の縦ズレ再調整 */
@media (min-width: 1121px) {
  .site-footer-menu-renew .footer-menu-renew-inner {
    grid-template-columns: 300px minmax(0, 1fr) !important;
    gap: 48px !important;
    align-items: start !important;
  }

  .site-footer-menu-renew .footer-menu-renew-nav,
  .site-footer-menu-renew .footer-menu-renew-nav--merged {
    grid-template-columns: 310px minmax(0, 1fr) !important;
    gap: 48px !important;
    align-items: start !important;
  }

  .site-footer-menu-renew .footer-menu-group ul,
  .site-footer-menu-renew .footer-service-list {
    display: grid !important;
    grid-auto-rows: 24px !important;
    row-gap: 8px !important;
    align-items: start !important;
  }

  .site-footer-menu-renew .footer-service-plan-columns {
    display: grid !important;
    grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr) !important;
    gap: 0 44px !important;
    align-items: start !important;
  }

  .site-footer-menu-renew .footer-menu-group li {
    display: block !important;
    height: 24px !important;
    min-height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 24px !important;
  }

  .site-footer-menu-renew .footer-menu-group a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    padding-left: 16px !important;
    white-space: nowrap !important;
    vertical-align: top !important;
  }

  .site-footer-menu-renew .footer-menu-group a::before {
    top: 50% !important;
    transform: translateY(-50%) !important;
    line-height: 1 !important;
  }

  .site-footer-menu-renew .footer-menu-group--company {
    min-width: 310px !important;
  }

  .site-footer-menu-renew .footer-menu-group--service-plan {
    min-width: 650px !important;
  }
}

@media (max-width: 1120px) {
  .site-footer-menu-renew .footer-menu-group ul,
  .site-footer-menu-renew .footer-service-list {
    display: block !important;
  }

  .site-footer-menu-renew .footer-menu-group li {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 8px !important;
    line-height: 1.5 !important;
  }

  .site-footer-menu-renew .footer-menu-group a {
    display: inline-block !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.5 !important;
    white-space: normal !important;
  }

  .site-footer-menu-renew .footer-menu-group a::before {
    top: 0 !important;
    transform: none !important;
  }
}
