/* ---------------------------------------------
*   Custom Properties
--------------------------------------------- */
:root {
    --design-width: 1366;
    --contents-width: 1260;
    --contents-side-padding: 20;
    --minwidth: calc(var(--contents-width) + var(--contents-side-padding) * 2);
    --fixed-header-height: 80;
    --root-fz: 16;
    --line-height: 1.5;
    --hover-opacity-ratio: 0.8;
    --hover-duration: .3s;
    --color-base-1: #606060;
    --color-base-1-rgb: 96, 96, 96;
    --color-black-1: #000;
    --color-black-1-rgb: 0, 0, 0;
    --color-white-1: #fff;
    --color-white-1-rgb: 255, 255, 255;
    --color-beige-1: #EEE9E3;
    --color-beige-1-rgb: 238, 233, 227;
    --color-red-1: #E05452;
    --color-red-1-rgb: 224, 84, 82;
    --ff-root: "Noto Sans JP", sans-serif;
}
@media screen and (max-width: 960px) {
    :root {
        --design-width: 390;
        --contents-width: 318;
        --contents-side-padding: 36;
        --minwidth: 320;
        --fixed-header-height: 60;
        --root-fz: 16;
        --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: 960px) {
    html,
    body {
        font-size: calc(var(--root-fz) / var(--design-width) * 100vw);
    }
}

html.is-noscroll {
    height: 100dvh;
    overflow-y: scroll;
    overscroll-behavior-y: contain;
}

body {
    line-height: var(--line-height);
}
@media screen and (max-width: 960px) {
    body {
        min-width: calc(var(--minwidth) * 1px);
    }
}
.is-noscroll body {
    height: 100dvh;
    overflow: hidden;
}

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