/*
Theme Name: tenpuu_theme
Theme URI: https://example.com/themes/tenpuu
Author: Tenpuu Dev Team
Author URI: https://example.com
Description: Custom WordPress theme scaffold for the Tenpuu project.
Version: 0.1.１
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tenpuu_theme
*/

:root {
	--brown-700: #4c4948;
	--brown-600: #5d4037;
	--brown-500: #6b5b4a;
	--brown-400: #8d7968;
	--brown-300: #e8ddd0;

	--gold-700: #b59948;

	--white-700: #ffffff;
	--white-600: #faf7f0;
	--white-500: #fffef9;

	--header-height: 96px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Crimson Text", "Noto Serif JP", "Times New Roman", Times, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "MS PMincho", "MS Mincho", serif;
	/* background-color: var(--bg-cream); */
	color: var(--brown-600);
	line-height: 1.8;
	font-weight: 300;
}

body.is-preloading {
	overflow: hidden;
}

body.is-preloaded .site-preloader {
	opacity: 0;
	visibility: hidden;
	transform: scale(1.02);
}

.site-preloader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
}

.site-preloader.is-hidden {
	opacity: 0;
	visibility: hidden;
	transform: scale(1.02);
}

.site-preloader__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 1rem;
	text-align: center;
}

.site-preloader__logo-shell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(90px, 16vw, 120px);
	height: clamp(90px, 16vw, 120px);
}

.site-preloader__logo-shell::before {
	content: "";
	position: absolute;
	inset: clamp(14px, 2vw, 18px);
	border-radius: 50%;
	background: rgba(76, 73, 72, 0.04);
	z-index: 1;
}

.site-preloader__spinner {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(76, 73, 72, 0.15);
	border-top-color: rgba(76, 73, 72, 0.6);
	animation: sitePreloaderSpin 1.1s linear infinite;
	z-index: 2;
}

.site-preloader__logo,
.site-preloader__logo a {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 3;
}

.site-preloader__logo img,
.site-preloader__logo-fallback,
.site-preloader .custom-logo {
	width: clamp(32px, 10vw, 50px);
	height: auto;
	max-height: 100%;
}

.site-preloader__note {
	font-size: 12px;
	letter-spacing: 3px;
	color: rgba(76, 73, 72, 0.7);
}

.site-preloader a {
	pointer-events: none;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: none;
}

figure {
	margin: 0;
	padding: 0;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

h1 {
	font-size: clamp(22px, 2vw + 1rem, 26px);
}

h2 {
	font-size: clamp(20px, 2vw + 1rem, 24px);
	font-weight: 400;
	text-align: center;
	margin-bottom: 80px;
	letter-spacing: 6px;
	color: var(--brown-600);
	position: relative;
	animation: fadeInBlur 1s ease-out;
	animation-fill-mode: both;
}

h3 {
	font-size: clamp(16px, 2vw + 1rem, 18px);
	font-weight: 500;
	margin-bottom: 30px;
	letter-spacing: 3px;
	color: var(--brown-600);
}

button,
button:focus,
button:active {
	outline: none !important;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
}

button::-moz-focus-inner {
	border: 0;
}

#page {
	position: relative;
}

.site-header {
	background: var(--white-500);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	border-bottom: 1px solid var(--brown-300);
	box-shadow: 0 1px 8px rgba(93, 64, 55, 0.05);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	height: 96px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 60px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.logo {
	font-size: clamp(24px, 2vw + 1rem, 28px);
	font-weight: 500;
	color: var(--brown-600);
	letter-spacing: 4px;
	position: relative;
	line-height: 1;
	height: 3.2rem;
	width: auto;
}

.logo a {
	color: inherit;
	display: inline-block;
	height: 100%;
}

.custom-logo {
	width: auto;
	height: 100%;
	line-height: 1;
}

.primary-nav ul {
	list-style: none;
	display: flex;
	gap: 50px;
	margin: 0;
	padding: 0;
}

.primary-nav a {
	color: var(--brown-700);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 1px;
	position: relative;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-nav a::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--brown-600);
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-nav a:hover {
	transform: translateY(-1px);
}

.primary-nav a:hover::after {
	width: 100%;
}

#content {
	position: relative;
}

