/*============================================================
  予約ボタン共通（WEB予約 / LINE予約）  TSC-49
  部品: /assets/include/reserve-buttons.php
  色: WEB #DD5F7F / LINE #66A766 / お問い合わせ #A89D83 / 電話 #5A8DC9
  ※ is_mobile() は使わず、CSS の幅で PC/SP を出し分ける（ページキャッシュ対策 TSC-45）
============================================================*/
.rb__badge {
  display: block;
  background: #fff;
  border-radius: 3px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.rb--web .rb__badge { color: #DD5F7F; }
.rb--line .rb__badge { color: #66A766; }

/*--------------------------------
  (a) PC ヘッダー
--------------------------------*/
#header_nav ul li#header_nav_reserve,
#header_nav ul li#header_nav_line {
  flex: 0 0 auto;           /* 狭い幅で潰れないよう固定（先に畳むのは下の段階表示） */
  width: 178px;
  min-width: 0;
  max-width: none;
  margin-right: 15px;
}
#header_nav ul li#header_nav_line { margin-right: 2.4rem; }
/* com.css:3832 の「body header #header_nav_reserve a { padding-top:.9rem !important }」に勝つため !important が必要 */
#header_nav ul li#header_nav_reserve a,
#header_nav ul li#header_nav_line a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 50px;
  padding: 10px 8px 8px !important;
  border-radius: 4px;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}
#header_nav ul li#header_nav_reserve a { background-color: #DD5F7F; }
#header_nav ul li#header_nav_line a { background-color: #66A766; }
#header_nav ul li#header_nav_reserve a .rb__label,
#header_nav ul li#header_nav_line a .rb__label {
  display: block;
  font-weight: 600;
  letter-spacing: 0.96px;
  opacity: 1;
  font-size: 18px;
  white-space: nowrap;
}
#header_nav ul li#header_nav_reserve a .rb__badge,
#header_nav ul li#header_nav_line a .rb__badge {
  width: 92px;
  padding: 2px 0;
  opacity: 1;
  font-size: 11px;
  letter-spacing: 0;
  white-space: nowrap;
}
#header_nav ul li#header_nav_new a { white-space: nowrap; }
/* 幅ごとの段階表示（連続縮小はしない）
   1400以上: ボタン178 / 1200-1399: 140 / 813-1199: 120（札は80）
   1100未満: 「初めての方へ」を畳む（ハンバーガー内にある） / 960未満: 電話番号も畳む（右サイドの電話ボタンがある） */
@media print, screen and (min-width: 813px) and (max-width: 1399px) {
  #header_nav ul li#header_nav_reserve,
  #header_nav ul li#header_nav_line { width: 140px; margin-right: 8px; }
  #header_nav ul li#header_nav_line { margin-right: 1.6rem; }
  #header_nav ul li#header_nav_reserve a .rb__label,
  #header_nav ul li#header_nav_line a .rb__label { font-size: 16px; letter-spacing: 0.5px; }
  #header_nav ul li#header_nav_reserve a .rb__badge,
  #header_nav ul li#header_nav_line a .rb__badge { width: 80px; }
  #header_nav ul li#header_nav_new { margin-right: 1.2rem; }
}
@media print, screen and (min-width: 813px) and (max-width: 1199px) {
  #header_nav ul li#header_nav_reserve,
  #header_nav ul li#header_nav_line { width: 120px; }
  #header_nav ul li#header_nav_reserve a .rb__label,
  #header_nav ul li#header_nav_line a .rb__label { font-size: 15px; letter-spacing: 0; }
  #header_nav ul li#header_nav_reserve a .rb__badge,
  #header_nav ul li#header_nav_line a .rb__badge { width: 84px; }
}
@media print, screen and (min-width: 813px) and (max-width: 1099px) {
  #header_nav ul li#header_nav_new { display: none; }
}
@media print, screen and (min-width: 813px) and (max-width: 959px) {
  #header_nav ul li#header_nav_tel { display: none; }
}
@media print, screen and (min-width: 813px) {
  #header_nav ul li#header_nav_reserve a:hover { background-color: #BF4161; }
  #header_nav ul li#header_nav_line a:hover { background-color: #488948; }
}

