@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0px auto;
    max-width: 775px;
    background-color: #eeeeee;
    color: #333330;
    line-height: 1.5;
    font-family: 'Roboto',"UD Digi Kyokasho NK-B",sans-serif,arial;
    font-weight: bold;
}

header {
    position: relative;
    padding: 10px 0 0 9px;
    background-image: url(../cg/back-i-header.gif);
    background-repeat: no-repeat;
}
header #searchbox {
    position: absolute;
    display: flex;
    gap: 2px;
    top: 23px;
    left: 580px;
    width: 189px;
    height: 20px;
    margin: 2px;
}
header #searchbox input[type="search"] {
    flex: 1;
    width: 100%;
    height: 100%;
    border: 0px;
}
header #searchbox input[type="submit"] {
    width: 51px;
    height: 100%;
    border: 0px;
    background-color: #292929;
    background-image: url(../cg/back-searchsubmit.png);
    background-repeat: no-repeat;
    font-size: 90%;
    color: #e0e0e0;
}
header #searchbox input[type="submit"]:hover {
    background-color: #5a4b57;
    background-position: bottom;
}
@media (max-width: 768px) {
    header #searchbox {
        display: none;
    }
}

nav {
    color: #a0a0a0;
}

#caption {
    background: linear-gradient(#2f2f2f, #3f3941 80%, #745a7f);
    padding: 3px 16px;
    border-bottom: #8038a8 solid 2px;
    box-shadow: 0px 5px 15px 0px rgba(64,64,64, 0.5);
    margin-bottom: 32px;
}

#caption a:link,
#caption a:visited {
    color: #8a96d3;
    text-decoration: none;
}
#caption a:hover {
    color: #d13b41;
    text-decoration: underline;
}

#caption > h1 {
    padding: 1rem;
    color: #e8e8e8;    
    font-family: "ヒラギノ明朝 Pro W6","ＤＦＰ平成明朝体W7","HG正楷書体-PRO","ＭＳ Ｐ明朝",serif;
}

@media (max-width: 768px) {
    #caption > h1 {
        padding: 0.5rem 0rem;
    }
}

h1, h2, h3 {
    line-height: 1.2;
    font-family: "ヒラギノ角ゴ Pro W6","ＤＦＰ平成ゴシック体W7",sans-serif;
}
h1 {
    font-weight: normal;
    font-size: 160%;
}
h2 {
    font-weight: normal;
    margin-top: 2rem;
    font-size: 160%;
}
h3 {
    margin-top: 1rem;
    font-size: 130%;
}

main {
    border: #bfc2c3 solid 1px;
    background-color: white;
    box-shadow: 2px 2px 3px 0px rgba(128,128,128, 0.8);
}

article {
    margin: 52px 52px;
    overflow-wrap: break-word;
}

footer {
    border: #c6c8c9 solid 1px;
    background-color: #eeeeee;
    box-shadow: 2px 2px 3px 0px rgba(128,128,128, 0.8);
    margin: 5px 0px;
    padding: 16px 50px;
    font-size: 80%;
    color: #666660;
}

footer * {
    margin: 3px 0px;
}

footer ul {
    padding: 0px;
}

footer ul li {
    list-style: none;
}

@media (max-width: 768px) {
    article {
        margin: 16px;
    }
    footer {
        padding: 16px;
    }
}

ul, ol {
    padding-left: 20px;
}
ul li {
    list-style-image: url(../cg/back-li.png);
}
ul.row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 0px;
}
ul.row li {
    flex: none;
    margin-left: 20px;
    margin-right: 10px;
}

p {
    margin: 16px 0px;
    text-align: justify;
    line-height: 1.8;
}

table {
    border-collapse: collapse;
    border: 1px solid #bfc2c3;
}
th, td {
    padding: 6px 8px 4px 8px;
    background-color: white;
    vertical-align: top;
    border-style: solid;
    border-color: #bfc2c3;
    border-width: 1px;
    text-align: left;
}
th {
    background-color: #eeeeee;
}
table.wide {
    width: 100%;
}
table.v-borderless th,
table.v-borderless td {
    border-width: 1px 0px;
}

img {
    max-width: 100%;
}

dt {
    margin-top: 1rem;
}
dd  {
    padding-left: 2rem;
}

a:link {
    color: #374496;
    text-decoration: none;
}
a:visited {
    color: #5f616e;
    text-decoration: none;
}
a:hover {
    color: #b11b31;
    text-decoration: underline;
}

div.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 3px;
}
div.flex > div {
    flex: 1;
}

#totop {
    font-family: Arial, sans-serif;
    font-size: 80%;
    text-align: right;
}
#totop a {
    text-decoration: none;
    color: #666655;
}

/* ----------------------------------------------- top */

.top header {
    padding: 0px;
    background-image: none;
}

.top #searchbox {
    border-style: solid;
    border-color: #c4c5c6;
    border-width: 2px 0px 0px 2px;
    border-radius: 2px;
    padding: 1px;
    box-shadow: 3px 3px 2px 0px rgba(0, 0, 0, 0.4);
}

.top #container > div {
    border: #bfc2c3 solid 1px;
    background-color: white;
    box-shadow: 2px 2px 3px 0px rgba(128,128,128, 0.8);
}

.top #container > div > h2 {
    background: linear-gradient(#2f2f2f, #3f3941 50%, #745a7f);
    padding: 10px 18px 4px;
    margin: 0px;
    border-bottom: #8c5388 solid 1px;
    color: #e8e8e8;
    font-family: serif;
    font-size: 100%;
}

.top #container > div > div {
    padding: 10px 18px;
}

.top #new {
    flex-grow: 0;
    flex-basis: 320px;
}
.top #contents {
    flex-grow: 1;
}

@media (max-width: 768px) {
    .top #new {
        flex-basis: 100%;
    }
    .top #contents {
        flex-basis: 100%;
    }
}