main {
	margin-top: var(--header-height);
}

.hero {
	width: 100%;
	max-width: 100%;
	height: calc(100vh - var(--header-height));
	min-height: 520px;
	background: var(--white-500);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero-video {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
}

.hero-video-media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero-video-media::-webkit-media-controls-start-playback-button {
	display: none;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(25, 45, 34, 0.38);
	z-index: 1;
	backdrop-filter: saturate(120%);
}

.hero-content {
	position: relative;
	max-width: 800px;
	z-index: 4;
	animation: fadeInBlurScale 0.8s ease-out;
	animation-delay: 4s;
	animation-fill-mode: both;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.hero.is-loading-video .hero-content {
	animation-delay: 0s;
}

.hero-content h1 {
	font-size: clamp(24px, 2vw + 1rem, 32px);
	font-weight: 400;
	letter-spacing: 12px;
	color: #fff;
	position: relative;
	margin: 0;
	max-width: 10rem;
	height: auto;
	line-height: 1;
	left: -5px;
}

.hero-content img {
	width: 100%;
	height: auto;
}

.hero-ornament {
	position: absolute;
	font-size: 48px;
	color: var(--brown-600);
	opacity: 0.6;
	animation: ornamentFloat 6s ease-in-out infinite;
}

.hero-ornament.left {
	left: -80px;
	top: 20px;
}

.hero-ornament.right {
	right: -80px;
	top: 20px;
	transform: scaleX(-1);
	animation-delay: 3s;
}

.subtitle {
	font-size: 16px;
	color: var(--white-700);
	letter-spacing: 3px;
	font-weight: 300;
	margin: 0;
}

section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 100px 60px;
	position: relative;
}

.info-section {
	margin: 0;
	max-width: none;
	padding: 120px 0;
	border-top: 1px solid var(--brown-300);
	border-bottom: 1px solid var(--brown-300);
	overflow: hidden;
}

.info-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 60px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 100px;
	text-align: center;
	position: relative;
	z-index: 2;
}

.info-block {
	position: relative;
	padding: 50px 40px;
	animation: fadeInBlur 1s ease-out;
	animation-fill-mode: both;
}

.info-block:nth-child(1) {
	animation-delay: 0.2s;
}

.info-block:nth-child(2) {
	animation-delay: 0.4s;
}

.info-block:nth-child(3) {
	animation-delay: 0.6s;
}

.info-block::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 1px;
	background: var(--gold-700);
}

.info-block h3 {
	font-size: clamp(16px, 2vw + 1rem, 18px);
	font-weight: 500;
	margin-bottom: 30px;
	letter-spacing: 3px;
	color: var(--brown-600);
}

.info-block p {
	font-size: 15px;
	color: var(--brown-500);
	line-height: 2.2;
	font-weight: 300;
}

.phone {
	font-size: 16px;
	color: var(--brown-600);
	letter-spacing: 1px;
	font-weight: 400;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone:hover {
	color: var(--gold-700);
	transform: scale(1.05);
}

#menu {
	overflow: hidden;
}

.menu-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 60px 80px;
	position: relative;
	z-index: 2;
}

.menu-list {
	margin-top: 80px;
	position: relative;
	z-index: 2;
}

.menu-list-heading {
	font-size: clamp(16px, 2vw + 1rem, 18px);
	letter-spacing: 3px;
	font-weight: 500;
	color: var(--brown-600);
	text-align: center;
	margin-bottom: 30px;
	animation: fadeInBlur 0.8s ease-out;
	animation-fill-mode: both;
}

.menu-list-items {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	border-top: 1px solid var(--brown-300);
}

.menu-list-item {
	display: grid;
	grid-template-columns: 1fr minmax(100px, auto);
	column-gap: 32px;
	align-items: center;
	padding: 12px 8px;
	border-bottom: 1px solid var(--brown-300);
	font-size: 16px;
	color: var(--brown-600);
	letter-spacing: 1px;
	animation: fadeInBlur 0.8s ease-out;
	animation-fill-mode: both;
}

