@charset "UTF-8";
@import url("reset.css");

html {
  font-size: 14px;
  line-height: 1.8;
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
:root {
  --main-color: rgb(0, 125, 67);
  --main-color-rgb: 0, 125, 67;
  --sub-color: rgb(137, 200, 145);
  --sub-color-rgb: 137, 200, 145;
  --head-high: 4em
}


/* ------------------------
  共通
------------------------ */
.wrap {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
section {
  padding: 4rem 0;
}
.top_section {
  margin-top: var(--head-high);
}
@media (min-width: 961px) {
  section {
    padding: 6rem 0;
  }
}
/* メインタイトルの設定
------------------------ */
.main_title h2 {
  margin-top: 2rem;
  font-size: 1.7rem;
}
h2 {
  font-size: 1.7rem;
}
.listTitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.main_title p {
font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 3rem;
}
@media (min-width: 961px) {
  .main_title p {
      margin-bottom: 6rem;
    }
}
/* 小見出しの装飾
------------------- */
.h3sec {
  text-align: center;
  width: 11rem;
  padding: 0 1rem;
}
.h3sec h3 {
  font-size: 1.6rem;
  line-height: 1.2;
  border-bottom: 3px solid var(--main-color);
}
.h3sec p {
  font-size: 0.9rem;
  color: #666;
  line-height: 2.0;
}
/* 画面遷移の装飾
------------------ */
.trans {
  position: relative;
}
.trans::after {
  content: "";
  width: 1rem;
  height: 1rem;
  background-image: url(../img/transition.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: absolute;
  top: 0.1rem;
  right: -1.5rem;
}
/* 他ページへリンクの装飾
-------------------------- */
.moreLink {
  margin: 1rem 0 0;
  text-align: right;
}
.moreLink a {
  display: inline-block;
  padding: 0 2rem;
  margin-right: 1rem;
  border-bottom: 1px solid #333;
  position: relative;
  transition: 0.3s;
}
.moreLink a::after {
  content: "";
  position: absolute;
  height: 0.8rem;
  border-right: 1px solid #333;
  /* 傾きを調節 基準点を右下*/
  transform-origin: right bottom;
  transform: skewX(45deg);
  right: 0;
  bottom: 0;
}
.moreLink a:hover {
  /* font-weight: 600; */
  color: var(--main-color);
  border-bottom: 1px solid var(--main-color);
  margin-right: 0;
  padding: 0 3rem 0 1rem;
}
.moreLink a:hover::after {
  border-color: var(--main-color);
}
/* ボタンの装飾
---------------- */
.button {
  display: inline-block;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  width: 16rem;
  height: 3.5rem;
  line-height: 3.5rem;
  transition: 0.3s;
  font-size: 1.1rem;
}
.button:hover {
  color: #fff;
  background: var(--main-color);
  opacity: 0.8;
}
/* アコーディオン飾り
--------------------- */
.js_title {
  position: relative;
  width: 100%;
}
.js_title:after {
  content: "\f078　";
  font-family: "Font Awesome 5 Free";
  font-weight:900;
  width: 1rem;
  position: absolute;
  bottom: 1rem;
  right: 0.5rem;
  transition: 0.5s;
}
.js_title.open:after {
  transform: rotate(0.5turn);
  transition: 0.5s;
}
/* トップへ戻る
---------------- */
#gototop {
  position: fixed;
  bottom: -5rem;
  right: 0.5rem;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  background: #fff;
  z-index: 2;
  opacity: 0.5;
  transition: 0.5s;
}
#gototop::before,
#gototop::after {
  position: absolute;
  content: "";
  top: 0.8rem;
  left: 0.9rem;
  width: 1rem;
  height: 1rem;
  border-top: 2px solid var(--main-color);
  border-right: 2px solid var(--main-color);
  transform: rotate(-45deg);
  transition: 0.3s;
}
#gototop::after {
  top: 1.5rem;
}
#gototop:hover {
  transform: scale(1.1);
  opacity: 1;
}
#gototop.show {
  bottom: 2rem;
}
@media (min-width: 961px) {
  #gototop {
    width: 3.5rem;
    height: 3.5rem;
    right: 1.5rem;    
  }
  #gototop::before,
  #gototop::after {
    top: 1rem;
    left: 1rem;
    width: 1.2rem;
    height: 1.2rem;
  }
  #gototop::after {
    top: 1.8rem;
  }
  #gototop.show {
    bottom: 2.5rem;
  }
}
/* アニメーション
-------------------------- */
.anime {
  opacity: 0;
}
.motion {
  animation-duration:0.5s;
  animation-fill-mode:forwards;
  opacity: 0;
}
.motion.fadeup {
  animation-name:fadeUpAnime;
}
.motion.slideLR {
  animation-name:slideAnimeLR;
  animation-duration:1s;
}
.motion.zoomin {
  animation-name:zoomInAnime;
  animation-duration:1s;
}
.motion.delay0 {
  animation-delay: 0s;
}
.motion.delay05 {
  animation-delay: 0.5s;
}
.motion.delay10 {
  animation-delay: 1s;
}
/* ふわっとアニメーション */
@keyframes fadeUpAnime{
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* スライドアニメーション */
@keyframes slideAnimeLR{
  from {
    opacity: 0;
    transform: translateX(-200px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* ズームインアニメーション */
@keyframes zoomInAnime{
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ------------------------
  loading...
------------------------ */
.loading {
  width: 100vw;
  height: 100vh;
  transition: all 1s;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}
.spinner_box {
  width: 8rem;
  height: 4rem;
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  margin: 0 auto;
}
.spinner,
.spinner::before,
.spinner::after {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  animation: sh_scaling 1.8s infinite ease-in-out;
  top: 0;
}
.spinner {
  color: var(--sub-color);
  position: relative;
  left: 40%;
  animation-delay: -0.16s;
}
.spinner::before,
.spinner::after {
  content: "";
  position: absolute;
}
.spinner::before {
  left: -3rem;
  animation-delay: -0.32s;
}
.spinner::after {
  left: 3rem;
}
/* ローディングアニメーション */
@keyframes sh_scaling {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em var(--sub-color);
  }
  40% {
    box-shadow: 0 2.5em 0 0 var(--sub-color);
  }
}
/* 画面ロードが終わったら非表示 */
.loaded {
  opacity: 0;
  visibility: hidden;
}

/* ------------------------
  IE Message...
  IEの場合に表示するメッセージ
------------------------ */
.header-bar {
  position:fixed;
  top:0px;
  left:0px;
  width:100vw;
  z-index:9999;
  overflow:hidden;
  background: rgba(153, 153, 153, 0.85);
}
.header-inner {
  width: 100%;
  display:block;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 400;
  color: #fff;
  z-index:9999;
  padding: 1rem;
}
.header-inner div {
  display: inline-block;
  width: 45%;
  height: 2rem;
  background: #fff;
  text-align: center;
  margin: 1rem 0.5rem;
}
.header-inner a {
  display: block;
  width: 100%;
  height: 2rem;
  line-height: 2rem;
  color:#999;
}
@media (min-width: 521px) {
  .header-inner {
    width: 80%;
    margin: 0 auto;
  }
  .header-inner div {
    width: 30%;
  }
}


/* ------------------------
  header
------------------------ */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 3;
  padding: 0 5%;
}
.header_container {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  vertical-align: middle;
  /* align-items: flex-end; */
  height: var(--head-high);
  padding: 0.5rem 0;
  transition: 0.3s;
  max-width: 1180px;
  margin: 0 auto;
}
/* 西建ロゴ */
h1.companylogo {
  padding-bottom: 0.3rem;
}
h1.companylogo a {
  display: flex;
}
h1.companylogo img {
  width: 8.5rem;
  transition: 0.3s;
}
/* SNSアイコン */
.header .snslogo {
  height: 3rem;
}
.snslogo,
.snslogo > ul,
.menu_small {
  display: flex;
  align-items: center;
}
.snslogo img {
  width: 1.6rem;
  margin: 0.2rem;
  transition: 0.3s;
}
.snslogo ul a {
  display: block;
  background: var(--main-color);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  transition: 0.3s;
}
.snslogo ul a:hover {
  background: var(--sub-color);
  transition: 0.3s;
}
.snslogo .menu_small img:hover {
  transform: scale(0.8);
  transition: 0.3s;
}
.menu_small {
  position: relative;
  width: 3rem;
  height: 3rem;
  bottom: 0;
}
.menu_small img {
  width: 2.2rem;
  margin: 0 0.4rem 0;
  position: absolute;
}
/* SNS＆メニューアイコン */
.header .snslogo {
  margin-left: auto;
}
/* 高さを低くする */
.header_container.short  {
  height: calc(var(--head-high) * 0.8);
  padding-bottom: 0.2rem;
}
.header_container.short .companylogo img {
  transform-origin: left;
  transform: scale(0.8);
}
@media (min-width: 961px) {
  h1.companylogo {
    padding-bottom: 0.3rem;
  }
  h1.companylogo img {
    width: 10.5rem;
  }
  .menu_small {
    width: 3.6rem;
    height: 3.6rem;
    margin-left: 1.2rem;
  }
  .snslogo img {
    width: 2rem;
  }
  .snslogo ul a {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.8rem;
  }
  .menu_small img {
    width: 2.6rem;
  }
}
@media (min-width: 1080px) {
  .menu_small {
    display: none;
    transition: 0.3s;
  }
  .header_container {
    height: calc(var(--head-high) + 1rem);
  }
  .snslogo ul li:first-child {
    display: none;
  }
}

/*=== グローバルメニュー Start ===*/
.hd_menu {
  display: none;
  width: 70%;
  margin: 0.5rem 12% 0 18%;
}
.hd_menu .menu_contents {
  width: 100%;
  display: flex;
  flex: auto;
  justify-content: space-between;
}
.hd_menu .menu_contents li {
  padding: 1rem 0;
}
.hd_menu .menu_contents a {
  display: block;
  padding: 1.5rem 1rem 0.5rem;
  position: relative;
}
.hd_menu .menu_contents a::before {
  /* hover時に下線を左→右へ向かって引く */
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--main-color);
  transition: all 0.3s ease-in;
}
.hd_menu .menu_contents img {
  display: inline-block;
  padding: 0.2rem;
  width: 1.5rem;
  background: var(--main-color);
  border-radius: 4px;
  /* margin: 0 0.5rem 0.5rem 0; */
  margin-right: 0.5rem;
  vertical-align: middle;
}
.hd_menu .menu_contents a:hover {
  color: var(--main-color);
}
.hd_menu .menu_contents a:hover::before {
  width: 100%;
}
@media (min-width: 1080px) {
  /* ヘッダーメニュー表示 */
  .hd_menu {
    display: block;
    position: relative;
    z-index: 5;
  }
}
/*=== グローバルメニュー End ===*/
/*=== ハンバーガーメニュー Start ===*/
.overlay {
  position: fixed;
  height: calc(100vh - var(--head-high));
  top: var(--head-high);
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(51, 51, 51, 0.5);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity .6s;
  cursor: pointer;
}
#open, #close {
  cursor: pointer;
  transition: 0.3s;
}
#close {
  display: none;
  transition: 0.3s;
}
.overlay .menu_contents {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  padding: 0.5rem 10%;
  background: #fff;
  cursor: default;
  transition: 0.3s;
}
.overlay .menu_contents a {
  display: block;
  padding: 0.5rem;
  color: #333;
  text-align: left;
}
.overlay .menu_contents li {
  border-bottom: 1px solid var(--main-color);
  opacity: 0;
  transform: translateY(2rem);  /* 下からふわっと表示 */
  transition: .3s;
}
.overlay .menu_contents li:last-of-type {
  border-bottom: none;
}
.overlay.show {
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  transition: 0.3s;
}
.overlay.show li {
  opacity: 1;
  transform: none;
  transition: .3s;
}
.overlay li .trans::after {
  right: 5%;
  top: 1rem;
} 
/* 一行ずつ下からふわっと表示 */
.overlay.show li:nth-child(1) {
  transition-delay: .1s;
}
.overlay.show li:nth-child(2) {
  transition-delay: .15s;
}
.overlay.show li:nth-child(3) {
  transition-delay: .2s;
}
.overlay.show li:nth-child(4) {
  transition-delay: .25s;
}
.overlay.show li:nth-child(5) {
  transition-delay: .3s;
}
.overlay.show li:nth-child(6) {
  transition-delay: .35s;
}
.overlay.show li:nth-child(7) {
  transition-delay: .4s;
}
.overlay.show li:nth-child(8) {
  transition-delay: .45s;
}
.overlay.show li:nth-child(9) {
  transition-delay: .5s;
}
.overlay.show li:nth-child(10) {
  transition-delay: .55s;
}
.overlay.show li:nth-child(11) {
  transition-delay: .6s;
}
.overlay.show li:nth-child(12) {
  transition-delay: .65s;
}
@media (min-width: 375px) {
  .overlay .menu_contents {
    padding: 2rem 15%;
  }  
}
@media (min-width: 961px) {
  .overlay {
    display: flex;
  }
  .overlay .close_space {
    width: 20%;
  }
  .overlay .menu_contents {
    width: calc(80% - 20%);
    box-sizing: initial;
    height: auto;
    padding: 2rem 10%;
    /* margin-left: 20%; */
  }
  @media (min-width: 1080px) {
    /* ヘッダーメニュー表示 */
    /* ハンバーガーメニュー非表示 */
    .overlay {
      opacity: 0;
    }
  }
}
/*=== ハンバーガーメニュー End ===*/


