.esthe-case-info {
  width: min(calc(100% - 32px), 900px);
  margin: 48px auto;
  padding: 32px;
  border: 1px solid #b18a4a;
  background: #111;
  color: #fff;
  box-sizing: border-box;
}

.esthe-case-info__title {
  margin: 0 0 24px;
  color: #c9a45f;
  font-size: 24px;
  line-height: 1.5;
}

.esthe-case-info__heading,
.esthe-case-info__section-title {
  margin: 0 0 14px;
  color: #c9a45f;
  font-size: 18px;
  line-height: 1.6;
}

.esthe-case-info__summary {
  margin-bottom: 28px;
}

.esthe-case-info__summary p {
  margin: 0;
  line-height: 1.9;
}

.esthe-case-info__section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(201, 164, 95, 0.45);
}

.esthe-case-info__list {
  margin: 0;
}

.esthe-case-info__item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.esthe-case-info__item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.esthe-case-info__item dt {
  color: #c9a45f;
  font-weight: 700;
}

.esthe-case-info__item dd {
  min-width: 0;
  margin: 0;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.esthe-case-info__highlights {
  margin-top: 28px;
}

.esthe-case-info__highlights ul {
  margin: 0;
  padding-left: 1.4em;
}

.esthe-case-info__highlights li {
  margin: 8px 0;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .esthe-case-info {
    margin: 32px 16px;
    padding: 24px 20px;
  }

  .esthe-case-info__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* v0.7.0: 画像スライダー・拡大表示 */
.esthe-case-gallery {
  width: min(calc(100% - 32px), 900px);
  margin: 48px auto 24px;
  box-sizing: border-box;
}

.esthe-case-gallery * {
  box-sizing: border-box;
}

.esthe-case-gallery__stage {
  position: relative;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(201, 164, 95, 0.35);
}

.esthe-case-gallery__open,
.esthe-case-gallery__thumb,
.esthe-case-gallery__nav,
.esthe-case-gallery__modal-nav,
.esthe-case-gallery__close,
.esthe-case-gallery__backdrop {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.esthe-case-gallery__open {
  display: block;
  width: 100%;
}

.esthe-case-gallery__main-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  background: #111;
}

.esthe-case-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.esthe-case-gallery__nav--prev {
  left: 16px;
}

.esthe-case-gallery__nav--next {
  right: 16px;
}

.esthe-case-gallery__thumb-list,
.esthe-case-gallery__thumb-item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.esthe-case-gallery__thumb-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px !important;
}

.esthe-case-gallery__thumb-item::marker {
  content: '' !important;
}

.esthe-case-gallery__thumb-item::before,
.esthe-case-gallery__thumb-item::after {
  display: none !important;
  content: none !important;
}

.esthe-case-gallery__thumb {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 2px solid transparent;
  background: #111;
  opacity: 0.72;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}

.esthe-case-gallery__thumb:hover,
.esthe-case-gallery__thumb:focus-visible,
.esthe-case-gallery__thumb.is-active {
  border-color: #c9a45f;
  opacity: 1;
  outline: none;
}

.esthe-case-gallery__thumb-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.esthe-case-gallery__modal[hidden] {
  display: none !important;
}

.esthe-case-gallery__modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.esthe-case-gallery__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.esthe-case-gallery__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  width: min(1200px, 100%);
  max-height: calc(100vh - 48px);
}

.esthe-case-gallery__figure {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.esthe-case-gallery__modal-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 110px);
  margin: 0 auto;
  object-fit: contain;
}

.esthe-case-gallery__caption {
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
}

.esthe-case-gallery__close {
  position: absolute;
  top: -10px;
  right: 0;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.esthe-case-gallery__modal-nav {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 36px;
  line-height: 1;
}

.esthe-case-gallery-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .esthe-case-gallery {
    margin: 32px 16px 20px;
  }

  .esthe-case-gallery__nav {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .esthe-case-gallery__nav--prev {
    left: 8px;
  }

  .esthe-case-gallery__nav--next {
    right: 8px;
  }

  .esthe-case-gallery__thumb-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px !important;
    scroll-snap-type: x mandatory;
  }

  .esthe-case-gallery__thumb-item {
    flex: 0 0 42%;
    scroll-snap-align: start;
  }

  .esthe-case-gallery__modal {
    padding: 12px;
  }

  .esthe-case-gallery__dialog {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    max-height: calc(100vh - 24px);
  }

  .esthe-case-gallery__modal-nav {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .esthe-case-gallery__modal-image {
    max-height: calc(100vh - 90px);
  }

  .esthe-case-gallery__close {
    top: 0;
    width: 40px;
    height: 40px;
  }
}

/* v0.9.0: 案件ごとの無料会員限定情報 */
.esthe-case-member-gate {
  margin-top: 36px;
  padding: 32px;
  border: 1px solid rgba(201, 164, 95, 0.72);
  background: linear-gradient(145deg, rgba(201, 164, 95, 0.14), rgba(255, 255, 255, 0.04));
  text-align: center;
}

.esthe-case-member-gate__icon {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1;
}

.esthe-case-member-gate__title {
  margin: 0;
  color: #c9a45f;
  font-size: 21px;
  line-height: 1.6;
}

.esthe-case-member-gate__text {
  margin: 12px 0 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.8;
}

.esthe-case-member-gate__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.esthe-case-member-gate__button {
  display: inline-flex;
  min-width: 180px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid #c9a45f;
  text-decoration: none !important;
  font-weight: 700;
  line-height: 1.4;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.esthe-case-member-gate__button:hover,
.esthe-case-member-gate__button:focus-visible {
  opacity: 0.86;
  transform: translateY(-1px);
}

.esthe-case-member-gate__button--register {
  background: #c9a45f;
  color: #111 !important;
}

.esthe-case-member-gate__button--login {
  background: transparent;
  color: #c9a45f !important;
}

.esthe-case-info__section--member {
  position: relative;
}

.esthe-case-info__member-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border: 1px solid #c9a45f;
  color: #c9a45f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .esthe-case-member-gate {
    padding: 24px 18px;
  }

  .esthe-case-member-gate__title {
    font-size: 18px;
  }

  .esthe-case-member-gate__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .esthe-case-member-gate__button {
    width: 100%;
    min-width: 0;
  }
}


/* v0.10.0: リニューアル前のテスト用会員メニュー */
.esthe-case-member-nav {
  width: min(calc(100% - 32px), 900px);
  margin: 24px auto 18px;
  box-sizing: border-box;
}

.esthe-case-member-nav__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.esthe-case-member-nav__button {
  display: inline-flex;
  min-width: 116px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid #c9a45f;
  background: #111;
  color: #c9a45f !important;
  box-sizing: border-box;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.esthe-case-member-nav__button:hover,
.esthe-case-member-nav__button:focus-visible {
  opacity: 0.86;
  transform: translateY(-1px);
}

.esthe-case-member-nav__button--primary {
  background: #c9a45f;
  color: #111 !important;
}

.esthe-case-member-nav__button--secondary {
  background: #111;
  color: #c9a45f !important;
}

@media (max-width: 767px) {
  .esthe-case-member-nav {
    margin: 18px 16px 14px;
  }

  .esthe-case-member-nav__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .esthe-case-member-nav__button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    font-size: 13px;
  }
}
