@charset "UTF-8";

/*
Theme Name:MadScientist
Theme URI: https://a-littledream.com/madscientist
Description: マッドサイエンティストのWordPressテーマ
Version:1.0
Author: baorin
Author URI: https://a-littledream.com
*/
/************************************************************************************
reset
*************************************************************************************/
*,
::after,
::before {
    box-sizing: border-box;
}

blockquote,
body,
dd,
dl,
figcaption,
figure,
h1,
h2,
h3,
h4,
li,
ol[class],
p,
ul[class] {
    margin: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    -webkit-overflow-scrolling: touch;
    line-height: 1.5;
}

ol[class],
ul[class] {
    list-style: none;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

img {
    max-width: 100%;
    display: block;
}

article > *+* {
    margin-top: 1em;
}

button,
input,
select,
textarea {
    font: inherit;
}

/************************************************************************************
link
*************************************************************************************/
a:link {
    color: #333;
    text-decoration: none;
    transition: 1s ease-in-out;
}

a:visited {
    color: #333;
    text-decoration: none;
    transition: 1s ease-in-out;
}

a:active {
    color: #3D474C;
    text-decoration: none;
}

a:hover {
    color: #3D474C;
    text-decoration: none;
}

/************************************************************************************
 Typography
*************************************************************************************/
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0.8rem 0;
    letter-spacing: 0.25rem;
    line-height: 1.5rem;
    font-weight: 400;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.2rem;
}

h3 {
    font-size: 1rem;
}

h4 {
    font-size: 1rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 1rem;
}

/************************************************************************************
list
*************************************************************************************/
ol,
ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.blogpost ul,
.footer-widget ul,
.widget ul {
    margin: 0 0 0 1.5rem;
}

.blogpost ol,
.footer-widget ol,
.widget ol {
    margin: 0 0 0 1.5rem;
}

.blogpost ul li,
.footer-widget ul li,
.widget ul li {
    list-style-type: circle;
    list-style-position: outside;
    margin: 0;
    padding: 0;
    position: relative;
}

.blogpost ol li,
.footer-widget ol li,
.widget ol li {
    list-style-type: decimal;
    list-style-position: outside;
    margin: 0;
    padding: 0;
    position: relative;
}

/************************************************************************************
general
*************************************************************************************/
body {
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    position: relative;
    word-break: break-all;
    overflow-x: hidden;
    background: url(images/madback.webp)repeat center top/300px auto;
    background-color: #22373c;
}

#container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

/************************************************************************************
header-container
*************************************************************************************/
#header-container {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    position: relative;
    pointer-events: none;
}

.titleplate {
    width: 300px;
    height: 400px;
    display: block;
    margin: auto;
    padding: 100px 0 0;
    color: #f4e8d4;
    text-align: center;
    pointer-events: auto;
    position: absolute;
    top: 30px;
    left: 0;
    z-index: 9999;
    background: url("images/title.webp") no-repeat center top/300px auto;
    overflow: visible;
}

.logo {
    font-family: 'IM Fell English SC', serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    line-height: 1.2em;
    margin: 4% 0 1% 2.5%;
    text-shadow: 1px 1px 1px #333;
}

.logo a {
    color: #f4e8d4;
}

.intro {
    font-size: 0.7rem;
}

.torisan {
    position: absolute;
    top: 340px;
    z-index: 9999;
    pointer-events: auto;
}

/************************************************************************************
social-menu
*************************************************************************************/
.smenu {
    margin: 0;
    padding: 0;
    width: 250px;
    z-index: 9999;
    display: flex;
    pointer-events: auto;
    position: absolute;
    top: 305px;
    left: 65px;
}

.smenu li {
    padding: 0;
    margin: 0 15px;
}

.smenu li a:hover,
.smenu li a:link,
.smenu li a:visited {
    display: block;
    width: 17px;
    height: 25px;
}

.smenu img {
    width: 17px;
    margin: 0;
}

/************************************************************************************
main-menu
*************************************************************************************/
#check {
    position: absolute;
    visibility: hidden;
}

.button,
.button span {
    display: none;
    transition: 1s;
    cursor: pointer;
}

.desktop-menu {
    width: calc(100% - 300px);
    height: auto;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
    transform: rotate(.001deg);
    color: #333;
    font-size: 13px;
    position: absolute;
    top: 0;
    left: 300px;
    font-family: 'IM Fell English SC', serif;
    pointer-events: auto;
    z-index: 9999;
    letter-spacing: 1px;
}

#menu-main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background-color: rgba(0,0,0,0.5);
    border: 1px #6f6924 solid;
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
}

