@charset "utf-8";

:root {
    color-scheme: light dark;
    --secttion-margin-bottom: 60px;
    --color-light: #f8f8f8;
    --color-dark: #333;
    --hover-color-light: #ccc;
    --hover-color-dark: #888;
    --section-margin-bottom: 60px;
    --header-padding-right-modal: 0px;
    --color-light-dark: light-dark(#f8f8f8, #333);
    --color-dark-light: light-dark(#333, #f8f8f8);
    --hover-dark-light: light-dark(#555, #ddd);
    --color-inactive: light-dark(#999, #ccc);
}

* {
    font-family: "Zen Kaku Gothic New", sans-serif;
    box-sizing: border-box;

    scroll-margin-top: 70px;

    color: var(--color-dark-light);

    list-style-position: inside;
}

.displayNone {
    display: none !important;
}

.generalContainer {
    width: 100%;
    position: relative;
    /* コンテンツの縦幅がスクリーンの縦幅より小さいときのフッタの処理 */
    display: flex;
    flex-direction: column;
    min-height: 100lvh;
}

body {
    background-color: var(--color-light-dark);
}

main {
    flex-grow: 1;
    margin-bottom: calc(var(--section-margin-bottom) * 2);
}

.innerContent {
    max-width: 1200px;
    min-width: 700px;
    margin: 0 auto;
    padding: 0 50px;
}

p {
    margin-bottom: 20px;
}

/* MARK: toTopPage */

.toTopPage {
    display: block;
    width: fit-content;
    padding: 5px 15px;
    color: var(--color-light-dark);
    background-color: var(--color-dark-light);
    border-radius: 50px;
    transition: .2s;

    &:hover {
        background-color: light-dark(#555, #ccc);
    }
}

.mainBg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: light-dark(url(.././imSe/bg-keyboard_rotate.svg), url(.././imSe/bg-keyboard_rotate_dark.svg));
    background-repeat: no-repeat;
    background-size: 800px auto;
    background-position: right 0 top 100px;
}

/* MARK:header */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 50px;

    padding: 10px 0;
    margin-bottom: var(--section-margin-bottom);
    background-color: light-dark(rgba(248, 248, 248, .9), rgba(51, 51, 51, .9));

}

header .innerContent {
    display: flex;
    justify-content: space-between;
}

.siteName {
    font-size: 24px;
    font-weight: 600;
}

.menuContainer {
    display: flex;
    gap: 20px;
}

.search {
    display: flex;
    flex-shrink: 0;
}

.searchWord {
    display: inline-block;
    width: 200px;
    padding: 5px 15px;
    border-radius: 20px 0 0 20px;
    z-index: 0;
    background-color: light-dark(#eee, #666);

    &::placeholder {
        color: light-dark(#aaa, #aaa);
    }

    &:focus {
        outline: none;
    }

}

.searchButton {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 0 20px 20px 0;
    background-color: light-dark(#ddd, #555);
    transition: .2s;

    &:hover {
        background-color: light-dark(#ccc, #555);
    }
}

.searchButton img {
    transition: .2s;
}

.searchButton:hover img {
    filter: invert(50%);
}

@media (prefers-color-scheme: dark) {
    .searchButton img {
        filter: invert(100%);
    }
}


.memberMenu {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.memberMenu>a {
    display: block;
    position: relative;
    padding: 5px;
    text-align: center;
    border-bottom: 3px solid transparent;

    transition: .2s;

    &:hover.link {
        color: light-dark(#999, #ccc);
        border-bottom: 2px solid light-dark(#999, #ccc);
    }

    &:first-child:after {
        color: var(--color-dark-light);
        content: "|";
        position: absolute;
        right: -4px;
    }
}

.memberMenu .icon {
    margin-top: 3px;
    margin-left: -5px;
    padding: 0;
}

.memberMenu .icon svg {
    fill: var(--color-dark-light);
    transition: .2s;

    &:hover {
        fill: light-dark(#999, #ccc);
    }
}

/* MARK:modal関連 */

body.modalActive {
    overflow-y: hidden;
}

body.modalActive .generalContainer {
    overflow: auto;
    scrollbar-gutter: stable;
}

body.modalActive header {
    position: fixed;
    width: 100%;
    top: 0;
    padding-right: var(--header-padding-right-modal);
}

body.modalActive main {
    margin-top: 110px;
}

dialog {
    opacity: 0;
    width: fit-content;
    height: fit-content;
    background-color: #f8f8f8;
    padding: 20px 40px;
    border-radius: 20px;
    transition:
        opacity .2s,
        display .2s allow-discrete,
        overlay .2s allow-discrete;

}

dialog:open {
    opacity: 1;

}

@starting-style {
    dialog:open {
        opacity: 0;
    }
}

dialog::backdrop {
    background-color: transparent;
    transition:
        display .2s allow-discrete,
        overlay .2s allow-discrete,
        background-color .2s allow-discrete;
}

dialog:open::backdrop {
    background-color: rgba(0, 0, 0, .5);
}

@starting-style {
    dialog:open::backdrop {
        background-color: transparent;
    }
}

.window {
    position: relative;
    width: 100%;
    height: 100%;
}

/* .modalwindow .modalBg {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modalwindow .window {
    position: relative;
    width: fit-content;
    height: fit-content;
    background-color: #f8f8f8;
    border-radius: 20px;
}
 */
.modalwindow button.closeModal {
    position: absolute;
    top: 10px;
    right: 10px;
    transition: .2s;

    &:hover {
        filter: invert(50%);
    }
}

.logoutModal p {
    text-align: center;
    color: #333;
}

.logoutModal .flex {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.logoutModal a {
    display: inline-block;
    width: 200px;
    padding: 10px 30px;
    border-radius: 100px;
    text-align: center;
    transition: .2s;
}

.logoutModal .yes {
    background-color: #333;
    color: #f8f8f8;

    &:hover {
        background-color: #555;
    }
}

.logoutModal .no {
    background-color: #ccc;

    &:hover {
        background-color: #ddd;
    }
}

.baner.innerContent {
    margin-top: -60px;
}

.baner.innerContent a {
    margin: 0 auto;
}

/* .indexMain {
    width: 100%;
    background-image: url(.././imSe/Group4.svg);
    background-repeat: no-repeat;
    background-size: 900px auto;
    background-position: left calc(100% + 100px) top 200px;
} */

.eyecatch {
    font-size: 76px;
    font-weight: 600;
    margin-bottom: var(--section-margin-bottom);
}

.intro {
    margin-bottom: var(--section-margin-bottom);
}

h1 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 10px;
}

p {
    font-size: 16px;
}

.navContainer {
    margin-bottom: var(--section-margin-bottom);
}

nav.sec {
    margin-bottom: var(--section-margin-bottom);
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

footer {
    padding: 30px;
    background-color: light-dark(var(--color-dark), #222);
}

footer nav {
    margin-bottom: 20px;
}

footer ul {
    display: flex;
    gap: 50px;
    justify-content: center;
}

footer a {
    color: var(--color-light);
    transition: .2s;

    &:hover {
        color: var(--hover-color-light);
    }
}

footer div {
    color: var(--color-light);
    text-align: center;

}

footer .cplt {
    margin-bottom: 20px;
}

/* MARK:通信メッセージ */

.conMessage {
    visibility: hidden;
    user-select: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background-color: rgba(220, 220, 220, .8);
    border-radius: 10px;
    opacity: 0;
    transition: .2s;
    z-index: 10;
}

.conMessage.active {
    visibility: visible;
    opacity: 1;
}

/* MARK:記事リスト共通 */

.listContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
    margin-bottom: 5px;
}

.articleLink {
    position: relative;
    padding: 10px;
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-template-rows: 70px;
    gap: 10px;
    border-radius: 15px;
    transition: .2s;


    .text {
        .title {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .description {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            overflow: hidden;
        }
    }

    .icon {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        background-color: var(--color-dark-light);
        border-radius: 8px;
        -webkit-mask-composite: destination-out;
        mask-composite: exclude;
        mask-size: 70%, 100%;
        mask-position: center;
        mask-repeat: no-repeat;
    }

    .icon img {
        width: 80%;
        height: 80%;
    }

    &:hover {
        background-color: light-dark(rgba(187, 187, 187, .5), rgba(100, 100, 100, .5));

        * {
            color: light-dark(#444, #eee);
        }

        .icon {
            background-color: light-dark(#444, #eee);
        }
    }

    * {
        transition: 0.2s;
    }
}


/* MARK:more */
.more {
    width: fit-content;
    margin-left: auto;
}

.more a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background-color: var(--color-dark-light);
    padding: 5px 8px 5px 15px;
    border-radius: 50px;
    transition: .2s;

    &:hover {
        background-color: light-dark(#555, #ccc);

        .text,
        svg {
            transform: translateX(2px);
        }
    }
}

.more a .text {
    font-size: 16px;
    line-height: 16px;
    margin-bottom: 2px;
    color: var(--color-light-dark);
    transition: .2s;
}

.more a svg {
    display: block;
    fill: var(--color-light-dark);
    transition: .2s;
}

/* MARK:bookmark */

.articleLink:hover .bookMark {
    opacity: 1;
}

.articleLink .bookMark {
    opacity: 0;
    position: absolute;
    top: 7px;
    right: 7px;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background-color: light-dark(#333, #666);
}

.bookMark .bmBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.bookMark .bmBtn svg path {
    fill: light-dark(#f8f8f8, #999);
    width: 18px;
    height: 18px;
    transition: .1s;
}

.bmCheck:checked+.bmBtn svg path {
    fill: #0cb;
}

/* MARK:フォーム共通 */
.formSec {
    max-width: 900px;
    /* padding: 0; */
}

.formSec h1 {
    margin-bottom: 20px;
}

.formSec form {
    background-color: light-dark(#ddd, #444);
    padding: 60px 100px 60px;
}

.formContainer {
    margin-bottom: 80px;
}

.submitContainer {
    display: flex;
    justify-content: end;
    align-items: center;
}


.formContainer>label {
    display: grid;
    gap: 10px;
    align-items: end;
    grid-template-columns: auto 1fr;

    &:not(:last-child) {
        margin-bottom: 40px;
    }
}

.formContainer>label .text {
    width: 8em;
    display: inline-block;
    text-indent: 1em;
    font-size: 16px;
    line-height: 16px;
}

.formContainer>label .info {
    height: 13px;
    font-size: 13px;
    line-height: 13px;
}

.formContainer .inputContainer {
    grid-column: 1/3;
}

.formContainer input.userInput {
    display: block;
    padding: 5px 15px;
    background-color: light-dark(#fff, #555);
    border-radius: 10px;
    line-height: 1.5;
    transition: .1s;

    &::placeholder {
        color: light-dark(#ddd, #aaa);
    }

    &:focus {
        background-color: light-dark(#f8f8f8, #666);
        outline: none;
    }
}

.formContainer input.userInput:read-only {
    color: #666;
    background-color: #f8f8f8;
}

input#name {
    display: block;
    width: 100%;
}

input#email {
    display: block;
    width: 100%;
}

input#password {
    display: block;
    width: 100%;
}

.visibleContainer {
    position: absolute;
    top: calc(50% - 12px);
    right: 10px;
    z-index: 6;
}


.viewPassBtn svg {
    display: none;
}

#viewPass:not(:checked)+.viewPassBtn .invisible {
    display: block;
    fill: light-dark(#ccc, #aaa);
}

#viewPass:checked+.viewPassBtn .visible {
    display: block;
    fill: light-dark(#333, #f8f8f8);
}

.btnHoverMsg {
    width: 160px;
    position: absolute;
    top: calc(-100% - 6px);
    /* left: calc(100% - 75px); */
    left: -68px;
    opacity: 0;
    text-align: center;
    background-color: var(--color-light-dark);
    padding: 3px;
    outline: 1px solid light-dark(#ccc, #222);
    user-select: none;
    transition: .3s;
}

.viewPassBtn:hover~.btnHoverMsg {
    opacity: .9;
}

.btnHoverMsg span {
    display: none;
}

#viewPass:not(:checked)~.btnHoverMsg .invisible {
    display: block;
}

#viewPass:checked~.btnHoverMsg .visible {
    display: block;
}

input[type="password"]::-ms-reveal {
    display: none;
}

/* MARK:contactのform */

.contactSec label .text {
    width: 9em;
}

.selectContainer {
    grid-column: 1/3;
    position: relative;
    width: 60%;
    margin-left: 1em;
}

select,
::picker(select) {
    appearance: base-select;
}

select::picker-icon {
    color: light-dark(var(--color-dark), var(--color-light));
}

select::picker(select) {
    /* border: 2px solid #ccc; */
    border: none;
}

.formContainer select {
    width: 100%;
    background-color: light-dark(#fff, #555);
    padding: 5px 15px;
    /* border-radius: 10px; */
    line-height: 1.5;
    transition: .2s;

    &:hover {
        background-color: light-dark(#eee, #4f4f4f);
    }

    &:focus {
        outline: none;
    }
}




.formContainer option {
    padding: 5px;
    background-color: light-dark(#f0f0f0, #333);

    &:hover {
        background-color: light-dark(var(--hover-color-light), var(--hover-color-dark));
    }

}

.formContainer .textareaContainer {
    grid-column: 1/3;
    border-radius: 15px;
    overflow: hidden;
}

.formContainer textarea {
    display: block;
    width: 100%;
    padding: 10px 15px;
    /* border: 2px solid #ccc; */
    background-color: light-dark(#fff, #555);
    resize: none;
    transition: .1s;

    &:focus {
        background-color: light-dark(#f8f8f8, #666);
        outline: none;
    }
}

.submitContainer input[type="submit"] {
    width: fit-content;
    padding: 10px 30px;
    color: var(--color-light-dark);
    background-color: var(--color-dark-light);
    border-radius: 20px;
    transition: .2s;

    &:hover {
        background-color: light-dark(#555, #ccc);
    }
}

.submitContainer .formBackBtn {
    width: fit-content;
    margin-right: 30px;
    padding: 10px 30px;
    color: light-dark(#333, #f8f8f8);
    background-color: light-dark(#f8f8f8, #333);
    border-radius: 20px;
    transition: .2s;

    &:hover {
        background-color: light-dark(#eee, #555);
    }
}

.conf {
    grid-column: 1/3;
    margin-right: 60px;
}

.nameContainer,
.emailContainer,
.passwordContainer,
.submitContainer {
    position: relative;
}

.errorMessage {
    display: none;
    position: absolute;
    text-indent: 1em;
    color: #f44;
}

input.inpEnp~.empMessage {
    display: block;
}

input.inpFC~.FCMessage {
    display: block;
}

input.EaU~.EaUMessage {
    display: block;
}

input.EnCF~.EnCFMessage {
    display: block;
}

input.n2l~.n2lMessage {
    display: block;
}

input.p2s~.p2sMessage {
    display: block;
}

input.varMsg~.variableMessage {
    display: block;
}

.wrongEmailPass {
    position: absolute;
    left: 0;
    color: #f44;
}

/* MARK:step関連 */

.currentStep {
    display: grid;
    grid-template-columns: 50px 1fr 50px 1fr 50px;
    align-items: end;
    width: 300px;
    margin: 0 auto 20px;
}

.currentStep .betweenLine {
    width: 100%;
    height: 2px;
    margin-bottom: 7px;
    background-color: var(--color-inactive);
}

.stepItem.active .stepText {
    color: var(--color-dark-light);
    font-weight: 600;
}

.stepItem.active .stepRadio {
    border-color: var(--color-dark-light);
    position: relative;

    &::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 12px;
        height: 12px;
        background-color: light-dark(#555, #fff);
        border-radius: 50%;
    }
}

.stepText {
    font-size: 14px;
    color: var(--color-inactive);
    text-align: center;
    margin-bottom: 10px;
}

.stepRadio {
    width: 16px;
    height: 16px;
    margin: 0 auto;
    outline: 2px solid var(--color-inactive);
    border-radius: 50%;
}

/* MARK: typing.html用のcss */

section.innerContent {
    margin-bottom: var(--section-margin-bottom);
}

.titleSec.innerContent {
    margin-bottom: 5px;
}

.heroTitle {
    font-weight: 800;
    max-width: 1200px;
    margin: 0 auto;
}

.heroDescription {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: var(--section-margin-bottom);
}

.ranking ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, 1fr);
    grid-auto-flow: column;
    gap: 10px;
    margin-bottom: 10px;
}

.scoreInfo {
    display: grid;
    grid-template-columns: 1fr 5fr 4fr;
    grid-auto-flow: row;

}

.scoreInfo .rank {
    height: 30px;
    line-height: 30px;
    background-color: #eee;
    border-radius: 5px 0 0 5px;
    text-align: center;
}

.scoreInfo .name {
    padding-left: 10px;
    height: 30px;
    line-height: 30px;
    background-color: #eee;
}

.scoreInfo .kps {
    padding-left: 10px;
    height: 30px;
    line-height: 30px;
    background-color: #eee;
}

.scoreInfo .miss {
    padding-left: 10px;
    height: 30px;
    line-height: 30px;
    background-color: #eee;
}

.scoreInfo .score {
    padding-left: 10px;
    height: 30px;
    line-height: 30px;
    background-color: #eee;
    border-radius: 0 5px 5px 0;
}


.articleInfo {
    margin-bottom: 10px;
    display: flex;
    gap: 20px;
    align-items: center;
}


.infoSec .bookMark {
    width: 24px;
    height: 24px;
    background-color: light-dark(#333, #666);
    border-radius: 5px;
}

.articleInfo li {
    width: fit-content;
}

.articleInfo .playCount {
    display: inline-block;
    min-width: 2em;
}

.tagArea {
    width: 100%;
    min-height: 30px;
    display: flex;
    gap: 10px;
}

.articleTag {
    display: inline-block;
    padding: 5px 15px;
    color: light-dark(var(--color-light), var(--color-dark));
    background-color: light-dark(var(--color-dark), var(--color-light));
    border-radius: 50px;
    transition: .2s;

    &:hover {
        transform: translateY(-1px);
        background-color: light-dark(#555, #ccc);
    }
}

.noTag {
    display: inline-block;
    padding: 5px 10px;
    color: light-dark(#aaa, #777);
    background-color: light-dark(#eee, #555);
    border: 1px dashed #ccc;
    border-radius: 50px;
}

table.ranking .rank1 td {
    background-color: rgba(255, 215, 0, .5);
}

table.ranking .rank2 td {
    background-color: rgba(192, 192, 192, .5);
}

table.ranking .rank3 td {
    background-color: rgba(196, 112, 34, .5);
}

.rankingSec .pageList {
    margin-bottom: 20px;
}



/* MARK: comp */

.innerContent.compSec {
    max-width: 900px;
}

.textWrapper {
    background-color: light-dark(#ddd, #555);
    padding: 60px 100px 60px;
}

.compSec p.text {
    margin-bottom: 40px;
}


/* MARK:mypage */
.bookmarkSec.innerContent {
    margin-bottom: 160px;
}

table {
    width: 100%;
    margin-bottom: 10px;
    /* border-collapse: separate;
    border-spacing: 0 10px; */
    /* border: 1px solid #333; */
}

th,
td {
    border-bottom: 2px solid light-dark(#ccc, #555);
    padding: 10px 10px;
    transition: .1s;
}

td.title {
    padding: 0 10px;
}

td a {
    padding: 10px 0;
    display: inline-block;
    width: 100%;
}

table.playHistory tr:hover td {
    background-color: light-dark(#ccc, #444);
}

tr:hover td a {
    color: light-dark(#444, #fff);
}

th {
    border-color: light-dark(#555, #ccc);
}

.playHistorySec .pageList {
    margin-bottom: 20px;
}

/* MARK:info */

.h2bold {
    font-weight: 600;
}

h3 {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 30px;
}

.policyList,
.termsList {
    list-style-type: decimal;
}

.policyList>li,
.termsList>li {
    &::marker {
        font-weight: 600;
    }

    &:not(:last-child) {
        margin: 60px 0;
    }
}

.policyList ul,
.termsList ul {
    list-style-type: none;
}

.policyList ul>li,
.termsList ul>li {
    margin-top: 20px;

    &::before {
        content: "・";
    }
}

section.privacyPolicy {
    margin-bottom: 160px;
}

.contactUs ul {
    margin-top: 40px;
}

.contactUs li {
    height: 30px;
    margin: 20px 0;
}

.contactUs a {
    font-weight: 600;
    transition: .2s;
    border-bottom: 2px solid light-dark(var(--color-dark), var(--color-light));

    &:hover {
        color: light-dark(var(--hover-color-light), var(--hover-color-dark));
        border-color: light-dark(var(--hover-color-light), var(--hover-color-dark));
    }
}

/* MARK:contact */

.contactSec h1 {
    margin-bottom: 60px;
}

/* MARK:search */

h1 {
    margin-bottom: 40px;
}

.resultRange {
    margin-bottom: 10px;
}

.pageList {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 40px 0;
}

.pageList ol {
    display: flex;
    gap: 5px;
}

.pageList .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2em;
    aspect-ratio: 1;
    border-radius: 10px;
}

.pageList span.container span {
    color: #ccc;
}

.pageList .container.curPage {
    background-color: #333;

    .inner {
        color: #f8f8f8;
    }
}

.pageList a.container {
    transition: .2s;

    &:hover {
        background-color: #ddd;
    }
}

/* MARK:ranking */

.rankingSec .scoreInfo {
    grid-template-columns: 1fr 2fr 1fr 1fr 3fr;
    margin-bottom: 10px;
}


.historyBackBtn {
    padding: 5px 15px;
    background-color: var(--color-dark-light);
    border-radius: 50px;
    transition: .2s;

    &:hover {
        background-color: light-dark(#555, #ccc);
    }
}

.historyBackBtn .container {
    display: flex;
    align-items: end;
    transition: .2s;
}

.historyBackBtn:hover .container {
    transform: translateX(-2px);
}

.historyBackBtn svg {
    margin-bottom: 1px;
    fill: #f8f8f8;
    width: 16px;
    height: 16px;
}

.historyBackBtn .text {
    margin-bottom: 2px;
    font-size: 16px;
    line-height: 16px;
    color: var(--color-light-dark);
}

/* MARK:メディアクエリ */

@media screen and (max-width:1000px) {
    .listContainer {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width:950px) {
    .eyecatch {
        font-size: 64px;
    }
}

@media screen and (max-width:850px) {
    .searchWord {
        width: 150px;
    }

    .eyecatch {
        font-size: 56px;
    }

    .formSec form {
        padding-left: 40px;
        padding-right: 40px;
    }

    .textWrapper {
        padding-left: 40px;
        padding-right: 40px;
    }
}