/* ------------------------
  footer
------------------------ */
footer {
  padding: 23rem 0 0;
}
.ft_color {
  background: var(--main-color);
  padding: 2rem 0 1rem;
  position: relative;
}
/* メニュー */
.ft_menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  position: absolute;
  top: -22rem;
  margin: 0 auto;
  /* left: 15%; */
  width: 90%;
}
.ft_menu li {
  text-align: left;
  margin-bottom: 0.8rem;
  width: 45%;
  padding-left: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgb(155, 155, 155);
}
.ft_menu li:last-of-type,
.ft_menu li:nth-last-of-type(2) {
  border-bottom: none;
}
/* 三角矢印の装飾 */
.ft_menu .circle a {
  padding-left: 1rem;
  position: relative;
}
.ft_menu .circle a::before {
  content: "";
  top: 0.1rem;
  left: 0rem;
  position: absolute;
  border-left: 0.6rem solid #333;
  border-top: 0.4rem solid transparent;
  border-bottom: 0.4rem solid transparent;
}
.ft_menu a:hover {
  color: var(--main-color);
  text-decoration: underline;
}
/* ロゴ */
.ft_logo {
  margin-bottom: 2rem;
}
.ft_logo .companylogo {
  position: relative;
  width: 7rem;
  height: 7rem;
  background: #fff;
  border-radius: 50%;
  margin: 0 auto;
}
.ft_logo .companylogo img {
  width: 4rem;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right:0;
  margin: auto;
  transition: 0.3s;
}
.ft_logo .snslogo {
  justify-content: center;
}
.ft_logo .snslogo a {
  display: block;
}
.ft_logo .snslogo li {
  padding: 0.5rem;
}
.ft_logo .snslogo img {
  width: 2.5rem;
  transition: 0.3s;
}
.ft_logo img:hover {
  transform-origin: center;
  transform: scale(1.2);
}
/* アドレス */
.ft_address img {
  width: 2rem;
  margin-right: 0.2rem;
  transition: 0.3s;
}
.ft_address p,
.ft_address a {
  color: #fff;
}
.ft_address address {
  margin: 2rem auto 0;
}
.ft_address address p {
  font-style: normal;
  margin: 0.6rem 0;
}
.ft_address .telfax a {
  font-size: 1.3rem;
  text-decoration: underline;
}
.ft_address a:hover img {
  transform: scale(1.2);
}
.ft_copy {
  padding: 2rem 0 1rem;
}
footer small {
  font-size: 12px;
  color: #333;
} 
@media (min-width: 751px) {
  /* TEL番号のリンク解除 */
  a[href*="tel:"] {
    pointer-events: none;
  }
  .ft_address .telfax a {
    text-decoration: none;
  }
  footer {
    padding: 23rem 0 0;
  } 
  .ft_menu li {
    width: 40%;
    padding-left: 2rem;
  }
}
@media (min-width: 961px) {
  /* メニューを横並びにする */
  footer {
    padding: 2rem 0 0;
  }
  .ft_color .wrap {
    display: flex;
    flex-wrap: wrap;
  }
  .ft_logo {
    padding: 8rem 0;
  }
  .ft_logo .companylogo {
    transform: scale(1.2);
  }
  .ft_logo .snslogo li {
    margin-top: 1.5rem;
  }
  .ft_menu {
    position: static;
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    padding: 2.5rem 10%;
    margin: 3rem 0;
  }
  .ft_menu li {
    width: 50%;
    border-bottom: none;
    padding-left: 0;
  }
  .ft_menu .circle a::before {
    border-left: 0.6rem solid #FFF;
    border-top: 0.4rem solid transparent;
    border-bottom: 0.4rem solid transparent;
  }
  .ft_menu a:hover {
    color: #FFF;
    text-decoration: underline;
  }
  .ft_address {
    text-align: left;
    padding: 8rem 0 0 4rem;
  }
  .ft_color nav,
  .ft_color .ft_logo,
  .ft_color .ft_address {
    box-sizing: border-box;
    width: calc(100% / 3);
    margin: 0 auto;
  }
  .ft_color .ft_copy {
    width: 100%;
  }
  .ft_menu .trans:after {
    /* バックカラーが緑なので白いアイコンに変更 */
    background-image: url(../img/transition_w.png);
  }
}

