@media screen and (max-width:980px) {
/* iOSでのデフォルトスタイルをリセット */
input[type="submit"],
input[type="button"] {
  border-radius: 0;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
  margin-top: 50px;
}
input[type="submit"]::-webkit-search-decoration,
input[type="button"]::-webkit-search-decoration {
  display: none;
}
input[type="submit"]::focus,
input[type="button"]::focus {
  outline-offset: -2px;
}
.pc {
    display: none;
}
.post-thumbnail {
    display: none;
}
#primary {
    padding-top: 56px;
}
#post-22, #post-121 {
	height: auto;
}
.entry-content .sp_main {
    margin: 0;
    display: block;
}
.sp_main img {
    margin-top: 0;
}
.entry-content {
    margin: 0 auto;
}
.entry-content h2,
.grey_inner h2 {
    font-size: 24px;
    margin: 0px 24px 36px;
    height: auto;
    padding: 16px 0;
    line-height: 1.6;
}
.grey_inner {
    width: 100%;
}
.wp-block-group__inner-container,
.page-id-21 .wp-block-group__inner-container {
    padding: 0 24px 48px;
}
.wp-block-group__inner-container p{
    line-height: 2;
}
button {
    width: 90%;
    height: 50px;
}
a button {
    font-size: 18px;
}
.entry-content {
    width: 100%;
}
.h3_container {
    width: auto;
    height: auto;
    padding-left: 10px;
    margin: 20px 24px 20px;
}
.h3_container h3 {
    font-size: 18px;
    margin: 10px 0;
}
.earth_container_title {
    width: 100%;
}
.earth_container_title p{
    font-size: 16px;
}
figure img {
    width: 100%;
}
.earth_items {
    flex-direction: column;
}
.earth_item {
/*    width: calc100%; 2021/02/05 */
	width : calc(100% - 22px) ; /* 2021/02/05 */
	width : -webkit-calc(100% - 22px) ; /* 2021/02/05 */
}
.page-id-21 .wp-block-group__inner-container {
    flex-direction: column;
}
.earth_photos .wp-block-group__inner-container .wp-block-image {
    width: 100%;
}
.earth_photos > div > figure {
    margin: 0;
}
.wp-block-image .aligncenter, .wp-block-image .alignleft, .wp-block-image .alignright, .wp-block-image.is-resized {
    display: block;
}
.company_nav {
    width: 100%;
    margin: 0;
    padding: 0;
}
.sign_img {
    width: 100px;
    height: auto;
    margin: 0 24px 0 auto;
}
.company_table tr td:first-child {
    white-space: nowrap;
    padding-right: 10px;
}
.president_wrapper figure img {
    height: auto;
}
.wp-image-546  {
    height: auto;
}
.group_img figure {
    margin-bottom: 150px;
}
.group_img .aligncenter>figcaption {
    display: block;
}
.wp-block-image,
.wp-block-table {
    margin: 0 24px;
}
#post-21 .wp-block-column {
    margin: 0 24px;
}
.wpcf7-form {
    padding: 0 24px!important;
}
.wpcf7-form label {
    flex-direction: column;
}
.wpcf7-form label span {
    width: 95%;
    line-height: inherit;
    margin-bottom: 0;
}
.wpcf7-form label span,
.wpcf7-form select {
    margin-left: 0;
}
.wpcf7-checkbox label {
    flex-direction: inherit;
    display: flex;
    align-items: center;
}
.wpcf7-form .privacy-check input {
    width: 8%;
    margin-right: 10px;
}
.privacy-check label span {
    font-size: 12px;
}
.wpcf7-form .privacy-check .wpcf7-checkbox {
    display: flex;
    align-items: center;
}
.wpcf7-form label .privacy-check,
.wpcf7-form label .privacy-check .wpcf7-list-item label {
    margin-bottom: 0;
}
.wpcf7-form select {
    font-size: 15px;
}
.wpcf7-checkbox {
    padding: 5px;
}
.wpcf7-submit {
    width: 100%;
}
.news_item {
    font-size: 13px;
}
.news_list .news_title {
    display: block;
}
/*--------------------------------------------------------------
# 会社概要
--------------------------------------------------------------*/
.history_table {
    width: auto;
    margin: 0;
    width: 100%;
}
.company_table {
    width: auto;
}
/*--------------------------------------------------------------
# 実績
--------------------------------------------------------------*/
.works_grey_wrapper .grey_inner {
    width: 85%;
    margin: 0 auto;
    padding: 30px 0;
}
.works_grey_wrapper .grey_inner h2{
    margin: 0;
}
.solar_works {
    margin: 20px auto 50px;
    width: 100%;
}
.works_years {
    height: auto;
    padding: 5%;
    width: 90%;
}
.news_list {
    margin: 0 0 24px;
}
.category_tabs {
    width: 90%;
    margin: 20px auto;
}
.category_tabs .category_tab a{
    font-size: 13px;
}
.works_items {
    width: revert;
    padding: 0 24px;
    margin: 30px 0 0 0;
}
.works_photos {
    margin-top: 0;
}
.works_photo {
    width: 100%;
}
.works_photo_sub {
    display: none;
}
.earth_works_title {
    position: sticky;
    top: 58px;
    width: 100%;
    background: #fff;
    border-bottom: 3px solid #ccc;
    padding: 10px 0;
}
.works_item {
    flex-direction: column;
}
.works_item li {
    white-space: nowrap;
}
.years_items {
    width: 100%;
    flex-wrap: wrap;
}
.earth_years_items .years_item,
.years_item {
    width: 33.3%;
}
.earth_years_items #nineteen_tab,
.earth_years_items #eighteen_tab {
    width: 50%;
}
.tab_item {
    font-size: 18px;
    text-align: center;
}

.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
}

}