@charset "utf-8";
/*
 * ======================================
 * 追加クラス一覧（共通SCSS取り込み検討用）
 * ======================================
 *
 * .rh-header / __inner / __logo / __nav / __right / __tel / __tel-note
 *      - sticky型ヘッダー（96%幅・min-height:82px・背景rgba(255,255,255,.97)）
 * .rh-nav-toggle          - 角型ベタ塗りハンバーガー（52x52・ヘッダー行内右端に見える配置）
 * .rh-sp-nav / __list     - ヘッダー直下に開く白ドロップダウン型SPナビ
 * .rh-tex                 - 写真テクスチャをblurして敷く基底（::before inset:-8px blur(4px)）
 * .rh-btn--cta / --pill / --submit / --block / .rh-btn__arw  - ボタン各種
 * .rh-btn-ghost           - 白枠ゴーストボタン（hoverで白背景反転）
 * .rh-cta / __inner / __body / __ttl / __lead / __note  - 写真テクスチャのCTA帯
 * .rh-footer / __body / __inner / __col / __col--nav(SP非表示) / __logo / __nav / __bottom / __copyright
 * .rh-inner / --wide / --narrow / --form / --mv  - セクション内側ラッパー（左右24px固定）
 * .rh-sec-* / .rh-gap-*   - 元データのclamp()をそのまま持つセクション余白
 * .rh-sec-en / .rh-sec-ja - セクション見出し（Barlow大英字＋小さな日本語）
 * .rh-page-head           - 下層ページヒーロー（ベタ塗りネイビー）
 * .rh-mv-*                - メインビジュアル（__illust はキャッチ背面の街並み線画）
 * .rh-grid--*             - auto-fit minmax() グリッド各種
 * .rh-why-*               - 選ばれる理由（縦書きタグ＋白ゴースト英字の重なり）
 * .rh-work-*              - 施工事例カード／ギャラリー
 * .rh-works-group__*      - 施工事例ページの物件見出し（物件名＋業種タグ）
 * .rh-partner-*           - 協業募集ブロック（枠線をまたぐ英字ラベル）
 * .rh-profile-* / .rh-history-* / .rh-group-*  - 会社概要
 * .rh-service-*           - 事業内容
 * .rh-cms-form            - CMSお問い合わせフォーム(.form-contents.form-pattern-1)の上書きレイヤー
 *                           ※CMSが実行時に注入する mail-form.css より高い詳細度で記述
 * .rh-lb                  - 施工事例ライトボックス（__nav で同一物件内を前後送り）
 * .rh-fade                - スクロールフェードイン（IntersectionObserver）
 * .rh-loader / __logo     - OPローダー（ロゴのズームアップ→ゆっくりフェードアウト）
 *
 * ======================================
 * 共通SCSSに不足していたもの
 * ======================================
 *
 * 【装飾パターン不足】
 *  - 写真をblurして背景テクスチャにするボタン／帯（.tex相当）。
 *    bg-photo-fade 等はあるが、要素より外側(inset:-8px)まで広げてblurのエッジを
 *    消す方式のパーツが無い。→ .rh-btn / .rh-cta を追加
 *  - 縦書きラベルが画像上端からはみ出して下がるタグ（下端のみ角丸 0 0 21px 21px）。
 *    → .rh-why__tag を追加
 *  - 白文字の大英字に見出しを負マージンで重ねるゴースト表現。
 *    heading-big--bgtext は opacity で薄くする方式のため、白ベタ＋重なりは不可。
 *    → .rh-why__en / .rh-why__ttl を追加
 *  - 枠線の上端をまたぐ英字ラベル（背景色で線を抜く）。→ .rh-partner__en を追加
 *
 * 【構造不足】
 *  - position:sticky 型ヘッダー。header-bar は fixed、header-sticky は JS 連動の
 *    absolute→fixed で、CSSのみの sticky が無い。→ .rh-header を追加
 *  - ヘッダー直下に開く「ドロップダウン型」SPナビ。sp-nav は全画面オーバーレイのみ。
 *    → .rh-sp-nav を追加
 *
 * 【値の粒度不足】
 *  - セクション余白が clamp() による流体指定（元データが clamp 前提）。
 *    section / section--half は固定px＋BP切替のため再現不可。→ .rh-sec-* を追加
 *  - container が 1320px 以下で max-width:95% + padding:10px に切り替わるが、
 *    元データは全幅域で左右24px固定。→ .rh-inner で上書き
 *
 * 【指定方向不足】
 *  - grid-2/3/4 は固定列数。元データは repeat(auto-fit, minmax(Xpx,1fr)) で
 *    折返し位置を px で決める方式。grid-auto は 250px 固定のみ。→ .rh-grid--* を追加
 *
 */

/* ==========================================================================
   0. 全体（元データ: style.css の a / body 周り）
   ========================================================================== */
/* 元データ: body{font-weight:500} — 共通CSSの body は font-weight 未指定(=400)のため明示する */
body {
  font-weight: 500;
}

/* 元データ: a{color:#1B3B6F} a:hover{color:#fb6914} — opacity変化は無い */
a:hover {
  opacity: 1;
  color: #fb6914;
}

/* ==========================================================================
   1. 内側ラッパー（左右padding 24px 固定）
   元データ: 全セクション padding 左右 24px / 最大幅はセクションごとに切替
   ========================================================================== */
.rh-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.rh-inner--wide   { max-width: 1600px; }
.rh-inner--narrow { max-width: 900px; }
.rh-inner--form   { max-width: 860px; }
.rh-inner--mv     { max-width: 1100px; }

/* ==========================================================================
   2. ボタン（元データ: .tex / .btn-cta / .btn-pill / .btn-submit / .btn-ghost）
   ========================================================================== */
.rh-tex {
  position: relative;
  overflow: hidden;
  display: inline-block;
  /* テクスチャ画像が出ない場合のフォールバック。
     これが無いと「背景透明＋白文字」でボタンが見えなくなる */
  background-color: #1B3B6F;
}
.rh-tex > span {
  position: relative;
  z-index: 1;
}
/* 元データ: .tex::before{inset:-8px; filter:blur(4px)} — 要素外まで広げてblurのエッジを消す */
.rh-tex::before {
  content: "";
  position: absolute;
  inset: -8px;
  background-size: cover;
  background-position: center;
  filter: blur(4px);
}

