@charset "UTF-8";
@import url("advent.css");

h1,
h1 + p {
    background-color: steelblue;
}
h1 + p {
    position: static;
    padding-bottom: 0.5em;
}
h1 + p > span {
    position: static;
    display: block;
    text-align: right;
    padding-right: 1em;
}
h2 {
    border-color: deepskyblue;
}
h3 {
    border-color: cornflowerblue;
}
dl.chart dt {
    border-bottom-color: steelblue;
}
.calendar > div:nth-child(2) > div:first-child:after {
    content: "SUN";
}
.calendar > div:nth-child(2) > div:nth-child(2):after {
    content: "MON";
}
.calendar > div:nth-child(2) > div:nth-child(3):after {
    content: "TUE";
}
.calendar > div:nth-child(2) > div:nth-child(4):after {
    content: "WED";
}
.calendar > div:nth-child(2) > div:nth-child(5):after {
    content: "THU";
}
.calendar > div:nth-child(2) > div:nth-child(6):after {
    content: "FRI";
}
.calendar > div:nth-child(2) > div:last-child:after {
    content: "SAT";
}
.calendar > div > div#today {
    color: orange;
    text-indent: 0.5em;
    background: lemonchiffon;
}
.calendar > div > div#today:before {
    content: "★";
    color: gold;
}
.calendar > div > div > div {
    margin-right: 0;
}
.calendar > div > div > div > p {
    text-indent: 0;
    margin-top: 0.5em;
    margin-bottom: -0.3em;
    padding: 0;
}
.calendar > div > div > div > h4.d {
    border: 4px solid #f1f1f1;
}
.calendar > div > div > div > h4 > span {
    bottom: 0;
}
figure.zatoshi {
    position: relative;
    width: 50%;
    background: url(./i/advent_zatoshi2.png) repeat-x -20% 30%;
    margin: 2em auto;
    padding-top: 64px;
}
figure.zatoshi:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 64px;
    top: 0;
    left: 0;
    background-color: rgba(255,255,255,0.5);
}
a[href] > img {
    vertical-align: sub;
}
a[href] > img:hover {
    opacity: 0.5;
}
form > h3 + p {
    text-indent: 0;
}
form p.memo {
    font-size: smaller;
}
form > p:last-child {
    padding: 0;
    margin-left: 1em;
    margin-bottom: 1.5em;
}
table#confirm {
    font-size: small;
    margin: 1.5em;
}
table#confirm th {
    text-align: left;
    vertical-align: top;
    padding:0 0.2em;
}
table#confirm table {
    border-spacing: 0;
}
details {
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: .5em .5em 0;
    margin: 0 2em;
}

summary {
    font-weight: bold;
    margin: -.5em -.5em 0;
    padding: .5em;
}

details[open] {
    padding: .5em;
}

details[open] summary {
    border-bottom: 1px solid #aaa;
    margin-bottom: .5em;
}
.calendar-cell {
    width: 14.2vw;
    color: gray;
    line-height: 2;
    background-color: #f1f1f1;
    border: 1px solid silver;
    font-weight: bold;
    text-indent: 1em;
    margin: 1em 2em 0;
}
@media screen and (max-width: 989px) {
    .calendar-cell {
        width: 100%;
        margin-left: 0;
    }
}
.calendar-cell > div {
    color: gray;
    font-size: smaller;
    box-sizing: border-box;
    padding: 0.5em;
}
.calendar-cell > div > h4 {
    position: relative;
    display: block;
    height: 1.5em;
    background-size: contain;
    background-color: inherit;
    background-repeat: no-repeat;
    background-position-x: 0.5em;
    color: black;
    border: none;
    text-shadow: 0px 0px 1px grey;
    text-indent: 0;
    line-height: 1;
    margin: 0;
    padding: 0;
    padding-left: 2.5em;
}
.calendar-cell > div > h4.a,
.editor option[value="a"] {
    background-color: #e0ffe0;
    border: 4px solid #e0ffe0;
}
.calendar-cell > div > h4.b,
.editor option[value="b"] {
    background-color: azure;
    border: 4px solid azure;
}
.calendar-cell > div > h4.c,
.editor option[value="c"] {
    background-color: oldlace;
    border: 4px solid oldlace;
}
.calendar-cell > div > h4.d {
    background-color: silver;
    border: 4px solid silver;
}
.calendar-cell > div > h4 > span {
    position: absolute;
    bottom: 0;
}
.calendar-cell > div > p {
    text-indent: 0;
    margin-top: 0.5em;
    margin-bottom: -0.3em;
    padding: 0;
}
.calendar-cell > div > span {
    display: block;
    line-height: 1.5;
    text-indent: 0;
    font-weight: lighter;
    text-shadow: 0px 0px 2px;
    margin-top: 0.5em;
}
.editor {
    display: inline-block;
    margin: 1em;
    margin-top: 0;
}
.editor label {
    vertical-align: top;
    margin-left: 0;
}
.editor p {
    text-indent: 0;
}
.editor > p:last-child {
    text-align: right;
    margin-left: 0;
    padding-top: 1em;
}
.editor fieldset {
    margin-top: 1em;
}
.editor select {
    margin-top: -4px;
    margin-right: 1em;
}
.editor option[value="d"] {
    background-color: #f1f1f1;
    border: 4px solid #f1f1f1;
}
.sil {
    font-weight: lighter !important;
    text-indent: 1em !important;
}