:root {
    --link-color: #3b6eaa;
    --font-fa: 'FontAwesome';
}

.ff-fa {
    font-family: var(--font-fa);
}

.btnwrap {
    margin-top: 2em;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}
.btnwrap--center {
    justify-content: center;
}
.btnwrap .btnwrap__btn {
    position: relative;
}
.btnwrap .btnwrap__btn::after {
    font-family: var(--font-fa);
    content: "\f054";
    position: absolute;
    right: 1.5em;
    top: 0.9em;
    font-size: 10px;
}
.btnwrap .btnwrap__btn[target="_blank"]::after {
    content: "\f08e";
}

@media screen and (max-width:768px) {
    .btnwrap {
        justify-content: center;
    }
}

/* imgobject */
.imgobject {
    position: relative;
}
.imgobject__item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.imgobject__item::before {
    content: "";
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
}
.imgobject__item--elemin {
    z-index: -1;
}

/* flexiblelayoutorder */
.flexiblelayoutorder__in {
    display: grid;
    grid-template-areas: "img body";
    grid-template-columns: 50% 50%;
}
.flexiblelayoutorder--right-left .flexiblelayoutorder__in {
    grid-template-areas: "body img";
}
@media screen and (max-width:768px) {
    .flexiblelayoutorder--right-left .flexiblelayoutorder__in,
    .flexiblelayoutorder--left-right .flexiblelayoutorder__in {
        grid-template-columns: 100% !important;
        grid-template-areas:
            "img"
            "body";
    }
}

.flexiblelayoutorder--top-bottom .flexiblelayoutorder__in {
    grid-template-columns: 100%;
    grid-template-areas:
        "img"
        "body";
}
.flexiblelayoutorder--bottom-top .flexiblelayoutorder__in {
    grid-template-columns: 100%;
    grid-template-areas:
        "body"
        "img";
}
.flexiblelayoutorder__img {
    grid-area: img;
    position: relative;
}
.flexiblelayoutorder--imgcenter .flexiblelayoutorder__in {
    align-items: center;
}
.flexiblelayoutorder__imgin {
    position: relative;
}
.flexiblelayoutorder--circle .flexiblelayoutorder__imgin {
    width: 100%;
    padding-top: 100%;
}
.flexiblelayoutorder__img img {
    display: block;
}
.flexiblelayoutorder--ver img {
    margin: 0 auto;
}
.flexiblelayoutorder--hol .flexiblelayoutorder__img {
    width: 100%;
}
.flexiblelayoutorder__img .imgobject__item {
    z-index: 1;
}
.flexiblelayoutorder__body {
    grid-area: body;
    padding: 2em 3em;
    position: relative;
}
.flexiblelayoutorder--top-bottom .flexiblelayoutorder__body {
    padding: 3em 2em;
}
@media screen and (max-width:768px) {
    .flexiblelayoutorder__body {
        padding: 2.4em 1em;
    }
    .flexiblelayoutorder .flexiblelayoutorder__imgin {
        width: 100% !important;
    }
    .flexiblelayoutorder--bottom-top .flexiblelayoutorder__in {
        grid-template-areas:
        "img"
        "body";
    }
}

.flexiblelayoutorder__title {
    font-family: 'YugoBold';
    margin-bottom: 1em;
}
.flexiblelayoutorder__title, .flexiblelayoutorder__text {
    position: relative;
    z-index: 3;
}
.flexiblelayoutorder__text p + p {
    margin-top: 1.5em;
}
.flexiblelayoutorder__text a:not(.c-btn) {
    text-decoration: underline;
    color: var(--link-color);
}
.flexiblelayoutorder--circle .flexiblelayoutorder__img {
    position: relative;
}
.flexiblelayoutorder--circle .flexiblelayoutorder__img img {
    object-fit: cover;
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 9999px;
}
.flexiblelayoutorder--ver .flexiblelayoutorder__imgin {
    margin: 0 auto;
}
.flexiblelayoutorder--titlecenter .flexiblelayoutorder__title, .flexiblelayoutorder--textcenter .flexiblelayoutorder__text {
    text-align: center;
}
.flexiblelayoutorder--imgfullheight .flexiblelayoutorder__img {
    height: 100%;
}
.flexiblelayoutorder--imgfullheight .flexiblelayoutorder__imgin {
    height: 100%;
}
.flexiblelayoutorder--imgfullheight .flexiblelayoutorder__img img {
    height: 100%;
    object-fit: cover;
}

/* flexibletitle */
.flexibletitle__in {
    position: relative;
    z-index: 99;
}
.flexibletitle h1, .flexibletitle h2, .flexibletitle h3, .flexibletitle h4, .flexibletitle h5, .flexibletitle h6  {
    line-height: 1.3;
    text-align: center;
    font-family: 'YugoBold';
}
.flexibletitle__titlein {
    display: inline-block;
    position: relative;
}
.flexibletitle--hasborder .flexibletitle__titlein::after {
    content: "";
    position: absolute;
    bottom: -0.4em;
    left: 50%;
    transform: translate(-50%);
    width: 2.5rem;
    height: .125rem;
    background-color: #000;
}


/* 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);
    position: relative;
    z-index: 1;
}

.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;
}

