@charset "UTF-8";

/* ====================================
   Variables & Common
   ==================================== */
:root {
  --color-green: #559e44;
  --color-orange: #f0951e;
  --color-dark: #333;
  --color-gray-bg: #f4f4f4;
  --font-en: "Brush Script MT", cursive; 
}

.inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  box-sizing: border-box;
}

/* ====================================
   Hero Section
   ==================================== */
.p-works-mv {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  margin-bottom: 20px;
}
.p-works-mv__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-works-mv__content {
  position: absolute;
  bottom: 30px;
  left: 10%;
  z-index: 2;
  text-shadow: 0 0 15px rgba(255,255,255,0.8);
}
.p-works-mv__title .en {
  display: block;
  font-family: var(--font-en);
  font-size: 5rem;
  line-height: 1;
  color: #000;
}
.p-works-mv__title .jp {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-top: 5px;
  color: #000;
  padding-left: 5px;
}

/* Breadcrumb */
.p-works-breadcrumb {
  font-size: 12px;
  padding: 0 0 40px;
  margin-bottom: 20px;
}
.p-works-breadcrumb a {
  text-decoration: none;
  color: #333;
}

/* ====================================
   Intro
   ==================================== */
.p-works-intro {
  text-align: center;
  margin-bottom: 60px;
}
.p-works-intro__title {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 2;
}


/* ====================================
   Works Grid & Background
   ==================================== */
.p-works-content {
  margin-bottom: 100px;
  position: relative;
  
  /* 背景画像の設定 */
  background-image: url('../images/works/bg_works.png');
  background-repeat: no-repeat;
  background-position: center bottom; /* 下部中央に配置 */
  background-size: 100% auto;
  
  padding-bottom: 150px;
}

/* スマホでの調整 */
@media (max-width: 768px) {
  .p-works-content {
    background-size: contain;
    padding-bottom: 80px;
  }
}

.p-works-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

/* --- 各カード（浮いたデザインに変更） --- */
.p-works-item {
  width: calc(50% - 20px);
  background: #fff;
  
  /* 枠線を薄くして影を引き立たせる */
  border: 1px solid #f5f5f5; 
  
  /* 角を丸くする */
  border-radius: 8px;
  
  /* ふんわりとした影（浮遊感） */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* 動きの設定 */
}

/* ホバー時の動き（さらに浮き上がる） */
.p-works-item:hover {
  transform: translateY(-5px); /* 上に少し移動 */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); /* 影を濃く */
}

/* 画像エリア */
.p-works-item__thumb {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 8px 8px 0 0; /* カードに合わせて上部を角丸に */
}
.p-works-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
/* カード全体ホバー時に画像も拡大 */
.p-works-item:hover .p-works-item__thumb img {
  transform: scale(1.05);
}

/* カテゴリーラベル */
.p-works-item__cat {
  position: absolute;
  top: 0;          /* 上端に配置 */
  right: 0;        /* 右端に配置 */
  bottom: auto;    /* 下端の指定をリセット */
  
  background-color: #333;
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 16px;
  
  /* 角丸の調整（左下だけ丸くするデザイン） */
  border-radius: 0 0 0 6px; 
  
  z-index: 10;     /* Before/Afterラベルより手前に表示 */
}

/* コンテンツエリア */
.p-works-item__body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.p-works-item__title {
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.p-works-item__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.p-works-item__place {
  font-size: 0.85rem;
  text-align: right;
  color: #666;
  margin-bottom: 0; /* 余白調整 */
}


/* ====================================
   Pagination
   ==================================== */
.p-works-pagination {
  margin-top: 60px;
  text-align: center;
}
.p-works-pagination .nav-links {
  display: inline-flex;
  gap: 10px;
}
.p-works-pagination a,
.p-works-pagination span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: #333;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px; /* ページネーションも少し角丸に */
}
.p-works-pagination a:hover,
.p-works-pagination span.current {
  background: var(--color-green);
  color: #fff;
}


/* ====================================
   Contact CTA (Common)
   ==================================== */
.p-contact {
  background-color: #d9dcdb;
  padding: 60px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}
.p-contact__bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  opacity: 0.3;
}
.p-contact__head { margin-bottom: 30px; }
.p-contact__title .en {
  display: block;
  font-family: var(--font-en);
  font-size: 3.5rem;
  line-height: 1;
  color: #000;
  position: relative;
  z-index: 1;
  padding: 0 15px;
  display: inline-block;
}
.p-contact__title .en::before {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 12px;
  background-color: #568a47;
  z-index: -1;
}
.p-contact__title .jp {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 8px;
}
.p-contact__text {
  font-weight: bold;
  line-height: 2;
  margin-bottom: 40px;
}
.p-contact__actions {
  display: flex;
  justify-content: center;
  gap: 30px;
}
.p-contact__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 280px;
  height: 60px;
  color: #fff;
  font-weight: bold;
  font-size: 1.125rem;
  text-decoration: none;
  transition: opacity 0.3s;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.p-contact__btn:hover { opacity: 0.8; }
