/* =====================================================================
 * detail.css — 施設詳細ページ（detail.php）専用
 *
 * common.css は読み込まない。common.css のうち、このページで使っている指定だけをここに移している。
 * （common.css は他のページで使われている可能性があるので、そちらは変更していない）
 * ===================================================================== */

/* ---------- 全体（旧 common.css） ---------- */
body {
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", YuGothic, "ヒラギノ角ゴ ProN W3", Hiragino Kaku Gothic ProN, Arial, "メイリオ", Meiryo, sans-serif;
	margin: 0 auto;
	max-width: 1200px;
}

.fontL {
	font-weight: bold;
	font-size: 16px;
}
.fontM {
	font-size: 14px;
}

/* ---------- ヘッダー（旧 common.css） ---------- */
header {
	width: 100%;
	max-width: 1200px;
	z-index: 1;
	top: 0;
	font-size: 20px;
	background-color: #FED7C2;
}
header table {
	border-spacing: 0;
}
header tr:nth-of-type(1) td:nth-of-type(1) {
	background-color: #FE6110;
}
header td {
	padding: 0;
}
header td.headerText {
	padding: 0 5px;
}
header img {
	height: 60px;
	width: 60px;
}
/* チケット名：施設名をページの h1 にしたため p にした。旧 h1 と同じ余白にする */
:where(header .headerTitle) {
	margin: 0.67em 0;
}

/* ---------- 本文 ---------- */
/* 旧 common.css（margin: 60px auto; width: 90%）を旧 detail.css（margin: 0; width: 100%）で上書きした結果 */
#main {
	margin: 0;
	width: 100%;
}

#content {
	background-color: lightgray;
	padding-bottom: 60px;
}

/* ---------- 画像カルーセル ----------
 * 横スクロール＋スクロールスナップで1枚ずつ止める。スワイプはブラウザ標準の動き（JSでの動き計算は不要）。
 * 枠の高さは表示中の画像に合わせる（detail.js が ul の高さを切り替える）。
 * 画像ごとに縦横比が違っても、上下に空きが出ない */
#content .imgWrap {
	background-color: #FFFFFF;
	position: relative;
	overflow: hidden;
}
#content .imgWrap ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	transition: height 0.3s ease;
}
#content .imgWrap ul::-webkit-scrollbar {
	display: none;
}
#content .imgWrap li {
	flex: 0 0 100%;
	align-self: flex-start; /* 一番高い画像に引き伸ばさず、それぞれの画像の高さのままにする */
	display: flex;
	justify-content: center;
	scroll-snap-align: start;
	padding-bottom: 4px; /* 旧版は画像が文字と同じ行に並ぶ扱いで、下に約4pxの隙間があった。その分 */
}
#content .imgWrap img {
	width: 100%;
	height: auto; /* width / height 属性は縦横比の指定として使い、実際の高さは幅に合わせる */
	object-fit: contain;
	max-height: 500px;
	-webkit-user-drag: none;
}
@media (prefers-reduced-motion: reduce) {
	#content .imgWrap ul { scroll-behavior: auto; transition: none; }
}

#content .imgWrap .carouselBtnWrap {
	width: 100%;
	position: absolute;
	bottom: 14px; /* 旧版（bottom: 10px ＋ 文字の行の下側の隙間 約4px）と同じ位置 */
	text-align: center;
	line-height: 0;
}
#content .imgWrap .carouselBtn {
	font: inherit;
	box-sizing: content-box;
	width: 20px;
	height: 20px;
	padding: 0;
	display: inline-block;
	vertical-align: bottom;
	margin: 0 10px;
	border-radius: 100%;
	border: 1px darkgray solid;
	background-color: lightgray;
	cursor: pointer;
}
#content .imgWrap .carouselBtn[aria-current="true"] {
	border: 1px orangered solid;
	background-color: #FE6110;
}
#content .imgWrap .carouselBtn:focus {
	outline: none;
}
#content .imgWrap .carouselBtn:focus-visible {
	outline: 2px solid #1a73e8;
	outline-offset: 2px;
}

#content .picCaption {
	text-align: center;
	margin: 0;
}

/* 施設名：ページの h1（旧 h2 と同じ文字サイズにする） */
#content #shop_name {
	font-size: 1.5em;
	background-color: white;
	text-align: center;
	margin: 0;
	padding: 10px;
}

#content #info {
	background-color: lightgray;
}
#content #infoInner {
	margin: 10px;
	position: relative;
}
#content #infoInner .dec {
	display: inline-block;
	width: 20px;
	height: 40px;
	background: lightgray;
	position: absolute;
	top: 75px;
}
#content #infoInner #decLeft {
	border-radius: 0 100% 100% 0/50%;
}
#content #infoInner #decRight {
	border-radius: 100% 0 0 100%/50%;
	right: 0;
}

