:root{
	--color-white               : #fff;
	--color-black               : #000;
	--color-gray-dark           : #4d4d4d;
	--color-gray-medium         : #e5e5e5;
	--color-gray-border         : #ccc;
	--color-gray-dark-search    : #808080;
	--color-gray-medium-search  : #bfbfbf;
	--color-gray-light          : #9e9e9e;
	--color-box-shadow          : rgb(0 0 0 / 30%);
	--color-black-tooltip-bg    : rgb(0 0 0 / 70%);
	--color-black-tooltip-shadow: rgb(0 0 0 / 20%);
	--color-orange              : #F05A06;
	--color-background-orange   : #FFB58C;
	--color-background-buyer    : #FDF2EB;
	--color-background-side     : #F9F9F9;

	/*--- パックラベルカラー ---*/
	--color-label-yellow: rgb(255, 218, 42);
	--color-label-green : rgb(30, 174, 122);
	--color-label-blue  : rgb(117, 162, 214);
	--color-label-pink  : rgb(255, 140, 144);

	--color-menu-icon-opacity     : 0.3;
	--color-search-button-opacity : 0.75;
	--color-search-grayout-opacity: 0.4;
}



/* スマホ用固定メニュー start */
#sp-fixed-menu {
	position: fixed;
	width: 100%;
	bottom: 0px;
	left: 0;
	top: auto;
	z-index: 4;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

#sp-fixed-menu ul:not([class]) {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
	height: 60px;
	background: var(--color-gray-medium);
	position: relative;
	border-top: 1px solid var(--color-gray-border);
}

#sp-fixed-menu li:not([class]) {
	text-align: center;
	width: 50%;
	padding: 0;
	margin: 0;
	display: grid;
	align-items: center;
}

#sp-fixed-menu li:not([class]) > * {
	display: grid;
	justify-content: center;
	gap: max(5px, min(1vw, 6px));
}

#sp-fixed-menu li:not([class]) a {
	color: var(--color-gray-dark);
}

#sp-fixed-menu li:not([class]) a:hover {
	text-decoration: none;
}

#sp-fixed-menu li:not([class]) img {
	height: 26px;
	margin-inline: auto;
}

#sp-fixed-menu li:not([class]) p {
	text-align: center;
	font-size: 1.2rem;
	margin-bottom: 0;
	line-height: 1;
}

#sp-fixed-menu li:not([class]) .btn-grayout > img,
#sp-fixed-menu li:not([class]) .btn-grayout > p,
#sp-fixed-menu li:not([class]) .btn-grayout .search-icon,
.search-button-pc .btn-grayout .open-btn {
	opacity: var(--color-menu-icon-opacity);
}


/*=====================================
	Media Queries
=====================================*/
@media (min-width: 1000px) {
	#sp-fixed-menu {
		display: none;
	}
}

@media (max-width: 499px) {
	#sp-fixed-menu ul:not([class]) {
		height: 50px;
	}

	#sp-fixed-menu li:not([class]) img {
		height: 20px;
	}

	.sp-menu .open-btn:not(:root),
	.sp-menu .search-icon:not(:root),
	.sp-menu .list-open:not(:root) {
		height: 20px;
	}

	#sp-fixed-menu li:not([class]) p {
		font-size: 1rem;
	}
}
/* スマホ用固定メニュー end */

/* 検索フォーム start */
.sp-menu .open-btn,
.sp-menu .search-icon,
.sp-menu .list-open {
	bottom: 0px;
	right: 0;
	background: url("/smart_rn/images/sp-menu_search.svg") no-repeat bottom;
	background-size: contain;
	width: auto;
	height: 26px;
	position: relative;
}
.sp-menu .list-open {
	background: url("/smart_rn/images/sp-menu_contents.svg") no-repeat bottom;
}
.sp-menu .open-btn,
.sp-menu .list-open {
	cursor: pointer;
}
.sp-menu .open-btn.btnactive,
.sp-menu .btnactive .list-open {
	background: url("/smart_rn/images/sp-menu_searchClose.svg") no-repeat center;
}
.search-button-pc .open-btn .btnactive {
	background-image: url("/smart_rn/images/sp-menu_searchClose.svg");
}