.rh-btn--cta {
  padding: 16px 24px;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .06em;
  border-radius: 2px;
  white-space: nowrap;
}
.rh-btn--cta::before {
  background-image: url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28688/grad-a.jpg);
}
.rh-btn--cta:hover {
  opacity: .88;
  color: #fff;
}

.rh-btn--block {
  display: block;
  margin-top: 20px;
  text-align: center;
}

.rh-btn--pill {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 16px 16px 16px 32px;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .04em;
  border-radius: 999px;
}
.rh-btn--pill::before {
  background-image: linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, .22)),
                    url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28688/grad-b.jpg);
}
.rh-btn--pill:hover {
  opacity: .88;
  color: #fff;
}
.rh-btn__arw {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #14243f;
}

.rh-btn--submit {
  padding: 20px 72px;
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  /* ネイティブのボタン描画を解除（解除しないと背景指定が効かないブラウザがある） */
  -webkit-appearance: none;
          appearance: none;
}
.rh-btn--submit::before {
  background-image: url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28688/grad-a.jpg);
}
.rh-btn--submit:hover {
  opacity: .88;
}

.rh-btn-ghost {
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-block;
  padding: 18px 40px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  border-radius: 2px;
  transition: background .25s, color .25s;
}
.rh-btn-ghost:hover {
  background: #fff;
  color: #14243f;
}

/* ==========================================================================
   3. ヘッダー（元データ: .hd）
   ========================================================================== */
.rh-header {
  position: sticky;
  top: 0;
  /* 元データ: .hd{z-index:50}（共通CSSの $z_header:100 を実数に合わせる） */
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #E3E7EE;
}
/* 元データ: .hd .row{width:96%;min-height:82px;padding:10px 0;gap:16px;flex-wrap:nowrap} */
.rh-header__inner {
  width: 96%;
  max-width: none;
  height: auto;
  min-height: 82px;
  padding: 10px 0;
  gap: 16px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}
.rh-header__logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* 元データ: .hd nav{margin-left:auto;justify-content:flex-end;align-items:flex-start} */
.rh-header__nav {
  margin-left: auto;
  margin-right: 0;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0;
}
/* 元データ: .hd nav a{padding:4px 18px;font-size:14px;font-weight:700;color:#1B3B6F;line-height:1.25;letter-spacing:.02em} */
.rh-header__nav .header__nav-item a {
  padding: 4px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #1B3B6F;
  line-height: 1.25;
  letter-spacing: .02em;
}
/* 元データにナビの下線ホバーは存在しない（色も変化しない） */
.rh-header__nav .header__nav-item a::after { content: none; }
.rh-header__nav .header__nav-item a:hover { color: #1B3B6F; }

/* 元データ: .hd nav a .en{font-size:13px;font-weight:700;letter-spacing:.16em;line-height:1;color:#3C6DA8} */
.rh-header__nav .header__nav-en {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  color: #3C6DA8;
}
/* 元データ: .hd nav a .ja{line-height:1;margin-top:5px} ＋ 親から14px/700/#1B3B6F を継承 */
.rh-header__nav .header__nav-ja {
  font-size: 14px;
  font-weight: 700;
  color: #1B3B6F;
  line-height: 1;
  margin-top: 5px;
}

/* 元データ: row の gap 16px が nav|tel|CTA すべてに効く */
.rh-header__right { gap: 16px; }

/* 元データ: .hd .tel{flex-direction:column;align-items:flex-start;padding-left:20px;margin-left:4px;border-left:1px solid #E3E7EE} */
.rh-header__tel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 20px;
  margin-left: 4px;
  border-left: 1px solid #E3E7EE;
}
/* 元データ: .hd .tel a{font-size:28px;font-weight:700;letter-spacing:.03em;line-height:1;color:#1B3B6F} — アイコン無し */
.rh-header__tel .header__tel {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
  color: #1B3B6F;
}
.rh-header__tel .header__tel::before { content: none; }
.rh-header__tel .header__tel:hover { opacity: 1; color: #1B3B6F; }
/* 元データ: .hd .tel span{font-size:11px;color:#6b7688;letter-spacing:.02em} */
.rh-header__tel-note {
  font-size: 11px;
  color: #6b7688;
  letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   ハンバーガー（元データ: .hd .burger — 52x52 ベタ塗り角型）
   ヘッダー行（width:96%）の右端・行の上下中央に見える位置に固定する
   -------------------------------------------------------------------------- */
.rh-nav-toggle {
  top: 15px;
  right: 2%;
  width: 52px;
  height: 52px;
  background: #1B3B6F;
  backdrop-filter: none;
  border-radius: 2px;
}
/* 元データ: .hd .burger span{width:22px;height:2px;background:#fff} / gap:5px を実数化 */
.rh-nav-toggle .nav-toggle__line {
  width: 22px;
  height: 2px;
  background: #fff;
}
.rh-nav-toggle .nav-toggle__line:nth-child(1) { top: 18px; }
.rh-nav-toggle .nav-toggle__line:nth-child(2) { top: 25px; }
.rh-nav-toggle .nav-toggle__line:nth-child(3) { top: 32px; }
.rh-nav-toggle.is-active .nav-toggle__line:nth-child(1) { top: 25px; }
.rh-nav-toggle.is-active .nav-toggle__line:nth-child(3) { top: 25px; }

/* --------------------------------------------------------------------------
   SPナビ（元データ: .hd .sp-menu — ヘッダー直下に開く白パネル）
   -------------------------------------------------------------------------- */
.rh-sp-nav {
  top: 82px;
  bottom: auto;
  display: block;
  padding: 8px 24px 24px;
  background: #fff;
  border-top: 1px solid #E3E7EE;
  max-height: calc(100vh - 82px);
  overflow-y: auto;
}
/* 元データ: sp-menu の項目は grid gap:2px、中央寄せしない */
.rh-sp-nav__list {
  display: grid;
  gap: 2px;
  width: 100%;
  max-width: none;
  text-align: left;
}
/* 元データにスタガー表示は無い（display:block で即時表示） */
.rh-sp-nav .sp-nav__item {
  border: 0;
  transform: none;
  opacity: 1;
  transition-delay: 0s;
}
.rh-sp-nav .sp-nav__item:first-child { border-top: 0; }
/* 元データ: .sp-menu a.item{display:flex;align-items:baseline;gap:12px;padding:16px 4px;border-bottom:1px solid #EDF0F5;font-size:16px;font-weight:700;color:#1B3B6F} */
.rh-sp-nav .sp-nav__link {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid #EDF0F5;
  font-size: 16px;
  font-weight: 700;
  color: #1B3B6F;
}
.rh-sp-nav .sp-nav__link::after { content: none; }
.rh-sp-nav .sp-nav__link:hover { background: transparent; color: #1B3B6F; }
/* 元データ: .sp-menu a.item .en{font-size:11px;letter-spacing:.14em;color:#8b97ad;font-weight:600} */
.rh-sp-nav .sp-nav__en {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: #8b97ad;
  opacity: 1;
  margin-right: 0;
  padding-left: 0;
}
/* 元データ: sp-menu の CTA は margin-top:20px の全幅ボタン */
.rh-sp-nav .sp-nav__bottom {
  margin-top: 0;
  max-width: none;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

/* ==========================================================================
   4. お問い合わせCTA帯（元データ: .cta-band）
   ========================================================================== */
.rh-cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(80px, 9vw, 130px);
  /* テクスチャ画像が出ない場合のフォールバック。
     これが無いと帯が白くなり、白枠・白文字のゴーストボタンが見えなくなる */
  background-color: #1B3B6F;
}
/* 元データ: .cta-band::before{inset:-12px; linear-gradient(rgba(0,0,0,.10)...); filter:blur(6px)} */
.rh-cta::before {
  content: "";
  position: absolute;
  inset: -12px;
  background-image: linear-gradient(rgba(0, 0, 0, .10), rgba(0, 0, 0, .10)),
                    url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28688/grad-a.jpg);
  background-size: cover;
  background-position: center;
  filter: blur(6px);
}
.rh-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(28px, 3.4vw, 44px) 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
.rh-cta__body {
  flex: 1 1 360px;
  min-width: 0;
}
.rh-cta__ttl {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.5;
  text-wrap: pretty;
}
.rh-cta__lead {
  margin: 0;
  font-size: 15px;
  color: #fff;
  line-height: 1.8;
  font-weight: 500;
}
.rh-cta__note {
  margin: 8px 0 0;
  font-size: 15px;
  color: #fff;
  line-height: 1.8;
  font-weight: 500;
}

/* ==========================================================================
   5. フッター（元データ: .ft）
   ========================================================================== */
.rh-footer {
  position: relative;
  overflow: hidden;
  background-color: #14243f;
  background-image: linear-gradient(rgba(20, 36, 63, .86), rgba(20, 36, 63, .86)),
                    url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28688/grad-c.jpg);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.rh-footer__body { padding: 0; }
/* 元データ: .ft .inner{max-width:1400px;padding:72px 24px 40px;grid auto-fit minmax(280px,1fr);gap:48px} */
.rh-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}
/* 元データ: .ft p{color:#c6cfdd;font-size:14px;line-height:2} ＋ 段落間 18px */
.rh-footer__col p {
  color: #c6cfdd;
  font-size: 14px;
  line-height: 2;
  margin: 0 0 18px;
}
.rh-footer__col p:last-child { margin-bottom: 0; }
/* 元データ: フッターロゴ width:100%;max-width:280px;filter:brightness(0) invert(1) */
.rh-footer__logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}
/* 元データ: .ft a{color:#fff;font-size:15px;font-weight:500} a:hover{color:#fb6914} */
.rh-footer a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.rh-footer a:hover { color: #fb6914; }
.rh-footer__nav {
  display: grid;
  gap: 12px;
}
/* 元データ: .ft .copy{border-top:1px solid rgba(255,255,255,.15)} */
.rh-footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding: 0;
  text-align: left;
}
/* 元データ: .ft .copy p{max-width:1400px;margin:0 auto;padding:20px 24px;font-size:12px;letter-spacing:.12em;color:#8b97ad} ＋ .ft p の line-height:2 を継承 */
.rh-footer__copyright {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
  font-size: 12px;
  line-height: 2;
  letter-spacing: .12em;
  color: #8b97ad;
}

