:root {
  --base-blue: #F5C9A0;
  --accent-blue: #D4824A;
  --navy-blue: #8B4513;
  --light-blue: #FDF3E7;
  --text-dark: #2D1A0E;
  --text-light: #FFFFFF;
  --shadow-blue: rgba(212, 130, 74, 0.28);
  --primary: #C47A35;
}

/*==================================================================================================================================

  *改行設定

==================================================================================================================================*/
.sp_only {
  display: none;
}

.pc_only {
  display: block;
}

@media (max-width: 768px) {
  .sp_only {
    display: block;
  }

  .pc_only {
    display: none;
  }
}


/* ---------------------------------------共通--------------------------------------- */

.w95 {
  width: 90%;
  padding: 0 3%;
  margin: 0 auto;
  text-align: left;
}

.w95.ma20 {
  margin: 20px auto;
}

.firstlead {
  padding-top: 50px;
  padding-bottom: 50px;
}

.wh {
  width: 98%;
  margin: 0 auto;
  text-align: left;
}

.padtopbottom {
  padding: 75px 0;
}

.txt_center {
  text-align: center;
}

.under_underline {
  padding-bottom: 2px;
  border-bottom: 1.5px solid #E87C2B;
}

.leadttl {
  text-align: center;
}

.flex_box {
  display: flex;
}

.flex_box .img_box,
.flex_box .txt_box {
  padding: 20px;
}

.flex_box .img_box {
  flex: 2;
}

.flex_box .txt_box {
  flex: 3;
}

/* h2 */
.medical-h2 {
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 2px #caa850;
  font-size: 4rem;
  font-weight: normal;
  letter-spacing: .05em;
  line-height: 1.6em;
  padding: .5em 3%;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #D48A4E 0%, #D48A4E 45%, #D48A4E 100%);
}

.medical-h2+.leadttl {
  margin: 30px auto 50px;
  line-height: 2;
}

/* h3 */
.medical-h3 {
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 15px;
  margin: 20px 0;
  font-size: 2.5rem;
}

/* h4 */
.medical-h4 {
  font-size: 20px;
  line-height: 1.3;
  /* font-weight: bold; */
  margin-bottom: 10px;
  padding-left: 15px;
  border-left: #E87C2B solid 5px;
}

/* h5 */
.h5 {
  font-size: 18px;
  font-weight: 700;
  color: #C47A35;
}

/* カード型リスト */
ul.cardlist {
  display: flex;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto 40px;
  justify-content: center;
}

.cardlist li {
  background: #FDF3E7;
  border-radius: 12px;
  padding: 20px 24px;
  font-weight: 600;
  line-height: 1.8;
}

/* リスク・注意点リスト */
.risk-list {
  list-style: none;
  margin: 20px 0;
  padding: 20px 25px;
  background: var(--light-blue);
  border-left: 4px solid var(--accent-blue);
}

.risk-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.6;
  color: #333;
}

.risk-list li:last-child {
  margin-bottom: 0;
}

/* 擬似要素でアイコンを作成 */
.risk-list li::before {
  content: "⚠";
  /* 注意アイコン */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
  color: #8B4513;
  line-height: 1.6;
}

/* リスト */
.aftercare-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.aftercare-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* チェック風アイコン */
.aftercare-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #8B4513;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.6;
}

.aftercare-list li:last-child {
  margin-bottom: 0;
}

/* simpleリスト */
.bgli {
  background: #FDF3E7;
  padding: 10px;
}

.simple-feature-list {
  list-style: none;
  padding: 20px;
  line-height: 1.8;
  margin: 10px 0;
}

.simple-feature-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 12px;
}

.simple-feature-list li::before {
  content: "■";
  position: absolute;
  left: 5px;
  top: 0.1em;
  color: var(--accent-blue);
  font-size: 0.8em;
}

/*--------------------------------------------------------------------
 *  モバイル版 
 * --------------------------------------------------------------------*/
@media (max-width: 768px) {
  .w95 {
    padding: 0;
  }

  .wh {
    width: 100%;
    padding: 0;
  }

  .leadttl {
    text-align: left;
  }

  .medical-h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .medical-h3 {
    font-size: 1.6rem;
  }

  .flex_box {
    flex-direction: column;
  }

  .flex_box .img_box,
  .flex_box .txt_box {
    padding: 10px;
  }

  .padtopbottom {
    padding: 25px 0;
  }
}

/* ---------------------------------------button--------------------------------------- */
.link-row {
  margin: 20px 0;
}

/* ボタンの中央寄せ用ラッパ */
.btn-center {
  text-align: center;
  /* インライン要素を中央揃え */
  margin: 30px 0;
  /* 上下に余白 */
}

/* 丸みボタン */
.btn-blue {
  display: inline-block;
  padding: 12px 28px;
  background: #90b575;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  border-radius: 50px;
  transition: 0.3s;
  box-shadow: 0 4px 12px #79b65278;
}

/* ホバー時の動き */
.btn-blue:hover {
  background: #adcb97;
  box-shadow: 0 4px 12px rgb(215 226 74 / 30%);
  transform: translateY(-2px);
  color: #fff;
}

/* ---------------------------------------button2--------------------------------------- */
.cta-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  background-color: #E0874C;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
	font-size: 16px;
}

.btn:hover {
  background-color: #E0874C;
  color: #fff;
}

.btn.light {
  background-color: #fff;
  color: #E0874C;
  border: 2px solid #E0874C;
}

.btn.light:hover {
  background-color: #FEF0E0;
}

/*------------------------------------- 下層ヘッダー --------------------------------------*/

.under_head {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 50vw;
  max-height: 480px;
  background-image: url(../images/under/underhead.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.under_head::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(0deg,
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 1) 80%);
  opacity: 0.05;
}

/* ここから配置用 */

.under_head-inner {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 20px;
  color: #fff;
}

/* ロゴ */
.under_logo img {
  display: block;
  max-width: 280px;
  height: auto;
  margin: 0;
  filter: brightness(0) invert(1);
}

/* H1 */
.under_h1 {
  margin-top: 16px;
  letter-spacing: .1em;
  line-height: 1.3;
  padding-left: 5px;
}

.under_ttl {
  margin-top: 200px;
  padding-bottom: 10px;
  border-bottom: 1px solid #fff;
  width: 100%;
  position: static;
  padding-left: 20px;
}

.under_ttlp {
  color: #fff;
  font-size: 4rem;
  letter-spacing: .1em;
  line-height: 1.2em;
}

@media screen and (max-width: 768px) {

  .under_head {
    height: 60vw;
    max-height: none;
    margin-top: 44px;
    background-position: 80% center;
  }

  .under_head-inner {
    left: 10px;
    top: 10px;
  }

  .under_logo img {
    max-width: 150px;
  }

  .under_h1 {
    margin-top: 10px;
    font-size: 0.6rem;
    letter-spacing: .08em;
    padding-right: 150px;
  }

  .under_ttl {
    margin-top: 60px;
    padding-bottom: 5px;
    border-bottom: 1px solid #fff;
    padding-left: 5px;
  }

  .under_ttlp {
    font-size: 2rem;
    letter-spacing: .08em;
    line-height: 1.3em;
  }

  .under_head::before {
    background: linear-gradient(0deg,
        rgba(0, 0, 0, 0) 10%,
        rgba(0, 0, 0, 0.85) 90%);
    opacity: 0.35;
  }
}

/*------------------------------------- 下層リード文 --------------------------------------*/

.under_flex_box {
  display: flex;
}

.txt_box {
  flex: 3;
  padding: 15px;
  margin: auto;
}

.img_box {
  flex: 2;
  padding: 15px;
  margin: auto;
}

@media (max-width: 768px) {
  .under_flex_box {
    flex-direction: column;
  }

  .txt_box {
    order: 3;
    padding: 0;
  }

  .img_box {
    order: 2;
    padding: 0;
  }

}

/*------------------------------------- 背景ありのflex --------------------------------------*/
.flowbg .under_flex_box {
  background: #FEE8C86E;
  margin: 10px 0;
}

/*------------------------------------- 治療の流れ --------------------------------------*/

.flow_box {
  margin: 20px 0 50px;
}

.flow_box {
  background: #FDF3E7;
  padding: 50px 20px;
}

.flow_box h3 {
  color: #9A6B3C;
  border-bottom: 1px solid #E8C99A;
  font-size: 1.7rem;
  margin-bottom: 20px;
  padding: 10px 0;
}

ul.medical-flow.com_btm_100 {
  padding-bottom: 60px;
}

.medical-flow>li {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding-left: 100px;
  padding-bottom: 60px;
}

.medical-flow li:last-of-type {
  padding-bottom: 0;
}

.medical-flow>li::before,
.medical-flow>li::after {
  content: "";
  position: absolute;
  top: 0;
  font-family: quiche-stencil, sans-serif;
  font-weight: 100;
  font-style: normal;
  text-align: center;
  color: #C4682E;
  font-size: 220%;
  line-height: 1.0em;
}

.medical-flow>li::before {
  z-index: 1;
  content: "1";
  width: 1.5em;
  line-height: 1.5em;
  background: #fff;
  border: 1px solid #C4682E;
  border-radius: 50%;
  left: 0;
}

.medical-flow>li:nth-child(2)::before {
  content: "2";
}

.medical-flow>li:nth-child(3)::before {
  content: "3";
}

.medical-flow>li:nth-child(4)::before {
  content: "4";
}

.medical-flow>li:nth-child(5)::before {
  content: "5";
}

.medical-flow>li:nth-child(6)::before {
  content: "6";
}

.medical-flow>li:nth-child(7)::before {
  content: "7";
}

.medical-flow>li:nth-child(8)::before {
  content: "8";
}

.medical-flow>li::after {
  z-index: 0;
  width: 1px;
  height: 100%;
  left: 0.75em;
  background-color: #c6c2bf;
}

.medical-flow li:last-of-type::after {
  display: none;
}

.medical-flow .img_r {
  width: 35.5%;
  max-width: 394px;
}

.medical-flow .implant_style1>dt {
  font-size: 1.5rem;
  padding-top: 0.6em;
  color: #C4682E;
}

.medical-flowinner.clearfix {
  display: flex;
  /* flex-direction: row-reverse;  */
  align-items: flex-start;
  gap: 20px;
}

.medical-flowinner.clearfix.cari {
  display: block;
  /* flex-direction: row-reverse;  */
  align-items: flex-start;
  gap: 20px;
}

.medical-flow .img_r {
  width: 35.5%;
  max-width: 394px;
}

.medical-flow .txt_l {
  padding: 0 15px;
  flex: 3;
}

.flow_box .grid_box1 {
  flex-direction: row-reverse;
  box-shadow: none;
  background: none;
}

.medical-flow {
  flex: 3;
}

.grid_img_box {
  width: 40%;
}

/*------------------------------------- 表 --------------------------------------*/
/* 表全体の余白とレスポンシブ用ラッパー */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

/* 治療費用テーブル */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
  /* スマホで横スクロール */
}

/* ヘッダー */
.cost-table thead th {
  background: #8B4513;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  border: 1px solid #ddd;
}

.cost-table.invi thead th {
  width: 50%;
}

/* ボディ */
.cost-table tbody td {
  border: 1px solid #ddd;
  padding: 12px;
  line-height: 1.6;
}

/* .cost-table tbody tr:nth-child(even) td {
	background: #E0874C26;
} */

/* 注意書き */
.note {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

/* スマホ時は文字サイズ少し小さめに */
/* スマホ時：料金表をカード型にする */
@media (max-width: 768px) {

  .table-wrap {
    overflow-x: visible;
  }

  .cost-table {
    width: 100%;
    min-width: 0;
    /* 横スクロールの原因を解除 */
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
  }

  .cost-table thead {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  .cost-table tbody,
  .cost-table tr,
  .cost-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .cost-table tbody tr {
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #F5DFC5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(180, 100, 30, 0.08);
  }

  .cost-table tbody td {
    border: none;
    padding: 12px 14px;
    line-height: 1.7;
  }

  /*   .cost-table tbody tr:nth-child(even) td {
    background: transparent;
  } */

  /* 項目名 */
  .cost-table tbody td:nth-child(1) {
    background: #8B4513;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
  }

  /* 費用 */
  .cost-table tbody td:nth-child(2) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #FDF3E7;
    font-weight: 700;
    color: #8B4513;
  }

  .cost-table tbody td:nth-child(2)::before {
    content: "費用（税込）";
    font-size: 12px;
    color: #C47A35;
    font-weight: 700;
  }

  /* 内容 */
  .cost-table tbody td:nth-child(3) {
    color: #333;
    background: #fff;
  }

  .cost-table tbody td:nth-child(3)::before {
    content: "内容";
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #C47A35;
    font-weight: 700;
  }
}

/*------------------------------------- 表2 --------------------------------------*/
.whitening-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.whitening-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

/* ヘッダー */
.whitening-table thead th {
  background: #8B4513;
  color: #fff;
  text-align: center;
  padding: 10px;
  border: 1px solid #ddd;
  font-weight: bold;
}

/* セル */
.whitening-table tbody td {
  border: 1px solid #ddd;
  padding: 10px;
  line-height: 1.6;
  vertical-align: top;
}

/* 偶数行 */
.whitening-table tbody tr:nth-child(even) td {
  background: #FDF3E7;
}

/*------------------------------------- チェックリスト --------------------------------------*/
.check_list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check_list li {
  position: relative;
  padding: 14px 16px 14px 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  line-height: 1.8;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(2, 6, 23, .04);
  transition: transform .15s ease, box-shadow .15s ease;
}

/* チェックアイコン（CSSだけで描画） */
.check_list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #C47A35, #F5C9A0);
  mask: radial-gradient(circle 10px at 50% 50%, #000 98%, transparent) content-box, linear-gradient(#000 0 0) padding-box;
  padding: 3px;
}

.check_list li::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-45%) rotate(45deg);
  width: 6px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

