@charset "UTF-8";

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 auto;
}

.-about .main {
    margin: 0;
    max-width: none;
}

.max {
    max-width: 1400px;
    margin: 0 auto;
}

.short.inner {
    padding: 60px 10% 0px;
}

.inner {
    border-top: solid #95C932 1px;
    padding: 100px 10%;
}

/* アンカーリンク */

#greetings {
    padding-top: 100px; 
    margin-top: -100px;
}
#profile {
    padding-top: 100px; 
    margin-top: -100px;
}
#basic-idea {
    padding-top: 100px; 
    margin-top: -100px;
}
#about {
    padding-top: 100px; 
    margin-top: -100px;
}
#history {
    padding-top: 100px; 
    margin-top: -100px;
}

.anchor-link {
    max-width: 1400px;
    height: 45px;
    width: 100%;
    margin: 0 auto;
}

.nav-list {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.nav-list .nav-item {
    border-right: solid 1px #DDDDDD;
    height: 35px;
}

.nav-list .nav-item:hover {
}

.nav-list .nav-item p {
    font-size: 17px;
    padding: 13px 35px;
    position: relative;
    bottom: 9px;
    color: black;
    background-color: white;
    transition: background-color 0.3s, color 0.3s;
}

.nav-list .nav-item p:hover {
    background-color: #f7f7f7;
    color: #95C932;
}

.nav-list .nav-item p::before,
.nav-list .nav-item p::after {
    content: "";
    position: absolute;
    top: 55%;
    left: 12px;
    width: 13px;
    height: 13px;
    transform: translateY(-65%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease;
}

.nav-list .nav-item p::before {
    background-image: url(../img/cmn/link-icon_01.svg);
    opacity: 1;
    z-index: 1;
}

.nav-list .nav-item p::after {
    background-image: url(../img/cmn/link-icon_02.svg);
    opacity: 0;
    z-index: 2;
}

.nav-list .nav-item p:hover::before {
    opacity: 0;
}

.nav-list .nav-item p:hover::after {
    opacity: 1;
}

/* .nav-list .nav-item p::before {
    content: url(../img/cmn/link-icon.svg);
    position: absolute;
    top: 50%;
    left: 28px;
    width: 20px;
    height: 20px;
    transform: translateY(-65%);
} */

/* ご挨拶 */

.greetings-cnr {
    max-width: 1400px;
}

.greetings-box {
    display: flex;
    margin-bottom: 50px;
}

.message {
    width: 66%;
}

.message-txt {
    line-height: 35px;
}

.doctor {
    display: block;
    /* margin: 0 auto; */
    margin-left: 90px;
}

.doctor-img {
    margin-bottom: 10px;
}

.doctor-name {
    line-height: 30px;
    font-family: serif;
    font-size: 16px;
}

.doctor-name p {
    margin-bottom: 5px;
}

.doctor-name p span {
    font-size: 24px;
}

/* 自己紹介 */
.profile {
}

.profile-cnr {
    padding: 50px 67px;
    width: 100%;
    background-color: #F5F4F0;
    display: flex;
}

.profile-name {
    width: 50%;
}

.profile-name .name {
    font-family: serif;
    font-size: 31px;
    margin-bottom: 10px;
}

.profile-name .charge {
}

.affiliation {
    width: 50%;
}

.affiliation h4 {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: solid 1px #CCCCCC; 
    font-size:  17px;
}

.affiliation ul {
}

.affiliation li {
}

.affiliation li::before {
    content: "・ "; /* 「・」と半角スペースを表示 */
    margin-right: 0; /* リスト項目との間隔 */
}

/* 基本理念 */
.basic-idea {}
.basic-idea .inner {
}
.basic-idea-item {
    margin-bottom: 75px;
}

.idea-txt {
    font-family: serif;
    font-size: 22px;
}

.idea-policy {
    font-size: 15px;
}

.idea-policy li {
    font-size: 15px;
}

.idea-policy li p {
    position: relative;
    padding-left: 10px;
}

.idea-policy li p::before {
    content: "・ "; /* 「・」と半角スペースを表示 */
    margin-right: 0; /* リスト項目との間隔 */
    position: absolute;
    left: -5px;
}

.nursing-policy {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    counter-reset: item;
}

.nursing-policy li {
    position: relative;
    padding-left: 40px; /* 左側に余白を追加 */
    margin: 5px 0 20px;
    width: 50%; 
}

.nursing-policy li::before{
    content: counter(item); /* カウンターを表示 */
    counter-increment: item; /* カウンターを増やす */
    position: absolute; /* カウンターを絶対位置に */
    left: 5px; /* 左側に配置 */
    bottom: -4px;
    color: white; /* 数字の色を白にする */
    background-color: #95C932; /* 黄緑の背景 */
    padding: 3px 10px; /* 背景の余白を設定 */
}

/* 当院について */
.about {}
.about .inner {
    border-top: none;
    background-color: #F5F4F0;
    margin-bottom: 130px;
    width: 100%;
}

.about .inner .max {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 9%;
}

.about-cnr {
    display: flex;
    position: relative;
}

.about-txt {
    font-size: 15px;
    max-width: 703px;
    width: 100%;
}

.about-img {
    position: absolute;
    bottom: -130px;
    right: -25%;
}

/* 沿革と概要 */

.history .inner {
    padding: 100px 10%;
}

.hisOver-cnr {
}

.history-tbl {
    width: 100%;
    margin: 0 auto 75px;
}

.history-tbl tr {
    border-top: solid 1px #CCCCCC;
}
.history-tbl tr:last-child  {
    border-top: solid 1px #CCCCCC;
    border-bottom: solid 1px #CCCCCC;
}

.period {
    padding: 15px;
    text-align: left;
    width: 15%;
    background-color: #F5F4F0;
}

.period-cnt {
    padding: 15px 20px;
}

.overview-tbl {
    width: 100%;
    margin: 0 auto;
}

.overview-tbl tr {
    border-bottom: solid 1px #CCCCCC;
}

.overview-ttl {
    font-weight: bold;
    padding: 25px 20px;
    text-align: left;
    width: 20%;
}
.overview-cnt {
    padding: 15px 20px;
    position: relative;
}
.overview-cnt::before {
    content: "ー";
    color: #95C932;
    margin-right: 20px;
    position: absolute;
    font-size: 30px;
    left: -30px;
    top: 12px;
}

@media screen and (max-width:1470px) {
    .about-txt {
        font-size: 15px;
        max-width: 400px;
    }
}


@media screen and (max-width:1240px) {
    .inner {
        padding: 100px 5%;
    }

    .about-img {
        right: 0;
    }

    .about .inner .max {
        padding: 0;
    }

    .history .inner {
        padding: 100px 5%;
    }
}

@media screen and (max-width:767px) {

    /* アンカーリンク */

    .anchor-link {
        width: 100%;
        height: 159px;
    }

    .nav-list {
        justify-content: unset;
        flex-wrap: wrap;
        margin: 0;
    }

    .nav-list .nav-item p {
        font-size: 15px;
        padding: 13px 10px 15px 33px;
        bottom: 0px;
        border-bottom: solid 1px #DDDDDD;
    }

    .nav-list .nav-item p::before {
        top: 55%;
        left: 20px;
    }

    .nav-list .nav-item {
        height: 53px;
        width: 50%;
        border-top: solid 1px #DDDDDD;
    }

    .nav-list .nav-item:nth-child(4) {
    }
}



@media screen and (max-width:640px) {
    .inner {
        padding: 46px 20px 62px;
    }

    /* ご挨拶 */

    .greetings-box {
        flex-wrap: wrap;
    }

    .message {
        width: 100%;
    }

    .message-txt {
        margin-bottom: 45px;
    }


    .doctor {
        margin: 0 auto;

    }

    .doctor-img {
        width: 100%;
        max-width: 200px;
    }

    .doctor-name {
        font-size: 14px;
    }

    /* プロフィール */

    .profile-cnr {
        padding: 30px 14px;
        flex-wrap: wrap;
    }

    .profile-name {
        width: 100%;
    }

    .profile-name .charge {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .affiliation {
        width: 100%;
    }

    .affiliation h4 {
        padding-bottom: 9px;
        margin-bottom: 13px;
        font-size: 15px;
    }

    /* 基本理念 */

    .basic-idea-item {
        margin-bottom: 58px;
    }

    .idea-txt {
        font-size: 19px;
    }

    .idea-policy li {
        font-size: 13px;
    }
    
    .idea-policy li p {
    }
    
    .idea-policy li p::before {
    }

    .nursing-policy li {
        width: 100%;
    }

    .nursing-policy li::before {
        bottom: 8px;
    }

    /* 当院について */

    .about .inner {
        padding: 130px 20px 30px;
        margin-bottom: 50px;
    }

    .about-img {
        position: absolute;
        bottom: 110%;
        right: -6%;
        width: 200px;
    }

    /* 沿革と概要 */

    .history .inner {
        padding: 35px 20px 100px;
    }

    .history-tbl {
        margin: 0 auto 70px;
        font-size: 13px;
    }

    .period {
        width: 26%;
    }

    .overview-cnt::before {
        display: none;
    }

    .overview-tbl tr {
        display: flex;
        flex-direction: column;
    }

    .overview-tbl tr:last-of-type {
        border-bottom: none;
    }

    .overview-ttl {
        padding: 10px 10px 5px;
        width: 100%;
    }

    .overview-cnt {
        padding: 0 10px 10px;
    }
    .nav-list .nav-item p::before, .nav-list .nav-item p::after {
        left: 8px;
    }
}

@media screen and (max-width:540px) {
    .nursing-policy li::before {
        bottom: -4px;
    }
}

@media screen and (max-width:539px) {
    .nursing-policy li::before {
        bottom: 8px;
    }
}

@media screen and (max-width:430px) {
    .nursing-policy li:first-child {
        margin: 5px 0 7px;
    }
    .nursing-policy li::before {
        bottom: -4px;
    }
    .nursing-policy li:first-child::before {
        bottom: 8px;
    }
}

@media screen and (max-width:429px) {
    .nursing-policy li:nth-child(2) {
        margin: 5px 0 7px;
    }
    .nursing-policy li::before {
        bottom: 8px;
    }
    .nursing-policy li:last-child::before {
        bottom: -4px;
    }
}

@media screen and (max-width:400px) {
    .nursing-policy li:first-child {
        margin: 5px 0 20px;
    }
    .nursing-policy li:nth-child(2) {
        margin: 5px 0 20px;
    }
    .nursing-policy li:last-child::before {
        bottom: 8px;
    }
}

@media screen and (max-width:374px) {
    .nav-list .nav-item p {
        padding: 13px 10px 15px 40px;
    }

    .nav-list .nav-item p::before {
        left: 7px;
    }

}