@media screen and (max-width: 639px) {
  /* 元データにSP固定バーは無いため、共通CSSの下端余白を戻す */
  .rh-footer__bottom { padding-bottom: 0; }

  /* SPではフッターナビを出さない（ナビはハンバーガーメニューに集約）。
     グリッドに空セルを残さないよう、列ごと非表示にする */
  .rh-footer__col--nav { display: none; }

  /* SPではフッターロゴを縮小。
     ロゴ原寸 725x291(2.49:1) のため、PCの max-width:280px では高さ112pxになり
     画面幅に対して大きすぎる。180px（高さ約72px）に落とす */
  .rh-footer__logo { max-width: 180px; }
}

/* ==========================================================================
   6. スクロールフェードイン
   ラフ「スクロールでセクションが下から軽くフェードイン（移動量20px程度）」
   ========================================================================== */
/* 初期状態(opacity:0)は .js（head.php で付与）配下でのみ適用する。
   JS無効時は何も隠さず、通常どおり表示される。 */
.js .rh-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .rh-fade.is-shown {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .rh-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   7. TOP：メインビジュアル（元データ: index.php 第1セクション）
   ========================================================================== */
.rh-mv { background: #fff; }
/* 元データ: padding:clamp(56px,7vw,96px) 24px clamp(40px,5vw,64px); text-align:center
   キャッチ背面にイラストを敷くため position:relative を追加 */
.rh-mv__head {
  position: relative;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 64px);
  text-align: center;
}

/* -- キャッチ背面のイラスト（名刺と共通の手描き街並み / illust.png） --
   ・元画像は黒の線画（透過PNG）。そのまま敷くと黒が浮くので、
     アルファをマスクとして使いメインカラー #1B3B6F に着色している
   ・mask-size:contain ＋ 下揃えのため、見出し枠の高さに合わせて自動で縮む
     （PC:横675px前後 / SP:横360px前後。写真の上辺に街並みが載る見え方）
   ・マスク非対応ブラウザでネイビーのベタ塗り矩形が出ないよう、
     background-color ごと @supports の中に入れている */
.rh-mv__illust {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .rh-mv__illust {
    background-color: #1B3B6F;
    /* 背面に敷く装飾。文字の可読性を落とさない濃さに留める */
    opacity: .1;
    -webkit-mask-image: url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28688/illust.png);
            mask-image: url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28688/illust.png);
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center bottom;
            mask-position: center bottom;
    -webkit-mask-size: contain;
            mask-size: contain;
  }
}
/* 見出しはイラストより前面に置く */
.rh-mv__en,
.rh-mv__ja { position: relative; z-index: 1; }
/* 元データ: font-family:Barlow; font-size:clamp(48px,9vw,116px); line-height:1; font-weight:600; letter-spacing:.02em; color:#1B3B6F */
.rh-mv__en {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: clamp(48px, 9vw, 116px);
  line-height: 1;
  font-weight: 600;
  margin: 0;
  letter-spacing: .02em;
  color: #1B3B6F;
}
/* 元データ: font-size:clamp(22px,3.4vw,40px); font-weight:900; margin:clamp(28px,3.4vw,44px) 0 0; line-height:1.6; letter-spacing:.01em */
.rh-mv__ja {
  font-size: clamp(22px, 3.4vw, 40px);
  font-weight: 900;
  margin: clamp(28px, 3.4vw, 44px) 0 0;
  line-height: 1.6;
  color: #1B3B6F;
  text-wrap: pretty;
  letter-spacing: .01em;
}
/* 元データ: MV内のハイライト color:#e35a08 */
.rh-mv__accent { color: #e35a08; }

/* 元データ: img{width:96%;margin:0 auto;height:clamp(240px,42vw,560px);object-fit:cover}
   CMSスライダー差し替えのため外枠(#slideshow)に高さを持たせ、中身は100%追従させる */
.rh-mv__slideshow {
  width: 96%;
  margin: 0 auto;
  height: clamp(240px, 42vw, 560px);
}
.rh-mv__slideshow .swiper-slide,
.rh-mv__slideshow .main_slider__inner {
  height: 100%;
}
.rh-mv__slideshow img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 元データ: index / company / works は末尾に110pxの余白を持つ（service / contact は無し） */
.rh-main--tail { padding-bottom: 110px; }

/* ==========================================================================
   8. セクション共通（余白 / 見出し / 本文 / グリッド）
   ========================================================================== */
/* 元データ: 標準セクション padding:clamp(64px,9vw,110px) 24px 0 */
.rh-sec-pt      { padding-top: clamp(64px, 9vw, 110px); }
/* 元データ: company 各セクション padding:clamp(58px,7.5vw,96px) 24px 0 */
.rh-sec-pt--sm  { padding-top: clamp(58px, 7.5vw, 96px); }
/* 元データ: WHY US padding:clamp(60px,8vw,100px) 24px（上下とも） */
.rh-sec-py--why { padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 100px); }
/* 元データ: 110px のセクション間マージン */
.rh-sec-mt-110  { margin-top: 110px; }


