@import "cat.css";
/* http: //jigsaw.w3.org/css-validator/ */

body {
    color: #000;
}

body * {
    box-sizing: border-box;
}

em {
    display: inline-block;
}

strong {
    color: #b7000c;
}

.w960 {
    margin: 0 auto;
    padding: 1rem 25px;
}

img {
    max-width: 100%;
}

#container {
    overflow: hidden;
}

#header>.w960 {
    padding: 0;
}

#logo {
    display: inline-block;
}

#logo a,
#logo h1 {
    font-size: 1rem;
    margin: 0;
    padding: 0.5rem;
    float: left;
}

#logo img {
    display: block;
}

#ocbt {
    width: 4em;
    font-size: 0.8rem;
    font-weight: bold;
    display: block;
    position: absolute;
    cursor: pointer;
    transition: 0.3s;
    margin: 0 auto;
    top: 0.25rem;
    padding: 32px 0 0;
    right: 0.5rem;
    text-align: center;
}

#ocbt::after,
#ocbt::before {
    content: '';
    display: inline-block;
}

#ocbt::after,
#ocbt::before,
.bars {
    position: absolute;
    background: #18338e;
    width: calc(100% - 10px);
    left: 5px;
    text-indent: -9000px;
    height: 4px;
    transition: 0.3s;
}

.bars {
    top: 16px;
    opacity: 1;
}

#ocbt::before {
    top: 5px;
}

#ocbt::after {
    top: 27px;
}

#ocbt.barchange .bars {
    opacity: 0;
}

#ocbt.barchange::before {
    top: 16px;
    transform: rotate(45deg);
}

#ocbt.barchange::after {
    top: 16px;
    transform: rotate(-45deg);
}

#mainmenu {
    clear: both;
}

#mainmenu .menubox {
    display: none;
    z-index: 10;
    position: absolute;
    width: 100%;
}

#mainmenu li,
#mainmenu ul {
    margin: 0;
    padding: 0;
}

#mainmenu #search {
    display: none;
}

#mainmenu .menubox>ul>li {
    border-bottom: 1px solid #fff;
}

#mainmenu li ul {
    font-size: 0.9rem;
}

#mainmenu li ul a {
    padding: 0.3rem 3rem;
}

#mainmenu form,
#mainmenu ul a {
    padding: 0.5rem 2rem;
    background: rgba(66, 66, 66, 0.98);
    color: #fff;
    display: block;
    text-decoration: none;
    transition: 0.3s;
}

#mainmenu ul a:hover {
    background: rgba(33, 33, 33, 1);
}

#mainmenu input[type=text] {
    float: left;
    padding: 0.4rem 1rem;
    border: none;
    background: #e6e6e6;
    height: 36px;
    line-height: 1em;
    width: calc(100% - 5rem);
    font-size: 0.9rem;
}

#mainmenu input[type=image] {
    background: #fff;
    padding: 10px 2rem;
    width: 5rem;
    float: right;
}

#mainmenu .search .close {
    display: none;
}

#mainmenu form::after {
    content: '';
    display: block;
    clear: both;
}

#maintitle {
    position: relative;
    display: table;
    width: 100vw;
    height: calc((100vw * 280) / 600);
}

#maintitle>div {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    padding: 1rem;
}

#maintitle::after,
#maintitle::before {
    content: '';
    display: block;
    position: absolute;
    width: 120vw;
    height: 37vw;
    margin: 0 -10vw;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
}

#maintitle::before {
    top: 2.5vw;
    left: 0;
    background-color: rgba(183, 0, 0, 0.9);
    transform-origin: left top;
    transform: rotate(3.5deg);
    z-index: -2;
}

#maintitle::after {
    top: 0;
    right: 0;
    background-color: rgba(24, 51, 142, 0.9);
    transform-origin: right top;
    transform: rotate(-3deg);
    z-index: -1;
}

.home #maintitle::after {
    background-position: right top;
    background-size: cover;
    background-image: url("../images/topimg_a.png");
    background-color: rgba(24, 51, 142, 0.9);
}

#maintitle h1,
#message em {
    font-size: 5.3vw;
    display: inline-block;
    color: #fff;
    font-style: normal;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(0, 0, 0, 1);
}

#message span {
    font-size: 2.6vw;
    color: #fff;
    display: block;
    margin: 0.25rem 0 0.5rem;
}

#breadcrumbs {
    background: #fff;
    position: relative;
    z-index: 3;
    margin: -11vw 0;
    padding-bottom: 12vw;
    padding-top: 0;
    font-size: 0.9rem;
}

#main {
    position: relative;
    z-index: 4;
    background: #fff;
}

