.p-wrapper {
  --section-gap-xl: 180px;
  --section-gap-lg: 120px;
  --section-gap-md: 90px;
  --section-gap   : var(--section-gap-lg);
  padding-bottom  : 180px;
}

@media (max-width: 525px) {
  .p-wrapper {
    --section-gap: var(--section-gap-md);
  }
}

.p-intro {
  padding-bottom  : var(--section-gap);
  background-image: var(--bg-primary);
  background-size : cover;
}

.is-sp {
  @media (min-width: 769px) {
    display: none;
  }
}

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

.c-heading01__en {
  @media (max-width: 768px) {
    font-size: 18vw;
  }
}

.p-pattern01 {
  margin-top: var(--section-gap);
}

.p-pattern02 {
  margin-top: var(--section-gap-md);
}

.p-pattern02__header {
  margin-bottom: 5em;
}

@media (max-width: 525px) {
  .p-pattern02__header {
    margin-bottom: 3.5em;
  }
}

.p-pattern03 {
  margin-top: var(--section-gap);
}

.p-pattern03__header {
  margin-bottom: 5em;
}

@media (max-width: 525px) {
  .p-pattern03__header {
    margin-bottom: 3.5em;
  }
}

.p-pattern04 {
  margin-top: var(--section-gap);
}

.p-pattern04__header {
  margin-bottom: 5em;
}

@media (max-width: 525px) {
  .p-pattern04__header {
    margin-bottom: 3.5em;
  }
}

.p-pattern05 {
  margin-top: var(--section-gap);
}

.p-pattern05__header {
  margin-bottom: 4em;
}

@media (max-width: 525px) {
  .p-pattern05__header {
    margin-bottom: 2.5em;
  }
}

.p-pattern05__list {
  display: grid;
  gap    : 2.5em;
}

.p-pattern06 {
  margin-top: var(--section-gap);
}

.p-pattern06__header {
  margin-bottom: 5em;
}

@media (max-width: 525px) {
  .p-pattern06__header {
    margin-bottom: 3.5em;
  }
}

.p-pattern06__table {
  padding-bottom: 1em;
}

.p-pattern07 {
  margin-top: var(--section-gap);
}

.p-pattern07__header {
  margin-bottom: 5em;
}

@media (max-width: 525px) {
  .p-pattern07__header {
    margin-bottom: 3.5em;
  }
}

.p-pattern07__list {
  display: grid;
  gap    : 5em;
}

.p-pattern08 {
  margin-top: var(--section-gap);
}

.p-pattern08__header {
  margin-bottom: 5em;
}

@media (max-width: 525px) {
  .p-pattern08__header {
    margin-bottom: 3.5em;
  }
}

.p-pattern08__body {
  container-type: inline-size;
}

.p-pattern08__list {
  --column-count: 4;
  --column-gap  : min(2.5em, calc(4 * var(--vw)));
  --row-gap     : 3em;
}

@container (width <=850px) {
  .p-pattern08__list {
    --column-count: 2;
  }
}

@container (width <=550px) {
  .p-pattern08__list {
    --column-count: 1;
  }
}

.p-bg-part {
  padding-top     : var(--section-gap);
  padding-bottom  : var(--section-gap);
  margin-top      : var(--section-gap);
  background-image: var(--bg-primary);
  background-size : cover;
}

.p-pattern09__header {
  margin-bottom: 5em;
}

@media (max-width: 525px) {
  .p-pattern09__header {
    margin-bottom: 3.5em;
  }
}

.p-pattern10 {
  margin-top: var(--section-gap-md);
}

.p-pattern11 {
  margin-top: var(--section-gap);
}

.p-pattern11__header {
  margin-bottom: 5em;
}

@media (max-width: 525px) {
  .p-pattern11__header {
    margin-bottom: 3.5em;
  }
}

.p-pattern11__intro {
  max-width    : 880px;
  margin-inline: auto;
  margin-bottom: 3em;
}

.p-pattern11__list {
  --row-gap    : 1em;
  max-width    : 440px;
  margin-inline: auto;
  font-size    : var(--font-size-xl);
  font-weight  : bold;
}

.p-pattern12 {
  margin-top: var(--section-gap);
}

.p-pattern13 {
  margin-top: var(--section-gap);
}

.c-table th>span {
  display    : block;
  line-height: 3;

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

.c-table th.double>span {
  line-height: normal;
}

.c-table th.double>span small {
  display: block;
}

.c-table>tbody>tr>td {
  text-align    : center;
  vertical-align: middle;
}

.c-tile {
  justify-content: center;
}

.c-heading02 {
  word-break: auto-phrase;
}

/* 3並べのとき */
/*.c-tile__item {
  width: 31.3%;
}*/

.c-tile__item {
  width: calc((100% - var(--column-gap, 1em) * (var(--column-count, 4) - 1)) / var(--column-count, 4));
}

.c-tile__item {
  @media (max-width: 768px) {
    width     : 100%;
    text-align: center;
  }
}

.p-pattern01__list a {
  line-height: 1.4;
}

.flow .c-number-list .l-image-section__heading {
  color        : var(--color-yellow-brown);
  font-size    : 3rem;
  border-bottom: solid 1px var(--color-yellow-brown);
}

.p-bg-part {
  padding-top: 1px;
}

.p-pattern11__list {
  font-weight: normal;
  max-width  : inherit;
}

.p-pattern11__list .c-list__item::before {
  display: none;
}

.p-pattern11__list li h4,
.p-pattern11__list li p {
  display      : flex;
  font-size    : 1.8rem;
  margin-bottom: 20px;
}

h4.question .label {
  display         : inline-block;
  margin-right    : 10px;
  text-align      : center;
  width           : 30px;
  height          : 30px;
  background-color: #705737;
  color           : #fff;
  /* padding      : 5px;*/
  box-sizing      : border-box;
  line-height     : 30px;
  border-radius   : 50%;
}

p.answer .label {
  display         : inline-block;
  margin-right    : 10px;
  text-align      : center;
  width           : 30px;
  height          : 30px;
  background-color: #d1d1d2;
  color           : #fff;
  box-sizing      : border-box;
  line-height     : 30px;
  border-radius   : 50%;
}

.p-pattern11__list li h4 .desc,
.p-pattern11__list li p .desc {
  flex: 1;
}

.p-pattern11__list .c-list__item {
  margin-bottom: 50px;
}

#pattern03 .l-image-section__main small {
  display     : block;
  margin-top  : 10px;
  text-indent : -1em;
  padding-left: 1em;
}

