/***************************************
 レスポンシブWEBデザイン
 PC用スタイルシート
 基本情報で設定した画面サイズ以下で適用
***************************************/

/****************************
HTMLの共通の設定
****************************/
body 	{
	background:#f4f1ea;
	font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;
	font-size:16px;
	margin: 0;
	}
*{
	box-sizing:border-box;
}

BODY,TR,TD,TH {
	color : #555555;
	}
h3 { 
	display:block;
	text-align:center;
	font-size:14pt;
	color:green;
	font-style:italic 
	}
p { 	
	display:block;
	text-align:center;
	}
ul, ol, li {
	margin: 0;
	list-style: none;
	padding-top: 0;
	padding-right: 0;
	padding-bottom: 0;
	padding-left: 0;
	}
::placeholder {
	color: #aaa;
}
.break{
	clear:both;
	}
.pclink{
	float: left;
	}
.alllink{
	float: left;
	}
.menutitle{
	line-height:190%;
	padding: 3px;
	font-size : 14px;
	border:1px solid #999;
	background-image:linear-gradient(#E1F0FF,#BBDDFF);
	}
.listmark{
	vertical-align: middle;
	}
/********** 入力部品 ************/
input[type='text'],input[type='password']{
	max-width: 300px;
	padding: 5px;
	margin:2px;
	border-radius: 5px;
	font-size:16px;
	border: 1px solid #ccc;
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
}
input[type="radio"],input[type="checkbox"]{
	margin:2px;
	width: 1.3em;
	height: 1.3em;
	vertical-align:middle;
}
textarea{
	width: 100%;
	max-width: 500px;
	margin:2px;
	border-radius: 5px;
	background: #fff;
	border: 1px solid #ddd;
	padding: 10px;
	font-size: 13px;
}
select{
	padding: 5px;
	margin:2px;
	border-radius: 5px;
	font-size:16px;
	border: 1px solid #ccc;
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
}

/****************************
共通のボタンとリンク
****************************/
.smallBT {
	padding:10px 12px;
	border:1px solid #ddd;
	border-radius:8px;
	font-size:14px;
	color:#333;
	text-decoration:none;
	box-sizing:border-box;
}
.smallBT:hover {
	background:#b13a3a;
	color:#fff;
}
.back_area {
	width:100%;
	text-align:center;
	}
.backBT {
    display:inline-block;
    padding:10px 20px;
    border:1px solid #ccc;
    border-radius:6px;
    background:#f5f5f5;
    color:#333;
    font-size:16px;
    line-height:1.4;
    cursor:pointer;
    text-decoration:none;
    -webkit-appearance:none;
    appearance:none;
}
.backBT:hover {
    opacity:0.7;
}
.evaluationlink{
	display:inline-block;
	border:none;
	background:#dfdfdf;
	padding:3px;
	margin:1px;
	font-size:14px;
	color:#555;
	cursor: pointer;
	transition: 0.2s;
	text-decoration:none;
	border: 1px solid #ccc;
	border-radius:4px;
	}
.evaluationlink:hover {
	opacity: 0.7;
	}
.evaluation_area {
	border: 1px solid #ccc;
	border-width : 1px 0px 0px 0px;
	}
/* Mylist add */
.mylistBT {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  background: #fff;
  color: #e60023;
  border: none;
  box-shadow: 0 4px 10px rgba(230,0,35,0.2);
  transition: all 0.25s ease;
}
.mylistBT:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.heart {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #e60023;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.mylistBT.added .heart {
  fill: #e60023;
  transform: scale(1.3);
}

/* クリック時 */
.mylistBT:active {
  transform: scale(0.95);
}
.mylistBT.added {
  background: #fff;
  color: #e60023;
}

/* Mylist dele */
.mylist-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #666;
  font-size: 13px;
}

.delete-icon {
  width: 22px;
  height: 22px;
  fill: #999;
  flex-shrink: 0;
}
/* hover */
.mylist-delete:hover {
  color: #d60000;
}
.mylist-delete:hover .delete-icon {
  fill: #d60000;
}
.delete-text {
  font-size: 11px;
  margin-left: 4px;
  color: #999;
}
.mylist_area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 100px;
}
.mylist-delete {
	color: #999;
	font-size: 12px;
}
#return-top {
	height: 40px;
	line-height: 40px;
	background-color:rgba(153,51,0,0.5);
	border-radius: 30%;
	bottom: 11px;
	color: #fff;
	font-size: 14px;
	outline: 0;
	position: fixed;
	right: 20px;
	text-decoration:none;
	text-align: center;
	width: 50px;
	filter:alpha(opacity=50);
	-moz-opacity: 0.5;
	opacity: 0.5;
}
#return-top:hover {
	background-color: #993300;
	filter:alpha(opacity=100);
	-moz-opacity: 1;
	opacity: 1;
}
/*** SORT ボタン***/
.sort-bar{
	margin-bottom:20px;
	font-size:14px;
	display:flex;
	gap:12px;
	align-items:center;
}
.sort-bar .DLINK,
.sort-btn{
	position:relative;
	padding:8px 16px;
	border-radius:20px;
	border:1px solid #ddd;
	text-decoration:none;
	color:#333;
	background:#fff;
	font-size:14px;
	transition:0.2s;
}
/* 矢印 */
.sort-btn::after{
	margin-left:6px;
	font-size:10px;
}
.sort-btn.asc::after{
	content:"▲";
}
.sort-btn.desc::after{
	content:"▼";
}
/* 選択中 */
.sort-btn.active{
	background:#b13a3a;
	color:#fff;
	border-color:#b13a3a;
}
.sort-bar .DLINK:hover,
.sort-btn:hover{
	transform:translateY(-2px);
	box-shadow:0 4px 8px rgba(0,0,0,0.1);
}
/* =========================
共通ブロック
========================= */



