/**
 * PRESENS - 全ページ共通スタイル
 * カラー: ダークブラウン〜ボルドー（ロゴ準拠）
 * フォント: Noto Serif JP + Cormorant Garamond
 */

/* ===== CSS Custom Properties ===== */
:root {
	--presens-primary: #4A2C2A;
	--presens-secondary: #6B3A38;
	--presens-accent: #8B6914;
	--presens-highlight: #A0522D;
	--presens-surface: #ffffff;
	--presens-surface-alt: #F9F6F2;
	--presens-text: #2C2C2C;
	--presens-text-light: #7A7A7A;
	--presens-border: #E0D8CF;
	--presens-font-serif: 'Noto Serif JP', 'Georgia', 'Times New Roman', serif;
	--presens-font-en: 'Cormorant Garamond', 'Georgia', serif;
	--presens-font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
	--presens-transition: 0.3s ease;
	--presens-content-width: 800px;
	--presens-wide-width: 1200px;
}

/* ===== Base ===== */
body {
	font-family: var(--presens-font-serif);
	color: var(--presens-text);
	letter-spacing: 0.04em;
	-webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */
.presens-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--presens-border);
}

.presens-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	min-height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 var(--wp--preset--spacing--30, 1.5rem);
}

.presens-header__logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.presens-header__logo-link:hover {
	opacity: 0.8;
}

.presens-header__logo-img {
	max-height: 44px;
	width: auto;
}

.presens-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Navigation */
.presens-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0;
}

.presens-nav__link {
	font-family: var(--presens-font-sans);
	font-size: 0.875rem;
	color: var(--presens-text);
	text-decoration: none;
	padding: 0.5rem 1rem;
	letter-spacing: 0.06em;
	transition: color var(--presens-transition);
}

.presens-nav__link:hover {
	color: var(--presens-secondary);
}

/* Hamburger Button */
.presens-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 200;
}

.presens-hamburger__line {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--presens-primary);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.presens-hamburger.is-active .presens-hamburger__line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.presens-hamburger.is-active .presens-hamburger__line:nth-child(2) {
	opacity: 0;
}
.presens-hamburger.is-active .presens-hamburger__line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Overlay */
.presens-mobile-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--presens-surface);
	z-index: 10000;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.presens-mobile-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.presens-mobile-overlay__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--presens-border);
	min-height: 70px;
}

