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

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

#photo-header .search-bar {
    width: 450px;
    height: 45px;
    position: absolute;
    top: 7px;
    left: 215px;
    overflow: visible;
}
#photo-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/photo/search.png');
    background-size: 28px 28px;
    background-position: center center;
    background-repeat: no-repeat;
}
#photo-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;
}
#photo-header .search-bar #hashtag-area {
    display: none;
    background-color: white;
    border: 1px solid #C5C5C5;
    position: absolute;
    width: 100%;
    z-index: 9999;
}
#photo-header .search-bar #hashtag-area .indicator-area {
    width: 100%;
    text-align: center;
}
#photo-header .search-bar #hashtag-area .indicator-area .indicator {
    width: 20px;
    height: 20px;
    margin: 4px auto;
    border-radius: 50%;
    border: 4px solid #B2AFAA;
    border-right-color: transparent;
    -webkit-animation: spin 1s linear infinite;
    -moz-animation: spin 1s linear infinite;
    -ms-animation: spin 1s linear infinite;
    -o-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}
#photo-header .search-bar #hashtag-area .tag-item {
    font-size: 14px;
    padding: 4px 12px;
    border-bottom: 1px solid #B2AFAA;
    cursor: pointer;
}
#photo-header .search-bar #hashtag-area .tag-item:before {
    content: '#';
}
#photo-header .search-bar #hashtag-area .tag-item:last-child {
    border-bottom: none;
}
@-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);
    }
}

/**
 * クリップリストへ
 */
#photo-header #clip-wrapper {
    width: 165px;
    height: 35px;
    line-height: 35px;
    position: absolute;
    top: 13px;
    right: 0;
}
#photo-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;
}
#photo-header #clip-wrapper a:before {
    content: '';
    width: 17px;
    height: 17px;
    margin-right: 5px;
    background-image: url(/assets/img/photo/heart.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    position: relative;
    top: 4px;
}

/**
 * カテゴリ
 */
#categories-wrapper {
    margin-bottom: 5px;
}
#categories-wrapper .category-icon {
    display: inline-block;
    padding: 0px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    height: 20px;
    width: auto;
    line-height: 20px;
    border-radius: 10px;
    border: 1px solid #B2B9C7;
    font-size: 14px;
    color: #B2B9C7;
    text-decoration: none;
}
#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/photo/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/photo/arrow_left.png');
    left: -45px;
}
#popup-after {
    background-image: url('/assets/img/photo/arrow_right.png');
    right: -45px;
}
#popup-left-view {
    width: 500px;
    height: 500px;
    background: #333;
    float: left;
}
#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: 275px;
    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;
    text-align: center;
}
#popup-link-pc>img {
    width: 250px;
    max-height: 40px;
}
#popup-link-sp {
    width: 90px;
    height: 90px;
}
#popup-link-sp>img {
    width: 90px;
    height: 90px;
}
#popup-functions {
    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/photo/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/photo/heart.png);
}
