/* 症例詳細リニューアル（single-case.php） */
.p-case {
  --p-case-grape: #493A46;
  --p-case-base: #EEE9E5;
  --p-case-band: #F5F0EB;
  --p-case-inset: #F9F6F3;
  --p-case-nude: #D8C1B2;
  --p-case-black: #07070B;
  --p-case-ink: #2A2520;
  --p-case-white: #fff;
  --p-case-muted: #8c847e;
  --p-case-line: #E3DCD4;
  --p-case-en: 'Cormorant Garamond', serif;
  background: var(--p-case-base);
  color: var(--p-case-black);
  line-height: 1.9;
  font-size: 16px;
}

.p-case a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s, color .2s, border-color .2s, background .2s;
}

.p-case a:hover {
  opacity: .7;
}

.p-case img {
  max-width: 100%;
  height: auto;
  display: block;
}

.p-case-container {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.p-case-narrow {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.p-case-sec {
  padding: 88px 0;
}

.p-case-sec--white {
  background: var(--p-case-white);
}

.p-case-sec--band {
  background: var(--p-case-band);
}

.p-case-sec-head {
  text-align: center;
  margin-bottom: 40px;
}

.p-case-sec-head__en {
  display: block;
  font-family: var(--p-case-en);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--p-case-nude);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

.p-case-sec-head__jp {
  font-size: 22px;
  font-weight: 500;
  color: var(--p-case-black);
  letter-spacing: .14em;
  line-height: 1.5;
  margin: 0;
}

/* Breadcrumb */
.p-case-breadcrumb {
  padding: 160px 0 0;
  font-size: 11px;
  color: var(--p-case-muted);
  letter-spacing: .04em;
  background: var(--p-case-white);
}

@media screen and (max-width: 1540px) {
  .p-case-breadcrumb {
    padding-top: 120px;
  }
}
.p-case-breadcrumb ol {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.p-case-breadcrumb ol::-webkit-scrollbar {
  display: none;
}

.p-case-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.p-case-breadcrumb li + li::before {
  content: ">";
  color: var(--p-case-muted);
  font-weight: 300;
}

.p-case-breadcrumb a {
  color: var(--p-case-muted);
}

.p-case-breadcrumb [aria-current="page"] {
  color: var(--p-case-black);
}

/* Hero */
.p-case-hero {
  background: var(--p-case-white);
  padding: 28px 0 4px;
  text-align: left;
}

.p-case-hero__title {
  font-size: 24px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--p-case-black);
  letter-spacing: .06em;
  margin: 0 0 20px;
}

.p-case-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-case-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--p-case-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--p-case-ink);
  background: var(--p-case-white);
  letter-spacing: .05em;
}

.p-case-tag:hover {
  color: var(--p-case-grape);
  border-color: var(--p-case-grape);
  opacity: 1;
}

/* Intro */
.p-case-intro {
  background: var(--p-case-white);
  padding: 40px 0 80px;
}

.p-case-intro__grid {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: start;
}

.p-case-intro__media {
  position: sticky;
  top: 32px;
}

.p-case-gallery__main {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--p-case-inset);
  margin: 0;
}

.p-case-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-case-gallery__when {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, .94);
  color: var(--p-case-black);
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: .06em;
  font-weight: 500;
}

.p-case-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.p-case-gallery__thumbs.is-single {
  display: none;
}

.p-case-gallery__thumb {
  width: 62px;
  height: 78px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--p-case-line);
  padding: 0;
  opacity: .55;
  transition: opacity .2s, border-color .2s;
  background: none;
  cursor: pointer;
}

.p-case-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-case-gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--p-case-grape);
}

.p-case-gallery__thumb:hover {
  opacity: 1;
}

.p-case-intro__body {
  display: flex;
  flex-direction: column;
}

.p-case-subsec {
  padding: 32px 0;
}

.p-case-subsec:first-child {
  padding-top: 0;
}

.p-case-subsec + .p-case-subsec {
  border-top: 1px solid var(--p-case-line);
}

.p-case-subsec__label {
  display: block;
  font-family: var(--p-case-en);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--p-case-nude);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.p-case-subsec__title {
  font-size: 22px;
  font-weight: 500;
  color: var(--p-case-black);
  letter-spacing: .1em;
  line-height: 1.5;
  margin: 0 0 20px;
}

.p-case-doctor-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.p-case-doctor-head__avatar {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--p-case-inset);
}

