/*
Theme Name: Ansteype
Theme URI: https://example.com/ansteype
Author: Ansteype
Description: 高級感と先進性を備えたコーポレートサイトテーマ。GSAP / Lenis による滑らかなスクロールとアニメーションを特徴とする。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ansteype
*/

/* WordPress ベーススタイル + Tailwind 前提 */
html {
	scroll-behavior: smooth;
	margin: 0;
	padding: 0;
}

/* Lenis 使用時はネイティブ smooth を無効化（二重スムース防止） */
html.lenis {
	scroll-behavior: auto !important;
}

body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	font-family: 'Noto Sans JP', sans-serif;
}

/* フロントページ用ヘッダー */
.l-header {
	transition: background-color 0.4s ease, color 0.3s ease;
}

.l-header.is-scrolled {
	background-color: rgba(0, 0, 0, 0.9);
}

/* 弁当ヒーロー グリッドセル */
.js-bento-left .js-bento-inner,
.js-bento-top .js-bento-inner,
.js-bento-right .js-bento-inner {
	position: absolute;
	inset: 0;
}

/* 弁当グリッド: 行の高さを均等に */
.js-bento-grid {
	grid-template-rows: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.js-bento-grid {
		grid-template-rows: repeat(2, minmax(0, 1fr));
	}
}

/* アニメーション軽減のオプション（アクセシビリティ） */
@media (prefers-reduced-motion: reduce) {
	[class*="transition"] {
		transition-duration: 0.01ms !important;
	}
}

/* SEO: 画面に表示せずスクリーンリーダー・検索エンジン用にテキストを残す */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* 弁当セル オーバーフロー防止 */
.js-bento-left,
.js-bento-top,
.js-bento-right,
.js-bento-bottom {
	min-width: 0;
}

/* -------------------------------------------------------------------
   Billboard セクション：3分割Bentoレイアウト（grid-template-areas で強制）
   縦並びを絶対に防ぐため、シンプルな grid-template-areas のみ使用
   境界線アニメーション用に CSS 変数（--left-col-pct, --top-row-pct）を使用
   ------------------------------------------------------------------- */
/* Billboard ページ：ファーストビューを画面いっぱいに。下に白い余白を追加 */
.billboard-wrapper {
	margin: 0 !important;
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem) !important;
}
main:has(.billboard-wrapper) {
	margin: 0 !important;
	padding: 0 !important;
}

.billboard-wrapper {
	--left-col-pct: 60;   /* 左列の幅%。1.5fr相当の初期値。GSAPで45〜65にアニメーション */
	--top-row-pct: 50;    /* 上段の高さ%。GSAPで40〜60にアニメーション */
	position: relative;
	width: 100vw;
	height: 100svh;
	overflow: hidden;     /* スライドイン時に画面外をクリップ */
	display: grid !important;
	grid-template-columns: calc(var(--left-col-pct) * 1%) minmax(0, 1fr) !important;
	grid-template-rows: calc(var(--top-row-pct) * 1%) minmax(0, 1fr) !important;
	grid-template-areas:
		"area-a area-b"
		"area-a area-c" !important;
	gap: 0;
}

.billboard-area-a {
	grid-area: area-a !important;
	position: relative;
	overflow: hidden;
	min-width: 0;
}

.billboard-area-b {
	grid-area: area-b !important;
	position: relative;
	overflow: hidden;
	min-width: 0;
}

.billboard-area-c {
	grid-area: area-c !important;
	position: relative;
	overflow: hidden;
	min-width: 0;
}

.billboard-wrapper video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform-origin: center center;
}

/* -------------------------------------------------------------------
   Billboard ロゴオーバーレイ
   ・リセット位置：弁当コンテナの中央（軸に追従しない）
   ・スクロール時：画面左上に固定
   ・最上部に戻ったら：リセット位置へ戻る
   ------------------------------------------------------------------- */
