/* WordPress Gallery
------------------------------------------ */

.gallery:not(body) {
    margin-left: -0.5em;
    margin-right: -0.5em;
}

.gallery:not(body):after {
    display: table;
    content: "";
    clear: both;
}

.gallery-item {
    margin: 0;
    float: left;
    padding: 0.5em;
}

.gallery-item img {
    width: 100%;
}

.gallery-columns-1 .gallery-item {
    width: 100%;
    float: none;
}

.gallery-columns-2 .gallery-item {
    width: 50%
}

.gallery-columns-3 .gallery-item {
    width: 33.3333%
}

.gallery-columns-4 .gallery-item {
    width: 25%
}

.gallery-columns-5 .gallery-item {
    width: 20%
}

.gallery-columns-6 .gallery-item {
    width: 16.6667%
}

.gallery-columns-7 .gallery-item {
    width: 14.2857%
}

.gallery-columns-8 .gallery-item {
    width: 12.5%
}

.gallery-columns-9 .gallery-item {
    width: 11.1111%
}

.gallery-columns-2 .gallery-item:nth-of-type(2n+1),
.gallery-columns-3 .gallery-item:nth-of-type(3n+1),
.gallery-columns-4 .gallery-item:nth-of-type(4n+1),
.gallery-columns-5 .gallery-item:nth-of-type(5n+1),
.gallery-columns-6 .gallery-item:nth-of-type(6n+1),
.gallery-columns-7 .gallery-item:nth-of-type(7n+1),
.gallery-columns-8 .gallery-item:nth-of-type(8n+1),
.gallery-columns-9 .gallery-item:nth-of-type(9n+1) {
    clear: left;
}

/* WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*固定ページのクラシック版段落ブロックで画像を張り替えた際のマージン防止*/
body.page img.alignnone {
    margin: 0;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    white-space: nowrap;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}

.logged-in.admin-bar .l-header,
.logged-in.admin-bar .c-slidebar-button {
    margin-top: var(--wp-admin--admin-bar--height) !important;
}

.mw_wp_form_input .u-hidden-mw-wp-input,
.mw_wp_form_confirm .u-hidden-mw-wp-confirm,
.mw_wp_form_complete .u-hidden-mw-wp-complete {
    display: none !important;
}

.mw_wp_form_confirm .c-forms__privacy {
    display: none !important;
}

.mw_wp_form_confirm #zipauto,
.mw_wp_form_confirm .c-forms__note,
.mw_wp_form_confirm .c-forms__block.is-privacy-policy {
    display: none !important;
}

.mw_wp_form_confirm .c-forms__privacy a,
.mw_wp_form_confirm .c-forms__block a {
    text-decoration: none !important;
    color: inherit !important;
    pointer-events: none !important;
}

.c-forms__privacy-button-wrapper .mwform-checkbox-field.horizontal-item {
    width: 1.5rem;
}

.mw_wp_form .horizontal-item + .horizontal-item {
    margin-left: 0;
}

.c-forms__radio.is-column-02 .error, .c-forms__checkbox.is-column-02 .error {
    grid-column: 1 / -1;
}

.wp-embedded-content {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px;
    margin-bottom: 16px;
}

/* Breadcrumb
-------------------------------------------------------------- */

/*.c-breadcrumb__inner {*/
/*    white-space: nowrap;*/
/*    overflow: hidden;*/
/*    text-overflow: ellipsis;*/
/*}*/

.l-post-content {
    text-align: justify;
}

/* SNS　一覧
-------------------------------------------------------------- */
/* フッターへの追加 */
.l-footer__nav-list a.is-sns {
    display: inline-flex;
    gap: 8px;
}

/* ページの追加 */
.c-sns-section {
    margin-top: 72px;
}

.c-sns-main-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.c-sns-other-list .c-panel__content{
    display: none;
}

.c-sns-main-item a {
    display: inline-block;
    width: 100%;
    height: 100%;
    border: solid 1px #c5c5c5;
    background: #fff;
    text-decoration: none;
    line-height: 1.5;
    border-color: #231815;
    font-weight: bold;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 4px;
    text-align: center;
}

.c-sns-main-item a:hover{
    border-color: #de0061;
    color: #de0061;
    opacity: 1;
}

.p-sns-main-icon {
    max-width: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-inline: auto;
    margin-bottom: 10px;
}

.c-sns-other-title {
    padding: 16px;
    padding-right: 40px;
    margin: -16px;
    cursor: pointer;
    position: relative;
}

.c-sns-other-title .c-block-article__block-icon {
    position: absolute;
    top: calc(50% - 9px);
    right: 14px;
    transform: rotate(90deg);
    transition: transform .5s;
}

.c-sns-other-wrap.is-open .c-block-article__block-icon {
    transform: rotate(-90deg);
}

.c-sns-other-title .c-block-article__block-icon-arrow {
    width: 18px;
    height: 18px;
}

.c-sns-other-wrap{
    margin-top: 24px;
    padding: 16px;
    border: solid 1px #231815;
    border-radius: 4px;
}

.c-sns-other-wrap:hover,
.c-sns-other-wrap.is-open {
    border-color: #de0061;
}

.c-sns-other-wrap .c-heading{
    background: none;
    font-size: 18px;
    padding: 0;
    margin-bottom: 0;
}

.c-sns-other-items {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2rem;
}

.c-sns-other-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration-color: rgba(0, 0, 0, 0);
    line-height: 1.3;
}

.c-sns-other-link:hover {
    opacity: 1;
    color: #de0061;
    text-decoration-color: #de0061;
}

.c-sns-other-name {
    font-size: 16px;
    font-weight: bold;
}

.p-sns-other-icon {
    width: 20px;
    height: 20px;
}
.p-sns-other-icon.is-lg {
    width: 50px;
    height: 50px;
}
@media screen and (max-width: 59.3125em) {
    .c-sns-main-list{
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media screen and (max-width: 46.8125em) {
    .p-sns-main-icon {
        max-width: 50px;
    }
    .c-block-article__block-icon {
        margin-top: 0;
        padding: 0;
    }
    .c-sns-other-wrap{
        padding: 12px;
    }
    .c-sns-other-wrap .c-heading{
        font-size: 16px;
    }
    .c-sns-other-title {
        padding: 12px;
        padding-right: 36px;
        margin: -12px;
    }
    .c-sns-other-title .c-block-article__block-icon {
        top: calc(50% - 6px);
        right: 10px;
    }
    .c-sns-other-title .c-block-article__block-icon-arrow {
        width: 14px;
        height: 14px;
    }
    .c-sns-other-name {
        font-size: 13px;
    }
    .p-sns-other-icon {
        width: 16px;
        height: 16px;
    }
}
