@charset "UTF-8";

/* -----------------------------
header
----------------------------- */
.hero-header {
    position: relative;
    /* width: 100%; */
    margin-bottom: 0;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
}

.hero-bg-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-img {
    display: block;
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    object-position: left top;
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 150px), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 150px), transparent 100%);
}

.hero-bg-img-SP {
    display: none;
}

.hero-inner {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding-bottom: 140px;
    pointer-events: none;
    z-index: 10;
}

/* -----------------------------
blue-card
----------------------------- */
.hero-blue-card {
    pointer-events: auto;
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: 65%;
    max-width: 740px;
    padding: 20px 35px;
    background-color: rgba(7, 2, 149, 0.88);
    box-shadow: 0 4px 16px rgba(0, 64, 168, 0.35);
}

.hero-card-left {
    flex-shrink: 0;
    width: 45%;
    max-width: 260px;
    display: flex;
    align-items: center;
}

.hero-logo-img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid rgba(43, 177, 201, 0.6);
    padding-left: 22px;
}

.hero-lead {
    font-size: 15px;
    line-height: 1.7;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.hero-note {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* -----------------------------
main-contents
----------------------------- */
main {
    background-color: #fff;
    width: 100%;
    padding: 80px 80px 120px;
    margin-top: -120px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.term {
    margin-top: 20px;
    margin-bottom: 100px;
}

.term:last-child {
    margin-bottom: 60px;
}

h2 {
    display: flex;
    align-items: baseline;
    font-size: 30px;
    line-height: 1.3;
    color: #011fb2;
    font-weight: 800;
    border-bottom: 4px solid #a5eaef;
    padding-bottom: 2px;
    margin-bottom: 20px;
}

.toudan-date {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-left: 16px;
    letter-spacing: 0.02em;
}

.shitsumon-blocks {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.shitsumon-blocks-mada h3 {
    color: #dad6d5;
}

.shitsumon-block {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shitsumon-block img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 14px;
}

.shitsumon-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
    color: #292929;
    margin-bottom: 10px;
}

.shitsumon-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #c8c4c6;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    font-family: Arial, sans-serif;
    border-radius: 50%;
    vertical-align: 2px;
    margin-right: 1px;
}

.shitsumon-touben {
    font-size: 13px;
    color: #666;
    margin-top: auto;
}

.busho {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    letter-spacing: 0.3px;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: bottom;
    margin: 0 2px;
}

.busho.kenkou {
    background-color: #f9dbe5;
    color: #df206c;
}

.busho.kodomo {
    background-color: #d7f6ed;
    color: #009e6e;
}

.busho.senkyo {
    background-color: #c7dff6;
    color: #0f06c5;
}

.busho.sangyou {
    background-color: #e3e0ef;
    color: #35359d;
}

.busho.kikaku {
    background-color: #cff5f9;
    color: #34bbdd;
}

/* -----------------------------
townmeeting
----------------------------- */
#townmeeting {
    display: flex;
    width: 90%;
    margin: 0 auto 140px;
    background-color: #e5fdff;
    font-size: 14px;
    scroll-margin-top: 80px;
    box-shadow: 1px 3px 16px rgba(204, 204, 205, 0.7);
}

#townmeeting .contents-L {
    background-image: url(../img/bg.gif);
    background-position: center;
    width: 45%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.event-title {
    width: 100%;
    margin: 20px 0 10px;
}

.event-detail {
    padding: 0 20px;
    font-size: 16px;
    line-height: 1.6;
}

.event-detail-koumoku {
    display: inline-block;
    color: #0098f0;
    font-size: 16px;
    font-weight: 700;
    background-color: rgba(255, 251, 29, 0.8);
    padding: 0px 10px;
    margin: 10px 0 2px;
}

.event-map {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background-color: #a29f9f;
    padding: 0 8px 2px;
    margin-left: 6px;
}

.btn_entry {
    display: block;
    width: 74%;
    padding: 6px 0px;
    background-color: #0848ec;
    color: #fff;
    font-size: 18px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
    margin: 20px auto 30px;
}

.slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#townmeeting .contents-R {
    position: relative;
    overflow: hidden;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0;
    animation: fadeSlide 18s infinite;
}

.slide1 {
    background-image: url(../img/TM04-01.jpg);
    animation-delay: 0s;
}