#content #ticketDesc {
	width: 94%;
	padding: 0 3%;
	background-color: #FFFFFF;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
}
#content #ticketDesc #shiyou {
	background-color: gray;
	color: #FFFFFF;
	width: calc(35% - 20px);
	display: inline-block;
	vertical-align: top;
	margin: 0;
	border-radius: 5px;
	padding: 10px;
	font-size: 10px;
	text-align: center;
}
#content #ticketDesc .ticketIcon {
	width: 26%;
	margin: 0 2%;
	vertical-align: bottom;
}
#content #ticketDesc #typeWrap {
	width: 35%;
	display: inline-block;
	vertical-align: bottom;
}
#content #ticketDesc #typeWrap img {
	width: 100%;
}
#content #ticketDesc #typeWrap span {
	font-size: 10px;
}

#content #infoMain {
	background-image: url(../img/shopinfo_bar_002.png);
	background-size: contain;
	padding: 3%;
}
#content #infoMain #shop_product_name {
	color: #FE6110;
	border: 2px #FE6110 solid;
	border-radius: 5px;
	text-align: center;
	margin: 0 auto;
	padding: 10px;
	width: 70%;
}
/* 施設画像が無い時の区切り：1行分の余白（区切り画像を設定した場合はその画像を中央に） */
#content #infoMain .shopSeparator {
	min-height: 1em;
	margin: 0.5em 0;
	text-align: center;
}
#content #infoMain .shopSeparator img {
	max-width: 100%;
	vertical-align: middle;
}
#content #infoMain #date {
	color: #FE6110;
}
#content .shopImg {
	width: 100%;
	object-fit: cover;
	max-height: 500px;
}
#content #infoMain #map {
	margin: 0 auto;
	display: block;
	max-width: 100%;
}
#content #infoMain #mapLink {
	border: 1px #000000 solid;
	width: 80%;
	text-align: center;
	display: block;
	margin: 10px auto;
	color: #000000;
	text-decoration: none;
}

#content #infoFooter {
	background-color: #FFFFFF;
	height: 20px;
	width: 100%;
	display: block;
	background-repeat: no-repeat;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
}

/* 施設一覧へ戻るリンク（ブラウザ表示のみ）。他のボタンと同じオレンジ */
#main #back {
	box-sizing: border-box;
	color: #FFFFFF;
	background-color: #FE6110;
	width: 80%;
	text-align: center;
	display: block;
	text-decoration: none;
	margin: 20px auto 0;
	padding: 20px;
	font-size: 16px;
	border-radius: 5px;
}

@media screen and (min-width: 420px) {
	#content #infoInner .dec {
		width: 30px;
		height: 60px;
		top: 90px;
	}
	#content #ticketDesc #shiyou {
		font-size: 12px;
	}
	#content #ticketDesc #typeWrap span {
		font-size: 12px;
	}
}
@media screen and (min-width: 640px) {
	#content #infoInner .dec {
		width: 40px;
		height: 80px;
		top: 110px;
	}
	#content #ticketDesc #shiyou {
		font-size: 14px;
	}
	#content #ticketDesc #typeWrap span {
		font-size: 14px;
	}
}
@media screen and (min-width: 1024px) {
	#content #infoInner .dec {
		width: 50px;
		height: 100px;
		top: 140px;
	}
	#content #ticketDesc #shiyou {
		font-size: 18px;
	}
	#content #ticketDesc #typeWrap span {
		font-size: 18px;
	}
}

#infoMain p {
	margin: 0;
}
/* 項目名（内容・住所・電話番号など）：p → h3 にした。旧 p.fontL と同じ余白 */
#infoMain h3.fontL {
	margin: 15px 0 0;
}
#infoMain a {
	overflow-wrap: break-word;
}

/* ---------- アプリ案内（旧 common.css） ---------- */
section {
	display: block;
	overflow: hidden;
	padding: 0;
	margin: 10px 0 0 0;
	background-repeat: no-repeat;
	box-sizing: inherit;
}
section * {
	padding: 0;
	margin: 0;
	background-repeat: no-repeat;
	box-sizing: inherit;
}
/* アプリ案内の背景は白（周りの #content はグレー） */
#applink {
	background-color: #FFFFFF;
}
section img {
	width: 100%;
	border-style: none;
}

