@charset "UTF-8";

/**fv**/
h2 {
    background-image: url(../img/top/top-fv.jpg);
}

/**お知らせセクション**/
h3 {
    text-align: center;
    margin-bottom: 2rem;
}

h4 {
    font-size: 14px;
    font-weight: 600;
}

/**お知らせ**/

/* reset
----------------------------------*/
* {
    transition: .3s all;
}

.tab_box {
    line-height: 1.15;
    /* 1 */
    -webkit-text-size-adjust: 100%;
    /* 2 */
    -webkit-tap-highlight-color: transparent;
    /* 3*/
}

/* Headings */
/* ============================================ */
.b-articles {
    width: 100%;
    height: 500px;
    margin-top: 2rem;
    overflow-y: scroll;
}

.tab_box h4 {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    margin: 0;
}

.tab_box ul,
.tab_box ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tab_box button {
    -webkit-appearance: none;
    appearance: none;
    vertical-align: middle;
    color: inherit;
    font: inherit;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    outline: 0;
    border-radius: 0;
    text-align: inherit;
    cursor: pointer;
}

.tab_box a {
    text-decoration: none;
    color: inherit;
}

/* layout
----------------------------------*/
.container {
    width: 100%;
    margin: 0 auto 20% auto;
}

/* tab ----------------*/
.b-tabs {
    display: flex;
    justify-content: space-between;
    padding-bottom: 2px;
    filter: drop-shadow(0 4px 2px rgb(0 0 0 / .1));
}

.b-tabs li {
    display: block;
    width: calc(98% / 5);
}

.b-tabs button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    padding: .5em 1em;
    opacity: .7;
    font-size: .8em;
    text-align: center;
    border-radius: 25px;
}

.b-tabs .active button,
.b-tabs button:hover {
    transform: translateY(2px);
    opacity: 1;
}

.b-tabs .active button {
    font-weight: 700;
    pointer-events: none;
}

/* post ----------------*/
.b-post {
    position: relative;
    overflow: hidden;
}

.b-post::before {
    content: "";
    display: block;
    width: 120%;
    height: 100%;
    position: absolute;
    right: 120%;
    transform-origin: left;
    transform: skewX(25deg);
    background-image: linear-gradient(150deg, #fff 0%, #fff 25%, #fef9d7 100%);
    z-index: -1;
    transition: .4s ease-out;
}

.b-post:hover::before {
    right: -10%;
}

.b-post a {
    display: flex;
    flex-wrap: wrap;
    padding: 30px 0 30px .8em;
    border-bottom: 1px dashed #ccc;
}

.b-postDate,
.e-postTitle {
    margin: .3em 0;
}

.b-postDate {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}

.e-time {
    font-size: .9em;
}

.e-catName {
    display: inline-flex;
    align-items: center;
    margin: 0 1em;
    padding: .2em .5em;
    border-radius: 3px;
    font-size: .75em;
    color: #333333;
}

.e-postTitle {
    line-height: 1.5;
}

/* cat color */
.cat-all button {
    background: #5C5C5C;
    color: #fff;
}

.cat-event button,
[data-cat="event"] {
    background: #FFF3B0;
}

.cat-benefits button,
[data-cat="benefits"] {
    background: #FFD6E0;
}

.cat-update button,
[data-cat="update"] {
    background: #D4F4DD;
}


/**カレンダー**/
.calendar-box {
    width: 100%;
    margin: 0 auto;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* 7列固定 */
    gap: 4px;
    /* セル間の余白を少し狭める */
}

.day-cell {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px;
    /* 内側余白を小さめに */
    min-height: 60px;
    /* 高さを抑える */
    font-size: 10px;
    /* 文字サイズも少し小さめに */
    background: #fff;
}

.day-cell {
    padding: 4px;
    min-height: 60px;
}

.events {
    display: grid;
    gap: 4px;
    grid-auto-rows: min-content;
}

.badge {
    max-width: 100%;
}


.badge.event {
    background: #FFF3B0;
}

.badge.benefits {
    background: #FFD6E0;
}

.badge.update {
    background: #D4F4DD;
}

.badge.holiday {
    background: #ffc6c6;
}

/* バッジは省略表示（小さく） */
.badge {
    display: block;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-top: 4px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    cursor: pointer;
}

/* モーダル枠（別枠で全文表示） */
.detail-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

.detail-modal.active {
    display: block;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}

.detail-content {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    top: 8%;
    width: min(640px, 92vw);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
    animation: modalIn .22s ease;
}

.detail-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.detail-body {
    padding: 16px 18px;
    color: #06344C;
    font-size: 14px;
    line-height: 1.6;
}

/* ふわっと */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateX(50%) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateX(50%) scale(1);
    }
}

/* サイドパネルにしたい場合（オプション） */
.detail-modal.side .detail-content {
    right: 0;
    transform: none;
    top: 0;
    height: 100vh;
    width: min(420px, 92vw);
    border-radius: 0;
}

@media screen and (max-width: 767px) {

    /*　　（スマホ）お知らせセクション　　*/

    /**お知らせ**/

    /*　　（スマホ）Headings　　*/
    /* ============================================ */
    .b-articles {
        width: 100%;
        height: 50svh;
    }

    .tab_box {
        margin-bottom: 1rem;
    }

    .container .btn {
        margin-bottom: 2rem;
    }

    /*　　（スマホ）layout　　*/
    .container {
        width: 100%;
    }

    /*　　（スマホ）カレンダー　　*/
    .calendar-box {
        width: 100%;
        margin: 0 auto;
    }

    .calendar-grid {
        gap: 2px;
        /* セル間の余白を少し狭める */
    }
}

/*font
英語
font-family: "Quicksand", sans-serif;
font-weight: Light-300,Regular-400,Medium-500,SemiBold-600,Bold-700;

日本語
font-family: "Murecho", sans-serif;
font-weight: Thin-100,ExtraLight-200,Light-300,Regular-400,Medium-500,SemiBold-600,Bold-700,ExtraBold-800,Black-900;
*/