/* header
------------------------------------ */
#viContainer {
  padding: 0 2rem calc(clamp(12rem, 24.9vw, 35.8rem) / 1.3113553114 * 0.6);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
@media screen and (max-width: 768px) {
  #viContainer {
    padding: 0 1rem 2rem 1rem;
  }
}

#topvi {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 0;
}
#topvi .catch {
  position: absolute;
  left: 5%;
  top: calc(50% - clamp(15rem, 29.9vw, 434px) / 1.6439393939 / 2);
  width: clamp(18rem, 29.9vw, 434px);
  aspect-ratio: 434/264;
}
#topvi .cut01 {
  position: absolute;
  top: calc(clamp(10rem, 17vw, 24.5rem) / 0.9645669291 * -0.1);
  right: 0;
  width: clamp(10rem, 17vw, 24.5rem);
  aspect-ratio: 245/254;
}
#topvi .cut02 {
  position: absolute;
  bottom: calc(clamp(12rem, 24.9vw, 35.8rem) / 1.3113553114 * -0.4);
  left: 5%;
  width: clamp(12rem, 24.9vw, 35.8rem);
  aspect-ratio: 358/273;
}

/* #viTimetable
------------------------------------ */
#viTimetable {
  position: absolute;
  right: 0;
  border-radius: 100px 0 0 100px;
  background: #FFF;
  padding: 2.5vw clamp(3rem, 4.2vw, 6rem);
  margin-top: calc(clamp(12rem, 24.9vw, 35.8rem) / 1.3113553114 * -0.6);
}
#viTimetable .htype02 {
  margin-bottom: 0rem;
}
#viTimetable .timetable {
  margin-bottom: 0m;
  font-size: clamp(1.4rem, 1.3vw, 1.8rem);
}
#viTimetable .contact li + li {
  margin-top: 1rem;
}
@media screen and (max-width: 1024px) {
  #viTimetable {
    border-radius: 50px 0 0 50px;
    padding: 3rem 2rem;
  }
}
@media screen and (max-width: 768px) {
  #viTimetable {
    border: 2px solid #B1AC9B;
    border-right: 0;
    position: relative;
    margin-top: calc(clamp(12rem, 24.9vw, 35.8rem) / 1.3113553114 * 0.6);
    margin-right: -1rem;
    margin-left: auto;
    width: fit-content;
    padding: 2rem 2rem 3rem;
  }
}

/* #information
------------------------------------ */
#information {
  position: relative;
}
#information .cut {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  text-align: center;
}
#information .cut img {
  width: clamp(200px, 18.8vw, 27rem);
}
#information .infocontainer {
  max-width: 720px;
  width: 50vw;
  border-radius: 0 100px 100px 0;
  background: #59A4A6;
  margin-left: -2rem;
  padding: 2.5vw 5vw;
  position: relative;
}
#information .infocontainer:before {
  content: "";
  width: calc(clamp(0px, (100vw - 1200px) / 2, 9999px) + 1px);
  height: 100%;
  position: absolute;
  background: rgba(0, 0, 0, 0.4);
  background: #59A4A6;
  display: block;
  right: calc(100% - 1px);
  top: 0;
}
#information .infocontainer hgroup p, #information .infocontainer hgroup h2 {
  color: #FFF;
}
#information .infocontainer ul li {
  border-bottom: 1px dotted #FFF;
  padding-bottom: 3rem;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 3rem;
}
#information .infocontainer ul li p {
  color: #FFF;
}
#information .infocontainer ul li p a {
  text-decoration: underline;
}
#information .infocontainer ul li p.date {
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  min-width: 5.5em;
}
#information .infocontainer ul li .entry_body p + * {
  margin-top: 2em;
}
#information .infocontainer .backnumber {
  margin-top: 2rem;
}
#information .infocontainer .backnumber a {
  display: block;
  margin: 0 auto;
  width: fit-content;
  background: #FFF;
  border-radius: 50vh;
  color: #59A4A6;
  padding: 1rem 2.5rem;
  font-weight: 500;
}
@media screen and (max-width: 1024px) {
  #information .infocontainer {
    border-radius: 0 50px 50px 0;
    padding: 2.5vw 5vw;
  }
  #information .infocontainer ul li {
    display: block;
  }
  #information .infocontainer ul li p.date {
    margin-bottom: 1rem;
  }
}
@media screen and (max-width: 768px) {
  #information .cut {
    position: relative;
    width: 100%;
    right: auto;
    bottom: auto;
    margin-top: 1rem;
    text-align: right;
  }
  #information .infocontainer {
    max-width: 100%;
    width: 100%;
    padding: 3rem 3rem 3rem 4rem;
  }
}

