@charset "utf-8";

#slide1 {
background: url("../img/top/slide1.png") no-repeat center;
background-size: cover;
}
#slide2 {
background: url("../img/top/slide2.png") no-repeat center;
background-size: cover;
}
#slide3 {
background: url("../img/top/slide3.png") no-repeat center;
background-size: cover;
}
@keyframes slideshow{
  0%{
    opacity: 0;
  }
  10%{
    opacity: 1;
  }
  28%{
    opacity: 1
  }
  38%{
    opacity: 0;
  }
  100%{
    opacity: 0;
  }
}
#slider li {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
opacity: 0;
animation :slideshow 18s ease infinite;
}
#slider li:nth-child(2) {
animation-delay: 6s;
}
#slider li:last-child {
animation-delay: 12s;
}

/* PC用
------------------------------------------------------------*/
@media only screen and (min-width: 1000px) {


header#top_hdr {
position: relative;
z-index: 1;
}
header#top_hdr section {
position: absolute;
top: 0;
left: 15rem;
width: 30rem;
height: 76rem;
box-shadow: 0 0 5rem rgba(0,0,0,1);
background: #fff url("../img/top/back_obi.png");
border-radius: 0 0 3rem 3rem;
z-index: 10;
}
header#top_hdr section h1 {
padding-top: 5rem;
text-align: center;
}
header#top_hdr section ul {
position: absolute;
top: 32rem;
left: -5rem;
width: 40rem;
border-radius: 3rem;
padding: 3rem 3rem 4rem 3rem;
color: #fff;
background: #1f2b61;
font-size: 3rem;
font-weight: bold;
}
header#top_hdr section ul h2 {
font-weight: bold;
margin-bottom: 4rem;
text-align: center;
}
header#top_hdr section ul h2 img {
vertical-align: -2rem;
margin-right: 1rem;
}
header#top_hdr section li {
position: relative;
display: inline-block;
}
header#top_hdr section li::before {
content: "";
position: absolute;
top: 0.6rem;
left: -1.6rem;
width: 1rem;
height: 1rem;
border-radius: 50%;
background: #fff;
}
header#top_hdr section li:nth-child(2) {
margin: 0 2rem 2rem 4rem;
}
header#top_hdr section li:last-child {
margin: 0 0 0 4rem;
}
header#top_hdr section > div:last-child {
position: absolute;
bottom: 5rem;
left: 0;
width: 100%;
text-align: center;
}
#slider {
position: relative;
width: 100%;
height: 70rem;
overflow: hidden;
}
#slider li div {
text-align: right;
padding: 30rem 3rem 0 50rem;
}
header#top_hdr nav {
position: absolute;
top: 0;
right: 0;
width: 100%;
text-align: right;
background: rgba(255,255,255,0.7);
padding: 1rem 3rem 1rem 0;
margin: 3rem 0 0 0;
z-index: 2;
}
header#top_hdr nav li {
position: relative;
display: inline;
padding: 0 2rem;
font-size: 1.6rem;
border-left: 0.1rem solid #aaa;
font-weight: bold;
}
header#top_hdr nav li:last-child {
border-right: 0.1rem solid #aaa;
}
header#top_hdr nav li a {
color: #000;
transition: 0.3s;
}
header#top_hdr nav li a:hover {
text-decoration: none;
transition: 0.3s;
opacity: 0.7;
}
header#top_hdr > div {
position: absolute;
bottom: -4rem;
left: 0;
width: 100%;
height: 4rem;
background: #1f2b61;
z-index: 1;
}
header#top_hdr > div::after {
content: "";
position: absolute;
top: 0;
right: 0;
width: 12rem;
height: 4rem;
background: #f3e430;
z-index: 2;
}
#top_box1 {
margin: 14rem auto 10rem auto;
text-align: center;
width: 100rem;
}
#top_box1 h2 {
position: relative;
display: inline-block;
text-align: center;
font-size: 3rem;
margin-bottom: 5rem;
font-weight: bold;
color: #7a7a7a;
padding: 0 0 0.8rem 3rem;
border-bottom: 0.3rem solid #1f2b61;
}
#top_box1 h2 span:first-child {
position: absolute;
display: block;
top: 0.4rem;
left: 0;
width: 2.4rem;
height: 0.3rem;
background: #1f2b61;
}
#top_box1 h2 span:nth-child(2) {
position: absolute;
display: block;
top: 1.2rem;
left: 0;
width: 2.4rem;
height: 0.3rem;
background: #1f2b61;
}
#top_box1 h2 span:last-child {
position: absolute;
display: block;
top: 2rem;
left: 0;
width: 2.4rem;
height: 0.3rem;
background: #f3e430;
}
#top_box1 p {
font-size: 1.8rem;
line-height: 4rem;
}
#top_box2 {
background: #e6e6e6;
padding: 8rem 0;
text-align: center;
}
#top_box2 > div:first-child {
width: 100rem;
margin: 0 auto;
}
#top_box2 > h2 {
position: relative;
display: inline-block;
text-align: center;
font-size: 3rem;
margin: 0 0 2rem 0;
font-weight: bold;
padding: 0 0 0 3.6rem;
}
#top_box2 > h2 span:first-child {
position: absolute;
display: block;
top: 0.2rem;
left: 0;
width: 3rem;
height: 0.4rem;
background: #1f2b61;
}
#top_box2 > h2 span:nth-child(2) {
position: absolute;
display: block;
top: 1rem;
left: 0;
width: 3rem;
height: 0.4rem;
background: #1f2b61;
}
#top_box2 > h2 span:last-child {
position: absolute;
display: block;
top: 1.8rem;
left: 0;
width: 3rem;
height: 0.4rem;
background: #f3e430;
}
#top_box2 > h3 {
font-size: 2rem;
font-weight: bold;
color: #7a7a7a;
margin-bottom: 2rem;
}
#top_box2 > article {
margin: 5rem 0 0 0;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
text-align: left;
}
#top_box2 > article a {
display: block;
width: 50%;
height: 40vh;
padding: 4rem;
transition: 0.3s;
}
#top_box2 > article a:hover {
opacity: 0.7;
transition: 0.3s;
text-decoration: none;
}
#top_box2 > article a:first-child {
background: url("../img/top/p1.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a:nth-child(2) {
background: url("../img/top/p2.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a:nth-child(3) {
background: url("../img/top/p3.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a:last-child {
background: url("../img/top/p4.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a h3 {
position: relative;
color: #000;
font-weight: bold;
font-size: 2.6rem;
padding-left: 3rem;
}
#top_box2 > article a h3:hover {
text-decoration: none;
}
#top_box2 > article a h3 span:first-child {
position: absolute;
display: block;
top: 0.3rem;
left: 0;
width: 2rem;
height: 0.1rem;
background: rgba(0,0,0,0.5);
}
#top_box2 > article a h3 span:nth-child(2) {
position: absolute;
display: block;
top: 1.1rem;
left: 0;
width: 1.6rem;
height: 0.1rem;
background: rgba(0,0,0,0.5);
}
#top_box2 > article a h3 span:last-child {
position: absolute;
display: block;
top: 1.9rem;
left: 0;
width: 1.2rem;
height: 0.1rem;
background: rgba(0,0,0,0.5);
}