#menu-main-menu li {
    width: auto;
    margin: 0;
    padding: 10px 20px;
    position: relative;
    text-align: center;
}

#menu-main-menu li a {
    color: #fff;
    text-shadow: 1px 1px 2px #000000;
}

#menu-main-menu li ul {
    position: absolute;
    top: 110%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 13em;
    text-align: center;
    font-size: 12px;
    line-height: 1.5em;
    display: block;
    z-index: 999;
    background-color: rgba(0,0,0,0.5);
    border-radius: 0;
    box-shadow: 0 0 0 transparent;
}

#menu-main-menu li ul li {
    position: relative;
    overflow: hidden;
    width: 13em;
    height: 0;
    transition: 0.2s;
    margin: 0;
    padding: 0;
}

#menu-main-menu li ul li a:hover,
#menu-main-menu li ul li a:link,
#menu-main-menu li ul li a:visited {
    color: #fff !important;
    text-shadow: 0 0 0 #000000;
}

#menu-main-menu li ul li ul {
    position: absolute;
    top: 0;
    left: 100%;
    list-style: none;
    margin: 0;
    width: 13em;
    height: auto;
    display: flex;
    flex-wrap: wrap;
}

#menu-main-menu li ul li ul li {
    position: relative;
    overflow: hidden;
    width: 13em;
    height: 0;
    transition: 0.2s;
}

#menu-main-menu li ul li a {
    width: 100%;
    height: 100%;
    padding: 7px 10px;
    display: block;
    background-color: rgba(0,0,0,0.5);
    border: 1px #6f6924 solid;
    color: #fff !important;
}

#menu-main-menu li ul li ul li a {
    width: 100%;
    height: 100%;
    padding: 7px 10px;
    display: block;
    background-color: rgba(0,0,0,0.5);
    border-bottom: 1px #6f6924 solid;
    border-left: 1px #6f6924 solid;
}

#menu-main-menu li:hover > ul > li {
    overflow: visible;
    height: 100%;
}

#menu-main-menu li ul li a:hover {
    background-color: rgba(0,0,0,0.5);
    color: #fff;
}

/************************************************************************************
character
*************************************************************************************/
.animation {
    width: 100%;
    height: auto;
    position: relative;
    overflow: visible;
    margin: 0;
    background: url("images/background3.webp") no-repeat center top/100% auto, url(images/paper.webp)repeat center top/300px auto;
}

.ratio-1_1:before {
    content: "";
    display: block;
    padding-top: 73%;
}

.curtain {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: auto;
    z-index: 999;
    display: block;
    filter: drop-shadow(0px 10px 5px rgba(0, 0, 0, .6));
}

.table {
    position: absolute;
    bottom: 8%;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 998;
    display: block;
}

.doctor {
    position: absolute;
    bottom: 16%;
    left: 0;
    width: 10%;
    height: auto;
    z-index: 995;
    display: block;
}

.doctorfront {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.doctorback {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.woman {
    position: absolute;
    bottom: 13%;
    right: -100px;
    width: 18%;
    height: auto;
    z-index: 997;
}

.cat {
    position: absolute;
    bottom: 13%;
    left: -100px;
    width: 10%;
    height: auto;
    z-index: 996;
}

.lightl {
    position: absolute;
    top: 20%;
    left: 12%;
    width: 15%;
    animation: blinke linear infinite 2s;
    opacity: 1;
}

.lightr {
    position: absolute;
    top: 20%;
    right: 12%;
    width: 15%;
    animation: blinke linear infinite 3s;
    opacity: 1;
}

@keyframes blinke {
    78% {
        opacity: inherit;

    }

    79% {
        opacity: 0;
    }

    80% {

        opacity: 0;
    }

    81% {
        opacity: 0;

    }

    82% {
        opacity: 1;

    }

    83% {
        opacity: 1;

    }

    92% {
        opacity: 0;

    }

    92.5% {
        opacity: 0;

    }
}

/************************************************************************************
main-container
*************************************************************************************/
#main-container {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row-reverse;
}

/************************************************************************************
maincontents
*************************************************************************************/
#maincontents {
    width: calc(100% - 300px);
    padding: 7% 3% 5%;
    margin: 0;
    position: relative;
    background: url("images/paper.webp") repeat center top/300px auto;
    overflow: hidden;
}

.home #maincontents {
    padding: 0 0 5%;
}

/************************************************************************************
index,search
*************************************************************************************/
.index {
    width: 100%;
}

/*トップページ*/
.home .index {
    padding: 0 5%;
}
/*２ページ以降*/
.paged .index {
    padding: 0 5%;
}

.sa {
    opacity: 0;
    transition: all 0.5s ease;
}