/* ==========================
  トップページ
  index.thml
========================== */
/*  main
-------------------------- */
.main_slide {
  position: relative;
  /* 親要素よりも大きく表示*/
  width: 100vw;
  margin: 0 calc(50% - 50vw) 0;
  height: 100vh;
  max-height: 700px;
  overflow: hidden;
}
.main_slide .slide_show {
  width: 100vw;
  height: 100vh;
  max-height: 700px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
.main_slide.slidestart .slide_show {
  /* アニメーション名/完了までの秒数/進行/回数 */
  animation: slideshow 25s linear infinite;
}
.main_slide .slide {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 100vw;
  height: 100vh;
  max-height: 700px;
}
.main_slide .slide01 {
  background-image: url(../img/slide01.jpg);
}
.main_slide .slide02 {
  background-image: url(../img/slide02.jpg);
}
.main_slide .slide03 {
  background-image: url(../img/slide03.jpg);
}
.main_slide .slide04 {
  background-image: url(../img/slide04.jpg);
  background-position: left 70% top 10%;
}
.main_slide .slide05 {
  background-image: url(../img/slide05.jpg);
}
.main_slide .slide_show:nth-of-type(1) {
  /* 2秒経過したところから始める */
  animation-delay: 0s;
  /* animation-delay: 0s; */
}
.main_slide .slide_show:nth-of-type(2) {
  animation-delay: 4s;
  /* animation-delay: 5s; */
}
.main_slide .slide_show:nth-of-type(3) {
  animation-delay: 9s;
  /* animation-delay: 10s; */
}
.main_slide .slide_show:nth-of-type(4) {
  animation-delay: 14s;
  /* animation-delay: 15s; */
}
.main_slide .slide_show:nth-of-type(5) {
  animation-delay: 19s;
  /* animation-delay: 20s; */
}

/* メインスライドショー */
@keyframes slideshow {
  0%{
    opacity: 0;
  }
  10%{
    opacity: 1;
  }
  20%{
    opacity: 1
  }
  30%{
    opacity: 0;
  }
  100%{
    opacity: 0;
  }
}
.main_slide .slide_show p {
  display: block;
  width: 8rem;
  height: 8rem;
  position: absolute;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.3rem;
  color: #fff;
  background: rgba(70, 70, 70, 0);
  top: calc(100vh / 2);
  text-shadow: 0px 0px 5px #444444;
}
.main_slide .slide02 + p {
  top: 20%;
  left: 10%;
}
.main_slide .slide03 + p {
  top: 30%;
  right: 10%;
  background: rgba(70, 70, 70, 0.15);
}
.main_slide .slide04 + p {
  top: 60%;
  left: 10%;
  background: rgba(70, 70, 70, 0.3);
}
.main_slide .slide05 + p {
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
}
@media (min-width: 521px) {
  .main_slide,
  .main_slide .slide_show,
  .main_slide .slide {
    height: calc(100vw * .7);
    max-height: 1000px;
  }
  .main_slide .slide02,
  .main_slide .slide03,
  .main_slide .slide04 {
    width: 70vw;
  }
  .main_slide .slide03 {
    background-image: url(../img/slide03_pc.jpg);
    background-position: left;
  }
  .main_slide .slide_show:nth-of-type(2),
  .main_slide .slide_show:nth-of-type(3),
  .main_slide .slide_show:nth-of-type(4) {
    display: flex;
    flex: wrap;
  }
  .main_slide .slide_show:nth-of-type(3) {
    flex-direction: row-reverse;
  }
  /* スライド5以外のテキスト装飾を変更 */
  .main_slide .slide_show p:not(.slide05 + p) {
    /* position: initial; */
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    font-size: 1.3rem;
    color: #333;
    text-shadow: none;
    background: rgba(70, 70, 70, 0); 
    /* margin: 0 auto; */
  }
  .main_slide .slide05 + p {
    top: 40%;
    left: 30%;
  }
  .main_slide .slide04 {
    background-position: left 30% top 0%;
  }  
}
@media (min-width: 1080px) {
  /* ヘッダーメニュー表示 */
  /* メインスライド高さ調整 */
  .main_slide,
  .main_slide .slide_show,
  .main_slide .slide {
    height: calc(100vh - 6.3rem);
  }
  /* 普通に[p]を指定しただけでは上書きできなかった */
  .main_slide .slide_show p:not(.slide05 + p),
  .main_slide .slide_show p {
    width: 12rem;
    height: 10rem;
    font-size: 2rem;
  }
  .main_slide .slide04 {
    background-position: left;
  }  
}

/*  News
-------------------------- */
.main_news > img {
  width: 4rem;
  margin-top: 3.5rem;
}
.main_news .news_list,
.page_news_list .news_list {
  background: rgb(var(--sub-color-rgb), 0.3);
  border-radius: 4px;
  margin: 0 auto 1rem;
  padding: 1rem 0.5rem 1rem 1rem;
  text-align: left;
}
.main_news .news_list {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
}
.main_news dl {
  width: 100%;
}
.main_news .moreLink {
  margin-left: auto;
}
@media (min-width: 650px) {
  .main_news {
    max-width: 80%;
    margin: 0 auto;
  }
}
@media (min-width: 961px) {
  .main_news {
    max-width: 70%;
    margin: 0 auto;
  }
  .main_news .news_list {
    padding-left: 3rem;
  }
}

/*  About us
-------------------------- */
.sub_aboutus h4 {
  font-size: 1.3rem;
}
.sub_aboutus span {
  font-size: 1.1rem;
}
.sub_aboutus {
  background-image: url(../img/back_aboutus.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  /* background-attachment: fixed; */
}
.sub_aboutus .about_text {
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.6);
  width: 100%;
  /* max-width: 32rem; */
  padding: 3rem 2rem;
  margin: 0 auto;
  border-radius: 4px;
}
.sub_aboutus .about_textblock {
  text-align: justify;
  text-justify: inter-character;
}
.sub_aboutus .about_textblock p {
  margin-top: 2rem;
  line-height: 2.0;
}
.sub_aboutus .about_text img {
  display: block;
  width: 50%;
  object-fit: contain;
  max-width: 12rem;
  margin: 1rem 0 2rem auto;
}
@media (min-width: 521px) {
  .sub_aboutus .about_text {
    width: 90%;
  }
}
/* @media (min-width: 768px) { */
@media (min-width: 805px) {
  .sub_aboutus {
    background-image: url(../img/back_aboutus_m.jpg);
  }
  .sub_aboutus .about_text {
    /* width: 60%; */
    max-width: none;
    padding: 3rem 3rem;
  }
  .sub_aboutus .about_text p {
    line-height: 2.0;
  }
}
@media (min-width: 961px) {
  .sub_aboutus h4 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
  }
  .sub_aboutus span {
    font-size: 1.3rem;
  }
  .sub_aboutus .about_text {
    padding: 4rem;
    display: block;
    width: 70%;
    max-width: 57rem;
  }
  .sub_aboutus .about_textcontents2 {
    display: flex;
    align-items: center;
    margin: 0 auto;
  }
  .sub_aboutus .about_textblock img {
    width: 30%;
    margin: 0 0 0  2rem;
  }
  .sub_aboutus .about_textcontents2 {
    /* width: 69%;  */
    margin-right: 1%;
  }
}

