/*-----------------------------
ギャラリー
------------------------------*/
.gallery { /** ギャラリーを囲むボックス **/
    width: 100%;
    margin-bottom: 20px !important;
    overflow: hidden;
}

.gallery br {
    display: none;
}

/** 自動で挿入される clearfix の余白解除 **/

.gallery-item { /** 画像共通のスタイル **/
    float: left;
    margin-bottom: 0 !important;
}

.gallery-icon { /** 画像を囲む dt のスタイル **/
    text-align: center;
}

.gallery-icon img {
    width: 100%;
    height: auto;
    margin-bottom: 10px !important;
}

.gallery-caption { /** キャプション **/
    color: #222;
    font-size: 12px;
    margin: 0 0 10px;
    text-align: center;
}

.gallery-columns-1 .gallery-item { /** カラムなし **/
    width: 100%;
    margin-right: 0;
}

.gallery-columns-2 .gallery-item { /** 2カラム **/
    width: 48%;
    margin: 0 1%;
}

.gallery-columns-3 .gallery-item { /** 3カラム **/
    width: 31.33333%;
    margin: 0 1%;
}

.gallery-columns-4 .gallery-item { /** 4カラム **/
    width: 23%;
    margin: 0 1%;
}

.gallery-columns-5 .gallery-item { /** 5カラム **/
    width: 18%;
    margin: 0 1%;
}

@media screen and (max-width: 640px) {
    /* 640px以下用の記述 */
    .gallery-columns-3 .gallery-item, .gallery-columns-4 .gallery-item {
        width: 48%;
        margin: 0 1%;
    }

    .gallery-columns-5 .gallery-item {
        width: 31.33333%;
        margin: 0 1%;
    }
}

/*.widget_calendar {float: left;}*/
#wp-calendar {
    width: 100%;
}

#wp-calendar caption {
    text-align: right;
    color: #333;
    font-size: 12px;
    margin-top: 10px;
    margin-bottom: 15px;
}

#wp-calendar thead {
    font-size: 10px;
}

#wp-calendar thead th {
    padding-bottom: 10px;
}

#wp-calendar tbody {
    color: #aaa;
}

#wp-calendar tbody td {
    background: #f5f5f5;
    border: 1px solid #fff;
    text-align: center;
    padding: 8px;
}

#wp-calendar tbody td:hover {
    background: #fff;
}

#wp-calendar tbody .pad {
    background: none;
}

#wp-calendar tfoot #next {
    font-size: 10px;
    text-transform: uppercase;
    text-align: right;
}

#wp-calendar tfoot #prev {
    font-size: 10px;
    text-transform: uppercase;
    padding-top: 10px;
}

.alignleft {
    float: left;
    margin-right: 1em;
}

.alignright {
    float: right;
    margin-left: 1em;
}

.textleft {
    text-align: left;
}

.textright {
    text-align: right;
}


.wpp-list .c-news-item__author {
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
}


.l-post-content .wp-caption {
    max-width: 100%;
}


.hljs .hljs-ln tr {
    border-bottom: none !important;
}

.c-page-header__links span {
    display: inline;
}

.c-page-header__links a {
    display: inline;
}

.w-block .c-heading {
    margin-top: 3em;
    margin-bottom: 1em;
}

pre {
    font-size: 11px;
}

.c-sidebar:first-child {
    margin-top: 0;
}

.wpulike-default .wp_ulike_btn {
    font-size: .625rem !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.3;
    color: #000;
    white-space: nowrap;
}

.wpulike-default .wp_ulike_btn {
    min-height: 0;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}

.wpulike-default .count-box {
    padding-top: 0;
    line-height: 1;
    padding-bottom: 0;
    min-height: 0;
    margin: 0;
    padding-left: 4px;
}

.wpulike-default .wp_ulike_btn {
    background: transparent !important;
    color: #FFF !important;
}

.wpulike.wpulike-default .wp_ulike_general_class {
    background: #FC8300 !important;
    color: #FFF !important;
    padding: .25rem .45rem .25rem .75rem;
    border: 1px solid #FC8300;
}

.wpulike-default .count-box {
    color: #FFF !important;
}

.wpulike.wpulike-default .wp_ulike_general_class:hover {
    border: 1px solid #FC8300 !important;
}

