/* ============================================================
   建築・リフォームページ固有スタイル (construction-custom.css)
   参考: claude-design-output/construction.php + page.css
   ============================================================ */

/* ============================================================
   サブページヒーロー（htc-sub-hero と同パターン）
   ============================================================ */
.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-cn-section-head { margin-bottom: 56px; }
.htc-cn-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-cn-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-cn-section-head .lead {
  margin-top: 16px; font-size: 1.5rem;
  color: var(--htc-ink-2); line-height: 1.9;
}

/* ============================================================
   ページ内アンカーナビゲーション
   ============================================================ */
.htc-anchor-nav {
  background: var(--htc-paper);
  border-bottom: 1px solid var(--htc-line);
}
.htc-anchor-nav__inner {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.htc-anchor-nav a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border: 1px solid var(--htc-green);
  border-radius: 999px;
  background: var(--htc-green);
  line-height: 1;
  box-shadow: 0 8px 16px rgba(13, 93, 55, 0.35), 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s, filter 0.2s;
}
.htc-anchor-nav a:hover {
  color: #fff;
  opacity: 1;
  box-shadow: 0 12px 24px rgba(13, 93, 55, 0.45), 0 4px 8px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.htc-anchor-nav__num {
  font-family: var(--htc-font-serif);
  font-style: italic;
  color: #fff;
  margin-right: 8px;
}
/* スマホ：ボタンを2カラム・等幅に統一 */
@media (max-width: 639px) {
  .htc-anchor-nav__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    font-size: 1.05rem;
    padding: 14px 16px;
  }
  .htc-anchor-nav a {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    padding: 10px 8px;
  }
  .htc-anchor-nav__num {
    margin-right: 6px;
  }
}

/* ============================================================
   プレースホルダー画像ボックス
   ============================================================ */
.htc-ph {
  background: url('https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28191/no-image.png') center / cover no-repeat;
  background-color: var(--htc-cream-2);
  position: relative;
  overflow: hidden;
}
.htc-ph[data-tag]::after {
  content: attr(data-tag);
  position: absolute; bottom: 12px; right: 14px;
  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-ph--5-4 { aspect-ratio: 5 / 4; }
.htc-ph--4-3 { aspect-ratio: 4 / 3; }
.htc-ph--4-5 { aspect-ratio: 4 / 5; }

/* ============================================================
   マスコット（キャラクター）
   ============================================================ */
.htc-mascot { display: block; width: 100%; height: auto; }
.htc-mascot-float { animation: htcMascotFloat 3.2s ease-in-out infinite; }
.htc-mascot-float--delay { animation-delay: 0.8s; }
@keyframes htcMascotFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ============================================================
   visual-bird（コーナーマスコット付き写真枠）
   ============================================================ */
.htc-visual-bird { position: relative; }
.htc-corner-bird {
  position: absolute;
  bottom: -26px;
  width: clamp(110px, 13vw, 158px);
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 16px 22px rgba(13, 93, 55, 0.22));
}
.htc-corner-bird--left  { left:  -22px; }
.htc-corner-bird--right { right: -22px; }

/* ============================================================
   2カラムレイアウト
   ============================================================ */
