@charset "utf-8";
body, html {
  margin: 0;
  padding: 0;
}

.header {
  background-color: black;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 縦中央寄せ */
  align-items: center;     /* 横中央寄せ */
}
.header ul li a:hover {
  color: rgb(255, 230, 0);
  
  }


.nav_list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 30px;
  margin-bottom: 5px;
}

.nav_btn {
  color: white;
  text-decoration: none;
  font-size: 15px;
}

.title {
  font-size: 30px;
  color: rgb(216, 124, 124);
  margin-bottom: -20px;
}
#main {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden; 
}
#main h1 {
  font-size: 60px;
  white-space: nowrap;
  color: #fff;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  -webkit-transform: translateY(-50%) translateX(-50%);
  z-index: 999;
}

#main img {
  display: block;
  width: 100%;
  height: 100%;   /*2025.5.10 350px → 100%変更*/
  object-fit: cover;
}

#top-slide {
  width: 100%;
  height: 100%;    /*2025.5.10 400px → 100%変更*/
  overflow: hidden;
  position: relative;
}

.slide-track {
  display: flex;
  width: calc(20% * 4); /* 画像4枚分（2枚×2） */
  animation: scrollSlide 60s linear infinite;
}

.slide {
  width: 100%;
  flex-shrink: 0;
}

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

@keyframes scrollSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-200%); /* 2枚分左へ */
  }
}


.about-text {
  background-color: #e0f7fa; /* 背景色（例：淡い青） */
  text-align: center;        /* 文字中央揃え */
  font-size: 20px;           /* 文字サイズ調整 */
  padding: 0px;             /* 内側の余白 */
  margin: 0;                 /* 外側の余白調整（必要に応じて） */
}
.about-text-1 ul {
  text-align: left;           /* 文字左 */
  font-size: 20px;           /* 文字サイズ調整 */
}.about-text-1 p {
  text-align: center;           /* 文字左 */
  font-size: 30px;           /* 文字サイズ調整 */
}

#about h2 {
  font-size: 50px;
  margin-bottom: 0px; 
}
.about-section h2 {
  text-align: center;  /* 見出しを中央揃え */
  background-color: #e0f7fa;
  padding: 20px 60px;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 30;
  padding-bottom: 0;
}

.about-content {
  display: flex;       /* 画像とテキストを横並びに */
  align-items: center;
  justify-content: center;  /* 中央揃え追加 */
  background-color: #e0f7fa;
  flex-wrap: wrap;          /* 画面が狭くなったら縦並びに */
  text-align: center; 
}

.about-image {
  max-width: 200px;
  height: 100%; /* ← 高さを明示的に指定 */
  object-fit: cover; /* 画像の歪みを防ぐ */
  margin: 100px;      /*2025.5.10 0px→100px*/
}

/* スマホや小さな画面向け */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;   /* 縦並びに変更 */
    align-items: center;      /* 中央揃え */
  }

  .about-image {
    max-width: 200px;
    height: 100%;         /*2025.5.10 400px → 100%変更*/
    object-fit: cover;    /*2025.5.10 400px → 100%変更*/
    margin: 20px;
  }

  .about-content p,
  .about-content ul {
    padding: 10px;
  }
}

/* 全体のセクション調整 */
#service {
  padding: 100px 20px;
  background-image: url("img/rizooto.jpg"); /* ← 背景画像のパス */
  /*2025.05.10 上記修正 urlの後()追加　*/
  background-size: cover;              /* 画面全体にフィット */
  background-position: center;         /* 中央揃え */
  background-repeat: no-repeat;        /* 繰り返しなし */
  color: rgb(208, 102, 102);                        /* 文字を白にすると見やすい */
  text-align: center;
}

/* セクション見出し */
#service h2 {
  font-size: 50px;
  margin-bottom: 0px;
}

.summary {
  font-size: 15px;
  margin-bottom: 10px;
  color: #0b0909;
}
#service {
  position: relative;
  overflow: hidden;
}

/* 背景画像（下に配置） */
.background img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.8; /* ← 背景が透けるように調整可 */
}

/* コンテンツ全体（上に表示） */
.foreground {
  position: relative;
  z-index: 1;
  padding: 0px 20px;
  text-align: center;
  color: #333;
}
/* サービスリスト全体 */
.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  background-image:url("img/rizooto.jpg"); /* ← 写真のパスを指定 */
  background-size: cover;                   /* 全体にフィット */
  background-position: center;              /* 中央寄せ */
  background-repeat: no-repeat;             /* 繰り返し防止 */
  padding: 60px 0;   
}