/* 事業内容 */
#bs_box1, #wks_box1, #com_box1, #mail_box1 {
width: 100rem;
margin: 0 auto 10rem auto;
}
#bs_box1 p, #bs_box2 p, #wks_box1 p, #com_box1 p, #mail_box1 p {
text-align: center;
line-height: 3.6rem;
}
#bs_box1 article {
background: #1f2b61;
color: #fff;
font-size: 3rem;
font-weight: bold;
border-radius: 3rem;
margin-top: 5rem;
padding: 3rem;
}
#bs_box1 article h4 {
text-align: center;
font-weight: bold;
}
#bs_box1 article h4 img {
margin-right: 1rem;
}
#bs_box1 article ul {
text-align: center;
margin-top: 4rem;
}
#bs_box1 article li {
position: relative;
display: inline-block;
padding-left: 4rem;
margin-right: 4rem;
}
#bs_box1 article li::before {
content: "";
position: absolute;
top: 0.2rem;
left: 0;
width: 2rem;
height: 2rem;
background: #fff;
}
#bs_box2 {
width: 120rem;
margin: 0 auto;
}
#bs_box2 > article {
display: flex;
justify-content: space-between;
margin: 5rem 0;
}
#bs_box2 > article figure {
width: 50%;
}
#bs_ban {
width: 80rem;
margin: 5rem auto 8rem auto;
display: flex;
justify-content: space-between;
}

/* 施工実績 */
#wks_box2 {
width: 100rem;
margin: 8rem auto;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
padding-left: 5.8rem;
}
#wks_box2 > article {
position: relative;
width: 40rem;
margin-bottom: 15rem;
z-index: 1;
}
#wks_box2 > article h3 {
position: absolute;
top: 0.2rem;
left: -3rem;
font-size: 6rem;
font-weight: bold;
letter-spacing: 1rem;
-ms-writing-mode: tb-rl;
writing-mode: vertical-rl;
transform: rotate(180deg);
font-family: Arial;
z-index: 2;
}
#wks_box2 > article figcaption {
position: absolute;
top: 33rem;
left: 15rem;
background: #1f2b61;
color: #fff;
text-align: center;
font-size: 2rem;
font-weight: bold;
width: 25rem;
padding: 1rem 0;
}
#wks_box2 > article p {
position: absolute;
top: 39rem;
left: 15rem;
font-size: 1.3rem;
width: 25rem;
}
#metal {
font-size: 5rem !important;
letter-spacing: 0 !important;
}

/* 会社案内 */
#com_box1 h4 {
font-weight: bold;
text-align: center;
margin-top: 5rem;
}
#com_box1 h4 span {
font-size: 1.4rem;
margin-right: 1.4rem;
}
#com_box2 table {
width: 80rem;
margin: 5rem auto 10rem auto;
border-collapse: collapse;
}
#com_box2 th, #com_box2 td {
border-bottom: 0.1rem solid #ddd;
padding: 2rem 1rem;
}
#com_box2 th {
text-align: left;
}
#com_box3 > div {
height: 40rem;
}

#toi_tel {
position: relative;
width: 50rem;
margin: 0 auto 10rem auto;
border: 0.3rem solid #1f2b61;
padding: 1rem 0;
text-align: center;
font-size: 2rem;
font-weight: bold;
}
#toi_tel::before {
content: "";
position: absolute;
top: -1rem;
left: 2rem;
width: 2rem;
height: 6.6rem;
background: #f3e430;
}

