body {
	font-family: 'Noto Sans JP', sans-serif;
	color: #000000;
	background-color: #fafaf9;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.serif-font {
	font-family: 'Noto Serif JP', serif;
}

html {
	scroll-behavior: smooth;
}

/* --- Image Reveal Animation --- */
.reveal-box {
	position: relative;
	overflow: hidden;
	opacity: 0 !important;
	visibility: hidden;
	transition: opacity 0.6s ease-out, visibility 0.6s;
}

.reveal-box img {
	transform: scale(1.1);
	transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
	cursor: zoom-in;
}

.reveal-box img.portfolio-item {
	cursor: pointer;
}

.reveal-box::after {
	content: '';
	position: absolute;
	inset: 0;
	background-color: #fafaf9;
	z-index: 10;
	transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
	transform-origin: bottom;
	transform: scaleY(1);
}

.reveal-box.is-visible {
	opacity: 1 !important;
	visibility: visible;
}
.reveal-box.is-visible::after {
	transform: scaleY(0);
}
.reveal-box.is-visible img {
	transform: scale(1);
}

/* 隠れ家スタジオ：1カット切替のため、reveal用の画像スケールは無効化 */
#about-studio-slideshow.reveal-box img {
	transform: none;
	will-change: auto;
	cursor: default;
	transition: none;
}
#about-studio-slideshow.reveal-box.is-visible img {
	transform: none;
}

/* TOP Portfolio メインスライド（親が .reveal-box）：フェード重ねと reveal の scale を両立 */
#top-portfolio-slideshow img {
	transform: none;
	will-change: auto;
	transition: none;
}

/* Photographer: 104%拡大・底辺基準（本文末と揃えるレイアウトは items-end と併用） */
#photographer .photographer-portrait {
	transform: scale(1.04);
	transform-origin: bottom center;
}

/* --- Text Fade Up --- */
.fade-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-up.visible {
	opacity: 1;
	transform: translateY(0);
}

/* --- Parallax Section --- */
.parallax-section {
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}
@media (hover: none) {
	.parallax-section {
		background-attachment: scroll;
	}
}

/* --- Mobile Menu（z-40 だとヘッダー z-50 より下に回り、ヒーロー上にリンクだけ重なるため z は HTML 側で調整） --- */
#mobile-menu.is-open {
	opacity: 1;
}

body.mobile-menu-open {
	overflow: hidden;
	touch-action: none;
}

#mobile-menu nav {
	padding-top: max(6rem, calc(env(safe-area-inset-top, 0px) + 3.5rem));
	padding-bottom: max(3rem, calc(env(safe-area-inset-bottom, 0px) + 1.5rem));
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
	width: 6px;
}
::-webkit-scrollbar-track {
	background: #fafaf9;
}
::-webkit-scrollbar-thumb {
	background: #d6d3d1;
	border-radius: 10px;
}

/* --- 下層ページ共通 MV：Scroll と本文を縦段で分離（サービス・アバウト等で共有） --- */
/* SP: 固定ヘッダー高（h-20 = 5rem）ぶんヒーロー背景を下げ、総高にもその分を加算 */
@media (max-width: 767px) {
	.subpage-hero > .absolute {
		left: 0 !important;
		right: 0 !important;
		top: 5rem !important;
		bottom: 0 !important;
	}
	.subpage-hero {
		min-height: calc(240px + 5rem);
		box-sizing: border-box;
	}
}
.subpage-hero .subpage-hero-overlay {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	grid-template-columns: minmax(0, 1fr);
	align-content: stretch;
	min-height: 0;
	box-sizing: border-box;
	width: 100%;
}
.subpage-hero .subpage-hero-main {
	grid-row: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
}
#page-about .subpage-hero .subpage-hero-main {
	justify-content: center;
}
/* お問い合わせ：SP・PC ともヒーロー文言を縦・横センター */
#contact-page-root .subpage-hero .subpage-hero-main {
	justify-content: center;
}
#page-privacy-policy .subpage-hero .subpage-hero-main {
	justify-content: center;
}
/* サービス / VOICE / アクセス：PC のみヒーロー文言を縦中央寄せ（SP は従来どおり下端寄せ） */
@media (min-width: 768px) {
	#page-service .subpage-hero .subpage-hero-main,
	#page-voice .subpage-hero .subpage-hero-main,
	#page-access .subpage-hero .subpage-hero-main {
		justify-content: center;
	}
}
.subpage-hero .subpage-hero-scroll {
	grid-row: 2;
	flex-shrink: 0;
	padding-top: 1rem;
}
@media (min-width: 768px) {
	.subpage-hero .subpage-hero-scroll {
		padding-top: 1rem;
		padding-bottom: 2rem;
	}
}
/* --- Hero: ファーストカット白背景・黒文字 → 写真表示 --- */
#hero.is-hero-intro .hero-title,
#hero.is-hero-intro .hero-kicker {
	color: #292524;
}
#hero:not(.is-hero-intro) .hero-title {
	color: #ffffff;
	text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}
