/* ==========================================================================
   Numba Photek – Main Stylesheet
   写真を主役に、装飾を極限まで削ぎ落としたデザイン
   ========================================================================== */

:root {
	--color-bg: #0b0b0c;
	--color-fg: #f5f4f2;
	--color-fg-dim: #a9a7a3;
	--color-line: rgba(245, 244, 242, 0.14);
	--color-accent: #7fa8c9; /* 夜明け前の空のような、落ち着いた青。旅の写真を邪魔しないトーン */
	--font-serif: 'Cormorant Garamond', 'Noto Sans JP', serif;
	--font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
	--header-height: 84px;
	--transition: 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-fg);
	font-family: var(--font-sans);
	font-weight: 300;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3 {
	font-family: var(--font-serif);
	font-weight: 500;
	letter-spacing: 0.04em;
	margin: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: var(--header-height);
	z-index: 100;
	background: linear-gradient(to bottom, rgba(11,11,12,0.75), transparent);
	mix-blend-mode: normal;
}

.site-header-inner {
	max-width: 1600px;
	margin: 0 auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 40px;
}

.site-branding .site-title-link {
	font-family: var(--font-serif);
	font-size: 22px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.site-branding img {
	max-height: 44px;
	width: auto;
}

/* ハンバーガー */
.menu-toggle {
	position: relative;
	width: 44px; height: 44px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 110;
}
.menu-toggle-line {
	display: block;
	width: 26px;
	height: 1px;
	background: var(--color-fg);
	margin: 6px auto;
	transition: transform 0.35s ease, opacity 0.35s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ナビ：オーバーレイでスライドイン */
.main-navigation {
	position: fixed;
	top: 0; right: 0;
	width: min(420px, 100%);
	height: 100vh;
	background: #0f0f10;
	transform: translateX(100%);
	transition: transform var(--transition);
	display: flex;
	align-items: center;
	z-index: 105;
	border-left: 1px solid var(--color-line);
}
.main-navigation.is-open { transform: translateX(0); }

.main-navigation ul {
	width: 100%;
	padding: 0 60px;
}
.main-navigation li {
	border-bottom: 1px solid var(--color-line);
}
.main-navigation a {
	display: block;
	padding: 22px 0;
	font-family: var(--font-serif);
	font-size: 24px;
	letter-spacing: 0.06em;
	transition: color 0.3s ease, padding-left 0.3s ease;
}
.main-navigation a:hover {
	color: var(--color-accent);
	padding-left: 8px;
}

/* ==========================================================================
   Hero (front-page)
   ========================================================================== */

.hero-intro {
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	/* 下側に大きめの余白を確保し、絶対配置のScrollキューと中央コンテンツが重ならないようにする */
	padding: calc(var(--header-height) + 20px) 24px 160px;
	position: relative;
}

.hero-intro-title {
	font-size: clamp(40px, 8vw, 96px);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	animation: fadeInUp 1.2s ease both;
}

.hero-intro-subtitle {
	margin-top: 20px;
	font-size: 16px;
	letter-spacing: 0.28em;
	color: var(--color-fg-dim);
	animation: fadeInUp 1.2s 0.2s ease both;
}

.hero-scroll-cue {
	position: absolute;
	bottom: 22%;
	left: 50%;
	transform: translateX(-50%);
	font-size: 11px;
	letter-spacing: 0.3em;
	color: var(--color-fg-dim);
	text-transform: uppercase;
}
.hero-scroll-cue::after {
	content: '';
	display: block;
	width: 1px;
	height: 40px;
	margin: 10px auto 0;
	background: var(--color-line);
	animation: scrollLine 2s ease-in-out infinite;
}

/* 縦幅が極端に狭いウィンドウではScrollキュー自体を隠す（重なり防止の最終保険） */
@media (max-height: 520px) {
	.hero-scroll-cue { display: none; }
}

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
	0%, 100% { transform: scaleY(0.4); transform-origin: top; }
	50%      { transform: scaleY(1); transform-origin: top; }
}

/* --------------------------------------------------------------------------
   Hero photo strip（タイトル背面を写真が横に流れる演出）
   -------------------------------------------------------------------------- */

.hero-intro--has-strip {
	overflow: hidden;
}

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

.hero-strip-track {
	display: flex;
	height: 100%;
	width: max-content;
	animation: heroStripScroll 90s linear infinite;
	will-change: transform;
}

.hero-strip-image {
	height: 100%;
	width: auto;
	object-fit: cover;
	flex-shrink: 0;
	filter: brightness(0.8) saturate(0.9);
}

/* 写真の上に暗幕をかけてタイトルの可読性を確保 */
.hero-strip-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at center, rgba(11,11,12,0.45) 0%, rgba(11,11,12,0.7) 100%);
}