/* #clinic
------------------------------------ */
#clinic {
  max-width: 1200px;
  margin: 10rem auto;
  padding-bottom: clamp(8rem, 15.6vw, 22.5rem);
  position: relative;
}
#clinic .photo {
  margin-bottom: 3rem;
}
#clinic .lead {
  font-size: clamp(2rem, 2.2vw, 3.2rem);
  font-weight: 500;
  margin-bottom: 5rem;
  text-align: center;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
}
#clinic p {
  text-align: center;
  line-height: 2;
}
#clinic p + p {
  margin-top: 2rem;
}
#clinic p strong.st01 {
  background: #FFD012;
  padding: 0 0.5em;
}
#clinic .cut01 {
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(10rem, 13.9vw, 20rem);
}
#clinic .cut02 {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0.8vw;
  width: 15.8vw;
  width: clamp(8rem, 13.2vw, 19rem);
}
@media screen and (max-width: 1024px) {
  #clinic .cut02 {
    bottom: 0;
  }
}
@media screen and (max-width: 768px) {
  #clinic {
    margin: 5rem auto 5rem;
    padding-bottom: 10rem;
  }
  #clinic hgroup p {
    text-align: center;
  }
  #clinic h2 {
    margin-bottom: 3rem;
  }
  #clinic p {
    padding: 0 1rem;
    text-align: left;
    line-height: 1.6;
  }
  #clinic .cut01 {
    width: 10rem;
  }
  #clinic .cut02 {
    width: 8rem;
  }
}

/* #treatment
------------------------------------ */
#feature {
  max-width: 1200px;
  margin: 10rem auto;
}
#feature .featuretopic {
  margin-top: 10rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8rem clamp(3rem, 3.5vw, 5rem);
}
#feature .featuretopic section {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 1.5rem;
}
#feature .featuretopic section h3 {
  font-weight: 500;
  font-size: clamp(2rem, 1.7vw, 2.4rem);
  text-align: center;
}
@media screen and (max-width: 768px) {
  #feature {
    margin: 5rem auto 10rem;
  }
  #feature .featuretopic {
    margin-top: 5rem;
    grid-template-columns: repeat(1, 1fr);
    gap: 4rem;
  }
  #feature .featuretopic section .photo {
    width: 80%;
    margin: 0 auto;
  }
}

/* #treatment
------------------------------------ */
#treatment {
  max-width: 1200px;
  margin: 0 auto;
}
#treatment .treatmentmenu {
  border-radius: 100px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
