@charset "UTF-8";
/* CSS Document */
/* Y・PiECE EC 商品詳細ページ専用CSS（product/index.php） */
/* common.css を読み込んだ上で追加適用する */


/******************************************************

PC設定 1200px以上の場合に適用

*******************************************************/

/* メインレイアウト（左ギャラリー / 右購入ボックス） */

.yp-detail {
	display: grid;
	grid-template-columns: 1fr 470px;
	gap: 54px;
	align-items: start;
	padding: 0 0 48px;
	}



/* ギャラリー */

.yp-gallery__main {
	aspect-ratio: 3 / 2;
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 12px;
	}

.yp-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	}

.yp-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 9px;
	}

.yp-gallery__thumb {
	aspect-ratio: 3 / 2;
	border-radius: 2px;
	overflow: hidden;
	border: 2px solid #e7eaf0;
	background: #eef0f4;
	cursor: pointer;
	}

.yp-gallery__thumb.is-active {
	border-color: #1A2A5E;
	}

.yp-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	}



/* 購入ボックス（sticky） */

.yp-buy {
	position: sticky;
	top: 86px;
	}

.yp-buy__tag {
	margin-bottom: 13px;
	}

.yp-h1 {
	font-size: 20px;
	font-weight: 600;
	color: #1A2A5E;
	line-height: 1.35;
	margin: 0 0 10px;
	}

.yp-buy__desc {
	color: #6b7280;
	line-height: 1.75;
	margin: 0 0 22px;
	}

.yp-pricebox {
	background: #f5f7fa;
	border-radius: 2px;
	padding: 20px;
	margin-bottom: 22px;
	}

.yp-pricebox__label {
	font-size: 11px;
	color: #9aa3b2;
	margin-bottom: 10px;
	}

.yp-pricebox__price {
	font-family: 'Poppins', sans-serif;
	font-size: 34px;
	font-weight: 600;
	color: #1A2A5E;
	line-height: 1;
	}

.yp-pricebox__unit {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #9aa3b2;
	margin-left: 7px;
	}

.yp-pricebox__ask {
	font-size: 20px;
	font-weight: 600;
	color: #1A2A5E;
	}

.yp-pricebox__note {
	font-size: 11px;
	color: #c47d00;
	margin-top: 9px;
	}



/* 数量セレクター */

.yp-qty {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	}

.yp-qty__label {
	font-size: 12px;
	font-weight: 600;
	color: #555;
	white-space: nowrap;
	}

.yp-qty__box {
	display: flex;
	align-items: center;
	border: 1px solid #e7eaf0;
	border-radius: 2px;
	overflow: hidden;
	}

.yp-qty__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 42px;
	background: #f5f7fa;
	border: none;
	font-size: 18px;
	color: #555;
	font-family: inherit;
	cursor: pointer;
	transition: background .15s;
	}

.yp-qty__btn:hover {
	background: #e7eaf0;
	}

.yp-qty__btn--minus {
	border-right: 1px solid #e7eaf0;
	}

.yp-qty__btn--plus {
	border-left: 1px solid #e7eaf0;
	}

.yp-qty__input {
	width: 52px;
	height: 42px;
	border: none;
	background: #FFF;
	text-align: center;
	font-weight: 600;
	color: #1A2A5E;
	font-family: inherit;
	}

.yp-qty__max {
	font-size: 11px;
	color: #9aa3b2;
	}

.yp-buy__add {
	margin-top: 10px;
	margin-bottom: 30px;
	}



/* 配送・返品インフォ */

.yp-buyinfo {
	background: #eef1f8;
	border-radius: 2px;
	padding: 6px 16px;
	margin-bottom: 14px;
	}

.yp-buyinfo__row {
	font-size: 16px;
	color: #4b5366;
	padding: 10px 0;
	border-bottom: 1px solid #dde3ea;
	}

.yp-buyinfo__row:last-child {
	border-bottom: none;
	}

.yp-buyinfo__key {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	color: #1A2A5E;
	}



/* 信頼バッジ */

.yp-trust {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 14px;
	}

.yp-trust__item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #9aa3b2;
	}



/* タブ */

.yp-tabs-wrap {
	padding: 0;
	}

/* ---- 縦積みセクション（商品説明/スペック/FAQ） ---- */
.yp-psecs {
	margin-top: 8px;
	}
.yp-psec {
	margin-top: 56px;
	padding: 0;
	}
.yp-psec:first-child {
	margin-top: 8px;
	}