.p-case-doctor-head__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-case-doctor-head__name {
  font-size: 12px;
  color: var(--p-case-muted);
  letter-spacing: .06em;
  margin: 0;
}

.p-case-doctor-head__name a {
  color: var(--p-case-black);
  font-size: 15px;
  font-weight: 600;
  margin-right: 6px;
  border-bottom: 1px solid var(--p-case-line);
  padding-bottom: 1px;
}

.p-case-doctor-head__name a:hover {
  color: var(--p-case-grape);
  border-color: var(--p-case-grape);
  opacity: 1;
}

.p-case-doctor-text {
  font-size: 15px;
  line-height: 2.05;
  color: var(--p-case-ink);
  letter-spacing: .03em;
}

.p-case-doctor-text p {
  margin: 0 0 1em;
}

.p-case-doctor-text p:last-child {
  margin-bottom: 0;
}

.p-case-spec {
  display: flex;
  flex-direction: column;
}

.p-case-spec__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--p-case-line);
  font-size: 14px;
  line-height: 1.85;
}

.p-case-spec__label {
  color: var(--p-case-muted);
  font-weight: 500;
  letter-spacing: .06em;
  font-size: 12px;
  padding-top: 2px;
}

.p-case-spec__value {
  color: var(--p-case-ink);
  letter-spacing: .02em;
}

.p-case-spec__value small {
  display: block;
  color: var(--p-case-muted);
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: .03em;
}

.p-case-intro__body .p-case-spec__row:last-child {
  border-bottom: none;
}

.p-case-spec--wide {
  max-width: 680px;
  margin: 0 auto;
}

.p-case-spec--wide .p-case-spec__row:first-child {
  border-top: 1px solid var(--p-case-line);
}

.p-case-spec-note {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: 12px;
  color: var(--p-case-muted);
  letter-spacing: .03em;
  line-height: 1.9;
}

.p-case-menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-case-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--p-case-line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--p-case-ink);
  letter-spacing: .02em;
}

.p-case-menu-link svg {
  width: 9px;
  height: auto;
  flex-shrink: 0;
}

.p-case-menu-link:hover {
  border-color: var(--p-case-grape);
  color: var(--p-case-grape);
  opacity: 1;
}

.p-case-menu-link--plain {
  color: var(--p-case-muted);
  cursor: default;
}

.p-case-menu-link--plain:hover {
  border-color: var(--p-case-line);
  color: var(--p-case-muted);
  opacity: 1;
}

.p-case-reco {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p-case-reco__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--p-case-inset);
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--p-case-ink);
  letter-spacing: .02em;
}

.p-case-reco__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--p-case-grape);
  margin-top: 3px;
}

/* Price */
.p-case-price {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.p-case-price__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--p-case-line);
  font-size: 15px;
}

.p-case-price__row:first-child {
  border-top: 1px solid var(--p-case-line);
}

.p-case-price__name {
  color: var(--p-case-ink);
  letter-spacing: .03em;
}

.p-case-price__name small {
  display: block;
  color: var(--p-case-muted);
  font-size: 12px;
  margin-top: 2px;
  text-align: right;
  letter-spacing: .03em;
}

.p-case-price__value {
  color: var(--p-case-ink);
  font-feature-settings: "tnum";
  letter-spacing: .02em;
  white-space: nowrap;
  text-align: right;
}

.p-case-price__amount {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}

.p-case-price__row--total {
  padding: 22px 4px;
}

.p-case-price__row--total .p-case-price__name {
  font-weight: 600;
  font-size: 15px;
}

.p-case-price__row--total .p-case-price__value {
  font-size: 24px;
  font-weight: 500;
  color: var(--p-case-grape);
}

.p-case-price__row--total .p-case-price__value small {
  font-size: 12px;
  color: var(--p-case-muted);
  margin-left: 4px;
  font-weight: 400;
}

.p-case-price__note {
  max-width: 680px;
  margin: 16px auto 0;
  font-size: 12px;
  color: var(--p-case-muted);
  letter-spacing: .03em;
  line-height: 1.8;
}

.p-case-price__free-text {
  max-width: 680px;
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--p-case-ink);
  letter-spacing: .03em;
  line-height: 1.8;
  text-align: left;
}

.p-case-price__free-text p {
  margin: 0 0 .8em;
}

.p-case-price__free-text p:last-child {
  margin-bottom: 0;
}

