/**
 * 全体
 */
#galleries {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    background-color: #FFF;
    /* padding-top: 20px; */
}
#bridal-gallery {
    width: 1020px;
    min-height: 100vh;
    padding: 0 20px 20px 20px;
    margin: 0 auto;
}
.hide {
    display: none !important;
}

/**
 * ヘッダー部
 */
#gallery-header {
    position: relative;
    height: 60px;
}
#gallery-logo-wrapper {
    width: 180px;
    height: 45px;
}
#gallery-logo-wrapper img, #gallery-logo-wrapper div {
    float: left;
}
#gallery-logo-wrapper #gallery-logo-glyph {
    width: 35px;
    height: 35px;
    margin-top: 5px;
}
#gallery-logo-wrapper #gallery-logo-bar {
    width: 1px;
    height: 40px;
    background-color: #333;
    margin: 3px 10px 0 10px;
}
#gallery-logo-wrapper #gallery-logo-text {
    width: 124px;
    margin-top: 1px;
}

#gallery-header .search-bar {
    width: 450px;
    height: 45px;
    position: absolute;
    top: 7px;
    left: 215px;
    overflow: visible;
}
#gallery-header .search-bar .submit {
    content: '';
    position: absolute;
    top: 3px;
    right: 0;
    width: 39px;
    height: 39px;
    border-left: 1px solid #707070;
    background-image: url('/assets/img/gallery/search.png');
    background-size: 28px 28px;
    background-position: center center;
    background-repeat: no-repeat;
}
#gallery-header .search-bar input {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 1px solid #C5C5C5;
    box-shadow: 0px 4px 16px rgba(69, 91, 99, 0.2);
    box-sizing: border-box;
    padding-right: 40px;
    padding-left: 15px;
    font-size: 14px;
}
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}
@-moz-keyframes spin {
    0% {
        -moz-transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(360deg);
    }
}
@-ms-keyframes spin {
    0% {
        -ms-transform: rotate(0deg);
    }
    100% {
        -ms-transform: rotate(360deg);
    }
}
@-o-keyframes spin {
    0% {
        -o-transform: rotate(0deg);
    }
    100% {
        -o-transform: rotate(360deg);
    }
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/**
 * クリップリストへ
 */
#gallery-header #clip-wrapper {
    width: 165px;
    height: 35px;
    line-height: 35px;
    position: absolute;
    top: 13px;
    right: 0;
}
#gallery-header #clip-wrapper a {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 1px solid #B2B9C7;
    box-sizing: border-box;
    display: block;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    color: #B2B9C7;
    font-size: 16px;
    white-space: nowrap;
    text-decoration: none;
}
#gallery-header #clip-wrapper a:before {
    content: '';
    width: 17px;
    height: 17px;
    margin-right: 5px;
    background-image: url(/assets/img/gallery/heart.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    position: relative;
    top: 4px;
}

/**
 * カテゴリ
 */
#categories-contents-wrapper {
    border-top: 1px solid #707070;
    border-bottom: 1px solid #707070;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
}
#categories-wrapper.pc .category-icon {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    /* width: calc(16.6667% - 10px); */
    white-space: nowrap;
    height: 30px;
    color: rgb(182, 182, 182);
    cursor: pointer;
    padding: 0px 10px;
    margin: 5px;
    border-radius: 15px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(182, 182, 182);
    border-image: initial;
}
#categories-wrapper .category-icon.active {
    color: #fff;
    background-color: #B2B9C7;
}

/**
 * タグ
 */
#popular-tags-wrapper {
    margin-bottom: 10px;
}
#popular-tags-wrapper h5 {
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    vertical-align: top;
    padding-top: 1px;
    font-size: 14px;
}
#popular-tags {
    display: inline-block;
    width: calc(100% - 140px);
}
#popular-tags a {
    display: inline-block;
    color: #78849E;
    margin-right: 5px;
    font-size: 14px;
}

/**
 * 並び順
 */
#order-wrapper {
    margin-bottom: 10px;
    height: 35px;
}
#order-select-wrapper {
    width: 200px;
    height: 35px;
    line-height: 35px;
    border-radius: 4px;
    border: 1px solid #B2B9C7;
    background-color: #fff;
    float: right;
    display: flex;
    position: relative;
    overflow: hidden;
    padding-left: 30px;
}
#order-select-wrapper:before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url(/assets/img/gallery/sortarrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: #B2B9C7;
    display: block;
    position: absolute;
    top: 7px;
    left: 7px;
}
#order-select-wrapper span {
    color: #B2B9C7;
    flex-grow: 0;
    display: inline-block;
    padding: 0;
    font-size: 14px;
}
#order-select-wrapper select {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 16px;
}
#order-select-wrapper .selected-order {
    border: none;
    appearance: none;
    color: #B2B9C7;
    flex-grow: 1;
    line-height: 35px;
    background-color: transparent;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
}


