@charset "utf-8";
/*
 * ======================================
 * 追加クラス一覧（共通SCSS取り込み検討用）  株式会社濱土建
 * ======================================
 *
 * .hmd-pad            - 左右の流体パディング clamp(16px,3vw,32px)
 * .hmd-sec            - デザイン標準セクション枠（max-width:1280px + 流体余白）
 * .hmd-header 系      - sticky + 半透明ぼかしヘッダー（共通は fixed / absolute のみ）
 * .hmd-tel 系         - TELラベル2段の電話表示（共通 header__tel はFAアイコン1行）
 * .hmd-phero 系       - 下層ヒーロー（グラデ文字の英字＋日本語・写真なし）
 * .hmd-en-grad/-ja    - グラデーション英字見出し＋日本語サブ
 * .hmd-hd 系 / .hmd-hex - 六角形マーク付き英日見出し
 * .hmd-arwlink/-arwbox/-arw - 下線＋矩形矢印のテキストリンク（ホバーで矢印が伸びる）
 * .hmd-cta 系         - グラデーション背景のフッターCTA帯
 * .hmd-footer 系      - 地図＋ダークフッター（auto-fit グリッド）
 * .hmd-mv 系          - 上74%画像＋下26%ロゴタイプのメインビュー
 * .hmd-about 系       - 背景矩形を重ねた紹介セクション（スイープ演出付き）
 * .hmd-rec 系         - 12×8 モザイク写真＋中央ベールの採用セクション
 * .hmd-svc 系         - 罫線区切りの事業内容リスト
 * .hmd-works-bnr 系   - 4分割写真＋暗幕の施工事例バナー
 * .hmd-news 系        - 日付＋カテゴリ枠＋タイトルの1行お知らせ
 * .hmd-figgrid/-fig   - キャプション付き写真グリッド（auto-fit）
 * .hmd-dl 系          - 罫線のみの定義リスト（会社概要・募集要項）
 * .hmd-history 系     - 横並び年表（丸ノード＋縦線）
 * .hmd-record 系      - 3カラムの施工実績リスト
 * .hmd-svcblock 系    - 番号＋タイトル＋横罫の事業詳細ブロック
 * .hmd-envcard 系     - 六角形アイコン付き福利厚生カード
 * .hmd-photostack 系  - 写真2枚重ね＋背景矩形（採用ページ）
 * .hmd-apply 系       - 応募方法ボックス
 * .hmd-worksec 系     - 施工事例のカテゴリ見出し（下線2px）
 * .hmd-form 系        - デザイン準拠のフォーム部品（角丸なし・薄青背景）
 * .hmd-corner 系      - 背景色ベタのTEL/FAXボックス
 * .hmd-entry 系       - お知らせ一覧・詳細（カテゴリ絞り込み／サイドバー／ページネーション）
 *
 * ======================================
 * 共通SCSSに不足していたもの
 * ======================================
 *
 * ・値の粒度不足：デザインが全面 clamp() の流体値（余白・文字サイズ）。
 *   共通の .section / .fz-* / .gap-* は固定値のみで中間幅が一致しない。
 * ・指定方向不足：position:sticky のヘッダー（共通は header-bar=fixed /
 *   header-sticky=absolute+JS のみ）。背景の backdrop-filter も未対応。
 * ・状態不足：ホバーで矢印ボックスが右に伸びる（transform + width 同時遷移）。
 * ・構造不足：auto-fit グリッド（repeat(auto-fit,minmax(Npx,1fr))）。
 *   共通の grid-2/3/4 は固定列数＋BP切替のため、デザインの折返し位置と異なる。
 *   12×8 のモザイク写真グリッドも同様。
 *   ※ 最小トラックは minmax(min(Npx,100%),1fr) と書く。素の minmax(Npx,1fr) は
 *     コンテナが Npx 未満（320px端末など）になると縮まず親からはみ出すため。
 * ・装飾パターン不足：六角形クリップパス（clip-path polygon）の見出しマーク・
 *   番号バッジ・アイコン枠。四隅かぎ括弧の枠。画像を横切るスイープ演出。
 *
 */

/* ==========================================================================
   0. ベース調整（デザイン準拠）
   ========================================================================== */
body {
  background: #fefefe;
  color: #12233d;
}

a {
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, opacity .3s ease;
}
a:hover {
  opacity: 1;
}

/* 左右の流体パディング */
.hmd-pad {
  padding-left: clamp(16px, 3vw, 32px);
  padding-right: clamp(16px, 3vw, 32px);
}

