@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body, html {
  overflow: hidden;
  margin: 0;
  padding: 0;
  height: 100%;
}


body {
    font-family: "Montserrat", sans-serif;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    margin: 0;
    background-color: black;
    color: white;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
}

.nametitle {
    margin-left: 10px;
    text-align: right;
    width: 100%;
    max-width: 150px;
    padding: 20px;
    line-height: 8px;
}

.nametitle h3 {
    font-size: 24px;
    letter-spacing: 2.5px;
    margin-bottom: 17px;
    margin-left: 40px;
}

.subtitle {
    /* タイピングの刻み数(サブタイトルの文字数に合わせるとキレイに出る) */
    --chars: 26;
    position: relative;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
    width: max-content;
    clip-path: inset(0 100% 0 0);
    animation: typing 2s steps(var(--chars)) 1s forwards;
}

/* タイピングカーソル(文字の表示位置に追従) */
.subtitle::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: 1px;
    background: white;
    animation: cursor-move 2s steps(var(--chars)) 1s forwards,
               blink 0.7s step-end infinite;
}

@keyframes typing {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes cursor-move {
    from { right: 100%; }
    to { right: 0; }
}

@keyframes blink {
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .subtitle {
        clip-path: none;
        animation: none;
    }

    .subtitle::after {
        display: none;
    }
}

.footer {
    text-align: center;
    margin-top: auto;
    margin-bottom: 24px;
    font-size: 12px;
}

.links p {
    border-radius: 8px;
    padding: 9px 30px;
    font-size: 12px;
    -webkit-box-shadow:0px 0px 75px 0px rgba(89,92,91,0.9);
    -moz-box-shadow: 0px 0px 75px 0px rgba(89,92,91,0.9);
    box-shadow: 0px 0px 75px 0px rgba(89,92,91,0.9);
    color: white;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(8px);
    transition: background-color 0.2s ease-in, color 0.2s ease-in, box-shadow 0.2s ease-in;
}

.links a {
    color: white;
    text-decoration: none;
}

.links p img {
    position: relative;
    left: -12px;
    top: -1px;
    vertical-align: middle;

}

.links p:hover {
    background-color: white;
    color: black;
    -webkit-box-shadow:0px 0px 75px 0px rgba(165, 73, 173, 0.9);
    -moz-box-shadow: 0px 0px 75px 0px rgba(165, 73, 173, 0.9);
    box-shadow: 0px 0px 75px 0px rgba(165, 73, 173, 0.9);
}

.links p:hover img {
    filter: invert(1);
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}