#treatment .treatmentmenu .category {
  background: #E3EFF1;
  padding: 5rem;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  gap: 2rem;
}
#treatment .treatmentmenu .category:nth-child(1), #treatment .treatmentmenu .category:nth-child(4), #treatment .treatmentmenu .category:nth-child(5), #treatment .treatmentmenu .category:nth-child(8) {
  background: #ECF6F8;
}
#treatment .treatmentmenu .category .icon {
  margin: 0 auto;
  width: clamp(3rem, 6.3vw, 9rem);
}
#treatment .treatmentmenu .category h3 {
  font-weight: 500;
  font-size: clamp(2rem, 1.7vw, 2.4rem);
  color: #224E65;
  text-align: center;
}
#treatment .treatmentmenu .category .link {
  margin-top: 1rem;
}
#treatment .treatmentmenu .category .link a {
  display: block;
  background: #224E65;
  border-radius: 50vh;
  color: #FFF;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: clamp(1.6rem, 1.3vw, 1.8rem);
  padding: 1rem 2rem;
}
#treatment .treatmentmenu .category .link a::after {
  content: "";
  width: clamp(1.8rem, 1.4vw, 2rem);
  aspect-ratio: 1;
  background: url(/lib/img/cmn/icon_menu_01.webp) no-repeat center/contain;
}
@media screen and (max-width: 768px) {
  #treatment .treatmentmenu {
    border-radius: 50px;
    grid-template-columns: 1fr;
  }
  #treatment .treatmentmenu .category {
    padding: 3rem;
  }
  #treatment .treatmentmenu .category:nth-child(2n-1) {
    background: #E3EFF1;
  }
  #treatment .treatmentmenu .category:nth-child(2n) {
    background: #ECF6F8;
  }
}

/* #orthodontics
------------------------------------ */
#orthodontics {
  max-width: 1200px;
  background: #FFD012;
  border-radius: 100px;
  padding: 2.5vw 5vw 5vw;
  position: relative;
  margin: 8.3vw auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.7vw;
}
#orthodontics .photo {
  padding-top: 2.5vw;
}
#orthodontics h2 {
  color: #224E65;
  text-align: center;
  font-size: clamp(2.4rem, 3.2vw, 4.6rem);
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  font-weight: 500;
  margin-bottom: 2rem;
}
#orthodontics p {
  text-align: center;
  font-size: clamp(1.6rem, 1.7vw, 2.4rem);
}
#orthodontics p.catch {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 2.4vw, 3.4rem);
  font-weight: 700;
  color: #E46062;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
}
@media screen and (max-width: 768px) {
  #orthodontics {
    padding: 3rem 2rem 3rem;
    border-radius: 50px;
    grid-template-columns: 1fr;
  }
  #orthodontics .photo {
    order: 2;
  }
  #orthodontics .text {
    order: 1;
  }
}

/* #instagram
------------------------------------ */
#instagram {
  max-width: 1200px;
  background: #224E65;
  border-radius: 100px;
  padding: 5vw 5vw 2.5vw;
  position: relative;
  margin: 21.1vw auto 0;
}
#instagram:before {
  content: "";
  width: clamp(12rem, 27.8vw, 40rem);
  aspect-ratio: 401/253;
  display: block;
  background: url(/lib/img/top/instagram_01.webp) no-repeat center/contain;
  position: absolute;
  left: 3rem;
  bottom: calc(100% - 2rem);
}
#instagram:after {
  content: "";
  width: clamp(14rem, 22.9vw, 33rem);
  aspect-ratio: 662/307;
  display: block;
  background: url(/lib/img/top/instagram_02.webp) no-repeat center/contain;
  position: absolute;
  right: 3rem;
  bottom: calc(100% - 2rem);
}
#instagram hgroup {
  text-align: center;
  color: #FFF;
  margin-bottom: 5vw;
}
#instagram hgroup .en {
  font-family: "Baloo 2", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  font-size: clamp(1.4rem, 1.1vw, 1.6rem);
}
#instagram hgroup h2 {
  font-weight: 500;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  font-size: clamp(2rem, 2.4vw, 3.4rem);
}
#instagram ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
#instagram .link a {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 2px 10px;
  background: #FFF;
  color: #224E65;
}
@media screen and (max-width: 768px) {
  #instagram {
    padding: 3rem 2rem 5rem;
    border-radius: 50px;
  }
  #instagram hgroup {
    margin-bottom: 3rem;
  }
  #instagram hgroup h2 {
    font-size: clamp(1.5rem, 4.3vw, 2.4rem);
  }
  #instagram ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  #instagram ul li:last-child {
    display: none;
  }
}