/* =====================================================================
 * list.css — チケット施設一覧（list.php）専用
 *
 * common.css は読み込まない。common.css のうち、このページで使っている指定だけをここに移している。
 * （common.css は他のページで使われている可能性があるので、そちらは変更していない）
 *
 * 施設一覧の列幅と画像サイズは CSS グリッドで決める（旧 list.js の計算と同じ寸法）。
 *   ・列数：画面幅 480px 未満で2列 / 640px 未満で3列 / それ以上で4列
 *   ・列幅：一覧の幅 ÷ 列数 − 30px、列の間隔30px
 *   ・画像：アイテム幅の90%の正方形 → 角丸100%で真円
 * ===================================================================== */

/* ---------- 全体（旧 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;
}
.center {
	text-align: center;
}

/* ---------- ヘッダー（旧 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;
}

/* ---------- 概要 ---------- */
#summary {
	background-image: url(/products/img/pass_bg_50ix_40.svg);
	padding: 20px 10px;
	font-size: 12px;
}
#summary #summaryTicket {
	margin: 20px auto 0 auto;
}
#summary #summaryTicket span {
	background-color: white;
	border-radius: 20px;
	padding: 5px 10px;
	word-break: keep-all;
	margin: 5px;
	display: inline-block;
	text-align: center;
}

/* ---------- 本文 ---------- */
/* 旧 common.css（margin: 60px auto; width: 90%）を旧 list.css（margin-top: 0; padding-top: 10px; width: 100%）で上書きした結果 */
#main {
	margin: 0 auto 60px;
	padding-top: 10px;
	width: 100%;
}
#ticketList2 {
	color: #FE6110;
	font-size: 12px;
}

/* p → 見出しタグに変えた箇所を、変更前と同じ見た目に戻す。
   :where() で詳細度を0にしているので、他の指定（.fontL / .notice 等）が常に優先される */
:where(h2[id^="ticketList_"], h3.notice) {
	font-size: 1em;
	font-weight: inherit;
	margin: 1em 0;
}

.ticketNameWrap {
	text-align: center;
	margin-top: 20px;
}
.ticketIcon {
	width: 80px;
}

.notice {
	color: white;
	background-color: #FE6110;
	width: 100%;
	margin: 10px auto;
	padding: 5px 0;
	text-align: center;
}

/* ---------- 施設一覧 ---------- */
.itemWrap {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 30px;
	box-sizing: border-box;
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px; /* 旧 .item の外側 margin 15px の分 */
}
@media (min-width: 480px) {
	.itemWrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
	.itemWrap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 旧版は .item が inline-table だったため、リンク（a）の下線や文字色が中に及ばなかった。
   グリッドでは a 自体がブロックの並び要素になり下線・リンク色が及ぶので、明示的に打ち消す */
.itemWrap > a {
	display: block;
	color: inherit;
	text-decoration: none;
}
.item-link:focus-visible {
	outline: 3px solid #1a73e8;
	outline-offset: 2px;
}

.item {
	text-align: center;
	color: #000000;
	margin: 0 0 30px;
}
.item img {
	width: 90%;
	height: auto;
	aspect-ratio: 1 / 1;
	margin: 0 auto 5px;
	border-radius: 100%;
	object-fit: cover;
}
.item p {
	width: 100%;
	word-break: break-word;
	text-align: left;
	margin: 0;
}
.item p:nth-of-type(2) {
	color: #606060;
}

/* ---------- アプリ案内（旧 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;
}
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;
}
