@charset "UTF-8";
@import url(https://fonts.googleapis.com/css2?family=Barlow:wght@500&display=swap);
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap');

a,abbr,acronym,address,applet,big,blockquote,body,caption,cite,code,dd,del,dfn,div,dl,dt,em,fieldset,font,form,h1,h2,h3,h4,h5,h6,html,iframe,ins,kbd,label,legend,li,object,ol,p,pre,q,s,samp,small,strike,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,tt,ul,var {
    border: 0;
    font-family: inherit;
    font-size: 62.5%;
    font-weight: inherit;
    font-style: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}
span {
    border: 0;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}
/*body,body #wrapper select,body #wrapper input,body #wrapper textarea,body #wrapper button {
    font-size: 10px;
    line-height: 2;
    letter-spacing: 0.12rem;
}*/
body,html,main {
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: hidden;
}
body {
    font-family: "Noto Sans JP",-apple-system,BlinkMacSystemFont,"Helvetica Neue",YuGothic,"ヒラギノ角ゴ ProN W3",Hiragino Kaku Gothic ProN,Arial,"メイリオ",Meiryo,sans-serif;
    font-size: 62.5%;
    font-weight: 500;
    letter-spacing: .05rem;
    line-height: 1.8;
    background-color: #fff;
    color: #231815;
}
body a { transition: background 0.3s ease, color 0.3s ease; }

html {
    margin-top: 0 !important;
}
html.scroll-prevent {
    touch-action: none;
    -webkit-overflow-scrolling: none;
    overflow: hidden;
    overscroll-behavior: none;
}
html * {
    box-sizing: border-box;
    font-feature-settings: "palt";
    word-break: break-word;
    line-break: strict;
}
body {
    -webkit-print-color-adjust: exact;
}

body img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    pointer-events: none;
}
body figure {
    margin: 0;
}

body #wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.min {
    font-family: "Noto Serif JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
.gothic {
    font-family: "Noto Sans JP",-apple-system,BlinkMacSystemFont,"Helvetica Neue",YuGothic,"ヒラギノ角ゴ ProN W3",Hiragino Kaku Gothic ProN,Arial,"メイリオ",Meiryo,sans-serif;
}

.nopc { display: none; }
@media only screen and (max-width: 599px) {
    .nosp { display:none !important; }
    .nopc { display:block; }
}


/*-------------------------------------------------------------
ローディング
-------------------------------------------------------------*/
#loading {
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100vw;
	height: 100vh;
    background-color: #fff;
	opacity: 1;
	transition: opacity .5s;
	transition-delay: .5s;
	z-index: 999;
}
#loading.loaded {
	opacity: 0;
	pointer-events: none;
}
#loading.transitionend {
	display: none;
}


/*-------------------------------------------------------------
header
-------------------------------------------------------------*/
#header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    pointer-events: none;
    transition: background .3s ease;
}
#header.fixed {
    background: rgba(255,255,255,0.8);
}
#site_title_logo {
    display: flex;
    align-items: center;
    margin-top: 25px;
    margin-left: 30px;
    margin-bottom: 25px;
}
#site_logo {
    width: 220px;
}
#site_logo a {
    display: block;
    height: 100%;
    will-change: opacity;
    transition: opacity .3s ease;
    transform: rotate(.1deg);
    pointer-events: painted;
}
#site_logo a:hover {
    opacity: .8;
}
#site_title_logo .site_title {
    margin-left: 25px;
    border-top: 1px solid #231815;
    border-bottom: 1px solid #231815;
    pointer-events: painted;
}
#site_title_logo .site_title h1 {
    font-size: 1.6rem;
    line-height: 1;
    padding: 0.5em 1.5em 0.6em;
}
@media only screen and (max-width: 1024px) {
    #site_logo {
        max-width: 22vw;
    }
    #site_title_logo .site_title {
        margin-left: 2.5vw;
    }
    #site_title_logo .site_title h1 {
        font-size: 1.6vw;
    }   
}
@media only screen and (max-width: 599px) {
    #site_title_logo {
        margin-top: 17px;
        margin-left: 15px;
        margin-bottom: 15px;
    }
    #site_logo {
        width: 205px;
        max-width: 100%;
    }
    #site_title_logo .site_title {
        width: 94%;
        margin: 0 auto;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
    }
    #site_title_logo .site_title h1 {
        font-size: 3.5vw;
        font-size: 3.5dvw;
        text-align: center;
        letter-spacing: 0;
        white-space: nowrap;
        font-weight: 900;
        line-height: 1.5em;
        padding: 0.4em 0 0.4em;
        font-family: "Noto Serif JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    }
}

