/* 見出し */
.allon4-head {
    font-size: 2.8rem;
    text-align: center;
    margin: 30px 0 60px;
}
.allon4-head .sab {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.7rem;
  color: #666;
}
.allon4-head h2 span {
  color: #a68c5e;
  font-size: 4rem;
}
.center {
  text-align: center;
}
/* --------------------------------------------------

インプラントとは

-------------------------------------------------- */
.implant {
   margin: 0 0 6.6em;
    padding: 2em 0 0;
    aspect-ratio: 1400 / 499;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 100% auto;
    background-image: url(../images/implant/implantbg.png);
    color: #444;
}
.implantwrap {
  margin-top: 50px;
  width: 55%;
  padding: 0 0 0 4%;
}
.implant h2 {
  font-size: 2rem;
  border-bottom: 1px solid #666;
  padding-bottom: 20px;
}
.implant .descript {
  margin: 20px 0;
}
.implant .descript p {
    font-size: 1rem;
    color: #333;

}
/* --------------------------------------------------

インプラントとは

-------------------------------------------------- */
.all-on-4wrap {
  background: url(../images/implant/implantsecbg.png) no-repeat top center / 100%;
    padding-top: max(5.714vw, 74px);
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 1400 / 1528;
}
.all-on-4wrap .center {
    margin: 30px 0;
}

.allon4-section {
  /* background: #fff; */
  /* padding: 60px 20px; */
  position: relative;
  /* overflow: hidden; */
}

.allon4-inner {
  max-width: 1400px;
  margin: 30px auto 0;
  position: relative;
}

.allon4-inner::before {
      left: 0;
    background: url(../images/allon4/allon4bg.png) left top no-repeat;
    background-size: 100% auto;
    content: "";
    width: max(14.286vw, 185px);
    height: max(14.571vw, 176px);
    position: absolute;
    top: 0;
    z-index: 0;
}

.allon4-box {
    padding: 20px 60px;
    /* background: #fdfbf7; */
        background-color: rgba(255, 255, 255, .9);
}

.title-box h3 {
  font-weight: bold;
  background: #b3a99b;
  color: #fff;
  padding: 8px 16px;
  display: inline-block;
  border-radius: 2px;
  margin-bottom: 30px;
  z-index: 1;
  width: 535px;
  text-align: left;
}

.allon4-box .title-box span{
  font-size: 1.8rem;
  margin-right: 8px;
}

.allon4-content {
  position: relative;
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 25px 0;
}

.allon4-text {
  flex: 2;
  /* min-width: 300px; */
}

.allon4-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.allon4-image img {
    position: absolute;
    top: 55px;
    right: 0;
    max-width: 100%;
    height: auto;
    width: 34%;
}

.lead {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 60px;
}

.under-content {
  margin: 10px 0;
}
.desc {
  font-size: 16px;
  line-height: 1.8;
  /* background: #f8f8f8; */
  padding: 20px;
  border: 1px solid #d6b161;
}

.highlight-red {
  color: #b35858;
  font-weight: bold;
}

.highlight-underline {
  color: #4a82aa;
  font-weight: bold;
  border-bottom: 3px solid #bde6f3;
}

/* 左右逆 */
/* 既存の allon4-content に reverse対応 */
.allon4-content {
  position: relative;
  display: flex;
  gap: 30px;
  align-items: center;
}

/* 画像反転用 */
.allon4-box.reverse .allon4-content {
  flex-direction: row-reverse;
}


/* reverse時は左に固定 */
.allon4-box.reverse .allon4-image img {
  left: 25px;
  right: auto;
}
.allon4-section .allon4-inner:nth-of-type(2)::before {
  left: auto;
  right: 0;
  background: url(../images/allon4/allon4bg2.png) left top no-repeat;
  background-size: 100% auto;
  content: "";
  width: max(14.286vw, 185px);
  height: max(14.571vw, 176px);
  position: absolute;
  top: 0;
  z-index: 0;

}

.allon4-inner:nth-of-type(2) .allon4-text {
  flex: 1.5;
}
.allon4-inner:nth-of-type(4) .allon4-text {
  flex: 1.5;
}

/* --------------------------------------------------

オールオン４を検討する前に知っておきたいこと

-------------------------------------------------- */
.allon4-section {
  background: #f3f3f3;
  padding: 60px 20px;
  font-family: 'Yu Gothic', sans-serif;
}

.allon4-container {
	max-width: 1400px;
	margin: 0 auto;
}

