/* レイアウト用CSS */

header,
article,
.sans-serif {
    font-family: sans-serif;
}

header h1 {
    word-break: keep-all;
}

img {
    max-width: 100%;
}

span.ind1 {
    padding-left: 0em;
    display: block;
}

span.ind2 {
    padding-left: 3em;
    display: block;
    line-height: 1.8;
}

.code {
    padding: 1em;
    border: 2px solid lightgray;
    margin: 1em 0;
    display: inline-block;
    width: 100%;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    line-height: 1.8;
    margin-bottom: 1em;
}

li {
    padding-left: 3em;
    text-indent: -2.4em;
    margin-bottom: 1em;
    border-bottom: 2px solid lightgray;
    padding-bottom: 1.2em;
}

li * {
    text-indent: unset;
}

span.vertical_middle {
    vertical-align: middle;
    padding: 0 10px;
    display: inline-block;
    width: 102px;
    text-indent: 0em;
}

span.vertical_middle img {
    width: 100%;
    height: auto;
}

li.code-img {
    width: 50%;
    min-width: 450px;
    /* padding: 1em; */
    /* border: 1px dashed #222; */
    /* margin: 1em 0; */
    float: left;
    max-width: 90%;
    border-bottom: 0;
}

li.flex-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    clear: both;
    text-indent: 0;
    padding-left: 0;
    border-top: 2px solid lightgray;
    padding-top: 1em;
}

span.box {
    border: 1px solid #ff4e4e;
    padding: 0 5px;
    display: inline-block;
    margin: 5px;
}

.attention {
    line-height: 1.5;
    font-size: 0.8em;
    color: #f00;
    font-weight: bold;
    /* background: #ff0; */
    padding: 1em;
}

section {
    border: 4px solid indigo;
    padding: 1em;
    margin: 0 0 2em;
    border-radius: 15px;
}

section.jp {
    margin-top: 2em;
}

* {
    box-sizing: border-box;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3em;
    justify-content: center;
}

.container {
    width: min(1024px, 96%);
    margin: 0 auto;
    padding: 2em 3em;
    background: hsl(0deg 0% 100% / 86%);
    box-shadow: 0 0 2px rgb(128 128 128 / 50%);
}

@media screen and (max-width:768px) {
    .container {
        padding: 1em;
    }
}

.figure {
    max-width: 480px;
    margin: 0 auto;
}

header h1 {
    margin: 0;
}

header p {
    margin: 0.5em 0 2em;
    text-align: justify;
}

@media screen and (max-width: 768px) {
    header h1,
    header p {
        text-align: center;
    }
    header p {
        margin: 0.5em 0 2em;
        text-align: justify;
    }
    .cards {
        gap: 1em;
    }
}

.figure img {
    width: 480px;
    height: auto;
}

span.embed-code {
    width: 304px;
    height: auto;
}

li#STEP04 {
    overflow: unset;
}

.symbols-fill {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    color: #1a73e8;
}

span.number {
    position: relative;
    text-indent: -1.8em;
}

span.number::after {
    content: "";
    background: #1a73e8;
    color: #fff;
    width: 18px;
    height: 18px;
    background: url(../image/num-badge.svg) center/contain;
    position: absolute;
    right: 0;
    top: -8px;
}

.cnt {
    vertical-align: top;
    margin: 0 0.1em;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    color: #ec6464;
    text-indent: 0;
}

li.fl-r {
    float: right;
    width: 48%;
    border-bottom: 0;
    font-size: 0.9em;
    text-indent: 0;
    padding-left: 0;
    display: unset;
}

li.fl-r {
    position: relative;
    overflow: initial;
    margin-bottom: 1.5em;
    background: #f3faff;
    border-radius: 4px;
    padding-left: 1em;
    padding-right: 1em;
}

li.fl-r::after {
    content: "";
    width: 35px;
    height: 25px;
    background: #f3faff;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 70%);
    clip-path: polygon(0 0, 100% 0, 50% 100%, 0 0);
    z-index: 1;
}

li.code-img.sp {
    display: none;
}

.text-sp {
    display: none;
}

@media screen and (max-width: 868px) {
    .text-pc {
        display: none;
    }
    .text-sp {
        display: inline;
    }
    li.code-img {
        width: 90%;
        max-width: unset;
        margin: 0 auto;
        float: none;
        min-width: unset;
    }
    li.fl-r {
        float: none;
        width: 92%;
        margin-left: auto;
        margin-right: auto;
        display: block;
        padding-left: 1em;
        padding-right: 1em;
    }
    li#STEP05-1 {
        margin-top: 0 !important;
    }
    li.code-img.pc {
        display: none;
    }
    li.code-img.sp {
        display: block;
        border-bottom: none;
        padding-left: 0;
        text-indent: 0;
    }
    li.code-img img {
        width: 100%;
    }
}

