@charset "utf-8";
/* 480px以上は写さない */
@media (min-width: 480px) {
  .sp-only {
    display: none !important;
  }
}
/* 960px以上は写さない */
@media (min-width: 960px) {
  .tb-only {
    display: none !important;
  }
}

/* 1280px以下に適用されるCSS（スクエアモニター用） */
@media screen and (max-width: 1280px) {
  .header-wrap {
    width: 36%;
  }
}

/* 960px以下に適用されるCSS（タブレット用） */
@media screen and (max-width: 960px) {
  .slider,
  .slider-item {
    height: 80vh;
  }
  .header-wrap {
    width: 50%;
    padding-top: 20px;
    padding-right: 20px;
  }
  .header-wrap .flex span {
    padding: 8px 0;
    font-size: 14px;
  }
  .mv-menu {
    max-width: 240px;
    left: 40px;
  }
  .mv-menu .btm a {
    font-size: 20px;
    padding: 15px 0;
  }
  #news .ttl::before {
    left: 40%;
  }
  #news .ttl::after {
    right: 40%;
  }
  #index-feature {
    padding: 60px 0;
  }
  .index-ttl {
    font-size: 28px;
  }
  #greeting {
    padding-top: 80px;
    background-position: right;
  }
  #index-facility .left {
    width: 55%;
  }
  #index-facility .right {
    width: 45%;
  }
  #index-facility .left .img::before {
    font-size: 22px;
    bottom: 15px;
    left: -20px;
  }
  .more {
    max-width: 280px;
  }
  .more-btn {
    font-size: 20px;
  }
  .footer-top .wrap {
    width: 90%;
  }

  /* 下層ページ */
  #subpage_bg {
    height: 40vh;
  }
  #subpage-ttl .ja {
    font-size: 37px;
  }
  #subpage-ttl .en {
    font-size: 24px;
  }
  .sec-ttl {
    font-size: 30px;
  }
  .sec-ttl::before {
    width: 50px;
  }
  .bg {
    width: 90%;
  }
  .section h3.ttl {
    font-size: 22px;
    margin-bottom: 15px;
  }
  .d-name {
    font-size: 23px;
  }
  .clinic-info dt {
    width: 170px;
  }
  .clinic-info dd {
    width: calc(100% - 170px);
  }
  .content h4.ttl {
    font-size: 20px;
    padding: 15px 0 15px 20px;
  }
  .progress h5.ttl,
  .flow h5.ttl {
    font-size: 20px;
  }
  .flow-item .number {
    width: 55px;
    height: 55px;
    line-height: 55px;
    font-size: 19px;
  }
  .flow-item .ttl {
    font-size: 18px;
  }
  .flow-item::after {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 25px solid #004a45;
    bottom: -60px;
  }
  .content_bg li .ttl {
    font-size: 18px;
  }
}

