/*
Template:ystandard
Theme Name:sns-beginner
Theme URI: http://ystandard.net
Author: yosiakatsuki
Author URI: http://yosiakatsuki.net
Description:サイト高速化、Google PageSpeed Insightsでの高得点獲得に重点を置きながら、比較的カスタマイズしやすい形を目指したテーマystandardの子テーマ
Version: 1.1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/*--------------------------------------
  ヨメレバ・カエレバ（レスポンシブ）
--------------------------------------*/
.booklink-box, .kaerebalink-box {
    padding: 25px;
    margin-bottom: 10px;
    border: double #CCC;
    overflow: hidden;
    font-size: small;
}

.booklink-image, .kaerebalink-image {
    margin: 0 15px 0 0;
    float: left;
    min-width: 160px;
    text-align: center;
}

.booklink-image img, .kaerebalink-image img {
    margin: 0 auto;
    text-align: center;
}

.booklink-info, .kaerebalink-info {
    margin: 0;
    line-height: 120%;
    overflow: hidden;
}

.booklink-name, .kaerebalink-name {
    margin-bottom: 24px;
    line-height: 1.5em;
}

.booklink-powered-date, .kaerebalink-powered-date {
    font-size: 8px;
    margin-top: 10px;
    font-family: verdana;
    line-height: 120%;
}

.booklink-detail, .kaerebalink-detail {
    font-size: 12px;
}

.booklink-powered-date, .kaerebalink-detail {
    margin-bottom: 15px;
}

.booklink-link2, .kaerebalink-link1 {
    margin-top: 10px;
}

.booklink-link2 a,
.kaerebalink-link1 a {
    width: 30%;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    display: inline-block;
    margin: 5px 2px 0 0;
    padding: 10px 1px;
    text-align: center;
    float: left;
    text-decoration: none;
    font-weight: 800;
    text-shadow: 1px 1px 1px #dcdcdc;
    font-size: 12px;
    color: #fff !important;
}

.booklink-link2 a:hover,
.kaerebalink-link1 a:hover {
    opacity: .6;
}

.booklink-link2 a:active
.kaerebalink-link1 a:active {
    position: relative;
    top: 1px;
}

/*ボタンを変えるときはここから*/
.shoplinkamazon a {
    color: #FF9901 !important;
    border: 1px solid #FF9901 !important;
}

.shoplinkrakuten a {
    color: #c20004 !important;
    border: 1px solid #c20004 !important;
}

.shoplinkkindle a {
    color: #007dcd !important;
    border: 1px solid #007dcd !important;
}

.shoplinkkakakucom a {
    color: #314995 !important;
    border: 1px solid #314995;
}

.shoplinkyahoo a {
    color: #7b0099 !important;
    border: 1px solid #7b0099 !important;
}

/*ここまでを変更*/
.shoplinkyahoo img {
    display: none;
}

.shoplinkyahoo a {
    font-size: 10px;
}

.booklink-footer {
    display: none;
}

@media screen and (max-width: 680px) {
    .booklink-box, .kaerebalink-box {
        padding: 15px;
    }

    .booklink-image, .kaerebalink-image {
        width: 100px !important;
        min-width: initial;
    }

    .booklink-name > a, .kaerebalink-name > a {
        font-size: 15px;
        font-weight: bold;
    }

    .booklink-name, .kaerebalink-name {
        margin-bottom: 12px;
    }

    .booklink-powered-date, .kaerebalink-powered-date {
        margin-top: 5px;
    }

    .booklink-link2 a,
    .kaerebalink-link1 a {
        width: calc(100% - 4px);
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
        border-radius: 5px;
        margin: 2px 0;
        padding: 10px 0;
    }
}

