html {
    font-size: 100%;
}

body {
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    color: #222;
    font-size: 1rem;
}

a {
    color: #000;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

li {
    list-style: none;
}

#header {
    width: 100vw;
    background-color: #333;
    position: fixed;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

#header.hide {
    transform: translateY(-100%); /* ヘッダーを上に移動させて非表示にする */
}

#header .wrapper {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header .hamburger-menu {
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
}

.bar {
    height: 3px;
    width: 30px;
    background-color: #fff;
}

#header .nav-close-btn {
    display: none;
    font-size: 30px;
    color: #fff;
    width: 30px;
    height: 30px;
    text-align: center;
    margin: 10px;
    padding-left: 30px;
    cursor: pointer;
}

.nav-list {
    display: flex;
}

.nav-list li {
    margin-right: 30px;
}

.nav-list li a {
    font-size: 1.05rem;
    display: block;
    color: #fff;
    text-align: center;
}

.nav-list a span {
    display: block;
    font-size: 0.65rem;
    color: #aaa;
}

.error {
    color: #FF0000;
    padding-bottom: 30px;
}

.close-btn {
    float: right;
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
    color: #000000;
    border: none;
    background-color: transparent;
    padding: 0;
}

.wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1%;
}

.message-wrapper {
    width: 80%;
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 20px;
}

.content-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    /*padding: 0 1%;*/
    padding-top: 30px;
    padding-bottom: 160px;
}

.main-container {
    min-height: 80vh;
    padding-top: 80px;
}

.flex-wrapper {
    display: flex;
}

.back-container {
    width: 100%;
    background: #fff;
}

/*.section-title {*/
/*    display: inline-block;*/
/*    font-size: 1.8rem;*/
/*    padding-bottom: 7px;*/
/*    margin-bottom: 80px;*/
/*    border-bottom: solid 6px #1c734f;*/
/*}*/

.section-title {
    display: inline-block;
    font-size: 1.8rem;
    padding: 7px 40px 10px 40px;
    margin-bottom: 40px;
    background: #1c734f;
    color: #fff;
}

.sub-section-title {
    color: #000;
    border-bottom: 3px solid #1c734f;
    padding: 0.3em;
    display: inline-block;
    line-height: 1.3;
    vertical-align: middle;
    margin-bottom: 30px;
}

