/* スレッド */
#ijk-thread,
#thread-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Noto Sans JP', sans-serif;
}

#ijk-thread * {
    box-sizing: border-box;
}

#admin-thread #ijk-thread {
    width: 100%;
}

.required {
    margin-left: 0.3em;
    color: red;
}

#thread-form .form-table {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
}

#thread-form .form-table th,
#thread-form .form-table td {
    vertical-align: top;
    padding: 1.2em 0.4em;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

#thread-form .form-table tr:nth-last-of-type(1) th,
#thread-form .form-table tr:nth-last-of-type(1) td {
    border-bottom: none;
}

#thread-form .form-table th {
    width: 30%;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.7;
    padding: 1.6em 0.4em;
}

@media screen and (max-width: 565px) {
    #thread-form .form-table th {
        display: block;
        width: 100%;
        text-align: left;
        border: none;
        padding: 8% 0 3%;
        background: none;
        font-weight: 500;
    }
}

#thread-form .form-table td {
    width: 70%;
    padding-right: 1em;
}

@media screen and (max-width: 565px) {
    #thread-form .form-table td {
        display: block;
        width: 100%;
        text-align: left;
        background: none;
        padding: 0 0 7%;
    }
}

#thread-form .form-table input[type=checkbox] {
    margin: 0 0.5em 0 0;
    vertical-align: 0.1em;
    cursor: pointer;
}

#thread-form .form-table input[type=text],
#thread-form .form-table input[type=tel],
#thread-form .form-table input[type=email],
#thread-form .form-table input[type=url],
#thread-form .form-table textarea {
    width: 100%;
    max-width: 100%;
    border: 2px solid #ddd;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    padding: 0.6em 0.8em;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    transition: background-color 0.3s;
}

#thread-form .form-table input[type=text]:focus,
#thread-form .form-table input[type=tel]:focus,
#thread-form .form-table input[type=email]:focus,
#thread-form .form-table input[type=url]:focus,
#thread-form .form-table textarea:focus {
    background: #ffffdc;
    transition: background-color 0.3s;
}

#thread-form .form-table input[type=text] {
    width: 25em;
    max-width: 100%;
}

#thread-form .form-table input[type=text]#page-num {
    width: 5em;
}

#thread-form .form-table label {
    display: block;
    padding: 0.7em 0;
    cursor: pointer;
}

#thread-form .form-table .hidden-wrap {
    display: block;
    padding: 0.7em 0;
}

#thread-form .form-table .hidden-wrap>span {
    font-family: "YuGothic", "Yu Gothic", sans-serif;
}

.thread-control {
    margin-top: 40px;
    text-align: center;
}

.thread-control input[type=submit],
.thread-control input[type=button] {
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #003ee5;
    color: #fff;
    margin: 0 1em 1em 0;
    font-family: "Nunito", "Noto Sans JP", sans-serif;
    padding: 0 2em;
    border-radius: 100px;
    font-size: 1.1em;
    line-height: 2.6;
    letter-spacing: 0.06em;
    box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}

@media (hover: hover) {

    .thread-control input[type=submit]:hover,
    .thread-control input[type=button]:hover {
        opacity: 0.8;
        box-shadow: none;
        transform: translate(0, 4px);
        transition: opacity 0.3s, box-shadow 0.3s, transform 0.3s;
    }
}

.thread-control input[type=submit].form-back,
.thread-control input[type=button].form-back {
    background: #ddd;
    color: #555;
}

.thread-control input[type=submit]:nth-last-of-type(1) {
    margin-right: 0;
}

.form-caution {
    margin-top: 15px;
    font-size: 0;
}

.form-caution>span {
    background: #ef8276;
    color: #fff;
    border-radius: 100px;
    padding: 0.1em 1em 0.2em;
    display: inline-block;
    font-size: 0.8rem;
}

.form-caution-top {
    background: #ef8276;
    color: #fff;
    text-align: center;
    width: 90%;
    margin: 0 auto 20px;
    padding: 0.3em 0.2em 0.4em;
    border-radius: 4px;
}

.form-note {
    text-align: right;
    font-size: 0.9em;
}

.resolution {
    width: 600px;
    max-width: 100%;
    margin: 30px auto;
    background: #d3f2ea;
    text-align: center;
    padding: 0.6em 2em;
}