/* --------------------------------------------------------------------------
   セクション見出し（元データ: .sec-en / .sec-ja）
   -------------------------------------------------------------------------- */
/* 元データ: .sec-en{font-size:clamp(40px,5vw,60px);letter-spacing:.06em;color:#1B3B6F;margin:0 0 2px;font-weight:700;line-height:1.05} */
.rh-sec-head .heading__en {
  display: block;
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: .06em;
  color: #1B3B6F;
  margin: 0 0 2px;
  font-weight: 700;
  line-height: 1.05;
}
/* 元データ: .sec-ja{font-size:19px;font-weight:700;margin:0 0 12px;letter-spacing:.08em;color:#3c4657}
   ※ margin はショートハンドのため margin-top:8px（共通CSS）を打ち消す必要がある */
.rh-sec-head .heading__ja {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: .08em;
  color: #3c4657;
  line-height: 1.9;
}
/* 元データ: TOP「私たちの仕事」のみ inline で margin-bottom:28px に上書きされている */
.rh-sec-head--gap28 .heading__ja { margin-bottom: 28px; }
/* 元データ: company の HISTORY / GROUP は .sec-en を font-size:clamp(24px,2.4vw,30px) に縮小 */
.rh-sec-head--sm .heading__en { font-size: clamp(24px, 2.4vw, 30px); }

/* --------------------------------------------------------------------------
   本文（元データ: 本文段落の共通値）
   -------------------------------------------------------------------------- */
/* 元データ: font-size:16px;color:#3c4657;line-height:2.2;text-wrap:pretty */
.rh-text {
  margin: 0;
  font-size: 16px;
  color: #3c4657;
  line-height: 2.2;
  text-wrap: pretty;
}
/* 元データ: 15px 系の本文（why本文 line-height:1.8 / PARTNER line-height:2 等は個別指定） */
.rh-text--sm {
  margin: 0;
  font-size: 15px;
  color: #3c4657;
  line-height: 1.8;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   グリッド（元データ: repeat(auto-fit, minmax(X,1fr))）
   -------------------------------------------------------------------------- */
/* 元データ: minmax(320px,1fr); gap:clamp(32px,5vw,72px); align-items:center */
.rh-grid-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* ==========================================================================
   9. TOP：選ばれる理由（元データ: index.php WHY US セクション）
   ========================================================================== */
/* 元データ: background-color:#F2F4F7 ＋ rgba(242,244,247,.94) の二重レイヤー越しに grad-c.jpg */
.rh-why {
  background-color: #F2F4F7;
  background-image: linear-gradient(rgba(242, 244, 247, .94), rgba(242, 244, 247, .94)),
                    url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28688/grad-c.jpg);
  background-size: cover;
  background-position: center;
}
/* 元データ: minmax(290px,1fr); gap:clamp(32px,4vw,56px) */
.rh-grid-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(32px, 4vw, 56px);
}
/* 元データ: position:relative;padding-top:8px;margin-bottom:26px
   ※ padding-top:8px に対しタグが top:0 なので、タグは画像上端より8px上にはみ出す。
     この「はみ出し」は意図した設計のため overflow で切らない。 */