/* デザイン標準のセクション枠 */
.hmd-sec {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(16px, 3vw, 32px);
}
.hmd-sec--bt { border-top: 1px solid #e3e9f2; }
.hmd-sec--bg { background: #f2f5f8; }

.hmd-stack { display: flex; flex-direction: column; }
.hmd-stack--26 { gap: 26px; }
.hmd-stack--28 { gap: 28px; }
.hmd-stack--32 { gap: 32px; }

.hmd-autofit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.hmd-lead {
  margin: 0;
  font-size: 1.6rem;
  line-height: 2.1;
  color: #3d4d63;
  text-wrap: pretty;
}
.hmd-lead--center { text-align: center; }
.hmd-body-text {
  margin: 0;
  font-size: 1.6rem;
  line-height: 2.2;
  color: #3d4d63;
  text-wrap: pretty;
}

/* ==========================================================================
   1. ヘッダー
   ========================================================================== */
.hmd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 254, 254, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e3e9f2;
}
.hmd-header__inner {
  max-width: 1240px;
  height: auto;
  padding: 12px clamp(16px, 3vw, 32px);
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
}

.hmd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #12233d;
}
.hmd-logo img {
  width: 48px;
  height: 36px;
  object-fit: contain;
}
.hmd-logo__name {
  font-size: clamp(20px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.15;
  color: #12233d;
}

.hmd-nav {
  gap: clamp(8px, 1.4vw, 26px);
  margin-left: auto;
  margin-right: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.hmd-nav .header__nav-item a { padding: 6px 0; }
.hmd-nav__ja {
  margin-top: 0;
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 500;
  color: #12233d;
  line-height: 1.9;
}
.hmd-nav .header__nav-item a:hover .hmd-nav__ja { color: #27A5F1; }

.hmd-header__right {
  gap: clamp(8px, 1vw, 14px);
  height: auto;
}

.hmd-tel {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: #007AEB;
  white-space: nowrap;
}
.hmd-tel__label {
  font-size: 10px;
  letter-spacing: .14em;
  color: #7b8aa1;
}
.hmd-tel__num {
  font-family: "Black Ops One", cursive;
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: .02em;
}
.hmd-tel--sp { align-items: center; }
.hmd-tel--sp .hmd-tel__label { color: rgba(255, 255, 255, .7); }
.hmd-tel--sp .hmd-tel__num { color: #fff; font-size: 2.4rem; }

/* 1100px以下：ナビはハンバーガーへ。電話番号は残す（トグルと重ならない余白を確保） */
@media (max-width: 1100px) {
  .hmd-header__right { display: flex; }
  .hmd-header__inner { padding-right: 64px; }
}
@media (max-width: 639px) {
  .hmd-header__right { display: none; }
  .hmd-header__inner { padding-right: 56px; }
}

/* ==========================================================================
   2. 下層ページヒーロー
   ========================================================================== */
.hmd-phero { background: #fefefe; }
.hmd-phero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 18px);
  padding-top: clamp(34px, 5vw, 72px);
  padding-bottom: clamp(20px, 2.6vw, 34px);
  border-bottom: 1px solid #e3e9f2;
}
.hmd-phero__en {
  margin: 0;
  font-family: "Black Ops One", cursive;
  font-weight: 300;
  font-size: clamp(30px, 5.2vw, 80px);
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(100deg, #0050b4 0%, #007AEB 48%, #5cc4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hmd-phero__ja {
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: .14em;
  color: #12233d;
}

/* ==========================================================================
   3. 見出しパーツ
   ========================================================================== */
/* グラデーション英字＋日本語 */
.hmd-en-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hmd-en-grad {
  margin: 0 0 -6px;
  font-family: "Black Ops One", cursive;
  font-weight: 300;
  font-size: clamp(28px, 5.2vw, 84px);
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(100deg, #0050b4 0%, #007AEB 48%, #5cc4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hmd-en-head--stretch { align-items: stretch; }
.hmd-en-ja {
  color: #12233d;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 500;
  letter-spacing: .34em;
}

/* 六角形マーク付き英日見出し */
.hmd-hd {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hmd-hd__en {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Black Ops One", cursive;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: .24em;
  color: #27A5F1;
}
.hmd-hd__ja {
  color: #12233d;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: .1em;
}
.hmd-hex {
  flex: none;
  display: block;
  width: 11px;
  height: 13px;
  background: #007AEB;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ==========================================================================
   4. 矢印テキストリンク
   ========================================================================== */
.hmd-arwlink {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #12233d;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .1em;
  border-bottom: 1px solid #b9d2ff;
  padding-bottom: 14px;
  white-space: nowrap;
}
.hmd-arwbox {
  width: 44px;
  height: 28px;
  border: 1px solid #007AEB;
  color: #007AEB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex: none;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), width .35s cubic-bezier(.22, .61, .36, 1);
}
.hmd-arw {
  display: inline-block;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
a:hover .hmd-arw { transform: translateX(5px); }
a:hover .hmd-arwbox { transform: translateX(8px); width: 56px; }

.hmd-arwlink--white {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .6);
}
.hmd-arwlink--white .hmd-arwbox {
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
}
.hmd-arwlink--center { align-self: center; }
.hmd-arwlink--mt8 { margin-top: 8px; }
.hmd-arwlink--mt10 { margin-top: 10px; }
.hmd-arwbox--solid {
  width: 52px;
  height: 30px;
  background: #12233d;
  color: #fff;
  border: 0;
}

/* ==========================================================================
   5. フッターCTA
   ========================================================================== */
.hmd-cta { padding: 0; }
.hmd-cta::before {
  background: linear-gradient(90deg, #007AEB 0%, #27A5F1 100%);
}
.hmd-cta__inner {
  max-width: 1240px;
  padding: clamp(44px, 6vw, 80px) clamp(16px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.hmd-cta__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hmd-cta__en {
  font-family: "Black Ops One", cursive;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .24em;
  color: #fff;
}
.hmd-cta__title {
  margin: 0;
  color: #fff;
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: .04em;
}
.hmd-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
/* 2つのボタンは高さをそろえる（padding差で段違いにならないように） */
.hmd-cta__tel,
.hmd-cta__mail {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hmd-cta__tel {
  gap: 12px;
  background: #fff;
  color: #007AEB;
  font-family: "Black Ops One", cursive;
  font-size: 22px;
  padding: 15px 28px;
}
.hmd-cta__tel .fa-phone { font-size: .78em; }
.hmd-cta__tel:hover { background: #eaf3fe; color: #007AEB; }
.hmd-cta__mail {
  border: 1px solid #fff;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 18px 32px;
  letter-spacing: .06em;
}
.hmd-cta__mail:hover { background: #fff; color: #007AEB; }

/* ==========================================================================
   6. フッター
   ========================================================================== */
.hmd-footer__map iframe {
  display: block;
  width: 100%;
  height: clamp(220px, 26vw, 340px);
  border: 0;
  filter: grayscale(.2);
}
.hmd-footer__body {
  background: #0b1b33;
  padding: 0;
}
.hmd-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(16px, 3vw, 32px);
  display: grid;
  /* ロゴを1行目に全幅で置き、2行目に 本社／関東営業所／ナビ2列 を横並び */
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .75fr) minmax(0, .75fr);
  gap: 18px clamp(24px, 3vw, 48px);
  align-items: start;
}
.hmd-footer__logo {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hmd-footer__logo img {
  width: 48px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.hmd-footer__name {
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: .06em;
  line-height: 1.15;
  color: #fff;
}
.hmd-footer__office {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hmd-footer__office-name {
  font-size: 1.4rem;
  letter-spacing: .06em;
  line-height: 1.6;
  color: #fff;
}
.hmd-footer__info {
  margin: 0;
  font-size: 1.4rem;
  line-height: 2.1;
  color: rgba(255, 255, 255, .72);
}
.hmd-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.5rem;
  line-height: 1.8;
}
.hmd-footer__nav a { color: rgba(255, 255, 255, .82); }
.hmd-footer__nav a:hover { color: #fff; }
.hmd-footer__bottom {
  background: #0b1b33;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 0;
}
.hmd-footer__copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px clamp(16px, 3vw, 32px);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  letter-spacing: .08em;
  text-align: center;
  color: rgba(255, 255, 255, .55);
}

/* ==========================================================================
   7. TOP：メインビュー
   ========================================================================== */
.hmd-mv {
  position: relative;
  /* ヘッダー(sticky)の高さを引き、下のロゴタイプまでスクロールなしで見える高さにする */
  height: calc(100dvh - 64px);
  min-height: 560px;
  overflow: hidden;
  background: #fefefe;
}
.hmd-mv__stage {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  /* 画面内に収める分、下のロゴタイプ帯を薄くして画像を大きく取る */
  height: 80%;
  overflow: hidden;
  background: #0b1b33;
}
.hmd-mv__stage #slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* CMSスライダー差し替え後の受け皿（cms_ajax が #slideshow 内に出力する） */
.hmd-mv__stage #cms-slider-1-1-area {
  width: 100%;
  height: 100%;
}
/* CMS側の高さは --swiper-wrapper-height(既定98vh)参照。cms_ajax のCSSが後読みされるため
   祖先クラスを足して詳細度で勝たせ、.hmd-mv__stage の 74% 枠に追従させる */
.hmd-mv__stage #main_slider.slider_wrapper {
  --swiper-wrapper-height: 100%;
}
/* position/width は Swiper（CMS側）が制御するので指定しない。
   position:absolute を当てると全スライドが重なりスライドが動かなくなる */
.hmd-mv__stage .swiper-slide {
  height: 100%;
  overflow: hidden;
}
.hmd-mv__stage .main_slider__inner {
  width: 100%;
  height: 100%;
}
.hmd-mv__stage .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ズームは静止画のみ。CMSスライダーのトランジションと干渉させない */
.hmd-mv__stage .hmd-mv__still {
  animation: hmd-mvzoom 21s linear infinite alternate;
}
.hmd-mv__veil {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 40, .35);
  z-index: 2;
}
.hmd-mv__copy {
  position: absolute;
  left: clamp(16px, 5vw, 90px);
  right: clamp(16px, 5vw, 90px);
  top: clamp(140px, 39vh, 330px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 26px);
}
.hmd-mv__title {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 5.2vw, 68px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .03em;
  text-shadow: 0 4px 26px rgba(4, 18, 38, .5);
  text-wrap: pretty;
}
.hmd-mv__sub {
  font-family: "Black Ops One", cursive;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: .18em;
}
.hmd-mv__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(16px, 5vw, 90px) clamp(20px, 3.5vh, 44px);
}
.hmd-mv__type {
  margin: 0;
  font-family: "Black Ops One", cursive;
  font-weight: 300;
  font-size: clamp(49px, 6.4vw, 104px);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  color: #b9c8d8;
}
.hmd-mv__note {
  font-size: clamp(11px, 1.1vw, 14px);
  color: #5a6b83;
  letter-spacing: .2em;
  white-space: nowrap;
}
@keyframes hmd-mvzoom {
  0%   { transform: scale(1.06); }
  100% { transform: scale(1.14); }
}

/* ==========================================================================
   8. TOP：会社紹介
   ========================================================================== */
.hmd-about {
  position: relative;
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 150px) clamp(16px, 3vw, 40px) clamp(64px, 10vw, 150px) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  overflow: hidden;
}
.hmd-about__bg {
  position: absolute;
  right: 0;
  top: clamp(20px, 5vw, 90px);
  width: min(62%, 880px);
  height: clamp(220px, 34vw, 520px);
  background: #f2f5f8;
  z-index: 0;
}
.hmd-about__media {
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden;
}
.hmd-about__media img {
  width: 100%;
  height: clamp(260px, 40vw, 540px);
  object-fit: cover;
}
.hmd-sweepbar {
  position: absolute;
  inset: 0;
  background: #007AEB;
  pointer-events: none;
  transform: translateX(-100%);
}
.hmd-about__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: clamp(0px, 5vw, 70px);
}
.hmd-about__title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0;
  text-wrap: pretty;
}
.hmd-about__text {
  margin: 0;
  font-size: 1.6rem;
  line-height: 2.4;
  color: #3d4d63;
  max-width: 520px;
  text-wrap: pretty;
}
@keyframes hmd-sweep {
  0%   { transform: translateX(-100%); }
  42%  { transform: translateX(0); }
  58%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ==========================================================================
   9. TOP：採用
   ========================================================================== */
.hmd-rec {
  position: relative;
  background: #0060b8;
  overflow: hidden;
}
.hmd-rec__mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 0;
}
.hmd-rec__mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hmd-rec__m1  { grid-column: 1/4;   grid-row: 1/3; opacity: .4; }
.hmd-rec__m2  { grid-column: 4/7;   grid-row: 1/2; opacity: .25; }
.hmd-rec__m3  { grid-column: 8/11;  grid-row: 1/5; opacity: .45; }
.hmd-rec__m4  { grid-column: 11/13; grid-row: 1/3; opacity: .95; }
.hmd-rec__m5  { grid-column: 1/4;   grid-row: 3/7; opacity: .95; }
.hmd-rec__m6  { grid-column: 4/7;   grid-row: 6/9; opacity: .22; }
.hmd-rec__m7  { grid-column: 7/9;   grid-row: 5/9; opacity: .28; }
.hmd-rec__m8  { grid-column: 11/13; grid-row: 5/9; opacity: .9; }
.hmd-rec__m9  { grid-column: 1/3;   grid-row: 7/9; opacity: .38; }
.hmd-rec__m10 { grid-column: 9/11;  grid-row: 6/9; opacity: .35; }
.hmd-rec__veil {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: min(58%, 900px);
  transform: translateX(-50%);
  background: rgba(0, 74, 150, .62);
}
.hmd-rec__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(72px, 12vw, 180px) clamp(16px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 2.5vw, 32px);
}
.hmd-rec__label {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .14em;
}
.hmd-rec__en {
  margin: 0 0 -6px;
  font-family: "Black Ops One", cursive;
  font-weight: 300;
  font-size: clamp(43px, 5.2vw, 84px);
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}
.hmd-rec__text {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1.6rem;
  line-height: 2.4;
  text-wrap: pretty;
}

/* ==========================================================================
   10. TOP：事業内容
   ========================================================================== */
.hmd-svc {
  position: relative;
  background: #fefefe;
  border-top: 1px solid #e3e9f2;
  border-bottom: 1px solid #e3e9f2;
  overflow: hidden;
}
.hmd-svc__inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 110px) clamp(16px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.hmd-svc__head {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 40px);
}
.hmd-svc__lead {
  margin: 0;
  color: #3d4d63;
  font-size: 1.6rem;
  line-height: 2.1;
  max-width: 420px;
}
.hmd-svc__list { display: flex; flex-direction: column; }
.hmd-svc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #dbe4f1;
  padding: clamp(18px, 2.2vw, 30px) 0;
  color: #12233d;
}
.hmd-svc__row:last-child { border-bottom: 1px solid #dbe4f1; }
.hmd-svc__rowbody {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hmd-svc__no {
  font-family: "Black Ops One", cursive;
  color: #9db1c6;
  font-size: 1.4rem;
}
.hmd-svc__name {
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: .06em;
}
.hmd-svc__desc {
  font-size: 1.5rem;
  color: #3d4d63;
  line-height: 1.9;
}

/* ==========================================================================
   11. TOP：施工事例バナー
   ========================================================================== */
.hmd-works-bnr {
  background: #f2f5f8;
  padding: clamp(32px, 5vw, 72px) clamp(16px, 3vw, 32px);
}
.hmd-works-bnr__link {
  position: relative;
  display: block;
  max-width: 1240px;
  margin: 0 auto;
  height: clamp(240px, 30vw, 380px);
  overflow: hidden;
}
.hmd-works-bnr__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hmd-works-bnr__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hmd-works-bnr__veil {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 40, .58);
}
.hmd-works-bnr__body {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(10px, 1.4vw, 18px);
}
.hmd-works-bnr__en {
  font-family: "Black Ops One", cursive;
  font-weight: 300;
  font-size: clamp(28px, 5.2vw, 84px);
  line-height: 1;
  color: #fff;
}
.hmd-works-bnr__ja {
  color: #fff;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 500;
  letter-spacing: .34em;
}

/* ==========================================================================
   12. TOP：お知らせ
   ========================================================================== */
.hmd-news { background: #fefefe; }
.hmd-news__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 120px) clamp(16px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.hmd-news__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  grid-column: span 2;
  min-width: 0;
}
.hmd-news__list {
  display: flex;
  flex-direction: column;
  background: #fff;
}
.hmd-news__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 22px clamp(16px, 2.5vw, 32px);
  border-bottom: 1px solid #e3e9f2;
  color: #12233d;
}
.hmd-news__item:hover { background: #f7f9fb; }
.hmd-news__date {
  font-family: "Black Ops One", cursive;
  font-size: 1.4rem;
  color: #5a6b83;
  letter-spacing: .06em;
}
.hmd-news__title {
  font-size: 1.6rem;
  flex: 1;
  min-width: 200px;
}
.hmd-news__more {
  align-self: flex-end;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  border-bottom: 1px solid #007AEB;
  padding-bottom: 6px;
}

/* ==========================================================================
   13. 会社概要
   ========================================================================== */
.hmd-msg__img {
  width: 100%;
  height: clamp(240px, 30vw, 420px);
  object-fit: cover;
}
.hmd-msg__sign {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

/* 経営理念 */
.hmd-philo {
  background: #fefefe;
  border-top: 1px solid #e3e9f2;
}
.hmd-philo__panel {
  position: relative;
  background: #f2f5f8;
  overflow: hidden;
}
.hmd-philo__watermark {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(34px, 6vw, 86px);
  text-align: center;
  font-family: "Black Ops One", cursive;
  font-size: clamp(34px, 8vw, 124px);
  line-height: 1;
  color: #e5e9ed;
  pointer-events: none;
}
.hmd-philo__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 150px) clamp(16px, 3vw, 32px) clamp(48px, 7vw, 96px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.hmd-philo__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: .1em;
}
.hmd-philo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  width: 100%;
}
.hmd-philo__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  background: #fefefe;
  padding: clamp(28px, 3.4vw, 44px) clamp(20px, 2.4vw, 32px);
}
.hmd-philo__num {
  flex: none;
  align-self: center;
  width: 52px;
  height: 60px;
  background: #007AEB;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Black Ops One", cursive;
  font-size: 1.6rem;
}
.hmd-philo__name {
  margin: 0;
  align-self: center;
  text-align: center;
  font-size: clamp(19px, 2.1vw, 26px);
  letter-spacing: .1em;
}
.hmd-philo__text {
  margin: 0;
  color: #3d4d63;
  font-size: 1.5rem;
  line-height: 2;
  text-align: center;
  text-wrap: balance;
  word-break: auto-phrase;
}

/* 定義リスト（会社概要・募集要項） */
.hmd-dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 0;
}
.hmd-dl__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-top: 1px solid #e3e9f2;
  padding: 18px 4px;
  grid-column: 1/-1;
}
.hmd-dl__row:last-child { border-bottom: 1px solid #e3e9f2; }
.hmd-dl__row dt {
  min-width: 180px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #12233d;
}
.hmd-dl__row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  flex: 1;
  min-width: 200px;
}
.hmd-dl--req { display: flex; flex-direction: column; }
.hmd-dl--req .hmd-dl__row { grid-column: auto; }
.hmd-dl--req .hmd-dl__row dt { min-width: 150px; }

/* 沿革 */
.hmd-history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 0;
  margin-top: clamp(16px, 3vw, 36px);
}
.hmd-history__col {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: clamp(16px, 2vw, 28px);
}
.hmd-history__node {
  position: relative;
  height: 14px;
  border-top: 1px solid #cfdcec;
}
.hmd-history__node::before {
  content: "";
  position: absolute;
  left: 0;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #007AEB;
  box-sizing: border-box;
}
.hmd-history__stem {
  width: 1px;
  height: 44px;
  background: #cfdcec;
  margin-left: 6px;
}
.hmd-history__year {
  font-family: "Black Ops One", cursive;
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 32px);
  color: #12233d;
  letter-spacing: .02em;
  line-height: 1;
}
.hmd-history__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hmd-history__list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.9;
  color: #3d4d63;
}
.hmd-history__list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27A5F1;
  margin-top: 9px;
}

