/* CSS変数でボタンの背景色を設定可能にする */
:root {
    --button-bg-color: #4a90e2;
    --button-hover-color: #357abd;
}

body {
	color: #666666;
	margin: 0px;
	padding: 0px;
	text-align: center;
	font: 12px "メイリオ", "ＭＳ Ｐゴシック", Osaka, "ヒラギノ角ゴ Pro W3";
 	font-family: 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
}

.container {
	 margin-left:auto;
	 margin-right:auto;
	 text-align: center;
 	background-color: #eeeeee;
 	max-width: 1200px;
 	padding: 10px;
}

.wrap {
	 display: grid;
	 grid-template-columns: 120px 1fr 1fr;
	 grid-template-rows: auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto;
	 gap: 0px 0px;
	 margin-left:auto;
	 margin-right:auto;
	 text-align: center;
	 width: 100%;
}

.mura_logo {
	 grid-column: 1;
	 grid-row: 1;
	 background-color: #ffffe0;
	 padding: 4px;
	 display: flex;
	 align-items: center;
	 justify-content: center;
	 width: 120px;
	 min-height: 60px;
}

.header {
	 grid-column: 2;
	 grid-row: 1;
	 background-color: #ffffe0;
	 font-size: 30px;
	 font-weight: bold;
	 padding: 0;
	 margin: 0;
	 display: flex;
	 align-items: center;
	 justify-content: center;
	 margin-top: 0px; /* タイトルを上に移動（調整） */
}

.navi {
	 grid-column: 3;
	 grid-row: 1;
	 background-color: #ffffe0;
	 padding: 4px;
	 display: flex;
	 flex-wrap: wrap;
	 align-items: center;
	 justify-content: center;
	 gap: 2px;
}

/* ボタンスタイル */
.nav-button {
	background-color: var(--button-bg-color);
	color: white;
	border: none;
	padding: 4px 8px;
	margin: 1px;
	font-size: 11px;
	cursor: pointer;
	text-decoration: none;
	border-radius: 3px;
	transition: background-color 0.3s;
	min-width: 30px;
	text-align: center;
}

.nav-button:hover {
	background-color: var(--button-hover-color);
	color: white;
	text-decoration: none;
}

.nav-button.current {
	background-color: #6A4690;
}

/* 個別ボタンの色設定 */
.nav-button[href*="no1"] {
	background-color: #CC0000;
}

.nav-button[href*="no2"] {
	background-color: #FD6600;
}

.nav-button[href*="no3"] {
	background-color: #E2427E;
}

.nav-button[href*="no4"] {
	background-color: #F5EB00;
	color: #000000; /* 黄色の背景なので文字色を黒に */
}

.nav-button[href*="no5"] {
	background-color: #016C3E;
}

.nav-button[href*="no6"] {
	background-color: #0083CE;
}

.nav-button[href*="no7"] {
	background-color: #6F2850;
}

.nav-button[href*="no8"] {
	background-color: #E13D46;
}

.nav-button[href*="no9"] {
	background-color: #024073;
}

.nav-button[href*="no10"] {
	background-color: #F18000;
}

.nav-button[href*="no11"] {
	background-color: #6A4690;
}

.nav-button[href*="no12"] {
	background-color: #E94709;
}

.nav-button[href*="no13"] {
	background-color: #00AAC1;
}

.nav-button[href*="no14"] {
	background-color: #C6D23E;
	color: #000000; /* 薄い緑の背景なので文字色を黒に */
}

.nav-button[href*="no15"] {
	background-color: #18385F;
}

.nav-button[href="index.html"] {
	background-color: #4a90e2;
}

/* ホバー時の色調整 */
.nav-button[href*="no1"]:hover {
	background-color: #AA0000;
}

.nav-button[href*="no2"]:hover {
	background-color: #DD5500;
}

.nav-button[href*="no3"]:hover {
	background-color: #C2356A;
}

.nav-button[href*="no4"]:hover {
	background-color: #E6D400;
	color: #000000;
}

.nav-button[href*="no5"]:hover {
	background-color: #015A33;
}

.nav-button[href*="no6"]:hover {
	background-color: #006BA5;
}

.nav-button[href*="no7"]:hover {
	background-color: #5A1F42;
}

.nav-button[href*="no8"]:hover {
	background-color: #C8323A;
}

.nav-button[href*="no9"]:hover {
	background-color: #01355F;
}

