@charset "utf-8";

/* Theme Name: mt-amtrix
Description: 株式会社Amtrixのホームページ
Version: 1.0
Author: Amtrix
Author URI: https://mt-amtrix.site */

html {
    font-size: 100%;
}

body {
  font-family: '游ゴシック', 'Yu Gothic', YuGothic, HiraKakuProN-W3, 'メイリオ', Meiryo, sans-serif;
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
  margin-left: 30px;
}

li:first-child {
  margin-left: 0;
}


a {
    text-decoration: none;
    color: #34343f;
    position: relative;
   padding-bottom: 1px;
}

a:hover {
  opacity: 0.7;
  color: #ff7851;
}

a:hover::after {
  opacity: 0.7;
  transform: tranlateY(3px);
}

.sec-title .en {
    font-size: 4rem;
    font-weight: 100;
    text-align: center;
    margin: 120px auto 0;
    display: block;
    color: #fff;
    text-shadow: 2px 2px 3px #999999;
}

.sec-title .ja {
  font-size: 1.2rem;
  margin-bottom: 80px;
  text-align: center;
  color: #ff7851;
  display: block;
}

p {
    font-size: 15px;
    font-weight: normal;
}

ul {
  display: flex;
}

img {
    max-width: 100%;
    object-fit: cover;
}

.footer-inner {
  margin-top: 120px;
}

.wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* *******************
bread-crumb
******************* */
.bread-crumb {
  margin-top: 40px;
}
.bread-crumb p {
  max-width: 1100px;
  color: #333;
  padding-left: 8px;
}


/* *******************
pagination
******************* */

.pagination {
	text-align: center;
	margin-top: 88px;
	margin-bottom: 45px;
}

.pagination .nav-links {
	font-family: "Noto Sans JP", sans-serif, sans-serif;
}

.pagination .page-numbers {
	display: inline-block;
	padding: .5em 1em;
	text-decoration: none;
	color: #3B4043;
	border: 2px solid #edeceb;
	border-radius: 0.2em;
	background-color: #F7F6F5;
	font-size: 0.875rem;
}

.pagination .page-numbers:hover {
	border-color: #ff7851;
}

.pagination .page-numbers.current {
	color: #FFFFFF;
	border-color: #ff7851;
	background-color: #ff7851;
}

.pagination .page-numbers.dots {
	padding: 0 .5em;
	border: none;
	background-color: transparent;
}

.sr-only {
	position: absolute;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
}


/* ************************
header
************************ */
header {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  width: 140px;
}

.hamburger {
  width: 60px;
  height: 60px;
  background-color:#ff7851;
  box-shadow: 1px 1px 2px  rgba(0, 0, 0, .5);
  position: fixed;
  top: 10px;
  right: 10%;
  z-index: 30;
  cursor: pointer;
  transition: 0.3s;
}

.hamburger:hover {
  opacity: 0.7;
}

.hamburger span {
  width: 40px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 10px;
  transition: 0.3s ease-in-out;
}

/* 1本目の線の位置 */
.hamburger span:nth-child(1) {
  top: 20px;
}

/* 2本目の線の位置 */
.hamburger span:nth-child(2) {
  top: 30px;
}

/* 3本目の線の位置 */
.hamburger span:nth-child(3) {
  top: 40px;
}

/*
ハンバーガーメニューの線の設定（メニューが開いている時）
1本目の線を-45度回転
*/
.hamburger.active span:nth-child(1) {
  top: 30px;
  left: 10px;
  background :#fff;
  transform: rotate(-45deg);
}
/* 2本目と3本目は重ねて45度回転 */
.hamburger.active span:nth-child(2),
.hamburger.active span:nth-child(3) {
  top: 30px;
  background: #fff;
  transform: rotate(45deg);
}

/*
メニューの設定 最初は非表示
*/
#navi {
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  transform: translateX(100%);
  transition: all 0.6s;
}


/* ハンバーガーメニューがクリックされたら、jQueryで#naviにactiveクラスを追加して、
メニューを表示させる。 */

#navi.active {
  transform: translateX(0%);
  display: block;
}

#navi .menu {
  flex-direction: column;
  text-align: left;
  margin: 80px 0;
}
#navi .menu li {
  margin-left: 0;
  padding: 1.5%;
  border-bottom: 1px solid lightgray;
}

#navi .menu a {
  color: #333;
}

#navi .menu a:hover {
  color: #ff7851;
}


/* ************************
mainvisual
************************ */
#mainvisual {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

#mainvisual img {
  width: calc(100%/3);
  height: 100vh;
  flex-shrink: 0;
  object-fit: cover;
}


