@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* 
    .noto-sans-jp-<uniquifier> {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}
    .source-code-pro-<uniquifier> {
    font-family: "Source Code Pro", monospace;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}
*/
:root {
    --font-mono: 'Roboto Mono', monospace;
    --font_size_standard: 1.4rem;
}
html {
    scroll-behavior: smooth;
    font-size: 62.5%;
    color: #000;
}
body {
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: var(--font_size_standard);
}
a {
    color: #000;
    text-decoration: underline;
    &:hover {
        text-decoration: underline;
    }
}
img{
    width: 100%;
}
h1 {
    font-size: 5.0rem;
    font-weight: bold;
}
h2 {
    margin: 70px 0;
    position: relative;
    font-family: "Source Code Pro", monospace;
    font-optical-sizing: auto;
    font-size: 2.8rem;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    &::before {
        position: absolute;
        content: attr(data-jp);
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.0rem;
        font-weight: normal;
    }
}
p {
    font-size: var(--font_size_standard);
}
@media only screen and (max-width: 767px) {
    h1 {
        font-size: 3.0rem;
    }
    h2 {
        margin: 50px 0;
        font-size: 2.5rem;
    }
}
.slideUp {
    animation: slideinBottom 2s 1;
}
@keyframes slideinBottom {
    0% {
        transform: translateY(50px);
    }
    100% {
        transform: translateY(0);
    }
}
.material-symbols-outlined {
    vertical-align: -5px;
}
.form-control,
.btn {
    font-size: var(--font_size_standard);
}
/*** ナビゲーション ***/
header {
    width: 100%;
    position: fixed;
    background-color: #fff;
    z-index: 999;
}
nav {
    font-family: "Source Code Pro", monospace;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 1.   6rem;
    & > ul {
        margin: 0;
        padding: 10px 0;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        color: #000000;
        & > li {
            padding: 0 10px;
            display: inline-block;
            text-decoration: none;
        }
        & > li > a,
        & > li > a:hover {
            text-decoration: none;
        }
        & > li > a:hover {
            border-bottom: 0.05rem solid #000;
        }
    }
}
@media only screen and (max-width: 767px) {
    nav > ul {
        font-size: 1.4rem;
    }
    nav > ul > li {
        padding: 0 6px;
        &::before,
        &::after {
            content: none;
        }
    }
}
footer {
    width: 100%;
    padding: 5px 20px;
    text-align: center;
    font-size: 11px;
    font-weight: 200;
    position: sticky;
    top: 100vh;
}

/*** コンテンツ ***/
.contents {
    max-width: 920px;
    margin: 0 auto 30px;
    animation: fadeIn 3s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
section {
    margin: 0 20px;
    padding: 50px 0 0;
    line-height: 2;
}
/* タイトル */
.site-title {
    min-height: 92vh;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.site-title__logo {
    white-space: nowrap;
    font-family: "Source Code Pro", monospace;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    /* ロゴの設定 */
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 6.0rem;
    line-height: 1.2;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
}

/*** ABOUT/私について ***/
ol.history {
    list-style: none;
}
.tag-list {
    list-style: none;
    & > li {
        margin: 0 5px;
        display: inline-block;
        &::before {
            margin-right: 3px;
            font-family: 'Material Icons';
            content: '\f05b';
            color: #ffa000;
        }
    }
}
/*** WORKS/実績 ***/
.works {
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    & > div {
        width: 30%;
        margin-bottom: 4.0rem;
        overflow-wrap: break-word;
    }
    & > div:not(:nth-of-type(3n)) {
        margin-right: 5%;
    }
    & > div > a:first-of-type {
        margin-bottom: 10px;
        display: block;
        border: 1px solid #dcdcdc;
        border-radius: 7px;
    }
    & p {
        margin-top: 1.0rem;
        font-size: 0.9em;
        font-weight: bold;
        line-height: 1;
    }
}
@media only screen and (max-width: 767px) {
    .works {
        flex-direction: column;
        & > div {
            width: 100%;
            margin-bottom: 2.0rem;
        }
        & > div:not(:nth-of-type(3n)) {
            margin-right: 0;
        }
    }
}

/*** CHATBOT ***/
#chatFrame{
    position: fixed;
    bottom: 75px;
    right: 20px;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    animation: slideIn 0.5s 1;
}
@media screen and (max-width: 767px){
    #chatFrame{
        right: 0;
    }
}
@keyframes slideIn{
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideOut{
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(50px);
    }
}
#chatButton{
    position: fixed;
    bottom: 15px;
    right: 15px;
    border-radius: 50%;
    > span {
        padding: 5px 3px;
    }
}
