@charset "utf-8";

@import url("https://fonts.googleapis.com/css2?family=EB+Garamond&family=Noto+Serif+JP:wght@200&display=swap");

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  font-family: "Noto Serif JP", serif;
  font-weight: 200;
  font-style: normal;
}

nav img {
  width: 80px;
}

a {
  color: black;
  text-decoration: none;
}

/* -------------------------------------
header
------------------------------------- */
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #acacac;
  height: 100px;
  width: 100vw;
  padding: 0 4%;
  position: relative;
  position: fixed;
  z-index: 2;
}

#header .logo img {
  width: 80%;
}

.nav-links {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nav-links li {
  font-size: 1rem;
  margin-left: 30px;
}

.nav-links li a {
  color: #fff;
  transition: 1s opacity;
}

.nav-links li a:hover {
  opacity: 0.5;
}

/* -------------------------------------
mainvisual
------------------------------------- */
#mainvisual{
  position: relative;
}

.scroll {
  position: absolute;
  font-size: 1.5rem;
  bottom: 20px;
  left: 5%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 20;
  color: #1d1d1d;
}

.scroll::after {
  content: "";
  display: inline-block;
  position: absolute;
  background-color: #1d1d1d;
  right: 50%;
  bottom: -160px;
  transform: rotate(-90deg);
  width: 1px;
  height: 150px;
  animation: scroll 1.5s infinite;
}

.scroll p {
  transform: rotate(-90deg);
  margin-bottom: 80px;
  margin-right: 5px;
}

.slider-item {
  position: relative;
  /* その他のスタイル設定（高さ、幅など） */
}

.center-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.center-content img {
  /* 必要に応じて画像のスタイルを調整 */
  width: 90%;
  margin: 0 auto;
}

.center-content h1 {
  /* テキストのスタイルを調整 */
  color: black; 
  width: 100%;
  padding-left: 50px;
}

/* -------------------------------------
main
------------------------------------- */

main{
  width: 80%;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin: 70px 0;
}

.section-title h1 {
  border-bottom: 4px solid #d9d9d9;
  position: relative;
  padding-bottom: 15px;
  display: inline;
}

.section-title h1:after {
  position: absolute;
  content: "";
  display: block;
  border-bottom: solid 4px #e60013;
  left: 0;
  bottom: -4px;
  width: 30%;
}

/* -------------------------------------
事業案内
------------------------------------- */
.business {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.business a {
  flex-basis: calc(33.333% - 20px); /* 3つ並べる場合の基本幅 */
  margin: 10px;
}

.business_block {
  height: 100%;
  padding: 10px;
  box-shadow: 7px 10px 5px #acacac;
  transition: all 0.5s;
}

.business_block:hover {
  opacity: 0.7;
}

.business_block p {
  text-align: center;
  font-size: 1rem;
}

.business_block img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.three_img{
  margin-top: 70px;
  text-align: center;
}

.three_img img{
  width: 20%;
}

.three_img img:hover{
  opacity: 0.5;
}

/* -------------------------------------
事業案内中身
------------------------------------- */
.exterior_wall_painting img{
  width: 30%;
  display: flex;
  margin: 0 auto;
}

.exterior_wall_painting p{
  text-align: center;
}

.common-img img{
  width: 60%;
  height: auto;
  display: flex;
  margin: 0 auto;
}

/* -------------------------------------
施工の流れ
------------------------------------- */
.flow{
  width: 90%;
  margin: 0 auto;
  margin-bottom: 5%;
  display: flex;
}

.flow_text{
  width: 50%;
  margin: auto 0;
}

.flow_img{
  width: 50%;
  text-align: center;
}

.flow_img img{
  width: 50%;
  height: 250px;
}

/* -------------------------------------
施工事例
------------------------------------- */
.section-text p{
  text-align: center;
}

.exterior_wall_painting p{
  font-size: 1.4rem;
}

.before_after_logo img{
  width: 30%;
  display: flex;
  margin: 0 auto;
  margin-bottom: 10%;
}

.before_after{
  display: flex;
}

.before_top,.after_top{
  position: absolute;
  z-index: 1;
}

.before_top img,.after_top img{
  width: 20%;
  left: 0; /* 左端からの位置 */
  top: 0; /* 上端からの位置 */
  transform: translate(60%, -70%); /* 斜め左上に調整 */
}

.before_bottom,.after_bottom{
  position: relative;
  text-align: center;
}

.before_bottom img,.after_bottom img{
  width: 70%;
}

.sekou_h2 h2{
  text-align: right;
  margin-top: 2%;
  margin-right: 8%;
}

/* -------------------------------------
footer
------------------------------------- */
footer{
  margin-top: 70px;
  padding: 50px 0;
  background-color: #acacac;
}

footer img{
  display: flex;
  margin: 0 auto;
}

footer p{
  color:#fff;
  text-align: center;
}

hr{
  width: 80%;
}

footer ul{
  width: 80%;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
}

footer li{
  margin-top: 20px;
  list-style: none;
}

footer li:hover{
  opacity: 0.5;
}

footer a{
  color:#fff;
  font-weight: bold;
}

/* -------------------------------------
会社情報
------------------------------------- */
#company-info {
  padding: 20px;
  margin-bottom: 20px;
}

#company-info h2 {
  text-align: center;
  margin-bottom: 20px;
}

.company-table-responsive {
  overflow-x: auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* Add this to keep your table layout fixed */
}

