/*------------------------------------------

レイアウト

------------------------------------------*/
#wrapper {
  width: auto;
  max-width: 1200px;
  overflow: hidden;
}

#header,
#content,
#sidebar,
#footer {
  width: auto;
}

/*------------------------------------------

ヘッダー

------------------------------------------*/
#header {
  height: auto;
}

#header #header_img {
  margin-left: 7px;
  position: static;
  vertical-align: bottom;
}

#header #gnav {
  display: none;
  position: static;
  width: auto;
}

#header .rss {
  margin-top: 0;
  display: none;
}

#header #topimg {
  position: relative;
  top: 0;
  left: 0;
  padding-top: calc( 100vw / 1080 * 556 );
  height: auto;
  width: auto;
}
@media only screen and (min-width: 1200px) {

  #header #topimg {
    padding-top: calc(1200px / 1080 * 566);
  }
}

#header #topimg .meteor-slides {
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

#header #topimg .meteor-slides img {
  max-width: unset;
  width: 100%;
}
#header .is-sp{
	background:#333333;
}
/* PC */
@media only screen and (min-width: 769px) {
  #header #gnav,
  #header .rss {
    display: block;
  }
  .meteor-slides .mslide{
    width: 100% !important;
  }
}

/*------------------------------------------

モバイルヘッダーのロゴ

------------------------------------------*/
.mob-menu-logo-holder .mob-retina-logo {
  width: 30px;
}

/*------------------------------------------

サイドバー

------------------------------------------*/
#footermenu ul {
  width: 100%;
  float: none;
}

#footermenu .widget::after {
  content: '';
  display: block;
  clear: both;
}

#footermenu img {
  vertical-align: bottom;
}

#footermenu .widget_archive select {
  margin-top: 5px;
  padding: 0.75em 1em;
  width: 100%;
}

#footermenu .widget_text.has-banner .textwidget img {
  margin: 0 5px;
}

#footermenu .widgets-list-layout li {
  display: flex;
  align-items: center;
}

#footermenu .widgets-list-layout .widgets-list-layout-blavatar {
  float: none;
  width: 40px;
}

#footermenu .widgets-list-layout .widgets-list-layout-links {
  float: none;
  width: auto;
  flex-grow: 1;
  box-sizing: border-box;
  padding-left: 1rem;
}

@media only screen and (min-width: 583px) {
  #footermenu img {
    float: left;
  }
}

@media only screen and (min-width: 902px) {
  #footermenu ul {
    /*width: 284px;*/
	 width: calc(33.33% - 10px);
    float: left;
  }

  #footermenu .widget_text.has-banner .textwidget img {
    margin: 0;
  }
}

/*------------------------------------------

フッター

------------------------------------------*/
#footer {
  height: auto;
}

#footer a {
  float: none;
  display: block;
  padding: 1rem 0;
  text-align: center;
}

#footer #footer_logo {
  position: static;
  margin: 10px auto;
  display: block;
  float: none;
}

#footer #footer_description {
  clear: both;
  position: static;
  left: 0;
  padding: 1rem 0;
}

/* PC */
@media only screen and (min-width: 769px) {
  #footer a {
    padding: 0;
    float: right;
  }

  #footer #footer_logo {
    display: inline-block;
  }
}

/*------------------------------------------

モバイルメニュー

------------------------------------------*/

.mobmenu-left-panel .mobmenu-left-bt,
.mobmenu-right-panel .mobmenu-right-bt {
  right: initial;
  left: 0;
  margin-left: 5px;
}

#mobmenuleft > .menu-item:not(:last-of-type) > a {
  border-bottom: 1px solid #ddd;
  padding: 15px 20px;
}

/*------------------------------------------

トップページ

------------------------------------------*/
#homeposts .post {
  width: auto;
  height: auto;
}

#homeposts .post #thumb {
  float: none;
  margin: 0 0 10px;
}

#homeposts .post #thumb img {
  width: 100%;
  height: auto;
}

#homeposts .post .more {
  margin: 5px 0 0;
}

#homeposts .post .more a {
  display: inline-block;
  padding: 0.75em 1em;
}

