/* Google Fonts 読み込み */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Roboto:wght@700&family=Share+Tech+Mono&display=swap');

/* 点滅 */
.blink {
	animation: blinking 1s ease-in-out infinite alternate;
}

@keyframes blinking {
	0% {opacity: 0;}
	100% {opacity: 1;}
}


/* リセットCSS（簡易版） */
*, *::before, *::after {
  padding: 0;
  margin: 0;
}

body {
  margin: 0;
  width: 100vw;
  height: 100vh;

  /*background-image:url("background-image.png");*/
  background-repeat: no-repeat;
  background-position:50% 50%;
  /*background-size:cover;*/
  background-size:contain;
	/*background-color: transparent;*/	/*背景色：透明*/
	background-color: #ffffff;	/*背景色：白*/
	/*background-color: #000000;		/*背景色：黒*/
}

/* 全体を囲うコンテナー＆背景 */
.container {
  position: relative;
  /*background-image:url("background-image.png");*/
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  width: 100%;
  min-height: 40vh;/*縦方向の位置決めのために必要*/
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 背景画像と文字を区別させるためのオーバーレイ */
.countainer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}

/* カウントダウンタイマー本体 */
.countdown {
  position: relative;
  color: #fff;
  text-align: center;
}

/* タイトル */
.countdown-title {
  font-size: 100px;
  line-height: 1.2;
}

/* 年のテキスト */
.new-year {
  display: block;
  font-size: 200px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

/* タイマー部分を囲うコンテナー */
.time-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* hours, minutes, secondsの共通スタイル */
.time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 20px;
  font-size: 20px;
}

/* hours, minutes, secondsの数値のスタイル */
.time-num {
  font-size: 60px;
  line-height: 1;
}

/* 小さいデバイス用に文字サイズ & margin調整 */
@media screen and (max-width: 600px) {
  .countdown-title {
    font-size: 50px;
  }

  .new-year {
    font-size: 100px;
  }

  .time-wrap {
    margin-top: 10px;
  }

  .time {
    font-size: 12px;
    margin: 0 10px;
  }

  .time-num {
    font-size: 34px;
  }
}

{
  background-color: #3b3f47;
  color: #fff;
  font-size: 18px;
  text-align: center;
}


/* アニメーションを追加(imageタグのclass image-anim として使用	)：ここから↓：230517A */
.image-anim {
	position: absolute;
	width: 300px;	/*width: 100%;	%指定だと小さくなったので値指定とする230517A	*/
	opacity: 0;
	animation: change-img-anim 20s infinite;	/*infinite:無限ループ : ８パネルとブランク２パネル230523A*/
	/*animation: change-img-anim 16s infinite;	/*infinite:無限ループ*/
	/*animation: change-img-anim 16s both;	/*both:１回だけ:終了時消える*/

	/*複数のアニメーションを定義する*/	/*ぼかしを入れてフェーズイン*/	/*both:１回だけ:終了時消える*/
	/*animation: blur 1s both ease-in,change-img-anim 16s both;*/
}
.image-anim:nth-of-type(1) {
	animation-delay: 0s;
}
.image-anim:nth-of-type(2) {
	animation-delay: 2s;
}
.image-anim:nth-of-type(3) {
	animation-delay: 4s;
}
.image-anim:nth-of-type(4) {
	animation-delay: 6s;
}
.image-anim:nth-of-type(5) {
	animation-delay: 8s;
}
.image-anim:nth-of-type(6) {
	animation-delay: 10s;
}
.image-anim:nth-of-type(7) {
	animation-delay: 12s;
}
.image-anim:nth-of-type(8) {
	animation-delay: 14s;
}
.image-anim:nth-of-type(9) {
	animation-delay: 16s;
}
.image-anim:nth-of-type(10) {
	animation-delay: 18s;
}

/*画像の枚数が10枚の場合は、100%の10分の1になる10%を中心に表示されるようにします。*/
@keyframes change-img-anim {
	0%{ opacity: 0;}
	8%{ opacity: 1;}
	10%{ opacity: 1;}
	20%{ opacity: 0;}
	100%{ opacity: 0;}
}


@keyframes blur {
    from {
        filter: blur(10px);
    }
    
    to {
        filter: blur(0);
    }
/* アニメーションを追加：ここまで↑：230517A */

/* web font 実装*/
.wf-mplus1p { font-family: "Mplus 1p"; }
.wf-roundedmplus1c { font-family: "M PLUS Rounded 1c"; }
.wf-hannari { font-family: "Hannari"; }
.wf-kokoro { font-family: "Kokoro"; }
.wf-sawarabimincho { font-family: "Sawarabi Mincho"; }
.wf-sawarabigothic { font-family: "Sawarabi Gothic"; }
.wf-nikukyu { font-family: "Nikukyu"; }
.wf-nicomoji { font-family: "Nico Moji"; }
.wf-notosansjapanese { font-family: "Noto Sans Japanese"; }
