/* Multilang Rinker - フロントエンドCSS */
/* Rinker 互換スタイル */

:root {
    --color-title: #666;
    --color-amazon: #FFB36B;
	--color-rakuten: #EA7373;
	--color-yahoo: #51A7E8;
}


/*--------------------------------------------------------------
    共通スタイル (カード/テキスト)
---------------------------------------------------------------*/
.mlr_contents {
    margin: 2em 0;
    padding: 0;
    position: relative;
    overflow: visible;
}
.mlr_contents a {
    border: none;
}
/* Amazonボタン */
.mlr_contents .mlr_amazon_link {
    background: var(--color-amazon);
}
/* 楽天ボタン */
.mlr_contents .mlr_rakuten_link {
    background: var(--color-rakuten);
}
/* Yahooボタン */
.mlr_contents .mlr_yahoo_link {
    background: var(--color-yahoo);
}



/*--------------------------------------------------------------
    カードタイプのスタイル
---------------------------------------------------------------*/
.mlr_contents.mlr_card {
    border: solid 1px #dbdbdb;
    background-color: #fff;
    box-shadow: 2px 3px 8px -5px rgba(0,0,0,.25);
    border-radius: 10px;
}
.mlr_contents.mlr_card .mlr_box {
    display: flex;
    display: -ms-flexbox;
    display: -webkit-box;
    display: -webkit-flex;
    box-sizing: border-box;
    padding: 1em 2em;
}
.mlr_contents.mlr_card .mlr_image {
    padding: 0;
    display: flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    margin: 0 35px 0 0;
    width: 150px;
    min-width: 150px;
}
.mlr_contents.mlr_card .mlr_image img {
    max-width: 100%;
    height: auto;
    border: none;
}
.mlr_contents.mlr_card .mlr_info {
    width: 100%;
}
.mlr_contents.mlr_card .mlr_title {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--color-title);
    line-height: 1.4;
}
.mlr_contents.mlr_card .mlr_links {
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    flex-direction: column;    
    margin: 10px auto;
    padding: 0;
    width: 100%;
    border: none;
    list-style-type: none;    
}
.mlr_contents.mlr_card .mlr_links li {
    margin: 5px 0;
    padding: 3px 0;
    position: static;
    width: 100%;
    border: none;
    border-radius: 5px;
    list-style: none;
    box-shadow: 0 6px 12px -5px rgba(0, 0, 0, .30);    
}
.mlr_contents.mlr_card .mlr_links li a {
    position: relative;
    display: block;
    color: #fff;
    font-weight: bold;
    text-decoration: none !important;
    font-size: 0.9em;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    text-align: center;
}
.mlr_contents.mlr_card .mlr_links li:hover {
    box-shadow: 0 5px 8px -5px rgba(0, 0, 0, .30);
}
.mlr_contents.mlr_card .mlr_links li a:hover {
    opacity: 0.7;
}
.mlr_contents.mlr_card .mlr_links li a:after {
    content: '';
}



/* スマホ表示用 */
@media screen and (max-width: 767px) {
    .mlr_contents.mlr_card .mlr_image {
        margin : 0 auto;
    }
    .mlr_contents.mlr_card .mlr_info {
        margin: 15px 0 0 0;
    }
    .mlr_contents.mlr_card .mlr_title {
        text-align: center;
    }
    .mlr_contents.mlr_card .mlr_box {
        display: block;
    }  
}




/*--------------------------------------------------------------
    テキストタイプのスタイル
---------------------------------------------------------------*/
.mlr_contents.mlr_text {
    display: inline;
    white-space: nowrap;
}
.mlr_contents.mlr_text .mlr_text_wrapper {
    position: relative;
    display: inline-block;
    vertical-align: top;
}
.mlr_contents.mlr_text .mlr_text_list {
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    margin-left: 8px;
    color: #4f96f6;
}
.mlr_contents.mlr_text .mlr_text_list:hover {
    opacity: 0.7;
}
.mlr_contents.mlr_text .mlr_text_dropdown {
    display: none;
    position: fixed;
    margin-top: 2px;
    padding: 8px 16px;
    min-width: 200px;
    max-width: min(320px, 90vw);
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 10000;

    /* スマート配置 - JavaScriptで動的に設定される */
    top: var(--mlr-dropdown-top, 0);
    left: var(--mlr-dropdown-left, 0);

    /* レスポンシブ対応 */
    box-sizing: border-box;
}
.mlr_contents.mlr_text .mlr_text_dropdown .mlr_links {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
}
.mlr_contents.mlr_text .mlr_text_dropdown .mlr_links .mlr_link_item {
    display: block;
    margin: 5px 0;
    padding: 3px 0;
    border-radius: 5px;
    border: none;
    box-shadow: 0 6px 12px -5px rgba(0, 0, 0, .30);
    width: 100%;    
}
.mlr_contents.mlr_text .mlr_text_dropdown .mlr_links .mlr_link_item:hover {
    box-shadow: 0 5px 8px -5px rgba(0, 0, 0, .30);
}
.mlr_contents.mlr_text .mlr_text_dropdown .mlr_links .mlr_link_item a {
    position: relative;
    display: block;
    color: #fff;
    font-weight: bold;
    text-decoration: none !important;
    font-size: 0.9em;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    text-align: center;
    white-space: nowrap;
}
.mlr_contents.mlr_text .mlr_text_dropdown .mlr_links .mlr_link_item a:hover {
    opacity: 0.7;
}