/* PC */
@media only screen and (min-width: 769px) {
  #homeposts .post {
    /*width: 281px;*/
	width: calc( 25% - 20px );
    /*height: 320px;*/
  }
  #homeposts .post-wide {
	width: calc( 50% - 20px );
  }
  #homeposts .post-list.is-pc .post:first-child{
    padding-top: 0;
    padding-bottom: 0;
  }

  #homeposts .post #thumb {
    float: left;
    margin: 0 10px 10px 0;
  }

  #homeposts .post #thumb img {
    float: left;
    margin: 0 10px 10px 0;
  }


}
@media only screen and (max-width: 768px) {

  #homeposts .post-list ul li figure{
    max-height: 40vw;
    overflow: hidden;
    max-height: unset;
  }
  #homeposts .post-list ul li .post-excerpt{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}

/*------------------------------------------

固定ページ・投稿

------------------------------------------*/
#post {
  padding: 0 10px;
  width: auto;
  background-image: none;
}

@media only screen and (max-width: 768px) {
  #post {
    width:calc(100% - 20px);
  }
}

#post #thumb {
  float: none;
  margin: 0 0 10px;
}

#post #thumb img {
  width: 100%;
  height: auto;
}

#post .post > h2:first-child {
  padding-top: 1em;
}

#post .more {
  margin: 5px 0 0;
}

#post .more a {
  display: inline-block;
  padding: 0.75em 1em;
}

#post iframe {
  max-width: 100%;
}

p.pagenation a {
  display: inline-block;
  padding: 0.75rem;
}

span.oldpage,
span.newpage {
  display: inline-flex;
  align-items: center;
}

/* PC */
@media only screen and (min-width: 769px) {
  #post {
    /*width: 650px;*/
	  width: calc(100% - 213px);
    padding: 40px 213px 40px 40px;
    background-image: url(./images/bgimg.jpg);
  }

  #post #thumb {
    float: left;
    margin: 0 10px 10px 0;
  }

  #post #thumb img {
    float: left;
    margin: 0 10px 10px 0;
  }

  #post .post > h2:first-child {
    padding-top: 0;
  }
}

/*------------------------------------------

お問い合わせ

------------------------------------------*/

#asumeruform {
  max-width: 100%;
}

#asumeruform table {
  table-layout: auto;
}

#asumeruform input[type='radio'],
#asumeruform input[type='checkbox'] {
  margin-right: 0.25rem;
}

#asumeruform .formBtn {
  box-sizing: border-box;
  display: block;
  width: 200px;
  padding: 0.5rem;
  margin: 0 auto;
  cursor: pointer;
}

#asumeruform th {
  padding: 0.5rem;
}

#asumeruform input[type='text'],
#asumeruform input[type='tel'],
#asumeruform input[type='email'],
#asumeruform input[type='search'],
#asumeruform input[type='url'],
#asumeruform input[type='number'],
#asumeruform textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem 0.125rem;
}

/* PC */
@media only screen and (min-width: 769px) {
  #asumeruform input[type='text'],
  #asumeruform input[type='tel'],
  #asumeruform input[type='search'],
  #asumeruform input[type='url'],
  #asumeruform input[type='number'],
  #asumeruform textarea {
    width: 100%;
  }
}

/*------------------------------------------

見出し

------------------------------------------*/

h1 {
  font-size: 18px;
}

h2 {
  font-size: 16px;
}

h3 {
  font-size: 14px;
}

/* PC */
@media only screen and (min-width: 769px) {
  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }

  h3 {
    font-size: 1.17em;
  }
}

/*------------------------------------------

表

------------------------------------------*/
#content table {
  max-width: 100%;
  box-sizing: border-box;
}

#content table.is-mobile th {
  padding: 0.5em;
  background-color: #f0f0f0;
}

#content table.is-mobile td {
  padding: 0.5em;
}

/*------------------------------------------

水平線

------------------------------------------*/
hr {
  margin: 10px 0;
}

/*------------------------------------------

装飾クラス

------------------------------------------*/
.has-medium-font-size {
  font-size: 16px;
}

.has-large-font-size {
  font-size: 20px;
  font-weight: 700;
}

.wp-block-image img {
  height: auto;
  vertical-align: bottom;
}

/* PC */
@media only screen and (min-width: 769px) {
  .has-medium-font-size {
    font-size: 20px;
  }
  .has-large-font-size {
    font-size: 36px;
    font-weight: 400;
  }
}
