@charset "utf-8";

/* mainVisual
---------------------------------------------- */
.mainVisual {
    max-width: 100%;
    margin: 0 auto;
    background-color: #333;
}

.mainVisual  > div {
    max-width: 1150px;
    margin: 0 auto;
}

.mainVisual img {
    width: 100%;
}

.mainVisual .slick-list {
    overflow: visible;
}

.slick-dotted.slick-slider {
    margin-bottom: 0;
}

/* 読み込み時に画像が一瞬縦に全部表示する防止 */
#slider {
  display: none;
}
#slider.slick-initialized {
  display: block;
}

/* dot */
.mainVisual .slick-dots {
    position: static;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0.6rem 5rem;
    text-align: left;
}

.mainVisual .slick-dots li {
    width: 54px;
    height: 8px;
    background-color: #ffff01;
    margin: 0 0.1rem 0 0;
}

.mainVisual .slick-dots li:last-child {
    margin-right: 0;
}

.mainVisual .slick-dots li.slick-active {
    background-color: #fff;
}

.mainVisual .slick-dots li button:before{
	content: ''!important;
	height: 100%!important;
    width: 100%!important;
}

@media screen and (max-width: 1024px) {
    .mainVisual .slick-list {
        overflow: hidden;
    }
/*
    #slider {
      display: none !important;
    }
    
    #slider.slick-initialized + dl {
      display: block;
    }
*/
}

@media screen and (max-width: 767px) {
    /* dot */
    .mainVisual .slick-dots {
        padding: 0.6rem 2rem;
    }
}



/* 全体コンテンツ
---------------------------------------------- */
/*
section {
    margin: 8.5rem auto;
}

section h2 {
    color: #0057a6;
    font-size: 4.6rem;
    font-weight: 500;
    margin-bottom: 6.5rem;
    text-align: center;
    line-height: 1.5;
}

section h2 span {
    display: block;
    color: #000;
    font-size: 2rem;
}

section p {
    line-height: 2;
}

@media screen and (max-width: 1024px) {
    section {
        margin: 6rem auto 7rem;
    }
    
    section h2 {
        margin-bottom: 5rem;
    }
}

@media screen and (max-width: 767px) {
    section {
        margin: 5rem auto 6rem;
    }
    
    section h2 {
        font-size: 3.2rem;
        margin-bottom: 3.5rem;
    }
    
    section h2 span {
        font-size: 1.6rem;
    }
}
*/


/* News
---------------------------------------------- */
.news {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 5rem 20rem;
}

.news-title {
    margin-right: 3rem;
    flex-shrink: 0;
}

.news h2 {
    margin-bottom: 4rem;
}

.news .tab-category {
    border-radius: 30px 0 0 30px;
}

.news .tab-category li {
    background-color: #f2f2f2;
    margin-bottom: 0.2rem;
    padding: 1rem 3rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

/* タブレット・スマホ無効 */
@media screen and (min-width: 960px) {
    .news .tab-category li:not(.active):hover {
        opacity: 0.7;
    }
}

.news .tab-category li:first-child {
    border-radius: 30px 0 0 0;
}

.news .tab-category li:last-child {
    border-radius: 0 0 0 30px;
}

.news .tab-category li.active {
    color: #fff;
    background-color: #a8953a;
    font-weight: 500;
    position: relative;
    cursor: auto;
}

.news .tab-category li.active:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    border: 26px solid transparent;
    border-left: 18px solid #a8953a;
    transform: translateY(-50%);
    -webkit- transform: translateY(-50%);
}

.news article {
    display: none;
    max-width: 910px;
    width: 100%;
    font-weight: 500;
    padding: 5rem;
    border: 1px solid #a8953a;
    border-radius: 0 30px 30px 0;
}

.news article.first-show {
    display: block;
}

.news article.active {
    display: block;
    animation: news-show .3s ease-in-out forwards;
}

