/* ==============================================================
# 販売パートナー募集（/sales-partner/）専用
#  ・HubSpot LP（lp.virtual-restaurant.co.jp/ja/sales-partner）から移設
#  ・レイアウトは HTML のインライン style が中心。ここでは SP 用の上書きとフォームの見た目を持つ
#  ・すべて .lp から書き始め、共通の style.css / reset.css には手を入れない
=========================================================== */

/* ページ内リンクは common.js を外して（index.html 末尾）ブラウザの smooth scroll に任せる */
html { scroll-behavior: smooth; }

/* --------------------
   ベース
   共通の reset.css（destyle）は全要素を border-box にし、見出しの大きさ・太さも消している。
   移設元はブラウザ初期値の前提で組まれているので、.lp の中だけ初期値に戻す
-------------------- */
.lp {
  display: flex;
  flex-direction: column;
  background: #FBF7F0;
  font-family: 'Noto Sans JP', sans-serif;
  color: #1F1B16;
  line-height: normal;
  overflow-x: hidden;
}

.lp *,
.lp *::before,
.lp *::after { box-sizing: content-box; }

.lp h1, .lp h2, .lp h3 { font-weight: bold; }
.lp h1 { font-size: 2em; }
.lp h2 { font-size: 1.5em; }
.lp h3 { font-size: 1.17em; }

