/**
 * Shop Detail Styles (店舗詳細)
 *
 * Page-specific styles only. Shared component styles (search, station, news)
 * are in portal-common.css.
 *
 *
 * @package Okayama
 */

/* ========================================
   Shop Header (name, tag, share)
   ======================================== */

.shop-detail-header {
	text-align: center;
	padding: 48px 20px 0;
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
}

.shop-detail-header__name {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.6;
	margin: 0;
	color: var(--portal-text);
}

.shop-detail-header__tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--portal-blue);
	color: var(--portal-white);
	border-radius: var(--portal-radius-pill);
	padding: 0 12px;
	height: 23px;
	font-size: 16px;
	line-height: 2;
	white-space: nowrap;
	margin-top: 16px;
}

.shop-detail-header__share {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-bottom: 16px;
}

.shop-detail-header__share-label {
	font-size: 14px;
	line-height: 1.6;
	color: var(--portal-text);
	white-space: nowrap;
}

.shop-detail-header__share-icons {
	display: flex;
	gap: 8px;
}

.shop-detail-header__share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease;
}

.shop-detail-header__share-btn:hover {
	opacity: 0.7;
}

.shop-detail-header__share-btn svg {
	display: block;
}

/* ========================================
   Main Content Area
   ======================================== */

.shop-detail-content {
	padding: 60px 0 0;
}

.shop-detail-content__inner {
	max-width: 940px;
	margin: 0 auto;
}

/* Featured Image */
.shop-detail-content__image {
	overflow: hidden;
	margin-bottom: 40px;
}

.shop-detail-content__image img {
	width: 100%;
	height: auto;
	display: block;
}

/* ========================================
   Shop Body — the_content() typography
   ======================================== */

.shop-detail-body {
	margin-bottom: 40px;
}

/* Headings */
.shop-detail-body h2 {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--portal-text);
	margin: 40px 0 24px;
}

.shop-detail-body h3 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--portal-text);
	margin: 32px 0 20px;
}

.shop-detail-body h4 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--portal-text);
	margin: 24px 0 16px;
}

.shop-detail-body h5,
.shop-detail-body h6 {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--portal-text);
	margin: 24px 0 16px;
}

/* First child heading: no top margin */
.shop-detail-body > :first-child {
	margin-top: 0;
}

/* Paragraphs */
.shop-detail-body p {
	font-size: 16px;
	font-weight: 400;
	line-height: 2;
	color: var(--portal-text);
	margin: 0 0 24px;
}

.shop-detail-body p:last-child {
	margin-bottom: 0;
}

/* Bold / Strong */
.shop-detail-body strong,
.shop-detail-body b {
	font-weight: 700;
}

/* Links */
.shop-detail-body a {
	color: var(--portal-blue);
	text-decoration: underline;
	transition: opacity 0.3s ease;
}

.shop-detail-body a:hover {
	opacity: 0.7;
}

/* Images */
.shop-detail-body img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 24px 0;
	border-radius: 8px;
}

.shop-detail-body p > img {
	margin: 0;
}

.shop-detail-body p:has(> img:only-child) {
	margin: 24px 0;
}

/* Figures (WordPress block images) */
.shop-detail-body figure {
	margin: 24px 0;
	max-width: 100%;
}

.shop-detail-body figure img {
	margin: 0;
}

.shop-detail-body figcaption {
	font-size: 14px;
	line-height: 1.6;
	color: #999;
	margin-top: 8px;
}

/* Lists */
.shop-detail-body ul,
.shop-detail-body ol {
	font-size: 16px;
	line-height: 2;
	color: var(--portal-text);
	margin: 16px 0 24px;
	padding-left: 1.5em;
}

.shop-detail-body ul {
	list-style-type: disc;
}

.shop-detail-body ol {
	list-style-type: decimal;
}

.shop-detail-body li {
	margin-bottom: 4px;
}

.shop-detail-body li:last-child {
	margin-bottom: 0;
}

/* Nested lists */
.shop-detail-body ul ul,
.shop-detail-body ol ol,
.shop-detail-body ul ol,
.shop-detail-body ol ul {
	margin: 4px 0 0;
}

/* Blockquote */
.shop-detail-body blockquote {
	border-left: 4px solid var(--portal-blue);
	padding: 16px 24px;
	margin: 24px 0;
	background-color: #f5f5f5;
	border-radius: 0 8px 8px 0;
}

.shop-detail-body blockquote p {
	margin: 0;
}

/* Tables */
.shop-detail-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 16px;
	line-height: 1.6;
}

.shop-detail-body th,
.shop-detail-body td {
	border: 1px solid var(--portal-gray);
	padding: 12px 16px;
	text-align: left;
}

.shop-detail-body th {
	background-color: #f5f5f5;
	font-weight: 700;
}

