/* ---------------------------------------------
*   Custom Properties
--------------------------------------------- */
:root {
    --design-width: 1366;
    --contents-width: 1200;
    --contents-side-padding: 20;
    --fixed-header-height: 70;
    --root-fz: 16;
    --line-height: 1.5;
    --hover-opacity-ratio: 0.7;
    --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-black-2: #111;
    --color-black-2-rgb: 17, 17, 17;
    --color-black-3: #333;
    --color-black-3-rgb: 51, 51, 51;
    --color-black-4: #1A1A1A;
    --color-black-4-rgb: 26, 26, 26;
    --color-white-1: #FFF;
    --color-white-1-rgb: 255, 255, 255;
    --color-white-2: #F2F2F2;
    --color-white-2-rgb: 242, 242, 242;
    --color-gray-1: #CECECE;
    --color-gray-1-rgb: 206, 206, 206;
    --color-gray-2: #848484;
    --color-gray-2-rgb: 132, 132, 132;
    --color-gray-3: #CCC;
    --color-gray-3-rgb: 204, 204, 204;
    --color-gray-4: #666;
    --color-gray-4-rgb: 102, 102, 102;
    --color-gray-5: #D3D3D3;
    --color-gray-5-rgb: 211, 211, 211;
    --color-orange-1: #EB5505;
    --color-orange-1-rgb: 235, 85, 5;
    --ff-root: "Noto Sans JP", sans-serif;
    --ff-shippori: "Shippori Mincho", serif;
    --ff-noto: "Noto Sans JP", sans-serif;
    --ff-lato: "Lato", sans-serif;
}
@media screen and (max-width: 750px) {
    :root {
        --design-width: 750;
        --contents-width: 670;
        --contents-side-padding: 40;
        --minwidth: 320;
        --fixed-header-height: 45;
        --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);
    }
}

html.is-noscroll {
    min-height: 100%;
    min-height: 100dvh;
}

body {
    min-width: calc(var(--minwidth) * 1px);
    line-height: var(--line-height);
}
body:not(.is-loaded) {
    overflow: hidden;
}
body.is-visited {
    overflow: visible;
}
.is-noscroll body {
    position: fixed;
    width: 100%;
    height: 100%;
    height: 100dvh;
    box-sizing: border-box;
}

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