/*
Theme Name: genken
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/

@charset "UTF-8";

* {
  box-sizing: border-box;
} /*全ての要素をborder-boxにするーーコンテンツ、border、paddingの合計がwidthと解釈される*/

html {
  font-size: 100%;
}
/*設定した文字サイズを正しく反映*/

img {
  max-width: 100%;
}
/*画像の大きさの指定。画像が親要素よりも大きくなることを防ぐ*/

body {
  background-color: white;
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

a {
  cursor: pointer;
}

main {
  margin: auto;
}

.back-blue{
  height: 140px;
  background-color: #cbe7ed;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.back-blue img{
  height: 53px;
}

h1{
  font-weight: bold;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

.single-area {
  display: flex;
  margin: 100px auto;
  width: 70%;
  /*margin-right: 174px;*/
}

.single-main {
  width: 80%;
  display: flex;
  flex-direction: column;
  /*margin-left: 259px;*/
}

.single-title {
  text-align: start;
  margin: auto;
  font-size: 32px;
}

.wp-block-media-text_content {
  padding-right: 0px;
}

/* 執筆者と投稿日・カテゴリー名を横並びにする*/
.writer-date-category-wrap {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}

.single-contents {
  text-align: justify;
}

p.writer-name, p.single-contents-date, .single-contents p,  p.ma-forumn-category, p.image-caption {
  font-size: 16px;
  line-height: 1.75;
}

.single-date-ca-wrap {
  display: flex; /* Flexboxを使用して要素を横並びにする */
  flex-direction: column; /* 縦方向に配置する */
  text-align: left;
}

.single-contents-date {
  margin-bottom: 5px;
}

.ma-forumn-category {
  margin-top: 5px;
}

.single-image {
  display: block;
  text-align: center;
  margin:30px auto;
}

.aside-area {
  display: none;
  flex-direction: column;
  width: 20%;
  margin-left: 85px;
  margin-top: 80px;
}

.aside-content {
  margin-top: 50px;
  margin-bottom: 20px; /* 要素間のスペースを調整 */
}

.aside-area-search {
  text-align: center;
  font-size: 24px;
}

.archive-month-wrap h4 {
  font-size: 20px;
  margin-top: 100px;
}

.category-links h4 {
  font-size: 20px;
}

#post-search{
  position: relative;/*虫メガネボタンの配置基準*/
  font-size: 20px;
} 

.post-searchfield {
  height: 50px;
  box-sizing: border-box;
  width: 90%;
  border: 1px solid rgb(34, 33, 33);
  border-radius: 4px;
  background: transparent;
}

#post-submit{
  position: absolute; /*post-searchfieldの右端に重ねる*/
  bottom: 5px5px;
  right: -5px;
  background: url('g3/image/musimegane.png') no-repeat;
  background-size: contain; 
  width: 4rem; /* ボタンの幅*/
  border: none; /* ボーダーなし*/
  cursor: pointer; /* カーソルをポインターに変更*/
}

ul.archive-list, ul.category-list{
  padding-left: 0px;
  font-size: 16px;
}

.category-links {
  margin-top: 100px;
}

.category-links h4 {
  margin-left: 0px;
}



/*====================メディアクエリーcss=======*/

@media (max-width: 678px) {
  .back-blue {
    font-size: 22px;
    height: 80px;
  }

  h1 {
    font-size: 22px;
  }

  .single-title  {
    font-size: 24px;
  }
  .single-area {
    display: block;
    width: 82.4%;
    margin: 50px auto;
    /*margin-left: auto;
    margin-right: auto;/*mainとsidebar横並びを外す*/
  }

  .single-main {
    width: 100%;
  }

   h3.wp-block-heading {
    font-size: 18px;
  }

  p.writer-name, p.single-contents-date, .single-contents p,  p.ma-forumn-category, p.image-caption {
    font-size: 15px;
  }

  .writer-date-category-wrap {
    display: block;
  }

  .ma-forumn-category {
    margin-bottom: 0;
  }

  .single-contents-date, .ma-forumn-category {
    font-size: 14px;
    text-align: right;
  }

  h2.wp-block-heading {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 25px;
  }

  .wp-block-heading {
    margin-top: 25px;
  }

  .wp-block-media-text_content {
    padding-left: 0px;
    padding-right: 0px;
  }

  .single-contents {
    text-align: justify;
    margin-top: 0px !important;
  }

  .single-contents-date{
    margin-top: 10px;
  }

  p.writer-name {
    margin-bottom: 0;
  }

  .single-image {
    margin-top: 50px;
  }

  #post-submit{
    width: 20%; /* ボタンの幅*/
    right: 40px;
  }

  .post-searchfield {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
  }

  p.image-caption {
    font-size: 15px;
    margin-top: 20px;
  }

  p.aside-area-search, h3.new-article {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
  }

  .aside-area-search {
    margin-left: 0;
    text-align: center;
  }
  h3.new-article {
    margin-top: 60px;
  }

  #post-search {
    margin-top: 20px;
  }

  .aside-area {
    width: 100%;
    margin-left: 0px;
    margin-top: 0;
    text-align: center;
  }

  .input.search-field {
    width: 80%
  }

  input[type=text] {
    width: 80%;
  }

  .aside-content {
    margin-top: 30px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .archive-month-wrap h4,
  .category-links h4 {
    font-size: 16px;
  }

  .archive-list li,
  .category-links li {
    font-size: 15px;
  }

  .page-numbers {
    font-size: 14px;
  }

  .post-submit {
    width: 30%;
    vertical-align: middle;
  }

  .category-links {
    margin-top: 40px;
  }
}