.nav-button[href*="no10"]:hover {
	background-color: #D97000;
}

.nav-button[href*="no11"]:hover {
	background-color: #5A3A7A;
}

.nav-button[href*="no12"]:hover {
	background-color: #D13D07;
}

.nav-button[href*="no13"]:hover {
	background-color: #0095A5;
}

.nav-button[href*="no14"]:hover {
	background-color: #B0C235;
	color: #000000;
}

.nav-button[href*="no15"]:hover {
	background-color: #142B4A;
}

.nav-button[href="index.html"]:hover {
	background-color: #357abd;
}

.board1 {
	 grid-column: 1 / span 3;
	 grid-row: 4;
	 background-color: #bbfbbb;
	 margin: 10px;
	 padding: 20px;
	 border: 2px solid #8b4513;
	 border-radius: 8px;
	 box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	 position: relative;
}

.board1::before {
	 content: "📌";
	 position: absolute;
	 top: 10px;
	 left: 15px;
	 font-size: 20px;
}

.board1::after {
	 content: "";
	 position: absolute;
	 top: 0;
	 left: 0;
	 right: 0;
	 height: 3px;
	 background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
}

.board2 {
	 grid-column: 1 / span 3;
	 grid-row: 5;
	 background-color: #ffffe5;
	 margin: 10px;
	 padding: 20px;
	 border-radius: 12px;
	 box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	 border: 2px solid #e9ecef;
	 position: relative;
}

/* カレンダーポップアップのスタイル */
.calendar-popup {
	 position: absolute;
	 top: 60px;
	 left: 20px;
	 background-color: #ffffff;
	 border: 2px solid #007bff;
	 border-radius: 8px;
	 box-shadow: 0 8px 24px rgba(0,0,0,0.2);
	 padding: 15px;
	 z-index: 1000;
	 display: none;
	 min-width: 280px;
}

.calendar-popup.show {
	 display: block;
	 animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
	 from { opacity: 0; transform: translateY(-10px); }
	 to { opacity: 1; transform: translateY(0); }
}

.calendar-header {
	 text-align: center;
	 font-size: 18px;
	 font-weight: bold;
	 color: #007bff;
	 margin-bottom: 10px;
	 padding-bottom: 8px;
	 border-bottom: 2px solid #e9ecef;
	 display: flex;
	 justify-content: space-between;
	 align-items: center;
}

.calendar-close-btn {
	 background: #dc3545;
	 border: none;
	 color: white;
	 font-size: 20px;
	 cursor: pointer;
	 padding: 4px 8px;
	 border-radius: 50%;
	 width: 30px;
	 height: 30px;
	 display: flex;
	 align-items: center;
	 justify-content: center;
	 transition: background-color 0.3s ease;
}

.calendar-close-btn:hover {
	 background: #c82333;
}

.calendar-grid {
	 display: grid;
	 grid-template-columns: repeat(7, 1fr);
	 gap: 2px;
	 margin-bottom: 10px;
}

.calendar-day-header {
	 text-align: center;
	 font-size: 12px;
	 font-weight: bold;
	 color: #6c757d;
	 padding: 4px;
	 background-color: #f8f9fa;
}

.calendar-day {
	 text-align: center;
	 font-size: 14px;
	 padding: 6px;
	 border-radius: 4px;
	 cursor: pointer;
	 transition: background-color 0.2s ease;
}

.calendar-day:hover {
	 background-color: #e3f2fd;
}

.calendar-day.other-month {
	 color: #ccc;
}

.calendar-day.today {
	 background-color: #007bff;
	 color: white;
	 font-weight: bold;
}

.calendar-day.event-day {
	 background-color: #28a745;
	 color: white;
	 font-weight: bold;
}

.calendar-event-info {
	 margin-top: 10px;
	 padding: 8px;
	 background-color: #f8f9fa;
	 border-radius: 4px;
	 font-size: 12px;
	 color: #495057;
}