/* =========================
	 Pagination
========================= */
.pagearea{
	display:flex;
	justify-content:center;
	margin:20px 0;
}
.pagearea_under{
	display:flex;
	justify-content:center;
	margin:60px 0 30px 0;
}
.pagination{
	display:flex;
	gap:10px;
	flex-wrap:wrap;
}
.pagination a{
	box-shadow:0 3px 8px rgba(0,0,0,0.04);
}

.pagination a,
.pagination .current{
	min-width:42px;
	height:42px;
	display:flex;
	align-items:center;
	justify-content:center;
//	padding:0 14px;
	border-radius:10px;
	font-size:14px;
	text-decoration:none;
	transition:all 0.2s ease;
}
/* 通常ページ */
.pagination a{
	background:#fff;
	border:1px solid #ddd;
	color:#555;
}

.pagination a:hover{
	border-color:#b13a3a;
	color:#b13a3a;
}
/* 現在ページ */
.pagination .current{
	background:#b13a3a;
	color:#fff;
	font-weight:600;
	border:1px solid #b13a3a;
}

/* Pagination　Mobile */
@media (max-width:768px){
	.pagearea{
		margin:35px 0;
	}
	.pagination{
		gap:8px;
	}
	.pagination a,
	.pagination .current{
		min-width:36px;
		height:36px;
		font-size:13px;
		border-radius:8px;
	}
}
#header{
	background:#f8f6f2;
	border-bottom:2px solid #2f4f3f;
	font-family:"メイリオ", sans-serif;
	position:fixed;
	top:0;
	left:0;
	width:100%;
	z-index:1000;
}
#headerlist > ul{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	align-items:center;
	justify-content:space-between;
	max-width:1200px;
	margin:0 auto;
	padding:10px 10px 3px 10px;
	list-style:none;
	gap:20px;
}
#headerleft,
#headercargo,
#upmenu{
	display:flex;
	align-items:center;
	height:60px; 
}
/* ロゴ */
#headerleft{
}
.site-logo {
	font-family: 'Noto Sans JP', sans-serif;
	font-weight: 400;
	font-size: 32px;
	color: #1e3a8a;
	letter-spacing: 0.08em;
	line-height: 1.2;
	padding: 20px 0;
}
.site-logo::before {
	content: "■";
	margin-right: 8px;
}

.logo {
	width: 100%;
	max-width: 200px;
	height: auto;
	display:block;
}
/* 電話 */
.headercom a {
	text-decoration:none;
}
#headercenter{
	flex:1;
	font-size:16px;
}
/* 検索 */
#headersearch{
	flex:0 0 300px;
}
#headersearch form{
	display:flex;
	max-width:420px;
}
#headersearch input{
	flex:1;
	padding:10px;
	font-size:14px;
	border:1px solid #ccc;
	border-radius:5px 0 0 5px;
}

