@charset "utf-8";
:root {
	--txt-col-wh: #fff;
	--txt-col-bk1: #212121;
	--txt-col-bk2: #666;
	--txt-col-bk3: #ddd;
	--bg-col-base: #fff;
	--bg-col-nor: #ff4f00;
	--bg-col-nor2: #ff4f00;
	--box-sdw:#0009;
	--bd-rad: 25px;
	--mg: 50px;
	--mg-gap: 25px;
	--mg-gap2: 10px;
	--header-logo-size: 3rem;
	--header-topbar-py: 20px;
	--header-info-h: 32px;
	--WRAP-margin: calc(var(--header-logo-size) + (var(--header-topbar-py) * 2) + var(--header-info-h));
	--work-thumb-h: 35vh;
	--work-gallery-h: 17vh;
	--stack-border-w: 2px;
	--stack-step: 8px;
	--stack-fill: #fff;
	--br-col: #333;
}
img {
	max-width: 100%;/*sp設定*/
	height: auto;/*sp設定*/
}
html {
	overflow-y: scroll;
	background: var(--txt-col-bk1);
}
body {
	color: var(--txt-col-bk1);
	line-height: 1.5;
	background: var(--txt-col-bk1);
}
body.isOverlayOpen {
	overflow: hidden;
	touch-action: none;
}
body.isGamePlaying {
	overflow: hidden;
	touch-action: none;
	overscroll-behavior: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}
#wrapBox {
	padding-top: var(--WRAP-margin); /* ヘッダー分の余白を中に確保して重なりを防ぐ */
	background: var(--bg-col-base);
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow-x: clip;
	box-sizing: border-box;
}
#wrapBox > * {
	min-width: 0; /* prevent implicit max-content columns from forcing horizontal overflow */
}
#wrapBox > main {
	flex: 1 0 auto; /* push footer to the bottom when content is short */
	width: 100%;
}
.wrapper {
	/*width: 100%;*/
	max-width: 1100px;
	padding: 0 var(--mg);
	margin: 0 auto;
}
/* nav container directly under #wrapBox should not consume vertical space */
#wrapBox > .wrapper {
	height: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	overflow: visible;
}
a {
	text-decoration: none;
	color: var(--txt-col-bk1);
}
/*あとで付け足したので、支障があるかも*/
li {
	letter-spacing: 0.3em;
}
/* アンカージャンプの時のずれを修正
:target::before {
    content: "";
    display: block;
    height: 80px; /* ヘッダーの高さ 
    margin-top: -80px; /* ヘッダーの高さ 
    visibility: hidden;
} */
:target {
    scroll-margin-top: calc(var(--WRAP-margin) + var(--mg-gap)); /* ヘッダーの高さ分ずらす */
}

/* 共通スタイル */

h1 a {
	line-height: 1;
	font-size: var(--header-logo-size);
	font-family: Helvetica, Arial, sans-serif;
	vertical-align: middle;
}
h1 a {
	color: var(--txt-col-bk1);
}
/* header logo (svg) */

h1 a.siteLogo{
  display: flex;
  align-items: center;
  line-height: 1;
}

h1 a.siteLogo img{
  height: 1em;
  width: auto;
  display: block;
}
h2 {
	font-weight: normal;
	letter-spacing: 0.3em;
	color: var(--txt-col-bk1);
	line-height: 1;
	font-size: 2.5rem;
	font-family: Helvetica, Arial, sans-serif;
}
h3 {
	font-weight: normal;
	font-size: 1.5rem;
	/*font-weight: bold;*/
	color: var(--txt-col-bk1);
}

