@charset "utf-8";

@media screen and (max-width: 1030px) {
  #medical-information .content,
  #greeting .content {
    padding: 0;
  }
}

/* メインビジュアル */
#top {
  position: relative;
  overflow: hidden;
}
#top img {
  width: 100%;
}
#top .sp {
  display: none;
}

.slogan {
  position: absolute;
  left: 5%;
  top: 55%;
}
.slogan p {
  padding: 8px;
  background-image: linear-gradient(90deg, rgba(41, 169, 116, 0.7) 80%, rgba(255, 255, 255, 0));
  color: #fff;
  font-size: 3rem;
}
.slogan p:first-child {
  margin-bottom: 10px;
}
.slogan p:last-child {
  margin-left: 1em;
}
@media screen and (min-width: 1200px) {
  .slogan p {
    font-size: 3.5rem;
  }
}
@media screen and (max-width: 600px) {
  #top .pc {
    display: none;
  }
  #top .sp {
    display: block;
  }
  .slogan {
    left: 5%;
    top: 5%;
  }
  .slogan p {
    font-size: 2rem;
  }
  .slogan p:first-child {
    margin-bottom: 6px;
  }
}

.link-sp {
    display: none;
  }
.link {
  position: absolute;
  right: -2px;
  top: 20%;
  transform: translateY(-20%);
}
.link a {
  display: flex;
  align-items: center;
  padding: 8px 24px 8px 10px;
  background-color: #53c59e;
  border: 2px solid #fff;
  border-radius: 10px 0 0 10px;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.2;
  white-space: nowrap;
}
.link a:last-child {
  margin-top: 10px;
  background-color: #009fe8;
}
.link a img {
  margin-right: 5px;
}
@media screen and (min-width: 1200px) {
  .link a {
    font-size: 1.6rem;
  }
  .link a img {
    height: 37px;
  }
}
@media screen and (max-width: 600px) {
  .link {
    display: none;
  }
  .link-sp {
    display: flex;
    position: sticky;
    bottom: -1.5px;
    right: 0;
    z-index: 10;
  }
  .link-sp a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: #53c59e;
    border: 1.5px solid #fff;
    color: #fff;
    width: 50%;
    line-height: 1.2;
    white-space: nowrap;
  }
  .link-sp a:last-child {
    margin-left: -1.5px;
    background-color: #009fe8;
  }
}

/* お知らせ */
#news {
  padding: 60px 0 40px;
  background-image: url(../img/news-bg.jpg);
  background-size: cover;
}

#news .flex {
  margin-bottom: 30px;
  justify-content: space-between;
}
#news .flex a {
  position: relative;
  padding: 20px 0;
  color: #fff;
  border-radius: 10px;
}
.reservation {
  display: block;
  width: 68%;
  background-color: #009fe8;
}
.reservation p:first-child {
  font-size: 2.2rem;
  text-align: center;
}
.reservation p:last-child {
  display: flex;
  align-items: center;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.reservation p:last-child span {
  padding-left: 5px;
  font-size: 2.2rem;
}
.line {
  display: flex;
  justify-content: center;
  width: 30%;
  background-color: #03c755;
}
.line img {
  padding-right: 8px;
  height: 35.2px;
}
.line p {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
}
.line p span {
  padding-left: 5px;
  font-size: 2.2rem;
}
@media screen and (max-width: 960px) {
  #news .flex {
    display: block;
  }
  .reservation {
    width: 100%;
  }
  .line {
    display: none;
  }
}
@media screen and (max-width: 767px) {
  .reservation {
    padding: 10px 0 !important;
  }
  .reservation p:last-child {
    justify-content: center;
    position: static;
    transform: translateY(0);
  }
}

.news-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 40px;
  background-color: #fff;
}
.news-area h2 {
  margin-bottom: 20px;
  text-align: center;
}
.news-list li {
  padding: 15px 20px !important;
  border-top: 1px solid #9e9e9f;
  text-indent: 0 !important;
}
.news-list li::before {
  content: none !important;
}
.news-list li:last-child {
  border-bottom: 1px solid #9e9e9f;
}
.news-list li a {
  display: flex;
}
.news-list .date {
  width: 100px;
}
.news-list + p {
  margin-top: 30px;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .news-area {
    padding: 30px 15px 20px;
  }
  .news-list li a {
    display: block;
  }
}

/* 診療案内 */
#medical-information {
  margin: 40px 40px 40px 0;
  padding: 40px;
  background-color: #e5f5fd;
  border-top-right-radius: 180px;
}
#medical-information h2 {
  text-align: center;
}
#medical-information .section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-content: center;
}
#medical-information .section p {
  padding: 20px 0;
  background-color: #009fe8;
  border-radius: 10px;
  font-size: 2rem;
}
#medical-information .section p a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
}
@media screen and (max-width: 1080px) {
  #medical-information .section {
    grid-template-columns: repeat(2, 1fr);
  }
  #medical-information .section p a {
    justify-content: flex-start;
    padding-left: 100px;
  }
}
@media screen and (max-width: 960px) {
  #medical-information .section p a {
    padding-left: 60px;
  }
}
@media screen and (max-width: 767px) {
  #medical-information .section p a {
    padding-left: 20px;
  }
}
@media screen and (max-width: 600px) {
  #medical-information .section {
    grid-template-columns: repeat(1, 1fr);
  }
  #medical-information .section p a {
    padding-left: 40px;
  }
}
@media screen and (max-width: 480px) {
  #medical-information {
    margin: 40px 0;
    padding: 30px 15px;
    border-radius: 0 100px 0 0;
  }
  #medical-information .section p {
    padding: 15px 0;
  }
  #medical-information .section p a {
    padding-left: 80px;
  }
}

/* 院長あいさつ */
#greeting {
  margin: 40px 0 40px 40px;
  padding: 40px 40px 0 50px;
  background-color: #edf9f5;
  border-top-left-radius: 180px;
}
#greeting h2 {
  text-align: center;
}
#greeting .flex {
  align-items: flex-start;
}
#greeting .flex div {
  width: 50%;
  text-align: justify;
}
#greeting .flex div p {
  font-size: 1.5rem;
}
#greeting .flex div .btn {
  margin: 20px 0 40px;
  font-size: 1.6rem;
  text-align: center;
}
#greeting .flex img {
  width: 50%;
  padding-left: 40px;
}
@media screen and (max-width: 1000px) {
  #greeting .flex {
    flex-direction: column;
    align-items: center;
  }
  #greeting .flex div {
    width: 100%;
  }
  #greeting .flex img {
    padding-left: 0;
    width: 50%;
  }
}
@media screen and (max-width: 767px) {
  #greeting {
    margin: 40px 0;
    padding: 30px 15px 0;
    border-radius: 120px 0 0;
  }
  #greeting .flex img {
    width: 70%;
  }
}
@media screen and (max-width: 480px) {
  #greeting .flex img {
    width: 80%;
  }
}

/* 院内写真 */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
.scroll-wrap {
  display: flex;
  overflow: hidden;
}
.scroll-list {
  display: flex;
  list-style: none;
  padding: 0;
}
.scroll-list-left {
  animation: scroll-left 30s infinite linear 0.5s both;
}
.scroll-item {
  width: calc(100vw / 3);
}
.scroll-item > img {
  width: 100%;
}
@media screen and (max-width: 960px) {
  .scroll-item {
    width: calc(100vw / 2);
  }
}
@media screen and (max-width: 480px) {
  .scroll-item {
    width: calc(100vw / 1.5);
  }
}