@charset "utf-8";

:root {
    --main: #00a8c1;
    --base: #fff;
    --text: #000
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "ヒラギノ角ゴシック", sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
}

main {
    margin: 50px 0 75px;
    background-color: var(--base);
}

main > section {
    margin: 0 auto;
    padding-top: 145px;
    width: 350px;
    opacity: 0;
    visibility: hidden;
}
main h2 {
    text-align: center;
    font-size: 20px;
    color: var(--main);
    line-height: 60px;
    height: 60px;
    margin-bottom: 25px;
}

.fixed-header {
    display: flex;
    justify-content: space-between;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    background-color: var(--base);
    width: 100%;
    height: 50px;
}

.fixed-header a {
    display: flex;
    padding: 10px;
    color: var(--main);
}
.fixed-header img {
    width: 28px;
}
.fixed-header h1 {
    padding-top: 3px;
}

.hamburger-btn {
    background-color: var(--main);
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.hamburger-btn span {
    width: 30px;
    height: 5px;
    background-color: var(--base); 
    display: inline-block;
    transition: all .5s ease-in-out;
}
.hamburger-btn span:nth-child(2) {
    margin: 5px 0;
}
.hamburger-close span:first-child {
    transform: translateY(2.5px) rotate(135deg);
}
.hamburger-close span:nth-child(2) {
    display: none;
}
.hamburger-close span:nth-child(3) {
    transform: translateY(-2.5px) rotate(-135deg);
}

.header-nav {
    position: fixed;
    left: 0;
    top: 0;
    background-color: var(--base);
    inset: 0;
    z-index: 9;
    padding: 5rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease-in-out;
}
.header-nav li a {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
    border-bottom: 1px solid #333;
    text-indent: 1rem;
}
.header-nav li:nth-child(2) a {
    border-top: 1px solid #333;
}
.header-nav li:nth-child(4) a,
.header-nav li:nth-child(5) a {
    text-indent: 3rem;
}
.header-nav li:nth-child(4) a {
    border-bottom: 1px dotted #333;
}
.nav-top {
    display: none;
}
.nav-open {
    opacity: 1;
    visibility: visible;
}

.news-sec h2 {
    background: url("../images/NEWS.png") no-repeat center;
}
.course-sec h2 {
    background: url("../images/COURSE.png") no-repeat center;
}
.point-sec h2 {
    background: url("../images/POINT.png") no-repeat center;
}
.links-sec h2 {
    background: url("../images/LINKS.png") no-repeat center;
}

main .first-view img {
    width: 100%;
}

.news-list time {
    color: var(--main);
    font-size: 10px;
}
.news-list dd {
    font-size: 12px;
    margin-bottom: 25px;
}
.news-sec button {
    display: block;
    margin: 50px auto 0;
    background-color: var(--main);
    padding: .5rem 2.5rem;
    color: var(--base);
    cursor: pointer;
}


.cs-sec #tabs {
    display: flex;
}
.cs-sec h3 {
    font-size: 12px;
    color: var(--text);
    font-weight: bold;
    flex-basis: 50%;
    text-align: center;
    padding: 1rem 2rem;
    cursor: pointer;
    background-color: #eee;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid var(--main);
}
.cs-sec .tab-active {
    color: var(--main);
    background-color: var(--base);
    border: 1px solid var(--main);
    border-bottom: none;
}
#contents {
    border: 1px solid var(--main);
    border-top: none;
    padding: 20px;
}
.content li a {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px dotted #333;
}
#wp-content {
    position: relative;
}
#wp-content::after {
    content: "";
    position: absolute;
    z-index: -100;
    inset: 0;
    background: url("../images/word.png") no-repeat center/30%;
    opacity: .1;
}
#hyo-content {
    position: relative;
}
#hyo-content::after {
    content: "";
    position: absolute;
    z-index: -100;
    inset: 0;
    background: url("../images/excel.png") no-repeat center/30%;
    opacity: .1;
}
.content {
    display: none;
}
.active {
    display: block;
}


.point-sec ul li {
    display: flex;
    margin-bottom: 45px;
    align-items: start;
}
.point-sec li div {
    margin-left: 25px;
}
.point-sec li div h3{
    font-size: 12px;
    color: var(--main);
}
.point-sec li div h3 span{
    font-size: 16px;
}
.point-sec li p:first-of-type {
    font-size: 18px;
    margin: 10px 0;
}
.point-sec li p:last-of-type {
    font-size: 10px;
}

.links-sec h3 {
    font-size: 10px;
    color: var(--main);
    margin-bottom: 10px;
}
.links-sec li {
    margin-bottom: 20px;
    text-indent: .5rem;
}
.links-sec li:last-child{
    margin-bottom: 50px;
}
.links-sec li  a{
    color: #0055ff;
    text-decoration: underline 1px solid;
    font-size: 12px;
}

footer {
    display: flex;
    justify-content: center;
    background-color: var(--main);
    color: var(--base);
    padding-right: 20px;
}
footer > div {
    flex-basis: 65%;
    max-width: 350px;
    margin-left: 30px;
}
footer img {
    max-width: 70px;
}
.footer-text p {
    font-size: 20px;
    text-align: right;
    margin-top: 10px;
}
.footer-text p:first-child {
    margin-bottom: 18px;
}
.footer-nav ul {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}
.footer-text p small {
    font-size: 8px;
    text-align: right;
}