.sa.show {
    opacity: 1;
    transform: none;
}

.sa:nth-child(-n+2) {
    opacity: 1;
}

.index .blogpost {
    width: 100%;
    margin: 0 0 5%;
    padding: 0;
    position: relative;
}

.post-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    align-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
}

.post-img {
    width: 30%;
    margin-right: 5%;
    position: relative;
}

.post-img:before {
    content: "";
    padding-top: 120%;
    display: block;
}

.post-img a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.2s;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.post-img a:hover {
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0);
}

.post-img img {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    object-fit: cover;
    pointer-events: auto;
}

.index .post {
    width: 65%;
    padding: 0;
    margin: 0;
}

.index .blogpost .entry-title {
    padding: 0;
    margin: 0 0 1rem;
    font-size: 1.5rem;
    line-height: 1.5rem;
    font-family: "Noto Serif JP";
}

.postinfo {
    font-size: 0.9rem;
    line-height: 1.5rem;
    letter-spacing: 2px;
    font-weight: 400;
    font-family: "Noto Serif JP";
    color: #333;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.readmore {
    display: block;
    text-align: right;
    font-size: 0;
    margin: 1rem 0;
    padding: 5%;
    background: url(images/readmore.webp)no-repeat right center/25% auto;
}

.readmore:hover {
    font-style: italic;
}

/************************************************************************************
single-page
*************************************************************************************/

.single .blogpost {
    width: 100%;
    padding: 0 0 5%;
    position: relative;
    border-bottom: 1px #c7ad61 solid;
}

.single .entry-title {
    padding: 0;
    margin: 0 0 1rem;
    font-size: 1.5rem;
    line-height: 1.5rem;
    font-family: "Noto Serif JP";
    text-align: center;
}

.single .postinfo {
    font-size: 0.9rem;
    line-height: 1.5rem;
    letter-spacing: 2px;
    font-weight: 400;
    font-family: "Noto Serif JP";
    color: #333;
    text-transform: uppercase;
    margin: 0 0 1rem;
    text-align: center;
}

.blogpost p {
    padding: 1rem 0;
}

.edit {
    padding: 1rem 0 0;
}

.info {
    width: 100%;
    height: auto;
    font-size: 0.6rem;
    text-align: right;
    font-family: "Noto Serif JP";
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.info img {
    display: inline;
}

.post-password-form input[type=submit] {
    padding: 1px 5px;
    background-color: #3D474C;
    font-size: 0.8rem;
    color: #fff;
}

input[type=password] {
    border-bottom: 1px #c7ad61 solid;
    font-size: 0.8rem;
}

/************************************************************************************
related
*************************************************************************************/
.related {
    padding-top: 2rem;
    clear: both !important;
}

.relatedpost {
    width: 100%;
    padding: 0;
    margin: 2rem 0;
}

.relatedpost-title {
    width: 100%;
    display: block;
    font-size: 1.2rem;
    font-family: 'IM Fell English SC', serif;
    font-weight: 400;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    padding: 20px 0;
    margin: 0 0 1rem;
    text-align: center;
}

.entry {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.related-entry {
    width: 32%;
    height: auto;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.related-entry:before {
    content: "";
    padding-top: 75%;
    display: block;
}

.related-entry a {
    width: 100%;
    height: 100%;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.related-entry-thumb {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.related-entry-thumb img {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    object-fit: cover;
}

.related-entry-thumb .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
}

.related-entry-thumb .overlay .related-title {
    text-shadow: 1px 1px 1px #5a575c;
    font-size: 13px;
    color: #fff;
    z-index: 9;
    position: relative;
}

.related-entry-thumb .overlay img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.3s;
    z-index: 8;
}

.related-entry-thumb .overlay img:hover {
    opacity: 0;
}

/************************************************************************************
author
*************************************************************************************/
.author {
    width: 100%;
    height: auto;
    letter-spacing: 2px;
    margin: 2em 0;
    position: relative;
    background-color: rgba(255, 255, 255, .8);
    padding: 2rem;
    display: flex;
}

.authorimage {
    width: 125px;
    height: 125px;
    margin: 0;
    overflow: hidden;
}

.authorimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.authortext {
    width: calc(100% - 170px);
    padding: 0 0 0 30px;
}

.name {
    font-size: 1rem;
}

.authortext p {
    font-size: 0.8rem;
    margin: 0;
}

.author .social {
    font-size: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.author .social ul {
    margin: 0 !important;
    display: flex !important;
}

.author .social li {
    padding: 0 !important;
    margin: 0 15px 0 0 !important;
    display: inline-block !important;
    overflow: hidden;
}

.author .social li a:link,
.author .social li a:visited {
    display: block;
    width: 14px;
    height: 19px;
    color: #333;
}

.author .social li a:hover {
    width: 120px;
    transition: width 0.5s linear;
    -webkit-transition: width 0.5s linear;
}

.author .social img {
    width: 14px;
    margin: 0 10px 0 0;
    display: inline;
}

/************************************************************************************
comment
*************************************************************************************/
#comments {
    width: 100%;
    padding: 0;
    margin: 40px 0;
}

#comments-count {
    font-size: 1.2rem;
    font-family: 'IM Fell English SC', serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    padding: 1rem 0;
}

#comments-list {
    width: 100%;
}

#comments-list li {
    margin: 0 0 1rem;
    font-size: 0.8rem;
}

