/* 見出し */
.allon4-head {
    font-size: 2.8rem;
    text-align: center;
    margin: 30px 0 60px;
	line-height:1.2;
}
.allon4-head .sab {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.7rem;
  color: #666;
}
.allon4-head h2 span {
  color: #a68c5e;
  font-size: 3.5rem;
}
.allon4-head h2 span.underline {
	position: relative;
	display: inline-block;
	color:#111;
}
.allon4-head h2 span.underline::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0.05em;
	width: 100%;
	height: 0.4em;
	background-color: #fff2dc;
	z-index: -1;
	border-radius: 2px;
}
/* --------------------------------------------------

ALLON4とは

-------------------------------------------------- */
.all-on-4wrap {
  background: url(../images/allon4/allonsecbg.png) no-repeat top center / 100%;
    padding-top: max(5.714vw, 74px);
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 1400 / 1528;
}
.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: -98px;
    right: 35px;
    max-width: 100%;
    height: auto;
    width: 44%;
}

.lead {
  font-size: 1.5rem;
  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;
}

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

選ばれる理由

-------------------------------------------------- */
.allon4reason {

}
.successwrap {
  background: #f3f8f9;
  padding: 80px 2% 60px;
  position: relative;
}
.successwrap::before {
content: "";
    display: block;
    width: max(54.929vw, 714px);
    aspect-ratio: 769 / 806;
    background: url(../images/allon4/reasonbg.png) no-repeat center / 100%;
    mix-blend-mode: multiply;
    position: absolute;
    top: max(3.214vw, 42px);
    left: 0;
    pointer-events: none;
}
.successwrap::after {
  content: "";
  position: absolute;
  top: max(3.214vw, 42px);
  left: 0;
  width: max(54.929vw, 714px);
  aspect-ratio: 769 / 806;
  pointer-events: none;
  z-index: 2;

  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.2) 1px,
    transparent 1px,
    transparent 8px
  );
}

.successsec-head {
  text-align: center;
  margin-bottom: 50px;
}

.successsec-head .sec-number {
  position: absolute;
  top: -65px;
  left: 50%;
  display: block;
  font-size: 5rem;
  color: #87b9c7;
  font-weight: bold;
  margin-bottom: 10px;
}

.successsec-head h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.successsec-head h3 span {
  font-size: 3rem;
  color: #4da3b9;
}

.successsec-head .lead {
  font-size: 1rem;
  line-height: 1.8;
}

.successsec-head .em {
  color: #4da3b9;
  font-weight: bold;
}

.successsec-head .em-blue {
  color: #4da3b9;
}

.successsec-body {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  background: #fff;
  padding: 20px 30px;
  background-image: repeating-linear-gradient(
    45deg,            /* ← 斜め方向（45度） */
    #f4f4f4,          /* ← 薄いライン色 */
    #f4f4f4 1px,      /* ← ライン幅 */
    #ffffff 1px,      /* ← ラインとラインの間 */
    #ffffff 4px       /* ← 繰り返し幅（細かさ） */
  );
}

.successsec-left {
  flex: 1 1 40%;
  text-align: center;
}

.successsec-left img {
  max-width: 100%;
  height: auto;
}

.successsec-right {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.device-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.device-block img {
  flex: 1;
  width: 100px;
  height: auto;
  flex-shrink: 0;
  z-index: 3;
}
.device-block .txt{
  flex: 2;
}
.device-block h4 {
  position: relative;
  padding: 12px 16px 12px 48px;
  font-size: 1.3rem;
  font-weight: 700;
  background: #f2f2f2;
  color: #8e6c2d;
  border-radius: 4px;
  margin-bottom: 1.5em;
  overflow: hidden;
}

.device-block h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(135deg, #c5a340, #bfa77a);
  transform: skewX(-20deg);
}


.device-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.device-block li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 1em;
  font-size: 1rem;
  line-height: 1.7;
  border-left: 4px solid #d6b161;
  background: #f9f9f9;
  padding: 10px 16px 10px 1.8em;
  border-radius: 4px;
}

.device-block li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #d6b161;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 0 0 8px;
}


.device-block h3 {
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: bold;
}