.yp-psec__title {
	font-size: 19px;
	font-weight: 700;
	color: #1A2A5E;
	margin: 0 0 18px;
	padding-left: 12px;
	border-left: 4px solid #F5CD1A;
	line-height: 1.3;
	}
.yp-psec__body {
	margin-bottom: 24px;
	}
.yp-psec__text {
	font-size: 16px;
	line-height: 1.9;
	color: #333;
	}
.yp-psec__guidelink {
	margin-top: 16px;
	font-size: 13px;
	color: #667;
	}
.yp-psec__guidelink a {
	color: #1A2A5E;
	font-weight: 600;
	text-decoration: underline;
	}

.yp-tabbtns {
	display: flex;
	border-bottom: 2px solid #e7eaf0;
	margin-bottom: 30px;
	}

.yp-tabbtn {
	padding: 12px 20px;
	border: none;
	border-bottom: 2px solid transparent;
	background: transparent;
	font-weight: 400;
	color: #9aa3b2;
	font-family: inherit;
	margin-bottom: -2px;
	white-space: nowrap;
	cursor: pointer;
	}

.yp-tabbtn.is-active {
	font-weight: 600;
	color: #1A2A5E;
	border-bottom-color: #1A2A5E;
	}



/* TAB0 商品詳細 */

.yp-tab2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 44px;
	align-items: center;
	}

.yp-feature__title {
	font-weight: 600;
	color: #1A2A5E;
	margin-bottom: 14px;
	padding-left: 13px;
	border-left: 4px solid #F5CD1A;
	}

.yp-feature__body {
	color: #4b5366;
	line-height: 1.9;
	}

.yp-feature__img {
	height: 230px;
	border-radius: 2px;
	}



/* TAB1 スペック表 */

.yp-spec {
	border: 1px solid #e7eaf0;
	border-radius: 2px;
	overflow: hidden;
	}

.yp-spec__row {
	display: grid;
	grid-template-columns: 200px 1fr;
	}

.yp-spec__key {
	background: #eef1f8;
	color: #1A2A5E;
	padding: 13px 16px;
	font-weight: 600;
	border-bottom: 1px solid #FFF;
	}

.yp-spec__val {
	padding: 13px 16px;
	color: #444;
	border-bottom: 1px solid #e7eaf0;
	}

.yp-spec__row:nth-of-type(even) .yp-spec__val {
	background: #fafbfc;
	}

.yp-spec__row:last-child .yp-spec__key,
.yp-spec__row:last-child .yp-spec__val {
	border-bottom: none;
	}



/* TAB2 注文の流れ */









/* TAB3 FAQ */

.yp-faq {
	display: flex;
	flex-direction: column;
	gap: 10px;
	}

.yp-faq__item {
	border: 1px solid #e7eaf0;
	border-radius: 2px;
	overflow: hidden;
	}

.yp-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: #f5f7fa;
	cursor: pointer;
	}

.yp-faq__qtext {
	font-weight: 600;
	color: #1A2A5E;
	}

.yp-faq__mark {
	color: #F5CD1A;
	font-size: 18px;
	font-weight: 600;
	}

.yp-faq__body {
	display: none;
	padding: 16px 20px;
	color: #4b5366;
	line-height: 1.85;
	}



/* 関連商品 */

.yp-related {
	padding: 120px 0;
	background: #f5f7fa;
	}

.yp-related__head {
	text-align: center;
	margin-bottom: 28px;
	}

.yp-card {
	display: block;
	background: #FFF;
	border: 1px solid #e7eaf0;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	cursor: pointer;
	transition: border-color .15s, transform .15s, box-shadow .15s;
	}

.yp-card:hover {
	border-color: #1A2A5E;
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.14);
	}

.yp-card__img {
	display: block;
	width: 100%;
	height: 148px;
	object-fit: cover;
	}

.yp-card__ph {
	height: 148px;
	}

.yp-card__body {
	padding: 15px;
	}

.yp-card__name {
	font-size: 13px;
	font-weight: 600;
	color: #1A2A5E;
	margin-bottom: 7px;
	}

.yp-card__price {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	color: #1A2A5E;
	}

.yp-card__price-unit {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 11px;
	font-weight: 400;
	color: #9aa3b2;
	}




/* ===== ボタン / タグ / フラッシュ / アイブロウ見出し（商品詳細専用） ===== */

.yp-tag {
	display: inline-block;
	background: #1A2A5E;
	color: #F5CD1A;
	font-size: 10px;
	font-weight: 600;
	padding: 4px 11px;
	border-radius: 2px;
	}