#headersearch input[type='text']{
	max-width: 180px;
}
#headersearch button{
	padding:5px 10px;
	font-size:14px;
	border:none;
	background:#2f4f3f;
	color:#fff;
	border-radius:0 5px 5px 0;
	cursor:pointer;
}
.searchbutton {
	padding:5px 10px;
	font-size:14px;
	border:none;
	background:#2f4f3f;
	color:#fff;
	border-radius:0 5px 5px 0;
	cursor:pointer;

}
/* カゴ */
#headercargo{
	flex:0 0 auto;
}
.headercargo{
	padding:6px 12px;
	font-size:14px;
	border-radius:18px;
	box-shadow:none;
	background: #fff;
	color:#333;
	font-weight:bold;
	display:flex;
	align-items:center;
	gap:3px;
	transition:0.2s;
	cursor:pointer;
}
/* ホバー効果 */
.headercargo:hover{
	background: linear-gradient(#c94444, #9f3434);
}
/* 数字部分（丸バッジ） */
.headercargoBTR{
	background:#8b2e2e;
	color:#fff;
	font-weight:bold;
	font-size:14px;
	min-width:24px;
	height:20px;
	display:flex;
	align-items:center;
	justify-content:center;
	border-radius:50%;
	text-decoration:none;
}
.headercargoBT{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:24px;
	height:20px;
	background:#cdcdcd;
	color:#555;
	font-weight:bold;
	font-size:14px;
	border-radius:50%;
	text-decoration:none;
	margin-left:3px;
}
/* 押した時 */
.headercargo:active{
	transform:translateY(3px);
	box-shadow:0 1px 0 #6f2323;
}
/* =========================
	 PCナビ
========================= */
.menu{
	display:flex;
	gap:25px;
	list-style:none;
	padding:10px 0;
	margin:0;
	border-top:1px solid #ddd;
}
.menu li{
	padding:5px 0;
}
.menu li a{
	text-decoration:none;
	color:#333;
	font-size:16px;
}
.menu li a:hover{
	color:#8b2e2e;
}
#menuToggle{
	display:none;
}
.menu-close{
	display:none;
}
/* =========================
	 スマホナビ
========================= */
@media (max-width:768px){
	#headerlist > ul{
		justify-content: flex-start;
		gap:10px;
		padding:6px 3px;
	}
	#headerleft{
		order:1;
		margin-right:auto;
		margin:0;
		padding:0;
	}
	.logo{
		display:block;
		max-width:250px;
	}
	#headercargo{
		order:2;
	}
	.headercargo{
		font-size:15px;
		padding:8px 10px;
	}
	#upmenu{
		order:3;
	}
	#headersearch{
		order:4;
		width:100%;
		margin-top:10px;
		border-top:1px solid #eee;
		padding-top:8px;
	}
	#headercenter{
		display:none;
	}
	#menuToggle{
		display:block;
		font-size:28px;
		cursor:pointer;
		margin-left:5px;
	}
	#headersearch{
		margin-top:0px;
	}
	#headersearch form{
		max-width:100%;
	}
	#menuToggle{
		display:block;
		font-size:28px;
		cursor:pointer;
	}
	/* スライドメニュー */
	.menu{
		position:fixed;
		top:0;
		right:-100%;
		width:280px;
		height:100%;
		background:#ffffff;
		flex-direction:column;
		padding-top:60px;
		gap:0;
		border-left:2px solid #2f4f3f;
		transition:0.3s;
		z-index:999;
	}
	.menu li{
		border-bottom:1px solid #ddd;
		padding:15px 20px;
	}
	.menu.active{
		right:0;
	}
	.menu-close{
		display:block;
	}
}
@media (max-width: 480px){
  #headerleft,
  #headercargo,
  #upmenu{
	display:flex;
	align-items:center;
	height:30px; 
  }
  /* ulの余白リセット */
  #headerlist ul{
    margin: 0;
    padding: 0;
  }
  /* liの余白削減 */
  #headerlist li{
    margin: 0;
    padding: 0;
    line-height: 1.2;
  }
  #headerleft{
    width: 100%;
	padding:0 0 0 5px;
  }
  #headersearch{
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 6px;
  }
  #headersearch,
  #headercargo,
  #upmenu{
    padding: 6px 0;
  }
  #headerleft img{
    max-height: 40px;
    width: auto;
  }
  #headersearch input{
    height: 32px;
    font-size: 14px;
    padding: 4px;
  }
  #headersearch button{
    height: 32px;
    padding: 0 8px;
  }
  #headercargo,
  #upmenu{
    line-height: 32px;
    height: 32px;
  }
}
/* ===================================
ハンバーガーメニュー表示＝背景暗転
=================================== */
.menu-overlay{
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:rgba(0,0,0,0.4);
	opacity:0;
	visibility:hidden;
	transition:0.3s;
	z-index:998;
}
.menu-overlay.active{
	opacity:1;
	visibility:visible;
}
/* ×ボタン表示 */
.menu-close{
	font-size:18px;
	text-align:right;
	padding:15px 20px;
	cursor:pointer;
	border-bottom:2px solid #2f4f3f;
}
/****************************
コンテンツ
****************************/
#contents {
	max-width:1200px;
	margin:0 auto;
	padding-top:180px;
	display:flex;
	gap:30px;
	align-items:flex-start;
}

#robotcontents{
	margin:0 auto;
	padding:10px 0 0 0;
	width:100%;
	height:600px;
	background:#fff;
}
.robotBT {
	margin: 10px;
	padding: 2px 5px 2px 5px;
  font-size: 16px;
  background: #2f4f3f;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

.robotBT:hover {
  background: #4f6f5f;
}
/****************************
左メニュー
****************************/
#leftmenu {
	position:sticky;
	top:140px;
	width:200px;
	padding:0 0 0 3px;
	font-size:14px;
	flex-shrink:0;
	top:20px;
}
.menu-box {
	background:#fff;
	border:1px solid #ddd;
	margin-bottom:15px;
	border-radius:4px;
	overflow:hidden;
}
.menu-title {
	background:#f5f5f5;
	padding:8px 10px;
	font-weight:bold;
	font-size:14px;
}
.menu-content {
	padding:10px;
}

.menu-list,
.category-list {
	list-style:none;
	padding:0;
	margin:0;
}
.menu-list a{
	display:flex;
	justify-content:space-between;
	padding:8px 10px;
	text-decoration:none;
	color:#333;
	transition:0.15s;
	font-size:14px;
}
.menu-list a:hover,
.category-list a:hover {
	background:#f0f0f0;
	color:#8b2e2e;
}
.category-list span {
	font-size:12px;
	color:#777;
}
/* 共通 */
.category-list {
	list-style:none;
	padding:0;
	margin:0;
}
.category-list li {
	margin:2px 0;
}

/* 親カテゴリ */
.largecategory > a {
	display:block;
	padding:8px 10px;
	font-weight:bold;
	font-size:14px;
	color:#333;
	text-decoration:none;
	border-radius:4px;
	transition:0.2s;
}
/* 2階層 */
.smallcategory2 > a {
	display:block;
	padding:6px 10px 6px 22px;
	font-size:13px;
	color:#444;
	text-decoration:none;
	position:relative;
	transition:0.2s;
}
/* 3階層 */
.smallcategory3 > a {
	display:block;
	padding:6px 10px 6px 36px;
	font-size:13px;
	color:#555;
	text-decoration:none;
	position:relative;
	transition:0.2s;
}
/* 4階層 */
.smallcategory4 > a {
	display:block;
	padding:6px 10px 6px 50px;
	font-size:13px;
	color:#666;
	text-decoration:none;
	position:relative;
	transition:0.2s;
}
/* 5階層以上ある場合は、上記の1～4階層と同じように記述（数字を増やす） */

