body {
  margin: 0 0;
}

.whole {
  position: absolute;
  left: 0px;
  top: 0px;
  right: 0px;
  width: 100%;
  margin: 0 0;
  padding-top: 3em;
  font-family: monospace;
  font-size: 1.2em;
  background-size: 100% auto;
  min-height: 100%;
}

.header {
  width: 100%;
  height: 30%;
}

.bylomedia {
  margin: 0 auto;
  width: 100%;
  height: 6em;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.toolbar {
  margin: 0 auto;
  margin-top: 3em;
  padding-bottom: 0.5em;
  height: 1.5em;
  max-width: 32em;
  display: flex;
  flex-direction: row;
  justify-content: center;
  border-bottom: 1px solid #DB0861;
}

.toolbar .button {
  cursor: pointer;
  border-left: 1px solid;
  padding: 0 2em 0 2em;
  text-align: center;
  max-width: 20%;
}

.toolbar .button:first-child {
  border-left: none;
}

.main {
  margin-top: 3em;
  width: 100%;
}

/* home **************************************************/

.whole.home { background-color: white; }
.whole.home .toolbar { color: #DB0861; border-color: #DB0861;}
.whole.home .bylomedia { background-image: url("../images/home/katakana.svg"); }

#hitosuji {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2em;
  max-height: 30em;
}

/* works **************************************************/

.whole.works { background-color: #F8E71C; height: 100%; }
.whole.works .toolbar { color: #7B3F0A; border-color: #7B3F0A;}
.whole.works .bylomedia { background-image: url("../images/works/alphabet.svg"); }

.main.works {
  width: 100%;
}
.work-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  background-image: url(../images/works/empty.png);
  background-position: center;
}
.work-row:nth-child(odd) .work-wrap:first-child {
  color: #F8E71C;
  background-color: #7B3F0A;
}
.work-row:nth-child(even) .work-wrap:first-child {
  color: #7B3F0A;
  background-color: #F8E71C;
}
.work-wrap {
  overflow: hidden;
  width: 20%;
  min-width: 7em;
  max-width: 200px;
  max-height: 200px;
}
.work-cell {
  width: 100%;
  height: 100%;
  position: relative;
}
.work-cell .title {
  position: absolute;
  text-align: center;
  vertical-align: middle;
  width: 100%;
  top: 50%;
}

/* bio **************************************************/

.whole.bio { color: #000; background-image: url(../images/bio/bio-bg.jpg); }
.whole.bio .toolbar { border-color: #000;}
.whole.bio .bylomedia { background-image: url("../images/bio/katakana-shasen.svg"); }

.main.bio {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}
.bio.row {
  font-size: 1em;
  line-height: 1.3em;
  width: 100%;
  margin-bottom: 2em;
  display: flex;
  flex-direction: row;
}
.bio.title {
  text-align: center;
}
.bio.year {
  width: 15%;
  text-align: center;
}
.bio.left {
  width: 40%;
}
.bio.right {
  margin-left: 2em;
  width: 40%;
}
.bio.center {
  width: 80%;
  text-align: center;
}
.bio a {
  color: black;
  -moz-text-decoration-style: wavy;
}

/* about **************************************************/

.whole.about { color: #fff; background-image: url(../images/about/about-bg.jpg); }
.whole.about .toolbar { border-color: #fff;}
.whole.about .bylomedia { background-image: url("../images/about/alphabet-about.svg"); }

.main.about {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}
.about.row {
  width: 100%;
  margin-bottom: 2em;
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid #fff;
  padding-bottom: 0.8em;
}
.about.row:nth-child(6) {
  border: none;
}
.about.left {
  width: 30%;
  margin-left: 4em;
}
.about.right {
  margin-left: 4em;
  width: 50%;
}
.about.center {
  text-align: center;
  width: 100%;
}
.about.members {
  margin: 0 auto;
  margin-top: 3em;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.about.member {
  text-align: center;
  margin: 0 3em;
}
.about.member p {
  width: 100%;
  display: block;
  margin-bottom: 2em;
}

/* animation **************************************************/

@keyframes opacity-appear {
  0% { opacity: 1.0; z-index: 0; }
  100% { opacity: 1.0; z-index: 20; }
}
@keyframes opacity-disappear {
  0% { opacity: 1.0; z-index: 20; }
  100% { opacity: 0.0; z-index: 0; }
}

.whole.appear { animation: opacity-appear 1s; }
.whole.disappear { animation: opacity-disappear 1s; }


@keyframes appeared-0 {
  0% { transform: rotateX(0deg); }
  50% { transform: rotateX(-30deg); }
}
@keyframes appeared-1 {
  0% { transform: skewX(5deg) }
  100% { transform: skewX(-5deg) }
}
@keyframes appeared-2 {
  0% { transform: rotateY(30deg); }
  100% { transform: skewX(-5deg) rotateY(-30deg); }
}
@keyframes appeared-3 {
  0% {}
  50% { transform: rotateY(1deg); }
}
@keyframes appeared-4 {
  0% {}
  50% { transform: rotateX(1deg); }
}
@keyframes appeared-5 {
  0% {}
  50% { transform: rotateX(-1deg); }
}

.bylomedia.appeared-0 { animation: appeared-0 linear 0.2s 1; }
.bylomedia.appeared-1 { animation: appeared-1 linear 0.2s 1; }
.bylomedia.appeared-2 { animation: appeared-2 linear 0.2s 1; }
.bylomedia.appeared-3 { animation: appeared-3 linear 0.2s 1; }
.bylomedia.appeared-4 { animation: appeared-4 linear 0.2s 1; }
.bylomedia.appeared-5 { animation: appeared-5 linear 0.2s 1; }
.header.appeared-3, .header.appeared-4, .header.appeared-5 { perspective: 1em; }

/* sumaho **************************************************/

@media (max-width: 680px) {

.whole {
  width: auto;
  padding-top: 2em;
}
.bylomedia {
  height: 2.5em;
}
.toolbar {
  margin-top: 2em;
}
.toolbar .button {
  padding: 0 0.8em 0 0.8em;
}

/* works ***********/


/* home ***********/

#hitosuji {
  max-height: 14em;
  margin-bottom: 1em;
}

/* bio ***********/

.main.bio {
  width: 95%;
  font-size: 0.8em;
}
.bio.row {
  margin-bottom: 1em;
}

/* about ***********/

.whole.about {
  background-size: auto 100%;
  background-position: center;
}

.main.about {
  width: 95%;
  font-weight: bold;
  font-size: 0.8em;
}
.about.row {
  margin-bottom: 0.7em;
  padding-bottom: 0.5em;
}
.about.left {
  width: 25%;
  margin-left: 0.5em;
}
.about.right {
  margin-left: 1em;
  width: 75%;
}
.about.members {
  width: 100%;
  margin-top: 2em;
}
.about.member {
  text-align: center;
  width: 30%;
  margin: 0 1em;
}
.about.member img {
  width: 100%;
}
.work-row {
  overflow: scroll;
  background-size: 6em;
}

}

@media (max-width: 1000px) {

.header {
  height: auto;
}

.work-row {
  overflow: scroll;
}
.work-wrap {
  overflow: hidden;
  min-width: 6em;
  position: relative;
}
.work-wrap:before {
  content: "";
  display: block;
  padding-top: 100%;
}
.work-cell {
  position: absolute;
  top: 0px;
  left: 0px;
  bottom: 0px;
  right: 0px;
  width:100%;
}
.work-cell>p{
  width: 100%;
}
.work-cell>a{
  width: 100%;
  height: 100%;
}
.work-cell img{
  width: 100%;
  height: 100%;
}

}
