@charset "UTF-8";
/*
Theme Name: mytheme-css
Author: Basilico
Description: Original Theme
Version: 1.0
*/

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Exo+2:wght@400;600&display=swap");

/*-------- 変数 --------*/
:root {
  --f1: 1.875em; /* 30px */
  --f2: 1.625em; /* 26px */
  --f3: 1.375em; /* 22px */
  --f4: 1.125em; /* 18px */
  --f5: 1em; /* 16px */
  --f6: 0.8em; /* 12.8px */
  --basecolor: #2d4934;
  --lightgreen: #5a9268;
  --black: #111;
  --lightblack: #3c3c3c;
  --keyfont: "Montserrat", "sans-serif";
}

body {
  background-color: #f9fafb;
  color: var(--black);
  font-family: "Helvetica Neue", "Hiragino Sans", "Meiryo", sans-serif;
  box-sizing: border-box;
  margin: 0;
}

/*-------- common --------*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}
.wrapper {
  display: flex;
  margin-top: 40px;
}
h1 {
  font-size: var(--f1);
}
h2 {
  font-size: var(--f2);
}
h3 {
  font-size: var(--f3);
}
h4 {
  font-size: var(--f4);
}
h5 {
  font-size: var(--f5);
}
h6 {
  font-size: var(--f6);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--lightgreen);
}
ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}
p {
  line-height: 1.8em;
}

/*-------- header --------*/
.header {
  background-color: #2d4934;
  position: relative;
  font-family: "Exo 2", "sans-serif";
  margin-bottom: 1vw;
  padding: 1vw 0 1.5vw;
}
.header:after {
  content: "";
  background-image: url("data:image/svg+xml;utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'><path d='M12 0l12 12H0z' fill='%23f2f3f8'/></svg>");
  background-size: 24px 24px;
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 100%;
  height: 24px;
  z-index: 3;
}
.menu-nav-container {
  max-width: 1300px;
  margin: 0 auto;
}
#menu-nav {
  display: flex;
  justify-content: flex-end;
  color: #fff;
  font-weight: 700;
  margin: 0;
}
#menu-nav li {
  padding: 0 20px;
}
.toplogo-wrap {
  text-align: center;
}
.toplogo-wrap h1 {
  margin: 0;
}
.sidebar-btn {
  display: none;
}

/*-------- front-page --------*/
.main-wrap {
  flex: 1;
}
.list-wrap {
  background-color: #fff;
  padding: 15px;
  margin: 30px 0 50px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}
.list-wrap h1 {
  font-size: var(--f4);
  margin-bottom: 8px;
}
.list-title {
  font-size: var(--f5);
  border-bottom: 1px dashed var(--lightgreen);
}
.post-list {
  margin-top: 20px;
}
.post-list h2 {
  font-size: var(--f5);
  text-indent: -1em;
  padding-left: 1em;
}
.post-list span {
  padding-right: 5px;
}
.post-list .post-date {
  margin-left: 10px;
  font-size: var(--f6);
}

/*-------- single-page --------*/
.content a {
  color: var(--lightgreen);
}
.content a:hover {
  color: var(--black);
  text-decoration: underline;
}
.posthead {
  margin-top: 45px;
}
.posthead h1 {
  padding-left: 14px;
  border-left: solid 10px var(--lightgreen);
}
.post-info {
  display: flex;
  margin-left: 30px;
}
.post-categories {
  display: flex;
  max-width: 170px;
  margin-right: 5%;
}
.post-categories::before {
  content: "\f527";
  color: var(--lightgreen);
  font-family: "dashicons";
  font-size: var(--f2);
  line-height: 1;
  margin-right: 10px;
}
.post-categories li:not(last-child) {
  margin-right: 10px;
}
.post-categories a {
  color: var(--lightgreen);
  font-size: var(--f6);
  padding: 3px 6px;
  border: solid 1px currentColor;
  border-radius: 5px;
}
.post-categories a:hover,
.post-tags a:hover {
  opacity: 0.6;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
}
.post-tags::before {
  content: "\f323";
  color: var(--lightgreen);
  font-family: "dashicons";
  font-size: var(--f2);
  line-height: 1;
  margin-right: 10px;
}
.post-tags a {
  background: #ddd;
  color: var(--black);
  font-size: var(--f6);
  white-space: nowrap;
  margin: 0 6px 10px 0;
  padding: 3px 5px;
  border-radius: 5px;
}
.article-date {
  font-size: var(--f5);
  margin-right: 20px;
  margin-left: auto;
}
.tagcloud a {
  background: #ddd;
  display: inline-block;
  color: var(--black);
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 5px;
}
.content {
  margin: 70px 0;
}

