@charset "UTF-8";

/* 共通
------------------------------- */
html {
    font-size: 100%;
}
body {
    font-family: sans-serif;
    line-height: 1.7;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
}

/* エリア
------------------------------- */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2%;
    padding-right: 2%;
}
article {
    width: 77%;
    margin-bottom: 5rem;
}
aside {
    width: 20%;
}

/* タイトル
------------------------------- */
.page-title {
    font-size: 1.5rem;
    font-family: sans-serif;
    font-weight: normal;
    background: #0bd;
    color: #fff;
    text-align: center;
    padding: 0.8rem 0;
    margin-bottom: 2rem;
}
.sub-title {
    font-size: 1rem;
    padding: 0 0.5rem 0.5rem;
    border-bottom: 2px #0bd solid;
    font-weight: normal;
}

/* ヘッダー
------------------------------- */
.page-header {
    display: flex;
    justify-content: space-between;
}
.logo {
    width: 210px;
    margin-top: 14px;
}
.main-nav {
    display: flex;
    font-size: 1rem;
    margin-top: 2rem;
    list-style: none;
}
.main-nav li {
    margin-left: 2rem;
}
.main-nav a {
    color: black;
}
.main-nav a:hover {
    color: #0bd;
}

/* フッター
------------------------------- */
footer {
    background: #0bd;
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
footer a {
    color: #fff;
    font-size: 0.8rem;
}
footer a:hover {
    color: #000;
}
footer p {
    color: #fff;
    font-size: 0.8rem;
}

/* 記事
------------------------------- */
.memo-contents {
    display: flex;
    justify-content: space-between;
}
.bc01 {
    background: #ddd;
}
.mk01 {
    background: linear-gradient(transparent 0%, yellow 0%);
}
.main-item {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px #0bd solid;
}
.sub-item {
    font-size: 1.2rem;
    margin: 1rem 0;
}
.item {
    margin-left: 0.5rem;
}
.notes {
    margin-left: 0.5rem;
}
.fc01 {
    color: red;
}
.fc02 {
    color: yellow;
}
.command {
    font-size: 0.9rem;
    background: #555;
    color: #ddd;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    width: auto;
    height: auto;
    overflow: auto;
}
.para-sample {
    font-size: 0.9rem;
    background: #555;
    color: #ddd;
    padding: 0.5rem 1rem;
    width: auto;
    height: auto;
    overflow: auto;
}

/* 図や表のタイトル
------------------------------- */
.center {
    text-align: center;
    font-weight: bold;
}

/* 番号ありリスト
------------------------------- */
.number {
    list-style-type: decimal;
    margin-left: 1.5rem;
}

/* 番号なしリスト
------------------------------- */
.none-number-5 {
    list-style: none;
    margin-left: 0.5rem;
}
.none-number-10 {
    list-style: none;
    margin-left: 1.0rem;
}
.none-number-15 {
    list-style: none;
    margin-left: 1.5rem;
}
.disc {
    list-style: disc;
    margin-left: 1.0rem;
}

/* 表
------------------------------- */
article table, th, td {
    border: 2px #ddd solid;
    text-align: center;
}
article th {
    width: 25rem;
    padding: 0.5rem 0;
}
article td {
    width: 25rem;
}

/* 表（小）
------------------------------- */
.table-s {
    border: 2px #ddd solid;
    text-align: center;
    font-size: 0.9rem;
}

/* 比較
------------------------------- */
.compare {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, 1fr);
}

/* アフェリエイト
------------------------------- */
.affiliate {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    text-align: center;
}

/* サイドバー
------------------------------- */
.sub-menu {
    margin-bottom: 2rem;
    list-style: none;
}
.sub-menu li {
    border-bottom: 1px #ddd solid;
}
.sub-menu a {
    font-size: 0.9rem;
    color: black;
    padding: 0.5rem;
    display: block;
}
.sub-menu a:hover {
    color: #0bd;
}
aside p {
    padding: 12px 10px;
}

/* モバイル画面
------------------------------- */
@media (max-width: 1150px) {

    /* タイトル */
    .page-title {
        font-size: 1.3rem;
        margin: 1.5rem 0 2.5rem 0;
    }

    /* ヘッダー */
    .page-header {
        flex-direction: column;
        align-items: center;
    }
    .main-nav {
        font-size: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
    }
    .main-nav li {
        margin: 0.1rem;
    }

    /* 記事 */
    .memo-contents {
        flex-direction: column;
    }

    /* エリア */
    article,
    aside {
        width: 100%;
    }
}
