:root {
  --brown: #c27358;
  --brown2: #d7a476;
  --lightbrown: #fdf4ea;
  --orange: #ff8470;
  --lightgray: #f9f7f7;
  --gray: #707070;

  --contentWidth: 960px;
}

/* リセットCSS */
picture {
  display: block;
  max-width: 100%;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    translate: 0 -8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ページ識別クラス */
.tenteki {
  @media (max-width: 1024px) {
    font-size: 12px;
  }
  @media (max-width: 768px) {
    font-size: inherit;
  }
}

/* 共通クラス */
.lf {
  display: inline-block;
}
.br-pc {
  @media (max-width: 768px) {
    display: none;
  }
}

.section {
  padding: 6.25em 0;

  &.section--type2 {
    background: var(--lightgray);
  }

  &.section--type3 {
    background: var(--brown2);
  }

  @media (max-width: 768px) {
    padding: 3.57em 0;
  }
}

.section__container {
  width: 89.33%;
  max-width: var(--contentWidth);
  margin: 0 auto;
}

.section__head {
  margin-bottom: 1.8em;
  text-align: center;
  color: var(--brown);
  font-size: 2.125em;
  font-family: "Noto Serif JP", serif;
  line-height: 1.5;

  @media (max-width: 768px) {
    margin-bottom: 1.35em;
    font-size: 1.86em;
  }

  &.section__head--type2 {
    color: #000;
  }

  &.section__head--type3 {
    color: #fff;
  }

  .note {
    display: block;
    text-align: center;
    font-size: 0.38em;
    line-height: 1.25;
  }
}

.section__subHead {
  display: flex;
  align-items: center;
  margin-bottom: 1.425em;
  text-align: center;
  font-size: 1.75em;
  font-family: "Noto Serif JP", serif;
  position: relative;

  @media (max-width: 768px) {
    margin-bottom: 1.4em;
    font-size: 1.65em;
  }

  .text {
    flex: 1 0 auto;
    display: block;
    width: fit-content;
    padding: 0 1em;
  }

  .emphasis {
    color: var(--brown);
  }

  &::before,
  &::after {
    content: "";
    width: 100%;
    height: 1px;
    background: var(--brown);
  }

  &.section__subHead--type2 {
    &::before,
    &::after {
      background: var(--gray);
    }
  }
}

.section__flex {
  display: flex;
  gap: 7.5%;

  @media (max-width: 1024px) {
    gap: 4%;
  }

  @media (max-width: 768px) {
    flex-direction: column-reverse;
    gap: 2.25em;
  }

  &.section__flex--alignCenter {
    align-items: center;
  }

  &.section__flex--section06 {
    gap: 5%;

    @media (max-width: 768px) {
      flex-direction: column;
      gap: 2.25em;
    }
  }

  .section__flexImg {
    flex: 1;
  }

  .section__flexImgNotes {
    font-size: 0.69em;

    &.section__flexImgNotes--center {
      text-align: center;
    }
  }

  .section__flexText {
    flex: 1;
  }
}

.btn {
  display: block;
  max-width: 100%;
  width: 360px;
  margin: 0 auto;
  padding: 0.5em 2.5%;
  text-align: center;
  background: var(--brown);
  color: #fff;
  border: solid 2px var(--brown);
  border-radius: 4000px;
  font-weight: bold;
  position: relative;

  &:hover {
    opacity: 10;
    background: #fff;
    color: var(--brown);
    border: solid 2px var(--brown);
  }

  @media (max-width: 768px) {
    max-width: 80vw;
  }

  &.btn--border {
    background: #fff;
    color: var(--brown);
    border: solid 2px var(--brown);

    &:hover {
      background: var(--brown);
      color: #fff;
    }
  }

  &.btn--external {
    &::after {
      position: absolute;
      top: 50%;
      right: 7%;
      translate: 0 -50%;
      content: "";
      display: block;
      width: 0.7em;
      aspect-ratio: 1/1;
      rotate: 45deg;
      border-top: solid 2px #fff;
      border-right: solid 2px #fff;
      transition: 0.2s;
    }

    &:hover {
      &::after {
        translate: 2px -50%;
        border-top: solid 2px var(--brown);
        border-right: solid 2px var(--brown);
      }
    }

    &.btn--border {
      background: #fff;
      color: var(--brown);
      border: solid 2px var(--brown);

      &::after {
        border-top: solid 2px var(--brown);
        border-right: solid 2px var(--brown);
      }

      &:hover {
        background: var(--brown);
        color: #fff;

        &::after {
          border-top: solid 2px #fff;
          border-right: solid 2px #fff;
        }
      }
    }
  }
}

.listItem {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 1em 1.25em;
  background: #fff;
  border-radius: 10px;

  &.listItem--type2 {
    padding: 0.75em 1.25em;
    background: var(--orange);
    color: #fff;
    font-weight: 500;
  }

  &.listItem--type3 {
    padding: 0.75em 1.25em;
    background: var(--brown2);
    color: #fff;
  }

  .listItemIcon {
    width: 1.75em;
    height: 1.75em;

    &.listItemIcon--index {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 1.5em;
      height: 1.5em;
      background: #fff;
      color: var(--orange);
      border-radius: 50%;
      font-size: 1.25em;
      font-family: "Noto Serif JP", serif;
      font-weight: bold;
      line-height: 1;
      letter-spacing: 0;
    }
  }

  .listItemText {
    &.listItemText--type2 {
      font-size: 1.3125em;
      line-height: 1.7;
    }
  }
}
/* /共通クラス */

/* メインビジュアル */
.mainVisual {
  display: flex;
  min-height: 360px;
	max-height: 360px;
  padding: 4em 0;
  position: relative;
  background: var(--lightgray);

  @media (max-width: 768px) {
    flex-direction: column;
    gap: 2em;
    min-height: auto;
		max-height: initial;
    padding: 2em 0 0;
  }

  .mainVisual__container {
    width: 89.33%;
    max-width: var(--contentWidth);
    margin: 0 auto;
    display: flex;
    align-items: center;

    @media (max-width: 768px) {
      justify-content: center;
    }
  }

  .mainVisual__text {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: fit-content;
    color: var(--brown);
    font-family: "Noto Serif JP", serif;
    line-height: 1.3;

    @media (max-width: 768px) {
      align-items: center;
      gap: 1.5em;
      font-size: 0.75em;
    }

    .large {
      font-size: 2.5em;

      @media (max-width: 768px) {
        font-size: 2.45em;
      }
    }

    .small {
      display: block;
      width: fit-content;
      font-size: 1.5em;
      line-height: 1;

      @media (max-width: 768px) {
        font-size: 1.72em;
      }
    }
  }

  .mainVisual__textBadgeWrap {
    display: flex;
    gap: 0.75em;
  }

  .mainVisual__textBadge {
    padding: 0.25em 1em;
    text-align: center;
    background: var(--brown);
    color: #fff;
    letter-spacing: 0.1em;

    @media (max-width: 768px) {
      padding: 0.25em 0.5em;
      font-size: 1.5em;
    }
  }

  .mainVisual__img {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: block;

    @media (max-width: 768px) {
      position: initial;
      width: 100%;
    }

    img {
      display: block;
      height: 100%;
			min-height: 100%;
      object-fit: cover;
      object-position: left center;

			@media (max-width: 768px) {
				height: auto;
			}
    }
  }
}

/* こんなお悩みに */
.section02 {
  .section02__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75em 1.25%;
    max-width: 840px;
    margin: 0 auto;

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
    }
  }
}