.lp a { color: #B84A00; text-decoration: underline; }
.lp a:hover { color: #8A3700; }

/* ヘッダーは共通の header-lower.html ではなく、移設元のページ内メニュー付きヘッダー（.lp > header）。固定表示はしない */
.lp > header,
.lp > section {
  padding-left: max(56px, calc((100% - 1168px) / 2)) !important;
  padding-right: max(56px, calc((100% - 1168px) / 2)) !important;
}

.lp [style*="width: 960px"] { width: 100% !important; max-width: 960px; }

/* ロゴは下層ヘッダー（header-lower.html）と同じ画像・同じ表示幅にそろえる */
.lp-header__logo { width: 120px; height: auto; }

@media screen and (min-width: 768px) {
  .lp-header__logo { width: 250px; }
}

@media screen and (min-width: 1228px) {
  .lp-header__logo { width: 220px; }
}

/* ロゴを下層と同じ大きさにすると、1227px 以下ではページ内メニューが折り返すので、
   共通ヘッダーと同じく PC 未満では「お問い合わせ」ボタンだけ残す */
@media screen and (max-width: 1227px) {
  .lp > header nav { gap: 12px !important; }
  .lp > header nav a:not(:last-child) { display: none !important; }
}

/* --------------------
   画像
-------------------- */
.lp-img { background: #EDE4D6; box-sizing: border-box; }
.lp-img img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; }
.lp-img-contain { background: transparent; }
.lp-img-contain img { object-fit: contain; }

.lp img.lp-img__fv2 { object-position: center 40% !important; }
.lp img.lp-img__fv3 { object-position: 35% 60% !important; }
.lp img.lp-img__fv4 { object-position: 55% 55% !important; }
.lp img.lp-img__service1 { object-position: center center !important; }
.lp img.lp-img__service2 { object-position: center center !important; }
.lp img.lp-img__merit1 { object-position: 55% 40% !important; }
.lp img.lp-img__merit3 { object-position: 60% 40% !important; }
.lp img.lp-img__merit4 { object-position: 70% 40% !important; }

/* --------------------
   HubSpot フォーム（埋め込み時に css: '' で HubSpot 既定の見た目を外している）
-------------------- */
.lp-form .hs-form-field { margin-bottom: 20px; }
.lp-form .hs-form-field > label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.lp-form .hs-form-required { color: #B3261E; margin-left: 4px; }
.lp-form input.hs-input:not([type=checkbox]):not([type=radio]),
.lp-form select.hs-input { width: 100% !important; height: 48px; box-sizing: border-box; padding: 0 14px; border: 1px solid #CFC5B6; border-radius: 10px; font-size: 15px; font-family: inherit; background: #FFFFFF; }
.lp-form textarea.hs-input { width: 100% !important; min-height: 120px; box-sizing: border-box; padding: 12px 14px; border: 1px solid #CFC5B6; border-radius: 10px; font-size: 15px; font-family: inherit; }
.lp-form fieldset { max-width: none !important; }
.lp-form .inputs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.lp-form .inputs-list label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
.lp-form .hs-error-msgs { list-style: none; padding: 0; margin: 6px 0 0; color: #B3261E; font-size: 13px; }
.lp-form .legal-consent-container { font-size: 13px; line-height: 1.7; color: #5C5347; }
.lp-form .hs_submit { text-align: center; margin-top: 12px; }
.lp-form .hs-button { height: 64px; padding: 0 56px; border: 0; border-radius: 999px; background: #B84A00; color: #FFFFFF; font-size: 18px; font-weight: 700; font-family: inherit; cursor: pointer; }
.lp-form .hs-button:hover { background: #8A3700; }

/* 共通 style.css の HubSpot フォーム用ルール（スコープなし）と img { width: 100% } を打ち消す */
/* auto だと画像本来の幅になるので、revert-layer で HubSpot 側の width 属性（ロゴは 300px）に戻す */
.lp-form img { width: revert-layer; height: auto; }
.lp-form .hs-richtext h1 { margin: .67em 0; }
.lp-form .hs-richtext h4 { margin: 1.33em 0; }
/* 移設元はフォームの前に空の見出し（h3.form-title）があり、その余白ぶん下がっていた */
#sales-partner-form { margin-top: 18.72px; }
.lp-form .hs-main-font-element { margin-bottom: 0; }
.lp-form .hs-form-field span { font-weight: inherit; font-size: inherit; color: inherit; }
.lp-form .hs-form-required { color: #B3261E !important; }
.lp-form .inputs-list span { font-size: inherit; }
.lp-form .hs-form-radio-display { margin: 0; }
.lp-form .hs-form-radio-display .hs-input { margin-top: 3px; }
.lp-form .hs_phone { margin-top: 0; }

/* --------------------
   SP・タブレット（〜900px）
-------------------- */
@media (max-width: 900px) {
  .lp > header,
  .lp > section { padding-left: 20px !important; padding-right: 20px !important; }
  .lp > section { padding-top: 56px !important; padding-bottom: 56px !important; }
  .lp [style*="display: flex"]:not([style*="flex-direction: column"]) { flex-wrap: wrap; }
  .lp [style*="flex: 1 1 0"] { flex: 1 1 100% !important; min-width: 0; }
  .lp [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  .lp [style*="grid-template-columns: repeat(4"],
  .lp [style*="grid-template-columns: repeat(5"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lp [style*="width: 520px"],
  .lp [style*="width: 260px"],
  .lp [style*="width: 200px"],
  .lp [style*="width: 170px"] { width: 100% !important; }
  .lp [style*="height: 400px"] { height: auto !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: 120px; }
  .lp .lp-delivery-logos { flex-wrap: nowrap !important; }
  .lp .lp-delivery-logos > div[style*="flex: 1"] { padding: 0 6px !important; }
  .lp .lp-delivery-logos img { height: 24px !important; }
  .lp [style*="height: 340px"] { height: 220px !important; }
  .lp h1 { font-size: 32px !important; }
  .lp h2 { font-size: 26px !important; }
  .lp h3 { font-size: 22px !important; }
  .lp p br,
  .lp h2 br { display: none; }
  .lp [style*="font-size: 50px"],
  .lp [style*="font-size: 48px"],
  .lp [style*="font-size: 44px"] { font-size: 32px !important; }
  .lp-form { padding: 28px 20px !important; }
  #sales-partner-form { margin-top: 22px; }
  .lp a[style*="height: 60px"] { width: 100%; justify-content: center; }
}
