/*
  BeeStudio サイトの見た目（2026-10-20 作り直し：「レトロな個展」）
  - 色はモノクロ（墨と生成りの紙）。写真は白黒で、額に入れて展示しているように見せる
  - 日本語は手書きの風合いの Klee One、英字はタイプライター風の Special Elite（どちらも Google Fonts、無料）
  - AI を前に出すが、全体は昔の道具の写真でレトロに
  色を変えたいときは :root の値を変える。
*/
:root {
	--ink: #26221e; /* 文字・線（墨） */
	--ink-soft: #5b544c;
	--paper: #ece3cf; /* 背景（古い紙の生成り） */
	--paper-light: #f6f0e1; /* 額の内側・カード */
	--paper-dark: #d9cdb2;
	--line: rgba(38, 34, 30, 0.25);
	--jp: "Klee One", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--en: "DotGothic16", "Courier New", monospace; /* 2026-11-02 ファミコン風のドット書体に */
	--container: 1120px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	color: var(--ink);
	font-family: var(--jp);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.9;
	letter-spacing: 0.03em;
	overflow-x: clip;
	/* 古い紙：生成りの地に、かすかなしみと四隅の焼け、細かい紙の粒 */
	background-color: var(--paper);
	background-image:
		radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.35), transparent 55%),
		radial-gradient(ellipse at 85% 75%, rgba(120, 95, 60, 0.1), transparent 50%),
		radial-gradient(ellipse at center, transparent 60%, rgba(90, 70, 40, 0.18) 100%),
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.25  0 0 0 0 0.18  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	background-attachment: fixed;
}

a {
	color: inherit;
	text-decoration: none;
}

img,
video {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.en {
	font-family: var(--en);
	letter-spacing: 0.08em;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 32px;
}

/* ---- ヘッダー ---- */
.header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(236, 227, 207, 0.94);
	border-bottom: 1px solid var(--line);
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 68px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--en);
	font-size: 22px;
	letter-spacing: 0.06em;
}

.logo img {
	width: 34px;
	height: auto;
}

.gnav ul {
	display: flex;
	gap: 4px;
}

.gnav a {
	display: block;
	padding: 6px 12px;
	font-family: var(--en);
	font-size: 14px;
	letter-spacing: 0.1em;
	border-bottom: 1px solid transparent;
}

.gnav a:hover,
.gnav a[aria-current] {
	border-bottom-color: var(--ink);
}

.menu-btn {
	display: none;
	width: 44px;
	height: 44px;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--ink);
}

.menu-btn span {
	display: block;
	width: 22px;
	height: 1.5px;
	margin: 5px auto;
	background: currentColor;
}

/* ---- トップの大きな絵（時計の動画＋AI の見出し） ---- */
.hero {
	position: relative;
	height: min(78vh, 720px);
	min-height: 420px;
	overflow: hidden;
	background: #1b1814;
	color: var(--paper-light);
}

.hero video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	image-rendering: pixelated;
	filter: brightness(0.6);
}

/* 古いフィルムのような粒子 */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(0, 0, 0, 0.35) 1px, transparent 1px);
	background-size: 3px 3px;
	pointer-events: none;
}

.hero__text {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
}

.hero .kicker {
	margin: 0 0 12px;
	font-family: var(--en);
	font-size: 15px;
	letter-spacing: 0.3em;
}

.hero h1 {
	font-family: var(--en);
	margin: 0;
	font-size: clamp(30px, 4.6vw, 54px);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.08em;
}

.hero p.sub {
	margin: 20px 0 0;
	max-width: 34em;
	font-size: 18px;
	line-height: 2;
}

.hero .btns {
	justify-content: flex-start;
	margin-top: 32px;
}

.hero .btn {
	color: var(--paper-light);
	border-color: var(--paper-light);
}

.hero .btn:hover {
	background: var(--paper-light);
	color: var(--ink);
}

/* ---- セクション ---- */
.sec {
	padding: 96px 0;
}

.sec + .sec {
	border-top: 1px dashed var(--line);
}

.sec-title {
	margin: 0 0 48px;
	text-align: center;
}

.sec-title .en {
	display: block;
	font-size: 15px;
	color: var(--ink-soft);
	letter-spacing: 0.35em;
}

.sec-title h2 {
	font-family: var(--en);
	margin: 6px 0 0;
	font-size: 30px;
	font-weight: 600;
	letter-spacing: 0.12em;
}

.lead {
	max-width: 40em;
	margin: 0 auto 40px;
	text-align: center;
	font-size: 18px;
}

/* ---- 額（写真の展示）：ファミコンのゲームの文字窓のような、黒地に白い二重線の角ばった枠 ---- */
.frame {
	margin: 0;
	padding: 6px;
	background: #000;
	border: 4px solid #fcfcfc;
	outline: 4px solid #000;
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
}