/* Horizontal Rule */
.shop-detail-body hr {
	border: none;
	border-top: 1px solid var(--portal-gray);
	margin: 40px 0;
}

/* WordPress alignment classes */
.shop-detail-body .alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.shop-detail-body .alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.shop-detail-body .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* WordPress block: gallery */
.shop-detail-body .wp-block-gallery {
	margin: 24px 0;
}

/* WordPress block: embed / video */
.shop-detail-body .wp-block-embed,
.shop-detail-body .wp-block-video {
	margin: 24px 0;
}

.shop-detail-body .wp-block-embed__wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
}

.shop-detail-body .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Clear floats */
.shop-detail-body::after {
	content: '';
	display: table;
	clear: both;
}

/* ========================================
   Info Table (key-value pairs)
   ======================================== */

.shop-detail-info {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0;
}

.shop-detail-info__row {
	display: flex;
	align-items: baseline;
}

.shop-detail-info__label {
	width: 140px;
	flex-shrink: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--portal-text);
	margin: 0;
}

.shop-detail-info__value {
	flex: 1;
	font-size: 16px;
	font-weight: 400;
	line-height: 2;
	color: var(--portal-text);
	margin: 0;
	margin-left: 40px;
}

.shop-detail-info__floor-link {
	display: inline;
	margin-left: 1em;
	color: var(--portal-text);
	font-size: 16px;
	text-decoration: underline;
	transition: opacity 0.3s ease;
}

.shop-detail-info__floor-link:hover {
	opacity: 0.7;
}

.shop-detail-info__line {
	width: 100%;
	height: 1px;
	background-color: var(--portal-gray);
}

/* ========================================
   Section Heading (pickup & floor map)
   ======================================== */

.shop-detail-section {
	padding: 100px 0 0;
}

.shop-detail-section__inner {
	max-width: 940px;
	margin: 0 auto;
}

.shop-detail-section__heading {
	text-align: center;
	margin-bottom: 48px;
}

.shop-detail-section__title {
	font-size: 35px;
	font-weight: 700;
	line-height: 1.6;
	margin: 0;
	color: var(--portal-text);
}

.shop-detail-section__subtitle {
	display: block;
	font-family: 'Reddit Sans', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--portal-blue);
	margin-top: 6px;
	text-transform: uppercase;
}

/* ========================================
   Shared Component Spacing (shop detail page)
   ======================================== */

.shop-detail-news-section {
	padding-top: 100px;
	max-width: 940px;
	margin: 0 auto;
}

.shop-detail-search-section {
	padding-top: 100px;
	margin: 0 auto;
}

.shop-detail-station-section {
	padding-top: 100px;
	margin: 0 auto;
}

/* ========================================
   Pick Up Item (おすすめ商品) — Bag SVG Layout
   Reuses the same bag pattern as the portal index page.
   ======================================== */

.shop-detail-pickup {
	display: flex;
	gap: 40px;
	align-items: center;
}

/* Bag image container (same structure as portal-products__slide-image) */
.shop-detail-pickup__bag-image {
	flex-shrink: 0;
	width: 293px;
	height: 300px;
	position: relative;
	overflow: hidden;
}

.shop-detail-pickup__bag {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

.shop-detail-pickup__product-img {
	position: absolute;
	top: 21%;
	left: 1%;
	width: 96%;
	height: 79.9%;
	object-fit: cover;
	clip-path: polygon(8.3% 0%, 91.7% 0%, 100% 100%, 0% 100%);
	z-index: 1;
}

.shop-detail-pickup__bag-outline {
	position: absolute;
	top: 21%;
	left: 0.5%;
	z-index: 2;
}

/* Info column */
.shop-detail-pickup__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.shop-detail-pickup__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.shop-detail-pickup__region {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--portal-text);
}

.shop-detail-pickup__region svg {
	flex-shrink: 0;
}

.shop-detail-pickup__title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--portal-text);
	margin: 0;
}

.shop-detail-pickup__divider {
	width: 100%;
	height: 1px;
	background-color: var(--portal-gray);
}

.shop-detail-pickup__desc {
	font-size: 16px;
	font-weight: 400;
	line-height: 2;
	color: var(--portal-text);
	margin: 0;
}

.shop-detail-pickup__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 400;
	line-height: 2;
	color: var(--portal-text);
	transition: opacity 0.3s ease;
}

.shop-detail-pickup__link:hover {
	opacity: 0.7;
}

.shop-detail-pickup__link svg {
	flex-shrink: 0;
}

/* ========================================
   Floor Map (フロアマップ)
   ======================================== */

.shop-detail-floor-map {
	text-align: center;
}

.shop-detail-floor-map__img {
	max-width: 100%;
	height: auto;
}

/* ========================================
   Banner Wrapper
   ======================================== */

.shop-detail-banner-wrap {
	display: flex;
	justify-content: center;
	padding: 100px 0;
}

