﻿@charset "utf-8";

/* ==========================================================================
   モバイル環境用スタイル (max-width: 480px)
   ========================================================================== */

header {
	position: relative;
	width: auto;
	height: 80px;
	border-top-width: 5px;
}

#title {
	width: auto;
	gap: 0 10px;
}
#title .logo img {
	width: 50px;
	height: auto;
}
#title .enttl {
	font-size: 3vw;
}
#title h1 {
	font-size: 5vw;
}

#sec_con {
	display: block;
	padding: 0px 0 50px;
	width: 100%;
	overflow: hidden;
}
#sec_con .cl {
	order: 2;
	width: 100%;
	min-height: 300px;
}
#sec_con .cr {
	order: 1;
	width: 100%;
}
#sec_con .cr_ad {
	margin: 20px 0;
	width: auto;
}

#sec_con #main_image {
	background-size: cover;
	width: 100%;
	height: auto;
	aspect-ratio: 160/113;
}

dl#tokitokoro {
	font-size: 10px;
	padding: 20px 1em;
	grid-template-columns: max-content auto;
}
dl#tokitokoro > *:nth-child(2n+5):nth-child(-2n+7) {
	grid-column: 1;
	margin-left: 0;
}
dl#tokitokoro > *:nth-child(2n+6):nth-child(-2n+8) {
	grid-column: 2;
}

nav.nv_pc {
	display: none;
}

.bar {
	width: 100%;
}
.bar span.renew {
	margin: 0 1em 0 0;
}
.minibar {
	width: 100%;
}

.news {
	margin: 0 0 0 5px;
	width: auto;
	height: 200px;
}
.news dl {
	display: block;
}
.news dt {
	width: auto;
}
.news dd {
	margin: 0 0 0 1em;
}

/* リーフレット */
.leaflet a {
	display: block;
/*	display: none;*/
}
.leaflet img {
	margin: 5px;
	width: 95%;
	height: auto;
}

footer {
	position: fixed;
	bottom: 0px;
	right: 0px;
	width: 100%;
	height: 50px;
	background: #DDDDDD;
}
footer .copy {
	display: none;
}
.copy_m {
	display: block;
	margin: 50px 0 10px 2.3em;
	text-indent: -1.3em;
	font-size: 85%;
	line-height: 110%;
}

/* スマホメニュー（ハンバーガー・ドロワー） */
#nv_drwr {
	display: block;
}
.nv_none {
	display: none;
}
footer .mb_menu {
	display: flex;
	text-align: center;
}
footer .mb_menu li {
	padding: 5px 0 0;
	width: 30%;
}
footer .mb_menu li p {
	margin: -10px 0 0;
	font-size: 85%;
}

#nv_tojiru {
	display: none;
	position: fixed;
	z-index: 99;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: black;
	opacity: 0;
	transition: .3s ease-in-out;
}
#nv_con {
	overflow: auto;
	position: fixed;
	top: 100px;
	left: 0;
	z-index: 9999;
	width: 90%;
	max-width: 200px;
	height: 70%;
	background: #fff;
	transition: .3s ease-in-out;
	transform: translateX(-105%);
}

#nv_in:checked ~ #nv_tojiru {
	display: block;
	opacity: .5;
}
#nv_in:checked ~ #nv_con {
	transform: translateX(0%);
	box-shadow: 6px 0 25px rgba(0,0,0,.15);
}

.page-top {
	z-index: 100;
	position: fixed;
	bottom: -9px;
	right: 60px;
	width: 60px;
	height: 60px;
	background: #DDDDDD;
	border-radius: 30px;
	text-decoration: none;
}

/* ==========================================================================
   動画ウィジェット & モーダル（PC）
   ========================================================================== */
/* 右下固定ウィジェット */
.video-widget {
	position: fixed;
	bottom: 130px; /* トップへ戻るボタンとの重なりを防止 */
	right: 20px;
	width: 280px;
	z-index: 990;
	background: #000;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-widget:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.video-widget-close {
	position: absolute;
	top: 4px;
	right: 4px;
	z-index: 10;
	width: 24px;
	height: 24px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.video-widget-close:hover {
	background: #f00;
}

.video-widget-inner {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	cursor: pointer;
}

.video-widget-inner iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none; /* オーバーレイでクリックを拾うため */
}

.video-widget-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.video-widget-inner:hover .video-widget-overlay {
	opacity: 1;
	background: rgba(0,0,0,0.3);
}

.video-widget-overlay span {
	color: #fff;
	font-size: 36px;
	text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 拡大モーダル */
.video-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-active {
	opacity: 1;
	visibility: visible;
}

.video-modal-bg {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

.video-modal-content {
	position: relative;
	width: 90%;
	max-width: 900px;
	z-index: 1;
}

.video-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: transparent;
	color: #fff;
	border: none;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}
.video-modal-close:hover {
	color: #f00;
}

.video-modal-iframe-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-modal-iframe-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/*テンプレートページ*/

#aisatsu, #gaiyo, #saitaku, #endai, #sanka, #annai, #annai2, #sponsor, #present, #sponsor2, #access {
	margin: 50px 1em 150px;
	width: auto;
}