html {
  scroll-behavior: smooth;
}

h1 {
  font-size: 25px;
  letter-spacing: 2px;

  font-family: "fot-tsukuaoldmin-pr6n", sans-serif;
  font-weight: 300;
  font-style: normal;
}

/* ==========================================
   全体の余白リセット
========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================================
   全体レイアウトの基準
========================================== */
body {
  background-color: #504946;
  color: white;

  padding-top: 0;

  font-family: "fot-tsukuaoldmin-pr6n", sans-serif;
  font-weight: 400;

  line-height: 1.8;
}

/* ==========================================
   見出し（h2）基本形
========================================== */
h2 {
  font-size: 34px;
  letter-spacing: 2px;
  font-family: "fot-tsukuaoldmin-pr6n", sans-serif;

  margin-bottom: 20px;

  display: inline-block;
  border-bottom: 1px solid white;
  padding-bottom: 5px;
}

/* ==========================================
   セクション共通
========================================== */
section {
  padding:80px 5%;
}

.page-header {
  position: relative; /* ←固定じゃなく普通 */
  padding: 20px 40px;
  display: flex;
  align-items: center;
}

/* ==========================================
   ヘッダーロゴ
========================================== */
.works-heading {
  position: relative;
  text-align: center;
  padding: 120px 20px 60px;
}
/* ロゴそのまま流用 */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.logo-area img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
/* ==========================================
   見出し
========================================== */
.works-heading {
  position: relative;
  text-align: center;
  padding: 60px 20px 40px;
}
/* 背景文字 */
.works-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 120px;
  letter-spacing: 12px;
  color: rgba(255,255,255,0.05);
  font-weight: bold;
  pointer-events: none;
}

/* メインタイトル */
.works-heading h2 {
  font-size: 42px;
  letter-spacing: 4px;
  margin-bottom: 10px;
  border:none;
  margin:0;
}

.works-heading h2 span {
  display: block;
  font-size: 16px;
  opacity: 0.7;
  margin-top: 6px;
  font-weight: normal;
}

.works-heading p {
  font-size: 14px;
  opacity: 0.7;
}
/* ==========================================
   コンテナ幅（揃える用）
========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.works-grid{
    max-width:1200px;
    margin:0 auto;

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.work-img {
  overflow: hidden;
  border-radius: 10px;
}

/* カード全体 */
.work-card {
  width: 100%;
  cursor: pointer;
  transition: 0.3s;
}

/* 画像正方形 */
.work-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 6px;

  transition: .6s ease;
}

/* ==========================================
   TOPボタン
========================================== */

.top-btn {
  position: fixed;
  right: 40px;
  bottom: 40px;

  color: white;
  text-decoration: none;

  font-size: 24px;
  font-weight: 300;

  transition: .5s ease-out;

  z-index: 999;
}

.top-btn:hover {
  transform: translateY(-4px);
  opacity: .7;
}

.top-btn:active {
  background: rgba(188,138,87,.7);
  transform: translateY(0);
}

.top-btn::after {
  content: "";

  display: block;

  width: 100%;
  height: 1px;

  margin-top: 5px;

  background: white;

  transition: .3s ease;
}

.top-btn:hover::after {
  width: 120%;
}

/*HOMEボタン*/
.home-btn {
  position: fixed;
  top: 40px;
  right: 50px;

  color: white;
  text-decoration: none;
  letter-spacing: 2px;

  transition: all .35s ease;
}

.home-btn:hover {
  opacity: .7;
}

.home-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 100%;
  height: 1px;

  background: white;

  transition: all .35s ease;
}

.home-btn:hover::after {
  width: 120%;
}

/* ==========================================
   Responsive
========================================== */
@media (max-width: 768px) {

  section {
    padding: 60px 20px;
  }

  /* タイトル */
  .works-bg {
    font-size: 70px;
    letter-spacing: 6px;
  }

  .works-heading h2 {
    font-size: 32px;
  }

  /* 施工事例 */
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* HOMEボタン */
  .home-btn {
    top: 20px;
    right: 20px;
    font-size: 14px;
  }

  /* TOPボタン */
  .top-btn {
    right: 20px;
    bottom: 20px;
    font-size: 20px;
  }

}