/*  Mind
-------------------------- */
.main_mind .h3sec {
  margin-left: auto;
}
.main_mind .h3sec + p {
  margin: 4rem auto 3rem;
}
.main_mind article {
  position: relative;
  text-align: center;
  margin-top: 8rem;
}
.main_mind article .square {
  /* 親要素よりも大きく表示 */
  width: 100vw;
  margin: 0 calc(50% - 50vw) 0;
}
.main_mind article .inner {
  height: 17rem;
  background-color:rgba(255,255,255,0.5);
  filter: grayscale(100%);
  background-blend-mode:lighten;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.main_mind article.appear {
  opacity: 1;
  transform: translateY(0);
}
.main_mind .technology .inner {
  background-image: url(../img/mind_technology.jpg);
}
.main_mind .passion .inner {
  background-image: url(../img/mind_passion.jpg);
}
.main_mind .smile .inner {
  background-image: url(../img/mind_smile.jpg);
}
.main_mind h4 {
  font-size: 1.6rem;
  color: #fff;
  width: 80px;
  line-height: 80px;
  position: absolute;
  left: calc(50% - 40px);
  top: -40px;
  right: 50%;
}
.main_mind .technology h4 {
  background: rgba(93, 154, 34);
}
.main_mind .passion h4 {
  background: #D53E10;
}
.main_mind .smile h4 {
  background: #EF9F20;
}
.main_mind article p {
  width: 100%;
  text-align: justify;
  margin: 1rem auto;
}
.main_mind .times::before {
  content: "\f00d";
  font-family: "Font Awesome 5 Free";
  font-weight:900;
  color: #4D4D4D;
}
.main_mind .equal::before {
  content: "\f52c";
  font-family: "Font Awesome 5 Free";
  font-weight:900;
  color: #4D4D4D;
}
@media (min-width: 521px) {
  .main_mind article {
    width: 50%;
    margin: 8rem auto 0;
  }
  .main_mind article .inner {
    width: 50%;
    margin: 0 auto;
  }
}
@media (min-width: 961px) {
/* @media (min-width: 1200px) { */
  .main_mind article {
    width: 31%;
  }
  .main_mind article .square {
    width: 100%;
    margin: 0;
  }
  .main_mind article .inner {
    width: 100%;
    padding-bottom: 80%;
  }
  .main_mind .mind_contents {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
  }
}

/*  Scroll
-------------------------- */
.scroll p {
  position: relative;
  margin-bottom: 10rem;
}
.scroll p::after {
  content: "";
  height: 8rem;
  width: 1.5rem;
  border-left: solid 1px gray;
  border-bottom: solid 1px gray;
  /* 傾きを調節 基準点を右下*/
  transform-origin: left bottom;
  transform: skewY(-45deg);
  position: absolute;
  left: 50%;
  bottom: -9rem;
}


/*  Service
-------------------------- */
.main_service article {
  /* ページ内リンクでジャンプ時にトップを揃える */
  padding: var(--head-high) 0 0;
  margin-bottom: 2rem;
}
.main_service h5 {
  font-size: 1.6rem;
  font-weight: 600;
  font-family: serif;
  text-align: right;
  line-height: 1.5;
}
.main_service h5.textLeft {
  text-align: left;
}
.main_service article p {
  text-align: justify;
  margin: 1rem 0 0.5rem;
}
.main_service .button {
  margin-top: 2rem;
}
.main_service .service_content > img {
  object-fit: contain;
  /* 親要素よりも大きく表示 */
  width: 100vw;
  margin: 0 calc(50% - 50vw) 0;
  /* min-height: 300px;
  object-fit: cover; */
}
.main_service .service_text .pagelink_l {
  display: none;
}
.main_service article a > img {
  display: block;
  height: 4rem;
  transition: 0.3s;
}
.main_service article a > img:hover {
  transform: scale(1.2);
  transition: 0.3s;
}
.main_service #woodface a > img {
  margin-right: auto;
}
.main_service #niwahoushi a > img {
  margin-left: auto;
}
@media (min-width: 961px) {
  .main_service .service_text .pagelink_l {
    display: block;
  }
  .main_service .pagelink_s {
    display: none;
  }
  .main_service #woodface a {
    margin-left: auto;
  }
  .main_service #niwahoushi a {
    margin-right: auto;
  }
  .main_service .service_content {
    width: 100%;
    /* 親要素よりも大きく表示 */
    width: 100vw;
    margin: 0 calc(50% - 50vw) 2rem;
  }
  .main_service .service_content > img {
    width: 65%;
    object-fit: cover;
  }
  .main_service .service_text {
    width: 35%;
    padding-right: 1rem;
    margin-left: auto;
    display: flex;
    flex-flow: column;
    justify-content:flex-end;
    align-items: flex-end;
  }
  .main_service article:nth-of-type(even) .service_text {
    align-items: flex-start;
    padding-left: 1rem;
  }
  .main_service .service_text p {
    max-width: 320px;
  }
  .main_service .service_content {
    display: flex;
  }
  .main_service  article:nth-of-type(even) .service_content {
    flex-direction: row-reverse;
  }
  .main_service h5 {
    font-size: 2.0rem;
  }
}


/* ==========================
  お知らせ一覧
  news.thml
========================== */
/*  news_list
-------------------------- */
.page_news_list {
  padding-top: 6rem;
}
.page_news_list > img {  /* 西建ロゴ */
  width: 4rem;
}
.page_news_list .news_year,
.page_news_list .news_list {
  box-sizing: border-box;
}
.page_news_list .news_year {
  width: 100%;
  padding: 2rem 1rem 0.5rem;
}
.page_news_list .news_year p {
  /* font-weight: 600; */
  font-size: 1.1rem;
  margin: 1rem 0 2rem;
}
.page_news_list .news_year ul {
  display: flex;
  flex-wrap: wrap;
}
.page_news_list .news_year li {
  line-height: 1.5;
  margin: 0 0.5rem 1rem;
  padding: 0 0 0 0.5rem;
  border-bottom: 1px solid #333;
  cursor: pointer;
  position: relative;
}
.page_news_list .news_year li.select {
  font-weight: 600;
}
.page_news_list .news_year li.select::before {
  content: "\f0da";
  font-family: "Font Awesome 5 Free";
  font-weight:900;
  color: #4D4D4D;
  position: absolute;
  left: 0;
}
.page_news_list .news_year li.select span {
  font-weight: 600;
}
.page_news_list .news_list {
  height: calc(100vh - 10rem);
  overflow-y: scroll;
}
.news_list .news_title {
  cursor: pointer;
  border-top: 1px solid gray;
  padding: 1rem 1.5rem 1rem 0;
}
.news_list .news_title p.new::after {
  content: "New";
  font-weight: normal;
  font-size: 0.8rem;
  line-height: 1rem;
  padding: 0.1rem 0.3rem 0;
  margin-left: 0.5rem;
  color: #E6494E;
  border: 1px solid #E6494E;
  display: inline-block;/*忘れずに！*/
  vertical-align: top;
}
.news_list .news_title:first-of-type {
  border-top: none;
}
.news_list a {
  display: inline-block;
  text-decoration: underline 1px solid #666;
  margin-top: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}
