@charset "utf-8";
/* =========================================================================
   office.css：トップのアニメーション（旧サイト nao10 2002年版のオフィス。SVG＋JS）
   ・読むのはトップの1ページ目だけ（functions.php の memo_enqueue_office()。JS と同じ条件）。main.css の後（wp_head）
   ・アニメに使うもの：template-parts/office-anim*.php・js/office/・img/office-still.svg・このファイル
     外すときは、これらと functions.php の memo_show_office()・memo_enqueue_office()・MEMO_OFFICE_ANIM、front-page.php の呼び出しを消す
   ・2026-11-27 main.css の「5.」の最後から移した（中身は同じ）。main.css は V01.4 と同じに戻った
   ========================================================================= */

/* 箱（template-parts/office-anim.php・office-anim-a.php）
   ・本文の幅いっぱい・高さは 16000:5600（PC の本文 612px で 214px）。A 版は下の .memo-office--a で 14080:5600（243px）
   ・中の文字（壁のコード・セリフ）も、main.css の「1.」の body.mf-window * で DM Mono になる
   ・クリックできる場所は今は無い（office.js の OfficeCtl.HOT が空）。足したときは下の .hot が効く */
body.mf-window .memo-office {
	--memo-office-x: 2.75%;  /* INITIALIZING の左（壁のコードの左 22px ÷ 見せる幅 800px） */
	position: relative;
	margin: 0 0 25px;       /* ★ アニメ 〜 広告（広告の上の 15px と重なって 25px）。広告が無いときは 〜 一覧の1件目 */
}
body.mf-window .memo-office_stage {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16000 / 5600;
	background: var(--mfw-panel) url(../img/office-still.svg) center / cover no-repeat; /* JS を読み終えるまでの静止画（座っている所。元の 800px 幅の SVG を、箱の比に合わせて真ん中を見せる） */
	border: 1px solid #e0e5e9; /* ★ 枠：記事のデモの枠と同じ 1px #e0e5e9（2026-11-27 本人「デモのカラー基準で」。前は var(--mfw-line)＝10%） */
	box-sizing: border-box;
}
/* 左上の INITIALIZING（JS を読み終えてアニメが始まると消す。位置と色は壁のコードの1行目に合わせた） */
body.mf-window .memo-office_status {
	position: absolute;
	top: 9%;                  /* ★ 壁のコードの1行目の高さ */
	left: var(--memo-office-x);
	font-size: 11px;          /* ★ */
	line-height: 1;
	color: rgba(29, 31, 40, 0.45); /* 壁のコードと同じ色（office.js の INK） */
	pointer-events: none;
}
body.mf-window .memo-office_caret {   /* 壁のコードと同じブロックのカーソル。0.5 秒ごとに点滅 */
	display: inline-block;
	width: 0.6em;
	height: 1.2em;
	margin-left: 0.3em;
	vertical-align: -0.25em;
	background: #1d1f28;
	animation: memo-office-blink 1s steps(1, end) infinite;
}
@keyframes memo-office-blink {
	50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	body.mf-window .memo-office_caret { animation: none; }
}
body.mf-window .memo-office.is-playing .memo-office_status {
	display: none;
}
body.mf-window .memo-office--a {
	--memo-office-x: 3.125%;  /* A 版：22px ÷ 704px */
}
body.mf-window .memo-office--a .memo-office_stage {
	aspect-ratio: 14080 / 5600; /* A 版：左右を 48px ずつ切った幅（棚の外に 10px）（template-parts/office-anim-a.php の viewBox と同じ数） */
}
.memo-office_stage * {
	pointer-events: none;
}
.memo-office_stage :is(.hot, .hit, .hit *) {
	pointer-events: all;
	cursor: pointer;
}