.comment-body {
    position: relative;
    padding: 1rem;
    background-color: rgba(255, 255, 255, .8);
    margin: 0 0 2%;
}

.comment-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.fn {
    font-weight: 400;
}

.comment-author img {
    margin-right: 20px;
}

.says {
    font-size: 0;
    margin-left: 10px;
    padding: 5px 0 0;
    font-family: 'IM Fell English SC', serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.says:before {
    font-size: 0.9rem;
    content: ": says";
}

.comment-metadata {
    font-size: 0.8rem;
}

.comment-content {
    margin: 1rem 0;
}

.reply a {
    padding: 1px 5px;
    background-color: #3D474C;
    color: #ffffff;
    display: inline-block;
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 0.8rem;
    border-radius: 3px;
}

#respond {
    padding: 40px 0 0;
}

#reply-title {
    font-size: 0 !important;
    letter-spacing: 0.1rem;
}

#reply-title:before {
    font-size: 1.2rem;
    content: "Leave a reply";
    font-family: 'IM Fell English SC', serif;
    font-weight: 400;
    text-transform: uppercase;
}

#commentform input {
    color: #333333;
}

.comment-notes {
    font-size: 10.8rem;
    letter-spacing: 0.1rem;
    display: none;
}

#commentform label {
    font-size: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
}

label[for=siteguard_captcha] {
    font-size: 0.8rem !important;
}

.comment-form-comment label:before {
    font-size: 0.8rem;
    content: "comment";
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    position: relative;
    margin: 1rem 0;
}

.comment-form-author input {
    position: absolute;
    left: 60px;
    max-width: calc(100% - 60px) !important;
    border: 1px #5a575c solid;
}

.comment-form-email input {
    position: absolute;
    left: 60px;
    max-width: calc(100% - 60px) !important;
    border: 1px #5a575c solid;
}

.comment-form-url input {
    position: absolute;
    left: 60px;
    max-width: calc(100% - 60px) !important;
    border: 1px #5a575c solid;
}

.comment-form-author label:before {
    font-size: 0.8rem;
    content: "name*";
}

.comment-form-email label:before {
    font-size: 0.8rem;
    content: "email*";
}

.comment-form-url label:before {
    font-size: 0.8rem;
    content: "url";
}

.comment-form-cookies-consent label {
    height: auto;
    font-size: 0.8rem !important;
}

.form-submit input {
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #3D474C;
    border: none;
    border-bottom: none !important;
    color: #ffffff !important;
    border-radius: 3px;
}

.children {
    margin-left: 20px !important;
}

input[type=email],
input[type=text],
input[type=url] {
    background-color: rgba(255, 255, 255, .8);
}

input[type=checkbox] {
    vertical-align: middle;
}

textarea {
    width: 99.9%;
    height: 150px;
    overflow: auto;
    outline: 0;
    background-color: rgba(255, 255, 255, .8);
    -webkit-appearance: none;
    border-radius: 0;
    padding: 5px 10px;
}

.logged-in-as a:link,
.logged-in-as a:visited {
    font-size: 11px !important;
}

#comments-pagination {
    font-size: 0.9rem;
    font-family: 'IM Fell English SC', serif;
    font-weight: 400;
    text-transform: uppercase;
}

#comments-pagination {
    width: 100%;
    height: auto;
    padding: 0;
    margin: 20px 0;
    position: relative;
    align-items: center;
    display: flex;
    justify-content: center;
}

#next-comments {
    width: 50%;
    height: auto;
    padding: 0 15px 0 0;
    text-align: right;
    order: 1;
    position: relative;
}

#prev-comments {
    width: 50%;
    height: auto;
    padding: 0 0 0 15px;
    border-left: 1px #5a575c solid;
    order: 2;
    position: relative;
}

/************************************************************************************
search
*************************************************************************************/
.search {
    min-height: 800px;
}

