@charset "UTF-8";
/* ==========================================================================
   EUROPA-PHOTO ギャラリーデザイン
   2026-09-01 追加

   既存の /css/wp.css・wp2.css の後に読み込まれ、必要な箇所だけ上書きする。
   このファイルの読み込みを外せば、元の見た目に戻る。
   ========================================================================== */

:root {
	--ep-bg:    #ffffff;
	--ep-text:  #1a1a1a;
	--ep-muted: #8e8e8e;
	--ep-line:  #e6e6e6;
	--ep-hover: #b8860b;
	--ep-max:   1280px;
	--ep-gap:   36px;
	--ep-font: "Lato", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
	           "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

/* ---------- 1. 土台 ---------- */

body {
	background: var(--ep-bg);
	color: var(--ep-text);
	font-family: var(--ep-font);
	-webkit-font-smoothing: antialiased;
}

#container a,
#content_menu a {
	color: inherit;
	text-decoration: none;
}

img { max-width: 100%; height: auto; }

/* ---------- 2. ヘッダー ---------- */

#header_wrap {
	position: sticky;
	top: 0;
	z-index: 3;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--ep-line);
}

#inner-header {
	max-width: var(--ep-max);
	margin: 0 auto;
	padding: 18px 24px;
}

#header_wrap h1 img {
	width: auto;
	max-height: 34px;
}

#inner-header ul.fc li a {
	opacity: .55;
	transition: opacity .25s ease;
}

#inner-header ul.fc li a:hover { opacity: 1; }

/* ---------- 3. 一覧グリッド ---------- */

#content_menu { padding: 0 24px; }

#inner-content,
#main {
	max-width: var(--ep-max);
	width: 100%;
	margin: 0 auto;
	float: none;
}

#container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 48px var(--ep-gap);
	max-width: var(--ep-max);
	margin: 56px auto 72px;
	width: auto !important;
	height: auto !important;
	position: static !important;
}

#container .item {
	position: static !important;
	left: auto !important;
	top: auto !important;
	width: auto !important;
	height: auto !important;
	max-width: none;
	min-width: 0;
	border: 0;
	box-sizing: border-box;
}

#container .item article { margin: 0; }
#container .item a { display: block; }

#container .item figure {
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #f2f2f2;
	aspect-ratio: 410 / 243;
	border-radius: 2px;
}

#container .item figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1);
	transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}

#container .item a:hover figure img { transform: scale(1.05); }

#container .item div { padding: 16px 2px 0; }

#container .item .cate_day {
	margin: 0 0 6px;
	font-size: 11px;
	letter-spacing: .12em;
	color: var(--ep-muted);
}

#container .item .cate_title {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	font-weight: 700;
	color: var(--ep-text);
	transition: color .25s ease;
}

#container .item a:hover .cate_title { color: var(--ep-hover); }

/* ---------- 4. 表示アニメーション ----------
   元のCSSは12件目までしか指定が無く、13件目以降が透明のままだった。
   件数に関係なく必ず表示されるようにし、最初の8件だけ時間差をつける。 */

#container .item {
	opacity: 1;
	animation: ep-fade-up .55s ease both;
}

#container .item:nth-child(1) { animation-delay: 0s; }
#container .item:nth-child(2) { animation-delay: .05s; }
#container .item:nth-child(3) { animation-delay: .10s; }
#container .item:nth-child(4) { animation-delay: .15s; }
#container .item:nth-child(5) { animation-delay: .20s; }
#container .item:nth-child(6) { animation-delay: .25s; }
#container .item:nth-child(7) { animation-delay: .30s; }
#container .item:nth-child(8) { animation-delay: .35s; }
#container .item:nth-child(n+9) { animation-delay: .38s; }

@keyframes ep-fade-up {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	#container .item { animation: none; opacity: 1; }
	#container .item figure img,
	#container .item .cate_title { transition: none; }
}

/* ---------- 5. ページ送り ---------- */

ul.page-numbers {
	padding: 8px 0 72px;
	text-align: center;
}

ul.page-numbers li {
	display: inline-block;
	width: auto;
	height: auto;
	margin: 0 4px;
}

a.page-numbers,
ul.page-numbers li span.page-numbers {
	display: inline-block;
	min-width: 38px;
	padding: 9px 10px;
	border: 1px solid var(--ep-line);
	border-radius: 2px;
	font-size: 13px;
	line-height: 1;
	color: var(--ep-text);
	transition: border-color .2s ease;
}

a.page-numbers:hover { border-color: var(--ep-text); }

ul.page-numbers li span.current {
	background: var(--ep-text);
	border-color: var(--ep-text);
	color: #fff;
}

/* ---------- 6. 記事ページ ---------- */

.single #main,
.page #main { max-width: 960px; }

