/* fonts */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@700&family=Noto+Serif+JP&family=Zen+Kaku+Gothic+Antique&family=Grand+Hotel&family=Lobster+Two&display=swap');

/* root variables */
:root {
  --text-color: #fffc;
  --base-color: #a00;
  --ribbon-color: #900;
}

/* body */
body {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  color: var(--text-color);
  /* background-color: blue; */
}

/* main wrapper */
#app {
  display: flex;
  flex-direction: column;
  /* default: narrow screen vertical */
  height: auto;
  overflow-y: auto;
  /*       whole page scroll*/
}

/* profile */
#profile {
  background: #a00;
  padding: 1rem;
  text-align: center;

  background-color: var(--ribbon-color);
  background-image:
    conic-gradient(from 90deg at 50% 50%, transparent 180deg, var(--base-color) 180deg, var(--base-color) 270deg, transparent 270deg),
    conic-gradient(from 90deg at 50% 50%, var(--base-color) 90deg, transparent 90deg, transparent 180deg, var(--base-color) 180deg, var(--base-color) 270deg, transparent 270deg),
    conic-gradient(from 90deg at 50% 50%, var(--base-color) 270deg, transparent 270deg),
    conic-gradient(from 45deg at 50% 50%, var(--base-color) 90deg, transparent 90deg, transparent 180deg, var(--base-color) 180deg, var(--base-color) 270deg, transparent 270deg);
  background-size: 80px 80px, 80px 80px, 40px 40px, 20px 20px;
  background-position: 10px 30px, 30px 30px, 10px 10px, 0 0;
  background-repeat: repeat;

}

.icons {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 10px auto;
  background-size: cover;
}

#profile h1,
#profile h2,
#profile h3,
#profile h4,
#profile p {
  margin: 0.3rem 0;
}

#profile ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 7px 0 -8px;
  padding: 0 30px;
  /* max-width: 480px; */
}

#profile ul li {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0 2px;
  margin-bottom: 6px;
}

#profile ul li svg {
  fill: var(--text-color);
  width: 100%;
  height: 100%;
}

/* card list wrapper */
.card-list-wrapper {
  width: 100%;
  height: auto;
  overflow: visible;
  padding: 0;
}

#card-list iframe {
  max-width: 300px;
  margin: 0 auto;
  background: #fff;
}

/* responsive: wide screens */
@media (min-width: 768px) {
  #app {
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
    /* prevent horizontal scroll */
  }

  #profile {
    flex: 0 0 250px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    /* scroll profile if content long */
  }

  .card-list-wrapper {
    flex: 1;
    height: 100vh;
    overflow-y: scroll;
    /* scroll only card list */
    padding: 0;
  }

#card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 300pxを基準に列を作る */
  gap: 1rem; /* カード間の隙間 */
  max-width: none;
  margin: 0 auto;
  background: #fff;
  justify-items: start; /* 左寄せ */
}

  #card-list div {
    /* flex: 0 1 300px; */
    max-width: 300px;
    margin: 0 auto;
  }
}

/* origin text example */
.origin {
  font-family: "Grand Hotel", cursive;
  font-size: 2em;
}

.description {
  font-size: 0.7em;
}

.description a {
  color: var(--text-color)
}

/* scrollbars */
/* Chrome, Edge, Safari */
.card-list-wrapper::-webkit-scrollbar {
  width: 10px;
}

.card-list-wrapper::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 5px;
}

.card-list-wrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
}

/* Firefox */
.card-list-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #888 #f0f0f0;
}