.company-table th,
.company-table td {
  padding: 15px;
  text-align: left;
  border: 1px solid #ddd;
}

.company-table th {
  width: 30%;
  background: #f7f7f7;
}

.company-table td a {
  color: #007bff;
  text-decoration: none;
}

.company-table td a:hover {
  text-decoration: underline;
}

/* -------------------------------------
スタッフ紹介
------------------------------------- */
.staff{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3%;
}

.staff_farst_img img{
  float: right;
  width: 130px;
}

.staff_farst_text{
  margin-left: 5%;
}

/* -------------------------------------
お問い合わせ
------------------------------------- */
.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button[type="submit"] {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

/* -------------------------------------
キーフレーム
------------------------------------- */

@keyframes scroll {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }

  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }

  50.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }

  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

/* -------------------------------------
タブレットレスポンシブ
------------------------------------- */
@media (max-width: 1023px) {
.pc-nav {
  display: none;
}

 .business a {
    flex-basis: calc(50% - 20px); /* 2つ並べる場合の基本幅 */
  }

  #g-nav li a{
    font-size: 1.6rem;
  }

  .exterior_wall_painting img{
    width: 50%;
  }

  .exterior_wall_painting p{
    font-size: 1.2rem;
  }

  .before_after_logo img{
    width: 70%;
    display: flex;
    margin: 0 auto;
    margin-bottom: 20%;
  }

  .before_top img,.after_top img{
    width: 20%;
    left: 0; /* 左端からの位置 */
    top: 0; /* 上端からの位置 */
    transform: translate(20%, -70%); /* 斜め左上に調整 */
  }
  
  .before_bottom,.after_bottom{
    position: relative;
    text-align: center;
  }
  
  .before_bottom img,.after_bottom img{
    width: 90%;
  }

  .after_top img{
    width: 25%;
  }

  .three_img{
    margin-top: 70px;
    text-align: center;
  }
  
  .three_img img{
    width: 30%;
  }

  .flow{
    width: 90%;
    margin: 0 auto;
    margin-bottom: 5%;
    display: flex;
  }
  
  .flow_text{
    width: 50%;
    margin: auto 0;
  }
  
  .flow_img{
    width: 50%;
    text-align: center;
    margin: auto 0;
  }
  
  .flow_img img{
    width: 100%;
    height: 250px;
  }
}

/* -------------------------------------
会社情報レスポンシブ対応
------------------------------------- */
@media (max-width: 768px) {
  .company-table th,
  .company-table td {
      padding: 10px 5px;
      word-wrap: break-word; /* This will prevent content from spilling out of the table cells */
  }
}

@media (max-width: 480px) {
  #company-info h2 {
      font-size: 1.5em;
  }

  .company-table th,
  .company-table td {
      padding: 8px 4px;
      font-size: 0.7rem;
  }
}

/* -------------------------------------
お問い合わせレスポンシブ対応
------------------------------------- */
@media (max-width: 768px) {
  .form-group {
      margin-bottom: 10px;
  }

  button[type="submit"] {
      width: 100%;
  }
}

@media (max-width: 480px) {
  h2 {
      font-size: 1.5em;
  }

  input[type="text"],
  input[type="tel"],
  input[type="email"],
  textarea {
      padding: 8px;
  }

  button[type="submit"] {
      padding: 12px;
  }


.business_block img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}
}

/* -------------------------------------
スマホレスポンシブ
------------------------------------- */
@media (max-width: 428px) {
  #header .logo img {
    width: 50%;
  }

  .center-content img {
    /* 必要に応じて画像のスタイルを調整 */
    width: 50%;
    margin: 0 auto;
  }

  .center-content {
    top: 60%;
  }
  
  .center-content h1 {
    /* テキストのスタイルを調整 */
    color: black; 
    width: 100%;
    padding-left: 15px;
    font-size: 1.3rem;
  }

  .slider{
    height: 30%;
  }

  .slider-item {
    position: relative;
    height: 50vh;
  }

  .scroll {
    display: none;
  }

  .section-title {
    margin: 50px 0;
  }

  .section-title h1{
    font-size: 1.5rem;
  }

  #g-nav li a{
    font-size: 1rem;
  }

  .business_block p{
    font-size: 0.8rem;
  }

.common-img img{
  width: 100%;
  display: flex;
  margin: 0 auto;
}

  .exterior_wall_painting p{
    font-size: 0.8rem;
  }

  .before_after_logo img{
    width: 60%;
    display: flex;
    margin: 0 auto;
    margin-bottom: 25%;
  }
  
  .before_top img,.after_top img{
    width: 15%;
    left: 0; /* 左端からの位置 */
    top: 0; /* 上端からの位置 */
    transform: translate(10%, -70%); /* 斜め左上に調整 */
  }

  .after_top img{
    width: 27%;
  }

  .sekou_h2 h2{
    width: 100%;
    font-size: 0.6rem;
    text-align: right;
    margin-top: 5%;
  }

  .three_img{
    margin-top: 50px;
    display: flex;
    flex-direction:column;
  }
  
  .three_img img{
    width: 60%;
  }

  .flow{
    width: 100%;
    display: block;
  }
  
  .flow_text{
    width: 100%;
  }

  .flow_text h2{
    text-align: center;
    width: 100%;
  }
  
  .flow_img{
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  
  .flow_img img{
    width: 100%;
    height: 200px;
  }

  footer img{
    width: 20%;
  }

  footer p{
    font-size: 0.8rem;
  }

  footer ul{
    display: none;
  }
}