/* カテゴリの件数 */
.category-list span {
	color:#999;
	font-size:12px;
	margin-left:4px;
}
/* ホバー */
.category-list a:hover {
	background:#f5f5f5;
	color:#8b2e2e;
}
/* 現在地 */
.category-list a.active {
	background:#8b2e2e;
	color:#fff;
	font-weight:bold;
}
.category-list a.active span {
	color:#fff;
}
/* Mypage */
.btn-small {
	padding:6px 12px;
	margin-top:8px;
	background:#8b2e2e;
	color:#fff;
	border:none;
	border-radius:4px;
	cursor:pointer;
}
.btn-small:hover {
	background:#6e2424;
}
.link-small {
	display:block;
	margin-top:8px;
	font-size:13px;
	text-decoration:none;
	color:#666;
}
.category-list span {
	color:#999;
	font-size:12px;
}
/****************************
メインコンテンツ
****************************/
#maincontents{
	display:block;
	width:100%;
	max-width: 1200px;
	background:#fff;
	padding:10px 20px 10px 20px;
	margin: 0 0 10px 0;
	border-radius:6px;
	flex:1;
	min-width:0;
}
/* 画像が原因で広がらないように */
img{
	max-width:100%;
	height:auto;
}
@media (max-width: 768px){
	#contents{
		padding-top:75px;
		display:block;
	}
	#leftmenu{
		display:none;
	}
	#maincontents{
		width:100%;
		padding:10px;
		box-sizing:border-box;
	}
	/* 親をflexに */
	#headerlist > ul{
		display:flex;
		align-items:center;
	}
	.site-logo{
		font-size:18px;
		text-align:center;
		width:100%;
	}
	/* 検索フォームを左に */
	#headersearch{
		flex:1;
		order:1;
		margin-right:auto;
	}
	#headersearch input{
		width:100%;
	}
	#menuToggle{
		width:44px;
		text-align:center;
	}
	/* ハンバーガーを右に */
	#menuToggle{
		order:2;
		margin-left:10px;
		margin-right:10px;
	}
}
@media (max-width: 480px){
	#contents{
		padding-top:85px;
		display:block;
	}
}

/****************************
右メニュ－
****************************/
#rightmenu {
	display:none;
}
/****************************
フッター
****************************/
.footer {
	background:#f5f5f5;
	padding:20px 20px;
	font-size:15px;
	line-height:1.6;
	color:#222;
	border-top:2px solid #2f4f3f;
}
.footer-inner {
	max-width:1000px;
	margin:0 auto;
	display:flex;
	justify-content:space-between;
	flex-wrap:wrap;
	gap:30px;
}
/* 左右カラム */
.footer-info {
	flex:1;
	min-width:280px;
}

.footer-links {
	flex:1;
	min-width:220px;
}
/* リンク装飾 */
.footer-links ul {
	list-style:none;
	padding:0;
	margin:0;
}
.footer-links li {
	margin:6px 0;
}
.footer a {
	text-decoration:none;
	color:#333;
	transition:0.2s;
}
.footer a:hover {
	color:#8b2e2e;
}
/* バー装飾 */
.footer-links a::before {
	content:"";
	display:inline-block;
	width:3px;
	height:12px;
	background:#ccc;
	margin-right:8px;
	transition:0.2s;
}
.footer-links a:hover::before {
	background:#8b2e2e;
}
.copyright {
	width:100%;
	text-align:center;
	margin-top:40px;
	font-size:13px;
	color:#666;
}
#copyright {
	width:100%;
	text-align:center;
	margin-top:20px;
	font-size:13px;
	color:#666;
}
#copyright br{
	display: none;
}
#copyright a{
	text-decoration:none;
	color:#666;
}
.footer p {
	margin:4px 0;
}
.tel a {
	font-size:20px;
	font-weight:bold;
	color:#b13a3a;
	text-decoration:none;
}
.hours {
	font-size:14px;
	color:#555;
}

@media (max-width:768px) {
	.footer-inner {
		flex-direction:column;
	}
}
/* ============================
関連商品
============================= */
.related-area {
	width:100%;
	text-align:center;
	background:#fff;
}
.detail_relatedarea {
	width:100%;
	max-width:1200px;
	text-align:center;
	background:#fff;
}
.related-products {
	display:inline-block;
	margin-top: 10px;
}
/* タイトル */
.related-title {
	text-align:left;
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 25px;
	padding-left: 15px;
	border-left: 4px solid #b13a3a;
}
/* 共通：横スクロール＋スナップ */
.related-list {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.related-item {
	flex: 0 0 240px;	 /* ← PCは固定幅 */
	scroll-snap-align: start;
}
/* 画像 */
.related-item img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 0;
}
/* カードデザイン */
.related-item a {
	display: block;
	background: #fff;
	padding: 10px;
	border-radius: 16px;
	text-decoration: none;
	color: #333;
	box-shadow: 0 8px 25px rgba(0,0,0,0.05);
	transition: 0.2s;
	text-align: center;
}
.related-item a:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}
.related-name {
	font-size: 14px;
	font-weight: 600;
	min-height: 30px;
}
.related-price {
	font-size: 16px;
	font-weight: bold;
	color: #b13a3a;
	margin-top: 10px;
}
.related-link {
	display: block;
	text-decoration: none;
	background: #fff;
	padding: 20px;
	border-radius: 16px;
	box-shadow: 0 8px 25px rgba(0,0,0,0.05);
	transition: 0.2s;
	text-align: center;
	color: #333;
}
.related-link:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}
/* 画像 */
.related-link img {
	width: 100%;
	max-width: 160px;
	border-radius: 0px;
	margin-bottom: 15px;
}
/* 価格 */
.related-price {
	font-size: 16px;
	font-weight: bold;
	color: #b13a3a;
	margin-top: 5px;
}
@media (max-width: 768px) {
	.related-list {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}
	.related-item {
		flex: 0 0 50%;	 /* ← スマホだけ割合 */
	}
	.related-item img {
		height: 140px;	 /* 少し小さめ */
	}
}

