/* ---------------------------------------------
*   Custom Properties
--------------------------------------------- */
:root {
    --design-width: 1440;
    --contents-width-outer: 1224;
    --contents-width: 1024;
    --contents-width-narrow: 1000;
    --contents-side-padding: 10;
    --minwidth: calc(var(--contents-width) + var(--contents-side-padding) * 2);
    --fixed-header-height: 75;
    --fixed-header-height-total: 150;
    --root-fz: 16;
    --line-height: 1.5;
    --border-radius: 15px;
    --hover-opacity-ratio: 0.8;
    --hover-duration: .3s;
    --color-base-1: #1E1E1E;
    --color-base-1-rgb: 30, 30, 30;
    --color-black-1: #000;
    --color-black-1-rgb: 0, 0, 0;
    --color-black-2: #170B0C;
    --color-black-2-rgb: 23, 11, 12;
    --color-white-1: #fff;
    --color-white-1-rgb: 255, 255, 255;
    --color-gray-1: #585857;
    --color-gray-1-rgb: 88, 88, 87;
    --color-gray-2: #8F8F8F;
    --color-gray-2-rgb: 143, 143, 143;
    --color-gray-3: #585757;
    --color-gray-3-rgb: 88, 87, 87;
    --color-beige-1: #FFF5DE;
    --color-beige-1-rgb: 255, 245, 222;
    --color-yellow-1: #FFE900;
    --color-yellow-1-rgb: 255, 233, 0;
    --color-yellow-2: #FAF5BA;
    --color-yellow-2-rgb: 250, 245, 186;
    --color-blue-1: #0068B6;
    --color-blue-1-rgb: 0, 104, 182;
    --color-blue-2: #00B3EA;
    --color-blue-2-rgb: 0, 179, 234;
    --color-blue-3: #C7E8FA;
    --color-blue-3-rgb: 199, 232, 250;
    --color-blue-4: #2F3266;
    --color-blue-4-rgb: 47, 50, 102;
    --color-blue-5: #E5F0F8;
    --color-blue-5-rgb: 229, 240, 248;
    --color-pink-1: #E52D8A;
    --color-pink-1-rgb: 229, 45, 138;
    --color-pink-2: #B9506D;
    --color-pink-2-rgb: 185, 80, 109;
    --color-green-1: #0D7B3E;
    --color-green-1-rgb: 13, 123, 62;
    --ff-root: "Noto Sans JP", sans-serif;
    --ff-hiragino: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "meiryo", sans-serif;
}
@media screen and (max-width: 750px) {
    :root {
        --design-width: 750;
        --contents-width: 680;
        --contents-side-padding: 35;
        --minwidth: 320;
        --fixed-header-height: 100;
        --fixed-header-height-total: 197;
        --root-fz: 32;
        --line-height: 1.5;
        --border-radius: 20;
    }
}

/* ---------------------------------------------
*   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 {
    min-width: 1180px;
    line-height: var(--line-height);
}
@media screen and (max-width: 750px) {
    body {
        min-width: calc(var(--minwidth) * 1px);
    }
    body.is-noscroll {
        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;
}
@media screen and (max-width: 750px) {
    img {
        width: 100%;
    }
}

/* ---------------------------------------------
*   <hr> tag as anchor target
--------------------------------------------- */
hr[id^=anchor-] {
    display: block;
    width: auto;
    height: 0;
    padding: calc(var(--fixed-header-height-total) * 1px) 0 0 0;
    border: 0;
    margin: calc(var(--fixed-header-height-total) * -1px) 0 0 0;
    background: 0;
    pointer-events: none;
}
@media screen and (max-width: 750px) {
    hr[id^=anchor-] {
        padding-top: calc(calc(var(--fixed-header-height-total) * 1) / var(--design-width) * 100vw);
        margin-top: calc(calc(var(--fixed-header-height-total) * -1) / var(--design-width) * 100vw);
    }
}


