@font-face {
    font-family: 'SawarabiGothic';
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    src: url('/webfonts/SawarabiGothic-Regular.ttf') format('woff');
}

@font-face {
    font-family: 'Font Awesome 6 Solid';
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    src: url('/webfonts/fa-solid-900.woff2') format('woff2');
}

html {
    overflow-x: hidden;
}

html[lang='ja'] {
    font-family: 'SawarabiGothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], textarea {
    max-width: 100%;
    padding: 0.5rem;
    background: white;
    border: 0.05rem solid rgb(180, 180, 180);
    border-radius: 0.3rem;
    box-sizing: border-box;
}

main input[type="submit"] {
    width: auto;
    padding: 0.6rem 0.9rem;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
}

input[type="text"]::placeholder, input[type="password"]::placeholder, input[type="email"]::placeholder, input[type="tel"]::placeholder, input[type="number"]::placeholder, textarea::placeholder {
    font: var(--fa-font-solid);
}

input[type="text"].focus::placeholder, input[type="password"].focus::placeholder, input[type="email"].focus::placeholder, input[type="tel"].focus::placeholder, input[type="number"].focus::placeholder, textarea.focus::placeholder {
    color: transparent;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="number"]:focus {
    border: 0.05rem solid #222;
    outline: none;
    box-shadow: 0 0 0.3rem 0.05rem rgba(68, 60, 218, 0.5);
}

input[type="number"] {
    appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

label input[type="radio"] {
    display: none;
}

label:has(input[type="radio"])::before {
    content: '';
    display: inline-block;
    margin: 0 0.6rem 0 0;
    width: 0.4rem;
    height: 0.4rem;
    background: rgb(255, 255, 255);
    border: 0.2rem solid rgb(255, 255, 255);
    border-radius: 1rem;
    outline: 0.1rem solid rgb(64, 64, 64);
}

label:has(input[type="radio"]:checked)::before {
    background: rgb(97, 97, 255);
    border: 0.2rem solid rgb(255, 255, 255);
    border-radius: 1rem;
    outline: 0.1rem solid rgb(97, 97, 255);
}

label input[type="checkbox"] {
    display: none;
}

label:has(input[type="checkbox"]) {
    position: relative;
    padding: 0 0 0 1.5rem;
}

label:has(input[type="checkbox"])::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: inline-block;
    margin: 0 0.6rem 0 0;
    width: 0.4rem;
    height: 0.4rem;
    background: rgb(255, 255, 255);
    border: 0.2rem solid rgb(255, 255, 255);
    outline: 0.1rem solid rgb(64, 64, 64);
}

label:has(input[type="checkbox"]:checked)::before {
    border: 0.2rem solid rgb(255, 255, 255);
    outline: 0.1rem solid rgb(97, 97, 255);
    font: var(--fa-font-solid);
    font-size: 0.9rem;
    text-indent: -0.1rem;
}

label:has(input[type="checkbox"]:checked)::after {
    content: '\f00c';
    position: absolute;
    top: 50%;
    left: 0.1rem;
    transform: translateY(-50%);
    font: var(--fa-font-solid);
    font-size: 1.13rem;
    text-indent: -0.1rem;
}

span:has(select) {
    display: inline-block;
    min-width: 10rem;
}

span:has(select)::after {
    content: '\f0d7';
    display: inline-block;
    margin: 0 0 0 -2rem;
    width: 2rem;
	text-align: center;
    font: var(--fa-font-solid);
    font-size: 0.9rem;
    color: rgb(180, 180, 180);
    pointer-events: none;
}

span > select {
    background: white;
    border: 0.05rem solid rgb(180, 180, 180);
    margin: 0;
    padding: 0.5rem 1rem;
    min-width: 10rem;
    outline: none;
    appearance: none;
}

a:hover, input[type="submit"]:hover {
    opacity: 0.7;
}

body {
    display: flex;
    flex-wrap: wrap;
    overflow-x: hidden;
    min-height: 100vh;
    background: #f8f8ff;
    overflow-wrap: anywhere;
}

body a {
    color: rgb(0, 11, 172);
}

body h3 {
    font-size: 1.3rem;
}

body h4 {
    font-size: 1.2rem;
}

body h5 {
    font-size: 1.1rem;
}

body input[type="number"] {
    appearance: textfield;
}

body input[type="number"]::-webkit-inner-spin-button, body input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

body label input[type="radio"] {
    display: none;
}

body label:has(input[type="radio"])::before {
    content: '';
    display: inline-block;
    margin: 0 0.6rem 0 0;
    width: 0.4rem;
    height: 0.4rem;
    background: rgb(255, 255, 255);
    border: 0.2rem solid rgb(255, 255, 255);
    border-radius: 1rem;
    outline: 0.1rem solid rgb(64, 64, 64);
}