#sfm-form table {
width: 100rem;
margin: 0 auto;
border-collapse: collapse;
}
#sfm-form table th, #sfm-form table td {
border-bottom: 0.1rem dashed #aaa;
padding: 2rem 0;
}
#sfm-form table th {
text-align: left;
width: 30%;
}
.star {
color: #fff;
padding: 0.2rem 0.4rem;
margin-right: 1rem;
background: #0e53a8;
}
.star_l {
color: #fff;
padding: 0.2rem 0.4rem;
margin-left: 1rem;
background: #0e53a8;
}
.star2 {
padding: 0.2rem 0.4rem;
margin-right: 1rem;
}
.ERR {
color: #ff0000;
font-weight: bold;
}
#sfm-form .submit {
text-align: center;
border-bottom: none;
}
.submit input {
cursor: pointer;
}
#kaisya {
width: 80%;
}
#message {
width: 100%;
}
#name, #kana {
width: 50%;
}
#zip0 {
width: 4rem;
}
#zip1 {
width: 6rem;
}
#address {
width: 100%;
}
#tel0, #tel1, #tel2, #fax0, #fax1, #fax2 {
width: 6rem;
}
#email, #emailcheck {
width: 70%;
}
#pol {
background: #1f2b61;
color: #fff;
text-align: center;
font-size: 2.2rem;
font-weight: bold;
padding: 2rem 0;
margin: 10rem 0 5rem 0;
}
#policy {
width: 100rem;
margin: 0 auto;
height: 30rem;
overflow: auto;
border: 0.1rem solid #ccc;
padding: 2rem;
}
#policy h4 {
font-weight: bold;
font-size: 1.8rem;
margin-bottom: 1rem;
}
#policy p {
margin-bottom: 2rem;
}

}

/* タブレット用　横向き
------------------------------------------------------------*/
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:landscape) {

header#top_hdr {
position: relative;
z-index: 1;
}
header#top_hdr section {
position: absolute;
top: 0;
left: 15rem;
width: 30rem;
height: 76rem;
box-shadow: 0 0 5rem rgba(0,0,0,1);
background: #fff url("../img/top/back_obi.png");
border-radius: 0 0 3rem 3rem;
z-index: 10;
}
header#top_hdr section h1 {
padding-top: 5rem;
text-align: center;
}
header#top_hdr section ul {
position: absolute;
top: 32rem;
left: -5rem;
width: 40rem;
border-radius: 3rem;
padding: 3rem 3rem 4rem 3rem;
color: #fff;
background: #1f2b61;
font-size: 3rem;
font-weight: bold;
}
header#top_hdr section ul h2 {
font-weight: bold;
margin-bottom: 4rem;
text-align: center;
}
header#top_hdr section ul h2 img {
vertical-align: -2rem;
margin-right: 1rem;
}
header#top_hdr section li {
position: relative;
display: inline-block;
}
header#top_hdr section li::before {
content: "";
position: absolute;
top: 0.6rem;
left: -1.6rem;
width: 1rem;
height: 1rem;
border-radius: 50%;
background: #fff;
}
header#top_hdr section li:nth-child(2) {
margin: 0 2rem 2rem 4rem;
}
header#top_hdr section li:last-child {
margin: 0 0 0 4rem;
}
header#top_hdr section > div:last-child {
position: absolute;
bottom: 5rem;
left: 0;
width: 100%;
text-align: center;
}
#slider {
position: relative;
width: 100%;
height: 70rem;
overflow: hidden;
}
#slider li div {
text-align: right;
padding: 30rem 3rem 0 50rem;
}
header#top_hdr nav {
display: none;
}
header#top_hdr > div {
position: absolute;
bottom: -4rem;
left: 0;
width: 100%;
height: 4rem;
background: #1f2b61;
z-index: 1;
}
header#top_hdr > div::after {
content: "";
position: absolute;
top: 0;
right: 0;
width: 12rem;
height: 4rem;
background: #f3e430;
z-index: 2;
}
#top_box1 {
margin: 14rem auto 10rem auto;
text-align: center;
width: 100rem;
}
#top_box1 h2 {
position: relative;
display: inline-block;
text-align: center;
font-size: 3rem;
margin-bottom: 5rem;
font-weight: bold;
color: #7a7a7a;
padding: 0 0 0.8rem 3rem;
border-bottom: 0.3rem solid #1f2b61;
}
#top_box1 h2 span:first-child {
position: absolute;
display: block;
top: 0.4rem;
left: 0;
width: 2.4rem;
height: 0.3rem;
background: #1f2b61;
}
#top_box1 h2 span:nth-child(2) {
position: absolute;
display: block;
top: 1.2rem;
left: 0;
width: 2.4rem;
height: 0.3rem;
background: #1f2b61;
}
#top_box1 h2 span:last-child {
position: absolute;
display: block;
top: 2rem;
left: 0;
width: 2.4rem;
height: 0.3rem;
background: #f3e430;
}
#top_box1 p {
font-size: 1.8rem;
line-height: 4rem;
}
#top_box2 {
background: #e6e6e6;
padding: 8rem 0;
text-align: center;
}
#top_box2 > div:first-child {
width: 100rem;
margin: 0 auto;
}
#top_box2 > h2 {
position: relative;
display: inline-block;
text-align: center;
font-size: 3rem;
margin: 0 0 2rem 0;
font-weight: bold;
padding: 0 0 0 3.6rem;
}
#top_box2 > h2 span:first-child {
position: absolute;
display: block;
top: 0.2rem;
left: 0;
width: 3rem;
height: 0.4rem;
background: #1f2b61;
}
#top_box2 > h2 span:nth-child(2) {
position: absolute;
display: block;
top: 1rem;
left: 0;
width: 3rem;
height: 0.4rem;
background: #1f2b61;
}
#top_box2 > h2 span:last-child {
position: absolute;
display: block;
top: 1.8rem;
left: 0;
width: 3rem;
height: 0.4rem;
background: #f3e430;
}
#top_box2 > h3 {
font-size: 2rem;
font-weight: bold;
color: #7a7a7a;
margin-bottom: 2rem;
}
#top_box2 > article {
margin: 5rem 0 0 0;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
text-align: left;
}
#top_box2 > article a {
display: block;
width: 50%;
height: 40vh;
padding: 4rem;
transition: 0.3s;
}
#top_box2 > article a:hover {
opacity: 0.7;
transition: 0.3s;
text-decoration: none;
}
#top_box2 > article a:first-child {
background: url("../img/top/p1.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a:nth-child(2) {
background: url("../img/top/p2.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a:nth-child(3) {
background: url("../img/top/p3.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a:last-child {
background: url("../img/top/p4.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a h3 {
position: relative;
color: #000;
font-weight: bold;
font-size: 2.6rem;
padding-left: 3rem;
}
#top_box2 > article a h3:hover {
text-decoration: none;
}
#top_box2 > article a h3 span:first-child {
position: absolute;
display: block;
top: 0.3rem;
left: 0;
width: 2rem;
height: 0.1rem;
background: rgba(0,0,0,0.5);
}
#top_box2 > article a h3 span:nth-child(2) {
position: absolute;
display: block;
top: 1.1rem;
left: 0;
width: 1.6rem;
height: 0.1rem;
background: rgba(0,0,0,0.5);
}
#top_box2 > article a h3 span:last-child {
position: absolute;
display: block;
top: 1.9rem;
left: 0;
width: 1.2rem;
height: 0.1rem;
background: rgba(0,0,0,0.5);
}