.billboard-logo {
	position: absolute;
	top: 50vh;
	left: 50%;
	width: 90vmin;
	height: 90vmin;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 1100;
	transform: translate(-50%, -50%);
}

/* リセット位置：弁当中央。最上部に戻ったときにこの状態へ（main 直下なので 50vh で中央） */
.billboard-logo:not(.is-scrolled) {
	position: absolute !important;
	left: 50% !important;
	top: 50vh !important;
	right: auto !important;
	transform: translate(-50%, -50%) !important;
	width: 90vmin !important;
	height: 90vmin !important;
}

/* スクロール時：画面左上に固定（位置・サイズは JS/GSAP で統一制御） */
.billboard-logo.is-scrolled {
	position: fixed !important;
}

.billboard-logo svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ロゴアニメーション用の初期状態（白アウトライン、塗りなし） */
.billboard-logo svg path,
.billboard-logo svg polygon {
	fill: none;
	stroke: #ffffff;
	stroke-width: 1px;
}

/* -------------------------------------------------------------------
   CONCEPT セクション（弁当レイアウトの下：左テキスト、右画像）
   ------------------------------------------------------------------- */
.concept-section {
	background-color: #fff;
	padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
	margin-top: clamp(1rem, 3vw, 2rem);
	position: relative;
	overflow: hidden;
}

/* 背景動画：セクション幅いっぱいに左右丁度表示 */
.concept-section-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.concept-section-bg video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.concept-section .concept-inner {
	position: relative;
	z-index: 1;
}

.concept-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	overflow: visible;
}

@media (min-width: 768px) {
	.concept-inner {
		grid-template-columns: 1fr 1fr;
	}
}

/* テキストエリア：半透明の白背景、画面左端まで伸ばす */
.concept-text {
	position: relative;
	font-size: clamp(0.9rem, 2vw, 1.1rem);
	line-height: 1.9;
	color: #333;
	padding: 1.5rem;
	padding-left: calc(clamp(1.5rem, 4vw, 2.5rem) + 1.5rem);
	margin-left: calc(-1 * clamp(1.5rem, 4vw, 2.5rem));
}

.concept-text-bg {
	position: absolute;
	inset: 0;
	background-color: rgba(255, 255, 255, 0.88);
	z-index: 0;
}

.concept-text-inner {
	position: relative;
	z-index: 1;
}

.concept-text p {
	margin: 0 0 1.25em;
}

/* 1文字ずつアニメーション用（GSAPで操作） */
.concept-text .js-concept-char {
	will-change: transform;
}

.concept-text .concept-bridge {
	margin-top: 1.5em;
}

.concept-text .concept-closer {
	margin-top: 1em;
	font-weight: 500;
}

.concept-image {
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: visible;
}

.concept-image img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

/* Connect / Empower / Create：親を越えて画面左外からスライドイン */
.concept-copy {
	position: relative;
	width: 100%;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5em;
	overflow: visible;
}

.concept-copy-line {
	font-size: 6rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.04em;
	white-space: nowrap;
	display: block;
	overflow: visible;
	filter: saturate(0.4); /* 彩度を下げて落ち着いたトーンに */
}

.concept-copy-line .js-concept-copy-char {
	position: relative;
	will-change: transform;
}

.concept-copy-line .concept-copy-char-inner {
	position: relative;
	z-index: 0;
}

/* 各文字の白いぼかし文字を背景に */
.concept-copy-char-glow {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: -1;
	color: #fff;
	font: inherit;
	font-size: inherit;
	font-weight: inherit;
	filter: blur(6px);
	opacity: 0;
	pointer-events: none;
}

/* -------------------------------------------------------------------
   コンテンツ誘導セクション（WHAT'S ANSTEYPE / BUSINESS / BLOG）
   ------------------------------------------------------------------- */
.content-guide-section {
	width: 100%;
	overflow: hidden;
	padding: clamp(2rem, 5vw, 3.5rem) 0;
	background-color: #fff;
}

