@charset "UTF-8";

/*--------------------------------------------
	カテゴリー選択
--------------------------------------------*/
.categorys {
	max-width: 90%;
	margin: 10px auto
}

.categorys ul {
	background: var(--button-bg);
	list-style: none;
	margin: 0 auto;
	padding: 10px;
	border: 5px double var(--main-color-2);
	display: flex;
	justify-content: center;
	flex-wrap: wrap
}

.categorys ul li {
	width: 100px;
	height: 80px;
	display: flex;
	justify-content: center;
	align-items: center;
	white-space: nowrap
}

.categorys ul li a {
	text-decoration: none;
	color: var(--text-color);
	width: 100%;
	text-align: center;
	font-weight: bold
}

.categorys li a[href="/tobi/attractions?categoryIds=0"] {
	color: #ffa500 !important
}

.categorys li a[href="/tobi/attractions?categoryIds=1"] {
	color: #ff69b4 !important
}

.categorys li a[href="/tobi/attractions?categoryIds=2"] {
	color: #4682b4 !important
}

.categorys li a[href="/tobi/attractions?categoryIds=3"] {
	color: #32cd32 !important
}

.categorys li a[href="/tobi/attractions?categoryIds=4"] {
	color: #ffd700 !important
}

.categorys li a[href="/tobi/attractions?categoryIds=5"] {
	color: #9370db !important
}

.categorys i {
	font-size: 2.1em
}

.categorys li a {
	text-decoration: none;
	color: var(--text-color);
	width: 100%;
	text-align: center;
	position: relative;
	overflow: hidden
}

.categorys li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background-color: var(--accent-color);
	transition: all 0.3s ease;
	transform: translateX(-50%)
}

.categorys li a:hover::after {
	width: 100%
}

/*--------------------------------------------
	観光スポット名と写真
--------------------------------------------*/
.attractions {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
	gap: 15px;
	padding: 10px;
	margin: 0 auto
}

.attractions h5 {
	margin: 0 auto
}

.attractions a {
	color: inherit;
	text-decoration: none
}

.attractions .attraction {
	background-color: var(--base-color);
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	cursor: pointer;
	border: 3px dotted var(--main-color-3);
	border-radius: 10px;
	position: relative
}

.attractions .attraction:hover img {
	transform: scale(1.05);
}

.attractions img {
	width: 100%;
	height: 198px;
	/* .attractionsの minmax(330px, 1fr)の330px*3/5(画像の比率は5対3なので) */
	object-fit: cover;
	transition: transform 0.3s ease
}

.attractions .attraction .details {
	padding: 0
}

.attractions .attraction .title {
	font-size: 1.2em
}

.attractions .attraction .labels {
	position: absolute;
	top: 10px;
	left: 10px
}

.attractions .attraction .labels p {
	display: inline-block;
	padding: 4px 10px;
	background: rgba(255, 255, 255, 0.8);
	color: var(--text-color);
	font-size: 12px;
	font-weight: bold;
	border-radius: 15px;
	text-decoration: none;
	transition: background .3s, color .3s
}

.attractions .attraction .check {
	display: inline-block;
	margin: 6px;
	font-size: 0.9em;
	background-color: var(--main-color-3);
	padding: 2px 12px 2px 10px;
	text-decoration: none;
	border-radius: 5px;
	transition: background-color 0.4s ease
}

.attractions .attraction .arrow {
	display: inline-block;
	margin-left: 4px;
	transition: transform 0.3s
}

.attractions .attraction:hover .check {
	background-color: var(--text-color);
	color: var(--base-color)
}

.attractions .attraction:hover .arrow {
	transform: translateX(6px)
}