/* 各サービス項目 */
.service-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 8px rgba(0, 0, 0, 0.1);
  width: 250px;
  padding: 40px;
  text-align: center;
  height: 150px; /* ← ここで高さを固定 */
}

/* 画像スタイル */
.service-content img {
  width: 90%;
  height: auto;
  border-radius: 28px;
  margin-bottom: 0px;
}

/* テキスト */
.service-content p {
  font-size: 20px;
  color: #333;
}

 /* 全体のセクション調整 */
 #works {
  padding: 100px 20px;
  background-color: #e0f7fa;      
  background-size: cover;              /* 画面全体にフィット */
  background-position: center;         /* 中央揃え */
  background-repeat: no-repeat;        /* 繰り返しなし */
  color: rgb(208, 102, 102);                        /* 文字を白にすると見やすい */
  text-align: center;
}

/* セクション見出し */
#works h2 {
  font-size: 50px;
  margin-bottom: 0px;
}

.works-text {
  font-size: 15px;
  margin-bottom: 10px;
  color: #0b0909;
}
#works {
  position: relative;
  overflow: hidden;
}

/* コンテンツ全体（上に表示） */
.kakoi {
  position: relative;
  z-index: 1;
  padding: 0px 20px;
  text-align: center;
  color: #333;
}
/* サービスリスト全体 */
.work-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  background-image:url("img/rizooto.jpg"); /* ← 写真のパスを指定 */
  background-size: cover;                   /* 全体にフィット */
  background-position: center;              /* 中央寄せ */
  background-repeat: no-repeat;             /* 繰り返し防止 */
  padding: 60px 0;   
}

/* 各サービス項目 */
.work-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 8px rgba(0, 0, 0, 0.1);
  width: 200px;
  padding: 30px;
  text-align: center;
  height: 220px; /* ← ここで高さを固定 */
}

/* テキスト */
.work-content p {
  font-size: 15px;
  color: #333;
}

/* 画像とキャプションを重ねるためのラッパー */
.image-container {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 120px; /* 統一したい画像高さに調整 */
  overflow: hidden;
}

/* 統一された画像サイズ */
.image-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.image-caption {
  position: absolute;
  top: 5%; /* 上からの距離 */
  left:40%; /* 左からの距離 */
  background-color: rgba(16, 13, 175, 0.6); /* 半透明の背景 */
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}


.contact-haikei {
  position: relative;
  overflow: hidden;
}

.contact-haikei > img {
  width: 100%;
  height: 100%;
  display: block;
}
.parent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/*2025.05.10 365→375行追加*/
/* SP（スマホ）サイズ：画面幅が768px以下のとき */
@media (max-width: 768px) {
   .contact-haikei > img {
    display: none;
  }
  .parent {
    position: static; 
    height: auto; /* または 100vh, 任意のpxなどに変更 */
    padding: 0px 0; /* 余白が必要なら */
  }
}

.contact-title {
  font-size: 50px;
  margin-bottom: 20px;


}

.footer ul li a:hover {
  color: rgb(255, 230, 0);
  
  }
.footer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000;
  padding: 0px 40px 10px;
  position: relative;
  text-align: center;
}
.footer-box li {
  list-style-type: none;
}
.footer-box a,
.footer-box p {
  color: #fff;
}
.footer-box a {
  font-size: 25px;
}
.footer-box p {
  font-size: 30px;
}
.footer-nav {
  display: inline-block;
  border-bottom: 4px solid #fff;
  margin-bottom: 0px;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0 28px;
}
.footer-nav li:not(:last-of-type) {
  margin-right: 25px;
}
.copyright {
  margin-bottom: 0px;
}
.sns-area {
  float: right;
}
.sns-area img {
  width: 60px;
  height: 60px;
  max-width: 100%;
}

.sns-area {
  display: flex;
  gap: 30px;  
  margin-top: 10px;
}

.sns-area a img {
  transition: filter 0.3s ease;
}

.sns-area a:hover img {
  filter: brightness(0) saturate(100%) invert(69%) sepia(78%) saturate(703%) hue-rotate(360deg) brightness(103%) contrast(101%);
}

@media screen and (max-width: 600px) {      /*2025.5.10追加*/
  .footer-nav ul {                          /*2025.5.10追加*/
    flex-direction: column;                 /*2025.5.10追加*/
    align-items: center;                    /*2025.5.10追加*/           
    padding: 0;                             /*2025.5.10追加*/
  }                                         /*2025.5.10追加*/

  .footer-nav li {                          /*2025.5.10追加*/
    margin: 10px 0;                         /*2025.5.10追加*/
  }                                         /*2025.5.10追加*/
}