/* SP：1カラム */
@media (max-width: 960px) {
  .check_list {
    grid-template-columns: 1fr;
  }
}

/*------------------------------------- よくある質問 --------------------------------------*/
.qawrap {
  margin: 0 auto;
}

.qa-7 {
  /* max-width: 1000px; */
  margin-bottom: 10px;
  border: none;
  box-shadow: 0 4px 4px rgb(0 0 0 / 2%), 0 2px 3px -2px rgba(0 0 0 / 5%);
  background-color: #ededed;
}

.qa-7 summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1em 2em 1em 3em;
  color: #666666;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.6rem;
}

.qa-7 summary::before,
.qa-7 p::before {
  font-family: 'Noto Sans JP', sans-serif;
  position: absolute;
  left: 1em;
  font-weight: 600;
  font-size: 1.3em;
}

.qa-7 summary::before {
  color: #D4824A;
  content: "Q";
}

.qa-7 summary::after {
  transform: translateY(-25%) rotate(45deg);
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-bottom: 3px solid #666666b3;
  border-right: 3px solid #666666b3;
  content: '';
  transition: transform .5s;
}

.qa-7[open] summary::after {
  transform: rotate(225deg);
}

.qa-7 .awrap {
  position: relative;
  transform: translateY(-10px);
  /*   opacity: 0; */
  margin: 0;
  padding: .3em 3em 1.5em;
  color: #333;
  transition: transform .5s, opacity .5s;
}

.qa-7[open] .awrap {
  transform: none;
  opacity: 1;
  padding: 0 5px 10px 40px;
}

.awrap>p:first-of-type::before {
  color: #d4d4d4;
  line-height: 1.2;
  content: "A";
}

/* ボタンのデザイン */
.qa-7 .button-container {
  display: flex;
  justify-content: center;
  margin-top: 1em;
}

.qa-7 button {
  display: inline-block;
  padding: 0.5em 1.5em;
  font-size: 1em;
  font-weight: 300;
  font-family: 'Noto Sans JP', sans-serif;
  color: #fff;
  background-color: #E87C2B;
  border: none;
  cursor: pointer;
  transition: background-color .3s;
  margin-bottom: 1em;
}

.qa-7 button:hover {
  background-color: #d4d4d4;
}

/* ボタンのリンクスタイル */
.qa-7 a {
  text-decoration: none;
  display: flex;
  justify-content: center;
  width: 100%;
}

/*------------------------------------- 歯は臓器 --------------------------------------*/
#hazou-about section {
  padding: 20px 0;
}

.zyuzi strong {
  background: linear-gradient(transparent 60%, #FFD08A54 60%);
  padding: 0 2px;
}

ul.cardlist+.leadttl {
  margin: 30px auto 50px;
}

/* YouTubeをレスポンシブに */
.youtube-area {
  width: 100%;
  max-width: 100%;
}

/* 画面幅に合わせて広がる＆16:9をキープ */
.youtube-area iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  /* Safari含めモダンブラウザOK */
}

.cardlist li p {
  text-align: center;
  margin: 10px 0;
}

@media (max-width: 768px) {
  ul.cardlist {
    gap: 10px;
  }

  .cardlist li {
    padding: 10px 10px;
  }

  .cardlist li p {
    font-size: 0.8rem;
    margin: 0;
  }

}

/*------------------------------------- 料金表 --------------------------------------*/
#price {
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 75px;
}

/*------------------- 料金表 -------------------*/

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
  font-size: 1.6rem;
}

.price-table th,
.price-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #FEF0E0;
  vertical-align: middle;
}

.price-table th {
  text-align: left;
}

.price-table td.price {
  text-align: right;
  font-weight: 700;
  color: #333;
}

.banner {
  width: 80%;
}

@media (max-width: 768px) {
  .banner {
    width: 100%;
  }
}

/*------------------- 2カラム費用比較 -------------------*/
:root {
  --base: #F5C9A0;
  --ink: #5C2A0A;
  --muted: #C47A35;
  --bg: #ffffff;
  --line: #F5DFC5;
  --accent: #C47A35;
}

.pay-sim {
  background: var(--bg);
  padding: 32px 0;
  margin: 40px auto;
}

.pay-sim__ttl {
  font-size: 1.8rem;
  text-align: center;
  margin: 0 0 35px;
  color: #111827;
  letter-spacing: .08em
}

.pay-sim__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.pay-card {
  background: #ffffffde;
  padding: 16px
}

.pay-card__headline {
  font-size: 1.15rem;
  font-weight: 600;
  color: #3f3f46;
  background: linear-gradient(#f7f7f7, #f0f0f0);
  padding: 10px 12px;
  border-radius: 8px
}

.pay-card__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 14px
}

.pay-card__img img {
  width: 80%;
  height: auto;
  border-radius: 10px;
  display: block
}

.pay-card__lead {
  color: #555;
  margin: 0 0 6px
}

.pay-card__lead .tax {
  font-size: .9em;
  color: var(--muted)
}

.pay-card__monthly {
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .04em
}

.pay-card__monthly span {
  font-size: 1.2rem;
  color: #3f3f46;
  font-weight: 500;
  letter-spacing: .05em;
  margin: 0 .1em
}

.pay-card__rule {
  border: none;
  border-top: 2px solid #d6d3d1;
  margin: 14px 0
}

.pay-card__sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #3f3f46
}

.pay-card__sum b {
  font-size: 1.1rem
}

.pay-card__note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .92rem
}

.pay-sim__cta {
  text-align: center;
  margin-top: 18px
}

.pay-sim__btn {
  display: inline-block;
  background: var(--base);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 16px #C47A35;
}

.pay-sim__btn:hover {
  filter: brightness(1.05);
  color: #fff;
}

@media (max-width: 900px) {
  .pay-sim__cards {
    grid-template-columns: 1fr
  }

  .pay-card__inner {
    grid-template-columns: 1fr
  }

  .pay-card__monthly {
    font-size: 2rem
  }
}

:root {
  --diag-a: #FEF0E0;
  /* 淡ブルー */
  --diag-b: #FFFFFF;
  /* 白 */
  --diag-angle: 116deg;
  /* 角度はお好みで (例: 120deg/150deg) */
  --diag-split: 51%;
  /* 境界の位置（%） */
}

.pay-sim__cards {
  background: linear-gradient(var(--diag-angle),
      var(--diag-a) 0 var(--diag-split),
      var(--diag-b) var(--diag-split) 100%);
  padding: 73px 15px;
}

/* 見出し両端の装飾 */
.pay-sim__ttl::before,
.pay-sim__ttl::after {
  font-weight: 700;
  color: var(--base-blue, #F5C9A0);
  position: relative;
  top: .06em;
}

.pay-sim__ttl::before {
  content: "＼";
  margin-right: .5em;
}

.pay-sim__ttl::after {
  content: "／";
  margin-left: .5em;
}

@media (max-width: 768px) {
  .pay-sim__inner.w95 {
    width: 100%;
  }

  .pay-sim__inner {
    gap: 5px;
  }

  .pay-card__headline {
    font-size: 100%;
  }

  .pay-card__lead {
    font-size: 70%;
  }

  .pay-card__monthly span {
    font-size: 1rem;
  }

  .pay-card__sum {
    flex-direction: column;
  }

  p.pay-card__note {
    font-size: 70%
  }
}

/*------------------- 支払方法ブロック -------------------*/
:root {
  --base-blue: #D4824A;
  --line: #e5e7eb;
  --ink: #111827;
  --muted: #8B4513;
}

.pay-plain {
  margin: 10px 0 24px
}

.pay-plain__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line)
}

.pay-plain__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.pay-plain__label {
  font-weight: 700;
  color: var(--ink);
  align-self: center
}

.pay-plain__body p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.7
}

.pay-plain__brands {
  display: block;
  height: auto;
  margin: 0;
}

.pay-plain__link {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}

.pay-plain__link:hover {
  border-color: var(--base-blue)
}

.pay-plain__notes {
  margin: 10px 0 0;
  color: #9A5C2A;
  font-size: 1.6rem;
  line-height: 1.7
}

.pay-plain__notes li {
  margin-left: 1em;
  list-style: disc
}

@media (max-width: 768px) {
  .pay-sim__cards {
    padding: 73px 0;
  }

  .pay-plain__row {
    grid-template-columns: 1fr
  }

  .pay-plain__label {
    margin-bottom: 4px
  }
}

/* デンタルローンシミュレーション表 */
:root {
  --base-blue: #F5C9A0;
  --line: #F5DFC5;
  --ink: #5C2A0A;
  --muted: #C47A35;
  --thead: #FDF3E7;
}

.loan-example__lead {
  margin: 8px 0 18px;
  color: var(--muted);
  line-height: 1.8
}

.loan-example__title {
  font-size: 1.2rem;
  margin: 18px 0 8px;
  color: #0f172a;
  padding-left: 10px;
  border-left: 4px solid var(--base-blue);
}

.loan-table__wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch
}

.loan-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(245, 170, 100, .18);
  font-size: 1.6rem;
}

.loan-table thead th {
  background: var(--thead);
  color: #0f172a;
  text-align: center;
  padding: 10px 12px;
  font-weight: 700;
  white-space: nowrap;
}

.loan-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--line)
}

.loan-table td:nth-child(1) {
  white-space: nowrap
}

.loan-table td:nth-child(2),
.loan-table td:nth-child(3),
.loan-table td:nth-child(4) {
  text-align: center;
  white-space: nowrap
}

.loan-example__notes {
  margin: 12px 0 4px;
  color: #9A5C2A;
  line-height: 1.7
}

.loan-example__cta {
  text-align: center;
  margin: 10px 0 0
}

.loan-example__link {
  display: inline-block;
  background: var(--base-blue);
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(245, 170, 100, .35);
}

.loan-example__link:hover {
  filter: brightness(1.05)
}

@media (max-width: 720px) {

  .loan-table thead th,
  .loan-table td {
    padding: 9px 10px
  }
}

/* ▼ モバイル時：テーブルを縦カード化（HTML変更不要） */
@media (max-width: 720px) {

  /* テーブル要素をブロック化 */
  .loan-table,
  .loan-table thead,
  .loan-table tbody,
  .loan-table th,
  .loan-table td,
  .loan-table tr {
    display: block;
    width: 100%;
  }

  /* 見出し行は画面外へ（アクセシビリティ配慮で display:none は使わない） */
  .loan-table thead {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    overflow: hidden;
  }

  /* 1レコードを“カード”っぽく */
  .loan-table tr {
    border: 1px solid var(--line);
    background: #fff;
    margin: 0 0 12px;
    padding: 8px 10px;
    box-shadow: 0 4px 12px rgba(245, 170, 100, .12);
  }

  /* 各セルはラベル＋値の2段構成に */
  .loan-table td {
    position: relative;
    padding: 10px 10px 10px 9.5em;
    /* ← 左にラベル分の余白を確保 */
    border: none;
    border-bottom: 1px solid var(--line);
    text-align: left !important;
    /* PC時のcenter指定を上書き */
    white-space: normal;
    /* 改行OK */
  }

  .loan-table td:last-child {
    border-bottom: none;
  }

  /* ラベル（theadの見出しを疑似要素で再掲） */
  .loan-table td::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 10px;
    width: 8.8em;
    /* ラベル枠の幅（調整可） */
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
  }

  .loan-table td:nth-child(1)::before {
    content: "支払い回数";
  }

  .loan-table td:nth-child(2)::before {
    content: "初回支払額";
  }

  .loan-table td:nth-child(3)::before {
    content: "2回目以降";
  }

  .loan-table td:nth-child(4)::before {
    content: "お支払い額総額";
  }
}

/*------------------------------------- 下層 --------------------------------------*/
/* ========= flow_simple ========= */
.flow_simple {
  --ink: #0f172a;
  --sub: #8B4513;
  --line: #e5e7eb;
  --brand: #C05C20;
  --accent: #E87C2B;

  margin-top: 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow_simple li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 16px 56px;
  box-shadow: 0 8px 24px rgba(60, 25, 5, .06);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  align-items: center;
}

