section {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    padding: 0;
}

header, .page-container, footer {
    position: relative;
}

header {
    margin-top: -15px;
}

.body-bg-border {
    position: relative;
    top: -15px;
    left: 0;
    width: 100%;
    height: 3px;
}

.bg-corner {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url(../img/bg-corner-tl.png) 0 0 / 418px auto no-repeat, url(../img/bg-corner-tr.png) 100% 0 / 355px auto no-repeat, url(../img/bg-corner-bl.png) 0 100% / 276px auto no-repeat, url(../img/bg-corner-br.png) 100% 100% / 389px auto no-repeat;
}

.breadcrumb {
    z-index: 2;
    position: relative;
}

.page-container {
  position: relative;
}

main {
    position: relative;
    z-index: 1;
}

.event-notice {
    margin: 0 auto;
    text-align: center;
    margin-top: 20px;
}

.event-notice p {
    font-size: 18px;
    font-weight: 800;
}

.event-notice p .under-line {
    font-size: 28px;
    font-weight: 900;
    display: block;
    margin: 20px 0;
    display: inline-block;
    position: relative;
}
.event-notice p .under-line::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: black;
    position: absolute;
    bottom: -20px;
    left: 0;
}

.event-notice h4 {
    font-size: 18px;
    font-weight: 900;
    margin-top: 50px;
}

.page-topContents{
    font-size: 45px;
    font-weight: 900;
    margin-top: 30px;
    line-height: 1.5;
/* 
    display: flex;
    flex-direction: column;
    align-items: center; */
}
/* アンダーライン */
.highlighter-yellow {
    position: relative;
    z-index: 1;
    display: inline-block; /* ★ margin-top を有効にするため */
    line-height: 1.5; /* 行の高さを確保 */
}

.highlighter-yellow:has(.highlighter-yellow)::after {
    display: none;
}

.highlighter-yellow::after {
    content: '';
    position: absolute;
    z-index: -1; /* マーカーをテキストの背面に配置 */
    width: 100%; /* マーカーの幅 */
    height: 20px;  /* マーカーの太さ */
    background-color: #FFF439; /* マーカーの色 */
    /* マーカーの位置 */
    left: 0;
    bottom: -5px;
}

.page-topContents .highlighter-yellow {
    margin-top: 20px;
}

.sp-br {
    display: none;
}

.kanminMeet-2025-image {
    margin-top: -30px;
    width: 754.99px !important;
    height: auto;
    text-align: center;
}



.event-info {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.event-info h2 {
    font-size: 36px;
    font-weight: 900;
    line-height: 54px;
}

.event-img {
    margin-top: 100px;
}

.image-marquee {
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    width: fit-content;
    will-change: transform;
}

.marquee-track img {
    width: 308px;
    height: auto;
    margin: 15px 15px;
    border-radius: 10px;
    object-fit: cover;
}
.event-img-sp {
    display: none;
}
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}
.scroll-left .marquee-track {
    animation: scroll-left 60s linear infinite;
}
.scroll-right .marquee-track {
    animation: scroll-right 60s linear infinite;
}
.image-marquee:hover .marquee-track {
    animation-play-state: paused;
}

.event-past {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
}
.event-past h2 {
    font-size: 36px ;
    font-weight: 900;
    line-height: 54px;
}
.event-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 50px;
    margin-top: 50px;
    text-align: center;
    max-width: 1120px;
}

.event-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}
.event-card a:hover {
    opacity: 0.7; /* ホバー時に少し透明にする */
}

.event-card img {
    width: 340px;
    height: auto;
    border-radius: 15px; /* 画像の角を丸くする */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* 薄い影を付ける */
}

.event-card-date {
    font-size: 16px;
    font-weight: 400;
    margin-top: 12px;
    line-height: 28px;
    text-align: left;
}

.event-card-location {
    font-size: 16px;
    line-height: 28px;
    /* margin-top: 5px; */
    text-align: left;
    
}

.event__items {
    --event-padding: 100px;
    --event-max: 1000px;
    counter-reset: events;
    display: grid;
    width: min(100%, calc(var(--event-max) + var(--event-padding) * 2));
    padding: 0 var(--event-padding);
    gap: 40px;
    margin-top: 60px;
}

