body {
    font-family: 'Noto Sans JP', 'Helvetica', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
    background-image: url('../images/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

img {
    width: 100%;
    max-width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h2,
h3,
h4 {
    font-weight: 700;
}

.header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0px 4px 10px 0px #0000001A;
    width: 970px;
    position: fixed;
    z-index: 999;
    left: 50%;
    transform: translateX(-50%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    height: 45px;
    vertical-align: middle;
}

.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 30px;
}

.nav-item {
    text-decoration: none;
    color: #5B4928;
    font-weight: 800;
    font-size: 14px;
    padding: 5px 0;
    display: flex;
    align-items: center;
    text-align: center;
}

.nav-item.has-dropdown::after {
    background: url(../images/icon-park-solid_down-c.svg);
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    margin-left: 5px;
}

.official-site-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #111111;
    border: 1px solid #CCCCCC;
    padding: 10px 10px;
    margin-left: 40px;
    border-radius: 16px;
    background-color: #fff;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s;
}

.official-site-link:hover {
    border-color: #008844;
    box-shadow: 0 2px 4px rgba(0, 136, 68, 0.1);
}

.official-site-link::after {
    content: '\276F';
    margin-left: 8px;
    color: #008844;
}

.project-intro {
    text-align: center;
    padding: 40px 0;
}

.project-intro .title-img {
    width: 103px;
    margin: 0 auto;
}

.project-intro .title {
    color: #5B4928;
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
}

.intro-box {
    background: url(../images/frame.webp) no-repeat center center;
    background-size: cover;
    width: 800px;
    height: 350px;
    margin: 0 auto;
}

.intro-box p {
    text-align: left;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: bold;
    color: #5B4928;
    max-width: 650px;
    padding: 80px 80px;
}

.more-info-link {
    display: inline-block;
    color: #5B4928;
    border: #5B4928 2px solid;
    padding: 20px 40px;
    text-decoration: none;
    margin-top: 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s;
    font-size: 18px;
    position: relative;
}

.more-info-link::after {
    content: '\276F';
    margin-left: 10px;
    color: #5B4928;
}

.more-info-link:hover {
    box-shadow: 0 2px 4px rgba(0, 136, 68, 0.1);
    background-color: #ebe2d2;
}

.search-bar-container {
    max-width: 1100px;
    margin: 0 auto 30px auto;
    padding: 40px 0;
    background-color: #fff;
    border: 6px solid #A8DFBD;
    border-radius: 16px;
}

.search-filter-bar {
    display: flex;
    gap: 0;
    align-items: stretch;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.main-search-btn_img {
    width: 31px;
    height: 31px;
    padding-right: 20px;
}

.main-search-btn {
    border: none;
    background-color: #fff;
    color: #5B4928;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    margin-right: 80px;
}

.filters {
    display: flex;
    gap: 20px;
    padding: 20px;
    font-family: Arial, sans-serif;
    position: relative;

}

.custom-select {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #38a848;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    width: 280px;
    height: 59px;
    border-radius: 16px;
    cursor: pointer;
    user-select: none;
    gap: 6px;
}

.dropdown-arrow {
    width: 18px;
    height: 18px;
    pointer-events: none;

}

.dropdown-arrow::after {
    content: '▼';
    font-size: 14px;
    margin-left: 10px;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 999;
    display: block;
    visibility: hidden;
    margin-top: -1px;
    padding: 0;
    min-width: 100%;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-top: 0;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .07);
    list-style: none;
    opacity: 0;
    transition: all .4s ease-in-out;
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
    pointer-events: none;
}

.custom-select.is-open {
    z-index: 2147483647;
}

.dropdown-list.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #1FB257;
    font-weight: 600;
    text-align: center;
}

.dropdown-item:hover,
.dropdown-item.selected {
    background-color: #2e8b3d;
    color: #fff;
}

.dropdown-item:first-child:hover,
.dropdown-item:first-child.selected {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.dropdown-item:last-child:hover,
.dropdown-item:last-child.selected {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.hidden-select {
    display: none;
}

.event-list-section {
    padding: 200px 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.event-list-header {
    text-align: center;
}

.event-list-header .title {
    text-align: center;
    color: #5B4928;
    font-size: 32px;
    margin-bottom: 30px;
}

.event-list-header .title-img {
    width: 110px;
    height: 100px;
    margin: 0 auto;
    text-align: center;
}

.event-list-header .des {
    text-align: center;
    color: #5B4928;
    font-size: 20px;
    line-height: 1.5;
    margin: 0 auto 30px;
    font-weight: bold;
}

.events-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 16px;
    padding: 20px 15px;
    transition: transform 0.2s;
    border: 6px solid #A8DFBD;
}

.event-details {
    flex-grow: 1;
    text-align: left;
}

.event-status {
    display: inline-block;
    font-size: 0.75em;
    color: #fff;
    background-color: #008844;
    padding: 3px 10px;
    border-radius: 15px;
    margin-bottom: 5px;
    font-weight: 600;
}

.event-status.finished {
    background-color: #aaa;
}

.event-item h4 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
}

.event-item p {
    margin: 0;
    font-size: 0.85em;
    color: #666;
}

.details-button {
    text-decoration: none;
    color: #008844;
    border: 1px solid #008844;
    padding: 8px 15px;
    border-radius: 20px;
    flex-shrink: 0;
    margin-left: 20px;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s;
}

.details-button:hover {
    background-color: #008844;
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
    font-size: 16px;
}

.pagination a {
    text-decoration: none;
    color: #38a848;
    margin: 0 5px;
    transition: all 0.2s;
    font-size: 24px;
}

.page-numbers-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid #c9e6c9;
    background-color: #fff;
    font-weight: 700;
    padding: 0;
}

