@charset "utf-8";
/* CSS Document */

#brand_character h1 {
	font-size: 35px; 
	margin: 50px 0 20px 0;
}
	
#brand_character h2 {
	margin: 50px 0 20px 0;
}

#brand_character p {
	margin-bottom: 20px;
}

#brand_character .clearfix:after {
	content: "";
	clear: both;
	display: block;
}

#brand_character li {
	float: left;
	width: 23%;
	margin-bottom: 15px;
}

#brand_character li {
	margin-right: 2%;
}

#brand_character li a {
	text-decoration: none;
}

#brand_character li a span {
	display: block;
	font-size: 0.9em;
}

#brand_character li a img {
	border: 1px solid #cccccc;
}
	
#brand_kana #pc_sub-menu h2 {
      margin: 0 0 10px;
      font-size: 30px;
      line-height: 1.5;
}
	
#brand_kana #pc_sub-menu h4 {
      margin: -2.25em 0 10px;
      font-size: 15px;
      line-height: 1.5;
      text-align: right;
}

#brand_kana #pc_kana-menu ul {
	display: flex;
}
#brand_kana #pc_kana-menu li {
	list-style-type: none;
	background-color: #fff;
	color: #000;
	flex-grow: 1;
	text-align: center;
	padding-left: 5px;
	font-size: 18px;
}
	
#brand_kana #pc_kana-menu li + li {
	border-left: 1px solid #000;
}
	
#brand_kana h1 {
	font-size: 35px; 
	margin: 50px 0 20px 0;
}
	
#brand_kana .mag-box {
	display: inline-block;
	background-color: #ef856d; 
}
	
#brand_kana .mag-box h3 {
	font-size: 28px;
	color: #ffffff;
	padding: 0px 11px 0px 11px;
}
	
#brand_kana ul {
	margin: 10px;
	font-size: 16px;
}
	
#brand_kana ul li {
	padding: 0 0 10px 20px;
}
	
#brand_kana ul li ul {
	margin-left: 20px;
}
	
#brand_kana ul ul li {
	margin-left: 40px;
}
	
#brand_kana #sp_kana-menu ul li {
    display: inline-block;
    *display: inline;
    zoom: 1;
    padding: 6px 12px;
    margin: 4px;
    cursor: pointer;
    border: 1px solid #bbb;
    overflow: visible;
    font: bold 14px arial, helvetica, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    color: #2a2a2a;
    background-color: #fff;
    background-image: linear-gradient(top, rgba(255,255,255,1),
                                rgba(255,255,255,0)),
                                url(data:image/png;base64,iVBORw0KGg[...]QmCC);
    transition: background-color .2s ease-out;
    background-clip: padding-box; /* Fix bleeding */
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .3),
                            0 2px 2px -1px rgba(0, 0, 0, .5),
                            0 1px 0 rgba(255, 255, 255, .3) inset;
    text-shadow: 0 1px 0 rgba(255,255,255, .9);
}

/* 人気ランキング */
.ranking_container{
	display: flex;
	justify-content: space-between;
}

.ranking-title{
	font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
}

.rank-number {
    width: 30px;
    height: 30px;
    font-family: "Marcellus", serif;
    text-align: center;
    border-radius: 100%;
    margin-bottom: 10px;
    background: #f4f4f4;
}

.rank-1 {
    background: #bea870;
    color: #fff;
    position: relative;
}

.rank-2{
    background: #a8a9a8;
    color: #fff;
    position: relative;
}

.rank-3 {
    background: #997a5c;
    color: #fff;
    position: relative;
}

