/* ============================================================
   製品ラインナップページ（products/index.html）専用スタイル
   ※ もとは products/index.html の <style> に直書きされていたものを分離
   ============================================================ */

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* 製品の本文：左にテキスト＋メリット、右に製品画像（元レイアウトに合わせる） */
.prod-split { display: flex; gap: 2.5rem; align-items: stretch; }
.prod-split__main { flex: 1 1 55%; min-width: 0; display: flex; flex-direction: column; }
.prod-split__main .policy-article__lead { margin-top: 0; }
.prod-split__media { flex: 1 1 45%; align-self: stretch; }
.prod-split__media img { width: 100%; height: 100%; min-height: 22rem; object-fit: cover; border-radius: 0.75rem; display: block; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }

/* メリットボックス（元 HTML の特徴ボックスを踏襲：1枚の枠内にチェックリスト） */
.prod-merit { flex: 1; background: #fff; border: 1px solid rgba(208, 208, 208, 0.5); border-radius: 0.75rem; padding: 2rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.prod-merit__title { display: flex; align-items: center; gap: 0.5rem; color: var(--c-dark-blue); font-weight: 700; font-size: 1.0625rem; margin: 0 0 1.5rem; }
.prod-merit__title .material-symbols-outlined { font-size: 1.375rem; }
.prod-merit__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.375rem; }
.prod-merit__item { display: flex; align-items: flex-start; gap: 0.75rem; }
.prod-merit__item > .material-symbols-outlined { color: var(--c-teal); flex-shrink: 0; margin-top: 0.125rem; }
.prod-merit__label { display: block; font-weight: 700; color: var(--c-text); margin-bottom: 0.25rem; }
.prod-merit__text { display: block; font-size: 0.9375rem; color: #646464; line-height: 1.7; }

@media (max-width: 768px) {
  .prod-split { flex-direction: column; gap: 1.5rem; }
  .prod-split__media img { height: auto; min-height: 0; }
}

/* ------------------------------------------------------------
   各製品画像の表示位置（手動調整用）
   画像は枠いっぱいに表示され、はみ出した部分は切り取られます。
   下の値を変えると「画像のどの部分を見せるか」を調整できます。
     値の例: center / top / bottom / left / right
            または「横 縦」のパーセント指定 → 例: 50% 30%
            （0% = 上端／左端、100% = 下端／右端）
   ------------------------------------------------------------ */
#auto-register  .prod-split__media img { object-position: center; } /* オートレジ */
#pos-register   .prod-split__media img { object-position: center; } /* POSレジ */
#self-terminal  .prod-split__media img { object-position: center; } /* セルフ端末 */
#gram-navi      .prod-split__media img { object-position: center; } /* グラムナビ */
#image-register .prod-split__media img { object-position: center; } /* 画像レジ */

/* 利用手順（トップページの「ご利用までの流れ」と同じスタイル） */
.prod-flow-title { text-align: center; font-weight: 700; font-size: 1.125rem; color: #1a1a1a; margin: 2.5rem 0 1.25rem; }
.flow-steps { display: flex; align-items: stretch; gap: 0.5rem; }
.flow-step { flex: 1; background: #fff; border-radius: 0.75rem; padding: 2rem 1.5rem; text-align: center; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }
.flow-step__img { display: block; width: auto; max-width: 6.5rem; max-height: 9rem; margin: 0 auto 1.25rem; }
.flow-step__num { font-size: 0.75rem; font-weight: 700; color: var(--c-teal); letter-spacing: 0.1em; margin-bottom: 0.75rem; line-height: 1; }
.flow-step__num span { display: block; font-size: 2rem; line-height: 1.2; }
.flow-step__title { font-weight: 700; font-size: 1rem; color: #1a1a1a; margin-bottom: 0.75rem; }
.flow-step__text { font-size: 0.875rem; color: #555; line-height: 1.7; }
.flow-step__arrow { color: var(--c-teal); font-size: 2rem; flex-shrink: 0; user-select: none; align-self: center; }

/* 精算フローのバリエーション（正常処理／計量なし／単独精算） */
.prod-flow-variant { margin-bottom: 2.5rem; }
.prod-flow-variant:last-child { margin-bottom: 0; }
.prod-flow-variant__label { display: flex; align-items: center; gap: 0.625rem; font-weight: 700; font-size: 1rem; color: var(--c-dark-blue); margin: 0 0 1rem; }
.prod-flow-variant__tag { display: inline-block; background: var(--c-teal); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.625rem; border-radius: 0.375rem; white-space: nowrap; }

/* 特徴ボックス内の補足注記 */
.prod-merit__note { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(208, 208, 208, 0.6); }
.prod-merit__note p { margin: 0 0 0.5rem; font-size: 0.8125rem; color: #646464; line-height: 1.7; }
.prod-merit__note p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .flow-steps { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .flow-step__arrow { transform: rotate(90deg); text-align: center; display: block; }
  .prod-flow-variant__label { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
}

/* ============================================================
   ソフトウェア ラインナップ カード（products/index.html 専用）
   shokudo_raku_link コンポーネントを踏襲。食堂楽はロゴ画像、
   クラウド食堂楽は gnav06、食堂楽Pay は専用画像が無いため
   Material Symbols（payments）を使用。
   ============================================================ */
#software_link { width: 100%; background: var(--c-light-bg); }
#software_link_inner { max-width: var(--c-max-width); margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
#software_link .software_link_tit { margin-bottom: 2.5rem; }
#software_link .swl_area ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
#software_link .swl_area li {
  flex: 1 1 0; min-width: 11rem; max-width: 18rem; display: flex; background: #fff;
  border-top: 0.25rem solid var(--c-teal); border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); transition: box-shadow .25s, transform .15s;
}
#software_link .swl_area li:hover { box-shadow: 0 4px 24px rgba(6, 97, 127, 0.12); transform: translateY(-0.25rem); }
#software_link .swl_card {
  display: flex; flex-direction: column; align-items: center; width: 100%;
  text-align: center; text-decoration: none; color: inherit; padding: 2rem 1.25rem 1.75rem;
}
#software_link .swl_media {
  display: flex; align-items: center; justify-content: center;
  height: 6.625rem; flex-shrink: 0;
}
#software_link .swl_media img { max-width: 100%; max-height: 100%; object-fit: contain; }
#software_link .swl_glyph { color: var(--c-teal); font-size: 4rem; transition: color .25s; }
#software_link .swl_card:hover .swl_glyph { color: var(--c-dark-blue); }
#software_link .swl_area li h3 { color: var(--c-dark-blue); padding: 0.75rem 0; font-size: 1.3rem; font-weight: 600; }
#software_link .swl_txt { text-align: center; margin-top: auto; font-size: 0.9375rem; line-height: 1.5; color: #555; }
#software_link .swl_txt span { display: block; }
#software_link .swl_card:hover h3 { color: var(--c-teal); }

@media (max-width: 768px) {
  /* ソフトウェアカードはスマホでも 2 列で表示する */
  #software_link .swl_area ul { gap: 1rem; }
  #software_link .swl_area li {
    flex: 0 1 calc(50% - 0.5rem);
    min-width: 0;
  }
  #software_link .swl_card { padding: 1.5rem 0.75rem 1.25rem; }
  #software_link .swl_media { height: 5rem; }
  #software_link .swl_area li h3 { font-size: 1.125rem; }
}
