/* 
style_m.css
for mobile
max-width: 765px
*/

/*===================================================== layout =======*/

#container {
  width: 100%;
}
#mainbox {
  width: 100%;
  padding-inline: 5px;
  padding-bottom: 20px;
  border-bottom: 1px solid #999;
}
#sidebarbox {
  width: 100%;
}
.site-header { /* header */
  height: 100px;
  background-color: #ffe;
  position: sticky;
  top: 0;
  width: 100%;
}
.site-main {
  margin: 0;
}
.site-footer { /* footer */
  background-color: #ddd;
  text-align: center;
}
.sidebar {
  background-color: #eee;
  padding: 1em;
}

/*================================================== responsive =======*/

.pc-only {
  display: none;
}
/* wp */
h2.wp-block-heading {
  font-size: 1.8em;
  font-weight: bold;
  padding-bottom: 2px;
  border-bottom: 1px solid;
}
h3.wp-block-heading {
  font-size: 1.4em;
  font-weight: bold;
  padding-bottom: 2px;
}
.wp-block-list { /*ul*/
  padding: 0.5em 2em;
  background-color: #eee;
  border: 1px solid #ccc;
  list-style-position: outside;
}
.wp-block-list li {
  list-style-type: disc;
  padding: 3px;
}

/* header */
.site-title {
  background-color: #fcc;
  padding: 0;
}
.site-title .logo {
  max-width: 80%;
  max-height: 100px;
}
/*  */
.item-list-box {
  margin: 0.5em 2em;
  padding: 1em;
  border: 1px solid #999;
}
/* footer */
.site-footer .footer-nav {
  text-align: center;
}
.site-footer .footer-nav li {
  display: inline-block;
  padding: 5px;
}
.site-footer .copyright {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 3px;
  font-style: italic;
}
/* widget */
.widget-1 {
  margin: 1em 0;
  border: 1px solid #ccc;
  padding: 1em;
}
.widget-2 {
  margin: 1em 0;
  border: 1px solid #ccc;
  padding: 1em;
}
/* post */

/* page */
.page-content {
  margin: 1em 0;
}
.page-content-body p {
  padding: 1em;
}
.page-content-body {
  padding: 1em 0;
}
/* archive */

/*================================================================== Navigation ====*/

.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 70px;
  cursor: pointer;
  position: fixed;
  z-index: 100;
  top: 10px;
  right: 10px;
  opacity: 0.9;
  background-color: #fff;
  border-radius: 5px;
  padding: 5px;
  box-shadow: 0 0 5px 0px #999;
}
.hamburger-line {
  width: 100%;
  text-align: center;
  height: 8px;
  background-color: #333;
  margin-bottom: 6px;
  transition: 0.3s;
}
.hamburger-line:nth-child(3) {
  margin-bottom: 1px;
}
.hamburger-menu::after {
  content: "MENU";
  font-size: 0.9em;
}
.open .hamburger-line:nth-child(1) {
  transform: translateY(14px) rotate(45deg);
}

.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform:translate(0);
}

.open .hamburger-line:nth-child(3) {
  transform: translateY(-14px) rotate(-45deg);
}
.main-menu {
  /*display: none;*/
  background-color: #ccc;
  opacity: 0.95;
  padding: 100px 0 1em; /*lineに合わせて*/
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99;
  margin: 0;
  width: 80%;
  height: auto;
  transition: 0.2s;
  transform: translate(100%); /* widthに合わせて */
}
.main-menu li {
  border-bottom: 1px solid #999;
  margin: 0;
  padding: 0;
}
.main-menu li:first-child {
  border-top: 1px solid #999;
}
.main-menu a {
  display: block;
  color: #000;
  font-size: 1em;
  margin: 0;
  padding: 1em 2em;
  text-decoration: none;
}
.main-menu a:hover, .main-menu a:active {
  color: #f00;
  background-color: #fcc;
}
.open + .main-menu {
  display: block;
  transition: all 0.2s;
  transform: translate(0); 
}
.sub-menu {
  padding-left: 2em
}
.sub-menu li:last-child {
  border-bottom: none;
}