.box30 {
    margin: 2em 0;
    background: #f1f1f1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}

.box30 .box-title {
    font-size: 1.2em;
    background: #FFDA74;
    padding: 4px;
    text-align: center;
    color: #FFF;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.box30 p {
    padding: 15px 20px;
    margin: 0;
}

.box27 {
    position: relative;
    margin: 2em 0;
    padding: 0.5em 1em;
    border: solid 3px #FFDA74;
}

.box27 .box-title {
    position: absolute;
    display: inline-block;
    top: -27px;
    left: -3px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    vertical-align: middle;
    font-size: 17px;
    background: #FFDA74;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

.box27 p {
    margin: 0;
    padding: 0;
}

.balloon {
    margin: 40px 0;
    padding: 0 40px;
    position: relative;
}

.balloon:after, .balloon:before {
    clear: both;
    content: "";
    display: block;
}

.balloon-image-left {
    position: absolute;
    left: 0;
    margin: 0;
    width: 60px;
    height: 60px;
}

.balloon-image-right {
    position: absolute;
    right: 0;
    margin: 0;
    width: 60px;
    height: 60px;
}

.balloon figure img {
    width: 100%;
    height: 100%;
    border: 1px solid #aaa;
    border-radius: 50%;
    margin: 0;
}

.balloon-image-description {
    padding: 5px 0 0;
    font-size: 10px;
    text-align: center;
}

.balloon-text-right {
    position: relative;
    margin-left: 40px;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 10px;
    float: left;
    max-width: 100%;
}

.balloon-text-left {
    position: relative;
    margin-right: 40px;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 10px;
    float: right;
    max-width: 100%;
}

.balloon p {
    margin: 0 0 20px;
}

.balloon p:last-child {
    margin-bottom: 0;
}

/* 会話 */
.balloon-text-right:before {
    position: absolute;
    content: '';
    border: 10px solid transparent;
    border-right: 10px solid #aaa;
    top: 15px;
    left: -20px;
}

.balloon-text-right:after {
    position: absolute;
    content: '';
    border: 10px solid transparent;
    border-right: 10px solid #fff;
    top: 15px;
    left: -19px;
}

.balloon-text-left:before {
    position: absolute;
    content: '';
    border: 10px solid transparent;
    border-left: 10px solid #aaa;
    top: 15px;
    right: -20px;
}

.balloon-text-left:after {
    position: absolute;
    content: '';
    border: 10px solid transparent;
    border-left: 10px solid #fff;
    top: 15px;
    right: -19px;
}

/* 考え毎 */
.think .balloon-text-right, .think .balloon-text-left {
    border-radius: 30px;
}

.think .balloon-text-right:before {
    border: 1px solid #aaa;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    top: 15px;
    left: -12px;
}

.think .balloon-text-right:after {
    border: 1px solid #aaa;
    border-radius: 50%;
    width: 4px;
    height: 4px;
    top: 20px;
    left: -19px;
}

.think .balloon-text-left:before {
    border: 1px solid #aaa;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    top: 15px;
    right: -12px;
}

.think .balloon-text-left:after {
    border: 1px solid #aaa;
    border-radius: 50%;
    width: 4px;
    height: 4px;
    top: 20px;
    right: -19px;
}

.snsbgn-btn,
.snsbgn-btn--skew {
    text-align: center;
}

.snsbgn-btn a,
.snsbgn-btn--skew a {
    position: relative;
    display: inline-block;
    border-radius: 0.3em;
    color: #fff;
    padding: 1.5em 2.5em;
    margin: 2em 0;
    text-decoration: none;
    -webkit-box-shadow: 1px 2px 2px rgba(0, 0, 0, .3);
    box-shadow: 1px 2px 2px rgba(0, 0, 0, .3);
    -webkit-transition: -webkit-box-shadow .3s;
    transition: -webkit-box-shadow .3s;
    transition: box-shadow .3s;
    transition: box-shadow .3s, -webkit-box-shadow .3s;
}

.snsbgn-btn a:hover,
.snsbgn-btn--skew a:hover {
    -webkit-box-shadow: 3px 4px 4px rgba(0, 0, 0, .4);
    box-shadow: 3px 4px 4px rgba(0, 0, 0, .4);
}

@-webkit-keyframes snsbgn-skew {
    0% {
        left: -120%;
    }
    100% {
        left: 520%;
    }
}
@keyframes snsbgn-skew {
    0% {
        left: -120%;
    }
    100% {
        left: 520%;
    }
}

.snsbgn-btn--skew a {
    overflow: hidden;
}

.snsbgn-btn--skew a:before {
    content: "";
    height: 50%;
    width: 120%;
    display: block;
    position: absolute;
    top: 0;
    left: -120%;
    background: rgba(255, 255, 255, 0.3);
    background: -webkit-gradient(
            linear,
            left top, right top,
            from(rgba(255, 255, 255, 0.3)),
            color-stop(40%, rgba(255, 255, 255, 0.5)),
            color-stop(90%, rgba(255, 255, 255, 0.8)),
            to(rgba(255, 255, 255, 0.0))
    );
    background: linear-gradient(
            left,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.5) 40%,
            rgba(255, 255, 255, 0.8) 90%,
            rgba(255, 255, 255, 0.0) 100%
    );
    -webkit-animation: snsbgn-skew 2s ease-in 1s infinite;
    animation: snsbgn-skew 2s ease-in 1s infinite;
    -webkit-transform: rotate(-30deg);
    transform: rotate(-30deg);
}

.snsbgn-btn a:after,
.snsbgn-btn--skew a:after {
    content: "\f138";
    font-family: "fontawesome";
    font-weight: normal;
    font-size: 1.1em;
    position: absolute;
    right: .7em;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

/*
カスタム CSS 機能へようこそ。

使い方についてはこちらをご覧ください
(英語ドキュメンテーション)。http://wp.me/PEmnE-Bt
*/
