/*
Theme Name: Art Link Japan
Theme URI: https://artlinkjapan.example
Author: Art Link Japan Association
Author URI: https://artlinkjapan.example
Description: 一般財団法人アートリンクジャパン公式サイト用テーマ。TOP.dc.html / Loading.dc.html ほか各 .dc.html デザインを WordPress テーマ化したものです。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: art-link-japan
*/

/* ---------- Fonts ---------- */
@font-face {
	font-family: 'LINE Seed JP';
	src: url('assets/fonts/LINESeedJP_OTF_Th.woff2') format('woff2'),
		url('assets/fonts/LINESeedJP_OTF_Th.woff') format('woff');
	font-weight: 100 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'LINE Seed JP';
	src: url('assets/fonts/LINESeedJP_OTF_Rg.woff2') format('woff2'),
		url('assets/fonts/LINESeedJP_OTF_Rg.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'LINE Seed JP';
	src: url('assets/fonts/LINESeedJP_OTF_Bd.woff2') format('woff2'),
		url('assets/fonts/LINESeedJP_OTF_Bd.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'LINE Seed JP';
	src: url('assets/fonts/LINESeedJP_OTF_Eb.woff2') format('woff2'),
		url('assets/fonts/LINESeedJP_OTF_Eb.woff') format('woff');
	font-weight: 800 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	font-family: 'LINE Seed JP', 'M PLUS Rounded 1c', sans-serif;
	color: #000;
	background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: rgb(255, 0, 0); }
a:hover { color: #000; }
button { font-family: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Shared buttons ---------- */
.alj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 0;
	padding: 9px 22px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	font-family: inherit;
	box-shadow: inset 0 0 0 3px #000, inset 0 0 0 5px #fff;
}
.alj-btn:hover { background: rgb(255, 0, 0); color: #fff; box-shadow: inset 0 0 0 3px rgb(255, 0, 0), inset 0 0 0 5px #fff; }
.alj-btn-red { background: rgb(255, 0, 0); box-shadow: inset 0 0 0 3px rgb(255, 0, 0), inset 0 0 0 5px #fff; }
.alj-btn-red:hover { background: #000; box-shadow: inset 0 0 0 3px #000, inset 0 0 0 5px #fff; }

.alj-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 2px solid #000;
	border-radius: 20px;
	padding: 8px 18px;
	font-size: 15px;
	font-weight: 400;
	text-decoration: none;
	color: #000;
	font-family: Inter, sans-serif;
}
.alj-more:hover { background: #000; color: #fff; }
.alj-more-white { border-color: #fff; color: #fff; }
.alj-more-white:hover { background: #fff; color: #000; }

/* ---------- Page header band (used on every inner page) ---------- */
.alj-page-hero {
	background: #000;
	padding: 100px clamp(20px, 6vw, 90px) 70px;
	box-sizing: border-box;
}
.alj-page-hero .alj-eyebrow {
	display: block;
	color: rgb(255, 0, 0);
	font-weight: 800;
	font-size: clamp(24px, 5.5vw, 80px);
	line-height: 1.01;
	letter-spacing: -.01em;
	white-space: nowrap;
}
.alj-page-hero .alj-eyebrow::after {
	content: attr(data-text);
	display: block;
	color: transparent;
	-webkit-text-stroke: 2px rgb(255, 0, 0);
}
.alj-page-hero h1 {
	margin: 8px 0 0;
	color: #fff;
	font-size: clamp(26px, 5vw, 46px);
	font-weight: 700;
}
.alj-hero-title-block {
	position: relative;
	min-height: clamp(74px, 16.5vw, 247px);
}
.alj-hero-title-block h1 {
	position: absolute;
	top: 60.7%;
	left: 20px;
	margin: 0;
}

/* ---------- Header ---------- */
.alj-nav-link { text-decoration: none; }
.alj-nav-link:hover { color: rgb(255, 255, 0) !important; }

.alj-header {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px;
	background: #fff;
	z-index: 200;
}
.alj-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
	padding-left: 24px;
	box-sizing: border-box;
}
.alj-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #000;
}
.alj-logo img.alj-logo-image { height: 32px; width: auto; }

.alj-menu-btn {
	width: 80px; height: 80px;
	border: none;
	background: rgb(255, 0, 0);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.alj-menu-btn-bars {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 32px;
}
.alj-menu-btn-bars span { display: block; height: 3px; background: #fff; width: 100%; }

.alj-nav-overlay {
	position: fixed; inset: 0;
	background: rgb(255, 0, 0);
	z-index: 300;
	display: none;
	overflow-y: auto;
}
.alj-nav-overlay.is-open { display: block; }
.alj-nav-close {
	position: absolute; top: 0; right: 0;
	width: 80px; height: 80px;
	border: none;
	background: none;
	padding: 0;
	cursor: pointer;
}
.alj-nav-close img { display: block; width: 100%; height: 100%; }

.alj-nav-inner {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	padding: 100px clamp(20px, 6vw, 90px) 40px;
	box-sizing: border-box;
}
.alj-nav-logo { display: inline-block; margin-bottom: 40px; }
.alj-nav-logo img { height: 40px; width: auto; }

.alj-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.alj-nav-list a {
	color: #fff;
	font-size: 17px;
	font-weight: 400;
	display: inline-block;
}
.alj-nav-privacy {
	display: inline-block;
	margin-top: 48px;
	color: #fff;
	font-size: 17px;
	font-weight: 400;
	text-decoration: none;
}
.alj-nav-privacy:hover { color: rgb(255, 255, 0); }

.alj-nav-deco {
	position: relative;
	margin-top: auto;
	min-height: 140px;
	pointer-events: none;
}
.alj-nav-deco-ghost {
	position: absolute; left: 50%; bottom: 0;
	transform: translateX(-50%);
	font-family: 'LINE Seed JP', sans-serif;
	font-weight: 800;
	font-size: clamp(40px, 10vw, 150px);
	line-height: 1;
	color: rgba(255, 255, 255, .25);
	white-space: nowrap;
}
.alj-nav-deco-tagline {
	position: absolute; right: 0; bottom: 8%;
	width: clamp(200px, 30vw, 470px);
	height: auto;
}
@media (max-width: 700px) {
	.alj-nav-deco { display: none; }
}

/* ---------- Footer ---------- */
.alj-footer-link { text-decoration: none; }
.alj-footer-link:hover { opacity: .7; }

.alj-footer-links {
	background: #000;
	padding: 70px 5vw 90px;
	box-sizing: border-box;
}
.alj-footer-links h2 {
	color: #fff;
	text-align: center;
	font-size: clamp(26px, 3.5vw, 42px);
	font-weight: 800;
	margin: 0 0 48px;
}
.alj-footer-links-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	max-width: 1320px;
	margin: 0 auto;
}
.alj-footer-link-card { width: 100%; text-decoration: none; }
.alj-footer-link-plate {
	aspect-ratio: 648 / 200;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}
.alj-footer-link-plate--text::after {
	content: "";
	position: absolute; top: 10px; right: 11px;
	width: 0; height: 0;
	border-style: solid;
	border-width: 0 29px 29px 0;
	border-color: transparent rgb(255, 0, 0) transparent transparent;
}
.alj-footer-link-plate span { font-size: 18px; font-weight: 700; color: #000; letter-spacing: .02em; }
.alj-footer-link-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.alj-footer-link-caption { text-align: center; color: #fff; font-size: 14px; margin-top: 10px; }

.alj-footer-bottom { background: rgb(255, 0, 0); padding: 90px 5vw; box-sizing: border-box; }
.alj-footer-bottom-inner {
	max-width: 1400px; margin: 0 auto;
	display: flex; flex-direction: column; align-items: flex-start;
}
.alj-footer-logo { display: inline-block; text-decoration: none; margin-bottom: 30px; }
.alj-footer-logo img { display: block; height: 40px; width: auto; }
.alj-footer-nav { display: flex; flex-direction: column; gap: 40px; margin-bottom: 28px; }
.alj-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.alj-footer-nav ul a, .alj-footer-nav > a { color: #fff; font-size: 16px; }
.alj-footer-social { display: flex; gap: 20px; }
.alj-footer-social a {
	display: flex; align-items: center; justify-content: center;
	width: 50px; height: 50px;
	border-radius: 50%;
	background: #fff;
	color: rgb(255, 0, 0);
}
.alj-footer-bar { background: rgb(255, 0, 0); padding: 22px 5vw; text-align: center; }
.alj-footer-bar span { color: #fff; font-size: 10px; }

/* ---------- Loading screen ---------- */
.alj-loading {
	position: fixed; inset: 0;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity .4s ease, visibility .4s ease;
}
.alj-loading.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.alj-loader {
	display: inline-flex;
	gap: 10px;
}
.alj-loader:before,
.alj-loader:after {
	content: "";
	height: 20px;
	aspect-ratio: 1;
	border-radius: 50%;
	box-shadow: 0 0 0 2px #000;
	background:
		radial-gradient(farthest-side, #000 95%, #0000) 35% 35% / 6px 6px no-repeat
		#fff;
	animation: alj-loader-eye 3s infinite;
}
@keyframes alj-loader-eye {
	0%, 11%  { background-position: 35% 35%; }
	14%, 36% { background-position: 65% 35%; }
	38%, 61% { background-position: 65% 65%; }
	64%, 86% { background-position: 35% 65%; }
	88%, 100% { background-position: 35% 35%; }
}

/* ---------- Back to top ---------- */
.alj-back-to-top {
	position: fixed; right: 24px; bottom: 24px;
	width: 100px;
	aspect-ratio: 104 / 90;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35));
	z-index: 150;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.alj-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity .25s ease, transform .25s ease;
}
.alj-back-to-top img { display: block; width: 100%; height: 100%; }

/* ---------- TOP page ---------- */
/* Track holds 3 identical sets of 4 images; each loop shifts exactly one set. */
@keyframes alj-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }
/* Lower row DOM order is 4,3,2,1 so it flows 1,2,3,4 rightward; starts on a "1" (item 8 of 12). */
@keyframes alj-marquee-ltr { from { transform: translateX(-58.3333%); } to { transform: translateX(-25%); } }

.alj-hero {
	position: relative;
	height: min(56vw, 840px);
	min-height: 330px;
	overflow: hidden;
	background: #111;
	display: flex;
	flex-direction: column;
}
.alj-hero-row { position: relative; flex: 1 1 50%; overflow: hidden; }
.alj-hero-track {
	position: absolute; top: 0; bottom: 0; left: 0;
	display: flex; width: max-content;
}
.alj-hero-track.alj-rtl { animation: alj-marquee-rtl 144s linear infinite; }
.alj-hero-track.alj-ltr { animation: alj-marquee-ltr 144s linear infinite; }
.alj-hero-track > div { flex: 0 0 auto; height: 100%; aspect-ratio: 1500 / 420; }
.alj-hero-track img { width: 100%; height: 100%; object-fit: cover; }
.alj-hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .15); pointer-events: none; z-index: 5; }
.alj-hero-title-wrap {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	pointer-events: none; z-index: 6;
}
.alj-hero-title-stack { position: relative; display: inline-flex; }
.alj-hero-title {
	margin: 0;
	white-space: nowrap;
	font-size: clamp(24px, 8vw, 150px);
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px rgb(255, 0, 0);
	letter-spacing: -.01em;
	transform-origin: center center;
}
.alj-hero-tagline {
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 60%;
	height: auto;
}

.alj-news-section { padding: 100px clamp(20px, 6vw, 90px); text-align: center; box-sizing: border-box; }
.alj-news-section h2 { margin: 0; font-size: clamp(32px, 6vw, 60px); font-weight: 800; color: #000; }
.alj-news-section > p { margin: 24px 0 56px; font-size: clamp(15px, 1.8vw, 20px); color: #000; }
.alj-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	max-width: 1320px;
	margin: 0 auto 56px;
	text-align: left;
}
.alj-news-card { text-decoration: none; color: inherit; display: block; }
.alj-news-thumb {
	aspect-ratio: 420 / 236;
	border-radius: 15px;
	background: #f0f0f0;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
.alj-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.alj-news-title { margin-top: 16px; font-size: 17px; font-weight: 400; letter-spacing: .06em; color: #000; }

.alj-news-section--archive { background: #000; padding-top: 30px; }
.alj-news-section--archive .alj-news-title { color: #fff; }

.alj-about-band { position: relative; min-height: 500px; overflow: hidden; }
.alj-about-band img.alj-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.alj-about-band-inner {
	position: relative;
	padding: 90px clamp(20px, 6vw, 90px);
	text-align: center;
	max-width: 900px;
	margin: 0 auto;
}
.alj-about-band-inner p {
	margin: 0 0 40px;
	font-size: clamp(16px, 2.4vw, 28px);
	line-height: 1.7;
	color: #fff;
	text-shadow: 2px 2px 3px rgba(0, 0, 0, .6);
	font-weight: 400;
}

.alj-panels { background: #fff; color: #000; }
.alj-panel {
	display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 40px;
	padding: 60px clamp(20px, 6vw, 90px);
	max-width: 1500px; margin: 0 auto; box-sizing: border-box;
}
.alj-panel-text { flex: 1 1 380px; min-width: 0; }
.alj-panel-ja { font-size: 20px; line-height: 1; margin: 0; }
.alj-panel-en { margin: 0 0 32px; font-size: clamp(24px, 4.2vw, 44px); font-weight: 700; line-height: 1; overflow-wrap: break-word; }
.alj-panel-img { flex: 1 1 480px; }
.alj-panel-img img { width: 100%; aspect-ratio: 648 / 400; object-fit: cover; border-radius: 30px; }

.alj-split-hero { position: relative; min-height: 480px; overflow: hidden; }
.alj-split-hero img.alj-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.alj-split-hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); pointer-events: none; }
.alj-split-hero-inner { position: relative; padding: 90px clamp(20px, 6vw, 90px); text-align: center; max-width: 700px; margin: 0 auto; }
.alj-split-hero-inner h2 { margin: 0 0 24px; font-size: clamp(32px, 6vw, 60px); font-weight: 800; color: #fff; }
.alj-split-hero-inner p { margin: 0 0 32px; font-size: clamp(15px, 1.8vw, 20px); line-height: 2; color: #fff; text-shadow: 2px 2px 3px rgba(0, 0, 0, .6); }

.alj-contact-band { position: relative; overflow: hidden; background: #fff; }
.alj-contact-band img.alj-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.alj-contact-band-inner { position: relative; padding: 90px clamp(20px, 6vw, 90px); text-align: center; max-width: 800px; margin: 0 auto; }
.alj-contact-band-inner h2 { margin: 0 0 24px; font-size: clamp(32px, 6vw, 60px); font-weight: 800; color: #000; }
.alj-contact-band-inner p { margin: 0 0 32px; font-size: clamp(15px, 1.8vw, 20px); line-height: 2; color: #000; }

/* ---------- Inner pages: About ---------- */
.alj-about-intro { background: #000; padding: 0 clamp(20px, 6vw, 90px) 90px; box-sizing: border-box; }
.alj-about-intro p { margin: 0; color: #fff; font-size: clamp(18px, 3vw, 32px); line-height: 1.9; font-weight: 400; }
.alj-facts-section { background: #000; padding: 90px clamp(20px, 6vw, 90px); box-sizing: border-box; }
.alj-facts-label { display: inline-block; background: #fff; color: #000; font-size: 17px; padding: 4px 12px; margin-bottom: 40px; }
.alj-facts { margin: 0; max-width: 930px; }
.alj-facts > div { margin-bottom: 45px; }
.alj-facts dt { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.alj-facts dd { color: #fff; font-size: 20px; margin: 0; line-height: 1.6; font-weight: 400; }

/* ---------- Artist ---------- */
.alj-artist-list { background: #000; padding: 20px clamp(20px, 6vw, 90px) 100px; box-sizing: border-box; display: flex; flex-direction: column; gap: 130px; }
.alj-artist-item { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; max-width: 1320px; }
.alj-artist-text { flex: 1 1 380px; color: #fff; }
.alj-artist-name { font-size: 32px; font-weight: 700; margin-bottom: 4px; }
.alj-artist-en { font-size: 16px; color: rgba(255, 255, 255, .6); font-family: Inter, sans-serif; margin-bottom: 24px; }
.alj-artist-bio { font-size: 16px; line-height: 1.9; margin: 0; }
.alj-artist-social { display: flex; gap: 10px; margin-top: 24px; }
.alj-artist-social a {
	display: flex; align-items: center; justify-content: center;
	width: 50px; height: 50px;
	border-radius: 50%;
	background: #fff;
	color: #000;
}
.alj-artist-photo { flex: 1 1 340px; max-width: 420px; width: 100%; align-self: flex-start; }
.alj-artist-photo img, .alj-artist-photo .alj-placeholder { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.alj-artist-gallery { flex: 0 0 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1320px; }
.alj-artist-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #fff; display: block; }

/* ---------- ArtWorks / OilPaint grids ---------- */

.alj-oil-awards { display: flex; flex-wrap: wrap; align-items: flex-start; background: #000; }
.alj-oil-awards-text { flex: 1 1 480px; background: #000; color: #fff; padding: 56px clamp(20px, 6vw, 90px); box-sizing: border-box; }
.alj-oil-awards-text .alj-facts-label { margin-bottom: 10px; }
.alj-oil-awards-list { margin: 0 0 42px; }
.alj-oil-award-text { margin: 0; font-size: 20px; line-height: 36px; }
.alj-oil-awards-photos { flex: 1 1 480px; display: grid; grid-template-columns: 1fr 1fr; background: #000; }
.alj-oil-awards-photos img, .alj-oil-awards-photos .alj-placeholder { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 2px solid #000; box-sizing: border-box; background: #000; }
.alj-oil-exhibit-band { background: #fff; text-align: center; padding: 90px clamp(20px, 6vw, 90px); box-sizing: border-box; }
.alj-oil-exhibit-band h2 { margin: 0 0 24px; font-size: clamp(32px, 6vw, 60px); font-weight: 800; color: #000; }
.alj-oil-exhibit-band p { margin: 0 0 25px; font-size: clamp(15px, 1.8vw, 20px); line-height: 1.8; color: #000; }
.alj-oil-exhibit-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* ---------- Activities / Track record ---------- */
.alj-block-list { background: #000; padding: 20px clamp(20px, 6vw, 90px) 100px; box-sizing: border-box; display: flex; flex-direction: column; gap: 90px; }
.alj-block { max-width: 1320px; }
.alj-block h2 { color: #fff; font-size: 24px; font-weight: 700; margin: 0 0 24px; }
.alj-block-gallery-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 32px; }
.alj-block-gallery-2 img, .alj-block-gallery-2 .alj-placeholder { width: 100%; aspect-ratio: 645 / 420; object-fit: cover; background: #fff; }
.alj-block-gallery-single { margin-bottom: 32px; }
.alj-block-gallery-single img { display: block; width: 100%; aspect-ratio: 645 / 420; object-fit: cover; background: #fff; }
.alj-block-gallery-stack { display: flex; flex-direction: column; gap: 30px; margin-bottom: 32px; }
.alj-block-gallery-stack img { display: block; width: 100%; aspect-ratio: 645 / 420; object-fit: cover; background: #fff; }
.alj-block-gallery-3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 32px; }
.alj-block-gallery-3 img { display: block; width: 100%; background: #fff; }
.alj-block-gallery-3 .alj-gallery-item-a { grid-area: a; }
.alj-block-gallery-3 .alj-gallery-item-b { grid-area: b; }
.alj-block-gallery-3 .alj-gallery-item-c { grid-area: c; }

/* default: every cell crops to the standard card ratio */
.alj-block-gallery-3 .alj-gallery-item-a,
.alj-block-gallery-3 .alj-gallery-item-b,
.alj-block-gallery-3 .alj-gallery-item-c { aspect-ratio: 645 / 420; object-fit: cover; }

.alj-block-gallery-3--top    { grid-template-areas: "a a" "b c"; }
.alj-block-gallery-3--bottom { grid-template-areas: "a b" "c c"; }
.alj-block-gallery-3--left   { grid-template-areas: "a b" "a c"; }
.alj-block-gallery-3--right  { grid-template-areas: "a b" "c b"; }

/* vertical merge (left/right): the merged photo spans 2 stacked card-ratio cells
   plus the gap between them (645 / (420*2 + 30) at the gallery's max width) — a
   fixed ratio, not height:100%, so the row track can't inflate to the photo's own
   intrinsic size and "zoom" the crop. */
.alj-block-gallery-3--left .alj-gallery-item-a,
.alj-block-gallery-3--right .alj-gallery-item-b {
	aspect-ratio: 645 / 870;
	height: auto;
}

/* horizontal merge (top/bottom): the merged photo is full width, natural height, no crop */
.alj-block-gallery-3--top .alj-gallery-item-a,
.alj-block-gallery-3--bottom .alj-gallery-item-c {
	aspect-ratio: auto;
	height: auto;
	object-fit: initial;
}
.alj-block p { color: #fff; font-size: 16px; line-height: 1.9; margin: 0; max-width: 1000px; }

/* ---------- generic image placeholder ---------- */
.alj-placeholder { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.alj-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Contact ---------- */
.alj-contact-form-wrap { background: #000; padding: 60px clamp(20px, 6vw, 90px) 140px; box-sizing: border-box; }
.alj-contact-thanks { background: #000; padding: 60px clamp(20px, 6vw, 90px) 140px; box-sizing: border-box; max-width: 920px; margin: 0 auto; text-align: center; }
.alj-contact-thanks p { color: #fff; font-size: 20px; line-height: 1.8; }
.alj-contact-thanks-summary { text-align: left; margin-top: 40px; }
.alj-contact-thanks-summary hr { border: none; border-top: 1px solid rgba(255, 255, 255, .3); margin: 0 0 32px; }
.alj-contact-thanks-summary p { color: #fff; font-size: 16px; line-height: 1.9; margin: 0 0 24px; }
.alj-contact-thanks-summary p:last-child { margin-bottom: 0; }
.alj-contact-form { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.alj-contact-form label { display: block; }
.alj-field-label { color: #fff; font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; margin-bottom: 12px; }
.alj-contact-form input, .alj-contact-form textarea {
	font-family: inherit;
	font-size: 16px;
	padding: 14px 16px;
	border: 3px solid rgb(161, 161, 161);
	border-radius: 4px;
	box-sizing: border-box;
	width: 100%;
}
.alj-contact-form input:focus, .alj-contact-form textarea:focus {
	outline: 2px solid rgb(255, 0, 0);
	border-color: rgb(255, 0, 0);
}
.alj-field-err { border-color: rgb(255, 0, 0) !important; background: #fff5f5; }
.alj-field-error-text { color: rgb(255, 0, 0); font-size: 14px; margin-top: 6px; }
.alj-agree-row { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 15px; }
.alj-agree-row input[type="checkbox"] { width: 20px; height: 20px; padding: 0; }
.alj-agree-row a { color: #fff; text-decoration: underline; }
.alj-submit-row { text-align: center; margin-top: 20px; }
.alj-form-notice { color: rgb(255, 0, 0); font-size: 16px; text-align: center; margin: 0 0 24px; }

/* ---------- Privacy policy ---------- */
.alj-policy-wrap { background: #000; padding: 20px clamp(20px, 6vw, 90px) 120px; box-sizing: border-box; }
.alj-policy-body { max-width: 1320px; color: #fff; font-size: 18px; line-height: 1.6; }
.alj-policy-body h2 { font-size: clamp(20px, 2.8vw, 32px); font-weight: 700; margin: 0 0 20px; }
.alj-policy-body section { margin-bottom: 56px; }
.alj-policy-body p { margin: 0; white-space: pre-line; }

/* ---------- News single ---------- */
.alj-news-single-wrap { background: #000; padding: 20px clamp(20px, 6vw, 90px) 100px; box-sizing: border-box; }
.alj-news-single { max-width: 940px; margin: 0 auto; }
.alj-news-single-thumb { border-radius: 15px; background: #f0f0f0; aspect-ratio: 939 / 527; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.alj-news-single-thumb img { width: 100%; height: 100%; object-fit: cover; }
.alj-news-single-title { color: #fff; font-size: 17px; font-weight: 400; letter-spacing: .08em; margin: 34px 0 40px; }
.alj-news-single-body { color: #fff; font-size: 16px; line-height: 2; margin: 0 0 48px; }
.alj-news-single-back { color: #fff; font-size: 16px; text-decoration: none; border-bottom: 1px solid #fff; padding-bottom: 2px; }
.alj-news-single-back:hover { color: rgb(255, 0, 0); border-bottom-color: rgb(255, 0, 0); }

/* ---------- Pagination ---------- */
.alj-pagination { display: flex; justify-content: center; gap: 12px; margin: 40px 0 0; flex-wrap: wrap; }
.alj-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 34px; height: 34px; padding: 0 8px;
	border-radius: 17px; border: 2px solid #fff; color: #fff; text-decoration: none; font-size: 13px;
}
.alj-pagination .page-numbers.current { background: #fff; color: #000; }
.alj-pagination .page-numbers:hover { background: rgb(255, 0, 0); border-color: rgb(255, 0, 0); color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
	/* 1. NEWS thumbnails: 1 column instead of 3 (front page + archive) */
	.alj-news-grid { grid-template-columns: 1fr; }

	/* 2. "アートリンクジャパンとは" band: center the text block vertically */
	.alj-about-band { display: flex; align-items: center; justify-content: center; min-height: 320px; }
	.alj-about-band-inner { padding-top: 40px; padding-bottom: 40px; }

	/* 3. Back-to-top floating character: smaller */
	.alj-back-to-top { width: 64px; }

	/* 4. LINKs partner banners: stack vertically instead of 2 columns */
	.alj-footer-links-grid { grid-template-columns: 1fr; }

	/* 11. Artist card: show the photo above the profile text instead of below.
	   With a long bio, source order (text, then photo) pushed the photo far
	   down the page; reorder visually so the photo always leads. */
	.alj-artist-photo { order: -1; }

	/* 12. Red buttons (.alj-btn): allow long labels to wrap instead of forcing
	   nowrap, which pushed the button — and its whole parent container (e.g.
	   油絵ページ's exhibit list) — wider than the screen. */
	.alj-btn { white-space: normal; }

	/* 7. TOP page images: pull back a bit (taller boxes need less crop/zoom to cover) */
	.alj-hero-track > div { aspect-ratio: 1500 / 560; }
	.alj-panel-img img { aspect-ratio: 648 / 480; }
	.alj-split-hero { min-height: 320px; }
	.alj-split-hero-inner { padding-top: 40px; padding-bottom: 40px; }

	/* 8. 油絵ページ「主な参加展示会」: wrapped lines were flowing under the ■ mark
	   instead of lining up with the text; add a hanging indent, and shrink the text
	   a little since names wrap more on a narrow screen. */
	.alj-oil-award-text {
		font-size: 17px;
		line-height: 1.5;
		padding-left: 1.2em;
		text-indent: -1.2em;
	}

	/* 9. Inner-page titles (施工実績・その他活動・海外交流実績・所属アーティスト ほか
	   全ページ共通の見出し) を少し小さく */
	.alj-page-hero .alj-eyebrow { font-size: clamp(19px, 7vw, 32px); }
	.alj-page-hero h1 { font-size: clamp(19px, 5.5vw, 28px); }

	/* 10. その他、各ページの本文・見出しの文字サイズを全体的に少し小さく */
	.alj-news-section h2,
	.alj-split-hero-inner h2,
	.alj-contact-band-inner h2,
	.alj-oil-exhibit-band h2 { font-size: clamp(22px, 7vw, 30px); }
	.alj-footer-links h2 { font-size: clamp(18px, 6.5vw, 26px); }

	.alj-block h2 { font-size: 19px; }
	.alj-artist-name { font-size: 22px; }
	.alj-panel-ja { font-size: 16px; }
	.alj-panel-en { font-size: clamp(18px, 6vw, 26px); }
	.alj-facts dt, .alj-facts dd { font-size: 16px; }
	.alj-block p { font-size: 15px; }
	.alj-contact-thanks p { font-size: 18px; }

	/* 13. Footer: reduce the vertical padding/gaps further on narrow screens,
	   where the PC-sized spacing reads as excessive dead space. */
	.alj-footer-bottom { padding: 56px 6vw; }
	.alj-footer-logo { margin-bottom: 24px; }
	.alj-footer-nav { gap: 28px; margin-bottom: 20px; }
}
