/* ------------------------------
 width: all
------------------------------ */
html,
body {
  background: #000;
}

main {
  padding-bottom: 0;
}
main section.mypage_cards {
  padding: 150px 0 120px;
  min-height: calc(100vh - 304px);
}
main section.mypage_cards .wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}
main section.mypage_cards .wrapper .mypage_head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 42px;
}
main section.mypage_cards .wrapper .mypage_head .mypage_head_en {
  margin-bottom: 10px;
  color: #e3c472;
  text-shadow: 0 0 10px rgba(227, 196, 114, 0.18);
  font-size: 13px;
  letter-spacing: 0.18em;
  line-height: 1;
}
main section.mypage_cards .wrapper .mypage_head .mypage_title {
  color: #fff;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  font-weight: bold;
}
main section.mypage_cards .wrapper .mypage_head .mypage_sort {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 14px;
}
main section.mypage_cards .wrapper .mypage_head .mypage_sort .mypage_sort_item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}
main section.mypage_cards .wrapper .mypage_head .mypage_sort .mypage_sort_label {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
main section.mypage_cards .wrapper .mypage_head .mypage_sort select {
  width: 170px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background-color: #000;
  color: #fff;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}
main section.mypage_cards .wrapper .mypage_head .mypage_sort #cardRarityFilter {
  width: 120px;
}
main section.mypage_cards .wrapper .mypage_loading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 120px 0;
  color: rgba(255, 255, 255, 0.7);
}
main section.mypage_cards .wrapper .mypage_loading span {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(190, 150, 70, 0.95);
  border-radius: 50%;
  -webkit-animation: mypageLoading 0.9s linear infinite;
          animation: mypageLoading 0.9s linear infinite;
}
main section.mypage_cards .wrapper .mypage_loading p {
  font-size: 14px;
  letter-spacing: 0.08em;
}
main section.mypage_cards .wrapper .mypage_empty {
  padding: 100px 40px;
  border: 1px solid rgba(190, 150, 70, 0.25);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}
