

/* フォント定義 */

@font-face{
  font-family: "glitch";
  src:
    url("../font/グリッチ明朝/グリッチ明朝/瀞ノグリッチ明朝H3.otf") format("opentype");
  font-display: swap;
}

	
@font-face {
  font-family:IM;
  src:url(../font/IMFellDWPica-Italic.ttf) format(truetype);
   src:url(../font/IMFellDWPica-Regular.ttf) format(truetype);
   }

@font-face {
  font-family:vereran;
  src:url(../font/MdN_BlurStamp/MdN-BLURSTAMP.ttf) format(truetype);
  src:url(../font/MdN_BlurStamp/MdN-BLURSTAMP.otf) format(opentype);
}

@font-face {
  font-family:veteran;
   src:url(../font/veteran/veteran_typewriter.ttf) format(truetype);
}


/* 基本レイアウト */
body {
    margin: 0;
    padding: 0;
    background-color: #000000; /* 完全な黒 */
    overflow: auto;
    color: #a30200;
    font-family: serif;
    text-align: center;
}

#darknessCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* ぼかしを少し弱めて動きを見えやすくします */
    filter: blur(4px); 
    opacity: 1;
      mix-blend-mode: screen;
  inset: 0;  /* 既存の背景canvasの上に確実に載せたい場合（必要なら） */
}



/* 内部リンク */

a,
a:visited {
    color: #a30200;
    text-decoration: none;
    font-family: serif;
}

a:focus,
a:active {
    outline: none;
}


/* メニュー項目 */

.menu {
  margin: 40px 0;
}

/* 念のため、全リンクに対して強制的に適用 */
.menu a,
.gate-container a {
  text-decoration: none !important;
  outline: none;
}


.menutitle {
    display: block;
    color: #a30200;
    font-family: 'glitch', serif;
    font-size: clamp(32px, 6vw, 60px);
    margin: 20px 0;
    cursor: pointer;
    transition: filter 0.1s ease;
    text-decoration: none;
    /* 闇の中に浮かぶ文字として、わずかな光彩を付与 */
    text-shadow: 0 0 8px rgba(163, 2, 0, 0.4);
}

/* ゲート（昼への入り口） */
.gate-container {
    margin-top: 60px;
    padding-bottom: 100px;
}

.gate {
    display: inline-block;
    filter: invert(100%);
    transform: scale(-1, -1);
    font-size: clamp(32px, 6vw, 60px);
    transition: opacity 0.5s ease;
    color: #a30200;
    text-decoration: none;
}

.title{
	color:#959595	;
	text-align:center;
	font-family:serif	;
	line-height:100%;
    font-size: clamp(22px, 6vw, 22px);
}

.houshin1 {
    position: relative;
    width: 100%;
    height: 400px; /* 必要に応じて調整 */
}

/* 中央にまとめる */
.text-stack {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.anbu {
text-align: center;
    color: #959595; /* 放心の色 */
  font-size: clamp(16px, 1.8vw, 16px); /* 約0.3 */

}



/* 放心のコンテナを絶対位置で重ねる */
.anbu-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #959595; /* 放心の色 */
  font-size: clamp(18px, 1.8vw, 18px); /* 約0.3 */
    line-height: 1;
}

/* DAZEDのコンテナも絶対位置で重ねる */
.anbu2-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #a30200; /* DAZEDの色 */
  font-size: clamp(18px, 1.8vw, 18px); /* 約0.3 */
    line-height: 1;
}

p.dazed-text {
    color: #a30200;
}


/* リンクのスタイルリセット */
.houshin2 {
    text-decoration: none;
    color: inherit;
}


.pline{
	line-height:50px;
}
#trigger h3 {
  font-family: serif; /* 等幅推奨 */
  overflow: hidden;       /* 文字が消えても高さを保つ */
  line-height: 1.3;
  margin: 0;
  height: auto;
  overflow: hidden; /* 演出維持 */
   white-space: nowrap;           /* 絶対に折り返さない */
  font-size: clamp(12px, 3.5vw, 18px);
}