#menu_btn {
    width: 50px;
    height: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
    z-index: 9;
    pointer-events: painted;
}
@media only screen and (max-width: 1024px) {
    #menu_btn {
        top: 4vw;
        right: 3vw;
    }
}
@media only screen and (max-width: 599px) {
    #menu_btn {
        top: 15px;
        right: 15px;
    }
}
.toggle_box {
    position: relative;
    width: 100%;
    height: 23px;
}
.active .toggle_box {
    height: 40px;
    margin-top: -10px;
}
.toggle_box span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #231815;
    transition: background 0.3s ease;
}
.active .toggle_box span {
    background-color: #fff;
}
.toggle_box, .toggle_box span {
    display: inline-block;
    transition: all .5s;
    box-sizing: border-box;
}
.toggle_box span:nth-of-type(1) { top: 0; }
.toggle_box span:nth-of-type(2) { top: 50%; }
.toggle_box span:nth-of-type(3) { bottom: 0; }
.toggle_txt {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    line-height: 1;
    white-space: nowrap;
    position: absolute;
    bottom: 0;
    left: 0.1em;
    width: 100%;
    text-align: center;
    transition: opacity .3s ease;
}
.toggle_txt.menu { opacity: 1; }
.active .toggle_txt.menu { opacity: 0; }
.toggle_txt.close { opacity: 0; }
.active .toggle_txt.close { opacity: 1; color: #fff; font-size: 1.3rem; }

.toggle_box span:nth-of-type(1) {
    animation: bar01 .5s forwards;
}
@keyframes bar01 {
    0% { transform: translateY(20px) rotate(-45deg); }
    100% { transform: translateY(0) rotate(0); }
}
.toggle_box span:nth-of-type(2) {
    animation: bar02 .5s forwards;
}
@keyframes bar02 {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.toggle_box span:nth-of-type(3) {
    animation: bar03 .5s forwards;
}
@keyframes bar03 {
    0% { transform: translateY(-20px) rotate(45deg); }
    100% { transform: translateY(0) rotate(0); }
}
.toggle_box::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    content: '';
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    transition: all .1s;
    opacity: 0;
}
.active .toggle_box::after {
    animation: circle .5s;
}
@keyframes circle {
    0% {
        transform: scale(.1);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}
.active .toggle_box span:nth-of-type(1) {
    animation: active-bar01 .5s .5s forwards;
}
@keyframes active-bar01 {
    0% { transform: translateY(0) rotate(0); }
    100% { transform: translateY(20px) rotate(-45deg); }
}
@keyframes active-bar01sp {
    0% { transform: translateY(0) rotate(0); }
    100% { transform: translateY(16px) rotate(-36deg); }
}
.active .toggle_box span:nth-of-type(2) {
    animation: active-bar02 .5s .5s forwards;
}
@keyframes active-bar02 {
    0% { opacity: 1; }
    100% { opacity: 0; }
}
.active .toggle_box span:nth-of-type(3) {
    animation: active-bar03 .5s .5s forwards;
}
@keyframes active-bar03 {
    0% { transform: translateY(0) rotate(0); }
    100% { transform: translateY(-20px) rotate(45deg); }
}
@keyframes active-bar03sp {
    0% { transform: translateY(0) rotate(0); }
    100% { transform: translateY(-13px) rotate(36deg); }
}

@media only screen and (max-width: 599px) {
    .active .toggle_box {
        height: 30px;
        margin-top: -5px;
    }
    .active .toggle_box span:nth-of-type(1) {
        animation: active-bar01sp .5s .5s forwards;
    }
    .active .toggle_box span:nth-of-type(3) {
        animation: active-bar03sp .5s .5s forwards;
    }
}

/* ナビゲーション */
.nav {
    width: 300px;
    max-height: 100vh;
    overflow-y: auto;
    padding: 120px 0 80px;
    background-color: rgba(184,25,63,0.9);
    border-radius: 0 0 0 30px;
    position: fixed;
    top: 0;
    right: 0;
    transition: transform 0.6s ease;
    transform: translateX(101%);
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px 0;
    pointer-events: painted;
}
.nav.active {
    transform: translateX(0);
}
.nav_btn {
    position: relative;
}
.nav_btn:not(:first-child)::before {
    content: "";
    width: 1px;
    height: 30px;
    background-color: #fff;
    position: absolute;
    top: -45px;
    left: 0;
    right: 0;
    margin: auto;
}
.nav_btn.anker_top::before {
    display: none;
}
.nav_btn a {
    color: #fff;
    text-align: center;
}
.nav_btn a .nav_icon {
    width: 150px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: #fff;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}
.nav_btn a .nav_icon::after {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    border: 2px solid #fff;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: opacity 0.6s ease;
    opacity: 0;
}
.nav_btn a:hover .nav_icon::after {
    opacity: 1;
}
.nav_btn a .txt_1 {
    font-size: clamp(0px, 2.1vh, 1.8rem);
    line-height: 1.3em;
}
.nav_btn a .txt_2 {
    font-size: clamp(0px, 1.8vh, 1.5rem);
    line-height: 1em;
    margin: 1em 0 0.5em;
}
.nav_btn:first-child a .txt_1 {
    font-size: clamp(0px, 2.1vh, 1.8rem);
}
.nav_btn a p {
    transition: opacity 0.6s ease;
    opacity: 1;
}
.nav_btn a:hover p {
    opacity: 0.7;
}
@media only screen and (max-height: 820px) {
    .nav {
        width: auto;
        height: 99vh;
        aspect-ratio: 300 / 820;
        padding: 6vh 0 0;
        gap: 6vh 0;
    }
    .nav_btn:not(:first-child)::before {
        height: 3vh;
        top: -4.5vh;
    }
    .nav_btn a .nav_icon {
        width: 19vh;
    }
}
@media only screen and (max-width: 599px) {
    .nav {
        width: 100%;
        height: 100vh;
        padding: 5vh 0 0;
        gap: 6vh 0;
    }
}


/*-------------------------------------------------------------
footer
-------------------------------------------------------------*/
#footer {
    position: relative;
    margin-top: auto;
}
@media only screen and (max-width: 1024px) {
    #footer-wrapper {
        padding-bottom:55px
    }
}
@media only screen and (max-width: 599px) {
    #footer {
        margin-bottom: 18vw;
        margin-bottom: 18dvw;
    }
}

