/* ============================================================
   無機質住宅ページ固有スタイル (mukishitsu-custom.css)
   参考: claude-design-output/mukishitsu.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-muki-section-head {
  margin-bottom: 56px;
}
.htc-muki-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-muki-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-muki-section-head .lead {
  margin-top: 16px;
  font-size: 1.5rem;
  color: var(--htc-ink-2);
  line-height: 1.9;
}

/* ============================================================
   プレースホルダー画像ボックス (.htc-ph)
   ============================================================ */
.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--4-5  { aspect-ratio: 4 / 5; position: relative; }
.htc-ph--4-3  { aspect-ratio: 4 / 3; position: relative; }
.htc-ph--5-4  { aspect-ratio: 5 / 4; position: relative; }
.htc-ph--1-1  { aspect-ratio: 1 / 1; position: relative; }

/* ============================================================
   マスコット画像
   ============================================================ */
.htc-mascot {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(13, 93, 55, 0.18));
}
.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); }
}

/* ============================================================
   SEC1: お悩みセクション
   ============================================================ */
.htc-speech-group {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.htc-speech-chars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.htc-speech-char {
  margin: 0;
  text-align: center;
}
.htc-speech-char .mascot {
  width: 88%;
  margin-inline: auto;
}
.htc-speech-char figcaption {
  margin-top: 8px;
  font-family: var(--htc-font-mincho);
  font-size: 1.4rem;
  color: var(--htc-green);
  letter-spacing: 0.1em;
}
.htc-speech-bubbles {
  display: grid;
  gap: 18px;
}
.htc-bubble {
  position: relative;
  background: var(--htc-cream);
  border: 1px solid var(--htc-line);
  padding: 22px 28px;
  font-family: var(--htc-font-mincho);
  font-size: 1.8rem;
  line-height: 1.9;
  color: var(--htc-green);
  letter-spacing: 0.04em;
}
.htc-bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--htc-cream);
  border-left: 1px solid var(--htc-line);
  border-bottom: 1px solid var(--htc-line);
  transform: rotate(45deg);
}
.htc-bubble__sub {
  display: block;
  font-family: var(--htc-font-sans);
  font-size: 1.2rem;
  color: var(--htc-ink-3);
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}

@media (max-width: 880px) {
  .htc-speech-group { grid-template-columns: 1fr; gap: 32px; }
  .htc-speech-chars { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   SEC2: 無機質住宅とは
   ============================================================ */

/* ロゴ + 見出し 横並び */
.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;
}

/* 2カラム (1fr 1.2fr) */
.htc-two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

/* 3列ポイントボックス */
.htc-point-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.htc-point-box {
  border: 1px solid var(--htc-line);
  padding: 18px 16px;
}
.htc-point-box__label {
  font-family: var(--htc-font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--htc-orange);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  display: block;
}
.htc-point-box__text {
  font-family: var(--htc-font-mincho);
  color: var(--htc-green);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  margin: 0;
}

@media (max-width: 880px) {
  .htc-two-col { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   SEC3: 低コストが実現できる理由 (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__title-en {
  display: block;
  font-family: var(--htc-font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--htc-orange);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.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; }
}

/* ============================================================
   SEC4: 実績 (works-grid / work-card)
   ============================================================ */
.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: 1fr; gap: 32px; } }

/* ============================================================
   SEC5: 流れ (process)
   ============================================================ */
.htc-process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: pstep;
}
.htc-process-step {
  counter-increment: pstep;
  padding: 28px 20px;
  position: relative;
  text-align: center;
  background: var(--htc-cream);
  border: 1px solid var(--htc-line);
  border-right: none;
}
.htc-process-step:last-child { border-right: 1px solid var(--htc-line); }
.htc-process-step::before {
  content: "STEP " counter(pstep, decimal-leading-zero);
  display: block;
  font-family: var(--htc-font-serif);
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  color: var(--htc-orange);
  margin-bottom: 14px;
}
/* 矢印コネクター */
.htc-process-step + .htc-process-step::after {
  content: "→";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--htc-orange);
  color: #fff;
  font-size: 1.2rem;
  font-family: var(--htc-font-sans);
  z-index: 2;
}
.htc-process-step h4 {
  font-family: var(--htc-font-mincho);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--htc-green);
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.htc-process-step p {
  font-size: 1.2rem;
  color: var(--htc-ink-2);
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 880px) {
  .htc-process { grid-template-columns: 1fr 1fr; }
  .htc-process-step::after { display: none; }
  .htc-process-step { border-right: 1px solid var(--htc-line); }
}
@media (max-width: 639px) {
  .htc-process { grid-template-columns: 1fr; }
}