/* 事業内容 */
#bs_box1, #wks_box1, #com_box1, #mail_box1 {
width: 100rem;
margin: 0 auto 10rem auto;
}
#bs_box1 p, #bs_box2 p, #wks_box1 p, #com_box1 p, #mail_box1 p {
text-align: center;
line-height: 3.6rem;
}
#bs_box1 article {
background: #1f2b61;
color: #fff;
font-size: 3rem;
font-weight: bold;
border-radius: 3rem;
margin-top: 5rem;
padding: 3rem;
}
#bs_box1 article h4 {
text-align: center;
font-weight: bold;
}
#bs_box1 article h4 img {
margin-right: 1rem;
}
#bs_box1 article ul {
text-align: center;
margin-top: 4rem;
}
#bs_box1 article li {
position: relative;
display: inline-block;
padding-left: 4rem;
margin-right: 4rem;
}
#bs_box1 article li::before {
content: "";
position: absolute;
top: 0.2rem;
left: 0;
width: 2rem;
height: 2rem;
background: #fff;
}
#bs_box2 {
width: 100%;
}
#bs_box2 > p {
padding: 0 2rem;
}
#bs_box2 > article {
display: flex;
justify-content: space-between;
margin: 5rem 0;
}
#bs_box2 > article figure {
width: 50%;
}
#bs_ban {
width: 100rem;
margin: 5rem auto 8rem auto;
display: flex;
justify-content: space-between;
}

/* 施工実績 */
#wks_box2 {
width: 100rem;
margin: 8rem auto;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
padding-left: 5.8rem;
}
#wks_box2 > article {
position: relative;
width: 40rem;
margin-bottom: 15rem;
z-index: 1;
}
#wks_box2 > article h3 {
position: absolute;
top: 0.2rem;
left: -3rem;
font-size: 6rem;
font-weight: bold;
letter-spacing: 1rem;
-ms-writing-mode: tb-rl;
writing-mode: vertical-rl;
transform: rotate(180deg);
font-family: Arial;
z-index: 2;
}
#wks_box2 > article figcaption {
position: absolute;
top: 33rem;
left: 15rem;
background: #1f2b61;
color: #fff;
text-align: center;
font-size: 2rem;
font-weight: bold;
width: 25rem;
padding: 1rem 0;
}
#wks_box2 > article p {
position: absolute;
top: 39rem;
left: 15rem;
font-size: 1.3rem;
width: 25rem;
}
#metal {
font-size: 5rem !important;
letter-spacing: 0 !important;
}

/* 会社案内 */
#com_box1 h4 {
font-weight: bold;
text-align: center;
margin-top: 5rem;
}
#com_box1 h4 span {
font-size: 1.4rem;
margin-right: 1.4rem;
}
#com_box2 table {
width: 80rem;
margin: 5rem auto 10rem auto;
border-collapse: collapse;
}
#com_box2 th, #com_box2 td {
border-bottom: 0.1rem solid #ddd;
padding: 2rem 1rem;
}
#com_box2 th {
text-align: left;
}
#com_box3 > div {
height: 40rem;
}