/* 施工実績 */
.hmd-record {
  display: flex;
  flex-direction: column;
  border-top: 2px solid #12233d;
}
.hmd-record__row {
  display: grid;
  grid-template-columns: clamp(46px, 6vw, 72px) minmax(0, 1fr) auto;
  gap: clamp(12px, 2vw, 32px);
  align-items: center;
  padding: clamp(16px, 2vw, 24px) 0;
  border-bottom: 1px solid #e3e9f2;
}
.hmd-record__no {
  font-family: "Black Ops One", cursive;
  font-weight: 300;
  font-size: 1.4rem;
  color: #b9c8d8;
}
.hmd-record__name {
  font-size: 1.6rem;
  line-height: 1.8;
}
.hmd-record__place {
  font-size: 1.4rem;
  color: #12233d;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* ==========================================================================
   14. 事業内容
   ========================================================================== */
.hmd-sec--svc-top { padding-top: clamp(40px, 6vw, 80px); }
.hmd-svcblock {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
}
.hmd-svcblock__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}
.hmd-svcblock__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  order: 2;
}
.hmd-svcblock__img {
  width: 100%;
  height: clamp(240px, 30vw, 400px);
  object-fit: cover;
  order: 1;
}
.hmd-svcblock__title {
  margin: 0;
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 2vw, 24px);
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: .04em;
  line-height: 1.5;
}
.hmd-svcblock__no {
  flex: none;
  display: flex;
  align-items: center;
  font-family: "Black Ops One", cursive;
  font-weight: 300;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1;
  letter-spacing: .04em;
  color: #9db1c6;
}
.hmd-svcblock__names {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hmd-svcblock__sub {
  font-size: 1.4rem;
  font-weight: 500;
  color: #5a6b83;
  letter-spacing: .14em;
}
.hmd-rule {
  display: block;
  height: 2px;
  background: #12233d;
}

/* キャプション付き写真グリッド */
.hmd-figgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
  background: #f2f5f8;
  padding: clamp(20px, 3vw, 32px);
}
.hmd-figgrid--ba {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  background: #f7f9fb;
}
.hmd-figgrid--plain {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  background: none;
  padding: 0;
}
.hmd-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hmd-fig img {
  width: 100%;
  height: clamp(190px, 20vw, 260px);
  object-fit: cover;
}
.hmd-figgrid--ba .hmd-fig img { height: clamp(180px, 20vw, 240px); }
.hmd-figgrid--plain .hmd-fig img { height: clamp(190px, 19vw, 250px); }
.hmd-fig figcaption {
  font-size: 1.4rem;
  color: #5a6b83;
}
.hmd-figgrid--plain .hmd-fig figcaption {
  font-size: 1.5rem;
  color: #3d4d63;
}
.hmd-fig__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #5a6b83;
}
.hmd-fig__label--after { color: #007AEB; }

.hmd-center-row {
  display: flex;
  justify-content: center;
  padding-top: clamp(12px, 2vw, 24px);
}

/* ==========================================================================
   15. 施工事例
   ========================================================================== */
.hmd-worksec__head {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  border-bottom: 2px solid #007AEB;
  padding: 0 0 14px;
}
.hmd-worksec__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: .04em;
}
.hmd-worksec__en {
  font-family: "Black Ops One", cursive;
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: .2em;
  color: #27A5F1;
}