.search-result {
    font-size: 1.2rem;
    font-family: 'IM Fell English SC', serif;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 auto 20px;
    text-align: center;
}

/************************************************************************************
page
*************************************************************************************/

.page .blogpost {
    padding: 0;
    position: relative;
    border: none;
}

.page .blogpost header h1 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    line-height: 1.5rem;
    font-family: "Noto Serif JP";
    text-align: center;
}

.error {
    text-align: center !important;
    border: none;
}

.error h1 {
    font-size: 1.2rem;
    font-family: 'IM Fell English SC', serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1em;
    color: #333;
    font-weight: 400;
}

.error h2 {
    font-size: 0.9rem !important;
    margin: 20px 0;
    font-weight: 400;
}

/************************************************************************************
sidebar
*************************************************************************************/
#sidebar {
    padding: 0 0 5%;
    width: 300px;
    height: auto;
    margin: 420px 0 0;
    overflow: visible;
    color: #fff;
}

#sidebar a {
    color: #fff;
}

.widget {
    font-size: 0.9rem;
    padding: 0 0 20%;
    margin: 0 0 10%;
    background: url("images/sidebottom.webp") no-repeat right bottom/95% auto;
}

.widget_title {
    width: 100%;
    height: auto;
    padding: 8% 0 15%;
    font-size: 1rem;
    text-align: center;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 400;
    font-family: 'IM Fell English', serif;
    color: #333;
    background: url("images/sidetop.webp") no-repeat right top/95% auto;
}

.widget-inner {
    padding: 0 10%;
    margin: 0;
    background: url("images/sideinner.webp") repeat-y right top/95% auto;
}

#sidebar input[type=text] {
    width: 99%;
    background-color: rgba(255, 255, 255, .8);
    border: none;
    color: #333;
}

#sidebar input[type=submit] {
    padding: 0 10px !important;
    background-color: #3D474C;
    border-radius: 3px;
    font-size: 9px;
    color: #333;
}

input.searchfield:-ms-input-placeholder,
input.searchfield::-moz-placeholder,
input.searchfield::-webkit-input-placeholder {
    color: rgba(255, 255, 255, .1) !important;
}

.wp-calendar-table {
    width: 100%;
    margin: 0 auto;
}

/************************************************************************************
footer-container
*************************************************************************************/
#footer-container {
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

.footer-inner {
    width: calc(100% - 300px);
    margin: 0 0 0 300px;
    padding: 10px 3%;
    background: url("images/paper.webp") repeat center top/300px auto;
    display: flex;
}

#footer-container .widget {
    width: calc(100% / 3);
    overflow: visible;
    text-align: left;
    position: relative;
    background: none;
    margin: 0;
}

#footer-container .widget-inner {
    padding: 0 !important;
    margin: 0;
    background: none;
}

#footer-container .widget:first-child {
    padding: 0 10px 0 0 !important;
    border-right: 1px #333333 solid;
    pointer-events: auto;
}

#footer-container img {
    margin: 0 auto 20px auto !important;
}

#footer-container .widget:nth-child(2) {
    padding: 0 10px !important;
    border-right: 1px #333333 solid;
    pointer-events: auto;
}

#footer-container .widget:nth-child(3) {
    padding: 0 0 0 10px !important;
    pointer-events: auto;
}

#footer-container .widget_title {
    padding: 20px 0;
    height: auto;
    font-size: 15px;
    text-align: center;
    margin: 0 auto;
    font-family: 'IM Fell English SC', serif;
    letter-spacing: 2px;
    font-weight: 400;
    background-image: none;
}

.footer-address {
    width: calc(100% - 300px);
    margin: 0 0 0 300px;
    padding: 10px 3%;
    font-size: 0.7rem;
    text-align: center;
    font-family: 'IM Fell English SC', serif;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.2rem;
    text-align: right;
    background: url("images/paper.webp") repeat center top/300px auto;
}

/************************************************************************************
navigation
*************************************************************************************/
#page-top img {
    width: 60px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    animation: top 2s linear infinite;
}

@keyframes top {
    0% {
        margin: 0;
    }

    50% {
        margin: -10px 0;
    }

    100% {
        margin: 0;
    }
}

/* post-nav */
.postnav {
    width: 100%;
    height: auto;
    padding: 0;
    margin: 20px 0;
    position: relative;
    align-items: center;
    display: flex;
    font-size: 13px;
    line-height: 1.2em;
    justify-content: flex-end;
}

.next {
    width: 49%;
    height: auto;
    margin-right: 2%;
    text-align: left;
    order: 1;
    position: relative;
}

.next a {
    background-color: rgba(255, 255, 255, 0.5);
    border-right: none;
    padding: 15px;
    transition: 0.3s;
    color: #333333;
}

