/* headerのnavサイズ文字折れ対策 */
@media (min-width: 751px) {
    .c-navbar>li>a {
        width: auto;
        padding-left: 1.6em;
        padding-right: 1.6em;
    }
}

/* footerのnavサイズ文字折れ対策 */
#footer-menu-1 .c-menu__item a {
    display: block;
    padding-left: 1em;
    padding-right: 1em;
}
.c-navbar__footer ul li:not(:last-child) {
    margin-right: 0;
}

/* c-03-4のボタンwidth */
.c-list__c-03-4__item .c-btn {
	display: block;
}
.c-list__c-03-4__item .c-box {
    padding-left: 0;
    padding-right: 0;
}

/* テキストギャラリースタイル */
.yeargallery button {
    text-align: left;
    display: flex;
    flex-direction: column;
    background: hsla(0,0%,100%,.3);
    border: 0;
    font-weight: normal;
    width: 100%;
    height: 100%;
    padding: 2em;
    transition: all 0.3s;
}

.yeargallery button:hover {
    box-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
}

.yeargallery__in {
    display: flex;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

.yeargallery .yeargallery__list {
    border: 1px solid #ccc;
}

@media screen and (max-width:768px) {
    .yeargallery .yeargallery__list + .yeargallery__list {
        margin-top: -1px;
    }
    .yeargallery .yeargallery__item  {
        height: auto !important;
    }
}

.yeargallery .yeargallery__item + .yeargallery__item  {
    border-top: 1px solid #ccc;
}

.yeargallery figure {
    transition: all 0.3s;
}
.yeargallery figure:hover {
    box-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
    border-radius: 100px;
}


.yeargallery__body_imgs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 1em;
    width: fit-content;
    position: relative;
}
.yeargallery__body_imgs::before {
    content: "Click";
    position: absolute;
    transform: rotate(-25deg);
    left: -5em;
    font-weight: bold;
    color: #333;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
    padding: 0.2em 0.8em;
    border-radius: 4px;
    background: #fff;
    bottom: 0;
    white-space: nowrap;
}
.yeargallery__body_imgs::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    transform: rotate(-25deg);
    bottom: -4px;
    left: -3em;
    display: block;
    border-top: 8px solid #fff;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}
.yeargallery__body_imgs img {
    width: 44px;
    border-radius: 100px;
    overflow: hidden;
}

@media screen and (min-width:769px) {
    .yeargallery__in {
        flex-direction: row;
    }
    .yeargallery__list {
        width: 50%;
        border-radius: 8px;
    }
    .yeargallery__list + .yeargallery__list {
        margin-left: -1px;
    }
    .yeargallery__list:first-child {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    .yeargallery__list:last-child {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .yeargallery .yeargallery__list:first-child > *:first-child button {
        border-top-left-radius: 8px;
    }
    .yeargallery .yeargallery__list:first-child > *:last-child button {
        border-bottom-left-radius: 8px;
    }

    .yeargallery .yeargallery__list:last-child > *:first-child button {
        border-top-right-radius: 8px;
    }
    .yeargallery .yeargallery__list:last-child > *:last-child button {
        border-bottom-right-radius: 8px;
    }
}

.yeargallery--monthly button {
    padding-left: 4.7em;
}
.yeargallery--monthly .yeargallery__item {
    position: relative;
}
@media screen and (min-width:769px) {
    .yeargallery--monthly button {
        padding-left: 6em;
    }
}

.yeargallery--monthly .yeargallery__item::before {
    position: absolute;
    left: 1em;
    top: 2em;
    display: inline-block;
    width: 3em;
    height: 3em;
    text-align: center;
    line-height: 3em;
    background: #333;
    color: #fff;
    border-radius: 100px;
}
@media screen and (min-width:769px) {
    .yeargallery--monthly .yeargallery__item::before {
        left: 2em;
    }
}

.yeargallery--monthly .yeargallery__item--1::before {
    content: "1月";
}
.yeargallery--monthly .yeargallery__item--2::before {
    content: "2月";
}
.yeargallery--monthly .yeargallery__item--3::before {
    content: "3月";
}
.yeargallery--monthly .yeargallery__item--4::before {
    content: "4月";
}
.yeargallery--monthly .yeargallery__item--5::before {
    content: "5月";
}
.yeargallery--monthly .yeargallery__item--6::before {
    content: "6月";
}
.yeargallery--monthly .yeargallery__item--7::before {
    content: "7月";
}
.yeargallery--monthly .yeargallery__item--8::before {
    content: "8月";
}
.yeargallery--monthly .yeargallery__item--9::before {
    content: "9月";
}
.yeargallery--monthly .yeargallery__item--10::before {
    content: "10月";
}
.yeargallery--monthly .yeargallery__item--11::before {
    content: "11月";
}
.yeargallery--monthly .yeargallery__item--12::before {
    content: "12月";
}

.yeargallery--textonly .yeargallery__body_imgs {
    margin-top: 4em;
}
.yeargallery--textonly .yeargallery__body_imgs::before {
    bottom: initial;
    left: 0;
    top: -3em;
}
.yeargallery--textonly .yeargallery__body_imgs::after {
    bottom: initial;
    left: 2em;
    top: -1.2em;
}

.yeargallery__imgempty {
    user-select: none !important;
    cursor: auto;
    box-shadow: none !important;
}

/* with title */
.yeargallery--withtitle .yeargallery__item button {
    padding: 1em;
}
.yeargallery--withtitle .yeargallery__item .yeargallery__body {
    display: grid;
    grid-template-areas:
        "title text"
        "imgs imgs";
    grid-template-columns: 130px 1fr;
}

.yeargallery--withtitle .yeargallery__item .yeargallery__body_title {
    grid-area: title;
    padding: 1em;
    font-weight: bold;
}

.yeargallery--withtitle .yeargallery__item .yeargallery__body_text {
    grid-area: text;
    padding: 1em;
}

.yeargallery--withtitle .yeargallery__item .yeargallery__body_imgs {
    grid-area: imgs;
    margin-left: 4em;
}

