/*
Theme Name:   ベーステーマ
Description: SMART-MINIMUMをカスタマイズしています。http://rfs.jp/
Author:     ComQuest
Author URI: http://www.comquest.co.jp/
Version:    1.0
*/

/*= font-stream / レビュー用comquestのトークン =*/
@font-face{
	font-family: "FSfont";
	font-weight: normal;
	src:url("https://www.font-stream.com/fontdata/KOSakuragiKeisetsu-M.woff2?token=asidoito0usk72bb") format("woff2"),
	url("https://www.font-stream.com/fontdata/KOSakuragiKeisetsu-M.woff?token=asidoito0usk72bb") format("woff");
}

/*= reset =*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing:border-box;
}
html, body, div, applet, object, iframe,dl, dt, dd, ol, ul, li,
h1, h2, h3, h4, h5, h6, p, tr, th, td {
  font-size: 16px;
  line-height: 1.6;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
/* HTML5 hidden-attribute fix for newer browsers */
*[hidden] {
  display: none;
}

/* 変数 */
:root {
  --title-font:"FSfont", sans-serif;
  --white: #fff;
  --black: #111;
  --gray: #333;
  --gray-bg: #f6f6f6;
  --sep-color: #eee;
  --base-color: #003624;
  --main-color: #49a101;
  --accent-color: #e99f00;
  --diff-color: #fff;
  --header-height:72px;
}

/* 全体設定 */
body {
  line-height: 1.4;
  font-family: 'Noto Sans JP',"游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 400;
  background: var(--white);
}
@media screen and (min-width: 1024px){
  html, body, div, applet, object, iframe,dl, dt, dd, ol, ul, li,
  h1, h2, h3, h4, h5, h6, p, tr, th, td {
    font-size: 18px;
  }
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
input,button,select,textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 0;
  font: inherit;
  outline: none;
}
textarea {
  resize: vertical;
}
input[type='checkbox'],input[type='radio'] {
  display: none;
}
input[type='submit'],  input[type='button'],
label,button,select {
  cursor: pointer;
}
select::-ms-expand {
  display: none;
}

img {
  max-width:100%;
  vertical-align:bottom;
}
a {
  text-decoration:none;
  color: var(--black);
  transition: all .25s ease;
}
iframe {
  width: 100%;
  height: 100%;
}
.grecaptcha-badge {
  display: none;
}

/*== ヘッダー ==*/
#site-header {
  height: var(--header-height);
  padding: 8px 16px 8px 8px;
  background:var(--white);
  z-index: 101;
  position: fixed;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  #site-logo {
    a {
      display: inline-block;
    }
    img {
      height:calc(var(--header-height) - 16px);
      width: auto;
      object-fit: contain;
    }
  }
  .menu_btn_wrapper {
    text-indent: -9999px;
    width: 44px;
    height: 24px;
    cursor: pointer;
    z-index: 50;
    position: relative;
    &::before,&::after{
      content: "";
      height: 1px;
      width: 100%;
      position: absolute;
      left: 0;
      margin: auto;
      background: var(--gray);
      transition: all .25s ease;
      transform-origin: center;
    }
    &::before {
      top: 0;
    }
    &::after {
      bottom: 0;
    }
  }
  .menu_btn {
    text-indent: -99999px;
    height: 1px;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    background: var(--gray);
    transition: all .25s ease;
  }
  .global_menu_wrap {
    position: fixed;
    top:-100%;
    width: 100%;
    height: calc(100% - var(--header-height));
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: all .5s ease;
    overflow: auto;
  }
  .menu-item {
    /* padding-bottom: .5rem;
    margin-bottom: .5rem; */
    padding: .5rem 0;
    border-bottom: 1px solid var(--sep-color);
    a {
      display: block;
      padding: 1rem;
      font-size: 1.125rem;
    }
  }
  .menu_recruit {
    background: var(--accent-color);
    a {
      color: var(--white);
    }
  }
}

/*== ヘッダー：スマホメニュー表示 ==*/
#site-header.open {
  .global_menu_wrap {
    top:var(--header-height);
    opacity: 1;
    visibility: visible;
    transition: all .5s ease;
  }
}

/*== ヘッダー：PC表示 ==*/
@media screen and (min-width: 1110px){
  #site-header,#site-header.open {
    padding: 0;
    grid-template-columns: 158px 1fr;
    box-shadow: 0 0 8px rgba(0,0,0,.15);
    align-items: normal;
    .menu_btn_wrapper {
      display:none;
    }
    #site-logo {
      padding: 8px;
    }
    .menu-global_menu-container,
    .menu-global_menu,
    #menu-global_menu {
      height: 100%;
    }
    .global_menu_wrap {
      height: 100%;
      display:block;
      position: static;
      height: auto;
      background: none;
      top: 0;
      opacity: 1;
      visibility: visible;
      text-align: right;
      .menu-item {
        padding: 0;
        margin: 0;
        border-bottom: none;
        height: 100%;
        display: inline-block;
      }
      .menu-item a{
        padding: 12px;
        height: 100%;
        font-size: .875rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        border-bottom: 4px solid var(--white);
      }
      .menu_recruit a {
        border-bottom: 4px solid var(--accent-color);
      }
      .menu-item a:hover,
      .current_page_item a,
      .current-menu-item a{
        color: var(--main-color);
        border-bottom: 4px solid var(--main-color);
      }
      .menu_recruit:hover {
        background: var(--white);
      }
      .menu_recruit a:hover {
        color: var(--accent-color);
        border-bottom: 4px solid var(--accent-color);
      }
    }
    .menu ul,
    #menu-global_menu {
      .sub-menu {
        display: none;
      }
    }
  }
}

