@charset "UTF-8";

/*
　override用CSS
*/

/* Top 検索 */
@media (min-width: 760px) {
    .main-search .main-search-tab ul li.keyword a {
        border-left: none;
    }

    /* タブのデザイン */
    .main-search .main-search-tab li a {
        color: #0072BA !important;
        background: #fff;
        border-top: 1px solid #0072BA;
        border-bottom: 1px solid #0072BA;
        border-left: 1px solid #0072BA;
    }
    
    /* 最後の要素の右ボーダー */
    .main-search .main-search-tab li:last-child a {
        border-right: 1px solid #0072BA;
    }

    /* アクティブ時の背景色 */
    .main-search-tab li.active a,
    .main-search-tab li a:hover {
        color: #fff !important;
        background: #0072BA !important;
        border: 1px solid #0072BA;
    }
    
    /* 下三角 */
    .main-search .main-search-tab ul li.active:after {
        border-color: transparent transparent #0072BA transparent;
    }
}

/* Background */
.main-visual,
.about-supporter-visual {
    background: #70a9d2 url(/img/bg-mountain04.svg) no-repeat left bottom/100% auto;
}

.sp-header-nav-wrapper {
    background: url(/img/bg-mountain04.svg) no-repeat center bottom/auto 90px;
}

/* TOP event */
.yukiyama-events .event-day {
    font-weight: normal; 
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

.yukiyama-events .event-day .event-now {
    color: #fff;
    background: #0072BA;
    font-size: 14px;
    padding: 0px 6px;
    margin-left: 10px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-top: 0;
}

/* イベントタイトルトリミング */
.yukiyama-events p.event-title {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
    margin: 0;
    padding: 0 10px;
    font-weight: bold;
}

/* お知らせ本文トリミング */
.entry-10 .content .detail p.comment {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    word-break: break-word;  /* URLなどが来たときに崩れるのを防ぐ */
}

/* Headerのドロップダウンメニュー */
.main-header-nav ,
.main-header-nav > ul ,
.main-header-nav > ul > li {
    height: 100%;
    display: flex;
    align-items: center;
}

.main-header-nav > ul > li.menu-item-has-children{
    position: relative;
    
    &:hover .sub-menu {
        /* display: block; */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;  /* 表示時はクリックイベントを有効化 */

    }

    .sub-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        pointer-events: none;  /* 非表示時はクリックイベントを無効化 */

        align-items: initial;
        position: absolute;
        top: 100%;
        left: 0;
        background: #0084d6;
        min-width: 250px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        border-radius: 0 0 5px 5px;
        
        li {
            width: 100%;
            padding: 15px;

            &:not(:last-child) {
                box-shadow: 0 0.5px 0 rgba(241, 241, 241, 0.6);
                /* border-bottom: 1px solid rgb(241, 241, 241, 0.6); */
            }
        }
    }
}