.resolution .solve {
    background: #28ae8f;
    color: #fff;
    padding: 0 2em 0.15em;
    border-radius: 100px;
    margin-top: 0.4em;
    display: inline-block;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    transition: box-shadow 0.3s, transform 0.3s;
}

@media (hover: hover) {
    .resolution .solve:hover {
        box-shadow: none;
        transform: translate(0, 3px);
        transition: box-shadow 0.3s, transform 0.3s;
    }
}

.comment__single {
    border: 1px solid #3d8cd2;
    border-radius: 10px;
    padding: 1.6em 2.1em;
    margin: 30px 0;
    background: #f9f9f9;
}

.comment__single .comment__content {
    text-align: justify;
    word-break: break-all;
    text-justify: inter-ideograph;
    text-justify: inter-character;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
    font-size: 16px;
}

.comment__single .comment__meta {
    font-size: 0.8rem;
    margin-top: 2.5em;
}

.comment__single .comment__author {
    margin-right: 1em;
    background: #ddd;
    border-radius: 100px;
    padding: 0 1.3em 0.1em;
    font-weight: 500;
}

.comment__single .comment-attachment-wrap {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.comment__single .comment-attachment {
    flex: 0 0 7em;
    max-width: 7em;
    text-decoration: none;
    margin: 1.5em 1em 0 0;
}

@media screen and (max-width: 565px) {
    .comment__single .comment-attachment {
        flex: 0 0 30%;
        max-width: 30%;
        margin-right: 5%;
    }

    .comment__single .comment-attachment:nth-of-type(3n) {
        margin-right: 0;
    }
}

.comment__single .comment-attachment-inner {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 7em;
    background: #fff no-repeat center / contain;
    color: #000 !important;
    text-decoration: none;
    justify-content: space-between;
    border-radius: 6px;
    text-align: center;
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-style: normal;
    padding: 0.5em;
}

@media screen and (max-width: 565px) {
    .comment__single .comment-attachment>i {
        width: 100%;
        height: 22vw;
    }
}

.comment-attachment .disable {
    pointer-events: none;
    opacity: 0.1;
}

.comment__single .attachment-open,
.comment__single .attachment-download {
    position: relative;
    flex: 0 0 48%;
    max-width: 48%;
    height: 0;
    padding-bottom: 50%;
}

.comment__single .attachment-open:focus,
.comment__single .attachment-download:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.comment__single .attachment-open {
    background: rgba(255, 255, 255, 0.8) url(../../assets/img/zoom.svg) no-repeat center/60% auto;
}

.comment__single .attachment-download {
    background: rgba(255, 255, 255, 0.8) url(../../assets/img/download.svg) no-repeat center/65% auto;
}

.comment__single .attachment-type {
    flex: 0 0 100%;
    text-shadow: 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff;
}

.comment__single .attachment-size {
    flex: 0 0 100%;
    font-size: 0.6em;
    color: #555;
    text-shadow: 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff;
}

.comment__single .attachment-name {
    font-size: 0.8em;
    display: block;
    margin-top: 0.6em;
    padding: 0 0.5em;
    word-break: break-all;
}

.comment__single.manager-comment {
    color: #000;
    border-color: #eaeaea;
}

.comment__single.manager-comment .comment__meta {
    text-align: right;
}

.comment__single.manager-comment .comment-attachment>i {
    background: #f5f5f5;
}

.comment__single.mid-comment {
    display: none;
}

.hidden-comment {
    position: relative;
    text-align: center;
    padding: 3em 0;
}

.hidden-comment::before {
    content: "";
    position: absolute;
    display: block;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
    width: 0;
    height: 100%;
    border-left: 10px dotted #ddd;
}

.hidden-comment .show-all-message {
    display: inline-block;
    background: #f5f5f5;
    padding: 0.2em 1em 0.3em;
    border-radius: 100px;
    position: relative;
    box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 16px;
}

.discussion-note {
    margin-top: 50px;
    text-align: center;
}

.sending {
    position: relative;
    text-align: center;
}

.sending::after {
    content: "";
    display: inline-block;
    width: 1.6em;
    height: 1.6em;
    background: url(../../assets/img/loading.svg) no-repeat center/66% auto;
    vertical-align: -0.45em;
    margin-left: 0.1em;
    -webkit-animation: 1.5s linear infinite forwards running expansion;
    animation: 1.5s linear infinite forwards running expansion;
}

@-webkit-keyframes expansion {
    0% {
        transform: rotateZ(0deg);
        scale: 1;
    }

    50% {
        transform: rotateZ(180deg);
        scale: 0.7;
    }

    100% {
        transform: rotateZ(360deg);
        scale: 1;
    }
}

@keyframes expansion {
    0% {
        transform: rotateZ(0deg);
        scale: 1;
    }

    50% {
        transform: rotateZ(180deg);
        scale: 0.7;
    }

    100% {
        transform: rotateZ(360deg);
        scale: 1;
    }
}

input[name="iq-file[]"] {
    font-family: "Noto Sans JP", sans-serif;
}

#attachment-delete {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background: #bbb;
    border-radius: 100px;
    display: inline-block;
    height: 1.6em;
    width: 1.6em;
    line-height: 1.4;
    padding: 0;
    font-family: "Noto Sans JP", sans-serif;
    color: #fff;
    cursor: pointer;
    box-sizing: border-box;
    vertical-align: -0.1em;
    margin-left: 0.6em;
}

