main #movie {
  position: relative;
}

main #movie h1 {
  margin: 0;
  padding: 0;
  line-height: 1rem;
}

main #movie-picture iframe:hover {
  position: relative;
  z-index: 50;
}

main #movie-picture #play-button {
  background-color: transparent;
  background-image: url('../img/index/play_btn.svg');
  background-repeat: no-repeat;
  background-size: contain;
  border-width: 0;
  color: transparent;
  z-index: 51;
}

main #movie-picture #play-button:not(.initialized) {
  display: none;
}

main #movie-picture #play-button:hover {
  background-image: url('../img/index/play_btn_on.svg');
}

main #topics {
  font-size: 0.9rem;
}

main #topics ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

main #topics li {
  margin: 0;
  padding: 0;
  line-height: 1rem;
}

main #topics li > a {
  display: inline-flex;
}

main #topics .date {
  margin-right: 0.5rem;
}

main #topics p {
  margin: 0;
}

main > #trends > div.more,
main > #products > div.more {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1vh;
  text-align: center;
  width: 100%;
}

main > #trends > div.more a,
main > #products > div.more a {
  background-image: url('../img/index/btn_bg.png');
  padding: 0.25rem 0.5rem;
  width: 10rem;
}

main > #products > a:not(.more) {
  display: flex;
  padding: 0.5rem;
}

main > #products .name {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

main > #products .model {
  margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
  body {
    background-image: url(../img/index/bg.png);
    background-position: left 0 bottom 5rem;
    background-repeat: repeat-x;
    background-size: auto 100%;
    overflow-y: hidden;
  }

  #side {
    align-items: center;
    background-color: rgba(90, 104, 124, 0.5);
    border-right: 1px solid #303a46;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 0.5rem);
    min-width: 4rem;
    padding: 0.5rem 0;
  }

  #side #member {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  #side #member > * {
    margin-top: 1rem;
  }

  #side #member .balloon {
    left: 0.8rem;
  }

  #side #member #login {
    writing-mode: vertical-rl;
  }

  #side #link {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  #side #link > * {
    margin-bottom: 1rem;
  }

  header {
    align-items: flex-end;
    display: flex;
    margin: 0.5rem 0 1rem;
  }

  #body {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    display: flex;
    flex-grow: 1;
    margin-right: 2rem;
  }

  main #top {
    background-image: url('../img/index/hr00.png');
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: auto 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  main #movie {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    padding-top: 5vh;
    margin: 0 25vh 0 3rem;
  }

  main #movie h1 {
    position: absolute;
    bottom: -8vh;
    left: -4vh;
  }

  main #movie-picture {
    display: flex;
    position: relative;
  }

  main #movie-picture iframe {
    height: calc(60vh - 4rem);
    width: calc((60vh - 4rem) * 16 / 9);
  }

  main #movie-picture #play-button {
    height: 20vh;
    position: absolute;
    right: -10vh;
    top: calc(50% - 10vh);
    width: 20vh;
  }

  main #movie h1 > img {
    max-height: 13vh;
  }

  main #pic {
    display: flex;
    height: calc(100vh - 10rem);
  }

  main #pic a {
    margin-right: 0.5rem;
    height: 90%;
  }

  main #pic a:nth-of-type(1) {
    align-self: flex-start;
  }

  main #pic a:nth-of-type(2) {
    align-self: flex-end;
  }

  main #pic a:nth-of-type(3) {
    align-self: center;
  }

  main #pic a img {
    height: 100%;
  }

  main #topics {
    margin: 2rem 0 0.5rem 3rem;
  }

  main #topics li {
    margin: 0 0 1.5vh;
  }

  main > #pic {
    align-items: flex-start;
    display: flex;
  }

  main > #trends,
  main > #products {
    align-content: flex-start;
    background-position: 3rem bottom;
    background-repeat: no-repeat;
    background-size: auto 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8rem;
    height: calc(100vh - 8.5rem);
    line-height: 1.1em;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 0.5rem 0 9rem;
  }

  main > #trends {
    background-image: url('../img/index/hr01.png');
    justify-content: flex-start;
    width: 50rem;
  }

  main > #trends > a {
    color: #d9d9d9;
    margin-bottom: 1rem;
    margin-right: 0.2rem;
    width: calc(100% / 3 - 0.2rem);
  }

  main > #trends > a .thumbnail {
    align-items: center;
    display: flex;
    max-height: 12rem;
    justify-content: center;
    width: 12rem;
  }

  main > #trends > a .thumbnail img {
    max-height: 12rem;
    max-width: 12rem;
  }

  main > #trends > .banner {
    padding-bottom: 2vh;
    width: 100%;
  }

  main > #trends > .banner img {
    width: 100%;
  }

  main > #trends .date {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0.25rem 0.25rem;
  }

  main > #trends p {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0 0.25rem;
    margin: 0;
  }

  main > #products {
    background-image: url('../img/index/hr02.png');
    justify-content: flex-start;
    width: 60rem;
  }

  main > #products > a:not(.more) {
    background-image: url(../img/index/top_selling_bg.png);
    color: #131114;
    margin: 0 1rem 1rem 0;
    width: calc(33% - 1rem);
  }

  main > #products > a:not(.more) {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  main > #products img {
    max-height: calc(33vh - 9rem);
    max-width: 100%;
  }

  main > #products article {
    margin-top: 0.5rem;
    width: 100%;
  }
}

