@charset "UTF-8";

/* database */
.db-header {
    margin-bottom: 1rem;
}

.detail-main {
    position: relative;
    color: #fff;
    border-radius: 16px;
}
.detail-alien {
    background: -webkit-linear-gradient(top,  #003784 0%,#000 100%);
    background: linear-gradient(to bottom,  #003784 0%,#000 100%);
}
.detail-gadget {
    background: -webkit-linear-gradient(top,  #007384 0%,#000 100%);
    background: linear-gradient(to bottom,  #007384 0%,#000 100%);
}
.detail-dna {
    background: -webkit-linear-gradient(top,  #84007c 0%,#000 100%);
    background: linear-gradient(to bottom,  #84007c 0%,#000 100%);
}

.detail-main-head {
    font-size: .7rem;
}

.detail-flex {
    display: flex;
    align-items: center;
}

@media (min-width: 481px) and (max-width: 768px) {
    .detail-gadget .detail-main-head {
        margin-left: 3rem;
    }
}
@media (min-width: 769px) {
    .detail-main-head {
        font-size: 1rem;
    }
}

/* detail-alien */
.detail-alien h1 {
    font-size: 1.2rem;
    color: #fcda06;
}

.detail-alien-image {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.detail-alien-image > div {
    width: 100%;
}
.alien-flip {
    transform: scale(-1, 1);
}

.detail-alien-description {
    color: #fff;
    font-size: .8rem;
    line-height: 1.2rem;
}

@media (min-width: 769px) {
    .detail-alien h1 {
        font-size: 1.6rem;
    }

    .detail-alien-image {
        align-items: center;
    }

    .detail-alien-description {
        font-size: 1rem;
        line-height: 1.4rem;
    }
}

/* detail-gadget */
.detail-gadget-grade {
    position: absolute;
    top: -2%;
    left: -4%;
}

.detail-gadget h1 {
    text-indent: 1.5rem;
    font-size: 1.1rem;
    color: #fcda06;
}

/* .detail-gadget-image {
} */

.detail-gadget-spec {
    color: #fff;
    font-size: .8rem;
    line-height: 1.2rem;
}

@media (min-width: 769px) {
    .detail-gadget-grade {
        top: -24px;
        left: -24px;
    }

    .detail-gadget h1 {
        text-indent: 2.5rem;
        font-size: 1.6rem;
    }

    .detail-gadget-spec {
        font-size: 1rem;
        line-height: 1.4rem;
    }
}

/* detail-dna */
.detail-dna h1 {
    font-size: 1.2rem;
    color: #fcda06;
}
.detail-dna-spec {
    font-size: .8rem;
    line-height: 1.2rem;
}

/* search */
.search-wrap {
    margin-top: 2.5rem;
}
.search-wrap h3 {
    position: relative;
    font-size: .8rem;
    margin-bottom: .5rem;
    text-indent: .25rem;
    border-bottom: 1px solid #333;
}

.search-wrap h4 {
    font-size: .8rem;
    margin: 0 auto .25rem;
}

@media (min-width: 769px) {
    .search-wrap h3 {
        line-height: 2rem;
        margin-bottom: 0;
        text-indent: 0;
        border: none;
    }
    .search-wrap h4 {
        text-indent: .5rem;
        margin-bottom: .5rem;
        border-bottom: 1px solid #333;
    }
}

.search-input-wrap,
.search-input-area {
    display: flex;
    flex-wrap: wrap;
}
.search-input-area p {
    margin: 0 .5rem .5rem 0;
}
.search-input-area p:last-child {
    margin-right: 0;
}

.search-input-wrap input[type='checkbox'] {
    display: none;
}

.search-check-all + label {
    display: inline-block;
    border-radius: 8px;
    border: 1px solid #162648;
    padding: 0 .75rem;
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.75rem;
    background: -webkit-linear-gradient(to bottom, #ab9270 30%,#331b03 100%);
    background: linear-gradient(to bottom, #ab9270 30%,#331b03 100%);
    box-shadow: 0px 0px 0px 2px rgba(255,255,255,.85) inset;
}
.search-check-all:checked + label {
    border: 1px solid #bd8b04;
    background: -webkit-linear-gradient(to bottom, #fdec8b 10%,#f4991e 50%,#e88015 100%);
    background: linear-gradient(to bottom, #fdec8b 10%,#f4991e 50%,#e88015 100%);
    box-shadow: 0px 0px 0px 1px rgba(252,214,123,.85) inset;
}

.search-input-area input[type='checkbox'] + label {
    display: inline-block;
    min-width: 3rem;
    padding: 0 .75rem;
    text-align: center;
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.75rem;
    border-radius: 8px;
    border: 1px solid #182348;
    background: -webkit-linear-gradient(to bottom, #698cad 30%,#0b1e3d 70%,#002449 100%);
    background: linear-gradient(to bottom, #698cad 30%,#0b1e3d 70%,#002449 100%);
    box-shadow: 0px 0px 0px 2px rgba(255,255,255,.85) inset;
}

.search-input-area input[type='checkbox']:checked + label {
    border: 1px solid #1da6cd;
    background: -webkit-linear-gradient(to bottom, #aafcf8 0%, #015eea 100%);
    background: linear-gradient(to bottom, #aafcf8 0%, #015eea 100%);
    box-shadow: 0px 0px 0px 2px rgba(255,255,255,0.8) inset;
}

.input-restriction {
    margin-left: .5rem;
}
@media (min-width: 481px) and (max-width: 768px) {
    .input-restriction {
        margin-left: 2.75rem;
    }
}
@media (min-width: 769px) {
    .input-restriction {
        margin-left: .7rem;
    }
}

.search-word {
    width: 100%;
    line-height: 2rem;
    font-size: .8rem;
    text-indent: .5rem;
    border: 1px solid #999999;
    border-radius : 6px;
}

.search-submit {
    position: relative;
    width: 80%;
    margin: 0;
    padding: 4px;
    border-radius: 28px;
    border: 2px solid #034b85;
    background: -webkit-linear-gradient(#ffffff, #dedddd);
    background: linear-gradient(#ffffff, #dedddd);
}
.search-submit span {
    display: block;
    padding: 4px;
    border-radius: 24px;
    border: 1px solid #704b21;
    background: -webkit-linear-gradient(#ef0a6a, #b6359c);
    background: linear-gradient(#ef0a6a, #b6359c); 
}
.search-submit img {
    zoom: .75;
}
@media (min-width: 481px) and (max-width: 768px) {
    .search-submit {
        padding: 6px;
    }
    .search-submit span {
        padding: 6px;
    }
    .search-submit img {
        zoom: unset;
    }
}
@media (min-width: 769px) {
    .search-word {
        height: 40px;
        line-height: 40px;
    }
    .search-submit {
        width: 264px;
    }
    .search-submit img {
        zoom: unset;
    }
}

.search-narrowed {
    margin-top: 3rem;
}
.search-toggle::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 3.75%;
    margin: auto;
    width: 1rem;
    height: 1rem;
    background-image: url('../img/btn-search_close.png');
    background-repeat: no-repeat;
    background-size: 100% auto;
}
.search-toggle.is-open::after {
    background-image: url('../img/btn-search_open.png');
}
@media (min-width: 769px) {
    .search-toggle::after {
        right: 20px;
        width: 24px;
        height: 24px;
    }
}

.search-toggle + .content-box {
    min-height: 2.75rem;
}
.search-narrowed .search-wrap {
    display: none;
}

/* result */
.result-total {
    background-color: #fff;
    border: solid #cfcfcf 1px;
    border-radius: 4px;
    font-size: .875rem;
}
.result-total var {
    color: #f00;
    font-weight: 600;
    font-style: normal;
    font-size: 1.25rem;
    margin: 0 .25rem;
}


/* pager */
.pagenation {
    display: flex;
    width: 100%;
    margin: 0 auto 16px;
    justify-content: space-around;
    align-items: center;
}

.pagenation-prev,
.pagenation-next {
    position: relative;
    border: 1px solid #333;
    background-color: #fff;
    font-size: .75rem;
    line-height: 2rem;
    margin: 0 .5rem;
}
.pagenation-prev a,
.pagenation-next a {
    display: block;
    width: 100%;
    height: 100%;
}

.pagenation-select {
    position: relative;
    color: #333;
    border: 1px solid #333;
    background-color: #fff;
}

.pagenation-select-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 10%;
    margin: auto;
}

.pagenation-select-arrow:before,
.pagenation-select-arrow:after {
    content: '';
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    width: 6px;
    height: 1px;
    background: #333;
}
.pagenation-select-arrow:before{
    left: -1px;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
}
.pagenation-select-arrow:after{
    right: -1px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.pagenation-select select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2rem;
    font-size: .75rem;
    padding: 0 1rem;
    background-color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
}
.pagenation-select select::-ms-expand {
    display: none;
}

.pagenation-hidden {
    visibility: hidden;
}
@media (min-width: 481px) and (max-width: 768px) {
    .pagenation-prev,
    .pagenation-next {
        width: 25%;
        line-height: 3rem;
        font-size: 1rem;
    }
    .pagenation-select {
        width: 30%;
    }
    .pagenation-select select {
        height: 3rem;
        font-size: 1rem;
    }

}
@media (min-width: 769px) {
    .pagenation-prev,
    .pagenation-next {
        width: 25%;
        padding: 0;
        font-size: .9rem;
        line-height: 2.5rem;
    }
    .pagenation-select {
        width: 25%;
    }
    .pagenation-select select {
        height: 2.5rem;
        font-size: .9rem;
        padding: 0 2rem;
    }
}


/* table-list */
.data-list {
    width: 100%;
    border-collapse: collapse;
}
.data-list tr:first-child {
    border-top: 1px solid #034b85;
    border-bottom: 1px solid #034b85;
}
.data-list tr:not(:first-child) {
    border-bottom: 1px dotted #333;
}
.data-list th {
    font-size: .8rem;
    line-height: 2rem;
}
.data-list td {
    font-size: .75rem;
}

.data-list a {
    color: #f96412;
    font-weight: bold;
    text-decoration: underline;
}
@media (min-width: 481px) and (max-width: 768px) {
    .data-list th {
        font-size: 1rem;
    }
    .data-list td {
        font-size: 1rem;
    }
}
@media (min-width: 769px) {
    .data-list th {
        font-size: 1rem;
    }
    .data-list td {
        font-size: 1rem;
    }
}

.data-gadget tr td:nth-child(2) {
    text-align: center;
}
.data-gadget tr td:nth-child(2) img {
    width: 50%;
}

.data-dna td {
    text-indent: 1rem;
    line-height: 2.5rem;
}

/* table-detail */
.data-detail-common,
.data-detail-row {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    border: 2px solid #034b85;
    overflow: hidden;
}

.data-detail-common tr,
.data-detail-row tr {
    line-height: 1rem;
}
.data-detail-common tr:nth-child(odd) {
    background-color: #cef1f7;
}
.data-detail-common tr:nth-child(even) {
    background-color: #fff;
}

.data-detail-common th,
.data-detail-row th {
    padding: .5rem 1rem;
    font-size: .75rem;
    color: #054986;
    white-space: nowrap;
    /* text-indent: 1rem; */
}
.data-detail-common .th-rowspan,
.data-detail-row .th-rowspan {
    text-indent: 0;
    text-align: center;
    vertical-align: top;
    padding: .5rem 0;
    border-right: 2px solid #034b85;
}

.data-detail-common td,
.data-detail-row td {
    padding: .5rem 1rem;
    font-size: .75rem;
    color: #333;
    text-align: left;
}

/* 2025.8.20追記 - 2.0用改変 */
.ability {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    border: 2px solid #034b85;
    overflow: hidden;
}

.ability tr {
    line-height: 1rem;
}

.ability tr:nth-child(2n) {
    background-color: #cef1f7;
}

.ability th {
    font-size: .75rem;
    color: #054986;
    vertical-align: middle;
}

.ability .th-rowspan {
    text-indent: 0;
    text-align: center;
    /* vertical-align: top; */
    padding: .5rem 0;
    border-right: 2px solid #034b85;
}

.ability td {
    padding: .5rem 1rem;
    font-size: .75rem;
    color: #333;
    text-align: left;
    line-height: 2rem !important;
}
/* ここまで */

.data-detail-common td img {
    height: 3rem;
}

.data-detail-common a {
    color: #f96412;
    font-weight: bold;
    text-decoration: underline;
}

@media (min-width: 769px) {
    .data-detail-common tr,
    .data-detail-row tr,
    .ability tr {
        line-height: 2rem;
    }
    .data-detail-common th,
    .data-detail-row th,
    .ability th {
        padding: .75rem 1rem;
        font-size: .9rem;
        white-space: nowrap;
    }
    .data-detail-common td,
    .data-detail-row td,
    .ability td {
        padding: .75rem 1rem;
        font-size: .9rem;
        line-height: 1rem;
    }
    .data-detail-common td img {
        height: 4rem;
    }
}

.data-detail-row tr:nth-child(3n+1),
.data-detail-row tr:nth-child(3n+2),
.data-detail-row tr:nth-child(3n) {
    background-color: #cef1f7;
}
.data-detail-row tr:nth-child(6n-2),
.data-detail-row tr:nth-child(6n-1),
.data-detail-row tr:nth-child(6n) {
    background-color: #fff;
}


/* ---- ranking ---------------------------------------- */
.data-list td.rank-alien-icon img {
    width: 80px;
    vertical-align: middle;
}

@media (min-width: 769px) {
    .data-list td.rank-alien-icon img {
        width: auto;
    }
}

/* ---- mutation table ---------------------------------------- */
.mutation-wrap {
    font-size: 1rem;
}

.mutation-wrap a {
    color: #f96412;
    font-weight: bold;
    text-decoration: underline;
}

.mutation-wrap h1 {
    font-size: 2rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: dashed 1px #cfcfcf;
}

.mutation-table {
    width: 100%;
    font-size: 1.25rem;
    font-weight: bold;
    background-color: #034b85;
}

.mutation-table,
.mutation-table th,
.mutation-table td {
    margin-bottom: 1rem;
    border-collapse: collapse;
    border: solid 2px #034b85;
}

.mutation-table th,
.mutation-table td {
    text-align: center;
    padding: 1rem;
}

.mutation-table td {
    background-color: #fff;
}

.th-orange {
    background-color: #fdc593;
}

.th-blue {
    background-color: #93d9fd;
}

.mutation-table-captin {
    text-align: center;
    margin-bottom: 2rem;
}


/* ---- mutation search ---------------------------------------- */
/* STEP */
.step-mutation {
    display: flex;
    flex-direction: column;
    background: -webkit-linear-gradient(top,  #414d5a 0%,#2f3944 100%);
    border: 1px solid #000;
    border-radius: 15px;
}
.step-mutation > div {
    position: relative;
    display: flex;
    color: #6c7b8d;
    font-weight: 600;
    padding: .5rem;
    line-height: 2rem;
}
.step-mutation > div.is-current {
    background: -webkit-linear-gradient(top,  #ffab96 0%,#ff0f47 100%);
    color: #fff;
}

.step-mutation h3 {
    text-align: center;
}

.step-child {
    border-bottom: 1px solid #000;
    border-radius: 14px 14px 0 0;
}
.step-parent{
    border-bottom: 1px solid #000;
}
.step-result {
    border-radius: 0 0 14px 14px;
}

.step-mutation > div:not(:last-of-type)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.625rem;
    margin: auto;
    width: 1.25rem;
    height: 1.25rem;
    transform: rotate(90deg);
    background-image: url('../img/icon-step_arrow.png');
    background-repeat: no-repeat;
    background-size: 100% auto;
    z-index: 1;
}
@media (min-width: 481px) and (max-width: 768px) {
    .step-mutation {
        flex-direction: row;
        border: 2px solid #000;
        border-radius: 25px;
    }
    .step-mutation > div {
        flex-direction: column;
        text-align: center;
        padding: .5rem 1.25rem;
        line-height: initial;
    }

    .step-mutation h3 {
        font-size: 2rem;
    }

    .step-mutation p {
        font-size: 1rem;
    }

    .step-child {
        border-radius: 24px 0 0 24px;
    }
    .step-result {
        border-radius: 0 24px 24px 0;
    }
    .step-child, .step-parent {
        border-bottom: none;
        border-right: 2px solid #000;
    }

    .step-mutation > div:not(:last-of-type)::after {
        top: 0;
        left: initial;
        right: -1.25rem;
        bottom: 0;
        width: 40px;
        height: 40px;
        transform: rotate(0deg);
    }
}
@media (min-width: 769px) {
    .step-mutation {
        flex-direction: row;
        border: 2px solid #000;
        border-radius: 25px;
    }
    .step-mutation > div {
        flex-direction: column;
        text-align: center;
        padding: .5rem 1.25rem;
        line-height: initial;
    }

    .step-mutation h3 {
        font-size: 2rem;
    }

    .step-mutation p {
        font-size: 1rem;
    }

    .step-child {
        border-radius: 24px 0 0 24px;
    }
    .step-result {
        border-radius: 0 24px 24px 0;
    }
    .step-child, .step-parent {
        border-bottom: none;
        border-right: 2px solid #000;
    }

    .step-mutation > div:not(:last-of-type)::after {
        top: 0;
        left: initial;
        right: -1.25rem;
        bottom: 0;
        width: 40px;
        height: 40px;
        transform: rotate(0deg);
    }
}

/* selected */
.mutation-selected {
    display: flex;
    flex-direction: column;
}
.mutation-selected > div {
    padding: .75rem 0;
    background-color: #fff;
    border: 2px solid #034b85;
    border-radius: 14px;
}
.mutation-selected h3 {
    margin-bottom: .75rem;
    line-height: 2.25rem;
    text-align: center;
    color: #fff;
}

.selected-child {
    margin-bottom: .5rem;
}
.selected-child h3 {
    background-color: #1aa7db;
}
/* .selected-parent {

} */
.selected-parent h3 {
    background-color: #00cb6e;
}

.selected-detail {
    display: flex;
}
.selected-detail .name {
    margin-top: .75rem;
    line-height: 1.6rem;
}
.selected-detail .contents-btn {
    text-align: right;
    margin-right: 1.5rem;
}
@media (min-width: 481px) and (max-width: 768px) {
    .mutation-selected {
        flex-direction: row;
        justify-content: space-between;
    }
    .mutation-selected > div {
        width: calc(50% - .5rem);
    }
    
    .selected-child {
        margin-bottom: 0;
    }

    .selected-detail .name {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .mutation-selected {
        flex-direction: row;
        justify-content: space-between;
    }
    .mutation-selected > div {
        width: calc(50% - .5rem);
    }
    
    .selected-child {
        margin-bottom: 0;
    }

    .selected-detail .name {
        margin-top: 1rem;
        font-size: 1rem;
    }
}

.text-current {
    color: #f00;
    font-size: 1rem;
}





/* ---- other ---------------------------------------- */
.detail-pageback {
    font-size: .8rem;
    margin-top: 1.5rem;
    padding-top: .5rem;
    border-top: 1px solid #cfcfcf;
}

.position-scroll {
    padding-top: 1rem;
}

.video iframe {
    max-width: 100%;
}
