/* ---------------------------------------------
*   Custom Properties
--------------------------------------------- */
:root {
    --design-width: 1920;
    --contents-width: 1200;
    --contents-side-padding: 10;
    --minwidth: calc(var(--contents-width) + var(--contents-side-padding) * 2);
    --fixed-header-height: 80;
    --root-fz: 16;
    --line-height: 1.8;
    --hover-opacity-ratio: 0.7;
    --hover-duration: .4s;
    --color-base-1: #333333;
    --color-base-1-rgb: 51, 51, 51;
    --color-main-1: #FAF9F6;
    --color-main-1-rgb: 250, 249, 246;
    --color-accent-1: #7F0019;
    --color-accent-1-rgb: 127, 0, 25;
    --color-gray-1: #E6E6E6;
    --color-gray-1-rgb: 230, 230, 230;
    --color-gray-2: #CCCCCC;
    --color-gray-2-rgb: 204, 204, 204;
    --color-gray-3: #999999;
    --color-gray-3-rgb: 153, 153, 153;
    --ff-root: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    --ff-serif: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
    --ff-sans: "Noto Sans JP", sans-serif;
}
@media screen and (max-width: 750px) {
    :root {
        --design-width: 750;
        --contents-width: 730;
        --contents-side-padding: 10;
        --minwidth: 320;
        --fixed-header-height: 60;
        --root-fz: 32;
        --line-height: 1.8;
    }
}

/* ---------------------------------------------
*   Universal selector
--------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ---------------------------------------------
*   html, body
--------------------------------------------- */
html,
body {
    color: var(--color-base-1);
    background-color: var(--color-main-1);
    font-size: calc(var(--root-fz) * 1px);
    font-family: var(--ff-root);
    letter-spacing: 0.05em;
    -webkit-text-size-adjust: 100%;
}
@media screen and (max-width: 750px) {
    html,
    body {
        font-size: calc(var(--root-fz) / var(--design-width) * 100vw);
    }
}

body {
    line-height: var(--line-height);
    letter-spacing: 0.08em;
}

/* ---------------------------------------------
*   <a> tag
--------------------------------------------- */
a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* ---------------------------------------------
*   <img> tag
--------------------------------------------- */
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* ---------------------------------------------
*   <hr> tag as anchor target
--------------------------------------------- */
hr[id^=anchor-] {
    display: block;
    width: auto;
    height: 0;
    padding: calc(var(--fixed-header-height) * 1px) 0 0 0;
    border: 0;
    margin: calc(var(--fixed-header-height) * -1px) 0 0 0;
    background: 0;
    pointer-events: none;
}