.device-block p {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.read-more {
  text-align: right;
  margin-top: 40px;
}

.read-more a {
  font-size: 14px;
  color: #999;
  text-decoration: none;
}

.allon4reason > .successwrap:nth-of-type(2){
  margin-top: 10em;
  background: #fffbf3;
}
.allon4reason > .successwrap:nth-of-type(2)::before {
  background: url(../images/allon4/reasonbg2.png) no-repeat center / 100%;
}
.allon4reason > .successwrap:nth-of-type(2)::after {
}

.allon4reason > .successwrap:nth-of-type(2) .successsec-head .sec-number {
  color: #d6b161;
}
.allon4reason > .successwrap:nth-of-type(2) .successsec-head h3 span {
  color: #d6b161;
}
.allon4reason > .successwrap:nth-of-type(2) .device-block h4 {
  color: #4da3b9;
}
.allon4reason > .successwrap:nth-of-type(2) .device-block h4::before {
  background: linear-gradient(135deg, #4da3b9, #6888b0);
}
.allon4reason > .successwrap:nth-of-type(2) .device-block li {
  border-left: 4px solid #4da3b9;
}
.allon4reason > .successwrap:nth-of-type(2) .device-block li::before {
  color: #4da3b9;
}
.under_reason .lead {
  font-size: 1rem
}

/* 表デザイン */
.spcomparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
  isolation: isolate;  /* ← これを追加 */
  z-index: 1;
  color: #475463;
}

.spcomparison-table th,
.spcomparison-table td {
  border: 1px solid #ddd;
  padding: 5px 9px;
  text-align: center;
  vertical-align: middle;
  background-color: #fff;
}

.spcomparison-table thead th {
  background-color: #f1f7fb;
  color: #2c3e50;
  font-weight: bold;
}

.spcomparison-table tbody td:first-child {
  background-color: #f8f8f8;
  font-weight: bold;
  text-align: left;
}

.spcomparison-table tr:nth-child(even) {
  background-color: #fcfcfc;
}
/* --------------------------------------------------

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

-------------------------------------------------- */
.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 .allon4-section:first-of-type {
	margin-top:120px;
}

.know-wrap > *:nth-of-type(3) {
	margin-top: 100px;
}

.risk-flex {
    display: flex;
}
.allon4-subblock {
	padding: 20px 15px;
	background: #fff;
	margin: 0 10px; 
}
h3.subblock-title {
    background: #6888b0;
    padding: 15px;
    margin: 10px 0;
    color: #fff;
}
/*---------------------------------------------------------------------

  理想(症例ブロック)
 
 ---------------------------------------------------------------------*/
span.color {
  font-size: 50px;
  background: linear-gradient(135deg, #dd91a5, #d57397, #cb4872);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
 .dreamsec {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 12px 12px;
  background-color: #fff;   
}
.dreamsec {
     font-family: 'Noto Serif JP', serif；
}


 .rejuvenation-block {
  background: #f9f6f2;
  padding: 60px 20px;
  position: relative;
  max-width: 1400px;
  margin: 20px auto;
}

.rejuvenation-inner {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
  align-items: flex-start;
}


.rejuvenation-left {
  flex: 1 1 50%;
}

.rejuvenation-right {
  flex: 1 1 45%;
  margin: auto;
}

.rejuvenation-right img {
  width: 100%;
  border-radius: 4px;
}

.rejuvenation-number {
  font-size: 72px;
  font-weight: bold;
color: #b19768;
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Noto Serif JP', serif；
}

.rejuvenation-left h3 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.rejuvenation-left .accent {
  color: #b59b7d;
  font-weight: bold;
  font-size: 26px;
}

.rejuvenation-text {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 24px;
}

.rejuvenation-box {
  display: flex;
  gap: 20px;
  align-items: center;
  border-top: 3px solid #d2ba9f;
  padding-top: 20px;
}

.before-after-img img {
  width: 120px;
  height: auto;
}

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

.rejuvenation-list li {
  font-size: 16px;
  line-height: 2;
  color: #333;
}

.rejuvenation-list .check {
  color: #b59b7d;
  font-weight: bold;
  margin-right: 8px;
}

.caption {
  font-size: 12px;
  color: #666;
  text-align: right;
  max-width: 1200px;
  margin: 10px auto 0;
}

.readmore {
  text-align: right;
  font-size: 14px;
  margin-top: 8px;
  margin-right: 20px;
  color: #444;
}

.readmore span {
  font-size: 12px;
}
/* 色 */
.rejuvenation-block.pink01 {
  background: #fffdf0;
}
.pink01 .rejuvenation-number,
.pink01 .accent,
.pink01 .check {
	color: #b19768;
}
.pink01 .rejuvenation-box {
	border-top:3px solid #d6b161
}

.twentytwenty {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
}

.twentytwenty img {
  width: 100%;
  height: auto;
  display: block;
}
/* ----------------------------------------------------
タブレット（768px～1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
}
/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
  .rejuvenation-block.pink02 .rejuvenation-inner {
    flex-direction: column-reverse;
  }

  .rejuvenation-block.pink02 .rejuvenation-right {
    width: 100%;
    display: block;
  }

  .rejuvenation-block.pink02 .twentytwenty {
    min-height: 200px; /* 必要に応じて調整 */
  }
  span.color {
  font-size: 40px;
  }
}
/* -------------------支払方法------------------- */
.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 {
	font-family: 'Noto Serif JP', serif;
  background: #E0D2AA;
  padding: 10px;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #5b4633;
}

.paymentflex {
/*   display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 30px; */
	display:flex;
}
.paymentflex img {
	flex:2;
	width: 45%;
}
.paymentflex .paymenttxt {
	flex:3;
}

.payment-image {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.paymenttxt  {
  margin: auto;
}

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

.payment-amount {
	font-size: 20px;
	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;
	width: 35%;
}

/* .card-content {
	flex: 3;
}
 */
.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;
}
/* -------------------流れ------------------- */
.allon4-flow > .under_box5_wrap > .under_box5_inner {
	background: #fff;
}
.allon4-flow > .under_box5_wrap {
	margin-bottom: max(4.643vw, 60px);
    padding: max(2.857vw, 37px) 0 max(0.714vw, 9px);
    background-image: url(../images/allon4/flowbg.png);
    background-size: cover;
    aspect-ratio: 1400 / 1338;
}
section.allon4-flow {
    padding: 0;
}