/* *******************
about
******************* */
#about h4 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 32px;
  color: #343434;
}
#about > p {
  line-height: 2;
  width: 88%;
  margin: 0 auto 40px auto;
}


/* ************************
service
************************ */
#service {
  padding-bottom: 80px;
}

.service_container {
    width: 100vw;
    height: auto;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
}

.service_container_item {
  width: 40%;
  margin: 40px 20px;
}

h5 {
  font-size: 1.3rem;
  margin: 16px 0 0;
}

.service_container_desc {
  color: #ff7851;
  font-weight: bold;
  margin-bottom: 16px;
}

/* ************************
features
************************ */
.features_item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 100px;
}

.f-pic {
  width: 48%;
  height: 270px;
}

.f-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.f-desc {
  width: 48%;
}

.f-desc > p {
  line-height: 1.6;
}

.f-title {
  font-size: 1.7rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.features_number {
  font-size: 1.7rem;
  margin-top: 8px;
  text-shadow: 1px 1px 2px  rgba(255, 120, 81, .8);
}

.reverse {
  flex-direction: row-reverse;
}


.anime_wrap{
  position: relative;
  overflow: hidden;
}

.pattern::before{
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: #FFF;
  z-index: 2;
  transition: .3s;
}
.pattern.show::before{
  transform: translateX(100%);
}
.pattern img{
  opacity: 0;
  transition: .3s;
}
.pattern.show img{
  opacity: 1;
}

/* ************************
works
************************ */
#works {
  margin-top: 80px;
}

.w-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 40px;
}

#works .w-item {
  margin-bottom: 72px;
  width: 30%;
  height: auto;
}

#works .w-item .w-img{
  width: 100%;
  height: 300px;
  border: solid 1px #eee;
}

#works .w-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w-text {
  font-size: 14px;
  color: #505050;
  text-align: center;
  margin-top: 32px;
}

.view-more {
  text-align: center;
  margin-top: 40px;
}

.view-more a {
  padding-bottom: 1px;
  font-size: 17px;
  font-weight: 700;
  margin-top: 16px;
  color: #666;
  text-align: center;
  position: relative;
}

.view-more a:hover {
  color: #ff7851;
}

.view-more a::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 100%;
  left: 0;
  bottom: -1px;
  background-color: #666;
  transition: all 200ms ease;
}

.view-more a:hover::after {
  opacity: 0;
  transform: translateY(5px);
}

/* ************************
news 
************************ */
.news-item a {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #999;
  line-height: 1.6;
  margin-top: 24px;
  padding-bottom: 8px;
}

.news-meta {
  display: flex;
  width: 35%;
}

.news__meta_date {
  width: 35%;
}

.cat {
  width: 50%;
  line-height: 1.6;
  background-color: #ff7851;
  color: #fff;
  text-align: center;
  margin-left: 16px;
}

.n-title {
  width: 70%;
}

#news .see-more {
  margin-top: 32px;
}

/* ************************
company 
************************ */
table {
  margin: 20px auto;
}
.tbl th {
  width: 17%;
  background: #999;
  border: solid 1px #ccc;
  color: #fff;
  padding: 10px;
}
.tbl td {
  border: solid 1px #ccc;
  padding: 10px;
  line-height: 1.7;
}

/* *******************
map
******************* */
#map {
  width: 100%;
  height: 400px;
}

#map iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%);
}

/* ************************
footer
************************ */
footer {
  width: 100vw;
  height:20%;
  background-color: #eee;
}

.copyright {
  font-size: 13px;
  color: #505050;
  text-align: center;
  padding: 2% 0;
}

 /* TOPに戻るボタン */
 #page-top {
  position: fixed;
  bottom: 50px;
  right: 20px;
  color: #333;
  text-align: center;
  text-decoration: none;
  padding: 28px 24px;
  border-radius: 50%;
  font-family: "Noto Sans JP", sans-serif;
  display: none;
 }

 #page-top > img {
  width: 50px;
  height: 50px;
 }

 #page-top .totop {
  margin-bottom: 8px;
  font-size: 14px;
 }


/* //////////////////////////////////////////////////////////////////// */

/* *******************
archives.html
******************* */
#archives {
  margin-top: 60px;
  background-color: #fdfafa;
  padding: 40px 0;
}

.archives-mainvisual {
  width: 100%;
  height: 400px;
}

.archives-mainvisual img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.archives-item {
  padding: 2% 4%;
  border: solid 0.7px #ccc;
  margin-top: 88px;
  background-color: #fff;
}

.archives-a:hover {
  cursor: pointer;
  color: #ff7851;
}

#archives dl {
  display: flex;
  line-height: 1.6;
}

