/**
 * Atofuru Providers - Frontend Styles
 * フロントエンド用CSS
 *
 * このファイルはプラグイン固有のフロントエンドスタイルを記述します
 */

/* ========== タブ UI ========== */
.store-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 30px;
	border-bottom: 2px solid #e0e0e0;
}
.tab-button {
	padding: 12px 24px;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	color: #666;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
}
.tab-button.active {
	border-bottom-color: #00A68C;
	color: #00A68C;
}
.tab-button:hover {
	color: #00A68C;
}
.tab-content {
	display: none;
}
.tab-content.active {
	display: block;
}

/* ========== Pinterest風グリッド ========== */
.photo-grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}
.photo-card {
	position: relative;
	cursor: pointer;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
}
.photo-card.hidden {
	display: none;
}
.photo-card.fade-in {
	animation: cardFadeIn 0.5s ease-out forwards;
}
@keyframes cardFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 読み込み中インジケーター */
.loading-indicator {
	text-align: center;
	padding: 30px;
	color: #00A68C;
	font-size: 16px;
	font-weight: 600;
}
.loading-spinner {
	display: inline-block;
	width: 30px;
	height: 30px;
	border: 3px solid rgba(0,166,140,0.2);
	border-top-color: #00A68C;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	margin-bottom: 10px;
}
@keyframes spin {
	to { transform: rotate(360deg); }
}
.photo-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0,166,140,0.2);
}
.photo-card-img {
	width: 100%;
	padding-bottom: 75%; /* 4:3 aspect ratio */
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
}
.no-image-text {
	font-size: 18px;
	font-weight: 700;
	color: rgba(255,255,255,0.7);
	text-transform: uppercase;
	letter-spacing: 2px;
}
.photo-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
	padding: 15px;
	color: #fff;
}
.store-name {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 5px 0;
	line-height: 1.3;
}
.store-category {
	display: inline-block;
	font-size: 12px;
	background: rgba(255,255,255,0.2);
	padding: 3px 10px;
	border-radius: 12px;
	margin-right: 8px;
	margin-bottom: 5px;
}
.store-rating {
	font-size: 14px;
	font-weight: 600;
	color: #ffd700;
}

/* ========== モーダル ========== */
.store-modal {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.6);
	animation: fadeIn 0.2s;
}
.store-modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
.modal-content {
	background-color: #fff;
	margin: 20px;
	padding: 30px;
	border-radius: 12px;
	width: 90%;
	max-width: 500px;
	position: relative;
	animation: slideDown 0.3s;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
@keyframes slideDown {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}
.modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 400;
	color: #666;
	background: #f5f5f5;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
	transition: all 0.2s;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	z-index: 10;
}
.modal-close:hover {
	color: #fff;
	background: #00A68C;
	transform: scale(1.1);
	box-shadow: 0 4px 8px rgba(0,166,140,0.3);
}
.modal-close:active {
	transform: scale(0.95);
}
.modal-content h3 {
	margin: 0 0 15px 0;
	font-size: 22px;
	font-weight: 700;
	color: #333;
}
.modal-categories {
	margin-bottom: 15px;
}
.modal-categories .categoryLabel {
	display: inline-block;
	background: #00A68C;
	color: #fff;
	font-size: 12px;
	padding: 4px 12px;
	border-radius: 12px;
	margin-right: 8px;
}
.modal-info {
	margin-top: 20px;
}
.modal-info p {
	margin: 12px 0;
	font-size: 15px;
	line-height: 1.6;
}
.modal-info strong {
	color: #666;
	font-weight: 600;
}
.modal-rating {
	margin-bottom: 15px;
}
.modal-map-btn {
	display: inline-block;
	background: #00A68C;
	color: #fff;
	padding: 6px 16px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	margin-left: 10px;
	transition: opacity 0.2s;
}
.modal-map-btn:hover {
	opacity: 0.8;
}
.modal-tel a {
	color: #00A68C;
	text-decoration: none;
	font-weight: 600;
}
.modal-tel a:hover {
	text-decoration: underline;
}