.p-case-price__free-text a {
  color: var(--p-case-grape);
  text-decoration: underline;
}

.p-case-price__bottom {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

@media (max-width: 860px) {
.p-case-price__bottom {
  flex-direction: column;
}
}

.p-case-price__more {
  max-width: 680px;
  margin: 22px auto 0;
  text-align: right;
}

.p-case-price__more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--p-case-grape);
  border-bottom: 1px solid var(--p-case-line);
  padding-bottom: 3px;
  letter-spacing: .04em;
}

.p-case-price__more a:hover {
  border-color: var(--p-case-grape);
  opacity: 1;
}

.p-case-price__more svg {
  width: 7px;
  height: auto;
}

/* Instagram */
.p-case-insta {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.p-case-insta__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--p-case-white);
  border: 1px solid var(--p-case-line);
  border-radius: 6px;
  transition: border-color .25s;
}

.p-case-insta__card:hover {
  border-color: var(--p-case-grape);
  opacity: 1;
}

.p-case-insta__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--p-case-inset);
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-case-insta__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-case-insta__avatar--logo {
  background: var(--p-case-white);
  border: 1px solid var(--p-case-line);
}

.p-case-insta__avatar--logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.p-case-insta__body {
  flex: 1;
  min-width: 0;
}

.p-case-insta__label {
  font-size: 10px;
  color: var(--p-case-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 3px;
}

.p-case-insta__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--p-case-black);
  margin: 0 0 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: .03em;
}

.p-case-insta__handle {
  font-size: 12px;
  color: var(--p-case-muted);
  letter-spacing: .03em;
  margin: 0;
}

.p-case-insta__icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--p-case-muted);
}

/* Treatment info */
.p-case-proc-nav {
  display: none;
}

.p-case-proc-list {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.p-case-proc__title {
  max-width: 680px;
  margin: 0 auto 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--p-case-black);
  letter-spacing: .06em;
  line-height: 1.5;
}

/* Related */
.p-case-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.p-case-related__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--p-case-inset);
  margin-bottom: 10px;
  border-radius: 4px;
}

.p-case-related__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.p-case-related__card:hover {
  opacity: 1;
}

.p-case-related__card:hover .p-case-related__img img {
  transform: scale(1.04);
}

.p-case-related__tag {
  display: inline-block;
  font-size: 11px;
  color: var(--p-case-muted);
  margin-bottom: 4px;
  letter-spacing: .06em;
}

.p-case-related__title {
  font-size: 13px;
  line-height: 1.7;
  color: var(--p-case-ink);
  letter-spacing: .03em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Back */
.p-case-back {
  background: var(--p-case-white);
  padding: 64px 0 96px;
  text-align: center;
}

.p-case-back .more-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 47px;
  background: var(--p-case-grape);
  border-radius: 100px;
  border: 1px solid var(--p-case-grape);
  transition: .4s ease-in-out;
}

.p-case-back .more-btn a span {
  display: inline-block;
  margin-right: 14px;
  letter-spacing: .05em;
  color: var(--p-case-white);
  font-size: 16px;
  transition: .4s;
}

.p-case-back .more-btn a svg {
  width: 10px;
  height: auto;
}

.p-case-back .more-btn a svg path {
  transition: .4s;
  fill: #fff;
}

.p-case-back .more-btn a:hover {
  background: var(--p-case-white);
  opacity: 1;
}

.p-case-back .more-btn a:hover span {
  color: var(--p-case-grape);
}

.p-case-back .more-btn a:hover svg path {
  fill: var(--p-case-grape);
}

/* CTA */
.p-case-cta {
  background: #FAF8F7;
  border: 1px solid var(--p-case-line);
  border-radius: 6px;
  padding: 28px 32px;
  max-width: 880px;
  margin: 0 auto;
}

.p-case-cta__top {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  align-items: center;
}

.p-case-cta__photo {
  width: 160px;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--p-case-inset);
  flex-shrink: 0;
}

.p-case-cta__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.p-case-cta__body {
  min-width: 0;
}

.p-case-cta__eyebrow {
  font-family: var(--p-case-en);
  font-size: 11px;
  letter-spacing: .22em;
  color: #b8a68f;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 8px;
}

.p-case-cta__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--p-case-black);
  letter-spacing: .03em;
  line-height: 1.5;
  margin: 0 0 14px;
}

.p-case-cta__title-br {
  display: block;
}