.content-guide-inner {
	display: flex;
	flex-direction: column;
	gap: clamp(1.5rem, 3vw, 2rem);
}

.content-guide-block {
	position: relative;
	width: 100%;
	height: 30vh;
	min-height: 180px;
	overflow: hidden;
	background: #1a1a1a;
}

.content-guide-video-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.content-guide-video-wrap video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* パララックス時も黒い帯が出ないよう、動画をやや拡大してマージンを確保 */
	transform: scale(1.15);
	transform-origin: center center;
}

.content-guide-text {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25em;
	padding: 1.5rem 2rem;
	height: 100%;
	pointer-events: none;
}

/* テキスト Clip-path アニメーション用：overflow で囲む */
.content-guide-line-wrap {
	overflow: hidden;
}

.content-guide-title {
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.5);
	margin: 0;
}

.content-guide-sub {
	font-size: clamp(0.8rem, 2vw, 1rem);
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
	margin: 0;
}

/* 背景動画パララックス用：動画が親より大きめ */
.content-guide-video-wrap video {
	transform-origin: center center;
}

/* -------------------------------------------------------------------
   スタッフ紹介セクション（OUR TEAM）
   ------------------------------------------------------------------- */
.staff-section {
	position: relative;
	z-index: 20;
	background-color: #fff;
	padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem) 0;
	overflow: hidden;
}

.staff-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding-bottom: 0;
}

.staff-title {
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 700;
	letter-spacing: 0.15em;
	text-align: center;
	margin: 0 0 clamp(2rem, 5vw, 3rem);
	color: #1a1a1a;
}

/* スタッフ紹介 リード文（OUR TEAM 下） */
.staff-intro {
	max-width: 640px;
	margin: 0 auto clamp(2.5rem, 6vw, 3.5rem);
	text-align: center;
}

.staff-intro-title {
	font-size: clamp(1.1rem, 2.5vw, 1.35rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.6;
	margin: 0 0 1rem;
	color: #333;
}

.staff-intro-body {
	text-align: center;
}

.staff-intro-line-wrap {
	overflow: hidden;
}

/* GSAP で1文字ずつアニメーションするタイトル用 */
.staff-intro-title .js-staff-intro-char {
	will-change: transform;
}

.staff-intro-line {
	font-size: clamp(0.9rem, 1.8vw, 1rem);
	line-height: 1.9;
	color: #555;
	margin: 0 0 0.5em;
}

.staff-intro-line:last-child {
	margin-bottom: 0;
}

.staff-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(1rem, 3vw, 1.5rem);
	max-width: 1000px;
	margin: 0 auto;
}

/* スタッフ紹介 カード下のキャッチコピー・文章 */
.staff-outro {
	max-width: 560px;
	margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
	text-align: center;
}

.staff-outro-catch {
	font-size: clamp(1rem, 2.2vw, 1.2rem);
	font-weight: 600;
	letter-spacing: 0.05em;
	line-height: 1.7;
	color: #333;
	margin: 0 0 0.75rem;
}

.staff-outro-text {
	font-size: clamp(0.85rem, 1.6vw, 0.95rem);
	line-height: 1.9;
	color: #555;
	margin: 0;
}

