@charset "utf-8";

* {
    box-sizing: border-box;
}

:root {
    --color-primary: rgb(0, 78, 162);
    --color-write: #ffffff;
}

body {
    overflow-x: hidden;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
p,
li,
a {
    font-family: "Noto Sans JP", sans-serif;
}

.wrapper {
    width: 100%;
    height: auto;
}

.header {
    width: 100%;
    height: 100vh;
    background-image: url(../img/main_sp.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
}

.main-description {
    width: 80%;
    height: auto;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    
}

.title {
    display: flex;
    justify-content: center;
}

.top-p-img {
    width: 90%;
    height: auto;
    margin-top: 3rem;
}

.portfolio-link-button {
    color: var(--color-write);
    background-image: linear-gradient(90deg, #833ab4, #fd1d1d 50%, #fcb045);
    border-radius: 30px;
}

.portfolio-link-button:hover {
    transform: translateY(5px);
    opacity: 60%;
    transition: ease 0.5s;
}

.next {
    display: inline;
    width: 100%;
    max-width: 25px;
    height: auto;
    margin-left: 0.5rem;
}

.portfolio-link-sp,
.Youtube-link-sp {
    font-size: 0.8rem;
    display: block;
    width: 80%;
    margin: 1.5rem auto;
    padding: 15px;
    text-decoration: none;
    text-align: center;
    box-shadow: 1px 4px 3px rgba(71, 71, 72, 0.6);
}

.portfolio-link-sp:hover,
.Youtube-link-sp:hover {
    background-color: #808080;
}

.portfolio-link-pc,
.Youtube-link-pc {
    display: none;
}

.content-container {
    width: 90%;
    max-width: 1080px;
    margin: 0 auto;
}

.container {
    margin: 1.5rem auto 0;
}

.mc-img {
    width: 100%;
    object-fit: cover;
}

.description {
    line-height: 1.75;
}

.description p {
    padding: 2.4rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    text-align: justify;
    text-justify: inter-ideograph;
}

.gallery {
    margin: 1.5rem 0;
}

.gallery .wrap_pc {
    display: none;
}


.wrap_sp img{
width: 100%;
}

.wrap_sp {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
    grid-template-areas:
        "img01 img01 img02 img02 img03 img03"
        "img04 img04 img04 img05 img05 img05"
        "img06 img06 img07 img07 img08 img08"
        "img09 img09 img09 img09 img09 img09"
        "img10 img10 img10 img11 img11 img11"
        "img12 img12 img12 img13 img13 img13"
        "img14 img14 img14 img14 img14 img14"
        "img15 img15 img16 img16 img17 img17";
}

.img01 img,.img02 img,.img03 img,.img15 img,.img16 img,.img17 img{
object-fit: cover;
aspect-ratio: 1 / 1.4;
}

.img04 img,.img05 img,.img10 img,.img11 img,.img12 img,.img13 img{
    object-fit: cover;
    aspect-ratio: 1.8 / 1;
    }

    .img06 img,.img07 img,.img08 img{
        object-fit: cover;
        aspect-ratio: 1 / 1.4;
        }

.img01 {grid-area: img01;}
.img02 {grid-area: img02;}
.img03 {grid-area: img03;}
.img04 {grid-area: img04;}
.img05 {grid-area: img05;}
.img06 {grid-area: img06;}
.img07 {grid-area: img07;}
.img08 {grid-area: img08;}
.img09 {grid-area: img09;}
.img10 {grid-area: img10;}
.img11 {grid-area: img11;}
.img12 {grid-area: img12;}
.img13 {grid-area: img13;}
.img14 {grid-area: img14;}
.img15 {grid-area: img15;}
.img16 {grid-area: img16;}
.img17 {grid-area: img17;}

.title-day-sp {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 3rem auto;
}

.day {
    font-size: 0.8rem;
    margin-bottom: 50px;
}

.day .label {
    text-align-last: justify;
    width: 7rem;
    font-weight: bold;
    position: relative;
    padding-right: 0.8rem;
    border-right: 1px solid #333;
}

.day .label-none {
    border-right: none;
}

.day .row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.day .text {
    flex: 1;
}

.day .note {
    font-size: 0.5rem;
}


.overview-container iframe {
    width: 100%;
    height: 25vh;
}

.map-caption {
    font-size: 0.7rem;
    margin-bottom: 80px;
}

.footer-content {
    display: flex;
    flex-wrap: nowrap;
}

.yda-logo {
    width: 85%;
    max-width: 400px;
    margin: 0 auto;
}

.header-portfolio {
    height: 100%;
    padding: 2.5vh 0 3.5vh;
    background-color: var(--color-primary);
}

.header-portfolio-content {
    display: flex;
    flex-wrap: nowrap;
}

.portfolio-top {
    margin: 1rem;
}

.link-wrapper {
    width: 90%;
    margin: 1rem auto 0;
    padding: 0 0 2rem 0;
}

.portfolio-description {
    width: 100%;
    padding: 1.5rem;
    background-color: #000000;
}

.portfolio-description h1 {
    text-align: center;
    font-weight: 400;
    color: #ffffff;
}

.link-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-link {
    text-align: center;
}

.portfolio-link li {
    margin: 1.25rem 0;
}

.portfolio-link a {
    display: inline-block;
    width: 200px;
    height: 50px;
    padding: 0.7rem;
    background-color: var(--color-primary);
    color: var(--color-write);
    border-radius: 5px;
    text-decoration: none;
}

.portfolio-link a:hover {
    background-color: #48bef5;
    transition: background-color 0.5s ease;
}

.notice {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-top: #333 3px double;
    border-bottom: #333 3px double;
    padding: 1rem;
}

.footer-portfolio {
    width: 100%;
    margin-top: 3rem;
    height: 10vh;
    background-color: #333;
}

@media screen and (min-width:1024px) {
    .header {
        background-image: url(../img/PC-main.webp);
    }

    .top-p-img {
        width: 100%;
        max-width: 1200px;
        height: auto;
        padding: 0 20px;
        margin-top: 2rem;
    }

    .main-description {
        width: 400px;
        height: auto;
        position: absolute;
        top: 30%;
        left: 76%;
    }

    .portfolio-link-pc {
        font-size: 1.25rem;
        display: block;
        position: absolute;
        width: 38%;
        margin: 0 0 3% 0;
        padding: 15px;
        text-decoration: none;
        text-align: center;
        top: 70%;
        left: 57%;
    }

    .Youtube-link-pc {
        font-size: 1.25rem;
        display: block;
        position: absolute;
        width: 35%;
        padding: 15px;
        background-color: var(--color-write);
        color: #000000;
        border-radius: 20px;
        text-decoration: none;
        text-align: center;
        top: 83%;
        left: 49%;
    }

    .portfolio-link-pc:hover,
    .Youtube-link-pc:hover {
        background-color: #d3d3d3;
    }

    .portfolio-link-sp,
    .Youtube-link-sp {
        display: none;
    }

    .next {
        width: 100%;
        max-width: 40px;
        height: auto;
        margin-left: 0.6rem;
    }

    .description {
        width: 100%;
        line-height: 1.75;
    }

    .description p {
        font-size: 0.95rem;
        padding: 2.43rem 0;
        font-size: 1.3rem;
        font-weight: 600;
    }

    .title-day-sp {
        min-width: 600px;
        margin: 2rem 0;
    }

    .gallery .wrap_sp {
        display: none;
    }

    .gallery .wrap_pc {
        display: flex;
    }

    .wrap_pc .col {
        flex: 1;
    }

    .day {
        font-size: 1rem;
    }

    .day .note {
        font-size: 0.8rem;
    }

    .overview-container iframe {
        height: 45vh;
        margin-bottom: 20px;
    }

    .map-caption {
        font-size: 0.9rem;
    }

    .footer {
        height: 100%;
    }

    .yda-logo {
        max-width: 700px;
        width: 75%;
    }

    .portfolio-link {
        display: flex;
        justify-content: space-around;
        gap: 1rem;
        text-align: center;
        align-items: center;
    }

    .portfolio-link li {
        margin: 1.25rem 0;
    }

    .portfolio-link a {
        display: inline-block;
        width: 200px;
        height: 300px;
        padding: 0.7rem;
        color: var(--color-write);
        line-height: calc(300px - 0.7rem);
        font-size: 0.95rem;
        border-radius: 5px;
        text-decoration: none;
        text-shadow: 1px 2px 3px #808080;
    }

    #bg-game {
        background-image: url(../img/18.webp);
        background-size: cover;
        background-color: rgba(46, 46, 46, 0.5);
        background-blend-mode: darken;
    }

    #bg-cg {
        background-image: url(../img/03.webp);
        background-size: cover;
        background-color: rgba(46, 46, 46, 0.5);
        background-blend-mode: darken;
    }

    #bg-design {
        background-image: url(../img/07.webp);
        background-size: cover;
        background-color: rgba(46, 46, 46, 0.5);
        background-blend-mode: darken;
    }

    #bg-graphic {
        background-image: url(../img/10.webp);
        background-size: cover;
        background-color: rgba(46, 46, 46, 0.5);
        background-blend-mode: darken;
    }

    #bg-web {
        background-image: url(../img/06.webp);
        background-size: cover;
        background-color: rgba(46, 46, 46, 0.5);
        background-blend-mode: darken;
    }

    .portfolio-link a:hover {
        transform: scale(1.1);
        transition: transform 0.5s ease;
    }
}

/* 学科リンク無効化 */
.nonlink {
    pointer-events: none;
}