.section__body--wp > * {
  max-width: calc(700px + 24px * 2);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.cost {
  max-width: inherit !important;
  padding: 0 !important;
}
.cost::before,
.cost::after {
  content: "";
  background: url(../img/deco-mountain.webp) no-repeat;
  background-size: 100% 100%;
  height: 166px;
  /* 166 > 80 */
  height: clamp(5rem, -1.143rem + 12.8vw, 10.375rem);
  display: block;
}
.cost::before{
  margin-bottom: -1px;
} 
.cost::after{
  margin-top: -1px;
}
@media screen and (max-width: 768px) {
  .cost::before,
  .cost::after {
    height: 45px;
    /* 80 > 45 */
    height: clamp(2.813rem, 0.313rem + 5.21vw, 5rem);
  }
}
.cost::after {
  transform: rotate(-180deg);
}

.cost__wrap {
  background: var(--thema-beige);
  padding: 40px 24px;
}
.cost__body {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 32px;
}
.cost__body::after {
  color: "";
  height: 100%;
}
.cost__toc {
  position: sticky;
  top: 150px;
  align-self: flex-start;
  max-width: 330px;
  width: 100%;
}
.cost__toc li {
  margin-bottom: 16px;
}
.cost__toc li ul {
  margin-top: 16px;
  margin-left: 16px;
}
.cost__toc li ul li {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cost__toc li ul li::before {
  content: "";
  width: 8px;
  height: 1px;
  background: var(--theme-black-dark);
  display: block;
}
.cost__toc a {
  color: var(--thema-black-dark);
}
.cost__toc a.is-active {
  font-weight: bold;
}
.cost__content {
  max-width: calc(100% - 330px);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cost__content h2 {
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  /* padding-top: 88px;
  margin-top: -88px; */
  scroll-margin-top: 88px;
}
.cost__content h2::before {
  content: "";
  width: 2px;
  height: 80%;
  background: var(--theme-black-dark);
  display: block;
}
.accordion__title {
  /* padding-top: 88px;
  margin-top: -88px; */
  scroll-margin-top: 88px;
}
.cost__content h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cost__content h4::before {
  content: "";
  width: 16px;
  height: 16px;
  aspect-ratio: 1/1;
  border-radius: 16px;
  border: 1px solid var(--theme-black-dark);
  display: block;
}

.accordion > div {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.accordion__wrap > div {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.accordion__panel > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.accordion__panel .wp-block-table td,
.accordion__panel .wp-block-table th {
  border-color: #ccc !important;
  padding: 24px;
}
.accordion__panel .wp-block-table th {
}
.wp-block-table thead {
  background: #f5f5f5;
  border: 1px solid #ccc !important;
}
.wp-block-group__inner-container:has(.open) .accordion__title{
  padding: 0;
}
@media screen and (max-width: 768px) {
  .cost {
    padding-top: 80px;
  }
  .cost__toc {
    display: none;
  }
  .cost__content {
    max-width: inherit;
  }
  .accordion__wrap {
    display: none;
  }
  .cost__content h2 {
    font-size: 18px;
  }
  .accordion__title {
    padding: 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    position: relative;
    cursor: pointer;
  }
  .cost__content h4 {
    position: relative; /* 擬似要素を絶対配置するため */
    padding-left: 24px;
  }
  
  .cost__content h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px; /* テキストの1行目の高さに合わせて微調整 */
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--theme-black-dark);
  }
  .accordion > div {
    padding: 0;
  }
  .accordion > div:has(.open) {
    padding: 24px;
  }
  .accordion__title::after {
    content: "";
    background: url(../img/icon/plus.svg) no-repeat;
    width: 24px;
    height: 24px;
    background-size: cover;
  }

  .accordion__title.open {
    padding: 0;
  }
  .accordion__title.open::after {
    content: "";
    background: url(../img/icon/minus.svg) no-repeat;
    width: 24px;
    height: 24px;
    background-size: cover;
  }
  .accordion__wrap.open {
    display: flex;
  }
  .accordion__panel .wp-block-table td {
    display: block;
    border: none;
    padding: 16px 12px;
  }
  .accordion__panel .wp-block-table td:first-child {
    padding-bottom: 0;
  }
  .accordion__panel .wp-block-table tr {
    border-bottom: 1px solid #ccc;
  }
  .accordion__panel .wp-block-table table {
    border: 1px solid #ccc;
  }
}