.c-sidebar__box .wpulike.wpulike-default .wp_ulike_general_class {
    background: #FC8300 !important;
}

.wpulike.wpulike-default .wp_ulike_general_class.wp_ulike_is_liked:hover .count-box {
    background: transparent !important;
}

.wpulike.wpulike-default .wp_ulike_general_class.wp_ulike_is_liked {
    background: #009F3E !important;
    color: #FFF !important;
    padding: .25rem .45rem .25rem .75rem;
    border: 1px solid #009F3E !important;
}

.simplefavorite-button {
    background: #FC8300 !important;
    color: #FFF !important;
    border: 1px solid #FC8300 !important;
}

.simplefavorite-button.active {
    background: #009F3E !important;
    color: #FFF !important;
    border: 1px solid #009F3E !important;
}

button.simplefavorite-button.active {
    background: #009F3E;
    color: #FFF;
    opacity: 1;
}

.c-panel {
    padding: 16px 24px;
    background: #F5F5F5;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

.c-panel.is-error {
    background: #fbdede;
    border: 1px solid #ea9b9b;
    color: #9e1b1b;
}

.c-panel.is-success {
    background: #cbe6c5;
    border: 1px solid #53c581;
    color: #1b7d1a;
}

.accordbox .contentsBox h3 {

}

/*.l-main.is-two-columns .w-block:first-child h1:first-child,*/
/*.l-main.is-two-columns .w-block:first-child h2:first-child,*/
/*.l-main.is-two-columns .w-block:first-child h3:first-child,*/
/*.l-main.is-two-columns .w-block:first-child h4:first-child,*/
/*.l-main.is-two-columns .w-block:first-child h5:first-child,*/
/*.l-main.is-two-columns .w-block:first-child h6:first-child {*/
/*    margin-top: 0;*/
/*}*/

.l-main.is-two-columns .w-block:first-child #ez-toc-container,
.l-main.is-two-columns .w-block:first-child #toc_container {
    margin-top: 0;
}

.l-main.is-two-columns h1.is-firstchild,
.l-main.is-two-columns h2.is-firstchild,
.l-main.is-two-columns h3.is-firstchild,
.l-main.is-two-columns h4.is-firstchild,
.l-main.is-two-columns h5.is-firstchild,
.l-main.is-two-columns h6.is-firstchild {
    margin-top: 0;
}

.l-main.is-two-columns .w-block.is-1 h1:first-of-type,
.l-main.is-two-columns .w-block.is-1 h2:first-of-type,
.l-main.is-two-columns .w-block.is-1 h3:first-of-type,
.l-main.is-two-columns .w-block.is-1 h4:first-of-type,
.l-main.is-two-columns .w-block.is-1 h5:first-of-type,
.l-main.is-two-columns .w-block.is-1 h6:first-of-type {
    margin-top: 0;
}

body.l-onecolumn .l-main {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    margin-bottom: 40px;
}


.c-news__content {
    margin-top: 24px;
    font-size: 14px;
}

.c-news__content p {
    font-size: 14px;
}

.c-news-image__text a {
    font-weight: bold;
}

h2.c-news-image__text {
    padding-left: 0;
    margin-bottom: 0;
}

h2.c-news-image__text:before {
    display: none;
}

.c-table.is-books td span {
    font-weight: bold;
    display: block;
    font-size: 1rem;
}

.c-table.is-books td a {
    font-weight: bold;
    display: block;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .c-post-navs__archive.is-back {
        min-width: 12.6875rem;
    }
}


ul.is-arrow li.is-title {
    font-weight: bold;
    margin-top: 1.6em;
    padding-left: 0;
}

ul.is-arrow li {
    list-style: none;
}

#tinymce ul.is-arrow li {
    list-style: none;
}

ul.is-arrow {
    padding-left: 0;
}

ul.is-arrow li.is-title:before {
    display: none;
}

.c-editlink {
    text-align: right;
}

.c-editlink .c-button:after {
    display: none;
}

.wp_ulike_counter_up[data-ulike-counter-value="0"] {
    display: none;
}

.c-login-logo {
    max-width: 245px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
}

.loginform .is-firstchild {
    display: none;
}

body.loginform {
    padding-top: 0;
    background: #e8e8e8;
}

body.loginform .c-loginform-logo {
    margin-bottom: 20px;
}

