/*
Theme Name: teruya.kishimoto
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teruya-kishimoto
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
	--bg-color: #1c1c1c;
	--bg-light: #f4f4f4;
	--bg-gray: #e0e0e0;
	--text-color: #f0f0f0;
	--text-dark: #1a1a1a;
	--accent-color: #d4af37;
	/* Gold-ish accent */
	--secondary-text: #a0a0a0;
	--secondary-text-dark: #555555;
	--font-heading: 'Cinzel', serif;
	--font-body: 'Inter', sans-serif;
	--transition-speed: 0.5s;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--bg-color);
	color: var(--text-color);
	font-family: var(--font-body);
	line-height: 1.6;
	overflow-x: hidden;
	cursor: none;
	/* Custom cursor */
}

/* Custom Cursor */
.cursor {
	width: 10px;
	height: 10px;
	border: 1px solid var(--text-color);
	border-radius: 50%;
	position: fixed;
	pointer-events: none;
	z-index: 9999;
	transition: transform 0.2s ease;
	mix-blend-mode: difference;
}

.cursor-follower {
	width: 30px;
	height: 30px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	position: fixed;
	pointer-events: none;
	z-index: 9998;
	transition: transform 0.1s ease, width 0.3s, height 0.3s;
	mix-blend-mode: difference;
}

/* Typography */
h1,
h2,
h3 {
	font-family: var(--font-heading);
	font-weight: 400;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

/* Header */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 2rem 4rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 100;
	mix-blend-mode: difference;
}

.logo {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.nav-list {
	display: flex;
	list-style: none;
	gap: 3rem;
}

.nav-link {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	position: relative;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 1px;
	background-color: var(--text-color);
	transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
	height: 100vh;
	width: 100%;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('img/top.jpg');
	background-size: cover;
	background-position: center;
	filter: brightness(0.6);
	transform: scale(1.1);
	animation: zoomOut 10s ease-out forwards;
}

@keyframes zoomOut {
	to {
		transform: scale(1);
	}
}

.hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	opacity: 0;
	animation: fadeIn 1.5s ease-out 0.5s forwards;
}