/*-- タグ用ハイライト --*/
.tadv-background-color {
  padding: 0 6px;
  border-radius: 3px;
}

/*-- codepen --*/
.cp_embed_wrapper {
  margin: 70px 0;
}

/*-- 前後記事へのリンク --*/
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal imp !important;
}
.nav-links {
  display: flex;
  margin: 30px 0;
  font-size: var(--f5);
}
.nav-previous {
  flex: 1;
  display: flex;
  align-items: center;
}
.nav-next {
  flex: 1;
  margin-left: 10px;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.nav-previous a,
.nav-next a {
  color: var(--lightgreen);
}
.nav-previous a:hover,
.nav-next a:hover {
  color: inherit;
}
.nav-previous::before {
  content: "\f341";
}
.nav-next::after {
  content: "\f345";
}
.nav-previous::before,
.nav-next::after {
  font-family: "dashicons";
  color: var(--lightgreen);
  font-size: var(--f2);
  line-height: 1;
}
/*-------- sidebar --------*/
.sidebar-right {
  width: 300px;
  font-size: 14px;
  margin: 30px 0 50px 6%;
}
.sidebar-right h2 {
  font-size: var(--f4);
  padding-bottom: 5px;
}
.sidebar-right ul {
  padding: 0 10px;
}
.sidebar-right ul li {
  margin-bottom: 8px;
}
.widget {
  margin-bottom: 60px;
}
.widgettitle {
  font-family: var(--keyfont);
  border-bottom: 1px dashed var(--lightgreen);
}
.widget-categories li::before {
  content: "\f109";
  color: var(--basecolor);
  font-family: "dashicons";
  font-size: var(--f4);
  margin-right: 10px;
  position: relative;
  top: 4px;
}
.recent-posts li::before {
  content: "\f464";
  color: var(--basecolor);
  font-family: "dashicons";
  font-size: var(--f4);
  margin-right: 3px;
  position: relative;
  top: 4px;
}
.recent-posts li {
  text-indent: -1.6em;
  padding-left: 1.6em;
}
/*-------- search-box --------*/
#custom_html-3 {
  padding-top: 20px;
}
.search-box {
  position: relative;
  width: 300px;
  margin: 0 auto;
}
.search-form {
  display: inline-block;
  position: relative;
  height: 30px;
  border: 5px solid var(--basecolor);
  border-radius: 20px;
}
input#cbox {
  display: none;
  width: 0%;
}
input#sbox {
  position: relative;
  background: transparent;
  color: var(--basecolor);
  width: 0px;
  height: 30px;
  padding: 0px 15px;
  transition: width 0.5s;
  border: none;
  z-index: 2;
}
input#sbox::placeholder {
  color: #ffb862;
}
input#sbox:focus {
  width: 250px;
  outline: none;
  margin-right: 30px;
}
.close {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 30px;
  height: 30px;
  transition: 0.2s ease-in-out;
  cursor: pointer;
  z-index: 1;
}
.close span {
  background: var(--basecolor);
  display: block;
  position: absolute;
  top: 30px;
  right: -13px;
  width: 20px;
  height: 6px;
  border-radius: 3px;
  transition: 0.2s 0.5s ease-in-out;
  transform: rotate(45deg);
}
.close span.back {
  top: 12px;
  right: 5px;
  opacity: 0;
}
input#sbox:focus + .close span {
  top: 12px;
  right: 5px;
}
input#sbox:focus + .close span.back {
  transition: 0.5s 0.7s ease-in-out;
  transform: rotate(-45deg);
  opacity: 1;
}
.search-txt {
  position: absolute;
  top: 10px;
  left: 60px;
  font-family: var(--keyfont);
  font-size: var(--f5);
  font-weight: 600;
  opacity: 1;
}
::-webkit-search-cancel-button {
  -webkit-appearance: none; /*-- ×を消す--*/
}

