* {
    font-family: "Kiwi Maru", serif;
    font-optical-sizing: auto;
    font-style: normal;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100dvh;
    font-family: sans-serif;
    background-color: none;
    overflow: visible;
    background-color: #80796C;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body{
    overflow: hidden;
}

h1 {
    font-size: 5vh;
    margin: 0;
    color: black;
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
}

p {
    font-size: 3vh;
    margin: 0;
    height: auto;
    text-decoration: underline;
}

.contents {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.main-content {
    height: 60dvh;
    width: 80vw;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background-color: #D7CEBB;
    border: 8px double #AFA07F;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2dvh;
}

.sub-content {
    height: 10dvh;
    width: 80vw;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

#contents1,
#contents2 {
    position: relative;
    overflow: hidden;
    height: 20%;
    width: 90%;
    font-size: 5vh;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 4px 8px 5px rgba(0, 0, 0, 0.1);
    background-color: #5B5C76;
    color: white;
    text-decoration: underline;
    transition: transform 0.1s ease;
}


#contents1::before,
#contents2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    pointer-events: none;
    opacity: 0;
}

#contents1.shine::before,
#contents2.shine::before {
    animation: shine 1s ease-in-out;
    opacity: 1;
}

@keyframes shine {
    0% {
        left: -60%;
        opacity: 1;
    }

    50% {
        left: 120%;
        opacity: 1;
    }

    100% {
        left: 120%;
        opacity: 0;
    }
}

/* ButtonEffect */
#contents1:active {
    transform: scale(0.95);
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.3);
    background-color: #e0e0e0;
    /* 押された感を出す */
}
#contents2:active {
    transform: scale(0.95);
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.3);
    background-color: #e0e0e0;
    /* 押された感を出す */
}

#contents3 {
    background-color: #5B5C76;
    border: 6px double rgb(255, 255, 0);
    color: white;
    border-radius: 10px;
    box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.1);
    font-size: 1.5vh;
    width: 50vw;
    text-decoration: none;
    cursor: pointer;
    padding: 5px;
}

#contents4 {
    z-index: 0;
    font-size: 1.5vh;
    color: blue;
    width: 40vw;
    text-decoration: none;
    cursor: pointer;
    padding: 5px;
    border: 4px;
    border-radius: 10px;
    box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.1);
}

/* TapEffect */
.tap-effect {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(219, 219, 219, 0.5);
    border-radius: 50%;
    transform: scale(0);
    animation: tapAnimation 0.5s ease-out forwards;
}

@keyframes tapAnimation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/*  */
.toggle-button {
    display: flex;
    align-items: center;
    position: absolute;
    top: 10px;
    /* 上からの距離 */
    right: 10px;
    /* 右からの距離 */
}

.toggle-button .japan {
    /* color: red; */
    padding: 0 10px;
    position: relative;
}

.toggle-button .japan::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: white;
}

.toggle-button .global {
    /* color: black; */
    padding: 0 10px;
}

.background-animation{
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    z-index: -1;
}

.moving-image {
    z-index: -1;
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none;
    animation: Move linear;
}

@keyframes Move {
    0% {
        transform: translateX(-100px);

    }

    100% {
        transform: translateX(110vw);

    }
}