/* トラックはセットを2周分並べているので、-50%動かすと継ぎ目なくループする */
@keyframes heroStripScroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* タイトル・副題・スクロールキューを写真より前面に */
.hero-intro--has-strip .hero-intro-title,
.hero-intro--has-strip .hero-intro-subtitle {
	position: relative;
	z-index: 1;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

/* .hero-scroll-cue は元々 position: absolute のため、position は上書きしない（z-indexだけ効かせる） */
.hero-intro--has-strip .hero-scroll-cue {
	z-index: 1;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

/* 動きに敏感なユーザーにはアニメーションを止めて表示（アクセシビリティ配慮） */
@media (prefers-reduced-motion: reduce) {
	.hero-strip-track { animation: none; }
}

/* ==========================================================================
   Photo grid（ギャラリー一覧・トップページ）
   ========================================================================== */

.photo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	background: var(--color-bg);
}
.photo-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.photo-grid-item {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	opacity: 0;
	animation: fadeIn 0.8s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.photo-grid-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}
.photo-grid-item:hover .photo-grid-image {
	transform: scale(1.08);
	filter: brightness(0.65);
}

.photo-grid-caption {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 24px;
	background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 55%);
	opacity: 0;
	transition: opacity 0.4s ease;
}
.photo-grid-item:hover .photo-grid-caption { opacity: 1; }

.photo-grid-caption-title {
	font-family: var(--font-serif);
	font-size: 18px;
	letter-spacing: 0.05em;
}

.no-photos-message,
.no-posts-message {
	padding: 120px 24px;
	text-align: center;
	color: var(--color-fg-dim);
}

.view-all-wrap {
	text-align: center;
	padding: 60px 0;
}
.view-all-link {
	display: inline-block;
	padding: 16px 44px;
	border: 1px solid var(--color-line);
	letter-spacing: 0.18em;
	font-size: 13px;
	text-transform: uppercase;
	transition: background 0.3s ease, color 0.3s ease;
}
.view-all-link:hover {
	background: var(--color-fg);
	color: var(--color-bg);
}

/* ==========================================================================
   Archive header（ギャラリー一覧タイトル）
   ========================================================================== */

.archive-header {
	padding: calc(var(--header-height) + 60px) 40px 40px;
	text-align: center;
}
.archive-header-title {
	font-size: clamp(32px, 5vw, 56px);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.gallery-cat-list {
	display: flex;
	justify-content: center;
	gap: 28px;
	margin-top: 24px;
	flex-wrap: wrap;
}
.gallery-cat-list a {
	font-size: 13px;
	letter-spacing: 0.1em;
	color: var(--color-fg-dim);
	text-transform: uppercase;
	border-bottom: 1px solid transparent;
	padding-bottom: 4px;
	transition: border-color 0.3s ease, color 0.3s ease;
}
.gallery-cat-list a:hover {
	color: var(--color-fg);
	border-color: var(--color-accent);
}

/* ==========================================================================
   Photo single（フォト単体：フルスクリーン表示）
   ========================================================================== */

body.is-gallery-single .site-header {
	background: linear-gradient(to bottom, rgba(11,11,12,0.85), transparent);
}

.photo-single-stage {
	position: relative;
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	overflow: hidden;
}
.photo-single-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	animation: fadeIn 1s ease both;
}

.photo-nav-wrap {
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	pointer-events: none;
	padding: 0 24px;
}
.photo-nav {
	pointer-events: auto;
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1px solid var(--color-line);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: rgba(11,11,12,0.4);
	transition: border-color 0.3s ease;
}
.photo-nav:hover { border-color: var(--color-accent); }
.photo-nav img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.35;
}
.photo-nav-arrow {
	position: relative;
	z-index: 2;
	font-size: 20px;
}