#footer .foot-inner,#footer-widget-area .footer-widget-layout {
    max-width: 1366px
}
#footer .footer-nav-inner, #sns-box {
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex
}
#footer .foot-inner {
    padding: 3rem 0;
    width: 90%;
    margin: auto;
    position: relative;
    overflow: hidden
}

#footer .foot-inner.footer-max-width {
    max-width: inherit;
}

#footer .footer-nav-inner {
    justify-content: space-between;
}

#footer .footer-nav-inner.inner-1 {
    padding-bottom: 6rem;
}

@media only screen and (max-width: 1024px) {
    #footer .footer-nav-inner.inner-1 {
        padding-bottom:6.25vw;
        padding-bottom:6.25dvw;
    }
}
@media only screen and (max-width: 599px) {
    #footer .footer-nav-inner.inner-1 {
        display:block;
        padding-bottom: 3rem;
    }
}

/* アドレス */
#company-info {
    min-width: 320px;
    max-width: 320px;
}

@media only screen and (max-width: 599px) {
    #company-info {
        min-width:inherit;
    }
}

#company-info .logo {
    width: 100%;
    max-width: 320px;
    margin-bottom: 2.8rem;
}

#company-info .info {
    font-size: 1.2rem;
    line-height: 2.2;
}

/* SNS */
#sns-box {
    justify-content: center
}

#sns-box .icon {
    max-width: 50px;
    flex: 0 1 50px;
    margin: 0 5px
}

#sns-box .icon a {
    display: block;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: .3s ease
}

#sns-box .icon a:hover {
    opacity: .7;
    transition: .3s ease
}

#sns-box .icon.instagram a {
    background-image: url(https://www.mgu.ac.jp/miyagaku_cms/wp-content/themes/mgu/assets/images/icon/icon_insta.svg)
}

#sns-box .icon.twitter a {
    background-image: url(https://www.mgu.ac.jp/miyagaku_cms/wp-content/themes/mgu/assets/images/icon/icon_X.svg)
}

#sns-box .icon.facebook a {
    background-image: url(https://www.mgu.ac.jp/miyagaku_cms/wp-content/themes/mgu/assets/images/icon/icon_facebook.svg)
}

#sns-box .icon.line a {
    background-image: url(https://www.mgu.ac.jp/miyagaku_cms/wp-content/themes/mgu/assets/images/icon/icon_line.svg)
}

#sns-box .icon.youtube a {
    background-image: url(https://www.mgu.ac.jp/miyagaku_cms/wp-content/themes/mgu/assets/images/icon/icon_youtube.svg)
}

/* コピーライト */
#copyright {
    margin: 0 auto
}
#copyright .text {
    font-size: 1.2rem
}
#copyright small {
    color: #fff;
}
.footer-layout02 #copyright,.footer-layout03 #copyright {
    background-color: #b02741;
}
@media only screen and (max-width: 599px) {
    #copyright .text {
        text-align:center;
        font-size: 1rem
    }
}

#footer.footer-layout01 #footer-nav .footer-nav-inner.inner-2 {
    flex-flow: row-reverse
}

@media only screen and (max-width: 599px) {
    #footer.footer-layout01 #footer-nav .footer-nav-inner.inner-2 {
        flex-flow:column
    }
}

@media only screen and (max-width: 599px) {
    #footer.footer-layout01 #footer-nav .footer-nav-inner.inner-2 #sns-box {
        padding-bottom:6rem
    }
}

