@charset "UTF-8";

/* ==========================================
   全体共通リセット・基本設定
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   ① ヘッダーナビゲーション
   ========================================== */
.site-header {
  width: 100%;
  background: linear-gradient(90deg, #14a3df 0%, #3e52e0 55%, #7b00ff 100%);
  padding: 14px 20px;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 32px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.main-nav a .sub {
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
}

.main-nav a.active {
  font-weight: 700;
}

.insta-icon {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  display: block;
}

/* ==========================================
   ② ヒーローセクション
   ========================================== */
.works-hero {
  width: 100%;
  background-color: #ffffff;
  padding: 20px 0 10px;
}

.hero-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==========================================
   ③ イントロメッセージ
   ========================================== */
.works-intro {
  padding: 40px 20px 50px;
  text-align: center;
  margin-top: -100px;
  margin-bottom: 50px;
}

.intro-container {
  max-width: 800px;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: #333333;
  line-height: 2.2;
  letter-spacing: 0.04em;
}

/* ==========================================
   ④ 給排水設備工事セクション (全幅カードデザイン)
   ========================================== */
.works-detail-section {
  width: 100%;
}

.full-width-card {
  width: 100%;
  margin: 0 auto;
  background-color: #f4f5f7;
  border-radius: 50px 50px 0 0;
  padding: 50px 40px 40px;
}

.full-width-card2 {
  width: 100%;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 50px;
  padding: 50px 40px 40px;
}

.detail-container {
  max-width: 960px;
  margin: 0 auto;
}

/* タイトル画像 (works_T1.png) */
.card-header-img {
  text-align: center;
  margin-bottom: 40px;
}

.title-img {
  max-width: 750px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  padding-top: 40px;
}

/* メインコンテンツ */
.card-body {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
  padding-top: 30px;
}

.body-img {
  width: 50%;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
}

.body-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

.body-text {
  width: 50%;
  font-size: 0.88rem;
  color: #444444;
  line-height: 2.0;
}

.body-text p {
  margin-bottom: 14px;
}

.body-text p:last-child {
  margin-bottom: 0;
}

/* 下部横スライドギャラリー */
.slider-area {
  position: relative;
  padding: 0 0 35px; /* 左右の余白を 0 にして画像端を合わせる */
}

.works-slider {
  width: 100%;
  overflow: hidden;
}

.works-slider .swiper-slide {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.works-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* スライダー矢印ボタン */
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none !important;
}

.btn-prev,
.btn-next {
  width: 36px !important;
  height: 36px !important;
  background-color: #555555 !important;
  border-radius: 50%;
  position: absolute;
  top: 53% !important;
  transform: translateY(-120%);
  margin-top: 0 !important;
  z-index: 10;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background-color 0.2s;
}

.btn-prev:hover,
.btn-next:hover {
  background-color: #222222 !important;
}

.btn-prev {
  left: -45px !important; /* 矢印を画像の左外側へ移動 */
}

.btn-next {
  right: -45px !important; /* 矢印を画像の右外側へ移動 */
}

.btn-prev::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(-45deg);
  margin-left: 3px;
}

.btn-next::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: rotate(45deg);
  margin-right: 3px;
}

/* ページネーションドット */
.slider-dots {
  position: absolute;
  bottom: 0 !important;
  left: 0;
  right: 0;
  text-align: center;
}

.slider-dots .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background-color: #cccccc;
  opacity: 1;
  margin: 0 4px !important;
}

.slider-dots .swiper-pagination-bullet-active {
  background-color: #00a0e9;
}

/* ==========================================
   レスポンシブ対応
   ========================================== */
@media (max-width: 820px) {
  .full-width-card {
    padding: 35px 20px 30px;
    border-radius: 30px;
  }

  .full-width-card2 {
    padding: 35px 20px 30px;
    border-radius: 30px;
  }

  .card-body {
    flex-direction: column;
    gap: 20px;
  }

  .body-img,
  .body-text {
    width: 100%;
  }

  .intro-text {
    font-size: 0.95rem;
    line-height: 2.0;
  }
}

@media (max-width: 576px) {
  .slider-area {
    padding: 0 30px 30px; /* スマホでは内側に余白を取る */
  }
  .btn-prev {
    left: 0 !important;
  }
  .btn-next {
    right: 0 !important;
  }
}

/* ページネーションドット */
.slider-dots {
  position: absolute;
  bottom: 0 !important;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10 !important; /* ← 最前面に表示する指定を追加 */
}

.slider-dots .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background-color: #cccccc;
  opacity: 1;
  margin: 0 4px !important;
}

.slider-dots .swiper-pagination-bullet-active {
  background-color: #00a0e9;
}


/* ==========================================
   「流れ (Flow)」セクション
   ========================================== */