/* 番号バッジ */
.flow_simple li>span {
  position: absolute;
  left: 8px;
  top: 20px;
  width: 45px;
  height: 45px;
  text-align: center;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(135deg, #C47A35, #F5C9A0);
}

/* 本文 */
.flow_simple li>div {
  color: var(--ink);
  line-height: 1.8;
}

/* ステップ間の小さなコネクタ（PC時のみ） */
@media (min-width: 961px) {
  .flow_simple li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 45px;
    width: 12px;
    height: 2px;
    background: linear-gradient(90deg, #8B4513, #D48A4E);
    border-radius: 2px;
  }
}

/* SPレイアウト */
@media (max-width: 960px) {
  .flow_simple {
    grid-template-columns: 1fr;
  }

  .flow_simple li:not(:last-child)::after {
    display: none;
  }
}

/* 省エネ（任意） */
@media (prefers-reduced-motion: reduce) {
  .flow_simple li {
    transition: none;
  }
}

/* はじめての方へ治療の流れ */
.treatment-flow {
  padding: 60px 20px;
  background-color: #fff;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 80px;
  padding-left: 100px;
}

.flow-step::before {
  content: "";
  position: absolute;
  left: 60px;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: #D48A4E;
}

.flow-number {
  position: absolute;
  top: 0;
  left: 30px;
  width: 60px;
  height: 60px;
  border: 2px solid #D48A4E;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 22px;
  color: #D48A4E;
  font-weight: bold;
  background-color: #fff;
  z-index: 0;
  font-family: 'Noto Serif JP', serif;
}

.flow-content {
  flex: 1;
  padding-right: 20px;
}

.flow-title {
  font-size: 30px;
  font-weight: normal;
  color: #D48A4E;
  margin: 10px 20px;
}

.flow-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.flow-image {
  flex: 0 0 320px;
  /* 幅を広げる */
  max-width: 100%;
}

.flow-image img {
  width: 100%;
  height: auto;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .treatment-flow {
    padding: 0px;
    margin-bottom: 50px;
  }

  .flow-step {
    flex-direction: column;
    padding-left: 40px;
    margin-bottom: 0px;
  }

  .flow-number {
    left: 0;
  }

  .flow-step::before {
    left: 30px;
  }

  .flow-image {
    margin-top: 20px;
    width: 100%;
  }

  .flow-content {
    padding-right: 0px;
  }

  .flow-content p {
    margin-left: 20px;

  }

  .flow-title {
    margin: 10px 10px 10px 50px;
    font-size: 20px;
  }
}

.section-text span {
  color: navy;
  /* 文字色をネイビーに設定 */
  font-size: 25px;
  /* 文字サイズを25pxに設定 */
  font-family: 'Noto Sans JP', sans-serif;
  /* フォントを Noto Sans JP に設定 */
}

/* アクセス診療時間ページ */
/* マップ */
.map-container {
  position: relative;
  width: 100%;
  padding-top: 28.125%;
  /* 16:9の半分のアスペクト比 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 診療時間表のデザイン */
.footer-hours-table {
  width: 70%;
  border-collapse: collapse;
  margin: 20px auto;
  /* 自動で左右のマージンを調整して中央に配置 */
}

.footer-hours-table th,
.footer-hours-table td {
  padding: 12px;
  text-align: center;
  border: 1px solid #FEF0E0;
  font-size: 1.6rem;
  color: #666;
}

.footer-hours-table th {
  background-color: #D4824A;
  font-weight: bold;
  color: white;
}

.footer-hours-table td {
  background-color: #ffffff;
}

.footer-hours-table td.footer-closed {
  background-color: #FDF3E7;
  font-size: 1.6rem;
  text-align: center;
  font-style: italic;
  color: #8B4513;
}

/* 横に並ぶ曜日と診療時間を整える */
.footer-hours-table td,
.footer-hours-table th {
  min-width: 50px;
}

/* ====== モバイル対応 ====== */
@media (max-width: 768px) {

  /* 診療時間表：横スクロールできるように */
  .footer-hours-table {
    display: block;
    /* テーブルをブロック化してスクロール可に */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    /* 折返し防止 */
    margin-top: 14px;
    border: 1px solid #FEF0E0;
    /* スクロール時も枠が見えるように */
  }

  .footer-hours-table table {
    width: 100%;
  }

  /* 念のため */
  .footer-hours-table th,
  .footer-hours-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .footer-hours-table {
    width: 100%;
  }
}

/*------------------------------------- ｈ3画像ありの2カラム --------------------------------------*/
.medical-text-image {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.medical-image {
  width: 300px;
  flex-shrink: 0;
}

.medical-image img {
  width: 100%;
  height: auto;
}

.medical-text-image>div:nth-child {
  flex: 0 0 60%;
}

.medical-text-image>div:nth-child(2) {
  flex: 0 0 40%;
  /* 右側 */
}

p.medical-desc {
  margin: auto;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .medical-text-image {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .medical-image {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
  }
}

/*------------------------------------- ｈ3左線/枠付き --------------------------------------*/
.color-box {
  background-color: #f9f9f9;
  padding: 25px;
  margin-bottom: 30px;
  /* 	border-left: 4px solid #D48A4E; */
}

.color-box-heading {
  font-size: 2rem;
  color: #8B4513;
  margin-top: 10px;
  margin-bottom: 15px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .color-box {
    padding: 10px;
  }

  .color-box-heading {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 15px;
  }
}

/*------------------------------------- ｈ32カラムカード型 --------------------------------------*/
.card-2container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 30px;
  justify-content: center;
  /* コンテナの子要素を中央寄せ */
}

.card-2 {
  background-color: rgba(212, 130, 74, 0.28);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333;
  margin: 0 auto;
  width: 100%;
}

.card-2 h3 {
  color: #8B4513;
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

.card-2 p {
  line-height: 1.6;
  color: #555;
}

@media (max-width: 768px) {
  .card-2container {
    grid-template-columns: 1fr;
    padding: 10px;
  }
}


.bg .under_flex_box {
  background: #FEE8C86E;
  margin: 10px 0;
}

.under_flex_box {
  display: flex;
}

.txt_box {
  flex: 3;
  padding: 15px;
  margin: auto;
}

.img_box {
  flex: 2;
  padding: 15px;
  margin: auto;
}

.bg2 .under_flex_box {
  border: 1px dashed #E0874C;
  margin: 10px 0;
}

/*------------------------------------- お悩み別CSS --------------------------------------*/
section {
  padding-top: 30px;
}

.ma30 {
  margin: 30px 0;
}

.border1 {
  padding: 30px;
  background: #FDF3E7;
}

.blue-underline {
  background: linear-gradient(transparent 34%, #E8933052 80%);
}

.column2 {
  display: flex;
}

.column2 .under_flex_box {
  width: 50%;
}

.column2 .under_flex_box {
  flex-direction: column;
}

.column2 .txt_box {
  background: #dddddd36;
  margin: 5px;
}

.under_flex_box p {
  margin: 10px 0;
}

/* モバイル版 */
@media (max-width: 767px) {
  .column2 .under_flex_box {
    width: 100%;
  }

  .column2 {
    flex-direction: column;
  }
}

/*--------------------- 予約ボックス ---------------------*/
.bner_box {
  margin-top: 20px;
  background: url(../images/consultation/bner.png) right bottom no-repeat;
  background-size: cover;
  border: 1px solid #C4682E;
  height: 440px;
  width: 55%;
  margin: 20px auto;
}

.bner_box .box {
  box-sizing: border-box;
  padding: 65px 0 29px 60px;
  width: 45%;
  height: 100%;
  background-color: rgba(255, 255, 255, .67);
  box-shadow: 0px 0px 16px 0px rgba(180, 100, 30, .09);
}

.bner_box .box .tel {
  margin-top: 38px;
}

.bner_box .box .tel .txt {
  padding-left: 13px;
  color: #2e2e2e;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .05em;
  position: relative;
}

.bner_box .box .tel .txt:before {
  content: '▶';
  display: block;
  /* width: 4px;
    height: 7px; */
  position: absolute;
  top: 2px;
  left: 0;
  font-size: 11px;
}

.bner_box .box .tel .number {
  margin-top: 11px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.bner_box .box .tel .number span {
  color: #2e2e2e;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
}

.bner_box .box .cv_btn {
  width: 226px;
  margin-top: 20px;
}

.bner_box .box .cv_btn li a {
  display: block;
  padding: 13px 0 10px;
  margin: 8px 0;
  text-align: center;
  color: #fff;
  font-size: 16.73px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .2em;
  position: relative;
  border-radius: 40px;
}

.bner_box .box .cv_btn li a:hover {
  opacity: .5;
  color: #fff;
}

.bner_box .box .cv_btn li:nth-child(1) a {
  background-color: rgb(220 120 40 / 90%);
}

.bner_box .box .cv_btn li:nth-child(2) a {
  background-color: rgb(255 165 80 / 90%);
}

.bner_box .box .station {
  margin-top: 27px;
  color: #2e2e2e;
  font-size: 16px;
  line-height: 1.56;
}

.bner_box .box .access span.color {
  color: #E07030;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .bner_box {
    position: relative;
    width: 90%;
  }

  .bner_box .box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    padding: 10px 20px;
  }

  .bner_box .box .tel {
    margin: 0;
    text-align: center;
  }

  .bner_box .box .tel .txt {
    font-size: 0.8rem;
  }

  .bner_box .box .tel .txt:before {
    left: 25px;
  }

  .bner_box .box .tel .number {
    justify-content: center;
  }

  .bner_box .box .tel .number span {
    font-size: 1.5rem;
  }

  .bner_box .box .cv_btn {
    margin: auto;
  }

  .bner_box .box .cv_btn li a {
    padding: 10px 0 10px;
    margin-top: 11px;
  }

  .bner_box .box .access {
    text-align: center;
  }
}

/*--------------------- こんな人にお勧め ---------------------*/
.eline-rec {
  margin: 32px 0;
  padding: 20px 18px 18px;
  border-radius: 10px;
  border: 1px solid #FEE8C8;
  background-color: #FDF3E7;
  position: relative;
}

.eline-rec__title {
  margin: 0 0 14px;
  padding-left: 10px;
	font-size: 2rem;
  font-weight: 700;
  color: #C4682E;
  border-left: 4px solid #E0874C;
}

.eline-rec__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eline-rec__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
/*   font-size: 0.95rem; */
  line-height: 1.7;
  color: #8B4513;
  letter-spacing: .19em;
}

.eline-rec__list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.8em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #E0874C;
  transform: translateY(-50%);
}

@media (max-width: 767px) {
  .eline-rec {
    padding: 16px 14px;
  }

  .eline-rec__title {
    font-size: 1.6rem;
  }

  .eline-rec .img_box {
    position: absolute;
    top: -35px;
    right: -133px;
  }

  .eline-rec .img_box img {
    width: 30%;
  }

  .eline-rec .txt_box {
    padding: 0;
  }
}


/*--------------------- h4あり ---------------------*/
.headlineswrap {
  /* background: #FDF3E7; */
  padding: 30px 15px;
  margin: 50px 0;
  position: relative;
}

.headlineswrap::before {
  position: absolute;
  content: "";
  background: linear-gradient(90deg, rgba(240, 180, 100, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.8;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  z-index: -1;
  left: auto;
  right: 0;
  transform: scale(-1, 1);
}

.headlineswrap.another::before {
  background: linear-gradient(90deg, #efe2c1 0%, rgba(255, 255, 255, 0) 100% 100%);
}

.headlineswrap.another .medical-h3 {
  color: #453715;
  border-bottom: 1px solid #caa850;
}

p.sousyoku {
  position: absolute;
  font-size: 4rem;
  color: #55555557;
  top: -45px;
}

/* ブロック全体 */
.h4wrap {
  margin: 32px 0;
  padding: 20px 18px 18px;
  background-color: #FDF3E7;
  border: 1px solid #FEE8C8;
}


/* 見出し */
.h4wrap .medical-h4 {
  margin: 0 0 16px;
  padding-left: 10px;
  /* color: #C4682E; */
  /* border-left: 4px solid #8B4513; */
  font-weight: 600;
}


/* リスト全体 */
.h4wrap .list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: wire-num;
}

.h4wrap .list li {
  position: relative;
  margin-bottom: 14px;
  padding: 12px 12px 12px 52px;
  background-color: #ffffff;
  border: 1px solid #FEE8C8;
}

/* 番号の丸アイコン */
.h4wrap .list li::before {
  counter-increment: wire-num;
  content: counter(wire-num);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #E0874C;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 1行目（小見出し） */
.h4wrap .list li p:first-child {
  margin: 0 0 4px;
  font-weight: 700;
  color: #8B4513;
/*   font-size: 0.98rem; */
}

/* 2行目以降（本文） */
.h4wrap .list li p:last-child {
  margin: 0;
/*   font-size: 0.92rem; */
  line-height: 1.7;
  color: #8B5A2B;
}

.h4wrap.another {
  margin: 32px 0;
  padding: 20px 18px 18px;
  background-color: #efe2c1;
  border: 1px solid #ccb781;
}

.h4wrap.another .medical-h4 {
  border-left: 4px solid #caa850;
}

.h4wrap.another .list li::before {
  background-color: #caa850;
}

/* -----------------------------------
   画像＆要約
----------------------------------- */
.case-header {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  /*   z-index: 1; */
}

/* 画像をポラロイド風に */
.case-img-only img {
  width: 80%;
  max-width: 100%;
  border-radius: 16px;
  display: block;
}

.case-img-only {
  position: relative;
}

/* Before→After ラベル */
.case-img-only::after {
  content: "Before ▶ After";
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
}

/* 要約エリア */
.case-summary {
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
}

/* タグ（小臼歯抜歯／ワイヤー矯正） */
.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #866b1a;
  background: linear-gradient(90deg, #fffde7, #fffdf1);
  border-radius: 999px;
  border: 1px solid rgb(220 202 62 / 30%);
}

.case-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #caa850, #e7d7ae);
}

/* 主訴・期間の表 */
.case-meta {
  margin: 0 0 8px;
}

.case-meta>div {
  display: flex;
  margin-bottom: 3px;
}

.case-meta dt {
  width: 70px;
  font-weight: 600;
  font-size: 13px;
  color: #8B4513;
}

.case-meta dd {
  margin: 0;
}

/* 一言コメント */
.case-oneword {
  margin-top: 6px;
  font-size: 13px;
  color: #6B3A1F;
}

@media (max-width: 768px) {
  .casewrap .under_flex_box {
    flex-direction: row;
  }

  .note {
    padding-left: 0;
    border-left: none;
  }
}

/* -----------------------------------
   アコーディオン
----------------------------------- */
.accordion {
  margin-top: 18px;
  text-align: center;
  position: relative;
  z-index: 0;
}

.accordion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid #caa850;
  background: #fff9e8;
  font-size: 13px;
  font-weight: 600;
  color: #caa850;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.accordion-btn::after {
  content: "＋";
  font-size: 14px;
}

.accordion-btn.open::after {
  content: "－";
}

.accordion-btn:hover {
  background: #fff9e8;
  box-shadow: 0 6px 14px rgba(12, 62, 142, 0.18);
  transform: translateY(-1px);
}

.accordion-content {
  display: none;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px dashed rgba(102, 140, 190, 0.4);
  text-align: left;
  font-size: 13px;
  line-height: 1.8;
  color: #5C2A0A;
}

.case-price li {
  list-style: disc;
  margin-left: 1.4em;
}

.medical-h5 {
  font-weight: 600;
  font-size: 1rem;
  color: #8B4513;
}

/* スマホ最適化 */
@media (max-width: 768px) {
  .casewrap {
    padding: 20px 15px 18px;
    border-radius: 18px;
  }

  .case-header {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .case-img-only img {
    width: 85%;
    max-width: 260px;
  }

  .case-summary {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .h4wrap {
    padding: 16px 12px 14px;
  }

  .h4wrap .medical-h4 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .h4wrap .list li {
    padding: 10px 10px 10px 40px;
  }

  .h4wrap .list li::before {
    left: 5px;
    font-size: 0.85rem;
    top: 14%;
  }
  p.sousyoku {
    font-size: 5.5rem;
  }
}

/*--------------------- h4あり2 ---------------------*/
.h3_box_wrap {
  background: #f4f9ff;
  padding: 30px 20px;
  margin: 20px 0;
}

.h3_box .medical-h3 {
  text-align: center;
}

@media (max-width: 767px) {
  .h3_box_wrap {
    padding: 30px 15px;
  }
}


.symptoms-container {
  background-color: #f4f7f6;
  padding: 20px 20px 20px 40px;
  margin: 0 auto;
}

.symptom-list {
  list-style-type: none;
  padding-left: 0;
}

.symptom-list li {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.symptom-list li::before {
  content: "✔";
  color: #8B4513;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: 0;
}

/* モバイル版 */
@media (max-width: 767px) {
  .symptoms-container {
    padding: 20px 10px;
  }
}

/*--------------------- CTAボタン ---------------------*/
/* 痛み相談CTA（くすみブルー版） */
.pain-cta {
  max-width: 640px;
  margin: 40px auto;
  padding: 24px 20px 28px;
  background: #f3f8fb;
  /* 淡いくすみ水色 */
  border-radius: 12px;
  border: 1px solid #d1e1ea;
  /* 優しいブルーグレー */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.pain-cta__lead {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #C4682E;
  /* くすみブルー */
}

.pain-cta__text {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 18px;
  color: #50616d;
  /* 青みがかったグレー */
}

.pain-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #E0974C, #E0874C);
  /* くすみブルーのグラデ */
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(100, 140, 170, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.pain-cta__btn-arrow {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.9em;
}

.pain-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(100, 140, 170, 0.42);
  opacity: 0.96;
  color: #fff;
}

.pain-cta__btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(100, 140, 170, 0.30);
}

/* PCで余白調整 */
@media screen and (min-width: 768px) {
  .pain-cta {
    padding: 28px 32px 32px;
  }
}


/*--------------------- 見出しタグなしデザイン ---------------------*/
.treat-point-list {
  margin: 30px 0;
}

/* 1つ1つのブロックに枠線＋余白＋影 */
.treat-point-item {
  border: 1px solid #e8e8e8;
  padding: 14px 16px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  /* 浮いて見せる影 */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.treat-point-item+.treat-point-item {
  margin-top: 16px;
}

/* ホバーしたとき、少し浮く感じに */
.treat-point-item:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* タイトル行 */
.treat-point-title {
  display: flex;
  align-items: center;
  font-weight: 600;
/*   font-size: 1.05rem; */
  margin: 0 0 6px;
}

/* アイコン部分 */
.treat-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #8B4513;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-right: 8px;
}

/* 説明テキスト */
.treat-point-text {
  margin: 0;
/*   font-size: 0.95rem; */
  line-height: 1.8;
}

/*--------------------- 4カラム画像付き、hタグではない ---------------------*/
.treat-option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.treat-option-item {
  background-color: #fff;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.treat-option-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  /* 画像がなくても形が崩れないように */
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 10px;
}

.treat-option-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.treat-option-title {
  font-weight: 600;
  font-size: 15px;
  margin: 6px 0 8px;
}

.treat-option-text {
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}

/* タブレット：2カラム */
@media (max-width: 1024px) {
  .treat-option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ：1カラム */
@media (max-width: 768px) {
  .treat-option-grid {
    grid-template-columns: 1fr;
  }

  .treat-option-item {
    text-align: left;
  }

  .treat-option-title {
    text-align: left;
  }
}

/* 4カラム */
/* セクション全体（必要なら調整） */
.check-section {
  margin: 40px 0;
}

/* グリッド：PC4列 */
.check-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 各カード */
.check-item {
  background-color: #F2F8FE;
  padding: 18px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* タイトル行 */
.check-title {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 8px;
}

/* 番号アイコン */
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #8B4513;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-right: 8px;
}

/* 説明テキスト */
.check-text {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}

/* タブレット：2列 */
@media (max-width: 1024px) {
  .check-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ：1列（2列にしたい場合はここを repeat(2,1fr) に） */
@media (max-width: 768px) {
  .check-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------- 3カラム画像なし、hタグではない ---------------------*/
/* セクション全体：薄いブルー背景 */
.principle-section {
  padding: 40px 20px;
  background-color: #f0f8ff;
  /* お好みで調整OK */
}

.principle-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* 3カラムグリッド */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 各カード */
.principle-item {
  background-color: #fff;
  padding: 18px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* タイトル */
.principle-title {
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 8px;
  color: #8B4513;
}

/* 本文 */
.principle-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

/* タブレット：2カラム */
@media (max-width: 1024px) {
  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ：1カラム */
@media (max-width: 768px) {
  .principle-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------- ｈ4以下のデザイン ---------------------*/
/* 全体カード */
.treatment-summary {
  background-color: #f0f8ff;
  /* 薄いブルー背景 */
  padding: 20px 22px;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* 行ごとのレイアウト */
.summary-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  /* ラベル列＋内容列 */
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed #d0dfed;
}

.summary-row:last-of-type {
  border-bottom: none;
}

/* ラベル側 */
.summary-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #C4682E;
  background: #e3f0ff;
  border-radius: 999px;
  padding: 6px 10px;
  text-align: center;
}

/* 値側 */
.summary-value {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

/* 装置リスト */
.device-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.device-list li+li {
  margin-top: 6px;
}

/* 装置名タグ部分 */
.device-tag {
  display: inline-block;
  font-weight: 600;
  margin-right: 4px;
  color: #8B4513;
}

/* 下のメッセージ */
.summary-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.8;
}

/* SPでラベルを上に持ってくる */
@media (max-width: 768px) {
  .summary-row {
    grid-template-columns: 1fr;
  }

  .summary-label {
    text-align: left;
    width: fit-content;
  }
}

/*--------------------- グラフCSS ---------------------*/
.ortho-chart {
  max-width: 85%;
  margin: 40px auto;
  padding: 24px 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  font-family: Noto serif JP;
}

.ortho-chart__title {
  font-size: 20px;
  margin: 0 0 4px;
  text-align: center;
}

.ortho-chart__subtitle {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin: 0 0 16px;
}

.ortho-chart__wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}

/* Y軸 */
.ortho-chart__yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 8px 48px 0;
  /* 下に余白を少し増やす */
  font-size: 11px;
  color: #666;
}

.ortho-chart__ylabel {
  text-align: right;
}

/* グリッド＆バー部分 */
.ortho-chart__grid {
  position: relative;
  padding: 8px 8px 48px;
  /* ラベル分の余白 */
  border-left: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  /* ここが0％のベースライン */
  overflow-x: auto;
}

.ortho-chart__grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.ortho-chart__grid-line[data-line="30"] {
  bottom: 30%;
}

.ortho-chart__grid-line[data-line="20"] {
  bottom: 20%;
}

.ortho-chart__grid-line[data-line="10"] {
  bottom: 10%;
}

.ortho-chart__grid-line[data-line="0"] {
  bottom: 0;
}

.ortho-chart__bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 15px;
  height: 260px;
}

.ortho-chart__bar {
  --bar-height: 0%;
  position: relative;
  flex: 0 0 40px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100%;
}

.ortho-chart__bar-inner {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #E07030, #E8933C);
  box-shadow: 0 4px 10px rgba(75, 154, 214, 0.25);
  height: var(--bar-height);
  transform-origin: bottom;
  /* 下を起点に */
  animation: ortho-bar-grow 0.7s ease-out forwards;
}

@keyframes ortho-bar-grow {
  from {
    height: 0;
  }

  /* 下から伸びる */
  to {
    height: var(--bar-height);
  }
}

/* 数値：バーの“上”に表示 */
.ortho-chart__value {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--bar-height) + 6px);
  /* バーの上端＋余白 */
  font-size: 10px;
  color: #333;
  white-space: nowrap;
}

/* 年齢ラベル：ベースラインの“下”に表示 */
.ortho-chart__label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -26px;
  /* 軸より下に */
  font-size: 11px;
  color: #555;
  white-space: nowrap;
}

/* 各バーの高さ（最大25.6％を100%としてスケール） */
.ortho-chart__bar:nth-child(1) {
  --bar-height: 0%;
}

/* 0.0% */
.ortho-chart__bar:nth-child(2) {
  --bar-height: 34.8%;
}

/* 8.9% */
.ortho-chart__bar:nth-child(3) {
  --bar-height: 82.8%;
}

/* 21.2% */
.ortho-chart__bar:nth-child(4) {
  --bar-height: 48.8%;
}

/* 12.5% */
.ortho-chart__bar:nth-child(5) {
  --bar-height: 75.0%;
}

/* 19.2% */
.ortho-chart__bar:nth-child(6) {
  --bar-height: 51.6%;
}

/* 13.2% */
.ortho-chart__bar:nth-child(7) {
  --bar-height: 58.2%;
}

/* 14.9% */
.ortho-chart__bar:nth-child(8) {
  --bar-height: 100%;
}

/* 25.6% */
.ortho-chart__bar:nth-child(9) {
  --bar-height: 71.5%;
}

/* 18.3% */
.ortho-chart__bar:nth-child(10) {
  --bar-height: 37.9%;
}

/* 9.7% */
.ortho-chart__bar:nth-child(11) {
  --bar-height: 45.3%;
}

/* 11.6% */
.ortho-chart__bar:nth-child(12) {
  --bar-height: 17.2%;
}

/* 4.4% */
.ortho-chart__bar:nth-child(13) {
  --bar-height: 19.9%;
}

/* 5.1% */
.ortho-chart__bar:nth-child(14) {
  --bar-height: 23.0%;
}

/* 5.9% */
.ortho-chart__bar:nth-child(15) {
  --bar-height: 10.2%;
}

/* 2.6% */
.ortho-chart__bar:nth-child(16) {
  --bar-height: 9.4%;
}

/* 2.4% */
.ortho-chart__bar:nth-child(17) {
  --bar-height: 2.3%;
}

/* 0.6% */
.ortho-chart__bar:nth-child(18) {
  --bar-height: 7.4%;
}

/* 1.9% */

/* 左から順にニョキっと出るディレイ */
.ortho-chart__bar:nth-child(1) .ortho-chart__bar-inner {
  animation-delay: 0s;
}

.ortho-chart__bar:nth-child(2) .ortho-chart__bar-inner {
  animation-delay: 0.02s;
}

.ortho-chart__bar:nth-child(3) .ortho-chart__bar-inner {
  animation-delay: 0.04s;
}

.ortho-chart__bar:nth-child(4) .ortho-chart__bar-inner {
  animation-delay: 0.06s;
}

.ortho-chart__bar:nth-child(5) .ortho-chart__bar-inner {
  animation-delay: 0.08s;
}

.ortho-chart__bar:nth-child(6) .ortho-chart__bar-inner {
  animation-delay: 0.10s;
}

.ortho-chart__bar:nth-child(7) .ortho-chart__bar-inner {
  animation-delay: 0.12s;
}

.ortho-chart__bar:nth-child(8) .ortho-chart__bar-inner {
  animation-delay: 0.14s;
}

.ortho-chart__bar:nth-child(9) .ortho-chart__bar-inner {
  animation-delay: 0.16s;
}

.ortho-chart__bar:nth-child(10) .ortho-chart__bar-inner {
  animation-delay: 0.18s;
}

.ortho-chart__bar:nth-child(11) .ortho-chart__bar-inner {
  animation-delay: 0.20s;
}

.ortho-chart__bar:nth-child(12) .ortho-chart__bar-inner {
  animation-delay: 0.22s;
}

.ortho-chart__bar:nth-child(13) .ortho-chart__bar-inner {
  animation-delay: 0.24s;
}

.ortho-chart__bar:nth-child(14) .ortho-chart__bar-inner {
  animation-delay: 0.26s;
}

.ortho-chart__bar:nth-child(15) .ortho-chart__bar-inner {
  animation-delay: 0.28s;
}

.ortho-chart__bar:nth-child(16) .ortho-chart__bar-inner {
  animation-delay: 0.30s;
}

.ortho-chart__bar:nth-child(17) .ortho-chart__bar-inner {
  animation-delay: 0.32s;
}

.ortho-chart__bar:nth-child(18) .ortho-chart__bar-inner {
  animation-delay: 0.34s;
}

/* スクロールバー調整（対応ブラウザのみ） */
.ortho-chart__grid::-webkit-scrollbar {
  height: 6px;
}

.ortho-chart__grid::-webkit-scrollbar-track {
  background: #f3f3f3;
}

.ortho-chart__grid::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 3px;
}

/* スマホ（横棒グラフに切り替え） */
@media (max-width: 640px) {

  .ortho-chart {
    max-width: 100%;
    margin: 20px auto;
    padding: 12px 10px;
  }

  /* レイアウトは1カラムに */
  .ortho-chart__wrapper {
    grid-template-columns: 1fr;
  }

  /* Y軸ラベルとグリッド線はスマホでは非表示 */
  .ortho-chart__yaxis {
    display: none;
  }

  .ortho-chart__grid {
    padding: 8px 0 8px;
    border-left: none;
    border-bottom: none;
    overflow-x: visible;
  }

  .ortho-chart__grid-line {
    display: none;
  }

  /* 棒グラフ部分を縦並びにして横棒グラフに */
  .ortho-chart__bars {
    display: flex;
    flex-direction: column;
    /* 縦に並べる */
    align-items: stretch;
    gap: 8px;
    height: auto;
  }

  .ortho-chart__bar {
    height: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    /* 一列ずつに余白 */
    padding: 2px 0;
    --bar-height: var(--bar-height);
    /* 名前はそのまま使う */
  }

  /* 横方向の長さで割合を表現 */
  .ortho-chart__bar-inner {
    order: 2;
    height: 12px;
    width: var(--bar-height);
    /* 0〜100% をそのまま横幅に */
    max-width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #E07030, #E8933C);
    box-shadow: 0 2px 6px rgba(75, 154, 214, 0.25);
    transform-origin: left;
    animation: ortho-bar-grow 0.7s ease-out forwards;
  }

  @keyframes ortho-bar-grow {
    from {
      width: 0;
    }

    to {
      width: var(--bar-height);
    }
  }

  /* 年齢ラベル：左側に */
  .ortho-chart__label {
    order: 1;
    position: static;
    transform: none;
    bottom: auto;
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    min-width: 64px;
    text-align: left;
  }

  /* 数値：バーの右側に */
  .ortho-chart__value {
    order: 3;
    position: static;
    transform: none;
    bottom: auto;
    font-size: 10px;
    color: #333;
    white-space: nowrap;
    margin-left: 4px;
  }
}


/* ===================== 汎用カードセクション ===================== */
.card-section {
  margin-top: 50px;
}

/* 背景つきの大ラッパー */
.card-section__wrap {
  padding: 28px 24px 32px;
  background: radial-gradient(circle at top left, #eef4ff 0, #f8fbff 40%, #ffffff 100%);
  border: 1px solid #dde6f6;
  border-radius: 16px;
  margin-bottom: 20px;
}

/* カード本体 */
.card-block {
  position: relative;
  margin: 0 0 22px;
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* 飾りの光（青） */
.card-block::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(162, 207, 254, 0.45), transparent 60%);
  opacity: 0.65;
  pointer-events: none;
}

/* アクセントバージョン（黄色光） */
.card-block--accent::after {
  background: radial-gradient(circle at center, rgba(252, 211, 77, 0.45), transparent 60%);
}

/* 画像 */
.card-block__image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* テキストエリア */
.card-block__body p {
  line-height: 1.8;
  font-size: 0.95rem;
}

/* タグ */
.card-block__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin-bottom: 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: #8B4513;
  background: #FEE8C8;
}

.card-block__tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D4701E;
}

/* タグ：黄色系 */
.card-block__tag--accent {
  color: #92400e;
  background: #fef3c7;
}

.card-block__tag--accent::before {
  background: #f59e0b;
}

/* PC時：比率調整 */
.card-block .img_box {
  flex: 2;
}

.card-block .txt_box {
  flex: 3;
}

/* ------------------- モバイル ------------------- */
@media (max-width: 768px) {

  .card-section__wrap {
    padding: 18px 12px 24px;
  }

  .card-block {
    padding: 16px 12px;
    margin-bottom: 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  }

  .card-block__tag {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }

  .card-block__body p {
    font-size: 0.9rem;
  }

  .card-block::after {
    right: -50px;
    top: -60px;
    opacity: 0.45;
  }
}

/*--------------------- 2カラム箇条書き ---------------------*/
.point-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 60px;
}

.point {
  width: 50%;
}

.point-header {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #E0874C;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.appearance-list,
.bite-list {
  list-style-type: none;
  padding-left: 0;
  border: 1px solid #ddd;
  padding-top: 10px;
  background: #fff;
  margin-bottom: 10px;
}

.appearance-list li,
.bite-list li {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.6;
  padding: 10px;
  position: relative;
  padding-left: 30px;
}

.checkmark {
  color: #E0874C;
  font-size: 20px;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* モバイル版（画面幅が768px以下の場合） */
@media (max-width: 768px) {
  .point-header {
    font-size: 18px;
  }

  .point-container {
    flex-direction: column;
    gap: 20px;
  }

  .point {
    width: 100%;
  }
}

/* 症例ブロックのスタイル */
/* BeforeとAfterのテキスト */
.before-text,
.after-text {
  font-size: 20px;
  font-weight: bold;
  color: white;
  /* 文字色 */
  background-color: rgba(91, 132, 177, 0.7);
  /* 透明度0.7を追加 */
  padding: 10px 50px;
  /* 内側の余白 */
  text-align: center;
  position: absolute;
  bottom: -50px;
  /* 画像の下に配置 */
  left: 50%;
  transform: translateX(-50%);
  /* 中央寄せ */
  z-index: 1;
  /* 画像の上に表示 */
}

/* BeforeとAfterの写真 */
.before-photo,
.after-photo {
  display: inline-block;
  width: 100%;
  /* 幅を100%に設定 */
  text-align: center;
  position: relative;
  /* テキストを画像上に重ねるため */
  margin: 10px 0;
}

.before-photo img,
.after-photo img {
  width: 80%;
  height: auto;
}

/* 症例ブロックのスタイル */
.case-block {
  margin: 30px auto;
  width: 100%;
  /* 幅を100%に設定 */
  padding: 20px;
}

/* BeforeとAfter画像のセクションに間隔を追加 */
.before-section,
.after-section {
  margin-bottom: 20px;
}


/* 表のスタイル */
.case-table {
  width: 90%;
  /* 表の幅を80%に設定 */
  margin: 30px auto;
  /* 上下の余白を30px、左右の余白は自動で中央揃え */
  border-collapse: collapse;
}

.case-table table {
  width: 100%;
  /* テーブルの幅を100%に設定 */
  text-align: left;
  border: 1px solid #E0874C;
  /* 青系のボーダー */
  border-radius: 5px;
  background-color: #fff;
}

.case-table td {
  padding: 12px;
  border: 1px solid #E0874C;
  /* 青系のボーダー */
  font-size: 16px;
}

.case-table .header {
  font-weight: bold;
  background-color: #E0874C;
  /* 青系の背景色 */
  color: white;
  text-align: center;
}

.case-table td:nth-child(2) {
  background-color: #f7f7f7;
}

/* モバイル版（画面幅が768px以下の場合） */
@media (max-width: 768px) {
  .case-block {
    padding: 5px;
    /* スペースを少し小さく */
  }

  /* Before/Afterの写真を縦に並べる */
  .before-photo,
  .after-photo {
    width: 100%;
    /* 幅を100%にして縦並び */
    margin: 15px 0;
  }

  /* BeforeとAfterのテキスト位置調整 */
  .before-text,
  .after-text {
    bottom: -50px;
    /* 画像に少し近づける */
    font-size: 15px;
    /* フォントサイズを小さく */
    padding: 2px 40px;
    /* 内側の余白調整 */
  }

  /* 表の縦並び */
  .case-table {
    width: 100%;
    /* 表の幅を100%に */
    margin: 15px 0;
    /* 上下の余白を調整 */
  }

  .case-table table {
    width: 100%;
  }

  /* 表の縦並び */
  .case-table td {
    display: block;
    width: 100%;
    /* 各セルを縦に並べる */
    box-sizing: border-box;
    /* パディングを含む */
  }

  .case-table .header {
    text-align: center;
    /* ヘッダーを中央揃え */
  }
}

/* タブレット版（画面幅が768px以上の場合） */
@media (max-width: 1024px) {
  .case-block {
    padding: 10px;
    /* タブレットでも適度にスペースを維持 */
  }

  /* BeforeとAfterの画像調整 */
  .before-photo img,
  .after-photo img {
    width: 100%;
    /* タブレットでは80%の幅に */
  }
}

/*--------------------- 予約ページ ---------------------*/
/* ============================
   無料カウンセリング予約 全体デザイン
============================ */

.yoyaku_box {
  max-width: 920px;
  margin: 60px auto;
  padding: 40px 32px;
  background: #f2f7f3;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(79, 107, 91, 0.12);
  font-family: "Noto Sans JP", sans-serif;
}

/* フォーム全体 */
.yoyaku_box .wpcf7-form {
  width: 100%;
}

/* テーブル全体 */
.yoyaku_box .mousikomi {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 14px;
}

/* 左ラベル */
.yoyaku_box .yoyaku {
  width: 30%;
  vertical-align: middle;
  background: #D4A068;
  padding: 0 5px;
}

.yoyaku_box .yoyaku p {
  margin-bottom: 0;
}

.yoyaku_box .yoyaku .b {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.yoyaku_box .sankou {
  margin-left: 6px;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  border: 1px solid #fff;
  border-radius: 40px;
  padding: 3px 10px;
}

/* 右入力欄 */
.yoyaku_box td:last-child {
  width: 70%;
  padding: 0 10px;
}

/* 入力系共通 */
.yoyaku_box input[type="text"],
.yoyaku_box input[type="email"],
.yoyaku_box input[type="date"],
.yoyaku_box select,
.yoyaku_box textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 3px;
  border: 1px solid #cfdcd3;
  background: #fff;
  transition: 0.2s;
  box-sizing: border-box;
}

.yoyaku_box textarea {
  min-height: 120px;
  resize: vertical;
}

/* フォーカス時 */
.yoyaku_box input:focus,
.yoyaku_box select:focus,
.yoyaku_box textarea:focus {
  outline: none;
  border-color: #73927e;
  box-shadow: 0 0 0 2px rgba(115, 146, 126, 0.18);
}

/* ============================
   同意チェック
============================ */

.yoyaku_box .contact_bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #F5DFC5;
  text-align: center;
}

.yoyaku_box .contact_bottom input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
}

/* ============================
   送信ボタン
============================ */

.yoyaku_box #mail_submit2,
.yoyaku_box #mail_submit3 {
  margin-top: 24px;
  width: 100%;
  max-width: 360px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #73927e, #9db7a5);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

.yoyaku_box #mail_submit2:hover,
.yoyaku_box #mail_submit3:hover {
  opacity: 0.85;
}

