* {
    box-sizing: border-box;
    line-height: 150%;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
header {
    position: fixed;
    top: 0;
    z-index: 1000;
    height: 3.5rem;
    width: 100vw;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-size: 90%;
    background-color: white;
    box-shadow: 0px 0px 5px #7a8893;
}
header > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
header .logo {
    display: block;
    height: 100%;
    width: 10rem;
    background-image: url('logo.png');
    background-size: 110px auto;
    background-repeat: no-repeat;
    background-position: 10px center;
    cursor: pointer;
}
main {
    padding: 6rem 0 3rem;
    background: rgb(217, 235, 255);
}
footer {
    padding: 2rem 0 4rem;
    text-align: center;
    font-size: 95%;
    border-top: 1px solid #dddddd;
    color: #91919b;
}

body {
    margin: 0;
    padding: 0;
}
a {
    color: #525a9a;
}
h1 {
    padding: 0 1rem;
    color: rgb(32 111 179);
    border-bottom: 2px solid rgb(32 111 179);
}
h1 .pt {
    font-size: 85%;
}
.language-select {
    text-align: right;
}
.contents {
    width: 620px;
    max-width: calc(100% - 2rem);
    margin: 0 auto;
}
.contents.ja .en,
.contents.ja .pt {
    display: none;
}
.contents.en .ja,
.contents.en .pt {
    display: none;
}
.contents.pt .ja,
.contents.pt .en {
    display: none;
}
main .contents {
    counter-reset: day-num 0;
}
fieldset {
    padding: 1rem;
    font-size: 90%;
    border: 1px solid lightgray;
}
legend {
    padding: 0 1rem;
}
fieldset p {
    margin: 0 0 1rem 0;
}

.search-box {
    margin: 2rem 0;
    padding: 0 1rem 0;
}
.search-box .buttons {
    margin: 1rem 0 0 0;
}

.input-row {
    margin: 2rem 1rem;
}
.input-row .title {
    display: block;
    margin: 0.5rem 0;
    font-weight: bold;
    color: #1c3c60;
}
.input-box {
    display: inline-block;
}
.input-box.fail::after {
    display: block;
    content: attr(data-message);
    margin-top: 0.25rem;
    font-size: 90%;
    color: #cd5f5f;
}
.select-wrap {
    position: relative;
    display: inline-block;
}
.select-wrap::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.33rem 0.33rem 0 0.33rem;
    border-color: #ffffff transparent transparent transparent;
    position: absolute;
    top: 15px;
    right: 10px;
    transform: translateY(-50%);
}
.hide {
    display: none;
}
.small {
    font-size: 90%;
}
.smaller {
    font-size: 82%;
}
.smallest {
    font-size: 77%;
}
[type="date"],
[type="number"],
textarea {
    margin: 0;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d5d5d5;
}
[type="date"] {
    appearance: none;
    height: 2rem;
    min-width: 8rem;
    background-color: white;
}
input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}
input[required] {
    background-color: rgb(255, 255, 234);
}
textarea {
    width: 100%;
    height: 5rem;
}
select {
    appearance: none;
    line-height: 1.5rem;
    padding: 0.1rem 2rem 0.1rem 0.75rem;
    background: white;
    border: 1px solid #1C3C60;
    vertical-align: middle;
    border-right-width: 32px;
}
button {
    width: 100%;
    padding: 0.75rem 0;
    background: #1C3C60;
    color: white;
    border: none;
    font-weight: bold;
    font-size: 92%;
}
button:disabled {
    background: #ababab;
}
button.rev {
    background: white;
    border: 2px solid #1C3C60;
    color: #1C3C60;
}
button.rev:disabled {
    border-color: #ababab;
    color: #ababab;
}
.inblock {
    display: inline-block;
}
.choice {
    position: relative;
    margin: 0.5rem 1rem 0.5rem 0;
}
.choice span {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.choice > [type="checkbox"] {
    display: none;
}
.choice > [type="checkbox"] ~ span:before {
    content: '';
    display: inline-block;
    position: relative;
    height: 1.4rem;
    width: 2.4rem;
    margin-right: 0.5rem;
    background-color: #b0b0b0;
    border-radius: 1rem;
}
.choice > [type="checkbox"] ~ span:after {
    content: '';
    display: inline-block;
    position: absolute;
    left: 0.2rem;
    height: 1.1rem;
    width: 1.1rem;
    background-color: #ffffff;
    border-radius: 100%;
    transition-duration: 0.5s;
}
.choice > [type="checkbox"]:checked ~ span:before {
    background-color: #6484cd;
}
.choice > [type="checkbox"]:checked ~ span:after {
    transform: translateX(0.9rem);
}
p.small {
    margin: 0;
}

.blacket::before {
    margin: 0 0.1rem 0 0.6rem;
    content: '(';
}
.blacket::after {
    margin: 0 0.1rem;
    content: ')';
}

/** overlay **/
#loading,
#dialog {
    position: fixed;
    top: 0;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    background: rgba(100, 100, 100, 0.66);
    z-index: 10000;
}
/** Loading **/
#loading {
    z-index: 10001;
}
.spinner {
    position: absolute;
    top: calc(50vh - 24px);
    left: calc(50vw - 24px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 5px solid;
    border-color: #f0f1fb;
    border-right-color: #474bff;
    animation: spinner-d3wgkg 1s infinite linear;
}
/** dialog **/
@keyframes spinner-d3wgkg {
    to {
       transform: rotate(1turn);
    }
}

/** pagination **/
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.page-prev,
.page-next {
    height: 40px;
    width: 40px;
}
.page-prev a,
.page-next a {
    display: block;
    height: 100%;
    width: 100%;
    background-color: rgb(62, 97, 137);
    border-radius: 4px;
}
.page-prev a:after,
.page-next a:after {
    position: absolute;
    content: '';
    display: block;
    height: 12px;
    width: 12px;
    transform: rotate(45deg);
    border: 3px none white;
}
.page-prev a:after {
    margin: 12px 0 0 16px;
    border-bottom-style: solid;
    border-left-style: solid;
}
.page-next a:after {
    margin: 12px 0 0 10px;
    border-top-style: solid;
    border-right-style: solid;
}

/** card **/
.card {
    position: relative;
    margin: 1rem 0;
    background-color: white;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.33);
    list-style: none;
}
.card-content {
    padding: 1rem 1.5rem;
}
.card-footer {
    padding: 1rem 1.5rem;
}
.card-tag {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 5rem;
    text-align: center;
    padding: 0.33rem 1rem;
    background-color: rgb(230, 230, 230);
    font-weight: bold;
    font-size: 68%;
}