@charset "utf-8";
/*
Theme Name: gates
Description: The original theme for potfolio
Version: 1
Author: 大宮 武_design
Author URI: 大宮 武_designのURL
*/
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Sawarabi Mincho";
}
body {
  animation: fadeIn 2s ease 0s 1 normal;
  -webkit-animation: fadeIn 2s ease 0s 1 normal;
}
@keyframes fadeIn {
    0% {opacity: 0}
    100% {opacity: 1}
}
@-webkit-keyframes fadeIn {
    0% {opacity: 0}
    100% {opacity: 1}
}

.serif {
  font-family: serif;
}

.news-column h2 {
  font-size: 1em;
}

.cat-name {
  position: absolute;
  top: 0;
  background: #000;
  text-align: center;
  padding: 4px;
  color: #fff;
  font-size: 1em;
  font-family: serif;
}

.mt-10 {
  margin-top: 10px;
}

a {
  color: #000;
  text-decoration: none;
}

li {
  list-style: none;
}

.center {
  text-align: center;
}

.bread ul {
  display: flex;
  margin: 0;
  padding: 0;
}

.bread li {
  margin: 0 10px;
}

.bread li:first-child {
  margin: 0;
  margin-right: 10px;
}

header {
  background: #000;
  color: #fff;
}

.header-text {
  display: flex;
  position: relative;
}

.header-text h1 {
  padding-left: 90px;
  margin-right: 1em;
}

.header-text p {
  position: relative;
  top: 20px;
}

.header-text .search {
  position: absolute;
  right: 40px;
  top: 34px;
}

.single-img-post {
  height: 400px;
}

.img-post-text {
  position: absolute;
  font-family: serif;
  left: 40px;
  top: 50%;
  color: #fff;
}

.page header, .single header, .category header {

}


.text-gray {
  color: #333;
}

section {
  position: relative;
  padding: 40px;
}

h2, h3, h4 {
  position: relative;
}

.underline::before {
  content: '';
  display: block;
  background: #333;
  height: 1px;
  width: 20px;
  position: absolute;
  bottom: -10px;
  left: 0;
}

.no-padding {
  padding: 0;
}

.flex-box {
  display: -webkit-box;
  display: box;
}

.flex-box div {
  -webkit-box-flex: 1;
  box-flex: 1;
  width: 100%;
  margin: 4px;
}

.flex-box .trim {
  overflow: hidden;
  width: auto;/* トリミングしたい枠の幅 */
  height: 240px;/* トリミングしたい枠の高さ */
  position: relative;
}

.flex-box .trim img {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: auto;
  height: 100%;
}

#container {
  position: relative;
}

.contents-area {
  padding: 40px 200px;
}

.sidebar {
  position: absolute;
  top: 0;
}

.hm_menu_check {
  display: none;
}

.hm_wrap {
	display: inline-block;
	position :fixed;
	top : 0;
	left :0;
	width :100%;
	padding :10px;
	background :rgba(0,0,0,0.5);
}

#menu-header_menu {
  flex-wrap: wrap;
}

.menu {
  display: flex;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
}

.hm_title {
	position: relative;
	color: #999;
	display: inline-block;
	float: left;
	font-weight: 100;
	line-height: 30px;
	margin: 0 0 0 15px;
	opacity: 0;
	-webkit-transform: translate3d(0, -15px, 0);
	transform: translate3d(0, -15px, 0);
	-webkit-transition: -webkit-transform 0.6s, opacity 0.5s;
	transition: transform 0.6s, opacity 0.5s;
	z-index: 2;
}

.hm_btn {
	position: absolute;
	width: 30px;
	height: 30px;
	cursor: pointer;
	display: block;
	float: left;
	z-index: 9;
  top: 32px;
  left: 6vh;
  transition: all 1s;
}
.hm_btn::before {
	-webkit-box-shadow: #fff 0 12px 0;
	box-shadow: #fff 0 12px 0;
}
.hm_btn::after {
	bottom: 6px;
}
.hm_btn::before,
.hm_btn::after {
	width: 30px;
	height: 1px;
	background: #fff;
	display: block;
	content: '';
	position: absolute;
	-webkit-transition: -webkit-box-shadow 0.2s linear, -webkit-transform 0.2s 0.2s;
	transition: box-shadow 0.2s linear, transform 0.2s 0.2s;
}

