/* sell.cssの汎用的な p{text-align:center} 指定がこのページの本文にも及ぶため、この区画内は元の左寄せに戻す */
#fee p,
.TOP_AREA.fee p {
  text-align: left;
}

.TOP_AREA.fee {
  color: #333;
  background: center / cover no-repeat url(../img/bg_mv.jpg);
}

.TOP_AREA.fee a {
  color: #333;
}

.TOP_AREA.fee::before {
  display: none;
}

.TOP_AREA.fee h1,
.TOP_AREA.fee p {
  color: #333;
  font-weight: bold;
  line-height: 1.786;
  letter-spacing: 0.013px;
}

.TOP_AREA.fee h1 {
  margin-top: 28px;
  margin-bottom: 0;
}

.TOP_AREA.fee p {
  margin-top: 1em;
}

#fee {
  line-height: normal;
  margin-top: 52px;
  margin-bottom: 80px;
}

#fee img {
  height: auto;
  max-width: 100%;
  vertical-align: bottom;
}

.fee-table {
  max-width: 100%;
  overflow-x: auto;
}

.fee-table table {
  width: 100%;
  border-collapse: collapse;
  color: #666;
}

.fee-table th,
.fee-table td {
  height: 36px;
  padding: 10px 8px;
  border: 1px solid #b5b5b6;
  white-space: nowrap;
  line-height: normal;
  box-sizing: border-box;
}

.fee-table th {
  background-color: #e6e6e7;
  text-align: left;
  font-weight: 300;
}

.fee-table td {
  text-align: right;
  letter-spacing: normal;
}

.fee-table.fee-table--2col {
  max-width: 362px;
  margin-inline: auto;
}

.fee-table.fee-table--2col table {
  min-width: auto;
}

.fee-table .fee-table__left {
  text-align: left;
}

.fee-table caption {
  font-weight: bold;
  color: #666;
  letter-spacing: 0.007px;
  padding: 10px;
  text-align: center;
}

.fee-table__num {
  font-weight: bold;
}

.fee-table__accent {
  font-weight: bold;
  color: #e68c92;
}

/* Law card */
.law-card {
  background-color: #e8dccb;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.law-card__icon {
  width: 29px;
  height: 29px;
  background-image: url('../img/quotes.svg');
  background-size: 40px 40px;
  background-position: -8px -5px;
  background-repeat: no-repeat;
  transform: rotate(180deg);
  flex-shrink: 0;
}

.law-card__section p {
  margin: 0;
  line-height: normal;
}

.law-card__title {
  font-weight: bold;
}

.law-card__section .law-card__title--mt {
  margin-top: 20px;
}

.fee-index__title {
  margin-top: 90px;
  font-weight: bold;
}