#toi_tel {
position: relative;
width: 50rem;
margin: 0 auto 10rem auto;
border: 0.3rem solid #1f2b61;
padding: 1rem 0;
text-align: center;
font-size: 2rem;
font-weight: bold;
}
#toi_tel::before {
content: "";
position: absolute;
top: -1rem;
left: 2rem;
width: 2rem;
height: 6.6rem;
background: #f3e430;
}

/* お問い合わせ */
#sfm-form table {
width: 100rem;
margin: 0 auto;
border-collapse: collapse;
}
#sfm-form table th, #sfm-form table td {
border-bottom: 0.1rem dashed #aaa;
padding: 2rem 0;
}
#sfm-form table th {
text-align: left;
}
.star {
color: #fff;
padding: 0.2rem 0.4rem;
margin-right: 1rem;
background: #0e53a8;
}
.star_l {
color: #fff;
padding: 0.2rem 0.4rem;
margin-left: 1rem;
background: #0e53a8;
}
.star2 {
padding: 0.2rem 0.4rem;
margin-right: 1rem;
}
.ERR {
color: #ff0000;
font-weight: bold;
}
#sfm-form .submit {
text-align: center;
border-bottom: none;
}
.submit input {
cursor: pointer;
}
#kaisya {
width: 80%;
}
#message {
width: 100%;
}
#name, #kana {
width: 50%;
}
#zip0 {
width: 4rem;
}
#zip1 {
width: 6rem;
}
#address {
width: 100%;
}
#tel0, #tel1, #tel2, #fax0, #fax1, #fax2 {
width: 6rem;
}
#email, #emailcheck {
width: 70%;
}
#pol {
background: #1f2b61;
color: #fff;
text-align: center;
font-size: 2.2rem;
font-weight: bold;
padding: 2rem 0;
margin: 10rem 0 5rem 0;
}
#policy {
width: 100rem;
margin: 0 auto;
height: 30rem;
overflow: auto;
border: 0.1rem solid #ccc;
padding: 2rem;
}
#policy h4 {
font-weight: bold;
font-size: 1.8rem;
margin-bottom: 1rem;
}
#policy p {
margin-bottom: 2rem;
}

}

/* タブレット用　縦向き
------------------------------------------------------------*/
@media only screen and (min-width: 641px) and (max-width: 999px) {

header#top_hdr {
position: relative;
z-index: 1;
}
header#top_hdr section {
display: none;
}
#slider {
position: relative;
width: 100%;
height: 70rem;
overflow: hidden;
}
#slider li div {
text-align: right;
padding: 30rem 3rem 0 10rem;
}
header#top_hdr nav {
display: none;
}
header#top_hdr > div {
position: absolute;
bottom: -4rem;
left: 0;
width: 100%;
height: 4rem;
background: #1f2b61;
z-index: 1;
}

#top_box1 {
margin: 14rem auto 10rem auto;
text-align: center;
padding: 0 2rem;
}
#top_box1 h2 {
position: relative;
display: inline-block;
text-align: center;
font-size: 3rem;
margin-bottom: 5rem;
font-weight: bold;
color: #7a7a7a;
padding: 0 0 0.8rem 3rem;
border-bottom: 0.3rem solid #1f2b61;
}
#top_box1 h2 span:first-child {
position: absolute;
display: block;
top: 0.4rem;
left: 0;
width: 2.4rem;
height: 0.3rem;
background: #1f2b61;
}
#top_box1 h2 span:nth-child(2) {
position: absolute;
display: block;
top: 1.2rem;
left: 0;
width: 2.4rem;
height: 0.3rem;
background: #1f2b61;
}
#top_box1 h2 span:last-child {
position: absolute;
display: block;
top: 2rem;
left: 0;
width: 2.4rem;
height: 0.3rem;
background: #f3e430;
}
#top_box1 p {
font-size: 1.8rem;
line-height: 4rem;
}
#top_box2 {
background: #e6e6e6;
padding: 8rem 0;
text-align: center;
}
#top_box2 > div:first-child {
width: 100rem;
margin: 0 auto;
}
#top_box2 > h2 {
position: relative;
display: inline-block;
text-align: center;
font-size: 3rem;
margin: 0 0 2rem 0;
font-weight: bold;
padding: 0 0 0 3.6rem;
}
#top_box2 > h2 span:first-child {
position: absolute;
display: block;
top: 0.2rem;
left: 0;
width: 3rem;
height: 0.4rem;
background: #1f2b61;
}
#top_box2 > h2 span:nth-child(2) {
position: absolute;
display: block;
top: 1rem;
left: 0;
width: 3rem;
height: 0.4rem;
background: #1f2b61;
}
#top_box2 > h2 span:last-child {
position: absolute;
display: block;
top: 1.8rem;
left: 0;
width: 3rem;
height: 0.4rem;
background: #f3e430;
}
#top_box2 > h3 {
font-size: 2rem;
font-weight: bold;
color: #7a7a7a;
margin-bottom: 2rem;
}
#top_box2 > article {
margin: 5rem 0 0 0;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
text-align: left;
}
#top_box2 > article a {
display: block;
width: 50%;
height: 20vh;
padding: 4rem;
transition: 0.3s;
}
#top_box2 > article a:hover {
opacity: 0.7;
transition: 0.3s;
text-decoration: none;
}
#top_box2 > article a:first-child {
background: url("../img/top/p1.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a:nth-child(2) {
background: url("../img/top/p2.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a:nth-child(3) {
background: url("../img/top/p3.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a:last-child {
background: url("../img/top/p4.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a h3 {
position: relative;
color: #000;
font-weight: bold;
font-size: 2.6rem;
padding-left: 3rem;
}
#top_box2 > article a h3:hover {
text-decoration: none;
}
#top_box2 > article a h3 span:first-child {
position: absolute;
display: block;
top: 0.3rem;
left: 0;
width: 2rem;
height: 0.1rem;
background: rgba(0,0,0,0.5);
}
#top_box2 > article a h3 span:nth-child(2) {
position: absolute;
display: block;
top: 1.1rem;
left: 0;
width: 1.6rem;
height: 0.1rem;
background: rgba(0,0,0,0.5);
}
#top_box2 > article a h3 span:last-child {
position: absolute;
display: block;
top: 1.9rem;
left: 0;
width: 1.2rem;
height: 0.1rem;
background: rgba(0,0,0,0.5);
}