.rh-why__figure {
  position: relative;
  padding-top: 8px;
  margin-bottom: 26px;
}
/* 元データ: 画像プレースホルダ背景 #dfe4ec */
.rh-why__img { background: #dfe4ec; }

/* 元データ: .why-tag{position:absolute;top:0;left:28px;width:42px;padding:14px 0 18px;
   border-radius:0 0 21px 21px;color:#fff;font-weight:700;font-size:18px;letter-spacing:.12em} */
.rh-why__tag {
  position: absolute;
  top: 0;
  left: 28px;
  width: 42px;
  padding: 14px 0 18px;
  border-radius: 0 0 21px 21px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .12em;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 元データ: .why-tag::before{linear-gradient(rgba(20,36,63,.55) x2), url(grad-c.jpg)} */
.rh-why__tag::before {
  background-image: linear-gradient(rgba(20, 36, 63, .55), rgba(20, 36, 63, .55)),
                    url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28688/grad-c.jpg);
}
/* 元データ: writing-mode:vertical-rl */
.rh-why__tag-txt {
  writing-mode: vertical-rl;
  position: relative;
  z-index: 1;
}

/* 元データ: 英字は白ベタ。直後の見出しを margin-top:-28px で重ねる「ゴースト」表現。
   font-family:Barlow;font-size:clamp(34px,3.8vw,48px);font-weight:700;
   letter-spacing:.04em;line-height:1;color:#fff;margin:0 0 -6px */
.rh-why__en {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  color: #fff;
  margin: 0 0 -6px;
}
/* 元データ: position:relative;font-size:21px;font-weight:900;margin:-28px 0 14px;color:#1B3B6F;line-height:1.6 */
.rh-why__ttl {
  position: relative;
  font-size: 21px;
  font-weight: 900;
  margin: -28px 0 14px;
  color: #1B3B6F;
  line-height: 1.6;
}

/* ==========================================================================
   10. 施工事例カード（元データ: index.php WORKS / works.php ギャラリー）
   ========================================================================== */
/* 元データ: display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap */
.rh-works__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
/* 元データ: minmax(min(100%,520px),1fr); gap:48px 40px */
.rh-grid-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 48px 40px;
}
/* 元データ: position:relative;display:block（hover演出は元データに無し） */
.rh-work-card {
  position: relative;
  display: block;
}
/* 元データ: 画像プレースホルダ背景 #E3E7EE */
.rh-work-card__img { background: #E3E7EE; }
/* 元データ: position:absolute;top:24px;left:24px;font-size:19px;font-weight:500;color:#fff;
   text-shadow:0 1px 12px rgba(0,0,0,.45) */
.rh-work-card__name {
  position: absolute;
  top: 24px;
  left: 24px;
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

/* ==========================================================================
   11. TOP：協業様のご案内（元データ: index.php PARTNER セクション）
   ========================================================================== */
/* 元データ: border:1px solid #1B3B6F;padding:clamp(28px,3.4vw,48px) clamp(20px,3.4vw,48px) clamp(20px,3.4vw,48px);
   max-width:900px;margin:0 auto;display:flex;flex-wrap:wrap;gap:24px 40px;align-items:center */
.rh-partner {
  position: relative;
  border: 1px solid #1B3B6F;
  padding: clamp(28px, 3.4vw, 48px) clamp(20px, 3.4vw, 48px) clamp(20px, 3.4vw, 48px);
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
}
/* 元データ: 枠線の上端をまたぐ英字ラベル。background:#fff で罫線を抜く。
   top:0;left:clamp(20px,3.4vw,48px)（＝枠の左padding）;transform:translateY(-50%) */
.rh-partner__en {
  position: absolute;
  top: 0;
  left: clamp(20px, 3.4vw, 48px);
  transform: translateY(-50%);
  background: #fff;
  padding: 0 14px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: .1em;
  color: #1B3B6F;
  margin: 0;
  font-weight: 700;
  line-height: 1;
}
/* 元データ: flex:1 1 320px;min-width:0 */
.rh-partner__body {
  flex: 1 1 320px;
  min-width: 0;
}
/* 元データ: font-size:clamp(17px,1.9vw,26px);font-weight:900;margin:0 0 16px;color:#1B3B6F;line-height:1.6;text-wrap:balance */
.rh-partner__ttl {
  font-size: clamp(17px, 1.9vw, 26px);
  font-weight: 900;
  margin: 0 0 16px;
  color: #1B3B6F;
  line-height: 1.6;
  text-wrap: balance;
}
/* 元データ: font-size:15px;color:#3c4657;line-height:2;text-wrap:pretty */
.rh-partner__lead {
  margin: 0;
  font-size: 15px;
  color: #3c4657;
  line-height: 2;
  text-wrap: pretty;
}
/* 元データ: flex:0 0 auto;white-space:nowrap;padding:18px 32px;background:#1B3B6F;color:#fff;
   font-weight:900;font-size:15px;text-align:center;border-radius:2px */
.rh-partner__btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 18px 32px;
  background: #1B3B6F;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  text-align: center;
  border-radius: 2px;
}
.rh-partner__btn:hover { color: #fff; }

/* ==========================================================================
   12. 下層ページヒーロー（元データ: .page-head）
   ========================================================================== */
/* 元データ: .page-head{background:#1B3B6F;color:#fff} .page-head .inner{max-width:1400px;padding:72px 24px} */
.rh-page-head {
  background: #1B3B6F;
  color: #fff;
  padding-top: 72px;
  padding-bottom: 72px;
}
/* 元データ: .page-head .sec-en{color:#fff} */
.rh-sec-head--hero .heading__en { color: #fff; }
/* 元データ: .page-head h1{font-size:19px;font-weight:700;margin:0;letter-spacing:.08em;color:#c6cfdd} */
.rh-sec-head--hero .heading__ja {
  color: #c6cfdd;
  margin-bottom: 0;
}

/* ==========================================================================
   13. 会社概要ページ
   ========================================================================== */
/* -- 代表挨拶（元データ: font-size:16px;color:#3c4657;line-height:2.2;text-wrap:pretty） -- */
.rh-message {
  font-size: 16px;
  color: #3c4657;
  line-height: 2.2;
  text-wrap: pretty;
}
/* 元データ: 署名 font-size:15px;color:#1B3B6F;font-weight:700 */
.rh-message__sign {
  font-size: 15px;
  color: #1B3B6F;
  font-weight: 700;
}

/* -- 会社概要グリッド（元データ: minmax(340px,1fr); gap:clamp(40px,5vw,72px); align-items:start） -- */
.rh-grid-profile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

/* -- 会社概要テーブル（元データ: border-top:1px solid #dfe4ec ＋ 各行 border-bottom） -- */
.rh-profile { border-top: 1px solid #dfe4ec; }
/* 元データ: display:flex;flex-wrap:wrap;gap:8px 24px;padding:22px 8px;border-bottom:1px solid #dfe4ec */
.rh-profile__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 22px 8px;
  border-bottom: 1px solid #dfe4ec;
}
/* 元データ: font-weight:700;color:#1B3B6F;font-size:15px;flex:0 0 140px */
.rh-profile__label {
  margin: 0;
  font-weight: 700;
  color: #1B3B6F;
  font-size: 15px;
  flex: 0 0 140px;
}
/* 元データ: font-size:15px;color:#3c4657;line-height:1.9;text-wrap:pretty;flex:1 1 200px;min-width:0 */
.rh-profile__data {
  margin: 0;
  font-size: 15px;
  color: #3c4657;
  line-height: 1.9;
  text-wrap: pretty;
  flex: 1 1 200px;
  min-width: 0;
}

/* -- 右カラム（元データ: display:grid;gap:56px） -- */
.rh-profile__aside {
  display: grid;
  gap: 56px;
}
/* 元データ: h3{font-size:16px;font-weight:700;margin:0 0 24px;letter-spacing:.08em;color:#3c4657} */
.rh-sub-ttl {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: .08em;
  color: #3c4657;
}

/* -- 沿革（元データ: display:grid;border-left:2px solid #E3E7EE） -- */
.rh-history {
  display: grid;
  border-left: 2px solid #E3E7EE;
}
/* 元データ: display:flex;flex-wrap:wrap;gap:6px 24px;padding:16px 0 16px 24px */
.rh-history__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 16px 0 16px 24px;
}
/* 元データ: font-family:Barlow;font-size:18px;font-weight:600;color:#1B3B6F;letter-spacing:.04em;flex:0 0 110px */
.rh-history__year {
  margin: 0;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1B3B6F;
  letter-spacing: .04em;
  flex: 0 0 110px;
}
/* 元データ: font-size:15px;color:#3c4657;flex:1 1 180px;min-width:0 */
.rh-history__text {
  margin: 0;
  font-size: 15px;
  color: #3c4657;
  flex: 1 1 180px;
  min-width: 0;
}

/* -- 各種許可（元データ: margin-top:28px;background:#F2F4F7;padding:24px 28px） -- */
.rh-license {
  margin-top: 28px;
  background: #F2F4F7;
  padding: 24px 28px;
}
/* 元データ: margin:0 0 8px;font-weight:700;color:#1B3B6F;font-size:15px */
.rh-license__label {
  margin: 0 0 8px;
  font-weight: 700;
  color: #1B3B6F;
  font-size: 15px;
}
/* 元データ: margin:0;font-size:15px;color:#3c4657 */
.rh-license__text {
  margin: 0;
  font-size: 15px;
  color: #3c4657;
}

/* -- 関連会社（元データ: 社名 margin:0 0 16px;font-size:20px;font-weight:900;color:#1B3B6F;line-height:1.3） -- */
.rh-group__name {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 900;
  color: #1B3B6F;
  line-height: 1.3;
}
/* 元データ: margin:0;font-size:15px;color:#3c4657;line-height:2.1;text-wrap:pretty */
.rh-group__text {
  margin: 0;
  font-size: 15px;
  color: #3c4657;
  line-height: 2.1;
  text-wrap: pretty;
}

/* -- アクセス（元データ: 住所 margin:0 0 20px;font-size:15px;color:#3c4657 / 地図 height:400px） -- */
.rh-access__address {
  margin: 0 0 20px;
  font-size: 15px;
  color: #3c4657;
}
.rh-access__map {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ==========================================================================
   14. 事業内容ページ
   ========================================================================== */
/* 元データ: リード padding:88px 24px 0 / 事業紹介 padding:80px 24px 0 */
.rh-sec-pt-88 { padding-top: 88px; }
.rh-sec-pt-80 { padding-top: 80px; }

/* 元データ: font-size:clamp(18px,2.2vw,22px);line-height:2.1;font-weight:700;color:#1B3B6F;text-wrap:pretty */
.rh-lead {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 2.1;
  font-weight: 700;
  color: #1B3B6F;
  text-wrap: pretty;
}
/* 元データ: margin:22px 0 0;font-size:16px;color:#3c4657;line-height:2.1 */
.rh-lead__sub {
  margin: 22px 0 0;
  font-size: 16px;
  color: #3c4657;
  line-height: 2.1;
}

/* 元データ: 事業紹介セクションは display:grid;gap:80px（ブロック間） */
.rh-service {
  display: grid;
  gap: 80px;
}
/* 元データ: minmax(300px,1fr); gap:48px; align-items:center */
.rh-grid-service {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
}
/* 元データ: 画像プレースホルダ背景 #E3E7EE */
.rh-service__img { background: #E3E7EE; }
/* 元データ: font-family:Barlow;font-size:44px;line-height:1;color:#fb6914;margin:0 0 12px;font-weight:700 */
.rh-service__no {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 44px;
  line-height: 1;
  color: #fb6914;
  margin: 0 0 12px;
  font-weight: 700;
}
/* 元データ: font-size:clamp(22px,2.6vw,28px);font-weight:900;margin:0 0 20px;color:#1B3B6F;line-height:1.6 */
.rh-service__ttl {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 900;
  margin: 0 0 20px;
  color: #1B3B6F;
  line-height: 1.6;
}

/* ==========================================================================
   15. 施工事例ページ
   ========================================================================== */
/* 元データ: ギャラリー padding:56px 24px 0 */
.rh-sec-pt-56 { padding-top: 56px; }

/* 元データ: margin:0 auto;font-size:16px;color:#3c4657;line-height:2.1;max-width:1000px;
   text-wrap:balance;text-align:center */
.rh-works__lead {
  margin: 0 auto;
  font-size: 16px;
  color: #3c4657;
  line-height: 2.1;
  max-width: 1000px;
  text-wrap: balance;
  text-align: center;
}

/* -- 物件見出し（元データは1カット＝1物件だったが、実績写真が物件あたり7〜8枚
      支給されたため、物件ごとのグループ見出し＋写真グリッドの構成に変更） -- */
/* 色・太さは元データの物件名（700/#1B3B6F）を踏襲し、業種タグを右に置く */
.rh-works-group__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #DCE2EC;
}
.rh-works-group__name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1B3B6F;
  line-height: 1.6;
}
.rh-works-group__type {
  flex: none;
  padding: 4px 12px;
  background: #EEF2F8;
  color: #3C6DA8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.6;
}
@media (max-width: 599px) {
  .rh-works-group__name { font-size: 18px; }
}

/* 元データ: minmax(min(100%,420px),1fr); gap:48px 40px
   物件名を見出しへ出したぶん、写真同士の行間は詰める */
.rh-grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px 24px;
}
/* 元データ: cursor:pointer の div。キーボード操作のため button 要素にし、見た目は素の div に揃える */
.rh-gallery__item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
/* 元データ: 画像 background:#E3E7EE;margin-bottom:18px
   写真1枚ごとのキャプションが無くなったため margin-bottom は持たせない */
.rh-gallery__img {
  background: #E3E7EE;
}

/* -- ライトボックス（元データ: .lb） -- */
/* 元データ: position:fixed;inset:0;z-index:200;background:rgba(12,22,42,.88);display:none;
   flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:40px 24px;cursor:zoom-out */
.rh-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 22, 42, .88);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 24px;
  cursor: zoom-out;
}
.rh-lb.is-open { display: flex; }
/* 元データ: height:min(68vh,…);aspect-ratio:4/3;object-fit:cover
   支給写真は縦位置（3:4）が大半で、4:3固定だと上下が大きく切れてしまうため、
   拡大時はトリミングせず全体を収める（縦横どちらの写真も原寸比のまま表示）*/