/* ビューティーポイント */
.section04 {
  .section04__flex {
    display: flex;
    max-width: 848px;
    margin: 0 auto;

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

  .section04__flexImg {
    flex: 1;
    object-fit: cover;
    object-position: center;
    max-width: 444px;

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

  .section04__list {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    width: 415px;
    max-width: 100%;
    margin: 2.5em auto 0 -5%;

    @media (max-width: 768px) {
      width: 315px;
      width: 84vw;
      margin: -3em auto 0 auto;
    }
  }

  .section04__pointList {
    display: flex;
    flex-direction: column;
    gap: 2.75em;
    margin: 5em 0 0;

    @media (max-width: 768px) {
      margin-top: 3em;
    }

    &.section04__pointList--homecare {
      margin-top: 0;
    }
  }

  .section04__pointListItem {
    display: grid;
    grid-template:
      "head list"
      "text list"
      "place list";
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1em 4%;
    padding: 3.25em 6% 3.75em;
    background: #fff;
    position: relative;

    @media (max-width: 768px) {
      grid-template:
        "head"
        "text"
        "place"
        "list";
      gap: 1.3em;
      padding: 3.5em 6% 3.5em;
    }

    .section04__pointListTag {
      grid-area: tag;
      position: absolute;
      top: 0;
      left: 0;
      padding: 0 1em;
      background: var(--orange);
      color: #fff;
      border-radius: 0 0 10px 0;
      font-family: "Noto Serif JP", serif;
      line-height: 1.75;

      @media (max-width: 768px) {
        font-size: 0.95em;
      }
    }

    .section04__pointListHead {
      grid-area: head;
      color: var(--brown);
      font-size: 2em;
      font-weight: 500;
      font-family: "Noto Serif JP", serif;

      @media (max-width: 768px) {
        margin-top: 0.5em;
        font-size: 1.5em;
      }
    }

    .section04__pointListText {
      grid-area: text;

      @media (max-width: 768px) {
        font-size: 1.13em;
      }

      .small {
        display: block;
        margin-top: 1.75em;
        font-size: 0.81em;

        @media (max-width: 768px) {
          margin-top: 1.5em;
        }
      }
    }

    .section04__pointListPlace {
      grid-area: place;
      padding: 0.25em 2.5% 0.75em;
      background: var(--lightbrown);
    }

    .section04__pointListPlaceHead {
      text-align: center;
      color: var(--brown);

      @media (max-width: 768px) {
        font-size: 1.13em;
      }
    }

    .section04__pointListPlaceList {
      display: flex;
      justify-content: center;
      gap: 0.5em;
      margin-top: 0.25em;
    }

    .section04__pointListPlaceListItem {
      text-align: center;
      padding: 0.2em 1em;
      background: var(--brown);
      color: #fff;
      font-family: "Noto Serif JP", serif;
      line-height: 1.25;

      @media (max-width: 768px) {
        padding: 0.3em 0.4em;
      }
    }

    .section04__pointListList {
      grid-area: list;
      display: flex;
      flex-direction: column;
      gap: 0.75em;
    }
  }
}

/* 治療のメカニズム */
.section05 {
  .section05__flexWrap {
    display: flex;
    flex-direction: column;
    gap: 3.5em;

    @media (max-width: 768px) {
      gap: 3em;
    }
  }

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

/* 治療の適応部位 */
.section06 {
  .section06__flexWrap {
    display: flex;
    flex-direction: column;
    gap: 2.5em;
  }

  .section06__flexImg {
    @media (max-width: 768px) {
      max-width: 100%;
      margin: 0 auto;
    }

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

    &.section06__flexImg--pc {
      display: block;

      @media (max-width: 768px) {
        display: none;
      }
    }

    &.section06__flexImg--sp {
      display: none;

      @media (max-width: 768px) {
        display: block;
        margin-bottom: 2.75em;
      }
    }
  }
}

/* 治療の流れ */
.section07 {
  .section07__flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4em 10%;
    max-width: 848px;
    margin: 0 auto;

    @media (max-width: 768px) {
      gap: 1.25em;
    }
  }

  .section07__flowItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25em;

    @media (max-width: 768px) {
      flex-direction: row;
      justify-content: center;
      width: 100%;
    }
  }

  .section07__flowItemCircle {
    width: 140px;
    aspect-ratio: 1/1;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 50%;
    position: relative;

    &::after {
      position: absolute;
      top: 50%;
      left: 60.5%;
      translate: 0 -50%;
      content: "";
      display: block;
      width: 100%;
      height: 2px;
      background: #fff;

      @media (max-width: 768px) {
        top: initial;
        bottom: 0;
        left: 50%;
        translate: -50% 0;
      }
    }

    @media (max-width: 768px) {
      width: 84px;
      width: 22.5vw;

      &::after {
        top: initial;
        bottom: -50%;
        left: 50%;
        translate: -50% 0;
        width: 2px;
        height: 100%;
      }
    }

    /* 横線用 */
    &.section07__flowItemCircle--last {
      &::after {
        display: none;
      }
    }

    > img {
      position: relative;
      z-index: 1;
      width: 60px;
      aspect-ratio: 1/1;

      @media (max-width: 768px) {
        width: 12vw;
      }
    }
  }

  .section07__flowItemText {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 3lh;
    padding: 0.1em 2%;
    text-align: center;
    background: var(--lightgray);
    border-radius: 10px;
    line-height: 1.3;

    @media (max-width: 768px) {
      max-width: 48vw;
    }
  }

  .section07__btn {
    margin-top: 4em;

    @media (max-width: 768px) {
      margin-top: 2.5em;
    }
  }
}

/* 施術概要 */
.section08 {
  .section08__table {
    width: 100%;

    .th,
    .td {
      padding: 1.25em 2.5%;
      font-weight: normal;
      line-height: 2;

      @media (max-width: 768px) {
        font-size: 0.8em;
      }
    }

    .th {
      width: 274px;
      text-align: center;
      vertical-align: middle;
      background: var(--brown2);
      color: #fff;
      border-top: solid 1px var(--brown);
      border-bottom: solid 1px #fff;

      &.th--last {
        border-bottom: solid 1px var(--brown);
      }

      @media (max-width: 768px) {
        width: 74px;
        width: 19.7vw;
      }
    }

    .td {
      background: #fff;
      border-top: solid 1px var(--brown);
      border-bottom: solid 1px var(--brown);

      @media (max-width: 768px) {
        padding-left: 5%;
      }
    }
  }

  .section08__info {
    display: flex;
    flex-direction: column;
    gap: 1.8em;
    margin-top: 2.1em;
    padding: 2em 5%;
    background: #fff;

    @media (max-width: 768px) {
      padding: 2.5em 7%;
    }
  }

  .section08__infoText {
    text-align: center;

    @media (max-width: 768px) {
      text-align: left;
      font-size: 0.94em;
    }

    .indent {
      display: block;
      margin-left: 1em;
      text-indent: -1em;

      @media (max-width: 768px) {
        margin-top: 1em;
        font-size: 0.85em;
      }
    }
  }
}

/* よくある質問 */
.section09 {
  .section09__faq {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
  }

  .section09__faqItem {
    background: var(--lightgray);
    border-radius: 10px;
    position: relative;

    @media (max-width: 768px) {
      font-weight: 350;
    }
  }

  .section09__faqItemSummary {
    display: block;
    width: 100%;
    padding: 2em 5em;
    list-style: none;
    position: relative;

    &::before {
      position: absolute;
      top: 47.5%;
      left: 0.9em;
      translate: 0 -50%;
      content: "Q.";
      display: block;
      color: var(--brown);
      font-size: 2em;
      font-weight: bold;
      font-family: "Noto Serif JP", serif;
      line-height: 1;
    }

    &::after {
      position: absolute;
      top: 50%;
      right: 1em;
      translate: 0 -50%;
      content: "＋";
      display: block;
      color: var(--brown);
      font-size: 2em;
      font-weight: 300;
    }

    @media (max-width: 768px) {
      padding: 1.75em 2.5em 1.75em 4em;
      line-height: 1.5;

      &::before {
        left: 0.75em;
        font-size: 1.72em;
      }

      &::after {
        right: 0.75em;
        font-size: 1.25em;
      }
    }
  }

  .section09__faqItemInput {
    position: absolute;
    top: 2px;
    left: 2px;
    opacity: 0;
  }

  .section09__faqitemSummaryText {
    font-size: 1.375em;

    @media (max-width: 768px) {
      font-size: 1.15em;
    }
  }

  .section09__faqItemAnswerWrap {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    position: relative;
    transition: 0.5s;
  }

  .section09__faqItemAnswer {
    padding: 0 5em 2.5em 5em;
    position: relative;

    &::before {
      position: absolute;
      top: 0;
      left: 0.9em;
      content: "A.";
      display: block;
      font-size: 2em;
      font-weight: bold;
      font-family: "Noto Serif JP", serif;
      line-height: 1;
    }

    @media (max-width: 768px) {
      padding: 0 2.5em 2em 4em;
      line-height: 1.5;

      &::before {
        left: 0.75em;
        font-size: 1.72em;
      }
    }
  }

  /* チェックされたときの挙動 */
  .section09__faqItemInput:checked ~ .section09__faqItemSummary {
    &::after {
      content: "ー";
    }
  }

  .section09__faqItemInput:checked ~ .section09__faqItemAnswerWrap {
    height: auto;
    max-height: 5lh;
    opacity: 1;
  }
}

/* 料金 */
.section10 {
  @media (max-width: 768px) {
    padding-bottom: 7em;
  }

  .section10__item-wrap {
    display: flex;
    flex-direction: column;
    gap: 3em;
  }

  .section10__item {
    overflow: hidden;
    padding: 3.5em 5% 4em;
    background: #fff;
    max-height: 1600px;
    height: auto;
    transition: 0.5s;
    position: relative;

    @media (max-width: 768px) {
      max-height: 2000px;
      padding: 3.25em 5% 2.5em;
    }

    /* close時 */
    &.js-close {
      max-height: 400px;

      &::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 100%);
        transition: 0.2s;
      }
    }
  }

  .section10__item-tag {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 16.25%;
    padding: 0 1em 0.1em;
    text-align: center;
    background: var(--orange);
    color: #fff;
    border-radius: 0 0 10px 0;
    font-size: 1.375em;
    font-family: "Noto Serif JP", serif;
    line-height: 1.5;

    @media (max-width: 768px) {
      left: 50%;
      translate: -50% 0;
      min-width: 41.9%;
      border-radius: 0 0 10px 10px;
    }
  }

  .section10__item-list-head {
    width: fit-content;
    margin: 2em auto 0;
    text-align: center;
    color: var(--brown);
    margin-bottom: 0.75em;
    font-size: 1.375em;
    line-height: 1.5;
    position: relative;

    &.section10__item-list-head--mt0 {
      margin-top: 0;
    }

    @media (max-width: 768px) {
      margin: 1em auto;
      font-size: 1.15em;
    }
  }

  .section10__item-list {
    display: flex;
    flex-direction: column;
    gap: 2.5em;
    max-width: 760px;
    margin: 0 auto;

    @media (max-width: 768px) {
      gap: 1.3em;
    }
  }

  .section10__list-head {
    text-align: center;
    color: var(--brown);
    font-size: 22px;
  }

  .section10__list-flex {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: solid 1px var(--brown);

    &:first-child {
      border-top: solid 1px var(--brown);
    }

    @media (max-width: 768px) {
      grid-template-columns: 1fr 1.5fr;
    }
  }

  .section10__list-dt,
  .section10__list-dd {
    padding: 1.5em 5%;
    font-size: 13px;
    font-weight: normal;
  }

  .section10__list-dt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--lightbrown);

    .badge {
      display: block;
      width: fit-content;
      text-align: center;
      padding: 0.25em;
      background: var(--brown);
      color: #fff;
      line-height: 1.25;
    }
  }

  .section10__list-dd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5em;

    @media (max-width: 768px) {
      flex-direction: column;
      justify-content: center;
      gap: 1px;
      padding: 1em 5% 1.5em;
    }

    .part {
      &.part--emphasis {
        background: var(--brown);
        color: #fff;
        padding: 0.5em 0.5em;
        line-height: 1.2;
      }
    }

    .times {
      flex: 1;
      text-align: right;

      @media (max-width: 768px) {
        flex: none;
      }
    }

    .price {
      min-width: 130px;
      max-width: 100%;
      text-align: right;
      font-size: 2.08em;
      line-height: 1;
      font-weight: 300;

      &.price--emphasis {
        color: var(--brown);
      }
    }

    .yen {
      font-size: 13px;
      font-weight: normal;
    }

    &.section10__list-dd--column {
      flex-direction: column;
      justify-content: flex-end;
      gap: 0;
      padding: 0;
    }
  }

  .section10__list-dd-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5em;
    width: 100%;
    padding: 1.5em 5%;

    &:not(:first-child) {
      border-top: solid 1px var(--brown);
    }

    @media (max-width: 768px) {
      flex-direction: column;
      justify-content: center;
      gap: 1px;
      padding: 1em 5% 1.5em;
    }
  }

  .section10__item-toggle-btn {
    display: none;
    position: absolute;
    bottom: 2em;
    left: 50%;
    translate: -50% 0;
    align-items: center;
    justify-content: center;
    width: 3.75em;
    aspect-ratio: 1/1;
    background: var(--brown2);
    border-radius: 50%;
    transition: 0.2s;

    &::before {
      content: "";
      display: block;
      width: 1.25em;
      aspect-ratio: 1/1;
      border-right: solid 4px #fff;
      border-bottom: solid 4px #fff;
      rotate: 45deg;
      translate: 0 -15%;
    }

    &:hover {
      opacity: 0.8;
    }

    @media (max-width: 768px) {
      width: 2.5em;

      &::before {
        width: 0.8em;
        border-right: solid 3px #fff;
        border-bottom: solid 3px #fff;
      }

      &:hover {
        opacity: 1;
      }
    }

    &.js-close {
      display: flex;
    }
  }
}