#pattern03 .l-image-section__main small a {
  display        : inline-block;
  color          : #cfb37a;
  text-decoration: underline;
}

.p-pattern11__list {
  text-indent : -2em;
  padding-left: 2em;
}

.p-pattern11__list li {
  width       : 100%;
  text-indent : 0;
  padding-left: 0;
}

.c-table th:first-child {
  width: 50%;
}

.c-table>tbody>tr>td {
  min-width: 21%;
}

.p-pattern11__list {
  width: 75%;
}
}

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

  .c-number-list {
    --number-size: 5rem;
  }


  .c-detect-scroll .simplebar-content-wrapper[data-scrollable*="x"][data-scroll-state*="left"] {
    height    : auto;
    overflow-y: scroll;
    overflow-s: hidden:
  }

  .c-table {
    font-size: 1.0rem;
  }

  .flow .c-number-list .l-image-section__heading {
    margin-bottom: 0px;
  }

  .c-number-list {
    --number-size: 6rem;
  }

  .flow .c-number-list .l-image-section__heading {
    font-size: 2rem;
  }

  ul.p-pattern11__list {
    width       : 90%;
    text-indent : 0em;
    padding-left: 0;
  }

  .p-pattern11__list {
    width       : 90%;
    text-indent : -2em;
    padding-left: 2em;
  }

  h4.question .label,
  p.answer .label {
    text-indent: 0;
  }

  .l-header {
    position: inherit;
  }

  .c-table>tbody>tr>td {
    min-width: 18%;
  }

  #pattern06 .c-table {
    --padding-y: 0.25em;
    --padding-x: 0.25em;
    box-sizing : border-box;
  }

  #pattern06 .c-table th {
    vertical-align: middle;
  }
}

/* 251127 */
.c-list--center {
  width        : fit-content;
  margin-inline: auto;
}

.c-list--bg {
  padding         : 1.5em;
  background-color: rgba(var(--color-bg-secondary-rgb), 55%);
}

.justify-content-center {
  justify-content: center;
}

.price_table th,
.price_table td {
  vertical-align: middle;
}

.p-pattern11__list {
  max-width: inherit !important;
}

/* 251128 */
.homecare .l-image-section:not(:last-of-type) {
  margin-bottom: 5em;
}

.homecare .l-image-section__heading {
  color        : var(--color-yellow-brown);
  font-size    : 3rem;
  border-bottom: solid 1px var(--color-yellow-brown);
}

.homecare ul {
  list-style-type: disc;
}

.homecare ul li {
  margin-left: 1em;
  line-height: 2.1;
}

.homecare ul li:not(:last-of-type) {
  margin-bottom: 1em;
}

@media (max-width: 768px) {
  .homecare .l-image-section:not(:last-of-type) {
    margin-bottom: 3em;
  }

  .homecare .l-image-section__heading {
    font-size: 2rem;
  }
}

.p-subject__column-list {
  display         : grid;
  padding         : 3em var(--container-padding);
  margin-top      : 80px;
  background-color: rgba(var(--color-bg-secondary-rgb), 55%);
}

@media (max-width: 525px) {
  .p-subject__column-list {
    padding   : 2em var(--container-padding);
    margin-top: 50px;
  }
}

.p-bold {
  font-weight: bold;
}

.p-big {
  font-size  : 22px;
  line-height: 1.6;
}

.p-center {
  text-align: center;
}

.p-flow {
  width        : fit-content;
  margin-inline: auto;
  font-size    : 1.1em;

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

.p-flow li:not(:last-child) {
  margin-bottom: 0.5em;
}

.p-right {
  margin-left: auto;
}

/* テキストリンク */
a.p-textlink:link {
  color          : #0000ff;
  text-decoration: underline;
}

a.p-textlink:visited {
  color          : #000080;
  text-decoration: underline;
}

a.p-textlink:hover {
  color          : #0051ff;
  text-decoration: underline;
}

a.p-textlink:active {
  color          : #0051ff;
  text-decoration: underline;
}

/* 背景付きボックス */
.p-subject__box {
  background-color: rgba(var(--color-primary-rgb), 60%);
  padding         : 2rem 1rem;
}

.p-subject__box .p-subject__overview {
  background-color: initial !important;
  margin-bottom   : 0;
}

.p-subject__label,
.p-subject__note {
  color       : #FFF;
  font-size   : 1.2em;
  padding-left: 2rem;
}

.p-subject__note {
  font-size: 1em;
}