.rh-lb img {
  max-height: min(72vh, 900px);
  max-width: min(1100px, 100vw - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #E3E7EE;
}
/* 元データ: margin:0;color:#fff;font-size:17px;font-weight:700;letter-spacing:.04em */
.rh-lb p {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
}
/* 物件内の何枚目か（例：3 / 8） */
.rh-lb__count {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
/* -- 前後送り（同じ物件の写真内を循環）-- */
.rh-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}
.rh-lb__nav--prev { left: 28px; }
.rh-lb__nav--next { right: 28px; }
.rh-lb__nav:hover {
  background: #fff;
  color: #1B3B6F;
}
.rh-lb__nav[hidden] { display: none; }
@media (max-width: 767px) {
  .rh-lb__nav { width: 40px; height: 56px; font-size: 24px; }
  .rh-lb__nav--prev { left: 8px; }
  .rh-lb__nav--next { right: 8px; }
}
/* 元データ: position:absolute;top:24px;right:28px;width:44px;height:44px;
   border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;
   font-size:20px;line-height:1;cursor:pointer;border-radius:2px */
.rh-lb__close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}
.rh-lb__close:hover {
  background: #fff;
  color: #1B3B6F;
}

/* ==========================================================================
   16. お問い合わせページ
   ========================================================================== */
