@charset "UTF-8";

* {
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  color: var(--color-font-main);
  background-color: var(--color-body);
  font-family: a-otf-ud-reimin-pr6n, sans-serif;
  font-style: normal;
  font-weight: 400;
}

main {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition-duration: 0.3s;
}

a img,
a::before,
a::after,
a p,
a div,
a span,
a button {
  transition-duration: 0.3s;
}

a:hover img {
  opacity: 0.8;
}

p,
a,
li,
button,
dt,
dd,
th,
td,
address,
small {
  letter-spacing: 0.05em;
}

:root {
  --color-main: #30669A;
  --color-sub: #6C9CC9;
  --color-body: #DCE9F5;
  --color-font-main: #575757;
  --color-font-sub: #898989;
}

/*-----------------------------------------------------------------------------------------
アニメーション
-----------------------------------------------------------------------------------------*/
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes iconArrow {
  0% {
    transform: translate(0);
    opacity: 1
  }

  40% {
    opacity: 0
  }

  49.9% {
    transform: translate(50%);
    opacity: 0
  }

  50% {
    transform: translate(-50%);
    opacity: 0
  }

  to {
    transform: translate(0);
    opacity: 1
  }
}


/*-----------------------------------------------------------------------------------------
レイアウト
-----------------------------------------------------------------------------------------*/

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.container-m {
  max-width: 1100px;
  margin: 0 auto;
}

.mb-l {
  margin-bottom: 150px;
}

.mb-m {
  margin-bottom: 100px;
}

.mb-s {
  margin-bottom: 50px;
}

@media (max-width:1023px) {
  .mb-l {
    margin-bottom: 50px;
  }

  .mb-m {
    margin-bottom: 50px;
  }

  .mb-s {
    margin-bottom: 25px;
  }
}

.txt-box {
  text-align: justify;
  word-break: break-all;
  line-height: 2;
}

.flex-sb {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 2em;
}

/*-----------------------------------------------------------------------------------------
パーツ
-----------------------------------------------------------------------------------------*/
/* ボタン */
.btn {
  display: block;
  width: fit-content;
  color: var(--color-main);
  box-sizing: border-box;
  text-transform: capitalize;
  position: relative;
  padding-right: 4em;
  margin: 0 0 0 auto;
  font-family: "Montserrat", sans-serif;
}

.btn::before {
  position: absolute;
  display: block;
  width: 3em;
  height: 3em;
  content: "";
  border-radius: 50%;
  border: 1px solid var(--color-main);
  right: 0;
  top: calc(50% - 1.5em);
}

.btn::after {
  position: absolute;
  display: block;
  width: 1em;
  height: 1em;
  content: "";
  background-color: var(--color-main);
  mask-image: url(../img/arrow-r.svg);
  mask-position: center center;
  mask-size: contain;
  mask-repeat: no-repeat;
  right: 1em;
  top: calc(50% - .4em);
}

.btn:hover {
  color: var(--color-font-sub);
}

.btn:hover::after {
  animation-name: iconArrow;
  animation-duration: .5s;
  animation-timing-function: cubic-bezier(.65, .01, .3, .97)
}

/* 略称 */
.abbr {
  background-color: #EAEAEA;
  color: var(--color-font-sub);
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 400;
  font-size: 13px;
  border-radius: 20px;
  padding: .2em 1em;
  margin-right: 0.5em;
  border: 1px solid #eaeaea;
  box-sizing: border-box;
}

/*-----------------------------------------------------------------------------------------
header
-----------------------------------------------------------------------------------------*/
header {
  position: sticky;
  background-color: #fff;
  z-index: 999;
  top: 0;
  box-shadow: 0 2px 10px 0 rgba(87, 87, 87, .16);
}

.header-wrapper {
  padding: 0.5em 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  row-gap: .5em;
}

h1 {
  width: 63%;
  max-width: 317px;
}

nav.global ul {
  display: flex;
  justify-content: space-between;
  gap: 2em;
}

nav.global li a {
  display: block;
  width: 100%;
}

nav.global li a:hover {
  color: var(--color-sub);
}

nav.global li a:hover .abbr {
  color: var(--color-sub);
  background-color: #fff;
  border-color: var(--color-sub);
}

nav.global li a::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: var(--color-main);
  mask-image: url(../img/arrow.svg);
  mask-position: center center;
  mask-size: contain;
  mask-repeat: no-repeat;
  vertical-align: middle;
  margin-left: 0.5em;
}