.news_list a::before {
  content: "\f101";
  font-family: "Font Awesome 5 Free";
  font-weight:900;
  color: #4D4D4D;
  position: absolute;
  left: 0;
}
.news_list .news_title p {
  font-weight: normal;
  cursor: pointer;
  font-weight: 600;
}
.news_list .news_title p:hover {
  font-weight: 600;
}
.news_list .news_title.open p::before {
  transform: rotate();
}
.news_list img {
  width: 90%;
  margin-top: 1rem;
}
.news_list dl {
  display: none;
}
.news_list dl.show {
  display: block;
}
.news_list .news_contents {
  padding: 0.5rem  1.5rem 1.5rem 0;
}
/* .news_list .js_title:first-child + dd { */
.news_list .js_title.open + dd {
    display: block;
}
.news_list .news_contents.js_contents {
  display: none;
}
@media (min-width: 650px) {
  .news_list .news_title {
    padding: 1rem 3rem 1rem 0;
  }
  .page_news_list .news_list .news_title p {
    display: inline-block;
    margin-left: 2rem;
    font-size: 1.1rem;
  }
  .news_list .news_contents {
    padding: 0.5rem 3rem 1.5rem 1rem;
  }
  .news_list img {
    width: 60%;
  }  
}
@media (min-width: 961px) {
  .page_news_list .newscontents {
    display: flex;
  }
  .page_news_list .news_year {
    width: 20%;
    font-size: 1.1rem;
  }
  .page_news_list .news_list {
    width: 80%;
  }
  .page_news_list .news_year ul {
    display: block;
  }
  .page_news_list .news_year li {
    width: 8.5rem;
    margin: 1.5rem auto;
  }
  .page_news_list .news_year li.select::before {
    left: 1rem;
  }
  .page_news_list .news_list {
    margin-top: 2rem;
    padding: 2rem;
  }
  
}


/* =========================
  アクセス
  access.php
========================== */
/*  main
-------------------------- */
.main_access article {
  text-align: left;
  margin-top: 6rem;
}
.main_access article::before {
  display: block;
  height: 7rem;
  margin-top: -7rem;
  content: "";
}
.main_access .access_hero,
.main_access article .access_info > img,
.main_access article .map {
  /* 親要素よりも大きく表示 */
  width: 100vw;
  margin: 0 calc(50% - 50vw) 0;
  height: 12rem;
  object-fit: cover;
  opacity: 0.9;
}
.main-office .access_info > img,
.niwahoushi .access_info > img {
  object-position: left bottom;
}
.main_access article .access_info {
  margin: 0 auto;
}
.main_access article .map {
  height: 21rem;
  margin-top: 2rem;
}
.main_access h4 {
  font-size: 1.2rem;
  font-weight: bold;
  padding-left: 1rem;
  margin-top: 2rem;
  /* margin: 2rem 2rem 1rem; */
  border-left: 0.5rem solid var(--main-color);
}
.main_access address {
  font-style: normal;
}
.main_access .car,
.main_access .train {
  display: flex;
  text-align: left;
  margin-bottom: 0.5rem;
} 
.main_access .traffic img {
  object-fit: contain;
  width: 2.5rem;
}
.main_access article address > p {
  margin: 1rem 0;
}
.main_access article address > p:first-of-type {
  font-size: 1.1rem;
}
.main_access article address a img {
  display: block;
  margin-right: auto;
  height: 3.5rem;
  transition: .3s;
}
.main_access article address a img:hover {
  transform: scale(1.2);
  transition: .3s;
}
.main_access article address span {
  font-size: 1.3rem;
}

@media (min-width: 375px) {
  .main_access article {
    padding: 0 1rem;
  }
}
@media (min-width: 751px) {
  .main_access article .access_info {
    width: 43%;
    margin: 0;
  } 
  .main_access article .map {
    width: 55%;
    height: auto;
    margin: 0;
  }
  .main_access article .flex_address {
    /* 親要素よりも大きく表示 */
    width: 100vw;
    margin: 0 calc(50% - 50vw) 0;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
  }
  .main_access article .access_info > img {
    height: 5rem;
    width: 100%;
    margin-left: auto;
  }
  .main_access .tategu .access_info,
  .main_access .gaikou .access_info {
    padding-bottom: 2rem;
  }
}
@media (min-width: 961px) {
  .main_access article {
    margin-top: 8rem;
  }
  .main_access .access_hero {
    height: 18rem;
  }
  .main_access article .flex_address {
    width: 100%;
    margin: 0 auto;
  }
  .main_access .access_info address {
    padding-left: 1rem;
    /* width: 40%; */
  }
  .main_access article .access_info > img {
    height: 10rem;
  }
  .main_access h4 {
    font-size: 1.4rem;
    /* margin-top: 4rem; */
    /* margin-left: 4rem; */
  }
  .main_access article address > p {
    font-size: 1.1rem;
    margin: 2rem 0;
  }
  .main_access article address > p:first-of-type {
    font-size: 1.2rem;
  }
  .main_access article address span {
    font-size: 1.5rem;
  }
  .main_access .traffic .car {
    margin-bottom: 2rem;
  }
  /* ウッドフェイス・庭夢師リンク */
  .main_access article address a img {
    height: 5rem;
  }
}
@media (min-width: 1024px) {
  .main_access .traffic {
    display: flex;
    align-items: start;
    gap: 2rem;
  }
  .main_access .traffic .car {
    margin-bottom: 0;
  }
}

/* =========================
  お問い合わせ
  contact.php
========================== */
/*  main
-------------------------- */
.main_contact p span {
  font-size: 1.3rem;
}
.main_contact .frame {
  width: 17rem;
  height: 17rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  /* Safariで角丸が外れる問題解消 */
  position: relative;
  z-index: 1;
}
.main_contact .frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: 0.3s;
}
.main_contact img.logo {
  /* position: relative; */
  display: block;
  /* margin: 0.5rem auto; */
  transition: 0.3s;
  height: 3rem;
  width: auto;
  top: 0;
  left: 10%;
}
@media (min-width: 1240px) {
  .main_contact .frame {
    width: 19rem;
    height: 19rem;
  }
}

/* 各お問合せ先 */
.main_contact .contact_parts {
  margin-top: 2.5rem;
  display: grid;
  gap: 4.5rem;
}
.main_contact .contact_parts p {
  display: inline-block;
}
.main_contact .contact_parts p.link::after {
  content: " \f0da";
  font-family: "Font Awesome 5 Free";
  font-weight:900;
  color: var(--main-color);
}
.main_contact .trans::after {
  top: 0.3rem;
}
.main_contact h4 {
  display: inline-block;
  font-size: 1.15rem;
  line-height: 2.0;
  font-weight: bold;
  margin: 1rem auto 0;
  position: relative;
}
.main_contact a:hover img {
  /* transform-origin: center; */
  transform: scale(1.2);
}
.main_contact .phonenumber {
  margin: 1rem 0;
}
.main_contact .phonenumber a,
.contact_phone .phonenumber a {
  display: inline-block;
  position: relative;
  padding-left: 2.5rem;
  font-size: 1.2rem;
}
.main_contact .phonenumber a::before,
.contact_phone .phonenumber a::before {
  content: "";
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  background: url(../img/icon_phone.png) no-repeat;
  background-size: contain;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
@media (min-width: 521px) {
  .main_contact .contact_parts {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem 2rem;
  }
}
@media (min-width: 961px) {
  .main_contact .contact_parts {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4.5rem 2rem;
  }
}

/* =========================
  お問い合わせフォーム
  contactform.php
========================== */
/*  main
-------------------------- */
.contact_phone p span {
  font-size: 1.2rem;
}
.contact_phone .phonenumber {
  margin: 3rem 0;
}
.contact_phone .phonenumber span {
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--main-color);
}
.contact_phone .phonenumber a {
  font-size: 1.5rem;
}
.main_contact .phonenumber a::before,
.contact_phone .phonenumber a::before {
  width: 2rem;
  height: 2rem;
}
/* .main_contact .phonenumber a:nth-of-type(2),
.contact_phone .phonenumber p:nth-of-type(2) {
  margin-top: 1rem;
}
.main_contact .phonenumber a:last-of-type,
.contact_phone .phonenumber p:last-of-type {
  margin: 0;
} */

