@import url("./style.css");
@import url("./hifu-cta.css");
body.page-case {
  padding-top: 88px;
  background: #fff;
}

.page-case .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.page-case .btn-header {
  padding: 13px 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0 0;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { margin: 0 8px; color: #ccc; }
.breadcrumb-current {
  color: var(--muted);
}

/* Hero (matches column-hero) */
.case-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.case-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding: 18px 0 34px;
}

.case-hero-copy {
  max-width: 520px;
  padding-right: 24px;
}

.case-title {
  margin: 14px 0 10px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(44px, 5.2vw, 66px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: 0.08em;
}
.case-title small {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.case-lead {
  margin: 0;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  line-height: 2;
  color: #3a4558;
}

.case-hero-visual {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 42%;
  right: calc(50% - 50vw);
  z-index: 1;
  overflow: hidden;
}
.case-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.9) 40%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.case-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Section */
.case-section {
  padding: 38px 0 54px;
}

.case-topic {
  text-align: center;
  margin-bottom: 12px;
}

.case-topic h2 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  line-height: 1.4;
}

.case-topic em {
  display: block;
  font-family: "Petit Formal Script", "Noto Serif JP", serif;
  font-size: clamp(28px, 4vw, 36px);
  font-style: normal;
  color: var(--navy);
  letter-spacing: 0.06em;
}

.case-topic span {
  display: block;
  margin-top: 0;
  font-size: clamp(22px, 3.2vw, 30px);
  color: var(--navy);
  letter-spacing: 0.1em;
}

.case-intro {
  margin: 0 0 32px;
  text-align: center;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  line-height: 1.9;
  color: #3a4558;
}

/* Category buttons (ref. grand-beaute.jp/case/) */
.case-treatment-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-treatment-item {
  flex: 0 0 calc(100% / 3);
  display: flex;
  justify-content: center;
  padding: 5px 8px;
}

.case-btn-more {
  width: 100%;
  max-width: 360px;
  padding: 8px 0 4px;
}

.case-category-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 70px;
  padding: 12px 42px 12px 16px;
  border: 1px solid #e9e9e9;
  background: #fff;
  color: #3a4558;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.case-category-link::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 36px;
  height: 1px;
  background: #525252;
  transition: background 0.2s ease;
}

.case-category-link::after {
  content: "";
  position: absolute;
  right: 18px;
  top: calc(50% - 3px);
  border-right: 6px solid transparent;
  border-bottom: 4px solid #525252;
  transition: border-color 0.2s ease;
}

.case-category-link:hover,
.case-category-link.is-active {
  background: #c3934c;
  border-color: #c3934c;
  color: #fff;
}

.case-category-link:hover::before,
.case-category-link.is-active::before {
  background: #d1a683;
}

.case-category-link:hover::after,
.case-category-link.is-active::after {
  border-bottom-color: #d1a683;
}

/* Case detail entries */
.case-results {
  margin-top: 8px;
}

.case-entry + .case-entry {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid #eee;
}

.case-entry-title {
  margin: 0 0 24px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 500;
  line-height: 1.8;
  color: #b07a32;
  white-space: pre-line;
}

.case-entry-body {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.case-entry-visual {
  width: 100%;
  max-width: 280px;
}

.case-entry-images,
.case-entry-carousel {
  border: 1px solid #e0e0e0;
  background: #fff;
  overflow: hidden;
}

.case-entry-images--single .case-entry-image img,
.case-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.case-entry-carousel {
  position: relative;
}

.case-carousel-viewport {
  overflow: hidden;
}

.case-carousel-track {
  display: flex;
  width: 100%;
  will-change: transform;
}

.case-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.case-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border: 1px solid #dedede;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #6d6d6d;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  padding: 0;
}

.case-carousel-arrow span {
  font-size: 18px;
  line-height: 1;
}

.case-carousel-arrow:hover {
  background: #fff;
}

.case-carousel-arrow--prev {
  left: 8px;
}

.case-carousel-arrow--next {
  right: 8px;
}

.case-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px 12px;
  background: #fff;
}

.case-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d8d8d8;
  cursor: pointer;
}

.case-carousel-dot.is-active {
  background: var(--navy, #1a2b4a);
}

.case-entry-comment,
.case-detail-text {
  white-space: pre-line;
}

.case-entry-comment {
  margin: 0 0 18px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  line-height: 1.95;
  color: #3a4558;
}

.case-detail-box {
  background: #fafafa;
  padding: 24px 28px;
}

.case-detail-row {
  margin: 0 0 14px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  line-height: 1.85;
  color: #3a4558;
}

.case-detail-row:last-child {
  margin-bottom: 0;
}

.case-detail-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--navy);
}