body.loginform .c-panel {
    max-width: 100%;
    width: 80vw;
    max-width: 600px;
    padding: 24px 40px;
    background: #FFF;
    padding-top: 5vh;
    margin-top: 10vh;
    margin-bottom: 10vh;
    border-radius: 8px;
    box-shadow: 0 0 10px rgb(0 0 0 / 10%);
    background: #FFF;
    margin-left: auto;
    margin-right: auto;
}

body.loginform #wp-submit {
    border: 2px solid #009F3E;
    background: #009F3E;
    color: #FFF;
}

body.loginform #wp-submit {
    border: 2px solid #009F3E;
    background: #009F3E;
    color: #FFF;
    margin-bottom: 0;
}

body.loginform .submit {
    text-align: center;
}

body.loginform #loginform p {
    margin-bottom: 16px;
    font-size: 15px;
}

body.loginform #nav {
    text-align: center;
    margin-top: 1em;
}

body.loginform #nav a {
    font-size: 13px;
    color: #000;
    letter-spacing: 0;
}

body.loginform #c-help {
    font-size: 13px;
    color: #333;
    border: 1px solid #e8e8e8;
    margin-top: 16px;
    letter-spacing: 0;
    padding: 15px 32px;
}

body.loginform p.message {
    font-size: 13px;
    color: #333;
    margin-bottom: 1em;
    border: 1px solid #97e4af;
    border-radius: 10px;
    background: rgb(84 228 117 / 10%);
    padding: 16px 20px;
}

.loginform .c-panel p {
    font-size: 14px;
    letter-spacing: 0;
}

#login_error {
    padding: 16px 20px;
    border: 1px solid #ce2222;
    border-radius: 10px;
    background: rgba(206, 34, 34, 0.1);
    font-size: 14px;
    margin-bottom: 10px;
}

.loginform #wp-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loginform #wp-submit:disabled:hover {
    cursor: not-allowed;
}

.w-block.is-iconblock + .w-block.is-iconblock {
    margin-top: 1em;
}


.l-main-bottom .c-sidebar__block {
    margin-bottom: 40px;
    margin-top: 40px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .l-main-bottom .c-sidebar__block .c-sidebar__box {
        flex-wrap: nowrap;
        display: flex;
    }

    .l-main-bottom .c-sidebar__block .c-sidebar__box-item {
    }

    .l-main-bottom .c-sidebar__block .c-sidebar__box-item:after {
        content: "|";
        display: inline-block;
        margin-left: 2em;
        margin-right: 2em;
        color: #ccc;
        font-size: 13px;
    }

    .l-main-bottom .c-sidebar__block .c-sidebar__box-item:last-child:after {
        display: none;
    }

    .l-main-bottom .c-sidebar__box-item:last-child {
        margin-bottom: .9375rem;
    }

    .l-global-nav .c-category-navi.is-global-navi .c-category-navi__cont > li a.c-button.is-navlink {
        font-size: 12px;
    }

    .c-contents__button {
        font-size: 12px;
        padding-left: 12px;
    }
}

.c-chat__content:hover {
    cursor: pointer;
    opacity: 0.8;
}

.c-chat__popup {
    background: #eee;
    overflow: hidden;
}

.c-chat.is-open iframe {
    display: block;
    border: none;
    /*margin-left: -1px;*/
    /*margin-top: -1px;*/
    /*margin-right: -3px;*/

    /*width: 101%;*/
    /*height: 100%;*/
}

.single-features.postid-14664 .c-news-image__block .c-news-image__image {
    min-height: 120px;
}

.single-features.postid-14664 .c-news-image__block .c-news-image__image .bg-img {
    background-size: contain
}

.c-pdf-list {
    margin-top: 24px;
    margin-bottom: 24px;
}

.c-pdf-list ul li {
    list-style: disc;
    list-style-position: inside;
}

@media (max-width: 768px) {
    .l-header__search-area {
        max-width: 98vw;
        padding-left: 16px;
        padding-right: 16px;
    }

    .l-header__search-area .l-header__search-button button {
        white-space: nowrap !important;
    }

    .c-accordion__head {
        flex-wrap: wrap;
        padding: 0.8rem 2.5rem 0.8rem 1rem;
    }

    .c-accordion__content {
        padding: 10px 16px;
    }

    .c-accordion__title {
        font-size: 13px;
        line-height: 1.5;
    }
}