/* カレンダーアイコンコンテナ */
.calendar-icon-container {
	position: absolute;
	top: 10px;
	left: 20px;
	z-index: 2;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.calendar-icon-container:hover {
	transform: scale(1.1);
	opacity: 0.8;
}

.calendar-icon {
	width: 40px;
	height: 32px;
	background: #007bff;
	border: 1px solid #ffffff;
	border-radius: 4px;
	box-shadow: 
		0 2px 6px rgba(0,0,0,0.2),
		inset 0 0 0 1px rgba(255,255,255,0.2),
		inset 8px 0 0 1px rgba(255,255,255,0.15),
		inset 16px 0 0 1px rgba(255,255,255,0.15),
		inset 24px 0 0 1px rgba(255,255,255,0.15),
		inset 0 8px 0 1px rgba(255,255,255,0.15),
		inset 0 16px 0 1px rgba(255,255,255,0.15);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
	padding: 2px;
}

.calendar-label {
	font-size: 8px;
	color: white;
	font-weight: bold;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
	line-height: 1;
	margin-bottom: 1px;
}

.calendar-month {
	font-size: 10px;
	color: white;
	font-weight: bold;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
	line-height: 1;
}

.calendar-brand {
	font-size: 7px;
	color: white;
	font-weight: bold;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
	line-height: 1;
	margin-top: 1px;
}

.board2::before:hover {
	 transform: scale(1.1);
	 opacity: 0.8;
}

.board2 h3 {
	font-size: 22px;
	font-weight: bold;
	color: #495057;
	margin-bottom: 20px;
	text-align: center;
	border-bottom: 3px solid #007bff;
	padding-bottom: 12px;
	margin-top: 10px;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.schedule_item {
	margin-bottom: 16px;
	padding: 16px;
	background-color: #ffffff;
	border-radius: 10px;
	border-left: 5px solid #007bff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
}

.schedule_item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.board2 .schedule_item:nth-child(3) {
	border-left-color: #6f42c1; /* 紫 */
}

.board2 .schedule_item:nth-child(4) {
	border-left-color: #1e3a8a; /* 藍 */
}

.board2 .schedule_item:nth-child(5) {
	border-left-color: #2563eb; /* 青 */
}

.board2 .schedule_item:nth-child(6) {
	border-left-color: #16a34a; /* 緑 */
}

.board2 .schedule_item:nth-child(7) {
	border-left-color: gold; /* 金色 */
}

.schedule_time {
	font-size: 18px;
	font-weight: bold;
	color: #007bff;
	margin-bottom: 6px;
	display: inline-block;
	background-color: #e3f2fd;
	padding: 4px 12px;
	border-radius: 20px;
	border: 2px solid #007bff;
}

.schedule_category {
	font-size: 14px;
	font-weight: bold;
	color: #6c757d;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.schedule_title {
	font-size: 16px;
	color: #212529;
	line-height: 1.5;
	font-weight: 500;
}

.poster {
	 grid-column: 1 / span 3;
	 grid-row: 9;
	 text-align:center;
	 margin: 10px;
	 clear: both;
	 overflow: hidden;
}

.board3 {
	 grid-column: 1 / span 3;
	 grid-row: 8;
	 background-color: #f0f8ff;
	 margin: 10px;
	 padding: 10px;
}

.footer {
	 grid-column: 1 / span 3;
	 grid-row: 10;
	 font-size: 16px;
	 padding: 10px;
	 display: flex;
	 flex-wrap: wrap;
	 justify-content: center;
	 gap: 5px;
}

.topbutton {
 	text-align: right;
}

p.centering {
 	 padding: 0;
	 margin-top: 20;
	 margin-bottom: 0;
}

table.cdoc {
 	table-layout: fixed;
 	background-color: #222222;
 	color: #ffffff;
 	margin: 0;
 	padding: 0;
 	width: 100%;
}

td.cdoc {
 	border: 1px solid #666666;
 	text-align: left;
 	padding-left: 10px;
 	padding-right: 10px;
}

td.title {
 	font-weight: bold;
}

td.gazou {
 	border: 1px solid #666666;
}

div.cinema1,div.cinema2,div.cinema3,div.cinema4,div.cinema5,div.cinema6,div.cinema7,div.cinema8 {
 	background-color:#222222;
 	margin: 0;
 	padding: 0;
}

div.cinema1_img,div.cinema2_img,div.cinema3_img,div.cinema4_img,div.cinema5_img,div.cinema6_img,div.cinema7_img,div.cinema8_img {
 	background-color:#222222;
}

.cinema_img {
 	width: 100%;
 	max-width: 500px;
 	height: auto;
}

.poster_img {
 	width: 100%;
 	max-width: 1000px;
 	height: auto;
 	display: block;
 	margin: 0 auto;
}

/* デスクトップ表示（1200px以上） */
@media screen and (min-width: 769px) {
 body {
 	background: #e5e5e5 url(images/floral.jpg) repeat top;
 }

 .cinema_img {
 	width: 100%;
 	max-width: 500px;
 }
 
 .poster_img {
 	width: 100%;
 	max-width: 1000px;
 }
 
 /* デスクトップではハンバーガーメニューを非表示 */
 .mobile-menu {
 	display: none;
 }
}



/* スマートフォン表示（768px以下） */
@media screen and (max-width: 768px) {
	.container {
		padding: 8px;
		margin: 0;
		overflow-x: hidden;
	}
	
	.wrap {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto;
	}
	
	.mura_logo {
		grid-column: 1;
		grid-row: 1;
		width: 100%;
		min-height: 50px;
	}
	
	.header {
		font-size: 20px;
		grid-column: 1;
		grid-row: 2;
		width: 100%;
	}
	
	.nav-button {
		font-size: 10px;
		padding: 3px 6px;
		min-width: 25px;
	}
	
	/* スマホ専用ハンバーガーメニュー */
	.mobile-menu {
		position: fixed;
		top: 10px;
		right: 10px;
		z-index: 1001;
		display: block !important; /* 強制的に表示 */
	}
	
	/* スマホでのナビゲーションエリアの調整 */
	.navi {
		display: none;
	}
	
	.mobile-menu-toggle {
		background: #18385F;
		border: none;
		padding: 8px;
		cursor: pointer;
		border-radius: 4px;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		width: 40px;
		height: 40px;
		transition: background-color 0.3s ease;
	}
	
	.mobile-menu-toggle:hover {
		background: #142B4A;
	}
	
	.mobile-menu-toggle.active {
		background: #dc3545;
	}
	
	.hamburger-line {
		width: 25px;
		height: 3px;
		background-color: white;
		transition: all 0.3s ease;
		border-radius: 2px;
	}
	
	.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
		transform: rotate(45deg) translate(6px, 6px);
	}
	
	.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
		opacity: 0;
	}
	
	.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
		transform: rotate(-45deg) translate(6px, -6px);
	}
	
	.mobile-menu-content {
		position: fixed;
		top: 0;
		right: -100%;
		width: 280px;
		height: 100vh;
		background: linear-gradient(135deg, #18385F, #4a90e2);
		box-shadow: -5px 0 15px rgba(0,0,0,0.3);
		transition: right 0.3s ease;
		overflow-y: auto;
		z-index: 1000;
	}
	
	.mobile-menu-content.active {
		right: 0;
	}
	
	.mobile-menu-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 20px;
		border-bottom: 2px solid rgba(255,255,255,0.2);
		background: rgba(0,0,0,0.1);
	}
	
	.mobile-menu-header h3 {
		color: white;
		font-size: 18px;
		margin: 0;
		font-weight: bold;
	}
	
	.mobile-menu-close {
		background: none;
		border: none;
		color: white;
		font-size: 24px;
		cursor: pointer;
		padding: 0;
		width: 30px;
		height: 30px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
		transition: background-color 0.3s ease;
	}
	
	.mobile-menu-close:hover {
		background: rgba(255,255,255,0.2);
	}
	
	.mobile-menu-items {
		padding: 20px 0;
	}
	
	.mobile-menu-item {
		display: block;
		padding: 5px 5px;
		color: white;
		text-decoration: none;
		font-size: 16px;
		font-weight: 500;
		border-bottom: 1px solid rgba(255,255,255,0.1);
		transition: all 0.3s ease;
		position: relative;
	}
	
	.mobile-menu-item:hover {
		background: rgba(255,255,255,0.1);
		padding-left: 30px;
		color: #feca57;
	}
	
	.mobile-menu-item.current {
		background: rgba(255,255,255,0.2);
		color: #feca57;
		font-weight: bold;
	}
	
	.mobile-menu-item.current::before {
		content: "▶";
		position: absolute;
		left: 10px;
		color: #feca57;
	}
	
	/* メニューオーバーレイ */
	.mobile-menu-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0,0,0,0.5);
		z-index: 999;
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s ease;
	}
	
	.mobile-menu-overlay.active {
		opacity: 1;
		visibility: visible;
	}
	
	.board1 {
		grid-column: 1;
		grid-row: 3;
		margin: 5px;
		padding: 8px;
		font-size: 14px;
	}
	
	.board2 {
		grid-column: 1;
		grid-row: 4;
		margin: 5px;
		padding: 8px;
		font-size: 14px;
	}
	
	.cinema_introduction {
		grid-column: 1;
		grid-row: 5;
		margin: 5px;
		padding: 8px;
		font-size: 14px;
	}
	
	.board3 {
		grid-column: 1;
		grid-row: 6;
		margin: 5px;
		padding: 8px;
		font-size: 14px;
	}
	
	.poster {
		grid-column: 1;
		grid-row: 7;
		margin: 5px;
		padding: 8px;
		font-size: 14px;
	}
	
	.footer {
		grid-column: 1;
		grid-row: 8;
		margin: 5px;
		padding: 8px;
		font-size: 14px;
	}
	
	/* スマホ用カレンダーアイコン */
	.calendar-icon-container {
		top: 5px;
		left: 15px;
	}
	
	.calendar-icon {
		width: 42px;
		height: 28px;
		padding: 1px;
	}
	
	.calendar-label {
		font-size: 7px;
		margin-bottom: 0px;
	}
	
	.calendar-month {
		font-size: 7px;
	}
	
	.calendar-brand {
		font-size: 7px;
		margin-top: 0px;
	}
	
	/* スケジュールのスマートフォン対応 */
	.board2 h3 {
		font-size: 18px;
		margin-bottom: 12px;
	}
	
	.schedule_item {
		margin-bottom: 10px;
		padding: 6px;
	}
	
	.schedule_time {
		font-size: 14px;
		margin-bottom: 3px;
	}
	
	.schedule_category {
		font-size: 12px;
		margin-bottom: 2px;
	}
	
	.schedule_title {
		font-size: 13px;
		line-height: 1.3;
	}
	
	.cinema1, .cinema2, .cinema3, .cinema4, .cinema5, .cinema6, .cinema7, .cinema8 {
		font-size: 14px;
		padding: 8px;
	}
	
	.footer {
		font-size: 14px;
		padding: 8px;
	}
	
	.cinema_img {
		max-width: 250px;
	}
	
	.poster_img {
		max-width: 350px;
		display: block;
		margin: 0 auto;
	}
	
	/* 作品紹介のスマートフォン対応 */
	.cinema_introduction {
		padding: 12px;
	}
	
	.cinema_introduction h2 {
		font-size: 20px;
		margin-bottom: 20px;
	}
	
	.creator_title {
		font-size: 16px;
		margin-bottom: 15px;
		padding: 8px;
	}
	
	.work_item {
		flex-direction: column;
		gap: 12px;
		margin-bottom: 20px;
		padding: 10px;
	}
	
	.work_title {
		font-size: 14px;
		margin-bottom: 6px;
	}
	
	.work_yeartime {
		font-size: 12px;
		margin-bottom: 8px;
	}
	
	.work_description {
		font-size: 12px;
		line-height: 1.4;
	}
	
	.work_image {
		width: 100%;
		max-width: 250px;
		margin: 0 auto;
	}
	
	.work_img {
		max-width: 100%;
	}
}