#footer.footer-layout02 #footer-nav .footer-nav-inner.inner-1 #sitemap .sitemap-nav {
    display: grid;
    grid-template-rows: auto auto auto auto;
    grid-template-columns: auto;
    grid-auto-flow: column;
    grid-column-gap: 4.4rem
}

#footer.footer-layout02 #footer-nav .footer-nav-inner.inner-2 {
    justify-content: flex-end
}

@media only screen and (max-width: 599px) {
    #footer.footer-layout02 #footer-nav .footer-nav-inner.inner-2 {
        justify-content:center;
        padding-top: 3.4rem
    }
}

#footer.footer-layout02 .logo {
    width: 100%;
    max-width: 320px;
    margin-bottom: 2.8rem
}

#footer.footer-layout02 #sub-footer .sub-foot-inner {
    width: 100%;
    padding: 0
}

#footer.footer-layout02 #sub-footer .sub-foot-inner .sub-nav-menu {
    justify-content: flex-start
}

#footer.footer-layout02 #copyright {
    padding: 3rem 1rem;
    text-align: center
}

@media only screen and (max-width: 599px) {
    #footer.footer-layout02 #copyright {
        padding:1.5rem .5rem
    }
}

#footer.footer-layout03 .foot-inner {
    padding: 6rem 0
}

#footer.footer-layout03 #footer-nav {
    display: flex
}

@media only screen and (max-width: 599px) {
    #footer.footer-layout03 #footer-nav {
        display:block
    }
}

#footer.footer-layout03 #footer-nav .footer-nav-inner.inner-1 {
    display: block;
    width: 50%;
    padding-bottom: 0
}

@media only screen and (max-width: 599px) {
    #footer.footer-layout03 #footer-nav .footer-nav-inner.inner-1 {
        width:100%
    }
}

#footer.footer-layout03 #footer-nav .footer-nav-inner.inner-1 #company-info {
    min-width: auto;
    max-width: 100%
}

@media only screen and (max-width: 599px) {
    #footer.footer-layout03 #footer-nav .footer-nav-inner.inner-1 #company-info {
        max-width:235px
    }
}

#footer.footer-layout03 #footer-nav .footer-nav-inner.inner-1 #company-info .info {
    font-size: 1.4rem
}

@media only screen and (max-width: 599px) {
    #footer.footer-layout03 #footer-nav .footer-nav-inner.inner-1 #company-info .info {
        font-size:1.2rem
    }
}

#footer.footer-layout03 #footer-nav .footer-nav-inner.inner-2 {
    justify-content: flex-end;
    width: 50%
}

@media only screen and (max-width: 599px) {
    #footer.footer-layout03 #footer-nav .footer-nav-inner.inner-2 {
        width:100%;
        justify-content: center;
        padding-top: 3rem
    }
}

#footer.footer-layout03 .logo {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem
}

@media only screen and (max-width: 599px) {
    #footer.footer-layout03 .logo {
        max-width:235px
    }
}

#footer.footer-layout03 .logo a {
    display: block;
    width: 100%
}

#footer.footer-layout03 #sub-footer .sub-foot-inner {
    width: 100%;
    padding: 0
}

#footer.footer-layout03 #sub-footer .sub-foot-inner .sub-nav-menu {
    justify-content: flex-start
}

#footer.footer-layout03 #copyright {
    padding: 1.5rem 1rem;
    text-align: center
}

@media only screen and (max-width: 599px) {
    #footer.footer-layout03 #copyright {
        padding:1.5rem .5rem
    }
}


/*-------------------------------------------------------------
PAGE TOP
-------------------------------------------------------------*/
#pagetop {
    display: block;
    position: fixed;
    right: 10px;
    bottom: 60px;
    width: 73px;
    aspect-ratio: 1 / 1;
    z-index: 5;
    opacity: 0;
    transform: translateY(110px);
    transition: opacity 1s, transform 1s;
}
#pagetop.show {
    opacity: 1;
    transform: translateY(0px);
}
#pagetop a {
    display: block;
    transition: opacity 0.3s;
}
#pagetop a:hover {
    opacity: .5;
}

@media only screen and (max-width: 1366px) {
    #pagetop {
        max-width: 7vw;
    }
}
@media only screen and (max-width: 599px) {
    #pagetop {
        right: 5px;
        bottom: 20vw;
        max-width: 10vw;
    }
}






/*-------------------------------------------------------------
print
-------------------------------------------------------------*/
@page {
    size: A4 portrait;
}
@media print {
    * {
        text-shadow: none !important;
        box-shadow: none !important;
    }
    html, body {
        width: 1100px;
        height: auto;
        -webkit-print-color-adjust: exact;
        size: A4 landscape;
        page-break-after: auto;
    }
    header {
        position: relative !important;
    }
    .nav {
        position: absolute;
    }
}