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

/* .background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;
} */

.bg-corner {
    position: fixed;
    z-index: -1;
    display: block;
}
.bg-corner-tr { /* Top Right - 右上 */
    top: 0;
    right: 0;
    width: 355px !important;
    height: auto;
}
.bg-corner-br { /* Bottom Right - 右下 */
    bottom: 0;
    right: 0;
    width: 389px !important;
    height: auto;
}
.bg-corner-bl { /* Bottom Left - 左下 */
    bottom: 0;
    left: 0;
    width: 276px !important;
    height: auto;
}
.bg-corner-tl { /* Top Left - 左上 */
    top: 0;
    left: 0;
    width: 418px !important;
    height: auto;
}

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

.page-container {
  position: relative;
}

.background-image {
    position: fixed;
}

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-detail {
    margin-top: 50px;
    position: relative;
    border: 2px solid #333;
    border-radius: 15px;
    padding: 30px;
    width: 1000px;
    height: 170px;
    background-color: #fff;
}

.event-tag {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #333;
    color: white;
    padding: 5px 31px;
    font-size: 20px;
    font-weight: 400;
    border-radius: 10px 0 14px 0 ;
    margin: 0;
}

.event-text {
    display: inline-block;
}

.event-title {
    font-size: 50px;
    font-weight: 800;
    margin: 0;
    line-height: 70px;
}

.event-date {
    font-size: 20px;
    margin-top: 13px;
    line-height: 29px;
    font-weight: 400;
    color: #333;
}
.yellow-label {
    padding: 7px 30px;
    font-size: 18px;
    font-weight: 400;
    background-color: #FFF439;
    border-radius: 9999px;
    display: inline-block;
    position: relative;
    top: -186px;
    right: -360px;
}

.event-arrow-link {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    display: block;
    line-height: 0;
}

.event-arrow-link img {
    width: 30px !important;
    height: auto;
}

/* --- .coming-soon バージョンのスタイル上書き --- */
.event-detail.coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #DDDDDD;
    margin-top: 20px;
}
.coming-soon .event-tag {
    background-color: #DDDDDD;
    color: #ffffff;
    font-weight: bold;
}
.coming-soon .event-text p {
    font-size: 20px;
    color: #DDDDDD;
    font-weight: 400;
    margin: 0;
}
.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;
    
}



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

@media (max-width: 1000px) {
    .event-detail {
       width: 800px;
    }
}

@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-detail {
       width: 330px;
       height: 227px;
       padding: 60px 26px 20px 26px;
       margin-top: 30px;
    }
    .event-tag {
        padding: 9px 25px;
        font-size: 16px;
    }
    .event-title {
        font-size: 30px;
        line-height: 40px;
    }
    .event-date {
        font-size: 18px;
        margin-top: 10px;
        line-height: 27px;
        font-weight: 400;
    }
    .yellow-label {
        top: -244px;   
        right: -50px;
    }
    .event-arrow-link {
        position: static;
        margin-top: 23px;
    }
    .coming-soon .event-text p {
        font-size: 18px;
        transform: translateY(-20px);
    }

    .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;
    }
}