#archives .dummy {
  height: 16px;
  border-bottom: solid 0.7px #ff7851;
}

.archives-article {
  display: flex;
  margin-top: 32px;
}

.archives-pic {
  width: 70%;
  height: 200px;
}

.archives-pic img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center bottom;
}

#archives dl dd.cat {
  margin-left: 30px;
  padding: 0 8px;
  width: 17%;
  background-color: #ff7851;
  color: #fff;
}

.archives-title {
  font-size: 20px;
  padding-top: 24px;
}

.archives-content {
  margin-top: 16px;
  margin-left: 24px;
}

/* *******************
single.html
******************* */
.single-page {
  display: flex;
  justify-content: space-between;
  margin: 120px auto;
}

.single-page article {
  width: 70%;
}

.content-header > h1 {
  font-size: 22px;
}

.content-meta {
  margin-top: 8px;
  display: flex;
  gap: 16px;
}

.content-meta .cat {
  background-color: #ff7851;
  color: #fff;
  padding-left: 4px;
  padding-right: 4px;
  width: 17%;
}

.single-page aside {
  width: 30%;
  padding-left: 10%;
  line-height: 3;
}

.content-eyecatch {
  width: 100%;
  height: 450px;
  margin-top: 40px;
}

.content-eyecatch img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center top;
}

/* ＋＋＋＋＋＋＋＋＋＋＋＋＋＋＋＋＋＋＋＋＋
固定ページのアイキャッチ画像
＋＋＋＋＋＋＋＋＋＋＋＋＋＋＋＋＋＋＋＋＋ */
.content-EyeCatch {
  width: 100%;
  height: 400px;
  margin-top: 30px;
  margin-bottom: 50px;
}

.content-EyeCatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.content-body > p {
  line-height: 1.7;
  margin-top: 24px;
}

.sidebar ul {
  border-bottom: solid 1px #333;
  flex-direction: column;
}

.sidebar ul:first-child {
  border-bottom: none;
}

.sidebar li {
  border-top: solid 1px #333;
  margin-left: 0;
}

.sidebar  h2 {
  font-size: 18px;
  font-weight: 400;
  border-top: solid 1px #333;
}

.content-tags {
  display: flex;
  margin-top: 24px;
}

.content-tags > li {
  border: 1px solid #f5f6ba;
  margin-left: 3px;
  padding: 2px 4px;
  background-color: #eee;
  font-size: 0.75rem;
}

.content-tags > li:first-child {
  margin-left: 0;
}

#single-pagination {
  margin-top: 88px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

#single-pagination .prev > a,
#single-pagination .next > a {
  text-decoration: none;
  color: #404040;
}

#single-pagination .prev > a:hover,
#single-pagination .next > a:hover {
  opacity: 0.7;
  color: #ff7851;
} 


#single-contact {
  width: 100vw;
  background-image: url(img/contact-background.jpg);
  height: 400px;
}

#single-contact .sec-title .en {
  padding-top: 2%;
}

#single-contact .sec-title .ja {
  color: #fff;
  margin-bottom: 2%;
}

#single-contact .single-contact_message {
  color: #fff;
  font-weight: bold;
  text-align: center;
}

.single-contact_btn {
  width: 300px;
  height: 45px;
  text-align: center;
  line-height: 45px;
  background-color: #fff;
  margin: 50px auto 0;
}

.single-contact_btn a {
  color: #ff7851;
  font-weight: bold;
  font-size: 17px;
}

/************************************
** お問い合わせフォームの入力
************************************/
#cf-tbl{
  width: 900px;
  }
  
  #cf-tbl table{
  width: 100%;
  border-collapse: collapse;
  border: solid #CCC;
  border-width: 1px;
  color: #444;
  }
  #cf-tbl table tr th,
  #cf-tbl table tr td{
  padding: 0.5em;
  text-align: center;
  vertical-align: top;
  border: solid #CCC;
  border-width: 1px;
  vertical-align: middle;
  font-size: 20px;
  }
  #cf-tbl table tr th{
  width: 35%;
  background: #FBF9EA;
  }

  #cf-tbl table tr td {
      display: block;
  }

  /*「必須」文字デザイン*/
  .required{
  font-size:.8em;
  padding: 5px;
  background-color: #ff7851;
  color: #fff;
  border-radius: 3px;
  margin-left: 15px;
  }
  
  
  /* 入力項目を見やすく */
  input.wpcf7-form-control.wpcf7-text,
  textarea.wpcf7-form-control.wpcf7-textarea {
      width: 100%;
      padding: 8px 15px;
      margin-right: 10px;
      margin-top: 10px;
      border: 1px solid #d0d5d8;
      border-radius: 3px;
      background-color: #eff1f5;
  }
  textarea.wpcf7-form-control.wpcf7-textarea {
      height: 200px;
  }
  
  /* 「送信する」ボタン */
  input.wpcf7-submit {
      display: block;
      padding: 15px;
      width: 400px;
      background:#ff7851;
      color: #fff;
      font-size: 18px;
      font-weight: 700;
      border-radius: 2px;
      margin: 50px auto 0
  }
  
  input.wpcf7-submit:hover {
      box-shadow: 0 15px 30px -5px rgba(0,0,0,.15), 0 0 5px rgba(0,0,0,.1);
      transform: translateY(-4px);
      opacity:0.7;
  }
  /* エラーメッセージを見やすく */
  span.wpcf7-not-valid-tip,
  .wpcf7-response-output.wpcf7-validation-errors {
      color: red;
      font-weight: 600;
  }

  .contact-letter {
      padding: 0 2%;
  }