.slide2 {
    background-image: url(../img/TM04-02.jpg);
    animation-delay: 6s;
}

.slide3 {
    background-image: url(../img/TM04-03.jpg);
    animation-delay: 12s;
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
    }
    6.6% {
        opacity: 1;
    }
    33.3% {
        opacity: 1;
    }
    40% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.event-info {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    padding: 20px 30px;
    display: block;
    margin: 0;
    line-height: 1.6;
}

/* -----------------------------
W u1,100
----------------------------- */
@media screen and (max-width: 1100px) {
    .hero-header {
        min-height: 450px;
        display: flex;
        align-items: flex-end;
    }

    .hero-bg-wrap {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    .hero-bg-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: left center;
    }

    .hero-inner {
        position: relative !important;
        inset: auto !important;
        padding-bottom: 0px;
        justify-content: right;
        z-index: 999;
        margin-bottom: 10px;
    }

    main {
        margin-top: 0px;
        padding: 40px 40px 40px;
    }

    .hero-blue-card {
        width: 64%;
        max-width: 100%;
        padding: 25px 30px;
    }

    .hero-card-left {
        max-width: 200px;
    }

    .hero-lead {
        font-size: 13px;
        line-height: 1.6;
    }

    .hero-note {
        font-size: 11px;
    }
}

/* -----------------------------
W u768
----------------------------- */
@media screen and (max-width: 768px) {
    .hero-header {
        min-height: auto;
        height: auto;
        display: block;
    }

    .hero-bg-wrap {
        position: relative;
        height: auto;
    }

    .hero-bg-img-SP {
        display: block;
        width: 100%;
        height: auto;
    }

    .hero-bg-img-PC {
        display: none;
    }

    .hero-inner {
        position: relative !important;
        inset: auto !important;
        padding-bottom: 0;
        margin-top: -60px;
        justify-content: center;
        z-index: 10;
    }

    .hero-blue-card {
        width: 86%;
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    .hero-card-left {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }

    .hero-card-right {
        border-left: none;
        border-top: 1px solid rgba(43, 177, 201, 0.6);
        padding-left: 0;
        padding-top: 10px;
    }

    .hero-logo-img {
        width: 90%;
        margin: auto;
    }

    .hero-lead {
        font-size: 13px;
    }

    .container {
        padding-inline: 0;
    }

    main {
        padding: 40px 20px 80px;
        margin-top: 20px;
        box-shadow: none;
    }

    .term {
        margin-top: 20px;
        margin-bottom: 80px;
    }

    .term:last-child {
        margin-bottom: 20px;
    }

    h2 {
        flex-direction: column;
        font-size: 22px;
        align-items: flex-start;
        border-bottom: none;
        border-left: 6px solid #a5eaef;
        padding-bottom: 0;
        padding-left: 12px;
    }

    .toudan-date {
        margin-left: 0;
        margin-top: 5px;
        font-size: 13px;
    }

    /* 潰れ落ちていた横スクロールの修正部分 */
    .shitsumon-blocks {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap; /* 縦への潰れを完全に禁止 */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .shitsumon-blocks::-webkit-scrollbar {
        height: 6px;
    }

    .shitsumon-blocks::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.03);
        border-radius: 10px;
    }

    .shitsumon-blocks::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 10px;
    }

    .shitsumon-block {
        flex: 0 0 80%;
        min-width: 80%; /* 最低限の横幅を確保し潰れを防ぐ */
        scroll-snap-align: start;
    }

    .shitsumon-title {
        font-size: 16px;
        line-height: 1.55;
        margin-bottom: 10px;
    }

    #townmeeting {
        width: 100%;
        flex-direction: column;
        margin: 50px 0;
    }

    #townmeeting .contents-L {
        width: 100%;
        padding: 15px 10px 5px;
    }

    .event-title {
        margin: 15px 0;
    }

    .event-detail {
        font-size: 14px;
        padding: 0 10px;
        line-height: 1.5;
    }

    .event-detail-koumoku {
        font-size: 14px;
        margin: 5px 0 2px;
    }

    .btn_entry {
        width: 95%;
        font-size: 16px;
        margin: 15px auto 15px;
        padding: 8px 0;
    }

    #townmeeting .contents-R {
        width: 100%;
        min-height: 340px;
        padding: 0;
    }

    .event-info {
        padding: 15px;
        font-size: 13px;
        line-height: 1.5;
    }
}