.next a:hover,
.prev a:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.prev {
    width: 49%;
    height: auto;
    text-align: right;
    order: 2;
    position: relative;
}

.prev a {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 15px;
    transition: 0.3s;
    color: #333333;
}

.next a,
.prev a {
    display: flex;
    align-items: center;
}

.next-img,
.prev-img {
    width: 30%;
    overflow: hidden;
    position: relative;
}

.prev-img {
    order: 2;
}

.next-img:before {
    content: "";
    padding-top: 100%;
    display: block;
}

.prev-img:before {
    content: "";
    padding-top: 100%;
    display: block;
}

.next-img img,
.prev-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.next-title {
    width: 70%;
    padding: 0 0 0 20px;
}

.prev-title {
    width: 70%;
    padding: 0 20px 0 0;
    order: 1;
}

/* pager */
.pager {
    font-family: 'IM Fell English SC', serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1rem;
    margin: 1rem 0;
    line-height: 1rem;
    padding: 0 5%;
}

.pager .current,
.post-page-numbers,
a.page-numbers {
    background-color: #3D474C;
    padding: 5px 15px 6px;
    margin: 5px 2px 30px;
    border-radius: 3px;
    color: #ffffff;
}

.pager .current {
    background-color: #3D474C;
    color: #cccccc;
}

.pager .prev {
    border: none;
}

/************************************************************************************
others
*************************************************************************************/