#hero:not(.is-hero-intro) .hero-kicker {
	color: rgba(255, 255, 255, 0.9);
}
#hero.is-hero-intro .hero-intro-bg {
	opacity: 1;
}
#hero:not(.is-hero-intro) .hero-intro-bg {
	opacity: 0;
}
#hero.is-hero-intro .hero-scroll-line {
	background-color: rgba(120, 113, 108, 0.45);
}
#hero:not(.is-hero-intro) .hero-scroll-line {
	background-color: rgba(255, 255, 255, 0.35);
}
@media (prefers-reduced-motion: reduce) {
	#hero .hero-intro-bg,
	#hero .hero-title,
	#hero .hero-kicker {
		transition-duration: 0.01ms !important;
	}
}

/* トップ：ファーストビューでヘッダーを背景に溶かし、スクロールで通常表示へ（タブレット以上のみ。SPは常に白帯） */
@media (min-width: 768px) {
	#header.is-over-hero {
		background-color: rgba(255, 255, 255, 0);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		box-shadow: none;
		border-bottom-color: transparent;
	}
}

/* 隠れ家スタジオ（SP〜タブ縦）：本文が縦に伸び過ぎないよう、画面上部ブロックとの兼ね合いで枠内スクロール（文言はすべて閲覧可） */
@media (max-width: 1023px) {
	#concept .studio-intro-body-inner {
		/* 見出し・ギャラリー・余白ぶんをおおまかに差し引き（文言はすべて閲覧可・枠内スクロール） */
		max-height: clamp(11rem, calc(100svh - 27rem), 32rem);
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}
	#concept .studio-intro-body-inner::-webkit-scrollbar {
		width: 4px;
	}
	#concept .studio-intro-body-inner::-webkit-scrollbar-thumb {
		background: #d6d3d1;
		border-radius: 9999px;
	}
}

/* --- 下層ページ共通（旧インラインより。既存と重複する .serif-font は追記しない） --- */
.hide-scrollbar::-webkit-scrollbar {
	display: none;
}
.hide-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}
details > summary {
	list-style: none;
}
details > summary::-webkit-details-marker {
	display: none;
}
.pause-on-hover:hover .animate-marquee {
	animation-play-state: paused;
}

/* フォームのオートコンプリート時の背景色（旧 page-contact インライン） */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
	-webkit-box-shadow: 0 0 0px 1000px transparent inset;
	transition: background-color 5000s ease-in-out 0s;
}

