@import url('https://fonts.googleapis.com/css?family=Noto+Serif+JP');

body {
  min-width: 320px;
}

/* #region: header1 (3 ~ 20) */
    .header1 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        padding: 10px 20px;
    }
    .header1 .univ-logo img {
        height: 40px;
        display: block;
    }
    .header1 .English a {
        text-decoration: none;
        color: #444;
        font-size: 1rem;
    }
/* #endregion */

/* #region: header2 (22 ~ 68) */
    .header2 {
        position: relative;
        background: url("../img/header3.png") center/cover no-repeat;
        color: #000;
        text-align: left;
        padding: 30px 20px 40px;
    }
    .header2 h1 {
        font-size: 2rem;
        margin-bottom: 0.5em;
        font-family: 'Noto Serif JP', sans-serif;
        color: rgba(0,0,0,1);
        text-shadow: 0 0 3px white, 
                     0 0 6px white, 
                     0 0 9px white,
                     0 0 12px white, 
                     0 0 15px white,
                     0 0 18px white;
    }
    .header2 h2 {
        font-size: 1.25rem;
        font-style: italic;
        font-family: 'Orbitron';
        text-shadow: 0 0 3px white, 
                     0 0 6px white, 
                     0 0 9px white,
                     0 0 12px white, 
                     0 0 15px white,
                     0 0 18px white;
    }
    @media screen and (max-width: 500px) {
        .header2 h1 {
            font-size: 1.3rem;
        }

        .header2 h2 {
            font-size: 0.8rem;
        }
    }
    .navigation {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 10;
    }
    .navigation ul {
        display: flex;
        list-style: none;
        padding: 0px 15vw 0px;
        margin: 0px 0px 0px;
    }
    .navigation li {
        flex: 1;
        text-align: center;
    }
    .navigation a {
        display: block;
        padding: 10px 10px;
        color: #fff;
        text-decoration: none;
        font-size: 1rem;
        transition: background-color 0.3s ease;
    }
    .navigation a:hover {
        background-color: rgba(0,0,0,0.5);
    }
/* #endregion */

/* #region: footer (71 ~ 103) */
    .footer {
        background: #fff;
        padding: 20px;
        color: #333;
    }
    .footer-content {
        display: flex;
        justify-content: space-between;
        border-top: 2px dotted #333;
        padding-top: 20px;
    }
    .footer-left p,
    .footer-right p {
        margin: 0 0 0.5em;
        line-height: 1.5;
    }
    .footer-name {
        font-size: 1.5rem;
        margin-bottom: 0.5em;
    }
    .footer-bottom {
        text-align: center;
        margin-top: 0px;
        padding-top: 10px;
        font-size: 0.9rem;
        color: #666;
    }
    @media (max-width: 500px) {
        .footer-content {
            flex-direction: column;
            align-items: center;
        }
        .footer-left,
        .footer-right {
            text-align: center;
            width: 100%;
        }
        .footer-content > div {
            margin-bottom: 15px;
        }
        .footer-content > div:last-child {
            margin-bottom: 0;
        }
        .footer-name {
            font-size: 1.25rem;
        }
    }
/* #endregion */

/* #region: link-bar (105 ~ ) */
    .footer-links {
        display: flex;
        gap: 14px;
        margin: 0 auto;
        width: 100%;
        align-items: center;
        justify-content: center;
        max-width: 12vw;
    }
    .footer-links img {
        width: 12vw;
        height: auto;
        display: block;
        margin: 0 auto;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        border-radius: 8px;
    }
    .footer-links img:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    }
    .footer-links a {
        width: auto;
    }
    @media (max-width: 500px) {
        .footer-links {
            flex-direction: column;
            width: 250px;
        }
        .footer-links img {
            width: 250px;
            padding: 10px 10px;
        }
    }
/*  #endregion */

.hamburger-icon {
    display: none;
    position: absolute;
    top: 30px;
    right: 20px;
    z-index: 100;
    cursor: pointer;
}

.hamburger-icon span {
    font-size: 2.5rem;
    line-height: 1;
}

.hamburger-icon__open {
    color: #000;
}

.hamburger-icon__close {
    display: none;
    color: #fff;
}

.hamburger-icon.active .hamburger-icon__open {
    display: none;
}
.hamburger-icon.active .hamburger-icon__close {
    display: block;
}

@media screen and (max-width: 500px) {
    .header2 .navigation {
        background: none;
        position: static;
    }
    .header2 .navigation ul {
        display: none;
    }
    .hamburger-icon {
        display: block;
    }
    .hamburger-icon{
        background: rgba(255,255,255,.96);
        padding: 6px 10px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
    }
    .navigation.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: transparent;
        z-index: 50;
        pointer-events: auto;
    }
    .navigation.active ul {
        display: block;
        max-width: 200px;
        margin: 80px auto 30px;
        padding: 8px 0;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 10px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.25);
        list-style: none;
        transition: transform 0.18s ease, opacity 0.18s ease;
        transform-origin: top center;
    }
    .navigation.active ul li {
        text-align: center;
        margin: 0;
    }
    .navigation.active ul li a {
        display: block;
        padding: 14px 20px;
        font-size: 1.15rem;
        color: #fff;
        text-decoration: none;
        transition: background-color 0.18s ease, color 0.18s ease;
    }

    .navigation.active ul li a:hover,
    .navigation.active ul li a:focus {
        background-color: rgba(255, 255, 255, 0.9);
        color: #e6e6e6;
        outline: none;
    }
    .navigation.active ul li a:hover {
    }
    .hamburger-icon__close {
        color: #000;
    }
}