/*  お問合せフォーム
-------------------------- */
.contactform {
  background-color: rgba(var(--sub-color-rgb),0.5);
  /* 親要素よりも大きく表示 */
  width: 100vw;
  margin: 0 calc(50% - 50vw) 0;
}
.contactform h3 {
  font-size: 1.3rem;
}
.contactform form {
  box-sizing: border-box;
  padding: 4rem 1rem 0;
  text-align: left;
  width: 95%;
  max-width: 550px;
  margin: 0 auto;
}
.contactform label {
  /* display: block; */
  line-height: 3.0;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.contactform label.required::before {
  content: "必須";
  color: white;
  background: #E6494E;
  padding: 5px 8px;
  border-radius: 4px;
  margin-right: 0.5rem;
}
.contactform input,
.contactform textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #707070;
  padding: 10px 15px;
  font-size: 1.2rem;
  border-radius: 4px;
  position: relative;
}
.contactform textarea {
  height: 14rem;
  margin-bottom: 2rem;
}
input:autofill,
textarea:autofill{
  box-shadow: 0 0 0px 1000px #e8f0fe inset;
  background-image: none;
}
.contactform form > p {
  margin: 0 0 1.5rem 1rem;
  color: #555;
  font-size: 1.2rem;
}
::placeholder {
  color: rgba(0, 0, 0, 0.4);
  font-size: 1.1rem;
}
.contactform .privacy {
  margin-bottom: 1.5rem;
  text-align: center;
}
.contactform .privacy a {
  text-decoration: underline;
  margin: 0 auto;
}
/* checkboxをカスタマイズする */
.contactform .checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  overflow: hidden;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  width: auto;
  margin: 0;
}
.contactform .checklabel {
  display: inline-block;
  position: relative;;
  padding-left: 3rem;
  line-height: 2rem;
  text-align: left;
  cursor: pointer;
  user-select: none;
}
.contactform .checklabel::before {
  position: absolute;
  content: "";
  width: 2rem;
  height: 2rem;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #555;
  left: 0;
  vertical-align: middle;
}
.contactform .checklabel::after {
  position: absolute;
  content: "";
  width: 1rem;
  height: 2rem;
  border-bottom: 2px solid #E6494E;
  border-right: 3px solid #E6494E;
  transform: rotate(45deg);
  left: 0.5rem;
  top: -0.5rem;
  opacity: 0;
}
.contactform .checkbox:checked + .checklabel:after {
  opacity: 1;
}
.contactform input[type="submit"] {
  display: block;
  width: 80%;
  margin: 0 auto;
  padding: 1.2rem 0;
  font-weight: bold;
  color: white;
  border: 1px solid var(--main-color);
  background: var(--main-color);
  letter-spacing: 0.15rem;
  transition: 0.3S;
  cursor: pointer;
}
.contactform input[type="submit"]:focus,
.contactform input[type="submit"]:hover {
  background: var(--sub-color);
  color: var(--main-color);
  border: 1px solid var(--main-color);
}
.contactform input:focus,
.contactform textarea:focus {
  border: 1px solid #000;
  box-shadow: 0 0 5px;
  outline: 0;
  background: rgb(255, 196, 186);
}
.contactform .checkbox:focus + .checklabel:before {
  border-color: #1589ee;
  box-shadow: 0 0 5px #1589ee;
}
@media (min-width: 961px) {
  .contact_phone .phonenumber {
    margin-top: 4rem;
  }
  .contact_phone .phonenumber a {
    font-size: 2rem;
    padding-left: 3rem;
  }
  .contact_phone .phonenumber a::before {
    width: 2.5rem;
    height: 2.5rem;
  }
  .main_contact .logo {
    height: 2.5rem;
  }
  /* コンタクトフォーム */
  .contactform {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
  }
  .contactform form div {
    display: flex;
  }
  .contactform input,
  .contactform textarea {
    width: 70%;
    margin-left: auto;
  }
  .contactform form > p {
    margin-left: 33%;
  }
  .contactform form {
    width: 80%;
    max-width: 800px;
    padding: 4rem 2rem 0;
    margin: 0 auto;
  } 
  .contactform input[type="submit"] {
    width: 50%;
  }
  .contactform .privacy p {
    width: 60%;
    text-align: right;
  }
  .contactform .privacy a {
    width: 40%;
    text-align: left;
    padding-left: 1rem;
  }
  .contactform input[type="submit"] {
    margin-top: 1rem;
  }
}


/* =========================
  送信内容確認
  confirm.php
========================== */
.main_confirm h2 {
  text-align: center;
  margin-bottom: 3rem;
}
.confirm_sec {
  background-color: rgba(var(--sub-color-rgb),0.5);
}
.confirm_sec .wrap {
  width: 80%;
}
.confirm_sec p {
  text-align: left;
}
.confirm_sec p + p {
  margin-top: 0.5rem;
}
.confirm_contents {
  margin: 3rem auto;
}
.confirm_contents div + div {
  border-top: 0.5px solid var(--main-color);
}
.confirm_contents div {
  padding: 1rem 0;
}
/* .confirm_contents p:first-of-type { */
.confirm_contents p:last-of-type {
  font-weight: 600;
}
.main_confirm .alartmsg {
  font-size: 1.2rem;
  color:rgb(252, 65, 65);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  display: none;
}
.main_confirm .alartmsg.show {
  display: block;
}
/* ボタン */
.main_confirm .btn_sec {
  margin: 2rem auto;
  display: flex;
  flex-flow: column-reverse;
  gap: 2rem;
}
.main_confirm .btn_sec input {
  display: block;
  text-align: center;
  padding: 1.2rem 0;
  font-weight: bold;
  color: white;
  border: 1px solid var(--main-color);
  border-radius: 4px;
  background: var(--main-color);
  letter-spacing: 0.15rem;
  transition: 0.3S;
  cursor: pointer;
}
.main_confirm .btn_sec input[type="bottun"] {
  background: #4D4D4D;
  border: 1px solid #4D4D4D;
}
.main_confirm .btn_sec  input[type="submit"]:focus,
.main_confirm .btn_sec  input[type="submit"]:hover {
  background: var(--sub-color);
  color: var(--main-color);
  /* border: 1px solid var(--main-color); */
}
.main_confirm .btn_sec  input[type="bottun"]:focus,
.main_confirm .btn_sec  input[type="bottun"]:hover {
  background: #B3B3B3;
  color: #333;
}
.main_confirm .call_phone {
  margin-top: 3rem;
}
.main_confirm .call_phone p {
  text-align: center;
}
.main_confirm .call_phone a {
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .confirm_contents div {
    display: flex;
    justify-content: start;
  }
  .confirm_contents div p {
    display: block;
    text-align: left;
  }
  .confirm_contents div p:first-of-type {
    width: 30%;
    margin-right: 2rem;
  }
  .confirm_contents div p:last-of-type {
    margin: 0;
  }
  .confirm_sec .btn_sec {
    /* width: 50%; */
    flex-flow: row;
    justify-content: space-between;
  }
  .confirm_sec .btn_sec input {
    width: 45%;
  }
}
@media (min-width: 961px) {
  .confirm_sec {
    width: 80%;
    margin: 0 auto;
  }  
}
@media (min-width: 1024px) {
  .confirm_sec .wrap {
    width: 60%;
    max-width: 700px;
  }

}


/* =========================
  送信結果
  result.php
========================== */
.result_contact h2 {
  margin: 0 auto;
  width: 80%;
}
.result_contact img {
  width: 8rem;
  margin: 2rem auto;
}
.result_contact p.msg {
  width: 80%;
  max-width: 440px;
  margin: 0 auto 2rem;
  text-align: justify;
}
.result_contact p a {
  font-size: 1.2rem;
}
.result_contact .button {
  margin: 2rem auto 0;
  display: block;
}
@media (min-width: 768px) {
  .result_contact .button {
    display: inline-block;
    margin: 2rem 2rem 0;
  }
}