/* image */
figure {
    margin: 0;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

.circle-image img {
    border-radius: 50%;
}

/* table */
table {
    margin-bottom: 20px;
    max-width: 100%;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

table th a {
    color: #333 !important;
}

table tr {
    padding: 10px 5px;
    border-bottom: 1px #666 solid;
}

table th {
    border-right: 1px solid #666;
    text-align: center;
    padding: 5px;
    color: #333;
}

table td {
    padding: 5px;
}

.scrollable-table {
    -webkit-overflow-scrolling: touch;
}

.scrollable-table table {
    border-collapse: collapse;
    margin: 1em 0;
    max-width: 100%;
}

.scrollable-table th {
    color: #333;
}

.scrollable-table td,
.scrollable-table th {
    white-space: nowrap;
}

.scrollable-table {
    overflow-x: auto;
    margin-bottom: 1em;
}

/* blockquote */
blockquote {
    background-color: rgba(255, 255, 255, .8);
    margin: 1rem 0;
    padding: 2rem 1.2em;
    position: relative;
    color: #333;
}

blockquote p {
    padding: 1rem 0;
}

blockquote::after,
blockquote::before {
    color: #666666;
    font-family: serif;
    position: absolute;
    font-size: 6rem;
}

blockquote::before {
    content: "“";
    line-height: 1.1;
    left: 1rem;
    top: 0;
}

blockquote::after {
    content: "”";
    line-height: 0;
    right: 1rem;
    bottom: 0;
}

/* pre */
pre {
    word-break: break-all;
    overflow: auto;
    background-color: rgba(255, 255, 255, .8);
    border-radius: 10px;
    overflow: auto;
    padding: 1rem;
    margin: 1em 0;
    color: #333;
}

/* wp-embed*/
.wp-block-embed iframe {
    width: 100% !important;
}

.wp-embed {
    padding: 25px;
    font-size: 14px;
    font-weight: 400 !important;
    line-height: 1.5;
    color: #333333 !important;
    background: #ffffff !important;
    border: 1px solid #666666 !important;
    box-shadow: 0 0 0 rgba(0, 0, 0, .05) !important;
    border-radius: 5px;
    overflow: auto;
    zoom: 1;
}

p.wp-embed-heading {
    margin: 0 0 15px;
    font-weight: 400 !important;
    font-size: 20px;
    line-height: 1.3;
    color: #333333 !important;
}

/* youtube */
.youtube {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.youtube iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 100% !important;
    height: 100% !important;
}

/************************************************************************************
smaller than 1200px
*************************************************************************************/
@media screen and (max-width:1200px) {

    /* disable webkit text size adjust (for iPhone) */
    html {
        -webkit-text-size-adjust: none;
    }

    #container {
        width: 90%;
    }

}

/************************************************************************************
smaller than 950px
*************************************************************************************/
@media screen and (max-width:950px) {

    #container {
        width: 100%;
    }

    #header-container {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        z-index: 99999;
    }

    .torisan {
        display: none;
    }

    .titleplate {
        width: 100%;
        height: auto;
        top: auto;
        left: auto;
        margin: 0 auto;
        padding: 0;
        background: none;
    }

    .logo {
        margin: 5% 0 0;
    }

    .archive #header-container .logo,
    .page #header-container .logo,
    .search #header-container .logo,
    .single #header-container .logo {
        margin: 2% 0 0;
    }

    .archive #header-container .logo a,
    .page #header-container .logo a,
    .search #header-container .logo a,
    .single #header-container .logo a {
        color: #333;
    }

    .archive #header-container .intro,
    .page #header-container .intro,
    .search #header-container .intro,
    .single #header-container .intro {
        color: #333;
    }

    .animation {
        width: 100%;
        margin: 0;
    }

    .curtain {
        width: 100%;
    }
    .smenu {
        display: none;
    }

    #main-container {
        display: block;
    }

    #maincontents {
        width: 100%;
        padding: 10% 3% 5%;
        margin: 0 auto;
        position: relative;
    }

    .search {
        min-height: auto;
    }

    .relatedpost .entry {
        display: block;
    }

    .related-entry {
        width: 100%;
        margin: 0 0 1rem;
    }

    .related-title {
        padding: 0;
        font-size: 1rem !important;
    }

    .author {
        width: 100%;
        height: auto;
        letter-spacing: 0.1rem;
        margin: 2em 0;
        position: relative;
        background-color: rgba(255, 255, 255, .6);
        padding: 2rem;
        display: block;
    }

    .author-inner {
        padding: 1rem;
        display: block;
    }

    .authorimage {
        margin: 0 auto 1rem;
    }

    .authortext {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .author .social ul {
        width: 100%;
        height: auto;
        padding: 0;
        margin: 2rem 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: none !important;
    }

    .author .social li {
        margin: 0 2% !important;
        list-style-type: none;
    }

    #sidebar {
        padding: 0 0 3rem;
        width: 100%;
        height: auto;
        margin: 0 auto;
        position: relative;
        color: #333;
        top: auto;
        left: auto;
        background: url(images/paper.webp)repeat center top/300px auto;
    }

    #sidebar a {
        color: #333;
    }

    .widget {
        margin: 0;
        padding: 0 0 5%;
        background: none;
    }

    .widget_title {
        width: 100%;
        background: none;
        margin: 0;
        padding: 0 0 5%;
    }

    .widget-inner {
        background: none;
        margin: 0;
        padding: 0 3%;
    }

    #footer-container {
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    .footer-inner {
        width: 100%;
        padding: 0 3%;
        display: block;
        margin: 0;
    }

    #footer-container .widget {
        width: 100%;
    }

    #footer-container .widget:first-child {
        padding: 0 0 5% 0 !important;
        border-right: 0 #c7ad61 solid;
        border-bottom: 1px #c7ad61 solid;
    }

    #footer-container .widget:nth-child(2) {
        padding: 0 0 5% 0 !important;
        border-right: 0 #c7ad61 solid;
        border-bottom: 1px #c7ad61 solid;
    }

    #footer-container .widget:nth-child(3) {
        padding: 0 0 5% 0 !important;
    }

    .footer-address {
        width: 100%;
        margin: 0;
    }

    /* menu */
    #check {
        width: 25px;
        height: 60px;
        visibility: hidden;
        position: fixed;
        top: 0;
        right: 20px;
        z-index: 999999;
    }

    .desktop-menu,
    .mobile-menu {
        position: fixed;
        width: 100vw;
        height: 100vh;
        overflow: auto;
        background-color: rgba(0, 0, 0, .8);
        top: 0;
        left: 0;
        color: #fff !important;
        padding: 80px 30px;
        z-index: 999998 !important;
        visibility: hidden;
        opacity: 0;
        transition: 0.3s linear;
        pointer-events: auto;
        display: block;
    }

    #menu-main-menu {
        display: block;
        padding: 0 15.5%;
        margin: 0;
        border: none;
        background: none;
        box-shadow: none;
    }

    #menu-main-menu li {
        width: 100%;
        margin: 0 0 10px;
        padding: 0 0 10px;
        position: relative;
        text-align: center;
    }

    #menu-main-menu li ul {
        position: relative;
        top: auto;
        left: auto;
        list-style: none;
        margin: 0 auto;
        background: none;
    }

    #menu-main-menu li ul li {
        position: relative;
        width: 100%;
        height: 0;
    }

    #menu-main-menu li ul li ul {
        position: relative;
        top: auto;
        left: auto;
        list-style: none;
        margin: 0 auto;
        width: 100%;
        height: auto;
        display: block;
    }

    #menu-main-menu li ul li ul li {
        position: relative;
        overflow: hidden;
        width: 100%;
        height: 0;
        transition: 0.2s;
    }

    #menu-main-menu li ul li a {
        width: 100%;
        height: 100%;
        padding: 7px 10px;
        display: block;
        background: none;
        border: none;
        color: #fff !important;
    }

    #menu-main-menu li ul li ul li a {
        width: 100%;
        height: 100%;
        padding: 7px 10px;
        display: block;
        background: none;
        border: none;
    }

    #menu-main-menu li:hover > ul > li {
        overflow: visible;
        height: 100%;
    }

    #menu-main-menu li ul li a:hover {
        background: none;
        color: #fff;
    }

    #check:checked~.desktop-menu,
    #check:checked~.mobile-menu {
        visibility: visible;
        opacity: 1;
    }

    #check:not(:checked)~.desktop-menu,
    #check:not(:checked)~.mobile-menu {
        visibility: hidden;
        opacity: 0;
    }

    #check:checked~.button span {
        background-color: #fff;
    }

    #check:not(:checked)~.button span {
        background-color: #fff;
    }

    .button {
        position: fixed;
        top: 20px;
        right: 30px;
        width: 25px;
        height: 50px;
        padding: 0;
        z-index: 999999;
        display: block;
        pointer-events: auto;
    }

    .button span {
        width: 25px;
        height: 2px;
        background-color: #333;
        border-radius: 2px;
        z-index: 999999;
        display: block;
        position: absolute;
        box-shadow: 1px 1px 2px #fff;
    }

    .button span:nth-of-type(1) {
        top: 20px;
    }

    .button span:nth-of-type(2) {
        top: 28px;
        width: 22px;
        margin: 0 0 0 3px;
    }

    .button span:nth-of-type(3) {
        top: 36px;
    }

    #check:checked~.button span:nth-of-type(1) {
        -webkit-transform: translateY(9px) rotate(-45deg);
        transform: translateY(9px) rotate(-45deg);
    }

    #check:checked~.button span:nth-of-type(2) {
        opacity: 0;
    }

    #check:checked~.button span:nth-of-type(3) {
        -webkit-transform: translateY(-7px) rotate(45deg);
        transform: translateY(-7px) rotate(45deg);
    }

    .block {
        display: block;
        padding: 0 20px;
        height: auto;
    }

    .postnav {
        display: block;
    }

    .next {
        width: 100%;
        height: auto;
        margin: 0 auto;
        text-align: left;
        order: 1;
        position: relative;
    }

    .prev {
        width: 100%;
        height: auto;
        text-align: right;
        order: 2;
        position: relative;
        margin: 15px auto 0;
    }
}

