@charset "utf-8";

/* =========================================================
   WORKS 共通（アーカイブ＋詳細）
   ========================================================= */

/* 見出し */
.works-title,
.only-photo .work-title {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  text-align: center;
}

/* アーカイブ見出し */
.works-title {
  font-size: clamp(24px, 2.5vw, 32px);
  letter-spacing: 0.05em;
  color: #1d3e65;
  margin: 3em auto 0.5em;
  position: relative;
}

/* 下に控えめなラインを追加（職人感） */
.works-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: #1d3e65;
  opacity: 0.4;
  margin: 0.6em auto 0;
}

/* 詳細見出し（○○邸） */
.only-photo .work-title {
  font-size: clamp(20px, 2.8vw, 28px);
  margin: 32px auto 18px;
  color: #1d3e65;
}

/* =========================================================
   アーカイブ（一覧）… 幅100% / PC:2列 (50%) / SP:1列 (100%)
   ========================================================= */

/* ラッパーは幅100% */
.works-gallery {
  width: 100%;
  margin: 2rem auto 4rem;
}

/* 2列 → 1列 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* PC: 2列（=各50%） */
  gap: 24px;
  width: 100%;
  margin: 0 auto 3em;
}

/* カード */
.work-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

/* 画像：縦横混在でもクロップして整える */
.work-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;   /* 一覧は比率を揃える */
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}

/* ホバー */
.work-thumb:hover img { transform: scale(1.05); }

/* タイトルキャプション */
.caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .6rem .9rem;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: .95rem;
  font-family: "Shippori Mincho", serif;
  text-align: center;
  letter-spacing: .03em;
}


/* SP：1列（100%） */
@media (max-width: 767px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-thumb img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* =========================================================
   詳細（写真だけ＋slickスライダー）
   ========================================================= */

.work-slider {
  width: 100%;
  margin: 0 auto 32px;
  overflow: hidden;
}

/* メインスライダー */
.work-slider .js-main { text-align: center; }

.work-slider .js-main img {
  width: 100%;
  width: auto;            /* 横幅は自動 */
  height: 60vh;           /* 画面高に合わせる（縦写真もOK） */
  object-fit: cover;      /* 比率維持で収める */
  display: inline-block;
  user-select: none;
  -webkit-user-drag: none;
}

@media screen and (max-width: 768px) {
  .work-slider {
    width: 100%;
    margin: 0 auto;
  }
  .work-slider .js-main img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
  }
}

/* サムネナビ */
.slider-nav { margin-top: 10px; }

.slider-nav .slick-slide {
  padding: 0 6px;
  box-sizing: border-box;
}

.slider-nav img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
  opacity: .6;
  transition: opacity .2s ease, transform .2s ease;
}

.slider-nav .slick-current img {
  opacity: 1;
  transform: translateY(-2px);
}

/* 戻るボタン */
.work-pager {
  width: min(1200px, 94%);
  margin: 20px auto 40px;
  display: flex;
  justify-content: center;
}

/* ===== 戻るボタンを中央配置・上品デザインに ===== */
.work-pager {
  display: flex;
  justify-content: center;
  margin: 2.5rem auto 4rem;
}

/* ベースデザイン */
.work-pager .back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .8em 2.4em;
  font-family: "Shippori Mincho", serif;
  font-size: 0.95em;
  color: #1d3e65;
  text-decoration: none;
  border: 1px solid #1d3e65;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transition: all 0.3s ease;
}

/* 矢印を右にスライドするアニメ */
.work-pager .back::after {
  content: "›";
  font-size: 1.1em;
  line-height: 1;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

/* ホバー時：黒バック＋白文字＋少し浮く */
.work-pager .back:hover {
  background: #1d3e65;
  color: #fff;
  border-color: #1d3e65;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transform: translateY(-2px);
}

.work-pager .back:hover::after {
  transform: translateX(4px);
}

/* 詳細：SP最適化 */
@media (max-width: 767px) {
  .work-slider .js-main img { height: 50vh; }
  .slider-nav img { height: 60px; }
}



/* 見出しと注意文：中央揃えを強制 */
.works-title{
  text-align:center !important;
  font-family:"Shippori Mincho",serif;
  font-weight:600;
  font-size:clamp(24px,2.5vw,32px);
  letter-spacing:.05em;
  color:#1d3e65;
  margin:2em auto 1em auto !important;
  width:100%;
  position:relative;
}
.works-title::after{
  content:"";
  display:block;
  width:60px; height:1px;
  background:#1d3e65; opacity:.4;
  margin:.6em auto 0;
}

/* 注意文の既存スタイルを無効化して中央に */
.works-note{
  display:block !important;
  float:none !important;
  text-align:center !important;
  margin:0 auto !important;
  font-family:"Shippori Mincho",serif;
  font-size:.9em; line-height:1.8; letter-spacing:.03em;
  color:#555;
  max-width:100%;
}

/* ギャラリーの横幅を中央に寄せやすい値へ（100%だと“中央に見えにくい”ので） */
.works-gallery{
  width:min(1100px,94%) !important;
  margin:2rem auto 4rem !important;
}

/* グリッド（PC2列 / SP1列）はそのまま */
.works-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
  width:100%;
}
@media (max-width:767px){
  .works-grid{ grid-template-columns:1fr; }
}


/* =========================================================
   詳細ページ専用タイトル（.work-title-single）
   ========================================================= */
.work-title-single {
  text-align: center;
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  color: #1d3e65;
  letter-spacing: 0.05em;
  margin: 1rem auto 0;
  width: 100%;
}
