@charset "utf-8";
/* フッターが出てきたらヘッダーを消す */
header.is-hide {
  opacity: 0;
  transform: translateY(-6px); /* ゆっくり */
  pointer-events: none;
  filter: blur(1px);
}

/* Main Visual画像 */
.main_visual {
  background-image: url("../img/k-main2.png");
}

/*セクション1の指定*/
.section1 {
    padding: 20px;
    margin: 40px;
}
.section1 .container {
    letter-spacing: 5px;
    margin: 40px;
    color: #ffffff;
}
.section1 h2 {
    font-size: 30px;
    font-weight: 800;
}
.section1 p {
    font-size: 17px;
    font-weight: 500;
}

/*カードセクションの指定*/
.card-section {
  padding: 20px 90px;
  margin: 60px;
}

.card {
  display: flex;
  align-items: stretch; /* 高さを自動調整 */
  gap: 40px;
  flex-wrap: wrap; /* スマホで縦並び */
}

.card.reverse {
  flex-direction: row-reverse;
}

.card-image {
  flex: 1 1 auto;    /* 幅は自動調整 */
  max-width: 400px;  /* 好きな最大幅 */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.card-image img {
  width: 100%;
  height: 400px;       /* 枠の高さは画像比率に合わせて自動 */
  object-fit: cover; /* 画像全体を枠内に収める */
  display: block;      /* 下の隙間防止 */
  border-radius: 12px;
}

.card-text {
  flex: 1 1 400px;
  background-color: rgba(255,255,255,0.95);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-text h2 {
  margin-bottom: 20px;
  font-size: 18px;
}

.card-text p {
  margin-top: 35px;
  margin-bottom: 10px;
  line-height: 1.6;
}


/*幕*/  /*あるけどHTMLで当ててない・入れたい所に入れれば使える*/

.section-divider.dark-line {
  height: 80px;
  width: 90%;
  margin: 0 auto;
  background: #cccccc;
  position: relative;
}

.section-divider.dark-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #82b0c5,
    transparent
  );
}



/*施工例の指定*/ /*カルーセル*/
/* ===== カルーセル全体 ===== */
.works {
  width: 1000px;
  margin: 80px auto;
  position: relative;
  text-align: center;
}

/* タイトル */
.works .title {
  margin-bottom: 20px;
  font-size: 22px;
}

/* 外枠 */
.carousel {
  display: flex;
  justify-content: center;
}

.carousel-window {
  width: 100%;
  max-width: 320px; /* ← スマホで見せたい幅 */
  overflow: hidden;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.work-card {
  flex: 0 0 100%;
  width: 100%;
  background-color: #fff;
  padding-bottom: 5px;
}

.work-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.work-card h2 {
  font-size: 15px;
  padding: 12px;
}
.work-card p {
  font-size: 13px;
  padding: 5px;
  letter-spacing: 3px;
  line-height: 15px;
}


/* ナビ */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #82b0c5;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.nav.prev { left: 0; }
.nav.next { right: 0; }






/* ===== セクション ===== */
.section3 {
  padding: 50px;
  background: #82b0c5;
}

/* ===== 小さめ幅 ===== */
.section3 .container {
  max-width: 720px;
  padding: 0 20px;
  margin: 0 auto;
}
.section3 .text {
 margin-bottom: 4px ;
 margin-top: 5px;
}
.section3 .text1 {
 color:brown;
 font-size: 25px;
 margin-bottom: 7px ;
 margin-top: 0px;
}


/* ===== カード ===== */
.image-box {
  height: 300px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0,0,0,0.15);
}

/* 画像 */
.image-box img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 1.4s ease;
}

.image-box:hover img {
  transform: scale(1.04);
}

/* ===== テキストレイヤー ===== */
.overlay {
  position: absolute;
  inset: 0;
  padding: 30px;
}

/* 右側の淡いマスク */
.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(255,255,255,0.78),
    rgba(255,255,255,0.35),
    rgba(255,255,255,0)
  );
}

/* 前面 */
.overlay * {
  position: relative;
  z-index: 1;
}

/* ===== テキストブロック ===== */
.overlay {
  text-align: right;
}

/* サブタイトル */
.overlay .sub-title {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: #333;
}

/* 見出し */
.overlay h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

/* 説明文 */
.overlay .text {
  font-size: 13px;
  line-height: 1.8;
  color: #333;
}