/* =========================
  会社情報
  company.php
========================== */
/* --------------------------
 代表メッセージ
-------------------------- */
.top_message_sec a {
  /* 親要素よりも大きく表示 */
  width: 100vw;
  margin: 0 calc(50% - 50vw) 0;
  background-color: #4D4D4D;
  display: block;
  height: 8rem;
  overflow: hidden;
  backface-visibility: hidden;
}
.top_message_sec a img {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  transition: 0.3s;
}
.top_message_sec a img:hover {
  transform: scale(1.1);
  transition: 0.3s;
}
.main_company h4 {
  box-sizing: content-box;
  font-weight: 600;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.1em;
  width: 4em;
  padding-left: 0.5em;
  border-left: 5px solid var(--sub-color);
  margin: 0 auto 2.5em;
  position: relative;
}
.main_company h4::before {
  content: "";
  position: absolute;
  width: 0.5em;
  height: 1.1em;
  background: var(--sub-color);
  left: -1em;
}
.main_company h5 {
  font-size: 1rem;
}
.main_company dt {
  font-weight: bold;
}
@media (min-width: 521px) {
  .top_message_sec a {
    height: 10rem;
  }
  .top_message_sec a img {
    height: 10rem;
  }
  .top_message_title p {
    font-size: 2rem;
    letter-spacing: 0.2rem;
  }
  .top_message_title h3 {
    font-size: 0.9rem;
  }
}
@media (min-width: 961px) {
  .top_message_sec a {
    height: 15rem;
  }
  .top_message_sec a img {
    height: 15rem;
    max-width: 1080px;
  }
  .main_company h4 {
    font-size: 1.3rem;
    /* text-align: left;
    margin: 0 auto 2.5em 0; */
  }
}

/* --------------------------
 会社概要
-------------------------- */
.profile {
  /* width: 90%; */
  margin: 2rem auto 0;
  text-align: left;
  padding-bottom: 4rem;
}
.profile::before {
  /* ページ内リンクで少し上から表示できるようにする */
  display: block;
  height: 7rem;
  margin-top: -7rem;
  content: "";
}
.profile dd,
.profile p {
  margin: 0.3em 0 1.5em;
}
.profile dd img {
  height: 0.8em;
  margin: 0 0.5em 0.4em 1em;
}
.profile dd img.company_img {
  width: 80%;
  height: auto;
  max-width: 400px;
  margin: 0.5em 0;
}
.profile dd a {
  /* font-size: 0.8rem; */
  font-weight: 600;
}
.profile dd a:hover {
  color: var(--main-color);
}
.br_no {
  display: none;
}
.profile .arrow::before {
  content: "\f101\00a0";
  font-family: "Font Awesome 5 Free";
  font-weight:900;
  color: var(--main-color);
}
@media (min-width: 375px) {
  .br_mb {
    display: none;
  }
  .br_no {
    display: block;
  }
}
@media (min-width: 521px) {
  .profile {
    width: 70%;
  }
}
@media (min-width: 961px) {
  .profile dl {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    margin: 0 auto;
    font-size: 1.1rem;
  }
  .profile dl dt {
    width: 30%;
    margin: 0.3em 0 1.5em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
  }
  .profile dl dd {
    width: 70%;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
  }
  .profile dl dt:last-of-type,
  .profile dl dd:last-of-type {
    border-bottom: none;
  }
}

.profile_sub p,
.profile_sub > a {
  padding-left: 1rem;
  /* color: var(--main-color); */
}

/*  沿革
-------------------------- */
.history {
  padding-bottom: 0;
}
.chronology {
  background-color: rgba(var(--sub-color-rgb),0.5);
  /* 親要素よりも大きく表示 */
  width: 100vw;
  margin: 0 calc(50% - 50vw) 0;
  position: relative;
}
.chronology .wrap {
  text-align: left;
  padding: 2rem 0;
}
.chronology:after {
  position: absolute;
  content: "1948-";
  font: bold italic 5rem serif;
  color: rgba(255, 255, 255, 0.5);
  top: -2.5rem;
  right: 10%;
}
.mask {
  background: rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  opacity: 0;
}
.mask .modal_image {
  /* position: absolute; */
  position: fixed;
  max-width: 60%;
  max-height: 80%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  opacity: 0;
}
.mask.show {
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  transition: 0.3s;
}
.mask.show .modal_image {
  opacity: 1;

}
.chronology table {
  table-layout: fixed;
  margin: 0 auto;
}
.chronology .his_japan {
  display: none;
  width: 15rem;
}
.chronology .his_nishiken .his_img {
  display: flex;
  flex-wrap: nowrap;
}
.chronology .his_nishiken .his_img img + img {
  margin-left: 0.5rem;
}
.chronology .his_nishiken img.vertical {
  width: 7rem;
  margin-right: 0.5rem;
}
.chronology .his_nishiken img.horizon {
  width: auto;
  height: 6.5rem;
  /* white-space: nowrap;
  overflow: hidden; */
}
.chronology .year {
  /* width: 6rem; */
  text-align: center;
  padding: 0 0.5rem;
}
.chronology .year p {
  font-size: 1.5rem;
  font-weight: 600;
  color: #D53E10;
  padding-top: 1rem;
}
.chronology .year img {
  width: 1rem;
}
.chronology .his_japan,
.chronology .his_nishiken {
  /* font-size: 0.8rem; */
  padding: 0.5rem;
}
.chronology .his_nishiken dt {
  margin-top: 1rem;
}
/* 521px以上 */
@media (min-width: 521px) {
  .history table {
    width: 70%;
    margin: 0 auto;
  }
  .chronology .year {
    width: 6rem;
  }  
}
/* 768px以上 */
@media (min-width: 768px) {
  .chronology table {
    width: 90%;
  }
  .chronology:after {
    font: bold italic 8rem serif;
    top: -4.5rem;
  }  
  .chronology .his_nishiken {
    font-size: 1.1rem;
    margin-left: 2rem;
  }
  .chronology .his_japan {
    display:table-cell;
    max-width: 15rem;
  }
  .chronology .year {
    padding-right: 2rem;
  }
  .chronology .his_nishiken img {
    width: 10rem;
  }
  .chronology .image2 img {
    width: auto;
    height: 7.5rem;
  }  
}
/* 961px以上 */
@media (min-width: 961px) {
  .history  {
    width: 70%;
    margin: 0 auto;
  }
  .chronology table {
    width: 70%;
  }
}
/* 1300px以上 */
@media (min-width: 1300px) {
  .his_nishiken .his_photo {
    position: relative;
  }
  .his_nishiken .his_photo .his_img {
    position: absolute;
    top: 0;
    left: 25rem;
    transform: scale(2.0);
  }
  .chronology .his_nishiken img.vertical {
    width: 14rem;
  }
  .chronology .his_nishiken img.horizon {
    width: auto;
    height: 13rem;
  }
  
}


/* =========================
  代表メッセージ
  topmessae.php
========================== */
.topmessage {
  font-family:  "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", sans-serif;
}
.topmessage h2 {
  font-family: 'Times New Roman', Times, serif;
  color: rgb(0, 0, 0);
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: 3rem;
  position: relative;
  padding: 0 4rem;
  display: inline-block;
}
.topmessage h2::before,
.topmessage h2::after {
  content: "";
  height: 1px;
  width: 3rem;
  background: #555;
  position: absolute;
  top: 50%;
}
.topmessage h2::before {
  left: 0;
}
.topmessage h2::after {
  right: 0;
}

/*  サブタイトル
-------------------------- */
.topmessage .sub_title {
  background: linear-gradient(to right, #B3B3B3 30%, #FFF 50%);
  width: 100vw;
  height: 10rem;
  left: 0;
  margin: 0 calc(50% - 50vw) 0;
  backface-visibility: hidden;
}
.topmessage .sub_title img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  object-position: 30% 0;
}
/*  メッセージ内容
-------------------------- */
.topmessage_msg {
  text-align: justify;
  margin: 2rem 0.5rem 4rem;
}
.topmessage_msg p {
  margin-bottom: 1rem;
}
.link_sec .button {
  margin-top: 2rem;
}
/*  遷移ボタン
-------------------------- */
.link_sec {
  display: flex;
  flex-flow: row wrap;
  gap: 2rem;
  width: 90%;
  margin: 0 auto;
}
.link_sec .btn {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 5rem;
  width: 100%;
  border-radius: 4px;
  color: #FFF;
  font-size: 1.1rem;
  font-family: "Hiragino Kaku Gothic ProN",
  "Hiragino Sans",
  Meiryo,
  sans-serif;
  line-height: 5rem;
}
.link_sec .back_black {
  display: block;
  background-color: rgba(0,0,0,0.4);
  height: 5rem;
  width: 100%;
  transition: .5s;
}
.link_sec .back_black:hover {
  background-color: rgba(0,0,0,0.8);
  transition: .5s;
}
.link_sec .btn_company {
  background-image: url(../img/btn_company.jpg);
}
.link_sec .btn_works {
  background-image: url(../img/btn_works.jpg);
}
.link_sec .btn_recruit {
  background-image: url(../img/btn_recruit.jpg);
}
.link_sec .btn_recruit .trans::after {
  background-image: url(../img/transition_w.png);
  top: 50%;
  transform: translateY(-50%);
  right: 17%;
}