.c-capsule-nav.is-sm ul {
    margin-top: 0;
    padding-top: 0;
}

.c-capsule-nav.is-sm li a {
    font-size: 12px;
    padding-left: 0;
    padding-right: 0;
    letter-spacing: 0;
    font-weight: normal;
    padding-bottom: 4px;
    padding-top: 4px;
}

.c-capsule-nav.is-sm ul li a:after {
    display: none;
}

.c-chat {
    z-index: 100;
}

@media (min-width: 768px) {
    .c-chat__content {
        min-width: 400px;
    }

    .c-chat__popup #ulAiWidget {
        min-width: 400px;
    }

    .c-chat.is-open iframe {
        width: 101% !important;
    }
}

#user_switching_switch_on {
    position: fixed;
    bottom: 10px;
    left: 10px;
    color: #FFF;
    text-decoration: none;
}

#user_switching_switch_on a {
    background: #000;
    border-radius: 4px;
    color: #FFF;
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all ease .2s;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1);
}

#user_switching_switch_on a:before {
    content: "\f104";
    font-family: FontAwesome;
    display: inline-block;
    margin-right: 14px;
}

.wpulike.wpulike-default .wp_ulike_general_class:hover .count-box {
    background: transparent !important;
}


.c-notice-subtext small {
    font-size: 12px;
}

@media (max-width: 768px) {
    .c-notice-subtext small {
        font-size: 10px;
    }
}

@media (min-width: 768px) and (max-width: 1150px) {
    .c-main-visual {
        max-height: initial;
        height: auto;
    }

    .c-main-visual__image {
        position: relative;
        width: 100%;
    }

    .c-main-visual__text {
        position: relative;
        width: 100%;
        height: 100%;
        transition: all .3s;
        padding: 32px 16px 24px;
        transform: none;
        top: 0;
        left: 0;
    }

    .l-header__buttons {
        padding-top: 0;
    }

    .c-main-visual__button {
        margin-top: 1rem;
    }

    .c-mainvisual__pages,
    .c-main-visual__number {
        display: none;
    }
}

.l-global-nav__layer {
    height: calc(100vh - 180px) !important;
}

@media (min-width: 768px) {
    .l-global-nav__sub__inner {
        border-top: 1px solid #E8E8E8;
    }

    .l-global-nav .c-category-navi.is-global-navi .c-category-navi__cont > li.c-category-navi__cont-top {
        margin-top: 20px;
    }
}

.c-box-simple__text ul li {

}

.sourceCode pre {
    background: transparent;
}

.box14 {
    padding: 0.2em 0.5em;
    background: #d6ebff;
    box-shadow: 0px 0px 0px 10px #d6ebff;
    border: dashed 2px white;
    border-radius: 4px;
    width: 96%;
    margin-left: 2%;
    margin-top: 8px;
}

.box15 {
    padding: 0.2em 0.5em;
    margin-top: 8px;
    color: #565656;
    background: #ffeaea;
    box-shadow: 0px 0px 0px 10px #ffeaea;
    border: dashed 2px #ffc3c3;
    border-radius: 4px;
    width: 96%;
    margin-left: 2%;
    margin-top: 34px;
    margin-bottom: 30px;
}

.l-main.is-two-columns .w-block.is-1 .c-iconblock__content h4 {
    margin-top: 1em;
}

.l-main.is-two-columns .w-block.is-1 .c-iconblock__content h3 {
    margin-top: 1.5em;
}

.c-news__block.is-content {
    flex-wrap: wrap;
}

.c-news__block.is-content .c-news__text {
    font-weight: bold;
}

ul.is-arrow li a:visited {
    color: #666;
}

.c-news__block.is-content .c-news__content {
    width: 100%;
}

@media (min-width: 900px) {
    .c-main-visual__image__link img {
        width: 100% !important;
        height: auto !important;
    }

    .c-chat {
        z-index: 100;
        max-height: calc(100vh - 180px);
    }

    .c-chat.is-open iframe {

        max-height: calc(100vh - 120px);
    }
}


@media (max-width: 899px) {
    .c-main-visual__image__link img {
        width: 100% !important;
        height: auto !important;
    }

}

