/* ----------------------------------- CSS RESET---------------------------------------- */

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;900&display=swap");

/* ---------------------------------------WRITTEN CSS ----------------------------------- */

.ranking-pc {
  display: none;
}

.ranking-bold {
  font-weight: 900;
}

body {
  height: 100%;
  margin: 0 auto;
  font-family: "Noto Serif JP", serif;
}

.navigation-bar {
  display: none;
  width: 100vw;
}

.header-logo {
  width: 100vw;
}

nav {
  margin: 0 auto;
  margin-top: 1vw;
}

/* ----------------------------------------RANKING ARTICLES------------------------------ */

.ranking-page-container {
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.ranking-page-rankings a {
  width: 80vw;
  height: auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
  text-decoration: none;
  color: black;
  line-height: 1.2;
}

.ranking-page-rankings h4 {
  margin-bottom: 20px;
}

.ranking-banner-img,
.ranking-pg-ranking-text {
  display: inline-block;
}

.ranking-banner-text .text-pc {
  display: none;
}

.ranking-banner-img {
  width: 50vw;
  height: 50vw;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  font-size: 6vw;
}

.ranking-pg-ranking-text {
  width: 68vw;
  height: auto;
  margin-top: 10px;
  /* margin-bottom: 30px; */
  /* margin-bottom: 50px;
 */
}

/* .ranking-page-rankings a {
        width: 80vw;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        margin-top: 40px;
    } */

.ranking-banner-img {
  font-size: 30px;
  /* width: 300px;
        height: 300px; */
  width: auto;
  height: auto;
}

.ranking-banner-img img {
  width: 300px;
  height: auto;
}

.ranking-banner-img img {
  width: 200px;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-weight: 900;
  text-align: center;
}

h1,
h2 {
  font-size: 5vw;
  margin-bottom: 10px;
}

h2 {
  color: red;
}

h3,
h4 {
  margin-bottom: 10px;
}

/* --------------------------------FOOTER----------------------------------------------- */

/* ------------------------------------TABLET----------------------------------------------- */

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .ranking-sp {
    display: none;
  }
  .ranking-pc {
    display: block;
  }
  .navigation-bar {
    display: block;
  }
  /* -------------------------------------RANKING ARTICLES-------------------------------- */
  .ranking-page-container {
    width: 100vw;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
  }
  /* .ranking-banner-img {
        width: 25vw;
        height: 23vw;
    } */
  .ranking-page-rankings {
    width: 80vw;
    margin-top: 0;
  }
  .ranking-page-rankings a {
    text-decoration: none;
    color: black;
    gap: 50px;
  }
  .ranking-pg-ranking-text {
    width: 45vw;
    height: auto;
    margin-bottom: 50px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  h1,
  h2,
  h3,
  h4 {
    font-weight: 900;
    text-align: center;
  }
  h1,
  h2 {
    font-size: 5vw;
    margin-bottom: 10px;
  }
  h3,
  h4 {
    margin-bottom: 10px;
  }
  .ranking-pg-ranking-text p {
    margin-top: 30px;
  }
  .ranking-page-rankings a {
    width: 80vw;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-top: 40px;
  }
  .ranking-banner-img {
    font-size: 30px;
    /* width: 300px;
        height: 300px; */
    width: auto;
    height: auto;
  }
  .ranking-banner-img img {
    width: 300px;
    height: auto;
  }
}

/* -------------------------------PC -------------------and (max-width: 1920px)---------------------------------- */

@media screen and (min-width: 1025px) {
  /* -------------------------------------RANKING ARTICLES-------------------------------- */
  .ranking-sp {
    display: none;
  }
  .ranking-pc {
    display: block;
  }
  .ranking-page-container {
    width: 100vw;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .ranking-pg-ranking-text {
    width: fit-content;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  h1,
  h2,
  h3,
  h4 {
    font-weight: 900;
    text-align: center;
  }
  h1,
  h2 {
    font-size: 45px;
    margin-bottom: 10px;
  }
  h3,
  h4 {
    font-size: 36px;
    margin-bottom: 10px;
  }
  .ranking-pg-ranking-text p {
    margin-top: 15px;
    font-size: 20px;
  }
  .ranking-page-rankings {
    margin-top: 20px;
  }
  .ranking-page-rankings a {
    text-decoration: none;
    color: black;
    width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-top: 20px;
    gap: 70px;
  }
  .ranking-banner-img {
    font-size: 30px;
    width: 300px;
    height: 300px;
  }
  .ranking-banner-img img {
    width: 300px;
    height: auto;
  }
}