body label:has(input[type="radio"]:checked)::before {
    background: rgb(97, 97, 255);
    border: 0.2rem solid rgb(255, 255, 255);
    border-radius: 1rem;
    outline: 0.1rem solid rgb(97, 97, 255);
}

body label input[type="checkbox"] {
    display: none;
}

body label:has(input[type="checkbox"]) {
    position: relative;
    padding: 0 0 0 1.5rem;
}

body label:has(input[type="checkbox"])::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: inline-block;
    margin: 0 0.6rem 0 0;
    width: 0.4rem;
    height: 0.4rem;
    background: rgb(255, 255, 255);
    border: 0.2rem solid rgb(255, 255, 255);
    outline: 0.1rem solid rgb(64, 64, 64);
}

body label:has(input[type="checkbox"]:checked)::before {
    border: 0.2rem solid rgb(255, 255, 255);
    outline: 0.1rem solid rgb(97, 97, 255);
    font: var(--fa-font-solid);
    font-size: 0.9rem;
    text-indent: -0.1rem;
}

body label:has(input[type="checkbox"]:checked)::after {
    content: '\f00c';
    position: absolute;
    top: 50%;
    left: 0.1rem;
    transform: translateY(-50%);
    font: var(--fa-font-solid);
    font-size: 1.13rem;
    text-indent: -0.1rem;
}

body span:has(select) {
    display: inline-block;
    min-width: 10rem;
}

body span:has(select)::after {
    content: '\f0d7';
    display: inline-block;
    margin: 0 0 0 -2rem;
    width: 2rem;
	text-align: center;
    font: var(--fa-font-solid);
    font-size: 0.9rem;
    color: rgb(180, 180, 180);
    pointer-events: none;
}

body span > select {
    background: white;
    border: 0.05rem solid rgb(180, 180, 180);
    margin: 0;
    padding: 0.5rem 1rem;
    min-width: 10rem;
    outline: none;
    appearance: none;
}

body > header {
    z-index: 2;
    margin: 0;
    padding: 0;
    width: 100%;
    background: rgba(248, 248, 255, 0.8);
}

body > header > h1 {
    margin: 2.3rem 2rem;
    height: 2rem;
    white-space: nowrap;
    color: #222;
}

body > header > h1 > a {
    height: 1rem;
    color: inherit;
    text-decoration: none;
}

body > header > nav {
    margin: 0;
    padding: 0 4rem;
    border-top: 0.05rem solid #888;
    border-bottom: 0.05rem solid #888;
}

body > header > nav > a {
    display: block;
    flex: 1;
    padding: 0.8rem 0;
    color: rgb(0, 11, 172);
    text-decoration: none;
    text-align: center;
}

body > header > nav > a {
    border-right: 0.05rem solid #888;
}

body > header > nav > a:first-of-type {
    border-left: 0.05rem solid #888;
}

body > header > nav > a:hover {
    background: rgba(240, 240, 240, 0.9)
}

body > main {
    margin: 9.5rem 0 0;
    padding: 0 1.5rem;
    width: calc(100% - 3rem);
    min-height: 100vh;
    background: rgb(207, 255, 246);
}

body > main p.success, body > main p.info, body > main p.warning, body > main p.danger, body > main ul.danger {
    margin: 2rem 0;
    padding: 1rem 1.3rem;
    line-height: 1.5rem;
    border-radius: 0.3rem;
    text-align: left;
    color: #f8f8ff
}

body > main p.success {
    background: rgb(87, 87, 255);
}

body > main p.info {
    background: rgb(52, 153, 38);
}

body > main p.warning {
    background: rgb(167, 83, 0);
}

body > main p.danger, body > main ul.danger {
    padding: 1rem 1.3rem 1rem 2rem;
    background: rgb(255, 23, 23);
}

body > main > figure {
    margin: 0 -1.5rem;
    height: 60vh;
}

body > main > figure > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body > main > :not(figure) {
    margin: 0;
    background: white;
}

body > main > h2 {
    padding: 2.4rem 2rem 7rem;
}

body > main > section > h3 {
    margin: 0;
}

body > main:has(> dialog[open]) {
    background: rgba(32, 32, 32, 0.8);
}

body > main > dialog[open] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1.2rem 1.5rem;
    background: #ffffff;;
    border: none;
    border-radius: 0.9rem;
}

body > main > dialog[open] > div.close {
    line-height: 2.5rem;
    text-align: right;
}

body > main > dialog[open] > div.close > a {
    font: var(--fa-font-solid);
    font-size: 1.8rem;
    text-decoration: none;
}