

/* モーダルここから ********************************************/

/* 透明背景 */
#post_youtube_modal_layer {
    display: none;  /* 初期表示は非表示 */
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.20;
    z-index: 1001; /* 固定ヘッダーが1000なので */
}

/* ポップアップ本体 */
#post_youtube_modal_popup {
    display: none;
    position: fixed; /* absoluteにするとスクロールした時に隠れる */
    left: 0;
    bottom: 0;
    top: 0;
    right: 0;
    margin: auto;
    max-width: 400px;
    text-align: center;
    padding: 60px 24px 60px 24px;
    min-height: 200px;
    z-index: 1002; /* 透明背景より上 */
    overflow-y: scroll;
}

/* ポップアップ中身 */
.post_youtube_modal_content {
    padding: 0px 0px 12px 0px;
    background-color: white;
    border-radius: 5px;
    position: relative;
}

/* ヘッダーエリア */
.post_youtube_modal_header {
    display: flex;
    margin-bottom: 12px;
    background-color: #333;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 12px 0px 12px 12px;
}

.post_youtube_modal_header .title_wrap {
    flex: 1;
}

.post_youtube_modal_header .title {
    display: flex;
    flex: 1;
    justify-content: flex-start;
    padding: 0px 12px 0px 12px;
    font-weight: bold;
    color: #FFF;
    font-size: 16px;
}

.post_youtube_modal_header .cross_wrap {
    width: 36px;
    height: 24px;
}

.post_youtube_modal_header .cross_wrap_twice {
    display: flex;
    flex: 1;
    height: 100%;
    justify-content: center;
}

.post_youtube_modal_header .cross {
    font-size: 16px;
    font-weight: bold;
    align-self: center;
    color: #FFF;
}

/* 検索エリア */
.post_youtube_modal_search {
    display: flex;
    padding: 0px 12px 0px 12px;
}

.post_youtube_modal_search .search_input {
    flex: 1;
    border: 1px solid #ccc;
    color: #34495e;
    font-family: "Lato", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.467;
    max-width: 400px;
    padding: 8px 12px;
    height: 32px;
    border-radius: 0px;
    border-right-width: 0px;
}

.post_youtube_modal_search .search_button {
    line-height: 10px;
    height: 32px;
    font-size: 12px;
    padding: 6px 12px;
    color: #ffffff;
    background-color: #bdc3c7;
}

/* リストエリア */
.post_youtube_modal_list .media_ul {
    list-style: none;
    margin: 12px 0px 0px 0px;
    padding: 0px 12px 0px 12px;
}

.post_youtube_modal_list .media_li {
    border: 1px solid #d3d6db;
    margin-bottom: 12px;
}

.post_youtube_modal_list .more_li {
    border: none;
}

.post_youtube_modal_list .media_a {
    margin: 4px;
}

.post_youtube_modal_list .text_li {
    display: flex;
    flex: 1;
    justify-content: flex-start;
    padding: 0px 12px 0px 12px;
}

.post_youtube_modal_list .media_content {
    flex: 1;
    text-align: left;
    padding: 8px;
}

.post_youtube_modal_list .media_title {
    color: #000;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 14px;
    font-size: 12px;
    margin: 0;
    padding-bottom: 4px;
}

.post_youtube_modal_list .media_information {
    color: #323232;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 10px;
    margin: 0;
}

.post_youtube_modal_list .media_player {
    display: flex;
}

.post_youtube_modal_list .media_player_wrap {
    flex: 1;
}

.post_youtube_modal_list .media_player_wrap img {
    max-width: 100%;
}

.post_youtube_modal_list .media_player_wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post_youtube_modal_list .media_content {
    display: flex;
}

.post_youtube_modal_list .media_text {
    flex: 1;
    padding-right: 12px;
}

.post_youtube_modal_list .media_checkbox {
    align-self: center;
}

.post_youtube_modal_list .media_checkbox input {
    width: 24px;
    height: 24px;
}

.post_youtube_modal_list .media_button_wrap {

}

.post_youtube_modal_list .media_button_wrap_twice {
    display: flex;
    flex: 1;
    height: 100%;
}

.post_youtube_modal_list .media_button {
    align-self: center;
}

/* フッターエリア */
.post_youtube_modal_footer {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    padding: 0px 12px 0px 12px;
}

/* モーダルここまで ********************************************/

/* 投稿フォーム部分ここから ********************************************/

.post_youtube_form .form_title {
    font-weight: normal;
    font-size: 12px;
    line-height: 2.3;
    margin-bottom: 0px;
}

.post_youtube_form_media {
    border: 1px solid rgb(204, 204, 204);
}

.post_youtube_form_media .media_player_wrap {
    flex: 1;
    position: relative;
    padding-bottom: 56.25%; /*アスペクト比 16:9の場合の縦幅*/
    height: 0;
    overflow: hidden;
}

.post_youtube_form_media .media_player_wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post_youtube_form_media .cancel_button_wrap {
    display: flex;
    flex: 1;
    justify-content: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* 投稿フォーム部分ここまで ********************************************/