/* お知らせ切り替えのアニメーション */
@keyframes news-show {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.news article dl {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #b3b3b3;
}

.news article dt .category {
    margin-bottom: 1rem;
}

.news article dt .category {
    width: 140px;
    display: inline-block;
    color: #fff;
    font-size: 1.6rem;
    margin-right: 1em;
    padding: 0.2rem 1rem 0;
    text-align: center;
    border-radius: 20px;
}

.news article dt .category.update { background-color: #4d4d4d; }
.news article dt .category.medical { background-color: #006f7d; }
.news article dt .category.activity { background-color: #aa9537; }

.news article dd a {
    color: #006f7d;
}

.news article .more {
    font-size: 1.6rem;
    text-align: right;
}

@media screen and (max-width: 1024px) {
    .news-title {
        margin: 0 0 4rem;
        flex-shrink: 1;
        display: flex;
    }
    
    .news h2 {
        margin: 0 3rem 0 0;
    }
    
    .news .tab-category {
        display: flex;
        font-size: 1.7rem;
    }
    
    .news .tab-category li {
        margin: 0 0.2rem 0 0;
        padding: 1rem;
    }
    
    .news .tab-category li:first-child,
    .news .tab-category li:last-child {
        border-radius: 0;
    }
    
    .news .tab-category li.active:after {
        top: 100%;
        left: 50%;
        border: 36px solid transparent;
        border-left: 36px solid transparent;
        border-top: 18px solid #a8953a;
        transform: translateY(0) translateX(-50%);
        -webkit- transform: translateY(0) translateX(-50%);
    }
}

@media screen and (max-width: 767px) {
    .news {
        padding: 4rem 2rem 15.5rem;
    }
    
    .news-title {
        display: block;
    }
    
    .news h2 {
        margin: 0 0 3rem 0;
    }
    
    .news .tab-category {
        font-size: 1.3rem;
    }
    
    .news .tab-category li.active:after {
        border: 29px solid transparent;
        border-left: 29px solid transparent;
        border-top: 15px solid #a8953a;
    }
    
    .news article {
        padding: 2rem;
    }
    
    .news article dl {
        padding-bottom: 1rem;
    }
    
    .news article dt,
    .news article dd {
        font-size: 1.6rem;
    }
    
    .news article dt .category {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 360px) {
    .news .tab-category li {
        padding: 1rem 0.9rem;
    }
}


/* top-contents
---------------------------------------------- */
.top-contents {
    background-color: #f2f2f2;
    min-height: 530px;
    padding: 0 5rem;
}

.top-contents .inner {
    max-width: 1680px;
    margin: 0 auto;
    position: relative;
}

.top-contents h2 {
    position: absolute;
    top: -150px;
    right: 150px;
}

.top-contents-box {
    max-width: 540px;
    width: 100%;
    position: relative;
    align-items: flex-start;
}

.top-contents-box:nth-of-type(2) {
    margin-top: 3.5rem;
}

.top-contents-box .top-contents-title {
    position: absolute;
    top: 0;
    left: 0;
}

.top-contents-box:nth-of-type(1) .top-contents-title {
    top: -45px;
}

.top-contents-box .top-contents-text {
    width: 100%;
    background-color: #fcfcfc;
    padding: 5rem 3.5rem 0 20rem;
}

.top-contents-box:nth-of-type(1) .top-contents-text {
    min-height: 326px;
    padding: 2.8rem 3.5rem 0 20rem;
}

.top-contents-box:nth-of-type(2) .top-contents-text {
    min-height: 383px;
    padding: 5rem 3.5rem 2rem 20rem;
}

.top-contents-box:nth-of-type(3) .top-contents-text {
    min-height: 495px;
    margin: 3.5rem 0 0 6.4rem;
    padding: 5rem 3.5rem 0 13rem;
}

.top-contents-box:nth-of-type(3) .top-contents-text h3 {
    margin: 2em 0 1em;
}

.top-contents-box:nth-of-type(3) .top-contents-text h3:first-of-type {
    margin-top: 0;
}

.top-contents-box .top-contents-text li {
    margin-bottom: 0.5em;
}

.top-contents-box .top-contents-text li:last-child {
    margin-bottom: 1em;
}

.top-contents-box .btn-more_specialty a {
    display: inline-block;
    width: 130px;
    color: #fff;
    background-color: #016a7d;
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 1em;
    padding: 0.5rem 0;
    text-align: center;
    border-radius: 30px;
}

.top-contents-box .btn-more_general a {
    display: inline-block;
    width: 130px;
    background-color: #fdee21;
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 1em;
    padding: 0.5rem 0;
    text-align: center;
    border-radius: 30px;
}

@media screen and (max-width: 1123px) {
    .top-contents {
        min-height: 0;
        padding: 5rem;
    }
    
    .top-contents .inner {
        display: block;
    }
    
    .top-contents h2 {
        top: -200px;
        right: 0;
    }
    
    .top-contents-box {
        max-width: none;
        margin-bottom: 14rem;
    }
    
    .top-contents-box:nth-of-type(3) {
        margin-bottom: 0;
    }
    
    .top-contents-box:nth-of-type(1) .top-contents-title {
        top: 0;
    }
    
    .top-contents-box:nth-of-type(1) .top-contents-text {
        min-height: 372px;
        padding: 4rem 3.5rem 0 20rem;
    }
    
    .top-contents-box:nth-of-type(3) .top-contents-text {
        min-height: 423px;
        padding: 5rem 3.5rem 3rem 13rem;
    }
}

@media screen and (max-width: 767px) {
    .top-contents {
        padding: 5rem 2rem;
    }
    
    .top-contents h2 {
        top: -160px;
        left: 0;
    }
    
    .top-contents-box {
        margin-bottom: 6rem;
    }
    
    .top-contents-box .top-contents-title {
        width: 100px;
    }
    
    .top-contents-box .top-contents-text {
        font-size: 1.6rem;
    }
    
    .top-contents-box:nth-of-type(1) .top-contents-text {
        min-height: 301px;
        margin: 0 0 0 4.2rem;
        padding: 2rem 2rem 2rem 8rem;
    }
    
    .top-contents-box:nth-of-type(1) .top-contents-text li:last-child {
        margin-bottom: 0;
    }
    
    .top-contents-box:nth-of-type(2) .top-contents-text {
        min-height: 301px;
        margin: 0 0 0 4.2rem;
        padding: 2rem 2rem 2rem 8rem;
    }
    
    .top-contents-box:nth-of-type(3) .top-contents-text {
        margin: 2.2rem 0 0 4.2rem;
        padding: 3rem 2rem 3rem 8rem;
    }
}


/* バナー
---------------------------------------------- */
.banner {
    margin: 4rem auto;
    padding: 0 5rem;
}

.banner ul {
    display: flex;
    justify-content: center;
    gap: 0 1.5%;
}

.banner li {
    border: 1px solid #ccc;
}

@media screen and (max-width: 767px) {
    .banner {
        padding: 0 2rem;
    }
    
    .banner ul {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1.5rem 1.5%;
    }
    
    .banner li {
        width: 48%;
    }
}