.frame img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	image-rendering: pixelated;
}

/* 2列の展示（左に額・右に説明） */
.exhibit {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}

.exhibit.-rev .frame {
	order: 2;
}

.exhibit h3 {
	font-family: var(--en);
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.exhibit .tag {
	font-family: var(--en);
	font-size: 14px;
	letter-spacing: 0.2em;
	color: var(--ink-soft);
}

.exhibit ul {
	margin: 20px 0 28px;
}

.exhibit li {
	padding: 8px 0 8px 1.4em;
	border-bottom: 1px dotted var(--line);
	position: relative;
}

.exhibit li::before {
	content: "—";
	position: absolute;
	left: 0;
}

/* AI の特集（濃い色の帯） */
.feature {
	background: var(--ink);
	color: var(--paper-light);
}

.feature .sec-title .en,
.feature .exhibit .tag {
	color: var(--paper-dark);
}

.feature .exhibit li {
	border-bottom-color: rgba(246, 240, 225, 0.25);
}

.feature .points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 56px;
}

.feature .points div {
	padding: 24px;
	border: 1px solid rgba(246, 240, 225, 0.4);
	font-size: 15px;
}

.feature .points b {
	display: block;
	margin-bottom: 8px;
	font-family: var(--en);
	letter-spacing: 0.15em;
	font-weight: 400;
}

.feature .btn {
	color: var(--paper-light);
	border-color: var(--paper-light);
}

.feature .btn:hover {
	background: var(--paper-light);
	color: var(--ink);
}

/* 4つの事業（ギャラリー） */
.gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 56px 48px;
}

.gallery a {
	display: block;
}

.gallery h3 {
	font-family: var(--en);
	margin: 18px 0 4px;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.gallery p {
	margin: 0;
	font-size: 15px;
	color: var(--ink-soft);
}

.gallery .frame {
	transition: transform 0.25s;
}

.gallery a:hover .frame {
	transform: translateY(-3px);
}

/* ボタン（線だけの四角） */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 8px 28px;
	border: 1px solid var(--ink);
	color: var(--ink);
	background: transparent;
	font-family: var(--jp);
	font-size: 16px;
	letter-spacing: 0.1em;
	transition: background 0.2s, color 0.2s;
	cursor: pointer;
}

.btn:hover {
	background: var(--ink);
	color: var(--paper-light);
}

.btns {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

/* ---- 事例（展示の説明札のようなカード） ---- */
.cases {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.case {
	padding: 26px 28px;
	background: var(--paper-light);
	border: 1px solid var(--ink);
	box-shadow: 4px 5px 0 rgba(38, 34, 30, 0.1);
}

.case[hidden] {
	display: none;
}

.case .head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 4px;
}

.case .no {
	font-family: var(--en);
	font-size: 13px;
	color: var(--ink-soft);
}

.case .field {
	margin-left: auto;
	padding: 0 8px;
	font-size: 12px;
	border: 1px solid var(--ink);
	white-space: nowrap;
}

.case h3 {
	font-family: var(--en);
	margin: 0 0 14px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.6;
}

.case dl {
	margin: 0;
	font-size: 15px;
	line-height: 1.8;
}

.case dt {
	margin-top: 10px;
	font-size: 12px;
	letter-spacing: 0.2em;
	color: var(--ink-soft);
}

.case dd {
	margin: 2px 0 0;
}

.case .who {
	margin-top: 14px;
	padding-top: 10px;
	border-top: 1px dotted var(--line);
	font-size: 13px;
	color: var(--ink-soft);
}

.more {
	margin-top: 48px;
	text-align: center;
}

.filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 36px;
}

.filters button {
	padding: 4px 16px;
	font: inherit;
	font-size: 14px;
	color: var(--ink);
	background: transparent;
	border: 1px solid var(--ink);
	cursor: pointer;
}

.filters button[aria-pressed="true"] {
	background: var(--ink);
	color: var(--paper-light);
}

/* ---- 下層ページ ---- */
.page-head {
	padding: 80px 0 40px;
	text-align: center;
}

.page-head .en {
	display: block;
	font-size: 15px;
	letter-spacing: 0.35em;
	color: var(--ink-soft);
}

.page-head h1 {
	font-family: var(--en);
	margin: 8px 0 0;
	font-size: 34px;
	font-weight: 600;
	letter-spacing: 0.12em;
}

.content {
	max-width: 780px;
	margin: 0 auto;
	padding: 0 32px 100px;
}

.content.-wide {
	max-width: var(--container);
}

.content > .frame {
	margin: 0 auto 56px;
}

.content p {
	margin: 0 0 1.6em;
}

.content .center {
	text-align: center;
}

.content h2 {
	font-family: var(--en);
	margin: 72px 0 24px;
	padding-bottom: 8px;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.1em;
	border-bottom: 1px solid var(--ink);
}

