body{
  margin: 0;
  font-family: sans-serif;
	letter-spacing: 0.1em;
  font-size: 12px;
  color: #000;
}
table {border-collapse:collapse;}
/* 共通スタイル
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
a {
  color: #fff;
  font-size: 1.1em;
  text-decoration: none;
}
a:hover {
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
}
p {
  color: #000;
}
h1 {
  position: relative;
  font-size: 35px;
  letter-spacing: 10px;
  font-weight: lighter;
  margin-bottom: 40px;
  text-align: center;

}
h2 {
  color: #000;
  font-size: 16px;
  white-space: nowrap;
}
/* h1:before, h1:after {
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 45px;
  height: 1px;
  background-color: black;
}

h1:before {
  left:0;
}
h1:after {
  right: 0;
} */
small {
  display: block;
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-53%);
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 13px;
  color: #000;
  letter-spacing: 0.2em;
  transition: all 0.2s cubic-bezier(0.47, 0, 0.745, 0.715);
}
.sp {
  padding: 5% 2%;
}
.far {
  color: #000;
}
/* スマホのみ改行 */
.sb {
  display: none;
}
.tb {
  display: none;
}
@media (max-width: 767px) {
  a {
    font-size: 1em;
  }
  h1 {
    font-size: 25px;
  }
  .sp {
    padding: 5%;
  }
  .sb {
    display: block;
  }

 }
@media (max-width: 1020px) and (min-width: 768px) { 
  .tb {
    display: block;
  }
 }

/* ヘッダー
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
header {
  position: fixed;
  background: rgba(0, 0, 0, 0.575);
  width: 100%;
  /* height: 90px; */
  z-index: 9999;
  vertical-align: middle;
  align-items: center;
}
.menubar {
  display: flex;
  justify-content: space-between;
  padding: 0px 12px;
  align-items: center;
}
.menubar img {
  width: 200px;
  height: auto;
  object-fit: contain;
  filter: brightness(1.8);

}

.menubar ul {
  list-style: none;
  display: flex;
}
.menubar a {
  margin: 2px 14px;
}
@media (max-width: 767px) {
  .menubar {
    padding: 0;
  }
  .menubar a {
    margin: 4px 12px 4px 0;
    white-space: nowrap;
  }
  .menubar img {
    width: 170px;
  }
 }

/* メイン画像
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
.mainimg {
  width: auto;
  max-width: 100%;
  height: 100vh;
  background-image: url(../images/mainimg9.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
@media (max-width: 1020px) and (min-width: 768px) {
  .mainimg {
    background-image: url(../images/tb1.png);
    background-size: cover;
    background-position: center;
  }
  }
@media (max-width: 767px) {
  .mainimg {
    background-image: url(../images/sm1.png);
    background-size: cover;
    background-position: center;
    /* margin-bottom: -45px; */
 }
}

/* 会社概要 */

.ta1 {
	border-top: 1px solid #ccc;	/*テーブルの一番上の線。幅、線種、色*/
	width: 60%;
	margin: 0 auto 30px;		/*最後の「30px」がテーブルの下に空けるスペースです*/
}

/*tr（１行分）タグ設定*/
.ta1 tr {
	border-bottom: 1px solid #ccc;	/*テーブルの下線。幅、線種、色*/
}

/*th（左側）、td（右側）の共通設定*/
.ta1 th, .ta1 td {
	padding: 15px 5px;		/*上下、左右へのボックス内の余白*。基本的に数行上の「.ta1 caption」のpaddingと揃えておけばOKです。*/
	word-break: break-all;	/*英語などのテキストを改行で自動的に折り返す設定。これがないと、テーブルを突き抜けて表示される場合があります。*/
	text-align: left;	/*左よせにする*/
}
@media (max-width: 767px) {
  #company {
    padding-top: 60px;
  }
  .ta1 {
    width: 80%;
    white-space: nowrap;
  }
 }

/* グループ会社 */
#group {
  background: #e8e7e2;
  text-align: center;
}
#group p {
  color: #000;
}
.parent {
  display: inline-block;
}
.parent a {
  display: flex;
  justify-content: center;
  border: 1px solid #000;
  background: #fff;
}