@media (min-width: 768px) and (max-width: 1000px) {
    main {
        margin: 0 0 0 250px;
        background-color: var(--base);
    }
    header {
        width: 250px;
        height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        background-color: var(--base);
        border-right: 1px solid #ccc;
    }
    .fixed-header {
        display: block;
        position: static;
    }
    .fixed-header h1 {
        padding-top: 0px;
        margin-left: 2px;
    }
    .hamburger-btn {
        display: none;
    }    
    .header-nav {
        position: static;
        margin-top: 180px;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transition: none;
    }
    .header-nav li a {
        display: block;
        padding: 0 0 40px;
        border-bottom: none;
        text-indent: none;
        text-align: center;
        font-size: 22px;
        color: #666;
    }
    .header-nav li a:hover {
        font-size: 24px;
        color: var(--text);
    }
    .header-nav li a span {
        display: none;
    }
    .header-nav li:nth-child(2) a {
        border-top: none;
    }
    .header-nav li:nth-child(4) a,
    .header-nav li:nth-child(5) a {
        display: none;
    }
    .nav-top {
        display: block;
    }
    .news-sec button:hover {
        opacity: .8;
    }
    footer {
        margin-left: 250px;
    }
}
@media (min-width: 1001px) {
    header {
        display: flex;
        justify-content: space-between;
        padding: 1rem 1rem 1rem 0;
        align-items: center ;
        background-color: var(--base);
    }
    main {
        margin: 0 0 100px;
    }
    
    main > section {
        margin: 0 auto;
        padding-top: 145px;
        max-width: 900px;
        width: auto;
    }
    main h2 {
        font-size: 2rem;
        margin-bottom: 50px;
        line-height: 100px;
        height: 100px;
        font-weight: bold;
        letter-spacing: .2em;
    }
    .fixed-header {
        display: block;
        position: static;
        z-index: 0;
        width: auto;
        height: auto;
    }
    .fixed-header h1 {
        padding-top: 0;
    }
    .hamburger-btn {
        display: none;
    }
    .header-nav {
        position: static;
        margin-top: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transition: none;
    }
    .header-nav ul {
        display: flex;
    }
    .header-nav li a {
        display: block;
        padding: 0;
        border-bottom: none;
        text-indent: none;
        text-align: center;
        font-size: 18px;
        color: #666;
        padding: 0 1rem;
    }
    .header-nav li a:hover {
        color: var(--text);
    }
    .header-nav li a span {
        display: none;
    }
    .header-nav li:nth-child(2) a {
        border-top: none;
    }
    .header-nav li:nth-child(4) a,
    .header-nav li:nth-child(5) a {
        display: none;
    }
    main .first-view img {
        height: 80vh;
        object-fit: cover;
        object-position: center top;
        filter: blur(2px) brightness(.4);
        opacity: .8;
    }
    .first-view {
        position: relative;
    }
    .first-view::after {
        content: "パソコン初級・中級科";
        display: inline-block;
        width: 100%;
        color: var(--base);
        position: absolute;
        left: 50%;
        top: 50%;
        translate: -50% -50%;
        font-size: 5rem;
        text-align: center;
        font-weight: bold;
    }
    .news-list {
        display: flex;
        flex-wrap: wrap;
        width: 700px;
        margin: 0 auto;
        justify-content: space-between;
    }
    .news-list dt {
        flex-basis: 30%;
    }
    .news-list time {
        font-size: 14px;
    }
    .news-list dd {
        flex-basis: 65%;
        font-size: 18px;
        margin-bottom: 25px;
    }
    .news-sec button {
        padding: 1rem 4rem;
    }
    .news-sec button:hover {
        opacity: .8;
    }
    .cs-sec {
        width: 700px;
        margin: 0 auto;
    }
    .cs-sec h3 {
        font-size: 16px;
    }
    .content li a {
        padding: 2rem 0;
        text-indent: 1rem;
    }
    .content li a:hover {
        background-color: rgba(240, 240, 240, .6);
    }
    #contents {
        border-top: none;
        padding: 50px;
    }
    .point-sec ul li {
        justify-content: center;
        margin-bottom: 90px;
        align-items: center;
    }
    .point-sec li div {
        margin-left: 80px;
    }
    .point-sec li img {
        width: 170px;
    }
    .point-sec li div h3{
        font-size: 20px;
    }
    .point-sec li div h3 span{
        font-size: 24px;
    }
    .point-sec li p:first-of-type {
        font-size: 32px;
    }
    .point-sec li p:last-of-type {
        font-size: 16px;
        color: #666;
    }
    .links-sec h3 {
        font-size: 16px;
        text-align: center;
        letter-spacing: .1em;
        margin-bottom: 30px;
    }
    .links-sec li {
        text-indent: 0;
        text-align: center;
    }
    .links-sec li:last-child {
        margin-bottom: 70px;
    }
    .links-sec li  a{
        font-size: 18px;
    }
    
    footer {
        padding-right: 0;
    }
    footer > div {
        max-width: 400px;
        margin-left: 50px;
    }
    footer img {
        max-width: 100px;
    }
    .footer-text p {
        font-size: 32px;
        margin-top: 0px;
    }
    .footer-text p:first-child {
        margin-bottom: 10px;
    }
    .footer-nav ul {
        font-size: 16px;
    }
    .footer-text p small {
        font-size: 10px;
    }
    
}