.presens-mobile-overlay__close {
	background: none;
	border: none;
	font-size: 2rem;
	color: var(--presens-text);
	cursor: pointer;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.presens-mobile-overlay__nav {
	display: flex;
	flex-direction: column;
	padding: 1rem 0;
}

.presens-mobile-overlay__nav a {
	font-family: var(--presens-font-sans);
	font-size: 1.1rem;
	color: var(--presens-text);
	text-decoration: none;
	padding: 1.2rem 2rem;
	border-bottom: 1px solid var(--presens-border);
	letter-spacing: 0.06em;
	transition: background 0.2s ease;
}

.presens-mobile-overlay__nav a:hover {
	background: var(--presens-surface-alt);
	color: var(--presens-secondary);
}

.presens-mobile-overlay__lang {
	padding: 1.5rem 2rem;
	font-family: var(--presens-font-en);
	font-size: 0.9rem;
}

@media (max-width: 768px) {
	.presens-nav {
		display: none;
	}

	.presens-hamburger {
		display: flex;
	}

	.presens-header__inner {
		min-height: 60px;
	}

	.presens-header__logo-img {
		max-height: 36px;
	}

	.lang-switcher {
		display: none;
	}
}

/* Language Switcher */
.lang-switcher {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-family: var(--presens-font-en);
	font-size: 0.825rem;
	letter-spacing: 0.08em;
	margin-left: 1rem;
}

.lang-switcher__item {
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	color: var(--presens-text-light);
	transition: color var(--presens-transition);
}

.lang-switcher__item.is-active {
	color: var(--presens-primary);
	font-weight: 600;
}

.lang-switcher__sep {
	color: var(--presens-border);
}

/* ===== Breadcrumb ===== */
.presens-breadcrumb {
	font-family: var(--presens-font-sans);
	font-size: 0.8rem;
	padding: 0.75rem var(--wp--preset--spacing--30, 1.5rem);
	background: var(--presens-surface-alt);
	border-bottom: 1px solid var(--presens-border);
}

.presens-breadcrumb__list {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	max-width: 1200px;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.presens-breadcrumb__item {
	color: var(--presens-text-light);
}

.presens-breadcrumb__item a {
	color: var(--presens-secondary);
	text-decoration: none;
}

.presens-breadcrumb__item a:hover {
	text-decoration: underline;
}

.presens-breadcrumb__item + .presens-breadcrumb__item::before {
	content: '>';
	margin-right: 0.25rem;
	color: var(--presens-text-light);
}

.presens-breadcrumb__item--current {
	color: var(--presens-text);
}

/* ===== Pagination ===== */
.presens-pagination {
	font-family: var(--presens-font-sans);
	font-size: 0.9rem;
}

.presens-pagination a {
	color: var(--presens-secondary);
	text-decoration: none;
}

.presens-pagination a:hover {
	color: var(--presens-primary);
}

/* ===== Remove gap between header and hero ===== */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.presens-front-page {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* ===== EN About ===== */
.presens-en-about {
	font-family: var(--presens-font-sans);
	font-size: 1rem;
	line-height: 2;
	color: var(--presens-text);
	max-width: 650px;
	margin: 0 auto;
	text-align: center;
}

.presens-en-about p {
	margin-bottom: 1.5rem;
}

/* ===== Hero Fullscreen ===== */
.presens-hero--fullscreen {
	min-height: 70vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.presens-hero--fullscreen::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(249, 246, 242, 0.8);
	z-index: 0;
}

.presens-hero--fullscreen > * {
	position: relative;
	z-index: 1;
}

.presens-hero__logo-fullscreen {
	width: clamp(300px, 60vw, 700px);
	max-width: 90vw;
	margin: 0 auto;
}

.presens-hero__logo-fullscreen img {
	width: 100%;
	height: auto;
}

.presens-hero--fullscreen .presens-hero__tagline {
	position: absolute;
	bottom: 3rem;
	left: 0;
	right: 0;
}

@media (max-width: 767px) {
	.presens-hero__logo-fullscreen {
		width: 85vw;
	}

	.presens-hero--fullscreen .presens-hero__tagline {
		bottom: 2rem;
	}
}

/* ===== Sections ===== */
.presens-section {
	padding: 5rem 0;
}

.presens-section--alt {
	background: var(--presens-surface-alt);
}

.presens-section__title {
	font-family: var(--presens-font-serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 600;
	color: var(--presens-primary);
	text-align: center;
	letter-spacing: 0.08em;
	margin-bottom: 3rem;
}

.presens-section__title-en {
	display: block;
	font-family: var(--presens-font-en);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--presens-text-light);
	margin-bottom: 0.5rem;
}

/* ===== Buttons ===== */
.presens-btn a,
.presens-btn .wp-block-button__link {
	font-family: var(--presens-font-sans);
	letter-spacing: 0.1em;
	transition: all var(--presens-transition);
	border: 1px solid transparent;
}

.presens-btn--cta a:hover,
.presens-btn--cta .wp-block-button__link:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

/* ===== Footer ===== */
.presens-footer a {
	color: #F9F6F2;
	text-decoration: none;
	transition: opacity var(--presens-transition);
}

.presens-footer a:hover {
	opacity: 0.7;
}

.presens-footer__list {
	list-style: none;
	padding: 0;
}

/* ===== News List ===== */
.presens-news-list {
	list-style: none;
	padding: 0;
}

.presens-news-item {
	display: flex;
	gap: 1.5rem;
	align-items: baseline;
	padding: 1.2rem 0;
	border-bottom: 1px solid var(--presens-border);
	transition: background var(--presens-transition);
}

.presens-news-item:hover {
	background: var(--presens-surface-alt);
	padding-left: 0.5rem;
}

.presens-news-item__date {
	font-family: var(--presens-font-en);
	font-size: 0.85rem;
	color: var(--presens-text-light);
	letter-spacing: 0.05em;
	white-space: nowrap;
	min-width: 100px;
}

.presens-news-item__title {
	font-size: 0.95rem;
}

.presens-news-item__title a {
	color: var(--presens-text);
	text-decoration: none;
}

.presens-news-item__title a:hover {
	color: var(--presens-secondary);
}

/* ===== Photo Gallery ===== */
.presens-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	max-width: 980px;
	margin: 0 auto;
}

.presens-gallery__item {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 3/4;
	background: var(--presens-surface-alt);
	border: 1px solid var(--presens-border);
}

.presens-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.6s ease;
	display: block;
}

.presens-gallery__item:hover img {
	transform: scale(1.03);
}

.presens-gallery__label {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.3rem 0.7rem;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-family: var(--presens-font-sans);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 2px;
	z-index: 2;
}

/* 殿ご指示 2026-04-26：主要メンバー氏名（英語のみ）— v1.0.6
   figure / figcaption 構造で gallery__item の overflow:hidden 影響受けず確実に表示 */
.presens-gallery__figure {
	margin: 0;
	display: flex;
	flex-direction: column;
}
.presens-gallery__caption {
	margin-top: 0.7rem;
	padding: 0 0.25rem;
	font-family: 'Cormorant Garamond', 'Georgia', serif;
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--wp--preset--color--text-primary, #2C2C2C);
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-align: center;
}
@media (max-width: 640px) {
	.presens-gallery__caption {
		font-size: 0.95rem;
	}
}

/* 殿ご指示 2026-04-26：プラポリ・基本方針本文（プレースホルダ） */
.presens-policy-body {
	font-family: var(--presens-font-sans);
	font-size: 0.95rem;
	line-height: 2.0;
	color: var(--wp--preset--color--text-primary, #2C2C2C);
}
.presens-policy-body p {
	margin: 0 0 1.4em;
}
.presens-policy-body h2 {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary, #4A2C2A);
	margin: 2.4em 0 0.8em;
	padding-left: 0.7em;
	border-left: 3px solid var(--wp--preset--color--accent, #8B6914);
}
.presens-policy-body ul {
	padding-left: 1.4em;
	margin: 0 0 1.4em;
}
.presens-policy-body ul li {
	margin-bottom: 0.4em;
}
.presens-policy-meta {
	margin-top: 3em;
	padding-top: 1.2em;
	border-top: 1px solid var(--wp--preset--color--border, #E0D8CF);
	font-size: 0.85rem;
	color: var(--wp--preset--color--text-secondary, #7A7A7A);
	text-align: right;
	line-height: 1.7;
}
@media (max-width: 640px) {
	.presens-policy-body { font-size: 0.9rem; }
	.presens-policy-body h2 { font-size: 1rem; margin-top: 2em; }
}

/* 殿ご指示 2026-04-26：team-card 英語名のみ表示（v1.0.6 final）
   漢字併記から英語のみに変更、視認性のため font-size を主表示レベルへ昇格 */
.presens-team-card__name-en {
	font-family: 'Cormorant Garamond', 'Georgia', serif;
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--wp--preset--color--text-primary, #2C2C2C);
	letter-spacing: 0.06em;
	margin-top: 0.4rem;
	text-align: center;
	line-height: 1.4;
}

.presens-detail-links {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	align-items: stretch;
}
/* 3カード構成（殿ご指示 2026-04-26：DETAIL カード削除） */
.presens-detail-links--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 960px;
	margin-inline: auto;
}

.presens-detail-link {
	display: grid;
	grid-template-rows: auto auto 1fr;
	min-height: 180px;
	padding: 1.5rem;
	border: 1px solid var(--presens-border);
	border-radius: 6px;
	text-decoration: none;
	color: var(--presens-text);
	background: var(--presens-surface);
	transition: transform var(--presens-transition), box-shadow var(--presens-transition), border-color var(--presens-transition);
}

.presens-detail-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(74, 44, 42, 0.08);
	border-color: var(--presens-secondary);
}

.presens-detail-link__eyebrow {
	font-family: var(--presens-font-en);
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--presens-accent);
	margin-bottom: 1.1rem;
}

.presens-detail-link__title {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--presens-primary);
	margin-bottom: 0.75rem;
	line-height: 1.5;
}

@media (min-width: 1024px) {
	.presens-detail-link__title {
		white-space: nowrap;
		min-height: 1.5em;
	}
}

.presens-detail-link__text {
	font-family: var(--presens-font-sans);
	font-size: 0.88rem;
	line-height: 1.8;
	color: var(--presens-text-light);
}

/* ===== Utility ===== */
.presens-text-center {
	text-align: center;
}

.presens-mb-0 { margin-bottom: 0; }
.presens-mb-s { margin-bottom: 1rem; }
.presens-mb-m { margin-bottom: 2rem; }
.presens-mb-l { margin-bottom: 3rem; }

/* ===== Responsive ===== */
@media (max-width: 1023px) {
	.presens-header__inner {
		min-height: 60px;
	}

	.presens-section {
		padding: 3.5rem 0;
	}

	.presens-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.presens-detail-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.presens-header__logo img {
		max-height: 32px;
	}

	.lang-switcher {
		margin-left: 0.5rem;
	}

	.presens-section {
		padding: 2.5rem 0;
	}

	.presens-section__title {
		margin-bottom: 2rem;
	}

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

	.presens-detail-links {
		grid-template-columns: 1fr;
	}

	.presens-news-item {
		flex-direction: column;
		gap: 0.25rem;
	}

	.presens-footer__columns .wp-block-column {
		margin-bottom: 1.5rem;
	}
}

/* ===== 準備中リンク（無効化） ===== */
.presens-footer__link--disabled,
.rbc-event__link--disabled {
	color: rgba(255, 255, 255, 0.4) !important;
	cursor: not-allowed !important;
	pointer-events: none;
	text-decoration: line-through;
	font-style: italic;
}
.rbc-event__link--disabled {
	color: rgba(0, 0, 0, 0.35) !important;
	background: transparent !important;
	border: 1px dashed rgba(0, 0, 0, 0.2);
	padding: 0.5rem 1rem;
	display: inline-block;
	border-radius: 4px;
}