.yoyaku_box .contact_bottom .center {
  margin-top: 14px;
  font-size: 13px;
  color: #4f5f55;
}

/* ============================
   スマホ調整
============================ */

@media (max-width: 768px) {

  .yoyaku_box {
    padding: 28px 18px;
  }

  .yoyaku_box .mousikomi,
  .yoyaku_box .mousikomi tr,
  .yoyaku_box .mousikomi td {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .yoyaku_box .yoyaku {
    margin-bottom: 6px;
  }

  .yoyaku_box .wpcf7-form-control-wrap[data-name="radio-240"] .wpcf7-list-item {
    flex: 1 1 calc(50% - 6px);
  }
}

/* ---------------------------------------設備紹介--------------------------------------- */
.equipment-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3カラムレイアウト */
  gap: 20px;
  padding: 20px;
}

.equipment-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 20px;
}

.equipment-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.equipment-title {
  color: #C4682E;
  /* 青系の色 */
  font-size: 1.5rem;
  margin: 15px 0 10px;
}

.equipment-item p {
  color: #666;
  font-size: 1.2rem;
  text-align: center;
}

/* モバイル版：縦並び */
@media screen and (max-width: 768px) {
  .equipment-section {
    grid-template-columns: 1fr;
    /* 縦並び */
    padding: 10px;
  }

  .equipment-item {
    margin-bottom: 20px;
    /* 各アイテム間にスペース */
  }
}

