:root {
  --bg-main: #eee9e5;
  --dark-brown: #493a46;
  --black: #07070b;
  --gray: #707070;
  --beige: #d8c1b2;
  --beige-dark: #c4b1a2;
  --lavender: #dbd2de;
  --bg-white: #ffffff;
  --bg-cream: #f7f4f2;
  --border-light: #e0d8d4;
  --text-dark: #07070b;
  --text-gray: #707070;
  --text-light: #9a9a9a;
  --line-green: #06c755;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-padding-top: 100px;
}
body {
  font-family: "Yu Gothic Std", "Noto Sans JP", serif;
  font-weight: 400;
  color: #07070b;
  background: var(--bg-main);
  line-height: 1.8;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: auto;
  font-size: 14px;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 40px 60px;
}
.breadcrumb {
  padding: 12px 0;
  margin-bottom: 16px;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 12px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.breadcrumb-list a {
  color: var(--text-light);
  text-decoration: none;
}
.breadcrumb-list a:hover {
  color: var(--beige-dark);
}
.breadcrumb-list .separator {
  color: var(--border-light);
}
.breadcrumb-list .current {
  color: var(--text-gray);
}
.page-hero {
  background: var(--dark-brown);
  padding: 125px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: 32px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.15em;
  position: relative;
  z-index: 1;
}
.page-hero .en-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--beige);
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.breadcrumb .breadcrumb-list {
  justify-content: flex-start;
}

/* パーツ */
.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table tr th,
.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table tr td {
  border-color: transparent;
}
.section-heading-h2 {
  margin-bottom: 40px;
  text-align: center;
}
.section-heading-h2 h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--dark-brown);
  letter-spacing: 0.1em;
  display: inline-block;
}
.section-heading-h2 h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--beige-dark);
  margin: 20px auto 0;
}
.section-heading-h2 .en-sub {
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--beige-dark);
  margin-top: 8px;
  display: block;
}
.page-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  list-style: none;
}
.page-links li a {
  padding: 8px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  text-align: center;
  text-decoration: none;
  color: var(--dark-brown);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.page-links li a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--beige-dark);
  border-bottom: 1.5px solid var(--beige-dark);
  transform: rotate(45deg);
}
.page-links li a:hover {
  border-color: var(--beige-dark);
  background: var(--bg-cream);
}

/* two-col with speech bubble inside */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  background: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  margin-bottom: 60px;
}
.two-col-image {
  aspect-ratio: 4/3;
  background: var(--beige);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-brown);
  font-size: 13px;
  overflow: hidden;
}
.two-col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.two-col-text p {
  font-size: 14px;
  color: #07070b;
  line-height: 2;
}
.two-col-text p + p {
  margin-top: 16px;
}

/* 医師吹き出しデザイン（ボックス内） */
.doctor-speech-inline {
  background: var(--bg-cream);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.doctor-speech-inline-image {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--beige);
}
.doctor-speech-inline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doctor-speech-inline-content {
  flex: 1;
  position: relative;
  margin-top: 0 !important;
}
.doctor-speech-inline-content::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 16px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--bg-cream);
}
.doctor-speech-inline-content p {
  font-size: 13px;
  color: #07070b;
  line-height: 1.8;
}
.doctor-speech-inline-content p + p {
  margin-top: 10px;
}