/* 480px以下に適用されるCSS（スマホ用） */
@media screen and (max-width: 480px) {
  .pc-only {
    display: none !important;
  }
  #header {
    transform: none;
    left: 0;
    background: none;
  }
  .header-right,
  .header-wrap {
    display: none !important;
  }
  .sp-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: fixed;
  }
  .nav_wrapper {
    position: fixed;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    bottom: 0;
  }
  .nav_wrapper div:first-child {
    border-left: 1px solid #f3f3f3;
  }
  .nav_wrapper div {
    width: 25%;
    display: flex;
    background: #004a45;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #f3f3f3;
    border-top: 1px solid #f3f3f3;
  }
  .nav_wrapper a {
    padding: 10px;
  }
  #page_top {
    display: none !important;
  }
  .flex {
    flex-direction: column;
  }
  .flex-2,
  .flex-3 {
    width: 100%;
    margin-bottom: 30px;
  }
  .mv-menu {
    display: none !important;
  }
  #news .ttl::before {
    left: 35%;
  }
  #news .ttl::after {
    right: 35%;
  }
  .news-item {
    flex-direction: column;
  }
  .news-item .date {
    width: 100%;
    font-size: 16px;
    text-align: left;
  }
  .news-item .news-ttl {
    width: 100%;
  }

  .flex-wrap-single {
    flex-direction: column; /* 子要素を縦方向に並べる */
  }

  .flex-wrap-single dt,
  .flex-wrap-single dd {
    width: 100%; /* 全幅を使う */
  }

  #index-feature .left {
    width: 100%;
  }
  .index-ttl {
    font-size: 25px;
  }
  #index-feature .left .index-ttl::before,
  #index-feature .left .index-ttl::after,
  #index-feature .right .index-ttl::before,
  #index-feature .right .index-ttl::after {
    width: 100vw;
  }
  #index-feature .right {
    width: 100%;
    margin-top: 120px;
  }
  #index-feature .right .img {
    margin-top: 50px;
  }
  #greeting {
    padding-top: 40px;
  }
  #greeting .img,
  #greeting .txtbox {
    width: 100%;
    padding-bottom: 20px;
  }
  .d-name {
    font-size: 23px;
  }
  #index-facility {
    padding: 45px 0;
  }
  #index-facility .left {
    width: 100%;
  }
  #index-facility .left .img::before {
    left: -8px;
  }
  #index-facility .right {
    width: 100%;
    margin-top: 20px;
  }
  #index-facility .right .txtbox {
    margin-top: 30px;
  }
  #index-facility .right .index-ttl::before,
  #index-facility .right .index-ttl::after {
    width: 100vw;
  }
  .more {
    margin: 30px auto 0;
  }
  .more-btn {
    font-size: 17px;
  }
  #index-medical .wrap {
    width: 90%;
  }
  .medical-wrap {
    flex-direction: row;
  }
  .medical-wrap .btn {
    width: 47%;
    margin-bottom: 70px;
  }
  #index-recruit {
    padding: 30px 0;
  }
  .footer-top .reserve a {
    width: 70%;
    font-size: 19px;
    padding: 10px 0;
    margin: 0 auto 20px;
  }
  .copyright {
    padding: 12px 0 80px;
  }

  /* ここから下層ページ　 */
  #subpage-ttl .ja {
    font-size: 28px;
  }
  .sec-ttl {
    font-size: 25px;
  }
  .section h3.ttl {
    font-size: 18px;
  }
  .facility {
    margin-bottom: 60px;
  }
  .content_bg {
    width: 90%;
    margin: 50px auto 70px;
  }
  .wrap {
    width: 90%;
  }
  .skill dt {
    width: 100%;
    margin-bottom: 0;
  }
  .skill dd {
    width: 100%;
  }
  .clinic-info {
    margin-top: 40px;
  }
  .clinic-info dt {
    width: 95px;
  }
  .clinic-info dd {
    width: calc(100% - 95px);
    padding: 15px 0 15px 10px;
  }
  .medical {
    padding-top: 20px;
  }
  .section {
    margin-top: 80px;
  }
  .content h4.ttl {
    font-size: 18px;
    padding: 15px 0 15px 10px;
  }
  .progress h5.ttl,
  .flow h5.ttl {
    font-size: 18px;
  }
  .progress .img {
    width: 100%;
    margin-bottom: 20px;
  }
  .bg .section .img img {
    margin-right: auto;
  }
  .progress .txtbox {
    width: 100%;
  }
  .flow-item .ttl {
    width: 100%;
    margin: 10px auto;
  }
  .flow-item p {
    width: 100%;
  }
  #prevention .item h5.ttl,
  #denture .item h5.ttl,
  #perio .item h5.ttl,
  #pediatric .item h5.ttl,
  .content.list .ttl {
    font-size: 20px;
  }
  #prevention .item .flex .ttl,
  #denture .item .flex .ttl,
  #pediatric .item .flex .ttl {
    font-size: 18px;
  }
  .graph th,
  .graph td {
    font-size: 15px;
    padding: 15px 0;
  }
  .list li span {
    font-size: 18px;
  }
  #whitening div.ttl {
    font-size: 20px;
  }
}
