/* ========================================
   コードブロック
======================================== */
.codeBlock {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1e1e1e;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* ヘッダー */
.codeHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0.6rem 1rem;

    background-color: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
}

.codeLanguage {
    font-size: 0.8rem;
    font-weight: 600;
    color: #bdbdbd;
    letter-spacing: 0.05em;
}

/* コピー */
.codeCopy {
    padding: 0.3rem 0.7rem;

    border: 1px solid #555;
    border-radius: 4px;

    background-color: transparent;
    color: #ccc;

    font-size: 0.75rem;
    cursor: pointer;

    transition: 0.3s;
}

.codeCopy:hover {
    background-color: #444;
    color: #fff;
}

/* コード本体 */
.codeBlock pre {
    margin: 0;
    padding: 1.2rem 1.4rem;

    overflow-x: auto;

    color: #e6e6e6;
    font-family:
        "Cascadia Code",
        "Consolas",
        "Menlo",
        monospace;

    font-size: 0.9rem;
    line-height: 1.7;
}

.codeBlock code {
    white-space: pre;
}

.codeCopy {
    padding: 0.3rem 0.7rem;

    border: none;
    background: none;

    color: #fff;
    cursor: pointer;

    transition: opacity 0.3s ease;
}

/* ホバー */
.codeCopy:hover {
    opacity: 0.5;
}


/* ========================================
   旧版CSS
======================================== */
@font-face {
    font-family: "ABACUS2";
    src: url("/asset/fonts/ABACUS2.ttf");
}

@font-face {
    font-family: "Verdana Bold Italic";
    src: url("/asset/fonts/verdanaz.ttf");
}

@font-face {
    font-family: "Noto";
    src: url("/asset/fonts/NotoSansJP-Medium.ttf");
}

@font-face {
    font-family: "7seg";
    src: url("/asset/fonts/DSEG7Classic-Italic.ttf");
}

html {
    font-family: "Noto";
}

html {
    font-family: "Noto";
}


.seg7 {
    font-family: '7seg';
}

.ab {
    font-family: "ABACUS2";
}

.question {
    font-family: serif;
}


.left {
    text-align: left;
}

.tableWrapper {
    position: relative;

    width: 100%;
    max-width: 100%;
    margin: 20px 0;

    min-width: 0;
}

.tableScroll {

    width: 100%;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    min-width: 0;

    -webkit-overflow-scrolling: touch;
}

.tableScroll table {
    width: 100%;
    min-width: 0;

    margin: 0;

    border-collapse: collapse;
    border: 3px solid #00bba3;

    text-align: center;

    table-layout: fixed;
}

.tableScroll th {
    color: #fff;
    background-color: #00bba3;

    border-right: 1px solid #00bba3;
    border-bottom: 3px solid #00bba3;

    padding: 8px 10px;

    font-weight: 500;
}

.tableScroll td {
    border: 1px solid #aac2bd;

    padding: 8px 10px;

    word-break: break-word;
}

.tableWrapper::before,
.tableWrapper::after {
    position: absolute;

    top: 0;
    bottom: 0;

    width: 30px;

    content: "";

    pointer-events: none;

    opacity: 0;

    transition: opacity 0.3s ease;

    z-index: 10;
}

.tableWrapper::before {
    left: 0;

    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.18),
            rgba(0, 0, 0, 0));
}

.tableWrapper::after {
    right: 0;

    background: linear-gradient(to left,
            rgba(0, 0, 0, 0.18),
            rgba(0, 0, 0, 0));
}

.tableWrapper.shadow-left::before {
    opacity: 1;
}

.tableWrapper.shadow-right::after {
    opacity: 1;
}

.formulaArea {
    background-color: #f2f2f2;
    border: 3px solid #d3d3d3;
    border-radius: 5px;
    padding: 10px 15px;
    overflow-x: scroll;
}

.center {
    text-align: center;
}

.stripe {
    padding: 20px;
    border-radius: 10px;
    border: 3px solid #b6dddd;
    background: repeating-linear-gradient(-45deg, #ffffff, #ffffff 3px, #fbffff 3px, #fbffff 7px);
}

.title-image {
    text-align: center;
}

.title-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
}

.mark {
    border: 2px solid;
    padding: 0px 10px;
    margin: 0 5px;
}

ul.annotation {
    list-style-type: none;
    width: fit-content;
    margin: 30px auto;
    padding: 0;
}

li.annotation {
    font-size: 80%;
    color: #494949;
    padding: 0 30px;
}

.point {
    position: relative;
    margin: 3rem auto 1rem;
    padding: 1.5rem 1.2rem;
    border: 3px solid #005679;
    border-radius: 0 10px 10px 10px;
    background-color: #f2faff;
    max-width: 500px;
}