#eptable {
	width: 100%;
	margin: 32px 0 40px;
	border-top: 1px solid var(--ep-line);
}

#eptable td {
	padding: 12px 16px 12px 0;
	border-bottom: 1px solid var(--ep-line);
	font-size: 14px;
	line-height: 1.7;
	vertical-align: top;
}

#eptable tr td:first-child {
	width: 8em;
	color: var(--ep-muted);
	font-size: 13px;
	letter-spacing: .04em;
}

.entry-content img,
article img { border-radius: 2px; }

.entry-content p {
	line-height: 2;
	font-size: 15px;
}

/* ---------- 7. 地図 ---------- */

.gm-map,
div.archive .gm-map {
	margin: 40px 0 56px;
	border: 1px solid var(--ep-line);
	border-radius: 2px;
	overflow: hidden;
}

/* ---------- 8. 拡大表示（Lightbox） ---------- */

.lb-outerContainer,
.lb-dataContainer { background: #111; }
.lb-outerContainer { border-radius: 2px; }

.lb-data .lb-caption {
	font-size: 14px;
	font-weight: 400;
	color: #f2f2f2;
}

.lb-data .lb-number {
	font-size: 11px;
	letter-spacing: .1em;
	color: #8e8e8e;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next { opacity: .35; transition: opacity .25s ease; }
.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover { opacity: .9; }

/* ---------- 9. フッター ---------- */

.footer {
	margin-top: 24px;
	padding: 40px 24px;
	border-top: 1px solid var(--ep-line);
}

#inner-footer {
	max-width: var(--ep-max);
	margin: 0 auto;
}

.footer .copy {
	font-size: 11px;
	letter-spacing: .08em;
	color: var(--ep-muted);
}

/* ---------- 10. スマートフォン ---------- */

@media screen and (max-width: 900px) {
	:root { --ep-gap: 24px; }
	#container { margin: 40px auto 56px; }
}

@media screen and (max-width: 620px) {
	#content_menu { padding: 0 18px; }

	#container {
		grid-template-columns: 1fr;
		gap: 34px;
		margin: 28px auto 44px;
	}

	#inner-header { padding: 14px 18px; }
	#header_wrap h1 img { max-height: 26px; }

	#container .item .cate_title { font-size: 16px; }
	#container .item div { padding: 14px 0 0; }

	a.page-numbers,
	ul.page-numbers li span.page-numbers {
		min-width: 44px;
		padding: 12px;
	}

	.entry-content p { font-size: 16px; line-height: 1.95; }
}

/* ==========================================================================
   11. 記事ページ下部：前後の記事へのリンク
   ========================================================================== */

.ep-postnav {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin: 56px 0 64px;
	padding-top: 40px;
	border-top: 1px solid var(--ep-line);
}

.ep-postnav__link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px;
	border: 1px solid var(--ep-line);
	border-radius: 3px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.ep-postnav__link:hover {
	border-color: #d2d2d2;
	box-shadow: 0 8px 26px rgba(0, 0, 0, .07);
	transform: translateY(-2px);
}

.ep-postnav__thumb {
	flex: 0 0 104px;
	width: 104px;
	aspect-ratio: 410 / 243;
	overflow: hidden;
	border-radius: 2px;
	background: #f2f2f2;
}

.ep-postnav__thumb img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	transform: scale(1);
	transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.ep-postnav__link:hover .ep-postnav__thumb img { transform: scale(1.07); }

.ep-postnav__body { min-width: 0; flex: 1 1 auto; }

.ep-postnav__label {
	display: block;
	margin-bottom: 7px;
	font-size: 10px;
	letter-spacing: .18em;
	color: var(--ep-muted);
}

.ep-postnav__link--prev .ep-postnav__label::before { content: "← "; }
.ep-postnav__link--next .ep-postnav__label::after  { content: " →"; }

.ep-postnav__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.6;
	font-weight: 700;
	color: var(--ep-text);
	transition: color .25s ease;
}

.ep-postnav__link:hover .ep-postnav__title { color: var(--ep-hover); }

/* 横に2つ並べる。次の記事だけの場合は右側に置く */
@media screen and (min-width: 700px) {
	.ep-postnav { grid-template-columns: 1fr 1fr; gap: 20px; }
	.ep-postnav__link--next { text-align: right; }
	.ep-postnav__link--next:only-child { grid-column: 2; }
}

/* ==========================================================================
   12. 記事ページ下部：ほかの写真（New Post Catch ウィジェット）
       元は回り込みが解除されておらず、高さが 0 になって崩れていた。
   ========================================================================== */

#sidebar1 {
	float: none;
	width: 100%;
	max-width: var(--ep-max);
	margin: 0 auto;
	padding-bottom: 24px;
}

.widget_newpostcatch { margin-bottom: 8px; }