/* 元データ: フォーム区画 padding:48px 24px 0 */
.rh-sec-pt-48 { padding-top: 48px; }

/* --------------------------------------------------------------------------
   CMSお問い合わせフォーム（cms_id=7 / design_pattern=1）
   出力構造： .form-contents.form-pattern-1 > form > dl > dt/dd

   ■ 詳細度についての注意
   CMSは実行時に <link href=".../css/cms/mail-form.css"> を body 内へ注入するため、
   同じ詳細度では mail-form.css が後勝ちになる。
   そのため全セレクタを .rh-cms-form で包み、CMS側より必ず高い詳細度にしている。
   -------------------------------------------------------------------------- */
.rh-cms-form {
  width: 100%;
}
.rh-cms-form .form-contents.form-pattern-1 {
  padding: 0;
  margin: 0;
  background: transparent;
}
/* dt/dd：CMS既定の左寄せ2カラム（float）を解除して縦積みに戻す。
   CMSは1つの <dl> の中に全項目の dt/dd を並べて出力するため、
   項目間の余白は dl ではなく dd の下に持たせる（dl に付けても最終項目の下にしか効かない）。
   元データ: 項目間 28px（form の gap）／ラベル〜入力欄 10px */
.rh-cms-form .form-contents.form-pattern-1 form dl {
  margin: 0 0 28px;
}
.rh-cms-form .form-contents.form-pattern-1 form dl dt:not(.pattern-exclusion) {
  float: none;
  width: auto;
  padding-top: 0;
  margin: 0 0 10px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: #1B3B6F;
  line-height: normal;
}
.rh-cms-form .form-contents.form-pattern-1 form dl dd:not(.pattern-exclusion) {
  padding: 0;
  /* 入力欄の下＝次の項目名との間。ここが 0 だとラベルが入力欄にくっつく */
  margin: 0 0 28px;
  border-bottom: none;
  line-height: normal;
}
/* 最終項目の下は dl の margin-bottom:28px ＋ 送信ボタンの margin-top:12px で
   元データ（form gap 28px ＋ 送信ラッパー margin-top 12px）と同じ 40px になる */
