/* //////////////////////////////////////////////////

Title : cost.scss
For   : hospis/

Created       : 2025-10-05
Last Modified : 2025-10-09

==========================================

Content

////////////////////////////////////////////////// */
/**
 * common
 */
.l-cost__section {
  max-width: var(--container-middle);
  width: 100%;
  margin-inline: auto;
  font-size: 1.6rem;
  line-height: 1.875;
}

.c-cost__lead-text {
  max-width: var(--container-narrow);
  width: 100%;
  margin-inline: auto;
}
.c-cost-overview {
  background-color: var(--color-background-default);
}
.c-cost-overview__list {
  display: grid;
}
.c-cost-overview__item {
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: var(--color-white);
  box-shadow: 0 0.3rem 1.8rem #cce1ea;
}
.c-cost-overview__item span {
  display: flex;
  justify-content: center;
  align-items: center;
}
.c-cost-overview__item .main {
  color: var(--color-theme-light);
  font-weight: 700;
}
.c-cost-overview__item .sub {
  font-size: 1.5rem;
}
.c-cost-overview .c-cost__heading {
  --heading-color: var(--color-deep-gray);
  justify-content: center;
}
.c-cost__description {
  display: flex;
  flex-direction: column;
}
.c-cost__description dt {
  -webkit-border-after: 1px solid var(--color-theme-light);
          border-block-end: 1px solid var(--color-theme-light);
}
.c-cost__heading {
  --heading-line-height: 1;
  --heading-letter-spacing: 0;
}
.c-cost__heading::before {
  width: 2rem;
  height: 2rem;
}
.c-cost-contents .c-cost__heading::before {
  content: "";
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOS43OTkiIGhlaWdodD0iMTkuNzk5IiB2aWV3Qm94PSIwIDAgMTkuNzk5IDE5Ljc5OSI+IDxnIGlkPSLplbfmlrnlvaJfNjQyIiBkYXRhLW5hbWU9IumVt+aWueW9oiA2NDIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgOS45KSByb3RhdGUoLTQ1KSIgZmlsbD0iI2ZmZiIgc3Ryb2tlPSIjNDVhNGQwIiBzdHJva2Utd2lkdGg9IjEiPiA8cmVjdCB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHN0cm9rZT0ibm9uZSIvPiA8cmVjdCB4PSIwLjUiIHk9IjAuNSIgd2lkdGg9IjEzIiBoZWlnaHQ9IjEzIiBmaWxsPSJub25lIi8+IDwvZz48L3N2Zz4=");
  background-size: 100%;
  background-repeat: no-repeat;
}
.c-cost-copayment__text {
  letter-spacing: 0.05em;
}
.c-cost-copayment .c-cost__shell {
  position: relative;
}
.c-cost-copayment .c-cost__shell::before {
  content: "";
  position: absolute;
  top: 0;
  display: block;
  width: 10rem;
  height: 10rem;
  background-color: rgba(230, 250, 255, 0.7);
  filter: blur(1.6rem);
}
.c-cost-copayment .c-cost__heading {
  --heading-color: var(--color-deep-gray);
  position: relative;
  justify-content: center;
}
.c-cost-copayment__table table {
  width: 100%;
}
.c-cost-copayment__table table tr {
  display: grid;
  grid-template-columns: var(--table-head-width) 1fr 1fr 1fr;
}
.c-cost-copayment__table table th {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--table-head-background, #fbffcc);
  color: var(--table-head-color, var(--color-deep-gray));
  text-align: center;
}
.c-cost-copayment__table table td {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--color-theme-light);
  border-right: 1px solid var(--color-theme-light);
  color: var(--table-head-color, var(--color-theme-light));
  text-align: center;
  font-weight: 700;
}
.c-cost-copayment__table table thead th {
  --table-head-background: #1a5ea5;
  --table-head-color: var(--color-white);
}
.c-cost-copayment__table table thead th:not(:last-of-type) {
  border-left: 1px solid var(--color-white);
}
.c-cost-copayment__table table thead th:first-child {
  border-top-left-radius: var(--table-border-darius);
}
.c-cost-copayment__table table thead th:last-child {
  border-top-right-radius: var(--table-border-darius);
}
.c-cost-copayment__table table tbody th {
  border-bottom: 1px solid var(--color-deep-gray);
  border-left: 1px solid var(--color-deep-gray);
  border-right: 1px solid var(--color-deep-gray);
}
.c-cost-copayment__table table tbody tr:last-of-type *:first-child {
  border-bottom-left-radius: var(--table-border-darius);
}
.c-cost-copayment__table table tbody tr:last-of-type *:last-child {
  border-bottom-right-radius: var(--table-border-darius);
}
.c-cost-copayment__table-notes {
  font-size: 1.6rem;
  line-height: 1.375;
  text-align: right;
  letter-spacing: 0.05em;
}

