@charset "utf-8";
/* 
Theme Name: kgo
Author: atsunori hitaka
Version: 1.0
Description: KGO のポートフォリオサイトです。
*/

/* ====全体の設定==== */
*,
*::before,
*::after{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{
  overflow-x: hidden;
}
body{
  width: 100%;
  min-height: 100vh;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}
a{
  text-decoration: none;
  transition: all .25s;
}
img{
  width: 100%;
  max-width: 100%;
  height: auto;
  border: none;
  vertical-align: bottom;
}
address{
  font-style: normal;
}
time{
  font-size: 14px;
}
table{
  border: 2px solid #333;
  border-collapse: collapse;
  border-spacing: 0;
}
th{
  border: 2px solid #333;
  padding: 5px;
}
td{
  border: 2px solid #333;
  padding: 5px;
}
ul li{
  list-style-position: inside;
}
nav ul li,
ul.sidebar-widgets li.widget_nav_menu{
  list-style: none;
}
header,footer,main,section,article{
  width: 100%;
  height: auto;
}
/* ====header==== */
header{
  padding: 16px;
  background-color: #fff;
}
/* ====footer==== */
footer{
  padding: 16px;
  background-color: #fff;
}
.footer .menu-item{
  margin-bottom: 5px;
}
.footer .menu-item a{
  color: #333;
}
.footer .menu-item a:hover{
  color: #fe9c24;
}
.copyright{
  padding-top: 20px;
  font-size: 16px;
  text-align: center;
  border-top: 4px solid #aaa;
  margin: 20px auto;
}
/* ====main==== */
main{
  background-color: #efefef;
}
.content{
  width: 95%;
  margin: 0 auto;
}

/* ====個別投稿ページのスタイル==== */
.single .article{
  max-width: 960px;
  margin: 0 auto;
}

.post-thumb{
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.post-meta{
  padding: 40px 20px;
}
/* ====archiveページのスタイル==== */
/* archive-header */
.archive-header{
  background-color: #fff;
}
/* card-wrapper */
.card-wrapper{
  width: 95%;
  margin: 0 auto;
}
/* card-link */
.card-link{
  display: block;
  width: 100%;
  color: #333;
}
/* card */
.card {
  width: 98%;
  max-width: 960px;
  height: auto;
  margin: 20px auto;
  padding: 10px;
  border: solid 1px #ccc;
  background-color: #eee;
  justify-content: start;
  box-shadow: 1px 2px 2px #222;
}
.card:hover{
  box-shadow: 3px 4px 8px #222;
  opacity: 0.8;
}
.archive-thumb{
  width: 100%;
}
.archive-text{
  width: 100%;
  padding: 10px;
}
/* ====paginationの設定==== */
.excerpt-pagination {
  text-align: center;
}
.pagination .screen-reader-text{
  display: none;
}
.post-pagination{
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.paginate{
  margin: 10px;
} 
.nav-links{
  padding-bottom: 20px;
}
.page-numbers{
  color: #333;
  padding: 5px;
  border: 1px solid #333;
}
.page-numbers:hover{
  background-color: #fe9c24;
}
/* ====上に戻るボタン==== */
#page-top{
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 999;
  width: 50px;
  height: 50px;
  padding: 10px;
  color: #fff;
  background-color: #fe9c24;
  text-align: center;
  cursor: pointer;
}
#page-top a{
  color: #fff;
  vertical-align: middle;
}
/* ====ハンバーガーメニュー==== */
input[type="checkbox"]#menu{
  position: absolute;
  top: -120%;
}
.mobile_btn{
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  display: flex;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: #fe9c24;
}
.mobile_btn span{
  position: relative;
  top: 24px;
  display: block;
  width: 40px;
  height: 3px;
  margin: 0 auto;
  background-color: #fff;
}
.mobile_btn span::before,
.mobile_btn span::after{
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  margin: 0 auto;
  background-color:#fff;
  transition: all .2s ease-in-out;
}
.mobile_btn span::before{
  top: -10px;
}
.mobile_btn span::after{
  top: 10px;
}
input[type="checkbox"]#menu:checked ~ .mobile_btn span{
  background-color: transparent;
}
input[type="checkbox"]#menu:checked ~ .mobile_btn span::before{
  transform: translateY(10px) rotate(45deg);
}
input[type="checkbox"]#menu:checked ~ .mobile_btn span::after{
  transform: translateY(-10px) rotate(-45deg);
}
/* mobileナビエリアの設定 */
.mobile_nav{
  position: fixed;
  top: -120%;
  z-index: 999;
  width: 100%;
  background-color: #fff;
  transition: .2s;
  opacity: .9;
  box-shadow: 0 1px 10px #121212;
}
input[type="checkbox"]#menu:checked ~ .mobile_nav{
  position: fixed;
  top: 0;
}
.mobile_nav li{
  border-bottom: 1px solid #ccc;
}
.mobile_nav a{
  display: block;
  width: 100%;
  padding: 10px;
  color: #121212;
  font-size: 16px;
  font-weight: bold;
}
/* 固定ページタイトルのスタイル */
.page-title{
  margin: 0 auto 80px;
  padding-top: 40px;
  font-size: 32px;
  text-align: center;
}
.page .content p{
  max-width: 960px;
  margin: 0 auto;
}
.page .content table{
  max-width: 960px;
  margin: 0 auto;
}
/* topページの最新の投稿一覧 */
.home .wp-block-latest-posts__list{
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px;
  background-color: #ddd;
  text-align: center;
  border-radius: 5px;
  box-shadow: 2px 2px 5px #000;
}
.home .wp-block-latest-posts.wp-block-latest-posts__list li {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
}
.home .wp-block-latest-posts.wp-block-latest-posts__list li time{
  font-size: 18px;
}
.home .wp-block-latest-posts.wp-block-latest-posts__list li a{
  padding: 10px;
  font-size: 20px;
}
/* お問合せページのテーブル */
.contact-table table{
  max-width: 800px;
  margin: 0 auto;
  padding: 5px;
}

