html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    font-family:
        "BIZ UDPGothic",
        "Hiragino Sans",
        "Yu Gothic UI",
        "Meiryo",
        sans-serif;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

* {
    /* scrollbar-width: thin; */
}

p {
    line-height: 2;
}

main {
    padding-inline: clamp(16px, 250px, 250px);
}

.logo {
    width: 160px;
    margin: 10px 20px;
}

#header {
    display: flex;
    justify-content: space-between;
    background: #9f9f9f;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    height: 70px;
    transition: background 0.2s;
}

#header a {
    text-decoration: none;
    color: #f1f1f1;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: text-shadow 0.2s;
}

#header a:hover {
    color: #333;
}

#header.transparent {
    /* background: rgba(0, 0, 0, 0.03); */
    background: none;
    backdrop-filter: none;
}

#header.transparent a {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 1);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-right: 15px;
}

.content img {
    background: #fff;
    width: 285px;
    height: 285px;
    object-fit: cover;
    border-radius: 4px;
}

.content {
    max-width: 315px;
    background: #d1d1d1;
    padding: 0 10px;
    padding-top: 30px;
    padding-bottom: 50px;
    transition: background 0.2s;
    border-radius: 4px;
    margin: 0 25px;
    margin-bottom: 50px;
    max-height: 400px;
    transition: transform 0.2s, background 0.2s;
}

.content:hover {
    background: #bbb;
    transform: scale(105%);
}

.content a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

.alt {
    color: #555;
    font-size: 0.8rem;
    line-height: 1.2;
}

.contents {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    align-items: center;
    text-align: center;
    user-select: none;
}

.icon {
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 300px;
    margin-right: 50px;
}

#about {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.toplogo {
    width: 1000px;
    max-width: calc(100vw - 32px);
    margin: 0;
    user-select: none;
}

.topimg {
    height: 100%;
    overflow: hidden;
}

.topimg img {
    position: relative;
    object-fit: cover;
    width: 100%;
    height: 100vh;
    object-position: center 30%;
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.title p {
    font-size: 1.4rem;
    color: #fff;
    font-weight: bold;
    user-select: none;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.top {
    /* margin-top: 70px; */
    margin-bottom: 50px;
    position: relative;
    display: block;
}

.top.fstvew {
    /* height: calc(100vh - 70px); */
    height: 100vh;
}

.next {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    animation: arrowMove 1.5s ease-in-out infinite;
    text-align: center;

}

.next a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.next span {
    font-size: 3rem;
    color: #fff;
    font-weight: bolder;
    text-decoration: none;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.next p {
    color: #fff;
    font-weight: bold;
    margin: 0;
    margin-left: 1px;
}

@keyframes arrowMove {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

.titlesub {
    font-weight: 500 !important;
    font-size: 1rem !important;
    max-width: 90vw;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
}

#backtotop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: .25s;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s;
}

#backtotop.show {
    opacity: 1;
}

#backtotop:hover {
    transform: translateY(-3px);
}

#backtotop a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    transform: rotate(180deg);
}

h1 {
    color: #333;
}

h2 {
    color: #333;
    padding: 5px;
    padding-left: 16px;
    background: #f5f8fc;
    border-left: 8px solid #9fdfff;
    border-radius: 2px;
}

.copyright {
    color: #555 !important;
    font-size: 0.6rem;
    position: absolute;
    bottom: 170px;
    right: 20px;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background: #9f9f9f;
    padding: 50px 0;
    padding-inline: 250px;
}

.banners {
    display: flex;
    flex-direction: column;
}

.banner {
    width: 250px;
    transition: filter 0.2s;
}

.banner:hover {
    filter: brightness(0.8);
}

footer ul {
    list-style: none;
    padding-left: 0;
}

.footlogo {
    width: 300px;
}

.category {
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #333;
}

.linklist {
    display: flex;
    flex-direction: row;
}

footer div {
    margin-right: 50px;
}

.copy {
    color: #fff;
    user-select: none;
    font-size: 0.8rem;
}

.logocopy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    user-select: none;
}

.hamb {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 38px;
    height: 38px;
    margin: auto 0;
}

.hamb span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #f5f8fc;
    border-radius: 3px;
}

.menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 100;
    box-shadow: 0 5px 5px #9f9f9f;
}

.menu.open a {
    padding: 12px 24px;
    border-radius: 0;
}

.menu {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.easyprofile {
    margin-left: 20px;
}

.important {
    color: #ff3e25;
}

.content {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
    /* justify-self: center; */
}

.content.show {
    opacity: 1;
    transform: translateY(0);
}

.menu.open {
    transition: background 0.2s;
}

@media (min-width: 999px) {
    main {
        padding-inline: clamp(16px, 50px, 50px);
    }
}

@media (min-width: 1699px) {
    main {
        padding-inline: clamp(16px, 200px, 200px);
    }
}

@media (max-width: 1200px) {
    .contents {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .logo {
        margin: 10px 0;
    }

    footer {
        display: flex;
        flex-direction: column;
    }

    footer div {
        margin-right: 0;
    }

    .logocopy a {
        padding-top: 10px;
    }

    .logocopy {
        order: 4;
    }

    .linklist {
        order: 2;
    }

    .banners {
        order: 3;
    }
}

@media (max-width: 1500px) {
    .contents {
        grid-template-columns: repeat(3, 1fr);
    }

    footer {
        padding-inline: 150px;
    }
}

@media (max-width: 601px) {
    .hamb {
        display: flex;
    }

    .menu {
        display: none;
    }

    .contents {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    #about {
        flex-direction: column;
    }

    main {
        padding-inline: 10px;
    }

    footer {
        padding: 20px;
        flex-direction: column;
    }

    .easyprofile {
        margin-left: 0;
    }

    .icon {
        margin-right: 0;
        margin: 0 auto;
    }

    .title p {
        font-size: 1rem;
    }

    .logo {
        margin: 10px 0;
    }

    footer div {
        margin-right: 0;
    }

    .logocopy a {
        text-align: center;
        padding-top: 10px;
    }

    .logocopy p {
        text-align: center;
    }

    .logocopy {
        order: 4;
    }

    .linklist {
        order: 2;
    }

    .banners {
        order: 3;
    }

    #header a {
        color: #333;
        text-shadow: none;
        margin: 5px 0;
    }

    #header.transparent {
        background: rgba(0, 0, 0, 0.3);
    }

    #header.transparent a {
        color: #f1f1f1;
        text-shadow: none;
        margin: 5px 0;
    }

    #header.transparent ul {
        background: rgba(0, 0, 0, 0.3);
        box-shadow: none;
    }
}