/* ヘッダー 
header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: var(--mg-gap) 0;
}*/
/* ヘッダー */
header {
	position: fixed; /* 常に上部に固定 */
	/*border-bottom: solid 1px var(--txt-col-bk1);*/
	z-index: 1000; /* 最前面に表示 */
	top: 0;
	background-color: #fff; /* 背景色を指定 */
	left: 0;
	right: 0;
	width: 100%;
}
#topBar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--header-topbar-py) var(--mg);
	/*width: calc(100% - 40px);*/
	/*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
	/*max-width: 1100px;*/
	margin: 0 auto;
}
#infoBar {
	font-weight: bold;
	align-items: center;
	display: flex;
	overflow: hidden;
	line-height: var(--header-info-h);
	height: var(--header-info-h);
	min-height: var(--header-info-h);
	width: 100%;
	white-space: nowrap;
	z-index: 1002;
	background: var(--txt-col-bk1);
}
#infoBar ul {
	animation: flowing 60s linear infinite;
	transform:translateX(100%);
	display: flex;
	align-items: center;
	width: max-content;
	height: 100%;
	white-space: nowrap;
	overflow: visible;
	margin: 0;
	padding: 0;
}
#infoBar  ul li{
	/*font-size: 0.8rem;*/
	letter-spacing: 0;
	display: block;
	padding-right: 10px;
}
#infoBar  ul li a {
	display: block;
	line-height: inherit;
	white-space: nowrap;
	color: #ff4f00aa;
	text-shadow: 0 0 3px var(--bg-col-nor);
}
@keyframes flowing {
	0% { transform:translateX(0); }
	100% { transform:translateX(-50%); }
}

/* ハンバーガーメニュー*/
.hamburgerMenu{
	--grid: 7;
	--dot: 3px;
	--pitch: 6px;
	--dur: 220ms;
	--hide-base: 120ms;
	--show-base: 80ms;
	--hide-stagger: 42ms;
	--stroke-col: var(--br-col);
	position: relative;
	width: calc(var(--dot) + ((var(--grid) - 1) * var(--pitch)));
	height: calc(var(--dot) + ((var(--grid) - 1) * var(--pitch)));
	margin-left: 20px;
	cursor: pointer;
	z-index: 1001;
	align-self: center;
	line-height: 0;
	flex: 0 0 auto;
	border: 0;
	padding: 0;
	background: transparent;
	color: inherit;
	appearance: none;
	-webkit-appearance: none;
}
.hamburgerMenu:focus-visible{
	outline: 2px solid var(--bg-col-nor);
	outline-offset: 4px;
}
.hamburgerMenu:not([data-grid-size="7"]) .dot{
	display: none;
}
.hamburgerMenu .dot{
	position: absolute;
	left: calc(var(--gx) * var(--pitch));
	top: calc(var(--gy) * var(--pitch));
	width: var(--dot);
	height: var(--dot);
	background: var(--stroke-col);
	border-radius: 0;
	opacity: 1;
	transition: opacity 0ms steps(1, end);
	transition-delay: 0ms;
	will-change: opacity;
}
.hamburgerMenu.active .dot[data-keep="0"]{
	opacity: 0;
	transition-delay: calc(var(--hide-base) + (var(--gx) * var(--hide-stagger)));
}
.hamburgerMenu:not(.active) .dot[data-keep="0"]{
	opacity: 1;
	transition-delay: calc(var(--show-base) + ((var(--grid) - 1 - var(--gx)) * var(--hide-stagger)));
}


/* ハンバーガーメニュー内ナビゲーション */
nav {
	position: fixed;
	top: calc(var(--WRAP-margin) + 10px + (var(--stack-step) * 2));
	right: calc(10px + (var(--stack-step) * 2));
	width: auto;
	max-width: calc(100vw - (var(--mg) * 2));
	height: auto;
	background: transparent;
	text-align: left;
	z-index: 101;
	border: 0;
	opacity: 0;
	transform: translateX(20px);
	transition: opacity 0.2s ease, transform 0.25s ease;
	pointer-events: none;
}

/* アクティブ時：右からスライドイン */
nav.active {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}

/* メニューリスト */
.menuStack {
	position: relative;
	background: var(--stack-fill);
	border: var(--stack-border-w) solid var(--br-col);
	/*padding: clamp(14px, 2.6vw, 30px);*/
	padding: 22px 60px 22px 22px;
	box-shadow:
		var(--stack-step) var(--stack-step) 0 calc(var(--stack-border-w) * -1) var(--stack-fill),
		var(--stack-step) var(--stack-step) 0 0 var(--br-col),
		calc(var(--stack-step) * 2) calc(var(--stack-step) * 2) 0 calc(var(--stack-border-w) * -1) var(--stack-fill),
		calc(var(--stack-step) * 2) calc(var(--stack-step) * 2) 0 0 var(--br-col);
}
nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	height: auto;
	display: grid;
	grid-auto-flow: row;
	grid-auto-rows: max-content;
	row-gap: 6px/*clamp(12px, 1.4vw, 12px)*/;
}

/* リスト項目 */
nav ul li {
	padding: 0;
}