#search-wrap,
#search-wrap-pc {
	position: fixed;
	top: auto;
	bottom: -50px;
	z-index: -1;
	left: 0;
	width: 100%;
	transition: all 0.4s;
	display: block !important;
}
#search-wrap.panelactive,
#search-wrap-pc.panelactive {
	bottom: 50%;
	z-index: 1;
}
#search-wrap + .search-backdrop,
#search-wrap-pc + .search-backdrop {
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s;
	position: fixed;
}
#search-wrap.panelactive + .search-backdrop,
#search-wrap-pc.panelactive + .search-backdrop {
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: var(--color-black);
	opacity: 0.5;
	visibility: visible;
	z-index: -1;
	touch-action: none;
	overflow: hidden;
}
.searchform {
	transition: transform 0.4s;
	display: block;
	position: relative;
	margin-inline: auto;
	opacity: 1;
	width: 100%;
}
.searchform .input-group {
	margin-inline: auto;
	width: 85%;
	max-width: 420px;
}
.searchform input {
	-webkit-appearance: none;
	outline: none;
	cursor: text;
	color: var(--color-default);
}
.searchform input[type="text"]:not(:root) {
	border-bottom: 2px solid var(--color-gray-border);
	transition: all 0.5s;
	height: 38px;
	padding: 10px 37px 10px 20px;
	background: var(--color-white);
	border: 1px solid var(--color-black);
	border-radius: 100vh;
	font-size: 1.4rem;
}
.search-pc.grayout .searchform input[type="text"] {
	font-size: 1.25rem;
}
#sp-fixed-menu .searchform input[type="text"] {
	box-shadow: 0 2px 6px var(--color-box-shadow);
}
.searchform ::placeholder {
	color: var(--color-gray-light);
}
.searchform input[type="text"]:focus {
	background: var(--color-white);
	outline: auto;
	outline-color: var(--color-gray-dark-search);
	box-shadow: none;
}
.searchform .input-group-btn {
	position: unset;
}
.searchform button[type="submit"] {
	position: absolute;
	top: 50%;
	right: 20px;
	background: transparent;
	width: 20px;
	height: 26px;
	border: none;
	transform: translateY(-50%);
	z-index: 2;
	padding: 0;
	opacity: var(--color-search-button-opacity);
}

/*=====================================
	Media Queries
=====================================*/
@media (min-width: 1000px) {
	.search-pc {
		margin-bottom: 30px;
	}
	.search-pc.grayout {
		opacity: var(--color-search-grayout-opacity);
	}
	.search-pc .searchform .input-group {
		width: 100%;
	}
	.search-pc.grayout .searchform ::placeholder {
		color: var(--color-black);
	}
	.search-pc.grayout input,
	.search-pc.grayout button[type="submit"] {
		pointer-events: none;
	}
	.search-pc .searchform input[type="text"] {
		border-color: var(--color-black);
	}
	.search-pc.grayout .searchform input[type="text"] {
		background: var(--color-gray-medium-search);
		padding-left: 15px;
	}
	.search-pc.grayout .searchform button[type="submit"] {
		right: 15px;
		opacity: 1;
	}
}
@media (max-width: 999px) {
	.searchform button[type="submit"] {
		width: 25px;
		height: 30px;
	}
	.searchform input[type="text"]:not(:root) {
		height: 45px;
		padding-right: 42px;
	}
}
/* 検索フォーム end */



/* tooltip start*/
.sp-menu .tooltip,
.search-button-pc .tooltip {
	opacity: 0;
	visibility: hidden;
	position: fixed;
	font-size: 1.2rem;
	color: var(--color-white);
	background: var(--color-black-tooltip-bg);
	padding: 14px 10px;
	border-radius: 5px;
	bottom: 50%;
	left: calc(50% - 150px);
	width: 100%;
	max-width: 300px;
	margin-inline: auto;
	display: grid;
	justify-content: center;
	z-index: 1;
	animation-delay: 0.3s;
	transition: all 0.3s;
	box-shadow: 0 2px 4px var(--color-black-tooltip-shadow);
	line-height: 1.5;
}

#sp-fixed-menu .tips .tooltip,
.search-button-pc .tips .tooltip {
	animation: tips-open 0.4s ease-out forwards;
	animation-delay: 0.3s;
}

/*=====================================
	Keyframes for Animation
=====================================*/
@keyframes tips-open {
	0% {
		opacity: 0;
	}
	10% {
		transform: scale(1.2);
		opacity: 1;
		visibility: visible;
	}
	20% {
		transform: scale(1);
		opacity: 1;
		visibility: visible;
	}
	100% {
		transform: scale(1);
		opacity: 1;
		visibility: visible;
	}
}

@-webkit-keyframes tips-open {
	0% {
		opacity: 0;
	}
	10% {
		transform: scale(1.2);
		opacity: 1;
		visibility: visible;
	}
	20% {
		transform: scale(1);
		opacity: 1;
		visibility: visible;
	}
	100% {
		transform: scale(1);
		opacity: 1;
		visibility: visible;
	}
}
/* tooltip end*/