/* ==============================
table maincontents
================================*/
table{
	width:100% !important;
	border-collapse:separate;
	border-spacing:0;
	background:#fff !important;
	border-radius:16px;
	overflow:hidden;
	box-shadow:0 10px 30px rgba(0,0,0,0.05);
	margin-bottom:40px;
}
/* 外側グレー背景を消す */
table[bgcolor]{
	background:transparent !important;
}
/* セクションタイトル専用テーブル（bgcolor付きだけ対象） */
table[bgcolor] tr:first-child td{
	font-weight:600;
	font-size:16px;
	padding:18px 20px 18px 26px;
	border-bottom:1px solid #eee;
	position:relative;
	text-align:left;
}
/* 縦バー */
table[bgcolor] tr:first-child td::before{
	content:"";
	position:absolute;
	left:14px;
	top:20px;
	width:4px;
	height:18px;
	background:#b13a3a;
	border-radius:2px;
}
/* 発送業者名セルだけ装飾 */
td.INPOSTTDM{
	width:20%;
	font-weight:600;
	background:#fafafa;
	border-top:2px solid #eee;
	padding:18px 20px;
	vertical-align:top;
}
td.INPOSTTDM + td{
	padding:18px 25px;
}
table td{
	background:#fff !important;
	padding:14px 20px;
	border:none !important;
	font-size:14px;
	vertical-align:top;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea{
	padding:10px 12px;
	border:1px solid #ddd;
	border-radius:8px;
	font-size:14px;
	box-sizing:border-box;
}
input[type="radio"]{
	margin-right:6px;
}

input[type="radio"] + *{
	display:inline-block;
	margin-bottom:8px;
}
.postnosearch .small_bt{
	padding:10px 12px;
	border:1px solid #ddd;
	border-radius:8px;
	font-size:14px;
	box-sizing:border-box;
}
input:focus,
select:focus,
textarea:focus{
	border-color:#b13a3a;
	outline:none;
	box-shadow:0 0 0 3px rgba(177,58,58,0.1);
}
@media (max-width:768px){
	table{
		border-radius:12px;
	}
	table td{
		padding:12px 15px;
		font-size:13px;
	}
}



/* =============================
Top Page
===============================*/
/* ヒーロー */
.hero {
	display: flex;
	gap: 30px;
	align-items: center;
	background: #ffffff;
	padding: 0 20px 20px 20px;
	border-radius: 6px;
	border: 1px solid #e1e5ea;
	margin-bottom: 30px;
}

.hero-image img {
	width: 390px;
	border-radius: 4px;
}

.hero-content h2 {
	font-size: 28px;
	color: #0f2d4a;
	margin-bottom: 20px;
	letter-spacing: 1px;
}

.lead {
	font-size: 16px;
	color: #444;
	margin-bottom: 25px;
	line-height: 1.8;
	text-align:left;
}

.feature-list {
	list-style: none;
	padding: 0;
}

.feature-list li {
	border-left: 3px solid #2f6fab;
	padding-left: 12px;
}
.feature-list li::before {
	content: none;
}

/* レスポンシブ */
@media (max-width: 768px) {
	.hero {
		display: inline-block;
		flex-direction: column;
		margin:5px 0 20px 0;
		text-align: center;
	}
	.feature-list {
		text-align:left;
		list-style: none;
		padding: 0;
	}
}

.section-title {
	font-size: 20px;
	font-weight: bold;
	color: #0f2d4a;
	border-left: 4px solid #1f4e79;
	padding-left: 12px;
	margin-bottom: 30px;
}

.topics-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin-bottom: 60px;
}

.topic-card {
	background: #ffffff;
	padding: 30px;
	border: 1px solid #e1e5ea;
	border-radius: 6px;
	transition: 0.3s;
}

.topic-card:hover {
	border-color: #1f4e79;
}

.topic-card h3 {
	margin-bottom: 15px;
	color: #0f2d4a;
}

.btn-outline {
	display: inline-block;
	margin-top: 15px;
	padding: 8px 18px;
	border: 1px solid #1f4e79;
	color: #1f4e79;
	text-decoration: none;
	border-radius: 4px;
}

.btn-outline:hover {
	background: #1f4e79;
	color: #fff;
}
/****************************
商品アイコン
****************************/
.badge-area{
	position:absolute;
	top:40px;
	left:8px;
	display:flex;
	flex-wrap:wrap;
	gap:4px;
}
.badge{
	display:inline-block;
	font-size:10px;
	font-weight:bold;
	color:#fff;
	padding:3px 6px;
	border-radius:4px;
	letter-spacing:0.05em;
	white-space:nowrap;
}
.badge.new{
	position:absolute;
	top:12px;
	left:-35px;
	transform:rotate(-45deg);
	background:#ff0033;
	color:#fff;
	font-size:11px;
	font-weight:bold;
	padding:4px 40px;
	text-align:center;
	box-shadow:0 2px 6px rgba(0,0,0,0.25);
}
.badge.picup{
	background:#ff9800;
}

.badge.recommended{
	background:#2196f3;
}

.badge.gooddeal{
	background:#00c098;

}

/****************************
お知らせ
****************************/
#cm_area{
	position:fixed;
	right:20px;
	bottom:80px;
	width:260px;
	background:#fff;
	border-radius:8px;
	box-shadow:0 6px 16px rgba(0,0,0,0.2);
	font-size:13px;
	z-index:999;
	overflow:hidden;
}

