@charset "UTF-8";

/* /recommend/ 202607 CP tabs only. Prefix is isolated to avoid header/footer interference. */
.cp-rec202607 {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}

.cp-rec202607-stage {
  padding: 0 0 64px;
}

.cp-rec202607-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 12px;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.cp-rec202607-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid #d56a6a;
  border-radius: 999px;
  background: #ffffff;
  color: #d56a6a;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cp-rec202607-tab.is-active {
  background: #d56a6a;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(213, 106, 106, 0.22);
}

.cp-rec202607-tab:focus-visible {
  outline: 3px solid rgba(213, 106, 106, 0.32);
  outline-offset: 3px;
}

.cp-rec202607-panel[hidden] {
  display: none !important;
}

.cp-rec202607-panel.is-active {
  display: block;
}

.cp-rec202607 .cp-page {
  min-height: 0;
}

@media screen and (max-width: 750px) {
  .cp-rec202607-stage {
    padding-bottom: 44px;
  }

  .cp-rec202607-tabs {
    gap: 8px;
    padding: 12px 14px;
  }

  .cp-rec202607-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 15px;
  }
}

/* 202607 recommend preview header/menu safety patch
   Keep the clinic switch tabs behind the global hamburger menu,
   and force the header/logo strip to stay white on this page. */
body header,
body header .head-area2,
body header .head-area2 > div,
body header .pc-header-layout,
body header .pc-header-layout nav,
body header .header-layout-logo,
body header .header-layout-logo a,
body header .scroll-head,
body header .scroll-head > div,
body header .side-menu-logo {
  background-color: #ffffff !important;
}

body header .head-area2,
body header .scroll-head {
  background: #ffffff !important;
}

/* The tabs should never appear above the opened hamburger menu. */
.cp-rec202607-tabs {
  z-index: 1;
}

body .fixed-menu {
  z-index: 10002 !important;
}

body header .side-menu-bg.menu-open {
  z-index: 10000 !important;
}

body header .side-menu-bg.menu-open .side-menu-logo,
body header .side-menu-bg.menu-open .side-menu-main {
  position: relative;
  z-index: 10001;
}

body header .side-menu-bg.menu-open .side-menu-logo {
  position: fixed;
  background-color: #ffffff !important;
}

@media screen and (max-width: 990px) {
  body header .head-area2,
  body header .scroll-head,
  body header .header-layout-logo,
  body header .header-layout-logo a {
    background-color: #ffffff !important;
  }
}

/* Disable the CP page body gradient on the recommend preview/page.
   The body gradient was showing blue through the header/logo area. */