.allon4-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.allon4-left {
  flex: 1;
  min-width: 320px;
}

.allon4-right {
  flex: 1;
  min-width: 320px;
}

.allon4-image {
  width: 100%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.badge-circle {
    background-color: #365c88;
    color: #fff;
    /* text-align: center; */
    /* font-weight: bold; */
    font-size: 1.5rem;
    /* line-height: 1.3; */
    /* margin-bottom: 20px; */
    position: absolute;
    top: -45px;
    left: 38%;
    padding: 20px 70px;
}

.badge-en {
  font-size: 0.65rem;
  opacity: 0.8;
}

.sub-head {
  background-color: #b6ae91;
  display: inline-block;
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 14px;
  margin-bottom: 14px;
}

.main-title {
  font-size: 1.7rem;
  font-weight: bold;
  line-height: 1.5;
  color: #2d2d2d;
  margin-bottom: 20px;
}

.lead-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #444;
  margin-bottom: 20px;
}

.benefit-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.benefit-list li {
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.benefit-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #365c88;
  font-size: 0.85rem;
}
/* 
.know-wrap > *:nth-of-type(3) {
 margin-top: 75px;
} */

.know .center {
  margin: 30px 0;
}

/* -------------------section3------------------- */

.implant2 {
   margin: 0 0 6.6em;
    padding: 2em 0 0;
    aspect-ratio: 1400 / 499;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 100% auto;
    background-image: url(../images/implant/implantbg2.png);
    color: #444;
}
.implant2 .implantwrap {
  margin-top: 50px;
  width: 55%;
  padding: 0 0 0 4%;
}
.implant2 h2 {
  font-size: 2rem;
  border-bottom: 1px solid #666;
  padding-bottom: 20px;
}
.implant2 .descript {
  margin: 20px 0;
}
.implant2 .descript p {
    font-size: 1rem;
    color: #333;

}
/* -------------------section4------------------- */

