@charset "UTF-8";

/*-------------------------------------------
 基本設定
-------------------------------------------*/
/*スマホの時だけ改行させるクラス*/
.cp-main .br-sp {
    display: block;
}

@media (min-width: 769px) {
    .cp-main .br-sp {
        display: none;
    }
}
/*pcの時だけ改行させるクラス*/
.cp-main .br-pc{
    display: none;
}

@media (min-width: 769px) {
    .cp-main .br-pc {
        display: inline-block;
    }
}
.detail_period {
    margin: 0 auto min(8%, 20px);
}

/*-------------------------------------------
 CP_詳細
-------------------------------------------*/
.cp-main .cp-shousai_block{
    width: 100%;
    max-width: 700px;
    margin: min(4%, 40px) auto;
    padding: 0 16px;
}
.cp-main .cp-shousai{
	background: #faf500;
    padding: 10px;
}
.cp-main .cp-shousai .detail-att-text{
	font-size: 14px;
	text-align: center;
	padding-bottom: 8px;
}
.cp-main .cp-shousai .cp-shousai_list{
	width:100%;
	background-color:#fff;
	padding:10px;
	margin: 0 auto;
}
.cp-main .cp-shousai .cp-shousai_list__item{
	text-align: center;
	line-height: 1.5em;
	padding:5px 0;
}
.cp-main .cp-shousai .cp-shousai_list li{
	border-bottom: dotted 1px #222;
}
.cp-main .cp-shousai .cp-shousai_list li:last-child{
	border-bottom: none;
}
.cp-main .cp-shousai .cp-shousai_list__item .bold-text{
	font-weight: bold;
	color: red;
}
@media (min-width: 769px) {
	.cp-main .cp-shousai_block{
		margin: min(2%, 40px) auto;
		padding: 0 16px;
	}
	.cp-main .cp-shousai{
		padding:10px 10px 2%;
	}
	.cp-main .cp-shousai .cp-shousai_list__item .item__inner{
		text-align: left;
		width:82%;
		margin: auto;
	}
}

/*-------------------------------------------
 cp-shelf-block 書影棚
-------------------------------------------*/
.detail_entry {
    width: 100%;
    max-width: 992px;
    margin: min(8%, 40px) auto;
    padding: 0 16px;
}

.cp-shelf-block h2 {
	text-align: center;
}

.cp-main .ribbon {
    position: relative;
    top: 0;
    left: 50%;
    width: 90%;
    color: var(--col-white);
    background: var(--col-magazine-green);
    padding: 8px;
    transform: translate(-50%, 0%);
    text-align: center;
    font-weight: bold;
	font-size: 16px;
	margin-bottom: 1em;
}

.cp-main .text--deco-slash {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
	margin-bottom: 1em;
	font-size: 16px;
}

.cp-main .cp-shelf-block__shelf_list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1em;
}

.cp-main .cp-shelf-block__shelf__img-box-inner > a,
.cp-shelf-block__shelf__item > a,
.cp-shelf-block__shelf__item > a * {
  text-decoration: none !important;
  transition: opacity 0.3s;
}

.cp-main .cp-shelf-block__shelf__item {
	display: flex;
    flex-direction: column;
	justify-content: space-between;
}

.cp-main .cp-shelf-block__shelf__img-box {
	display: block;
	/* 挿入される書影によって調整 */
	padding-top: min(130%, 256px);
	position: relative;
	margin-bottom: 10px;
}

.cp-main .cp-shelf-block__shelf__img-box-inner {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.cp-main .cp-shelf-block__shelf__img {
	display: block;
    margin: 0 auto;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    -o-object-fit: contain;
    object-fit: contain;
}

.cp-main .cp-shelf-block__shelf__title {
	font-size: 12px;
	line-height: 1.3;
	text-align: center;
	padding-bottom: 0.5em;
	font-weight: bold;
}

.cp-main .cp-shelf-block__btns {
	display: grid;
	gap: 6px;
}

.cp-main .cp-shelf-block__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px .2em;
    line-height: 1;
    font-size: clamp(11px , 2.8vw , 14px);
    line-height: 1;
    text-align: center;
    background: var(--col-magazine-green);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 8px;
}

.cp-main .cp-shelf-block__txt {
	font-size: 14px;
	text-align: center;
	margin-top: 1em;
	font-weight: bold;
}

@media (min-width: 769px) {
	.cp-main .ribbon {
		width: 96%;
		font-size: 20px;
	}
	.cp-main .text--deco-slash {
		font-size: 20px;
	}
	.cp-main .cp-shelf-block__shelf__item {
		width: 215px;
		margin: 0 auto;
	}
	.cp-main .cp-shelf-block__shelf_list {
		width: 700px;
		margin: 0 auto;
	}
	.cp-main .cp-shelf-block__shelf__img-box :hover {
		color: #fff;
		opacity: 0.9;
	}
	.cp-main .cp-shelf-block__btns :hover {
		color: #fff;
		opacity: 0.9;
	}
	.cp-main .cp-shelf-block__txt {
		font-size: 16px;
	}
}