.recommend-section {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 60px;
  border: 1px solid var(--border-light);
}
.recommend-list {
  list-style: none;
}
.recommend-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--dark-brown);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.recommend-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.recommend-list li:first-child {
  padding-top: 0;
}
.recommend-list li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--dark-brown);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.cases-section {
  margin-bottom: 60px;
}
.cases-scroll-wrapper {
  position: relative;
}
.cases-scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--beige-dark) var(--border-light);
}
.cases-scroll-container::-webkit-scrollbar {
  height: 8px;
}
.cases-scroll-container::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 4px;
}
.cases-scroll-container::-webkit-scrollbar-thumb {
  background: var(--beige-dark);
  border-radius: 4px;
}
.cases-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--dark-brown);
}
.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 12px;
}
.scroll-hint i {
  animation: scrollHint 1.5s ease-in-out infinite;
}
@keyframes scrollHint {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}
.case-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  flex: 0 0 320px;
  min-width: 320px;
}
.case-card:hover {
  box-shadow: 0 8px 30px rgba(73, 58, 70, 0.1);
  transform: translateY(-4px);
}
/* 症例写真 - アスペクト比を自然に */
.case-image {
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-brown);
  font-size: 13px;
  overflow: hidden;
}
.case-image img {
  width: 100%;
  height: auto;
  display: block;
}
.case-info {
  padding: 16px;
}
.case-label {
  font-size: 11px;
  color: var(--beige-dark);
  font-weight: 500;
  margin-bottom: 6px;
}
.case-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-brown);
  margin-bottom: 10px;
  line-height: 1.5;
}
.case-details {
  background: var(--bg-main);
  padding: 10px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--text-gray);
  line-height: 1.6;
}
.case-details dt {
  font-weight: 500;
  color: var(--dark-brown);
  display: inline;
}
.case-details dd {
  display: inline;
  margin-left: 0;
}
.case-details dd::after {
  content: "";
  display: block;
  margin-bottom: 2px;
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dark-brown);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 10px;
}
.case-link:hover {
  color: var(--beige-dark);
}
.card-section {
  margin-bottom: 60px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--border-light);
  text-align: center;
  margin-top: 0 !important;
}
.feature-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 48px;
  font-weight: 600;
  color: var(--beige-dark);
  line-height: 1;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark-brown);
  margin-bottom: 16px;
  line-height: 1.5;
}
.feature-card p:not(.feature-number) {
  font-size: 14px;
  color: #07070b;
  line-height: 1.9;
  text-align: left;
}
.feature-card p:not(.feature-number) + p:not(.feature-number) {
  margin-top: 12px;
}
.alt-cards {
  counter-reset: listnum;
}
.alt-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(73, 58, 70, 0.08);
}

.alt-card:nth-child(odd) {
  direction: rtl;
}
.alt-card:nth-child(odd) > * {
  direction: ltr;
}
.alt-card-image {
  /* aspect-ratio: 4/3; */
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-brown);
  font-size: 13px;
  overflow: hidden;
}
.alt-card-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}
.alt-card-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-inline: 0 !important;
}
.alt-card-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  color: var(--beige-dark);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.alt-card-number::after {
  content: counter(listnum, decimal-leading-zero);
  counter-increment: listnum;
  font-size: 36px;
  font-weight: 600;
  margin-left: 4px;
}
.alt-card-number span {
  font-size: 36px;
  font-weight: 600;
  margin-left: 4px;
}
.alt-card-content h3 {
  margin-top: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--dark-brown);
  margin-bottom: 12px;
  line-height: 1.5;
}
.alt-card-content p:not(.alt-card-number) {
  font-size: 14px;
  color: #07070b;
  line-height: 1.9;
}
.alt-card-content p.gray-notes {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 8px;
}
.alt-card-content p + p {
  margin-top: 12px;
}
.option-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.option-tag,
.option-tags > li {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-main);
  border-radius: 20px;
  font-size: 11px;
  color: var(--dark-brown);
}
.comparison-table {
  width: 100%;
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 24px;
}
.comparison-table th {
  background: var(--dark-brown);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-align: center;
}
.comparison-table th:first-child {
  background: var(--dark-brown);
  text-align: left;
}
.comparison-table th.highlight {
  background: var(--beige-dark);
  color: var(--dark-brown);
}
.comparison-table td {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: #fff;
  background: var(--dark-brown);
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table td.highlight {
  background: rgba(216, 193, 178, 0.25);
  color: var(--dark-brown);
  font-weight: 500;
}

figure:not(.info-table,.downtime-table,.price-table) {
  &.wp-block-flexible-table-block-table {
    & .has-fixed-layout {
      width: 100%;
      background: var(--bg-white);
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid var(--border-light);
      border-collapse: separate;
      border-spacing: 0;
      /* margin-top: 24px; */
      border-collapse: separate;
    }
    & .has-fixed-layout {
    }
    & .has-fixed-layout th {
      background: var(--dark-brown);
      padding: 10px 12px;
      font-size: 12px;
      font-weight: 500;
      color: #fff;
      text-align: center;
    }
    & .has-fixed-layout th:first-child {
      background: var(--dark-brown);
      text-align: left;
    }
    & .has-fixed-layout th.highlight {
      background: var(--beige-dark);
      color: var(--dark-brown);
    }
    & .has-fixed-layout td {
      padding: 10px 12px;
      font-size: 12px;
      color: var(--text-gray);
      border-bottom: 1px solid var(--border-light);
      text-align: center;
    }
    & .has-fixed-layout td:first-child {
      text-align: left;
      font-weight: 500;
      color: #fff;
      background: var(--dark-brown);
    }
    & .has-fixed-layout tr:last-child td {
      border-bottom: none;
    }
    & .has-fixed-layout td.highlight {
      background: rgba(216, 193, 178, 0.25);
      color: var(--dark-brown);
      font-weight: 500;
    }
  }
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dark-brown);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 16px;
  text-decoration: none;
}
.detail-link a {
  text-decoration: none;
  &:hover {
    color: var(--beige-dark);
  }
}
.detail-link:hover {
  color: var(--beige-dark);
}
.flow-section {
  margin-bottom: 60px;
}
.flow-items {
  counter-reset: listnum-flow;
}
.flow-item {
  display: grid;
  grid-template-columns: 60px 1fr 0.5fr;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
  align-items: center;
}
.flow-item::before {
  content: counter(listnum-flow);
  counter-increment: listnum-flow;
  width: 60px;
  height: 60px;
  background: var(--dark-brown);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 70px;
  bottom: -12px;
  width: 2px;
  background: var(--border-light);
  z-index: 0;
}
.flow-number {
  width: 60px;
  height: 60px;
  background: var(--dark-brown);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.flow-content {
  background: var(--bg-white);
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
}
.flow-content h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-brown);
  margin-bottom: 8px;
}
.flow-content p {
  font-size: 14px;
  color: #07070b;
  line-height: 1.8;
}
.flow-image {
  aspect-ratio: 4/3;
  background: var(--beige);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-brown);
  font-size: 13px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.flow-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ダウンタイムセクション */