.dl-list {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.dl-list dt:first-of-type {
    border-top: solid #c8c8c8 1px;
}

.dl-list dt {
    display:flex;
    align-items: center;
    width: 25%;
    padding: 20px 10px;
    border-bottom: solid #c8c8c8 1px;
}

.dl-list dd:first-of-type {
    border-top: solid #c8c8c8 1px;
}

.dl-list dd {
    width: 75%;
    padding: 20px 10px;
    border-bottom: solid #c8c8c8 1px;
}

form {
    width: 100%;
}

.form-row {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f2f4f5;
}

.form-row:last-child {
    border-bottom: none;
}

.form-label {
    display: flex;
    align-items: center;
    width: 25%;
}

.form-label label {
    font-weight: bold;
}

.form-label span {
    margin-left: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: #166ab5;
}

.form-inputs label {
    margin-right: 15px;
}

label input[type="radio"],
label input[type="checkbox"] {
    margin-right: 4px;
}


input, textarea {
    width: 100%;
    background-color: #f2f4f5;
    border: none;
    border-radius: 3px;
    padding: 15px 20px;
    font-size: 16px;
    color: #333;
}

input::placeholder,
textarea::placeholder {
    color: #999;
    font-size: 14px;
}

.select-field {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

select {
    background-color: #f2f4f5;
    border: none;
    border-radius: 3px;
    padding: 15px 20px;
    font-size: 16px;
    color: #333;
    padding-right: 30px;
    cursor: pointer; /* Change the cursor to indicate this is a dropdown */
}

.select-field::after {
    content: "";
    position: absolute;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333; /* Color of the arrow */
    pointer-events: none; /* Prevents clicks on the pseudo element */
}

/* Additional styling for focus */
select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #166ab5; /* Focus outline color */
}

.blue-btn {
    cursor: pointer;
    margin-top: 30px;
    padding: 15px 45px;
    border: none;
    border-radius: 3px;
    color: #fff;
    font-weight: bold;
    background-color: #166ab5;
}

.form-field {
    flex-grow: 1;
}

.select-field {
    flex-grow: 0;
}

.errorlist li {
    font-size: 0.8rem;
    color: #ff0000;
}

.link {
    font-weight: bold;
    border-bottom: solid 1px #166ab5;
    color: #166ab5;
}

.view-more {
    display: flex;
    font-size: 0.9rem;
    justify-content: center;
}

.view-more a {
    display: inline-block;
    border-bottom: solid #555 1px;
    border: solid #555 1px;
    padding: 15px 20px;
}

.view-more a:hover {
    opacity: 0.7;
}

.site-title {
    line-height: 1px;
}

.site-title img {
    display: inline-block;
    height: 60px;
}

.calendar-container {
    margin-top: 70px;
}

.calendar {
    width: 100%; /* or any desired percentage/value */
    max-height: 600px;
    margin: 0 auto;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    list-style: none;
    padding: 12px 0 0;
    margin: 0;
    font-size: 0.85rem;
}

.calendar-legend li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.fc-event-content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hibana-cup {
    font-weight: bold;
    color: rgba(0, 0, 0, 0.75);
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
}

.mah-wrapper {
    justify-content: space-between;
    background-color: #1c734f;
    border: solid 10px #222222;
    border-radius: 10px;
    padding: 0 8%;
    margin-bottom: 50px;
}

.flex-wrapper li.item {
    width: 45%;
}

.mbox {
    background-color: #f5f5f5;
    width: 100%;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 10px 10px 10px 10px; /* 下の角を丸くする */
}

.mbox-title {
    color: #fff;
    background-color: #fa8000;
    box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.1), /* 上側 */ 2px 0px 4px rgba(0, 0, 0, 0.1), /* 右側 */ -2px 0px 4px rgba(0, 0, 0, 0.1); /* 左側 */
    border-radius: 10px 10px 0 0; /* 上の角を丸くする */
    text-align: center;
    padding: 10px 0;
    margin: 0;
}

.mbox-text {
    height: 210px;
    padding: 15px;
    text-align: center;
}

.mbox-text span {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    padding-bottom: 8px;
}

.mbox-text p {
    text-align: left;
    font-size: 0.9rem;
    margin: auto;
    padding: 0 10%;
}

.alert {
    --bs-alert-bg: transparent;
    --bs-alert-padding-x: 1rem;
    --bs-alert-padding-y: 1rem;
    --bs-alert-margin-bottom: 1rem;
    --bs-alert-color: inherit;
    --bs-alert-border-color: transparent;
    --bs-alert-border: 1px solid var(--bs-alert-border-color);
    --bs-alert-border-radius: 0.375rem;
    position: relative;
    padding: var(--bs-alert-padding-y) var(--bs-alert-padding-x);
    margin-bottom: var(--bs-alert-margin-bottom);
    color: var(--bs-alert-color);
    background-color: var(--bs-alert-bg);
    border: var(--bs-alert-border);
    border-radius: var(--bs-alert-border-radius);
}

.alert-success {
    --bs-alert-color: #0f5132;
    --bs-alert-bg: #d1e7dd;
    --bs-alert-border-color: #badbcc;
}

.alert-info {
    --bs-alert-color: #087990;
    --bs-alert-bg: #cff4fc;
    --bs-alert-border-color: #b6effb;
}

.alert-warning {
    --bs-alert-color: #997404;
    --bs-alert-bg: #fff3cd;
    --bs-alert-border-color: #ffecb5;
}

.alert-danger {
    --bs-alert-color: #842029;
    --bs-alert-bg: #f8d7da;
    --bs-alert-border-color: #f5c2c7;
}

#footer {
    width: 100%;
    background-color: #333;
    padding-top: 10px;
    padding-bottom: 10px;
}

#footer .site-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

#footer .site-title a {
    display: inline-block;
}