.explanation-block {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.explanation-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.explanation-img img {
  width: 100%;
  height: auto;
  max-width: 350px;
  border-radius: 8px;
}

.explanation-text {
  flex: 1;
}

.explanation-title {
  color: #C4682E;
  margin-bottom: 10px;
  font-weight: 400;
}

.explanation-desc {
  color: #666;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .explanation-item {
    flex-direction: column;
    gap: 10px;
  }

  .explanation-img img {
    max-width: 100%;
  }
}

/*==================================================================================================================================

  *各先生ページTOP

==================================================================================================================================*/

.c-1-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  background-color: #f8f8f8;
}

.c-1-image img {
  width: 100%;
  height: auto;
  box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.2);
  /* 左側にのみ影を付けて、右側の影を消す */
  transform: translateY(-10px);
  /* 画像を少し上に持ち上げる */
  transform-origin: left center;
  /* 画像の左側を基準に浮き上がりを調整 */
}

.c-1-text {
  width: 50%;
  padding-left: 20px;
  z-index: 0;
}

.d-1 {
  font-family: 'Ryumin', serif;
  font-size: 36px;
  line-height: 1.6;
  color: #5C2A0A;
  margin: 0 0 20px -250px;
}

.dnml {
  font-size: 23px;
  margin-right: 20px;
}

.d-nm {
  font-family: 'Ryumin', serif;
  font-size: 18px;
  color: #7f8c8d;
  margin: 0 0 10px 0;
  text-align: right;
}

.d-nm:nth-child(2) {
  font-weight: 400;
  font-size: 1.3rem;
  margin-top: 50px;
}

.d-nm:nth-child(3) {
  font-weight: 400;
  font-size: 2.5rem;
}

.d-nm:nth-child(4) {
  font-weight: 400;
  color: #d9534f;
  letter-spacing: 0.2em;
}

/* モバイル版のスタイル */
@media (max-width: 768px) {
  .c-1-container {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .c-1-image img {
    width: 100%;
    /* 画像がモバイルでも適切に表示されるように調整 */
    margin-bottom: 20px;
    /* 画像とテキストの間にスペース */
  }

  .c-1-text {
    width: 100%;
    text-align: center;
    /* テキストを中央に揃える */
    padding-left: 0;
  }

  .d-1 {
    font-size: 17px;
    /* モバイルでは文字サイズを少し小さく */
    margin: 0;
  }

  .dnml {
    font-size: 15px;
  }

  .d-nm {
    font-size: 15px;
    /* テキストのフォントサイズも小さく */
  }

  .d-nm:nth-child(2) {
    font-size: 0.9rem;
    margin-top: 20px;
  }

  .d-nm:nth-child(3) {
    font-size: 1.3rem;
  }
}

/* ============================ */
/*  YouTube + 文章 2カラムブロック */
/* ============================ */

.c-yt-text-block {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin: 40px 0;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  padding: 20px;
  margin: auto;
}

.c-yt-video,
.c-yt-text {
  flex: 1 1 45%;
}

.c-yt-video iframe {
  width: 100%;
  height: 400px;
  border-radius: 8px;
}

.c-yt-title {
  font-size: 24px;
  font-weight: 400;
  margin-top: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
  color: #E0874C;
}

.c-yt-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 12px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .c-yt-text-block {
    flex-direction: column;
    gap: 20px;
  }

  .c-yt-text {
    text-align: left;
  }

  .c-yt-title {
    font-size: 20px;
  }

  .c-yt-text p {
    font-size: 15px;
  }
}