/* リンクスタイル */
nav ul li a {
	text-decoration: none;
	color: var(--txt-col-bk1);
	font-size: clamp(1.15rem, 3.2vw, 2rem);
	line-height: 1.55;
	white-space: nowrap;
	display: block;
	transition: color 0.2s ease-in-out;
	text-rendering: geometricPrecision;
	-webkit-font-smoothing: antialiased;
}

nav ul li a:hover {
	/*color: var(--txt-col-accent);*/ /* ホバー時の色変更（カスタマイズ可能） */
	color: var(--bg-col-nor);
}

/* Fallback responsive nav (works even if common_sp.css is not applied) */
@media (max-width: 900px) {
	nav {
		top: calc(var(--WRAP-margin) + 8px);
		right: var(--mg);
		max-width: calc(100vw - (var(--mg) * 2));
	}
	.menuStack {
		/*padding: 14px;*/
		max-width: 100%;
	}
	nav ul li a {
		font-size: clamp(1.2rem, 5.4vw, 1.6rem);
		line-height: 1.6;
	}
}
/*
@media (max-width: 600px) {
	.menuStack {
		padding: 12px;
	}
	nav ul li a {
		font-size: clamp(1.05rem, 5.8vw, 1.35rem);
		line-height: 1.55;
	}
}*/
/* フッター */
footer {
	background-color: var(--txt-col-bk1);
	color: white;
	margin-top: var(--mg);
	padding-top: var(--mg-gap);
	/*padding-bottom: 10px;*/
}
footer ul {
	list-style: none;
	display: flex;
	gap: 20px;
	margin-top: 5px;
}
footer ul li a {
	text-decoration: none;
	color: white;
}
footer small {
	font-size: 0.75rem;
	color: var(--txt-col-bk2);
}
.borderRad {
	border: 7px solid var(--txt-col-bk1);
	border-radius: 0;
}
.cultureGrid .borderRad {
	border: var(--stack-border-w) solid var(--br-col);
	border-radius: 0;
	position: relative;
	overflow: visible;
	background: var(--stack-fill);
	transition: box-shadow 0.18s ease;
	box-shadow: none;
}
.cultureGrid .borderRad:hover {
	box-shadow:
		var(--stack-step) var(--stack-step) 0 calc(var(--stack-border-w) * -1) var(--stack-fill),
		var(--stack-step) var(--stack-step) 0 0 var(--br-col),
		calc(var(--stack-step) * 2) calc(var(--stack-step) * 2) 0 calc(var(--stack-border-w) * -1) var(--stack-fill),
		calc(var(--stack-step) * 2) calc(var(--stack-step) * 2) 0 0 var(--br-col);
}
.cultureGrid .borderRad.isOpenCard {
	box-shadow:
		var(--stack-step) var(--stack-step) 0 calc(var(--stack-border-w) * -1) var(--stack-fill),
		var(--stack-step) var(--stack-step) 0 0 var(--br-col),
		calc(var(--stack-step) * 2) calc(var(--stack-step) * 2) 0 calc(var(--stack-border-w) * -1) var(--stack-fill),
		calc(var(--stack-step) * 2) calc(var(--stack-step) * 2) 0 0 var(--br-col);
}
.cultureGrid .borderRad .thumbnail {
	overflow: hidden;
	position: relative;
	z-index: 1;
}
.cultureGrid .borderRad > .photoFit {
	z-index: 1;
}
.culture .cultureGrid .photoFit,
.culture .cultureGrid .thumbnail {
	height: var(--work-thumb-h);
}
.culture .cultureGrid .photoFit img,
.culture .cultureGrid .thumbnail img {
	display: block;
	width: 100%;
	height: var(--work-thumb-h);
	object-fit: cover;
}

.txtMgB {
	margin-bottom: var(--mg-gap);
}
.fontGeo {
	color: var(--txt-col-bk1);
	font-weight: light;
	/*font-weight: bold;*/
	font-family: Helvetica, Arial, sans-serif;
}
.whTxt {
	color: #fff;
}
.pdTop {
	padding-top: var(--mg-gap);
}
/* =========================================================
   Font utilities (Google Fonts: Doto / Silkscreen)
   ========================================================= */
.fontD{
  font-family: "Doto", monospace;
}
.fontS{
  font-family: "Silkscreen", monospace;
}
