/* 全体的なレイアウト */


html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-family: "M PLUS 1", sans-serif;
	font-optical-sizing: auto;
	font-weight: normal;
	font-style: normal;
}

.site-content {
	display: flex;
	height: calc(100vh - 80px);
	width: 100%;
	position: relative;
}

#map-container {
	display: flex;
	width: 100%;
	height: 100%;
	position: relative;
}

#map {
	flex-grow: 1;
	height: 100%;
}

#map-container .map-logo {
	position: absolute;
	top: 10px;
	left: 20px;
	height: 50px;
	z-index: 1;
}

/* 情報パネルのスタイル */
#spot-info-panel {
	position: fixed;
	top: 1%;
	right: 1%;
	width: 400px;
	height: calc(100vh - 2%);
	background-color: #ffffff;
	box-shadow: 3px 3px 5px rgba(0,0,0,0.2);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
	border-radius: 10px;
	box-sizing: border-box;
	overflow-y: auto;
}

#spot-info-panel.active {
	opacity: 1;
	visibility: visible;
}

/* メイン画像とクローズボタンを内包するコンテナのスタイル */
#panel-main-image-container {
	position: relative;
	width: 100%;
	height: auto;
	overflow: hidden;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	margin-bottom: 10px;
}

#panel-main-image-container .main-panel-image {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 8px 8px 0 0;
}

/* クローズボタンのスタイル */
#close-panel-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	padding: 0;
	opacity: 50%;
}

/* パネルコンテンツのスタイル */
.panel-content {
	padding: 0 10px 10px;
}

#panel-title {
	font-size: 24px;
	color: #333;
	margin: 0 0 0 10px;
}

.panel-title-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 10px 0;
}

.directions-btn {
	width: 32px;
	height: 32px;
	background-color: #ec407a;
	border: none;
	padding: 6px;
	border-radius: 32px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: background-color 0.2s;
	margin: 0 10px 0 0;
}

.directions-btn:hover {
	background-color: #b5b5b5;
}

.directions-btn i {
	color: white;
	font-size: 18px;
}

.panel-tabs {
	display: flex;
	border-bottom: 1px solid #b5b5b5;
	position: relative;
}

.tab-button {
	flex: 1;
	padding: 10px 0;
	background-color: transparent;
	border: none;
	cursor: pointer;
	font-size: 16px;
	color: #555;
	transition: all 0.2s;
	text-align: center;
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	font-weight: normal;
}

.tab-button:hover {
	background-color: #eeeeee;
}

.tab-button.active {
	background-color: #ffffff;
	border-bottom: 3px solid #424242; /* ★修正点: アクティブなタブにバーを表示★ */
	color: #424242;
	/* ★追加: アニメーションを滑らかにするため、transitionを追加★ */
	transition: border-bottom-color 0.3s ease-in-out;
	font-weight: bold;
}

.panel-tabs::after {
	content: '';
	position: absolute;
	bottom: 0px;
	height: 3px;
	background-color: #424242;
	transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
	transform: translateX(var(--tab-offset, 0px));
	width: var(--tab-width, 0px);
}

.tab-content {
	display: none;
	padding: 30px 10px;
}

.tab-content.active {
	display: block;
}

.tab-content p, .tab-content ul, .tab-content pre {
	line-height: 1.6;
	color: #555;
	margin: 0;
}

.tab-content ul {
	list-style: none;
	padding: 0;
}

.tab-content ul li {
	margin-bottom: 10px;
}

.tab-content ul li .menu-name {
	margin-right: 5px;
}

.tab-content a {
	color: #424242;
	text-decoration: none;
}

.tab-content a:hover {
	text-decoration: underline;
}

#tab-basic-info > div {
	display: flex;
	align-items: flex-start; /* ★修正: 全て上揃えに統一します★ */
	gap: 10px;
	margin-bottom: 20px;
}

/* テキストコンテンツのラッパー */
#tab-basic-info > div > p,
#tab-basic-info > div > div {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

#tab-basic-info > div > i {
	font-size: 26px;
	margin: 2px;
	width: 30px;
	text-align: center;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 一行のテキストの場合、アイコンを垂直方向の中央に配置 */
#tab-basic-info > div:not(.has-multi-line) > i {
	align-self: self-start;
}

#special-offer-section{
	display: block;
	visibility: visible;
	background: #d0f0ff;
	border-radius: 5px;
	padding: 10px;
}

.tab-content h3 {
	display: block;
	width: 180px;
	border-radius: 24px;
	font-size: 1em;
	margin: 0 auto;
	text-align: center;
	line-height: 30px;
	color: #90caf9;
	background: #ffffff;	
}

#panel-offer-content{
	display: block;
	width: 100%;
	border-bottom: solid 1px #ffffff;
	margin: 10px 0;
	padding-bottom: 10px;
	font-size: 1.4em;
	font-weight: bold;
	text-align: center;
}

#panel-offer-details{
	font-size: 0.9em;
	display: block !important;
    visibility: visible !important;
}

#panel-description{
	margin: 20px 0;
}

/* 特典の内容はないけど、詳細がある場合 */
#special-offer-section.no-content {
    padding: 0;
}
#special-offer-section.no-content #panel-offer-content {
    display: none;
}

#special-offer-section.no-content h3 {
    display: none;
}
#special-offer-section.no-content #panel-offer-details{
	padding: 10px;
}

#panel-menu{
	padding-top: 20px;	
}

.menu-list-item {
  display: flex;
  justify-content: space-between; /* 子要素を両端に寄せる */
  align-items: center; /* 垂直方向の中央揃え */
  padding: 5px 0;
}

#panel-photos-gallery {
	column-count: 2;
	column-gap: 10px;
}

#panel-photos-gallery img {
	width: 100%;
	height: auto;
	display: block;
	margin-bottom: 10px;
	border-radius: 8px;
	break-inside: avoid;
}

/* 画像がない場合のプレースホルダー */
.no-image-placeholder {
	width: 100%;
	height: 180px;
	background-color: #e0e0e0;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	font-size: 14px;
}

/* ==================================== */
/* ★レスポンシブデザインの追加★ */
/* モバイル向けスタイル (画面幅600px以下) */
/* ==================================== */
@media (max-width: 600px) {
#spot-info-panel {
	top: auto;
	right: 0;
	bottom: -70vh;
	width: 100%;
	height: 70vh;
	margin: 0;
	border-radius: 10px 10px 0 0;
	box-shadow: 0 -3px 5px rgba(0,0,0,0.2);
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	transform: translateY(0);
	opacity: 1; 
	visibility: visible;
	overflow-y: auto;
}

#spot-info-panel.active {
	transform: translateY(-100%); 
}

#panel-main-image-container {
	height: 150px;
	overflow: hidden;
	margin-bottom: 0;
	border-radius: 10px 10px 0 0;
}

#panel-main-image-container .main-panel-image {
	width: 100%;
	height: 100%;
	aspect-ratio: unset;
	object-fit: cover;
	object-position: center;
	border-radius: 10px 10px 0 0;
}

#close-panel-btn {
	top: 10px;
	right: 15px;
	color: #fff;
	opacity: 100%;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.panel-title-container {
	padding: 10px;
}

.panel-tabs {
	margin-bottom: 0;
	padding: 0 10px;
}

.panel-content {
	padding: 10px;
}

#panel-title {
	font-size: 20px;
}

.no-image-placeholder {
	height: 150px;
	aspect-ratio: 16 / 9;
	border-radius: 10px 10px 0 0;
}
}