/* 
 * App Affiliate Link Box - AppReach Style
 */

.appreach {
    text-align: left;
    padding: 10px;
    border: 1px solid #7C7C7C;
    overflow: hidden;
    margin: 1.5em 0;
    background: #fff;
    border-radius: 4px;
    /* 少し角丸を追加して綺麗に */
}

.appreach:after {
    content: "";
    display: block;
    clear: both;
}

.appreach p {
    margin: 0;
}

.appreach a:after {
    display: none;
}

.appreach__icon {
    float: left;
    border-radius: 10%;
    overflow: hidden;
    margin: 0 3% 0 0 !important;
    width: 20% !important;
    /* 元の25%から小さく変更 */
    height: auto !important;
    max-width: 90px !important;
    /* 元の120pxから小さく変更 */
}

/* 画像がない場合のダミーアイコン用 */
.ym-applink__no-img {
    float: left;
    border-radius: 10%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-weight: bold;
    margin: 0 3% 0 0 !important;
    width: 20% !important;
    aspect-ratio: 1/1;
    max-width: 90px !important;
}

.appreach__detail {
    display: inline-block;
    font-size: 20px;
    line-height: 1.5;
    width: 76%;
    /* アイコンを小さくした分、テキストエリアを広げる */
    max-width: 76%;
}

.appreach__detail:after {
    content: "";
    display: block;
    clear: both;
}

.appreach__name {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5em !important;
    max-height: 3em;
    overflow: hidden;
}

.appreach__info {
    font-size: 12px !important;
    color: #666;
}

.appreach__developper,
.appreach__price {
    margin-right: 0.5em;
}

.appreach__posted a {
    margin-left: 0.5em;
}

.appreach__links {
    float: left;
    height: 40px;
    margin-top: 8px;
    white-space: nowrap;
    display: flex;
    /* Flexboxで揃える */
    align-items: center;
}

/* iOSとAndroidのボタンサイズを135x40で完全に揃える */
.appreach__aslink img {
    margin-right: 10px;
    height: 40px;
    width: 135px;
    object-fit: contain;
}

.appreach__gplink img {
    height: 40px;
    width: 135px;
    object-fit: contain;
}

/* ----------------
 * スマホ向けレスポンシブ
 * ---------------- */
@media screen and (max-width: 600px) {

    .appreach__icon,
    .ym-applink__no-img {
        width: 24% !important;
        margin: 0 4% 0 0 !important;
        max-width: 80px !important;
    }

    .appreach__detail {
        width: 71%;
        max-width: 71%;
    }

    .appreach__name {
        font-size: 15px;
    }

    .appreach__links {
        flex-wrap: wrap;
        /* スマホではみ出す場合は折り返す */
        height: auto;
    }

    .appreach__aslink img,
    .appreach__gplink img {
        height: 36px;
        width: auto;
        margin-bottom: 5px;
    }
}