:root {
    --main-color: #f2f2f2;
    --accent-color: #ac39ff;
}

* {
    margin: 0;
    padding: 0;
}

body {
    background: var(--main-color);
    min-height: 100vh;
}
body:has(.menu-open) {
    overflow: hidden;
    height: 100%;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

header {
    height: 100px;
    overflow: hidden;
    position: fixed;
    transition: all 0.3s;
    z-index: 10;
}
header .header-inner {
    height: 70px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100vw;
    margin-bottom: 30px;
    transition: all 0.3s;
}
header .header-left {
    background: var(--main-color);
    border-radius: 35px;
    box-shadow: 0 0 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: calc(100vw - 220px);
    padding: 0 30px;
    transition: all 0.3s;
}
header .header-nav {
    display: flex;
    list-style: none;
    gap: 18px;
}
header .header-sitename {
    display: flex;
    align-items: center;
}
header .header-access{
    margin-left: 17px;
}
header.menu-open .header-access {
    background-color: white;
}
header.menu-open .header-access a {
    color: var(--accent-color);
}
header .menu-toggle {
    box-shadow: 0 0 3px;
    height: 70px;
    width: 70px;
    border-radius: 35px;
    background: var(--main-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
header .header-sitename .sitename {
    margin-left: 20px;
}
header .header-nav li{
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}
header .header-nav li:hover{
    border-bottom: 3px solid var(--accent-color);
}
header.menu-open .header-nav li:hover{
    border-bottom: 3px solid white;
}
header .menu-toggle span {
    display: inline-block;
    width: 35px;
    height: 5px;
    background: black;
    position: absolute;
    transition: all 0.2s;
}
header .menu-toggle span:nth-child(1) {
    transform: translateY(13px);
}
header .menu-toggle span:nth-child(3) {
    transform: translateY(-13px);
}

header.menu-open .menu-toggle span:nth-child(1) {
    transform: rotate(-45deg);
}
header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}
header.menu-open .menu-toggle span:nth-child(3) {
    transform: rotate(45deg);
}
header.menu-open {
    height: 100vh;
    background: var(--main-color);
}
header.menu-open .header-left{
    background: var(--accent-color);
}
header.menu-open .header-left * {
    color: white;
}
header.menu-open .menu-toggle {
    background: var(--accent-color);
}
header.menu-open .menu-toggle span {
    background: white;
}

main {
    min-height: 100vh;
}

footer {
    background: var(--accent-color);
    color: white;
    padding: 30px 70px;
    margin-top: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
footer .footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 25px;
    max-width: 1080px;
    width: 100%;
}
footer .footer-siteinfo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
footer .sitename-jp {
    font-size: 1.3em;
}
footer .footer-nav {
    list-style: none;
    margin-right: auto;
}
footer .footer-link {
    list-style: none;
}

@media screen and (max-width: 960px) {
    header .header-nav{
        display: none;
    }
    header .header-left {
        justify-content: center;
    }
}
@media screen  and (max-width: 425px) {
    header .header-sitename .sitename{
        font-size: 0.8em;
        margin-left: 5px;
    }
    header .header-left{
        padding: 0 10px;
        width: calc(100vw - 120px)
    }
    footer {
        padding: 30px 15px;
    }
}

.tag {
    background-color: var(--accent-color);
    color: white;
    padding: 1px 3px 1px 5px;
    font-size: 0.8em;
    border-radius: 20px 0 0 20px;
}
.tag::before {
    content: '●';
    margin-right: 4px;
}

.btn-1 {
    height: 40px;
    padding: 5px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
}
.btn-1::before{
    content: '';
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    position: absolute;
    z-index: -1;
    transition: all 0.3s;
    left: 0;
}
.btn-1::after {
    content: '→';
    margin-left: 15px;
    color: var(--accent-color);
    font-size: 1.3em;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-1:hover::before{
    width: 100%;
}
.btn-1:hover::after {
    color: white;
}
.btn-1:hover {
    color: white;
}

.btn-2 {
    background-color: var(--accent-color);
    color: white;
    padding: 3px 18px;
    border-radius: 9999px;
    cursor: pointer;
}

.btn-3 {
    display: inline-flex;
    height: 30px;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 9999px;
    padding-right: 15px;
    padding-left: 60px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}
.btn-3::after {
    content: '→';
    width: 28px;
    height: 40px;
    border-radius: 999px;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    position: absolute;
    z-index: -1;
    left: 0;
    padding-left: 13px;
    transition: all 0.3s;
}

.btn-3:hover {
    color: white;
}
.btn-3:hover::after{
    width: 100%;
    padding-left: 30px;
}

.btn-pdf,
.btn-site {
    height: 30px;
    padding: 5px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-pdf::after,
.btn-site::after{
    content: '';
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-left: 15px;
}

.btn-pdf::after{
    background-image: url(/common/images/pdf_icon.svg);
}

.btn-site::after{
    background-image: url(/common/images/site_icon.svg);
}

/* h1,
h2,
h3,
h4 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1 {
    font-size: 2.8em;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.3em;
}

h2 {
    font-size: 2.2em;
    border-left: 5px solid #007bff;
    padding-left: 0.5em;
}

h3 {
    font-size: 1.8em;
    color: #555;
}

h4 {
    font-size: 1.4em;
    color: #777;
} */

h1.h1-header,
h2.h2-header,
h3.h3-header,
h4.h4-header {
    font-weight: 700;
    margin-bottom: 0.8em;
    line-height: 1.4;
    color: #363636;
    margin: 12px 0 35px 0;
}

h1.h1-header {
    font-size: 2.3em;
    text-align: center;
    letter-spacing: 2px;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #C0C0C0;
    position: relative;
}

h1.h1-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

h2.h2-header {
    font-size: 2.1em;
    font-weight: 600;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}

h3.h3-header {
    font-size: 1.8em;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: var(--accent-color);
}

h4.h4-header {
    font-size: 1.4em;
    font-weight: 400;
    position: relative;
}

h4.h4-header::before {
    content: '― ';
    color: var(--accent-color);
}

.menu {
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

.menu-inner {
    max-width: 500px;
    margin: 0 auto;
}

.menu .group {
    margin-bottom: 25px;
    border-bottom: 1px solid #a0a0a0;
    padding-bottom: 25px;
}

.menu .group:last-child {
    border-bottom: none;
}

.menu .group-header a {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: block;
    padding: 10px 0;
}

.menu .links {
    /* max-height: 0px; */
    overflow: hidden;
    transition: all 0.3s;
}

/* .menu .group:hover .links {
    max-height: fit-content;
} */

.menu .links .link-item a {
    display: block;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.menu .links .link-item a:hover {
    border-bottom: 1px solid var(--accent-color);
}

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

.menu .group ul li a {
    display: block;
    padding: 12px 0;
    color: #555;
    text-decoration: none;
}

main {
    max-width: 1024px;
    margin: 0 auto;
    padding: 50px;
}

img {
    max-width: 100%;
}

.inline_news {
    display: flex;
    overflow-x: auto;
    width: 100%;
    scroll-snap-type: x mandatory;
}

.inline_news .item {
    flex-shrink: 0;
    width: 30%;
    max-width: calc(1024px / 3);
    min-width: 280px;
    margin: 40px 15px;
    border-radius: 17px;
    overflow: hidden;
    border: 1px solid gray;
    box-shadow: 8px 8px 0 var(--accent-color);
    aspect-ratio: 16/19;
    scroll-snap-align: center;
}

.inline_news .item .img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.inline_news .item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.inline_news .item:hover .img img {
    transform: scale(1.4);
}

.inline_news .item .text {
    padding: 20px;
}

.inline_news .item .text .type {
    display: inline-block;
}

.inline_news .item .text .date {
    font-size: 0.85em;
    color: gray;
    margin-top: 7px;
}

.inline_news .item .text .title {
    font-size: 1.1em;
    margin-top: 10px
}

section.news .more,
section.topics .more,
section.club .more {
    margin-top: 20px;
}