body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #f4f4f4;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.menubox>nav>ul {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
}

.menubox ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menubox ul li {
    display: inline;
}

.menubox ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.mob-mix1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

header>a>img {
    transform: rotate(2deg);
    transform: translateY(5px);
    margin: 0px;
    height: 45px;
    margin-left: 10px;
}

header>a {
    display: block;
}

.loginbtn {
    font-size: 12.5px;
    color: #333;
    text-decoration: none;
    font-weight: 700;
}

.registerbtnbox {
    display: flex;
    gap: 10px;
    align-items: center;
}


.registerbtn {
    background-color: #d7003a;
    padding: 7.5px 14px 7.5px 14px;
    font-size: 12.5px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 1.01px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 24px;
    height: 2px;
    background-color: #333;
    margin: 3.7px 0;
    transition: 0.4s;
}

.topicinbox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.topicbox>div>a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
}

.mainbox {
    background-color: #fff;
    padding: 10px;
    display: block;
}

/*topページ用*/
.timeline-bar {
    top: 20px;
    left: 20px;
    position: absolute;
    width: 5px;
    height: 90%;
    background-color: #d7993a;
    border-radius: 10px;

}

.flex-1-r-topnews {

    background-color: rgb(247, 242, 235);
    border-radius: 5px;
    height: 265px;
    overflow-y: scroll;
}

.flex-1-r-topnews>h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 20px;
}

.flex-1-r-topnews-list>ul>li>a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.flex-1-r-topnews-list>ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flex-1-r-topnews-list {
    padding-left: 50px;
    position: relative;
    height: fit-content;
}


.flex-1-l>hr {
    display: block;
    border: none;
    height: 6px;
    border-radius: 10px;
    background-color: antiquewhite;
    margin: 10px 0;
}

.flex-1-l-topnews>a>h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.flex-1-l-topnews>a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 10px;
    border-bottom: gainsboro 1px solid;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.flex-1-l-topnews>a>img {
    object-fit: cover;
    width: 100%;
    max-height: 275px;
    height: auto;
    border-radius: 10px;
}

.flex-1-l-recentnews>a>.recentnews-text>h2 {
    margin-left: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.recentnews-text>p {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.recentnews-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flex-1-l-recentnews>a>img {
    display: block;
    margin-right: 10px;
    object-fit: cover;
    width: 100%;
    max-width: 100px;
    height: 77px;
    border-radius: 3px;
}

.flex-1-l-recentnews>a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 10px;
    border-bottom: gainsboro 1px solid;
    display: flex;
}

.flex-1-l-topnews {
    width: 50%;
}

.flex-1-l-recentnews {
    width: 50%;
}

.flex-1 {
    display: flex;
    gap: 10px;
}

.flex-1-l {
    display: flex;
    gap: 10px;
    width: 80%;
}

.menubox ul li a {
    font-size: 15px;
    font-weight: 800;
}

/*topページ用ここまで*/
@media (max-width: 768px) {

    .menubox ul li a {
        font-weight: 600;
        font-size: 14px;
    }

    header>a>img {
        height: 30px;
    }

    .flex-1-l,
    .flex-1 {
        flex-direction: column;
        width: 100%;
    }

    .flex-1-l-topnews,
    .flex-1-l-recentnews {
        width: 100%;
    }

    .topicinbox {
        width: max-content;
    }

    .topicbox {
        border-bottom: #d7993a 2px solid;
        width: 100%;
        overflow-x: auto;
    }

    .hamburger {
        display: flex;
    }

    .menubox {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        width: 100%;
    }

    .menubox ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .menubox[data-active="true"] {
        display: block;
    }
}

button {
    outline: none;
    border: none;
    background: none;
}