/**
* 86 mm × 54 mm ; 画面サイズ. 62 mm × 46 mm
*/
:root {
    --width-checkit-frame: 54px;
    --width-double-checkit-frame: calc(var(--width-checkit-frame) * 2);

    --height-checkit-frame: 86px;
    --height-double-checkit-frame: calc(var(--height-checkit-frame) * 2);

    --width-checkit-display: 46px;
    --width-double-checkit-display: calc(var(--width-checkit-display) * 2);

    --height-checkit-display: 62px;
    --height-double-checkit-display: calc(var(--height-checkit-display) * 2);
}

/* 検索 */
#cast form {
    margin-bottom: 40px;
}

#castByOmiseButton {
    margin-left: auto;
    padding: 4px;
    background-color: transparent;
    border-radius: 0;
}

#castByOmiseButton::before {
    content: "□";
    padding-right: 4px;
}

#castByOmiseButton[data-active="true"] {
    border-bottom: 1px solid var(--color-golden);
}

#castByOmiseButton[data-active="true"]::before {
    content: "■";
    color: var(--color-golden);
}

#cast #submitBtn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 8px;
    background-color: var(--color-white-offwhite) !important;
    border-radius: 0;
    border: 1px solid var(--color-gray-dark);
    box-shadow: unset;
}

#cast #submitBtn img {
    --size-cast-search-button: 16px;
    min-width: var(--size-cast-search-button);
    max-width: var(--size-cast-search-button);
    min-height: var(--size-cast-search-button);
    max-height: var(--size-cast-search-button);
    display: block;
    margin: auto 0;
}

#cast button span {
    width: max-content;
    margin: auto 0;
    color: var(--color-gray-dark);
    font-size: var(--font-size-xs);
}

/* リスト */
.cast_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.cast_item {
    position: relative;
    margin: 0 24px 32px 0;
    box-shadow: 16px 8px 8px currentColor;
    z-index: 1;
}

/* チェキフレーム */
.cast_item,
.checkit_frame,
.checkit_frame_back {
    display: block;
    width: var(--width-double-checkit-frame);
    height: var(--height-double-checkit-frame);
    /* background-color: var(--color-white-offwhite); */
}

.checkit_frame,
.checkit_frame_back {
    position: absolute;
    background-color: var(--color-white-offwhite);
    z-index: 2;
}

.checkit_inner_frame {
    position: absolute;
    top: calc(var(--height-checkit-frame) - var(--height-checkit-display) /0.9);
    left: calc(var(--width-checkit-frame) - var(--width-checkit-display));
    width: var(--width-double-checkit-display);
    height: var(--height-double-checkit-display);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-white-offwhite);
    z-index: 3;
}

.cast_checkit_img_wrap {
    position: absolute;
    top: 0;
    width: var(--width-double-checkit-display);
    height: var(--height-double-checkit-display);
    z-index: 4;
}

.cast_checkit_img_wrap img {
    display: block;
    height: 100%;
    margin: 0 auto;
    border-radius: 1px;
    filter: brightness(1.1);
}

.cast_checkit_img_wrap svg {
    position: absolute;
    right: 8px;
    bottom: 8px;
}

.checkit_text {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    line-height: 180%;
    height: calc(1em * 1.8 * 1);
}

.checkit_text span {
    display: block;
    height: 100%;
    margin: auto;
    font-size: var(--font-size-xs);
    color: var(--color-white-offwhite);
    text-align: center;
    text-decoration: none;
}

.cast_item[data-light="true"] .checkit_text span {
    color: var(--color-gray-dark);
}

.omise_name {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: var(--font-size-xxs);
    color: var(--color-white-offwhite);
}

.cast_item[data-light="true"] .omise_name {
    color: var(--color-gray-dark);
}

/* ツイッターリンク */
.cast_twitter_link {
    --size-twitter-link: 12px;
    position: absolute;
    bottom: calc(1em * 2.8 * 1 + 4px);
    left: calc(var(--width-checkit-frame) - var(--width-checkit-display) + 8px);
    min-width: var(--size-twitter-link);
    max-width: var(--size-twitter-link);
    min-height: var(--size-twitter-link);
    max-height: var(--size-twitter-link);
    z-index: 5;
}

/* 回転 */
.cast_item{
  transform-style: preserve-3d;
  box-shadow: 4px 4px 8px rgb(255, 255, 255, 0.05);
}

.checkit_frame{
  transform-style: preserve-3d;
    transition: transform 500ms;
    transform: rotateY(0deg);
    backface-visibility: hidden;
}

.checkit_frame_inner{
  /* transform: rotateZ(0deg); */
  transition: transform 500ms;
}

.checkit_frame_back {
  transform-style: preserve-3d;
  transition: transform 500ms;
  transform: rotateY(-180deg);
  backface-visibility: hidden;
}

.checkit_frame_back_inner {
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fronting{
  transform: rotateY(0deg);
  z-index: 10;
}

.backing{
  transform: rotateY(180deg);
  z-index: -1;
}