section .s-title {
	width: 100%;
	background: #FE6110;
	padding: 24px 0 8px;
	margin-bottom: 10px;
	font-size: 1.17em; /* 旧 h3 のブラウザ既定サイズ。.s-title__text の 0.9em 等はこれが基準 */
}
section .s-title__text {
	display: block; /* 旧 p と同じブロック表示。中央寄せ・下余白・▼の位置はブロックが前提 */
	position: relative;
	padding-bottom: 30px;
	text-align: center;
	color: #ffffff;
	font-weight: bold;
	font-size: 0.9em;
}
@media screen and (max-width: 360px) {
	section .s-title__text { font-size: 0.8em; }
}
@media screen and (min-width: 641px) and (max-width: 1024px) {
	section .s-title__text { font-size: 1.2em; }
}
@media screen and (min-width: 1024px) and (max-width: 1366px) {
	section .s-title__text { font-size: 2em; }
}
@media screen and (min-width: 1367px) {
	section .s-title__text {
		font-size: 1.6em;
		margin: 20px auto;
	}
}
section .s-title__text::after {
	position: absolute;
	content: "";
	width: 24px;
	height: 24px;
	bottom: 2px;
	left: 48%;
	background: url(/com/img/arrow-w-b.svg) no-repeat;
	background-size: contain;
}

.dl-cap {
	width: 70%;
	margin: 20px auto;
	color: #FE6110;
	font-weight: bold;
}
@media screen and (min-width: 1367px) {
	.dl-cap { width: 45%; }
}

/* 乗換案内アプリの紹介（ロゴ＋iOS / Android の QR コード＋ストアボタン） */
.apps {
	width: 90%;
	max-width: 600px;
	margin: 10px auto 20px;
}
.apps_japanese {
	border: medium solid #FE6110;
	border-radius: 16px;
	overflow: hidden;
}
.apps_title_ja_only {
	text-align: center;
	background: #FE6110;
	color: #ffffff;
	font-size: 0.8em;
	padding: 4px;
}
@media screen and (min-width: 641px) and (max-width: 1024px) {
	.apps_title_ja_only { font-size: 1.2em; }
}
@media screen and (min-width: 1024px) {
	.apps_title_ja_only { font-size: 1.4em; }
}
.apps_contents_ja_only {
	padding: 20px 0 10px;
}
/* 枠内を左右半分ずつ：左半分にロゴ、右半分に QR コード2つ（さらに半分ずつ） */
.apps_abt {
	display: flex;
	align-items: center;
	gap: 4%;
	width: 90%;
	margin: 0 auto;
}
.apps_norikae,
.apps_norikae_qr {
	flex: 1 1 0;
	min-width: 0; /* 画像の元の大きさに引っ張られて枠からはみ出さないように */
}
.apps_norikae_qr {
	display: flex;
	align-items: center;
	gap: 8%;
}
section .apps_norikae_qr img {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	height: auto;
}

.dl-btn {
	display: flex;
	align-items: center;
	justify-content: space-around;
	width: 82%;
	margin: 10px auto;
}
.dl-btn .apple {
	width: 40%;
}
.dl-btn .google {
	width: 50%;
}

/* ---------- フッター（旧 common.css） ---------- */
footer {
	position: fixed;
	bottom: 0;
	width: 100%;
	max-width: 1200px;
	height: 40px;
	padding: 10px 0;
	z-index: 1;
	text-align: center;
	background-color: rgba(36, 35, 41, 0.75);
}

/* アプリ内表示（app=1）：戻る・購入ボタン */
footer button {
	font-size: 13px;
	border-radius: 5px;
	border: 1px #FE6110 solid;
	padding: 8px 24px;
	margin: 0 4px;
}
footer button:nth-of-type(1) {
	background-color: #FFFFFF;
	color: #FE6110;
	min-width: 30%;
}
footer button:nth-of-type(2) {
	background-color: #FE6110;
	color: #FFFFFF;
	min-width: 60%;
}
#purchase {
	background-color: #FE6110;
	color: white;
}

/* ブラウザ表示：アプリ案内へのリンク（旧 footer button.applinkBtn と同じ見た目） */
footer a.applinkBtn {
	display: inline-block;
	box-sizing: border-box;
	font-size: 13px;
	line-height: normal;
	border-radius: 5px;
	border: 1px solid #FE6110;
	padding: 8px 24px;
	margin: 0 4px;
	min-width: 30%;
	background-color: #FE6110;
	color: #FFFFFF;
	text-decoration: none;
}

/* ---------- 販売期間外 ---------- */
.not_on_sale {
	position: fixed;
	width: 100%;
	height: 100%;
	opacity: 1;
	z-index: 9999;
	background-color: rgba(255, 255, 255, 0.55);
	left: 0;
}
.not_on_sale p {
	opacity: 1;
	font-size: 18px;
	font-weight: bold;
	color: white;
	margin: auto;
	text-align: center;
	padding: 2%;
	background-color: rgba(51, 51, 51, 0.85);
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}
