/* #categoryContainer
------------------------------------ */
#categoryContainer {
  margin: 0 clamp(9rem, 50vw - 512px, 9999rem) 0 clamp(2rem, 50vw - 512px, 9999rem);
  background: #FFF;
  padding: 7rem 4rem 7rem 0;
  max-width: 1024px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 1.7vw, 2.5rem);
}
@media screen and (max-width: 767px) {
  #categoryContainer {
    margin: 0 2rem 0 0;
    padding: 4rem 2rem;
  }
}
#categoryContainer .category {
  background: #E6F0F5;
  border-radius: 10px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  gap: 1.5rem;
  padding-bottom: 2rem;
}
#categoryContainer .category h2 {
  color: #2370A8;
  line-height: 1;
  font-size: clamp(1.8rem, 1.4vw, 2rem);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  position: relative;
  margin: 1rem 1rem 0;
  font-weight: 500;
}
#categoryContainer .category h2:before {
  content: "";
  width: clamp(1.6rem, 1.3vw, 1.8rem);
  aspect-ratio: 1/1.4;
  mask: url("/lib/img/cmn/icon_maru_02.svg") no-repeat center/contain;
  background: #2370A8;
  display: block;
}
#categoryContainer .category p {
  margin: 0 1rem;
  font-size: clamp(1.5rem, 1.1vw, 1.6rem);
}
#categoryContainer .category ul {
  margin: 0 1rem;
}
#categoryContainer .category ul li + li {
  margin-top: 1rem;
}
#categoryContainer .category ul li a {
  display: block;
  background: #2370A8;
  border-radius: 50vh;
  padding: 1rem 2rem;
  color: #FFF;
  font-weight: 500;
  position: relative;
  font-size: clamp(1.5rem, 1.1vw, 1.6rem);
}
#categoryContainer .category ul li a:before {
  content: "";
  width: clamp(1.2rem, 1vw, 1.4rem);
  aspect-ratio: 1/1;
  mask: url("/lib/img/cmn/icon_ya_01.svg") no-repeat top/contain;
  background: #FFF;
  display: block;
  position: absolute;
  right: 1.5rem;
  top: calc(50% - 0.6rem);
}
#categoryContainer .trouble {
  grid-column: 1/4;
  margin-top: 5rem;
}
#categoryContainer .trouble a {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 2.8vw, 4rem);
  background: #BC116D;
  width: fit-content;
  margin: 0 auto;
  padding: 2rem 4rem;
  border-radius: 50vh;
}
#categoryContainer .trouble a:before {
  content: "";
  width: 99px;
  aspect-ratio: 99/55;
  background: url("/lib/img/treatment/icon_trouble_01.webp") no-repeat top/contain;
  display: block;
}
#categoryContainer .trouble a:after {
  content: "";
  width: 105px;
  aspect-ratio: 105/51;
  background: url("/lib/img/treatment/icon_trouble_02.webp") no-repeat top/contain;
  display: block;
}
#categoryContainer .trouble a span {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  gap: 2rem;
  font-size: clamp(2rem, 1.7vw, 2.4rem);
  color: #FFF;
}
#categoryContainer .trouble a span:after {
  content: "";
  width: clamp(1.8rem, 1.3vw, 1.8rem);
  aspect-ratio: 1/1;
  mask: url("/lib/img/cmn/icon_ya_01.svg") no-repeat top/contain;
  background: #FFF;
  display: block;
}
@media screen and (max-width: 1024px) {
  #categoryContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 1.7vw, 2.5rem);
  }
  #categoryContainer .trouble {
    grid-column: 1/3;
  }
}
@media screen and (max-width: 767px) {
  #categoryContainer {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: clamp(2rem, 1.7vw, 2.5rem);
  }
  #categoryContainer .trouble {
    grid-column: 1/2;
    margin-top: 3rem;
  }
  #categoryContainer .trouble a {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    padding: 2rem 2rem 1rem;
    border-radius: 10px;
    gap: 0;
  }
  #categoryContainer .trouble a span {
    order: 1;
    grid-column: 1/3;
  }
  #categoryContainer .trouble a:before {
    width: auto;
    height: 35px;
    display: block;
    margin: 1rem auto 0;
    order: 2;
  }
  #categoryContainer .trouble a:after {
    width: auto;
    height: 35px;
    margin: 1rem auto 0;
    order: 3;
  }
  #categoryContainer .trouble a span {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    gap: 2rem;
    font-size: clamp(2rem, 1.7vw, 2.4rem);
    color: #FFF;
  }
  #categoryContainer .trouble a span:after {
    content: "";
    width: clamp(1.8rem, 1.3vw, 1.8rem);
    aspect-ratio: 1/1;
    mask: url("/lib/img/cmn/icon_ya_01.svg") no-repeat top/contain;
    background: #FFF;
    display: block;
  }
}