/* タイトル */
#cm_title{
	background:#e53935;
	color:#fff;
	padding:8px 10px;
	font-weight:bold;
	display:flex;
	justify-content:space-between;
	align-items:center;
}

/* 消すボタン */
#cmnone{
	background:rgba(255,255,255,0.25);
	border:none;
	color:#fff;
	padding:2px 8px;
	border-radius:4px;
	font-size:11px;
	cursor:pointer;
}

#cmnone:hover{
	background:rgba(255,255,255,0.45);
}

/* 本文 */
#cm_comment{
	padding:10px;
	line-height:1.6;
}

#cm_comment ul{
	list-style:none;
	margin:0;
	padding:0;
}

#cm_comment li{
	border-bottom:1px dashed #eee;
	padding:4px 0;
}

#cm_comment li:first-child{
	font-size:11px;
	color:#777;
	border-bottom:1px solid #eee;
	margin-bottom:4px;
}
@media (max-width:768px){

#cm_area{
	right:10px;
	bottom:60px;
	width:200px;
	font-size:12px;
}

#cm_title{
	padding:6px 8px;
	font-size:12px;
}

#cm_comment{
	padding:8px;
	line-height:1.5;
	max-height:120px;
	overflow:auto;
}

#cm_comment li{
	padding:3px 0;
}

#cmnone{
	font-size:10px;
	padding:1px 6px;
}

}

/**************************
商品一覧
**************************/
.product-list{
	display:grid;
	grid-template-columns:repeat(auto-fill,minmax(250px,250px));
	justify-content:center; /* ← 中央寄せ */
	gap:22px;
}
@media (max-width:900px){
.product-list{
	grid-template-columns:repeat(2,250px);
	justify-content:center;
}
}
@media (max-width:600px){
.product-list{
	grid-template-columns:repeat(1,250px);
	justify-content:center;
}
}
.product-card{
	display:flex;
	flex-direction:column;
	background:#fff;
	border-radius:8px;
	padding:12px;
	box-shadow:0 2px 6px rgba(0,0,0,0.08);
}
.product-cardtest{
	border:1px solid #e3e3e3;
	border-radius:8px;
	background:#fff;
	padding:14px;
	display:flex;
	flex-direction:column;
	height:100%;
	box-shadow:0 2px 6px rgba(0,0,0,0.08);
}
.product-card:hover{
	box-shadow:0 8px 18px rgba(0,0,0,0.18);
	transform:translateY(-4px);
}
.main-image{
	position:relative;
	aspect-ratio:1 / 1;   /* 正方形 */
	overflow:hidden;
	margin-bottom:12px;
	background:#f8f8f8;
	border:1px solid #eee;
	border-radius:6px;
	background:#fff;
	display:flex;
	align-items:center;
	justify-content:center;
}
.list_image{
	max-width:100%;
	max-height:100%;
	object-fit:contain;
	object-position:center;
	display:block;
	border-radius:6px;
	background:#fff;
}

/* ホバーでズーム */
.product-card:hover .list_image{
	transform:scale(1.08);
}
.list_image{
	width:100%;
	border-radius:6px;
	display:block;
	object-fit:cover;
	height:100%;
}
.product-listtitle{
	font-size:24px;
	line-height:1.4;
	display:-webkit-box;
	-webkit-line-clamp:2;     /* ← 2行まで表示 */
	-webkit-box-orient:vertical;
	overflow:hidden;
	word-break:break-word;
}
.product-price{
	margin-bottom:16px;
}
.product-price .member{
	display:block;
	font-size:18px;
	font-weight:bold;
	color:#e60023;
}
.product-price .normal{
	display:block;
	font-size:16px;
	color:#777;
}
.cart-area{
	margin-top:auto;
	display:flex;
	align-items:center;
	gap:8px;
	padding:3px;
	min-height:70px;
	color:#fff;
	background:#2f4f2f;
}
.cart-area form{
	display:flex;
	align-items:center;
	gap:8px;
	flex-wrap:wrap;
}
.cargo_selectarea,
.cargo_countarea{
	white-space:nowrap;
}
.cargo_selectarea{
	display:flex;
	align-items:center;
	gap:4px;
	white-space:nowrap;
}
.cargoSELECT{
	width:90px;
	max-width:100%;
}
.cargoCOUNT{
	width:60px;
}
.product-card{
	min-width:0;
}
.cargo_submitarea{
	width:100%;
	text-align:center;
	margin-top:6px;
}
.cargoBT{
	display:inline-block;
	background:#e53935;
	color:#fff;
	border:none;
	padding:10px 16px;
	border-radius:6px;
	font-size:14px;
	font-weight:bold;
	cursor:pointer;
	transition:0.2s;
}
.cargoBT:hover{
	background:#c62828;
}
.reservedBT {
	display:inline-block;
	background:#3030e5;
	color:#fff;
	border:none;
	padding:10px 16px;
	border-radius:6px;
	font-size:14px;
	font-weight:bold;
	cursor:pointer;
	transition:0.2s;
}
.reservedBT:hover{
	background:#2828c6;
}
.soldoutword {
	width:100%;
	display:inline-block;
	text-align:center;
	font-weight:bold;
}