/* ウィジェット名が未設定のときだけ、見出しを補う */
.widget_newpostcatch:not(:has(.widgettitle))::before {
	content: "ほかの写真";
	display: block;
	margin-bottom: 26px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ep-line);
	font-size: 11px;
	letter-spacing: .18em;
	color: var(--ep-muted);
}

.widget_newpostcatch .widgettitle {
	margin-bottom: 26px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ep-line);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .18em;
	color: var(--ep-muted);
}

ul#npcatch {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 30px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: visible;
}

ul#npcatch li {
	float: none;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
	overflow: visible;
}

ul#npcatch li a {
	display: block;
	color: inherit;
	text-decoration: none;
}

ul#npcatch figure {
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 2px;
	background: #f2f2f2;
	aspect-ratio: 3 / 2;
	float: none;
}

ul#npcatch figure img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	transform: scale(1);
	transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

ul#npcatch li a:hover figure img { transform: scale(1.05); }

ul#npcatch .detail {
	padding-top: 12px;
	overflow: visible;
}

ul#npcatch .title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.6;
	font-weight: 700;
	color: var(--ep-text);
	transition: color .25s ease;
}

ul#npcatch li a:hover .title { color: var(--ep-hover); }

ul#npcatch .date {
	display: block;
	margin-top: 7px;
	font-size: 11px;
	letter-spacing: .06em;
	color: var(--ep-muted);
}

/* ==========================================================================
   13. アーカイブ（カテゴリー）ページ
   ========================================================================== */

.ep-archive-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 18px;
	max-width: var(--ep-max);
	margin: 44px auto 0;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--ep-line);
}

.ep-archive-head__title {
	margin: 0;
	font-size: 26px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--ep-text);
}

.ep-archive-head__count {
	margin: 0;
	font-size: 11px;
	letter-spacing: .18em;
	color: var(--ep-muted);
}

/* 見出しが付いたぶん、グリッドの上の余白を詰める */
.archive #container,
.ep-archive-head + #container { margin-top: 36px; }

/* パンくず */
#breadcrumbs {
	max-width: var(--ep-max);
	margin: 26px auto 0;
	font-size: 11px;
	letter-spacing: .06em;
	color: var(--ep-muted);
}

#breadcrumbs a { color: var(--ep-muted); text-decoration: none; }
#breadcrumbs a:hover { color: var(--ep-text); }

nav.pagination {
	max-width: var(--ep-max);
	margin: 0 auto;
}

/* ==========================================================================
   14. 記事ページの横幅
   ========================================================================== */

#content { padding: 0 24px; }

#inner-content2 {
	max-width: 960px;
	width: 100%;
	margin: 0 auto;
	float: none;
}

/* ==========================================================================
   15. スマートフォン（11〜14 の調整）
   ========================================================================== */

@media screen and (max-width: 620px) {
	#content { padding: 0 18px; }

	.ep-postnav {
		margin: 40px 0 48px;
		padding-top: 30px;
	}

	.ep-postnav__thumb { flex: 0 0 84px; width: 84px; }
	.ep-postnav__title { font-size: 13px; }

	ul#npcatch {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 24px 16px;
	}

	.ep-archive-head {
		margin-top: 28px;
		padding-bottom: 18px;
	}

	.ep-archive-head__title { font-size: 21px; }

	.archive #container,
	.ep-archive-head + #container { margin-top: 26px; }
}

/* ==========================================================================
   16. 同じカテゴリーの写真
   ========================================================================== */

.ep-related {
	margin: 0 0 8px;
	padding-top: 8px;
}

.ep-related__heading {
	margin: 0 0 26px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ep-line);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .18em;
	color: var(--ep-muted);
}

.ep-related__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 30px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ep-related__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ep-related__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.ep-related__thumb {
	display: block;
	overflow: hidden;
	border-radius: 2px;
	background: #f2f2f2;
	aspect-ratio: 410 / 243;
}

.ep-related__thumb img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	transform: scale(1);
	transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.ep-related__link:hover .ep-related__thumb img { transform: scale(1.05); }

.ep-related__body { display: block; padding-top: 12px; }

.ep-related__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.6;
	font-weight: 700;
	color: var(--ep-text);
	transition: color .25s ease;
}

.ep-related__link:hover .ep-related__name { color: var(--ep-hover); }

.ep-related__date {
	display: block;
	margin-top: 7px;
	font-size: 11px;
	letter-spacing: .06em;
	color: var(--ep-muted);
}

/* New Post Catch ウィジェットは「サイト全体の最新写真」なので、
   同カテゴリーの一覧と区別できるよう見出しを変える */
.widget_newpostcatch:not(:has(.widgettitle))::before {
	content: "最新の写真";
}

@media screen and (max-width: 620px) {
	.ep-related__list {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 24px 16px;
	}
}
