* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: #f5f5f3;
    color: #333;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Noto Sans JP",
        "Yu Gothic",
        sans-serif;
    font-size: 17px;
    line-height: 1.9;
}

body > a {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 18px 20px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

article {
    width: calc(100% - 30px);
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 45px 55px;
    background: #fff;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.06);
}

h1 {
    margin: 0 0 30px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.45;
    color: #222;
}

h2 {
    position: relative;
    margin: 60px 0 25px;
    padding: 12px 0 12px 18px;
    font-size: clamp(21px, 3vw, 28px);
    line-height: 1.5;
    color: #222;
    border-left: 5px solid #3498db;
    border-bottom: 1px solid #ddd;
}

p {
    margin: 0 0 22px;
}

/* メイン画像 */
.image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    margin: 0 auto 30px;
    border-radius: 8px;
}

/* 記事中の画像 */
.images {
    display: block;
    width: 45%;
    max-width: 45%;
    height: auto;
    object-fit: cover;

    float: left;

    margin: 0 25px 15px 0;

    border-radius: 8px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.clear {
    clear: both;
}

img {
    max-width: 100%;
}

article a {
    color: #315f8a;
    font-weight: bold;
    text-decoration: none;
}

article a:hover {
    text-decoration: underline;
}

/* YouTubeリンク */
article > a:last-child {
    display: block;
    width: 100%;
    padding: 18px 22px;
    margin-top: 25px;
    background: #f1f1f1;
    border-left: 5px solid #333;
    border-radius: 6px;
    line-height: 1.7;
}


/* スマホ */
@media (max-width: 700px) {

    body {
        font-size: 16px;
    }

    article {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 25px 18px;
        box-shadow: none;
    }

    h1 {
        font-size: 27px;
    }

    h2 {
        font-size: 22px;
        margin-top: 45px;
    }

    .image {
        width: 100%;
        max-width: 100%;
    }

    .images {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px;
    }
}