@charset "utf-8";
body {
  margin: 0;
  font-family: "Noto Sans JP", Sans Serif;
  font-weight: 400;
  font-style: normal;
}
p,h1,h2,h3,h4,a {
  margin: 0;
  
  font-family: "Noto Sans JP", Sans Serif ;
}
a {
  text-decoration: none;
}
img{
  width: 100%;
  height: auto;
}
#container {
  font-size: 18px;
}
h2 {
  font-size: 60px;
  text-align: center;
}
.summary {
  text-align: center;
  margin-bottom: 35px;
  margin-top: -5px;
  line-height: 33px;
}
.bg-gray {
  background-color: #f5d7dc;
}
.header {
  width: 100%;
  font-size: 25px;
  position: absolute;
  z-index: 999;
}
.header li {
  list-style-type: none;
}
.header a {
  color: #fff;
}
.title {
  position: absolute;
  left: 60px;
  top: 6px;
  z-index: 1;
}
.nav-content {
  display: block;
}
.nav_list {
  margin: 6px 60px;
  display: flex;
  justify-content: flex-end;
}
.nav_list li:not(:first-of-type) {
  margin-left: 30px;
}
#main {
  width: 100%;
  height: 550px;
  position: relative;
  overflow: hidden;
}
#main::after {
  content: '';
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
#main img {  
  height: 550px;
  object-fit: cover;
}
#main h1 {
  font-size: 100px;
  white-space: nowrap;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  -webkit-transform: translateY(-50%) translateX(-50%);
  z-index: 99;
}
#about {
  padding: 30px 60px;
}
#about h2 {
  margin-bottom: 24px;
}
.about-flex {
  display: flex;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
}
.about-text-area {
  display: inline-block;
  width: 50%;
  margin-right: 24px;
  order: 2;
}
.about-text-area p {
  line-height: 33px;
}
.about-text-area ul {
  margin-top: 30px;
  line-height: 33px;
  padding-left: 18px;
}
.about-img-area {
  width: 40%;
  max-width: 400px;
}

#service {
  padding: 30px 145px 48px;
}
.service-list {
  width: 100%;
  margin: 0 auto;
  font-size: 15px;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  justify-content: space-between;
}
.service-content {
  width: 100%;
}
.service-content:not(:last-of-type) {
  margin-right: 80px;
}
.service-content img {
  width: 100%;
  max-width: 150px;
  margin-bottom: 22px;
}
.service-content p {
  line-height: 25px;
  margin: -10px 10px 0;
}

#works {
  padding: 30px 60px 38px;
}
.work-list {
  font-size: 15px; 
  text-align: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Dynamic columns for responsiveness */
  gap: 20px; /* Unified spacing */
}
.work-content {
  width: 100%;
  background-color: #f5d7dc;
  position: relative;
  /* padding: 10px; */
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.work-content img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.work-content p {
  line-height: 25px;
  margin: -6px 10px 0;
}
#company-info {
  padding: 50px 20px;
  background-color: #ffffff;
}

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

.company-details table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  overflow: hidden;
}

.company-details th,
.company-details td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  }

.company-details th {
  background-color: #f2f2f2;
  font-weight: bold;
  white-space: nowrap;
}

.company-details td {
  text-align: left;
  overflow: hidden;
  white-space: normal;
  
}

.contact-form{
  text-align: center;
}
.contact-form iframe{
  display:block;
  margin: 0 auto;
  max-width: 100%;
}

.footer-box {
    background:#f5d7dc;
    padding: 10px 10px 60px;
    position: relative;
    text-align: center;
    z-index: 2;
  }
.footer-box li {
    list-style-type: none;
  }
.footer-box a,
.footer-box p {
    color: #000000;
  }

  
.footer-nav {
    display: inline-block;
    border-bottom: 3.0px solid #000000;
    margin-bottom: 10px;
  }
.footer-nav ul {
    display: flex;
    padding: 0 28px;
  }
.footer-nav li:not(:last-of-type) {
    margin-right: 30px;
  }
.copyright {
    margin-bottom: -10px;
  }
.sns-area {
  display: flex;
  justify-content: right;
  
  align-items: center;
  gap: 20px;  
  margin-top: 50px;
  }
.sns-area img {
    width: 30px;
    height: 30px;
    height: auto;
    display: inline-block;
    transition: transform 0.3s ease;
   
  }
  @media screen and (min-width:768px) {
    .pc_none{
      display: none !important;
    }
}
  @media screen and (max-width:767px) {
    .sp_none{
      display: none !important;
    }

  #container {
    font-size: 16px;
  }
  h2 {
    font-size: 50px;
  }
 .title {
    margin: 8px 20px;
    font-size: 30px;
    left: 0;
    top: 0;
  }
  #nav-content {
    display: none;
  }
  #main {
    height: 600px;
  }
  #main img {
    width:100%;
    height: 600px;
    object-fit: cover;
   
  }
  #main h1 {
    font-size: 80px;
    white-space: normal;
    text-align: center;
  }
  #about {
    padding: 30px 20px 40px;
  }
  #about h2 {
    margin-bottom: 24px;
  }
  .about-flex {
    flex-wrap: wrap;
  }
  .about-text-area {
    width: 100%;
    margin-right: 0;
  }
  .about-text-area ul {
    margin-top: 34px;
    padding-left: 14px;
  }
  .about-img-area {
    width: 100%;
    margin: 0 auto;
    max-width: 300px;
  }
  #service {
    padding: 26px 20px 40px;
  }
  #service h2 {
    margin-bottom: 8px;
  }
  .service-list {
    display: block;
  }
  .service-content:not(:last-of-type) {
    margin-right: 0;
    margin-bottom: 44px;
  }
  #works {
    padding: 30px 20px 40px;
  }
  #works h2 {
    margin-bottom: 8px;
  }
  .work-list {
    display: block;
  }
  .work-content:not(:last-of-type) {
    margin-right: 0;
    margin-bottom: 36px;
  }
    .company-details {
        width: 100%;
        overflow-x: auto; 
        display: table;
    }

    .company-details table {
        width: 100%;
        max-width: none; 
        table-layout: auto; 
        white-space: normal; 

    .company-details th,
    .company-details td {
        display: block;
        width: 100%;
        text-align: left;
        word-break: normal; 
    }
    
    .footer-nav {
    padding: 0 60px;
    margin-bottom: 10px;
  }
  .footer-nav ul {
    flex-wrap: wrap;
    padding: 0;
  }
  .footer-nav li:not(:last-of-type) {
    margin-right: 0;
    width: 50%;
  }
  .footer-nav li:last-of-type {
    width: 50%;
  }
  .footer-box {
    padding: 10px 20px 60px;
  }
  .footer-box p {
    font-size:16px;
  }
 
}
  
}