.fee-index__list {
  list-style: none;
  padding: 0;
  margin: 8px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fee-index__list li {
  border-bottom: 1px dashed #b5b5b6;
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.fee-index__list a {
  color: #666;
}

/* Simulation */
.fee-simulation {
  background-color: #ddd;
}

.fee-simulation__accent {
  color: #C30D23;
}

.fee-simulation__inner {
  display: flex;
  flex-direction: column;
  row-gap: 28px;
  align-items: center;
}

.fee-simulation__title {
  font-weight: bold;
  padding: 10px;
  text-align: center;
}

.fee-simulation__subtitle {
  color: #E68C92;
  font-weight: bold;
  padding: 10px;
  align-self: flex-start;
  margin-bottom: -28px;
}

.fee-simulation__input {
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
}

.fee-simulation__input__header {
  display: flex;
  gap: 16px;
  align-items: center;
  color: #666;
  letter-spacing: 0.009px;
  white-space: nowrap;
  flex-grow: 0;
}

.fee-simulation__input__header::before {
  content: '';
  display: block;
  width: 26px;
  height: 22px;
  background: url('../img/icon_house.svg') center / contain no-repeat;
  flex-shrink: 0;
}

input[type="text"].fee-simulation__input__ui {
  -webkit-appearance: none; /* 1 */
  appearance: none;
  vertical-align: middle;
  color: inherit;
  font: inherit;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
  text-align: inherit;
  text-transform: inherit; /* 2 */
  flex-grow: 1;
  color: #666;
  min-height: 35px;
  text-align: right;
  border: none;
  outline: none;
  background: transparent;
  min-width: 0;
}

.fee-simulation__input__amount {
  color: #666;
  letter-spacing: 0.009px;
  white-space: nowrap;
  flex-shrink: 0;
}

.fee-simulation__range {
  position: relative;
  overflow: visible;
  width: 100%;
  height: 24px;
  margin-top: -14px;
}

.fee-simulation__range__draggable {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  aspect-ratio: 1/1;
  background-color: #E68C92;
  border-radius: 50%;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
  cursor: grab;
  z-index: 12;
}

.fee-simulation__range__gauge {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  background: #EAEAEA;
  z-index: 11;
}

.fee-simulation__result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.fee-simulation__data {
  border: 1px solid #f6f6f6;
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-radius: 16px;
  width: 100%;
  box-sizing: border-box;
}

.fee-simulation__data__header {
  display: flex;
  gap: 16px;
  align-items: center;
  white-space: nowrap;
  flex: 1;
}

.fee-simulation__data__header::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background: url('../img/icon_yen.svg') center / contain no-repeat;
  flex-shrink: 0;
}

.fee-simulation__data__number {
  font-weight: bold;
  letter-spacing: 0.012px;
  white-space: nowrap;
}

.fee-simulation__data__amount {
  color: #666;
  white-space: nowrap;
  padding-left: 8px;
}

.fee-simulation__calc__title {
  color: #fcfcfc;
}

.fee-simulation__calc__body {
  color: #fff;
}

.fee-simulation__calc__diff .fee-simulation__accent {
  font-weight: bold;
}

.fee-simulation .button-contact {
  height: auto;
  line-height: normal;
  padding: 12px 48px;
  width: auto;
  margin: 0;
}

.fee-simulation .button-contact .BUTTON {
  font-weight: bold;
}

/* Article */
.fee-article {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 16px;
}

.fee-article:last-child {
  padding-bottom: 0;
}

.fee-article__title {
  border-bottom: 1px dashed #b5b5b6;
  padding: 8px 0;
  font-weight: bold;
}

h3.fee-article__title {
  margin: 0;
  text-align: left;
}

.fee-article__body {
  margin-inline: 5px;
}

.fee-article__body p + * {
  margin-top: 1.5em;
}

.fee-article__body .fee-table {
  margin-top: 16px;
}

.fee-article__body img {
  display: block;
  margin: 24px auto 0;
}

.fee-article__body li {
  text-indent: -1em;
  margin-left: 1em;
  padding-block: 8px;
}

.fee-article__body li::before {
  content: "・";
}

/* Q&A Item */
.fee-qaitem + .fee-qaitem {
  margin-top: 8px;
}

h3.fee-qaitem__title {
  margin: 0 0 8px;
  font-weight: normal;
}

.fee-qaitem__title a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  column-gap: 0.5em;
  width: 100%;
  padding: 8px 30px 8px 0;
  color: #666;
  letter-spacing: 0.007px;
  line-height: normal;
  text-decoration: none;
  box-sizing: border-box;
  text-align: left;
}

.fee-qaitem__title a::before {
  content: "Q.";
  color: #c30d23;
  font-weight: bold;
  flex-shrink: 0;
  white-space: nowrap;
}

.fee-qaitem__title a [class^="icon-"] {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(50%);
  rotate: 0deg;
  transition: rotate 0.25s ease;
  font-size: 1.1em;
}

.fee-qaitem.open .fee-qaitem__title a [class^="icon-"] {
  rotate: 180deg;
}

.fee-qaitem__body {
  max-height: 0;
  overflow: hidden;
  border-bottom: 1px dashed #b5b5b6;
  padding: 0 8px 0 0;
  transition: max-height 0.2s ease, padding 0.2s ease;
}

.fee-qaitem.open .fee-qaitem__body {
  max-height: 600px;
  padding: 8px 8px 8px 0;
}

.fee-qaitem__body p + * {
  margin-top: 1.5em;
}

.fee-qaitem__body > p:first-child::before {
  content: "A.";
  color: #c30d23;
  font-weight: bold;
  margin-right: 0.5em;
}