.yp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 2px solid transparent;
	border-radius: 5px;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
	width: 300px;
	height: 70px;
	}

.yp-btn--navy {
	background: #1A2A5E;
	border-color: #1A2A5E;
	color: #FFF;
	}

.yp-btn--navy:hover {
	background: transparent;
	color: #1A2A5E;
	}

.yp-btn--line {
	background: #FFF;
	border-color: #06C755;
	color: #06C755;
	}

.yp-btn--line:hover {
	background: #06C755;
	color: #FFF;
	}

.yp-btn--block {
	width: 100%;
	}

.yp-btn--lg {
	height: 56px;
	}

.yp-btn--md {
	height: 44px;
	font-size: 13px;
	}

.yp-flash {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 44px;
	font-size: 14px;
	font-weight: 600;
	}

.yp-flash--success {
	background: #e6f7ee;
	border-bottom: 1px solid #b2dfce;
	color: #0a6640;
	}

.yp-flash--error {
	background: #fdecec;
	border-bottom: 1px solid #f3c2c2;
	color: #a12626;
	}

/* ---- 仕様選択（連動セレクト） ---- */
.yp-optsel {
	margin-bottom: 20px;
	border: 1px solid #e3e6ee;
	border-radius: 6px;
	padding: 14px 16px 4px;
	background: #fafbfd;
	}
.yp-optsel__row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	}
.yp-optsel__label {
	flex: 0 0 96px;
	font-size: 13px;
	font-weight: 700;
	color: #1A2A5E;
	}
.yp-optsel__select {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	padding: 0 12px;
	font-size: 15px;
	border: 1px solid #c7ccdb;
	border-radius: 4px;
	background: #fff;
	color: #222;
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	}
.yp-optsel__select:disabled {
	background-color: #eef0f4;
	color: #9aa0af;
	cursor: not-allowed;
	}
@media (max-width: 600px) {
	.yp-optsel__row { flex-wrap: wrap; gap: 6px; }
	.yp-optsel__label { flex-basis: 100%; }
	}

.yp-flash__action {
	margin-left: auto;
	font-size: 13px;
	font-weight: 600;
	color: #1A2A5E;
	border: 1px solid #1A2A5E;
	padding: 5px 14px;
	border-radius: 2px;
	}

.yp-flash__action:hover {
	background: #1A2A5E;
	color: #FFF;
	}

.yp-eyebrow {
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	letter-spacing: 0.26em;
	color: #9aa3b2;
	margin-bottom: 8px;
	}

.yp-sectiontitle {
	font-size: 24px;
	font-weight: 600;
	color: #1A2A5E;
	}


/******************************************************

タブレットの設定 960px〜1199pxの場合に適用

*******************************************************/

@media screen and (max-width: 1199px){

.yp-detail {
	grid-template-columns: 1fr 380px;
	}

}



/******************************************************

タブレットの設定 768px〜959pxの場合に適用

*******************************************************/

@media screen and (max-width: 959px){

.yp-detail,
.yp-tab2col {
	grid-template-columns: 1fr;
	}

.yp-buy {
	position: static;
	}

}



/******************************************************

SPの設定 767px以下の場合に適用

*******************************************************/

@media screen and (max-width: 767px){

.yp-buy__desc, .yp-tabbtn, .yp-feature__body, .yp-spec__row, .yp-faq__qtext, .yp-faq__body, .yp-psec__text {
	font-size: 14px;
	}


.yp-detail {
	padding: 0 0 32px;
	gap: 28px;
	}

.yp-tabs-wrap {
	padding: 0;
	}

.yp-tabbtns {
	overflow-x: auto;
	}

.yp-spec__row {
	grid-template-columns: 120px 1fr;
	}



.yp-related {
	padding: 60px 0;
	}

.yp-pricebox__label {
	margin-bottom: 5px;
	}

.yp-pricebox__price {
	font-size: 20px;
	}

.yp-buy__add {
	margin-top: 5px;
	margin-bottom: 20px;
	}

.yp-trust__item {
	font-size: 12px;
	}

.yp-buyinfo__row {
	font-size: 14px;
	}

}


/* タブパネル表示制御（インラインstyle廃止） */
.yp-tabpanel {
	display: none;
	}

.yp-tabpanel.is-active {
	display: block;
	}

.yp-buyinfo__note {
	margin-top: 10px;
	font-size: 12px;
	line-height: 1.6;
	color: #888;
	}
