/*
Theme Name: migi
Description: ミギムキ
Theme URI: migi
Author: flat8
Author URI: migi
Version: 1.0
License: flat8
License URI: flat8
*/

html, body, div, span, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, address, em, img, dl, dt, dd, ol, ul, li, form, label,
table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figcaption, figure, footer, header, menu, nav, section, time, video {
    margin: 0px;
    padding: 0px;
    border: none;
    outline: none;
    box-sizing: border-box;
}

body {
    padding: 0px;
    margin: 0px;
    line-height: 1.5;
    color: #555;
    font-size: 18px;
    font-family: "Lato", "Noto Sans Japanese", sans-serif;
    overflow-x: hidden;
}
@media screen and (max-width: 767px) {
    body {
        font-size: 15px;
    }
}

a {
    color: #3388dd;
}

button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
}

.header_title {
    padding: 0.5em 0px;
    background-color: #3388dd;
    text-align: center;
}

.header_title > a {
    color: #fff;
    font-size: 3rem;
    text-decoration: none;
    letter-spacing: 0.5em;
    font-weight: bold;
}
@media screen and (max-width: 767px) {
    .header_title > a {
        font-size: 2rem;
    }
}

.header_nav {
    padding: 20px 0px;
    background-color: #3080d0;
}

.header_nav .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.header_nav .menu li {
    margin: 0px 1em;
}

.header_nav .menu a {
    color: #fff;
    text-decoration: none;
}
.header_nav .menu a:hover {
    text-decoration: underline;
}

.footer {
    margin: 90px 0px 0px;
}

.footer_nav {
    padding: 20px 0px;
    background-color: #3388dd;
}

.footer_nav .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.footer_nav .menu a {
    color: #fff;
    text-decoration: none;
}
.footer_nav .menu a:hover {
    text-decoration: underline;
}

.post_link {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.post_link > a {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44%;
    height: 6em;
    padding: 0px 1em;
    margin: 60px 2% 0px;
    border-top: 1px solid #3388dd;
    border-bottom: 1px solid #3388dd;
    color: #3388dd;
    text-decoration: none;
}
.post_link > a:hover {
    border-top-right-radius: 5em;
    border-bottom-right-radius: 5em;
    background-color: #3388dd;
    color: #fff;
}
.post_link > a:hover:after {
    position: absolute;
    top: 50%;
	right: -8em;
    z-index: -1;
    transform: translateY(-50%);
	border: 5em solid transparent;
	border-left: 8em solid #3388dd;
    content: "";
}

@media screen and (max-width: 991px) {
    .post_link > a {
        width: 98%;
    }
}

h1 {
    padding: 0px 0px 20px;
    margin: 20px 0px 0px;
    border-bottom: 2px solid #3388dd;
}

h2 {
    padding: 0px 0px 0px 20px;
    margin-top: 60px;
    border-left: 10px solid #3388dd;
}

h3 {
    position: relative;
    margin-top: 30px;
    padding: 0px 0px 0px 30px;
}
h3:before {
    position: absolute;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #3388dd;
    content: "";
}

@media screen and (max-width: 767px) {
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.25rem;
    }
    h3 {
        font-size: 1.25rem;
    }
}
@media print, (min-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.5rem;
    }
}

article {
    width: 98%;
    padding: 0px 1em;
    margin: 30px auto 0px;
}
@media print, (min-width: 1000px) {
    article {
        width: 1000px;
        padding: 0px 0px 0px 60px;
        margin: 60px auto 0px;
        border-left: 2px solid #3388dd;
    }
}

article p {
    line-height: 1.5;
}
article p + p {
    margin-top: 1em;
}

article img {
    display: block;
    margin: 30px 0px 0px;
    border: 1px solid #ccc;
}
@media screen and (max-width: 699px) {
    article img {
        max-width: 100%;
    }
}
@media print, (min-width: 800px) {
    article img {
        padding: 10px;
        max-width: 800px;
    }
}

article ul {
	padding: 0px;
	margin: 30px 0px 0px 1em;
}
article ul ul {
	margin: 1em 0px 0px 1.5em;
}
article li {
	line-height: 1.5;
}
article li + li {
	margin: 1em 0px 0px 0px;
}
article li.none {
	list-style: none;
}

article ol {
    padding: 0px;
    margin: 30px 0px 0px;
    counter-reset: list_circle_num_counter;
}
article ol > li {
    position: relative;
    padding: 0px 0px 0px 2em;
    list-style: none;
    counter-increment: list_circle_num_counter;
}
article ol > li:before {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
    width: calc(1.5em);
    height: calc(1.5em);
    background-color: #3388dd;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 1;
    content: counter(list_circle_num_counter);
}