.point::before {
    position: absolute;

    top: -30px;
    left: -3px;

    height: 30px;
    padding: 0 1em;

    display: flex;
    align-items: center;

    content: "CHECK";

    color: #fff;
    background-color: #005679;

    font-size: 1.1rem;
    font-weight: 600;

    border-radius: 10px 10px 0 0;
}

/* 箇条書き */
.point ul {
    margin: 0;
    padding-left: 1.5rem;
}

.point li {
    margin: 0.4rem 0;

    line-height: 1.7;
}

b {
    color: #c30b54;
    font-weight: 500;
}


.AffiliateLink a:hover {
    opacity: 0.6;
    transition: all 0.3s;
}



@media (max-width: 600px) {
    .AffiliateBox {
        border: 2px solid #dcdcdc;
        padding: 20px 0;
        border-radius: 10px;
        margin: 0 20px;
    }

    .AffiliateBox-top {
        padding: 10px 30px;
    }

    .goods-image {
        text-align: center;
    }

    .goods-image img {
        width: 35%;
    }

    .goods-caption1 {
        text-align: center;
        font-weight: bold;
        padding: 0 30px;
    }

    .goods-caption2 {
        text-align: center;
        font-size: 80%;
        color: #494949;
    }

    .AffiliateBox-bottom {
        padding: 10px 30px;
    }

    .AffiliateLink {
        text-decoration: none;
        color: white;
    }

    .amazon_button,
    .rakuten_button,
    .yahoo_button {
        border-radius: 5px;
        margin: 10px 40px;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
        padding: 4px 0;
    }

    .amazon_button {
        color: white;
        background-color: #ffb642;
    }

    .rakuten_button {
        color: white;
        background-color: #D10000;
    }

    .yahoo_button {
        color: white;
        background-color: #5360ae;
    }

    .amazon_button :hover,
    .rakuten_button :hover,
    .yahoo_button :hover {
        opacity: 0.6;
        transition: all 0.3s;
    }
}


@media (min-width: 600px) {
    .AffiliateBox {
        border: 2px solid #dcdcdc;
        padding: 20px 0;
        border-radius: 10px;
        margin: 0 20px;
    }

    .AffiliateBox-top {
        padding: 10px 30px;
    }

    .goods-image {
        text-align: center;
    }

    .goods-image img {
        width: 25%;
    }

    .goods-caption1 {
        text-align: center;
        font-weight: bold;
        padding: 0 30px;
    }

    .goods-caption2 {
        text-align: center;
        font-size: 80%;
        color: #494949;
    }

    .AffiliateBox-bottom {
        display: flex;
        padding: 10px 30px;
    }

    .AffiliateLink {
        text-decoration: none;
        color: white;
        flex: 1;
    }

    .AffiliateLink a:hover {
        opacity: 0.6;
        transition: all 0.3s;
    }

    .amazon_button,
    .rakuten_button,
    .yahoo_button {
        flex: 1;
        border-radius: 5px;
        margin: 0 10px;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
        padding: 4px 0;
    }

    .amazon_button:hover,
    .rakuten_button:hover,
    .yahoo_button:hover {
        opacity: 0.6;
        transition: all 0.3s;
    }

    .amazon_button {
        color: white;
        background-color: #ffb642;
    }

    .rakuten_button {
        color: white;
        background-color: #D10000;
    }

    .yahoo_button {
        color: white;
        background-color: #5360ae;
    }
}

.exLink {
    text-decoration: none;
    transition: opacity 0.3s ease;
    color: #658cb4;
}

.exLink:hover {
    opacity: 0.6;
}

.flowBox {
    width: 100%;
    max-width: 700px;
    margin: 40px auto;
}


/* 各ステップ */
.flowStep {
    width: 100%;

    padding: 0;

    border: 2px solid #00bba3;
    border-radius: 10px;

    background-color: #fff;

    overflow: hidden;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}


/* タイトル */
.flowTitle {
    padding: 0.8rem 1.2rem;

    color: #fff;
    background-color: #00bba3;

    font-size: 1.1rem;
    font-weight: 600;

    text-align: center;
}


/* 問題一覧 */
.flowItems {
    padding: 0.7rem 1rem;
}


/* 問題1つ */
.flowItem {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    padding: 0.6rem 0.5rem;

    border-bottom: 1px solid #dce8e5;
}

.flowItem:last-child {
    border-bottom: none;
}


/* 点数 */
.flowPoint {
    flex-shrink: 0;

    min-width: 45px;

    padding: 0.2rem 0.5rem;

    border-radius: 5px;

    background-color: #e8f8f5;

    color: #008f7c;

    font-size: 0.85rem;
    font-weight: 600;

    text-align: center;
}


/* 矢印 */
.flowArrow {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 45px;

    color: #00bba3;

    font-size: 1.2rem;
}