@charset "UTF-8";

/*
Theme Name: daiga
Auther:daiga
Description:株式会社大雅のホームーページ
Version:1.0
*/

.main {
  margin: 20px auto;
  max-width: 1200px;
  padding: 10px 0;
}
/* 見出し1 */
.main.page h1 {
  color: #fff;
  width: 35%;
  padding: 10px 10px 10px 20px;
  background: linear-gradient(to right, rgb(0, 0, 0, 0.6), transparent);
  background: -webkit-linear-gradient(to right, rgb(0, 0, 0), transparent);
}
.main.single h1 {
  position: relative;
  padding: 0.25em 0;
  margin-bottom: 10px;
}
.main.single h1:after {
  content: "";
  margin-top: 10px;
  display: block;
  height: 4px;
  background: -webkit-linear-gradient(to right, rgb(255, 236, 0), transparent);
  background: linear-gradient(to right, rgb(255, 236, 0), transparent);
}
@media screen and (max-width: 767px) {
  .main.page h1 {
    font-size: 28px;
    padding: 5px 5px 5px 10px;
  }
}


/* 見出し2 */
.main .wysiwyg-editor h2 {
  font-weight: bold;
  font-size: 28px;
  margin: 50px 0 0 0;
  padding: 10px 10px 10px 50px;
  background: #F5F5F5;
  position: relative;
}
.main .wysiwyg-editor h2::after {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  left: .0em;
  z-index: 2;
  content: '';
  width: 30px;
  height: 5px;
  background-color: #FFEC00;
}

@media screen and (max-width: 767px) {
  .main.page h2 {
    font-size: 24px;
  }
}

/* 見出し3 */
.main .wysiwyg-editor h3{
  position: relative;
  font-size:22px;
  margin:40px 0 0 0;
  padding:5px 0 8px 24px;
  border-bottom:0.5px solid #757575;
}
.main .wysiwyg-editor h3::after{
  position: absolute;
  top: 0;
  margin: auto;
  bottom: 0;
  left: .2em;
  content: '';
  width: 6px;
  height: -webkit-calc(100% - .7em);
  height: calc(100% - .7em);
  background-color: #FFEC00;
}

/* 見出し4 */
.main .wysiwyg-editor h4{
  font-size:18px;
  margin:40px 0 0 0;
}

.main.single .wysiwyg-editor h4:before{
  content:"●";
  color:#FFEC00;
}
.main .wysiwyg-editor h2:first-child,
.main .wysiwyg-editor h2 + h3,
.main .wysiwyg-editor h3 + h4{
    margin-top:25px;
}

/* その他 */
.main .wysiwyg-editor p,
.main .wysiwyg-editor ul,
.main .wysiwyg-editor ol,
.main .wysiwyg-editor table{
    margin:25px 0 0 0;
    font-size:16px;
    line-height:1.7;
}
.main .wysiwyg-editor ul,
.main .wysiwyg-editor ol{
    margin-left:20px;
}

/* page.php 会社案内 */
.main.page h2 {
  width: 100%;
}
.main.page p {
  width: 100%;
}
.thumbnails-background {
  padding-top: 50%;
  width: 100%;
  background-size: cover;
  /* display: inline-block; */
}
.icatch {
  display:flex;
  align-items:center;
}
.icatch h1 {
  position: absolute;
}
.single-container {
  width: 860px;
  padding-left: 10px;
}
.wrap {
  display: flex;
  justify-content: space-between;
  padding:0 20px;
}
.wrap .container{
  width: calc(100% - 300px);
}
@media screen and (max-width: 767px) {
  .wrap {
    display: block;
  }
  .main.page p {
    width: 90%;
    margin: auto;
  }
  .wrap .container{
    width: 100%;
  }
  .main .wysiwyg-editor {
    padding-bottom: 30px;
  }
  .main .wysiwyg-editor p {
    margin-top: 20px;
  }

  .single-container {
    width: 80%;
    margin: 15px;
  }
}

@media screen and (max-width: 575px) {
  .main.page h1 {
    width: 90%;
    font-size: 24px;
  }
  .main.page h2 {
    font-size: 20px;
  }
  .main.main.page h3 {
    font-size: 18px;
  }
}
/* サイドバー */

.side-bar {
  width: 260px;
  }

 .side {
  border: 0.5px solid #aaa;
 }

.tabContents {
  display: none;
  clear: both;
	display: none;
	padding: 10px;
}
.tabContents.active {
  display: block;
  }

.tab {
  list-style: none;
  font-size: 18px;
}

.tab li {
	float: left;
  width: 50%;
  background: #F5F5F5;
  height: 55px;
}
.tab li.active {
  background: #fff;
}
.tab li.active a {
  border-top: 4px solid #FFDD00;
}

.tab li a {
	display: block;
	text-decoration: none;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 12px;
  font-size: 16px;
}
.tab li a:hover {
  color: #757575;
  /* background-color: #FFDD00; */
  padding-bottom: 12px;
  border-top: 4px solid #FFDD00;
}

.tab .active ul li {
text-decoration: none;
}