/* 事業内容 */
#bs_box1, #wks_box1, #com_box1, #mail_box1 {
padding: 0 2rem;
margin: 0 auto 10rem auto;
}
#bs_box1 p, #bs_box2 p, #wks_box1 p, #com_box1 p, #mail_box1 p {
text-align: center;
line-height: 3.6rem;
}
#bs_box1 article {
background: #1f2b61;
color: #fff;
font-size: 3rem;
font-weight: bold;
border-radius: 3rem;
margin-top: 5rem;
padding: 3rem;
}
#bs_box1 article h4 {
text-align: center;
font-weight: bold;
}
#bs_box1 article h4 img {
margin-right: 1rem;
}
#bs_box1 article ul {
text-align: center;
margin-top: 4rem;
}
#bs_box1 article li {
position: relative;
display: inline-block;
padding-left: 4rem;
margin-right: 4rem;
}
#bs_box1 article li::before {
content: "";
position: absolute;
top: 0.2rem;
left: 0;
width: 2rem;
height: 2rem;
background: #fff;
}
#bs_box2 > p {
padding: 0 2rem;
}
#bs_box2 > article {
display: flex;
justify-content: space-between;
margin: 5rem 0;
}
#bs_box2 > article figure {
width: 50%;
}
#bs_ban {
margin: 5rem auto 8rem auto;
display: flex;
justify-content: space-between;
padding: 0 1rem;
}
#bs_ban > div {
width: 16.6%;
}

/* 施工実績 */
#wks_box2 {
padding: 0 2rem;
margin: 8rem auto;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
padding-left: 5.8rem;
}
#wks_box2 > article {
position: relative;
width: 32rem;
margin-bottom: 5rem;
z-index: 1;
}
#wks_box2 > article h3 {
position: absolute;
top: 0.2rem;
left: -3rem;
font-size: 6rem;
font-weight: bold;
letter-spacing: 0.4rem;
-ms-writing-mode: tb-rl;
writing-mode: vertical-rl;
transform: rotate(180deg);
font-family: Arial;
z-index: 2;
}
#wks_box2 > article figcaption {
background: #1f2b61;
color: #fff;
text-align: center;
font-size: 2rem;
font-weight: bold;
padding: 1rem 0;
margin-bottom: 1rem;
}
#wks_box2 > article p {
font-size: 1.4rem;
}
#metal {
font-size: 5rem !important;
letter-spacing: 0 !important;
}

/* 会社案内 */
#com_box1 h4 {
font-weight: bold;
text-align: center;
margin-top: 5rem;
}
#com_box1 h4 span {
font-size: 1.4rem;
margin-right: 1.4rem;
}
#com_box2 table {
width: 100%;
margin: 5rem auto 10rem auto;
border-collapse: collapse;
}
#com_box2 th, #com_box2 td {
border-bottom: 0.1rem solid #ddd;
padding: 2rem 1rem;
}
#com_box2 th {
text-align: left;
}
#com_box3 > div {
height: 40rem;
}

#toi_tel {
position: relative;
width: 50rem;
margin: 0 auto 10rem auto;
border: 0.3rem solid #1f2b61;
padding: 1rem 0;
text-align: center;
font-size: 2rem;
font-weight: bold;
}
#toi_tel::before {
content: "";
position: absolute;
top: -1rem;
left: 2rem;
width: 2rem;
height: 6.6rem;
background: #f3e430;
}