/* ==========================================================================
   16. 採用情報
   ========================================================================== */
.hmd-photostack {
  position: relative;
  min-height: clamp(300px, 38vw, 520px);
}
.hmd-photostack__bg {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  top: clamp(16px, 3vw, 44px);
  right: 0;
  bottom: clamp(16px, 3vw, 44px);
  background: #f2f5f8;
}
.hmd-photostack__main {
  position: relative;
  width: min(74%, 420px);
  height: clamp(240px, 30vw, 420px);
  object-fit: cover;
}
.hmd-photostack__sub {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(46%, 240px);
  height: clamp(150px, 19vw, 260px);
  object-fit: cover;
  border: 6px solid #fefefe;
}
.hmd-recruit__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hmd-recruit__title {
  margin: 0;
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.7;
  letter-spacing: .04em;
}

.hmd-envgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.hmd-envcard {
  background: #f2f5f8;
  padding: clamp(24px, 2.8vw, 34px);
  /* アイコンとタイトルを横並び、本文はその下に全幅で */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  align-content: start;
  gap: 16px 14px;
}
.hmd-envcard__text {
  grid-column: 1 / -1;
  align-self: start;
}
.hmd-envcard__icon {
  flex: none;
  width: 44px;
  height: 51px;
  background: #007AEB;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.hmd-envcard__title {
  font-size: 1.7rem;
  letter-spacing: .04em;
}
.hmd-envcard__text {
  font-size: 1.5rem;
  line-height: 1.9;
  color: #3d4d63;
}
.hmd-note {
  margin: 0;
  font-size: 13px;
  color: #8a97a8;
}