/* ============================ */
/*  症例紹介の4つの画像とリンクボタン */
/* ============================ */

.c-case-intro {
  text-align: center;
  /*     padding: 40px; */
  /*     background-color: #f9f9f9; */
}

.c-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2カラム */
  gap: 20px;
  margin-bottom: 30px;
  max-width: 1200px;
  margin: auto;
}

.c-case-item {
  background-color: #ddd;
  padding: 20px;
  border-radius: 8px;
}

.c-case-item img {
  width: 80%;
  height: auto;
  border-radius: 4px;
}

.c-case-item p {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  color: #333;
}

.c-case-button {
  margin-top: 20px;
}

.c-case-link {
  display: inline-block;
  background-color: #E07030;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

.c-case-link:hover {
  background-color: #C4682E;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .c-case-grid {
    grid-template-columns: 1fr;
    /* 1カラム */
  }

  .c-case-link {
    font-size: 14px;
    padding: 8px 16px;
  }
}

.youtube-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 */
}

.youtube-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ======================================================== */

/*  吹き出しデザイン */

/* ======================================================== */
section.mishima-point {
  margin-bottom: 200px;
}

/* 吹き出し本体 */
.mishima-point__box {
  position: relative;
  background: #f3f9ff;
  border: 3px solid #FEE8C8;
  border-radius: 28px;
  /* 滑らかさUP */
  padding: 26px 32px;
  line-height: 1.9;
  font-size: 0.95rem;
  width: 70%;
  margin-bottom: 45px;
}

/* ▼ しっぽ（枠＋中身の二重構成） */
.mishima-point__box:after,
.mishima-point__box:before {
  content: "";
  position: absolute;
  left: 100%;
  /* 右側へ */
  top: 50%;
  transform: translateY(-50%);
  border: solid transparent;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* 中の色（吹き出し背景と同じ） */
.mishima-point__box:after {
  border-color: rgba(243, 249, 255, 0);
  border-left-color: #f3f9ff;
  border-width: 28px;
  margin-top: -30px;
}

/* 外枠 */
.mishima-point__box:before {
  border-color: rgba(194, 225, 245, 0);
  border-left-color: #FEE8C8;
  border-width: 32px;
  margin-top: -30px;
}

.mishima-point__lead {
  display: inline;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 20px;
  background: linear-gradient(transparent 55%, rgb(240 245 194 / 55%) 55%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.mishima-point__lead::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  /* 下に寄せる */
  width: 100%;
  height: 0.8em;
  /* マーカー太さ */
  background: rgba(194, 225, 245, .5);
  /* 薄い水色（調整可） */
  z-index: -1;
  border-radius: 6px;
  /* マーカー角丸 */
}

.doctor-wrap {
  position: relative;
}

/* ▼先生画像 */
.doctor-image {
  position: absolute;
  right: 50px;
  top: 90%;
  transform: translateY(-50%);
  height: auto;
  pointer-events: none;
  width: 325px;
}

/* ========================================================
  Tablet（～1024px）
======================================================== */
@media (max-width: 1024px) {
  .mishima-point__box {
    width: 78%;
    padding: 22px 24px;
  }

  .doctor-image {
    top: 80%;
    right: 0px;
    max-width: 155px;
  }
}

/* ========================================================
  Tablet（768～1024px）
======================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  section.mishima-point {
    margin-bottom: 125px;
  }

  .mishima-point__box {
    width: 78%;
    padding: 22px 24px;
  }

  .doctor-image {
    top: 80%;
    right: -50px;
    max-width: 255px;
  }
}

/* ========================================================
  SP（～767px）
======================================================== */
@media (max-width: 767px) {
  section.mishima-point {
    margin-bottom: 30px;
  }

  /* ▼吹き出しを全幅寄せ */
  .mishima-point__box {
    width: 67%;
    padding: 15px;
    border-radius: 22px;
  }

  p.mishima-point__text,
  p.mishima-point__lead {
    font-size: 13px;
    margin: 10px 0;
  }

  /* しっぽ小さく */
  .mishima-point__box:after {
    border-width: 16px;
    margin-top: -20px;
  }

  .mishima-point__box:before {
    border-width: 20px;
    margin-top: -20px;
  }

  .doctor-image {
    top: 70%;
    right: -20px;
    max-width: 200px;
  }
}

/* ========================================================
  SP（～450px）
======================================================== */
@media (max-width: 450px) {
  .doctor-image {
    top: 82%;
    right: -27px;
    max-width: 175px;
  }
}

/*--------------------- サンクスページ ---------------------*/

.thanks_box {
  width: 90%;
  max-width: 900px;
  margin: 70px auto;
  padding: 50px 40px;
  background: #fff8f1;
  border: 1px solid #f2dfcb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(173, 103, 42, 0.12);
  text-align: center;
  box-sizing: border-box;
}

.thanks_inner {
  padding: 50px 30px;
  background: #fff;
  border: 1px solid #f5e5d5;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(180, 100, 30, 0.08);
  box-sizing: border-box;
}

.thanks_en {
  margin: 0 0 10px;
  color: #d98c43;
  font-family: serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.thanks_ttl {
  margin: 0 0 25px;
  color: #9a5828;
  font-size: 2.8rem;
  font-weight: normal;
  line-height: 1.5;
}

.thanks_txt {
  margin: 0 0 25px;
  color: #5e4938;
  line-height: 2;
}

.thanks_note {
  margin: 25px auto;
  padding: 18px 20px;
  color: #806b59;
  font-size: 1.4rem;
  line-height: 1.8;
  background: #fff7ed;
  border: 1px solid #edcfb0;
  border-radius: 4px;
  box-sizing: border-box;
}

/* サンクスページ内のリンク */
.thanks_box a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.thanks_box a:hover {
  color: #fff;
}

/* 戻るボタンを設置する場合 */
.thanks_box .thanks_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 20px auto 0;
  padding: 15px 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: linear-gradient(135deg, #e5a15d 0%, #c97830 100%);
  border: none;
  border-radius: 5px;
  box-shadow: 0 6px 14px rgba(187, 108, 38, 0.24);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  box-sizing: border-box;
}

.thanks_box .thanks_btn:hover {
  color: #fff;
  opacity: 0.92;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 9px 18px rgba(187, 108, 38, 0.28);
}

/* ============================
   スマホ調整
============================ */

@media (max-width: 768px) {

  .thanks_box {
    width: calc(100% - 30px);
    margin: 40px auto;
    padding: 24px 15px;
    border-radius: 6px;
  }

  .thanks_inner {
    padding: 35px 18px;
  }

  .thanks_en {
    font-size: 1.5rem;
  }

  .thanks_ttl {
    margin-bottom: 20px;
    font-size: 2rem;
    line-height: 1.6;
  }

  .thanks_txt {
    margin-bottom: 20px;
    line-height: 1.9;
    text-align: left;
  }

  .thanks_note {
    margin: 20px auto;
    padding: 15px;
    font-size: 1.3rem;
    text-align: left;
  }

  .thanks_box .thanks_btn {
    max-width: 100%;
    padding: 14px 16px;
    font-size: 15px;
  }
}
/* マイクロスコープ動画 */
.microscope-movie {
  max-width: 960px;
  margin: 20px auto 40px;
}

/* YouTubeを16:9でレスポンシブ表示 */
.microscope-movie .youtube-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

/* JSでiframeが入る想定 */
.microscope-movie .youtube-wrap iframe,
.microscope-movie .youtube-wrap .js-youtube-scroll {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

span.underline {
  border-bottom: 3px solid #D4824A61;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .microscope-movie {
    max-width: 100%;
    margin-bottom: 30px;
  }
}

/* ========================================================
  根管治療 症例2件 コンパクト表示
======================================================== */

.root-case-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 45px auto 0;
}

.root-case-card {
  background: linear-gradient(135deg, #fffcf3 0%, #ffffff 52%, #f8fbf8 100%);
  border: 1px solid #e2ddd0;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 12px 28px rgba(180, 100, 30, 0.08);
}

.root-case-card__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e8e2d3;
  padding-bottom: 16px;
}

.root-case-card__num {
  flex-shrink: 0;
  margin: 0;
  padding: 6px 14px;
  background: #caa850;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: .08em;
  line-height: 1.4;
}

.root-case-card__title {
  margin: 0;
  color: #8B4513;
  font-size: 2.2rem;
  line-height: 1.5;
}

.root-case-card__body {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 26px;
  align-items: center;
}

.root-case-card__images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.root-case-card__image {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(180, 100, 30, 0.08);
  text-align: center;
}

.root-case-card__image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.root-case-card__image span {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 14px;
  background: #8B4513;
  color: #fff;
  font-size: 1.2rem;
  border-radius: 999px;
}

.root-case-card__summary dl {
  margin: 0;
}

.root-case-card__summary dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #F5DFC5;
}

.root-case-card__summary dl div:first-child {
  padding-top: 0;
}

.root-case-card__summary dt {
  color: #8B4513;
  font-weight: 700;
}

.root-case-card__summary dd {
  margin: 0;
  color: #333;
  line-height: 1.8;
}

.root-case-detail {
  margin-top: 22px;
  border-top: 1px solid #e8e2d3;
  padding-top: 18px;
}

.root-case-detail summary {
  width: fit-content;
  margin: 0 auto;
  padding: 9px 24px;
  background: #fff9e8;
  border: 1px solid #caa850;
  border-radius: 999px;
  color: #9a7b2f;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  list-style: none;
}

.root-case-detail summary::-webkit-details-marker {
  display: none;
}

.root-case-detail summary::after {
  content: "＋";
  margin-left: 8px;
}

.root-case-detail[open] summary::after {
  content: "－";
}

.root-case-detail__inner {
  margin-top: 20px;
}

.root-case-detail-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 1.4rem;
}

.root-case-detail-table th,
.root-case-detail-table td {
  border: 1px solid #F5DFC5;
  padding: 13px 14px;
  line-height: 1.8;
  vertical-align: top;
}

.root-case-detail-table th {
  width: 20%;
  background: #8B4513;
  color: #fff;
  text-align: center;
}

.root-case-risk-title {
  margin: 22px 0 10px;
  color: #8B4513;
  font-weight: 700;
  font-size: 1.7rem;
}

.root-case-risk {
  margin: 0;
  padding: 18px 20px;
  background: #FDF3E7;
  border-left: 4px solid #D4824A;
}

.root-case-risk li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  line-height: 1.7;
}

.root-case-risk li::before {
  content: "⚠";
  position: absolute;
  left: 0;
  top: 0;
  color: #8B4513;
}

.root-case-note {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 14px 16px;
  background: #fff;
}

.root-case-detail-link {
  margin-top: 22px;
  text-align: center;
}

.root-case-detail-btn {
  display: inline-block;
  padding: 10px 26px;
  background: #caa850;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: 0.2s;
}

