/* Certified salon archive and detail pages. */
body.tax-service_category,
body.single-service {
  color: #5a2525;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
}

body.tax-service_category .p-cat-list,
body.single-service .p-service-entry {
  color: #5a2525;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
}

/* Area archive */
body.tax-service_category .p-cat-list {
  margin-bottom: 56px;
  padding: 0 0 4px;
  background: transparent;
}

body.tax-service_category .p-cat-list__title {
  position: relative;
  margin: 0 0 42px;
  padding: 29px 0 22px;
  border: 0 !important;
  color: #4f3826;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .08em;
  text-align: center;
}

body.tax-service_category .p-cat-list__title::before {
  display: block;
  margin: 0 0 12px;
  color: #c99754;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .16em;
  content: "CERTIFIED SALON";
}

body.tax-service_category .p-cat-list__title::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 72px;
  height: 2px;
  margin: auto;
  background: #c99754;
  content: "";
}

body.tax-service_category .p-cat-list__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
}

body.tax-service_category .p-cat-list__list-item {
  width: auto;
  margin: 0;
}

body.tax-service_category .p-cat-list__list-item > a {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(201, 151, 84, .55);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 25px rgba(75, 54, 30, .07);
  color: #4f3826;
  text-decoration: none;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

body.tax-service_category .p-cat-list__list-item > a:hover,
body.tax-service_category .p-cat-list__list-item > a:focus-visible {
  border-color: #c99754;
  box-shadow: 0 13px 30px rgba(75, 54, 30, .13);
  transform: translateY(-3px);
}

body.tax-service_category .p-article07__img {
  display: flex !important;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  padding: 25px;
  background: #fcfbf4;
}

body.tax-service_category .p-article07__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}

body.tax-service_category .p-cat-list__list-item > a:hover .p-article07__img img,
body.tax-service_category .p-cat-list__list-item > a:focus-visible .p-article07__img img {
  transform: scale(1.025);
}

body.tax-service_category .p-article07__title {
  display: flex;
  flex: 1;
  align-items: center;
  box-sizing: border-box;
  min-height: 76px;
  margin: 0;
  padding: 17px 20px;
  border-top: 1px solid rgba(201, 151, 84, .38);
  background: #fff;
  color: #4f3826;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .03em;
  transition: color .25s ease;
}

body.tax-service_category .p-cat-list__list-item > a:hover .p-article07__title,
body.tax-service_category .p-cat-list__list-item > a:focus-visible .p-article07__title {
  color: #c07f31;
}

/* Certified salon detail */
body.single-service .p-service-entry .p-headline--lg {
  display: table;
  margin: 0 auto 24px;
  padding: 7px 19px;
  border: 1px solid rgba(201, 151, 84, .65) !important;
  border-radius: 999px;
  background: #fcfbf4;
  color: #b87930;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .08em;
}

body.single-service .p-service-entry__header {
  margin-bottom: 44px;
  border-top: 0;
}

body.single-service .p-service-entry__title {
  position: relative;
  margin: 0 0 34px;
  padding: 0 0 22px;
  color: #4f3826;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .08em;
  text-align: center;
}

body.single-service .p-service-entry__title::before {
  display: block;
  margin: 0 0 12px;
  color: #c99754;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .16em;
  content: "CERTIFIED SALON";
}

body.single-service .p-service-entry__title::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 72px;
  height: 2px;
  margin: auto;
  background: #c99754;
  content: "";
}

body.single-service .p-service-entry__img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 430px);
  min-height: 240px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(201, 151, 84, .5);
  border-radius: 18px;
  background: #fcfbf4;
  box-shadow: 0 9px 25px rgba(75, 54, 30, .07);
}

body.single-service .p-service-entry__img img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
}

body.single-service .p-entry__body {
  color: #5a2525;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.95;
}

body.single-service .p-entry__body p {
  margin-bottom: 20px;
}

body.single-service .p-entry__body .s_table {
  overflow: hidden;
  margin: 0 0 46px;
  border: 1px solid rgba(201, 151, 84, .55);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(75, 54, 30, .05);
}

body.single-service .p-entry__body table.cost {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  color: #5a2525;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
}

body.single-service .p-entry__body table.cost th,
body.single-service .p-entry__body table.cost td {
  padding: 15px 20px;
  border: 0;
  border-right: 1px solid rgba(201, 151, 84, .32);
  border-bottom: 1px solid rgba(201, 151, 84, .32);
  line-height: 1.75;
  vertical-align: middle;
}

body.single-service .p-entry__body table.cost tr:last-child th,
body.single-service .p-entry__body table.cost tr:last-child td {
  border-bottom: 0;
}

body.single-service .p-entry__body table.cost th {
  width: 28%;
  background: #f9f6e7;
  color: #4b361e;
  font-weight: 600;
  text-align: center;
}