.hmd-apply {
  background: #fefefe;
  padding: 0 clamp(16px, 3vw, 32px) clamp(48px, 7vw, 96px);
}
.hmd-apply__box {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  background: #f2f5f8;
  padding: clamp(28px, 3.6vw, 48px) clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.hmd-apply__title {
  margin: 0;
  font-size: clamp(17px, 1.9vw, 22px);
  letter-spacing: .1em;
}
.hmd-apply__text {
  margin: 0;
  color: #3d4d63;
  font-size: 1.5rem;
  line-height: 2.1;
}
.hmd-arwlink--mt6 { margin-top: 6px; }

/* ==========================================================================
   17. お問い合わせ
   ========================================================================== */
/* 下のCMSフォーム（900px）と幅をそろえる */
.hmd-contact__boxes {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
}
.hmd-corner {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #eaf2fb;
  transition: background .25s;
}
.hmd-corner--sub { background: #f2f5f8; }
a.hmd-corner:hover { background: #dbe9f9; }
.hmd-corner__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #7b8aa1;
}
.hmd-corner__num {
  font-family: "Black Ops One", cursive;
  font-size: 26px;
  color: #007AEB;
}
.hmd-corner__num--dark { color: #12233d; }
.hmd-corner__note {
  font-size: 13px;
  color: #5a6b83;
}

/* CMSお問い合わせフォーム（cms_id=7 / design_pattern=1）の表示幅 */
#cms-contact-1-1-area {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hmd-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
  border-top: 2px solid #007AEB;
  padding-top: 32px;
}
.hmd-form__set {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hmd-form__legend {
  font-size: 14px;
  font-weight: 700;
  padding: 0;
  margin-bottom: 6px;
}
.hmd-form__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}
.hmd-form__check input {
  width: 18px;
  height: 18px;
  accent-color: #007AEB;
}
.hmd-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hmd-form__label {
  font-size: 14px;
  font-weight: 700;
}
.hmd-form__req {
  color: #007AEB;
  margin-left: 8px;
  font-size: 12px;
}
.hmd-form__input {
  width: 100%;
  border: 1px solid #dbe4f1;
  background: #f8fafd;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border-radius: 0;
}
.hmd-form__input:focus {
  outline: none;
  border-color: #007AEB;
}
textarea.hmd-form__input { resize: vertical; }
.hmd-form__submit {
  align-self: center;
  background: #007AEB;
  color: #fff;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .1em;
  padding: 18px 64px;
  cursor: pointer;
  transition: background-color .3s ease;
}
.hmd-form__submit:hover { background: #27A5F1; }
.hmd-form__sent {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #007AEB;
}

/* ==========================================================================
   18. お知らせ（一覧・詳細）
   ========================================================================== */
.hmd-entry-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 3vw, 32px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.hmd-entry-wrap--detail {
  padding: clamp(24px, 4vw, 44px) clamp(16px, 3vw, 32px) clamp(48px, 7vw, 90px);
}
.hmd-entry__main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  grid-column: span 2;
}
.hmd-entry__main--detail { gap: 22px; }

.hmd-entrylist { display: flex; flex-direction: column; }
.hmd-entrylist__item {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e3e9f2;
  color: #12233d;
}
.hmd-entrylist__thumb {
  flex: none;
  width: 120px;
  height: 80px;
  background-color: #e8eef5;
  background-size: cover;
  background-position: center;
}
.hmd-entrylist__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}
.hmd-entrylist__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hmd-entrylist__date {
  font-family: "Black Ops One", cursive;
  font-size: 12.5px;
  color: #5a6b83;
}
.hmd-entrylist__title {
  font-size: 15.5px;
  font-weight: 500;
}

.hmd-pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-top: 12px;
}
.hmd-pager__num {
  font-family: "Black Ops One", cursive;
  font-size: 14px;
  padding: 11px 17px;
  border: 1px solid #dbe4f1;
  color: #3d4d63;
}
.hmd-pager__num.is-current {
  background: #007AEB;
  border-color: #007AEB;
  color: #fff;
}
.hmd-pager__next {
  border: 1px solid #dbe4f1;
  color: #3d4d63;
  font-size: 13px;
  padding: 12px 18px;
}