/* #aboutpainclinic
------------------------------------ */
#contents {
  /* NerveBlockTherapy */
  /* NerveBlockTherapy */
  /*homevisit */
}
#contents .painTreatmenCategory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.1vw, 3rem);
  margin: 3rem 0 0;
}
#contents .painTreatmenCategory section {
  background: #E6F0F5;
  padding: 0;
  border-radius: 10px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 1.5rem;
}
#contents .painTreatmenCategory section .htype04 {
  margin-bottom: 0;
  padding: 2rem 2rem 0;
}
#contents .painTreatmenCategory section .disc {
  padding: 0 2rem;
  color: #2370A8;
}
#contents .painTreatmenCategory section .link a {
  background: #2370A8;
  border-radius: 0 0 10px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  color: #FFF;
  padding: 1rem;
  position: relative;
}
#contents .painTreatmenCategory section .link a:hover {
  background: #4A88B5;
}
#contents .painTreatmenCategory section .link a:after {
  content: "";
  width: 8px;
  aspect-ratio: 1;
  border-top: 2px solid #FFF;
  border-right: 2px solid #FFF;
  transform: rotate(45deg);
}
@media screen and (max-width: 767px) {
  #contents .painTreatmenCategory {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  #contents .painTreatmenCategory .link a {
    font-size: 1.4rem;
  }
}
#contents section.box02.reason {
  position: relative;
}
#contents section.box02.reason:before {
  content: "";
  width: 50%;
  aspect-ratio: 570/379;
  right: 0;
  position: absolute;
  top: 0;
  border-radius: 15px;
  background: url(/lib/img/treatment/aboutpanclinic/bg_reason.webp) no-repeat top right/contain;
  z-index: 1;
}
#contents section.box02.reason > * {
  position: relative;
  z-index: 2;
}
#contents section.box02.reason > p {
  width: 55%;
}
#contents section.box02.reason .box_category_01 section .title {
  font-size: clamp(1.6rem, 1.3vw, 1.8rem);
}
#contents section.box02.reason .box_category_01 section .title span {
  font-family: "Heebo", sans-serif;
  font-size: clamp(2rem, 1.9vw, 2.8rem);
  font-weight: 600;
  display: inline-block;
  margin-right: 5px;
}
@media screen and (max-width: 767px) {
  #contents section.box02.reason {
    padding-top: calc(66.4912280702% - 6rem);
  }
  #contents section.box02.reason::before {
    width: 90%;
  }
  #contents section.box02.reason > p {
    width: 100%;
  }
}
#contents .innerlink {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
#contents .innerlink li a {
  display: block;
  padding: 1rem 3rem 1rem 2rem;
  border: 1px solid #D9D9D9;
  background: #E6F0F5;
  border-radius: 5px;
  color: #2370A8;
  position: relative;
  line-height: 1.4;
}
#contents .innerlink li a:after {
  content: "";
  width: 8px;
  aspect-ratio: 1;
  border-right: 2px solid;
  border-bottom: 2px solid;
  position: absolute;
  right: 1rem;
  top: calc(50% - 5px);
  transform: rotate(45deg);
}
@media screen and (max-width: 767px) {
  #contents .innerlink {
    gap: 1rem;
  }
  #contents .innerlink li a {
    padding: 0.5rem 3rem 0.5rem 1rem;
    font-size: 1.5rem;
  }
}
#contents .listbox {
  margin: 3rem 0 3rem;
  border-radius: 15px;
  box-shadow: 0 0 20px 0px rgba(34, 34, 34, 0.1);
  display: grid;
  grid-template-columns: calc(3rem + clamp(1.6rem, 1.3vw, 1.8rem)) 1fr;
}
#contents .listbox hgroup {
  padding: 1rem 1.5rem;
  background: #2370A8;
  border-radius: 15px 0 0 15px;
  color: #FFF;
  display: grid;
  place-content: center;
  place-items: center;
  line-height: 1.4;
}
#contents .listbox .inner {
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
}
#contents .listbox ul.clm2 {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 0rem 4rem;
}
#contents .listbox ul li {
  color: #2370A8;
  padding-left: 0.75em;
  text-indent: -0.75em;
  line-height: 1.4;
}
#contents .listbox ul li + li {
  margin-top: 1rem;
}
#contents .listbox ul li:before {
  content: "- ";
  color: #2370A8;
}
@media screen and (max-width: 767px) {
  #contents .listbox {
    grid-template-columns: 1fr;
  }
  #contents .listbox hgroup {
    border-radius: 10px 10px 0 0;
  }
  #contents .listbox .inner {
    padding: 1rem 2rem;
  }
  #contents .listbox ul.clm2 {
    grid-template-columns: 1fr;
  }
}
#contents section.box02.nerveBlock .box_category_01 p {
  color: #0C3756;
}
#contents section.box02.nerveBlock .box_category_01 .effect {
  padding: 0 2rem 2rem;
  color: #0C3756;
}
#contents section.box02.nerveBlock .box_category_01 .effect dt {
  width: fit-content;
  color: #0C3756;
  background: #FFF;
  padding: 4px 2rem 2px;
  border-radius: 50vh;
  margin-bottom: 1rem;
}
#contents .nerveFlow {
  display: grid;
  grid-template-columns: 4rem 5rem max-content 1fr;
  gap: 0;
  position: relative;
}
#contents .nerveFlow::before {
  content: "";
  width: 2px;
  height: calc(100% - 4rem);
  background: #2370A8;
  position: absolute;
  display: block;
  left: calc(1rem - 1px);
  top: 0;
}
#contents .nerveFlow .step {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: span 4;
  padding: 0 0 2rem 0;
  margin-bottom: 2rem;
  position: relative;
}
#contents .nerveFlow .step:before {
  content: "";
  width: 2rem;
  aspect-ratio: 1/0.8660254038;
  clip-path: polygon(50% 100%, 100% 0, 0 0);
  background: #2370A8;
  align-self: center;
}
#contents .nerveFlow .step:after {
  content: "";
  border-bottom: 1px dotted #2370A8;
  width: calc(100% - 4rem);
  height: 2px;
  position: absolute;
  right: 0;
  bottom: 0;
}
#contents .nerveFlow .num {
  background: #2370A8;
  color: #FFF;
  border-radius: 15px 0 0 15px;
  font-family: "Heebo", sans-serif;
  font-size: clamp(1.8rem, 1.7vw, 2.4rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
#contents .nerveFlow .title {
  background: #C9E1EE;
  border-radius: 0 15px 15px 0;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  color: #2370A8;
  font-weight: 500;
}
#contents .nerveFlow .disc {
  padding: 1rem 0 1rem clamp(3rem, 3.5vw, 5rem);
}
@media screen and (max-width: 767px) {
  #contents .nerveFlow {
    grid-template-columns: 4rem 4rem 1fr;
  }
  #contents .nerveFlow .step {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: span 3;
    padding: 0 0 2rem 0;
    margin-bottom: 2rem;
    position: relative;
  }
  #contents .nerveFlow .title {
    padding: 1rem;
  }
  #contents .nerveFlow .disc {
    grid-column: 2/4;
    padding: 1rem 0;
  }
}
#contents #forPartners {
  margin: 0 clamp(9rem, 50vw - 512px, 9999rem) 6rem clamp(2rem, 50vw - 512px, 9999rem);
  background: #FCFAF5;
  border: 8px solid #FFF;
  padding: 4rem 4rem;
  max-width: 1024px;
  border-radius: 10px;
}
@media screen and (max-width: 767px) {
  #contents #forPartners {
    margin: 0 2rem 3rem 2rem;
    padding: 2rem 1rem;
  }
}
#contents #forPartners hgroup {
  color: #2370A8;
  text-align: center;
  width: fit-content;
  margin: 0 auto 4rem;
}
#contents #forPartners hgroup h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: clamp(2.2rem, 2.4vw, 3.4rem);
  font-weight: 500;
}
#contents #forPartners hgroup h2:before {
  content: "";
  width: clamp(2.8rem, 3.3vw, 4.8rem);
  aspect-ratio: 48/44;
  display: block;
  background: url(/lib/img/cmn/icon_dialog.webp) no-repeat center/contain;
}
#contents #forPartners hgroup p {
  padding: 1.5rem 1rem;
  border-top: 1px dashed #2370A8;
  font-size: clamp(1.8rem, 1.5vw, 2.2rem);
}
#contents #forPartners .link {
  width: fit-content;
  margin: 3rem auto 0;
}
#contents #forPartners .link a {
  display: block;
  background: #BC116D;
  color: #FFF;
  border-radius: 50vh;
  padding: 1rem 4rem;
}
#contents #forPartners .link a dt {
  font-size: clamp(1.6rem, 1.5vw, 2.2rem);
  font-size: 500;
  margin-bottom: 5px;
}
#contents #forPartners .link a dd {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Heebo", sans-serif;
  font-weight: 500;
  font-size: clamp(3rem, 3.1vw, 4.4rem);
  line-height: 1;
  margin-bottom: 0rem;
  gap: 0.5rem;
}
#contents #forPartners .link a dd:before {
  content: "";
  width: clamp(2.4rem, 2.1vw, 3rem);
  aspect-ratio: 1/1;
  mask: url("/lib/img/cmn/icon_call.svg") no-repeat top/contain;
  background: #FFF;
  display: inline-block;
}
@media screen and (max-width: 767px) {
  #contents #forPartners hgroup {
    margin: 0 auto 2rem;
  }
  #contents #forPartners hgroup h2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    font-size: clamp(2rem, 2.4vw, 3.4rem);
    font-weight: 500;
  }
  #contents #forPartners hgroup h2:before {
    margin: 0 auto;
    content: "";
    width: 3rem;
  }
  #contents #forPartners hgroup p {
    line-height: 1.4;
  }
  #contents #forPartners .link {
    margin: 3rem auto;
  }
  #contents #forPartners .link a {
    border-radius: 15px;
    padding: 1rem 2rem;
  }
  #contents #forPartners .link a dt {
    margin-bottom: 10px;
  }
  #contents #forPartners .link a dd {
    font-size: clamp(2.4rem, 3.1vw, 4.4rem);
  }
  #contents #forPartners .link a dd:before {
    width: clamp(2rem, 2.1vw, 3rem);
  }
}

/* #aboutpainclinic
------------------------------------ */