/* .htc-two-col: 1fr / 1.2fr（画像小・テキスト大） */
.htc-two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
/* .htc-two-col-reverse: 1.2fr / 1fr（テキスト大・画像小） */
.htc-two-col-reverse {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) {
  .htc-two-col,
  .htc-two-col-reverse { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   ロゴ付き見出し行
   ============================================================ */
.htc-head-logo-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.htc-head-logo { height: 44px; width: auto; display: block; }
.htc-head-logo-row 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;
}

/* ============================================================
   ラベル EN（コンテンツ内小見出し）
   ============================================================ */
.htc-label-en {
  font-family: var(--htc-font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--htc-orange);
  letter-spacing: 0.04em;
  display: block;
}

/* ============================================================
   Ghost ボタン（緑枠線）
   ============================================================ */
.htc-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  border: 1px solid var(--htc-green);
  background: transparent;
  color: var(--htc-green);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.htc-btn-ghost::after { content: "→"; transition: transform 0.2s; }
.htc-btn-ghost:hover { background: #9D9788; color: var(--htc-cream); opacity: 1; }
.htc-btn-ghost:hover::after { transform: translateX(4px); }
.htc-btn-ghost .en {
  font-family: var(--htc-font-serif);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ============================================================
   うちなーらいふ バナー（不動産セクション）
   ============================================================ */
.htc-uchina-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: #9D9788;
  color: var(--htc-cream);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--htc-green);
  text-decoration: none;
  transition: filter 0.2s;
}
.htc-uchina-banner:hover { filter: brightness(0.95); opacity: 1; }

.htc-uchina-banner__left {
  padding: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.htc-uchina-banner__label {
  font-family: var(--htc-font-serif);
  font-style: italic;
  color: var(--htc-orange);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}
.htc-uchina-banner__title {
  font-family: var(--htc-font-mincho);
  color: var(--htc-cream);
  font-size: clamp(2.8rem, 3.4vw, 4.0rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.htc-uchina-banner__text {
  color: rgba(242, 241, 232, 0.78);
  font-size: 1.4rem;
  line-height: 2;
  max-width: 48ch;
}
.htc-uchina-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 16px 28px;
  background: #1a1a1a;
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  transition: background 0.2s;
}
.htc-uchina-banner:hover .htc-uchina-banner__cta { background: #000; }
.htc-uchina-banner__cta-en {
  font-family: var(--htc-font-serif);
  font-style: italic;
}

.htc-uchina-banner__right {
  background: #2a3e34;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.htc-uchina-banner__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.htc-uchina-banner__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px,
    transparent 1px, transparent 8px
  );
}
.htc-uchina-banner__tag {
  position: absolute;
  bottom: 18px; right: 18px;
  z-index: 2;
  color: var(--htc-cream);
  font-family: var(--htc-font-serif);
  font-style: italic;
  letter-spacing: 0.2em;
  font-size: 1.1rem;
  opacity: 0.8;
  margin: 0;
}

@media (max-width: 880px) {
  .htc-uchina-banner { grid-template-columns: 1fr; }
  .htc-uchina-banner__left { padding: 40px 28px; }
  .htc-uchina-banner__right { min-height: 200px; }
  .htc-corner-bird { width: clamp(80px, 20vw, 120px); }
}

/* ============================================================
   feat-row（左右交互コンテンツ行）
   ============================================================ */
.htc-feat-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--htc-line);
}
.htc-feat-row:last-of-type { border-bottom: none; }
.htc-feat-row--reverse { grid-template-columns: 1.15fr 0.85fr; }
.htc-feat-row--reverse .htc-feat-row__visual { order: 2; }
.htc-feat-row--reverse .htc-feat-row__body   { order: 1; }
.htc-feat-row__visual {
  aspect-ratio: 5 / 4;
  background: var(--htc-cream-2);
  position: relative;
  overflow: hidden;
}
.htc-feat-row__num {
  font-family: var(--htc-font-serif); font-style: italic;
  font-size: 1.3rem; color: var(--htc-orange);
  letter-spacing: 0.12em; margin-bottom: 14px; display: block;
}
.htc-feat-row__title {
  font-family: var(--htc-font-mincho);
  font-size: clamp(2.4rem, 2.6vw, 3.6rem);
  font-weight: 500; color: var(--htc-green);
  line-height: 1.5; letter-spacing: 0.04em; margin-bottom: 18px;
}
.htc-feat-row__body p {
  font-size: 1.45rem; color: var(--htc-ink-2);
  line-height: 2; margin-bottom: 14px;
}
@media (max-width: 880px) {
  .htc-feat-row,
  .htc-feat-row--reverse { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .htc-feat-row--reverse .htc-feat-row__visual { order: 1; }
  .htc-feat-row--reverse .htc-feat-row__body   { order: 2; }
}

/* ============================================================
   建築の実績 works-grid
   ============================================================ */
.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: url('https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28191/no-image.png') center / cover no-repeat;
  background-color: 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; border: 1px solid #EFEDEB; }
.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: 1fr; } }

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

/* ============================================================
   スタッフグリッド
   ============================================================ */
.htc-staff-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin-inline: auto;
}
.htc-staff { text-align: left; }
.htc-staff__photo {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 120%, rgba(13,93,55,0.10), transparent 60%),
    linear-gradient(180deg, var(--htc-paper), var(--htc-cream-2));
  border: 1px solid var(--htc-line);
  margin-bottom: 16px;
  display: grid;
  place-items: end center;
  overflow: hidden;
  position: relative;
}
.htc-staff__photo::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(13,93,55,0.25) 60px, transparent 70px),
    radial-gradient(ellipse at 50% 96%, rgba(13,93,55,0.18) 140px, transparent 142px);
}
.htc-staff__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative; z-index: 1;
  filter: drop-shadow(0 12px 18px rgba(13, 93, 55, 0.18));
  transition: transform 0.4s ease;
}
.htc-staff:hover .htc-staff__photo img { transform: translateY(-6px) scale(1.03); }
.htc-staff__role {
  font-family: var(--htc-font-serif); font-style: italic;
  font-size: 1.2rem; color: var(--htc-orange); letter-spacing: 0.08em;
}
.htc-staff__name {
  font-family: var(--htc-font-mincho); font-size: 1.8rem; font-weight: 500;
  color: var(--htc-green); margin-top: 6px; letter-spacing: 0.08em;
}
.htc-staff__detail {
  margin-top: 14px;
  border-top: 1px solid var(--htc-line);
  padding-top: 14px;
}
.htc-staff__detail dt {
  font-family: var(--htc-font-sans); font-size: 1.0rem;
  letter-spacing: 0.16em; color: var(--htc-orange);
  font-weight: 600; margin-bottom: 4px; text-transform: uppercase;
}
.htc-staff__detail dd {
  margin: 0 0 12px; font-size: 1.35rem;
  line-height: 1.85; color: var(--htc-ink);
  font-family: var(--htc-font-mincho);
}
.htc-staff__detail dd:last-child { margin-bottom: 0; }
@media (max-width: 639px) { .htc-staff-grid-2 { grid-template-columns: 1fr; } }
