/**
 * Main Stylesheet
 * Disaster Support Theme
 */

/* ========================================
   リセットとベース
   ======================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	line-height: 1.7;
	color: #333;
	background-color: #fff;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: #0066cc;
	text-decoration: none;
	transition: opacity 0.3s;
}

a:hover {
	opacity: 0.8;
}

/* ========================================
   コンテナとレイアウト
   ======================================== */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ========================================
   ヘッダー
   ======================================== */
.site-header {
	background-color: #fff;
	border-bottom: 1px solid #e0e0e0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 0;
	gap: 20px;
	position: relative;
}

.site-logo {
	flex-shrink: 0;
}

.site-logo img {
	max-height: 50px;
	width: auto;
}

.site-title {
	font-size: 1.5rem;
	font-weight: bold;
	color: #333;
}

.main-navigation {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 30px;
}

.nav-menu a {
	color: #333;
	font-weight: 500;
}

.header-cta {
	flex-shrink: 0;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	flex-direction: column;
	gap: 5px;
}

.menu-toggle span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: #333;
	border-radius: 2px;
	transition: all 0.3s;
}

/* ========================================
   ボタン
   ======================================== */
.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 4px;
	font-weight: 500;
	text-align: center;
	transition: all 0.3s;
	cursor: pointer;
	border: none;
	touch-action: manipulation; /* タッチ操作の遅延を防ぐ */
	min-height: 44px; /* タッチ領域の最小サイズ */
	min-width: 44px;
	-webkit-tap-highlight-color: transparent; /* タップ時のハイライトを無効化 */
}

.btn-primary {
	background-color: #0066cc;
	color: #fff;
}

.btn-primary:hover {
	background-color: #0052a3;
	opacity: 1;
}

.btn-secondary {
	background-color: #f5f5f5;
	color: #333;
	border: 1px solid #ddd;
}

.btn-secondary:hover {
	background-color: #e8e8e8;
	opacity: 1;
}

.btn-large {
	padding: 16px 32px;
	font-size: 1.1rem;
}

	.btn-small {
		padding: 10px 16px;
		font-size: 0.9rem;
		min-height: 40px; /* タッチ領域を確保 */
	}