/* --- Contact Form 7（お問い合わせ・正の静的フォームに合わせる） --- */
/* Tailwind space-y-12 相当: 直下子のうち「hidden でない」兄弟の直後だけ margin-top: 3rem */
/* .space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 3rem } — CF7 は hidden 用 fieldset を兄弟カウントから除外 */
.wpcf7-contact-adachi.wpcf7-form > :not(fieldset.hidden-fields-container):not([hidden])
	~ :not(fieldset.hidden-fields-container):not([hidden]) {
	margin-top: 3rem;
}
.wpcf7-contact-adachi.wpcf7-form > fieldset.hidden-fields-container {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
/* 送信メッセージは space-y より詰める */
.wpcf7-contact-adachi.wpcf7-form > .wpcf7-response-output {
	margin-top: 1.25rem;
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 0;
}
.wpcf7-contact-adachi.wpcf7-form > p,
.wpcf7-contact-adachi.wpcf7-form > label,
.wpcf7-contact-adachi.wpcf7-form > .cf7-field,
.wpcf7-contact-adachi.wpcf7-form > .grid-cf7-2,
.wpcf7-contact-adachi.wpcf7-form > .cf7-privacy,
.wpcf7-contact-adachi.wpcf7-form > .wpcf7-submit-wrap,
.wpcf7-contact-adachi.wpcf7-form > .wpcf7-form-control-wrap[data-name='privacy-consent'] {
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 0;
}
/* 正: 同意行は div.pt-6 相当（上に space-y 分は兄弟 margin で既に付く） */
.wpcf7-contact-adachi.wpcf7-form > .cf7-privacy,
.wpcf7-contact-adachi.wpcf7-form > p:has(.wpcf7-acceptance),
.wpcf7-contact-adachi.wpcf7-form > .wpcf7-form-control-wrap[data-name='privacy-consent'] {
	padding-top: 1.5rem;
	padding-bottom: 0;
	border-top: none;
}
/* 正: label.mb-2 + 入力（<p> 無しテンプレの直行 label に対応） */
.wpcf7-contact-adachi.wpcf7-form > label,
.wpcf7-contact-adachi.wpcf7-form .grid-cf7-2 > label,
.wpcf7-contact-adachi.wpcf7-form .cf7-field > label,
.wpcf7-contact-adachi.wpcf7-form p > label {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
}
.wpcf7-contact-adachi.wpcf7-form > label > br,
.wpcf7-contact-adachi.wpcf7-form .grid-cf7-2 > label > br,
.wpcf7-contact-adachi.wpcf7-form .cf7-field > label > br,
.wpcf7-contact-adachi.wpcf7-form p > label > br {
	display: none;
}
.wpcf7-contact-adachi .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}
/* 正: grid gap-8 md:gap-12 */
.wpcf7-contact-adachi .grid-cf7-2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
@media (min-width: 768px) {
	.wpcf7-contact-adachi .grid-cf7-2 {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
	}
}
.wpcf7-contact-adachi .grid-cf7-2 .cf7-field,
.wpcf7-contact-adachi .grid-cf7-2 p,
.wpcf7-contact-adachi .grid-cf7-2 > label:not(:has(.wpcf7-form-control-wrap[data-name='your-message'])) {
	margin: 0;
}
/* Message が grid 内にあるときも上に space-y-12 相当。margin:0 打ち消し＋全幅 */
.wpcf7-contact-adachi .grid-cf7-2 > label:has(.wpcf7-form-control-wrap[data-name='your-message']) {
	margin: 3rem 0 0;
	grid-column: 1 / -1;
	width: 100%;
	box-sizing: border-box;
}
/* Message がフォーム直下のとき（セレクタ修正後に space-y と併用で確実に） */
.wpcf7-contact-adachi.wpcf7-form > label:has(.wpcf7-form-control-wrap[data-name='your-message']) {
	margin-top: 3rem;
}
/* 正: text-[10px] uppercase tracking-widest text-black/55 */
.wpcf7-contact-adachi label .cf7-label {
	display: block;
	margin-bottom: 0;
	font-family: "Noto Sans JP", ui-sans-serif, system-ui, sans-serif;
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(0, 0, 0, 0.55);
	line-height: 1.45;
}
/* CF7 用：プレースホルダの書体 */
.wpcf7-contact-adachi .adachi-cf7-serif,
.wpcf7-contact-adachi input.serif-font,
.wpcf7-contact-adachi textarea.serif-font {
	font-family: "Noto Serif JP", ui-serif, serif;
}
.wpcf7-contact-adachi .adachi-cf7-sans {
	font-family: "Noto Sans JP", ui-sans-serif, system-ui, sans-serif;
}
/* 正: py-3 border-b border-stone-300 */
.wpcf7-contact-adachi input.adachi-cf7-input,
.wpcf7-contact-adachi textarea.adachi-cf7-textarea {
	width: 100%;
	box-sizing: border-box;
	border: 0;
	border-bottom: 1px solid #d6d3d1;
	background: transparent;
	padding: 0.75rem 0;
	font-size: 0.875rem;
	line-height: 1.625;
	color: #000;
}
/* 正: textarea rows=5 相当・resize-none */
.wpcf7-contact-adachi textarea.adachi-cf7-textarea {
	resize: none;
	min-height: 7.25rem;
	height: 7.25rem;
	max-height: 18rem;
	line-height: 1.625;
}
@media (min-width: 768px) {
	.wpcf7-contact-adachi textarea.adachi-cf7-textarea {
		min-height: 7.5rem;
		height: 7.5rem;
	}
}
.wpcf7-contact-adachi input.adachi-cf7-input:focus,
.wpcf7-contact-adachi textarea.adachi-cf7-textarea:focus {
	outline: none;
	border-bottom-color: #000;
}
.wpcf7-contact-adachi input.adachi-cf7-input::placeholder,
.wpcf7-contact-adachi textarea.adachi-cf7-textarea::placeholder {
	color: rgba(0, 0, 0, 0.35);
}
.wpcf7-contact-adachi .wpcf7-form-control-wrap:has(.wpcf7-acceptance) {
	display: flex;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 0;
}
.wpcf7-contact-adachi .wpcf7-acceptance {
	display: inline-block;
}
.wpcf7-contact-adachi .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}
.wpcf7-contact-adachi .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0.75rem;
	cursor: pointer;
	font-family: "Noto Serif JP", ui-serif, serif;
	font-size: 0.875rem;
	font-weight: 300;
	color: rgba(0, 0, 0, 0.75);
	text-align: left;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
}
/* 正: rounded-sm・チェック時はアクセント赤地＋白チェック（ネイティブ accent に依存しない） */
.wpcf7-contact-adachi .wpcf7-acceptance input[type='checkbox'] {
	margin-top: 0.125rem;
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	border-radius: 2px;
	border: 1px solid #d6d3d1;
	background-color: #fff;
	background-image: none;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	vertical-align: middle;
}
.wpcf7-contact-adachi .wpcf7-acceptance input[type='checkbox']:checked {
	background-color: #7f1d1d;
	border-color: #7f1d1d;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 0.65rem 0.65rem;
}
.wpcf7-contact-adachi .wpcf7-acceptance input[type='checkbox']:focus-visible {
	outline: 2px solid #7f1d1d;
	outline-offset: 2px;
}
.wpcf7-contact-adachi .wpcf7-acceptance .wpcf7-list-item-label a {
	border-bottom: 1px solid #a8a29e;
	transition: color 0.15s ease;
}
.wpcf7-contact-adachi .wpcf7-acceptance .wpcf7-list-item-label a:hover {
	color: #000;
}
/* 正: border-b border-stone-100 pb-12 pt-8 */
.wpcf7-contact-adachi .wpcf7-submit-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding-top: 2rem;
	padding-bottom: 3rem;
	text-align: center;
	border-bottom: 1px solid #f5f5f4;
}
.wpcf7-contact-adachi .wpcf7-submit-wrap .wpcf7-spinner {
	margin: 0;
}
/* 正デザインでは実質ブラックに見えるため純黒。ホバーは accent */
.wpcf7-contact-adachi input.adachi-cf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	background-color: #000;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.25rem center;
	background-size: 1rem 1rem;
	color: #fff;
	border: 0;
	width: auto;
	min-height: 0;
	padding: 1rem 5rem 1rem 5rem;
	font-family: "Noto Sans JP", ui-sans-serif, system-ui, sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.wpcf7-contact-adachi input.adachi-cf7-submit:hover {
	background-color: #7f1d1d;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
}
.wpcf7-contact-adachi input.adachi-cf7-submit:disabled {
	opacity: 0.85;
	cursor: not-allowed;
}
.wpcf7-contact-adachi .wpcf7-not-valid-tip {
	font-size: 0.75rem;
	margin-top: 0.35rem;
	color: #7f1d1d;
}
.wpcf7-contact-adachi .wpcf7-response-output {
	margin: 0;
	padding: 1rem;
	border-radius: 2px;
	font-size: 0.875rem;
	text-align: center;
}
.wpcf7-contact-adachi.wpcf7-form.sent .wpcf7-response-output {
	border: 1px solid #e7e5e4;
	background: #fafaf9;
}
