/* ---------------------------------------------
*   Custom Properties
--------------------------------------------- */
:root {
    --design-width: 375;
    --contents-width: 335;
    --contents-side-padding: 10;
    --minwidth: 320;
    --root-fz: 16;
    --line-height: 1.5;
    --hover-opacity-ratio: 0.8;
    --hover-duration: .3s;
    --color-base-1: #8c6226;
    --color-base-1-rgb: 140, 98, 38;
    --color-black-1: #000;
    --color-black-1-rgb: 0, 0, 0;
    --color-white-1: #FFF;
    --color-white-1-rgb: 255, 255, 255;
    --color-yellow-1: #fffd99;
    --color-yellow-1-rgb: 255, 253, 153;
    --color-yellow-2: #ffd800;
    --color-yellow-2-rgb: 255, 216, 0;
    --color-yellow-3: #fbc600;
    --color-yellow-3-rgb: 251, 198, 0;
    --color-blue-1: #00aee8;
    --color-blue-1-rgb: 0, 174, 232;
    --color-blue-2: #26baeb;
    --color-blue-2-rgb: 38, 186, 235;
    --color-gray-1: #f6f2ed;
    --color-gray-1-rgb: 246, 242, 237;
    --color-brown-1: #784600;
    --color-brown-1-rgb: 120, 70, 0;
    --ff-root: "M PLUS Rounded 1c", sans-serif;
}
@media screen and (min-width: 901px) {
    :root {
        --contents-width: 500;
        --root-fz: 16;
    }
}

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

/* ---------------------------------------------
*   html, body
--------------------------------------------- */
html:has(.l-wrapper),
body:has(.l-wrapper) {
    color: var(--color-base-1);
    font-size: calc(var(--root-fz) * 1px);
    font-family: var(--ff-root);
    -webkit-text-size-adjust: 100%;
    background-color: var(--color-white-1);
}
@media screen and (max-width: 900px) {
    html:has(.l-wrapper),
    body:has(.l-wrapper) {
        overflow-x: hidden;
    }
}

body:has(.l-wrapper) {
    min-width: calc(var(--minwidth) * 1px);
    overflow-x: hidden;
    line-height: var(--line-height);
    font-feature-settings: "palt";
}

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

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

/* ---------------------------------------------
*   <hr> tag as anchor target
--------------------------------------------- */
.l-wrapper 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;
}