/* Thread Lift page — extends HIFU treatment styles */
@import url("./hifu-style.css");
@import url("./hifu-cta.css");
@import url("./dermapen-style.css");
@import url("./doctor-insta-panel.css");

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-thread .hifu-benefits {
  grid-template-columns: repeat(5, 1fr);
}

.page-thread .hifu-benefit {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-left: 0;
  gap: 8px;
}

.page-thread .concern-grid {
  grid-template-columns: repeat(5, 1fr);
}

.page-thread .flow-grid {
  grid-template-columns: repeat(5, 1fr);
}

.page-thread .downtime-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.page-thread .downtime-table-wrap {

}

.page-thread .downtime-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(14, 35, 70, 0.08);
}

.page-thread .downtime-table th,
.page-thread .downtime-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

.page-thread .downtime-table thead th {
  background: #d0a35a;
  color: #fff;
  font-weight: 500;
}

.page-thread .downtime-table tbody th {
  width: 32%;
  font-weight: 500;
  color: var(--navy);
  background: #faf8f5;
}

.page-thread .downtime-table tbody td {
  color: #3a4558;
  line-height: 1.75;
}

.page-thread .downtime-table tr:last-child th,
.page-thread .downtime-table tr:last-child td {
  border-bottom: none;
}

/* Bottom: price + doctor + Instagram */
.page-thread .tl-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.page-thread .tl-bottom-card--price {
  grid-column: 1 / -1;
}

.page-thread .tl-price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-thread .tl-bottom-card {
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #ebe6df;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(14, 35, 70, 0.08);
}

.page-thread .tl-bottom-card > h2,
.page-thread .tl-bottom-card > h3 {
  margin: 0 0 16px;
  font-family: var(--gb-serif, "Noto Serif JP", serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-align: center;
}
.note{
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted);
}
.page-thread .tl-price-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 11px;
  border: 1px solid var(--gb-beige);
}

.page-thread .tl-price-table th,
.page-thread .tl-price-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  border: 1px solid var(--gb-beige);
  vertical-align: middle;
}

.page-thread .tl-price-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.page-thread .tl-price-table tbody th {
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  background: #faf8f5;
  white-space: nowrap;
}

.page-thread .tl-price-table td.tl-price-plan,
.page-thread .tl-price-table tbody td[data-label="目的"],
.page-thread .tl-price-table tbody td[data-label="部位"] {
  text-align: left;
  white-space: normal;
  line-height: 1.55;
}

.page-thread .tl-price-table td {
  text-align: center;
  color: #3a4558;
  white-space: nowrap;
}

.page-thread .tl-price-table td[data-label="価格（税込）"],
.page-thread .tl-price-table td[data-label="1本あたり価格"] {
  font-weight: 600;
  color: var(--navy);
}

.page-thread .tl-price-table tr:last-child th,
.page-thread .tl-price-table tr:last-child td {
  border-bottom: none;
}

.page-thread .tl-doctor-inner {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: start;
}

.page-thread .tl-doctor-inner img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.page-thread .tl-doctor-role {
  margin: 0 0 4px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 11px;
  color: var(--gold);
}