/* PC時の右上の検索ボタン start */
@media (min-width: 1000px) {
	.search-button-pc {
		position: sticky;
		top: 0;
		display: flex;
		justify-content: flex-end;
		z-index: 100;
		padding-top: 1em;
		padding-bottom: 1em;
	}

	.search-button-pc a {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		box-shadow: 0 4px 8px var(--color-gray-medium);
		transition: background-color 0.3s ease;
		border: 1px solid var(--color-black);
		background-image: url(/smart_rn/images/sp-menu_search.svg);
		background-repeat: no-repeat;
		background-position: center;
		background-size: 65%;
		background-color: var(--color-white);
	}
}
/* PC時の右上の検索ボタン end */





/* 上に戻る start */
@media (max-width: 999px) {
	.totop {
		bottom: 122px;
		z-index: 3;
	}
}
@media (max-width: 767px) {
	.totop {
		bottom: 110px;
	}
}

@media (max-width: 499px) {
	.totop {
		bottom: 98px;
	}
}
/* 上に戻る end */



/* トップ・全文検索 共通 start */
/*=====================================
	Pack Labels
=====================================*/
.label-561,
.label-569,
.label-576,
.label-594,
.label-614 {
	background-color: var(--color-label-yellow);
	color: var(--color-black);
}
.label-580,
.label-584 {
	background-color: var(--color-label-green);
}
.label-602,
.label-621 {
	background-color: var(--color-label-blue);
}
.label-616,
.label-622 {
	background-color: var(--color-label-pink);
}
/* トップ・全文検索 共通 end */




/* トップ・研修医の学び方 共通 start */
/* 全体_start */
.mainblock>div {
	padding-left: 0;
	padding-right: 0;
}

div.wrap {
	max-width: 960px;
	margin: 0 auto;
	padding-top: 3em;
	word-wrap: break-word;
	word-break : break-all;
	background-color: var(--color-white);
	font-size: 15px;
}

div.wrap a {
	color: var(--color-black);
}

.row-head {
	margin-bottom: 3em;
}
.row-content {
	margin-bottom: 3em;
}

/* PC */
@media (min-width: 1000px) {
	#contents.container-fluid {
		background-color: var(--color-background-side);
	}
	div.wrap {
		padding: 0 3em 3em 3em;
		font-size: 16px;
	}
}
/* 全体_end */

/* 赤鉛筆_start */
.red-pencil {
	display: flex;
	align-items: center;
	gap: 15px;
	position: relative;
	margin-bottom: 0.5em;
}
.red-pencil h3 {
	/* margin-left: 40px; */
	margin-top: 10px;
	font-weight: 600;
	font-size: 20px;
}
.red-pencil .red-pencil-area img {
	transform: translateX(-100%);
	opacity: 0;
	animation: slide-in 1s ease-out 0.5s forwards;
	/* position: absolute; */
	max-width: 50px;
	min-width: 50px;
	margin-left: -15px;
}
.red-pencil .free {
	max-width: 50px;
}

/* PC */
@media (min-width: 1000px) {
	.red-pencil h3 {
		/* margin-left: 7px; */
		font-size: 24px;
	}
	.red-pencil .red-pencil-area img {
		margin-left: -47px;
	}
}

@keyframes slide-in {
	0% {
		transform: translate(-100%);
		opacity: 0;
	}
	100% {
		transform: translate(0);
		opacity: 1;
	}
}
/* 赤鉛筆_end */


/* トップ start */
a img:hover {
	opacity: 0.6;
}

/* 今週のお役立ち記事 start */
.useful p.deadline {
	color: var(--color-orange);
}
.useful p.pub {
	margin-bottom: 0;
	font-size: 12px;
}
.useful p.booktitle {
	margin-bottom: 0;
}
.useful p.booktitle span {
	font-size: 15px;
	font-weight: bold;
	background-color: var(--color-background-orange);
}
.useful p.article {
	font-size: 19px;
	font-weight: bold;
}


/* PC */
@media (min-width: 1000px) {
	.useful p.pub {
		margin-bottom: 0;
		font-size: 14px;
	}
	.useful p.booktitle span {
		font-size: 17px;
	}
	.useful p.article {
		font-size: 22px;
	}
}
/* 今週のお役立ち記事 end */

