/*
** .p-page-header
*/

.p-page-header {
  background: linear-gradient(180deg, #FFFFFF 75%, #D7F0FF 100%);
  border-bottom: 0.2rem solid var(--main);
  margin-bottom: calc(45 * var(--layout-scale));
}

.p-page-header__inner {
  display: grid;
  grid-template-columns: 100%;
  grid-auto-rows: max-content;
  grid-row-gap: calc(10 * var(--layout-scale));
  line-height: 1;
  margin-top: calc(45 * var(--layout-scale));
  margin-bottom: calc(45 * var(--layout-scale));
}

.p-page-header__business-cat {
  font-size: calc(18 / var(--standard-font-size) * 1em);
  font-weight: 600;
  color: var(--main);
}

.p-page-header__page-title {
  font-size: calc(35 / var(--standard-font-size) * 1em);
  font-weight: 600;
  color: var(--main);
}

.p-page-header__page-subtitle {
  font-size: calc(13 / var(--standard-font-size) * 1em);
}


/*
** .p-list
*/

.p-list-summary {
  grid-row-gap: calc(10 * var(--layout-scale));
  font-size: calc(16 / var(--standard-font-size) * 1em);
  font-weight: 600;
  color: var(--dark);
}

.p-list-explanation {
  grid-row-gap: calc(5 * var(--layout-scale));
  font-weight: 500;
}


/*
** .p-table
*/

/* .p-table-primary */

.p-table-primary {
  table-layout: fixed;
  border: 0.1rem solid var(--line);
}

.p-table-primary thead tr,
.p-table-primary tbody tr:not(:last-child) {
  border-bottom: 0.1rem solid var(--line);
}

.p-table-primary th,
.p-table-primary td {
  vertical-align: middle;
}

.p-table-primary th {
  font-weight: 500;
  text-align: center;
  padding: calc(8 * var(--layout-scale)) calc(5 * var(--layout-scale));
}

.p-table-primary thead th:not(first-child) {
  background-color: var(--table-header);
}

.p-table-primary thead th:first-child {
  background-color: #AFD7EB;
}

.p-table-primary tbody th {
  background-color: #C8E6F5;
}

.p-table-primary:not(.p-table-primary--harf, .p-table-primary--merge) thead th:first-child,
.p-table-primary:not(.p-table-primary--harf, .p-table-primary--merge) tbody th {
  width: calc(100 / var(--main-container-width) * 100%);
}

.p-table-primary--harf thead th:first-child,
.p-table-primary--harf tbody th {
  width: calc(175 / var(--main-container-width) * 100%);
}

.p-table-primary--merge thead th:first-child,
.p-table-primary--merge tbody th {
  width: calc(150 / var(--main-container-width) * 100%);
}

.p-table-primary td {
  background-color: var(--table-bg);
  padding: calc(8 * var(--layout-scale));
}

.p-table-primary th:not(:first-child:last-child),
.p-table-primary td:not(:first-child:last-child) {
  border-left: 0.1rem solid var(--line);
}

/* .p-table-quantity */

.p-table-quantity {
  border-top: 0.1rem solid var(--line);
  border-bottom: 0.1rem solid var(--line);
}

.p-table-quantity tr {
  background-color: var(--table-bg);
}

.p-table-quantity tr:not(:last-child) {
  border-bottom: 0.1rem solid var(--line);
}

.p-table-quantity th,
.p-table-quantity td {
  vertical-align: middle;
  padding: calc(8 * var(--layout-scale));
}

.p-table-quantity th {
  text-align: left;
}

.p-table-quantity td {
  width: calc(88 / var(--main-container-width) * 100%);
  text-align: center;
}


/*
** .p-flow
*/

.p-flow {
  display: grid;
  grid-template-columns: 100%;
  grid-row-gap: calc(35 * var(--layout-scale));
}

.p-flow--text {
  grid-auto-rows: minmax(calc(59 * var(--layout-scale)), max-content);
}

.p-flow--image {
  grid-auto-rows: max-content;
}

.p-flow--text .p-flow__process {
  text-align: center;
  align-content: center;
  line-height: 1.25;
  border-radius: calc(10 * var(--layout-scale));
  padding: calc(20 * var(--layout-scale)) calc(10 * var(--layout-scale));
}

.p-flow__process:not(:last-child) {
  position: relative;
}

.p-flow--text .p-flow__process:not(:last-child) {
  background-color: #C8E6F0;
}

.p-flow--text .p-flow__process:last-child {
  background-color: #9BDCF0;
}

.p-flow__process:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: calc(-25 * var(--layout-scale));
  left: 50%;
  transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  width: calc(59 * var(--layout-scale));
  height: calc(15 * var(--layout-scale));
  background-color: #4BCDE6;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.p-flow--text .p-flow__process-name {
  font-size: calc(15 / var(--standard-font-size) * 1em);
  color: #00465A;
}