.case-empty {
  margin: 24px 0;
  text-align: center;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  color: var(--muted);
}

.case-pickup {
  margin-top: 56px;
  padding-top: 40px;
  background: #f7f7f7;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  padding-bottom: 40px;
}

.case-topic--pickup {
  margin-bottom: 20px;
}

.counseling-banner {
  --counseling-bg: #fdfaf7;
  padding: 20px 0 48px;
  background: #fff;
}

.counseling-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 1fr);
  gap: 0;
  align-items: stretch;
  background: var(--counseling-bg);
  border-radius: 0;
  overflow: hidden;
}

.counseling-copy {
  position: relative;
  z-index: 1;
  padding: 40px 36px 36px 48px;
  background: var(--counseling-bg);
}

.counseling-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(42%, 200px);
  background:
    radial-gradient(ellipse 70% 55% at 18% 42%, rgba(176, 122, 50, 0.09) 0%, transparent 72%),
    radial-gradient(ellipse 50% 45% at 8% 68%, rgba(176, 122, 50, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 38% at 28% 28%, rgba(176, 122, 50, 0.06) 0%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.counseling-copy h2 {
  margin: 0 0 14px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.counseling-copy p {
  margin: 0 0 22px;
  max-width: 360px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  color: var(--navy);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.counseling-copy .btn-counseling-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  padding: 13px 18px;
  background: #fff;
  border: 1px solid var(--navy);
  border-radius: 8px;
  color: var(--navy);
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.counseling-copy .btn-counseling-cta:hover {
  background: rgba(255, 255, 255, 0.92);
  opacity: 0.95;
}

.counseling-copy .btn-counseling-cta .btn-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.counseling-copy .btn-counseling-cta .btn-label {
  text-align: center;
}

.counseling-copy .btn-counseling-cta .btn-chevron {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.counseling-photo {
  position: relative;
  min-height: 200px;
  background: var(--counseling-bg);
}

.counseling-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 0;
  width: 32%;
  background: linear-gradient(
    90deg,
    var(--counseling-bg) 0%,
    rgba(253, 250, 247, 0.75) 35%,
    rgba(253, 250, 247, 0.2) 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.counseling-photo img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center right;
  display: block;
}

/* Banner */
.case-banner {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 10px;
  border: 1px solid #ebe6df;
  background: linear-gradient(90deg, #f6f2ed 0%, #f3eee7 45%, #f6f2ed 100%);
  box-shadow: 0 10px 28px rgba(14, 35, 70, 0.08);
}

.case-banner h2 {
  margin: 0 0 8px;
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.06em;
}

.case-banner p {
  margin: 0 0 14px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  line-height: 1.85;
  color: #3a4558;
}

.case-banner .btn {
  min-width: 240px;
  padding: 12px 18px;
  font-size: 12px;
}

.case-banner-photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #eee;
  display: block;
}

/* CTA + Footer: reuse same blocks from other pages */
.hifu-cta h2 {
  margin: 0 0 8px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.hifu-cta p {
  margin: 0 0 22px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  opacity: 0.9;
}
.hifu-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hifu-cta-actions .btn-hero {
  min-width: 320px;
  padding: 14px 22px;
  border-radius: 4px;
}
.hifu-cta .btn-cta-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.hifu-cta .btn-cta-outline:hover { background: rgba(255, 255, 255, 0.08); }
.hifu-cta .btn-cta-gold {
  background: linear-gradient(135deg, #b07a32 0%, #d4a85f 50%, #c3934c 100%);
  color: #fff;
  border: 1px solid transparent;
}
.hifu-cta .btn-cta-gold:hover { opacity: 0.92; }

.page-case .site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 34px 0 18px;
  position: relative;
}
.page-case .footer-main {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 1.5fr;
  gap: 34px;
  align-items: start;
}
.page-case .footer-logo img { width: 170px; height: auto; }
.page-case .footer-lead {
  margin: 12px 0 0;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}
.page-case .footer-address {
  margin: 0 0 8px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
}
.page-case .footer-tel {
  margin: 0 0 16px;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.06em;
}
.page-case .footer-tel span {
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.75);
}
.page-case .footer-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.page-case .footer-buttons .btn-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  min-height: 38px;
  min-width: 168px;
}
.page-case .footer-buttons .btn-footer .btn-icon { flex-shrink: 0; }
.page-case .footer-buttons .btn-footer-line {
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.92);
}
.page-case .footer-buttons .btn-footer-line:hover { background: rgba(255, 255, 255, 0.08); }
.page-case .footer-buttons .btn-footer-counsel {
  background: linear-gradient(135deg, #b07a32 0%, #d4a85f 50%, #c3934c 100%);
  border: 1px solid transparent;
  color: #fff;
}
.page-case .footer-buttons .btn-footer-counsel:hover { opacity: 0.92; }
.page-case .footer-navs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.page-case .footer-nav-col { display: grid; gap: 10px; }
.page-case .footer-nav-col a {
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.page-case .footer-nav-col a:hover { color: #fff; }
.page-case .footer-bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.page-case .footer-bottom .copyright {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  font-size: 12px;
}
.page-case .back-to-top {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  text-decoration: none;
  line-height: 1;
}
.page-case .back-to-top:hover { background: rgba(255, 255, 255, 0.08); }

@media (max-width: 1024px) {
  .case-banner { grid-template-columns: 1fr; }
  .case-banner-photo img { height: 220px; }
  .case-entry-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-entry-visual {
    max-width: 240px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .case-treatment-item {
    flex: 0 0 50%;
    padding: 4px 6px;
  }

  .case-category-link {
    min-height: 60px;
    padding: 10px 34px 10px 10px;
    font-size: 12px;
  }

  .case-category-link::before {
    width: 24px;
    right: 12px;
  }

  .case-category-link::after {
    right: 12px;
  }

  .case-detail-box {
    padding: 16px;
  }

  .case-entry + .case-entry {
    margin-top: 32px;
    padding-top: 32px;
  }

  /* Counselling banner */
  .counseling-banner {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    padding: 16px 0 32px;
  }

  .counseling-inner {
    grid-template-columns: 1fr;
    width: min(1312px, 92vw);
    margin-left: auto;
    margin-right: auto;
  }

  .counseling-copy {
    padding: 28px 20px 22px;
  }

  .counseling-copy::before {
    width: 100%;
    height: 70%;
    inset: auto 0 0;
    background:
      radial-gradient(ellipse 80% 50% at 50% 100%, rgba(176, 122, 50, 0.08) 0%, transparent 72%),
      radial-gradient(ellipse 60% 40% at 20% 80%, rgba(176, 122, 50, 0.05) 0%, transparent 70%);
  }

  .counseling-copy h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .counseling-copy p {
    max-width: none;
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.75;
  }

  .counseling-copy p br {
    display: none;
  }

  .counseling-copy .btn-counseling-cta {
    max-width: none;
  }

  .counseling-photo {
    min-height: 220px;
  }

  .counseling-photo::before {
    width: 100%;
    height: 28%;
    inset: 0 0 auto;
    background: linear-gradient(
      180deg,
      var(--counseling-bg) 0%,
      rgba(253, 250, 247, 0.55) 50%,
      transparent 100%
    );
  }

  .counseling-photo img {
    min-height: 220px;
    object-position: center;
  }
}

@media (max-width: 560px) {
  .counseling-banner {
    padding: 12px 0 28px;
  }

  .counseling-inner {
    width: calc(100vw - 32px);
  }

  .counseling-copy {
    padding: 24px 16px 18px;
  }

  .counseling-copy h2 {
    font-size: 15px;
  }

  .counseling-copy p {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .counseling-copy .btn-counseling-cta {
    padding: 12px 14px;
    font-size: 12px;
    gap: 8px;
  }

  .counseling-photo {
    min-height: 180px;
  }

  .counseling-photo img {
    min-height: 180px;
  }
}

@media (max-width: 560px) {
  .case-treatment-item {
    flex: 0 0 100%;
  }

  .case-btn-more {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .page-case .footer-main { grid-template-columns: 1fr; }
  .page-case .footer-navs { border-left: none; padding-left: 0; gap: 4px; }
  .case-hero-visual::after{background: linear-gradient(182deg, #fff 0%, rgba(255, 255, 255, .9) 10%, transparent 40%);width: 100%;}
  .case-hero-visual{left:0;right:0;}
  .case-hero-visual img{object-position: 80% center;}
  .case-title{margin: 208px 0 10px;}
}

@media (max-width: 900px) {
  .hifu-cta .hifu-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hifu-cta .hifu-cta-actions .btn-hero {
    min-width: 0;
    width: 100%;
    padding: 12px 16px;
    font-size: 12px;
    white-space: normal;
  }
}