.page-thread .tl-doctor-name {
  margin: 0 0 4px;
  font-family: var(--gb-serif, "Noto Serif JP", serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.page-thread .tl-doctor-name-en {
  display: block;
  margin: 0 0 10px;
  font-family: "Petit Formal Script", cursive;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.page-thread .tl-doctor-msg {
  margin: 0 0 12px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 11px;
  line-height: 1.75;
  color: #3a4558;
}

.page-thread .tl-doctor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(7, 31, 72, 0.35);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.page-thread .tl-doctor-btn:hover {
  background: rgba(255, 255, 255, 0.7);
}

.page-thread .tl-insta-inner {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 14px;
  align-items: start;
}

.page-thread .tl-insta-copy .insta-handle {
  margin: 0 0 8px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

.page-thread .tl-insta-copy p {
  margin: 0 0 12px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 11px;
  line-height: 1.75;
  color: #3a4558;
}

.page-thread .tl-insta-quad {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.page-thread .tl-insta-quad a {
  display: block;
  border-radius: 4px;
  overflow: hidden;
}

.page-thread .tl-insta-quad img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.page-thread .tl-insta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  padding: 9px 12px;
  border: 1px solid rgba(7, 31, 72, 0.35);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.page-thread .tl-insta-btn:hover {
  background: rgba(255, 255, 255, 0.7);
}

.page-thread .downtime-faq-grid .downtime-table-wrap > .hifu-heading,
.page-thread .downtime-faq-grid .faq-wrap > .hifu-heading {
  font-size: clamp(17px, 2vw, 20px);
  margin-bottom: 16px;
}

.page-thread .dp-flow-grid {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1100px) {
  .page-thread .concern-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-thread .dp-flow-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .page-thread .hifu-benefits {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .page-thread .concern-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-thread .flow-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-thread .dp-flow-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .page-thread .tl-bottom-grid {
    grid-template-columns: 1fr;
  }
}

/* —— SP: thread lift page —— */
@media (max-width: 900px) {
  .page-thread .hifu-section {
    padding: 40px 0;
  }

  .page-thread .hifu-heading {
    margin-bottom: 24px;
    font-size: clamp(18px, 4.5vw, 22px);
  }

  .page-thread .hifu-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 8px;
    padding-top: 18px;
  }

  .page-thread .hifu-benefit {
    gap: 6px;
  }

  .page-thread .hifu-benefit p {
    font-size: 11px;
    line-height: 1.5;
  }

  .page-thread .hifu-benefit-icon {
    width: 36px;
    height: 36px;
  }

  .page-thread .concern-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .page-thread .concern-item {
    padding: 14px 12px;
  }

  .page-thread .concern-item p {
    font-size: 12px;
  }

  .page-thread .about-hifu-grid {
    padding: 20px 16px;
    gap: 20px;
  }

  .page-thread .about-hifu-text p {
    font-size: 12px;
    line-height: 1.85;
  }

  .page-thread .about-hifu-text .hifu-heading {
    text-align: left;
    margin-bottom: 14px;
    font-size: 18px;
  }

  .page-thread .about-diagram img {
    max-width: 100%;
    height: auto;
  }

  .page-thread .case-ba-grid {
    gap: 14px;
  }

  .page-thread .dp-flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .page-thread .dp-flow-step {
    padding: 14px 12px 12px;
    gap: 10px;
  }

  .page-thread .dp-flow-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin: 0;
  }

  .page-thread .dp-flow-step h3 {
    font-size: 11px;
  }

  .page-thread .dp-flow-step p {
    font-size: 10px;
  }

  .page-thread .downtime-faq-grid {
    gap: 28px;
  }

  .page-thread .tl-bottom-card {
    padding: 20px 18px;
  }

  .page-thread .tl-doctor-btn,
  .page-thread .tl-insta-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .page-thread .hifu-section {
    padding: 32px 0;
  }

  .page-thread .hifu-section > .container {
    width: min(1312px, 92vw);
  }

  .page-thread .hifu-heading {
    margin-bottom: 20px;
    font-size: 17px;
  }

  .page-thread .hifu-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 6px;
  }

  .page-thread .concern-grid {
    grid-template-columns: 1fr;
  }

  .page-thread .concern-icon {
    width: 32px;
    height: 32px;
  }

  .page-thread .case-ba-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-thread .case-ba-card h3 {
    font-size: 12px;
    padding: 12px 12px 4px;
  }

  .page-thread .case-ba-card p {
    padding: 0 12px 12px;
    font-size: 10px;
  }

  .page-thread .flow-grid {
    grid-template-columns: 1fr;
  }

  .page-thread .dp-flow-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-thread .dp-flow-num {
    position: static;
    display: block;
    margin: 0 0 8px;
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .page-thread .dp-flow-step {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-thread .downtime-faq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Downtime table → stacked rows */
  .page-thread .downtime-table {
    display: block;
    border-radius: 8px;
  }

  .page-thread .downtime-table tbody {
    display: block;
  }

  .page-thread .downtime-table tr {
    display: block;
    border-bottom: 1px solid #eee;
  }

  .page-thread .downtime-table tr:last-child {
    border-bottom: none;
  }

  .page-thread .downtime-table th,
  .page-thread .downtime-table td {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-bottom: none;
  }

  .page-thread .downtime-table tbody th {
    width: auto;
    padding-bottom: 4px;
    background: #faf8f5;
    font-size: 12px;
  }

  .page-thread .downtime-table tbody td {
    padding-top: 0;
    padding-bottom: 12px;
    font-size: 11px;
  }

  .page-thread .faq-item summary {
    font-size: 12px;
    padding: 12px 36px 12px 14px;
  }

  .page-thread .faq-item p {
    font-size: 11px;
    padding: 0 14px 12px;
  }

  .page-thread .note {
    font-size: 10px;
    line-height: 1.7;
  }

  /* Price table → stacked cards (no horizontal scroll) */
  .page-thread .tl-price-table-wrap {
    overflow: visible;
  }

  .page-thread .tl-price-table {
    display: block;
    min-width: 0;
    font-size: 12px;
  }

  .page-thread .tl-price-table thead {
    display: none;
  }

  .page-thread .tl-price-table tbody {
    display: block;
  }

  .page-thread .tl-price-table tr {
    display: block;
    border-bottom: 1px solid #eee;
  }

  .page-thread .tl-price-table tbody tr:last-child {
    border-bottom: none;
  }

  .page-thread .tl-price-table th,
  .page-thread .tl-price-table td {
    display: block;
    width: 100%;
    padding: 0 14px;
    border: none;
    text-align: left;
    white-space: normal;
  }

  .page-thread .tl-price-table tbody th {
    padding: 12px 14px 6px;
    font-size: 13px;
    background: #faf8f5;
  }

  .page-thread .tl-price-table tbody td {
    font-size: 11px;
    line-height: 1.65;
    color: #3a4558;
    font-weight: 400;
  }

  .page-thread .tl-price-table tbody td::before {
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
    content: attr(data-label);
  }

  .page-thread .tl-price-table tbody td[data-label] {
    padding: 0 14px 10px;
  }

  .page-thread .tl-price-table tbody td.tl-price-plan {
    background: #faf8f5;
    font-size: 11px;
    padding: 6px 14px 10px;
  }

  .page-thread .tl-price-table tbody td[data-label="価格（税込）"],
  .page-thread .tl-price-table tbody td[data-label="1本あたり価格"] {
    font-weight: 600;
    color: var(--navy);
  }

  .page-thread .tl-price-table tbody td[data-label="1本あたり価格"] {
    padding-bottom: 14px;
  }

  .page-thread .tl-bottom-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-thread .tl-doctor-inner,
  .page-thread .tl-insta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-thread .tl-doctor-inner img {
    max-width: 140px;
    margin: 0 auto;
  }

  .page-thread .tl-doctor-msg {
    text-align: left;
    font-size: 11px;
  }

  .page-thread .tl-insta-quad {
    max-width: 200px;
    margin: 0 auto;
  }

  .page-thread .tl-insta-copy {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .page-thread .hifu-hero-visual{
    left: 5%;
    right: 0;
  }
  .page-thread .hifu-hero-visual img{
    object-position: 30% center;
  }
  .page-thread .hifu-hero-visual::after{
    width: 30%;
  }
  .page-thread .hifu-hero-title{
    font-size: 24px;
    margin-top: 44px;
  }
  .page-thread .hifu-hero-catch{
    font-size: 12px;
    line-height: 1.75;
  }
  .page-thread .hifu-section {
    padding: 28px 0;
  }

  .page-thread .hifu-benefit p {
    font-size: 10px;
  }

  .page-thread .hifu-benefit-icon {
    width: 32px;
    height: 32px;
  }

  .page-thread .about-hifu-grid {
    padding: 16px 14px;
  }

  .page-thread .concern-item p {
    font-size: 11px;
  }

  .page-thread .dp-flow-icon {
    width: 32px;
    height: 32px;
  }

  .page-thread .dp-flow-step h3 {
    font-size: 10px;
  }

  .page-thread .dp-flow-step p {
    font-size: 9px;
  }

  .page-thread .tl-price-table tbody th {
    font-size: 12px;
  }

  .page-thread .tl-price-table tbody td {
    font-size: 11px;
  }

  .page-thread .tl-doctor-name {
    font-size: 14px;
  }

  .page-thread .tl-insta-quad {
    max-width: 160px;
  }
}