.c-table tbody tr th, #tinymce.post-type-post table tbody tr th, #tinymce.post-type-page table tbody tr th, #tinymce.post-type-messages table tbody tr th, #tinymce.post-type-libraries table tbody tr th, #tinymce.post-type-departments table tbody tr th, #tinymce.post-type-welfares table tbody tr th, #tinymce.post-type-notices table tbody tr th, #tinymce.post-type-updateinfo table tbody tr th, #tinymce.acf_content table tbody tr th, #tinymce.post-type-clubcircles table tbody tr th, #tinymce.post-type-features table tbody tr th, .l-post-content table tbody tr th {
    width: auto;
}

.wpp-no-data {
    padding: 16px;
    background: #F5F5F5;
    text-align: center;
}

body.loginform .c-panel {
    margin-top: 4vh;
}

#login_error {
    letter-spacing: 0;
}

@media (max-width: 768px) {
    body.loginform .c-panel {
        width: 96vw;
        margin-top: 2vh;
        padding: 20px 24px;
        padding-top: 5vh;
    }

    .c-login-logo {
        max-width: 200px
    }

}

.c-seminar-video-text {
    margin-top: 6px;
}

.c-seminar-video-text {
    font-size: 1em;
}

.c-seminar-video-text p {
    font-size: 1em;
}

@media(min-width: 768px) {
    .l-footer__image + .l-footer__image {
        margin-top: 1.5rem;
    }
}



.mw_wp_form_g-standard .is-readonly {
    pointer-events: none!important;
    border: none !important;
    -webkit-appearance: none!important;
    box-shadow: none!important;
    outline: none!important;
}
.c-sidebar__box-input .wpulike-default button.wp_ulike_btn {
max-height: 14px;
min-height: 0px;
min-width: 50px;
line-height: 1;
padding-top: 2px;
padding-bottom: 10px;
}


/**
2023年4月12日 水曜日
**/
@media(min-width: 768px){
    .l-header__buttons  {
        display: flex;
    }
    .l-header__buttons a {
        max-width: initial !important;
    }
    .l-header__buttons a.is-sm {
        min-height: 53px;
        display: flex;
        align-items: center;
    }

}
@media(min-width: 1140px){
    .l-header__buttons a.is-sm + .is-sm + .is-sm {
        display: block;
    }
    .l-header__buttons {
        padding-top: 20px;
    }
}
.c-slidebar-menu__top-buttons {
    flex-wrap: wrap;
}
.c-slidebar-menu__top-buttons a {
    white-space: nowrap;
    max-width: initial !important;
    width: auto !important;
}
.l-header__buttons small {
    font-size: 11px;
}

/*
20230418
 */

.l-post-content .c-price-table td {
    font-size: 13px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 6px;
    padding-right: 6px;
}

.l-post-content .c-price-table td input[type="number"] {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #666;
    border-radius: 4px;
}


.l-post-content .c-price-table tbody tr:nth-child(5n){
    background: #ecfafb;
}
.c-price-table {
    margin-bottom: 40px;
}
.c-price-block__dl {
    display: flex;
    justify-content: flex-end;
    text-align: right;
}
.c-price-block__dl dt {
    flex-basis: 300px;
}

.c-price-block__dl dd {
    flex-basis: 100px;
}
.c-price-block .js-text-input {
    border: none;
    border-radius: 0;
    padding: 0;
    height: auto;
    width: auto;
    background: transparent;
    width: 50px;
    pointer-events: none;
}
.c-price-block .js-text-input:active,
.c-price-block .js-text-input:focus {
    border: none;
    outline: none;
}
.c-price-block input[type=text]:read-only {
    background: #e8e8e8;
}
.mw_wp_form .c-button.is-lg {
    background: #009f3e;
    color: #FFF;
}
.mw_wp_form .c-panel {
margin-top: 40px;
}
.mw_wp_form .c-panel__title {
    background: none;
    padding:0;
    margin-top: 0;

}
.l-header__ex-links ul {
    position: relative;
    z-index: 1000;
}
/* @media(min-width: 768px){
    .l-header__inner.is-left {
        width: auto;
        max-width: auto;
        max-width: initial;
        position: absolute;
    }
    .l-header__inner.is-right {
        width: auto;
        max-width: auto;
        max-width: initial;
        position: absolute;
        right: 0;
    }
} */

