/* ==========================================================================
   EMI HINOUCHI — メインスタイル
   色はコラージュイラストから取っている（黒・生成り・ピンク・赤茶）。
   ========================================================================== */

:root {
	--bg: #0b0b0b;
	--ink: #f2ede4;         /* イラストの手書き文字の生成り色 */
	--muted: #8d877e;
	--line: rgba(242, 237, 228, 0.14);
	--pink: #e8508f;        /* イラストのピンクの差し色。使いすぎない */
	--rust: #b45a2c;        /* 赤茶の髪色 */

	--gutter: clamp(16px, 3.2vw, 48px);
	--header-h: 76px;
	--footer-h: 52px;
	--pad: clamp(16px, 3vh, 32px);
	--art-h: calc(100svh - var(--header-h) - var(--footer-h) - var(--pad) * 2);

	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--font-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	color: var(--ink);
	/* 紙の粒子のようなごく薄いノイズ。画像の上には重ねない */
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
		var(--bg);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

:lang(ja) body,
html[lang="ja"] body {
	font-family: var(--font), var(--font-ja);
}

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

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

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

:focus-visible {
	outline: 1px solid var(--pink);
	outline-offset: 4px;
}

.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.site {
	min-height: 100svh;
	display: grid;
	grid-template-rows: auto 1fr auto;
}

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */

.site-header {
	position: relative;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
	padding: 0 var(--gutter);
}

.wordmark {
	font-size: 13px;
	font-weight: 600;
	font-variation-settings: "wdth" 112;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	white-space: nowrap;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 40px;
}

.nav-list {
	display: flex;
	gap: 34px;
}

.nav-list a,
.lang-switch a {
	position: relative;
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--muted);
	transition: color 0.25s ease;
}

.nav-list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0.26em;
	bottom: -6px;
	height: 1px;
	background: var(--pink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item a,
.lang-switch a:hover,
.lang-switch a[aria-current] {
	color: var(--ink);
}

.nav-list a:hover::after,
.nav-list .current-menu-item a::after {
	transform: scaleX(1);
}

.lang-switch {
	display: flex;
	gap: 14px;
	padding-left: 40px;
	border-left: 1px solid var(--line);
}

.lang-switch a[aria-current]::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -9px;
	width: 3px;
	height: 3px;
	margin-left: -0.13em;
	border-radius: 50%;
	background: var(--pink);
	transform: translateX(-50%);
}

.menu-toggle {
	display: none;
	padding: 10px 0 10px 16px;
	border: 0;
	background: none;
	color: var(--ink);
	font: 500 11.5px/1 var(--font);
	letter-spacing: 0.26em;
	text-transform: uppercase;
	cursor: pointer;
}

/* スマホ用メニュー（全画面） */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: calc(var(--header-h) + 6vh) var(--gutter) calc(32px + env(safe-area-inset-bottom));
	background: var(--bg);
}

.mobile-menu[hidden] {
	display: none;
}

.mobile-nav-list a {
	display: block;
	padding: 4px 0;
	font-size: clamp(44px, 14vw, 72px);
	font-weight: 800;
	font-variation-settings: "wdth" 62;
	line-height: 1.05;
	text-transform: uppercase;
}

.mobile-menu .lang-switch {
	padding-left: 0;
	border-left: 0;
	gap: 28px;
}

.mobile-menu .lang-switch a {
	font-size: 13px;
}