/* --- for small viewport --- */
@media screen and (max-width: 767px) {
  .l-cost__section {
    padding-inline: calc(var(--global-gutter) * 1);
  }
  .c-cost__lead-text {
    padding-inline: 2.5rem;
    line-height: 1.6875;
  }
  .c-cost-overview {
    -webkit-margin-before: 8rem;
            margin-block-start: 8rem;
    -webkit-padding-before: 4.5rem;
            padding-block-start: 4.5rem;
    -webkit-padding-after: 7rem;
            padding-block-end: 7rem;
    padding-inline: 1.3rem;
  }
  .c-cost-overview__list {
    grid-template-columns: 100%;
    row-gap: 2rem;
    -webkit-padding-before: 4.6rem;
            padding-block-start: 4.6rem;
  }
  .c-cost-overview__item {
    row-gap: 1.2rem;
    padding-block: 1rem;
    padding-inline: 1rem;
    border-radius: 2rem;
    line-height: 1;
  }
  .c-cost-overview__item .main {
    font-size: 1.8rem;
  }
  .c-cost-overview__notes {
    -webkit-padding-before: 6rem;
            padding-block-start: 6rem;
    padding-inline: 1rem;
  }
  .c-cost-contents {
    -webkit-margin-before: 9rem;
            margin-block-start: 9rem;
    padding-inline: 1.5rem;
  }
  .c-cost-contents .c-cost__shell + .c-cost__shell {
    -webkit-margin-before: 7rem;
            margin-block-start: 7rem;
  }
  .c-cost-contents .c-cost__heading {
    --heading-gap: 1.5rem;
  }
  .c-cost-contents .c-cost__description {
    row-gap: 1.5rem;
  }
  .c-cost-contents .c-cost__description dt {
    -webkit-padding-after: 2rem;
            padding-block-end: 2rem;
  }
  .c-cost-copayment {
    -webkit-margin-before: 7rem;
            margin-block-start: 7rem;
    padding-inline: 1.5rem;
  }
  .c-cost-copayment .c-cost__shell {
    -webkit-padding-before: 5.5rem;
            padding-block-start: 5.5rem;
  }
  .c-cost-copayment .c-cost__shell + .c-cost__shell {
    -webkit-margin-before: 5.5rem;
            margin-block-start: 5.5rem;
  }
  .c-cost-copayment .c-cost__shell::before {
    left: -5rem;
  }
  .c-cost-copayment .c-cost__heading {
    --heading-font-size: 2.4rem;
    --heading-line-height: calc(42 / 24);
    text-align: center;
  }
  .c-cost-copayment__text {
    -webkit-padding-before: 4rem;
            padding-block-start: 4rem;
  }
  .c-cost-copayment__table {
    -webkit-margin-before: 4rem;
            margin-block-start: 4rem;
  }
  .c-cost-copayment__table table {
    --table-border-darius: 2rem;
  }
  .c-cost-copayment__table table tr {
    --table-head-width: 6rem;
  }
  .c-cost-copayment__table table td {
    font-size: 1.4rem;
  }
  .c-cost-copayment__table table thead th {
    height: 5rem;
    font-size: 1.4rem;
    line-height: 1.0714285714;
  }
  .c-cost-copayment__table table tbody th {
    font-size: 1.3rem;
  }
  .c-cost-copayment__table table tbody th,
.c-cost-copayment__table table tbody td {
    height: 4rem;
  }
  .c-cost-copayment__table-notes {
    -webkit-margin-before: 1.2rem;
            margin-block-start: 1.2rem;
  }
}
/* --- for large viewport --- */
@media screen and (min-width: 768px) {
  .c-cost-overview {
    -webkit-margin-before: 10rem;
            margin-block-start: 10rem;
    padding-block: 7rem;
    padding-inline: 2rem;
  }
  .c-cost-overview__list {
    grid-template-columns: repeat(4, 1fr);
    -moz-column-gap: 3rem;
         column-gap: 3rem;
    max-width: var(--container-narrow);
    margin-inline: auto;
    -webkit-padding-before: 5.5rem;
            padding-block-start: 5.5rem;
    -webkit-padding-end: 2.5rem;
            padding-inline-end: 2.5rem;
  }
  .c-cost-overview__item {
    position: relative;
    row-gap: 1.5rem;
    -webkit-padding-before: 2rem;
            padding-block-start: 2rem;
    -webkit-padding-after: 1.5rem;
            padding-block-end: 1.5rem;
    padding-inline: 2.5rem;
    border-radius: 3rem;
  }
  .c-cost-overview__item .main {
    --main-line-height: calc(28 / 22);
    min-height: calc(1em * var(--main-line-height) * 2);
    font-size: 2.2rem;
    line-height: var(--main-line-height);
  }
  .c-cost-overview__item .sub {
    --sub-line-height: calc(23 / 15);
    min-height: calc(1em * var(--sub-line-height) * 2);
    line-height: var(--sub-line-height);
  }
  .c-cost-overview__item:not(:last-child)::before, .c-cost-overview__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -1.6rem;
    width: 0.3rem;
    height: 1.7rem;
    margin: auto;
    background-color: var(--color-theme-light);
  }
  .c-cost-overview__item:not(:last-child)::after {
    transform: rotate(90deg);
  }
  .c-cost-overview__notes {
    max-width: 82.5rem;
    margin-inline: auto;
    -webkit-padding-before: 9rem;
            padding-block-start: 9rem;
  }
  .c-cost-contents {
    max-width: var(--container-narrow);
    -webkit-margin-before: 10rem;
            margin-block-start: 10rem;
    margin-inline: auto;
  }
  .c-cost-contents .c-cost__shell + .c-cost__shell {
    -webkit-margin-before: 5rem;
            margin-block-start: 5rem;
  }
  .c-cost-contents .c-cost__heading {
    --heading-font-size: 2.2rem;
  }
  .c-cost-contents .c-cost__description {
    row-gap: 3rem;
  }
  .c-cost-contents .c-cost__description dt {
    width: 55rem;
    -webkit-padding-after: 2rem;
            padding-block-end: 2rem;
  }
  .c-cost-copayment {
    max-width: 84rem;
    -webkit-margin-before: 14rem;
            margin-block-start: 14rem;
    margin-inline: auto;
  }
  .c-cost-copayment .c-cost__shell {
    -webkit-padding-before: 5rem;
            padding-block-start: 5rem;
  }
  .c-cost-copayment .c-cost__shell + .c-cost__shell {
    -webkit-margin-before: 3.5rem;
            margin-block-start: 3.5rem;
  }
  .c-cost-copayment .c-cost__shell::before {
    left: 3.5rem;
  }
  .c-cost-copayment__text {
    -webkit-padding-before: 8.5rem;
            padding-block-start: 8.5rem;
  }
  .c-cost-copayment__table {
    -webkit-margin-before: 8rem;
            margin-block-start: 8rem;
  }
  .c-cost-copayment__table table {
    --table-border-darius: 2rem;
  }
  .c-cost-copayment__table table tr {
    --table-head-width: 15.5rem;
  }
  .c-cost-copayment__table table td {
    font-size: 2.2rem;
    line-height: 1.3636363636;
  }
  .c-cost-copayment__table table thead th {
    height: 7.5rem;
    font-size: 2.2rem;
    line-height: 1.3636363636;
  }
  .c-cost-copayment__table table tbody th {
    font-size: 2rem;
  }
  .c-cost-copayment__table table tbody th,
.c-cost-copayment__table table tbody td {
    height: 6rem;
  }
  .c-cost-copayment__table-notes {
    -webkit-margin-before: 1.2rem;
            margin-block-start: 1.2rem;
  }
}
/*# sourceMappingURL=cost.css.map */