.tabContents ul li {
  list-style: none;
  border-bottom: 0.5px dotted #D5D5D5;
  padding: 10px;
}

.tabContents ul li:last-child {
	border-bottom: none;
}

.tabContents ul li a {
  text-decoration: none;
  font-size: 14px;
}
.tabContents ul li a:hover {
  color: #757575;
}
.tabContents.current {
	display: block;
}

@media screen and (max-width: 767px) {
  .side-bar {
    width: 100%;
    margin: auto;
    }
}

/* バナー */
.banner {
  margin-top: 20px;
}

/* page-articles記事一覧 */
.main.page-articles .topics-title .articles-list {
  margin: 10px 0;
  font-size: 16px;
  padding: 10px 10px 10px 0px;
  list-style: none;
}
.main.page-articles .topics-title .articles-list a {
  text-decoration: none;
  color: #333;
  padding: 10px;
  }

.main.page-articles .topics-title .articles-list a:hover {
  color: #999;
}

.main.page-articles .topicsnews li {
	padding: 20px 10px 10px 0px;
	font-size: 14px;
  border-bottom: 1px dotted ;
  list-style: none;
}
.main.page-articles .cat.label-column {
  margin-top: -18px;
  margin-left: 80px;
}
.main.page-articles .title.text {
  padding-top: 5px;
  padding-bottom: 5px;
}
.main.page-articles .title.text a {
  text-decoration: none;
}
.main.page-articles .title.text a:hover {
  color: #999;
}
/* カテゴリーページのカテゴリ */
.detail p a {
  text-decoration: none;
  color: #fff;
}
li.now a{
  background:#FFDD00;
  display: block;
  padding: 10px;
}
li.now {
  list-style: none;
}
/* ページネーション（ページ番号） */
.pagination {
  text-align: center;
  margin: 30px;
}
.pagination a {
  padding: 8px 16px;
  margin: 10px;
  text-decoration: none;
  border-radius: 5px;
  background-color: #D5D5D5;
  color: white;
}
.pagination a.active {
  background-color: #FFDD00;
  color: white;
}

.pagination a:hover {
  background-color: #FFDD00;
  color: white;
}
.current {
  padding: 8px 16px;
  margin: 10px;
  background-color: #FFDD00;
  text-decoration: none;
  border-radius: 5px;
}

/* お問合せフォーム */
form {
  margin-top: 30px;
}
form ul {
  margin-top: 20px;
}

/* 必須マーク */
.must{
  background-color: #ff5252;
  margin-right: 10px;
  padding: 2px 6px;
  display: inline-block;
  text-align: center;
  font-size: 12px;
  color: #fff;
}

/* 任意マーク */
.free {
	color: #fff;
	margin-right: 10px;
  padding: 2px 6px;
  display: inline-block;
  text-align: center;
  font-size: 12px;
	background: #424242;
}

/* 項目名を太字にする */
.mail-point {
  display: block;
  font-size: 14px;
  width: 100%;
  margin-bottom: 25px;
}

li.mail-link {
  margin-top: 7px;
}
li.mail-link a {
  display: block;
  word-break: break-all;
  font-size: 12px;
}

/* 入力項目を見やすくする */
input.wpcf7-form-control.wpcf7-text,
textarea.wpcf7-form-control.wpcf7-textarea {
	width: 100%;
	padding: 8px 15px;
	margin-right: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
	border: 1px solid #d0d5d8;
	border-radius: 3px;
}
textarea.wpcf7-form-control.wpcf7-textarea {
	height: 200px;
}

/* 必須項目の入力欄を黄色にする */
input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required {
	background: rgba(255, 255, 142, 0.46);
}

/* 送信ボタンを見やすくする */
input.wpcf7-submit {
	width: 100%;
	height: 80px;
	background: #27c038;
	color: #fff;
	font-size: 20px;
	font-weight: 600;
}
.message {
  margin-top: 30px;
}

/* エラーメッセージを見やすくする */
span.wpcf7-not-valid-tip,
.wpcf7-response-output.wpcf7-validation-errors {
	color: red;
	font-weight: 600;
}

/* 表 */
table {
  border-spacing: 0;
  border-collapse: collapse;
  width: 90%;
}
table,th,td {
  border: 1px solid #ccc;
  padding: 0.5em;
}
table caption {
  font-size: 0.8em;
  color: #666666;
}
th {
  background: #FFFFD9;
}

@media screen and (max-width: 767px) {
  table,th,td { 
    font-size: 14px;
  }
  .wp-block-table {
    margin: px;
  }
  table th {
    width: 80px;
  }
}

/* 404 */
.main.error h2 {
  text-align: center;
}
.main.error h3 {
  text-align: center;
  margin-bottom: 50px;
}
.main.error a {
  text-decoration: none;
}
.main.error p {
  text-align: center;
}

p.errorbtn {
  margin: 50px auto 50px auto;
  display: block;
  width: 195px;
  height: 50px;
  line-height: 50px;
  background: #F2D03B;
  text-decoration: none;
  transition-duration: 0.3s;
  border-radius: 3px;
}
p.errorbtn:hover {
  background: #FFF;
	outline: thin solid #000;/*細い線*/
}