.menu-list-name {
	font-weight: 500;
	font-size: 12px;
	color: var(--brown-600);
}

.menu-list-price {
	font-size: 12px;
	font-weight: 500;
	color: var(--brown-500);
	text-align: right;
	display: block;
}

.menu-item {
	text-align: center;
	position: relative;
	animation: fadeInBlur 0.9s ease-out;
	animation-fill-mode: both;
}

.menu-item:nth-child(1) {
	animation-delay: 0.1s;
}

.menu-item:nth-child(2) {
	animation-delay: 0.2s;
}

.menu-item:nth-child(3) {
	animation-delay: 0.3s;
}

.menu-item:nth-child(4) {
	animation-delay: 0.4s;
}

.menu-item:nth-child(5) {
	animation-delay: 0.5s;
}

.menu-item:nth-child(6) {
	animation-delay: 0.6s;
}

.menu-image {
	width: 100%;
	height: auto;
	margin-bottom: 12px;
	border: 1px solid var(--brown-300);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: var(--brown-400);
	position: relative;
	aspect-ratio: 16/9;
	box-shadow: 0 20px 40px rgba(45, 36, 22, 0.08);
}

.menu-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.menu-image video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.menu-video-indicator {
	position: absolute;
	bottom: 10px;
	right: 10px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	opacity: 0;
	transform: scale(0.5);
	transition: opacity 0.18s ease, transform 0.18s ease;
	pointer-events: none;
	overflow: visible;
	z-index: 3;
}

.menu-video-indicator::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25);
	opacity: 0;
	transform-origin: center;
}

.menu-video-thumb {
	display: none;
}

.menu-image.is-playing-video .menu-video-indicator {
	opacity: 1;
	transform: scale(1);
}

.menu-image.is-playing-video .menu-video-indicator::after {
	opacity: 1;
	animation: tenpuu-video-pulse 1.8s ease-out infinite;
}

@media (hover: hover) and (pointer: fine) {
	.menu-video-thumb {
		display: block;
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		z-index: 2;
		transition: opacity 0.25s ease;
	}

	.menu-image video[data-featured-video="true"] {
		opacity: 0;
		transition: opacity 0.25s ease;
	}

	.menu-image.is-playing-video video[data-featured-video="true"] {
		opacity: 1;
	}

	.menu-image.is-playing-video .menu-video-thumb {
		opacity: 0;
	}

	.menu-image[data-has-video="true"]:not(.is-playing-video)::after {
		content: "";
		position: absolute;
		bottom: 12px;
		right: 12px;
		width: 0;
		height: 0;
		border-top: 6px solid transparent;
		border-bottom: 6px solid transparent;
		border-left: 10px solid rgba(255, 255, 255, 0.92);
		transition: transform 0.18s ease, opacity 0.18s ease;
		pointer-events: none;
		z-index: 4;
	}

	.menu-image[data-has-video="true"].is-playing-video::after {
		opacity: 0;
		transform: scale(0.9);
	}
}

.menu-image-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 14px;
	color: var(--brown-400);
}

.menu-grid--empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--brown-400);
	letter-spacing: 2px;
}

.menu-name {
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 3px;
	color: var(--brown-500);
}

.menu-description {
	font-size: 14px;
	color: var(--brown-500);
	margin-bottom: 20px;
	line-height: 2;
	font-weight: 300;
}

.menu-price {
	font-size: 14px;
	color: var(--brown-500);
	letter-spacing: 2px;
	font-weight: 500;
}

#gallery {
	overflow: hidden;
}

.gallery-description {
	max-width: 720px;
	margin: 0 auto 60px;
	text-align: center;
	color: var(--brown-500);
	font-size: 15px;
	line-height: 2.2;
	font-weight: 300;
	position: relative;
	z-index: 2;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
}

.gallery-item {
	text-align: center;
	animation: fadeInBlur 1s ease-out;
	animation-fill-mode: both;
	aspect-ratio: 1;
	position: relative;
	overflow: hidden;
}

.gallery-item:nth-child(1) {
	animation-delay: 0.2s;
}

