/* ---------------------------------------------
*   Custom Properties
--------------------------------------------- */
:root {
    --design-width: 1440;
    --contents-width: 1100;
    --contents-side-padding: 20;
    --minwidth: calc(var(--contents-width) + var(--contents-side-padding) * 2);
    --fixed-header-height: 100;
    --root-fz: 16;
    --line-height: 1.5;
    --hover-opacity-ratio: 0.8;
    --hover-duration: .3s;
    --color-base-1: #000;
    --color-base-1-rgb: 0, 0, 0;
    --color-black-1: #000;
    --color-black-1-rgb: 0, 0, 0;
    --color-white-1: #fff;
    --color-white-1-rgb: 255, 255, 255;
    --color-gray-1: #393939;
    --color-gray-1-rgb: 57, 57, 57;
    --color-gray-2: #818181;
    --color-gray-2-rgb: 129, 129, 129;
    --color-gray-3: #6F6E6E;
    --color-gray-3-rgb: 111, 110, 110;
    --color-gray-4: #F4F4F4;
    --color-gray-4-rgb: 244, 244, 244;
    --color-gray-5: #707070;
    --color-gray-5-rgb: 112, 112, 112;
    --color-gray-6: #E0E0E0;
    --color-gray-6-rgb: 224, 224, 224;
    --color-gray-7: #4A4A4A;
    --color-gray-7-rgb: 74, 74, 74;
    --color-yellow-1: #FCCF00;
    --color-yellow-1-rgb: 252, 207, 0;
    --color-red-1: #FF0000;
    --color-red-1-rgb: 255, 0, 0;
    --color-red-2: #FC5700;
    --color-red-2-rgb: 252, 87, 0;
    --color-red-3: #FDD8D8;
    --color-red-3-rgb: 253, 216, 216;
    --color-red-4: #FF7F7F;
    --color-red-4-rgb: 255, 127, 127;
    --color-blue-1: #417AD5;
    --color-blue-1-rgb: 65, 122, 213;
    --ff-root: "Noto Sans Display", sans-serif;
    --font-variation-ex-condensed: "wdth" 62.5;
    --font-variation-condensed: "wdth" 75;
    --font-variation-semi-condensed: "wdth" 87.5;
}
@media screen and (max-width: 750px) {
    :root {
        --design-width: 750;
        --contents-width: 650;
        --contents-side-padding: 50;
        --minwidth: 320;
        --fixed-header-height: 120;
        --root-fz: 32;
        --line-height: 1.5;
    }
}

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

/* ---------------------------------------------
*   html, body
--------------------------------------------- */
html,
body {
    color: var(--color-base-1);
    font-size: calc(var(--root-fz) * 1px);
    font-family: var(--ff-root);
    -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);
}
@media screen and (max-width: 750px) {
    body {
        min-width: calc(var(--minwidth) * 1px);
    }
}

/* ---------------------------------------------
*   <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;
}