/* ===== ボタン ===== */
.overlay .btn {
  display: inline-block;
  font-size: 12px;
  padding: 10px 24px;
  border-radius: 999px;
  background: transparent;
  color: #222;
  border: 1px solid rgba(0,0,0,0.25);
  text-decoration: none;
  transition: all 0.35s ease;
}

.overlay .btn:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

/* === お問い合わせの電話番号が青く見えるのを防ぐ === */
.phone2 a {
  color:brown;
}

@media (max-width: 768px) {

  /* ===== 全体余白を縮める ===== */
  .section1,
  .section1 .container,
  .card-section {
    margin: 20px auto;
    padding: 20px;
  }
}
@media (max-width: 768px) {

  .card {
    gap: 24px;
  }

  .card-image img {
    height: 260px;
  }

  .card-text {
    padding: 20px;
  }

  .card-text p {
    margin-top: 16px;
  }
}
@media (max-width: 768px) {

  .section3 {
    padding: 60px 0;
  }

  .section3 .container {
    margin: 0 auto;
    text-align: center;
  }

  .overlay {
    text-align: right;
  }

  .overlay::before {
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.85),
      rgba(255,255,255,0.5),
      rgba(255,255,255,0)
    );
  }
}
@media (max-width: 480px) {

  .section {
    min-height: 40vh;   /* ← ここが肝 */
  }

  .img {
    height: 40vh;
  }

  .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
@media (max-width: 480px) {
  .works, .carousel {
    width: 100%;
  }

  .carousel {
    position: relative;
  }

  .carousel-window {
    width: 100%;
    overflow: hidden;
  }

  .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
  }

  .work-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .prev { left: 5px; }
  .next { right: 5px; }
}

@media (max-width: 780px) {
  /* 親コンテナ幅 */
  .works,
  .carousel {
    width: 100%;
    box-sizing: border-box;
  }

  /* カルーセル本体 */
  .carousel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* 表示窓 */
  .carousel-window {
    width: 100%;
    overflow: hidden;
  }

  /* トラック */
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0;
  }

  /* 各カード */
  .work-card {
    flex: 0 0 100%; /* 1枚表示 */
    max-width: 100%;
  }

  /* ナビボタン */
  .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }

  .prev {
    left: 5px;
  }

  .next {
    right: 5px;
  }
}

@media (max-width:768px) {
  .overlay .sub-title {
    font-size: 10px;
  }
  .overlay h2 {
    font-size: 10px;
  }
  .overlay .text {
    font-size: 10px;
  }
  .overlay .btn {
    display: inline-block;
    font-size: 12px;
    padding: 10px 24px;
    border-radius: 999px;
    background: transparent;
    color: #222;
    border: 1px solid rgba(0,0,0,0.25);
    text-decoration: none;
  }
}

@media (max-width:480px) {
  .overlay .btn {
    display: inline-block;
    font-size: 12px;
    padding: 10px 24px;
    border-radius: 999px;
    background: transparent;
    color: #222;
    border: 1px solid rgba(0,0,0,0.25);
    text-decoration: none;
  }
}
/*メインヴィジュアル レスポンシブ*/
@media (max-width:768px) {
.filter {
  height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background: rgb(0, 0, 0);
    z-index: 2;
}
.section .container {
    position: relative;
    z-index: 3;
    height: 80%;
    color: #fff;
    text-align: center;
    letter-spacing: 5px;
    padding-top: 25%;
}
.section .heading {
   padding: 5px;
   margin: 0;
   font-size: 20px;
   z-index: 3;
}
.section h1 {
   padding: 5px;
   font-size: 20px;
   z-index: 3;
}
.section .text {
   padding: 5px;
   font-size: 10px;
   z-index: 3;
}
}

@media (max-width:480px) {
.filter {
  height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background: rgb(0, 0, 0);
    z-index: 2;
}
.section .container {
    position: relative;
    z-index: 3;
    height: 80%;
    color: #fff;
    text-align: center;
    letter-spacing: 5px;
    padding-top: 25%;
}
.section .heading {
   padding: 5px;
   margin: 0;
   font-size: 20px;
   z-index: 3;
}
.section h1 {
   padding: 5px;
   font-size: 20px;
   z-index: 3;
}
.section .text {
   padding: 5px;
   font-size: 10px;
   z-index: 3;
}
}

@media (max-width: 768px) {
  .gaiyou .container {
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .gaiyou p {
    font-size: 20px;
  }
}
@media (max-width: 480px) {
    .gaiyou .container {
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .gaiyou p {
    font-size: 14px;    
  }
}