.gallery-item:nth-child(2) {
	animation-delay: 0.4s;
}

.gallery-item:nth-child(3) {
	animation-delay: 0.6s;
}

.gallery-frame {
	width: 100%;
	height: 100%;
	box-shadow: 0 20px 40px rgba(45, 36, 22, 0.08);
}

.gallery-frame img {
	display: block;
	width: 100%;
	/* height: 220px; */
	height: 100%;
	object-fit: cover;
	filter: saturate(0.85);
}

#about {
	overflow: hidden;
}

#about::before {
	content: "";
	background-image: url("./assets/images/deco.png");
	background-size: contain;
	background-repeat: no-repeat;
	position: absolute;
	bottom: -19%;
	left: -1%;
	opacity: 0.04;
	transform: rotate(-30deg) scaleX(-1);
	pointer-events: none;
	width: 300px;
	height: 100%;
	animation: breathe 8s ease-in-out infinite;
}

.about-content {
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.about-content p {
	font-size: 15px;
	color: var(--brown-500);
	margin-bottom: 35px;
	line-height: 1.8;
	font-weight: 300;
	animation: fadeInBlur 1s ease-out;
	animation-fill-mode: both;
}

.about-content p:nth-child(1) {
	animation-delay: 0.2s;
}

.about-content p:nth-child(2) {
	animation-delay: 0.4s;
}

.about-content p:nth-child(3) {
	animation-delay: 0.6s;
}

#info .about-content p:nth-child(1) {
	animation-delay: 0.2s;
}

#info .about-content p:nth-child(2) {
	animation-delay: 0.4s;
}

#info .about-content p:nth-child(3) {
	animation-delay: 0.6s;
}

#info .about-content p:nth-child(4) {
	animation-delay: 0.8s;
}

#info .about-content h3 {
	animation: fadeInBlur 0.8s ease-out;
	animation-fill-mode: both;
}

#access {
	overflow: hidden;
}

.access-content {
	text-align: center;
	max-width: 700px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.map-placeholder {
	width: 100%;
	height: 350px;
	background: var(--bg-cream);
	margin-bottom: 50px;
	border: 1px solid var(--brown-300);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: var(--brown-400);
	position: relative;
}

.map-placeholder::before {
	content: "";
	position: absolute;
	top: 20px;
	left: 20px;
	right: 20px;
	bottom: 20px;
	border: 1px solid var(--brown-300);
}

.access-info {
	font-size: 15px;
	color: var(--brown-500);
	line-height: 2.4;
	font-weight: 300;
}

#info .about-content {
	max-width: 700px;
}

#info .about-content p {
	margin-bottom: 40px;
}

.info-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.site-footer {
	background: var(--white-500);
	padding: 80px 0;
	text-align: center;
	border-top: 1px solid var(--brown-300);
	margin-top: 100px;
	position: relative;
	overflow: hidden;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 60px;
	position: relative;
	z-index: 2;
}

.footer-content p {
	font-size: 13px;
	color: var(--brown-400);
	margin-bottom: 10px;
	font-weight: 300;
}

@keyframes heroLogoPulse {
	0%,
	100% {
		transform: scale(0.96);
		opacity: 0.88;
	}
	50% {
		transform: scale(1.04);
		opacity: 1;
	}
}

@keyframes heroLogoSettle {
	from {
		transform: scale(1.04);
	}
	to {
		transform: scale(1);
	}
}

@keyframes sitePreloaderSpin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes fadeInBlur {
	from {
		opacity: 0;
		filter: blur(8px);
		transform: scale(0.98);
	}
	to {
		opacity: 1;
		filter: blur(0);
		transform: scale(1);
	}
}

@keyframes fadeInBlurScale {
	from {
		opacity: 0;
		filter: blur(10px);
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		filter: blur(0);
		transform: scale(1);
	}
}

@keyframes ornamentFloat {
	0%,
	100% {
		transform: translateY(0) rotate(0deg);
	}
	50% {
		transform: translateY(-8px) rotate(2deg);
	}
}

