@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/* reset */
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, img, ins, kbd, q, s, samp, small, strike, 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: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
* {
  box-sizing: border-box;
}
ol, ul {
  list-style: none;
}
html {
  font-size: 62.5%;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  font-weight: 400;
  background: #ecebe7;
}
#wrapper {
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}
/*-------------------------------------------

=card

-------------------------------------------*/
.spacer {
  height: 100vh;
  display: grid;
  place-items: center;
}
/* =========================
   Cards Section
========================= */
.cards-section {
  height: 300vh;
  padding: 0 4vw;
}
.cards-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* =========================
   Cards
========================= */
.card {
  position: absolute;
  width: min(22%, 360px);
  aspect-ratio: 3 / 4;
  border-radius: 1.2rem;
  font-size: clamp(1.4rem, 1.067vw, 1.8rem);
  font-weight: 500;
  color: #fff;
  padding: 20px;
}
.card.c1 {
  background: #294b5d;
}
.card.c2 {
  background: #6a504c;
}
.card.c3 {
  background: #384b40;
}
.card.c4 {
  background: #353535;
}
.card .num {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: clamp(3.8rem, 5.4vw, 10.8rem);
}
@media screen and (max-width: 599px) {
  .cards-section {
    height: auto;
  }
  .cards-wrapper {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 4vw;
  }
  .card {
    position: relative;
    width: 100%;
  }
}