/*
 Theme Name: Catchrepo
 Theme URI: https://catchrepo.com/
 Author: Catchrepo Team
 Author URI: https://catchrepo.com/
 Description: Custom theme for Catchrepo providing a flexible foundation for future development.
 Version: 1.0.0
 Requires at least: 6.0
 Tested up to: 6.4
 Requires PHP: 7.4
 Text Domain: catchrepo
*/

/* Add base styles here. */

.widget-area {
	padding: 1.5rem;
}

.widget {
	margin: 0 0 2rem;
}

.widget-title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
	font-weight: 600;
}

.widget-area ul {
	margin: 0 0 0 1.25rem;
	padding: 0;
}

.widget-hint {
	margin: 0;
	color: #6a6f76;
	font-size: 0.85rem;
}

.main-navigation {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 1.25rem 2rem;
	background: #ffffff;
	border-bottom: 1px solid #e4e6eb;
}

.main-navigation .menu,
.main-navigation ul {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
	color: inherit;
}

.main-navigation li {
	margin: 0;
}

.main-navigation a {
	color: #1b1f25;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	position: relative;
}

.main-navigation a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.35rem;
	height: 2px;
	background: rgba(27, 31, 37, 0);
	transition: background 0.2s ease;
}

.main-navigation a:hover::after,
.main-navigation a:focus::after,
.main-navigation .current-menu-item > a::after {
	background: rgba(27, 31, 37, 0.85);
}

.main-navigation a:hover,
.main-navigation a:focus {
	opacity: 0.85;
}

.menu-item-branding {
	margin-right: auto;
}

.menu-branding__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: inherit;
}

.menu-branding__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f0f4ff;
	border: 1px solid #d6e2ff;
	overflow: hidden;
}

.menu-branding__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.menu-branding__text {
	font-weight: 700;
	color: #1b1f25;
	font-size: 1.05rem;
}

.menu-branding__link:hover .menu-branding__text,
.menu-branding__link:focus .menu-branding__text {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.main-navigation {
		flex-wrap: wrap;
		gap: 1rem;
		padding: 1rem 1.25rem;
	}

	.main-navigation .menu,
	.main-navigation ul {
		flex-wrap: wrap;
		gap: 1rem;
	}

	.menu-item-branding {
		width: 100%;
		margin-right: 0;
	}

	.main-navigation li {
		padding: 0.35rem 0;
	}
}

.home-template {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.5rem 4rem;
}

.home-hero {
	background: #f5f7fb;
	border-radius: 12px;
	padding: 3rem 2rem;
	margin: 2rem 0 3rem;
	text-align: center;
}

.home-hero__title {
	margin-bottom: 1rem;
	font-size: clamp(2rem, 3vw, 2.6rem);
}

.home-section {
	padding: 3rem 0;
	border-top: 1px solid #e4e6eb;
}

.home-section:first-of-type {
	border-top: 0;
}

.home-section__header {
	margin-bottom: 1.5rem;
	text-align: center;
}

.home-section__title {
	margin: 0;
	font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.home-section__subtitle {
	margin: 0.5rem 0 0;
	color: #6a6f76;
	font-size: 0.95rem;
}

.home-section__empty {
	text-align: center;
	color: #6a6f76;
}

.home-events__list,
.home-notices__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
}

.home-events__list {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 1200px) {
	.home-events__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.archive-events {
	margin-top: 2rem;
}

.archive-events__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2.2rem;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.archive-events__item {
	margin: 0;
}

.archive-event-card {
	position: relative;
	background: #fff;
	border: 1px solid #e4e6eb;
	border-radius: 10px;
	padding: 1.6rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	transform: none;
	transition: box-shadow 0.2s ease;
	z-index: 0;
}

.archive-event-card:hover {
	z-index: 2;
	box-shadow: 0 12px 30px rgba(36, 46, 66, 0.08);
	transform: none;
}

.archive-event-card__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.4;
}