/**
 * 画像ブロック
 */
#image-template {
    display: none;
}

#image-block-wrapper:after {
    content: '';
    display: block;
    clear: both;
}
#image-block-wrapper .image-block {
    width: 316px;
    height: 316px;
    float: left;
    margin: 0 16px 16px 0;
    cursor: pointer;
}
#image-block-wrapper .image-block:nth-child(3n) {
    margin-right: 0;
}
#image-block-wrapper .image-block .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/**
 * ポップアップ
 */
#popup-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
    z-index: 100000;    /* same as header */
}
#popup-view.single #popup-before,
#popup-view.single #popup-after {
    display: none;
}

#popup-window {
    width: 800px;
    height: 500px;
    clear: both;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}
#popup-before, #popup-after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 51px;
    background-size: 28px 51px;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
}
#popup-before {
    background-image: url('/assets/img/gallery/arrow_left.png');
    left: -45px;
}
#popup-after {
    background-image: url('/assets/img/gallery/arrow_right.png');
    right: -45px;
}
#popup-left-view {
    width: 500px;
    height: 500px;
    background: #333;
    float: left;
}
#popup-left-view div {
    width: 500px;
    height: 500px;
}
#popup-left-view img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#popup-right-view {
    width: 300px;
    height: 500px;
    background: #fff;
    float: left;
    padding: 50px 0 0;
}
#popup-message {
    width: 100%;
    height: 260px;
    border-top: 1px solid #ccc;
    overflow: auto;
    padding: 10px 20px;
    font-size: 14px;
    white-space: pre-line;
    word-wrap:break-word;
}
#popup-post {
    border-bottom: 1px solid #ccc;
    padding: 10px 20px;
    font-size: 13px;
    color: #7d7d7d;
}
#popup-link {
    width: 250px;
    height: 40px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 20px auto;
    padding-top: 10px;
    display: block;
    background: #B8B8B8;
    border-radius: 20px;
    box-sizing: border-box;
}
#popup-window a {
    text-decoration: none;
}
#popup-link-pc {
    margin: 20px auto 0;
    text-align: center;
}
#popup-link-pc > img {
    width: 250px;
    max-height: 40px;
}
#popup-link-sp {
    width: 90px;
    height: 90px;
    position: fixed;
    right: 130px;
    bottom: 30px;
    z-index: 20;
}
#popup-link-sp > img {
    width: 90px;
    height: 90px;
}
#popup-functions {
    margin-top: 20px;
    width: 100%;
    height: auto;
    padding: 0 0 10px;
    display: flex;
    justify-content: center;
}
#popup-functions #popup-line-btn {
    width: 40%;
    width: calc(50% - 20px);
    height: 35px;
    margin: 0 5px;
}
#popup-functions #popup-line-btn img {
    width: 100%;
    height: 100%;
}
#popup-functions #popup-clip-btn {
    width: 40%;
    width: calc(50% - 40px);
    height: 35px;
    line-height: 35px;
    margin: 0 5px;
}
#popup-functions #popup-clip-btn a {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 1px solid #B2B9C7;
    box-sizing: border-box;
    display: block;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    color: #B2B9C7;
    font-size: 16px;
    white-space: nowrap;
}
#popup-functions #popup-clip-btn a:before {
    content: '';
    width: 17px;
    height: 17px;
    margin-right: 5px;
    background-image: url(/assets/img/gallery/heart_deactive.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    position: relative;
    top: 3px;
    transition: transform 0.2s ease;
}
#popup-functions #popup-clip-btn.active.activating a:before {
    transform: scale(1.2);
}
#popup-functions #popup-clip-btn.active a:before {
    transform: scale(1.0);
    background-image: url(/assets/img/gallery/heart.png);
}
#popup-review-link-wrapper {
    text-align: right;
    padding: 0 20px;
}
#popup-window a#popup-review-link {
    text-decoration: underline;
    color: #777;
    font-size: 12px;
}
#gallery-loading-image {
    width: 100%;
    text-align: center;
}
#gallery-loading-image #gallery-indicator {
    width: 40px;
    height: 40px;
    margin: 8px auto;
    border-radius: 50%;
    border: 8px solid #B2AFAA;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