/* PC版ナビを非表示 */
.menu-header_nav-container{
  display: none;
}
/* ====表示に関する設定==== */
.pc{display: none;}
.mb{display: block;}
.flex{display: flex;}

/* PC用の設定 */
@media screen and (min-width: 1025px){
  .mb{display: none;}
  .pc{display: block;}
  .pc-flex{display: flex;}

  /* h1見出しのスタイル */
  .article h1, .content h1{
  font-size: 1.625rem;
  }

  /* archiveページのスタイル */
  .archive-thumb{
    max-width: 300px;
  }

  /* headerロゴ */
  .site-logo{
    width: 200px;
    height: auto;
    margin-bottom: 16px;
  }

  /* PC版ナビを表示 */
.menu-header_nav-container{
  display: block;
}

  /* headerナビの設定 */
  #menu-header_nav{
    display: flex;
    justify-content: center;
    max-width: 960px;
    margin: 0 auto;
  }
  .header .menu-item{
    border-left: 1px solid #333;
  }
  .header .menu-item:last-child{
    border-right: 1px solid #333;
  } 
  .header ul.sidebar-widgets li.widget_nav_menu a{
    font-size: 18px;
    font-weight: bold;
    padding: 16px 40px;
    border-bottom: 4px solid #ddd;
    color: #333;
    transition: all 0.2s;
    cursor: pointer;
  }
  .header ul.sidebar-widgets li.widget_nav_menu a:hover{
    color: #3fdfff;
    border-bottom: 4px solid #3fdfff;
  }

  /* =====サブメニュー設定===== */
.sub-menu {
  display: none;
}
.menu-item-has-children {
  position: relative;
}
.menu-item-has-children:hover {
  cursor: pointer;
}
.menu-item-has-children:hover .sub-menu {
  display: block;
}
.sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 105%;
  z-index: 100;
  width: 300px;
  color: #121212;
  background-color: #fff;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
}
.sub-menu .menu-item{
  padding: 0;
  border-bottom: 1px solid #ccc;
}
.sub-menu .menu-item a {
  display: inline-block;
  width: 100%;
  height: 100%;
  padding: 4px 20px;
  font-size: 12px;
  color: #121212;
  background-color: #fff;
}
.sub-menu .menu-item a:hover {
  color: #fff;
  background-color: #121212;
}

  /* footerナビの設定 */
  #menu-footer_nav{
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    width: 800px;
    margin: 0 auto;
  }
  #menu-footer_nav li{
    width: 25%;
    margin-bottom: 20px;
  }
 
  #menu-footer_nav li a{
    font-weight: bold;
    color: #333;
    transition: all .2s;
  }
  #menu-footer_nav li a:hover{
    color: #3fdfff;
  }

  /* お問合せページのテーブル */
  .contact-table table{
    font-size: 24px;
  }
}