/* ============================================================
   SEC6: CTAセクション（緑背景）
   ============================================================ */
.htc-section-green {
  background: #9D9788;
  color: var(--htc-cream);
  text-align: center;
}
.htc-section-green .htc-muki-section-num { color: var(--htc-orange); }
.htc-cta-bird {
  width: clamp(120px, 14vw, 168px);
  height: auto;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.28));
  animation: htcMascotFloat 3.2s ease-in-out infinite;
}
.htc-cta-lead-en {
  font-family: var(--htc-font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--htc-orange);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}
.htc-cta-title {
  font-family: var(--htc-font-mincho);
  font-size: clamp(2.8rem, 3.8vw, 4.8rem);
  font-weight: 500;
  color: var(--htc-cream);
  line-height: 1.5;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.htc-cta-text {
  font-size: 1.45rem;
  color: rgba(242, 241, 232, 0.78);
  line-height: 2;
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 36px;
}
.htc-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
/* オレンジ塗りボタン */
.htc-btn-orange {
  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 #1a1a1a;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.htc-btn-orange::after { content: "→"; transition: transform 0.2s; }
.htc-btn-orange:hover { background: #000; border-color: #000; opacity: 1; }
.htc-btn-orange:hover::after { transform: translateX(4px); }
.htc-btn-orange .en {
  font-family: var(--htc-font-serif);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
/* クリーム枠ボタン（緑背景上） */
.htc-btn-ghost-cream {
  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-cream);
  background: transparent;
  color: var(--htc-cream);
  text-decoration: none;
  transition: background 0.2s;
}
.htc-btn-ghost-cream::after { content: "→"; transition: transform 0.2s; }
.htc-btn-ghost-cream:hover { background: rgba(242,241,232,0.15); opacity: 1; }
.htc-btn-ghost-cream:hover::after { transform: translateX(4px); }
.htc-btn-ghost-cream .en {
  font-family: var(--htc-font-serif);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ============================================================
   SEC7: スタッフ紹介
   ============================================================ */
.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; }
}

/* ============================================================
   白背景セクション（--paper 相当）
   ============================================================ */
.htc-section-paper { background: var(--htc-paper); }

/* ============================================================
   mukishitsu.php 限定 配色変更
   ・見出し文字色：#0D5D37 → #333333
   ・英語文字色  ：#FF4400 → #9D9788
   ・個別指定（下記）
   ============================================================ */
body.page-mukishitsu {
  --htc-green: #333333;
  --htc-orange: #9D9788;
}
/* 個別指定 */
body.page-mukishitsu .htc-process-step + .htc-process-step::after { background: #9D9788; }
body.page-mukishitsu .htc-process-step::before { color: #9D9788; }
body.page-mukishitsu .htc-staff__role { color: #9D9788; }
body.page-mukishitsu .htc-staff__detail dt { color: #9D9788; }
body.page-mukishitsu .htc-cta-label-en { color: #1a1a1a; }
body.page-mukishitsu .htc-cta-lead-en { color: #1a1a1a; }
/* ヘッダーCTA・PC右側固定ボタン（うちなーらいふ）は他ページと同じ配色を維持 */
body.page-mukishitsu .header__cta { background: #FF4400; }
body.page-mukishitsu .htc-side-btn--uchina { background: #FF4400; }

/* SEC1「こんなお悩み、ありませんか？」セクション：背景ベージュ＋見出し/リード/英語ラベルを白に
   （吹き出し .htc-bubble は独自のクリーム背景のため中の文字は変更しない） */
body.page-mukishitsu .htc-worries-sec { background: #9D9788; }
body.page-mukishitsu .htc-worries-sec .htc-muki-section-head h2,
body.page-mukishitsu .htc-worries-sec .htc-muki-section-head .lead,
body.page-mukishitsu .htc-worries-sec .htc-muki-section-num { color: #FFFFFF; }
/* お悩みセクションの鳥イラストの影：緑 → 黒系 */
body.page-mukishitsu .htc-worries-sec .htc-mascot { filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.25)); }
/* お悩みの吹き出し：背景 #1a1a1a（尻尾も追従）＋ 文字を読みやすい色に */
body.page-mukishitsu .htc-bubble { background: #1a1a1a; color: #FFFFFF; }
body.page-mukishitsu .htc-bubble::before { background: #1a1a1a; }
body.page-mukishitsu .htc-bubble__sub { color: #9D9788; }
/* Point ボックスのボーダー色 */
body.page-mukishitsu .htc-point-box { border-color: #9D9788; }