.flow-section {
  width: 100%;
  padding: 80px 20px 100px;
  background-color: #fafafa;
  /* 方眼紙風グリッド背景 */
  background-image:
    linear-gradient(#e5e7eb 1px, transparent 1px),
    linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
  background-size: 24px 24px;
}

.flow-container {
  max-width: 860px;
  margin: 0 auto;
}

.flow-header {
  text-align: center;
  margin-bottom: 70px;
}

.flow-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333333;
  line-height: 1.2;
}

.flow-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: #666666;
  margin-top: 4px;
}

/* タイムライン全体の枠組み */
.flow-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ★ 上下に突き抜ける青い縦軸線 (top/bottomのマイナス値でコントロール) */
.flow-timeline::before {
  content: "";
  position: absolute;
  top: -45px;    /* ステップ1の上へ45px突き出させる */
  bottom: -45px; /* ステップ6の下へ45px突き出させる */
  left: 210px;   /* 縦線の位置 */
  width: 2px;
  background-color: #0088e3;
  z-index: 1;
}

.flow-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  z-index: 2;
}

/* 左側バッジと横の青ライン */
.flow-badge-wrap {
  width: 210px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.flow-badge {
  width: 130px;
  height: 38px;
  background-color: #0088e3;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

/* バッジから縦線へ伸びる水平線 */
.flow-badge-wrap::after {
  content: "";
  position: absolute;
  left: 130px;
  right: 0;
  top: 50%;
  height: 2px;
  background-color: #0088e3;
  transform: translateY(-50%);
}

/* 縦線上の青い丸ドット */
.flow-dot {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: #0088e3;
  border-radius: 50%;
  z-index: 3;
}

/* 右側コンテンツテキスト */
.flow-content {
  padding-left: 35px;
  flex-grow: 1;
  padding-top: 5px;
}

.flow-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 6px;
  line-height: 1.4;
}

.flow-step-text {
  font-size: 0.88rem;
  color: #555555;
  line-height: 1.8;
}

.flow-step-text .note {
  font-size: 0.82rem;
  color: #888888;
}

/* スマホ対応（768px以下） */
@media (max-width: 768px) {
  .flow-timeline::before {
    left: 15px;
    top: -30px;
    bottom: -30px;
  }

  .flow-item {
    flex-direction: column;
    padding-left: 35px;
  }

  .flow-badge-wrap {
    width: 100%;
    margin-bottom: 10px;
  }

  .flow-badge-wrap::after {
    display: none;
  }

  .flow-dot {
    left: -24px;
    right: auto;
    top: 19px;
  }

  .flow-content {
    padding-left: 0;
  }
}

/* ==========================================
   流れセクション下部 CTA・ボタンエリア
   ========================================== */
.flow-cta {
  margin-top: 80px;
  text-align: center;
}

.flow-note {
  font-size: 0.8rem;
  color: #666666;
  margin-bottom: 12px;
}

.flow-cta-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 45px;
  letter-spacing: 0.03em;
}

/* ボタン配置グループ */
.flow-btn-group {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ダークグレーボタン本体 */
.flow-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 370px;
  max-width: 100%;
  padding: 22px 28px;
  background-color: #555555;
  color: #ffffff;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.flow-btn:hover {
  background-color: #333333;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.flow-btn .btn-text {
  text-align: center;
  flex-grow: 1;
}

.flow-btn .sub {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: #e0e0e0;
  margin-bottom: 4px;
}

.flow-btn .main {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.flow-btn .btn-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-left: 12px;
}

/* スマホ表示切り替え（768px以下） */
@media (max-width: 768px) {
  .flow-cta {
    margin-top: 50px;
  }

  .flow-cta-title {
    font-size: 1.15rem;
    margin-bottom: 30px;
  }

  .flow-btn-group {
    gap: 16px;
  }

  .flow-btn {
    width: 100%;
    padding: 18px 20px;
  }

  .flow-btn .sub {
    font-size: 0.78rem;
  }

  .flow-btn .main {
    font-size: 0.95rem;
  }

  .flow-btn .btn-icon {
    width: 32px;
    height: 32px;
  }

  .works-intro {
    padding: 40px 20px 50px;
    text-align: center;
    margin-top: -30px;
    margin-bottom: 15px;
  }

  .card-header-img {
    margin-bottom: 10px;
  }
  .sec01 {
    margin-top: 50px;
  }
}

/* フッター全体の親要素を中央揃え */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ロゴの親ブロック */
.footer-logo {
  width: 100%;
  text-align: center;
  margin-bottom: 30px; /* ナビゲーションとの間の余白（お好みで調整） */
}

/* ロゴ画像自体の中央寄せ設定 */
.footer-logo-img {
  display: block;
  margin: 0 auto;
  max-width: 240px; /* 必要に応じてロゴの最大幅を調整してください */
  height: auto;
}

/* スマホ表示時の余白調整 */
@media (max-width: 576px) {
  .slider-area {
    padding: 0 0 35px; /* 左右の余白を 0 にして画面いっぱいにスライドを表示 */
  }
}

/* すべてのスライドをくもり無（くっきり・等倍表示）にする設定 */
.works-slider .swiper-slide {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.works-slider .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}
