@charset "UTF-8";

/* 共通部分 */
*  {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "M PLUS Rounded 1c", sans-serif; 
    font-size: 100%;  
}

body {
    width: 100vw;
    height: auto;
}
a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* タイトルバー */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    height: 6vh;
    width: 100vw;
}

.page-header {
    display: flex;
    align-items: center;
    height: 6vh;
    text-align: center;
    text-decoration: none;
    justify-content: space-around;
    background-color: #78515f;
}

.site-title {   /* さんのアトリエの文字 */ 
    
    width: 50%;
    color: rgb(47, 52, 77);
    padding-left: 5vw;
    font-size: 32px;
    font-weight: lighter;
    font-family: 'Cherry Bomb One';
    margin: -48px;
}

.site-title span {   /* TAMUの文字 */
    font-size: 40px;
    color: #4c0f12;
    font-family: 'Cherry Bomb One';
}

.btn {
    list-style: none;
}

.btn a {
    color: #3d405b;
    font-size: 18px;
    padding: 5px 20px;
    background-color: #a9b4b9;
    border-radius: 5px;
    text-decoration: none;
    font-family: "M PLUS Rounded 1c", sans-serif; 
    margin-left: 16px;
    box-shadow: 0 3px grey;
    transition: all 0.3s;
}

.btn a:hover {
    background-color:  #9bd2f2;
    transform: scale(22px);
}

/* ページのタイトル「 */
h2 {
    font-size: 30px;
    text-align: center;
    color: rgb(72, 82, 131);
    padding-top: 2vh;
    padding-bottom: 1vh;
}

/* 個々のコンテンツ */
.anim-content {
    max-width: 1200px;
    margin: 0 auto 0 ;
    padding: 2vh 20px 0;
    border-top: 4px solid rgb(72, 82, 131);
}

.anim-work {   
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 4fr;
    grid-template-areas:
        "anim title"
        "anim text";
    gap: 30px;
    padding-bottom: 2vh;
}

.animation {
    grid-area: anim;
}

.anim-title {
    grid-area: title;
    font-size: 24px;
    font-weight: bold;
    padding-top: 1vh;
}

.anim-text {
    grid-area: text;
    font-size: 18px;
}

/* フッター */
footer {
    height: 9vh;
    background-color: #78515f;
    text-align: center;
    text-decoration: none;
    padding-top: 4vh;
}

footer p {
    font-size: 1.2rem;
}

/* メディアクエリー　Note-PC */
@media (min-width: 769px) and (max-width: 1200px) {
    .btn a {
        font-size: 16px;
        padding: 3px 15px;
    }
    h2 {
        font-size: 28px;
    }
    .anim-work {
        gap: 20px;
    }
    .anim-title {
        font-size: 18px;
    }
    .anim-text {
        font-size: 16px;
    }
}

/* メディアクエリー　Tablet */
@media (min-width: 431px) and (max-width: 768px) {
    .site-title {
        font-size: 22px;
    }
    .site-title span {
        font-size: 28px;
    }
    .btn a {
        font-size: 16px;
        padding: 3px 12px;
    }
    h2 {
        font-size: 16px;
    }
    .anim-content {
        padding: 1vh 20px 3vh;
        border-top: 3px solid rgb(72, 82, 131);
    }
    .anim-work {
        display: block;
        padding-bottom: 2vh;
    }
    .anim-title {
        font-size: 18px;
        font-weight: bold;
        padding-top: 1vh;
    }
    .anim-text {
        font-size: 14px;
    }
    footer p {
        font-size: 14px;
    }
}
    
/* メディアクエリー　Mobile */
@media (max-width: 430px) {
    header {
        height: 60px;
        width: 100vw;
    }
    .page-header {
        margin-top: 0;
        height: 60px;
        width: 100%;
    }
    .site-title {
        font-size: 18px;
        padding-left: 10px;
    }    
    .site-title span {
        font-size: 26px; 
        letter-spacing: 0;
    }  
    .btn a {
        font-size: 13px;
        padding: 2px 10px;
    } 
    h2 {
        font-size: 16px;
    }
    .anim-content {
        padding: 0.5vh 10px 1vh;
    } 
    .anim-work {
        display: block;
        padding-bottom: 2vh;
    }
    .anim-title {
        font-size: 16px;
        font-weight: bold;
        padding-top: 1vh;
    }
    .anim-text {
        font-size: 12px;
    }
    footer p {
        font-size: 13px;
    }   
}