/* ========================================
   Responsive — Tablet (max-width: 1024px)
   ======================================== */

@media (max-width: 1024px) {

	.shop-detail-header {
		padding: 48px 40px 0;
	}

	.shop-detail-content__inner {
		padding: 0 40px;
	}

	.shop-detail-section__inner {
		padding: 0 40px;
	}

	.shop-detail-info__value {
		margin-left: 24px;
	}

	.shop-detail-search-section {
		padding-left: 40px;
		padding-right: 40px;
	}

	.shop-detail-station-section {
		padding-left: 40px;
		padding-right: 40px;
	}
}

/* ========================================
   Responsive — Mobile (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {

	/* --- Shop Header --- */
	.shop-detail-header {
		padding: 32px 5% 0;
	}

	.shop-detail-header__name {
		font-size: 28px;
	}

	.shop-detail-header__share {
		flex-direction: row;
		align-items: center;
		justify-content: flex-end;
		gap: 16px;
		margin-top: 20px;
	}

	.shop-detail-header__share-btn svg {
		width: 32px;
		height: 32px;
	}

	/* --- Main Content --- */
	.shop-detail-content {
		padding: 40px 5% 0;
	}

	.shop-detail-content__inner {
		max-width: none;
		margin: 0 auto;
		padding: 0;
	}

	.shop-detail-content__image {
		border-radius: 3px;
		margin-bottom: 24px;
	}

	/* --- Content Body --- */
	.shop-detail-body {
		margin-bottom: 40px;
	}

	.shop-detail-body h2 {
		font-size: 18px;
		margin: 32px 0 16px;
	}

	.shop-detail-body h3 {
		font-size: 16px;
		margin: 24px 0 12px;
	}

	.shop-detail-body h4 {
		font-size: 15px;
		margin: 20px 0 12px;
	}

	.shop-detail-body h5,
	.shop-detail-body h6 {
		font-size: 14px;
		margin: 20px 0 12px;
	}

	.shop-detail-body p {
		font-size: 14px;
		margin: 0 0 20px;
	}

	.shop-detail-body ul,
	.shop-detail-body ol {
		font-size: 14px;
		margin: 12px 0 20px;
	}

	.shop-detail-body table {
		font-size: 14px;
	}

	.shop-detail-body th,
	.shop-detail-body td {
		padding: 8px 12px;
	}

	.shop-detail-body blockquote {
		padding: 12px 16px;
		margin: 20px 0;
	}

	.shop-detail-body img {
		margin: 16px 0;
	}

	.shop-detail-body figure {
		margin: 16px 0;
	}

	.shop-detail-body figcaption {
		font-size: 12px;
	}

	.shop-detail-body hr {
		margin: 32px 0;
	}

	/* WordPress alignment: stack on mobile */
	.shop-detail-body .alignleft,
	.shop-detail-body .alignright {
		float: none;
		margin: 16px 0;
	}

	/* --- Info Table --- */
	.shop-detail-info {
		gap: 16px;
	}

	.shop-detail-info__row {
		flex-direction: column;
		gap: 4px;
	}

	.shop-detail-info__label {
		width: auto;
		font-size: 14px;
	}

	.shop-detail-info__value {
		font-size: 14px;
		margin-left: 0;
	}

	.shop-detail-info__floor-link {
		font-size: 14px;
		margin-left: 0;
		display: block;
	}

	/* --- Section Heading --- */
	.shop-detail-section {
		padding: 80px 5% 0;
	}

	.shop-detail-section__inner {
		max-width: none;
		margin: 0 auto;
		padding: 0;
	}

	.shop-detail-section__heading {
		margin-bottom: 32px;
	}

	.shop-detail-section__title {
		font-size: 28px;
	}

	.shop-detail-section__subtitle {
		font-size: 14px;
	}

	/* --- Shared Component Spacing --- */
	.shop-detail-news-section {
		padding-top: 80px;
		padding-left: 5%;
		padding-right: 5%;
	}

	.shop-detail-search-section {
		padding-top: 80px;
		padding-left: 5%;
		padding-right: 5%;
	}

	.shop-detail-station-section {
		padding-top: 80px;
		padding-left: 5%;
		padding-right: 5%;
	}

	/* --- Pick Up Item --- */
	.shop-detail-pickup {
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}

	.shop-detail-pickup__bag-image {
		width: 230px;
		height: 240px;
	}

	.shop-detail-pickup__title {
		font-size: 18px;
	}

	.shop-detail-pickup__desc {
		font-size: 14px;
	}

	/* --- Floor Map --- */
	.shop-detail-floor-map__img {
		border-radius: var(--portal-radius-sm);
	}

	/* --- Banner --- */
	.shop-detail-banner-wrap {
		padding: 80px 5%;
	}
}
