.flex {
  display: flex;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.yearend-bar {
  font-size: 13px;
  background-color: #B24F3D;
  overflow: hidden;
}

.yearend-bar > div:first-child {
  /* レイアウト用コンテナ */
}

.yearend-bar > div:first-child > div:first-child {
  width: 72px;
  position: relative;
  height: 62px;
  display: flex;
  justify-content: center;
  background: white;
}

.yearend-bar > div:first-child > div:first-child img {
  width: 72px;
  position: absolute;
  bottom: 0;
}

.yearend-bar > div:first-child > a.yearend-bar-button {
  background-color: white;
  color: #B24F3D;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  cursor: pointer;
  text-decoration: none;
  width: 220px;
}

.yearend-bar > div:first-child > a.yearend-bar-button > div:first-child > div:first-child {
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1em; /* 追加 */
}

.yearend-bar > div:first-child > a.yearend-bar-button > div:first-child > div:last-child {
  font-size: 14px;
  font-weight: bold;
}

.yearend-bar > div:first-child > a.yearend-bar-button > div:last-child {
  margin-left: 10px;
  line-height: 1em; /* 追加 */
}

.yearend-bar > div:first-child > a.yearend-bar-button > div:last-child img {
  width: 24px;
}

.yearend-bar > div:last-child {
  color: white;
  padding: 0 30px;
  width: 100%;
}

@media screen and (max-width: 640px) {
  .yearend-bar {
    flex-direction: column-reverse;
  }
  .yearend-bar > div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
  }
  .yearend-bar > div:first-child > a.yearend-bar-button {
    height: 48px;
    border-radius: 4px;
    text-decoration: none;
  }
  .yearend-bar > div:first-child > a.yearend-bar-button > div:first-child > div:first-child {
    font-size: 14px;
  }
  .yearend-bar > div:first-child > a.yearend-bar-button > div:first-child > div:last-child {
    font-size: 14px;
  }
  .yearend-bar > div:first-child > a.yearend-bar-button > div:last-child img {
    width: 20px;
  }
  .yearend-bar > div:last-child {
    color: white;
    padding: 10px 0 4px 0;
  }
  .yearend-bar > div:last-child p {
    font-size: 12px;
    padding: 12px 0;
  }
}

.marquee {
  overflow: hidden;
  position: relative;
}

.marquee p {
  margin: 0;
  display: inline-block;
  white-space: nowrap;
  font-weight: bold;
  font-size: 16px;
  -webkit-animation-name: marquee;
  -webkit-animation-timing-function: linear;
  -webkit-animation-duration: 20s;
  -webkit-animation-iteration-count: infinite;
  -moz-animation-name: marquee;
  -moz-animation-timing-function: linear;
  -moz-animation-duration: 20s;
  -moz-animation-iteration-count: infinite;
  -ms-animation-name: marquee;
  -ms-animation-timing-function: linear;
  -ms-animation-duration: 20s;
  -ms-animation-iteration-count: infinite;
  -o-animation-name: marquee;
  -o-animation-timing-function: linear;
  -o-animation-duration: 20s;
  -o-animation-iteration-count: infinite;
  animation-name: marquee;
  animation-timing-function: linear;
  animation-duration: 20s;
  animation-iteration-count: infinite;
}

@-webkit-keyframes marquee {
  from {
    -webkit-transform: translate(50%);
  }
  99%, to {
    -webkit-transform: translate(-130%);
  }
}

@-moz-keyframes marquee {
  from {
    -moz-transform: translate(50%);
  }
  99%, to {
    -moz-transform: translate(-130%);
  }
}

@-ms-keyframes marquee {
  from {
    -ms-transform: translate(50%);
  }
  99%, to {
    -ms-transform: translate(-130%);
  }
}

@-o-keyframes marquee {
  from {
    -o-transform: translate(50%);
  }
  99%, to {
    -o-transform: translate(-130%);
  }
}

@keyframes marquee {
  from {
    transform: translate(50%);
  }
  99%, to {
    transform: translate(-130%);
  }
}

/* ダイアログなど、もし使用しないなら削除してOK */
.yearend-dialog {
  display: none;
  position: fixed;
  z-index: 9999;
  font-size: 13px;
  top: 0;
  right: 0;
  width: 100%;
}

.yearend-dialog .yearend-dialog-bg {
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  overflow: scroll;
  position: relative;
}

.yearend-dialog .yearend-dialog-bg .yearend-dialog-close {
  position: absolute;
  right: 10px;
  top: 11px;
  font-size: 40px;
  color: white;
  line-height: 1em;
}

.yearend-dialog .yearend-dialog-bg .yearend-dialog-window {
  position: absolute;
  top: 0px;
  max-width: 700px;
  margin: 50px auto 0;
  border-radius: 20px;
  background-color: white;
}

/* 以下、ダイアログ内部のスタイル例。不要なら削除 */
.yearend-dialog .yearend-dialog-bg .yearend-dialog-window .dialog-header {
  text-align: center;
  color: #4AA828;
  margin: 10px;
}
.yearend-dialog .yearend-dialog-bg .yearend-dialog-window .dialog-heading {
  text-align: center;
  background-color: #F08D17;
  color: white;
}
.yearend-dialog .yearend-dialog-bg .yearend-dialog-window form {
  border: 2px solid #F08D17;
  border-radius: 10px;
  padding: 20px 60px;
  margin: 0px 20px 20px 20px;
}

@media screen and (max-width: 640px) {
  .yearend-dialog .yearend-dialog-bg .yearend-dialog-window {
    max-width: 94%;
    margin: 40px auto;
  }
  .yearend-dialog .yearend-dialog-bg .yearend-dialog-close {
    top: 4px;
  }
  .yearend-dialog .yearend-dialog-bg .yearend-dialog-window form {
    padding: 20px 10px;
  }
}