#main h2 {
    font-size: 1.6em;
    position: relative;
    margin: 0 -25px 50px;
    padding: 100px 25px 50px;
    margin: 0 -25px 25px;
    padding: 50px 25px 25px;
    text-align: center;
    border-bottom: 3px solid rgba(24, 51, 142, 1);
}

#main h2::after {
    content: '';
    display: block;
    border-bottom: 3px solid rgba(183, 0, 0, 0.9);
    width: 50%;
    position: absolute;
    bottom: -3px;
    left: 0;
}

#main h3 {
    font-size: 1.2em;
    margin: 0 -25px 50px;
    padding: 100px 25px 50px;
    margin: 0 -25px 25px;
    padding: 50px 25px 25px;
    background: left 100px no-repeat url("../images/h3bg.png");
    background: left 45px no-repeat url("../images/h3bg.png");
}

.home #main h3 {
    background: none;
    margin: 0;
    padding: 0;
}

p.catch {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
}

p.catchtop {
    font-size: 1.4em;
    margin: 2em auto;
}

p.catch span {
    display: inline-block;
}

.indexbox {
    padding: 1rem 0;
}

#main .indexbox h3 {
    text-align: center;
}

.indexbox h3 img {
    margin-bottom: 1rem;
}

.indexbox p.catch {
    margin: 0 0 1rem;
}

.sbody a {
    display: block;
    padding: 0.5rem 2em;
    border: 1px solid #4b4b4b;
    text-decoration: none;
    color: #000;
    width: 9.5em;
    text-align: center;
    transition: 0.3s;
    margin: 0 auto;
}

.sbody a:hover {
    color: #fff;
    background: #4b4b4b;
}

.worksbox a {
    color: #000;
    background: #fafafa;
    display: block;
    transition: 0.3s;
    text-decoration: none;
    padding: 2em;
    margin-bottom: 30px;
}

.worksbox a:hover {
    background: #e6e6e6;
}

.worksbox a::after {
    content: '';
    display: block;
    clear: both;
}

.worksbox a img {
    margin: 0 auto 1rem;
    display: block;
}

.worksbox a img {
    margin: 0 auto 1rem;
}

.worksbox .sig {
    clear: none;
    margin-bottom: 0;
    color: #18338e;
    text-decoration: underline
}

.worksbox a h3 span {
    display: block;
    font-weight: normal;
    font-size: 1rem;
}

#footer {
    overflow: hidden;
}

#footplace {
    background: #fafafa;
    position: relative;
    margin-top: 10vw;
}

#footplace div.w960 {
    padding: 0 0 2rem;
    position: relative;
}

#footplace div.w960>div {
    padding: 0 25px;
}

#footplace::before {
    content: '';
    display: block;
    position: absolute;
    top: -10vw;
    left: 0;
    width: 120vw;
    height: 10vw;
    margin: 3% -10vw 0;
    background: #fafafa;
    transform-origin: right top;
    transform: rotate(-3deg);
    z-index: -1;
}

.footcontact {
    vertical-align: middle;
}

.footcontact strong {
    color: #000;
    display: inline-block;
    vertical-align: middle;
    padding: 0.5rem 0;
    margin: 0;
}

#footer .banners img {
    vertical-align: middle;
    margin-right: 1rem
}

@media all and (min-width: 40em) {
    .footcontact strong {
        margin-right: 2rem;
    }
}

.peakinfo {
    text-align: center;
    margin: 1rem;
}

.peakinfo a {
    text-decoration: none;
    opacity: 1;
    transition: 0.3s;
}

.peakinfo a:hover {
    opacity: 0.7;
}

.peakinfo img {
    margin: 1rem 0.5rem 0;
    width: 275px;
}

.books {
    padding-top: 1rem;
    border-top: 1px solid #ccc;
}

.books a {
    display: table;
    text-decoration: none;
    color: #000;
}

.books .body,
.books .bookimg {
    display: table-cell;
    vertical-align: top;
    padding: 1rem 0;
}

.books .bookimg {
    min-width: 175px;
    padding-right: 1.5rem;
}

.books img {
    display: block;
    opacity: 1;
    transition: 0.3s;
}

.books a {
    transition: 0.3s;
}

.books a:hover {
    opacity: 0.7;
}

.books h2 {
    font-size: 1.1rem;
}

.books h3 {
    font-size: 1rem;
    margin: 0 0 1rem;
}

.books .body img {
    margin-top: 0.5rem;
}