/* フェードイン */
.fadein {
  opacity: 0;
  transform: translate(0, 50%);
  transition: 2s;
}

.fadein.show {
  transform: translate(0, 0);
  opacity: 1;
}

/* *********************************************** */


@media screen and (max-width:768px) {
  .sec-title {
    font-size: 1.3rem;
  }
  #mainvisual #site-title {
    position: static;
    padding: 4%;
    margin: 0 auto;
  }

  #site-title > p {
    width: 98%;
  }

  .site-title__btn {
    width: 98%;
    height: 50px;
    line-height: 50px;
    margin: 40px auto 0;
  }

  #mainvisual {
    height: 40%;
  }

  .mainvisual__circle {
    display: none;
  }

  h1 {
    margin-left: 1%;
  }

  .hamburger {
    right: 1%;
  }

  #navi .menu li {
    padding: 4.5%;
  }


/* ************************
features
************************ */
.features_item  {
  flex-direction: column;
  padding: 1%;
}

.f-pic {
  width: 90%;
  margin: 0 auto;
}

.f-desc {
  width: 90%;
  margin: 0 auto;
}

#features .f-desc h3 {
  font-size: 1.2rem;
}

/* ************************
works
************************ */
.w-container {
  flex-direction: column;
  flex-wrap: nowrap;
  margin-top: 40px;
}

#works .w-item {
  width: 96%;
  margin: 0 auto 72px;
}

.see-more {
  padding-right: 2%;
}

/* ************************
news 
************************ */
.news-item a {
  flex-direction: column;
  padding: 4%;
}

.news-meta {
  width: 96%;
}

.news__meta_date {
  width: 33%;
}

.cat {
  width: 50%;
}

.n-title {
  width: 96%;
  margin-top: 24px;
}

/* ************************
company
************************ */
.last td:last-child {
  border-bottom: solid 1px #ccc;
  width: 100%;
}
.tbl {
  width: 96%;
}
.tbl th,
.tbl td {
  border-bottom: none;
  display: block;
  width: 100%;
}

/* *******************
map
******************* */
#map {
  height: 200px;
}



/* TOPに戻るボタン */
#page-top {
  bottom: 10px;
  right: 3px;
 }


/* *******************
archives.html
******************* */
.archives-mainvisual {
  height: 200px;
}

.archives-mainvisual img {
  height: 200px;
}

.archives-article {
  flex-direction: column;
}

.archives-item {
  margin-left: 2%;
  margin-right: 2%;
}

.archives-article {
  flex-direction: column;
}

.archives-pic {
  width: 100%;
}


.archives-content {
  margin-left: 0;
}

#archives dl dd.cat {
  width: 36%;
}

/* *******************
single.html
******************* */
.single-page {
  flex-direction: column;
  padding: 2%;
  margin: 120px auto;
}

.single-page article {
  width: 100%;
}

.single-page aside {
  width: 100%;
  margin-top: 24px;
  padding-left: 0;
}

/* *******************
single-contact
******************* */
#single-contact .single-contact_message {
  width: 80%;
  margin: 0 auto;
}


/* ********************
お問い合わせフォーム
********************* */

#cf-tbl{
  width: 100%;
  }
  
  #cf-tbl table,
  #cf-tbl table tbody,
  #cf-tbl table tr,
  #cf-tbl table tr th,
  #cf-tbl table tr td{
  display: block;
  }
  
  #cf-tbl table{
  width: 100%;
  border-width: 0 0 1px 0;
  }
  
  #cf-tbl table tr th,
  #cf-tbl table tr td{
  width: 100%;
  padding: 3% 5%;
  }
  
  #cf-tbl table tr td{
  border-width: 0px 1px 0px 1px;
  }
  
  input.wpcf7-submit {
  width: 250px;
  }

  
}