.page-number.active {
    background-color: #38a848;
    color: #fff;
    border-color: #38a848;
}

.page-number:not(.active):hover {
    background-color: #f0fdf2;
}

.nav-page {
    font-weight: 600;
}

.nav-page.disabled {
    color: #aaa;
    pointer-events: none;
    cursor: default;
}

.nav-page:not(.disabled):hover {
    color: #2e8b41;
}

.pagination-dots {
    color: #666;
    padding: 8px 10px;
    font-size: 0.9em;
    user-select: none;
    display: inline-block;
}

.footer {
    text-align: center;
    padding: 60px 0 5px 0;
    background: url(../images/footer_bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 462px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.footer-logo {
    width: 208px;
    margin-bottom: 30px;
}

.footer_text {
    color: #fff;
    font-size: 12px;

}

.mt5 {
    margin-top: 20px;
}

.event-item-card {
    background-color: #fff;
    border: 3px solid #b8e2b8;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.event-content-main {
    display: flex;
    gap: 20px;
    flex-grow: 1;
    align-items: center;
    border-right: 2px dotted #1FB257;
}
.event-content-main.no-border {
  border-right: none;
}
.event-image-placeholder {
    width: 220px;
    object-fit: cover;
}

.event-info-center {
    flex-grow: 1;
    padding-right: 50px;
}

.event-date-top {
    font-size: 20px;
    font-weight: 600;
    color: #231815;
    margin-bottom: 12px;
}

.event-title-highlight {
    font-size: 20px;
    font-weight: 600;
    color: #231815;
    display: inline-block;
    border-radius: 4px;
    margin-top: 0;
    margin-bottom: 15px;
    padding-right: 0;
    background: none;
}

.highlight {
    background-image: linear-gradient(to top, #A8DFBD 30%, transparent 40%);
    padding: 0 5px 3px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    display: inline;
}

.event-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.info-label {
    font-weight: 700;
    color: #111111;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
    text-align: center;
    font-size: 14px;
    background: #F4F4F4;
    border-radius: 5px;
}

.info-value {
    color: #333;
}

.recruitment-period {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.recruitment-start {
    margin-right: 20px;
}

.recruitment-start,
.recruitment-end {
    display: flex;
    align-items: center;
}

.event-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: flex-end; 
    gap: 20px;
    flex-shrink: 0;
    margin-left: 30px;
    position: relative;
    padding-right: 20px;
    min-height: 120px; 
}
.action-btn {
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 10px;
    border-radius: 30px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 160px;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.icon-pdf {
    width: 20px;
    height: 20px;
    background-image: url('../images/pdf-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    flex-shrink: 0;
}

.icon-join {
    width: 20px;
    height: 20px;
    background-image: url('../images/ant-design_form-outlined.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    flex-shrink: 0;
}

.arrow-icon {
    width: 12px;
    height: 12px;
    background-image: url('../images/arr-green.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.join-btn .arrow-icon {
    background-image: url('../images/arr-white.svg');
}

.details-pdf-btn {
    border: 2px solid #38a848;
    color: #38a848;
    background-color: #fff;
}

.details-pdf-btn:hover {
    background-color: #f0fdf2;
}

.join-btn {
    background-color: #38a848;
    color: #fff;
    border: 2px solid #38a848;
}

.join-btn:hover {
    background-color: #2e8b41;
}

.vertical-dots {
    position: absolute;
    top: 5px;
    right: 0;
    width: 1px;
    height: calc(100% - 10px);
    background-image: linear-gradient(to bottom, #d9ead3 33%, rgba(255, 255, 255, 0) 0%);
    background-size: 1px 15px;
}

.sp {
    display: none;
}

.footer_text_link {
    text-align: center;
    font-size: 14px;
}

.footer_text_link a {
    color: #ffffff;
    text-decoration: none;
}

.footer_text_link a:hover {
    text-decoration: underline;
}

.footer_text_link .separator {
    margin: 0 5px;
}
.floating-banner {
  position: fixed;
  right: 20px; 
  top: 85%;  
  transform: translateY(-50%);
  z-index: 999;
}

.floating-banner img {
  cursor: pointer;
}
@media screen and (max-width: 1000px) {
    .header {
        width: 100%;
    }

    .main-search-btn {
        margin-right: 0;
    }

    .event-list-section {
        padding: 80px 0;
    }

    .custom-select {
        width: 200px;
    }

    .event-item-card {
        flex-direction: column;
        border: 0px solid #b8e2b8;
    }

    .event-info-center {
        padding-right: 0;
    }

    .event-content-main {
        border-right: 0;
    }

    .event-actions {
        margin-left: 0;
        padding-top: 30px;
        flex-direction: row;
        min-height: inherit;
    }

    .intro-box {
        width: inherit;
        height: inherit;
    }

    .intro-box p {
        max-width: 100%;
        padding: 50px;
    }
    .main-nav{
        gap: 10px;
    }
    .official-site-link{
        margin-left: 5px;
    }
    .logo-group{
        width: 280px;
    }
}

@media screen and (max-width: 768px) {
    .sp {
        display: block;
    }

    .pc {
        display: none;
    }

    .header {
        width: 240px;
        height: 33px;
        padding: 10px 0;
        position: inherit;
        margin: 0 auto;
        left: 0;
        transform: inherit;
    }

    .logo {
        height: auto;
    }

    .nav-sp {
        background-color: #ffffff;
        display: flex;
        justify-content: center;
        padding: 7px 12px;
        position: fixed;
        z-index: 999;
        width: 100%;
        margin: 0 auto;
    }

    .nav-item {
        font-size: 10px;
        line-height: 1.5;
        font-weight: 800;
    }

    .nav-item.has-dropdown::after {
        width: 10px;
        height: 10px;
    }

    .main-nav {
        gap: 10px;
        margin-left: 0;

    }

    .official-site-link {
        margin-left: 10px;
        text-align: center;
    }

    .hero-images {
        padding-top: 60px;
    }

    body {
        background-image: url('../images/background_sp.png');
    }

    .project-intro .title-img {
        width: 72px;
    }

    .project-intro .title {
        font-size: 18px;
        width: 230px;
        margin: 0 auto;
        line-height: 120%;
    }

    .intro-box {
        background: url(../images/frame_sp.webp) no-repeat center center;
        width: 270px;
        height: 380px;
        margin-top: 30px;
    }

    .intro-box p {
        font-size: 14px;
        line-height: 180%;
        padding: 40px 35px;
    }

    .more-info-link {
        font-size: 14px;
        padding: 20px;
        width: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 30px auto 0;
    }

    .event-list-header .title-img {
        width: 64px;
        height: 59px;
    }

    .event-list-section {
        padding: 40px 0 0;
    }

    .event-list-header .title {
        font-size: 18px;
        margin-top: 10px;
        margin-bottom: 0
    }

    .event-list-header .des {
        font-size: 14px;
        font-weight: bold;
        margin-top: 15px;
        line-height: 150%;
    }

    .container {
        padding: 0 30px;
    }

    .search-filter-bar {
        flex-direction: column;
        align-items: center;
    }

    .main-search-btn {
        margin-right: 0px;
        font-size: 18px;
    }

    .main-search-btn_img {
        width: 20px;
        height: 20px;
        padding-right: 5px
    }

    .custom-select {
        width: 120px;
    }

    .search-bar-container {
        padding: 18px 0;
    }

    .filters {
        padding: 16px 0 0;
    }

    .event-content-main {
        flex-direction: column;
        border-right: none;
        gap: 0;
    }

    .event-item-card {
        flex-direction: column;
        padding: 25px;
    }

    .recruitment-period {
        flex-direction: column;
        gap: 8px;
    }

    .event-info-center {
        padding-right: 0;
    }

    .event-date-top {
        margin: 20px 0 8px;
    }

    .event-actions {
        flex-direction: row;
        margin-top: 20px;
        gap: 10px;
    }

    .action-btn {
        width: 110px;
        font-size: 14px;
        justify-content: flex-start;
        padding: 10px 10px 10px 20px;
    }

    .arrow-icon {
        margin-left: 15px;
    }

    .event-title-highlight {
        font-size: 16px;
    }

    .event-date-top {
        font-size: 18px;
    }

    .info-row,
    .info-label {
        font-size: 12px;
    }

    .pagination {
        padding: 0;
        margin-top: 16px;
    }

    .pagination a {
        font-size: 12px;
    }

    .page-number {
        width: 20px;
        height: 20px;
    }

    .footer {
        background: url(../images/footer_bg_sp.png);
        background-size: cover;
        background-repeat: no-repeat;
        min-height: auto;
        margin-top: 90px;
    }

    .footer-logo {
        width: 170px;
        margin-bottom: 0;
        padding-top: 20px;
    }

    .footer_text {
        font-size: 10px;
    }

    .footer_text_link {
        line-height: 1.6;
    }

    .footer_text_link a,
    .footer_text_link .separator {
        display: block;
        margin: 5px 0;
    }

    .footer_text_link .separator {
        display: none;
    }
    .logo-group{
        width: 100%;
    }
}