.p-flow--text .p-flow__process:not(:last-child) .p-flow__process-name {
  font-weight: 500;
}

.p-flow--text .p-flow__process:last-child .p-flow__process-name {
  font-weight: 600;
}

.p-flow--text .p-flow__process-desc {
  font-size: calc(13 / var(--standard-font-size) * 1em);
  margin-top: calc(5 * var(--layout-scale));
}

.p-flow--image .p-flow__process-caption {
  font-weight: 600;
  color: var(--dark);
  line-height: 1.25;
  margin-top: calc(10 * var(--layout-scale));
}


/*
** .p-gallery
*/

.p-gallery {
  display: grid;
  grid-auto-rows: max-content;
  grid-gap: calc(20 * var(--layout-scale));
}

.p-gallery[class*="p-gallery--1"] {
  grid-template-columns: 100%;
}

.p-gallery[class*="p-gallery--2"] {
  grid-template-columns: repeat(2, 1fr);
}

.p-gallery__item-caption {
  font-weight: 600;
  color: var(--dark);
  line-height: 1.25;
  margin-top: calc(10 * var(--layout-scale));
}


/*
** .p-posts-archive
*/

.p-posts-archive {
  display: grid;
  grid-template-columns: 100%;
  grid-auto-rows: max-content;
  grid-row-gap: calc(20 * var(--layout-scale));
}

.p-posts-archive__item {
  border-bottom: 0.1rem dashed var(--line);
  padding-bottom: calc(20 * var(--layout-scale));
}

.p-posts-archive__item a {
  display: grid;
  grid-template-columns: 100%;
  grid-auto-rows: max-content;
  grid-row-gap: calc(5 * var(--layout-scale));
  line-height: 1.25;
}

.p-posts-archive__item-title {
  transition: var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .p-posts-archive__item a:hover .p-posts-archive__item-title {
    color: var(--link);
  }
}


/*
** .p-posts-pagination
*/

.p-posts-pagination {
  margin-top: calc(60 * var(--layout-scale));
}

.p-posts-pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: calc(10 * var(--layout-scale));
  justify-content: center;
}

.p-posts-pagination__item > * {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(30 * var(--layout-scale));
  height: calc(30 * var(--layout-scale));
  line-height: 1;
}

.p-posts-pagination__item--arrow > * {
  font-size: calc(14 / var(--standard-font-size) * 1em);
}

.p-posts-pagination__item--arrow > span {
  color: var(--line);
}

.p-posts-pagination__item--arrow > a {
  color: var(--main);
}

.p-posts-pagination__item--number > * {
  font-family: var(--oswald);
  font-size: calc(16 / var(--standard-font-size) * 1em);
  border: 0.1rem solid transparent;
}

.p-posts-pagination__item--number > span.current {
  color: #fff;
  background-color: var(--main);
  border-color: var(--main);
}

.p-posts-pagination__item--number > a {
  color: var(--line);
  background-color: #fff;
  border-color: var(--lightline);
}

@media (hover: hover) and (pointer: fine) {
  .p-posts-pagination__item--number > a:hover {
    color: #fff;
    background-color: var(--main);
    border-color: var(--main);
  }
}