/* お問い合わせ */
#sfm-form table {
width: 98%;
margin: 0 auto;
border-collapse: collapse;
}
#sfm-form table th, #sfm-form table td {
border-bottom: 0.1rem dashed #aaa;
padding: 2rem 0;
}
#sfm-form table th {
text-align: left;
}
.star {
color: #fff;
padding: 0.2rem 0.4rem;
margin-right: 1rem;
background: #0e53a8;
}
.star_l {
color: #fff;
padding: 0.2rem 0.4rem;
margin-left: 1rem;
background: #0e53a8;
}
.star2 {
padding: 0.2rem 0.4rem;
margin-right: 1rem;
}
.ERR {
color: #ff0000;
font-weight: bold;
}
#sfm-form .submit {
text-align: center;
border-bottom: none;
}
.submit input {
cursor: pointer;
}
#kaisya {
width: 80%;
}
#message {
width: 100%;
}
#name, #kana {
width: 50%;
}
#zip0 {
width: 4rem;
}
#zip1 {
width: 6rem;
}
#address {
width: 100%;
}
#tel0, #tel1, #tel2, #fax0, #fax1, #fax2 {
width: 6rem;
}
#email, #emailcheck {
width: 70%;
}
#pol {
background: #1f2b61;
color: #fff;
text-align: center;
font-size: 2.2rem;
font-weight: bold;
padding: 2rem 0;
margin: 10rem 0 5rem 0;
}
#policy {
width: 96%;
margin: 0 auto;
height: 30rem;
overflow: auto;
border: 0.1rem solid #ccc;
padding: 2rem;
}
#policy h4 {
font-weight: bold;
font-size: 1.8rem;
margin-bottom: 1rem;
}
#policy p {
margin-bottom: 2rem;
}

}


/* スマートフォン用
------------------------------------------------------------*/
@media only screen and (max-width: 640px) {

header#top_hdr {
position: relative;
z-index: 1;
}
header#top_hdr section {
display: none;
}
#slider {
position: relative;
width: 100%;
height: 40vh;
overflow: hidden;
}
#slider li div {
text-align: right;
padding: 10rem 1rem 0 5rem;
}
header#top_hdr nav {
display: none;
}
header#top_hdr > div {
position: absolute;
bottom: -2rem;
left: 0;
width: 100%;
height: 2rem;
background: #1f2b61;
z-index: 1;
}

#top_box1 {
margin: 8rem auto 10rem auto;
text-align: center;
padding: 0 2rem;
}
#top_box1 h2 {
position: relative;
display: inline-block;
text-align: center;
font-size: 3rem;
margin-bottom: 5rem;
font-weight: bold;
color: #7a7a7a;
padding: 0 0 0.8rem 3rem;
border-bottom: 0.3rem solid #1f2b61;
}
#top_box1 h2 span:first-child {
position: absolute;
display: block;
top: 0.4rem;
left: 0;
width: 2.4rem;
height: 0.3rem;
background: #1f2b61;
}
#top_box1 h2 span:nth-child(2) {
position: absolute;
display: block;
top: 1.2rem;
left: 0;
width: 2.4rem;
height: 0.3rem;
background: #1f2b61;
}
#top_box1 h2 span:last-child {
position: absolute;
display: block;
top: 2rem;
left: 0;
width: 2.4rem;
height: 0.3rem;
background: #f3e430;
}
#top_box1 p {
font-size: 1.6rem;
line-height: 3rem;
text-align: left;
}
#top_box2 {
background: #e6e6e6;
padding: 8rem 0;
text-align: center;
}
#top_box2 > div:first-child {
width: 100rem;
margin: 0 auto;
}
#top_box2 > h2 {
position: relative;
display: inline-block;
text-align: center;
font-size: 3rem;
margin: 0 0 2rem 0;
font-weight: bold;
padding: 0 0 0 3.6rem;
}
#top_box2 > h2 span:first-child {
position: absolute;
display: block;
top: 0.2rem;
left: 0;
width: 3rem;
height: 0.4rem;
background: #1f2b61;
}
#top_box2 > h2 span:nth-child(2) {
position: absolute;
display: block;
top: 1rem;
left: 0;
width: 3rem;
height: 0.4rem;
background: #1f2b61;
}
#top_box2 > h2 span:last-child {
position: absolute;
display: block;
top: 1.8rem;
left: 0;
width: 3rem;
height: 0.4rem;
background: #f3e430;
}
#top_box2 > h3 {
font-size: 2rem;
font-weight: bold;
color: #7a7a7a;
margin-bottom: 2rem;
}
#top_box2 > article {
margin: 5rem 0 0 0;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
text-align: left;
}
#top_box2 > article a {
display: block;
width: 50%;
height: 20vh;
padding: 2rem;
transition: 0.3s;
}
#top_box2 > article a:hover {
opacity: 0.7;
transition: 0.3s;
text-decoration: none;
}
#top_box2 > article a:first-child {
background: url("../img/top/p1.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a:nth-child(2) {
background: url("../img/top/p2.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a:nth-child(3) {
background: url("../img/top/p3.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a:last-child {
background: url("../img/top/p4.png") no-repeat center;
background-size: cover;
}
#top_box2 > article a h3 {
position: relative;
color: #000;
font-weight: bold;
font-size: 2rem;
padding-left: 3rem;
}
#top_box2 > article a h3:hover {
text-decoration: none;
}
#top_box2 > article a h3 span:first-child {
position: absolute;
display: block;
top: 0.3rem;
left: 0;
width: 2rem;
height: 0.1rem;
background: rgba(0,0,0,0.5);
}
#top_box2 > article a h3 span:nth-child(2) {
position: absolute;
display: block;
top: 1.1rem;
left: 0;
width: 1.6rem;
height: 0.1rem;
background: rgba(0,0,0,0.5);
}
#top_box2 > article a h3 span:last-child {
position: absolute;
display: block;
top: 1.9rem;
left: 0;
width: 1.2rem;
height: 0.1rem;
background: rgba(0,0,0,0.5);
}