.event__item {
    counter-increment: events;
}

.event__box {
    display: grid;
    position: relative;
    gap: 15px;
    width: 100%;
    border: 2px solid #333;
    border-radius: 15px;
    padding: 30px;
    background: url(../img/arrow-right.png) right 50px center / 30px 30px no-repeat #fff;
    transition: opacity 0.3s;
}

.event__box::before {
    content: '第 'counter(events)' 回';
    position: absolute;
    left: 0;
    top: 0;
    background: #333;
    color: #fff;
    padding: 5px 30px;
    font-size: 20px;
    border-radius: 13px 0;
}

.event__box[data-label]::after {
    content: attr(data-label);
    position: absolute;
    right: 50px;
    top: 0;
    transform: translateY(-50%);
    background: #FFF439;
    padding: 7px 30px;
    font-size: 18px;
    border-radius: 999px;
}

.event__box:not([href]),.event__box[aria-disabled='true'] {
    pointer-events: none;
    background-image: none;
}

.event__box[aria-disabled='true'] {
    filter: contrast(0.15) brightness(1.85);
}

.event__box[aria-disabled='true']:empty::after {
    content: 'Coming Soon...';
    font-size: 20px;
    margin: 40px 0;
}

.event__box-title {
    font-size: 50px;
    font-weight: 800;
}

.event__box-desc {
    font-size: 20px;
}


@media (max-width: 1024px) {
    .marquee-track img {
        width: 157px !important;
        height: auto;
    }
    .event-card img {
        width: 330px !important;
    }
    .yellow-label {
        right: -280px;
    }
    .event__items {
        --event-padding: 50px;
    }

}

@media (max-width: 800px) {
    .bg-corner {
        display: none;
    }
    .background-image {
        display: none;
    }
    .event-notice p {
        font-size: 14px;
    }
    .event-notice p .under-line {
        font-size: 20px;
        margin: 12px 0;
    }
    .event-notice h4 {
        margin-top: 30px;
        font-size: 14px;
    }
    .sp-br {
        display: block !important;
    }
    .page-topContents {
        font-size: 26px;
        margin-top: 20px;
        line-height: 38px;
    }
    .highlighter-yellow::after {
        height: 10px; /* マーカーの太さ */
        bottom: 3px !important; /* マーカーの位置 */
    }
    .page-topContents .highlighter-yellow {
        margin-top: 10px;
    }
    .event-info .highlighter-yellow::after,
    .event-past .highlighter-yellow::after {
        bottom: 3px; /* マーカーの位置 */
    }
    .kanminMeet-2025-image {
        margin-top: -20px;
        width: 362.79px !important;
        height: auto;
    }

    .event-img-pc {
        display: none;
    }
    .event-img-sp {
        display: block;
        margin-top: 50px;
        padding: 0;
    }
    .marquee-track img {
        margin: 8px;
    }
    .image-marquee + .image-marquee {
        margin-top: 0;
    }
    /* ★スマホ用の奇数・偶数でアニメーションを分ける */
    .event-img-sp .image-marquee:nth-child(odd) .marquee-track {
        /* 奇数番目（1, 3, 5...）は左へ */
        animation: scroll-left 60s linear infinite;
    }
    .event-img-sp .image-marquee:nth-child(even) .marquee-track {
        /* 偶数番目（2, 4, 6...）は右へ */
        animation: scroll-right 60s linear infinite;
    }
    .event-past {
        margin-top: 50px;
    }
    .event-list {
        margin-top: 30px;
    }
    .event-past h2 {
        font-size: 26px;
    }
    .event-info  {
        margin-top: 50px;
    }
    .event-info h2 {
        font-size: 26px;
    }
    .event__items {
        --event-padding: 20px;
        --event-max: 360px;
    }
    .event__box {
        padding: 60px 20px;
        background-position: center bottom 20px;
    }
    .event__box::before {
        font-size: 16px;
        padding: 8px 20px;
    }
    .event__box:not([href]) {
        padding-bottom: 20px;
    }
    .event__box[data-label]::after {
        right: 20px;
        font-size: 15px;
        padding: 6px 15px;
    }
    .event__box-title {
        font-size: 30px;
    }
    .event__box-desc {
        font-size: 18px;
        line-height: 1.5;
    }
}