/************************************************************************************
smaller than 660px
*************************************************************************************/
@media screen and (max-width:660px) {

    .post-wrapper {
        width: 100%;
        margin: 0;
        display: block;
    }

    .post-img {
        width: 100%;
        margin: 0 0 1rem;
        position: relative;
    }

    .post-img:before {
        content: "";
        padding-top: 70%;
        display: block;
    }

    .index .post {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    #page-top img {
        width: 50px;
    }

    .readmore {
        background: url(images/readmore.webp)no-repeat right center/30% auto;
    }
}

/************************************************************************************
smaller than 440px
*************************************************************************************/
@media screen and (max-width:440px) {

    #maincontents {
        width: 100%;
        padding: 17% 3% 5%;
        margin: 0 auto;
        position: relative;
    }
}

/**************　プラグインの設定(パンくずリスト・お問い合わせフォーム）***************/

/************************************************************************************
Breadcrumb NavXT
*************************************************************************************/
.breadcrumbs {
    width: 100%;
    height: auto;
    font-size: 0.8rem !important;
    margin: 0 0 1.5rem;
    pointer-events: auto;
}

.breadcrumbs br {
    display: none;
}

.breadcrumbs img {
    margin: 0 5px;
    display: inline;
}

.breadcrumbs img:first-child {
    margin: 0;
}

/************************************************************************************
contact form 7
*************************************************************************************/
.wpcf7 p {
    padding-bottom: 15px;
}

.wpcf7 input {
    width: 60%;
    padding: 10px 0;
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: 1px #666666 solid;
    font-size: 0.9rem;
}

.wpcf7 textarea {
    width: 98%;
    padding: 10px 0;
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: 1px #666666 solid;
    font-size: 0.9rem;
}

.wpcf7 label {
    font-size: 11px;
    margin-bottom: 3px;
    display: block;
}

.wpcf7 .wpcf7-submit {
    width: auto;
    font-size: 0.9rem;
    margin-top: 0;
    padding: 0.5rem 1rem;
    color: #fff;
    background-color: #3D474C !important;
    border: none;
}

.wpcf7-mail-sent-ok {
    background-color: #3D474C !important;
}