html,
body {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

body::before,
body::after {
  background: none !important;
  background-image: none !important;
}

.cp-rec202607,
.cp-rec202607-stage,
.cp-rec202607 .cp-page {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

/* Active clinic tab emphasis: based on the original recommend page pink/brown tone. */
.cp-rec202607-tab {
  position: relative;
  border-width: 2px;
  border-color: #d56a6a;
  background: #ffffff;
  color: #d56a6a;
  box-shadow: 0 3px 10px rgba(90, 55, 45, 0.06);
}

.cp-rec202607-tab::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .2s ease, width .2s ease, margin-right .2s ease;
}

.cp-rec202607-tab.is-active {
  border-color: #d56a6a;
  background: #d56a6a;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(213, 106, 106, 0.34);
  transform: translateY(-1px);
}

.cp-rec202607-tab.is-active::before {
  content: "選択中";
  width: auto;
  height: auto;
  margin-right: 8px;
  padding: 3px 8px 2px;
  border-radius: 999px;
  background: #ffffff;
  color: #d56a6a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  opacity: 1;
}

.cp-rec202607-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 14px;
  height: 14px;
  background: #d56a6a;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

.cp-rec202607-tab:not(.is-active):hover {
  background: #fff7f7;
  color: #b95757;
  box-shadow: 0 6px 16px rgba(213, 106, 106, 0.16);
  transform: translateY(-1px);
}

@media screen and (max-width: 750px) {
  .cp-rec202607-tab {
    border-width: 2px;
  }

  .cp-rec202607-tab.is-active::before {
    margin-right: 5px;
    padding: 2px 6px 1px;
    font-size: 10px;
  }

  .cp-rec202607-tab.is-active::after {
    bottom: -8px;
    width: 12px;
    height: 12px;
  }
}

/* 202607 final tab color adjustment
   Corporate colors from the theme:
   --color-main #83C0CD / --color-accent #9D7D66 / --color-black #415558
   - Replace "選択中" label with a check mark
   - Remove drop shadows from tab buttons
*/
.cp-rec202607-tab {
  border-color: #83C0CD !important;
  background: #ffffff !important;
  color: #415558 !important;
  box-shadow: none !important;
  transform: none !important;
}

.cp-rec202607-tab::before {
  content: "" !important;
  width: 0 !important;
  height: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  opacity: 0 !important;
}

.cp-rec202607-tab.is-active {
  border-color: #83C0CD !important;
  background: #83C0CD !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
}

.cp-rec202607-tab.is-active::before {
  content: "✓" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  margin-right: 8px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #83C0CD !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
}

.cp-rec202607-tab.is-active::after {
  background: #83C0CD !important;
  box-shadow: none !important;
}

.cp-rec202607-tab:not(.is-active):hover {
  border-color: #9D7D66 !important;
  background: #F3F9FA !important;
  color: #415558 !important;
  box-shadow: none !important;
  transform: none !important;
}

.cp-rec202607-tab:focus-visible {
  outline-color: rgba(131, 192, 205, 0.45) !important;
}

@media screen and (max-width: 750px) {
  .cp-rec202607-tab.is-active::before {
    width: 18px !important;
    height: 18px !important;
    margin-right: 6px !important;
    font-size: 13px !important;
  }
}

/* 202607 tab color correction
   Corporate color from uploaded SAKURA Az CLINIC logo: #f08300
   - Active tab: orange fill + white text
   - Inactive tab: white fill + orange border/text
   - Check mark only, no text label
   - No drop shadow
*/
.cp-rec202607-tab {
  border-color: #f08300 !important;
  background: #ffffff !important;
  color: #f08300 !important;
  box-shadow: none !important;
  transform: none !important;
}

.cp-rec202607-tab::before {
  content: "" !important;
  width: 0 !important;
  height: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  opacity: 0 !important;
}

.cp-rec202607-tab.is-active {
  border-color: #f08300 !important;
  background: #f08300 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
}

.cp-rec202607-tab.is-active::before {
  content: "✓" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  margin-right: 8px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #f08300 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
}

.cp-rec202607-tab.is-active::after {
  background: #f08300 !important;
  box-shadow: none !important;
}

.cp-rec202607-tab:not(.is-active):hover {
  border-color: #f08300 !important;
  background: #fff7ef !important;
  color: #f08300 !important;
  box-shadow: none !important;
  transform: none !important;
}

.cp-rec202607-tab:focus-visible {
  outline-color: rgba(240, 131, 0, 0.35) !important;
}

@media screen and (max-width: 750px) {
  .cp-rec202607-tab.is-active::before {
    width: 18px !important;
    height: 18px !important;
    margin-right: 6px !important;
    font-size: 13px !important;
  }
}

/* 202607 SP page-top button
   Appears above the existing SP fixed footer, right side only on mobile. */
.cp-rec202607-pagetop {
  display: none;
}

@media screen and (max-width: 750px) {
  .cp-rec202607-pagetop {
    position: fixed;
    right: 14px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 2px solid #f08300;
    border-radius: 50%;
    background: #ffffff;
    color: #f08300;
    box-shadow: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .2s ease, color .2s ease;
  }

  .cp-rec202607-pagetop::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-top: 3px solid currentColor;
    border-left: 3px solid currentColor;
    transform: translateY(3px) rotate(45deg);
  }

  .cp-rec202607-pagetop.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .cp-rec202607-pagetop:active {
    background: #f08300;
    color: #ffffff;
  }

  body header .side-menu-bg.menu-open ~ .cp-rec202607-pagetop,
  body:has(header .side-menu-bg.menu-open) .cp-rec202607-pagetop {
    z-index: 1;
  }
}

/* 202607 LINE in-app browser fixed footer transparency fix
   LINE WebView may render the safe-area under the SP fixed footer as transparent.
   Add a dedicated white backing layer behind the existing SP fixed footer. */
.cp-rec202607-footer-safe-bg {
  display: none;
}

@media screen and (max-width: 750px) {
  html,
  body {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
  }

  body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body .sp_fixed_footer,
  body .sp_fixed_footer.disp_sp {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    z-index: 9997 !important;
  }

  body .sp_fixed_footer *,
  body .sp_fixed_footer.disp_sp * {
    background-clip: padding-box;
  }

  .cp-rec202607-footer-safe-bg {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9996;
    display: block;
    width: 100%;
    height: calc(104px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }

  .cp-rec202607-pagetop {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    z-index: 9998;
  }

  body header .side-menu-bg.menu-open ~ .cp-rec202607-footer-safe-bg,
  body:has(header .side-menu-bg.menu-open) .cp-rec202607-footer-safe-bg {
    z-index: 1;
  }
}
