/* 共通 */
.body {
  box-sizing: border-box;
  color: #655e56;
  background: #fcfbe9;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  overflow-x: hidden;
}

.body a {
  color: #655e56;
  transition: 0.3s;
}

@media (hover:hover) {
  .body a:hover {
    opacity: 0.7;
  }
}

@media (hover:none) {
  .body a:active {
    opacity: 0.7;
  }
}

.body__inner {
  width: 100%;
  max-width: 750px;
  margin: auto;
  background: #fff;
  position: relative;
  container-name: main;
}

p,h1,h2,h3,h4 {
  margin: 0;
}

img {
  min-height: 0;
}

.highlight {
  color: #ff9803;
}

.highlight--bold-yellow {
  font-size: 20px;
  font-weight: bold;
  background: linear-gradient(transparent 50%, #fffb96 50%);
  letter-spacing: 1px;
}

.strong {
  font-weight: bold;
}

.strong--white-marker {
  font-size: 48px;
  letter-spacing: 4px;
  background: linear-gradient(transparent 80%, #fff 80%);
}

.wavy {
  text-decoration: underline wavy #fd9500;
}

/* ボックス */
.box {
  border: solid 2px #ecd1b3;
  box-shadow: 10px 10px 0px -6px #f1f1d8;
  font-size: 20px;
}

/* メイン関連 */
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main__inner {
  width: 100%;
  max-width: 750px;
  padding-inline: 24px;
}

.main__section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding-top: 48px;
}

.main__title {
  text-align: center;
  font-size: 32px;
}

.main__box-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.main-box__image {
  width: inherit;
  height: auto;
  background: #fff;
}

.main__image-wrapper {
  width: 100%;
  height: auto;
}

/* FV */
.main__fv {
  width: 100%;
  background-image: url("../img/mv-bg.png");
  background-size: cover;
  position: relative;
}

.fv__catch-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
}

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

/* CTA */
.main__cta {
  background-image: url("../img/cta-back.png");
  background-size: cover;
  padding-top: 0;
}

.cta__button-link {
  margin-top: 12px;
}

.cta__button-image {
  width: 100%;
  height: auto;
  margin: auto;
}

/* 悩み */
.main__problem {
  background: #eae6cd;
}

.problem__image-container {
  width: 90%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 40px;
}

.problem__image-item {
  width: 100%;
  height: auto;
}

/* 原因 */
.main__factor {
  position: relative;
  background: #eae6cd;
}

.factor__title {
  width: 90%;
  display: flex;
  justify-content: center;
  margin: 0 auto 64px;
  position: relative;
  z-index: 10;
}

.factor__title-image {
  width: 80%;
  height: auto;
}

.factor__back-image {
  width: 45%;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 5;
}

/* メカニズム */
.main__mechanism {
  width: 100%;
  background: #eae6cd;
}

.mechanism__main-container {
  width: 90%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #fff;
  padding: 40px 16px;
}

.mechanism__title {
  text-decoration: underline solid #db9722;
  text-underline-offset: 4px;
}

.mechanism__details {
  font-size: 20px;
  text-align: center;
  line-height: 1.8;
  letter-spacing: 1px;
}

.mechanism__picture {
  width: 100%;
  height: 100%;
}

/* リスク */
.main__risk {
  background: #eae6cd;
  padding-top: 24px;
}

.risk__details {
  font-size: 32px;
  text-align: center;
  line-height: 1.6;
  letter-spacing: 1px;
}

.risk__box-container {
  width: 90%;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 2fr 3fr;
  grid-template-rows: auto;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: #fff;
  padding: 40px 16px;
}

.risk__picture-box {
  margin-left: 24px;
}

.risk__picture {
  width: 100%;
  height: auto;
}

.risk__text-box {
  margin-right: 24px;
}

.risk__text {
  width: 100%;
  height: auto;
}

.risk__message-box {
  margin: 24px auto;
}

/* リスク詳細 */
.main__risk-details {
  gap: 40px;
  background: #f1f1d8;
}