#footer .site-title img {
    height: 60px;
    margin-bottom: 30px;
}

.sns {
    display: flex;
    justify-content: space-between;
    padding: 10px 33% 25px 33%;
    margin-bottom: 30px;
    border-bottom: #555 solid 1px;
}

.sns .img {
    width: 40px;
    height: 40px;
    border-radius: 22.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.sns .instagram,
.sns .twitter {
    background-color: #555;
}

.sns .img img {
    max-width: 50%;
    height: auto;
}

.sns .line img {
    max-width: 70%;
}

.sns li {
    text-align: center;
}

.sns li a {
    display: inline-block;
}

.sns li span {
    display: block;
    font-size: 0.55rem;
    color: #aaa;
}

.footer-link {
    margin-bottom: 30px;
}

#footer .flex-wrapper {
    justify-content: space-between;
    padding: 0 50px;
}

.footer-menu-container {
    /*width: 33%;*/
    /*text-align: center;*/
}

.footer-link li a:before {

    content: ''; /* 実際のテキストは空ですが、背景を利用して横棒を作成します */
    display: inline-block;
    width: 10px; /* 横棒の長さを調整 */
    height: 1px; /* 横棒の高さ */
    background-color: #fff; /* 横棒の色 */
    vertical-align: middle; /* テキストと横棒の位置を揃える */
    margin-right: 10px; /* 横棒とテキストの間隔 */
    margin-bottom: 3.5px;
}

.footer-link li {
    width: 100%;
}

.footer-link li a {
    display: inline-block;
    color: #fff;
    margin-left: 11px;
    margin-bottom: 6px;
    vertical-align: middle; /* テキストと横棒の位置を揃える */
}

.footer-menu-title {
    font-size: 1.3rem;
    color: #6eb950;
    margin-bottom: 11px;
}

#footer p {
    font-size: 0.65rem;
    color: #fff;
    text-align: center;
}

@media screen and (max-width: 1024px) {

    .wrapper {
        text-align: center;
        width: 100%;
    }

    .content-wrapper {
        padding: 3%;
    }

    .section-title {
        font-size: 1.3em;
        padding: 5px 20px 5px 20px;
        margin-bottom: 20px;
    }

    .sub-section-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .view-more {
        margin-bottom: 55px;
    }

    .flex-wrapper li.item {
        margin-bottom: 0;
    }

    .dl-list {
        flex-direction: column;
    }

    .dl-list dt {
        font-size: 0.75rem;
        width: 100%;
        border-bottom: none;
        padding-bottom: 5px;
    }

    .dl-list dd:first-of-type {
        border-top: none;
    }

    .dl-list dd {
        width: 100%;
        border-top: none;
        padding-left: 15px;
        padding-top: 0;
    }

    .form-row {
        flex-wrap: wrap;
    }

    .form-row.btn .form-label {
        display: none;
    }

    .form-row.btn {
        justify-content: center;
    }

    .form-label {
        width: 100%;
        padding-bottom: 20px;
    }

    .form-field {
        width: 100%;
    }

    .mah-wrapper {
        padding: 0 3%;
    }

    .mbox-text {
        padding: 15px 0 15px 0;
    }

    .mbox-text p {
        padding: 0 3%;
    }

    #header .wrapper {
        padding: 0 20px;
    }

    #header .hamburger-menu {
        display: flex;
        margin-left: auto;
    }

    #header .nav-list {
        flex-direction: column;
        height: 100vh;
        width: 100vw;
        position: fixed;
        top: 0;
        right: -110%;
        background-color: #222;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }

    #header .nav-list li {
        margin-bottom: 30px;
    }

    #header .nav-close-btn {
        display: block;
    }

    #header .nav-list.active {
        right: 0;
        overflow-y: auto;
    }

    .sns {
        padding: 0 15%;
    }

    .footer-link {
        flex-direction: column;
    }

    #footer .wrapper li {
        margin-bottom: 10px;
    }

    #footer .flex-wrapper {
        flex-direction: column;
    }

    .title-wrapper {
        text-align: center;
    }
}