@media (max-width:1023px) {

  h1 {
    margin: 0 auto;
  }

  nav.global {
    display: none;
  }

  nav.global .abbr {
    display: none;
  }

  nav.global li a {
    font-size: 12px;
  }

}


/*-----------------------------------------------------------------------------------------
main
-----------------------------------------------------------------------------------------*/

/*-------------------------------------
bgi-circle
---------------------------------------*/

.bgi-circle::after {
  content: "";
  width: 100%;
  height: 100vh;
  position: fixed;
  bottom: 0;
  background-image: url(../img/bgi.png);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  z-index: -1;
}

@media (max-width:1023px) {

  .bgi-circle::after {
    background-image: url(../img/bgi-sp.png);
  }

}

/*-------------------------------------
main-img
---------------------------------------*/
.main-img {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.main-img .h2-wrapper {
  width: 30%;
  order: 2;
  display: flex;
  justify-content: flex-end;
}

.main-img .h2-wrapper .txt-box {
  writing-mode: vertical-rl;
  font-family: "noto-sans-cjk-jp", sans-serif;
  font-weight: 400;
  font-size: 20px;
  margin-left: 2em;
}

.main-img .swiper-box {
  width: 50%;
  order: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: .5em;
  position: relative;
  z-index: 1;
}

.main-img .swiper-box::after {
  content: "";
  position: absolute;
  display: block;
  width: 102%;
  aspect-ratio: 928/330;
  background-image: url(../img/gradation.png);
  background-size: cover;
  background-repeat: no-repeat;
  bottom: -100px;
  left: -1%;
  z-index: 2;
}

.main-img .swiper {
  height: calc(100vh - 74px);
}

.main-img .swiper-slide {
  height: auto;
  /* または固定値 height: 200px; */
  width: 100%;
  /* 縦方向の場合、widthは100% */
}

.main-img .swiper-wrapper {
  transition-timing-function: linear;
}

.main-img .swiper-sp {
  display: none;
}

.main-img .sp-block {
  display: none;
}


@media (max-width:1023px) {

  .main-img.container {
    width: 95%;
    margin: 0 5% 50px 0;
  }

  .main-img .h2-wrapper .txt-box {
    margin-left: .5em;
    font-size: 18px;
  }

  .main-img .h2-wrapper {
    width: 40%;
    order: 2;
  }

  .main-img .swiper-left,
  .main-img .swiper-right {
    display: none;
  }

  .main-img .swiper-sp {
    display: block;
  }

  .main-img .swiper-box {
    width: 55%;
    display: block;
  }

  .main-img .swiper-box::after {
    aspect-ratio: 291/330;
    background-image: url(../img/gradation-sp.png);
    bottom: -90px;
  }

  .main-img .swiper {
    height: calc(100vh - 55px);
  }

  .main-img .sp-none {
    display: none;
  }

  .main-img .sp-block {
    display: block;
  }

}

/*-------------------------------------
institutions
---------------------------------------*/
#institutions .h2-wrapper {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

#institutions h2 {
  max-width: 600px;
  margin-bottom: 1em;
}

#institutions .txt-box.news {
  color: var(--color-font-sub);
}

#institutions ul {
  width: 100%;
}

#institutions li .flex-sb {
  align-items: center;
  position: relative;
  flex-wrap: wrap-reverse;
}

#institutions li .flex-box.txt {
  /* width: fit-content; */
  width: 52%;
  background-color: #fff;
  padding: 3em;
  box-sizing: border-box;
  position: absolute;
  z-index: 2;
}

#institutions li .abbr {
  display: block;
  width: fit-content;
  margin-bottom: .5em;
  padding: .3em 1em;
}

#institutions li h3 {
  color: var(--color-main);
  font-size: 30px;
  margin-bottom: 1em;
}

#institutions li h3::after {
  content: "";
  display: block;
  font-family: "Montserrat", sans-serif;
  color: var(--color-sub);
  font-size: 13px;
  text-transform: capitalize;
}

#institutions li .flex-box .txt-box {
  margin-bottom: 2em;
}

#institutions li .flex-box.img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 51%;
}

#institutions li .flex-box.img div:first-child {
  grid-column: 1 / 3;
}


#institutions li#matsudo .flex-sb {
  justify-content: flex-end;
}