/* 特殊文字でも行高を固定して暴れを止める */
.word h3{
  line-height: 1.3;           
  margin: 0;
  display: block;
   white-space: nowrap;           /* 絶対に折り返さない */
  font-size: clamp(12px, 3.5vw, 18px);
}


/* 言語ページの頭*/
.fazed{
	color:#ffffff;	
	font-family:serif;
    font-size: clamp(60px, 6vw, 80px);
	padding: 15px
}

/* 落下する文字 */
.falling-dazed {
    position: fixed;
    color: #a30200;
    font-family: 'glitch', monospace;
    pointer-events: none;
    z-index: 9999;
}

/* ロゴ */
/* デフォルト（PC / タブレット） */
#heroImg{
  display: block;

  /* 文字サイズ基準より少し大きい */
    height: clamp(100px, 10vw, 140px); /* ←PC用を大きく */
      width: auto;          /* 比率維持（縦つぶしなし） */

  cursor: pointer;
  position: relative;
  height: auto;
  margin: 12px auto 2px; /* ← ここが効く */
  z-index: 11;
}

/* スマホだけ横いっぱい */
@media (max-width: 768px){
  #heroImg{
    width: 100vw;
    max-width: 100vw;
  }
}




 /***トップへ戻るボタン***/
#page-top {
    display: block;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    background: ; /*背景色*/
    color: #666; /*文字色*/
    transition: .3s;
}
/***マウスオーバー時***/
#page-top:hover {
    background: ; /*背景色*/
}


/* Lightboxで拡大表示される画像の枠を消す例 */
.lb-image {
  border: none !important;
}


/* 以下は初期CSS */


.tel{font-size:20px;}

.word{
	width: 100% ;
	text-align:center;
  font-size: clamp(18px, 1.8vw, 18px); /* 約0.3 */
	font-family:serif;
}
	
.music{
	width:100%;
	font-family:serif;
	text-align:center;
	font-size:30xp;
	color:#1b1b1b;
}

.videotitle{
	width:100%;
	font-family:serif;
	text-align:center;
	font-size:80xp;
	color:#1b1b1b;
}

.photo{
	text-align:center;
	width:100%;
	margin:xp;
	padding:px;
    
    
}




video { 
width: 100% ;
}

.pass{
	width: 100% ;
	text-align:center;
	
}

.passsize{
	transform:scale(1);
	text-align:center;
}

.gate{filter: invert(100%);  }

h1{
	color:#ffffff;	
	font-family:Wingdings;
	font-size:200px;
	padding: 15px
}

h2{
	color:#a30200;
	text-align:center;
	font-family:Wingdings;
	line-height:100%;
	font-size:30px;	
}

h3{
	color:#a30200;
	text-align:center;
	font-family:serif;
  font-size: clamp(18px, 1.8vw, 18px); /* 約0.3 */
	padding: px
  line-height: 1;      /* = 100% */
  height: auto;        /* ← これが最重要 */
  margin: 0;           /* デフォルトマージンを殺す */
}



p{
	color:#959595	;
	text-align:center;
	font-family:serif	;
	line-height:100%;
  font-size: clamp(18px, 1.8vw, 18px); /* 約0.3 */
}




.album{ border-style :none ; }




/* ===== Audio Visualizer Layer ===== */
#vizCanvas{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;            /* 背景アニメより前にしたいので高め */
  pointer-events: none;  /* クリック/タップは下に通す */
  display: none;         /* 通常は非表示 */
}

/* 再生中：UIを消して、vizだけ見せる */
body.viz-mode #vizCanvas{
  display: block;
}

body.viz-mode .contentWrapper,
body.viz-mode footer{
  opacity: 0;
  pointer-events: none;
  user-select: none;
  
}



.ui-footer{
  position: relative;      /* fixed を外した状態 */
  text-align: center;      /* 中央寄せ */
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 10;
  font-size:20px;
  transition: opacity 220ms ease, transform 220ms ease;
}





.content-wrapper{
  position: relative;
  z-index: 10;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;   /* ロゴとメニューの中心線が揃う */
  justify-content: flex-start;
  padding-top: 24px;
  gap: 6px;             /* ロゴとメニューの間隔はこれで管理 */
  align-items: center;

}