.hero-title {
	font-size: 5rem;
	letter-spacing: 10px;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.hero-subtitle {
	font-size: 1.2rem;
	letter-spacing: 5px;
	text-transform: uppercase;
	color: var(--secondary-text);
}

.scroll-indicator {
	position: absolute;
	bottom: 3rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	opacity: 0;
	animation: fadeIn 1.5s ease-out 1.5s forwards;
}

.scroll-indicator span {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.scroll-indicator .line {
	width: 1px;
	height: 60px;
	background-color: var(--text-color);
	animation: scrollLine 2s infinite;
	transform-origin: top;
}

@keyframes scrollLine {
	0% {
		transform: scaleY(0);
	}

	50% {
		transform: scaleY(1);
	}

	100% {
		transform: scaleY(0);
		transform-origin: bottom;
	}
}

@keyframes fadeIn {
	to {
		opacity: 1;
	}
}

/* Sections General */
.section {
	padding: 8rem 2rem;
	min-height: 100vh;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.section::before {
	content: attr(data-bg-title);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 15vw;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--text-color);
	opacity: 0.03;
	z-index: 0;
	pointer-events: none;
	white-space: nowrap;
}

.section-light::before {
	color: var(--text-dark);
	opacity: 0.05;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
	position: relative;
	z-index: 1;
}

.section-title {
	font-size: 3rem;
	margin-bottom: 4rem;
	letter-spacing: 5px;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(50px);
	transition: opacity 1s ease-out, transform 1s ease-out;
}

.section-title.visible {
	opacity: 1;
	transform: translateY(0);
}

.section-light {
	background-color: var(--bg-light);
	color: var(--text-dark);
	clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
	padding-top: 12rem;
	padding-bottom: 12rem;
	margin-top: -5vw;
	margin-bottom: -5vw;
	position: relative;
	z-index: 10;
}

.section-light .section-title {
	color: var(--text-dark);
}

.section-light .work-placeholder {
	color: var(--secondary-text-dark);
}

.section-light .work-item {
	background-color: #ffffff;
	border-color: #ddd;
}

.section-light .work-item:hover {
	border-color: var(--text-dark);
}

.section-gray {
	background-color: var(--bg-gray);
	color: var(--text-dark);
}

.text-center {
	text-align: center;
}

/* About Section */
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.about-image-wrapper {
	position: relative;
	overflow: hidden;
}

.about-image {
	width: 100%;
	height: auto;
	display: block;
	filter: grayscale(100%);
	transition: filter 0.5s ease;
}

.about-image:hover {
	filter: grayscale(0%);
}

.about-text {
	margin-bottom: 2rem;
	font-size: 1.1rem;
	color: var(--secondary-text);
	line-height: 1.8;
}

/* Information Section */
.info-list {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.info-item {
	display: flex;
	align-items: baseline;
	gap: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #ddd;
	transition: border-color 0.3s ease;
}

.info-item:hover {
	border-color: var(--text-dark);
}

.info-date {
	font-family: var(--font-heading);
	color: var(--secondary-text-dark);
	font-size: 0.9rem;
	min-width: 100px;
}

.info-link {
	font-size: 1.1rem;
	color: var(--text-dark);
	font-weight: 500;
}

.info-link:hover {
	color: var(--accent-color);
	/* Or a darker shade if accent is too light on light bg */
	opacity: 0.7;
}

@media (max-width: 600px) {
	.info-item {
		flex-direction: column;
		gap: 0.5rem;
	}
}

/* Contact Section */
.contact-btn {
	display: inline-block;
	padding: 1rem 3rem;
	border: 1px solid currentColor;
	margin-top: 2rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-btn:hover {
	background-color: var(--text-color);
	color: var(--bg-color);
}

.section-light .contact-btn:hover {
	background-color: var(--text-dark);
	color: var(--bg-light);
}

.contact-detail {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	letter-spacing: 1px;
	color: var(--text-color);
}

/* Footer */
.footer {
	padding: 3rem 2rem;
	text-align: center;
	border-top: 1px solid #222;
	color: var(--secondary-text);
	font-size: 0.8rem;
}

.social-links {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 1.5rem;
}

.social-links a {
	color: var(--secondary-text);
	font-size: 1.5rem;
	transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
	color: var(--text-color);
	transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
	.header {
		padding: 1.5rem;
	}

	.nav {
		display: none;
		/* Mobile menu to be implemented if needed */
	}

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

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

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

/* Lessons Section */
.lessons {
	background-color: var(--bg-color);
	color: var(--text-color);
	position: relative;
}

.lessons-intro {
	max-width: 800px;
	margin: 0 auto 4rem;
	font-size: 1.1rem;
	color: var(--secondary-text);
	line-height: 1.8;
}

.lessons-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 3rem;
	margin-bottom: 4rem;
}

.lesson-card {
	background-color: #1a1a1a;
	padding: 3rem 2rem;
	border: 1px solid #333;
	transition: transform 0.3s ease, border-color 0.3s ease;
	text-align: center;
}

.lesson-card:hover {
	transform: translateY(-10px);
	border-color: var(--accent-color);
}

.lesson-card-title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--text-color);
	font-family: var(--font-heading);
}

.lesson-card-text {
	color: var(--secondary-text);
	font-size: 0.95rem;
	line-height: 1.6;
}

.lesson-cta {
	margin-top: 0;
}

/* Location Section */
.location {
	background-color: var(--bg-light);
	color: var(--text-dark);
	clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
	padding-top: 12rem;
	padding-bottom: 12rem;
	margin-top: -5vw;
	margin-bottom: -5vw;
	position: relative;
	z-index: 10;
}

.location .section-title {
	color: var(--text-dark);
	margin-bottom: 1rem;
}

.location-address {
	color: var(--secondary-text-dark);
	margin-bottom: 3rem;
	font-size: 1.1rem;
}

.map-container {
	width: 100%;
	overflow: hidden;
	border: 1px solid #ddd;
}

.map-container iframe {
	width: 100%;
	display: block;
	filter: grayscale(100%) invert(90%);
	/* High contrast dark map effect */
	transition: filter 0.5s ease;
}

.map-container iframe:hover {
	filter: grayscale(0%) invert(0%);
}

/* Burger Menu */
.burger-menu {
	display: none;
	cursor: pointer;
}

.burger-menu div {
	width: 25px;
	height: 2px;
	background-color: var(--text-color);
	margin: 5px;
	transition: all 0.3s ease;
}

/* Responsive Navigation */
@media (max-width: 768px) {
	.burger-menu {
		display: block;
		z-index: 1001;
	}

	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh;
		background-color: var(--bg-color);
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: right 0.5s ease;
		z-index: 1000;
	}

	.nav-active {
		right: 0;
	}

	.nav-list {
		flex-direction: column;
		gap: 4rem;
	}

	.nav-link {
		font-size: 1.5rem;
	}

	/* Burger Animation */
	.toggle .line1 {
		transform: rotate(-45deg) translate(-5px, 5px);
	}

	.toggle .line3 {
		transform: rotate(45deg) translate(-5px, -5px);
	}
}

/* Single Post Page */
.single-hero {
	height: 60vh;
	width: 100%;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	padding-top: 80px;
	/* Offset for fixed header */
}

.single-hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #333;
	/* Fallback */
	background-size: cover;
	background-position: center;
	filter: brightness(0.5);
}

