/* ---------------------------------------------
*   Custom Properties
--------------------------------------------- */
:root {
    --design-width: 1200;
    --contents-width: 1072;
    --contents-side-padding: 64;
    --minwidth: calc(var(--contents-width) + var(--contents-side-padding) * 2);
    --fixed-header-height: 110;
    --root-fz: 16;
    --line-height: 1.5;
    --hover-opacity-ratio: 0.8;
    --hover-opacity-ratio-2: 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-white-1: #fff;
    --color-white-1-rgb: 255, 255, 255;
    --color-white-2: #fefefe;
    --color-white-2-rgb: 254, 254, 254;
    --color-gray-1: #7d7d7d;
    --color-gray-1-rgb: 125, 125, 125;
    --color-gray-2: #d9d9d9;
    --color-gray-2-rgb: 217, 217, 217;
    --color-gray-3: #cccbcb;
    --color-gray-3-rgb: 204, 203, 203;
    --color-gray-4: #999999;
    --color-gray-4-rgb: 153, 153, 153;
    --color-blue-1: #007aff;
    --color-blue-1-rgb: 0, 122, 255;
    --color-blue-2: #0055ff;
    --color-blue-2-rgb: 0, 85, 255;
    --color-blue-3: #050cb8;
    --color-blue-3-rgb: 5, 12, 184;
    --color-blue-4: #459EFF;
    --color-blue-4-rgb: 69, 158, 255;
    --color-pink-1: #fef7ff;
    --color-pink-1-rgb: 254, 247, 255;
    --ff-root: -apple-system, BlinkMacSystemFont, "Helvetica Neue","Segoe UI",sans-serif;
    --ff-Kanit: "Kanit", sans-serif;
    --ff-roboto: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
}
@media screen and (max-width: 750px) {
    :root {
        --design-width: 375;
        --contents-width: 335;
        --contents-side-padding: 20;
        --minwidth: 320;
        --fixed-header-height: 74;
        --root-fz: 16;
        --line-height: 1.5;
    }
}

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

/* ---------------------------------------------
*   html, body
--------------------------------------------- */
html,
body {
    color: var(--color-white-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: 1060px) {
    body.js-menu-opened {
        overflow: hidden;
    }
}
@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;
}
@media screen and (max-width: 1060px) {
    hr[id^=anchor-] {
        padding-top: 74px;
        margin-top: -73px;
    }
}