/*--------------------------------
  (b) SP 固定バー（PC の右サイド縦並びは従来どおり）
--------------------------------*/
#side_navigation ul li .rb__badge { display: none; }
#side_navigation ul li a i img { display: block; width: 100%; height: 100%; }
@media print, screen and (min-width: 813px) {
  #side_navigation ul li.reserve a i img,
  #side_navigation ul li.line a i img,
  #side_navigation ul li.contact a i img { width: 24px; height: 24px; }
  #side_navigation ul li.line a .rb__label { font-size: 11px; }
}
@media print, screen and (max-width: 812px) {
  #side_navigation ul {
    flex-wrap: nowrap;
    gap: 1px;
    height: 64px;
    background: #fff;
  }
  #side_navigation ul li { margin: 0; width: auto; }
  /* Figma 3576-697（375幅で WEB・LINE 128px / 電話・問合わせ 58px）の比で伸縮 */
  #side_navigation ul li.reserve,
  #side_navigation ul li.line { flex: 128 1 0; min-width: 0; width: auto; }
  #side_navigation ul li.tel,
  #side_navigation ul li.contact { flex: 58 1 0; min-width: 0; width: auto; }
  #side_navigation ul li a,
  #side_navigation ul li.reserve a,
  #side_navigation ul li.line a {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    height: 100%;
    padding: 0 2px;
  }
  #side_navigation ul li a i,
  #side_navigation ul li.reserve a i,
  #side_navigation ul li.line a i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 17px;
    height: 17px;
    margin: 0;
  }
  #side_navigation ul li.tel a i,
  #side_navigation ul li.contact a i { width: 18px; height: 18px; }
  #side_navigation ul li.tel a i svg { width: 18px; height: 18px; }
  #side_navigation ul li a span,
  #side_navigation ul li.reserve a span,
  #side_navigation ul li.line a span {
    width: auto;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.72px;
    text-align: center;
    white-space: nowrap;
  }
  #side_navigation ul li.reserve a .rb__label,
  #side_navigation ul li.line a .rb__label {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.95px;
    white-space: nowrap;
  }
  #side_navigation ul li.reserve a .rb__badge,
  #side_navigation ul li.line a .rb__badge {
    display: block;
    width: 74px;
    margin-top: 3px;
    padding: 2px 0;
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0.95px;
    white-space: nowrap;
  }
}
/* 固定バーが実際に出ているページだけ、本文の末尾に余白を足す。
   バーを隠すページ（contact / reserve は translateY(100%)、kids LP・wldd LP は display:none）には付けない */
@media print, screen and (max-width: 812px) {
  body:has(#side_navigation.show):not(.contact):not(.reserve):not(.kids-hair-removal):not(.wldd-lp):not(:has(.kids-hair-removal #side_navigation)):not(:has(.wldd-lp #side_navigation)) {
    padding-bottom: 64px;
  }
}

/*--------------------------------
  (c) フッター（PC 3ボタン。SP は固定バーがあるため従来どおり非表示）
--------------------------------*/
footer .footer_btn.footer_btn--reserve {
  display: flex;
  gap: 30px;
  margin: 0 0 3rem;
  padding-top: 14px;
}
@media print, screen and (max-width: 812px) {
  footer .footer_btn.footer_btn--reserve { display: none; }
}
footer .footer_btn--reserve li { flex: 1 1 0; width: auto; position: relative; }
footer .footer_btn--reserve li a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 6px 70px 0 20px;
  border-radius: 4px;
  color: #fff;
  text-align: center;
}
footer .footer_btn--reserve li a::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 70.7px;
  height: 8px;
  transform: translateY(-50%);
  background: url('/assets/images/reserve_footer_arrow.svg') center / contain no-repeat;
  transition: transform 0.3s;
}
footer .footer_btn--reserve li a:hover::after { transform: translate(3px, -50%); }
footer .footer_btn--reserve .rb__label {
  display: block;
  font-size: 22.5px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: 0.04em;
}
footer .footer_btn--reserve .rb__en {
  display: block;
  font-size: 13.5px;
  line-height: 1.3;
  opacity: 0.8;
  letter-spacing: 0.02em;
}
footer .footer_btn--reserve .rb__badge {
  margin-top: 6px;
  padding: 2px 14px;
  font-size: 13px;
}
footer .footer_btn--reserve .rb--web a { background: #DD5F7F; }
footer .footer_btn--reserve .rb--line a { background: #66A766; }
footer .footer_btn--reserve .rb--contact a { background: #A89D83; }
footer .footer_btn--reserve .rb--web a:hover { background: #BF4161; }
footer .footer_btn--reserve .rb--line a:hover { background: #488948; }
footer .footer_btn--reserve .rb--contact a:hover { background: #8A7F65; }
footer .footer_btn--reserve .rb__balloon {
  position: absolute;
  z-index: 1;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 5px;
  border-radius: 3px;
  background: #fff;
  color: #66A766;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
footer .footer_btn--reserve .rb__balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10.4px;
  height: 9px;
  margin-left: -5.2px;
  background: url('/assets/images/reserve_balloon_triangle.svg') center / contain no-repeat;
  transform: rotate(180deg);
}