/* 事業内容 */
#bs_box1, #wks_box1, #com_box1, #mail_box1 {
padding: 0 2rem;
margin: 0 auto 10rem auto;
}
#bs_box1 p, #bs_box2 p, #wks_box1 p, #com_box1 p, #mail_box1 p {
text-align: left;
line-height: 3rem;
}
#bs_box1 article {
background: #1f2b61;
color: #fff;
font-size: 2rem;
font-weight: bold;
border-radius: 3rem;
margin-top: 5rem;
padding: 2rem;
}
#bs_box1 article h4 {
text-align: center;
font-weight: bold;
}
#bs_box1 article h4 img {
margin-right: 1rem;
}
#bs_box1 article ul {
text-align: center;
margin-top: 4rem;
}
#bs_box1 article li {
position: relative;
display: inline-block;
padding-left: 2.6rem;
margin-right: 2rem;
margin-bottom: 1rem;
}
#bs_box1 article li:last-child {
margin-bottom: 0;
}
#bs_box1 article li::before {
content: "";
position: absolute;
top: 0.2rem;
left: 0;
width: 1.6rem;
height: 1.6rem;
background: #fff;
}
#bs_box2 > p {
padding: 0 2rem;
}
#bs_box2 > article {
display: flex;
justify-content: space-between;
margin: 2rem 0;
}
#bs_box2 > article:last-child {
margin-bottom: 8rem;
}
#bs_box2 > article figure {
width: 50%;
}
#bs_ban {
margin: 5rem auto 8rem auto;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
#bs_ban > div {
width: 50%;
text-align: center;
}

/* 施工実績 */
#wks_box2 {
padding: 0 1rem 0 5rem;
margin: 8rem auto;
}
#wks_box2 > article {
position: relative;
margin-bottom: 5rem;
z-index: 1;
}
#wks_box2 > article h3 {
position: absolute;
top: 0.2rem;
left: -2.8rem;
font-size: 6rem;
font-weight: bold;
letter-spacing: 0.4rem;
-ms-writing-mode: tb-rl;
writing-mode: vertical-rl;
transform: rotate(180deg);
font-family: Arial;
z-index: 2;
}
#wks_box2 > article figcaption {
background: #1f2b61;
color: #fff;
text-align: center;
font-size: 2rem;
font-weight: bold;
padding: 1rem 0;
margin-bottom: 1rem;
}
#wks_box2 > article p {
font-size: 1.4rem;
}
#metal {
font-size: 5rem !important;
letter-spacing: 0 !important;
}

/* 会社案内 */
#com_box1 h4 {
font-weight: bold;
text-align: center;
margin-top: 5rem;
}
#com_box1 h4 span {
font-size: 1.4rem;
margin-right: 1.4rem;
}
#com_box2 table {
width: 100%;
margin: 5rem auto 10rem auto;
border-collapse: collapse;
}
#com_box2 th, #com_box2 td {
border-bottom: 0.1rem solid #ddd;
padding: 2rem 1rem;
vertical-align: top;
}
#com_box2 th {
text-align: left;
width: 30%;
}
#com_box3 > div {
height: 30rem;
}

#toi_tel {
position: relative;
width: 90%;
margin: 0 auto 10rem auto;
border: 0.3rem solid #1f2b61;
padding: 1rem 0;
text-align: center;
font-size: 2rem;
font-weight: bold;
}

/* お問い合わせ */
#sfm-form table {
width: 96%;
margin: 0 auto;
border-collapse: collapse;
}
#sfm-form table th, #sfm-form table td {
display: block;
}
#sfm-form table th {
text-align: left;
padding: 1rem 0 0 0;
}
#sfm-form table td {
border-bottom: 0.1rem dashed #aaa;
padding: 1rem 0 2rem 0;
}
.star {
color: #fff;
padding: 0.2rem 0.4rem;
margin-right: 1rem;
background: #0e53a8;
}
.star_l {
color: #fff;
padding: 0.2rem 0.4rem;
margin-left: 1rem;
background: #0e53a8;
}
.star2 {
padding: 0.2rem 0.4rem;
margin-right: 1rem;
}
.ERR {
color: #ff0000;
font-weight: bold;
}
#sfm-form .submit {
text-align: center;
border-bottom: none;
}
.submit input {
cursor: pointer;
}
#kaisya {
width: 80%;
}
#message {
width: 100%;
}
#name, #kana {
width: 50%;
}
#zip0 {
width: 4rem;
}
#zip1 {
width: 6rem;
}
#address {
width: 100%;
}
#tel0, #tel1, #tel2, #fax0, #fax1, #fax2 {
width: 6rem;
}
#email, #emailcheck {
width: 70%;
}
#pol {
background: #1f2b61;
color: #fff;
text-align: center;
font-size: 2.2rem;
font-weight: bold;
padding: 2rem 0;
margin: 10rem 0 5rem 0;
}
#policy {
width: 96%;
margin: 0 auto;
height: 30rem;
overflow: auto;
border: 0.1rem solid #ccc;
padding: 2rem;
}
#policy h4 {
font-weight: bold;
font-size: 1.4rem;
margin-bottom: 1rem;
}
#policy p {
margin-bottom: 2rem;
}

}