/* データ */
.main__data {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #f1f1d8;
  padding-bottom: 64px;
}

.data__title {
  text-align: center;
}

.data__text-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-size: 24px;
  text-align: center;
}

.data__text {
  font-size: 24px;
}

.data__text--large {
  letter-spacing: 1px;
  font-size: 28px;
}

.data__num {
  font-size: 32px;
}

.data__wavy-text {
  font-size: 40px;
}

.data__wavy-image {
  width: 85%;
  height: auto;
  margin: auto;
}

.data__chart-container {
  width: 80%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.data__chart {
  width: 100%;
  height: auto;
}

/* 根本改善 */
.main__resolve {
  background: #fff;
}

.resolve__title {
  width: 80%;
  height: auto;
  margin: auto;
}

.resolve__three-points {
  width: 90%;
  margin-top: 40px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.resolve__price {
  width: 90%;
  height: auto;
  margin: auto;
}

/* 治療方法 */
.main__howto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  background: #eae6cd;
}

.howto__title {
  color: #4e3d29;
  letter-spacing: 1px;
}

.howto__text-image {
  width: 60%;
  height: auto;
}

.howto__text-image--wide {
  width: 80%;
}

.howto__picture {
  width: 70%;
  height: auto;
}

/* 強み */
.main__points {
  gap: 40px;
  background: #fff;
  padding-bottom: 40px;
}

.points__title {
  width: 80%;
  height: auto;
}

.points__box-container {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.points-box {
  width: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  padding: 40px 24px;
}

.points-box__image-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.points-box__image-wrapper--w70 {
  width: 70%;
}

.points-box__image-wrapper--w90 {
  width: 90%;
}

.points-box__image {
  width: 100%;
  height: auto;
}

.points-box__radical-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.radical-compare__box {
  width: calc( 50% - 24px );
}

.radical-compare__image {
  width: 100%;
  height: auto;
}

/* 将来 */
.main__future {
  gap: 40px;
  background: #eae6cd;
  padding-bottom: 40px;
}

.future__title {
  width: 90%;
  max-width: 540px;
  height: auto;
  margin: auto;
}

.future__box-container {
  width: 90%;
}

.future-box__image {
  width: 100%;
  height: auto;
  background: rgb(255 255 255 / 0.7);
}

/* 症例実績 */
.main__achievement {
  padding-bottom: 40px;
}

.achievement__box-container {
  width: 100%;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  background: #f8f8ec;
  padding: 24px 0;
}

.achievement-box__title {
  width: 90%;
  height: auto;
  margin: auto;
}

#achievement_sound {
  display: flex;
  width: 100%;
}
#achievement_sound > div {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.achievement-box__sound {
  margin-top: 1rem;
  width: 88%;
}

.achievement-box__sound-container {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.achievement-sound__back {
  position: relative;
  width: 100%;
  height: auto;
  top: 0;
  left: 0;
  z-index: 5;
}

.achievement-box__button {
  width: 100%;
  height: auto;
  z-index: 10;
}

.achievement-box__sound.play {
  animation-name: scale;
  animation-iteration-count: infinite;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
}
@keyframes scale{
  0% { scale: 1; }
  50% { scale: 1.05; }
  100% { scale: 1; }
}

.achievement-box__score {
  width: 100%;
  height: auto;
  margin: 40px auto 0;
}

/* 治療の流れ */
.main__step {
  gap: 40px;
}

.step__box-container {
  width: 90%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
}

.step-box__card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}

.step-box__image {
  width: 100%;
  max-width: 200px;
  margin: auto;
  height: auto;
}

.step-box__text-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  letter-spacing: 1px;
}

.step-box__title {
  font-weight: bold;
  font-size: 24px;
  color: #fd9500;
}

.step-box__num {
  font-size: 32px;
}

.step-box__step-name {
  font-size: 24px;
}

/* よくあるご質問 */
.main__faq {
  gap: 40px;
}

.faq__title {
  text-align: center;
}