main section.mypage_cards .wrapper .mypage_empty p {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  letter-spacing: 0.05em;
}
main section.mypage_cards .wrapper .mypage_empty .btn_create {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-width: 230px;
  height: 48px;
  border: 1px solid rgba(190, 150, 70, 0.75);
  background: linear-gradient(135deg, #7a5417, #d8b35c, #7a5417);
  color: #050505;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}
main section.mypage_cards .wrapper .card_grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 26px 1fr 26px 1fr;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
main section.mypage_cards .wrapper .card_grid .card_item {
  display: block;
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #111;
  text-decoration: none;
  -webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transition: transform 0.25s ease, opacity 0.25s ease, -webkit-transform 0.25s ease;
}
main section.mypage_cards .wrapper .card_grid .card_item:hover {
  -webkit-transform: translateY(-4px);
          transform: translateY(-4px);
  opacity: 0.88;
}
main section.mypage_cards .wrapper .card_grid .card_item.card_reveal {
  opacity: 0;
  -webkit-transform: translateY(18px) scale(0.98);
          transform: translateY(18px) scale(0.98);
  -webkit-filter: brightness(0.82);
          filter: brightness(0.82);
  pointer-events: none;
}
main section.mypage_cards .wrapper .card_grid .card_item.card_reveal::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -230%;
  z-index: 3;
  width: 250%;
  height: 180%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0.18) 58%, rgba(255, 255, 255, 0) 100%);
  -webkit-transform: rotate(18deg);
          transform: rotate(18deg);
  opacity: 0;
  pointer-events: none;
}
main section.mypage_cards .wrapper .card_grid .card_item.card_reveal.is_revealed {
  opacity: 1;
  -webkit-transform: translateY(0) scale(1);
          transform: translateY(0) scale(1);
  -webkit-filter: brightness(1);
          filter: brightness(1);
  pointer-events: auto;
  -webkit-transition: opacity 0.42s ease, -webkit-transform 0.42s ease, -webkit-filter 0.42s ease;
  transition: opacity 0.42s ease, -webkit-transform 0.42s ease, -webkit-filter 0.42s ease;
  transition: opacity 0.42s ease, transform 0.42s ease, filter 0.42s ease;
  transition: opacity 0.42s ease, transform 0.42s ease, filter 0.42s ease, -webkit-transform 0.42s ease, -webkit-filter 0.42s ease;
}
main section.mypage_cards .wrapper .card_grid .card_item.card_reveal.is_revealed::after {
  -webkit-animation: cardShine 0.62s ease 0.12s 1;
          animation: cardShine 0.62s ease 0.12s 1;
}
main section.mypage_cards .wrapper .card_grid .card_item .card_thumb {
  position: relative;
  width: 100%;
  height: 100%;
  background: #111;
}
main section.mypage_cards .wrapper .card_grid .card_item .card_thumb img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
main section.mypage_cards .wrapper .card_grid .card_item .card_thumb .card_error {
  display: none;
}
main section.mypage_cards .wrapper .card_grid .card_item .card_thumb.is_error .card_error {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
main section.mypage_cards .wrapper .card_grid .card_item .card_incomplete,
main section.mypage_cards .wrapper .card_grid .card_item .card_error {
  position: absolute;
  inset: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 28px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.75)), url("../../images/card-incomplete-bg.png") center center/cover no-repeat, #111;
  text-align: center;
}
main section.mypage_cards .wrapper .card_grid .card_item .card_incomplete p,
main section.mypage_cards .wrapper .card_grid .card_item .card_error p {
  color: #d80000;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
main section.mypage_cards .wrapper .card_grid .card_item.card_item_incomplete .card_incomplete {
  position: relative;
  width: 100%;
  height: 100%;
}

@-webkit-keyframes mypageLoading {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes mypageLoading {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@-webkit-keyframes cardShine {
  0% {
    left: -230%;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}
@keyframes cardShine {
  0% {
    left: -230%;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}
/* ------------------------------
 width < $width-1
------------------------------ */
@media screen and (max-width: 860px) {
  main {
    padding-bottom: 0;
  }
  main section.mypage_cards {
    padding: 20px 0 90px;
    min-height: 100vh;
  }
  main section.mypage_cards .wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
  }
  main section.mypage_cards .wrapper .mypage_head {
    display: block;
    margin-bottom: 42px;
  }
  main section.mypage_cards .wrapper .mypage_head .mypage_head_en {
    margin-bottom: 10px;
    color: #e3c472;
    text-shadow: 0 0 10px rgba(227, 196, 114, 0.18);
    font-size: 10px;
    letter-spacing: 0.18em;
    line-height: 1;
  }
  main section.mypage_cards .wrapper .mypage_head .mypage_title {
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.3;
    font-weight: bold;
  }
  main section.mypage_cards .wrapper .mypage_head .mypage_sort {
    display: block;
    margin-top: 16px;
  }
  main section.mypage_cards .wrapper .mypage_head .mypage_sort .mypage_sort_item {
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
  }
  main section.mypage_cards .wrapper .mypage_head .mypage_sort .mypage_sort_item + .mypage_sort_item {
    margin-top: 10px;
  }
  main section.mypage_cards .wrapper .mypage_head .mypage_sort .mypage_sort_label {
    font-size: 12px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
  main section.mypage_cards .wrapper .mypage_head .mypage_sort select {
    width: 150px;
    height: auto;
    padding: 3px 15px 3px 10px;
    border-radius: 0;
    font-size: 13px;
    outline: none;
  }
  main section.mypage_cards .wrapper .mypage_head .mypage_sort select#cardRarityFilter {
    width: 80px;
  }
  main section.mypage_cards .wrapper .mypage_loading {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding: 120px 0;
    color: rgba(255, 255, 255, 0.7);
  }
  main section.mypage_cards .wrapper .mypage_loading span {
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-top-color: rgba(190, 150, 70, 0.95);
    border-radius: 50%;
    -webkit-animation: mypageLoading 0.9s linear infinite;
            animation: mypageLoading 0.9s linear infinite;
  }
  main section.mypage_cards .wrapper .mypage_loading p {
    font-size: 14px;
    letter-spacing: 0.08em;
  }
  main section.mypage_cards .wrapper .mypage_empty {
    padding: 80px 20px;
    border: 1px solid rgba(190, 150, 70, 0.25);
    background: rgba(255, 255, 255, 0.035);
    text-align: center;
  }
  main section.mypage_cards .wrapper .mypage_empty p {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    letter-spacing: 0.05em;
  }
  main section.mypage_cards .wrapper .mypage_empty .btn_create {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    min-width: 230px;
    height: 48px;
    border: 1px solid rgba(190, 150, 70, 0.75);
    background: linear-gradient(135deg, #7a5417, #d8b35c, #7a5417);
    color: #050505;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
  }
  main section.mypage_cards .wrapper .card_grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 10px 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: calc(100% + 20px);
    margin-left: -10px;
    margin-right: -10px;
  }
  main section.mypage_cards .wrapper .card_grid .card_item {
    display: block;
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #111;
    text-decoration: none;
    -webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
    transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transition: transform 0.25s ease, opacity 0.25s ease, -webkit-transform 0.25s ease;
  }
  main section.mypage_cards .wrapper .card_grid .card_item:hover {
    -webkit-transform: translateY(-4px);
            transform: translateY(-4px);
    opacity: 0.88;
  }
  main section.mypage_cards .wrapper .card_grid .card_item.card_reveal {
    opacity: 0;
    -webkit-transform: translateY(18px) scale(0.98);
            transform: translateY(18px) scale(0.98);
    -webkit-filter: brightness(0.82);
            filter: brightness(0.82);
    pointer-events: none;
  }
  main section.mypage_cards .wrapper .card_grid .card_item.card_reveal::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -230%;
    z-index: 3;
    width: 250%;
    height: 180%;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0.18) 58%, rgba(255, 255, 255, 0) 100%);
    -webkit-transform: rotate(18deg);
            transform: rotate(18deg);
    opacity: 0;
    pointer-events: none;
  }
  main section.mypage_cards .wrapper .card_grid .card_item.card_reveal.is_revealed {
    opacity: 1;
    -webkit-transform: translateY(0) scale(1);
            transform: translateY(0) scale(1);
    -webkit-filter: brightness(1);
            filter: brightness(1);
    pointer-events: auto;
    -webkit-transition: opacity 0.42s ease, -webkit-transform 0.42s ease, -webkit-filter 0.42s ease;
    transition: opacity 0.42s ease, -webkit-transform 0.42s ease, -webkit-filter 0.42s ease;
    transition: opacity 0.42s ease, transform 0.42s ease, filter 0.42s ease;
    transition: opacity 0.42s ease, transform 0.42s ease, filter 0.42s ease, -webkit-transform 0.42s ease, -webkit-filter 0.42s ease;
  }
  main section.mypage_cards .wrapper .card_grid .card_item.card_reveal.is_revealed::after {
    -webkit-animation: cardShine 0.62s ease 0.12s 1;
            animation: cardShine 0.62s ease 0.12s 1;
  }
  main section.mypage_cards .wrapper .card_grid .card_item .card_thumb {
    position: relative;
    width: 100%;
    height: 100%;
    background: #111;
  }
  main section.mypage_cards .wrapper .card_grid .card_item .card_thumb img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
  }
  main section.mypage_cards .wrapper .card_grid .card_item .card_thumb .card_error {
    display: none;
  }
  main section.mypage_cards .wrapper .card_grid .card_item .card_thumb.is_error .card_error {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  main section.mypage_cards .wrapper .card_grid .card_item .card_incomplete,
  main section.mypage_cards .wrapper .card_grid .card_item .card_error {
    position: absolute;
    inset: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding: 28px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.75)), url("../../images/card-incomplete-bg.png") center center/cover no-repeat, #111;
    text-align: center;
  }
  main section.mypage_cards .wrapper .card_grid .card_item .card_incomplete p,
  main section.mypage_cards .wrapper .card_grid .card_item .card_error p {
    color: #d80000;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  }
  main section.mypage_cards .wrapper .card_grid .card_item.card_item_incomplete .card_incomplete {
    position: relative;
    width: 100%;
    height: 100%;
  }
  @-webkit-keyframes mypageLoading {
    from {
      -webkit-transform: rotate(0deg);
              transform: rotate(0deg);
    }
    to {
      -webkit-transform: rotate(360deg);
              transform: rotate(360deg);
    }
  }
  @keyframes mypageLoading {
    from {
      -webkit-transform: rotate(0deg);
              transform: rotate(0deg);
    }
    to {
      -webkit-transform: rotate(360deg);
              transform: rotate(360deg);
    }
  }
  @-webkit-keyframes cardShine {
    0% {
      left: -230%;
      opacity: 0;
    }
    18% {
      opacity: 1;
    }
    100% {
      left: 120%;
      opacity: 0;
    }
  }
  @keyframes cardShine {
    0% {
      left: -230%;
      opacity: 0;
    }
    18% {
      opacity: 1;
    }
    100% {
      left: 120%;
      opacity: 0;
    }
  }
}