.single-hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 0 2rem;
}

.single-hero-title {
	font-size: 3rem;
	letter-spacing: 5px;
	text-transform: uppercase;
	margin-bottom: 1rem;
	color: var(--text-color);
}

.single-meta {
	font-family: var(--font-heading);
	color: var(--secondary-text);
	font-size: 1.1rem;
}

.single-content {
	padding-top: 8rem;
	padding-bottom: 8rem;
	min-height: auto;
}

.entry-content {
	max-width: 800px;
	margin: 0 auto;
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--text-dark);
}

.entry-content p {
	margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-heading);
	margin-top: 3rem;
	margin-bottom: 1.5rem;
	color: var(--text-dark);
}

.entry-content ul,
.entry-content ol {
	margin-bottom: 1.5rem;
	padding-left: 2rem;
}

.entry-content li {
	margin-bottom: 0.5rem;
}

.entry-content blockquote {
	border-left: 4px solid var(--accent-color);
	padding-left: 1.5rem;
	margin: 2rem 0;
	font-style: italic;
	color: var(--secondary-text-dark);
}

.entry-content img {
	max-width: 100%;
	height: auto;
	margin: 2rem 0;
	display: block;
}

/* Post Navigation */
.post-navigation-wrapper {
	max-width: 800px;
	margin: 4rem auto 0;
	border-top: 1px solid #ddd;
	padding-top: 2rem;
}

.navigation.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
}

.navigation.post-navigation .nav-previous,
.navigation.post-navigation .nav-next {
	width: 48%;
}

.navigation.post-navigation .nav-next {
	text-align: right;
}

.navigation.post-navigation a {
	display: block;
	padding: 1rem;
	border: 1px solid #ddd;
	transition: all 0.3s ease;
}

.navigation.post-navigation a:hover {
	border-color: var(--text-dark);
	background-color: #fff;
}

.nav-subtitle {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	color: var(--secondary-text-dark);
	margin-bottom: 0.5rem;
}

.nav-title {
	display: block;
	font-family: var(--font-heading);
	font-size: 1rem;
	color: var(--text-dark);
}

@media (max-width: 768px) {
	.single-hero-title {
		font-size: 2rem;
	}

	.single-content {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	.navigation.post-navigation .nav-links {
		flex-direction: column;
		gap: 1rem;
	}

	.navigation.post-navigation .nav-previous,
	.navigation.post-navigation .nav-next {
		width: 100%;
		text-align: center;
	}
}