@charset "utf-8";

* {
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;

    background-color: #fdfdfd;

    /* 方眼紙模様に必須のスタイル */
    background-image: linear-gradient(0deg, transparent calc(100% - 1px), #EFF0F3 calc(100% - 1px)),
        linear-gradient(90deg, transparent calc(100% - 1px), #EFF0F3 calc(100% - 1px));
    background-size: 16px 16px;
    background-repeat: repeat;
    background-position: center center;

    /* 以下任意のスタイル */
    padding: 20px;
}

img {
    width: 100%;
}

li {
    list-style: none;
}

a {
    display: block;
    text-decoration: none;
}

a:hover {
    opacity: .5;
}

/* 共通部分（文字関係）------------------- */
html,
a {
    color: #0D1F3D;
    font-family: "M PLUS 1p", sans-serif;
}

.wrapper {
    width: 95%;
    margin: auto;
    text-align: center;
}

.section-ttl {
    font-size: 2rem;
    font-weight: 900;
}

.about-ttl {
    font-size: 1.5rem;
    font-weight: 900;
}

.content-box p {
    font-weight: bold;
    font-size: 1rem;
    line-height: 1rem;
}

.content-box span {
    font-weight: normal;
    font-size: .875rem;
    line-height: .875rem;
}

/* 共通部分（ボタン）------------------- */
.btn {
    text-decoration: underline;
}

.btn:hover {
    opacity: .5;
}

/* 共通部分（余白）------------------------ */
#works,
#about,
#profile,
#skills {
    background-color: #fdfdfd;
}

#works,
#about,
#contact,
#profile,
#skills {
    margin-top: 4rem;
    padding: 2rem 1rem;
}





/* ヘッダーメニュー---------------------------- */
header {
    position: fixed;
    top: 0;
    right: 0px;
    z-index: 20;
    height: 4rem;
}

.nav-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border: none;
    cursor: pointer;
    z-index: 999;
}


.header-icon {
    width: 40px;
    margin: 10px auto;
}

/* ハンバーガーボタン内の線の設定 */
.nav-btn span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.75rem;
    height: 2px;
    transform: translateX(-50%);
    background-color: #0D1F3D;
}

.nav-btn span:first-child {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 0.5rem));
    transition: transform 0.1s ease;
}

.nav-btn span:last-child {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 0.5rem));
    transition: transform 0.1s ease;
}

/* 展開時のデザイン */
.nav-btn.is-active .header-icon {
    opacity: 0;
}

.nav-btn.is-active span:first-child {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg);
}


.nav-btn.is-active span:last-child {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg);
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, .5);
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease;
}

.main-nav.is-active {
    opacity: 1;
    visibility: visible;
}

.main-nav-inner {
    position: relative;
    width: 80%;
    height: 100%;
    background-color: white;
    padding: 6rem 1.5rem 1rem;
    margin: 0 0 0 auto;
    overflow: scroll;
    transform: translateX(100%);
    /* メニューの横部分を横にスライドさせている。 */

    transition: transform .3s ease;
}

.main-nav.is-active .main-nav-inner {
    transform: translateX(0);
}

.main-nav ul li a {
    color: #0D1F3D;
    text-align: center;
    height: 6rem;
    font-weight: bold;
    font-size: 2rem;
    line-height: 1.5rem;
}

.main-nav ul li a span {
    font-size: 1rem;
}





/* メインビジュアル---------------------- */
.main-visual {
    height: 85vh;
    padding-top: 25vh;
}






/* Works----------------------------- */

/* タブメニュー----------------------- */
.tab {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.tab>label {
    flex: 1 1;
    order: -1;
    font-size: 1.25em;
    font-weight: 900;
    text-align: center;
    cursor: pointer;
}

.tab>label:hover {
    opacity: .5;
}

.tab input {
    display: none;
}

.tab>div {
    display: none;
    width: 100%;
    padding: 0 1em;
}

.tab label:has(:checked) {
    color: #EB6100;
}

.tab label:has(:checked)+div {
    display: block;
}


.tab a {
    margin: 1rem 0 3rem;
    transition: all .2s;
}






/* Work詳細ページ----------------------------- */
.work-details {
    padding: 3rem 1rem;
    background-color: #fdfdfd;
    text-align: left;
    display: grid;
    gap: 2rem;
}

.work-ttl {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.5rem;
}

.work-ttl span {
    font-size: 0.875rem;
    font-weight: normal;
}


.work-btn {
    color: #EB6100;
    text-align: center;
}

.work-btn img {
    width: 1rem;
}



.work-description p:first-of-type {
    font-weight: bold;
    font-size: 1.25rem;
}

.work-description p:last-of-type {
    font-weight: normal;
    font-size: 0.75rem;
}

.work-details table {
    font-size: 0.875rem;
}

.work-details th {
    vertical-align: top;
}


.back-btn {
    color: #EB6100;
    font-weight: 900;
    font-size: 1.25rem;
    text-align: right;
}




/* Aboutページ------------------------------------------ */
#about img {
    padding: 0 1em;
}

.profile-description,
.skills-description {
    text-align: left;
}

#skills {
    display: grid;
    gap: 2rem;
}

.skills-description p {
    padding: .5rem 0;
}


.tool-icon {
    width: 45px;
    height: 45px;
}


.skills-icon {
    aspect-ratio: 1/1;
    /* border-radius: 0px 80px; */
}









/* footer----------------------------- */
footer {
    background-color: #0D1F3D;
    color: #fdfdfd;
    text-align: center;
}

footer a {
    color: #fdfdfd;
    padding-bottom: 5rem;
}

footer p {
    margin: 2rem 0;
}







/* メディアクエリー------------------------------- */
@media (min-width: 768px) {
    .nav-btn {
        display: none;
    }
}


/* ナビ */

.nav_wrapper{
    position: fixed;
    z-index: 5;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    .nav_list{
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: calc((100% - 450px) / 5);
        z-index: 5;
        li{
            margin-bottom: 2rem;
            border-radius: 10px;
            a{
                padding: 1rem 2rem;
                font-weight: 700;
                font-size: 1.5rem;
                color: #0D1F3D;
            }
        }
    }
    @media screen and (max-width:768px){
        display: none;
    }
}



/* コンテンツ */
.article{
    max-width: 450px;
    margin: 0 auto;
    position: relative;
}
