@charset "UTF-8";
/* ==========================================================
 price hero リニューアル (2026.07)
 - 枠組み・基底クラス・CSS変数は base-child.css を優先利用
 - 独自クラスは既存衝突回避のため phero- プレフィックスを使用
 - イラスト(従業員DB / 人物アイコン / 顔)のみ PNG、その他は CSS 実装
========================================================== */

/* ---- 見出し ---- */
.hero .phero-lead {
  font-size: 32px;
  letter-spacing: 2px;
}

/* ==========================================================
 機能 × 人数 の見積もりダイアグラム
========================================================== */
.phero-diagram {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  margin-top: 40px;
}
/* 各ボックス共通 */
.phero-box {
  position: relative;
  border-radius: var(--border-radius-br-s, 20px);
  padding: 20px;
}
/* 「機能」ボックス */
.phero-box-func {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--av-50);
  border: 2px solid var(--av-500);
}
/* 「人数」ボックス */
.phero-box-member {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  min-height: 190px;
  background-color: var(--sa-50);
  border: 2px solid var(--pa-400);
}
/* タグ(機能 / 人数) */
.phero-tag {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 32px;
  background-color: var(--av-500);
  color: var(--cloud);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1px;
  white-space: nowrap;
}
.phero-tag-member {
  background-color: var(--pa-400);
}
/* 従業員データベース: テキストはHTML、データベースのイラストは背景画像 */
.phero-db {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 154px;
  padding-top: 10px;
  background: url(/img/price/hero-database.png) center / contain no-repeat;
  color: var(--pa-600);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
  text-align: center;
}
/* 人物アイコン(イラスト) */
.phero-members {
  width: 160px;
  height: auto;
}
/* 演算記号 ＋ / × */
.phero-op {
  flex: none;
  font-family: var(--inter);
  font-size: 80px;
  font-weight: normal;
  line-height: 1;
  color: var(--gr-600);
}
.phero-op-plus {
  font-size: 60px;
}
.phero-op-times {
  align-self: center;
  transform: rotate(45deg);
}
/* 機能カテゴリのチップ一覧 */
.phero-func-grid {
  display: grid;
  grid-template-columns: repeat(3, 102px);
  gap: 8px;
}
.phero-func-grid > li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 4px;
  border-radius: 4px;
  background-color: var(--av-500);
  color: var(--cloud);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1px;
  white-space: nowrap;
}
.phero-func-grid > li.phero-func-more {
  background-color: var(--cloud);
  border: 2px dashed var(--av-500);
  color: var(--av-500);
}

/* ==========================================================
 CTAボタン(見積もりしてみる)
 base-child.css の .child-button を基底に色・サイズのみ上書き
========================================================== */
/* 基本スタイルは .child-button.dmo を利用し、ここではサイズのみ調整 */
.child-button.phero-estimate {
  width: 100%;
  max-width: 360px;
  height: 80px;
  margin: 40px auto 0;
  border-radius: var(--border-radius-br-xs, 16px);
}

/* ==========================================================
 プランの組み合わせ例
========================================================== */
.phero-combo {
  margin-top: 40px;
}
.phero-combo-title {
  font-size: 32px;
}
/* プランの組み合わせカード
   talent-management ページの .tm-price-cards スタイルを踏襲 */
.phero-combo-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1160px;
  margin: 32px auto 0;
}
.phero-combo-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
}
/* アバター(顔イラスト) カードに重ねる */
.phero-combo-avatar {
  position: relative;
  z-index: 1;
  width: 118px;
  margin-bottom: -58px;
}
.phero-combo-card {
  overflow: hidden;
  flex: 1;
  width: 100%;
  background-color: var(--cloud);
  border: 1px solid var(--gr-200);
  border-radius: 16px;
}
/* カードヘッダー(用途タイトル) */
.phero-combo-head {
  padding: 60px 16px 20px;
  background-color: var(--sa-50);
}
.phero-combo-card-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--pa-600);
}
/* カード本文(組み合わせ) */
.phero-combo-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
/* 従業員データベース: テキストはHTML、データベースのイラストは背景画像
   高さは画像(960x240)の縦横比を踏襲 */
.phero-combo-base {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 960 / 240;
  padding-top: 16px;
  background: url(/img/price/phero-combo-database.png) center / contain no-repeat;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: var(--pa-600);
}
.phero-combo-plus {
  width: 28px;
}
/* カテゴリ一覧 */
.phero-combo-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}
.phero-combo-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 8px;
  background-color: var(--av-500);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--cloud);
}
.phero-combo-option:only-child {
  grid-column: 2;
}
.phero-combo-option.dots {
  gap: 10px;
  background-color: transparent;
}
.phero-combo-option.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #c9c9c9;
}

/* ==========================================================
 自社専用プランをつくってみる
========================================================== */
.plan-builder {
  padding: 100px 0;
  background-color: var(--pa-50);
}
.plan-builder-set {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin: 40px 0;
}
/* 「機能を選ぶ」「利用人数を選ぶ」共通のタグ */
.plan-builder-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 24px;
  border-radius: 32px;
  background-color: var(--av-500);
  color: var(--cloud);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1px;
  white-space: nowrap;
}
.plan-builder-tag.member {
  background-color: var(--pa-400);
}
.plan-builder-tag-num {
  font-family: var(--inter);
}
/* 機能を選ぶ */
.plan-builder-func {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1160px;
  padding: 60px;
  background-color: var(--cloud);
  border: 2px solid var(--av-500);
  border-radius: 20px;
}
/* 従業員データベース(標準機能・常時選択)
   .phero-combo-base と同様、データベースのイラストは背景画像にする */
