/* ---------------------------------------------
*   Custom Properties
--------------------------------------------- */
:root {
    --design-width: 375;
    --contents-width: 375;
    --contents-side-padding: 10;
    --minwidth: 320;
    --root-fz: 16;
    --line-height: 1.5;
    --hover-opacity-ratio: 0.8;
    --hover-duration: .3s;
    --color-base-1: #fff;
    --color-base-1-rgb: 255, 255, 255;
    --color-black-1: #000;
    --color-black-1-rgb: 0, 0, 0;
    --color-black-2: #382F2D;
    --color-black-2-rgb: 56, 47, 45;
    --color-white-1: #fff;
    --color-white-1-rgb: 255, 255, 255;
    --color-white-2: #FFFEFA;
    --color-white-2-rgb: 255, 254, 250;
    --color-brown-1: #382B20;
    --color-brown-1-rgb: 56, 43, 32;
    --color-cursor-bg-1: #B4C19B;
    --color-cursor-bg-1-rgb: 180, 193, 155;
    --color-cursor-txt-1: #382b20;
    --color-cursor-txt-1-rgb: 56, 43, 32;
    --color-gold-1: #FFE89B;
    --color-gold-1-rgb: 255, 232, 155;
    --color-red-1: #9B0000;
    --color-red-1-rgb: 155, 0, 0;
    --color-red-2: #B00B1C;
    --color-red-2-rgb: 176, 11, 28;
    --color-yellow-1: #FFE8C7;
    --color-yellow-1-rgb: 255, 232, 199;
    --color-green-1: #DCDCC8;
    --color-green-1-rgb: 220, 220, 200;
    --ff-root: "Zen Kaku Gothic New", sans-serif;
    --ff-noto: "Noto Sans JP", sans-serif;
    --ff-serif: "Noto Serif JP", 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-cursor-bg-1);
    color: var(--color-cursor-txt-1);
}

::selection {
    background-color: var(--color-cursor-bg-1);
    color: var(--color-cursor-txt-1);
}

/* ---------------------------------------------
*   html, body
--------------------------------------------- */
html,
body {
    color: var(--color-base-1);
    font-size: calc(var(--root-fz) / var(--design-width) * 100vw);
    font-family: var(--ff-root);
    -webkit-text-size-adjust: 100%;
}
@media print, screen and (min-width: 751px) {
    html,
    body {
        font-size: calc(var(--root-fz) * var(--contents-width-pc) / var(--design-width) * 1px);
    }
}

body {
    min-width: calc(var(--minwidth) * 1px);
    line-height: var(--line-height);
    font-feature-settings: "palt";
}
@media print, screen and (min-width: 751px) {
    body {
        min-width: initial;
    }
}

/* ---------------------------------------------
*   <a> tag
--------------------------------------------- */
a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* ---------------------------------------------
*   <img> tag
--------------------------------------------- */
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}