@charset "utf-8";

body {
	font-family: "Shippori Mincho", "游ゴシック", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
	height: 100%;
	overflow-y: scroll;
	color: white;
	cursor: none;
}

@media screen and (min-height: 780px) {
	body {
		overflow-y: auto !important;
	}

	html.no_scroll {
		overflow-y: hidden;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

a {
	text-decoration: none;
}

#container {
	min-height: 100vh;
}

/* ヘッダー */

header {
	width: 100%;
	height: 11vh;
	background: #745399;
	font-weight: bold;
/	font-size: clamp(0.7rem, 1.3vw, 1.2rem);
	position: fixed;
	top: 0;
	z-index: 9999;
}

@media screen and (max-width: 450px) {
	header {
		transition: all 0.3s ease;
	}

	header.expanded {
		height: 100vh;
		background: linear-gradient(to bottom, #745399 0%, black 60%);
/		opacity: 0.95;
	}
}

/*ナビゲーション*/
.nav-item {
  position: relative;
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
}
/* 妖怪画像スタイル */

@media screen and (max-width: 1024px) {
	.yokai {
		display:none;
	}
}

/*一つ目小僧*/

.yokai-hitotsume {
  position: absolute;
  top: -45%;
  left: 50%;
  transform: translate(-50%, -20%);
  width: 40px;
  height: auto;
  opacity: 0;
  z-index: 9999;
  transition: all 0.4s ease;
  bottom: 100%;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}
.nav-item:hover .yokai-hitotsume {
  transform: translateX(-50%) translateY(-50%) scale(1);
  animation: yokaiPop 0.5s ease-out forwards;
  opacity: 1;
}
/*ぬりかべ*/
.yokai-nurikabe {
  position: absolute;
  top: -45%;
  right: 17%;
  transform: translate(-50%, -20%);
  width: 40px;
  height: auto;
  opacity: 0;
  z-index: 9999;
  transition: all 0.4s ease-out;
  bottom: 100%;
  opacity: 0;
}
.nav-item:hover .yokai-nurikabe {
  transform: translateX(-50%) translateY(-10px);
  opacity: 1;
}
/*一反木綿*/
.yokai-ittanmomen {
  position: absolute;
  top: 72%;
  right: -6%;
  transform: translate(-50%, -3%);
  width: 40px;
  height: auto;
  opacity: 0;
  z-index: 9999;
  transition: all 0.3s ease-out;
  bottom: 100%;
  opacity: 0;
}
.nav-item:hover .yokai-ittanmomen {
  transform: translateX(-50%) translateY(10%);
  opacity: 1;
}
/*ろくろ首*/
.yokai-rokurokubi {
  position: absolute;
  top: 60%;
  right: -60%;
  transform: translateY(-50%) translateX(-30px);
  width: 70px;
  height: auto;
  opacity: 0;
  z-index: 9999;
  transition: all 0.7s ease-out;
  bottom: 100%;
  opacity: 0;
}
.nav-item:hover .yokai-rokurokubi {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

@keyframes yokaiPop {
  0% {
    transform: translateX(-50%) translateY(0px) scale(0.5);
    opacity: 0;
  }
  60% {
    transform: translateX(-50%) translateY(-15px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-10px) scale(1);
    opacity: 1;
  }
}

@media screen and (min-height:780px) {
	header {
		height: 8vh;
	}
}

header a {
	color: white;
}

#header_wrapper {
	display: flex;
	justify-content: space-between;
	width: 85vw;
	height: 100%;
	align-items: center;
	margin: 0 auto;
}

@media screen and (max-width: 450px) {
	#header_wrapper {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
	}
}

@media screen and (max-width: 1024px) {
	#header_wrapper {
		width: 90vw;
	}
}

#header_logo {
	width: 12%;
	min-width: 100px;
}

@media screen and (max-width: 450px) {
	#header_logo {
		position: fixed;
		top: 2vh;
	}
}

@media screen and (max-width: 450px) {
	nav {
		flex-direction: column;
		align-items: center;
		gap: 0.6rem;
		opacity: 0;
		visibility: hidden;
		max-height: 0;
		transition: all 0.3s ease;
		width: 100%;
	}

	nav.active {
		opacity: 1;
		visibility: visible;
		max-height: 30vh;
	}
}

header ul {
	display: flex;
	justify-content: space-between;
	width: 35vw;
}

@media screen and (max-width: 1024px) {
	header ul {
		width: 60vw;
	}
}

@media screen and (max-width: 450px) {
	header ul {
		flex-direction: column;
		align-items: center;
		margin: 0 auto;
	}
}