.link-small {
	font-size: 0.9rem;
	color: #666;
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero-section {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 60px 0;
	text-align: center;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
}

.hero-title {
	font-size: 2.5rem;
	font-weight: bold;
	margin-bottom: 20px;
	line-height: 1.3;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.hero-catch {
	font-size: 1.5rem;
	margin-bottom: 15px;
	font-weight: 500;
}

.hero-description {
	font-size: 1.1rem;
	margin-bottom: 40px;
	opacity: 0.95;
}

.hero-actions {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ========================================
   スライダーセクション
   ======================================== */
.slider-section {
	padding: 60px 0;
	background-color: #f9f9f9;
}

.section-title {
	font-size: 2rem;
	font-weight: bold;
	text-align: center;
	margin-bottom: 40px;
	color: #333;
}

.slider-wrapper {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

	.slider-container {
		padding-bottom: 75%; /* スマートフォンで少し縦長に */
	}

.slider-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.6s ease-in-out;
}

.slider-item.active {
	opacity: 1;
	z-index: 1;
}

.slider-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.slider-prev,
.slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(255, 255, 255, 0.8);
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 2rem;
	color: #333;
	cursor: pointer;
	z-index: 10;
	transition: background-color 0.3s, opacity 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.slider-prev:hover,
.slider-next:hover {
	background-color: rgba(255, 255, 255, 1);
}

.slider-prev {
	left: 15px;
}

.slider-next {
	right: 15px;
}

.slider-indicators {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

.slider-indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: none;
	background-color: rgba(0, 0, 0, 0.3);
	cursor: pointer;
	transition: background-color 0.3s, transform 0.3s;
	padding: 0;
}

.slider-indicator:hover {
	background-color: rgba(0, 0, 0, 0.5);
	transform: scale(1.2);
}

.slider-indicator.active {
	background-color: #0066cc;
	transform: scale(1.3);
}

/* ========================================
   ロゴアニメーション
   ======================================== */
.logo-animation-container {
	position: relative;
	width: 100%;
	height: 120px;
	overflow: hidden;
	margin: 40px 0;
	background-color: transparent;
}

.logo-animation {
	position: absolute;
	top: 50%;
	left: -300px;
	transform: translateY(-50%);
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
	z-index: 100;
}

.logo-animation.active {
	opacity: 1;
	animation: slideRight 6s linear forwards;
}

.animated-logo {
	max-height: 100px;
	max-width: 300px;
	width: auto;
	height: auto;
	object-fit: contain;
	background: none;
	background-color: transparent;
	display: block;
}

.animated-logo-text {
	font-size: 2rem;
	font-weight: bold;
	color: #0066cc;
	white-space: nowrap;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes slideRight {
	0% {
		left: -300px;
	}
	15% {
		left: 10%;
	}
	85% {
		left: 90%;
	}
	100% {
		left: calc(100% + 300px);
		opacity: 0;
	}
}

/* ========================================
   スケジュールセクション
   ======================================== */
.schedule-section {
	padding: 60px 0;
}

.schedule-table-wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.schedule-table-wrapper::-webkit-scrollbar {
	height: 8px;
}

.schedule-table-wrapper::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.schedule-table-wrapper::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.schedule-table-wrapper::-webkit-scrollbar-thumb:hover {
	background: #555;
}

.schedule-table {
	width: 100%;
	min-width: 600px; /* スマートフォンで横スクロールを確実にする */
	border-collapse: collapse;
	background-color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	overflow: hidden;
}

.schedule-table thead {
	background-color: #f5f5f5;
}

.schedule-table th {
	padding: 15px;
	text-align: left;
	font-weight: 600;
	border-bottom: 2px solid #ddd;
}

.schedule-table td {
	padding: 15px;
	border-bottom: 1px solid #eee;
}

.schedule-table tbody tr:hover {
	background-color: #f9f9f9;
}

.schedule-title a {
	color: #0066cc;
	font-weight: 500;
}

.status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 0.9rem;
	font-weight: 500;
}

.status-pre_acceptance {
	background-color: #fff3cd;
	color: #856404;
}

.status-accepting {
	background-color: #d4edda;
	color: #155724;
}

.status-closed {
	background-color: #f8d7da;
	color: #721c24;
}

.status-finished {
	background-color: #e2e3e5;
	color: #383d41;
}

.no-schedules {
	text-align: center;
	padding: 40px;
	color: #666;
}

/* ========================================
   チラシグリッドセクション
   ======================================== */
.flyer-section {
	padding: 60px 0;
	background-color: #f9f9f9;
}

.flyer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
	margin-bottom: 40px;
}

.flyer-card {
	background-color: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
}

.flyer-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.flyer-card-image {
	width: 100%;
	overflow: hidden;
	background-color: #f0f0f0;
}

.flyer-card-image img {
	width: 100%;
	height: auto;
	cursor: pointer;
	transition: transform 0.3s;
}

.flyer-card-image img:hover {
	transform: scale(1.05);
}

.flyer-card-content {
	padding: 20px;
}

.flyer-card-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 15px;
	color: #333;
}

.flyer-card-action {
	margin-bottom: 10px;
}

.flyer-card-link {
	margin-top: 10px;
}

.flyer-section-more {
	text-align: center;
	margin-top: 30px;
}

.no-flyers {
	text-align: center;
	padding: 40px;
	color: #666;
}

/* ========================================
   今日の一言セクション
   ======================================== */
.daily-message-section {
	padding: 60px 0;
	background-color: #f9f9f9;
}

.daily-message-block {
	max-width: 800px;
	margin: 0 auto;
	background-color: #fff;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.daily-message-icon {
	font-size: 3rem;
	flex-shrink: 0;
	line-height: 1;
}

.daily-message-content {
	flex: 1;
}

.daily-message-title {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 15px;
	color: #333;
}

.daily-message-text {
	font-size: 1.8rem;
	line-height: 1.8;
	color: #333;
	margin: 0;
	font-weight: 600;
}

/* ========================================
   お問い合わせセクション
   ======================================== */
.contact-section {
	padding: 60px 0;
}

.contact-block {
	max-width: 600px;
	margin: 0 auto;
	background-color: #f9f9f9;
	padding: 40px;
	border-radius: 8px;
}

.contact-item {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	gap: 15px;
}

.contact-item:last-child {
	margin-bottom: 0;
}

.contact-label {
	font-weight: 600;
	min-width: 80px;
	color: #333;
}

.contact-value {
	color: #0066cc;
	font-weight: 500;
}

/* ========================================
   画像拡大表示（ライトボックス）
   ======================================== */
.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.lightbox.active {
	display: flex;
}

.lightbox-content {
	max-width: 90%;
	max-height: 90%;
	position: relative;
}

.lightbox-content img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 4px;
}

.lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	transition: background-color 0.3s;
}

.lightbox-close:hover {
	background-color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   固定ページ
   ======================================== */
.about-page {
	padding: 60px 0;
}

.entry-header {
	margin-bottom: 40px;
	text-align: center;
}

.entry-title {
	font-size: 2.5rem;
	font-weight: bold;
	color: #333;
}

.entry-content {
	max-width: 800px;
	margin: 0 auto;
	font-size: 1.1rem;
	line-height: 1.8;
}

.entry-content h2 {
	font-size: 1.8rem;
	margin-top: 40px;
	margin-bottom: 20px;
	color: #333;
}

.entry-content h3 {
	font-size: 1.4rem;
	margin-top: 30px;
	margin-bottom: 15px;
	color: #333;
}

.entry-content p {
	margin-bottom: 20px;
}

/* ========================================
   アーカイブページ
   ======================================== */
.archive-header {
	margin: 60px 0 40px;
	text-align: center;
}

.archive-title {
	font-size: 2.5rem;
	font-weight: bold;
	color: #333;
}

.schedule-archive,
.flyer-archive {
	display: grid;
	gap: 30px;
	margin-bottom: 40px;
}

.schedule-item,
.flyer-item {
	background-color: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.schedule-item-title,
.flyer-item-title {
	font-size: 1.5rem;
	margin-bottom: 20px;
}

.schedule-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 20px;
}

.meta-item {
	display: flex;
	gap: 8px;
}

.meta-label {
	font-weight: 600;
	color: #666;
}

.meta-value {
	color: #333;
}

.schedule-item-action,
.flyer-item-action {
	margin-top: 20px;
}

.flyer-item-image {
	margin-bottom: 20px;
}

.flyer-item-image img {
	width: 100%;
	height: auto;
	cursor: pointer;
}

.no-posts {
	text-align: center;
	padding: 60px;
	color: #666;
	font-size: 1.1rem;
}

/* ========================================
   詳細ページ
   ======================================== */
.schedule-single,
.flyer-single {
	padding: 60px 0;
}

.schedule-details,
.flyer-single-image {
	margin-bottom: 40px;
}

.detail-item {
	margin-bottom: 20px;
	display: flex;
	align-items: flex-start;
	gap: 15px;
}

.detail-label {
	font-weight: 600;
	min-width: 120px;
	color: #333;
}

.detail-value {
	color: #333;
}

.flyer-image {
	margin: 30px 0;
}

.flyer-image img {
	max-width: 100%;
	height: auto;
	cursor: pointer;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.schedule-description {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid #eee;
}

.flyer-single-actions {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 30px;
}

/* ========================================
   フッター
   ======================================== */
.site-footer {
	background-color: #333;
	color: #fff;
	padding: 30px 0;
	text-align: center;
}

.copyright {
	font-size: 0.9rem;
	opacity: 0.8;
}

/* ========================================
   ページネーション
   ======================================== */
.pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 40px 0;
	list-style: none;
	flex-wrap: wrap;
}

.pagination ul {
	display: flex;
	justify-content: center;
	gap: 10px;
	list-style: none;
	flex-wrap: wrap;
}

.pagination li {
	list-style: none;
}

.pagination a,
.pagination span {
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #333;
	background-color: #fff;
	text-decoration: none;
	display: inline-block;
}

.pagination a:hover {
	background-color: #f5f5f5;
	border-color: #0066cc;
	color: #0066cc;
}

.pagination .current,
.pagination .page-numbers.current {
	background-color: #0066cc;
	color: #fff;
	border-color: #0066cc;
}

.pagination-nav {
	margin: 40px 0;
}

/* ========================================
   過去の講座一覧ページ
   ======================================== */
.past-schedules-grid {
	margin-bottom: 40px;
}

.past-schedule-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.past-schedule-card .flyer-card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.past-schedule-card .flyer-card-title {
	margin-bottom: 10px;
	font-size: 1rem;
	line-height: 1.4;
}

.past-schedule-card .flyer-card-title a {
	color: #333;
	text-decoration: none;
}

.past-schedule-card .flyer-card-title a:hover {
	color: #0066cc;
}

.past-schedule-date {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 15px;
}

.past-schedule-card .flyer-card-link {
	margin-top: auto;
	padding-top: 10px;
}

/* ========================================
   モバイルメニュー
   ======================================== */
@media (max-width: 768px) {
	.menu-toggle {
		display: flex;
	}

	.main-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: #fff;
		border-top: 1px solid #e0e0e0;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		display: none;
	}

	.main-navigation.active {
		display: block;
	}

	.nav-menu {
		flex-direction: column;
		padding: 20px;
		gap: 0;
	}

	.nav-menu li {
		border-bottom: 1px solid #eee;
		padding: 15px 0;
	}

	.nav-menu li:last-child {
		border-bottom: none;
	}

	.nav-menu a {
		display: block;
		font-size: 1.1rem;
	}

	.header-cta {
		display: none;
	}

	.menu-toggle.active span:nth-child(1) {
		transform: rotate(45deg) translate(8px, 8px);
	}

	.menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle.active span:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -7px);
	}
}