.archive-event-card__title a {
	text-decoration: none;
	color: inherit;
}

.archive-event-card__schedule {
	margin: 0;
	color: #0f58c9;
	font-weight: 600;
	font-size: 0.95rem;
}

.archive-event-card__range-sep {
	margin: 0 0.4rem;
	display: inline-block;
}

.archive-event-card__summary {
	margin: 0;
	color: #4a5058;
	line-height: 1.6;
}

.archive-event-card__more {
	margin-top: auto;
}

.archive-event-card__more-link {
	color: #0f58c9;
	font-weight: 600;
	text-decoration: none;
}

.archive-event-card__more-link:hover,
.archive-event-card__more-link:focus {
	text-decoration: underline;
}
.home-events__item,
.home-notices__item {
	background: #fff;
	border: 1px solid #e4e6eb;
	border-radius: 10px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-events__item {
	position: relative;
}

.home-events__link,
.home-notices__link {
	display: block;
	padding: 1.5rem;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.home-events__item:hover,
.home-notices__item:hover {
	box-shadow: 0 12px 30px rgba(36, 46, 66, 0.08);
	transform: translateY(-4px);
}

.home-events__date,
.home-notices__date {
	display: block;
	color: #0f58c9;
	font-weight: 600;
	margin-bottom: 0.75rem;
	font-size: 0.9rem;
}

.home-events__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 12px;
	height: 12px;
	background: #e53935;
	border-radius: 999px;
	box-shadow: 0 0 0 3px #fff;
}

.home-events__period {
	margin: 0 0 0.75rem;
}

.home-events__period .home-events__date {
	margin-bottom: 0;
}

.home-events__date-range {
	display: block;
	margin: -0.5rem 0 0.75rem;
	color: #47505a;
	font-size: 0.85rem;
}

.home-events__title,
.home-notices__title {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
}

.home-events__prefecture {
	margin: 0 0 0.75rem;
	font-weight: 600;
	color: #2c3439;
}

.home-events__excerpt p {
	margin: 0;
	color: #4c5258;
	font-size: 0.95rem;
}

.home-calendar__wrap {
	overflow-x: auto;
	background: #fff;
	border: 1px solid #e4e6eb;
	border-radius: 10px;
	padding: 1rem;
}

.home-calendar__wrap table {
	margin: 0 auto;
}

.home-calendar__nav {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.home-calendar__nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 1.1rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #0f58c9;
	border: 1px solid #bcd2f5;
	border-radius: 999px;
	text-decoration: none;
	background: #f3f7ff;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-calendar__nav-btn:hover,
.home-calendar__nav-btn:focus {
	background: #0f58c9;
	color: #ffffff;
	border-color: #0f58c9;
}

.home-calendar__nav-btn--today {
	background: #0f58c9;
	color: #ffffff;
	border-color: #0f58c9;
}

.home-calendar__nav-btn--today:hover,
.home-calendar__nav-btn--today:focus {
	background: #0c4baa;
	border-color: #0c4baa;
}

.home-calendar__view-toggle {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
	flex-wrap: wrap;
}

.home-calendar__view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 1.1rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: #1f2d3d;
	border: 1px solid #d5dae4;
	border-radius: 999px;
	text-decoration: none;
	background: #ffffff;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-calendar__view-btn:hover,
.home-calendar__view-btn:focus {
	border-color: #0f58c9;
	color: #0f58c9;
}

.home-calendar__view-btn.is-active {
	background: #0f58c9;
	color: #ffffff;
	border-color: #0f58c9;
	box-shadow: 0 6px 16px rgba(15, 88, 201, 0.25);
}

.event-calendar {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
}

.event-calendar thead th {
	padding: 0.5rem 0;
	text-align: center;
	font-weight: 600;
	font-size: 0.95rem;
	color: #1f2d3d;
	border-bottom: 1px solid #dfe4ec;
}

.event-calendar__cell {
	position: relative;
	padding: 0.4rem 0.25rem 0.6rem;
	min-height: 110px;
	border: 1px solid #e4e6eb;
	background: #ffffff;
	vertical-align: top;
}

.event-calendar__cell.is-outside {
	background: #f5f7fb;
	color: #9aa2ad;
}

.event-calendar__cell.is-today {
	box-shadow: inset 0 0 0 2px rgba(15, 88, 201, 0.4);
}

.event-calendar__date {
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 0.25rem;
	color: inherit;
}

.event-band {
	display: block;
	margin-top: 0.3rem;
	padding: 0.25rem 0.4rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #12315e;
	background: #d6e4ff;
	text-decoration: none;
	border-radius: 12px;
	transition: background 0.2s ease, color 0.2s ease;
}

.event-band.is-start {
	border-top-left-radius: 999px;
	border-bottom-left-radius: 999px;
}

.event-band.is-end {
	border-top-right-radius: 999px;
	border-bottom-right-radius: 999px;
}

.event-band.is-middle {
	border-radius: 0;
}

.event-band.is-single {
	border-radius: 999px;
}

.event-band:hover,
.event-band:focus {
	background: #0f58c9;
	color: #ffffff;
}

.event-band__title {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.event-calendar__more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.5rem;
	padding: 0.25rem 0.9rem;
	border-radius: 999px;
	background: #0f58c9;
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.event-calendar__more-btn:hover,
.event-calendar__more-btn:focus {
	background: #0c4baa;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(15, 88, 201, 0.35);
}

.home-prefecture-map__canvas {
	max-width: 680px;
	margin: 0 auto;
	background: #f8f9fc;
	border-radius: 16px;
	padding: 1.5rem;
	box-shadow: inset 0 0 0 1px rgba(15, 88, 201, 0.06);
}

.home-prefecture-map__note {
	margin-top: 1.25rem;
	text-align: center;
	font-size: 0.9rem;
	color: #6a6f76;
}

.prefecture-map__svg {
	width: 100%;
	height: auto;
}

.prefecture-map__svg a.prefecture-node {
	cursor: pointer;
	text-decoration: none;
}

.prefecture-map__svg g.prefecture-node {
	cursor: default;
}

.day-events-page {
	padding: 2rem 0 3rem;
	background: #f4f6fb;
}

.day-events {
	max-width: 860px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 20px;
	padding: 2rem;
	box-shadow: 0 20px 45px -25px rgba(19, 44, 82, 0.25);
}

.day-events .entry-header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.day-events__date-label {
	margin: 0.5rem 0 0;
	font-size: 1rem;
	color: #5b6372;
}

.day-events__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 1.5rem 0;
	padding: 0.75rem 1rem;
	background: #f0f4ff;
	border-radius: 12px;
}

.day-events__nav-link {
	color: #0f58c9;
	font-weight: 600;
	text-decoration: none;
}

.day-events__nav-link:hover,
.day-events__nav-link:focus {
	text-decoration: underline;
}

.day-events__nav-link.is-disabled,
.day-events__nav-link.is-disabled:hover,
.day-events__nav-link.is-disabled:focus {
	color: #9aa2ad;
	pointer-events: none;
	text-decoration: none;
}

.day-events__nav-current {
	font-weight: 600;
	color: #1f2d3d;
}

.day-events__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.day-events__item {
	border: 1px solid #e4e7ec;
	border-radius: 16px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1rem;
	background: #fff;
}

.day-events__item-headline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.day-events__item-title {
	margin: 0;
	font-size: 1.15rem;
}

.day-events__item-title a {
	color: #0f1f3d;
	text-decoration: none;
}

.day-events__item-title a:hover,
.day-events__item-title a:focus {
	text-decoration: underline;
}

.day-events__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.7rem;
	background: #fff2cc;
	color: #8a6c00;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 999px;
}

.day-events__schedule {
	margin: 0.75rem 0 0.5rem;
	color: #516079;
	font-size: 0.95rem;
}

.day-events__summary {
	margin: 0 0 0.75rem;
	color: #393f4c;
	line-height: 1.6;
}

.day-events__meta {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	color: #2d3f57;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.day-events__meta-pref,
.day-events__meta-location {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: #eef2ff;
	color: #334155;
}

.day-events__detail {
	margin: 0 0 0.75rem;
	color: #434b5a;
	line-height: 1.7;
}

.day-events__detail p:last-child {
	margin-bottom: 0;
}

.day-events__source {
	margin: 0 0 0.5rem;
}

.day-events__source a {
	font-weight: 600;
	color: #0f58c9;
	text-decoration: none;
}

.day-events__source a:hover,
.day-events__source a:focus {
	text-decoration: underline;
}

.day-events__link a {
	font-weight: 600;
	color: #0f58c9;
	text-decoration: none;
}

.day-events__link a:hover,
.day-events__link a:focus {
	text-decoration: underline;
}

.event-list-search {
	margin: 1.5rem 0 1rem;
}

.event-list-search__form {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	align-items: center;
}

.event-list-search__form input[type="search"] {
	flex: 1 1 220px;
	padding: 0.55rem 0.9rem;
	border: 1px solid #d0d5dd;
	border-radius: 10px;
	font-size: 1rem;
}

.event-list-search__btn {
	padding: 0.55rem 1.5rem;
	border-radius: 10px;
	border: none;
	background: #0f58c9;
	color: #ffffff;
	font-weight: 600;
	cursor: pointer;
}

.event-list-search__btn:hover,
.event-list-search__btn:focus {
	background: #0c4baa;
}

.day-events__pagination {
	margin: 2rem 0 1rem;
	text-align: center;
}

.day-events__pagination ul {
	display: inline-flex;
	gap: 0.4rem;
	list-style: none;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
	justify-content: center;
}

.day-events__pagination li {
	margin: 0;
}

.day-events__pagination a,
.day-events__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-weight: 600;
}

.day-events__pagination a {
	border: 1px solid #d0d5dd;
	color: #0f58c9;
	text-decoration: none;
}

.day-events__pagination .current {
	background: #0f58c9;
	color: #ffffff;
	border: 1px solid #0f58c9;
}

.day-events__pagination a:hover,
.day-events__pagination a:focus {
	background: #0f58c9;
	color: #ffffff;
	border-color: #0f58c9;
}

.day-events__empty {
	text-align: center;
	padding: 2rem 0;
	color: #6a6f76;
}

@media (max-width: 768px) {
	.day-events {
		padding: 1.5rem;
	}

	.day-events__nav {
		flex-direction: column;
		gap: 0.5rem;
		text-align: center;
	}

	.day-events__item-headline {
		flex-direction: column;
		align-items: flex-start;
	}
}

.prefecture-node rect {
	fill: #e6ecff;
	stroke: #d5dcf3;
	stroke-width: 1;
	transition: fill 0.2s ease, transform 0.2s ease;
}

.prefecture-node text {
	font-size: 14px;
	font-weight: 600;
	fill: #1f2d3d;
	pointer-events: none;
}

.prefecture-map__svg a.prefecture-node:hover rect,
.prefecture-map__svg a.prefecture-node:focus rect {
	fill: #0f58c9;
	transform: translateY(-3px);
}

.prefecture-map__svg a.prefecture-node:hover text,
.prefecture-map__svg a.prefecture-node:focus text {
	fill: #ffffff;
}

.prefecture-node.is-disabled rect {
	fill: #f0f2f5;
	stroke: #d9dde5;
}

.prefecture-node.is-disabled text {
	fill: #9aa2ad;
}

.prefecture-node.is-disabled {
	cursor: default;
}