.root-case-detail-btn:hover {
  color: #fff;
  opacity: 0.85;
  transform: translateY(-1px);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .root-case-list {
    gap: 22px;
    margin-top: 28px;
  }

  .root-case-card {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .root-case-card__head {
    display: block;
    margin-bottom: 18px;
  }

  .root-case-card__num {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 1.2rem;
  }

  .root-case-card__title {
    font-size: 1.7rem;
  }

  .root-case-card__body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .root-case-card__images {
    gap: 10px;
  }

  .root-case-card__image {
    padding: 8px;
  }

  .root-case-card__image span {
    font-size: 1.1rem;
  }

  .root-case-card__summary dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .root-case-detail summary {
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
  }

  .root-case-detail-table,
  .root-case-detail-table tbody,
  .root-case-detail-table tr,
  .root-case-detail-table th,
  .root-case-detail-table td {
    display: block;
    width: 100%;
  }

  .root-case-detail-table th {
    text-align: left;
  }

  .root-case-risk {
    padding: 14px;
  }

  .root-case-note {
    padding: 12px;
  }
}

/* 症例一覧ページへのリンクボタン */
.root-case-link-wrap {
  margin: 34px auto 0;
  text-align: center;
}

.root-case-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 13px 34px;
  background: linear-gradient(135deg, #8B4513, #D4824A);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(63, 86, 72, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.root-case-link-btn::after {
  content: "▶";
  margin-left: 10px;
  font-size: 1.1rem;
}

.root-case-link-btn:hover {
  color: #fff;
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(63, 86, 72, 0.28);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .root-case-link-wrap {
    margin-top: 24px;
  }

  .root-case-link-btn {
    width: 100%;
    min-width: auto;
    padding: 13px 20px;
    font-size: 1.5rem;
  }
}

/* トップ文言 */
.firstlead-catch {
  color: #e58a2a;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

/* mobile */
@media screen and (max-width: 767px) {
  .firstlead-catch {
    font-size: 1.8rem;
    line-height: 1.7;
    margin-bottom: 22px;
  }
}

/* ==============================
  risk block
============================== */
.risk-block-section {
  background: #fffaf3;
  position: relative;
  overflow: hidden;
}

.risk-block-heading {
  text-align: center;
  margin-bottom: 42px;
}

.risk-block-heading__label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 22px;
  border: 1px solid #d99455;
  border-radius: 999px;
  color: #c87532;
  background: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.risk-block-section .medical-h2 {
  margin-bottom: 20px;
}

.risk-block-section .leadttl {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.risk-block-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.risk-block-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 28px;
  border: 1px solid #efd6bd;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(118, 76, 38, 0.08);
}

.risk-block-card:nth-child(5) {
  grid-column: 1 / -1;
}

.risk-block-card__num {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #d99455;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.risk-block-card__body h3 {
  margin: 0 0 10px;
  color: #8f5428;
  font-size: 2rem;
  line-height: 1.5;
  font-weight: 700;
}

.risk-block-card__body p {
  margin: 0;
  color: #3b3835;
  font-size: 1.6rem;
  line-height: 1.9;
}

.risk-block-message {
  margin-top: 42px;
  padding: 30px 36px;
  border-left: 6px solid #d99455;
  background: #fff;
  box-shadow: 0 10px 28px rgba(118, 76, 38, 0.08);
}

.risk-block-message p {
  margin: 0;
  color: #3b3835;
  font-size: 1.7rem;
  line-height: 2;
  font-weight: 500;
}

/* ==============================
  mobile
============================== */
@media screen and (max-width: 767px) {
  .risk-block-heading {
    margin-bottom: 30px;
  }

  .risk-block-heading__label {
    margin-bottom: 12px;
    padding: 6px 18px;
    font-size: 1.3rem;
  }

  .risk-block-section .leadttl {
    text-align: left;
  }

  .risk-block-list {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }

  .risk-block-card,
  .risk-block-card:nth-child(5) {
    grid-column: auto;
  }

  .risk-block-card {
    gap: 14px;
    padding: 22px 18px;
    border-radius: 16px;
  }

  .risk-block-card__num {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .risk-block-card__body h3 {
    font-size: 1.7rem;
    line-height: 1.5;
  }

  .risk-block-card__body p {
    font-size: 1.45rem;
    line-height: 1.85;
  }

  .risk-block-message {
    margin-top: 30px;
    padding: 24px 20px;
    border-left-width: 5px;
  }

  .risk-block-message p {
    font-size: 1.5rem;
    line-height: 1.9;
  }
}

/* ------------------------------- 入れ歯とインプラントの違い ------------------------------- */
/* 既存の .cost-table を比較表でも使いやすくするためのSP表示調整 */
  @media (max-width: 768px) {
    .denture-implant-compare-table.cost-table tbody td:nth-child(2)::before {
      content: "入れ歯";
      font-size: 12px;
      color: #C47A35;
      font-weight: 700;
      margin-right: 10px;
      flex-shrink: 0;
    }

    .denture-implant-compare-table.cost-table tbody td:nth-child(3)::before {
      content: "インプラント";
      display: block;
      margin-bottom: 4px;
      font-size: 12px;
      color: #C47A35;
      font-weight: 700;
    }

    .denture-cost-table.cost-table tbody td:nth-child(2)::before,
    .implant-cost-table.cost-table tbody td:nth-child(2)::before {
      content: "費用の目安";
      font-size: 12px;
      color: #C47A35;
      font-weight: 700;
      margin-right: 10px;
      flex-shrink: 0;
    }

    .denture-cost-table.cost-table tbody td:nth-child(3)::before,
    .implant-cost-table.cost-table tbody td:nth-child(3)::before {
      content: "特徴";
      display: block;
      margin-bottom: 4px;
      font-size: 12px;
      color: #C47A35;
      font-weight: 700;
    }
  }

.link-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #78B651;
  border-radius: 999px;
  color: #4b8f2f;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.6;
  transition: 0.25s ease;
}

.link-row a::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.link-row a:hover {
  background: #78B651;
  color: #fff;
}

@media screen and (max-width: 767px) {
  .link-row a {
    margin: 4px 2px;
    padding: 5px 11px;
  }
}

/* ------------------------------- 入れ歯とブリッジの違い ------------------------------- */
 /* 既存の .cost-table を比較表でも使いやすくするためのSP表示調整 */
  @media (max-width: 768px) {
    .denture-bridge-compare-table.cost-table tbody td:nth-child(2)::before {
      content: "入れ歯";
      font-size: 12px;
      color: #C47A35;
      font-weight: 700;
      margin-right: 10px;
      flex-shrink: 0;
    }

    .denture-bridge-compare-table.cost-table tbody td:nth-child(3)::before {
      content: "ブリッジ";
      display: block;
      margin-bottom: 4px;
      font-size: 12px;
      color: #C47A35;
      font-weight: 700;
    }

    .denture-cost-table.cost-table tbody td:nth-child(2)::before,
    .bridge-cost-table.cost-table tbody td:nth-child(2)::before {
      content: "費用の目安";
      font-size: 12px;
      color: #C47A35;
      font-weight: 700;
      margin-right: 10px;
      flex-shrink: 0;
    }

    .denture-cost-table.cost-table tbody td:nth-child(3)::before,
    .bridge-cost-table.cost-table tbody td:nth-child(3)::before {
      content: "特徴";
      display: block;
      margin-bottom: 4px;
      font-size: 12px;
      color: #C47A35;
      font-weight: 700;
    }
  }
/* ------------------------------- 入れ歯と認知症 ------------------------------- */
.denture-dementia-note {
    margin-top: 20px;
    padding: 18px 22px;
    background: #fff;
    border-left: 5px solid #D4824A;
    box-shadow: 0 8px 20px rgba(180, 100, 30, 0.06);
    line-height: 1.9;
  }

  .denture-dementia-message {
    margin: 30px auto 0;
    padding: 26px 30px;
    background: #FDF3E7;
    border: 1px solid #F5DFC5;
    line-height: 2;
  }

  .denture-dementia-message strong {
    color: #8B4513;
    background: linear-gradient(transparent 60%, #FFD08A54 60%);
  }
span.color_change {
/* 	color: #176b1e;
    background: linear-gradient(transparent 60%, #81b9652e 60%); */
	color: #8B4513;
    background: linear-gradient(transparent 60%, #FFD08A54 60%);
}

  .dementia-family-box {
    margin-top: 34px;
    padding: 24px 26px;
    background: #fff;
    border: 1px dashed #E0874C;
    line-height: 1.9;
  }

  .dementia-family-box__title {
    margin: 0 0 14px;
    color: #8B4513;
    font-size: 2rem;
    font-weight: 700;
  }

  .denture-dementia-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 34px 0;
  }

  .denture-dementia-card {
    padding: 22px 20px;
    background: #fff;
    border: 1px solid #F5DFC5;
    box-shadow: 0 8px 20px rgba(180, 100, 30, 0.06);
  }

  .denture-dementia-card__title {
    margin: 0 0 10px;
    color: #8B4513;
    font-size: 1.8rem;
    line-height: 1.5;
    font-weight: 700;
  }

  .denture-dementia-card p {
    margin: 0;
    line-height: 1.8;
  }

  @media (max-width: 768px) {
    .denture-dementia-card-grid {
      grid-template-columns: 1fr;
      gap: 14px;
      margin: 24px 0;
    }

    .dementia-family-box,
    .denture-dementia-message,
    .denture-dementia-note {
      padding: 18px 14px;
    }

    .dementia-family-box__title,
    .denture-dementia-card__title {
      font-size: 1.6rem;
    }
  }
/* ------------------------------- 入れ歯と噛み合わせ ------------------------------- */
.occlusion-flow-note {
    margin: 30px auto;
    padding: 28px 24px;
    background: #FDF3E7;
    border-left: 5px solid #D4824A;
    text-align: center;
  }

  .occlusion-flow-note p {
    margin: 8px 0;
    color: #5C2A0A;
    font-weight: 700;
    line-height: 1.8;
  }

  .occlusion-flow-arrow {
    display: block;
    color: #D4824A;
    font-size: 2.4rem;
    line-height: 1.2;
  }

  .occlusion-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 30px 0;
  }

  .occlusion-compare__item {
    background: #fff;
    border: 1px solid #F5DFC5;
    padding: 24px 22px;
    box-shadow: 0 8px 24px rgba(180, 100, 30, 0.08);
  }

  .occlusion-compare__item h3 {
    color: #8B4513;
    font-size: 2rem;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F5DFC5;
  }

  @media (max-width: 768px) {
    .occlusion-compare {
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .occlusion-flow-note {
      padding: 22px 16px;
    }
  }
/*==================================================================================================================================

  *技工士

==================================================================================================================================*/
/* =========================================
   GDS認定技工士
========================================= */

.gds-introduction {
  --gds-bg: #fffaf5;
  --gds-card: #fffdfb;
  --gds-orange: #d45c13;
  --gds-orange-dark: #bd4d0b;
  --gds-brown: #4b2a20;
  --gds-text: #4e4540;
  --gds-border: #ead5c4;
  --gds-beige: #f8f2ec;

  padding: 70px 0 60px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(255, 255, 255, 0.95) 0,
      rgba(255, 250, 245, 0.8) 40%,
      rgba(255, 248, 241, 0.98) 100%
    );
  color: var(--gds-text);
  font-family:
    "Noto Sans JP",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    sans-serif;
}

.gds-introduction *,
.gds-introduction *::before,
.gds-introduction *::after {
  box-sizing: border-box;
}

/* .gds-technician__inner {
  width: min(100%, 1060px);
  margin: 0 auto;
} */

/* 見出し */

.gds-technician__heading {
  margin-bottom: 38px;
  text-align: center;
}

.gds-technician__lead {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.9;
}

.gds-technician__lead p {
  margin: 0;
}

.gds-technician__lead p + p {
  margin-top: 2px;
}

/* プロフィール */

.gds-technician__profile {
  display: grid;
  grid-template-columns: minmax(290px, 39%) minmax(0, 61%);
  gap: 52px;
  padding: 26px;
  border: 1px solid var(--gds-border);
  background: rgba(255, 253, 251, 0.92);
  box-shadow: 0 16px 45px rgba(114, 73, 43, 0.07);
}

.gds-technician__photo {
/*   min-height: 590px; */
	background: #eee5dc;
	width: 75%;
	margin: auto;
}

.gds-technician__photo img {
  display: block;
  width: 100%;
  height: 100%;
/*   object-fit: cover;
  object-position: center; */
}

.gds-technician__profile-content {
  align-self: center;
  padding: 14px 16px 6px 0;
}

.gds-technician__certification {
  display: inline-block;
  margin: 0 0 26px;
  padding: 7px 17px;
  border: 1px solid var(--gds-orange);
  border-radius: 5px;
  color: var(--gds-orange);
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    serif;
  font-size: 14px;
  line-height: 1.4;
}

.gds-technician__name-block {
  margin-bottom: 27px;
}

.gds-technician__name {
  margin: 0 0 7px;
  color: var(--gds-brown);
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    serif;
  font-size: clamp(33px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.12em;
}

.gds-technician__name-kana {
  margin: 0 0 8px;
  color: #58483f;
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    serif;
  font-size: 15px;
  letter-spacing: 0.25em;
}

.gds-technician__name-en {
  margin: 0;
  color: var(--gds-orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: 0.14em;
}

/* プロフィール表 */

.gds-technician__details {
  margin: 0;
  border-top: 1px solid var(--gds-border);
}

.gds-technician__detail {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--gds-border);
}

.gds-technician__detail dt {
  position: relative;
  margin: 0;
  color: #75462e;
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    serif;
  font-weight: 600;
}

.gds-technician__detail dt::after {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 1px;
  height: 22px;
  background: var(--gds-border);
  content: "";
  transform: translateY(-50%);
}

.gds-technician__detail dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

/* 資格バッジ */

.gds-technician__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 31px 0 0;
  padding: 0;
  list-style: none;
}

.gds-technician__badge {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border: 1px solid var(--gds-orange);
  border-radius: 100px;
  color: var(--gds-orange);
  background: #fffdfb;
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    serif;
  font-size: 13px;
  line-height: 1.4;
}

.gds-technician__badge.is-primary {
  color: #fff;
  background: var(--gds-orange);
}

/* メッセージ */

.gds-technician__message {
  position: relative;
  margin-top: 34px;
  padding: 70px 36px 35px;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.045) 25%,
      transparent 25%
    ) 0 0 / 12px 12px,
    linear-gradient(
      315deg,
      rgba(255, 255, 255, 0.035) 25%,
      transparent 25%
    ) 0 0 / 12px 12px,
    linear-gradient(135deg, #d85d12 0%, #ca4e08 100%);
  box-shadow: 0 14px 32px rgba(154, 69, 17, 0.12);
}

.gds-technician__quote {
  position: absolute;
  top: 8px;
  left: 34px;
  color: rgba(255, 218, 188, 0.6);
  font-family: Georgia, serif;
  font-size: 82px;
  line-height: 1;
}

.gds-technician__message-title {
  position: relative;
  margin: 0 0 25px;
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    serif;
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.035em;
	color: #fff;
}

.gds-technician__message-body {
  font-size: 14px;
  line-height: 2;
}

.gds-technician__message-body p {
	margin: 0;
	color: #fff;
}

.gds-technician__message-body p + p {
  margin-top: 18px;
}

/* 経歴 */

.gds-technician__career {
  margin-top: 27px;
}

.gds-technician__section-heading {
  margin-bottom: 10px;
  text-align: center;
}

.gds-technician__section-heading h3 {
  position: relative;
  margin: 0 0 22px;
  color: var(--gds-brown);
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: 0.2em;
}

.gds-technician__section-heading h3::after {
  position: absolute;
  bottom: -13px;
  left: 50%;
  width: 28px;
  height: 2px;
  background: var(--gds-orange);
  content: "";
  transform: translateX(-50%);
}

.gds-technician__section-heading p {
  margin: 0;
  color: var(--gds-orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0.17em;
}

.gds-technician__career-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  margin-top: 14px;
}

.gds-technician__career-card {
  padding: 28px 34px 30px;
  border: 1px solid var(--gds-border);
  background: rgba(255, 253, 251, 0.78);
  box-shadow: 0 10px 30px rgba(114, 73, 43, 0.035);
}

.gds-technician__career-title {
  margin: 0 0 22px;
  color: var(--gds-brown);
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* 経歴一覧 */

.gds-technician__career-list {
  margin: 0;
}

.gds-technician__career-list > div {
  display: grid;
  grid-template-columns: 125px 1fr;
  padding: 9px 0;
  border-bottom: 1px solid var(--gds-border);
}

.gds-technician__career-list > div:last-child {
  border-bottom: 0;
}

.gds-technician__career-list dt,
.gds-technician__career-list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
}

.gds-technician__career-list dt {
  color: #54463f;
}

/* 所属学会 */

.gds-technician__affiliations {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gds-technician__affiliations li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 23px;
  font-size: 16px;
  line-height: 1.7;
}

.gds-technician__affiliations li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d3b898;
  content: "";
  transform: translateY(-50%);
}