/* 521px以上 */
@media (min-width: 521px) {
  .topmessage h2 {
    font-size: 1.5rem;
  }
  .topmessage .sub_title {
    height: 15rem;
  }
  .topmessage .sub_title img {
    height: 15rem;
  }
  .topmessage_msg {
    margin: 3rem 5rem;
  }
  .link_sec .btn_recruit .trans::after {
    right: 30%;
  }
}
/* 961px以上 */
@media (min-width: 961px) {
  .topmessage .sub_title {
    height: 22rem;
  }
  .topmessage .sub_title img {
    height: 22rem;
    max-width: 1080px;
  }
  .topmessage_msg {
    margin: 3rem auto 6rem;
    max-width: 700px;
  }
  .topmessage_msg p {
    line-height: 2.0;
    font-size: 1.2rem;
  }
  .link_sec .btn {
    width: calc((100% - 4rem) / 3);
  }
  .link_sec .btn,
  .link_sec .back_black {
    height: 10rem;
    line-height: 10rem;
    font-size: 1.2rem;
  }  
  .link_sec .btn_recruit .trans::after {
    right: 20%;
  }
}



/* =========================
  施工実績
  works.php
========================== */
/*  サブタイトル
-------------------------- */
.main_works .works_main {
  width: 100vw;
  margin: 0 calc(50% - 50vw) 0;
}
.main_works h2 span {
  display: block;
  width: 100%;
  font-size: 1.1rem;
}
.works_main {
  padding-top: 3rem;
}
.works_tategu {
  background-image: url(../img/works_tategu.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 100vw;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.works_tategu h3 {
  display: inline-block;
  color: #fff;
  padding: 1rem 2.5rem;
  background-color: rgba(0, 0, 0, 0.5);
}
.works_other .other {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 90%;
  height: 5rem;
  border-radius: 4px;
  margin: 0 auto 1rem;
  position: relative;
}
.works_gaikou {
  background-image: url(../img/works_gaikou.jpg);
}
.works_woodface {
  background-image: url(../img/works_woodface.jpg);
}
.works_niwahoushi {
  background-image: url(../img/works_niwahoushi.jpg);
}
/* 画像の上にフィルムを乗せる */
.works_other .other::before {
  content: "";
  position: absolute;
  background: rgba(102, 102, 102, 0.4);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.works_main .moreLink,
.works_other .moreLink {
  margin-top: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 1rem;
  color: #FFF;
  padding-right: 2rem;
  transition: 0.3s;
}
.works_main .moreLink{
  border-bottom: 1px solid #FFF;
}

.works_main .moreLink::after {
  content: "";
  position: absolute;
  height: 0.8rem;
  border-right: 1px solid #FFF;
  /* 傾きを調節 基準点を右下*/
  transform-origin: right bottom;
  transform: skewX(45deg);
  right: 0;
  bottom: 0;
  transition: 0.3s;
}
/* .works_other .other:hover .moreLink {
  padding-right: 3rem;
  transition: 0.3s;
} */
.works_other .other:hover::before {
  background: rgba(102, 102, 102, 0.8);
  transition: 0.3s;
}
.works_other .trans {
  padding-right: 1rem;
}
.works_other .trans::after {
  background-image: url(../img/transition_w.png);
  top: 0.4rem;
  right: -0.5rem;
}
.works_other {
  display: grid;
  align-items: flex-end;
}
.works_contents article {
  text-align: left;
}
.main_works .works_contents {
  display: grid;
  gap: 3.5rem;
  align-items: flex-end;
  margin-top: 3.5rem;
}
.works_contents article img {
  width: 100%;
}
@media (min-width: 561px) {
  .works_other {
    grid-template-columns: 1fr 1fr;
  }
  .works_tategu {
    height: 10rem;
  }  
  .main_works .works_contents {
    gap: 3.5rem 2rem;
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1080px) {
  .works_main {
    padding-top: 6rem;
  }
  .works_other {
    display: flex;
    width: 100%;
    justify-content: space-around;
  }  
  .works_tategu {
    height: 15rem;
  }
  .works_other a {
    width: 23%;
  }
  .works_other .other {
    width: 100%;
    height: 9rem;
    margin-bottom: 0;
  }
  .main_works .works_contents {
    grid-template-columns: 1fr 1fr 1fr;
  }
}


/* =========================
  施工実績一覧
  workslist.php / workslist_G.php
========================== */
/* javascript用のデータを見えない位置へ移動 */
.worksyear,
.workskind {
  position: absolute;
  left: -500px;
}
/* タイトル */
.workslist h2 {
  box-sizing: border-box;
  margin: 0 auto;
  width: 80%;
  max-width: 18rem;
  padding: 0 1rem;
  font-size: 1.1rem;
}
.workslist h2:after {
  content: "";
  display: block;
  height: 3px;
  border-radius: 1.5px;
  background: linear-gradient(to right, var(--main-color), var(--sub-color));
}
.workslist p {
  margin: 0.3rem 0 4rem;
}
/* 年度セクション */
.workslist .works_year {
  width: 96%;
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto 1rem;
}
.workslist .works_year li {
  padding: 0.3rem 1.2rem;
  cursor: pointer;
}
.workslist .works_year li.select {
  /* background: var(--sub-color); */
  background: #333;
  color: #fff;
}
/* 実績一覧タイトル */
table.listConTitle {
    width: 95%;
    margin: 0 auto;
    /* border-collapse: separate; */
    border-spacing: 0rem;
}

.listConTitle td {
  text-align: left;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.8;
}
.listConTitle td:nth-child(1) {
  width: 100%;
  font-weight: 600;
  padding-top: 1.5rem;
}
.listConTitle td:nth-child(2) {
  width: 30%;
  border-bottom: 2px solid #333;
}
.listConTitle td:nth-child(4) {
  width: 70%;
  text-align: center;
  border-bottom: 2px solid #333;
}
.listConTitle td:nth-child(3) {
  display: none;
}
@media (min-width: 964px) {
  table.listConTitle {
    width: 95%;
    margin: 0 auto;
  }
  .listConTitle td{
    text-align: left;
    border-bottom: 2px solid #333;
  }
  .listConTitle td:nth-child(1) {
    width: 40%;
  }
  .listConTitle td:nth-child(2) {
    width: 10%;
  }
  .listConTitle td:nth-child(3) {
    display: inline-block;
    width: 23%;
    /* font-size: 13px; */
  }
  .listConTitle td:nth-child(4) {
    width: 27%;
    text-align: center;
    /* padding-right: 2rem; */
  }
  /* .listConTitle {
    width: 96%;
    display: flex;
    flex-wrap: wrap;
    margin: 1rem auto;
  } */
}

/* 実績一覧 */
#worklistframe {
  width: 100%;
  height: 100vh;
  margin: 1rem auto;
}
@media (min-width: 961px) {
}



/* =========================
  プライバシーポリシー
  privacy.php
========================== */
.page_privacy {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}
.page_privacy .policy,
.page_privacy dl {
  text-align: left;
}
.page_privacy dt {
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}
.page_privacy dt::before {
  content: "\f00c　";
  font-family: "Font Awesome 5 Free";
  font-weight:900;
  color: #4D4D4D;
}
.page_privacy dd {
  margin-left: 1rem;
}