@media only screen and (max-width: 767.9px) {

  .TOP_AREA.fee h1 {
    font-size: 6.20vw;
  }

  .TOP_AREA.fee p {
    font-size: 5.13vw;
  }

  .member_form .h1Text {
    padding-left: 10px;
    padding-right: 10px;
  }

  .fee-section + .fee-section {
    margin-top: 50px;
  }

  .fee-section__title {
    margin-bottom: 30px;
  }

  .fee-table table {
    font-size: 2.98vw;
  }

  .fee-table caption {
    font-size: 3.56vw;
  }

  .fee-table__num {
    font-size: 3.56vw;
  }

  .fee-table__accent {
    font-size: 3.56vw;
  }

  .law-card__section {
    font-size: 3.56vw;
  }

  .fee-simulation {
    border-radius: 12px;
    padding: 32px 10px;
  }

  .fee-simulation__title {
    font-size: 4.62vw;
  }

  .fee-simulation__subtitle {
    font-size: 3.56vw;
  }

  .fee-simulation__input__header {
    font-size: 3.56vw;
  }

  input[type="text"].fee-simulation__input__ui {
    font-size: 5.13vw;
  }

  .fee-simulation__input__amount {
    font-size: 3.56vw;
  }

  .fee-simulation__data__header {
    font-size: 3.56vw;
  }

  .fee-simulation__data__number {
    font-size: 5.13vw;
  }

  .fee-simulation__data__amount {
    font-size: 3.56vw;
  }

  .fee-simulation__calc {
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .fee-simulation__calc__title {
    font-size: 2.98vw;
    flex-grow: 1;
    text-align: center;
  }

  .fee-simulation__calc__body {
    font-size: 2.98vw;
  }

  .fee-simulation__calc__diff {
    font-size: 2.98vw;
  }

  .fee-simulation__calc__diff .fee-simulation__accent {
    font-size: 3.56vw;
  }

  .fee-simulation .button-contact .BUTTON {
    font-size: 4.62vw;
  }

  .fee-article__title {
    font-size: 3.56vw;
  }

  .fee-qaitem__title a {
    font-size: 3.56vw;
  }

  .fee-article__columns > * + * {
    margin-top: 30px;
  }

}

@media only screen and (min-width: 768px) {

  #fee img {
    display: inline-block;
    width: revert-layer;
  }

  .fee-article__body__image {
    margin-top: 0 !important;
    text-align: center;
  }

  .TOP_AREA.fee h1,
  .TOP_AREA.fee p {
    font-size: 25px;
  }

  .fee-section + .fee-section {
    margin-top: 50px;
  }

  .fee-section__title {
    margin-bottom: 30px;
  }

  .fee-table table {
    table-layout: fixed;
    min-width: 725px;
    font-size: 12px;
  }

  .fee-table caption {
    font-size: 14px;
  }

  .fee-table__num {
    font-size: 16px;
  }

  .fee-table__accent {
    font-size: 16px;
  }

  .law-card__section {
    font-size: 14px;
  }

  .fee-simulation {
    border-radius: 16px;
    padding: 32px;
  }

  .fee-simulation__title {
    font-size: 18px;
  }

  .fee-simulation__subtitle {
    font-size: 14px;
  }

  .fee-simulation__input__header {
    font-size: 18px;
  }

  input[type="text"].fee-simulation__input__ui {
    font-size: 23px;
  }

  .fee-simulation__input__amount {
    font-size: 18px;
  }

  .fee-simulation__data__header {
    font-size: 18px;
  }

  .fee-simulation__data__number {
    font-size: 23px;
  }

  .fee-simulation__data__amount {
    font-size: 18px;
  }

  .fee-simulation__calc {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
  }

  .fee-simulation__calc__title {
    font-size: 10px;
  }

  .fee-simulation__calc__body {
    font-size: 10px;
  }

  .fee-simulation__calc__diff {
    font-size: 10px;
  }

  .fee-simulation__calc__diff .fee-simulation__accent {
    font-size: 14px;
  }

  .fee-simulation .button-contact .BUTTON {
    font-size: 18px;
  }

  .fee-article__title {
    font-size: 14px;
  }

  .fee-qaitem__title a {
    font-size: 14px;
  }

  .fee-article__columns {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .fee-article__columns > *:first-child {
    min-width: 50.4%;
  }

}