#iq_message {
    width: 100%;
    max-width: 100%;
    height: 12em;
    margin-bottom: 1em;
    border: 2px solid #bbb;
}

#iq_message:focus {
    box-shadow: none;
    border: 2px solid #bbb;
}

#iq_file {
    display: none;
}

#thread-form label[for="iq_file"] {
    display: inline-block;
    background: #fff;
    border: 1px solid #ccc;
    padding: 0.3em 0.9em;
    border-radius: 0.5em;
}

.iq-file-count {
    padding: 0.3em 0;
    display: inline-block;
    margin-left: 0.6em;
}

.thread-guide {
    text-align: center;
    font-size: 16px;
}

#wpmem_restricted_msg,
.ijk-restricted-msg,
.thread-note {
    text-align: center;
}

/* 管理画面用 */
.thread-reply-link:link,
.thread-reply-link:visited,
.thread-reply-link:active {
    background: #337ab7;
    color: #fff;
    border-radius: 5px;
    box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.4);
    margin-right: 0.5em;
    padding: 0 1.3em 0 1.7em;
    line-height: 2.9;
    display: inline-block;
    transition: all 0.3s;
}

.thread-reply-link::after {
    content: ">";
    margin-left: 0.5em;
    transform: scaleX(0.6) translate(0, -0.06em);
    display: inline-block;
}

.thread-reply-link:hover {
    color: #fff;
    box-shadow: none;
    transform: translate(0, 2px);
    transition: all 0.3s;
}


.thread-status {
    display: inline-block;
    padding: 0 1em;
    line-height: 1.8;
    margin-top: 7px;
}

.noreply {
    background: #e66a6a;
    color: #fff;
}

.replied {
    background: #888;
    color: #fff;
}

.ok {
    background: #5aad67;
    color: #fff;
}

.ac-inquiry .row-actions {
    display: none;
}

body.post-php.post-type-inquiry #submitdiv {
    display: none;
}

.ijk-thread-status {
    font-family: 'Noto Sans JP', sans-serif;
    text-align: center;
    font-size: 16px;
}

#ijk-thread-ok {
    background: #5aad67;
    border-radius: 6px;
    text-align: center;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.3;
    padding: 0.4em 0.5em 0.5em;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: pointer;
    box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.3);
    transform: translate(0, -3px);
    transition: all 0.3s;
    margin: 1em auto 0;
    width: 10em;
}

#ijk-thread-ok:hover {
    box-shadow: none;
    transform: translate(0, 0);
    transition: all 0.3s;
}

.wp-admin.post-type-inquiry #message a {
    display: none;
}

.new-arrival-badge {
    display: inline-block;
    font-style: normal;
    font-size: 0.7em;
    vertical-align: 0.06em;
    background: #EA7C5D;
    color: #fff;
    line-height: 1.4;
    padding: 0 0.4em 0.1em;
    margin-left: 0.5em;
}