body.menu-open {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   トップページ（共通）
   -------------------------------------------------------------------------- */

/* main の高さいっぱいにトップページを広げる */
.site-main {
	display: flex;
	flex-direction: column;
}

.front {
	position: relative;
	flex: 1;
}

.front__art {
	margin: 0;
}

.hero-img {
	opacity: 0;
	animation: eh-fade 1.2s ease 0.1s forwards;
}

@keyframes eh-fade {
	to {
		opacity: 1;
	}
}

.front__name {
	margin: 0;
	font-weight: 800;
	font-variation-settings: "wdth" 62;
	line-height: 0.84;
	letter-spacing: -0.005em;
	text-transform: uppercase;
}

.front__name span {
	display: block;
}

.front__local {
	margin: 0;
	font-family: var(--font-ja);
	font-weight: 300;
	color: var(--muted);
	letter-spacing: 0.5em;
}

/* --------------------------------------------------------------------------
   PC表示の3つの配置
   -------------------------------------------------------------------------- */

@media (min-width: 900px) {

	/* ① フレーム：画像を中央より少し左に。右側は大きな余白と縦書きの名前だけ */
	.front--frame {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.6fr);
		align-items: stretch;
		padding: var(--pad) var(--gutter);
	}

	.front--frame .front__art {
		grid-column: 2;
		align-self: center;
	}

	.front--frame .hero-img {
		width: auto;
		height: var(--art-h);
		max-width: 64vw;
		object-fit: contain;
	}

	.front--frame .front__type {
		grid-column: 3;
		align-self: end;
		display: flex;
		align-items: flex-end;
		gap: 20px;
		padding-left: clamp(24px, 3vw, 48px);
	}

	.front--frame .front__name {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.front--frame .front__local {
		writing-mode: vertical-rl;
		font-size: 13px;
		padding-top: 72px;
		/* 名前の上に細いピンクの縦線を1本だけ引く */
		background: linear-gradient(var(--pink), var(--pink)) center top / 1px 52px no-repeat;
	}

	/* ② ポスター：名前を背景いっぱいに敷き、画像を重ねる */
	.front--poster {
		display: grid;
		place-items: center;
		padding: var(--pad) var(--gutter);
		overflow: hidden;
	}

	.front__bigname {
		position: absolute;
		inset: var(--pad) var(--gutter);
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		margin: 0;
		font-size: min(23vw, 38svh);
		font-weight: 800;
		font-variation-settings: "wdth" 62;
		line-height: 0.78;
		text-transform: uppercase;
		color: transparent;
		-webkit-text-stroke: 1px rgba(242, 237, 228, 0.3);
		pointer-events: none;
		user-select: none;
	}

	.front__bigname span:first-child {
		align-self: flex-start;
	}

	.front__bigname span:last-child {
		align-self: flex-end;
	}

	.front--poster .front__art {
		position: relative;
		z-index: 1;
		box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65);
	}

	.front--poster .hero-img {
		width: auto;
		height: var(--art-h);
	}

	.front--poster .front__type {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	/* ③ スプリット：画像を左端いっぱいに、右に大きな名前 */
	.front--split {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
	}

	.front--split .hero-img {
		width: auto;
		height: calc(100svh - var(--header-h) - var(--footer-h));
		max-width: 60vw;
		object-fit: cover;
		object-position: center top;
	}

	.front--split .front__type {
		align-self: end;
		padding: 0 var(--gutter) clamp(24px, 6vh, 72px) clamp(32px, 5vw, 96px);
	}

	.front--split .front__name {
		font-size: clamp(64px, 9.2vw, 176px);
	}

	.front--split .front__local {
		margin-top: 28px;
		padding-top: 22px;
		font-size: 14px;
		background: linear-gradient(var(--pink), var(--pink)) left top / 56px 2px no-repeat;
	}
}

/* --------------------------------------------------------------------------
   スマホ：画像を大きく、文字や装飾は置かない
   -------------------------------------------------------------------------- */

@media (max-width: 899px) {
	:root {
		--header-h: 60px;
	}

	.site-header {
		position: sticky;
		top: 0;
		background: var(--bg);
	}

	.wordmark {
		font-size: 12px;
		letter-spacing: 0.28em;
	}

	.site-nav {
		display: none;
	}

	.menu-toggle {
		display: block;
	}

	/* 画像の下に黒い空白が溜まらないよう、上下の真ん中に置く */
	.front {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.hero-img {
		width: 100%;
	}

	.front__bigname {
		display: none;
	}

	.front__type {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
}

/* --------------------------------------------------------------------------
   固定ページ
   -------------------------------------------------------------------------- */

.doc {
	width: 100%;
	max-width: 1280px;
	padding: clamp(40px, 10vh, 120px) var(--gutter);
}

.doc__title {
	margin: 0 0 clamp(32px, 6vh, 64px);
	font-size: clamp(56px, 11vw, 160px);
	font-weight: 800;
	font-variation-settings: "wdth" 62;
	line-height: 0.84;
	text-transform: uppercase;
}

.doc__body {
	max-width: 38em;
	color: rgba(242, 237, 228, 0.86);
}

.doc__body a {
	border-bottom: 1px solid var(--pink);
}

/* --------------------------------------------------------------------------
   CONTACT（左に大きな題名、右にフォーム）
   -------------------------------------------------------------------------- */

.contact {
	max-width: 1440px;
}

@media (min-width: 900px) {
	.contact {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
		gap: clamp(48px, 7vw, 140px);
		align-items: start;
	}

	.contact__title {
		position: sticky;
		top: clamp(32px, 8vh, 96px);
		margin-bottom: 0;
		font-size: clamp(64px, 9vw, 152px);
	}
}

.contact__form {
	max-width: 720px;
}

.cf-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 44px 40px;
	counter-reset: cf-field;
}

.cf-field--wide {
	grid-column: 1 / -1;
}

.cf-field label {
	display: flex;
	align-items: baseline;
	gap: 14px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--muted);
	transition: color 0.25s ease;
}

/* 01・02… の番号（雑誌の索引のように） */
.cf-field label::before {
	counter-increment: cf-field;
	content: counter(cf-field, decimal-leading-zero);
	color: var(--pink);
	letter-spacing: 0.1em;
}

.cf-field:focus-within label {
	color: var(--ink);
}

.cf-optional {
	margin-left: auto;
	font-size: 10px;
	letter-spacing: 0.2em;
	color: rgba(141, 135, 126, 0.7);
}

.wpcf7-form-control-wrap {
	position: relative;
	display: block;
}

.cf-field input,
.cf-field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 0 14px;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	/* 入力中はピンクの線が左から伸びる */
	background: linear-gradient(var(--pink), var(--pink)) left bottom / 0 1px no-repeat;
	color: var(--ink);
	font: 400 20px/1.5 var(--font), var(--font-ja);
	transition: background-size 0.45s ease, border-color 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}