body.single-service .p-entry__body table.cost td {
  width: 72%;
  border-right: 0;
  background: #fff;
  text-align: left;
}

body.single-service .p-entry__body h3.style3a {
  position: relative;
  margin: 54px 0 25px !important;
  padding: 4px 0 5px 22px !important;
  border: 0 !important;
  background: transparent !important;
  color: #4f3826 !important;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  letter-spacing: .05em !important;
}

body.single-service .p-entry__body h3.style3a::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: 3px;
  background: #c99754;
  content: "";
}

body.single-service .p-entry__body a {
  color: #b87930;
  text-decoration-color: rgba(184, 121, 48, .45);
  text-underline-offset: 3px;
}

body.single-service .p-entry__body a:hover,
body.single-service .p-entry__body a:focus-visible {
  color: #4b361e;
}

/* Regional search widget shared by both screens. */
body.tax-service_category .widget_tag_cloud,
body.single-service .widget_tag_cloud {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
}

body.tax-service_category .widget_tag_cloud .p-widget__title,
body.single-service .widget_tag_cloud .p-widget__title {
  border: 0;
  background: #4b361e;
  color: #fff;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  letter-spacing: .05em;
}

body.tax-service_category .widget_tag_cloud .tagcloud,
body.single-service .widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 17px;
  border: 1px solid rgba(201, 151, 84, .42);
  border-top: 0;
  background: #fcfbf4;
}

body.tax-service_category .widget_tag_cloud .tagcloud a,
body.single-service .widget_tag_cloud .tagcloud a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  box-sizing: border-box;
  padding: 6px 12px;
  border: 1px solid rgba(201, 151, 84, .58);
  border-radius: 999px;
  background: #fff;
  color: #5a2525;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 13px !important;
  line-height: 1.4;
  text-decoration: none;
  transition: background .25s ease, color .25s ease;
}

body.tax-service_category .widget_tag_cloud .tagcloud a:hover,
body.tax-service_category .widget_tag_cloud .tagcloud a:focus-visible,
body.single-service .widget_tag_cloud .tagcloud a:hover,
body.single-service .widget_tag_cloud .tagcloud a:focus-visible {
  background: #c99754;
  color: #fff;
}

@media (max-width: 991px) {
  body.tax-service_category .p-cat-list {
    background: transparent;
  }

  body.tax-service_category .p-cat-list__title {
    padding-top: 10px;
  }
}

@media (max-width: 767px) {
  body.tax-service_category .p-cat-list {
    margin-bottom: 42px;
  }

  body.tax-service_category .p-cat-list__title {
    margin-bottom: 30px;
    padding: 4px 0 18px;
    font-size: 25px;
  }

  body.tax-service_category .p-cat-list__title::before,
  body.single-service .p-service-entry__title::before {
    margin-bottom: 10px;
    font-size: 10px;
  }

  body.tax-service_category .p-cat-list__list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.tax-service_category .p-article07__img {
    padding: 20px;
  }

  body.tax-service_category .p-article07__title {
    min-height: 64px;
    padding: 14px 16px;
    font-size: 16px;
  }

  body.single-service .p-service-entry .p-headline--lg {
    margin-bottom: 20px;
    padding: 6px 15px;
    font-size: 12px;
  }

  body.single-service .p-service-entry__header {
    margin-bottom: 34px;
  }

  body.single-service .p-service-entry__title {
    margin-bottom: 28px;
    padding-bottom: 18px;
    font-size: 25px;
  }

  body.single-service .p-service-entry__img {
    min-height: 190px;
    padding: 20px;
    border-radius: 12px;
  }

  body.single-service .p-entry__body {
    font-size: 14px;
    line-height: 1.9;
  }

  body.single-service .p-entry__body .s_table {
    margin-bottom: 38px;
    border-radius: 10px;
  }

  body.single-service .p-entry__body table.cost,
  body.single-service .p-entry__body table.cost tbody,
  body.single-service .p-entry__body table.cost tr,
  body.single-service .p-entry__body table.cost th,
  body.single-service .p-entry__body table.cost td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  body.single-service .p-entry__body table.cost th,
  body.single-service .p-entry__body table.cost td {
    padding: 12px 15px;
    border-right: 0;
    text-align: left;
  }

  body.single-service .p-entry__body table.cost td {
    border-bottom: 1px solid rgba(201, 151, 84, .32);
  }

  body.single-service .p-entry__body table.cost tr:last-child td {
    border-bottom: 0;
  }

  body.single-service .p-entry__body h3.style3a {
    margin-top: 42px !important;
    padding-left: 17px !important;
    font-size: 18px !important;
  }

  body.single-service .p-entry__body h3.style3a::before {
    width: 2px;
  }
}
