@charset "UTF-8";
/* ==========================================================================
 * menu-tab.scss：治療法ページ「メニュー」ブロックのタブ＋商品プルダウン
 * ・初回の対象は「内服・外用・化粧品」（/treatment/treatment15/）
 * ・タブボタン・セレクトボックスのデザインは料金ページ（css/add.css の .p-price__tabbtn / .p-price__alink）に合わせる
 * ・SPファースト：ベースがSP、PCは @include pc（768px以上）で上書き
 * ・商品の見出し・写真・説明・料金表は既存の .treatment-menu-item をそのまま使う
 * ・JSは js/menu-tab.js
 * ========================================================================== */
.p-menu-tab {
  margin-top: 30px;
}
@media screen and (min-width: 768px) {
  .p-menu-tab {
    margin-top: 50px;
  }
}
.p-menu-tab [hidden] {
  display: none !important;
}

.p-menu-tab__list {
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  margin: 0 calc(50% - 50vw) 36px;
  padding: 0 4%;
  width: 100vw;
  height: 59px;
  border-bottom: 7px solid #d97f9d;
}
@media screen and (min-width: 768px) {
  .p-menu-tab__list {
    margin: 0 0 40px;
    padding: 0 128px;
    width: 100%;
    height: 85px;
    border-bottom-width: 10px;
  }
}

.p-menu-tab__btn {
  display: block;
  flex: 1;
  position: relative;
  height: 47px;
  border: none;
  background: linear-gradient(to bottom, #838383 0%, #636363 100%);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.03em;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.5;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
@media screen and (min-width: 768px) {
  .p-menu-tab__btn {
    height: 67px;
    font-size: 16px;
  }
}
.p-menu-tab__btn:first-child {
  border-radius: 5px 0 0;
}
@media screen and (min-width: 768px) {
  .p-menu-tab__btn:first-child {
    border-radius: 10px 0 0;
  }
}
.p-menu-tab__btn:last-child {
  border-radius: 0 5px 0 0;
}
@media screen and (min-width: 768px) {
  .p-menu-tab__btn:last-child {
    border-radius: 0 10px 0 0;
  }
}
.p-menu-tab__btn:focus-visible {
  outline: none;
}
.p-menu-tab__btn + .p-menu-tab__btn {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}
.p-menu-tab__btn[aria-selected=true], .p-menu-tab__btn[aria-selected=true] + .p-menu-tab__btn {
  border-left: none;
}
.p-menu-tab__btn[aria-selected=true] {
  height: 52px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(to bottom, #e4a1b7 0%, #da809e 100%);
  pointer-events: none;
}
@media screen and (min-width: 768px) {
  .p-menu-tab__btn[aria-selected=true] {
    height: 75px;
    border-radius: 10px 10px 0 0;
  }
}

.p-menu-tab__label {
  font-size: 18px;
}
@media screen and (min-width: 768px) {
  .p-menu-tab__label {
    font-size: 26px;
  }
}

.p-menu-tab__finder {
  margin: 0 4% 30px;
}
@media screen and (min-width: 768px) {
  .p-menu-tab__finder {
    margin: 0 0 40px;
  }
}

.p-menu-tab__finder-label {
  overflow: hidden;
  clip-path: inset(50%);
  position: absolute;
  margin: -1px;
  padding: 0;
  width: 1px;
  height: 1px;
  white-space: nowrap;
}

.p-menu-tab__select-wrap {
  position: relative;
  border: 1px solid #bbb;
}
@media screen and (min-width: 768px) {
  .p-menu-tab__select-wrap {
    margin: 0 auto;
    max-width: 400px;
  }
}
.p-menu-tab__select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-70%) rotate(45deg);
  width: 8px;
  height: auto;
  border-right: 1px solid #222;
  border-bottom: 1px solid #222;
  pointer-events: none;
  aspect-ratio: 1/1;
}

.p-menu-tab__select {
  margin: 0;
  padding: 0.5em 45px 0.5em 0.8em;
  width: 100%;
  border: none;
  border-radius: 0;
  background-color: #fff;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.p-menu-tab__select:focus-visible {
  outline: none;
}

.p-menu-tab__panel > .treatment-menu:first-of-type {
  margin-top: 0;
  border-top: 0;
}

.p-menu-tab__panel--single .treatment-menu:not(.is-current-menu),
.p-menu-tab__panel--single .treatment-menu-free,
.p-menu-tab__panel--single .treatment-menu-item:not(.is-current) {
  display: none;
}
.p-menu-tab__panel--single .treatment-menu-item.is-current {
  margin-bottom: 0;
  border-bottom: 0;
}

.p-menu-tab__back {
  margin-top: 50px;
}
@media screen and (min-width: 768px) {
  .p-menu-tab__back {
    margin-top: 70px;
  }
}
.p-menu-tab__back {
  text-align: center;
}
.p-menu-tab__back a {
  cursor: pointer;
}

.p-menu-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 15px;
  padding: 0;
  list-style: none;
}

.p-menu-badge__item {
  margin: 0;
  padding: 0.1em 1em;
  border: 1px solid #d57f99;
  border-radius: 50px;
  color: #d57f99;
  font-size: 0.8em;
}