/* お問い合わせフォーム */
.staff-contact-form {
	max-width: 480px;
	margin: clamp(2.5rem, 6vw, 4rem) auto 0;
	padding: 0 1rem;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact-form-row {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.contact-form-label {
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: #555;
}

.contact-form-input,
.contact-form-textarea {
	width: 100%;
	padding: 0.75rem 0;
	font-size: 0.95rem;
	font-family: inherit;
	color: #1a1a1a;
	background: transparent;
	border: none;
	border-bottom: 1px solid #ccc;
	border-radius: 0;
	outline: none;
	transition: border-color 0.3s ease, box-shadow 0.2s ease;
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
	color: #aaa;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
	border-color: #1a1a1a;
	box-shadow: 0 1px 0 0 #1a1a1a;
}

.contact-form-textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.6;
}

.contact-form-footer {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-top: 0.5rem;
}

.contact-form-privacy {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8rem;
	color: #666;
	cursor: pointer;
}

.contact-form-privacy input[type="checkbox"] {
	width: 1.1em;
	height: 1.1em;
	accent-color: #1a1a1a;
	cursor: pointer;
}

.contact-form-privacy-text a {
	color: #333;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s ease;
}

.contact-form-privacy-text a:hover {
	color: #1a1a1a;
}

.contact-form-submit {
	display: block;
	width: 100%;
	max-width: 200px;
	margin: 0 auto;
	padding: 1rem 2rem;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	color: #fff;
	background-color: #1a1a1a;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form-submit:hover {
	background-color: #333;
	transform: translateY(-1px);
}

.contact-form-submit:active {
	transform: translateY(0);
}

/* 会社地図 */
.staff-map {
	max-width: 720px;
	margin: clamp(3rem, 8vw, 5rem) auto 0;
	padding: 0 1rem;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

.staff-map-title {
	font-size: clamp(0.9rem, 2vw, 1rem);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-align: center;
	color: #555;
	margin: 0 0 1.25rem;
}

.staff-map-frame {
	position: relative;
	width: 100%;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.staff-map-inner {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	background: #f0f0f0;
}

.staff-map-inner iframe {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}

@media (min-width: 768px) {
	.staff-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.staff-card {
	position: relative;
	overflow: hidden;
	background: #f5f5f5;
	border-radius: 0.5rem;
}

.staff-card-image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}

/* ブラインドエフェクト用オーバーレイ（ストリップのみで画像を覆う） */
.staff-card-blinds {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	display: flex;
	flex-direction: column;
}

.staff-card-blind-strip {
	width: 100%;
	flex: 1;
	background-color: #fff;
	transform-origin: center top;
	will-change: transform;
}

.staff-card-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.staff-card:hover .staff-card-image-wrap img {
	transform: scale(1.05);
}

.staff-card-info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem;
}

.staff-card-role {
	font-size: 0.75rem;
	font-weight: 500;
	color: #666;
	letter-spacing: 0.05em;
}

.staff-card-name {
	font-size: 1rem;
	font-weight: 600;
	color: #1a1a1a;
}

/* Reveal Footer 用：スクロール余地（マップ直下に密着） */
.staff-section-spacer {
	height: 60vh;
	min-height: 250px;
	margin: -1rem 0 0;
	pointer-events: none;
}

/* -------------------------------------------------------------------
   Reveal Footer：幕が上がるように現れるフッター
   ------------------------------------------------------------------- */
.site-footer.reveal-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background-color: #e5e5e5;
	color: #1a1a1a;
	padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.site-footer-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	max-width: 1200px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.site-footer-inner {
		justify-content: center;
		flex-direction: row;
	}
}

.site-footer-logo img {
	height: 28px;
	width: auto;
	display: block;
	opacity: 0.9;
}

.site-footer-address {
	font-style: normal;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	text-align: center;
}

@media (min-width: 768px) {
	.site-footer-address {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0 1em;
		align-items: baseline;
		justify-content: center;
	}
}

.site-footer-company,
.site-footer-postal,
.site-footer-addr {
	margin: 0;
	font-size: clamp(0.8rem, 1.5vw, 0.95rem);
	font-weight: 400;
	color: #333;
	line-height: 1.6;
}

/* スマホ時：コンテンツの文章をセンター揃え */
@media (max-width: 767px) {
	.concept-text,
	.concept-text-inner,
	.concept-text p {
		text-align: center;
	}

	.staff-intro,
	.staff-intro-body,
	.staff-outro,
	.staff-outro-catch,
	.staff-outro-text {
		text-align: center;
	}

	.contact-form-label {
		text-align: center;
	}

	.contact-form-privacy,
	.contact-form-privacy-text {
		text-align: center;
		justify-content: center;
	}

	.contact-form-privacy {
		justify-content: center;
	}
}