.step::before {
    background: url(../image/step01.svg) no-repeat left center/contain;
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    vertical-align: text-bottom;
    margin-right: 0.5em;
}

#STEP01::before {
    background-image: url(../image/step01.svg);
}

#STEP02::before {
    background-image: url(../image/step02.svg);
}

#STEP03::before {
    background-image: url(../image/step03.svg);
}

#STEP04::before {
    background-image: url(../image/step04.svg);
}

#STEP05::before {
    background-image: url(../image/step05.svg);
}

#STEP06::before {
    display: none;
}

div.step06-intro::before {
    content: "";
    display: inline-block;
    width: 85px;
    height: 85px;
    background: url(../image/step06.svg) no-repeat center/contain;
    margin-right: 0.5em;
    min-width: 85px;
}

.step06-intro {
    display: flex;
    align-items: center;
}

.sb {
    vertical-align: sub;
    padding-right: 0.1em;
    text-indent: 0;
}

body::after {
    content: "";
    display: block;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
    background-color: #ffffff;
    background-image: linear-gradient(30deg, #d8d8d8 12%, transparent 12.5%, transparent 87%, #d8d8d8 87.5%, #d8d8d8), linear-gradient(150deg, #d8d8d8 12%, transparent 12.5%, transparent 87%, #d8d8d8 87.5%, #d8d8d8), linear-gradient(30deg, #d8d8d8 12%, transparent 12.5%, transparent 87%, #d8d8d8 87.5%, #d8d8d8), linear-gradient(150deg, #d8d8d8 12%, transparent 12.5%, transparent 87%, #d8d8d8 87.5%, #d8d8d8), linear-gradient(60deg, #d8d8d877 25%, transparent 25.5%, transparent 75%, #d8d8d877 75%, #d8d8d877), linear-gradient(60deg, #d8d8d877 25%, transparent 25.5%, transparent 75%, #d8d8d877 75%, #d8d8d877);
    background-size: 68px 119px;
    background-position: 0 0, 0 0, 34px 60px, 34px 60px, 0 0, 34px 60px;
}

li#STEP05-1 {
    margin-top: 4em;
}

li#STEP05 {
    border-bottom: 0;
}


/* ここから修正 */

body::before {
    content: "";
    height: 100vh;
    width: 100vw;
    display: block;
    position: fixed;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
    top: 0;
    left: 0;
}

.step::before {
    float: left;
    width: 85px;
    height: 85px;
    min-width: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}

li {
    padding-left: 0;
    text-indent: 0 !important;
    margin: 0;
    /* clear: both; */
    overflow: hidden;
    padding-top: 1em;
    padding-bottom: 1em;
    display: table-cell;
    vertical-align: middle;
    display: flex;
    align-items: center;
}

body {
    margin: 0;
}

@media(max-width:500px) {
    span.embed-code {
        width: 100%;
        height: 48px;
    }
}

#html-head p {
    margin: 0;
}

.lh-1 {
    line-height: 1;
}

.lh-1:nth-of-type(3) {
    margin-bottom: 1em !important;
}

#html-head textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: sans-serif;
    height: 6em;
}

.ind-2em {
    padding-left: 2em;
}

div#html-head {
    border-radius: 8px;
    background: #f3faff;
    padding: 1em;
    margin-bottom: 2em;
}

h2.pract-title {
    margin: 0 0 0.5em;
    font-size: 1.2em;
}

.mt-1em {
    margin-top: 1em !important;
}

@media screen and (max-width:600px) {
    #html-head textarea {
        width: 100%;
        box-sizing: border-box;
        font-family: sans-serif;
        height: 10em;
        font-size: 1em;
    }
    .ind-2em {
        padding-left: 0.5em;
    }
    div#html-head {
        padding: 1em;
        font-family: sans-serif;
        font-size: 0.9rem;
    }
}

#css-code {
    font-family: sans-serif;
    padding: 1em;
    font-size: 0.9em;
    padding: 1em;
    background: #f3faff;
    border-radius: 8px;
    margin-bottom: 2em;
}

#css-code textarea {
    font-family: sans-serif;
    width: 100%;
    font-size: 1em;
    height: 4em;
}

#css-code p {
    margin: 0;
}

#css-code p:first-of-type {
    margin-bottom: 0.5em;
}

.summary.simulator {
    cursor: pointer;
    padding: 1em 0;
    /* margin-bottom: 1em; */
    padding-left: 1em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-family: sans-serif;
}

.summary {
    background: gray;
    color: #fff;
}

.ctrl {
    display: none;
    background: #c3c3c3;
    padding: 1em;
    padding-top: 2em
}