.photo-single-info {
	max-width: 760px;
	margin: 0 auto;
	padding: 80px 24px 120px;
	text-align: center;
}
.photo-single-title {
	font-size: clamp(28px, 4vw, 42px);
	letter-spacing: 0.05em;
}
.photo-single-cats {
	margin-top: 16px;
	display: flex;
	justify-content: center;
	gap: 16px;
}
.photo-single-cats a {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.photo-single-desc {
	margin-top: 32px;
	color: var(--color-fg-dim);
	font-size: 15px;
}
.back-to-gallery {
	display: inline-block;
	margin-top: 48px;
	font-size: 13px;
	letter-spacing: 0.1em;
	color: var(--color-fg-dim);
	border-bottom: 1px solid var(--color-line);
	padding-bottom: 2px;
	transition: color 0.3s ease, border-color 0.3s ease;
}
.back-to-gallery:hover {
	color: var(--color-fg);
	border-color: var(--color-fg);
}

/* ==========================================================================
   Blog（一覧・単体）
   ========================================================================== */

.blog-header {
	padding: calc(var(--header-height) + 60px) 40px 40px;
	text-align: center;
}
.blog-header-title {
	font-size: clamp(32px, 5vw, 56px);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.blog-list {
	max-width: 880px;
	margin: 0 auto;
	padding: 20px 24px 100px;
}
.blog-list-item {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 32px;
	padding: 40px 0;
	border-bottom: 1px solid var(--color-line);
	align-items: start;
}
.blog-list-thumb img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.blog-list-thumb:hover img { transform: scale(1.04); }

.posted-on {
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--color-fg-dim);
	text-transform: uppercase;
}
.blog-list-title {
	margin-top: 10px;
	font-size: 24px;
}
.blog-list-title a:hover { color: var(--color-accent); }
.blog-list-excerpt {
	margin-top: 12px;
	color: var(--color-fg-dim);
	font-size: 15px;
}
.blog-list-more {
	display: inline-block;
	margin-top: 16px;
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--color-accent);
}

.blog-single,
.static-page {
	max-width: 760px;
	margin: 0 auto;
	padding: calc(var(--header-height) + 60px) 24px 100px;
}
.blog-single-header { text-align: center; }
.blog-single-cats a {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin-right: 12px;
}
.blog-single-title {
	margin-top: 14px;
	font-size: clamp(28px, 4vw, 44px);
}
.blog-single-meta {
	margin-top: 12px;
	color: var(--color-fg-dim);
	font-size: 13px;
}
.blog-single-thumb {
	margin: 48px -24px;
}
.blog-single-content,
.static-page-content {
	font-size: 17px;
	color: #ddd;
}
.blog-single-content p,
.static-page-content p { margin: 0 0 1.6em; }
.blog-single-content img,
.static-page-content img { margin: 2em 0; }

.blog-single-tags {
	margin-top: 40px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.blog-single-tags a {
	font-size: 12px;
	color: var(--color-fg-dim);
	border: 1px solid var(--color-line);
	padding: 6px 14px;
	border-radius: 999px;
}

.blog-single-nav {
	margin-top: 60px;
	display: flex;
	justify-content: space-between;
	border-top: 1px solid var(--color-line);
	padding-top: 24px;
	font-size: 14px;
	color: var(--color-fg-dim);
}
.blog-single-nav a:hover { color: var(--color-fg); }

.static-page-thumb { margin: 40px 0; }

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 24px 100px;
}
.comments-title { font-size: 22px; margin-bottom: 24px; }
.comment-list .comment {
	list-style: none;
	padding: 20px 0;
	border-bottom: 1px solid var(--color-line);
}
.comment-form input,
.comment-form textarea {
	width: 100%;
	background: #17171a;
	border: 1px solid var(--color-line);
	color: var(--color-fg);
	padding: 12px 16px;
	margin-bottom: 16px;
	font-family: var(--font-sans);
}
.submit-button {
	background: var(--color-fg);
	color: var(--color-bg);
	border: none;
	padding: 12px 32px;
	letter-spacing: 0.1em;
	cursor: pointer;
	text-transform: uppercase;
	font-size: 13px;
}

/* ==========================================================================
   404
   ========================================================================== */

.error-404-section {
	min-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.error-404-title {
	font-size: 120px;
	color: var(--color-line);
}
.error-404-link {
	margin-top: 24px;
	border-bottom: 1px solid var(--color-fg);
	padding-bottom: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	border-top: 1px solid var(--color-line);
	padding: 60px 40px 40px;
	text-align: center;
}
.footer-widgets {
	display: flex;
	justify-content: center;
	gap: 60px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}
.footer-widget-title {
	font-size: 14px;
	letter-spacing: 0.1em;
	margin-bottom: 12px;
}
.footer-navigation ul {
	display: flex;
	justify-content: center;
	gap: 28px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}
.footer-navigation a {
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--color-fg-dim);
	text-transform: uppercase;
}
.site-info {
	font-size: 12px;
	color: var(--color-fg-dim);
	letter-spacing: 0.05em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.photo-grid,
	.photo-grid--cols-3,
	.photo-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }

	.blog-list-item { grid-template-columns: 1fr; }
	.blog-single-thumb { margin: 32px 0; }
}

@media (max-width: 560px) {
	.site-header-inner { padding: 0 20px; }
	.photo-grid,
	.photo-grid--cols-3,
	.photo-grid--cols-4 { grid-template-columns: 1fr; }
	.archive-header,
	.blog-header { padding: calc(var(--header-height) + 40px) 20px 30px; }
	.photo-nav { width: 44px; height: 44px; }
}