.p-contact__btn--line { background-color: #f09c16; }
.p-contact__btn--tel { background-color: #568a47; }


/* ====================================
   Before/After Compare Thumbnail
   ==================================== */

/* ====================================
   Before/After Compare Thumbnail
   ==================================== */

/* 比較用コンテナ */
.p-works-compare {
  display: flex;
  width: 100%;
  height: 100%; /* 親(.p-works-item__thumb)の高さいっぱいに */
  position: relative;
}

/* 左右分割（50%ずつ） */
.p-works-compare__half {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ★変更：境界線をAfter（左側）の右につける */
.p-works-compare__half--after {
  border-right: 1px solid #fff;
}
.p-works-compare__half--before {
  border-right: none;
}

/* 画像の設定：枠いっぱいにトリミング */
.p-works-compare__half img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 重要：歪まずに埋める */
  display: block;
  transition: transform 0.5s ease;
}

/* ホバー時の拡大（2枚とも拡大させる） */
.p-works-item:hover .p-works-compare__half img {
  transform: scale(1.1);
}

/* ラベル (Before / After) */
.compare-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 4px 0;
  
  font-size: 0.7rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  letter-spacing: 0.05em;
  
  /* 背景を半透明の黒帯にする */
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

/* Afterの方だけ色を変える（緑系） */
.p-works-compare__half--after .compare-label {
  background-color: rgba(74, 139, 66, 0.8); /* 緑系 */
}

/* カテゴリーラベル（右上配置） */
.p-works-item__cat {
  position: absolute;
  top: 0;          /* 上端に配置 */
  right: 0;        /* 右端に配置 */
  bottom: auto;    /* 下端の指定をリセット */
  
  background-color: #333;
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 16px;
  
  /* 角丸の調整（左下だけ丸くするデザイン） */
  border-radius: 0 0 0 6px; 
  
  z-index: 10;     /* Before/Afterラベルより手前に表示 */
}

/* スワイプ誘導アイコン（PCでは非表示） */
.swipe-hint { display: none; }




/* ====================================
   Responsive (SP)
   ==================================== */
@media (max-width: 768px) {
  .p-works-mv__title .en { font-size: 4rem; }
  
  .p-works-item {
    width: 100%; /* スマホは1列 */
    margin-bottom: 20px; /* スマホ用に余白追加 */
  }
  
  .p-contact__title .en { font-size: 3rem; }
  .p-contact__actions {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .p-contact__btn {
    width: 100%;
    max-width: 320px;
  }
}



/* ====================================
   Filter Search Form
   ==================================== */
.p-works-filter {
  margin-bottom: 40px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.works-search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-weight: bold;
  font-size: 0.9rem;
}

.filter-select-wrap select {
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  background: #fff;
  cursor: pointer;
}

.filter-reset a {
  font-size: 0.85rem;
  text-decoration: underline;
  color: #777;
}
.filter-reset a:hover {
  text-decoration: none;
  color: #333;
}

@media (max-width: 768px) {
  .works-search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .filter-select-wrap {
    width: 100%;
  }
  .filter-select-wrap select {
    width: 100%;
  }
  .filter-reset {
    text-align: center;
  }



/* コンテナを横スクロール可能にする */
  .p-works-compare {
    overflow-x: auto;             /* 横スクロール有効化 */
    scroll-snap-type: x mandatory; /* スクロール時にピタッと止める設定 */
    -webkit-overflow-scrolling: touch; /* なめらかなスクロール */
    
    /* スクロールバーを非表示にする（見た目を綺麗に） */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
  
  .p-works-compare::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  /* 画像エリアを横幅100%にする */
  .p-works-compare__half {
    width: 100%;          /* 画面幅いっぱいに */
    flex: 0 0 100%;       /* 縮小させない */
    scroll-snap-align: center; /* スクロール時に中央で止める */
    border-right: none;   /* PC用の境界線を消す */
  }
  
  /* スマホではラベルの文字を少し大きくして見やすく */
  .compare-label {
    font-size: 0.8rem;
    padding: 6px 0;
  }

  /* ★追加：スワイプ誘導アニメーション */
  .swipe-hint {
    display: block;
    position: absolute;
    top: 50%;
    right: 10px;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    z-index: 5;
    pointer-events: none; /* クリックを邪魔しない */
    animation: swipeRight 2s infinite;
    opacity: 0;
  }

  .swipe-hint::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 40%; /* 矢印位置微調整 */
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  @keyframes swipeRight {
    0% { opacity: 0; transform: translateX(0); }
    20% { opacity: 1; transform: translateX(5px); }
    80% { opacity: 1; transform: translateX(5px); }
    100% { opacity: 0; transform: translateX(10px); }
  }




}