/* Buttons used in older article content. */
.contact {
    width: 270px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    padding: 10px 40px;
    border-radius: 5px;
    border: 0;
    border-bottom: 1px solid #757575;
}

.contact:hover {
    opacity: 0.5;
}

.type-blue {
    background: #49a9d4;
}

.chuo-yose {
    text-align: center;
}

/* Table of Contents Plus display previously stored as Newspaper-child custom CSS. */
#toc_container {
    display: block !important;
    width: 100% !important;
    border: 1px solid #c0c0c0;
    border-radius: 3px;
    font-size: 100%;
    box-sizing: border-box;
    line-height: 1.4;
    margin: 36px auto;
    padding: 1em 2em;
    position: relative;
}

#toc_container .toc_title {
    text-align: center;
    background: #fff;
    border-radius: 3px;
    color: #696969;
    padding: 0.8em;
    position: absolute;
    top: -24px;
    font-family: 'Droid Serif', cursive;
    font-weight: bold;
}

#toc_container ul {
    list-style: none;
    margin-bottom: 0;
}

#toc_container ul li {
    margin: 0 0 5px;
    padding-left: 0;
    text-indent: 0;
}

#toc_container ul a {
    display: block;
    text-decoration: none;
    color: #4db2ec;
    border-bottom: 1px dotted #c0c0c0;
}

#toc_container .toc_list > li > a {
    border-bottom: 1px solid #c0c0c0;
}

#toc_container ul ul {
    padding: 1em 0 1em 1em;
}

#toc_container li {
    margin-bottom: 0.8em;
    padding-bottom: 0.2em;
    font-size: 90%;
}

/* Keep Japanese quotes from being forced to uppercase by Newspaper defaults. */
.tagdiv-type blockquote p {
    text-transform: none;
}

/* Rinker display tweaks migrated from the Newspaper child theme. */
div.yyi-rinker-contents {
    border: none;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.18);
}

div.yyi-rinker-image {
    margin-right: 15px;
}

.yyi-rinker-img-m .yyi-rinker-image {
    width: 140px;
    min-width: 140px;
}

div.yyi-rinker-contents div.yyi-rinker-info {
    width: calc(100% - 160px);
}

div.yyi-rinker-contents div.yyi-rinker-title p {
    margin: 0;
}

div.yyi-rinker-contents div.yyi-rinker-title a {
    color: #0066c0;
    font-size: .9em;
}

div.yyi-rinker-contents div.yyi-rinker-title a:hover {
    color: #c45500;
    opacity: 1;
    text-decoration: underline;
}

div.yyi-rinker-contents div.yyi-rinker-detail {
    padding: 0;
    margin: 5px 0 0;
    font-size: 10px;
    color: #626262;
    opacity: .7;
    font-family: Avenir, sans-serif;
    line-height: 2;
}

span.price {
    font-size: 1.8em;
}

.price-box span:nth-child(n+2) {
    display: none;
}

div.yyi-rinker-contents ul.yyi-rinker-links {
    margin: 0;
}

div.yyi-rinker-contents ul.yyi-rinker-links li {
    margin: 8px 8px 0 0;
    box-shadow: none;
}

div.yyi-rinker-contents ul.yyi-rinker-links li.amazonlink,
div.yyi-rinker-contents ul.yyi-rinker-links li.rakutenlink,
div.yyi-rinker-contents ul.yyi-rinker-links li.yahoolink {
    background: none;
}

div.yyi-rinker-contents ul.yyi-rinker-links li a {
    font-weight: 500;
    font-size: 13px;
    height: 44px;
    line-height: 44px;
    padding: 0 15px;
    border-radius: 3px;
}

div.yyi-rinker-contents ul.yyi-rinker-links li.amazonlink a {
    background: #FFB74D;
}

div.yyi-rinker-contents ul.yyi-rinker-links li.rakutenlink a {
    background: #FF5252;
}

div.yyi-rinker-contents ul.yyi-rinker-links li.yahoolink a {
    background: #3AADF4;
}

div.yyi-rinker-contents ul.yyi-rinker-links li:hover {
    box-shadow: none;
}

div.yyi-rinker-contents ul.yyi-rinker-links li a:hover {
    opacity: 1;
    -webkit-transform: translateY(3px);
    transform: translateY(3px);
}

@media screen and (max-width: 800px) {
    div.yyi-rinker-contents div.yyi-rinker-box {
        display: block;
        text-align: center;
    }

    div.yyi-rinker-contents div.yyi-rinker-image {
        margin: auto;
    }

    div.yyi-rinker-contents div.yyi-rinker-info {
        display: block;
        margin-top: 5px;
        width: 100%;
    }

    div.yyi-rinker-contents ul.yyi-rinker-links li {
        margin: 5px 0;
        box-shadow: none;
        border-radius: 3px;
    }
}

@media (max-width: 420px) and (min-width: 321px) {
    body div.yyi-rinker-contents ul.yyi-rinker-links li a {
        padding: 0;
    }
}

.affiliate_warning {
    text-align: center;
    background-color: #CFCFCF;
    color: white;
    padding: 10px 0;
}

/* Cloud Library single post sidebar grid compatibility. */
@media (min-width: 768px) {
    .single-post.tdb-template .td-ss-row > .vc_column_container.td-pb-span8 {
        width: 66.66666667%;
    }

    .single-post.tdb-template .td-ss-row > .vc_column_container.td-pb-span4 {
        width: 33.33333333%;
    }
}