/* 作品紹介セクションのスタイル - デバッグ用 */
.cinema_introduction {
	grid-column: 1 / span 3;
	grid-row: 7;
	background-color: #f0f8ff;
	margin: 10px;
	padding: 20px;
}

.cinema_introduction h2 {
	font-size: 24px;
	font-weight: bold;
	color: #18385F;
	margin-bottom: 30px;
	text-align: center;
	border-bottom: 2px solid #18385F;
	padding-bottom: 10px;
}

.creator_section {
	margin-bottom: 40px;
}

.creator_title {
	font-size: 18px;
	font-weight: bold;
	color: #18385F;
	margin-bottom: 20px;
	padding: 10px;
	background-color: #e8f4fd;
	border-left: 4px solid #18385F;
	border-radius: 4px;
}

.work_item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 30px;
	padding: 15px;
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work_item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.work_content {
	flex: 1;
	min-width: 0;
}

.work_title {
	font-size: 16px;
	font-weight: bold;
	color: #18385F;
	margin-bottom: 8px;
	line-height: 1.4;
}

.work_yeartime {
	font-size: 14px;
	color: #666666;
	margin-bottom: 12px;
	font-style: italic;
}

.work_description {
	font-size: 14px;
	color: #333333;
	line-height: 1.6;
}

.work_image {
	flex-shrink: 0;
	width: 200px;
	text-align: center;
}

.work_img {
	width: 100%;
	max-width: 200px;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: transform 0.3s ease;
}

.work_img:hover {
	transform: scale(1.05);
}