.plan-builder-base {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1280 / 260;
  padding: 36px 20px 20px 20px;
  background-image: url(/img/price/plan-builder-database.png);
  background-size: 100% 100%;
}
.plan-builder-base-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--av-600);
  letter-spacing: 1px;
}
.plan-builder-base-desc {
  font-size: 16px;
  color: var(--pa-600);
  letter-spacing: 1px;
  line-height: 1.5;
}
/* 「欲しい機能カテゴリーをチェック」ヒント */
.plan-builder-hint {
  display: flex;
  align-items: center;
  gap: 20px;
}
.plan-builder-hint-sample {
  width: 64px;
  height: auto;
  aspect-ratio: 64 / 40;
}
.plan-builder-hint-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--av-600);
  letter-spacing: 1px;
}
/* 機能カテゴリーチェックリスト */
.plan-builder-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}
.func-option-button {
  list-style: none;
}
.func-option-button label {
  display: block;
  cursor: pointer;
}
.func-option-button input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.func-option-button-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 320px;
  height: 80px;
  padding: 8px;
  border: 2px dashed var(--av-500);
  border-radius: 8px;
  background-color: var(--av-50);
  box-shadow: var(--elevation-2-box);
  text-align: center;
}
.func-option-button-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.func-option-button-check {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: none;
  border: 2px solid var(--gr-600);
  border-radius: 3px;
  background-color: var(--cloud);
}
.func-option-button-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--av-600);
  letter-spacing: 1px;
}
.func-option-button-desc {
  font-size: 16px;
  color: var(--av-600);
  letter-spacing: 1px;
}
/* hover: 背景のみ sun に変化(check済みの場合は変化させない) */
.func-option-button input:not(:checked) + .func-option-button-inner:hover {
  background-color: var(--sun);
}
/* checked: 背景 av-500・影なし。チェックボックスは pu-400 埋め+白リング+白チェック */
.func-option-button input:checked + .func-option-button-inner {
  background-color: var(--av-500);
  box-shadow: none;
}
.func-option-button input:checked + .func-option-button-inner .func-option-button-check {
  border-color: var(--sun);
  background-color: var(--sun);
}
.func-option-button input:checked + .func-option-button-inner .func-option-button-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border-right: 3px solid var(--av-500);
  border-bottom: 3px solid var(--av-500);
  transform: rotate(40deg);
}
.func-option-button input:checked + .func-option-button-inner .func-option-button-title,
.func-option-button input:checked + .func-option-button-inner .func-option-button-desc {
  color: var(--cloud);
}
.func-option-button input:focus-visible + .func-option-button-inner {
  outline: 2px solid var(--pu-400);
  outline-offset: 2px;
}
/* × 記号 */
.plan-builder-op {
  align-self: center;
  font-family: var(--inter);
  font-size: 40px;
  font-weight: normal;
  color: var(--gr-600);
}
/* 利用人数を選ぶ */
.plan-builder-member {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 362px;
  padding: 60px;
  background-color: var(--cloud);
  border: 2px solid var(--pa-400);
  border-radius: 20px;
}
.plan-builder-select {
  position: relative;
  width: 100%;
}
.plan-builder-select::before {
  position: absolute;
  content: "";
  width: 8px;
  height: 8px;
  top: 50%;
  right: 16px;
  transform: translateY(-75%) rotate(45deg);
  border-bottom: 2px solid var(--night);
  border-right: 2px solid var(--night);
  pointer-events: none;
}
.plan-builder-select select {
  width: 100%;
  padding: 8px 36px 8px 8px;
  border: 1px solid var(--gr-500);
  border-radius: 4px;
  background-color: var(--cloud);
  color: var(--night);
  font-size: 16px;
  letter-spacing: 1px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
/* CTA */
.child-button.plan-builder-cta {
  width: 100%;
  max-width: 440px;
  height: 80px;
  margin: 40px auto 0;
  border-radius: 16px;
}

/* ==========================================================
 SP (max-width: 768px)
========================================================== */
@media screen and (max-width: 768px) {
  .hero .phero-lead {
    font-size: 18px;
    letter-spacing: 1px;
  }
  /* ダイアグラム: 縦積み */
  .phero-diagram {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
  }
  .phero-box-func {
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding-top: 24px;
  }
  .phero-box-member {
    width: 100%;
  }
  .phero-func-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .phero-func-grid > li {
    font-size: 13px;
    height: 32px;
  }
  /* CTA */
  .child-button.phero-estimate {
    max-width: 320px;
    margin-top: 30px;
  }
  /* 組み合わせ例: 縦積み */
  .phero-combo {
    margin-top: 30px;
  }
  .phero-combo-title {
    font-size: 24px;
  }
  .phero-combo-list {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 360px;
  }
  .phero-combo-item {
    width: 100%;
  }
  .phero-combo-card-title {
    font-size: 22px;
  }
  /* 自社専用プランをつくってみる */
  .plan-builder {
    padding: 60px 0;
  }
  .plan-builder-set {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
  }
  .plan-builder-func {
    width: 100%;
    padding: 40px 20px;
    gap: 30px;
  }
  .plan-builder-tag {
    font-size: 18px;
    padding: 4px 16px;
  }
  .plan-builder-base-title {
    font-size: 18px;
  }
  .plan-builder-base-desc {
    font-size: 12px;
  }
  .plan-builder-hint-text {
    font-size: 12px;
  }
  .plan-builder-options {
    flex-direction: column;
    gap: 12px;
  }
  .func-option-button-inner {
    width: 100%;
    max-width: 320px;
  }
  .plan-builder-member {
    width: 100%;
    max-width: 362px;
    padding: 40px 20px;
  }
  .child-button.plan-builder-cta {
    max-width: 320px;
    margin-top: 30px;
  }
}