.faq__box-container {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: auto;
}

.faq-box {
  border-radius: 12px;
}

.faq-box__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
}

.faq-box__bottom {
  display: grid;
  grid-template-columns: auto 1fr 24px;
  grid-template-rows: auto;
  gap: 16px;
  align-items: flex-start;
  margin-inline: 16px;
  border-top: dashed 1px #ff9803;
  opacity: 0;
  visibility: hidden;
  height: 0;
  transition: 0.3s;
}

.open + .faq-box__bottom {
  opacity: 1;
  visibility: visible;
  height: auto;
  padding-block: 16px;
}

.faq-box__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  background: #ff9803;
  border-radius: 9999px;
  width: 40px;
  height: 40px;
  margin-bottom: auto;
}

.faq-box__mark--answer {
  color: initial;
  background: #f1f1d8;
}

.faq-box__question {
  font-weight: bold;
}

.faq-box__toggle {
  display: flex;
  align-items: center;
  position: relative;
}

.faq-box__toggle::before {
  content: '';
  width: 24px;
  height: 4px;
  background: #ff9803;
}

.faq-box__toggle::after {
  content: '';
  height: 24px;
  width: 4px;
  background: #ff9803;
  position: absolute;
  left: 50%;
  translate: -50% 0;
  opacity: 1;
  visibility: visible;
}

.open .faq-box__toggle::after {
  opacity: 0;
  visibility: hidden;
}

.faq-box__answer {
  text-align:justify;
  word-break:break-all;
  text-justify:inter-character;
  word-wrap:break-word;
  overflow-wrap:break-word;
}

.faq-box__answer--notice {
  display: block;
  font-size: 16px;
}

/* クリニック紹介 */
.main__clinic {
  gap: 40px;
  padding-bottom: 40px;
}

.clinic__title {
  text-align: center;
}

.clinic-box {
  border: solid 2px #ecd1b3;
  border-radius: 12px;
}

.clinic__box-container {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: auto;
}

.clinic-box__title {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background: #7a542d;
  color: #fff;
  font-size: 24px;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
}

.clinic-box__title.open {
  border-radius: 12px 12px 0 0;
}

.clinic-box__name {
  text-align: center;
}

.clinic-box__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 9999px;
}

.clinic-box__toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-bottom: solid 4px #7a542d;
  border-left: solid 4px #7a542d;
  rotate: -45deg;
  transition: 0.3s;
}

.open .clinic-box__toggle::after {
  rotate: 135deg;
  margin-top: 4px;
}

.clinic-box__details {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  font-size: 20px;
  transition: 0.3s;
}

.open + .clinic-box__details {
  display: flex;
}

.clinic-details__image {
  width: 100%;
  height: auto;
}

.clinic-details__time {
  width: 100%;
  display: grid;
  grid-template-areas:
  'time-heading day-first clock-first'
  '. day-second clock-second'
  '. day-third clock-third'
  '. . notice';
  grid-template-columns: 96px 2fr 5fr;
  grid-template-rows: repeat(4, auto);
  row-gap: 8px;
  column-gap: 16px;
}

.clinic-details__heading {
  font-weight: bold;
}

.clinic-time__heading {
  grid-area: time-heading;
}

.clinic-time__day-first {
  grid-area: day-first;
}

.clinic-time__time-first {
  grid-area: clock-first;
}

.clinic-time__day-second {
  grid-area: day-second;
}

.clinic-time__time-second {
  grid-area: clock-second;
}

.clinic-time__day-third {
  grid-area: day-third;
}

.clinic-time__time-third {
  grid-area: clock-third;
}

.clinic-time__notice {
  grid-area: notice;
  font-size: 12px;
}

.clinic-other {
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: auto;
  gap: 16px;
}

.clinic-other__heading {
  font-weight: bold;
}

/* フッター */
.main__footer {
  margin: 40px auto;
  padding-bottom: 120px;
}


.footer__link {
  display: flex;
  justify-content: center;
  transition: 0.3s;
}