.hmd-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}
.hmd-side__block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hmd-side__title {
  margin: 0;
  font-size: 15px;
  letter-spacing: .08em;
  border-bottom: 2px solid #007AEB;
  padding-bottom: 10px;
}
/* 月別アーカイブ（ブログCMSが ul > li > a で出力する） */
.hmd-side__archive ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hmd-side__archive a {
  display: block;
  font-size: 14px;
  color: #3d4d63;
  padding: 6px 0;
  border-bottom: 1px solid #eef2f8;
}
.hmd-side__archive a:hover { color: #007AEB; }

.hmd-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #7b8aa1;
}
.hmd-crumb a { color: #7b8aa1; }
.hmd-crumb a:hover { color: #007AEB; }
.hmd-entry__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hmd-entry__date {
  font-family: "Black Ops One", cursive;
  font-size: 13px;
  color: #5a6b83;
}
.hmd-entry__title {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.6;
  letter-spacing: .03em;
  text-wrap: pretty;
}
.hmd-entry__img {
  width: 100%;
  height: clamp(220px, 32vw, 420px);
  object-fit: cover;
}
.hmd-entry__back {
  align-self: center;
  border: 1px solid #007AEB;
  color: #007AEB;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 32px;
  letter-spacing: .06em;
}
.hmd-entry__back:hover { background: #007AEB; color: #fff; }
.hmd-stack--20 { gap: 20px; }
.hmd-stack--22 { gap: 22px; }
.hmd-stack--24 { gap: 24px; }
.hmd-autofit--64 { gap: clamp(28px, 4vw, 64px); }
.hmd-arwlink--mt6 { margin-top: 6px; }
.hmd-form__check input { margin: 3px 3px 3px 4px; }

/* ==========================================================================
   19. 狭幅（〜700px）の破綻回避
   claude-design-output は auto-fit / nowrap のまま SP で横はみ出しが起きるため、
   デザインの見た目を保ったまま折返し・段組みだけを調整する。
   ========================================================================== */
/* 採用セクション：ベールは既定 min(58%,900px)。狭い画面では中央テキストが
   ベールをはみ出して明るい写真タイルに重なるため、全幅に広げて濃度も上げる */
@media (max-width: 1100px) {
  .hmd-rec__veil {
    width: 100%;
    background: rgba(0, 74, 150, .72);
  }
}

@media (max-width: 700px) {
  /* フッター：営業所情報は全幅で縦に、ナビ2列だけ下に並べる（PCは4列） */
  .hmd-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hmd-footer__office { grid-column: 1 / -1; }

  /* お知らせ一覧・詳細：1カラム時に span 2 が暗黙トラックを作ってはみ出すのを防ぐ */
  .hmd-entry__main { grid-column: auto; }
  .hmd-news__body { grid-column: auto; }

  /* 会社紹介：PCは画像を左端まで裁ち落とすため padding-left:0。1カラムに落ちると
     見出し・本文まで画面端に張り付くので、左右そろえて余白を戻す */
  .hmd-about {
    padding-left: clamp(16px, 3vw, 40px);
    padding-right: clamp(16px, 3vw, 40px);
  }
  /* 背景矩形は2カラム前提の装飾。1カラムでは画像の脇に半端に残るので隠す */
  .hmd-about__bg { display: none; }
  .hmd-about__body { padding-top: 0; }

  /* お知らせ（TOP・一覧とも）：スマホは日付とタイトルを縦並びに */
  .hmd-news__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 15px clamp(16px, 2.5vw, 32px);
  }
  .hmd-news__title { min-width: 0; }
}

@media (max-width: 639px) {
  /* メインビュー下部：ロゴタイプと所在地テキストを縦積みにして見切れを防ぐ */
  .hmd-mv__foot {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }
  .hmd-mv__note { white-space: normal; }

  /* 採用セクション：行間を詰めて縦に伸びすぎるのを抑える */
  .hmd-rec__text { line-height: 2.1; }
}

/* 白背景＋上罫のセクション枠（事業内容・施工事例・採用の2ブロック目） */
.hmd-sec-white {
  background: #fefefe;
  border-top: 1px solid #e3e9f2;
}

/* ==========================================================================
   20. スマホ表示の調整（〜639px）
   ========================================================================== */
@media (max-width: 639px) {
  /* 施工実績：3カラム（No/工事名/場所）が横に潰れるので、
     Noを左に残して「工事名」→「場所」の2段組みにする */
  .hmd-record__row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 12px;
    align-items: start;
    padding: 16px 0;
  }
  .hmd-record__no {
    grid-row: 1 / span 2;
    line-height: 1.9;
  }
  .hmd-record__name {
    font-size: 1.5rem;
    line-height: 1.75;
  }
  .hmd-record__place {
    grid-column: 2;
    white-space: normal;
    font-size: 1.3rem;
    font-weight: 500;
    color: #5a6b83;
    letter-spacing: .04em;
  }

  /* 採用・応募方法：本文は中央よりも左揃えのほうが読みやすい（見出しは中央のまま） */
  .hmd-rec__text,
  .hmd-apply__text {
    align-self: stretch;
    text-align: left;
  }

  /* 共通CTA：縦積みだと帯が間延びするのでボタンを2つ横並びに */
  .hmd-cta__actions {
    width: 100%;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .hmd-cta__tel,
  .hmd-cta__mail {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 6px;
    white-space: nowrap;
  }
  .hmd-cta__tel {
    font-size: 15px;
    gap: 6px;
  }
  .hmd-cta__mail {
    font-size: 12px;
    letter-spacing: .02em;
  }
}

/* ==========================================================================
   21. スクロール連動アニメーション（TOP）
   ========================================================================== */
.hmd-rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.22, .61, .36, 1), transform .9s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.hmd-rv.is-in {
  opacity: 1;
  transform: none;
}
.hmd-rv--d1 { transition-delay: .1s; }
.hmd-rv--d2 { transition-delay: .2s; }
.hmd-rv--d3 { transition-delay: .3s; }
.hmd-rv--d4 { transition-delay: .4s; }

/* 会社紹介の画像：写真は最初から表示。画面に入ったら青い帯が写真の上を通過する */
.hmd-about__media .hmd-sweepbar { z-index: 2; }
.hmd-about__media.is-in .hmd-sweepbar {
  animation: hmd-sweep 2.2s cubic-bezier(.65, 0, .35, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hmd-rv,
  .hmd-rv.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hmd-about__media .hmd-sweepbar { display: none; }
}

/* ==========================================================================
   22. スマホ表示の調整・その2（〜639px）
   ========================================================================== */
@media (max-width: 639px) {
  /* 本文の基準サイズ（共通CSSは1.2rem） */
  body { font-size: 1.3rem; }

  /* メインビューは70vh。下のセクションとの間も詰める */
  .hmd-mv {
    height: 70vh;
    min-height: 0;
  }
  .hmd-about { padding-top: clamp(28px, 8vw, 44px); }

  /* リード文はスマホでは中央より左揃えのほうが読みやすい */
  .hmd-lead--center { text-align: left; }

  /* セクションタイトルは小さすぎるので一段大きく */
  .hmd-en-grad { font-size: 45px; }
  .hmd-en-ja { font-size: 13px; }
  .hmd-hd__ja { font-size: 28px; }
  .hmd-phero__en { font-size: 36px; }
}

/* ==========================================================================
   23. メインビュー：ロゴタイプの1文字ずつ表示（top.js が .hmd-char を生成）
   ========================================================================== */
.hmd-mv__type .hmd-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(.32em);
  animation: hmd-charin .65s cubic-bezier(.22, .61, .36, 1) forwards;
}
@keyframes hmd-charin {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hmd-mv__type .hmd-char {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ==========================================================================
   24. SPナビ（共通CSSの微調整）
   ========================================================================== */
/* 英字ラベルは 0.75rem だと小さすぎるので一段上げ、日本語と矢印の間に余白を取る */
.sp-nav__en { font-size: 1.2rem; }
.sp-nav__link::after { margin-left: 15px; }

/* CTAのボタン2つは高さもそろえる（tel/mailで padding が違うため） */
@media (max-width: 639px) {
  .hmd-cta__actions { align-items: stretch; }
}

/* スマホはMV画像を縦長に切り抜くため、被写体が左に寄って見切れる。
   切り抜き位置を左寄りにして、人物を画面の中〜右側に見せる */
@media (max-width: 639px) {
  .hmd-mv__stage .swiper-slide img { object-position: 30% center; }
}

/* ==========================================================================
   25. 沿革：スマホは横並び年表→縦一本線のタイムラインへ
   （1カラムに落ちると横線＋丸＋縦棒の装飾が分断されて読みにくいため）
   ========================================================================== */
@media (max-width: 639px) {
  .hmd-history {
    grid-template-columns: 1fr;
    margin-top: 10px;
    padding-left: 8px;
  }
  .hmd-history__col {
    position: relative;
    padding: 0 0 26px 26px;
    border-left: 1px solid #cfdcec;
  }
  .hmd-history__col:last-child { padding-bottom: 0; }

  /* 横線は消し、丸だけを縦線の上に乗せる */
  .hmd-history__node {
    height: 0;
    border-top: 0;
  }
  .hmd-history__node::before {
    left: -33px;
    top: 5px;
  }
  .hmd-history__stem { display: none; }

  .hmd-history__year {
    font-size: 20px;
    line-height: 1.2;
  }
  .hmd-history__list {
    margin-top: 10px;
    gap: 8px;
  }
  .hmd-history__list li {
    font-size: 13px;
    line-height: 1.85;
  }
  .hmd-history__list li::before { margin-top: 8px; }
}

/* ==========================================================================
   26. お知らせ詳細：ブログCMSが出力する本文・前後リンクの受け皿
   ========================================================================== */
.hmd-entry__body {
  font-size: 1.6rem;
  line-height: 2.2;
  color: #3d4d63;
  word-break: break-word;
}
.hmd-entry__body p { margin: 0 0 1.6em; }
.hmd-entry__body p:last-child { margin-bottom: 0; }
.hmd-entry__body img {
  max-width: 100%;
  height: auto;
  margin: 8px 0;
}
.hmd-entry__body a {
  color: #007AEB;
  text-decoration: underline;
}
.hmd-entry__body h2,
.hmd-entry__body h3 {
  margin: 1.8em 0 .8em;
  color: #12233d;
  line-height: 1.6;
}
.hmd-entry__body h2 { font-size: clamp(18px, 2.2vw, 24px); }
.hmd-entry__body h3 { font-size: clamp(16px, 1.8vw, 20px); }
.hmd-entry__body ul,
.hmd-entry__body ol {
  margin: 0 0 1.6em;
  padding-left: 1.4em;
  list-style: revert;
}
.hmd-entry__body table {
  width: 100%;
  border-collapse: collapse;
}
.hmd-entry__body th,
.hmd-entry__body td {
  border: 1px solid #e3e9f2;
  padding: 10px 14px;
  text-align: left;
}

/* 前後の記事リンク（CMSが a を並べて出力する） */
.hmd-entry__pagelink {
  padding-top: 4px;
  border-top: 1px solid #e3e9f2;
  font-size: 14px;
}
/* CMS出力の .pages（前後の記事）を横並び中央に */
.hmd-entry__pagelink .pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 32px;
}
.hmd-entry__pagelink:empty { display: none; }
.hmd-entry__pagelink a {
  color: #007AEB;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 12px 0;
}
.hmd-entry__pagelink a:hover { color: #27A5F1; }

/* ==========================================================================
   27. ブログCMS一覧のページャ（CMSが .pages > .page_prev/.page_next で出力）
   ========================================================================== */
.hmd-entrylist .pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  padding-top: 18px;
}
.hmd-entrylist .pages a {
  color: #007AEB;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
}
.hmd-entrylist .pages a:hover { color: #27A5F1; }

/* TOPのお知らせは最新3件のみ・ページャは出さない */
#hmd-top-news .pages { display: none; }

/* ==========================================================================
   28. メインビュー：PCは画像帯をもう少し高く（ロゴタイプ帯は薄く）
   MV全体はヘッダー分を引いた高さなので、下のロゴタイプまで
   スクロールなしで見える状態は維持する
   ========================================================================== */
@media (min-width: 640px) {
  .hmd-mv__stage { height: 81%; }
  .hmd-mv__foot {
    height: 19%;
    /* 画像帯とロゴタイプの間に余白を取る */
    padding-top: clamp(10px, 1.6vh, 20px);
    padding-bottom: clamp(14px, 2.2vh, 28px);
  }
}

/* ==========================================================================
   29. ページ内アンカーの着地位置
   ヘッダーが sticky のため、アンカー移動でセクション上端が
   ヘッダーの下に潜らないよう、ヘッダー高さ分の余白を確保する
   ========================================================================== */
.hmd-anchor { scroll-margin-top: 72px; }
