
html, body {
	height: 100%;
	margin: 0;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

main {
	flex: 1;
}

.wrapper {
	/* width: 1320px; */
	max-width: 1320px;
	margin: 0 auto;
}

/* .wrapper-header {
	width: 1320px;
	min-width:1320px !important;
} */

/* Back to Top */
#myBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    outline: none; /* Remove outline */
    cursor: pointer; /* Add a mouse pointer on hover */
    font-size: 18px; /* Increase font size */
}

.card-item-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
}

body { font-family: Arial, sans-serif; margin: 0; color: #333; background:#fafafa; }
header { background: #111; color: #fff; padding: 10px 20px; }

.header-inner {
	/* max-width: 1200px; */
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-title { font-size: 20px; margin: 0; }

.logo-title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo-title img {
	height: 30px;
}

.header-links a {
	color: #fff;
	margin-left: 15px;
	text-decoration: none;
	font-size: 13px;
}
.login-btn {
	background: #333;
	color: #fff;
	border: none;
	padding: 6px 12px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 13px;
}

.login-btn::before {
	color: #fff;
}

.user-menu {
	position: relative;
	display: inline-block;
	margin-left: 15px;
}

.dropdown {
	display: none;
	position: absolute;
	z-index: 10000;
	right: 0;
	top: 35px;
	background: #fff;
	color: #333;
	padding: 10px;
	border-radius: 6px;
	min-width: 180px;
	box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.user-menu.active .dropdown {
	display: block;
}

/* タブレット以下 */
@media (max-width: 900px){

	.wrapper {
		width: auto;
	}

	.header-inner{
		position:relative;
	}

	.menu-toggle{
		display:block;
	}

	.header-links{
		position:absolute;
		top:58px;
		right:0;
		width:260px;

		background:#111;
		border-radius:10px;
		padding:0;

		display:flex;
		flex-direction:column;
		align-items:stretch;
		gap:0;

		overflow:hidden;

		max-height:0;
		opacity:0;
		pointer-events:none;

		transition:.3s;
		z-index:10;
	}

	.header-links.active{
	max-height:600px;
	opacity:1;
	pointer-events:auto;
	padding:10px 0;
	}

	.header-links a{
	margin:0;
	padding:14px 18px;
	border-bottom:1px solid rgba(255,255,255,.08);
	}

	.header-links .user-menu{
	margin:0;
	padding:10px 18px;
	}

	.dropdown{
	position:static;
	margin-top:10px;
	box-shadow:none;
	}
}

nav {
	background: #222;
	padding: 10px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

nav a {
	display: inline-block;
	padding: 8px 14px;
	background: #333;
	color: #fff;
	text-decoration: none;
	border-radius: 20px;
	font-size: 13px;
	transition: 0.2s;
}

nav a:hover {
	background: #c00;
}

nav a.active {
	background: #c00;
	font-weight: bold;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.search-area { background: #eee; padding: 6px 0; }
.container { max-width: 1200px; margin: auto; padding: 20px; }

.search-box { background: #fff; padding: 20px; border-radius: 8px; }

.search-top {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
}

.search-input {
	flex: 1;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 14px;
}

.toggle-btn {
	padding: 10px 15px;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

.toggle-btn:hover { background: #c00; }

.search-btn {
	padding: 10px 15px;
	background: #c00;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

.search-btn:hover {
	opacity: 0.9;
}

.search-detail {
	display: none;
	margin-top: 15px;
}

.search-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

@media (max-width: 900px) {
	.search-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.search-grid { grid-template-columns: 1fr; }
}

.search-item {
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

.search-item p {
	font-weight: bold;
	font-size: 14px;
	margin-bottom: 8px;
}

.check-group { display: flex; flex-wrap: wrap; gap: 10px; }
.check-group label { background: #f5f5f5; padding: 6px 10px; border-radius: 5px; font-size: 13px; }

.result-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 10px 0 20px;
	font-size: 14px;
}

.pager {
	display: flex;
	gap: 5px;
}

.pager a {
	padding: 5px 10px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	font-size: 13px;
}

.pager a.active {
	background: #c00;
	color: #fff;
	border-color: #c00;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	display: flex;
	flex-direction: column;
}

.card-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #fff;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	box-sizing: border-box;
}

.card-img a {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.card-img img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
}

.card-body {
	padding: 15px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.catch {
	font-size: 15px;
	font-weight: bold;
	color: #c00;
	line-height: 1.5;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.price {
	font-weight: bold;
	color: #c00;
	margin: 8px 0;
	font-size: 16px;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.tag {
	font-size: 13px;
	background: #eee;
	padding: 5px 10px;
	border-radius: 4px;
}

.contact-info{
	margin-top: auto;
	margin-bottom: 12px;
	padding: 10px 12px;
	background: #f7f7f7;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.6;
}

.contact-row{
	display: flex;
	gap: 6px;
}

.contact-label{
	min-width: 42px;
	font-weight: bold;
	color: #666;
	flex-shrink: 0;
}

.contact-value{
	color: #333;
	word-break: break-all;
}

.btn-group {
	display: flex;
	gap: 10px;
}
.btn {
	flex: 1;
	padding: 10px;
	text-align: center;
	background: #111;
	color: #fff;
	text-decoration: none;
	border-radius: 5px;
}
.btn-secondary { background: #c00; }

footer { background: #111; color: #fff; text-align: center; padding: 20px; }

.page-top{
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: #111;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: 0.25s;
	z-index: 9999;
}

.page-top.show{
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.page-top:hover{
	background: #c00;
}


/* 動画モーダル */
.video-modal{
	position:fixed;
	inset:0;
	z-index:20000;

	display:flex;
	align-items:center;
	justify-content:center;

	opacity:0;
	pointer-events:none;
	transition:.25s;
}

.video-modal.active{
	opacity:1;
	pointer-events:auto;
}

.video-overlay{
	position:absolute;
	inset:0;
	background:rgba(0,0,0,.75);
}

.video-content{
	position:relative;
	/* width:min(900px, 92%); */
	z-index:2;
	min-width: 900px;
}

.video-frame{
	position:relative;
	width:100%;
	/* padding-top:56.25%; */
	background:#000;
	border-radius:12px;
	overflow:hidden;
	box-shadow:0 10px 40px rgba(0,0,0,.4);
	text-align: center;
	max-width: 1200px;
	/* margin: 0 auto; */
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* border-radius: 12px; */
    display: block;
}

.video-frame iframe{
	position:absolute;
	inset:0;
	width:100%;
	height:100%;
}

.video-close{
	position:absolute;
	top:-46px;
	right:0;

	width:38px;
	height:38px;

	border:none;
	border-radius:50%;

	background:#fff;
	color:#111;

	font-size:22px;
	cursor:pointer;
}
.video-title{
	color:#fff;
	font-size:20px;
	font-weight:bold;
	margin-bottom:12px;
	line-height:1.4;
	padding-right:50px;
}

/* =========================
商品画像スライダー
========================= */

.slider{
position:relative;
overflow:hidden;
width:100%;
height:100%;
}

.slides{
position:relative;
width:100%;
height:100%;
}

/* スライド */

.slide{
position:absolute;
top:50%;
left:50%;

max-width:100%;
max-height:100%;

width:auto;
height:auto;

object-fit:contain;

opacity:0;
visibility:hidden;

transition:
opacity .45s ease,
transform .45s ease;

transform:
translate(-50%, -50%)
scale(1.02);

will-change:opacity, transform;

backface-visibility:hidden;
}

/* 表示中 */

.slide.active{
opacity:1;
visibility:visible;

transform:
translate(-50%, -50%)
scale(1);

z-index:2;
}

/* 矢印 */

.slide-btn{
position:absolute;
bottom:0;
transform:translateY(-50%);

display:flex;
align-items:center;
justify-content:center;

width:40px;
height:40px;

border:none;
border-radius:50%;

background:rgba(0,0,0,.20);
color:#fff;

font-size:24px;
line-height:1;

cursor:pointer;

z-index:10;

transition:
background .25s ease,
opacity .25s ease,
transform .25s ease;
}

/* 常時表示 */

.slide-btn:hover{
background:#c00;
transform:translateY(-50%) scale(1.08);
}

.prev{
left:10px;
}

.next{
right:10px;
}

/* ドット */

.dots{
position:absolute;
left:50%;
bottom:10px;

transform:translateX(-50%);

display:flex;
gap:6px;

z-index:10;
}

.dot{
width:8px;
height:8px;
border-radius:50%;

background:rgba(255,255,255,.45);

transition:.25s;
}

.dot.active{
background:#fff;
transform:scale(1.2);
}

.mid-links { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:6px; border-bottom:1px solid #ddd; padding-bottom:6px; }
.mid-item {
cursor:pointer;
padding:6px 12px;
background:#e0e0e0;
border-radius:14px;
font-size:13px;
transition:0.2s;
}

.mid-item:hover {
background:#ffcccc;
}

.mid-item.active {
background:#ff4d4d;
color:#fff;
}

.sub-links a {
padding:5px 12px;
background:#f2f2f2;
border-radius:14px;
text-decoration:none;
color:#333;
font-size:12px;
transition:0.2s;
}

.sub-links a:hover {
background:#ffd6d6;
}

.sub-links a.active {
background:#ff4d4d;
color:#fff;
}

.hero{
position:relative;
background:url("/common/imgs/image_0.jpg") center/cover no-repeat;
color:#fff;
padding:24px 20px;
}

.hero::before{
content:"";
position:absolute;
inset:0;
background:rgba(0, 40, 120, 0.65);
}

.hero-inner{
position:relative;
display:flex;
gap:20px;
align-items:center;
}

/* 👇 左：70% */
.hero-text{
flex:7;
min-width:0;
}

/* 👇 右：30% */
.hero-categories{
flex:3;
min-width:220px;
text-align:left;
}

.hero-text h2{
font-size:26px;
margin:0 0 6px 0;
line-height:1.3;
}

.hero-text p{
font-size:18px;
margin:0;
opacity:0.9;
}

/* カテゴリ */
.hero-categories .title{
font-size:13px;
margin:0 0 8px 0;
}

.chips{
display:flex;
flex-wrap:wrap;
gap:8px;
justify-content:flex-start;
}

.chip{
background:#fff;
color:#111;
padding:6px 10px;
border-radius:20px;
font-size:12px;
text-decoration:none;
}

.chip:hover{
background:#c00;
color:#fff;
}

h3 {
	font-size: 1.17em;
	margin-block-start: 1em;
	margin-block-end: 1em;
	margin-inline-start: 0px;
	margin-inline-end: 0px;
	font-weight: bold;
	unicode-bidi: isolate;
}

.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.card-item-name {
    min-height: 45px;
}

.no-item {
    text-align: center;
}

.market-description {
	/* margin: 0 0 18px; serachがないので、コメントする */
	color: #555;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

/* スマホ */
@media(max-width:768px){
	.hero-inner{
		flex-direction:column;
	}
	.hero-text, .hero-categories{
		flex:unset;
		width:100%;
	}
}