/* ==========================================================================
   リセット
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    line-height: 1.5;
    color: var(--color-navy);
    background-color: var(--color-white);
    font-family: var(--font-mincho);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==========================================================================
   投稿本文
   ========================================================================== */
.p-page {
    width: min(calc(100% - 160px), 1000px);
    margin-inline: auto;
    padding-block: 80px 120px;
}

.c-entry-content {
    font-size: 16px;
    line-height: 2;

    > * + * {
        margin-top: 1.5em;
    }

    h2 {
        font-family: var(--font-mincho);
        font-weight: 700;
        font-size: 28px;
        line-height: 1.5;
        margin-top: 2em;
    }

    h3 {
        font-family: var(--font-mincho);
        font-weight: 700;
        font-size: 22px;
        line-height: 1.5;
        margin-top: 1.75em;
    }

    ul, ol {
        padding-left: 1.5em;
    }

    ul {
        list-style: disc;
    }

    ol {
        list-style: decimal;
    }

    a:not([class]) {
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    img {
        height: auto;
    }
}

/* ==========================================================================
   ユーティリティ
   ========================================================================== */
.u-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width:1024px) {
    .p-page {
        width: calc(100% - 80px);
    }
}

@media (max-width:767px) {
    .p-page {
        width: calc(100% - 40px);
        padding-block: 48px 80px;
    }

    .c-entry-content {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
}
