/*
 * TAMAGAWAX
 * 玉川さんの理想型（tamagawax_lp_ball_logo_updated）のCSSを、上書きの重なりを整理して1つにまとめたもの。
 * 数値は理想型の最終的な見た目（後から足された上書きが勝った状態）に合わせている。
 * 書体：理想型と同じ並び（Noto Sans CJK JP が入っている端末はそれを、入っていなければGoogleのNoto Sans JPを使う）
 * 文字の太さ：理想型と同じ数値。読み込むのは500・700・900の3段なので、550・600は700、800・850は900で表示される（理想型をMacで見たときと同じ）
 * ブレークポイント：699px以下＝スマホ、700px以上＝PC、374px以下＝小さいスマホ
 */

:root {
	--ink: #0a0a0a;
	--white: #fff;
	--orange: #e96113;
	--paper: #f7f7f5;
	--muted: #6b6b6b;
	--line: #ddd;
	--header-h: 78px;
	font-synthesis: none;
}
@media (min-width: 700px) {
	:root { --header-h: 95px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
body {
	margin: 0;
	background: #fff;
	color: #151515;
	font-family: 'Noto Sans CJK JP', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
	font-size: 16px;
	line-height: 1.72;
	font-weight: 500;
	-webkit-font-smoothing: antialiased;
	/* 日本語組版：禁則を厳しめに */
	line-break: strict;
	word-break: normal;
	overflow-wrap: break-word;
	font-kerning: normal;
	font-feature-settings: 'kern' 1;
	hanging-punctuation: allow-end;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
img { max-width: 100%; display: block; }
:where(p, th, td, .jp, .body, .card-title, .card-meta, .intro, .contact-links) {
	text-wrap: pretty;
}
:where(h1, h2, h3, .eyebrow, .section-title, .ribbon, .hero-sub) {
	text-wrap: balance;
}
:where(.section-title, .hero-sub) {
	font-feature-settings: 'palt' 1, 'kern' 1;
}
.nowrap, .phrase { white-space: nowrap; }
.phrase { display: inline-block; }

.skip-link {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 1000;
	background: #fff;
	color: #111;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 800;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

section[id], .work-sub[id] { scroll-margin-top: 92px; }

/* ---------- 共通 ---------- */
.wrap { max-width: 1100px; margin: auto; padding: 0 25px; }
.bar { width: 28px; height: 4px; background: var(--orange); display: inline-block; vertical-align: middle; margin-right: 9px; }
.eyebrow { display: block; font-size: 12px; font-weight: 900; letter-spacing: .18em; margin-bottom: 10px; }
/* 余白は2026-11-24 駿さん指示「要素が切り替わる場所に余白を足す」で広げた（理想型：39〜45px／PC 70px、見出しの下18px） */
.section { padding: 64px 0 72px; }
.section-title { font-weight: 900; font-size: 36px; letter-spacing: -.035em; margin: 4px 0 28px; }
.intro { font-size: 15px; line-height: 1.9; margin-bottom: 24px; max-width: 70ch; }
.dark { background: #080808; color: #fff; }
.orange { color: var(--orange); }
@media (min-width: 700px) {
	.section { padding: 112px 0; }
	.section-title { margin-bottom: 36px; }
}
@media (max-width: 374px) {
	.wrap { padding-left: 18px; padding-right: 18px; }
}

/* ---------- ヘッダー ---------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: #fff;
	border-bottom: 1px solid #ececec;
}
.topinner {
	max-width: 1100px;
	height: 100%;
	margin: auto;
	padding: 0 17px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
/* ロゴ：大きさは理想型に合わせる（文字の部分の幅 PC 292px／スマホ 232px）。上下はヘッダーの中央 */
.logo { display: block; flex-shrink: 1; min-width: 0; }
.logo img { width: 233px; height: auto; margin-left: 16px; }
@media (min-width: 700px) {
	/* 2026-11-24 駿さん指示：理想型の4px下げをやめて、ヘッダーの上下中央に */
	.logo img { width: 293px; margin-left: 18px; }
}
.desktopnav { display: none; gap: 20px; font-size: 12px; font-weight: 800; }
.desktopnav a { white-space: nowrap; }
.desktopnav a:hover { color: var(--orange); }
@media (min-width: 700px) {
	.desktopnav { display: flex; }
}
/* タブレット幅（700〜879px）：理想型ではメニューが2行に折れるので、ロゴとメニューの間隔だけ詰める */
@media (min-width: 700px) and (max-width: 879px) {
	.logo img { width: 250px; margin-left: 8px; }
	.desktopnav { gap: 12px; }
}

/* スマホのメニュー */
.menu-btn {
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	margin-left: auto;
	border: 0;
	background: none;
	padding: 0;
	border-radius: 5px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
.menu-btn span { display: block; width: 31px; height: 3px; background: #111; border-radius: 1px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(10px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-10px) rotate(-45deg); }
.menu-backdrop {
	position: fixed;
	inset: var(--header-h) 0 0;
	background: rgba(0, 0, 0, .46);
	z-index: 90;
}
.sp-menu {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--header-h);
	max-height: calc(100vh - var(--header-h));
	max-height: calc(100dvh - var(--header-h));
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	display: grid;
	background: #fff;
	border-bottom: 2px solid var(--orange);
	box-shadow: 0 12px 26px rgba(0, 0, 0, .25);
	padding: 8px 21px 18px;
	z-index: 100;
}
.sp-menu[hidden], .menu-backdrop[hidden] { display: none; }
.sp-menu .menu-link {
	padding: 13px 6px;
	border-bottom: 1px solid #e8e8e8;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	line-height: 1.4;
	color: #111;
}
.sp-menu .menu-link:active { color: var(--orange); }
.sp-menu .menu-sub { padding-left: 22px; background: #f7f7f5; }
.sp-menu .menu-ja { font-size: 15px; font-weight: 800; }
.sp-menu .menu-sub .menu-ja { font-size: 13px; font-weight: 650; }
.sp-menu .menu-en { font-size: 10px; font-weight: 800; color: #777; white-space: nowrap; text-align: right; letter-spacing: .05em; }
@media (min-width: 700px) {
	.menu-btn, .sp-menu, .menu-backdrop { display: none !important; }
}

/* ---------- ファーストビュー ---------- */
.hero {
	position: relative;
	overflow: hidden;
	/* 画面いっぱい（2026-11-25 駿さん指示）：ヘッダーの下から画面の下まで。スマホはアドレスバーが出ているときの高さ（svh）に合わせ、スクロールで伸び縮みしない。
	   画面が低くて文字が収まらないときは、文字に合わせて伸びる */
	min-height: calc(100vh - var(--header-h));
	min-height: calc(100svh - var(--header-h));
	padding: 45px 0 44px;
	display: flex;
	align-items: center;
	background: #050505;
	color: #fff;
}
.hero__bg {
	position: absolute;
	inset: 0;
	background-image: var(--hero-img);
	background-size: cover;
	background-position: center;
}
/* 文字を読みやすくする左からの影（動画の上にも乗るように別の層にした） */
.hero__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(5, 5, 5, .64) 0%, rgba(5, 5, 5, .43) 30%, rgba(5, 5, 5, .21) 75%, rgba(5, 5, 5, .08) 100%);
}
/* トップの動画（2026-11-25）：流れ始めたら main.js が .is-playing を付けて浮かび上がらせる。
 * 動画の最初は暗い画面なので、背景の黒からそのままつながる。流せないときは .hero--still で写真を出す */
.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .8s ease;
}
.hero__video.is-playing { opacity: 1; }
.js-anim .hero--video .hero__bg { background-image: none; }
.js-anim .hero--video.hero--still .hero__bg { background-image: var(--hero-img); }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero h1 {
	font-family: Arial, 'Noto Sans CJK JP', 'Noto Sans JP', sans-serif;
	font-size: clamp(53px, 12vw, 94px);
	letter-spacing: -.065em;
	font-weight: 1000;
	line-height: .91;
	margin-bottom: 23px;
}
.hero-sub { font-size: 22px; font-weight: 900; letter-spacing: -.035em; margin-bottom: 16px; }
.hero-sub .phrase.orange { color: #ff8a38; text-shadow: 0 2px 9px rgba(0, 0, 0, .72); }
.hero-statement {
	margin-top: 25px;
	max-width: 630px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.9;
	letter-spacing: .015em;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .42);
}
@media (min-width: 700px) {
	.hero__bg { background-position: center 38%; }
	.hero-statement { margin-top: 24px; font-size: clamp(14px, 2.2vw, 17px); }
}
@media (max-width: 374px) {
	.hero-statement { font-size: 13px; }
}

/* ---------- 企業理念 ---------- */
/* 幅はほかの欄と同じ .wrap（1100px）。理想型では900pxで中寄せだったが、左右の余白を事業内容などとそろえた（2026-11-25 駿さん指示） */
.philosophy-layout { display: block; }
.philosophy-section-header { margin-bottom: 28px; }
.philosophy-section-header .eyebrow { margin-bottom: 6px; }
.philosophy-section-header .section-title { color: #fff; margin: 0; }
.philosophy-card {
	width: 100%;
	margin: 0 auto;
	background: #fff;
	color: #151515;
	padding: 25px 23px 30px;
	border-top: 4px solid var(--orange);
}
.philosophy-values {
	display: flex;
	align-items: center;
	gap: 8px 12px;
	flex-wrap: wrap;
	margin: 0 0 20px;
	padding: 0 0 19px;
	border-bottom: 1px solid #d7d7d7;
}
.philosophy-values > strong { font-size: clamp(21px, 4.6vw, 27px); font-weight: 850; letter-spacing: .015em; color: #151515; white-space: nowrap; }
.philosophy-principles, .philosophy-conclusion {
	font-size: clamp(15px, 3.5vw, 17px);
	line-height: 1.95;
	font-weight: 550;
	letter-spacing: .01em;
}
.philosophy-principles strong { font-weight: 800; color: var(--orange); white-space: nowrap; }
.philosophy-principles .neutral-ink { color: #151515; font-weight: inherit; }
.philosophy-conclusion { margin-top: 22px; }
@media (min-width: 700px) {
	.philosophy-section-header { margin-bottom: 40px; }
	.philosophy-card { padding: 36px 38px 41px; }
	.philosophy-values { gap: 14px; margin-bottom: 25px; }
}
@media (max-width: 374px) {
	.philosophy-card { padding: 22px 16px 25px; }
	.philosophy-principles, .philosophy-conclusion { font-size: 14px; }
}

/* ---------- 事業内容 ---------- */
.service-head { font-size: 16px; line-height: 1.8; margin-bottom: 32px; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service { border: 1px solid #777; border-radius: 2px; padding: 16px 13px 18px; min-width: 0; background: #0d0d0d; }
.num { color: var(--orange); font-weight: 900; font-size: 31px; line-height: 1; margin-bottom: 8px; }
.service h3 {
	font-family: Arial, 'Noto Sans CJK JP', 'Noto Sans JP', sans-serif;
	font-size: clamp(13px, 3.5vw, 16px);
	letter-spacing: -.025em;
	line-height: 1.15;
	min-height: 38px;
	overflow-wrap: normal;
}
.service .jp { font-size: clamp(12px, 3.1vw, 13px); font-weight: 800; margin: 9px 0 10px; line-height: 1.55; }
.service .body { font-size: clamp(12px, 3.15vw, 13px); line-height: 1.82; color: #e4e4e4; }
@media (min-width: 700px) {
	.services { grid-template-columns: repeat(4, 1fr); }
	.service { padding: 26px; }
	.service h3 { font-size: 19px; line-height: 1.08; }
	.service .jp { font-size: 13px; line-height: 1.5; }
	.service .body { font-size: 14px; line-height: 1.8; }
}
@media (max-width: 374px) {
	.services { gap: 10px; }
	.service { padding-left: 11px; padding-right: 11px; }
}

/* ---------- 取り組み ---------- */
.work-sub { border-top: 1px solid #ddd; margin-top: 48px; padding-top: 28px; }
.work-sub.is-first { margin-top: 0; }
.ribbon {
	display: inline-block;
	max-width: 100%;
	background: var(--orange);
	color: #fff;
	font-size: 14px;
	font-weight: 850;
	line-height: 1.5;
	padding: 5px 12px;
	margin-bottom: 20px;
}
#owned .ribbon { white-space: nowrap; font-size: 11px; padding: 5px 10px; letter-spacing: .02em; }
@media (min-width: 700px) {
	.work-sub { margin-top: 72px; padding-top: 36px; }
	.ribbon { margin-bottom: 24px; }
	#owned .ribbon { font-size: clamp(11px, 2.2vw, 14px); padding: 5px 12px; }
}
@media (max-width: 374px) {
	.ribbon { font-size: 12px; }
}

.tiles { display: grid; gap: 10px; }
.tiles a { cursor: zoom-in; }

/* デザイン＆プロダクト：正方形の枠に全体を収める */
.design-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.design-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #d5d5d5;
	transition: border-color .2s ease;
}
.design-tile:hover { border-color: var(--orange); }
.design-tile.is-black { background: #000; border-color: #000; }
.design-tile img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
@media (min-width: 700px) {
	.design-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
}

/* 写真撮影：写真の縦横比のまま */
.photo-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.photo-tile { display: block; min-width: 0; line-height: 0; }
.photo-tile img { width: 100%; height: auto; }
@media (min-width: 700px) {
	.photo-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* イベント：ポスター（1000×1414） */
.poster-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.event-poster { display: block; min-width: 0; line-height: 0; }
.event-poster img { width: 100%; height: auto; aspect-ratio: 1000 / 1414; object-fit: contain; }
@media (min-width: 700px) {
	.poster-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}

/* YouTubeチャンネル・関連プロジェクト：黒いカード */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
}
.project-card {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 34%);
	align-items: center;
	column-gap: 10px;
	min-height: 160px;
	padding: 17px 13px;
	background: #080808;
	color: #fff;
	-webkit-tap-highlight-color: rgba(233, 97, 19, .2);
	transition: box-shadow .18s ease, background-color .18s ease;
}
.project-card::after {
	content: "";
	position: absolute;
	bottom: 0;
	right: 0;
	border-style: solid;
	border-width: 0 0 26px 26px;
	border-color: transparent transparent var(--orange) transparent;
}
a.project-card:hover { background-color: #181818; box-shadow: inset 0 0 0 1px var(--orange); }
.project-card__content { min-width: 0; }
.card-title { font-size: clamp(14px, 3.9vw, 17px); font-weight: 900; line-height: 1.48; }
.card-meta { font-size: 11px; line-height: 1.6; color: #c9c9c9; margin-top: 8px; }
.project-card__logo { width: 100%; height: auto; max-height: 142px; object-fit: contain; object-position: center; }
@media (min-width: 700px) {
	.project-card {
		grid-template-columns: minmax(0, 1fr) minmax(0, 35%);
		column-gap: clamp(12px, 2vw, 24px);
		padding: clamp(16px, 2.4vw, 28px);
		min-height: 175px;
	}
	.card-title { font-size: 17px; line-height: 1.55; }
	.card-meta { font-size: 12px; line-height: 1.72; }
	.project-card__logo { max-height: 166px; }
}

/* ---------- 会社概要 ---------- */
.company-name-en { margin-top: 20px; letter-spacing: .12em; color: #757575; font-weight: 700; font-size: 15px; line-height: 1.93; }
.profile { margin-top: 31px; border-collapse: collapse; width: 100%; font-size: 14px; }
.profile th, .profile td { padding: 11px 4px; vertical-align: top; border-bottom: 1px solid #d7d7d7; line-height: 1.7; font-weight: 500; }
.profile th { width: 31%; text-align: left; }
@media (min-width: 700px) {
	.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
	.profile { margin-top: 0; }
}
@media (max-width: 374px) {
	.profile { font-size: 12px; }
}

/* ---------- お問い合わせ ---------- */
.contact .ctitle {
	font-family: Arial, 'Noto Sans CJK JP', 'Noto Sans JP', sans-serif;
	font-size: clamp(41px, 9vw, 68px);
	line-height: 1.04;
	font-weight: 900;
	letter-spacing: -.06em;
	margin-bottom: 16px;
}
.contact .intro { font-size: 15px; }
.contact-links { border: 1px solid #757575; padding: 17px 19px; display: grid; gap: 9px; margin-bottom: 32px; }
.contact-links a { font-size: 15px; overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--orange); }
.contact-links strong { color: var(--orange); font-size: 13px; font-weight: 500; display: block; }
.cta {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 4px;
	background: var(--orange);
	color: #fff;
	padding: 16px 18px;
	text-align: center;
	font-weight: 900;
	cursor: pointer;
	transition: filter .18s ease;
}
.cta:hover { filter: brightness(1.08); }
.cta:disabled { opacity: .7; cursor: progress; }
@media (min-width: 700px) {
	.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
}
@media (max-width: 374px) {
	.contact .ctitle { font-size: clamp(37px, 10vw, 50px); }
}

/* フォーム（理想型ではメールアプリを開くボタンだった所） */
.contact-form { display: grid; gap: 16px; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form label { font-size: 13px; font-weight: 700; }
.contact-form .req, .contact-form .opt {
	display: inline-block;
	margin-left: 8px;
	padding: 0 6px;
	font-size: 10px;
	font-weight: 800;
	line-height: 18px;
	vertical-align: 1px;
}
.contact-form .req { background: var(--orange); color: #fff; }
.contact-form .opt { border: 1px solid #757575; line-height: 16px; color: #c9c9c9; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #757575;
	border-radius: 2px;
	background: #0d0d0d;
	color: #fff;
	font: inherit;
	font-size: 15px;
	line-height: 1.6;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.contact-form .consent { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; cursor: pointer; }
.contact-form .consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); flex: none; }
.contact-form .consent a { text-decoration: underline; text-underline-offset: 3px; }
.contact-form .consent a:hover { color: var(--orange); }
.contact-form .cta { margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (hover: none) and (pointer: coarse) {
	/* iPhoneが入力欄を押したときに拡大しないよう16pxに */
	.contact-form input[type="text"],
	.contact-form input[type="email"],
	.contact-form input[type="tel"],
	.contact-form textarea { font-size: 16px; }
}
.form-message { border: 1px solid #757575; border-left: 4px solid var(--orange); padding: 16px 19px; font-size: 14px; line-height: 1.8; margin-bottom: 18px; }
.form-message:focus { outline: none; }
.form-message__title { font-size: 17px; font-weight: 900; margin-bottom: 4px; }

/* ---------- フッター ---------- */
.footer { background: #000; color: #9a9a9a; font-size: 11px; text-align: center; padding: 22px 0; }

/* ---------- 固定ページ（プライバシーポリシーなど） ---------- */
.page .page__body { max-width: 760px; font-size: 15px; line-height: 1.9; }
.page .page__body > * + * { margin-top: 1em; }
.page .page__body h2 { font-size: 18px; font-weight: 900; line-height: 1.5; margin-top: 2.4em; }
.page .page__body ul { margin: .8em 0 0; padding-left: 1.3em; }
.page .page__body li + li { margin-top: .5em; }
.page .page__body a { text-decoration: underline; text-underline-offset: 3px; }
.page .page__body a:hover { color: var(--orange); }
.page .page__body .page__date { margin-top: 3em; color: var(--muted); font-size: 14px; }
@media (min-width: 700px) {
	.page .page__body h2 { font-size: 20px; }
}

/* ---------- 拡大表示 ---------- */
.lightbox {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, .9);
	overscroll-behavior: contain;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; }
@media (min-width: 700px) {
	.lightbox__img { max-width: calc(100vw - 180px); max-height: calc(100dvh - 80px); }
}
.lightbox__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 48px;
	height: 48px;
	border: 0;
	background: none;
	cursor: pointer;
}
.lightbox__close span { position: absolute; left: 10px; top: 23px; width: 28px; height: 3px; background: #fff; }
.lightbox__close span:first-child { transform: rotate(45deg); }
.lightbox__close span:last-child { transform: rotate(-45deg); }
.lightbox__nav {
	position: absolute;
	top: 50%;
	width: 48px;
	height: 64px;
	margin-top: -32px;
	border: 0;
	background: none;
	color: #fff;
	font-size: 48px;
	line-height: 1;
	cursor: pointer;
}
.lightbox__nav:hover, .lightbox__close:hover { opacity: .75; }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }
.lightbox__nav[hidden] { display: none; }
@media (max-width: 699px) {
	.lightbox__nav { top: auto; bottom: 12px; margin-top: 0; }
	.lightbox__prev { left: calc(50% - 64px); }
	.lightbox__next { right: calc(50% - 64px); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.menu-btn span, .project-card, .design-tile, .cta { transition: none; }
}

/* ---------- 動き（2026-11-24 駿さん指示「スクロールに合わせた登場アニメーション。重くならない程度に」） ----------
 * html.js-anim は header.php の先頭で付ける（動きを減らす設定の端末では付かない＝全部ふつうに表示）
 * 画面に入った要素に main.js が .is-in を付ける。動かすのは透明度と位置だけ（描画が軽い）
 */
.topbar { transition: box-shadow .3s ease; }
.topbar.is-scrolled { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }

/* ファーストビュー：読み込み時に1回 */
@keyframes tmgwx-up { from { opacity: 0; transform: translate3d(0, 32px, 0); } to { opacity: 1; transform: none; } }
@keyframes tmgwx-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero .hl { display: inline-block; }
.js-anim .hero__bg { animation: tmgwx-zoom 2.4s cubic-bezier(.22, .61, .36, 1) both; }
.js-anim .hero--video .hero__bg { animation: none; } /* 動画はそれ自体が動くので寄りはしない */
.js-anim .hero .hl,
.js-anim .hero-sub .phrase,
.js-anim .hero-statement { opacity: 0; animation: tmgwx-up 1s cubic-bezier(.22, .61, .36, 1) forwards; }
.js-anim .hero .hl:nth-of-type(1) { animation-delay: .15s; }
.js-anim .hero .hl:nth-of-type(2) { animation-delay: .27s; }
.js-anim .hero .hl:nth-of-type(3) { animation-delay: .39s; }
.js-anim .hero-sub .phrase:nth-child(1) { animation-delay: .65s; }
.js-anim .hero-sub .phrase:nth-child(2) { animation-delay: .75s; }
.js-anim .hero-sub .phrase:nth-child(3) { animation-delay: .85s; }
.js-anim .hero-statement { animation-delay: 1.05s; }

/* スクロールで画面に入ったら1回 */
.js-anim :is(.eyebrow, .section-title, .service-head, .philosophy-card, .service, .tiles > a, .cards > *, .profile tr, .company-name-en, .ctitle, .contact .intro, .contact-links, .contact-form, .page__body) {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition: opacity .9s cubic-bezier(.22, .61, .36, 1) var(--d, 0s), transform .9s cubic-bezier(.22, .61, .36, 1) var(--d, 0s);
}
.js-anim :is(.eyebrow, .section-title, .service-head, .philosophy-card, .service, .tiles > a, .cards > *, .profile tr, .company-name-en, .ctitle, .contact .intro, .contact-links, .contact-form, .page__body).is-in {
	opacity: 1;
	transform: none;
}
/* 見出しの前のオレンジの線が伸びる */
.js-anim .eyebrow .bar { width: 0; transition: width .7s cubic-bezier(.22, .61, .36, 1) calc(var(--d, 0s) + .25s); }
.js-anim .eyebrow.is-in .bar { width: 28px; }
/* 取り組みのオレンジの帯は左から現れる */
.js-anim .ribbon { clip-path: inset(0 100% 0 0); transition: clip-path .8s cubic-bezier(.65, 0, .35, 1) var(--d, 0s); }
.js-anim .ribbon.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
	.topbar { transition: none; }
}
