@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/npm/yakuhanjp@4.1.1/dist/css/yakuhanjp.css");

@font-face {
    src: url("../fonts/SawarabiGothic-Regular.ttf") format("truetype");
    size-adjust: 112.5%;
    font-family: "Status in option";
    unicode-range: U+25CB, U+25B3, U+2715;
}

:root {
    --margin--lv1: 4rem;
    --margin--lv2: 3rem;
    --margin--lv3: 2rem;
    --margin--lv4: 1rem;
    --margin--lv5: 0.5rem;
    --padding--lv1: var(--margin--lv3);
    --padding--lv2: var(--margin--lv4);
    --padding--lv3: var(--margin--lv5);
    --color: #333;
    --font-family: YakuHanJP, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", "MS PGothic", "Osaka", sans-serif;
    --disabled-color: #999;
    --safety-color: #357989;
    --corporate-color: #0073c0;
    --active-color: #e8f6fd;
    --caution-color: #db2100;
    --font-size--xxl: 2rem;
    --font-size--xl: 1.8rem;
    --font-size--l: 1.6rem;
    --font-size--m: 1.4rem;
    --font-size--s: 1.3rem;
    --font-size--xs: 1.2rem;
    --letter-spacing: 0.05em;
    --border-radius--lv1: 0.8rem;
    --border-radius--lv2: 0.4rem;
    --border-radius--lv3: 0.3rem;
    --border-color: #ccc;
    --border-color--form: #999;
    --border-color--disabled: #cacdce;
    --bg-color: #f5f5f5;
    --bg-color--safety: #f3f9fa;
    --bg-color--disabled: #ebebeb;
    --line-height: 1.6;
    --line-height--narrow: 1.5;
    --font-weight: 400;
    --font-weight--bold: 600;
}

html {
    font-size: calc(100vw / 37.5);
    scroll-behavior: smooth;
    scroll-padding-top: var(--margin--lv5);
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 320px;
    min-height: 100dvh;
    padding-top: var(--Header-height);
    color: var(--color);
    font-weight: var(--font-weight);
    font-size: var(--font-size--m);
    line-height: var(--line-height);
    font-family: var(--font-family);
    letter-spacing: var(--letter-spacing);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.Android {
    --font-weight--bold: 700;
}

body:has(dialog[open]) {
    overflow: hidden;
}

img {
    width: 100%;
    height: auto;
}

a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.5);
}

main {
    margin-bottom: var(--margin--lv1);
}

summary {
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

label[for] {
    cursor: default;
}

.pc {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

#btnToTop {
    display: grid;
    z-index: 1;
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    grid-template-columns: 30%;
    place-content: center;
    aspect-ratio: 1/1;
    width: 4rem;
    border: 1px solid #fff;
    border-radius: var(--border-radius--lv3);
    background-color: rgba(0,115,192,.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;

    &.show {
        opacity: 1;
        pointer-events: auto;
    }

    &::after {
        display: block;
        aspect-ratio: 1/1;
        translate: 0 20%;
        rotate: 45deg;
        border-top: .2rem solid #fff;
        border-left: .2rem solid #fff;
        content: '';
    }
}

@media screen and (min-width: 768px), print {
    :root {
        --margin--lv1: 6rem;
        --margin--lv2: 4rem;
        --margin--lv3: 3rem;
        --margin--lv4: 1.5rem;
        --margin--lv5: 0.75rem;
        --font-size--xxl: 2.4rem;
        --font-size--xl: 2.2rem;
        --font-size--l: 1.8rem;
        --font-size--m: 1.6rem;
        --font-size--s: 1.5rem;
        --font-size--xs: 1.4rem;
        --border-radius--lv1: 1rem;
        --border-radius--lv2: 0.6rem;
        --border-radius--lv3: 0.4rem;
    }
    html {
        font-size: 10px;
    }

    .pc {
        display: block;
    }

    .sp {
        display: none;
    }
}

@media screen and (max-width: 320px) {
    html {
        font-size: calc(320px / 37.5);
    }
}