@media(max-width: 768px){
    .l-header__buttons .c-button.is-accent.is-sm+.is-sm+.is-sm+.is-sm {
        display: none !important;
    }
}

/* ヘッダーアイコン設定 */
.l-header__custom-icon {
    display: flex;
    align-items: center;
    margin-right: 15px; /* Adjust spacing as needed */
}
.l-header__custom-icon img {
    height: auto;
    max-height: 50px;
    width: auto;
}
@media(max-width: 768px){
    .l-header__custom-icon {
        margin-right: 4px;
    }
    .l-header__custom-icon img {
        max-height: 35px;
    }
}


/* 追従バナー設定 */
.c-floating-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 320px;
    width: 100%;
}
.c-floating-banner a {
    display: block;
    line-height: 0;
}
.c-floating-banner img {
    width: 100%;
    height: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.c-floating-banner__close {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.c-floating-banner__close:hover {
    background: #f0f0f0;
}
@media (max-width: 768px) {
    .c-floating-banner {
        max-width: 260px; /* モバイルでは少し小さめに */
        right: 16px;
        bottom: 16px;
    }
    .c-floating-banner__close {
        width: 36px; /* タップ領域確保 */
        height: 36px;
        line-height: 34px;
        top: -18px;
        left: -18px;
    }
}

/* ヘッダーアイコン設定 */
.l-header__custom-icon {
    display: flex;
    align-items: center;
    margin-right: 15px; /* Adjust spacing as needed */
}
.l-header__custom-icon img {
    height: auto;
    max-height: 50px;
    width: auto;
}
@media(max-width: 768px){
    .l-header__custom-icon {
        margin-right: 4px;
    }
    .l-header__custom-icon img {
        max-height: 35px;
    }
}


/* 追従バナー設定 */
.c-floating-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 320px;
    width: 100%;
}
.c-floating-banner a {
    display: block;
    line-height: 0;
}
.c-floating-banner img {
    width: 100%;
    height: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.c-floating-banner__close {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.c-floating-banner__close:hover {
    background: #f0f0f0;
}
@media (max-width: 768px) {
    .c-floating-banner {
        max-width: 260px; /* モバイルでは少し小さめに */
        right: 16px;
        bottom: 16px;
    }
    .c-floating-banner__close {
        width: 36px; /* タップ領域確保 */
        height: 36px;
        line-height: 34px;
        top: -18px;
        left: -18px;
    }
}

/* ================================================================
 * リッチ検索結果ページ
 * ================================================================ */

/* --- 検索結果ヘッダー --- */
.search-results__header {
    margin-bottom: 20px;
}
.search-results__title {
    font-size: 1.25rem;
    line-height: 1.6;
}
.search-results__keyword {
    color: #24459C;
    font-weight: bold;
}
.search-results__count {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
    margin-left: 4px;
}

/* --- 投稿タイプフィルタバー --- */
.search-filter {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}
.search-filter__label {
    font-size: 0.8125rem;
    font-weight: bold;
    color: #555;
    white-space: nowrap;
    padding-top: 5px;
    min-width: 40px;
}
.search-filter__items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.search-filter__item {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.8125rem;
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.6;
}
.search-filter__item:hover {
    color: #24459C;
    border-color: #24459C;
    background: #eef1f9;
    text-decoration: none;
}
.search-filter__item.is-active {
    color: #fff;
    background: #24459C;
    border-color: #24459C;
    font-weight: bold;
}

/* --- ソートバー --- */
.search-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}
.search-sort__label {
    font-size: 0.8125rem;
    font-weight: bold;
    color: #555;
    white-space: nowrap;
}
.search-sort__items {
    display: flex;
    gap: 4px;
}
.search-sort__item {
    display: inline-block;
    padding: 3px 12px;
    font-size: 0.75rem;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1.6;
}
.search-sort__item:hover {
    color: #24459C;
    background: #f0f3ff;
    text-decoration: none;
}
.search-sort__item.is-active {
    color: #24459C;
    background: #e8edfa;
    font-weight: bold;
}

/* --- 検索結果アイテム --- */
.search-results__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.search-result-item {
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
}
.search-result-item:first-child {
    padding-top: 0;
}
.search-result-item__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.search-result-item__header .c-label {
    font-size: 0.6875rem;
    padding: 2px 8px;
    min-width: auto;
}
.search-result-item__date {
    font-size: 0.75rem;
    color: #888;
}
.search-result-item__title {
    margin-bottom: 6px;
}
.search-result-item__title a {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    line-height: 1.6;
}
.search-result-item__title a:hover {
    color: #24459C;
    text-decoration: underline;
}

/* --- パンくず（各アイテム内） --- */
.search-result-item__breadcrumb {
    margin-bottom: 6px;
    font-size: 0.75rem;
    color: #999;
    line-height: 1.5;
}
.search-result-item__breadcrumb a {
    color: #888;
    text-decoration: none;
}
.search-result-item__breadcrumb a:hover {
    color: #24459C;
    text-decoration: underline;
}
.search-breadcrumb-sep {
    display: inline-block;
    margin: 0 3px;
    color: #ccc;
    font-size: 0.625rem;
}

/* --- 抜粋文 --- */
.search-result-item__excerpt {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 6px;
    /* 3行で打ち切り */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- キーワードハイライト --- */
.search-highlight,
mark.search-highlight {
    background-color: #fff3cd;
    color: inherit;
    padding: 1px 2px;
    border-radius: 2px;
    font-style: normal;
}

/* --- メタ情報（著者） --- */
.search-result-item__meta {
    font-size: 0.75rem;
    color: #888;
}
.search-result-item__meta .fa {
    margin-right: 3px;
}
.search-result-item__author {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* --- 投稿タイプ別ラベル色 --- */
.search-result-item__header .c-label.is-type-page {
    color: #0c7a3a;
    border-color: #0c7a3a;
    background: #e8f5e9;
}
.search-result-item__header .c-label.is-type-features {
    color: #c62828;
    border-color: #c62828;
    background: #ffebee;
}
.search-result-item__header .c-label.is-type-libraries {
    color: #ad6800;
    border-color: #ad6800;
    background: #fff8e1;
}
.search-result-item__header .c-label.is-type-departments,
.search-result-item__header .c-label.is-type-welfares,
.search-result-item__header .c-label.is-type-clubcircles {
    color: #6a1b9a;
    border-color: #6a1b9a;
    background: #f3e5f5;
}
.search-result-item__header .c-label.is-type-notices {
    color: #1565c0;
    border-color: #1565c0;
    background: #e3f2fd;
}

.search-result-item__header .c-label.is-type-kitei,
.search-result-item__header .c-label.is-type-kyotei {
    color: #37474f;
    border-color: #37474f;
    background: #eceff1;
}
.search-result-item__header .c-label.is-type-reports {
    color: #4e342e;
    border-color: #4e342e;
    background: #efebe9;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .search-filter {
        flex-direction: column;
        gap: 6px;
        padding: 10px 12px;
    }
    .search-filter__label {
        padding-top: 0;
    }
    .search-filter__items {
        gap: 4px;
    }
    .search-filter__item {
        padding: 3px 10px;
        font-size: 0.75rem;
    }
    .search-sort {
        flex-wrap: wrap;
        gap: 4px;
    }
    .search-sort__item {
        padding: 2px 8px;
        font-size: 0.6875rem;
    }
    .search-result-item__title a {
        font-size: 0.9375rem;
    }
    .search-result-item__excerpt {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }
    /* モバイル: フィルタ折りたたみ */
    .search-filter.is-collapsible .search-filter__label {
        cursor: pointer;
        position: relative;
        padding-right: 20px;
    }
    .search-filter.is-collapsible .search-filter__label::after {
        content: '\f107'; /* Font Awesome angle-down */
        font-family: 'FontAwesome';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.2s;
    }
    .search-filter.is-collapsible.is-expanded .search-filter__label::after {
        transform: translateY(-50%) rotate(180deg);
    }
    .search-filter__items.is-collapsed {
        display: none;
    }
    .l-header__custom-icon {
        width: 50px;
    }
    .l-header__searchlang,
    .c-slidebar-button {
        width: 50px;
    }
    .l-header__ir {
        max-width: 135px;
    }
    .l-header__container {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    .l-header__inner.is-right {
        margin-right: 36px;
    }
    .l-header__top {
        gap: 0px;
    }
}