.downtime-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.downtime-image-wrapper {
}
.downtime-image {
  background: var(--beige);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-brown);
  font-size: 13px;
  aspect-ratio: 4/3;
}
.downtime-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.downtime-caption {
  font-size: 11px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-top: 12px;
}
.downtime-table table {
  width: 100%;
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-collapse: separate;
  border-spacing: 0;
}
.downtime-table table th {
  background: var(--dark-brown);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-align: left;
}
.downtime-table table td {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.downtime-table table td:first-child {
  font-weight: 500;
  color: var(--dark-brown);
  background: var(--bg-cream);
  white-space: nowrap;
  width: 120px;
}
.downtime-table table tr:last-child td {
  border-bottom: none !important;
}

/* 基本情報テーブル - SPでカラム落ち */
.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table {
  &.info-table table {
    width: 100%;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-collapse: separate;
    border-spacing: 0;
  }
  &.info-table table tr {
    display: table-row;
  }
  &.info-table table th {
    background: var(--bg-cream);
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--dark-brown);
    text-align: left;
    width: 200px;
    border-bottom: 1px solid var(--border-light);
  }
  &.info-table table td {
    padding: 12px 16px;
    font-size: 12px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-light);
  }
  &.info-table table tr:last-child th,
  &.info-table table tr:last-child td {
    border-bottom: none;
  }
}

.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table {
  &.price-table table {
    width: 100%;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 24px;
  }
  &.price-table table th {
    background: var(--dark-brown);
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-align: left;
  }
  &.price-table table td {
    padding: 12px 16px;
    font-size: 12px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-light);
  }
  &.price-table table tr:last-child td {
    border-bottom: none;
  }
  &.price-table table tbody td:nth-child(n + 2) {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-brown);
    &.monitor {
      color: #c75a5a;
    }
  }
}