.content h2 .en {
	display: block;
	font-size: 13px;
	letter-spacing: 0.3em;
	color: var(--ink-soft);
}

.content ul.dash li {
	padding: 6px 0 6px 1.4em;
	position: relative;
}

.content ul.dash li::before {
	content: "—";
	position: absolute;
	left: 0;
}

.timeline {
	margin: 0;
	border-left: 1px solid var(--ink);
}

.timeline > div {
	position: relative;
	padding: 0 0 28px 28px;
}

.timeline > div::before {
	content: "";
	position: absolute;
	left: -5px;
	top: 10px;
	width: 9px;
	height: 9px;
	background: var(--paper);
	border: 1px solid var(--ink);
	border-radius: 50%;
}

.timeline .y {
	font-family: var(--en);
	font-size: 14px;
	color: var(--ink-soft);
	letter-spacing: 0.1em;
}

.timeline b {
	display: block;
	font-size: 18px;
	font-weight: 600;
}

.timeline p {
	margin: 4px 0 0;
	font-size: 15px;
}

.stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.stats > div {
	padding: 22px;
	text-align: center;
	background: var(--paper-light);
	border: 1px solid var(--ink);
	font-size: 14px;
}

.stats .num {
	display: block;
	font-family: var(--en);
	font-size: 30px;
	letter-spacing: 0.06em;
}

.note,
.small {
	overflow-wrap: anywhere;
	font-size: 13px;
	color: var(--ink-soft);
}

.card-plain {
	padding: 28px;
	background: var(--paper-light);
	border: 1px solid var(--ink);
}

.mail {
	font-family: var(--en);
	font-size: 22px;
	border-bottom: 1px solid currentColor;
}

/* ---- 会社（BeeSide）の紹介 ---- */
.company {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	padding: 24px 28px;
	background: var(--paper-light);
	border: 1px solid var(--ink);
}

.company .name {
	font-size: 20px;
	font-weight: 600;
}

.company a.url {
	font-family: var(--en);
	border-bottom: 1px solid currentColor;
}

/* ---- フッター ---- */
.footer {
	padding: 64px 0 28px;
	background: var(--ink);
	color: var(--paper-light);
	text-align: center;
}

.footer .logo {
	justify-content: center;
}

.footer .logo img {
	filter: invert(0.92) sepia(0.2);
}

.footer .desc {
	max-width: 40em;
	margin: 16px auto 28px;
	font-size: 15px;
	color: var(--paper-dark);
}

.footer .fnav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 22px;
	margin: 24px 0;
	font-size: 14px;
}

.footer .company-line {
	font-size: 14px;
	color: var(--paper-dark);
}

.footer .company-line a {
	border-bottom: 1px solid currentColor;
}

.footer .copy {
	margin-top: 24px;
	font-family: var(--en);
	font-size: 12px;
	color: var(--paper-dark);
}

.bee {
	display: block;
	width: 56px;
	margin: 0 auto 8px;
	filter: grayscale(1) sepia(0.3);
}

.pagetop {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 20;
	width: 50px;
	height: 50px;
	border: 1px solid var(--ink);
	background: var(--paper-light);
	color: var(--ink);
	font-family: var(--en);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s;
}

.pagetop.is-show {
	opacity: 1;
	visibility: visible;
}

.sp-menu {
	position: fixed;
	inset: 0;
	z-index: 30;
	background: rgba(38, 34, 30, 0.6);
}

.sp-menu[hidden] {
	display: none;
}

.sp-menu nav {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(320px, 85%);
	padding: 72px 24px;
	background: var(--paper);
}

.sp-menu a {
	display: block;
	padding: 14px 6px;
	border-bottom: 1px dashed var(--line);
	font-family: var(--en);
	letter-spacing: 0.1em;
}

/* ---- スマホ ---- */
@media (max-width: 899px) {
	body {
		font-size: 16px;
		background-attachment: scroll;
	}

	.container {
		padding: 0 18px;
	}

	.header__inner {
		height: 58px;
	}

	.gnav {
		display: none;
	}

	.menu-btn {
		display: block;
	}

	.hero {
		height: 82vh;
		min-height: 460px;
	}

	.hero p.sub {
		font-size: 16px;
	}

	.sec {
		padding: 64px 0;
	}

	.sec-title h2 {
		font-size: 24px;
	}

	.exhibit,
	.gallery,
	.cases,
	.feature .points {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.exhibit.-rev .frame {
		order: 0;
	}

	.case {
		padding: 20px;
	}

	.content {
		padding: 0 18px 72px;
	}

	.page-head {
		padding: 56px 0 28px;
	}

	.page-head h1 {
		font-size: 28px;
	}

	.company {
		flex-direction: column;
		text-align: center;
	}
}

/* プライバシーポリシー：見出しの間を詰める */
.policy h2 {
	margin: 40px 0 12px;
	font-size: 20px;
}