/* ========================================
   レスポンシブ（タブレット）
   ======================================== */
@media (max-width: 768px) {
	.hero-title {
		font-size: 2rem;
	}

	.hero-catch {
		font-size: 1.2rem;
	}

	.section-title {
		font-size: 1.6rem;
	}

	.slider-prev,
	.slider-next {
		width: 40px;
		height: 40px;
		font-size: 1.5rem;
	}

	.slider-prev {
		left: 10px;
	}

	.slider-next {
		right: 10px;
	}

	.schedule-table {
		font-size: 0.9rem;
	}

	.schedule-table th,
	.schedule-table td {
		padding: 10px 8px;
	}

	.flyer-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 20px;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-actions .btn {
		width: 100%;
		min-height: 48px; /* スマートフォンでタッチしやすいサイズ */
		font-size: 1rem;
	}
}

/* ========================================
   レスポンシブ（スマートフォン）
   ======================================== */
@media (max-width: 480px) {
	html {
		font-size: 14px;
	}

	.container {
		padding: 0 15px;
	}

	.hero-section {
		padding: 50px 0;
	}

	.hero-title {
		font-size: 1.6rem;
	}

	.hero-catch {
		font-size: 1.1rem;
	}

	.section-title {
		font-size: 1.4rem;
		margin-bottom: 30px;
	}

	.schedule-section,
	.flyer-section,
	.daily-message-section,
	.contact-section,
	.slider-section {
		padding: 40px 0;
	}

	.logo-animation-container {
		height: 100px;
		margin: 30px 0;
	}

	.animated-logo {
		max-height: 80px;
		max-width: 240px;
	}

	.animated-logo-text {
		font-size: 1.5rem;
	}

	.slider-prev,
	.slider-next {
		width: 44px; /* タッチ領域の最小サイズ */
		height: 44px;
		font-size: 1.5rem;
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}

	.slider-prev {
		left: 5px;
	}

	.slider-next {
		right: 5px;
	}

	.slider-indicator {
		width: 12px;
		height: 12px;
		min-width: 44px; /* タッチ領域を確保 */
		min-height: 44px;
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}

	.schedule-table {
		font-size: 0.85rem;
		min-width: 700px; /* スマートフォンでより確実に横スクロール */
	}

	.schedule-table th,
	.schedule-table td {
		padding: 10px 6px;
		white-space: nowrap; /* テキストの折り返しを防ぐ */
	}

	.schedule-table th:first-child,
	.schedule-table td:first-child {
		position: sticky;
		left: 0;
		background-color: #fff;
		z-index: 1;
		box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
	}

	.schedule-table thead th:first-child {
		background-color: #f5f5f5;
	}

	.flyer-grid,
	.past-schedules-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.pagination {
		flex-wrap: wrap;
		gap: 8px;
	}

	.pagination a,
	.pagination span {
		padding: 8px 12px;
		font-size: 0.9rem;
	}

	.daily-message-block {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 30px 20px;
	}

	.daily-message-icon {
		font-size: 2.5rem;
		margin-bottom: 10px;
	}

	.daily-message-title {
		font-size: 1.3rem;
	}

	.daily-message-text {
		font-size: 1.5rem;
		font-weight: 600;
	}

	.contact-block {
		padding: 30px 20px;
	}

	.contact-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.entry-title {
		font-size: 1.8rem;
	}

	.archive-title {
		font-size: 1.8rem;
	}

	.schedule-item,
	.flyer-item {
		padding: 20px;
	}

	.schedule-item-meta {
		flex-direction: column;
		gap: 10px;
	}

	.detail-item {
		flex-direction: column;
		gap: 5px;
	}

	.detail-label {
		min-width: auto;
	}
}
