/* ============================================================
   施工実績・お客様の声ページ固有スタイル (works-custom.css)
   参考: claude-design-output/works.php + page.css
   ============================================================ */

/* ============================================================
   サブページヒーロー（共通パターン）
   ============================================================ */
.htc-sub-hero {
  background: #9D9788;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.htc-sub-hero::before {
  content: "砦";
  position: absolute;
  right: -60px; top: -80px;
  font-family: var(--htc-font-mincho);
  font-size: clamp(280px, 32vw, 480px);
  color: rgba(255, 68, 0, 0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.htc-sub-hero__inner          { position: relative; z-index: 1; }
.htc-sub-hero__breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.2rem; color: rgba(242,241,232,0.6); margin-bottom: 32px;
}
.htc-sub-hero__breadcrumb a   { color: rgba(242,241,232,0.6); text-decoration: none; }
.htc-sub-hero__breadcrumb a:hover { color: var(--htc-cream); }
.htc-sub-hero__breadcrumb .sep { opacity: 0.5; }
.htc-sub-hero__label {
  font-family: var(--htc-font-serif); font-style: italic;
  font-size: 1.4rem; color: var(--htc-orange);
  letter-spacing: 0.12em; display: block; margin-bottom: 12px;
}
.htc-sub-hero__title {
  font-family: var(--htc-font-mincho); font-weight: 500;
  font-size: clamp(3.6rem, 5vw, 6rem); color: var(--htc-cream);
  letter-spacing: 0.06em; line-height: 1.3; margin-bottom: 20px;
}
.htc-sub-hero__lead {
  font-size: 1.5rem; color: rgba(242,241,232,0.78);
  line-height: 1.9; max-width: 56ch;
}
.htc-sub-hero__num {
  margin-top: 40px;
  font-family: var(--htc-font-serif); font-style: italic;
  font-size: 1.4rem; color: rgba(242,241,232,0.4); letter-spacing: 0.12em;
}

/* ============================================================
   セクション見出し番号パターン
   ============================================================ */
.htc-wk-section-head { margin-bottom: 56px; }
.htc-wk-section-num {
  font-family: var(--htc-font-serif); font-style: italic;
  font-size: 1.3rem; color: var(--htc-orange);
  letter-spacing: 0.12em; display: block; margin-bottom: 6px;
}
.htc-wk-section-head h2 {
  font-family: var(--htc-font-mincho);
  font-size: clamp(2.8rem, 3.8vw, 4.4rem);
  font-weight: 500; color: var(--htc-green);
  line-height: 1.3; letter-spacing: 0.04em;
}
.htc-wk-section-head .lead {
  margin-top: 16px; font-size: 1.5rem;
  color: var(--htc-ink-2); line-height: 1.9;
}

/* ============================================================
   施工実績 カテゴリフィルタータブ
   ============================================================ */
.htc-works-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.htc-works-tabs button {
  background: transparent;
  border: 1px solid var(--htc-line);
  padding: 10px 22px;
  font-family: var(--htc-font-sans);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--htc-ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.htc-works-tabs button .en {
  font-family: var(--htc-font-serif);
  font-style: italic;
  color: var(--htc-orange);
  font-size: 1.1rem;
  margin-right: 8px;
  letter-spacing: 0.02em;
}
.htc-works-tabs button.is-active,
.htc-works-tabs button:hover {
  background: #9D9788;
  color: var(--htc-cream);
  border-color: var(--htc-green);
}
.htc-works-tabs button.is-active .en,
.htc-works-tabs button:hover .en { color: var(--htc-orange); }

@media (max-width: 639px) {
  .htc-works-tabs {
    flex-direction: column;
  }
  .htc-works-tabs button {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   施工実績グリッド + カード
   ============================================================ */
.htc-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.htc-work-card { display: block; text-decoration: none; color: inherit; }
.htc-work-card__img {
  aspect-ratio: 4 / 3;
  background: var(--htc-cream-2);
  overflow: hidden;
  position: relative;
}
.htc-work-card__img[data-tag]::after {
  content: attr(data-tag);
  position: absolute; bottom: 10px; right: 12px;
  font-family: var(--htc-font-serif); font-style: italic;
  font-size: 1.1rem; letter-spacing: 0.16em;
  color: rgba(13, 93, 55, 0.45);
}
.htc-work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.htc-work-card:hover .htc-work-card__img img { transform: scale(1.04); }
.htc-work-card__meta {
  display: flex; gap: 10px; align-items: center;
  margin-top: 16px; font-size: 1.1rem; letter-spacing: 0.12em;
}
.htc-work-card__cat  { color: var(--htc-orange); border: 1px solid var(--htc-orange); padding: 2px 8px; }
.htc-work-card__date {
  font-family: var(--htc-font-serif); font-style: italic;
  color: var(--htc-ink-3); font-size: 1.3rem; letter-spacing: 0.02em;
}
.htc-work-card__title {
  font-family: var(--htc-font-mincho); font-size: 1.8rem; font-weight: 500;
  color: var(--htc-green); line-height: 1.7; margin-top: 10px; letter-spacing: 0.04em;
}
.htc-work-card__text { font-size: 1.3rem; color: var(--htc-ink-2); margin-top: 6px; line-height: 1.8; }
.htc-work-card:hover .htc-work-card__title { color: var(--htc-orange); }

@media (max-width: 880px) {
  .htc-works-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 639px) {
  .htc-works-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ページネーション
   参考: page.css .pagination
   ============================================================ */
.htc-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 64px;
}
.htc-pagination__item,
.htc-pagination__arrow,
.htc-pagination__current {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--htc-line);
  font-family: var(--htc-font-serif);
  font-style: italic;
  color: var(--htc-green);
  font-size: 1.5rem;
  text-decoration: none;
}
.htc-pagination__current {
  background: #9D9788;
  color: var(--htc-cream);
  border-color: var(--htc-green);
}
.htc-pagination__item:hover  { background: var(--htc-paper); opacity: 1; }
.htc-pagination__arrow {
  font-family: var(--htc-font-sans);
  font-style: normal;
  font-size: 1.4rem;
}
.htc-pagination__arrow--disabled {
  color: var(--htc-ink-3);
  cursor: default;
}

/* ============================================================
   お客様の声（手紙スタイル）
   参考: page.css .letters / .letter
   ============================================================ */
.htc-letters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.htc-letter {
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0, transparent 31px,
      rgba(13, 93, 55, 0.08) 32px
    ),
    var(--htc-paper);
  padding: 48px 56px;
  position: relative;
  border: 1px solid var(--htc-line);
  font-family: var(--htc-font-mincho);
  line-height: 2;
  font-size: 1.5rem;
  color: var(--htc-ink);
  min-height: 320px;
}
/* 開き鉤括弧 装飾 */
.htc-letter p { margin-bottom: 16px; letter-spacing: 0.04em; }
.htc-letter p:last-of-type { margin-bottom: 0; }
.htc-letter__signoff {
  margin-top: 26px;
  font-family: var(--htc-font-sans);
  font-size: 1.3rem;
  color: var(--htc-green);
  letter-spacing: 0.1em;
  text-align: right;
}
.htc-letter__signoff small {
  display: block;
  color: var(--htc-ink-3);
  font-size: 1.1rem;
  margin-top: 4px;
  font-family: var(--htc-font-serif);
  font-style: italic;
}

@media (max-width: 880px) {
  .htc-letters { grid-template-columns: 1fr; }
  .htc-letter   { padding: 44px 32px; }
}

/* ============================================================
   背景色ヘルパー
   ============================================================ */
.htc-section-paper { background: var(--htc-paper); }
