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

.ECM_CheckboxInput {
padding: 12px 8px;
display: flex;
align-items: center;
cursor: pointer;
}
.ECM_CheckboxInput-Input {
margin: 0;
width: 0;
opacity: 0;
}
.ECM_CheckboxInput:hover{
background: rgba(0,0,0,.05) !important;
}
.ECM_CheckboxInput:hover > .ECM_CheckboxInput-DummyInput{
transform: scale(1.1);
}
.ECM_CheckboxInput-Input:focus + .ECM_CheckboxInput-DummyInput{
transform: scale(1.1);
}
.ECM_CheckboxInput-Input:checked + .ECM_CheckboxInput-DummyInput {
background: rgba(107, 26, 250, 1);
}
.ECM_CheckboxInput-Input:checked + .ECM_CheckboxInput-DummyInput::before {
content: "";
display: block;
position: absolute;
top: 50%;
left: 50%;
width: 35%;
height: 4px;
border-radius: 2px;
transform: translate(-6px, 5px) rotateZ(-135deg);
transform-origin: 2px 2px;
background: #FFFFFF;
}
.ECM_CheckboxInput-Input:checked + .ECM_CheckboxInput-DummyInput::after {
content: "";
display: block;
position: absolute;
top: 50%;
left: 50%;
width: 70%;
height: 4px;
border-radius: 2px;
transform: translate(-6px, 5px) rotateZ(-45deg);
transform-origin: 2px 2px;
background: #FFFFFF;
}
.ECM_CheckboxInput-DummyInput {
position: relative;
top: 0;
left: 0;
display: block;
width: 32px;
height: 32px;
border: solid 2px transparent;
background: rgba(0, 0, 0, .15);
border-radius: 50%;
transition: all .15s linear;
}
.ECM_CheckboxInput-LabelText {
margin-left: 12px;
display: block;
font-size: 18px;
font-weight: bold;
}

.balloonoya {
  position   : relative;             /* 指定した分だけ相対的に移動 */
  cursor   : pointer;                /* カーソルをポインターで表示 */
  border: none;
  background: none;
}
.balloon0 {
  display: none;                     /* 要素を非表示 */
}
.balloon {
  position: relative;                   /* 親要素を基準 */
  display: inline;                      /* 要素をインラインとして表示 */
  padding: 2px;                         /* テキストの前後の余白 */
  background-color: rgba(102, 102, 255, 0.50);   /* 背景色（透明度） */
  width:180px;                          /* 吹き出し全体の幅 */
  left : relative;                           /* 表示位置 */
  font-size: 80%;                       /* 文字サイズ */
}

.public_balloon {
  position: relative;                   /* 親要素を基準 */
  display: inline;                      /* 要素をインラインとして表示 */
  padding: 2px;                         /* テキストの前後の余白 */
  background-color: rgba(240, 41, 41, 0.5);   /* 背景色（透明度） */
  width:180px;                          /* 吹き出し全体の幅 */
  left : relative;                           /* 表示位置 */
  font-size: 80%;                       /* 文字サイズ */
}

input.balloon_form {
  width: 75%;
}

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

/* 全体を囲うコンテナー＆背景 */
.container {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  width: 100%;
  display: contents;
  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: rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* タイトル */
.countdown-title {
  font-family: 'Dancing Script', cursive;
  font-size: 40px;
  line-height: 1.2;
}

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

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

/* hours, minutes, secondsの共通スタイル */
.time {
  font-family: 'Share Tech Mono', monospace;
  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;
}

img {
  max-width: 100%;
  height: auto;
  overflow-clip-margin: content-box;
  overflow: clip;
}

video {
  max-width: 1200px;
  height: auto;
}

pre {
  padding: 1em; /* 内側の余白 */
  margin: 0 0 1.5em;  /* 外側の余白 */
  border: solid 1px #4d4d4d;  /* 枠線（枠線を濃い黒に） */
  background: #25292f;  /* 背景色（背景を黒に） */
  color: #fff;  /* 文字色（文字を白に） */
}

textarea {
  max-width: 1200px;
  outline: none;box-shadow: 0px 0px 3px 0px #76d3dc;
}

form {
  display: inline;
  /* フォーム間のスペースを調整する場合 */
}

button {
  margin-right: 10px;
}

@media screen and (max-width: 959px) {
.page .page-main .main-scroll .scroll-container .container-section .section-main .main-music {
    height: calc(7000 * (100vw / 828));
    margin: 0 0 calc(250 * (100vw / 828)) 0;
  }
}
/* 小さいデバイス用に文字サイズ & margin調整 */
@media screen and (max-width: 390px) {
  .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;
  }

  img {
    max-width: 100%;
    height: auto;
  }
  
  video {
    max-width: 400px;
    height: auto;
  }

  textarea {
    max-width: 300px;
  }

  form {
    display: inline;
    /* フォーム間のスペースを調整する場合 */
  }
}