#institutions li#matsudo .flex-box.txt {
  border-left: 2px solid var(--color-main);
  left: 0;
}

#institutions li#matsudo h3::after {
  content: "kitahara college of dental hygiene";
}

#institutions li#chiba .flex-box.txt {
  border-right: 2px solid var(--color-main);
  right: 0;
}

#institutions li#chiba h3::after {
  content: "kitahara chiba college of dental hygiene";
}

@media (max-width:1023px) {

  #institutions h2 {
    margin: 0 auto 1em;
  }

  #institutions li.mb-m {
    margin-bottom: 0;
  }

  #institutions .news {
    text-align: center;
  }

  #institutions ul .txt-box .sp-none {
    display: none;
  }

  #institutions li .flex-box.txt {
    position: static;
    width: 95%;
    padding: 2em;
  }

  #institutions li .flex-box.img {
    width: 95%;
  }

  #institutions li#matsudo .flex-box.img {
    margin: 0 auto 0 0;
    transform: translateY(40px);
    z-index: 1;
  }

  #institutions li#chiba .flex-box.img {
    margin: 0 0 0 auto;
    transform: translateY(40px);
    z-index: 1;
  }
}


/*-------------------------------------
clinic
---------------------------------------*/
#clinic {
  padding: 100px 0;
  position: relative;
}

#clinic::after {
  position: absolute;
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: -1;
  top: 0;
  left: 0;
}

#clinic .container {
  background-color: #fff;
  box-shadow: 0 0 10px 0 rgba(87, 87, 87, .16);
  padding: 100px 100px;
  box-sizing: border-box;
}

#clinic h2::before {
  content: "";
  display: block;
  height: 50px;
  aspect-ratio: 363/52;
  background-image: url(../img/h2_02.svg);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin-bottom: 0.3em;
}

#clinic h2 {
  width: fit-content;
  margin: 0 auto;
  color: var(--color-main);
  text-align: center;
  font-size: 30px;
  margin-bottom: 50px;
}

#clinic h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 6px;
  margin: 1em auto 0;
  background-color: var(--color-main);
}

#clinic h3 {
  width: 100%;
  max-width: 530px;
  margin-bottom: 1em;
}

#clinic .profile {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1em;
  column-gap: .5em;
  flex-wrap: wrap;
}

#clinic .profile .abbr {
  background-color: var(--color-main);
  color: #fff;
  border-color: var(--color-main);
}

#clinic .profile .name {
  font-size: 20px;
  color: var(--color-main);
}

#clinic .profile .history {
  font-size: 13px;
}

#clinic .flex-box.img {
  width: 270px;
  order: 1;
}

#clinic .flex-box.txt {
  width: calc(100% - 250px - 3em);
  order: 2;
}

#clinic .message {
  font-size: 14px;
}

@media (max-width:1023px) {
  #clinic {
    padding: 0;
  }

  #clinic .container {
    width: 100%;
    padding: 50px 5%;
  }

  #clinic h2 {
    width: 100%;
    text-align: center;
    /* font-size: 20px; */
  }

  #clinic h2::before {
    width: 100%;
    max-height: 30px;
  }

  #clinic .flex-box.txt, #clinic h3 {
    width: 100%;
  }

  #clinic .flex-box.img {
    margin: 0 auto;
  }

}

/*-----------------------------------------------------------------------------------------
footer
-----------------------------------------------------------------------------------------*/
footer {
  background-color: #333;
  color: var(--color-font-sub);
  padding: 100px 0;
}

footer .flex-sb {
  align-items: end;
  flex-wrap: wrap-reverse;
}

footer h2 {
  font-size: 18px;
}

footer h2 span {
  font-size: 30px;
  margin-left: 0.5em;
}

nav.local ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2em 1em;
}

nav.local ul li {
  padding-left: 1em;
  box-sizing: border-box;
  border-left: 1px solid var(--color-font-sub);
  width: calc((100% - 2em) / 3);
}

footer h3 {
  margin-bottom: 1em;
}

footer h3 a {
  font-size: 19px;
}

footer h3 a:hover, footer address a:hover {
  color: var(--color-font-main);
}

footer address, footer address a {
  font-size: 14px;
}

@media (max-width:767px) {
  footer {
    padding: 50px 0;
  }

  footer h2 {
    width: 100%;
    text-align: right;
  }

  nav.local ul li {
    width: 100%;
  }

  footer li h3 br {
    display: none;
  }

}