/* 変数 */
:root {
    --theme-color: #1F4663;
    --point-color: #5FC0C7;
}

/* main */
.main-container {
    background-color: #FFF;
    margin: .5em;
    padding-top: .5em;
    border-radius: .5em;
}

/* 強調 */
.point {
    color: var(--point-color);
}
.point:not(:first-child) {
    margin: 8px 0 0 0;
}
.psedo {
    margin-left: 8px;
    padding: 0 4px;
    background-color: var(--point-color);
    color: #FFF;
    border-radius: 8px;
    font-weight: normal;
}
.emphasis {
    color: #FF0;
    font-family: inherit;
}

/* 説明 */
.desc {
    padding: 6px;
    margin: 0;
    line-height: 1.5em;
    color: var(--theme-color);
}
.desc:first-child {
    padding-top: 0;
}
.desc:last-child {
    padding-bottom: 0;
}

/* コード */
div.code-toolbar {
    font: var(--type-code-regular);
}
/* インラインコード */
.inline-code {
    font: var(--type-code-regular);
    color: var(--theme-color);
    background-color: #DDD;
    border-radius: 4px;
    padding: 1px 8px;
    margin: 4px;
}
.inline-code:first-child {
    margin-top: 0;
    margin-left: 0;
}
.inline-code:last-child {
    margin-bottom: 0;
    margin-right: 0;
}

/* 内部テーブル */
.inner_table {
    border-collapse: collapse;
    border-spacing: 0;
    border: solid 1px #ddd;
    margin: 8px;
}
.inner_table td:nth-of-type(1) {
    background-color: var(--point-color);
    border-bottom: solid 1px #ddd;
    padding: .2em 1em;
    color: #FFF;
}
.inner_table td:nth-of-type(2) {
    background-color: #FFF;
    border-bottom: solid 1px #ddd;
    padding: .2em 1em;
}

/* tree */
.tree {
    list-style-type: none;
    padding: 8px;
    margin: 2px 0;
    width: 180px;
    background-color: #DDD;
    border-radius: 12px;
}
.tree ul {
    list-style-type: none;
    margin: 0 0 0 15px;
    padding: 0;
    position: relative;
}
.tree ul li {
    position: relative;
    margin: 0;
    padding: 2px 16px;
}
.tree ul li:before {
    content: "";
    display: block;
    position: absolute;
    top: 18px;
    left: 0;
    width: 13px;
    height: 0;
    border-top: 1px solid #AAA;
}
.tree ul li:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-left: 1px solid #AAA;
}
.tree ul li:last-child:after {
    height: 18px;
}
.tree i {
    margin-right: 8px;
}
.tree_item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.tree_item_circle {
    padding: 4px;
    background-color: var(--point-color);
    color: #FFF;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}
.tree_item_circle.target {
    background-color: #F00;
}
.tree_item_desc {
    white-space: nowrap;
    color: #555;
}
.image_with_desc {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 4px 0;
}
.tree_desc {
    padding: 8px;
    margin: 2px 0 0 20px;
    color: var(--theme-color);
}

/* cssセレクタ解説 */
.content_group {
    margin-top: .5em;
}
.content_header {
    margin-top: 1.5em;
    margin-bottom: .5em;
    font-size: 1em;
    font-weight: bold;
    color:var(--theme-color);
}
.content_header:first-child {
    margin-top: 0;
}
.content_header::before {
    font-family: 'Material Icons';
    content: "\e0f0";
    color:var(--point-color);
    margin-right: 6px;
    position: relative;
    top: 2px;
}
.content_item {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: auto;
    font-size: .9em;
}
.content_item_title {
    background-color: var(--theme-color);
    color: #FFF;
    padding: .5em;
}
.content_item_desc {
    background-color: #EEE;
    color: inherit;
    padding: .5em;
}
.content_item_note {
    line-height: 1.5em;
    background-color: #EEE;
    color: inherit;
    padding: .2em .5em .8em .5em;
    overflow-x: auto;
}

/* タイトルのアイコン */
.main_section_title::before {
    font-size: 1.3em;
    position: relative;
    top: .2em;
    color: var(--theme-color);
}


/* PC用 */
@media screen and (min-width:1025px) {

    .content_specificity > .content_item {
        grid-template-columns: 200px 300px 1fr;
        border-bottom: solid 1px #FFF;
    }
    .content_multiple_selecter > .content_item {
        grid-template-columns: 200px 300px 1fr;
        border-bottom: solid 1px #FFF;
    }
    .content_selecter > .content_item {
        grid-template-columns: 200px 300px 1fr;
        border-bottom: solid 1px #FFF;
    }
    .content_item_note {
        padding: .5em;
    }
    .main-container {
        padding: .5em;
        border-radius: 16px;
    }
}