@media (max-width: 1023px) {
  #side {
    background-color: #3b666f;
    display: flex;
    padding: 0.5rem;
    position: fixed;
    bottom: 0;
    width: 100vw;
    z-index: 100;
  }

  #side #member {
    align-items: center;
    display: flex;
    flex-grow: 1;
  }

  #side #member a {
    margin-right: 0.5rem;
  }

  #side #member a:first-child {
    display: flex;
    flex-direction: row-reverse;
  }

  #side #link a {
    margin-left: 0.5rem;
  }

  #side #member .balloon {
    margin: -0.5rem 0 0 0.2rem;
  }

  header {
    padding: 0.25rem 0.5rem;
    transition: padding 0.2s;
  }

  body.menu header {
    padding: 0.25rem 0.5rem !important;
  }

  header h1 img {
    max-height: 2rem;
    max-width: calc(100% - 1rem);
  }

  main section {
    max-width: 100vw;
  }

  main #top {
    background-image: url('../img/index/hr00_m.png');
    background-position: left top;
    background-repeat: no-repeat;
    background-size: 100% auto;
  }

  main #movie {
    display: flex;
    flex-direction: column-reverse;
  }

  main #movie h1 {
    display: none;
  }

  main #movie small {
    padding-right: 0.5rem;
    text-align: right;
  }

  main #movie-picture {
    position: relative;
  }

  main #movie-picture #play-button {
    height: 25vw;
    position: absolute;
    top: calc(50% - 12.5vw);
    left: calc(50% - 12.5vw);
    width: 25vw;
    z-index: 100;
  }

  main #movie-picture iframe {
    margin-left: 0.5rem;
    height: calc((100vw - 1rem) * 9 / 16) !important;
    width: calc(100vw - 1rem) !important;
  }

  main #topics {
    background-color: #4c8b95;
    padding: 0.5rem 0;
    margin: 1rem 0;
  }

  main #topics li {
    display: none;
    padding: 0.25rem 0.5rem;
  }

  main #topics li:last-child {
    display: flex;
  }

  main #topics a {
    color: #d1d1d2;
  }

  main #topics .date {
    white-space: nowrap;
  }

  main #pic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
  }

  main #pic img {
    width: 32vw;
  }

  main #pic a:nth-of-type(1) {
    margin-top: -1rem;
  }

  main #pic a:nth-of-type(2) {
    margin-bottom: -1rem;
  }

  main > #trends,
  main > #products {
    background-position: left top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 4rem;
    padding-top: 4rem;
  }

  main > #trends > a,
  main > #products > a {
    background: linear-gradient(to right bottom, #3a6d74, #4c8b95);
    border: 1px solid #000;
    box-sizing: border-box;
    font-size: 0.9rem;
    padding: 0.5rem;
    max-width: 100vw;
  }

  main > #trends div.more,
  main > #products div.more {
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0 1rem;
  }

  main > #trends > div.more a,
  main > #products > div.more a {
    width: auto;
  }

  main > #trends > a {
    width: 50vw;
  }

  main > #trends > a img {
    max-width: 100%;
  }

  main > #trends > a.banner {
    background: none;
    width: 100vw;
  }

  main > #trends {
    background-image: url('../img/index/hr01_m.png');
  }

  main > #trends .banner {
    border-width: 0;
    padding: 0;
  }

  main > #trends .banner img {
    width: 100%;
  }

  main > #trends img {
    margin-bottom: 0.5rem;
  }

  main > #products {
    background-image: url('../img/index/hr02_m.png');
    margin-bottom: 3rem;
  }

  main > #products > div:not(.more) {
    display: flex;
    flex-direction: column;
  }

  main > #products article {
    width: calc(100vw - 1rem);
  }

  main > #products img {
    float: left;
    max-width: 40vw;
    margin-right: 0.5rem;
  }

  footer {
    margin-bottom: 4rem;
  }

  body.menu #side {
    display: none;
  }
}
