@import url("https://fonts.googleapis.com/css2?family=Geologica:wght@400&display=swap");

.ctg_cataloglp {
  display: block;
  max-width: 1160px;
  margin-top: -30px!important;
  margin-left: auto;
  margin-right: auto;
  background-color: #fff;
  position: relative;
}


.spIn {
	display: none;
}

.pcIn {
	display: inline;
}

@media screen and (max-width: 767px){
.spIn {
	display: inline;
}

.pcIn {
	display: none;
}
}


/*-------------------------------------------------------------------
	firstview　（mainVisual）
-------------------------------------------------------------------*/

section {
	max-width: 95%;
	margin: 0 auto;
	margin-top: 3%;
}
@media screen and (max-width: 767px) {
	section {
		max-width: 95%;
	}
}

/* 匠タイトル */
section h2 {
	font-size: 1.8em;
	font-weight: 700;
	margin-bottom: 3%;
	text-indent: -1em;
}
section h2 span{
	text-decoration: underline #000 2px;
	text-underline-offset: 0.4em;
}
section h2::before {
	content: '';
	display: inline-block; /* widthとheightを有効にするため */
	width: 0.5em;          /* 幅 */
	height: 1.7em;         /* 高さ */
	background-color: #000; /* 長方形の色 */
	margin-right: 0.4em;
	vertical-align: bottom;
}
@media screen and (max-width: 767px) {
	section h2 {
		font-size: 1.5em;
	}
}

section h3 {
	text-align: center;
	font-size: 1.5em;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 2%;
}