.footer__copyright {
  margin-top: 40px;
  text-align: center;
}

/* フローティングCTA */
.footer__cta {
  width: 100%;
  max-width: 750px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgb(255 255 255 / 0.8);
  position: fixed;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  z-index: 15;
  opacity: 0;
  transition: 0.3s;
}

.footer__cta.show {
  opacity: 1;
}

.float-cta__button {
  width: 100%;
  margin: auto;
  height: auto;
}

/* 背景関連 */
.next {
  width: 100%;
  background: #f1f1d8;
}

.next--white {
  background: #fff;
}

.next__arrow {
  width: 100%;
  height: 64px;
  background: #eae6cd;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  margin-top: -2px;
}

.next__half-circle {
  width: 100%;
  height: 80px;
  background: #eae6cd;
  border-radius: 0 0 50% 50%;
}

.md {
  display: none;
}

.sp {
  display: none;
}
/* レスポンシブ */
@media screen and (max-width:620px) {
  .main__title {
    font-size: 28px;
  }

  .strong--white-marker {
    font-size: 36px;
  }

  .mechanism__details {
    font-size: 16px;
  }

  .risk__details {
    font-size: 28px;
  }

  .data__text--large {
    font-size: 24px;
  }

  .data__wavy-text {
    font-size: 28px;
  }

  .data__wavy-image {
    width: 75%;
  }

  .clinic-box__details {
    font-size: 16px;
  }

  .clinic-details__time {
    grid-template-columns: 80px 2fr 5fr;
  }

  .cta__button-link {
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .cta__button-image {
    width: 90%;
  }

  .md {
    display: block;
  }
}

@media screen and (max-width: 468px) {
  .main__section {
    padding-top: 16px;
  }

  .main__cta {
    padding-top: 0;
  }

  .strong--white-marker {
    font-size: 24px;
  }

  .data__text--large {
    font-size: 18px;
  }

  .data__wavy-text {
    font-size: 20px;
  }

  .data__wavy-image {
    width: 80%;
    max-width: 320px;
  }

  .problem__image-container {
    margin-top: 16px;
  }

  .factor__title {
    margin: 0 auto 32px;
  }

  .mechanism__main-container {
    padding: 24px 16px;
  }

  .main__risk-details {
    gap: 16px;
  }

  .risk__details {
    font-size: 16px;
  }

  .main__data {
    padding-bottom: 24px;
  }

  .data__text {
    font-size: 16px;
  }

  .data__chart-container {
    margin-top: 0;
  }

  .main__resolve {
    gap: 0;
  }

  .resolve__three-points {
    margin-top: 16px;
  }

  .main__howto {
    gap: 24px;
  }

  .howto__text-image {
    width: 90%;
  }

  .main__points {
    gap: 24px;
  }

  .points-box {
    gap: 10px;
    padding: 24px;
  }

  .points-box__image--w70 {
    width: 90%;
  }

  .main__achievement {
    padding-bottom: 24px;
  }


  .achievement-box__score {
    margin: 16px auto 0;
  }

  .main__future {
    gap: 24px;
  }

  .main__step {
    margin-bottom: 16px;
    gap: 24px;
  }

  .step-box__card {
    gap: 24px;
  }

  .step-box__image {
    max-width: 120px;
  }

  .main__faq {
    gap: 24px;
  }

  .main__clinic {
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .clinic-details__time {
    grid-template-areas:
    'time-heading time-heading'
    'day-first clock-first'
    'day-second clock-second'
    'day-third clock-third'
    'notice notice';
    grid-template-columns: 1fr 2fr;
    grid-template-rows: repeat(5, auto);
  }

  .clinic-other {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cta__button-link {
    margin-top: 8px;
  }

  .main__footer {
    margin: 24px auto;
    padding-bottom: 25vw;
  }

  .footer__copyright {
    margin-top: 24px;
  }

  .next__half-circle {
    height: 10vw;
  }

  .sp {
    display: block;
  }


  .achievement-box__sound {
    width: 100%;
  }
}