@keyframes breathe {
	0%,
	100% {
		opacity: 0.02;
		transform: scale(1);
	}
	50% {
		opacity: 0.035;
		transform: scale(1.05);
	}
}

@keyframes tenpuu-video-pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
		opacity: 1;
	}
	60% {
		transform: scale(1.3);
		box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
		opacity: 0.65;
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
		opacity: 1;
	}
}

@media (max-width: 1024px) {
	.header-content {
		padding: 0 40px;
		height: 100%;
	}

	section {
		padding: 90px 40px;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.menu-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 24px;
	}
	h2 {
		font-size: 20px;
	}
	h3 {
		font-size: 16px;
	}

	.logo {
		width: 2.3rem;
		height: auto;
	}

	.custom-logo {
		width: 100%;
		height: auto;
	}

	.site-header {
		height: 110px;
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 0;
	}

	.header-content {
		flex-direction: column;
		justify-content: center;
		gap: 6px;
		padding: 0 30px;
	}

	.primary-nav ul {
		gap: 30px;
		flex-wrap: wrap;
		justify-content: center;
	}

	.hero-content {
		animation-delay: 3s;
	}

	.hero-content h1 {
		letter-spacing: 6px;
		animation: fadeInBlur 0.8s ease-out;
		animation-fill-mode: both;
		max-width: 8rem;
		left: -5px;
	}

	.subtitle {
		font-size: 14px;
	}

	.hero-ornament {
		display: none;
	}

	h2::before,
	h2::after {
		display: none;
	}

	section {
		padding: 80px 30px;
	}

	.info-container {
		grid-template-columns: 1fr;
		gap: 60px;
		padding: 0 30px;
	}

	.menu-grid {
		grid-template-columns: 1fr;
		gap: 90px;
	}

	.menu-image {
		margin-bottom: 20px;
	}

	.menu-name {
		font-size: 14px;
		letter-spacing: 2px;
	}

	.menu-price {
		font-size: 12px;
	}

	.menu-list-heading {
		font-size: 16px;
	}

	.gallery-grid {
		grid-template-columns: 1fr;
	}

	.footer-content {
		padding: 0 30px;
	}

	main {
		margin-top: 110px;
	}

	.site-footer {
		padding: 24px 12px;
	}
}

.tec-embed-wrap {
	width: 100%;
	overflow: hidden;
	position: relative;
	animation: fadeInBlur 1s ease-out;
	animation-fill-mode: both;
}

.tec-embed-wrap iframe[data-tec-events-ece-iframe="true"] {
	width: 100%;
	max-width: 100%;
	height: 1065px;
	border: 0;
	display: block;
}

@media (max-width: 390px) {
	.header-content {
		padding: 0 16px;
	}

	.primary-nav ul {
		gap: 16px;
	}
}

/* ------------------------------------------------------------
 * The Events Calendar カラーカスタム
 * ------------------------------------------------------------ */

.tribe-events .tribe-events-calendar-month__day,
.tribe-events .tribe-events-calendar-month__calendar-event {
	border-color: var(--brown-300);
}

.tribe-events .tribe-events-calendar-month__day-date {
	color: var(--brown-500);
}

.tribe-events .tribe-events-calendar-month__calendar-event-title-link {
	color: var(--brown-600);
}

.tribe-events .tribe-events-calendar-month__calendar-event-title-link:hover,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link:focus {
	color: var(--gold-700);
}

.tribe-events .tribe-common-button {
	background-color: var(--brown-600);
	border-radius: 999px;
	border: none;
}

.tribe-events .tribe-common-button:hover,
.tribe-events .tribe-common-button:focus {
	background-color: #472f25;
}

.tribe-events .tribe-events-view {
	background-color: transparent;
}

.tribe-events .tribe-events-calendar-month__calendar-event-title-link:hover,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link:focus {
	color: var(--tec-color-text-primary);
	border: 0;
	text-decoration: none;
}

.tribe-events .datepicker .day,
.tribe-events .datepicker .month,
.tribe-events .datepicker .year {
	border-radius: 0;
}

.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date,
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-link {
	color: var(--tec-color-text-primary);
}

