.heading-1 {
    font-size: 4rem;
}

.heading-1 .sub {
    display: block;
    color: #158fcb;
    font-size: 3rem;
    line-height: 1;
}

.heading-1 .sub span {
    color: #212121;
}

.heading-1 .eng {
    font-size: 25px;
}

.top-image .heading-1 {
    bottom: 0;
}

#news-wrap {
    margin: 0 auto;
    max-width: 1100px;
    width: 100%;
    padding: 50px 0 20px;
}

#news-wrap .title h1 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 4rem;
}

#news-head,
#news-list {
    background: #f3f3f3;
    padding: 10px 30px;
}

#news-head,
#news-list li {
    display: flex;
    padding: 20px 0;
}

#news-head,
#news-list li:not(:last-of-type) {
    border-bottom: 1px solid #ccc;
}

#news-head .date,
#news-list li .date {
    background: #fff;
    width: 146px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#news-head .title,
#news-list li .contents {
    width: 100%;
    padding: 5px 30px;
    font-weight: bold;
}

#news-list li .contents a {
    text-decoration: underline;
}

.pagination {
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 25px;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.pagination ul li {
    width: 35px;
    height: 35px;
    background: #fff;
    border: 1px solid #000;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination ul li.active {
    color: #fff;
    background: #000;
}

.pagination ul li a {
    color: inherit;
}

/* detail */

#news-head {
    background: #fff;
}

#news-head .date {
    background: #f3f3f3;
}

#news-wrap .newstext {
    padding-top: 2rem;
}

#news-wrap .newstext a {
    display: inline;
}

.control {
    display: flex;
    width: 100%;
    max-width: 1100px;
    gap: 11px;
    padding: 0 3rem;
    margin-top: 100px;
}

.control>div {
    flex: 1;
    border: 1px solid #000;
    border-radius: 10px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

.control>div:nth-of-type(2) {
    background: #000;
    color: #fff;
}

.control>div a {
    color: inherit;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
}

.control>div a img {
    height: 1em;
}

.control>div.prev.first {
    border: none;
    cursor: none;
}

.control>div.next a img {
    transform: scaleX(-1);
}

.control>div.next.last {
    border: none;
    cursor: none;
}

@media screen and (max-width: 768px) {
    .control{
        padding: 0 1rem;
    }
    .control>div {
        font-size: 16px;
    }
    .control>div.prev a{
        display: flex;
        flex-wrap: nowrap;
    }
    .control>div.prev a img {
        max-width: 1rem;
        transform: translate(-20%, 45%); 
    }
    .control>div.next a img {
        max-width: 1rem;
    }
}


@media (max-width: 768px) {
    .top-image .heading-1 {
        font-size: 2.5rem;
    }

    .heading-1 .sub {
        font-size: 1.4rem;
    }

    .top-image .heading-1 {
        bottom: 6%;
    }
}