/*-------- bookmark-page --------*/
.post-217 .post-info,
.post-217 .nav-links {
  display: none;
}
.post-217 .content {
  margin-left: 40px;
}
.post-217 .content > ul li {
  list-style: disc;
}
.post-217 p {
  margin: 3px 0 30px;
}
.post-217 .content ul li a {
  font-weight: bold;
}

/*-------- footer --------*/
footer {
  background: var(--basecolor);
  color: #fff;
  text-align: center;
  padding: 30px 0;
}

@media screen and (max-width: 1024px) {
  .toplogo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  img {
    width: 80%;
  }
  .wrapper {
    flex-direction: column;
    padding: 0 5%;
  }
  .main-wrap {
    margin-bottom: 50px;
  }
  .post-info {
    flex-direction: column;
  }
  .post-categories {
    margin: 0 0 10px;
  }
  .post-tags a {
    font-size: 12px;
    padding: 3px 5px 0 5px;
  }
  .sidebar-right {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    border-top: 1px dashed var(--lightgreen);
  }
  #custom_html-3 {
    width: 100%;
    padding-top: 50px;
  }
  #custom_html-2 {
    display: none;
  }
  #categories-3 {
    width: 30%;
    min-width: 142px;
    margin-right: 10%;
  }
  #recent-posts-3 {
    width: 60%;
  }
  #tag_cloud-2 {
    width: 100%;
  }

  /*-------- Hamberger --------*/
  .sidebar-btn {
    display: inline-block;
    position: absolute;
    right: 0;
    top: -5px;
    margin: 10px;
    padding: 10px;
    cursor: pointer;
    z-index: 6;
  }
  .menu-icon {
    position: relative;
    width: 30px;
    height: 30px;
  }
  .bar {
    position: absolute;
    height: 5px;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    transition: ease 0.3s;
  }
  .top {
    top: 12%;
  }
  .middle {
    top: 42%;
  }
  .bottom {
    top: 72%;
  }
  .close .top {
    transform: rotate(45deg);
    top: 48%;
  }
  .close .middle {
    opacity: 0;
  }
  .close .bottom {
    transform: rotate(-45deg);
    top: 48%;
  }

  /*-------- button decoration --------*/
  .menu-icon.active {
    transform: rotate(360deg);
  }
  .menu-icon.active span:nth-of-type(1) {
    transform: translateY(10px) rotate(-45deg);
  }
  .menu-icon.active span:nth-of-type(2) {
    transform: translateY(0) rotate(45deg);
  }
  .menu-icon.active span:nth-of-type(3) {
    opacity: 0;
  }

  /*-------- sidebar --------*/
  .menu-nav-container {
    position: fixed;
    top: 0;
    right: -250px;
    background-color: rgba(45, 73, 51, 0.98);
    width: 250px;
    height: 100%;
    transition: 0.3s;
    z-index: 5;
  }
  #menu-nav {
    display: flex;
    flex-direction: column;
    padding-top: 80px;
  }
  .active {
    right: 0;
  }
  .sidebar-btn.non-active {
    right: -250px;
  }
  .menu-nav-container ul {
    display: block;
  }
  .menu-nav-container li a {
    display: block;
    padding: 20px 20px;
    border-bottom: 1px solid rgba(181, 201, 96, 0.2);
  }
}

@media screen and (max-width: 600px) {
  .toplogo-wrap {
    min-height: 85px;
  }
  img {
    width: 55%;
  }
  .sidebar-btn {
    top: 5px;
  }
  .wrapper {
    padding: 0;
  }
  .post-info {
    margin-left: 0;
  }
  .post-tags a {
    font-size: 10px;
    margin-right: 5px;
  }
  .sidebar-right {
    flex-direction: column;
    padding: 0 auto;
  }
  #categories-3,
  #recent-posts-3 {
    width: 100%;
  }
  .post-217 .content {
    margin-left: 20px;
  }
}