table {
    border-collapse: collapse;
    table-layout: fixed;
}

th,
td {
    padding: 10px;
    border: solid 1px #ccc;
}

th {
    background-color: #3388dd;
    color: #fff;
}

.nikkei_table th:nth-of-type(1) {
    width: 5em;
}

.post_date {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.post_date > span {
    margin: 0px 0px 0px 1em;
}

dl.table {
    margin: 30px 0px 0px;
}

dl.table,
dl.table > dt,
dl.table > dd {
    box-sizing: border-box;
}

dl.table > dt,
dl.table > dd {
    padding: 1em;
    margin: 0px;
}

dl.table > dt {
    background-color: #3388dd;
    color: #fff;
}

dl.table > dd {
    background-color: #fff;
}

dl.table > dd ul {
    margin-top: 0px;
}

@media screen and (max-width: 767px) {
    dl.table > dt,
    dl.table > dd {
        text-align: center;
    }
    dl.table > dd > ul {
        text-align: left;
    }
}
@media print, (min-width: 768px) {
    dl.table {
        display: flex;
        flex-wrap: wrap;
        border-bottom: 1px solid #ccc;
    }
    dl.table > dt,
    dl.table > dd {
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-top: 1px solid #ccc;
    }
    dl.table > dt {
        width: 30%;
    }
    dl.table > dd {
        width: 70%;
        border-right: 1px solid #ccc;
    }
}

p {
    margin: 30px 0px 0px;
}

p + p {
    margin: 1em 0px 0px;
}

.example {
    padding: 2em;
    margin: 30px 0px 0px;
    background-color: #efefef;
}

.example p:nth-of-type(1) {
    margin-top: 0px;
}

.index_link {
    display: table;
    padding: 2em 3em;
    margin: 30px 0px 0px;
    background-color: #efefef;
}

.index_link > ul {
    margin: 0px;
}

.attention {
    color: red;
    font-weight: 500;
}

code {
    display: block;
    padding: 1.5em 2em;
    margin: 30px 0px 0px;
    background-color: #000;
    color: #fff;
    font-size: 0.9rem;
    font-family: Consolas, "Courier New", Courier, Monaco, monospace;
    white-space: pre;
    overflow-x: auto;
}

.em {
    color: #3388dd;
    font-weight: bold;
}

.copy_code {
    display: block;
    position: relative;
    padding: 10px;
    width: 100%;
    background-color: #3388dd;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
}
.copy_code:after {
    position: absolute;
    bottom: -5px;
    left: 0px;
    width: 100%;
    height: 5px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: #18548f;
    content: "";
}
.copy_code:active {
    transform: translateY(5px);
}
.copy_code:active:after {
    top: -5px;
    border-radius: 0px;
    background-color: #000;
}

.popup {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    z-index: 9999;
    transform: translateY(100%);
    padding: 1em;
    margin: 0px;
    background-color: #3388dd;
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: 0.5s;
}
.popup.js_active {
    transform: translateY(0%);
    opacity: 1;
}

.popup p {
    margin: 0px;
}

.btn_share {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.btn_share > a {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    margin: 0px 10px;
    border-radius: 50%;
    color: #fff;
    font-size: 2.5rem;
    text-decoration: none;
}
.btn_share > a:before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-family: "Font Awesome 5 Brands";
    font-weight: 400;
}
.btn_share > .btn_share_fb {
    background-color: #3b5998;
}
.btn_share > .btn_share_fb:before {
    content: "\f39e";
}
.btn_share > .btn_share_twitter {
    background-color: #1da1f2;
}
.btn_share > .btn_share_twitter:before {
    content: "\f099";
}
.btn_share > .btn_share_hatena {
    background-color: #008fde;
}
.btn_share > .btn_share_hatena:before {
    font-family: Verdana;
    font-weight: bold;
    content: "B!";
}

.adsense_square {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 40px -5px 0px;
}

.adsense_square_item {
    margin: 0px 5px;
    width: calc(33.3% - 10px);
}

.adsense_post {
    margin: 30px auto 0px;
    border: 1px solid #eee;
    border-top: none;
    background-color: #eee;
}

.adsense_post_title {
    padding: 5px 5px 5px 1em;
    background-color: #3388dd;
    color: #fff;
    font-size: 0.75rem;
}

.popup_adsense,
.popup_amazon {
    display: none;
    margin: 30px auto 0px;
}
.popup_adsense.js_active,
.popup_amazon.js_active {
    display: table;
}

.popup_adsense_title {
    margin: 0px 0px 1em;
    color: #fff;
    font-size: 0.75rem;
    text-align: center;
}

.amazon_affiliate {
    display: table;
    margin: 60px auto 0px;
}
@media screen and (max-width: 900px) {
    .amazon_affiliate {
        display: none;
    }
}

.amazon_item {
    display: table;
    margin: 30px 0px 0px;
}

.amazon_item img {
    margin: 0px;
}

.video_wrapper {
    margin: 30px 0px 0px;
}
.video_wrapper > video {
    max-width: 100%;
    border: 1px solid #ccc;
}
@media screen and (max-width: 699px) {
    .video_wrapper {
        max-width: 100%;
    }
}
@media print, (min-width: 700px) {
    .video_wrapper {
        max-width: 700px;
    }
}

.pagination {
    margin: 60px 0px 0px;
}

.pagination > ul {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px;
    list-style: none;
}

.pagination > ul > li {
    margin: 0px 0.5em;
    width: 2em;
    height: 2em;
}

.pagination > ul > li > a,
.pagination > ul > li > span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #3388dd;
    box-sizing: border-box;
}