.rh-cms-form .form-contents.form-pattern-1 form dl dd:not(.pattern-exclusion):last-of-type {
  margin-bottom: 0;
}
/* 必須／任意バッジ：CMSは ::before（ラベル前）。元データはラベル後ろなので ::after に付け替える */
.rh-cms-form .form-contents.form-pattern-1 form dl dt:not(.pattern-exclusion) span.required::before,
.rh-cms-form .form-contents.form-pattern-1 form dl dt:not(.pattern-exclusion) span.optional::before {
  content: none;
}
.rh-cms-form .form-contents.form-pattern-1 form dl dt:not(.pattern-exclusion) span.required::after,
.rh-cms-form .form-contents.form-pattern-1 form dl dt:not(.pattern-exclusion) span.optional::after {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: normal;
  border-radius: 0;
  position: static;
  top: auto;
  vertical-align: middle;
}
/* 元データ: .f-req{color:#fff;background:#fb6914} */
.rh-cms-form .form-contents.form-pattern-1 form dl dt:not(.pattern-exclusion) span.required::after {
  content: "必須";
  color: #fff;
  background: #fb6914;
  border: 0;
}
/* 元データ: .f-opt{color:#6b7688;border:1px solid #cfd6e2;background:transparent} */
.rh-cms-form .form-contents.form-pattern-1 form dl dt:not(.pattern-exclusion) span.optional::after {
  content: "任意";
  color: #6b7688;
  background: transparent;
  border: 1px solid #cfd6e2;
}
/* 入力欄：元データ padding:14px 16px / border 1px #cfd6e2 / radius 2px / 16px */
.rh-cms-form .form-contents.form-pattern-1 dd:not(.pattern-exclusion) .textarea,
.rh-cms-form .form-contents.form-pattern-1 dd:not(.pattern-exclusion) .textarea-serect {
  width: 100%;
  height: auto;
  padding: 14px 16px;
  border: 1px solid #cfd6e2;
  border-radius: 2px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.9;
  color: #14243f;
  background: #fff;
  transition: border-color .3s ease;
}
.rh-cms-form .form-contents.form-pattern-1 dd:not(.pattern-exclusion) input.textarea {
  height: auto;
}
/* 元データは rows="8"（16px × 1.9 × 8行 + padding28 + border2 = 273px）。CMSの既定行数を実数で上書き */
.rh-cms-form .form-contents.form-pattern-1 dd:not(.pattern-exclusion) textarea.textarea {
  height: 273px;
  resize: vertical;
}
.rh-cms-form .form-contents.form-pattern-1 dd:not(.pattern-exclusion) .textarea:focus,
.rh-cms-form .form-contents.form-pattern-1 dd:not(.pattern-exclusion) .textarea-serect:focus {
  border-color: #1B3B6F;
  outline: none;
}
/* 送信ボタン：元データのテクスチャボタン（padding:20px 72px / 17px / 900 / radius2） */
.rh-cms-form .form-contents.form-pattern-1 .submit-btn,
.rh-cms-form .form-contents.form-pattern-1 :not(.pattern-exclusion) button.submit-btn,
.rh-cms-form .form-contents.form-pattern-1 :not(.pattern-exclusion) input.submit-btn,
.rh-cms-form .form-contents.form-pattern-1 :not(.pattern-exclusion) input[type="submit"] {
  position: relative;
  /* CMSのボタンはラベルが素のテキストノードで、spanで包めない。
     z-index:0 でボタン自身に重なり文脈を作り、::before を z-index:-1 に落として
     文字の下に敷く（.rh-tex の「> span を z-index:1」方式が使えないため） */
  z-index: 0;
  overflow: hidden;
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 20px 72px;
  /* CMSの送信ボタンが <input type="submit"> の場合、::before は生成されない。
     テクスチャを要素自身の背景にも敷き、さらに単色のフォールバックを置くことで
     「背景透明＋白文字＝見えない」状態を防ぐ */
  background-color: #1B3B6F;
  background-image: url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28688/grad-a.jpg);
  background-size: cover;
  background-position: center;
  color: #fff;
  border: 0;
  border-radius: 2px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  /* ネイティブのボタン描画を解除（解除しないと背景指定が効かないブラウザがある） */
  -webkit-appearance: none;
          appearance: none;
}
.rh-cms-form .form-contents.form-pattern-1 .submit-btn::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  background-image: url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28688/grad-a.jpg);
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  /* CMS既定の封筒アイコン（maskで描画）を解除してテクスチャ専用にする */
  -webkit-mask-image: none;
          mask-image: none;
  margin: 0;
}
/* CMSが ::after でアイコンや矢印を足す場合も消す（元データにアイコンは無い） */
.rh-cms-form .form-contents.form-pattern-1 .submit-btn::after {
  content: none;
}
.rh-cms-form .form-contents.form-pattern-1 .submit-btn:hover,
.rh-cms-form .form-contents.form-pattern-1 :not(.pattern-exclusion) button.submit-btn:hover,
.rh-cms-form .form-contents.form-pattern-1 :not(.pattern-exclusion) input.submit-btn:hover,
.rh-cms-form .form-contents.form-pattern-1 :not(.pattern-exclusion) input[type="submit"]:hover {
  opacity: .88;
  color: #fff;
}

/* ==========================================================================
   17. ユーティリティ（最後に読み込み、コンポーネントの値を上書きできるようにする）
   共通CSSの main.css と同じ設計意図：utility を末尾に置くことで、
   同じ詳細度ならコンポーネント側ではなく utility が勝つ。
   ========================================================================== */
/* 固定margin（共通の .mb-* は tablet 以下で自動半減するため、元データの実数維持用） */
.rh-mb-12 { margin-bottom: 12px; }
.rh-mb-16 { margin-bottom: 16px; }
.rh-mb-18 { margin-bottom: 18px; }
.rh-mb-20 { margin-bottom: 20px; }
.rh-mb-22 { margin-bottom: 22px; }
.rh-mb-24 { margin-bottom: 24px; }
.rh-mb-26 { margin-bottom: 26px; }
.rh-mb-28 { margin-bottom: 28px; }
.rh-mb-32 { margin-bottom: 32px; }
.rh-mb-40 { margin-bottom: 40px; }
.rh-mb-48 { margin-bottom: 48px; }

/* 元データ: リード2段落目 / 締めのブロック max-width:900px */
.rh-mw-900 { max-width: 900px; }

/* 元データの高さ固定スペーサー（見出し直下の間隔） */
.rh-gap-32 { height: 32px; }
.rh-gap-44 { height: 44px; }

/* ==========================================================================
   18. OPローダー（ロゴのズームアップ → ゆっくりフェードアウト）
   ラフ「インタラクションレベルは低〜中」「派手な演出は使わない」に合わせ、
   動きは拡大のみ・尺は長め・イージングは減速でまとめる。

   タイムライン（全体 2.4s）
     0.00s  ロゴ  opacity 0 / scale .88
     0.91s  ロゴ  opacity 1 / scale 1     … ズームアップ完了
     1.49s  ホールド
     2.40s  ロゴ  opacity 0 / scale 1.06  ＋ 白背景も opacity 0 へ（0.91s かけて）
   ========================================================================== */
/* JS無効時はローダー自体を出さない（覆われたままになるのを防ぐ） */
.rh-loader { display: none; }

.js .rh-loader {
  display: flex;
  position: fixed;
  inset: 0;
  /* ライトボックス(200)より上。サイト内で最前面 */
  z-index: 300;
  align-items: center;
  justify-content: center;
  background: #fff;
  animation: rh-loader-out 2.4s ease forwards;
}
.js .rh-loader__logo {
  width: min(320px, 62vw);
  height: auto;
  animation: rh-loader-logo 2.4s ease forwards;
}

/* 同一セッションで再生済みなら最初から出さない（ページ遷移のたびに再生しない） */
.rh-op-done .rh-loader { display: none; }

@keyframes rh-loader-out {
  0%, 62% { opacity: 1; visibility: visible; }
  100%    { opacity: 0; visibility: hidden; }
}
@keyframes rh-loader-logo {
  0%   { opacity: 0; transform: scale(.88); }
  38%  { opacity: 1; transform: scale(1); }
  62%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}

/* 動きを減らす設定の環境では演出そのものを出さない */
@media (prefers-reduced-motion: reduce) {
  .js .rh-loader { display: none; }
}