.tribe-events .tribe-events-calendar-month__day--past .tribe-events-calendar-month__day-date-link {
	color: var(--tec-color-day-marker-month);
}

.tribe-events .tribe-events-calendar-month__calendar-event-title-link:visited,
.tribe-events .tribe-events-calendar-month__calendar-event-tooltip-title-link:visited {
	text-decoration: none;
}

.tribe-common.tribe-common--breakpoint-medium button.tribe-events-c-top-bar__datepicker-button {
	font-size: clamp(16px, 1.5vw + 0.8rem, 20px);
}

.table-condensed {
	width: 100%;
}

.tribe-events .datepicker .day.current,
.tribe-events .datepicker .day.current.focused,
.tribe-events .datepicker .day.current:focus,
.tribe-events .datepicker .day.current:hover,
.tribe-events .datepicker .month.current,
.tribe-events .datepicker .month.current.focused,
.tribe-events .datepicker .month.current:focus,
.tribe-events .datepicker .month.current:hover,
.tribe-events .datepicker .year.current,
.tribe-events .datepicker .year.current.focused,
.tribe-events .datepicker .year.current:focus,
.tribe-events .datepicker .year.current:hover {
	background-color: var(--brown-300);
}

.tribe-events .datepicker .day.active,
.tribe-events .datepicker .day.active.focused,
.tribe-events .datepicker .day.active:focus,
.tribe-events .datepicker .day.active:hover,
.tribe-events .datepicker .month.active,
.tribe-events .datepicker .month.active.focused,
.tribe-events .datepicker .month.active:focus,
.tribe-events .datepicker .month.active:hover,
.tribe-events .datepicker .year.active,
.tribe-events .datepicker .year.active.focused,
.tribe-events .datepicker .year.active:focus,
.tribe-events .datepicker .year.active:hover {
	background-color: var(--brown-600);
}

.tribe-events .datepicker .day.focused,
.tribe-events .datepicker .day:focus,
.tribe-events .datepicker .day:hover,
.tribe-events .datepicker .month.focused,
.tribe-events .datepicker .month:focus,
.tribe-events .datepicker .month:hover,
.tribe-events .datepicker .year.focused,
.tribe-events .datepicker .year:focus,
.tribe-events .datepicker .year:hover {
	background-color: var(--brown-300);
}

.tribe-events .datepicker {
	background-color: #fff;
}

