@import url(./reset.css);
:root {
    --color-main: #cbcbcb;
    --color-bg: #D2D2D2;
    --color-text: #000000;
    --color-accent: #f93232;
    --color-accent-dark: #AB1F24;
}

body {
    font-family: 'ten-mincho','ten-mincho-text',sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    width: 100%;
    text-align: center;
    
}

.br-pc,
.br-tablet,
.br-phone {
    display: none;
}


footer {
    background-color: var(--color-accent-dark);
}

/* スマホ用のデザインはここから */
@media screen and (max-width:961px) {
    .br-phone {
        display: block;
    }

    nav {
        display: none;
    }

/* ここからMain */
    .works-content-area {
        width: 90%;
        margin: 50px auto 0 auto;
    }

    .works-picture-area {
        width: 100%;
        height: 100%;
        margin-bottom: 30px;
    }

    .slider {
        position: relative;
        width: 100%;
        margin: auto;
        overflow: hidden;
    }

    .slides {
        display: flex;
        transition: transform 0.4s ease;
    }

    .slides img {
        width: 100%;
        flex-shrink: 0;
        border-radius: 8px;
    }

    /* ボタン */
    .prev, .next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        padding: 8px 12px;
        background: rgba(0,0,0,0.4);
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
    }

    .prev:hover, .next:hover {
        background: rgba(0,0,0,0.7);
        transform: translateY(-50%) scale(1.15);
    }

    .prev { left: 10px; }
    .next { right: 10px; }    

    .works-title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .works-member-area {
        display: flex;
        width: fit-content;
        font-size: 1rem;
        border-bottom: 1px solid #515151;
        margin-bottom: 30px;
        white-space: nowrap;
    }

    .works-member-name-title {
        padding-right: 20px;
        font-size:clamp(0.3px,0.8rem,1rem)
    }

    .works-member-name{
        padding-right: 20px;
        font-size:clamp(0.3px,0.8rem,1rem)
    }

    .works-description-text {
        font-size: 1rem;
        margin-bottom: 50px;
        text-align: left;
    }

    .works-button-area {
        display: flex;
        justify-content: space-between;
        font-size: 1rem;
        margin-bottom: 100px;
    }

    .works-button {
        border: 1px solid #515151;
        padding: 5px 15px;
        transition: all 0.3s ease;
        border-radius: 10px;
    }

    .works-button:hover {
        background-color: #515151;
        color: var(--color-main);
        cursor: pointer;
        text-decoration: none;
    }
/* ここまでMain */

/*footer*/
    footer {
        background-color: var(--color-accent-dark);
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .copyright {
        color: #ffffff;
        font-size: 1rem ;
        text-align: center;
    }
/* ここまでfooter */

}

/* pc画面 */
@media screen and (min-width:961px){
    .br-tablet {
        display: none;
    }

    .br-pc {
        display: block;
    }

/* ここからNavigation */
    .top-logo {
    width: 40px;
    height: auto;
}

    nav { 
        width: 4.5rem; 
        height: 100vh; 
        /*background-color: var(--color-accent-dark); */
        font-size: 1rem; 
        position: fixed; 
        top: 0; 
        right: 0; 
        z-index: 30; 
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    nav.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    #header-top { 
        display: flex; 
        flex-direction: column; 
        justify-content: right; 
        align-items: center; 
        height: 100%; 
        padding: 2vh 0;
        margin: 0;
        list-style: none;
        gap: clamp(1rem, 6vh, 4rem);
    }

    nav a { 
        color: var(--color-text); 
        text-decoration: none;
        letter-spacing: 0.15em;
        transition: color 0.3s; 
        writing-mode: vertical-rl;
    }
    
    nav a.hover { 
        color: var(--color-accent-dark); 
    }
/* ここまでNavigation */

/* ここからMain */  
    .works-content-area {
        width: 75%;
        margin: 100px auto 0 auto;
    }

    .works-picture-area {
        width: 100%;
        height: 100%;
        margin-bottom: 50px;
    }

    .slider {
        position: relative;
        width: 100%;
        margin: auto;
        overflow: hidden;
    }

    .slides {
        display: flex;
        transition: transform 0.4s ease;
    }

    .slides img {
        width: 100%;
        flex-shrink: 0;
        border-radius: 8px;
    }

    /* ボタン */
    .prev, .next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        padding: 8px 12px;
        background: rgba(0,0,0,0.4);
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        z-index: 10;
    }

    .prev:hover, .next:hover {
        background: rgba(0,0,0,0.7);
        transform: translateY(-50%) scale(1.15);
    }

    .prev { left: 10px; }
    .next { right: 10px; }

    .works-title {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }

    .works-member-area {
        display: flex;
        width: fit-content;
        font-size: 1.5rem;
        border-bottom: 1px solid #515151;
        margin-bottom: 50px;
    } 

    .works-member-name-title {
        padding-right: 20px;
        font-size:clamp(0.3px,0.1rem,1rem)
        white-space:nowrap;
    }

    .works-member-name{
        padding-right: 20px;
        font-size:clamp(0.3px,0.1rem,1rem)
        white-space: nowrap;
    }

    .works-description-text {
        font-size: 1.25rem;
        margin-bottom: 100px;
        text-align: left;
    }

    .works-button-area {
        display: flex;
        justify-content: space-between;
        font-size: 1.25rem;
        margin-bottom: 100px;
    }

    .works-button {
        border: 1px solid #515151;
        padding: 0px 40px;
        transition: all 0.3s ease;
        border-radius: 10px;
    }

    .works-button:hover {
        background-color: #515151;
        color: var(--color-main);
        cursor: pointer;
        text-decoration: none;
    }
/* ここまでMain */

/*footer*/
    footer {
        background-color: var(--color-accent-dark);
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .copyright {
        color: var(--color-main);
        font-size: 0.875rem ;
        text-align: center;
    }
}