/*
 * style.css
 * ===================
 * Created: 2021.12.06
 */

/* Basic Set -NoSupport(IE) */
:root {
  --basic-white-color: #FFF;
  --basic-black-color: #333;
  --basic-gray-color: #707070;
  --covid-world-color: #11A88D;
  --covid-japan-color: #1D7FB6;
}

/* reset */
*,*::before,*::after {
  box-sizing: border-box;
  word-break: break-all;
}
body,h1,h2,h3,h4,p,figure,blockquote,dl,dd {
  margin: 0;
  font-size: 100%;
  font-weight: normal;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
}
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
a:not([class]) {
  text-decoration-skip-ink: auto
}
img,picture {
  flex-shrink: 0;
  max-width: 100%;
  display: block
}
input,button,textarea,select {
  font: inherit
}
/*@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important
  }
}*/

/* common */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body#inWorld {
  background-color: var(--covid-world-color);
}
body#inJapan {
  background-color: var(--covid-japan-color);
}

/* component */
.pcOnly-line, .pcOnly-block { display: none !important; }
.spOnly-line { display: inline-block !important; }
.spOnly-block { display: block !important; }
@media print,screen and (min-width: 640px) {
  .pcOnly-line { display: inline-block !important; }
  .pcOnly-block { display: block !important; }
  .spOnly-line, .spOnly-block { display: none !important; }
}
main {
  max-width: 1060px;
  margin: 0 auto;
}
.timeline-container {
  background-color: var(--basic-white-color);
  margin: 0 auto 15px;
  width: 100%;
}
.timeline-container-item {
  margin-top: 1rem;
}
.timeline-container-item:first-of-type {
  margin-top: 1rem;
}
@media print,screen and (max-width: 1080px) {
  .timeline-container {
    width: calc(100% - 20px);
    margin: 0 auto 10px;
  }
}

/* content-header */
.content-header {
  color: var(--basic-white-color);
  font-size: 0.75rem;
  padding-top: 1rem;
}
.content-header .title {
  font-size: 1.5rem;
  font-weight: bold;
}
.content-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
@media print,screen and (max-width: 1080px) {
  .content-header {
    width: calc(100% - 20px);
    margin: 0 auto;
  }
  .content-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* table */
table {
  width: calc(100% - 40px);
  margin: 0 auto;
  font-size: 0.875rem;
  border-collapse: separate;
  border-spacing: 0 1rem;
}
table th,
table td {
  padding: 0;
  line-height: 1.6;
}
table td.t-item {
  text-align: right;
  vertical-align: top;
  font-weight: bold;
  width: 10vw;
  padding-right: 1rem;
}
table td.t-txt {
  border-left: 2px solid;
  padding-left: 1rem;
}
#inWorld table td.t-item {
  color: var(--covid-world-color);
}
#inWorld table td.t-txt {
  border-color: var(--covid-world-color);
}
#inJapan table td.t-item {
  color: var(--covid-japan-color);
}
#inJapan table td.t-txt {
  border-color: var(--covid-japan-color);
}
table td.jp-txt {
  background-color: rgba(17,168,141,0.1);
  padding: 1rem;
}
@media print,screen and (max-width: 640px) {
  table {
    width: calc(100% - 20px);
  }
  table td.t-item {
    min-width: 72px;
  }
}

/* heading-date */
.heading-date {
  position: relative;
  font-size: 1.5rem;
  margin: 0;
  padding-left: 1rem;
}
.heading-date::before {
  content: attr(data-number);
  display: block;
  padding-top: .5rem;
  font-size: 2rem;
  font-weight: bold;
}
.heading-date::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
}
#inWorld .heading-date::before {
  color: rgba(17,168,141,0.3);
}
#inWorld .heading-date::after {
  background-color: rgba(17,168,141,1);
}
#inJapan .heading-date::before {
  color: rgba(29,127,182,0.3);
}
#inJapan .heading-date::after {
  background-color: rgba(29,127,182,1);
}
@media print,screen and (max-width: 640px) {
  .heading-date {
    font-feature-settings: "palt";
    font-family: "Yu Gothic", sans-serif;
  }
}

.timeline-container-item:nth-child(n + 5) .line {
  transition: all 1000ms;
  opacity: 0;
  visibility: hidden;
  transform: translate(0px, 50px);
}

.timeline-container-item:nth-child(n + 5) .linein {
  opacity: 1;
  visibility: visible;
  transform: translate(0px, 0px);
} 