html, body {
    margin: 0;
    padding: 0;
}

p {
    margin-block-start: 0;
    margin-block-end: 0;
    color: #032C4B;
    font-size: 1rem;
}

.mega-menu__child .menu-item--level-1>a[href^="http"]::after {
    display: none;
}

#welcome>p {
    margin: 0 0 10px 0;
    text-align: center;
    font-size: 1rem;
}

#welcome>p>span {
    border-bottom: solid 1px #000000;
}

#welcome>p>span>br {
    display: none;
}

#oc_menu {
    background-color: #F6F6F6;
    margin: 30px calc((100% - 100vw) / 2) 50px;
    padding: 30px calc((100vw - 100%) / 2) 30px;
}

#oc_menu>ul {
    margin: 0;
    padding-inline-start: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#oc_menu>ul>li {
    display: block;
    width: 43%;
    height: 110px;
    margin: 20px;
}

#oc_menu>ul>li>a {
    display: flex;
    width: 100%;
    height: 100%;
}

#oc_menu>ul>li img {
    width: 110px;
}

#oc_menu>ul>li div {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.2rem;
    background-color: #00469C;
    width: 100%;
}

#oc_menu>ul>li div>span::before {
    background-image: url(https://www.shiga-med.ac.jp/themes/custom/sums/images/sprite.png);
    background-position: -22px -100px;
    width: 14px;
    height: 15px;
    display: inline-block;
    margin-right: 12px;
    content: "";
}

.oc_content h3 {
    font-size: 1.7rem;
}

.oc_content_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.oc_item {
    width: 47%;
    margin-bottom: 3%;
}

.oc_item h8 {
    display: block;
    color: #FFFFFF;
    background-color: #00469C;
    text-align: center;
    font-size: 1.2rem;
    padding: 2% 0;
}

.oc_item video {
    width: 100%;
}

#message p {
    min-height: initial;
}

#admission h8 {
    margin-bottom: 3%;
}

h9 {
    color: #032C4B;
    font-size: 1.2rem;
    border-left: solid 2px #000000;
    padding-left: 1%;
}

.oc_item>p {
    min-height: 55px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    font-size: 1.2rem;
    margin: 2% 1%;
}

.accordion_title {
    cursor: pointer;
    padding: 1% 0 1% 2rem;
    position: relative;
    font-size: 1.4rem;
}

.accordion_title:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.8rem;
    width: 12px;
    height: 1.5px;
    background: #032C4B;
    transition: all .2s ease-in-out;
}

.accordion_title:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.8rem;
    width: 12px;
    height: 1.5px;
    transform: rotate(90deg);
    background: #032C4B;
    transition: all .3s ease-in-out;
}

.accordion_title.open:before {
    transform: rotate(180deg);
}

.accordion_title.open:after {
    opacity: 0;
}

.accordion_title:hover {
    opacity: 0.5;
}

.accordion_content {
    display: none;
}

.voice {
    width: 95%;
    margin: 1rem auto 0;
}

.tab_menu {
    list-style: none;
    display: flex;
    justify-content: left;
    height: 2.5rem;
    margin: 0;
    border-bottom: solid 1px #4A4A4A;
    color: #4A4A4A;
    font-size: 1rem;
}

.tab_menu li {
    color: #032C4B;
    line-height: 40px;
    text-align: center;
    margin-right: 30px;
    text-decoration: none;
    cursor: pointer;
}

.tab_active {
    font-weight: bold;
    border-bottom: solid 3px #00469C;
}

.tab_contents {
    margin: 1rem 0;
}

.tab_content {
    font-size: 1rem;
    padding: 0 2%;
    display: none;
}

p.oc_alert {
    min-height: initial;
    font-size: 1rem;
    margin: -2% 0 0 0;
}

.linkbox {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.linkbox div {
    padding: 1.5% 0;
    text-align: center;
    font-size: 1.2rem;
}

.linkbox a {
    display: block;
    width: 47%;
    text-decoration: none;
    border: solid 1px #00469C;
    border-radius: 15px;
    transition: 0.5s;
}

.linkbox a:hover {
    background-color: #00469C;
    color: #FFFFFF;
}

@media screen and (max-width: 560px) {
    #welcome>p>span>br {
        display: inline;
    }
    #oc_menu>ul {
        justify-content: space-between;
    }
    #oc_menu>ul>li {
        width: 48%;
        height: 160px;
        margin: 0 0 3% 0;
        position: relative;
    }
    #oc_menu>ul>li img {
        width: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
    #oc_menu>ul>li div {
        position: absolute;
        bottom: 0;
        border-radius: 0 0 8px 8px;
        opacity: 0.85;
        font-size: 1rem;
        height: 33%;
    }
    #oc_menu>ul>li div::after {
        content: '';
        width: 8px;
        height: 8px;
        border: 0px;
        border-top: solid 1.5px #FFFFFF;
        border-right: solid 1.5px #FFFFFF;
        -ms-transform: rotate(135deg);
        -webkit-transform: rotate(135deg);
        transform: rotate(135deg);
        position: absolute;
        bottom: 20%;
        margin-top: -4px;
    }
    #oc_menu>ul>li div>span {
        position: absolute;
        top: 10%;
    }
    #oc_menu>ul>li div>span::before {
        display: none;
    }
    .oc_item>p {
        min-height: initial;
    }
    .oc_content_list {
        flex-direction: column;
    }
    .oc_item {
        width: 100%;
        margin-bottom: 3vh;
    }
    .accordion_title {
        padding: 3% 0 3% 2rem;
    }
    .tab_menu {
        padding-inline-start: 0;
        justify-content: space-around;
    }
    .tab_menu>li {
        margin: 0;
    }
    h9 {
        display: block;
        color: #FFFFFF;
        background-color: #00469C;
        text-align: center;
        font-size: 1.2rem;
        padding: 2% 0;
        border: none;
    }
}

@media screen and (max-width: 360px) {
    #oc_menu>ul>li div {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 320px) {
    #oc_menu>ul>li {
        height: 140px;
    }
    .tab_menu>li {
        font-size: 0.9rem;
    }
}

@media screen and (min-width: 481px) and (max-width: 960px) and (orientation: landscape) {
    #oc_menu>ul>li {
        width: 42%;
    }
    #oc_menu>ul>li div {
        font-size: 0.9rem;
    }
    .oc_content_med p, #facility>.oc_content_list:last-child p {
        min-height: 80px;
    }
    #facility>.oc_content_list:last-child h8 {
        font-size: 1rem;
    }
}

@media screen and (min-width: 481px) and (max-width: 960px) and (orientation: portrait) {
    #oc_menu>ul>li div {
        font-size: 1rem;
    }
    .oc_content_nurse>.oc_item:nth-child(3)>h8, .oc_content_nurse>.oc_item:nth-child(4)>h8 {
        font-size: 0.9rem;
    }
    #education > div:nth-child(3) > div:nth-child(3) > div:nth-child(2) > h8, #education > div:nth-child(3) > div:nth-child(3) > div:nth-child(2) > p {
        font-size: 1rem;
    }
}

.responsive {
width: 100%;
aspect-ratio: 16/9;
}