/* ========== 周辺観光スポット ========== */
.tourist-spots-section {
	margin: 25px 0 35px 0;
	clear: both;
	display: block;
	width: 100%;
	overflow: hidden;
}
.tourist-spots-section h4 {
	font-size: 15px;
	font-weight: 700;
	color: #666;
	margin: 0 0 12px 0;
}
.tourist-spots-container {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
}
.tourist-spot-item {
	display: inline-block;
	width: 200px;
	margin-right: 15px;
	vertical-align: top;
	white-space: normal;
}
.tourist-spot-item:last-child {
	margin-right: 0;
}
.tourist-spot-link {
	display: block;
	text-decoration: none;
}
.tourist-spot-image {
	display: block;
	width: 100%;
	height: 130px;
	background-size: cover;
	background-position: center;
	border-radius: 6px;
	margin-bottom: 6px;
}
.tourist-spot-title {
	display: block;
	font-size: 13px;
	color: #333;
	font-weight: 600;
	line-height: 1.3;
}

/* ========== ヒーローセクション（スライドショー + 説明文オーバーレイ） ========== */
.hero-section {
	position: relative;
	max-height: 70vh;
	min-height: 500px;
	overflow: hidden;
}
.hero-section .headSlick {
	height: 100%;
}
.hero-section .headSlick li {
	height: 70vh;
	min-height: 500px;
}
.hero-section .headSlick li img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.hero-overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 42%;
	display: flex;
	align-items: center;
	background: linear-gradient(to right, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 70%, rgba(255,255,255,0) 100%);
	padding: 60px 50px 60px 60px;
	z-index: 10;
}
.hero-content {
	max-width: 500px;
	color: #333;
}
.hero-title {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 15px;
	line-height: 1.3;
	color: #00A68C;
}
.hero-subtitle {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 20px;
	line-height: 1.5;
	color: #555;
	padding-bottom: 15px;
	border-bottom: 2px solid #00A68C;
}
.hero-description {
	font-size: 15px;
	line-height: 1.9;
	color: #666;
}

/* ========================================
   スマホ対応（768px以下）
======================================== */
@media screen and (max-width: 768px) {
	.tab-button {
		padding: 10px 16px;
		font-size: 14px;
	}

	/* Pinterest風グリッド - スマホ対応 */
	.photo-grid-container {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}
	.store-name {
		font-size: 14px;
	}
	.store-category {
		font-size: 11px;
	}
	.store-rating {
		font-size: 12px;
	}

	/* モーダル - スマホ対応 */
	.modal-content {
		padding: 25px 20px;
		margin: 10px;
	}
	.modal-content h3 {
		font-size: 18px;
		margin-right: 50px;
	}
	.modal-info p {
		font-size: 14px;
	}
	.modal-close {
		width: 44px;
		height: 44px;
		top: 8px;
		right: 8px;
		font-size: 26px;
	}

	/* 周辺観光スポット - スマホ対応 */
	.tourist-spot-item {
		width: 140px;
	}
	.tourist-spot-image {
		height: 100px;
	}

	/* ========== ヒーローセクション - スマホ対応 ========== */
	.hero-section {
		max-height: 60vh;
		min-height: 400px;
	}
	.hero-section .headSlick li {
		height: 60vh;
		min-height: 400px;
	}
	.hero-overlay {
		width: 75%;
		padding: 30px 25px 30px 20px;
		background: linear-gradient(to right, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 60%, rgba(255,255,255,0) 100%);
	}
	.hero-content {
		max-width: 100%;
	}
	.hero-title {
		font-size: 22px;
		margin-bottom: 10px;
		line-height: 1.3;
	}
	.hero-subtitle {
		font-size: 14px;
		margin-bottom: 12px;
		padding-bottom: 10px;
	}
	.hero-description {
		font-size: 13px;
		line-height: 1.7;
	}
}