.note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
}
.accordion-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.3s ease;
}
.accordion-header:hover {
  background: var(--bg-main);
}
.accordion-question {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-brown);
}
.q-mark {
  width: 28px;
  height: 28px;
  background: var(--dark-brown);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.accordion-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--text-gray);
  transition: transform 0.3s ease;
}
.accordion-icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.accordion-icon::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.accordion-item.active .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-item.active .accordion-content {
  max-height: 500px;
}
.accordion-content-inner {
  padding: 0 24px 24px 68px;
}
.accordion-content p {
  font-size: 14px;
  color: #07070b;
  line-height: 1.9;
}
.accordion-content p + p {
  margin-top: 12px;
}

/* CTA - 横長画像 */
.cta-section {
  background: var(--dark-brown);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.cta-image {
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-brown);
  font-size: 13px;
  min-height: 280px;
  overflow: hidden;
}
.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.cta-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-title {
  font-size: 14px;
  color: var(--beige);
  margin-bottom: 8px;
}
.cta-subtitle {
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.cta-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  line-height: 1.8;
}
.cta-buttons {
  display: flex;
  gap: 16px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}
.cta-btn.primary {
  background: #06c755;
  color: #fff;
}
.cta-btn.primary:hover {
  background: #05a847;
  transform: translateY(-2px);
}
.cta-btn.secondary {
  background: var(--bg-white);
  color: var(--dark-brown);
}
.cta-btn.secondary:hover {
  background: var(--bg-main);
  transform: translateY(-2px);
}
.author-card {
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 60px;
}
.author-main {
  padding: 20px;
}
.author-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.author-image {
  width: 120px;
  height: 150px;
  border-radius: 8px;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-brown);
  font-size: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-name-block {
  flex: 1;
}
.author-label {
  font-size: 12px;
  color: var(--beige-dark);
  font-weight: 500;
  margin-bottom: 4px;
}
.author-position {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 2px;
}
.author-name {
  font-size: 20px;
  font-weight: 500;
  color: var(--dark-brown);
  margin-bottom: 4px;
}
.author-ruby {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-gray);
}
.author-details {
}
.author-achievement {
  font-size: 12px;
  color: var(--dark-brown);
  font-weight: 500;
  padding: 8px 12px;
  background: var(--bg-main);
  border-radius: 4px;
  display: block;
  margin-bottom: 12px;
}
.author-achievement small {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-gray);
  margin-left: 4px;
}
.author-accordion-item {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}
.author-accordion-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--bg-cream);
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-brown);
}
.author-accordion-header:hover {
  background: var(--bg-main);
}
.author-accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
}
.author-accordion-icon::before,
.author-accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--text-gray);
  transition: transform 0.3s ease;
}
.author-accordion-icon::before {
  width: 10px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.author-accordion-icon::after {
  width: 2px;
  height: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.author-accordion-item.active .author-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.author-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.author-accordion-item.active .author-accordion-content {
  max-height: 600px;
}
.author-history {
  list-style: none;
  padding: 12px 16px;
  text-align: left;
}
.author-history li {
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border-light);
}
.author-history li:last-child {
  border-bottom: none;
}
.author-history .year {
  display: inline-block;
  width: 50px;
  font-weight: 500;
  color: var(--dark-brown);
}
.author-credentials {
  list-style: none;
  padding: 12px 16px;
  text-align: left;
}
.author-credentials li {
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border-light);
  padding-left: 16px;
  position: relative;
}
.author-credentials li:last-child {
  border-bottom: none;
}
.author-credentials li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--beige-dark);
}
.author-credentials li strong {
  font-weight: 500;
  color: var(--dark-brown);
}
.author-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--dark-brown);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.author-profile-btn:hover {
  background: #5a4a56;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.related-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: all 0.3s ease;
}
.related-card:hover {
  box-shadow: 0 8px 30px rgba(73, 58, 70, 0.1);
  transform: translateY(-4px);
}
.related-image {
  aspect-ratio: 16/10;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 12px;
}
.related-info {
  padding: 16px;
}
.related-category {
  font-size: 10px;
  color: var(--beige-dark);
  font-weight: 500;
  margin-bottom: 6px;
}
.related-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-brown);
}
.mb-60 {
  margin-bottom: 60px;
}
.mb-40 {
  margin-bottom: 40px;
}