h4 {
	text-align: center;
	margin: 0 auto;
	width: 100%;
	font-size: 1.3em;
	font-weight: 700;
	color: #fff;
	background-color: #00008b;
	padding: 10px 10px;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

section p {
	max-width: 90%;
	margin: 0 auto;
	text-align: left;
	font-size: 1.2em;
}

@media screen and (min-width:768px) {
.mainimg {
	display: flex;
	max-width: 100%;
}
.mainimg img {
	width: 50%;
	padding: 2%;
}
.mainimg p {
	font-size: 1em;
}
.maintext {
	width: 50%;
}
}

@media screen and (max-width: 767px) {
	section p {
		text-align: left;
		font-size: 1em;
	}

	.mainimg {
		display: block;
		width: 100%;
		padding: 3%;
	}
	.mainimg img {
		width: 100%;
		padding: 1%;
	}
	.mainimg p {
		font-size: 1em;
		margin-bottom: 10px;
	}
	.maintext {
		width: 100%;
	}
}



/*-------------------------------------------------------------------
	白背景指定
-------------------------------------------------------------------*/

.main-contents {
	background: #FFF!important;
	padding-top: 5%!important;
}
@media screen and (max-width: 767px) {
	.main-contents {
		background: #FFF!important;
	}
}


.firstview {
		background-color: #FFF!important;
	}




/*-------------------------------------------------------------------
　 注意事項
-------------------------------------------------------------------*/

.details {
	width: 90%;
	margin: 0 auto;
}

.details .itemName {
	font-size: 1.4em;
	font-weight: 700;
	margin-top: 0.4em;
	position: relative; /* ::before を絶対配置するための基準 */
	left: 1em;
}
.details .itemName::before {
	content: '■';
	position: absolute; /* 絶対配置に変更 */
	top: 5px;
	line-height: 1;
	left:-1em;
}

.details span {
	font-size: 0.8em;
	color: #777;
}

@media screen and (min-width: 768px){
	.details {	
		display: flex;
		width: 90%;
		gap: 15px;
		margin: 0 auto;
	}
	.details > div:first-child { /* ① */
		flex-basis: 50%;
	}
	.details > div:last-child { /* ② */
		flex-basis: 50%;
	}
	
	.details img {
		width: 100%;
		max-width: 500px; /* 最大幅を指定して、拡大しすぎ防止 */
		min-width: 300px; /* 必要に応じて最小幅も指定 */
		height: auto;
		display: block;
	}
	.details p {
		text-align: left;
		line-height: 1.5;
	}
	}
	
	@media screen and (max-width: 767px) {
		.details p {
			text-align: left;
		}
	
		.details img {
			width: 100%;
			max-width: 350px; /* 最大幅を指定して、拡大しすぎ防止 */
			min-width: 280px; /* 必要に応じて最小幅も指定 */
			height: auto;
			display: block;
		}

		.details .itemName {
			left:  -0.5em;
		}
		.details .itemName::before {
			top: 9px;
			left: -1em;
		}
	}


	:root {
		--list-item-indent: 1em; /* この値を調整してお好みのインデント幅に設定 */
	  }
	  
	  .caution {
		display: block;
		width: 85%;
		margin: 0 auto;
		text-align: left;
	  }
	  
	  .caution .itemName {
		font-size: 1.4em;
		font-weight: 700;
		margin-top: 0.4em;
		position: relative; /* ::before を絶対配置するための基準 */
		left: -1em;
	  }
	  
	  .caution .itemName::before {
		content: '◆';
		position: absolute; /* 絶対配置に変更 */
		left: -0.3em;
		top: 7px;
		line-height: 1;
		left:-1em;
	  }
	  
	  .dotList {
		position: relative;
		padding-left: var(--list-item-indent); /* itemName と同じインデント値を適用 */
	  }
	  
	  .dotList::before {
		content: "";
		display: block;
		width: 12px;
		height: 12px;
		border-radius: 50%;
		position: absolute;
		top: 10px;
		left: 0;
		background: #00bfff;
	  }

	  .numberList {
		list-style: none;
		padding-left: 0;
		counter-reset: list-counter; /* ここでカウンターを0にリセット */
	  }

	  .numberList li {
		counter-increment: list-counter; /* ここでカウンターが1増える (最初のliで1になる) */
		margin-bottom: 8px;
		position: relative;
		padding-left: 1.5em;
		line-height: 1.6;
	  }
	  
	  .numberList li::before {
		content: counter(list-counter) ". ";; /* カウンターの値を表示 */
		position: absolute;
		top: 1em;
		left: 0;
		transform: translateY(-50%); /* 上下中央揃え */
		color: #000;                /* 数字の色 */
		display: flex;               /* Flexboxを使って中央揃え */
		align-items: center;         /* 垂直中央揃え (Flexbox) */
		justify-content: center;     /* 水平中央揃え (Flexbox) */
		font-size: 0.8em;             /* 数字のフォントサイズ */
		font-weight: bold;
	  }

	  .caution > ul {
		padding-left: 0;      /* <ul> の左パディングをなくします */
		list-style-type: none; /* <ul> のデフォルトの黒丸も消します */
		/* 必要であれば、ulが持つデフォルトの上下マージンも調整できます */
		/* margin-top: 0; */
		/* margin-bottom: 0; */
	  }

	  @media screen and (max-width: 767px) {
		.caution .itemName {
			font-size: 1.4em;
			font-weight: 700;
			margin-top: 0.4em;
			position: relative; /* ::before を絶対配置するための基準 */
			padding-left: var(--list-item-indent); /* テキストの開始位置をインデント */
		  }
		  
		  .caution .itemName::before {
			content: '◆';
			position: absolute; /* 絶対配置に変更 */
			left: -0.3em;
			top: 7px;
			line-height: 1;
		  }
	  }

/*----------------------------------------------
  modal
------------------------------------------------*/

body {
	overflow: hidden; /* モーダル表示中はスクロールを無効にする */
  }
  
  /* モーダルの背景 */
.modal {
    display: none; /* 初期状態では非表示 */
    position: fixed; /* 画面に固定 */
    z-index: 1000; /* 他の要素より手前に表示 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* コンテンツが多い場合にスクロール可能にする */
    background-color: rgba(0,0,0,0.5); /* 半透明の黒背景 */
    justify-content: center; /* 水平中央揃え (JavaScriptで display: flex; にした際に有効) */
    align-items: center; /* 垂直中央揃え (JavaScriptで display: flex; にした際に有効) */
}

/* モーダルのコンテンツ部分 */
.modal-content {
    background-color: #fefefe;
    margin: auto; /* display: block; の場合に中央揃え */
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px; /* 最大幅を指定 */
    border-radius: 8px;
    position: relative; /* 閉じるボタンの配置基準 */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
}

.content-text {
	font-size: 0.9em;
	vertical-align:top;
}

/* モーダル表示時のアニメーション */
@keyframes animatetop {
    from {top: 0px; opacity: 0}
    to {top: 0; opacity: 1}
}

/* 閉じるボタン */
.modal-close-button {
color: #aaa; /* バツ印の色 */
position: absolute;
top: 0;
right: 0; /* 位置を少し調整 */
width: 30px; /* 幅を指定 */
height: 30px; /* 高さを指定 */
border-radius: 50%; /* 円形にする */
font-size: 20px; /* バツ印のサイズを調整 */
font-weight: bold;
line-height: 30px; /* 高さと合わせて中央揃え */
text-align: center; /* 水平中央揃え */
cursor: pointer;
transition: background-color 0.3s, color 0.3s; /* ホバー時のアニメーション */
z-index: 10000;
}

.modal-close-button:hover,
.modal-close-button:focus {
color: black; /* ホバー時のバツ印の色 */
text-decoration: none;
}

/* モーダルを開くボタンのスタイル（お好みで調整してください） */
.modal-open-button {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
}


.thumbnail-link img {
    width: 45%; /* サムネイルの幅 */
    height: auto;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.thumbnail-link img:hover {
    opacity: 0.7;
}

/* モーダルの背景 */
.modal {
    display: none; /* 初期状態では非表示 */
    position: fixed;
    z-index: 1000;
    padding-top: 60px; /* 上からの位置 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85); /* 半透明の黒背景 */
}

/* モーダルのコンテンツ (画像本体) */
.modal-content {
    margin: auto;
    display: block;
	top: 10%;
    width: auto; /* 画像のアスペクト比を保つ */
    max-width: 85%; /* 画面幅の85%を最大幅に */
	height: auto; /* 画面高さの85%を最大高さに */
    animation-name: zoom;
    animation-duration: 0.3s;
}

/* 表示時のアニメーション */
@keyframes zoom {
    from {transform: scale(0.5)}
    to {transform: scale(1)}
}


/* キャプションテキスト (任意) */
#caption {
    margin: auto;
	margin-top: 5%;
    display: block;
    width: 100%;
	height: auto;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}


@media screen and (max-width:767px) {
	.thumbnail-link img {
		width: 100%; /* サムネイルの幅 */
		height: auto;
	}

	.modal-close-button {
		top: 15%;
		right: 5%;
		}

	#caption {
		margin-top: 20%;
	}

}