@charset "UTF-8";

/* base.css上書き */
:root{
    --header-top-height: 0px;
    --header-bottom-height: 0px;
}

header {
    position: static;
    margin-top: var(--pwa-leader-height);
}

.header__top {
    padding: 16px 0;
    justify-content: center;
    width: 100vw;
    height: auto;
    background-image: repeating-linear-gradient(135deg, transparent, transparent 2px, rgba(235, 235, 235, 1) 2px, rgba(235, 235, 235, 1) 4px );
}
.header__bottom {
    height: 108px;
    flex-direction: column;
}

@media screen and (min-width: 480px) {
    .header__bottom {
        height: 48px;
        flex-direction: row;
    }    
}

.header__item {
    border-bottom: 1px dashed #fff;
}
/* base.css上書き終了 */

/* element.css上書き */
@media screen and (min-width: 1280px) {
    .element__bottom {
        display: flex;
    }
}
/* element.css上書き終了 */

#hero_adjustment, #card_adjustment, #ranking, #deck {
    padding-top: calc(var(--pwa-leader-height));
    margin-top: calc(-1 * var(--pwa-leader-height));
    margin-bottom: 16px;
}

@media screen and (min-width: 1280px) {
    #deck .section__bottom .section__item:first-child {
        margin-right: 0px;
    }
}

.header__image{
    width: 350px;
    height: auto;
}

@media screen and (min-width: 480px) {
    .header__top {
        padding: 0;
    }
    .header__image {
        width: 40%;
        height: 200px;
        object-fit: cover;
    }   
}

.header__container {
    display: flex;
    width: 100%;
    height: 36px;
}

.header__container:last-child .header__item {
    border-bottom: none;
}

@media screen and (min-width: 480px) {
    .header__container {
        height: 48px;
    }

    .header__container .header__item {
        border-bottom: none;
        border-right: 1px dashed #fff;
    }

    .header__container:last-child .header__item:last-child {
        border-right: none;
    }
}
 
.section {
    margin-bottom: 16px;
}

@media screen and (min-width: 1280px) {
    .section {
        flex: 1;
    }
}

.element__bottom .section:last-of-type {
    margin-bottom: 0;
}

.section__top {
    margin-bottom: 6px;
    color: #000;
}

.section__bottom {
    padding: 10px;
}

.section__item > div:has(.section__button) {
    display: flex;
}

.section__button {
    flex: 1;
    padding: 6px 0;
    color: #fff;
    background-color: var(--theme-color-2);
    border: none;
    border-left: 1px dashed #fff;
    outline: none;
}

.section__button.open {
    border-bottom: 2px solid var(--theme-color);
}

.section__item .section__button:first-of-type {
    border-left: none;
}

.section__subtitle {
    margin: 0 0 8px 16px;
    font-weight: normal;
}

.section__unit {
    padding: 16px 0 16px 16px;
    display: flex;
    align-items: center;
    color: #000;
    text-decoration-line: underline;
    text-decoration-color: #000;
    text-decoration-style: solid;
    font-weight: bold;
    background-image: repeating-linear-gradient(135deg, transparent, transparent 2px, rgba(235, 235, 235, 1) 2px, rgba(235, 235, 235, 1) 4px );
    border-radius: 5px;
}

.section__image {
    width: auto;
    height: 56px;
}

@media screen and (min-width: 480px) {
    .section__image {
        height: 64px;
    }
}

@media screen and (min-width: 1280px) {
    .section__image {
        height: 76px;
    }
}

.section__content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 56px;
}

@media screen and (min-width: 480px) {
    .section__content {
        height: 64px;
    }
}

@media screen and (min-width: 1280px) {
    .section__content {
        height: 76px;
    }
}

.section__text {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    width: 90%;
    height: 56px;
    text-align: center;
    background-color: #fff;
    border-radius: 5px;
}

@media screen and (min-width: 480px) {
    .section__text {
        height: 64px;
    }
}

@media screen and (min-width: 1280px) {
    .section__text {
        height: 76px;
    }
}

.section__unit--hero,
.section__unit--card {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.section__unit--hero {
    grid-template-columns: repeat(7, 1fr);
}

.section__unit--card {
    grid-template-columns: repeat(7, 1fr);
}


.section__unit--hero a,
.section__unit--card a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section__unit--deck {
    flex-direction: column;
}

.section__unit--deck > div {
    display: flex;
    width: 100%;
    justify-content: left;
    align-items: start;
}

.section__unit--deck > div:first-of-type {
    margin-bottom: 16px;
}

.section__cards {
    margin: 0;
    margin-right: 16px;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (min-width: 480px) {
    .section__cards {
        margin-left: 0;
        margin-right: 0;
        width: 60%;
    }
}

@media screen and (min-width: 1280px) {
    .section__cards {
        margin-left: 0;
        margin-right: 0;
        width: 60%;
    }
}

.section__cards img {
    width: auto;
    height: 44px;
}

.section__card {
    margin-left: 4px;
}

.section__card:first-child {
    margin-left: 0;
}

.section__medals {
    margin-right: 8px;
    display: flex;
    justify-content: start;
    align-items: center;
}

@media screen and (min-width: 480px) {
    .section__medals {
        margin-right: 0;
        width: 100%;
        justify-content: center;
    }
}

@media screen and (min-width: 1280px) {
    .section__medals {
        margin-right: 0;
        width: 100%;
        justify-content: center;
    }
}

.section__medals img {
    width: auto;
    height: 44px;
}
