@charset "utf-8";
/* ======================================================================
 ページ上部（見出し）の共通デザイン：会社概要（ID 55）・お問い合わせ（ID 220）
 事業内容ページ・制作実績一覧と同じ形に揃える：
   パンくず 160px ＋ 見出し 320px（80px の方眼がそろう高さ）、文字は左下寄せ。
 ページごとの文言は、下の変数（--ph-*）で切り替えます。
====================================================================== */

body.page-id-55  { --ph-eyebrow: "COMPANY"; --ph-sub: "代表メッセージと会社情報"; --ph-word: "COMPANY"; }
body.page-id-220 { --ph-eyebrow: "CONTACT"; --ph-sub: "ご相談・お見積りは無料です"; --ph-word: "CONTACT"; }

:is(body.page-id-55, body.page-id-220) #container { overflow-x: clip; }

/* ---------- パンくず（方眼の背景） ---------- */
:is(body.page-id-55, body.page-id-220) #bread_crumb {
  width: 100%; max-width: none; margin: 0; opacity: 1; height: 160px; padding: 0 0 14px; display: flex; align-items: flex-end;
  background-color: #FAFAF8;
  background-image: linear-gradient(#EFEDE8 1px, transparent 1px), linear-gradient(90deg, #EFEDE8 1px, transparent 1px);
  background-size: 80px 80px;
}
:is(body.page-id-55, body.page-id-220) #bread_crumb ul { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- 見出し ---------- */
:is(body.page-id-55, body.page-id-220) #page_header {
  position: relative; overflow: hidden; height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 0 max(24px, calc((100% - 1240px) / 2 + 24px)) 40px;
  background-color: #FAFAF8;
  background-image: linear-gradient(#EFEDE8 1px, transparent 1px), linear-gradient(90deg, #EFEDE8 1px, transparent 1px);
  background-size: 80px 80px;
}
:is(body.page-id-55, body.page-id-220) #page_header .design_header {
  position: relative; z-index: 1; padding: 0; margin: 0; max-width: none; height: auto; width: auto; justify-content: flex-start; text-align: left;
}
:is(body.page-id-55, body.page-id-220) #page_header .title_area { position: static; top: auto; padding: 0; margin: 0; text-align: left; }
:is(body.page-id-55, body.page-id-220) #page_header .title_area::before {
  content: var(--ph-eyebrow); display: block; margin-bottom: 6px;
  font-family: Inter, sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .2em; line-height: 1.8; color: #B71C1C;
}
:is(body.page-id-55, body.page-id-220) #page_header .large_headline {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: clamp(38px, 5vw, 68px) !important; line-height: 1.25 !important; color: #141414;
}
:is(body.page-id-55, body.page-id-220) #page_header .title_area::after {
  content: var(--ph-sub); display: block; margin-top: 12px;
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.7; color: #141414;
}

/* 斜めのライン（赤＋黒）と、輪郭だけの大きな文字 */
:is(body.page-id-55, body.page-id-220) #page_header::before {
  content: ""; position: absolute; right: 6%; top: -10%; width: 60px; height: 70%; background: #D32F2F; opacity: .9; transform: skewX(-24deg);
  box-shadow: -84px 0 0 -48px #141414; pointer-events: none;
}
:is(body.page-id-55, body.page-id-220) #page_header::after {
  content: var(--ph-word); position: absolute; right: 1%; bottom: -.2em; top: auto; width: auto; height: auto; background: none; transform: none;
  pointer-events: none; user-select: none;
  font-family: Inter, sans-serif; font-weight: 800; font-size: clamp(90px, 15vw, 230px); line-height: 1; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px #E2DED7;
}

@media (max-width: 767px) {
  :is(body.page-id-55, body.page-id-220) #page_header { height: 280px; }
  :is(body.page-id-55, body.page-id-220) #page_header::before { display: none; }
}