.p-case-cta__free {
  color: #BC8A4D;
}

.p-case-cta__meta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

.p-case-cta__row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: baseline;
}

.p-case-cta__row-label {
  font-family: var(--p-case-en);
  font-size: 10px;
  letter-spacing: .12em;
  color: #b8a68f;
  text-transform: uppercase;
  font-weight: 600;
}

.p-case-cta__row-val {
  font-size: 13px;
  color: var(--p-case-ink);
}

.p-case-cta__row-val b {
  font-weight: 600;
}

.p-case-cta__row-val small {
  display: block;
  color: var(--p-case-muted);
  font-size: 11px;
  margin-top: 1px;
  letter-spacing: .02em;
}

.p-case-cta__campaign {
  font-size: 11px;
  color: var(--p-case-muted);
  text-align: center;
  letter-spacing: .04em;
  margin: 0 0 6px;
}

.p-case-cta__btns {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-top: 20px;
}

.p-case-cta__line {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.p-case-cta__line .p-case-cta__btn {
  flex: 0 0 auto;
  width: 100%;
}

.p-case-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  color: #fff !important;
  transition: .3s;
  text-align: center;
}

.p-case-cta__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.p-case-cta__btn--book {
  background: #BC8A4D;
}

.p-case-cta__btn--book:hover {
  background: #a9783d;
  opacity: 1;
}

.p-case-cta__btn--line {
  background: #7C5B74;
}

.p-case-cta__btn--line:hover {
  background: #6a4d63;
  opacity: 1;
}

/* Responsive */
@media (max-width: 860px) {
  .p-case-intro__grid {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 560px;
  }

  .p-case-intro__media {
    position: static;
    max-width: 380px;
    margin: 0 auto 8px;
  }

  .p-case-intro__body {
    margin-top: 8px;
  }

  .p-case-subsec:first-child {
    padding-top: 32px;
    border-top: 1px solid var(--p-case-line);
  }
}

@media (max-width: 768px) {
  .p-case {
    font-size: 15px;
  }

  .p-case-breadcrumb {
    padding-top: 80px;
  }
  
  .p-case-sec {
    padding: 52px 0;
  }

  .p-case-sec-head {
    margin-bottom: 30px;
  }

  .p-case-sec-head__jp {
    font-size: 20px;
  }

  .p-case-subsec__title {
    font-size: 20px;
  }

  .p-case-hero__title {
    font-size: 19px;
    line-height: 1.65;
  }

  .p-case-price__value {
    font-size: 14px;
  }

  .p-case-price__row--total .p-case-price__value {
    font-size: 21px;
  }

  .p-case-insta {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .p-case-related {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .p-case-spec__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .p-case-cta {
    padding: 24px 20px;
  }

  .p-case-cta__top {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .p-case-cta__photo {
    width: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin: 0 auto;
  }

  .p-case-cta__meta {
    text-align: left;
    max-width: 340px;
    margin: 0 auto;
  }

  .p-case-cta__btns {
    flex-direction: column;
    align-items: stretch;
  }

  .p-case-proc-nav {
    display: block;
    position: relative;
    max-width: 680px;
    margin: 0 auto 26px;
  }

  .p-case-proc-nav__track {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .p-case-proc-nav__track::-webkit-scrollbar {
    display: none;
  }

  .p-case-proc-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--p-case-muted);
    letter-spacing: .06em;
    line-height: 1.4;
    transition: color .2s, border-color .2s;
    cursor: pointer;
  }

  .p-case-proc-tab.is-active {
    color: var(--p-case-grape);
    border-bottom-color: var(--p-case-grape);
    font-weight: 600;
  }

  .p-case-proc-nav::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 5px;
    width: 38px;
    background: linear-gradient(to right, rgba(245, 240, 235, 0), var(--p-case-band) 72%);
    pointer-events: none;
    opacity: 1;
    transition: opacity .25s;
  }

  .p-case-proc-nav.is-end::after {
    opacity: 0;
  }

  .p-case-proc-list {
    gap: 0;
  }

  .p-case-proc {
    display: none;
  }

  .p-case-proc.is-active {
    display: block;
  }
}

@media (max-width: 400px) {
  .p-case-hero__title {
    font-size: 17px;
  }

  .p-case-intro__media {
    max-width: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-case *,
  .p-case *::before,
  .p-case *::after {
    transition-duration: .01s !important;
    animation-duration: .01s !important;
  }
}