.hm_menu_wrap {
	width :100%;
	height :100%;
	background: rgba(0,0,0,0.6);
	position: fixed;
	left: -100%;
	top: 0;
	-webkit-transition: left 0.4s;
	transition: left 0.4s;
  z-index: 2;
}

.hm_menu_wrap li {
  margin-bottom: 1.2em;
  list-style: none;
  width: 150px;
  height: 100%;
  top: 0;
  left: 0;
  display: block;
  text-align: center;
  transition: all 1s;
}

.hm_menu_wrap li:nth-child(odd) {
  background: rgba(255,255,255,0.8);
}

.hm_menu_wrap li:nth-child(even) {
  background: rgba(255,255,255,0.9);
}

.hm_menu_wrap li:hover {
  background: rgba(0,0,0,0.9);
}

.hm_menu_wrap li a {
  color: #333!important;
  display: block;
  height: 100%;
  padding: 300px 40px;
  font-family: serif;
  transition: all 1s;
}

.hm_menu_wrap li a:hover {
  color: #fff!important;
}

.hm_menu_check:checked ~ .hm_title {
	opacity: 1;
	-webkit-transform: none;
	-ms-transform: none;
	transform: none;
}
.hm_menu_check:checked ~ .hm_btn::before {
	-webkit-box-shadow: transparent 0 0 0;
	box-shadow: transparent 0 0 0;
	-webkit-transform: rotate(45deg) translate3d(6px, 11px, 0);
	transform: rotate(45deg) translate3d(5px, 11px, 0);
  background: #fff;
}
.hm_menu_check:checked ~ .hm_btn::after {
	-webkit-transform: rotate(-45deg) translate3d(6px, -11px, 0);
	transform: rotate(-45deg) translate3d(5px, -11px, 0);
  background: #fff;
}
.hm_menu_check:checked ~ .hm_menu_wrap {
	left: 0;
  padding-top: 50px;
}

.fixed-box {
  position: fixed;
  z-index: 8;
  left: 10px;
  top: 10px;
  height: 300px;
  width: 90px;
  background: rgba(255,255,255,0.8);
}

.fixed-box .hm_btn {
  left: 6vh;
}

.b-none {
  border: none;
  background: none;
}

footer {
  position: relative;
}

footer section {
  background: #000;
  color: #fff;
}

footer a {
  color: #fff;
}

@media screen and (max-width:680px) {
.menu {
  display: block;
  height: 100%;
  position: relative;
  padding: 1em;
}
.single-img-post {
  height: 200px;
}
.img-post-text {
  top: 100%;
  color: #333;
}
.home .single-img-post {
  margin-bottom: 120px;
  border-bottom: 4px solid #f4f4f4;
}
.hm_menu_wrap li {
  margin-bottom: 1.2em;
  list-style: none;
  width: 100px;
  height: auto;
  text-align: left;
  transition: all 1s;
}

.hm_menu_wrap li:nth-child(odd) {
  background: none;
}

.hm_menu_wrap li:nth-child(even) {
  background: none;
}

.hm_menu_wrap li:hover {
  background: none;
}

.hm_menu_wrap li a {
  color: #fff!important;
  display: block;
  height: auto;
  padding: 0;
  transition: all 1s;
}

.flex-box div {
  margin: 0;
}
.header-text .search, .cat-name {
  display: none;
}
.header-text {
  display: block;
}
.header-text p {
  top: 0;
  left: 20px;
}
.hm_btn {
  left: 5vw;
}
section {
  padding: 10px;
}
.flex-box {
  display: block;
}
.flex-box .block {
  width: 100%;
}
.contents-area {
  padding: 40px 10px;
}
.sidebar {
  position: relative;
}
.button-area {
  display: flex;
}
.button-area div {
  width: 30px;
}
}