@media (max-width: 767px) {
	.tribe-events {
		--tec-font-size-0: 15px;
		--tec-font-size-1: 16px;
		--tec-font-size-2: 18px;
		--tec-font-size-3: 20px;
		--tec-font-size-4: 22px;
	}

	.tribe-events .tribe-events-calendar-month__calendar-event-datetime {
		line-height: 1;
	}

	.tribe-events .tribe-events-calendar-month__calendar-event-datetime {
		font-size: 13px;
	}

	.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__day:hover::after {
		background-color: var(--tec-color-day-marker-month);
	}

	.tribe-events .tribe-events-calendar-month__day--past .tribe-events-calendar-month__calendar-event-datetime {
		color: var(--brown-500);
		opacity: 1;
	}

	.tribe-events .tribe-events-calendar-month__day-date-daynum {
		color: var(--brown-600);
	}

	.tribe-events .datepicker {
		border: 0.3em solid var(--brown-300);
	}

	.tribe-events .tribe-events-c-top-bar__datepicker-container {
		width: 80%;
		max-width: 800px;
	}

	.tribe-events .datepicker {
		padding: 0 2em 3em;
	}

	.tribe-common.tribe-common--breakpoint-medium button.tribe-events-c-top-bar__datepicker-button {
		font-size: 1.4em !important;
		display: flex;
		gap: 0.2em;
	}

	.tribe-events .tribe-events-c-top-bar__datepicker-button,
	.tribe-events .tribe-events-c-top-bar__nav-link,
	.tribe-events .tribe-events-c-view-selector__button-text,
	.tribe-events .tribe-events-c-subscribe-dropdown__button-text,
	.tribe-events .tribe-events-calendar-month__day-date,
	.tribe-events .tribe-events-calendar-month__calendar-event-datetime,
	.tribe-events .tribe-events-calendar-month__multiday-event-bar-title,
	.tribe-events .tribe-events-calendar-month__multiday-event-bar-title-link,
	.tribe-events .tribe-events-calendar-month__multiday-event-bar-datetime,
	.tribe-events .tribe-events-calendar-month__day-cell,
	.tribe-events .tribe-events-calendar-month__calendar-event-title-link,
	.tribe-events .tribe-common-c-btn,
	.tribe-events .tribe-common-anchor,
	.tribe-events .tribe-common-h8 {
		font-size: 1.1em;
	}

	.tribe-events .tribe-common-h6,
	.tribe-events .tribe-common-h5,
	.tribe-events .tribe-common-h4 {
		font-size: 1.2em;
	}

	.tribe-events .datepicker table {
		width: 100%;
	}

	.tribe-common .tribe-common-c-btn-border-small,
	.tribe-common a.tribe-common-c-btn-border-small {
		border: 0.1em solid var(--brown-300);
		background-color: #fff;
	}

	.tribe-events .tribe-events-c-top-bar__nav-list-item {
		padding-right: 1em;
	}

	.tribe-common .tribe-common-c-btn-icon--caret-left .tribe-common-c-btn-icon__icon-svg,
	.tribe-common .tribe-common-c-btn-icon--caret-right .tribe-common-c-btn-icon__icon-svg {
		width: 1em;
	}

	.tribe-events .tribe-events-c-top-bar__nav-link-icon-svg {
		height: 1em;
	}

	.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-top-bar__datepicker-button-icon-svg {
		height: 0.4em;
		width: auto;
	}

	/* .tribe-events .tribe-events-calendar-month__header-column-title {
		color: var(--brown-600);
	} */

	.tribe-events .tribe-events-calendar-month__header-column {
		padding: var(--tec-spacer-1) var(--tec-spacer-3);
	}
}

/* カレンダーのカスタムスタイル */