.implant3 {
   margin: 0 0 6.6em;
    padding: 2em 0 0;
    aspect-ratio: 1400 / 499;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 100% auto;
    background-image: url(../images/implant/implantbg3.png);
    color: #444;
}
.implant3 .implantwrap {
  margin-top: 50px;
  width: 55%;
  padding: 0 0 0 4%;
}
.implant3 h2 {
  font-size: 2rem;
  border-bottom: 1px solid #666;
  padding-bottom: 20px;
}
.implant3 .descript {
  margin: 20px 0;
}
.implant3 .descript p {
    font-size: 1rem;
    color: #333;

}
/* -------------------支払方法------------------- */
.paymentsec {
  background: linear-gradient(to bottom, #ffffff, #faf8f5);
    /* padding: 80px 0; */
    box-sizing: border-box;
    margin-top: max(7.64svw, 99.36px);
    margin-bottom: max(4.29svw, 55.71px);
    /* padding-top: max(35.71svw, 464.29px); */
    padding-bottom: max(3.21svw, 41.79px);
    background-image: url(../images/paybg.png);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.payttl {
  font-size: max(2.274vw, 37px);
  color: #69492a;
  line-height: 1.4;
  margin-bottom: 15px;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
  position: relative;
  text-align: center;
  margin: 30px 0;
}
.payttl .mini {
  font-size: 25px;
}

.payout {
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  padding: 40px;
  max-width: 1300px;
  margin: 20px auto;
}

.paytxtbox {
  flex: 1 1 55%;
  padding: 20px 30px;
}

/* .paymark {
  display: flex;
  flex-direction: column;
  align-items: center;
} */

.paymark span {
  background: linear-gradient(transparent 70%, #bfa25024 70%);
  padding-bottom: 5px;
  font-weight: bold;
  font-size: 20px;
}

.marker {
  margin-bottom: 16px;
  line-height: 1.6;
  position: relative;
  font-size: 20px;
  padding-left: 30px;
}

.marker::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 2px;
  color: #938068;
  font-size: 18px;
}

.payp {
  padding-top: 20px;
  line-height: 1.8;
  font-size: 16px;
  color: #333;
}

.payimg {
  flex: 1 1 40%;
  padding: 20px;
  text-align: center;
}

/* 流れる画像 */
.payimg img {
  max-width: 80%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
}
.flowing-images {
  overflow: hidden;
  width: 100%;
  background: #fff; /* 背景色はお好みで */
  padding: 30px 0;
  margin-top: -30px;
}

.flow-track {
  display: flex;
  width: calc(200%); /* 2倍に伸ばすことでループ */
  animation: scroll-left 30s linear infinite;
}

.flow-track img {
  width: 200px;
  height: auto;
  object-fit: contain;
  margin-right: 30px;
}

/* アニメーション設定 */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* シミュレーション */
.payment-simulation {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Noto Serif JP', serif;
}

.payment-title {
  font-size: 30px;
  color: #333;
  margin-bottom: 30px;
  position: relative;
}

.payment-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: #aaa;
  margin: 10px auto 0;
}

/* 料金表 */

.payment-box-wrapper {
  /* display: flex; */
  justify-content: center;
  gap: 40px;
  margin: 40px auto;
  max-width: 1300px;
}

.payment-box {
    background: #fff;
    width: 100%;
    border: 1px solid #eee;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    width: 50%;
    margin: 0 auto;
}

.payment-header {
  background: #E0D2AA;
  padding: 10px;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #5b4633;
}

.paymentflex {
	display:flex;
}

.payment-image {
	flex: 2;
	width: 45%;
}

.paymenttxt  {
	flex: 3;
	margin:auto;
}

.payment-desc {
  font-size: 14px;
  margin: 10px 0 5px;
  color: #555;
}

.payment-amount {
/*   font-size: 24px; */
  color: #000;
  margin-bottom: 20px;
}

.payment-amount span {
  font-size: 36px;
  color: #c02828;
  font-weight: bold;
  margin: 0 5px;
}

.payment-total {
  font-size: 14px;
  border-top: 1px solid #ccc;
  padding-top: 15px;
  color: #333;
}

.payment-note {
  font-size: 15px;
  color: #4f4e4e;
  margin: 30px 0;
  line-height: 1.5;
}

.payment-button a {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 12px 36px;
  font-size: 18px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
}

.payment-button a:hover {
  background: #888;
}
.price-table-wrapper {
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  margin-bottom: 30px;
}

.price-table thead th {
  background-color: #f5e8cc;
  color: #6b562d;
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #decba6;
  font-weight: bold;
  width: 30%;
}

.price-table tbody td {
  padding: 12px 15px;
  border: 1px solid #decba6;
  background-color: #fff;
  vertical-align: top;
}

.price-table tbody tr:nth-child(even) td {
  background-color: #fdf9f2;
}

.price-notes {
  background: #f9f2e8;
  border: 1px solid #decba6;
  padding: 20px;
  font-size: 14px;
  margin-top: 20px;
  color: #6b562d;
}

.price-notes ul {
  padding-left: 20px;
  margin: 0;
}

.price-notes li {
  margin-bottom: 8px;
}
/* -------------------選ばれる理由------------------- */
.card-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.card {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  padding: 30px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100px;
  margin-right: 20px;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

.card-title {
  background: #c7c191;
  color: white;
  display: inline-block;
  padding: 5px 10px;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-family: 'Noto Serif JP', serif;
}

.card-title.bk02 {
  background: #d3c2a3;
}

.card-title.bk03 {
  background: #c5b37c;
}

.read-more {
  text-align: right;
  font-size: 14px;
  margin-top: 10px;
  color: #333;
}
.background-section {
  position: relative;
  background: #fff;
  z-index: 0;
  padding: 100px 0;
  overflow: hidden;
}

/* 下半分の背景に格子模様を表示 */
.background-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* 下半分のみ表示 */
  background-image:
    linear-gradient(to right, #cfd8dc 1px, transparent 1px),
    linear-gradient(to bottom, #cfd8dc 1px, transparent 1px);
  background-size: 8px 8px;
  z-index: -1;
}

/* -------------------------- ブロック5 (治療期間) -------------------------- */
.implant-flow > .under_box5_wrap {
    margin-bottom: max(4.643vw, 60px);
    padding: max(2.857vw, 37px) 0 max(0.714vw, 9px);
    background-image: url(../images/implant/flowbg.png);
    background-size: cover;
    aspect-ratio: 1400 / 1338;
}
.flow_box {
  margin: 20px 0 75px;
}

.flow_box:nth-child(2){
  background: #fdfaef;
  padding: 50px 20px;
}
.flow_box:nth-child(3){
  background: #fffbff;
  padding: 50px 20px;
}
.flow_box:nth-child(4){
  background: #f5fffe;
  padding: 50px 20px;
}

.flow_box h3 {
  color: #9a845c;
  border-bottom: 1px solid #d2c3a1;
  font-size: 1.7rem;
  margin-bottom: 20px;
  padding: 10px 0;
}
ul.implant_flow_vertical.com_btm_100 {
    padding-bottom: 60px;
}
.implant_flow_vertical > li {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	padding-left: 100px;
	padding-bottom: 60px;
}
.implant_flow_vertical li:last-of-type {
	padding-bottom: 0;
}
.implant_flow_vertical > li::before,
.implant_flow_vertical > li::after {
	content: "";
	position: absolute;
	top: 0;
	font-family: quiche-stencil, sans-serif;
	font-weight: 100;
	font-style: normal;
	text-align: center;
	color: #956f38;
	font-size: 220%;
	line-height: 1.0em;
}
.implant_flow_vertical > li::before {
	z-index: 1;
	content: "1";
	width: 1.5em;
	line-height: 1.5em;
	background: #fff;
	border: 1px solid #956f38;
	border-radius: 50%;
	left: 0;
}
.implant_flow_vertical > li:nth-child(2)::before { content: "2"; }
.implant_flow_vertical > li:nth-child(3)::before { content: "3"; }
.implant_flow_vertical > li:nth-child(4)::before { content: "4"; }
.implant_flow_vertical > li:nth-child(5)::before { content: "5"; }
.implant_flow_vertical > li:nth-child(6)::before { content: "6"; }
.implant_flow_vertical > li:nth-child(7)::before { content: "7"; }
.implant_flow_vertical > li:nth-child(8)::before { content: "8"; }
.implant_flow_vertical > li::after {
	z-index: 0;
	width: 1px;
	height: 100%;
  left: 0.75em;
	background-color: #c6c2bf;
}
.implant_flow_vertical li:last-of-type::after {
	display: none;
}
.implant_flow_vertical .img_r {
	width: 35.5%;
	max-width: 394px;
}

.implant_flow_vertical .implant_style1 > dt {
  font-size: 1.5rem;
	padding-top: 0.6em;
	color: #956f38;
}
.implant_flt.clearfix {
  display: flex;
  /* flex-direction: row-reverse;  */
  align-items: flex-start;
  gap: 20px; 
}

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

.implant_flow_vertical .txt_l {
  padding: 0 15px;
  flex: 3;
}

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


/* -------------------比較表------------------- */
.comparison-table {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  white-space: nowrap;
  font-family: 'Noto Serif JP';
  padding: 15px;
}

.header-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 0;
  position: relative;
  min-width: 900px;
  padding-left: 12%;
  gap:0;
}

.circle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle {
  width: 200px;
  height: 200px;
  /* border-radius: 50%; */
  /* display: flex; */
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.5;
  font-size: 18px;
  border: 1px solid #999;
  background-color: #fff;
  padding: 20px;
}

.circle img {
  width: 90%;
  margin: auto;
}

.circle.allon4 {
  background-color: #e9e5e2;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  border: none;
}

.line-down {
  width: 2px;
  height: 40px;
  background-color: #999;
  margin: 0 auto;
}

.line-down.gold {
  background-color: #c1a753;
}

.row {
  display: flex;
  align-items: stretch;
  min-width: 900px;
  margin-bottom: 10px;
}

.label {
  width: 160px;
  background-color: #977356;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.label-inner {
  text-align: center;
  padding: 10px;
}

.comp_icon {
  font-size: 30px;
  margin-bottom: 8px;
}

.text {
  font-weight: bold;
  font-size: 16px;
}

.content {
  width: 50%;
  border: 1px solid #ccc;
  padding: 20px;
  background-color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  position: relative;
}

.content.gold {
  border: 1px solid #c1a753;
  background-color: #fdf8ef;
}

.content strong {
  font-weight: bold;
  color: #dfa61f;
}

.content .gold {
  color: #c1a753;
  font-weight: bold;
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
  .circle {
    width: 100px;
    height: 100px;
    font-size: 12px;
  }
  .circle.allon4{
    font-size: 12px;
  }
  .comparison-table {
    overflow-x: auto;
  }
  .header-row {
    justify-content: center;
    gap: 20%;
  }

  .header-row,
  .row {
    flex-wrap: nowrap;
    min-width: 100%; 
  }

  .label, .content {
    white-space: normal;
  }
  .content {
    padding: 20px 10px;
    font-size: 13px;
    text-align: left;
  }
}