.rank-1:after {
    content: "";
    background: url(https://www.infirmiere.co.jp/img/usr/top/fb/ranking/rank-1.svg) no-repeat;
    width: 22px;
    height: 15px;
    background-size: contain;
    position: absolute;
    left: 45px;
    top: 50%;
    margin-top: -8px;
}

.rank-2:after {
    content: "";
    background: url(https://www.infirmiere.co.jp/img/usr/top/fb/ranking/rank-2.svg) no-repeat;
    width: 22px;
    height: 15px;
    background-size: contain;
    position: absolute;
    left: 45px;
    top: 50%;
    margin-top: -8px;
}

.rank-3:after {
    content: "";
    background: url(https://www.infirmiere.co.jp/img/usr/top/fb/ranking/rank-1.svg) no-repeat;
    width: 22px;
    height: 15px;
    background-size: contain;
    position: absolute;
    left: 45px;
    top: 50%;
    margin-top: -8px;
}

.item{
	max-width: 160px;
}

.item img{
	width: 100%;
	margin-bottom: 20px;
    height: auto;
}

.item dl{
	line-height: 1.4em;
}

.item dl dt{
	font-size: 12px;
	margin-bottom: 1em;
	min-height: 50px;
}

.item dl dd{
	text-align: right;
}

.item dl dd:nth-of-type(1) {
	font-size: 15px;
	font-weight: bold;
}

.item dl dd:nth-of-type(2) {
	font-size: 10px;
}

/* PC&tablet
--------------------------------------------------- */

@media screen and ( min-width:521px ){
#brand_kana h2 {
	background-color: #ef856d;
	color: #ffffff;
	font-size: 30px;
	padding: 4px 10px 4px 10px;
}
	
#brand_character h2 {
	background-color: #ef856d;
	color: #ffffff;
	font-size: 30px;
	padding: 4px 10px 4px 10px;
}
	
#brand_kana #sp_sub-menu {
		display: none;
}
	
#brand_kana #sp_kana-menu {
	display: none;
}
	
}

/* sp
--------------------------------------------------- */

@media screen and ( max-width:520px ){
#brand_kana #pc_kana-menu {
	display: none;
}
	
#brand_kana h1 {
	font-size: 25px; 
	margin: 10px 0 5px 0;
}
	
#brand_character h2 {
	background-color: #ef856d;
	color: #ffffff;
	font-size: 20px;
	padding: 2px 7px 2px 7px;
}
	
#brand_kana #pc_sub-menu {
		display: none;
}
	
#brand_kana #sp_sub-menu h2 {
	background-color: #ef856d;
	color: #ffffff;
	font-size: 20px;
	padding: 2px 7px 2px 7px;
}
	
#brand_kana #sp_sub-menu h4 {
      margin: 1em 0 10px;
      font-size: 100%;
      line-height: 1.5;
      text-align: right;
}
	
#brand_character li {
	width: 48%;
}

#brand_character li {
	margin-right: 0;
}

#brand_character li:nth-child(odd) {
	margin-right: 4%;
}
	
#brand_kana .mag-box {
	width: 100%;
	background-color: #ef856d; 
}
	
#brand_kana .mag-box h3 {
	font-size: 26px;
	color: #ffffff;
}

/* 人気ランキング */
    .ranking_container{
        display: flex;
        overflow-x: auto;
        gap: 5px;
        padding-bottom: 10px;
        justify-content: flex-start; /* 既存のspace-betweenを上書き */
    }

    .ranking_container::-webkit-scrollbar {
        height: 4px;
    }

    .ranking_container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .ranking_container::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }

    .ranking_container::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

    .item{
        max-width: 120px;
        min-width: 120px;
        flex-shrink: 0;
		margin: 0 0.5em;
		font-size: 11px;
		line-height: 1.4em;
    }
	
	.item img{
		margin-bottom: 10px;
	}

	.rank-number{
		display: flex;
		align-items: center;
		justify-content: center;
	}

	 .rank-1:after {
		background: url(https://www.infirmiere.co.jp/img/usr/top/sb/ranking/rank-1.svg) no-repeat;
	}

	.rank-2:after {
		background: url(https://www.infirmiere.co.jp/img/usr/top/sb/ranking/rank-2.svg) no-repeat;
	}

	.rank-3:after {
		background: url(https://www.infirmiere.co.jp/img/usr/top/sb/ranking/rank-3.svg) no-repeat;
	} 

	hr{
		margin: 20px -15px!important;
	}

}