/* 商品一覧_start */
.content-lineup {
	display: flex;
	flex-wrap: wrap;
}
.content-lineup .img-area {
	padding: 10px;
	margin-top: 1em;
	margin-bottom: 0.5em;
}
.content-lineup .img-area img {
	max-height: 100px;
}
.content-lineup a:hover {
	opacity: 0.6;
}
.content-lineup .img-resident_pack2024,
.content-lineup .img-resident_pack2025 {
	background-color: var(--color-label-yellow);
}
.content-lineup .img-ward_mng2024 {
	background-color: var(--color-label-green);
}
.content-lineup .img-img_dx2025 {
	background-color: var(--color-label-blue);
}
.content-lineup .img-er2025 {
	background-color: var(--color-label-pink);
}

/* PC */
@media (min-width: 992px) {
	.content-lineup .img-area {
		padding: 25px;
		min-height: 150px;
	}
}
/* 商品一覧_end */

/* おすすめ書籍・ライブラリのカルーセル start */
/* カルーセル全体のコンテナ */
.carousel-container {
	position: relative;
	width: 100%;
	overflow: hidden; /* 子要素がはみ出た部分を隠す */
}

/* 画像を横に並べるためのFlexboxコンテナ */
.carousel-track {
	display: flex;
	align-items: center;
	transition: transform 0.5s ease-in-out; /* スライドアニメーション */
}

/* 各画像のコンテナ */
.carousel-item {
	flex: 1 0 auto;
	width: calc(100% / 3); /* 3枚表示 */
	box-sizing: border-box;
	padding: 5px;
	flex: none;
}

/* 画像がコンテナいっぱいに表示されるように */
.carousel-item img {
	width: 100%;
	height: 120px;
	display: block;
	object-fit: contain;
}

/* 左右の移動ボタン */
.carousel-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	padding: 10px 15px;
	z-index: 3;
	border: 1px solid var(--color-black);
	border-radius: 50%;
	background-color: var(--color-white);
	opacity: 0.8;
}
.carousel-button.next {
	right: 0;
}

/* ライブラリのみ */
#carousel-2 .carousel-item>div { 
	aspect-ratio: 1;
}
#carousel-2 .carousel-item-resident_pack2024,
#carousel-2 .carousel-item-resident_pack2025 {
	background-color: var(--color-label-yellow);
}
#carousel-2 .carousel-item-ward_mng2024 {
	background-color: var(--color-label-green);
}
#carousel-2 .carousel-item-img_dx2025 {
	background-color: var(--color-label-blue);
}
#carousel-2 .carousel-item-er2025 {
	background-color: var(--color-label-pink);
}
#carousel-2 .carousel-item img { 
	height:100%;
	max-height: 100%;
	padding: 5px;
}

/* PC */
@media (min-width: 763px) {
	.carousel-item {
		width: calc(100% / 5);  /* 5枚表示 */
	}
	.carousel-item img {
		height: 220px;
	}
}
/* おすすめ書籍・ライブラリのカルーセル end */


/* ライブラリ・お気に入り記事 start */
.buyer {
	background-color: var(--color-background-buyer);
}
.buyer>div {
	background-color: var(--color-background-buyer);
	padding: 2em 1em;
}
.buyer img.black-pencil {
	max-width: 150px;
	margin-bottom: 0.5em;
}
.buyer #fav img.black-pencil {
	margin-top: 2em;
}

/* PC */
@media (min-width: 1000px) {
	.buyer {
		background-color: transparent;
	}
}
/* ライブラリ・お気に入り記事 end */

/* お気に入り記事 start */
.fav-h5 {
	margin-bottom: 10px;
	line-height: 1.5;
}
#fav div a:hover {
	text-decoration: none !important;
}
#fav div a:hover .contents-title {
	text-decoration: underline;
}

/* お気に入り記事 end */

/* レジスタとは（上部） start */
.row-concept {
	scroll-margin-top: 60px;
	margin-bottom: 1em;;
}
.row-concept span {
	background:linear-gradient(transparent 80%, var(--color-background-orange) 80%);
}
/* レジスタとは（上部） end */

/* 特徴 start */
.feature-box {
	border: 3px solid var(--color-orange);
	border-radius: 5px;
	padding: 0 1em;
}
.feature-box .feature-head {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	padding: 0 8px;
	background: var(--color-white);
	color: var(--color-orange);
	font-weight: 600;
	font-size: 16px;
	white-space: nowrap;
}
.row-feature>div {
	margin-bottom: 1em;
	margin-top: 1em;
}
.row-feature>div .row {
	display: flex;
	align-items: center;
}
.row-feature h4 {
	font-size: 15px;
}

@media (min-width: 1000px) {
	/* PC */
	.row-feature {
		padding: 2em;
	}
	.row-feature h4 {
		font-size: 17px;
	}
}
/* 特徴 end */
/* トップ end */


/* ヘッダ start */
#site-logo {
	max-width: 960px;
}
/* ヘッダ end */