.parent img {
  max-width: 100%;
  width: 500px;
  overflow: hidden;
  object-fit: cover;
}
.title {
  padding: 2%;
  white-space: nowrap;
  position: relative;
  position: relative;
}
.title p {
  text-align: left;
}
.arrow, .arrow1 {
  font-size: 33px;
  -webkit-font-smoothing:antialiased;
  -webkit-text-stroke-color:#fff;
  -webkit-text-stroke-width:1px
}
.arrow {
  position: absolute;
  right: 3%;
  bottom: 7%;
}
.arrow1 {
  position: absolute;
  right: 5%;
  bottom: 5%;
}
.subgroup {
  display: flex;
  justify-content: center;
}
.sub {
  display: inline-block;
  border: 1px solid #000;
  margin: 50px 18px 30px;
  background: #fff;
  width: 17%;
}

.subicon {
  width: 60%;
  height: 180px;
  max-width: 100%;
  object-fit: contain;
  overflow: hidden;
}
.subphoto {
  object-fit: cover;
  overflow: hidden;
  max-width: 100%;
  height: 180px;
  width: 100%;
}
.subtitle {
  padding-bottom: 25px;
  position: relative;
}
.subtitle p {
  margin: 5px auto;
}

/* スマホ */
@media (max-width: 767px) {
  #group {
    padding-top: 60px;
  }
  .parent a {
    margin-bottom: 15px;
    display: block;
  }
  .title {
    display: flex;
    justify-content: center;
    padding: 0;
  }
  .title p {
    text-align: center;
  }
  .sub {
    width: 80%;
    margin: 10px auto;
  }
  .subgroup {
    display: block;
  }
  .subphoto {
    width: 100%;
    height: 120px;
  }
  .subicon {
    margin-top: 15px;
    height: 90px;
  }
  .subtitle {
    padding-bottom: 15px;
    display: flex;
    justify-content: center;
  }
  .arrow, .arrow1 {
    position: absolute;
    right: 2%;
    bottom: 7%;
    padding-top: 0;
  }

 }
 /* タブレット */
@media (max-width: 1020px) and (min-width: 768px) {
  .subphoto {
    width: 100%;
  }
  .subtitle {
    padding-bottom: 15px;
    display: flex;
    justify-content: center;
  }
  .arrow {
    position: absolute;
    right: 5%;
    bottom: 10%;
    padding-top: 0;
  }
  .arrow1 {
    position: absolute;
    right: 6%;
    bottom: 6%;
    padding-top: 0;
  }
  .sub {
    width: 35%;
  }
  .subgroup {
    display: block;
  }
}


/* フッター
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
.footermenu {
  background: #0f2350;
  padding: 3% 3% 2%;
}
.footermenu p {
  color: #fff;
  margin-left: 30px;
}
.info {
  display: flex;
  justify-content: space-between;
}
.add {
  width: 50%;
}
.add a img {
  width: 35%;
  filter: brightness(1.8);
}
.map {
  text-decoration: underline;
  margin-left: 20px;
}
.info ul {
  list-style: none;
  display: flex;
  margin: 0;
  font-size: 12px;
}
.info li {
  margin: 15px;
}

footer {
  color: #fff;
  width: 100%;
  height: auto;
  text-align: right;
  padding-top: 20px;
  font-size: 0.3em;
}
@media (max-width: 767px) {
  .add a img {
    width: 80%;
  }
  .map {
    margin-left: 0;
  }
  .info ul {
    display: block;
  }
 }
 @media (max-width: 1020px) and (min-width: 768px) { 
  .map {
    margin-left: 0;
  }
  }
/*PAGE TOP（↑）設定
---------------------------------------------------------------------------*/
#page-top {
  position: fixed;
  bottom: 40px;
  right: 20px;
  font-size: 14px;
  line-height: 1;
  z-index: 99;
}
#page-top a {
  background: #fff;
  text-decoration: none;
  color: #0f2350;
  width: 50px;
  height: 50px;
  text-align: center;
  display: block;
  opacity: 0.9;
  transition: all .3s ease;
  line-height: 50px;
  border: 1px solid #0f2350;
}
#page-top a:hover {
  text-decoration: none;
  background: #0f2350;
  color: #fff;
}
@media (max-width: 767px) {
  #page-top a {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
 }