/*== メイン ==*/
#body_wrapper {
  padding-top:var(--header-height);
  .section_inner {
    max-width: 1218px;
    margin: 0 auto;
    padding: 24px;
  }
  .section_header {
    padding: 1rem 0;
    .section_title {
      font-size: 2rem;
    }
  }
  .btn_wrapper {
    .btn{
      color: var(--accent-color);
      padding: .5rem 2rem .5rem 1rem;
      border:1px solid var(--accent-color);;
      position: relative;
      display: inline-block;
    }
    .btn::before{
      content: "";
      width: .8rem;
      height: .8rem;
      border-top:1px solid var(--accent-color);;
      border-right:1px solid var(--accent-color);;
      position: absolute;
      right: 1rem;
      top: 0;
      bottom: 0;
      margin: auto;
      transform: rotate(45deg);
      transition: border-color,right .25s ease;
    }
    .btn:hover{
      color: var(--diff-color);
      background: var(--accent-color);
    }
    .btn:hover::before{
      border-top:1px solid var(--diff-color);
      border-right:1px solid var(--diff-color);
      right: .75rem;
    }
  }
  .archive_list {
    .entry {
      border-bottom: 1px solid var(--sep-color);
    }
    .entry a{
      display: block;
      padding: 1rem 2rem 1rem 0;
      position: relative;
      text-decoration: none;
      &:last-of-type {
        border-bottom: none;
      }
      &::before {
        content: "";
        width: 1.25rem;
        height: 1.25rem;
        border-top: 1px solid var(--accent-color);
        border-right: 1px solid var(--accent-color);
        transform: rotate(45deg);
        margin: auto;
        top: 0;
        bottom: 0;
        right: .5rem;
        position: absolute;
        transition: right .25s ease;
      }
      &:hover::before{
        right: 0;
      }
    }
    .entry_header {
      .post_date {
        font-weight: 700;
        margin-right: 8px;
        font-size: .75rem;
      }
      .news_cat {
        display: inline-block;
        color: var(--white);
        font-size: .875rem;
      }
      .news_cat span{
        display: inline-block;
        padding: 0 .25rem;
        color: var(--white);
      }
      .news_cat .news {
        background-color: #009E9E;
      }
      .news_cat .xxx {
        background-color: #FF6534;
      }
    }
  }
}

/*== フッター ==*/
#site_footer {
  background: var(--base-color);
  padding: 24px;
  .footer_inner {
    margin: .5rem;
    padding: 1rem;
    background: var(--white);
  }
  .footer_siteinfo {
    display: grid;
    gap: 1rem;
    @media screen and (min-width:1024px){
      grid-template-columns: 1fr 2fr;
    }
  }
  .footer_map .widget_item,
  .footer_map .textwidget {
    height: 100%;
  }
  .footer_menu {
    margin-top: 2rem;
  }
  .footer_menu #footer_sitemap{
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--base-color);
    @media screen and (min-width:1024px){
      display: grid;
      grid-template-columns: repeat(4,1fr);
    }
    @media screen and (min-width:1280px){
      display: grid;
      grid-template-columns: repeat(6,1fr);
    }
    @media screen and (min-width:1440px){
      grid-template-columns: repeat(8,1fr);
    }
    @media screen and (min-width:1920px){
      grid-template-columns: repeat(10,1fr);
    }
    .menu-item {
      padding: .5rem;
      font-size: .875rem;
      position: relative;
    }
    .menu-item a{
      transition: color .25s ease;
    }
    .menu-item a:hover{
      color: var(--main-color);
    }
    .menu-item:before {
      content: "";
      width: 0;
      height: 0;
      border: .25rem solid transparent;
      border-left: .25rem solid var(--base-color);
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      margin: auto;
    }
  }
  .footer_logo {
    a {
      display: inline-block;
    }
    text-align: center;
    @media screen and (min-width:1024px){
      text-align: left;
    }
  }
  address {
    margin: 1rem 0;
    text-align: center;
    @media screen and (min-width:1024px){
      text-align: left;
    }
  }
  .contact_item {
    margin: .5rem .25rem;
    display: inline-block;
    @media screen and (min-width:1280px){
      display: block;
      margin-left: 0;
    }
    .label {
      width: 48px;
      text-align: center;
      display: inline-block;
      padding: 0 .25rem;
      margin-right: .5rem;
      background: var(--base-color);
      color: var(--diff-color);
    }
  }
  .logos_widget {
    margin-top: 1rem;
    text-align: center;
    @media screen and (min-width:1024px){
      text-align: left;
    }
    img{
      max-height: 120px;
    }
  }
  .bottom_line {
    text-align: center;
    color: var(--white);
  }
  .privacy{
    display: inline;
    font-size: .75rem;
    padding: .5rem;
    a {
      color: var(--white);
    }
    a:hover {
      color: var(--main-color);
    }
  }
  .copyright {
    display: inline;
    font-size: .75rem;
    padding: .5rem;
  }
}