/* Instagram リール埋め込み用 */
.instagram-reel-wrapper {
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9/16;
  max-width: 280px;
}
.instagram-reel-placeholder {
  text-align: center;
  color: var(--text-gray);
  padding: 20px;
}
.instagram-reel-placeholder i {
  font-size: 36px;
  color: #e1306c;
  margin-bottom: 10px;
  display: block;
}
.instagram-reel-placeholder p {
  font-size: 11px;
  line-height: 1.5;
}

/* オプションカード内のリール */
.alt-card-reel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-cream);
  padding: 20px;
}
.alt-card-reel .instagram-reel-wrapper {
  max-width: 280px;
}

/* コラムセクションのリール配置 */
.column-with-reel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
  background: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.column-reel-area {
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .container {
    padding: 20px 20px 40px;
  }
  .page-hero {
    padding: 20px;
  }
  .page-hero h1 {
    font-size: 24px;
  }
  .page-links {
    gap: 6px;
  }
  .page-links li a {
    padding: 6px 12px;
    font-size: 11px;
  }
  .two-col {
    padding: 20px;
    grid-template-columns: 1fr;
  }
  .downtime-content {
    grid-template-columns: 1fr;
  }
  .recommend-section {
    padding: 20px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card {
    padding: 24px;
  }
  .feature-number {
    font-size: 36px;
    margin-bottom: 12px;
  }
  .alt-card {
    grid-template-columns: 1fr;
  }
  .alt-card:nth-child(odd) {
    direction: ltr;
  }
  .alt-card-content {
    padding: 24px;
  }
  /* 施術の流れ SP */
  .flow-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }
  .flow-image {
    display: block;
    grid-column: 1 / -1;
    margin-top: 12px;
    aspect-ratio: 16/9;
  }
  .flow-item:not(:last-child)::after {
    left: 19px;
    top: 50px;
  }
  .flow-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .flow-content {
    padding: 12px 16px;
  }
  .flow-content h4 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .flow-content p {
    font-size: 13px;
  }
  .cta-section {
    grid-template-columns: 1fr;
  }
  .cta-image {
    min-height: 200px;
    aspect-ratio: 16/9;
  }
  .cta-content {
    padding: 24px;
  }
  .cta-subtitle {
    font-size: 20px;
  }
  .cta-buttons {
    flex-direction: column;
  }
  /* 執筆医師 SP */
  .author-main {
    padding: 16px;
  }
  .author-header {
    gap: 12px;
    margin-bottom: 12px;
  }
  .author-image {
    width: 80px;
    height: 100px;
  }
  .author-name {
    font-size: 18px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .doctor-speech-inline {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .doctor-speech-inline-content::before {
    display: none;
  }
  .doctor-speech-inline-image {
    width: 48px;
    height: 48px;
  }

  /* 症例カード SP */
  .case-card {
    flex: 0 0 280px;
    min-width: 280px;
  }

  /* 基本情報テーブル SP対応 */
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
  .info-table tr {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-light);
  }
  .info-table tr:last-child {
    border-bottom: none;
  }
  .info-table th {
    width: 100%;
    border-bottom: none;
    padding: 12px 16px 4px;
  }
  .info-table td {
    padding: 4px 16px 12px;
  }

  /* コラムセクション SP */
  .column-with-reel {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
  .column-reel-area {
    margin-bottom: 0;
  }
  .instagram-reel-wrapper {
    max-width: 240px;
    margin: 0 auto;
  }

  /* オプションカード内リール SP */
  .alt-card-reel .instagram-reel-wrapper {
    max-width: 240px;
  }

  /* パンクズ SP */
  .breadcrumb {
    padding: 12px 0;
    margin-bottom: 16px;
  }
  .breadcrumb-list {
    flex-wrap: wrap;
    font-size: 10px;
    gap: 4px;
  }
}

.section-heading-h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark-brown);
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--beige-dark);
}

.wp-block-group .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  margin-inline: 0 !important;
}

.wp-block-group .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  margin-inline: 0 !important;
}