.cf-field textarea {
	min-height: 168px;
	resize: vertical;
}

.cf-field input:focus,
.cf-field textarea:focus {
	outline: none;
	background-size: 100% 1px;
}

.cf-field input:-webkit-autofill {
	-webkit-text-fill-color: var(--ink);
	box-shadow: inset 0 0 0 1000px var(--bg);
	caret-color: var(--ink);
}

.cf-field .wpcf7-not-valid {
	border-bottom-color: var(--pink);
}

.wpcf7-not-valid-tip {
	display: block;
	margin-top: 10px;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--pink);
}

.cf-actions {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 56px;
}

.cf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
	min-width: min(100%, 320px);
	padding: 22px 28px 22px 32px;
	border: 1px solid var(--ink);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font: 600 12px/1 var(--font), var(--font-ja);
	letter-spacing: 0.32em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.cf-submit__arrow {
	font-size: 18px;
	letter-spacing: 0;
	transition: transform 0.3s ease;
}

.cf-submit:hover,
.cf-submit:focus-visible {
	background: var(--ink);
	color: var(--bg);
}

.cf-submit:hover .cf-submit__arrow {
	transform: translateX(6px);
}

.cf-submit:disabled {
	opacity: 0.5;
	cursor: wait;
}

/* 送信中のくるくる */
.wpcf7-spinner {
	visibility: hidden;
	width: 18px;
	height: 18px;
	border: 1px solid var(--line);
	border-top-color: var(--pink);
	border-radius: 50%;
	animation: eh-spin 0.8s linear infinite;
}

.submitting .wpcf7-spinner {
	visibility: visible;
}

@keyframes eh-spin {
	to {
		transform: rotate(360deg);
	}
}

/* 送信結果のメッセージ */
.wpcf7-response-output {
	margin: 36px 0 0;
	padding: 4px 0 4px 18px;
	border-left: 2px solid var(--pink);
	font-size: 14px;
	color: var(--ink);
}

.wpcf7-response-output:empty,
.init .wpcf7-response-output,
.resetting .wpcf7-response-output,
.submitting .wpcf7-response-output {
	display: none;
}

.sent .wpcf7-response-output {
	border-left-color: var(--ink);
}

/* 読み上げ用・内部用の要素は画面に出さない */
.wpcf7 .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wpcf7 .hidden-fields-container {
	display: none;
}

.wpcf7 [inert] {
	opacity: 0.5;
}

/* ロボット避けの罠の欄（人には見えない） */
.cf-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 899px) {
	.cf-fields {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.cf-field input,
	.cf-field textarea {
		font-size: 18px;
	}

	.cf-submit {
		width: 100%;
	}
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */

.site-footer {
	display: flex;
	align-items: center;
	height: var(--footer-h);
	padding: 0 var(--gutter) env(safe-area-inset-bottom);
}

.site-footer small {
	font-size: 10.5px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
	.hero-img {
		opacity: 1;
		animation: none;
	}

	* {
		transition: none !important;
	}
}