.pagination > ul > li > a {
    border: 1px solid currentColor;
    text-decoration: none;
}

.pagination > ul > li > .current {
    border: 1px solid #3388dd;
    background-color: #3388dd;
    color: #fff;
}

.pagination > ul > li > .prev,
.pagination > ul > li > .next {
    position: relative;
    border: none;
}
.pagination > ul > li > .prev::before,
.pagination > ul > li > .next::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.75em;
    height: 0.75em;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    content: "";
}
.pagination > ul > li > .prev::before {
    transform: translateX(-50%) translateY(-50%) rotate(225deg);
}
.pagination > ul > li > .next::before {
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.breadcrumb > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0px;
    font-size: 0.75rem;
    list-style: none;
}

.breadcrumb > ul > li + li {
    position: relative;
    margin: 0px 0px 0px 2em;
}
.breadcrumb > ul > li + li::before {
    position: absolute;
    top: 50%;
    left: -1.5em;
    transform: translateY(-50%) rotate(45deg);
    width: 0.5em;
    height: 0.5em;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    content: "";
}

.searchform {
    display: table;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9999;
}

.searchform_button:hover {
    cursor: pointer;
}

.searchform_check {
    display: none;
}

.searchform_popup {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 20em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: bottom 0.5s, opacity 0.5s;
}
.searchform_check:checked + .searchform_popup {
    bottom: -150%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.searchform_popup form {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.searchform_popup input {
    box-sizing: border-box;
}
.searchform_popup input[type="text"] {
    padding: 0.5em 1em;
    width: 80%;
}
.searchform_popup input[type="submit"] {
    padding: 0.5em;
    width: calc(20% - 10px);
}

.magnifying_glass {
    display: table;
    position: relative;
    width: 1em;
    height: 1em;
    color: #fff;
    font-size: 2rem;
}
.magnifying_glass::before {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 0.7em;
    height: 0.7em;
    box-sizing: border-box;
    border: 0.15em solid currentColor;
    border-radius: 50%;
    background-color: #3388dd;
    content: "";
}
.magnifying_glass::after {
    position: absolute;
    top: 0px;
    left: 50%;
    z-index: -1;
    transform: rotate(-45deg);
    width: 0.15em;
    height: 1em;
    box-sizing: border-box;
    background-color: currentColor;
    content: "";
}

.open_inline_form {
    display: block;
    width: 80%;
    padding: 1em;
    margin: 30px auto 0px;
    border: none;
    border-radius: 15px;
    background-color: #ffaa00;
    outline: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}
.open_inline_form:hover {
    opacity: 0.8;
}

.bg_inline_form {
    display: block;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;
}

.bg_inline_form.js_active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.inline_form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    padding: 30px;
    max-height: 90%;
    background-color: #fff;
    overflow-y: auto;
}
@media screen and (max-width: 767px) {
    .inline_form {
        width: calc(100% - 20px);
    }        
}
@media print, (min-width: 768px) {
    .inline_form {
        width: 90%;
        max-width: 900px;
    }
}

.close_inline_form {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: rotate(45deg);
    border: none;
    background: none;
    outline: none;
    width: 30px;
    height: 30px;
}
.close_inline_form::before,
.close_inline_form::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: #3388dd;
    content: "";
}
.close_inline_form::before {
    width: 60%;
    height: 3px;
}
.close_inline_form::after {
    width: 3px;
    height: 60%;
}
.close_inline_form:hover {
    cursor: pointer;
}