.coupon-area{
	margin-top:10px;
	padding:8px;
	background:#fff8e1;
	border:1px dashed #f0c36d;
	border-radius:6px;
	text-align:center;
	font-size:12px;
}
.couponBT{
	display:inline-block;
	background:#ff9800;
	color:#fff;
	border:none;
	padding:8px 14px;
	border-radius:20px;
	font-size:13px;
	font-weight:bold;
	cursor:pointer;
	transition:0.2s;
	background:linear-gradient(135deg,#ffb74d,#ff9800);
}
.couponBT:hover{
	background:#f57c00;
	transform:translateY(-1px);
}
.coupon-area{
	line-height:1.5;
}
.coupon-area form{
	margin-bottom:4px;
}
.coupon-area:empty{
	display:none;
}
/**************************
サムネイル
**************************/
.product-imginfo{
	text-align:right;
}
.product-imgprice{
	font-weight:bold;
}
/**************************
商品詳細画面
**************************/
/* Page */
.detailpagearea{
 margin:20px 0;
}

.detailpagearea ul{
 display:flex;
 flex-wrap:wrap;
 gap:8px;
 list-style:none;
 padding:0;
 margin:0;
 border-bottom:2px solid #ddd;
}

.detailpagearea li{
 margin:0;
}

.detailpagearea a{
 display:block;
 padding:10px 16px;
 text-decoration:none;
 background:#f5f5f5;
 color:#333;
 border-radius:6px 6px 0 0;
 font-size:14px;
}

.detailpagearea a:hover{
 background:#e9e9e9;
}

.thispageBT{
 background:#fff;
 border:2px solid #ddd;
 border-bottom:none;
 font-weight:bold;
}
.product-page{
 max-width:1100px;
 margin:auto;
}

.product-main{
 display:flex;
 gap:40px;
 flex-wrap:wrap;
}

.product-gallery{
 position:relative;
 flex:1;
 min-width:300px;
}

.product-info{
 flex:1;
 min-width:300px;
}

.product-description,
.product-spec{
 margin-top:40px;
 padding:20px;
 border:1px solid #eee;
 border-radius:8px;
 background:#fafafa;
}
.product-description p{
	text-align:left;
}

/*　img　*/
.gallery-main{
 width:450px;
	position:relative;
	overflow:hidden;
}

.gallery-main img{
 width:100%;
 max-width:450px;
 border-radius:8px;
 border:1px solid #ddd;
}
.gallery-thumbs{
 display:grid;
 grid-template-columns:repeat(auto-fill,minmax(90px,1fr));
 gap:12px;
 margin-top:15px;
}

.detail_image{
	display:block;
 width:450px;
 height:450px;
 object-fit:contain;
}

.thumb{
 width:80px;
 height:80px;
 object-fit:cover;
 cursor:pointer;
 border:1px solid #ddd;
 border-radius:4px;
}

.thumb:hover{
 border:1px solid #333;
}

.product-badge-area{
 margin:0;
}
.product-badge-area span{
margin:2px;
}

.product-badge-area.badge{
 display:inline-block;
 padding:4px 10px;
 margin-right:6px;
 font-size:12px;
 border-radius:20px;
 color:#fff;
}

.gallery-main.badge.new{
 position:absolute;
 top:10px;
 left:-40px;

 background:#e60023;
 color:#fff;
 font-size:12px;
 font-weight:bold;

 padding:6px 50px;
 transform:rotate(-45deg);

 text-align:center;
 box-shadow:0 2px 6px rgba(0,0,0,0.2);
}

.image_area{
 text-align:center;
}

.goods_image img{
 width:100%;
 border-radius:6px;
 border:1px solid #ddd;
 transition:0.2s;
}

.goods_image img:hover{
 transform:scale(1.05);
 border-color:#999;
}

.goods_imagecom{
 font-size:12px;
 color:#666;
 margin-top:4px;
}

@media (max-width:768px){

.product-main{
 flex-direction:column;
}

.detailpagearea ul{
 overflow-x:auto;
}

.gallery-thumbs{
 grid-template-columns:repeat(4,1fr);
}

}

/* === 右：情報 === */
.product-info{
	flex:1;
	min-width:0;
}
.product-title{
	font-size:26px;
	font-weight:500;
	margin-bottom:10px;
	color:#2f4f2f;
 display:inline-block;
 margin-right:10px;
}
/**********************
会員登録画面
**********************/
/* 全体カード化 */
.input_area {
  max-width: 720px;
  margin: 30px auto;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* タイトル */
.subtitle {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  border-left: 5px solid #b13a3a;
  padding-left: 10px;
}
.cargo_subtitle{
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  border-left: 5px solid #b13a3a;
  padding-left: 10px;
}
.form-section {
  font-size: 16px;
  font-weight: bold;
  margin: 25px 0 10px;
  color: #2a7fff;
}

/* 1行 */
.cargo_inputline {
	width:100%;
  display: block;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;

}

/* ラベル */
.input_title {
  display: inline-block;
  font-weight: bold;
  margin-bottom: 6px;
  box-sizing: border-box;
	width:30%;
}

.input_form .cargo_inputline .input_title {
    width: auto;
    white-space: nowrap;
}


/* 必須 */
.required {
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 3px;
}
/* 入力欄 */
.input_form {
  display: inline-block;
  font-size: 14px;
  color: #666;
  box-sizing: border-box;
}

.input_form input,
.input_form select,
.input_form textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

/* フォーカス */
.input_form input:focus,
.input_form select:focus,
.input_form textarea:focus {
  border-color: #2a7fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(42,127,255,0.1);
}

/* ラジオ・チェック */
.input_form input[type="radio"],
.input_form input[type="checkbox"] {
  width: auto;
  margin-right: 5px;
}
/* 生年月日を横並び */
.input_form input[name="ubirthyy"],
.input_form select[name="ubirthmm"],
.input_form select[name="ubirthdd"] {
  display: inline-block;
  width: auto;
}

/* サイズ調整 */
input[name="ubirthyy"] {
  width: 80px;
}

.input_form input[name="ubirthyy"],
.input_form select[name="ubirthmm"],
.input_form select[name="ubirthdd"],
.input_form input[name="pbirthyy"],
.input_form select[name="pbirthmm"],
.input_form select[name="pbirthdd"],
.input_form input[name="upost1"],
.input_form input[name="upost2"],
.input_form input[name="ppost1"],
.input_form input[name="ppost2"] {
  margin-right: 6px;
}


select[name="ubirthmm"],
select[name="ubirthdd"] {
  width: 80px;
}

input[name="upost1"],
input[name="ppost1"] {
  width: 60px;
}

input[name="upost2"],
input[name="ppost2"] {
  width: 80px;
}

/* 横並び */
.input_form input[name="upost1"],
.input_form input[name="upost2"],
.postnoBT {
  display: inline-block;
  vertical-align: middle;
}

.input_form input[name="upost1"],
.input_form input[name="upost2"] {
  text-align: center;
}

/* 送信ボタン */
.submitBT {
	width: 100%;
	padding: 15px;
	font-size: 16px;
	background:#e53935;
	color: #fff;
	text-decoration:none;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: 0.2s;
}
.submitBT:hover {
	background:#c62828;
}

/* スマホ */
@media (max-width: 768px) {
  .input_area {
    padding: 20px;
  }
}
/*　エラー対応　*/
/* エラー行 */
.cargo_inputline:has(.errcomment) {
  background: #fff5f5;
  border: 1px solid #ffccc7;
  padding: 12px;
  border-radius: 6px;
}

/* 入力欄 */
.cargo_inputline:has(.errcomment) input {
  border-color: #ff4d4f;
}

/* タイトルも赤 */
.cargo_inputline:has(.errcomment) .input_title {
  color: #d9363e;
}

.errcomment::before {
	content: "\26A0 ";
  color: #ff4d4f;
}
/* エラー時に少し揺れる */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.cargo_inputline:has(.errcomment) {
  animation: shake 0.2s;
}

/***********************
LOGIN画面
***********************/
/* ログインボックス少し狭く */
.login-box {
  max-width: 400px;
}

/* 入力グループ */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

/* ボタン余白 */
.login-actions {
  margin-top: 20px;
}

/* 下のリンクエリア */
.login-links {
  margin-top: 30px;
  text-align: center;
}

/* 区切り線 */
.divider {
  margin: 20px 0;
  border-top: 1px solid #eee;
}

/* サブボタン（登録） */
.subBT {
  width: 100%;
  padding: 12px;
  background: #f5f5f5;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.subBT:hover {
  background: #e8e8e8;
}
.password-wrap {
  position: relative;
}

.password-wrap input {
  width: 100%;
  padding-right: 40px; /* アイコン分の余白 */
  box-sizing: border-box;
}

.toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}
.toggle-pass:hover {
  opacity: 0.7;
}
.text-link {
  background: none;
  border: none;
  color: #666;          /* 青やめる */
  cursor: pointer;
  text-decoration: none; /* 下線消す */
  padding: 0;
  font-size: 12px;
  display: block;
  text-align: right;
}

/* ホバー時だけ変化 */
.text-link:hover {
  color: #2a7fff;
  text-decoration: underline;
}

.input_area .errmsg:empty{
	display:none;
}
.input_area .errmsg{
	font-size:16px;
	font-weight:bold;
	color:#ee3300;
}
/* 在庫アピール */
.stock-badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-weight: bold;
}
.stock-badge.critical,
.stock-badge.danger {
  background: #ffe5e5;
  color: #d60000;
  border: 1px solid #ffb3b3;
}
.stock-badge.warning {
  background: #fff4e5;
  color: #cc7a00;
  border: 1px solid #ffd699;
}
.stock-badge.few-stock {
  background: #fffbe5;
  color: #999000;
  border: 1px solid #fff0a0;
}
.stock-badge.out-stock {
  background: #f2f2f2;
  color: #666;
  border: 1px solid #ddd;
}
.stock-badge.reserve-order {
  background: #e5f0ff;
  color: #0066cc;
  border: 1px solid #b3d1ff;
}
.stock-badge {
  display: block;
}

.critical {
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0.6; }
}
.stock-badge::before {
	content: "\26A0 ";
}

/* 購入画面 シンプルヘッダー・フッター調整 */
.simple-header {
    max-width:1200px;
    margin:0 auto;
    padding:15px 20px;
    box-sizing:border-box;
}

.simple-header .shop-name {
    font-size:18px;
    font-weight:normal;
}

.simple-header + #contents {
    padding-top:20px;
    max-width:1050px;
}

.simple-footer {
    max-width:1050px;
    margin:20px auto 0;
    padding:15px 20px;
    box-sizing:border-box;
}

.simple-footer .footer-name {
    font-size:14px;
}

/* 注文確認画面：発送方法の間隔調整 */
.confirm-post {
    margin-bottom: 0;
    padding-bottom: 8px;
}

.confirm-ritou {
    margin-top: 0;
}

.confirm-ritou > .input_title {
    width: 160px;
}

.confirm-ritou > .input_form {
    width: auto;
}

.input_title {
    vertical-align: top;
}

/* 配達希望日の年月日 */
select[name="deliveryyy"],
select[name="deliverymm"],
select[name="deliverydd"] {
    width: auto;
}

