@charset "UTF-8";
/* CSS Document */
body {
  margin: 0;
  font-weight: 500;
  font-size: 1rem;
  font-family: "Zen Maru Gothic", sans-serif;
  color: #4C4D4C;
  background-color: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}
img {
  width: 100%;
}
button:hover {
  opacity: 0.8;
  transform: rotate(-1deg);
}
.Doctor-Profile{
  background-color: #F6F1EA;
  padding-block: 180px 12%;
  position: relative;
}
.doctor_deco{
  background-image: url("../images/trouble_deco1.svg"),url("../images/deco7.svg"),url("../images/deco8.svg"),url("../images/trouble_deco4.svg"),url("../images/trouble_deco5.svg");
  background-repeat: no-repeat,no-repeat,no-repeat,no-repeat,no-repeat;
  background-size: 25%,30%,24%,22%,28%;
  background-position: 0 0,0 25%,100% 48%,0% 74%,100% 98%;
  width: 100%;
  height: 100%;
}
.Doctor-Profile-container {
  max-width: 1060px;
  width: 85%;
  margin: 0 auto;
  padding-bottom: 8%;
}
.section-title{
  text-align: center;
  max-width: 100%;
  margin-inline: auto;
}
.Doctor-Profile-title {
  font-size: clamp(1.25rem, 0.817rem + 1.73vw, 2.375rem);;
  line-height: 1;
  color: #fff;
  background-color: #4ABBC6;
  width: 100%;
  padding: 8px 0;
  border-radius: 5px;
  margin-inline: auto;
  margin-bottom: 30px;
}
.en_title{
  font-size: clamp(2.5rem, 2.139rem + 1.44vw, 3.438rem);
  line-height: 1;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.1em;
  -webkit-text-stroke: 6px #4ABBC6;
  paint-order: stroke fill;
  margin-bottom: 2px;
}
.DP-About-wrap {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(3, auto);
  grid-column-gap: 5%;
  grid-row-gap: 30px;
  align-items: center;
  background-color: rgba(255, 255, 255, 1);
  padding: 5% 6%;
  border-radius: 20px;
  margin-bottom: 5%;
}
.DP-name {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  margin: 0;
  font-size: clamp(1.438rem, 1.283rem + 0.66vw, 1.875rem);
  text-align: center;
  position: relative;
  padding: 0 5% 10px;
  width: fit-content;
  place-self: center;
}
.DP-name::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: #A98D66;
}
.DP-name::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 96%;
  height: 2px;
  border-radius: 1px;
  background-color: #A98D66;
}
.DP-About-wrap h3 span {
  font-size: clamp(0.875rem, 0.787rem + 0.38vw, 1.125rem);
}
.DP-history {
  position: relative;
  list-style: none;
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  font-size: clamp(1rem, 0.912rem + 0.38vw, 1.25rem);
  padding-left: 0;
}
.DP-history li {
  position: relative;
  padding-bottom: 10%;
  padding-left: 30px;
  line-height: 1.25;
}
.DP-history li::before, .DP-history::after {
  content: "";
  position: absolute;
  background-color: #A98D66;
}
.DP-history li::before {
  width: 20px;
  height: 20px;
  left: 0;
  top: 4px;
  border-radius: 50%;
}
.DP-history::after {
  width: 5px;
  height: calc(100% - 30px);
  left: 7.5px;
  top: 20px;
}
.DP-About {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
  display: grid;
  grid-template-columns: repeat(4, auto);
  grid-template-rows: repeat(12, auto);
  grid-column-gap: 5%;
  grid-row-gap: 20px;
}
.DP-About h3 {
  grid-column: 1 / 4;
  position: relative;
  height: fit-content;
  font-size: clamp(1.125rem, 1.015rem + 0.47vw, 1.438rem);
  padding-left: 30px;
  font-weight: 600;
}
.DP-About h3:first-of-type {
  grid-row: 1 / 2;
}
.DP-About h3:nth-of-type(2) {
  grid-row: 3 / 4;
  align-self: center;
}
.DP-About h3:nth-of-type(3) {
  grid-row: 5 / 6;
  align-self: center;
}
.DP-About h3:nth-of-type(4) {
  grid-row: 7 / 8;
  align-self: center;
}
.DP-About h3:nth-of-type(5) {
  grid-row: 9 / 10;
}
.DP-About h3:last-of-type {
  grid-row: 11 / 12;
}
.DP-About h3::before {
  content: "";
  position: absolute;
  background-color: #A98D66;
  width: 20px;
  height: 20px;
  left: 0;
  bottom: 6px;
  border-radius: 50%;
}
.DP-About p {
  grid-column: 1 / 5;
  margin: 0;
  font-size: clamp(1rem, 0.912rem + 0.38vw, 1.25rem);
  padding: 0 20px;
  line-height: 2;
  text-align: justify;
  max-width: 900px;
}
.DP-About p:first-of-type {
  grid-row: 2 / 3;
}
.DP-About .DP-About-item {
  grid-column: 1 / 5;
  grid-row: 4 / 5;
  display: flex;
  justify-content: flex-start;
}
.DP-About p:first-of-type {
  grid-row: 2 / 3;
}
.DP-About p:nth-of-type(3) {
  grid-row: 6 / 7;
}
.DP-About p:last-of-type {
  grid-row: 8 / 9;
}
.DP-About-item img {
  max-width: 190px;
  object-fit: contain;
  border: 10px double #A98D66;
  background-color: #fff;
  box-sizing: border-box;
  margin-left: 55px;
  width: 50%;
}
.DP-Certificate {
  grid-column: 1 / 5;
  grid-row: 10 / 11;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 0 20px;
}
.DP-Certificate img {
  width: calc((100% - 60px) / 4);
  object-fit: contain;
  border: 10px double #A98D66;
  background-color: #fff;
  box-sizing: border-box;
}
.DP-seminar {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}
.DP-seminar li {
  padding-bottom: 15px;
  width: calc((100% - 20px) / 2);
}
.DP-Partnership {
  grid-column: 1 / 5;
  grid-row: 12 / 13;
  display: grid;
  grid-template-columns: auto 25% 25%;
  grid-template-rows: repeat(4, auto);
  column-gap: 20px;
}
.DP-Partnership p:first-of-type {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.DP-Partnership p:nth-of-type(2) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.DP-Partnership p:last-of-type {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}
.DP-Partnership img {
  object-fit: contain;
  border: 10px double #A98D66;
  background-color: #fff;
  box-sizing: border-box;
  max-width: 200px;
}
.DP-Partnership img:first-of-type {
  grid-column: 2 / 3;
  grid-row: 1 / 5;
}
.DP-Partnership img:last-of-type {
  grid-column: 3 / 4;
  grid-row: 1 / 5;
}


/* POPUP */
.Popup-Content {
  visibility: hidden;
  position: fixed;
  background: #fff;
  border-radius: 20px;
  border: 3px solid #666666;
  padding: 5%;
  max-width: 900px;
  width: 70%;
  height: auto;
  z-index: 3;
  box-shadow: 5px 6px 10px 4px #ccc;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: ease 0.6s;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.Popup-Close-icon {
  background: #A98D66;
  margin: 0 0 0 auto;
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
}
.Popup-Close-icon span {
  position: absolute;
  top: 20%;
  left: 45%;
  width: 3px;
  height: 20px;
  background-color: #fff;
}
.Popup-Close-icon span:first-of-type {
  transform: rotate(45deg);
}
.Popup-Close-icon span:last-of-type {
  transform: rotate(-45deg);
}
.Popup-Close-icon:hover {
  opacity: 0.8;
  transform: rotate(-1deg);
}
.Popup-Content h3 {
  border-bottom: 10px double #A98D66;
  font-size: clamp(1.25rem, 1.184rem + 0.28vw, 1.438rem);
  width: fit-content;
  margin: 0 auto;
  margin-bottom: 20px;
  padding: 0 10px;
}
.Popup-Content.active {
  visibility: visible;
}
.Popup-Close, .Popup-Open {
  display: block;
  border-radius: 30px;
  padding: 10px 20px;
  margin: 0 auto;
  background: #A98D66;
  text-align: center;
  color: #fff;
  font-size: clamp(1rem, 0.956rem + 0.19vw, 1.125rem);
  position: relative;
  border: 0;
  margin-top: 5px;
}
.Popup-Open {
  padding-right: 40px;
}
.Popup-Close {
  margin-top: 30px;
}
.Popup-Open::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 6%;
  background: #ffffff;
  height: calc(tan(60deg) * 20px / 2);
  width: 10px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.Popup-Content.active {
  animation: popup 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes popup {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.0);
  }
  80%, 100% {
    opacity: 1;
  }
}
.Popup-Content.deactivate {
  animation: popup-close 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes popup-close {
  0% {
    transform: translate(-50%, -50%) scale(1.0);
    visibility: visible;
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
  }
  80%, 100% {
    visibility: hidden;
    opacity: 0;
  }
}
.Doctor-Profile .view_btn{
  max-width: 360px;
}
@media screen and (max-width: 768px) {
  .Doctor-Profile{
    padding-block: 120px 20%;
  }
  .Doctor-Profile-container{
    width: 90%;
  }
  .DP-About-wrap {
    grid-template-columns: 100%;
    grid-template-rows: repeat(4, auto);
    place-items: center;
    grid-column-gap: 0;
    grid-row-gap: 30px;
    padding: 5%;
  }
  .DP-name {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    padding: 0 5% 16px;
  }
  .DP-history {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }
  .DP-About {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(12, auto);
    grid-column-gap: 5%;
    grid-row-gap: 20px;
  }
  .DP-About h3::before {
    bottom: 3px; 
  }
  .DP-About .DP-About-item {
    grid-column: 1 / 4;
    flex-direction: column;
  }
  .DP-About-item img {
    max-width: 170px;
    width: 30%;
    margin-top: 1%;
  }
  .DP-About p {
    grid-column: 1 / 4;
    padding: 0 10px;
  }
  .DP-Certificate {
    grid-column: 1 / 4;
    column-gap: 10px;
    padding: 0 10px;
  }
  .DP-Certificate img {
    width: calc((100% - 30px) / 4);
  }
  .DP-seminar {
    width: 100%;
    padding: 0;
    display: block;
    column-gap: 0;
  }
  .DP-seminar li {
    width: 100%;
  }
  .DP-Partnership {
    grid-template-columns: auto 20% 20%;
    grid-column: 1 / 4;
    column-gap: 10px;
  }
  .DP-Partnership img {
    width: 100%;
  }
  .Popup-Content{
    width: 85%;
  }
  .Doctor-Profile .view_btn{
   margin-inline: auto;
  }
}
@media screen and (max-width:410px){
  .Profile-img {
    border-radius: 20px;
    border: 3px solid #A98D66;
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    max-width: 400px;
  }
.DP-About-wrap h3 span {
    font-size: clamp(1.4rem, 1.8vw, 1.8rem);
  white-space: nowrap;
  }
}