.oy-surgery {
  --oy-green: #638a4e;
  --oy-brown: #795940;
  --oy-line: #dedbd4;
  color: inherit;
  font: inherit;
}

.oy-surgery *,
.oy-surgery *::before,
.oy-surgery *::after {
  box-sizing: border-box;
}

/* セクション */
.oy-surgery__section {
  margin: 0 0 86px;
}

/* バナー */
.oy-surgery__banner {
  display: block;
  width: 100%;
  margin-bottom: 22px;
}

.oy-surgery__banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* 見出し */
.oy-surgery__subheading {
  margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--oy-green);
  color: var(--oy-brown);
  font-size: 1.15em;
}

/* 実績一覧 */
.oy-surgery__results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oy-surgery__results li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #d4d8ce;
}

.oy-surgery__results li span {
  min-width: 0;
}

.oy-surgery__results strong {
  color: var(--oy-green);
  font-size: 1.4em;
  white-space: nowrap;
}

.oy-surgery__results small {
  font-size: 0.65em;
}

/* 注釈 */
.oy-surgery__note {
  margin: 12px 0;
  color: #666;
  font-size: 0.85em;
}

/* 詳細・テーブル */
.oy-surgery__details {
  margin-top: 18px;
  border: 1px solid var(--oy-line);
}

.oy-surgery__details summary {
  padding: 12px 16px;
  cursor: pointer;
  color: var(--oy-brown);
  background: #faf5ee;
  font-weight: bold;
}

.oy-surgery__scroll {
  max-width: 100%;
  overflow-x: auto;
}

.oy-surgery__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  line-height: 1.6;
}

.oy-surgery__table th,
.oy-surgery__table td {
  padding: 13px 12px;
  border: 1px solid var(--oy-line);
  vertical-align: middle;
}

/* 実績テーブル */
.oy-surgery__table--results {
  min-width: 620px;
  font-size: 0.9em;
}

.oy-surgery__table--results th:first-child {
  width: 58%;
  text-align: left;
}

.oy-surgery__table--results td {
  text-align: center;
}

.oy-surgery__table--results thead,
.oy-surgery__table--results tfoot {
  background: #f1f5ed;
}

/* 比較テーブル */
.oy-surgery__table--comparison thead th {
  text-align: center;
  background: #f7f3ed;
  color: var(--oy-brown);
}

.oy-surgery__table--comparison thead th:first-child {
  width: 20%;
}

.oy-surgery__table--comparison tbody th {
  background: #faf7f3;
  color: var(--oy-brown);
  text-align: left;
}

.oy-surgery__table--comparison tr > :nth-child(2) {
  background: #eaf3e5;
}

.oy-surgery__table--comparison thead th:nth-child(2) {
  background: var(--oy-green);
  color: #fff;
}

.oy-surgery__table--comparison tr > :nth-child(3) {
  background: #fff;
}

.oy-surgery__table--comparison td small {
  font-size: 0.82em;
}

.oy-surgery__results li span {
  min-width: 0;
  font-weight: normal;
}

/* 手術の流れ */
.oy-surgery__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.oy-surgery__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--oy-line);
  border-radius: 6px;
}

.oy-surgery__step > span {
  flex: none;
  padding: 5px 10px;
  border-radius: 3px;
  background: var(--oy-green);
  color: #fff;
  font-size: 0.8em;
  font-weight: bold;
}

.oy-surgery__step h3 {
  margin: 0 0 8px;
  color: var(--oy-brown);
  font-size: 1.1em;
  font-weight: bold;
}

.oy-surgery__step p {
  margin: 0;
}

/* スクリーンリーダー用 */
.oy-surgery__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;
}

/* CTA */
.oy-surgery__cta {
  display: block;
  width: min(100%, 460px);
  margin: 22px auto 0;
  padding: 14px 18px;
  border-radius: 6px;
  background: #438b4d;
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.oy-surgery__cta:hover {
  background: #347840;
}

.oy-surgery__cta span {
  display: inline-block;
  padding-left: 8px;
  font-size: 1.15em;
  vertical-align: baseline;
}

/* 手術の流れ */
.oy-surgery .oy-surgery__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.oy-surgery .oy-surgery__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--oy-line);
  border-radius: 6px;
  background: #fff;
}

/* STEP番号 */
.oy-surgery .oy-surgery__step > span {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 10px;
  border: none;
  border-radius: 3px;
  background: var(--oy-green);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  white-space: nowrap;
}

/* 見出し・説明文のコンテナ */
.oy-surgery .oy-surgery__step > div {
  flex: 1;
  min-width: 0;
}

/* 見出し：既存サイトのh3スタイルを上書き */
.oy-surgery .oy-surgery__step h3 {
  display: block;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: var(--oy-brown) !important;
  font-size: 18px !important;
  font-weight: bold;
  line-height: 1.5;
}

/* 説明文 */
.oy-surgery .oy-surgery__step p {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: inherit;
  font-size: 15px;
  line-height: 1.9;
}

/* ==========================
   LINE事前相談 CTA
========================== */

.oy-surgery__cta-wrap {
  margin: 32px 0;
  text-align: center;
}

.oy-surgery__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 24px;
  background: #10c451;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  transition: opacity .2s ease;
}

.oy-surgery__cta:hover {
  opacity: .9;
}

.oy-surgery__cta-sub {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.oy-surgery__cta-main {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.oy-surgery__cta-sub,
.oy-surgery__cta-main,
.oy-surgery__cta-arrow {
  color: #fff !important;
  text-decoration: none !important;
}

.oy-surgery__cta-arrow {
  display: inline-block;
  margin-left: 8px;
  font-size: 22px;
}

/* スマートフォン */
@media (max-width: 700px) {
  .oy-surgery__section {
    margin-bottom: 58px;
  }

  .oy-surgery__results,
  .oy-surgery__steps {
    grid-template-columns: 1fr;
  }

  .oy-surgery__table--comparison {
    min-width: 0;
    font-size: 0.8em;
  }

  .oy-surgery__table--comparison th,
  .oy-surgery__table--comparison td {
    padding: 9px 6px;
  }

  .oy-surgery__step {
    padding: 14px;
  }
  .oy-surgery .oy-surgery__steps {
    grid-template-columns: 1fr;
  }

  .oy-surgery .oy-surgery__step {
    gap: 14px;
    padding: 14px;
  }

  .oy-surgery .oy-surgery__step h3 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }

  .oy-surgery .oy-surgery__step p {
    font-size: 14px;
  }
}