.footcontact a {
    display: inline-block;
    padding: 0.5rem 2rem;
    vertical-align: middle;
    background: rgba(24, 51, 142, 1);
    font-weight: normal;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

.footcontact a:hover {
    background: rgba(54, 81, 172, 1);
}

#gopagetop {
    display: block;
    text-align: right;
    margin: 1rem 0 -1rem;
}

#gopagetop img {
    opacity: 1;
    transition: 0.3s;
}

#gopagetop img:hover {
    opacity: 0.7;
}

#footinfo {
    color: #fff;
    background-color: #4b4b4b;
}

.menus {
    margin-bottom: 1rem;
}

address {
    font-style: normal;
}

.menus a,
address a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
}

.tbl th,
.tbl td {
    display: block;
}

@media all and (min-width: 1000px) {

    #maintitle #message,
    .w960 {
        margin: 0 auto;
        padding: 1rem 0;
        max-width: 960px;
        position: relative;
    }

    #ocbt {
        display: none;
    }

    #mainmenu .menubox {
        display: block;
    }

    .menulist {
        top: -3rem;
        right: 0;
        display: block;
        position: relative;
        float: right;
    }

    #mainmenu #search {
        display: inline-block;
    }

    .menulist>li:first-child {
        display: none;
    }

    .menubox>ul.search {
        float: none;
        clear: both;
        display: none;
    }

    .menulist>li {
        display: inline-block;
    }

    #mainmenu ul a {
        display: inline;
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
        background: none;
        font-weight: bold;
        color: #000;
    }

    #mainmenu ul a:hover {
        background: none;
    }

    #maintitle {
        height: 400px;
    }

    #mainmenu .search {
        list-style: none;
        width: 100vw;
        margin-left: calc((50vw - 480px) * -1);
        position: absolute;
    }

    #mainmenu .search .close {
        position: absolute;
        display: inline;
        right: 0.5rem;
        top: 0;
        color: #fff;
        padding: 0.5rem;
    }

    #mainmenu .menubox .search>li {
        border: none;
        background: rgba(66, 66, 66, 0.95);
    }

    #mainmenu .search li form {
        padding: 2em;
        background: none;
        max-width: 960px;
        margin: 0 auto;
    }

    #mainmenu li {
        position: relative;
    }

    #mainmenu li ul {
        display: none;
    }

    #mainmenu li:hover ul {
        display: block;
        position: absolute;
        top: 2rem;
        list-style: none;
        width: 15em;
        border-top: 2px solid #b7000c;
    }

    #mainmenu li ul a {
        font-weight: normal;
        font-size: 0.9rem;
        padding: 0.5rem;
        white-space: nowrap;
        display: block;
        background: #fafafa;
        border-bottom: 1px solid #e6e6e6;
    }

    #mainmenu li ul a:hover {
        background: #e6e6e6;
    }

    #maintitle>div {
        text-align: left;
    }

    #maintitle h1,
    #message em {
        font-size: 2.5em;
        display: inline-block;
        text-align: left;
        max-width: 960px;
        margin: 0 auto;
    }

    .home #maintitle {
        height: calc((100vw * 220) / 600);
    }

    #maintitle {
        height: calc((100vw * 180) / 600);
    }

    #maintitle::after,
    #maintitle::before {
        height: 25vw;
    }

    #message span {
        font-size: 1em;
    }

    #breadcrumbs {
        margin: -7vw 0;
    }

    p.catchtop {
        font-size: 1.4em;
        margin: 5em auto;
    }

    #main h2 {
        font-size: 2em;
    }

    #main h3 {
        font-size: 1.6em;
    }
}

@media all and (min-width: 640px) {

    .tbl th,
    .tbl td {
        display: table-cell;
    }

    .indexbox {
        padding: 0;
        display: table;
        clear: both;
    }

    .indexbox::after {
        content: '';
        display: block;
        clear: both;
    }

    #main .indexbox h3 {
        width: 345px;
    }

    #main .indexbox .sbody,
    #main .indexbox h3 {
        display: table-cell;
        vertical-align: top;
        padding: 0 25px 100px;
    }

    #main .indexbox h3 img {
        margin: 0;
    }

    .indexbox .catch {
        text-align: left;
    }

    .sbody a {
        margin: 0;
    }

    .worksbox a img {
        float: right;
        margin-left: 2em;
    }

    #footplace div.w960>div {
        padding: 0;
    }

    #footplace .books a {
        max-width: 47%;
        float: left;
    }

    #footplace .books a:first-of-type {
        margin-right: 6%;
    }

    .books::after {
        content: '';
        display: block;
        clear: both;
    }

    .home #gopagetop {
        margin: -75px -100px 0 0;
    }

    #gopagetop {
        margin: -50px -100px 0 0;
    }
}