/* ---------------------------------------------
*   Custom Properties
--------------------------------------------- */
:root {
    --design-width: 375;
    --contents-width: 375;
    --contents-side-padding: 10;
    --minwidth: 320;
    --root-fz: 32;
    --line-height: 1.5;
    --hover-opacity-ratio: 0.8;
    --hover-duration: .3s;
    --color-base-1: #000;
    --color-base-1-rgb: 0, 0, 0;
    --color-white-1: #fff;
    --color-white-1-rgb: 255, 255, 255;
    --color-black-1: #000;
    --color-black-1-rgb: 0, 0, 0;
    --color-black-2: #382B20;
    --color-black-2-rgb: 56, 43, 32;
    --color-yellow-1: #FFC74E;
    --color-yellow-1-rgb: 255, 199, 78;
    --ff-root: "Noto Sans JP", sans-serif;
    --ff-ZenKakuGothicNew: "Zen Kaku Gothic New", sans-serif;
    --ff-lato: "Lato",serif;
}
@media print, screen and (min-width: 751px) {
    :root {
        --contents-width-pc: 430;
        --root-fz: 16;
    }
}

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

::-moz-selection {
    background-color: var(--color-yellow-1);
    color: var(--color-white-1);
}

::selection {
    background-color: var(--color-yellow-1);
    color: var(--color-white-1);
}

/* ---------------------------------------------
*   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: calc(var(--minwidth) * 1px);
    line-height: var(--line-height);
}

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