.gds-technician__affiliation-link {
  color: #a88669;
  text-decoration-color: #a88669;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.gds-technician__affiliation-link:hover {
  color: var(--gds-orange);
}

/* 注釈 */

.gds-technician__note {
  width: min(100%, 870px);
  margin: 36px auto 0;
}
.gds-technician__note p {
  margin: 0;
  color: #665951;
  font-size: 12px;
  line-height: 1.8;
}

/* =========================================
   タブレット
========================================= */

@media (max-width: 900px) {
  .gds-technician__profile {
    gap: 30px;
  }

  .gds-technician__profile-content {
    padding-right: 0;
  }

  .gds-technician__detail {
    grid-template-columns: 72px 1fr;
  }

  .gds-technician__career-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   スマートフォン
========================================= */

@media (max-width: 767px) {
  .gds-technician {
    padding: 52px 15px 45px;
  }

  .gds-technician__heading {
    margin-bottom: 28px;
  }

  .gds-technician__lead {
    margin-top: 18px;
    text-align: left;
    font-size: 13px;
    line-height: 1.85;
  }

  .gds-technician__lead p + p {
    margin-top: 8px;
  }

  /* プロフィール */

  .gds-technician__profile {
    display: block;
    padding: 15px;
  }

  .gds-technician__photo {
    min-height: auto;
/*     aspect-ratio: 4 / 5; */
  }

  .gds-technician__photo img {
    min-height: 0;
/*     aspect-ratio: 4 / 5; */
	  height: 250px;
	  width: auto;
  }

  .gds-technician__profile-content {
    padding: 25px 3px 5px;
  }

  .gds-technician__certification {
    margin-bottom: 18px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .gds-technician__name {
    font-size: 34px;
  }

  .gds-technician__details {
    margin-top: 22px;
  }

  .gds-technician__detail {
    grid-template-columns: 62px 1fr;
    min-height: 58px;
  }

  .gds-technician__detail dt,
  .gds-technician__detail dd {
    font-size: 12px;
  }

  .gds-technician__detail dt::after {
    right: 12px;
  }

  .gds-technician__badges {
    gap: 7px;
    margin-top: 24px;
  }

  .gds-technician__badge {
    min-height: 37px;
    padding: 6px 12px;
    font-size: 11px;
  }

  /* メッセージ */

  .gds-technician__message {
    margin-top: 22px;
    padding: 59px 21px 25px;
  }

  .gds-technician__quote {
    top: 4px;
    left: 20px;
    font-size: 70px;
  }

  .gds-technician__message-title {
    margin-bottom: 20px;
    font-size: 19px;
    line-height: 1.7;
  }

  .gds-technician__message-body {
    font-size: 12px;
    line-height: 1.95;
  }

  .gds-technician__message-body p + p {
    margin-top: 15px;
  }

  .gds-technician__signature {
    display: block;
    margin-top: 22px;
    text-align: right;
    font-size: 11px;
    line-height: 1.8;
  }

  .gds-technician__signature span {
    display: block;
  }

  /* 経歴 */

  .gds-technician__career {
    margin-top: 29px;
  }

  .gds-technician__section-heading h3 {
    font-size: 27px;
    letter-spacing: 0.12em;
  }

  .gds-technician__career-grid {
    gap: 17px;
    margin-top: 20px;
  }

  .gds-technician__career-card {
    padding: 23px 18px;
  }

  .gds-technician__career-title {
    margin-bottom: 17px;
    font-size: 18px;
  }

  .gds-technician__career-list > div {
    grid-template-columns: 75px 1fr;
    gap: 5px;
    padding: 9px 0;
  }

  .gds-technician__career-list dt,
  .gds-technician__career-list dd {
    font-size: 11px;
    line-height: 1.7;
  }

  .gds-technician__affiliations li {
    margin-bottom: 13px;
    font-size: 14px;
  }

  /* 注釈 */

  .gds-technician__note {
    gap: 12px;
    margin-top: 25px;
  }

  .gds-technician__note img {
    flex-basis: 30px;
    width: 30px;
  }

  .gds-technician__note p {
    font-size: 10px;
    line-height: 1.75;
  }
}

@media (max-width: 374px) {
  .gds-technician__title {
    font-size: 23px;
  }

  .gds-technician__career-list > div {
    grid-template-columns: 67px 1fr;
  }
}
/*--------------------- 予約ページ ---------------------*/
/* ============================
   入れ歯相談予約 全体デザイン
============================ */

.yoyaku_box {
  max-width: 920px;
  margin: 60px auto;
  padding: 40px 32px;
  background: #fff8f1;
  border: 1px solid #f2dfcb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(173, 103, 42, 0.12);
  font-family: "Noto Sans JP", sans-serif;
  box-sizing: border-box;
}

/* フォーム全体 */
.yoyaku_box .wpcf7-form {
  width: 100%;
}

/* テーブル全体 */
.yoyaku_box .mousikomi {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 14px;
}

/* ============================
   左側の項目名
============================ */

.yoyaku_box .yoyaku {
  width: 30%;
  padding: 14px 16px;
  vertical-align: middle;
  background: #d99855;
  border-radius: 4px;
  box-sizing: border-box;
}

.yoyaku_box .yoyaku p {
  margin: 0;
}

.yoyaku_box .yoyaku .b {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: #fff;
}

/* 必須ラベル */
.yoyaku_box .sankou {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 40px;
  box-sizing: border-box;
}

/* ============================
   右側の入力欄
============================ */

.yoyaku_box td:last-child {
  width: 70%;
  padding: 0 10px 0 18px;
  vertical-align: middle;
  box-sizing: border-box;
}

/* 入力欄共通 */
.yoyaku_box input[type="text"],
.yoyaku_box input[type="email"],
.yoyaku_box input[type="tel"],
.yoyaku_box input[type="number"],
.yoyaku_box input[type="date"],
.yoyaku_box select,
.yoyaku_box textarea {
  width: 100%;
  padding: 12px 14px;
  color: #5e4938;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid #e2cbb3;
  border-radius: 4px;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  box-sizing: border-box;
}

/* プレースホルダー */
.yoyaku_box input::placeholder,
.yoyaku_box textarea::placeholder {
  color: #b4a494;
  opacity: 1;
}

/* セレクトボックス */
.yoyaku_box select {
  color: #5e4938;
  cursor: pointer;
}

/* テキストエリア */
.yoyaku_box textarea {
  min-height: 140px;
  resize: vertical;
}

/* フォーカス時 */
.yoyaku_box input[type="text"]:focus,
.yoyaku_box input[type="email"]:focus,
.yoyaku_box input[type="tel"]:focus,
.yoyaku_box input[type="number"]:focus,
.yoyaku_box input[type="date"]:focus,
.yoyaku_box select:focus,
.yoyaku_box textarea:focus {
  outline: none;
  border-color: #d98c43;
  background: #fffdfb;
  box-shadow: 0 0 0 3px rgba(217, 140, 67, 0.16);
}

/* ============================
   ラジオボタン
============================ */

.yoyaku_box .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.yoyaku_box .wpcf7-radio .wpcf7-list-item {
  margin: 0;
}

.yoyaku_box .wpcf7-radio .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5e4938;
  font-size: 15px;
  line-height: 1.6;
  cursor: pointer;
}

.yoyaku_box input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #d98c43;
  cursor: pointer;
}

/* ============================
   希望日・時間
============================ */

.yoyaku_box .wpcf7-form-control-wrap[data-name="first-date"],
.yoyaku_box .wpcf7-form-control-wrap[data-name="second-date"],
.yoyaku_box .wpcf7-form-control-wrap[data-name="third-date"] {
  display: inline-block;
  width: calc(60% - 6px);
  vertical-align: top;
}

.yoyaku_box .wpcf7-form-control-wrap[data-name="first-time"],
.yoyaku_box .wpcf7-form-control-wrap[data-name="second-time"],
.yoyaku_box .wpcf7-form-control-wrap[data-name="third-time"] {
  display: inline-block;
  width: calc(40% - 6px);
  margin-left: 8px;
  vertical-align: top;
}

/* ============================
   Contact Form 7 エラー表示
============================ */

.yoyaku_box .wpcf7-not-valid {
  border-color: #d9554f !important;
  background: #fffafa !important;
}

.yoyaku_box .wpcf7-not-valid-tip {
  display: block;
  margin-top: 5px;
  color: #c94741;
  font-size: 12px;
  font-weight: 500;
}

.yoyaku_box .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 18px;
  color: #5e4938;
  font-size: 14px;
  line-height: 1.7;
  border-radius: 4px;
  background: #fff;
}

.yoyaku_box form.sent .wpcf7-response-output {
  border-color: #d98c43;
  background: #fff7ed;
}

.yoyaku_box form.invalid .wpcf7-response-output,
.yoyaku_box form.unaccepted .wpcf7-response-output {
  border-color: #d9554f;
  background: #fffafa;
}

/* ============================
   同意チェック
============================ */

.yoyaku_box .contact_bottom {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid #edcfb0;
  text-align: center;
}

.yoyaku_box .contact_bottom .wpcf7-list-item {
  margin: 0;
}

.yoyaku_box .contact_bottom label {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  color: #5e4938;
  font-size: 14px;
  line-height: 1.7;
  cursor: pointer;
}

.yoyaku_box .contact_bottom input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #d98c43;
  cursor: pointer;
}

/* ============================
   送信ボタン
============================ */

.yoyaku_box #mail_submit2,
.yoyaku_box #mail_submit3 {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 26px auto 0;
  padding: 16px 20px;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 5px;
  background: linear-gradient(135deg, #e5a15d 0%, #c97830 100%);
  box-shadow: 0 6px 14px rgba(187, 108, 38, 0.24);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

/* 送信ボタンのホバー */
.yoyaku_box #mail_submit2:hover,
.yoyaku_box #mail_submit3:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 9px 18px rgba(187, 108, 38, 0.28);
}

/* 送信ボタンを押したとき */
.yoyaku_box #mail_submit2:active,
.yoyaku_box #mail_submit3:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(187, 108, 38, 0.2);
}

/* 送信中・無効時 */
.yoyaku_box #mail_submit2:disabled,
.yoyaku_box #mail_submit3:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.yoyaku_box .contact_bottom .center {
  margin: 14px 0 0;
  color: #806b59;
  font-size: 13px;
  line-height: 1.7;
}

/* Contact Form 7のローディングアイコン */
.yoyaku_box .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

/* ============================
   スマホ調整
============================ */

@media (max-width: 768px) {

  .yoyaku_box {
    width: calc(100% - 30px);
    margin: 35px auto;
    padding: 24px 16px 30px;
    border-radius: 6px;
  }

  .yoyaku_box .mousikomi {
    display: block;
    width: 100%;
    border-spacing: 0;
  }

  .yoyaku_box .mousikomi tbody,
  .yoyaku_box .mousikomi tr,
  .yoyaku_box .mousikomi td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .yoyaku_box .mousikomi tr {
    margin-bottom: 22px;
  }

  .yoyaku_box .mousikomi td {
    margin: 0;
  }

  .yoyaku_box .yoyaku {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 4px;
  }

  .yoyaku_box td:last-child {
    width: 100%;
    padding: 0;
  }

  .yoyaku_box .yoyaku .b {
    font-size: 14px;
  }

  .yoyaku_box .sankou {
    padding: 2px 8px;
    font-size: 10px;
  }

  .yoyaku_box input[type="text"],
  .yoyaku_box input[type="email"],
  .yoyaku_box input[type="tel"],
  .yoyaku_box input[type="number"],
  .yoyaku_box input[type="date"],
  .yoyaku_box select,
  .yoyaku_box textarea {
    padding: 12px;
    font-size: 16px;
  }

  /* ラジオボタン */
  .yoyaku_box .wpcf7-radio {
    gap: 8px;
  }

  .yoyaku_box .wpcf7-radio .wpcf7-list-item {
    flex: 1 1 calc(50% - 4px);
  }

  .yoyaku_box .wpcf7-radio .wpcf7-list-item label {
    font-size: 14px;
  }

  /* 希望日と時間を縦並びにする */
  .yoyaku_box .wpcf7-form-control-wrap[data-name="first-date"],
  .yoyaku_box .wpcf7-form-control-wrap[data-name="second-date"],
  .yoyaku_box .wpcf7-form-control-wrap[data-name="third-date"],
  .yoyaku_box .wpcf7-form-control-wrap[data-name="first-time"],
  .yoyaku_box .wpcf7-form-control-wrap[data-name="second-time"],
  .yoyaku_box .wpcf7-form-control-wrap[data-name="third-time"] {
    display: block;
    width: 100%;
    margin-left: 0;
  }

  .yoyaku_box .wpcf7-form-control-wrap[data-name="first-time"],
  .yoyaku_box .wpcf7-form-control-wrap[data-name="second-time"],
  .yoyaku_box .wpcf7-form-control-wrap[data-name="third-time"] {
    margin-top: 8px;
  }

  .yoyaku_box .contact_bottom {
    margin-top: 28px;
    padding-top: 22px;
  }

  .yoyaku_box .contact_bottom label {
    justify-content: flex-start;
    text-align: left;
    font-size: 13px;
  }

  .yoyaku_box #mail_submit2,
  .yoyaku_box #mail_submit3 {
    max-width: 100%;
    padding: 15px 16px;
    font-size: 16px;
  }
}