header li:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ハンバーガー */
.hamburger {
	display: none;
}

@media screen and (max-width: 450px) {
	.hamburger {
		display: block;
		position: absolute;
		top: 3vh;
		right: 5vw;
		cursor: pointer;
		width: 32px;
		height: 24px;
		z-index: 10;
	}

	.hamburger span {
		transition: all .3s;
		position: absolute;
		height: 2px;
		background-color: white;
		width: 100%;
		z-index: 10;
	}

	.hamburger span:nth-of-type(1) {
		top: 4px;
	}

	.hamburger span:nth-of-type(2) {
		top: 12px;
	}

	.hamburger span:nth-of-type(3) {
		top: 20px;
	}

	.hamburger.open span:nth-of-type(1) {
		top: 10px;
		transform: translateY(6px) rotate(-33deg);
	}

	.hamburger.open span:nth-of-type(2) {
		opacity: 0;
	}

	.hamburger.open span:nth-of-type(3) {
		top: 22px;
		transform: translateY(-6px) rotate(33deg);
	}
}


/* フッター */

footer {
	background: #323232;
	height: 10vh;
	border-top: 1px solid white;
}

@media screen and (min-height: 780px) {
	footer {
		height: 19vh;
	}
}

footer p {
	width: 85vw;
	margin: 0 auto;
	padding-top: 1%;
	font-size: 0.9rem;
}

/* 各ページ見出し */

#midashi {
	background: #323232;
	height: 9vh;
	display: flex;
	align-items: center;
	padding-top: 11vh;
	box-sizing: content-box;
}

@media screen and (min-height: 780px) {
	#midashi {
		height: 7vh;
		padding-top: 8vh;
	}
}

#midashi_wrapper {
	height: 75%;
	width: 80vw;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#midashi h1 {
	height: 100%;
}

@media screen and (min-height: 780px) {
	#midashi h1 {
		width: 40%;
		height: auto;
	}
}

#midashi h1 img {
	height: 100%;
}

/* メイン背景 */

main {
	background-image: url(../images/background.png);
	background-color: #323232;
	background-size: contain;
	min-height: 90vh;
	overflow: hidden;
}

/* ローディング画面 */
#loading {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	background: #323232;
	text-align: center;
}

#loading_two {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	background: #323232;
	text-align: center;
}

#loading_box {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#loading_box_two {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#loading .kvArea {
	width: 100%;
}

#loading .kvArea .img_box {
	text-align: center;
}

#loading .kvArea .img_box img {
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.fadeUp {
	animation-name: fadeUpAnime;
	animation-duration: 1.1s;
	animation-delay: 0;
	animation-fill-mode: forwards;
	opacity: 1;
}

@keyframes fadeUpAnime {
	0% {
		opacity: 0;
		transform: scale(3);
	}

	30% {
		opacity: 1;
		transform: translateY(0);
		transform: scale(1);
	}

	73% {
		opacity: 1;
		transform: translateY(0);
		transform: scale(1);
	}

	100% {
		opacity: 0;
		transform: translateY(-100px);
	}
}

.fadeUp_two {
	animation-name: fadeUpAnimeTwo;
	animation-duration: 0.9s;
	animation-delay: 0;
	animation-fill-mode: forwards;
	opacity: 1;
}

@keyframes fadeUpAnimeTwo {
	0% {
		opacity: 1;
		transform: translateX(100px);
	}

	20% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		transform: translateX(-100px);
	}
}

/* マウスカーソル */

/* メインのカスタムカーソル（人魂画像） */
#custom-cursor {
    position: fixed;
    width: 40px; /* 人魂の幅 */
    height: 40px; /* 人魂の高さ */
    background-image: url('hitodama.png'); /* 青い人魂の画像を指定 */
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none; /* カーソル下の要素をクリックできるようにする */
    transform: translate(-50%, -50%); /* 要素の中心をマウス位置に合わせる */
    z-index: 10000; /* 他の要素より最前面 */
    /* ここに揺れるアニメーションのCSSを追加することも可能 */
    /* @keyframes sway { ... } とか */
}

/* 残像用のスタイル（div要素） */
.cursor-trail {
    position: fixed;
    width: 40px; /* 残像の幅 */
    height: 40px; /* 残像の高さ */
    background-image: url('hitodama.png'); /* 残像も同じ画像を使う場合 */
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999; /* メインカーソルより一つ下 */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out; /* 滑らかな変化 */
}

/* Canvasは画面全体に広げ、クリックを妨げないように */
#blueFireCanvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9997; /* 残像やカーソルより奥に配置 */
    pointer-events: none; /* Canvas下の要素をクリックできるようにする */
}