:root {
	--tec-color-text-primary: var(--brown-600);
	--tec-color-text-primary-light: var(--brown-500);
	--tec-color-text-secondary: var(--brown-600);
	--tec-color-text-disabled: var(--brown-300);
	--tec-color-text-events-title: var(--tec-color-text-primary);
	--tec-color-text-event-title: var(--tec-color-text-events-title);
	--tec-color-text-event-date: var(--tec-color-text-primary);
	--tec-color-text-secondary-event-date: var(--brown-600);
	--tec-color-icon-primary: #5d5d5d;
	--tec-color-icon-primary-alt: #757575;
	--tec-color-icon-secondary: var(--brown-500);
	--tec-color-icon-active: var(--brown-600);
	--tec-color-icon-disabled: var(--brown-400);
	--tec-color-icon-focus: #334aff;
	--tec-color-icon-error: #da394d;
	--tec-color-event-icon: #141827;
	--tec-color-event-icon-hover: #334aff;
	--tec-color-accent-primary: var(--brown-600);
	--tec-color-accent-primary-hover: var(--gold-700);
	--tec-color-accent-primary-active: var(--gold-700);
	--tec-color-accent-primary-background: var(--brown-300);
	--tec-color-accent-secondary: #141827;
	--tec-color-accent-secondary-hover: #141827cc;
	--tec-color-accent-secondary-active: #141827e6;
	--tec-color-accent-secondary-background: #14182712;
	--tec-color-button-primary: var(--tec-color-accent-primary);
	--tec-color-button-primary-hover: var(--tec-color-accent-primary-hover);
	--tec-color-button-primary-active: var(--tec-color-accent-primary-active);
	--tec-color-button-primary-background: var(--tec-color-accent-primary-background);
	--tec-color-button-secondary: var(--tec-color-accent-secondary);
	--tec-color-button-secondary-hover: var(--tec-color-accent-secondary-hover);
	--tec-color-button-secondary-active: var(--tec-color-accent-secondary-active);
	--tec-color-button-secondary-background: var(--tec-color-accent-secondary-background);
	--tec-color-link-primary: var(--brown-600);
	--tec-color-link-accent: var(--tec-color-accent-primary);
	--tec-color-link-accent-hover: #334affcc;
	--tec-color-border-default: var(--brown-300);
	--tec-color-border-secondary: var(--brown-300);
	--tec-color-border-tertiary: #7d7d7d;
	--tec-color-border-hover: #5d5d5d;
	--tec-color-border-active: #141827;
	--tec-color-background: var(--white-500);
	--tec-color-background-events: #0000;
	--tec-color-background-transparent: #fff9;
	--tec-color-background-secondary: #f7f6f6;
	--tec-color-background-messages: #14182712;
	--tec-color-background-secondary-hover: #f0eeee;
	--tec-color-background-error: #da394d14;
	--tec-color-box-shadow: rgba(#000, 0.14);
	--tec-color-box-shadow-secondary: rgba(#000, 0.1);
	--tec-color-scroll-track: rgba(#000, 0.25);
	--tec-color-scroll-bar: rgba(#000, 0.5);
	--tec-color-background-primary-multiday: #334aff3d;
	--tec-color-background-primary-multiday-hover: #334aff57;
	--tec-color-background-secondary-multiday: #1418273d;
	--tec-color-background-secondary-multiday-hover: #14182757;
	--tec-color-accent-primary-week-event: #334aff1a;
	--tec-color-accent-primary-week-event-hover: #334aff33;
	--tec-color-accent-primary-week-event-featured: #334aff0a;
	--tec-color-accent-primary-week-event-featured-hover: #334aff24;
	--tec-color-background-secondary-datepicker: var(--tec-color-background-secondary);
	--tec-color-accent-primary-background-datepicker: var(--tec-color-accent-primary-background);

	--tec-color-border-secondary-month-grid: var(--brown-300);
	-tec-color-border-active-month-grid-hover: var(--brown-600);
}

/* buttonクリック時のフォーカスを削除 */
.tribe-events .tribe-events-c-top-bar__nav-list-item:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
}

.tribe-common a,
.tribe-common a:active,
.tribe-common a:focus,
.tribe-common a:hover,
.tribe-common a:visited {
	outline: none !important;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
}

.tribe-events-c-top-bar__today-button {
	border-radius: 0 !important;
	background: none !important;
}

.tribe-events .tribe-events-calendar-month__day-cell--selected,
.tribe-events .tribe-events-calendar-month__day-cell--selected:focus,
.tribe-events .tribe-events-calendar-month__day-cell--selected:hover {
	background-color: transparent !important;
}

/* Tablet: keep the calendar grid layout */
@media (max-width: 1024px) and (min-width: 600px) {
	.tribe-events:not(.tribe-common--breakpoint-medium) {
		--tec-grid-width-1-of-7: calc(100% / 7);
	}

	.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__body {
		border-top: 1px solid var(--tec-color-border-secondary-month-grid, var(--brown-300));
	}

	.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__week {
		display: grid;
		grid-template-columns: repeat(7, minmax(0, 1fr));
		border-left: 1px solid var(--tec-color-border-secondary-month-grid, var(--brown-300));
	}

	.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__day {
		aspect-ratio: auto;
		min-height: 168px;
		min-width: auto;
		padding-top: 0;
		overflow: visible;
		border-style: solid;
		border-width: 0 1px 1px 0;
		border-color: var(--tec-color-border-secondary-month-grid, var(--brown-300));
	}

	.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__day-cell--desktop {
		display: flex !important;
		flex-direction: column;
		visibility: visible;
	}

	.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__day-cell--mobile {
		display: none !important;
		visibility: hidden;
	}

	.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__day-date {
		flex: none;
		padding: var(--tec-spacer-1, 0.5rem) var(--tec-spacer-3, 1rem);
	}

	.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__header-column-title-mobile {
		display: none !important;
		visibility: hidden;
	}

	.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__header-column-title-desktop {
		display: block !important;
		visibility: visible;
	}
}

/* Hide the "No events" notice in mobile day view */
.tribe-events-calendar-month-mobile-events__mobile-day .tribe-events-c-messages__message--notice {
	display: none;
}
