@charset "utf-8";
/* ==========================================================
   料金・機能ページ Proリニューアル対応
   Figma: Proリニューアル対応LP改版料金ページ
   既存CSS（style.css / price.css / campaign.css / common.css）の後に読み込む。
   料金カード・比較表モーダルは TOP（renewal.css）と同じ見た目。
========================================================== */
:root {
  --rn-navy: #003e70;
  --rn-navy-deep: #0b3a6f;
  --rn-navy-dark: #00223d;
  --rn-blue: #0276d6;
  --rn-orange: #f78600;
  --rn-text: #333;
  --rn-text-dark: #1f2328;
  --rn-bg-gray: #f1f4f6;
  --rn-line: #d5dce5;
}

/* ----------------------------------------------------------
   共通：ボタン右端の丸矢印アイコン（CSSで描画）
---------------------------------------------------------- */
.rn-arrow {
  position: relative;
}
.rn-arrow::before,
.rn-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  pointer-events: none;
}
.rn-arrow::before {
  right: 14px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: currentColor;
}
.rn-arrow::after {
  right: 18px;
  width: 0;
  height: 0;
  margin-top: -3px;
  border-style: solid;
  border-width: 3px 0 3px 5px;
  border-color: transparent transparent transparent var(--rn-arrow-fg, #fff);
}


/* ----------------------------------------------------------
   共通：ボタン右端の丸矢印アイコン（CSSで描画）
---------------------------------------------------------- */
.rn-arrow {
  position: relative;
}
.rn-arrow::before,
.rn-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  pointer-events: none;
}
.rn-arrow::before {
  right: 14px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: currentColor;
}
.rn-arrow::after {
  right: 18px;
  width: 0;
  height: 0;
  margin-top: -3px;
  border-style: solid;
  border-width: 3px 0 3px 5px;
  border-color: transparent transparent transparent var(--rn-arrow-fg, #fff);
}


/* ==========================================================
   3. 料金プラン カード（2箇所共通）
========================================================== */
.p-topPlan {
  display: grid;
  grid-template-columns: repeat(3, 384px);
  justify-content: center;
  gap: 24px;
  margin: 0 0 40px;
  padding: 0;
}
.p-topPlan__item {
  display: flex;
  flex-direction: column;
  min-height: 343px;
  background: #fff;
}
.p-topPlan__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 73px;
  padding: 12px 20px;
  color: #fff;
}
.p-topPlan__head--type01 { background: var(--rn-blue); }
.p-topPlan__head--type02 { background: var(--rn-navy); }
.p-topPlan__head--type03 { background: var(--rn-navy-dark); }
.p-topPlan__headIcon {
  flex-shrink: 0;
  width: auto;
  height: 34px;
}
.p-topPlan__headTag {
  padding: 2px 12px;
  background: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.p-topPlan__head--type01 .p-topPlan__headTag { color: #0a6fd8; }
.p-topPlan__head--type02 .p-topPlan__headTag { color: var(--rn-navy); font-size: 1.1rem; padding: 4px 8px; }
.p-topPlan__head--type03 .p-topPlan__headTag { color: var(--rn-navy-dark); font-size: 1.1rem; padding: 4px 8px; }
.p-topPlan__headNum {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.p-topPlan__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 24px 32px 28px;
  color: var(--rn-text);
}
.p-topPlan__label {
  margin-bottom: 4px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.8;
}
.p-topPlan__price {
  align-self: stretch;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.8;
  white-space: nowrap;
}
.p-topPlan__priceNum {
  font-size: 1.5rem;
}
.p-topPlan__priceNum--strong {
  color: var(--rn-orange);
  font-size: 2.2rem;
  line-height: 1.5;
}
.p-topPlan__priceSmall {
  margin-left: 4px;
  font-size: 1.1rem!important;
}
.p-topPlan__catch {
  position: relative;
  margin: 18px 0 8px;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.8;
  white-space: nowrap;
}
.p-topPlan__catchStrong {
  position: relative;
  color: var(--rn-navy);
  font-size: 2.8rem;
}
.p-topPlan__catchStrong::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -14px;
  width: 11px;
  height: 13px;
  background: url(../../assets/img/top/plan_sparkle.svg) no-repeat center / contain;
}
.p-topPlan__desc {
  white-space: nowrap;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.8;
  text-align: center;
}
.p-topPlan__btn {
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
}
.p-topPlan__btnLink {
  display: block;
  width: 100%;
  padding: 10px 40px;
  border-radius: 3px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.6;
  transition: background-color .3s, color .3s, opacity .3s;
}
.p-topPlan__btnLink--outline {
  border: 1px solid var(--rn-navy);
  background: #fff;
  color: var(--rn-navy);
  --rn-arrow-fg: #fff;
}
.p-topPlan__btnLink--orange {
  border: 1px solid var(--rn-orange);
  background: var(--rn-orange);
  color: #fff;
  --rn-arrow-fg: var(--rn-orange);
}
.p-topPlan__btnLink--orange.rn-arrow::before {
  background: #fff;
}
@media (hover: hover) {
  .p-topPlan__btnLink--outline:hover {
    background: var(--rn-navy);
    color: #fff;
    --rn-arrow-fg: var(--rn-navy);
  }
  .p-topPlan__btnLink--orange:hover {
    opacity: .8;
  }
}
.p-topPlan__compare {
  margin-top: 16px;
}
.p-topPlan__compareBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rn-text);
  font: inherit;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.8;
  cursor: pointer;
}
.p-topPlan__compareBtn span {
  border-bottom: 1px solid var(--rn-text);
  white-space: nowrap;
}
/* 丸（ネイビー） */
.p-topPlan__compareBtn::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rn-navy);
}
/* 三角（白） */
.p-topPlan__compareBtn::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 7px;
  z-index: 1;
  margin-top: -3px;
  border-style: solid;
  border-width: 3px 0 3px 5px;
  border-color: transparent transparent transparent #fff;
}

/* 海外での法人契約ボタン（既存 .open-popup-btn をデザインに合わせて上書き） */
.p-pricePlan .open-popup-btn {
  width: auto;
  margin: 0 auto 0;
  padding: 9px 28px;
  border-radius: 6px;
  background: var(--rn-navy);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: none;
}
.p-pricePlan .open-popup-btn::after {
  content: "›";
  margin-left: 14px;
}

@media screen and (max-width: 768px) {
  .p-topPlan {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .p-topPlan__item {
    min-height: 0;
  }
  .p-topPlan__head {
    gap: 10px;
    padding: 16px 12px;
  }
  .p-topPlan__headNum {
    font-size: 1.8rem;
  }
  .p-topPlan__body {
    padding: 20px 24px 24px;
  }
  .p-topPlan__price {
    align-self: center;
    font-size: 1.5rem;
  }
  .p-topPlan__priceNum--strong {
    font-size: 2.2rem;
  }
  .p-topPlan__priceSmall {
    font-size: 1.2rem!important;
  }
  .p-topPlan__catch {
    font-size: 1.6rem;
  }
  .p-topPlan__catchStrong {
    font-size: 2.2rem;
  }
  .p-topPlan__desc {
    white-space: normal;
    font-size: 1.4rem;
  }
  .p-topPlan__compareBtn {
    font-size: 1.3rem;
  }
  .p-pricePlan .open-popup-btn {
    display: block;
    width: 100%;
  }
}


/* ==========================================================
   比較表モーダル「日経電子版 と 日経電子版Pro の違い」
   既存 campaign.css の .modal / .cmp-table を上書き
========================================================== */
.modal-backdrop {
  z-index: 10000; /* 固定ヘッダーより手前に表示 */
}
.modal-backdrop .modal {
  width: min(868px, 96vw);
  padding: 22px 18px 18px;
  border-radius: 10px;
}
.modal-backdrop .modal-header {
  align-items: flex-start;
  margin-bottom: 30px;
}
.modal-backdrop .modal-title {
  color: #333;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
}
.modal-backdrop .modal-close {
  padding: 0 4px;
  color: #666;
  font-size: 2.2rem;
  line-height: 1;
}
:is(.modal-backdrop, .p-topFaq__cmp) .cmp-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
:is(.modal-backdrop, .p-topFaq__cmp) .cmp-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #333;
  font-size: 1.4rem;
}
.cmp-col-cat  { width: 14%; }
.cmp-col-item { width: 40%; }
.cmp-col-val  { width: 23%; }
:is(.modal-backdrop, .p-topFaq__cmp) .cmp-table th,
:is(.modal-backdrop, .p-topFaq__cmp) .cmp-table td {
  height: 46px;
  padding: 8px 12px;
  border: 1px solid #e6e6e6;
  vertical-align: middle;
  line-height: 1.5;
}
/* 見出し行 */
:is(.modal-backdrop, .p-topFaq__cmp) .cmp-table thead th,
:is(.modal-backdrop, .p-topFaq__cmp) .cmp-table thead td {
  background: #f7f9fc;
  font-weight: 700;
  text-align: center;
}
:is(.modal-backdrop, .p-topFaq__cmp) .cmp-table thead .cmp-pro {
  background: #153e6c;
  color: #fff;
}
/* 分類（コンテンツ／機能／契約）と項目名 */
:is(.modal-backdrop, .p-topFaq__cmp) .cmp-table .cmp-cat,
:is(.modal-backdrop, .p-topFaq__cmp) .cmp-table .cmp-item {
  background: #fff;
  font-weight: 700;
  text-align: left;
}
:is(.modal-backdrop, .p-topFaq__cmp) .cmp-table .cmp-item {
  font-size: 1.4rem;
}
/* 値 */
:is(.modal-backdrop, .p-topFaq__cmp) .cmp-table tbody td {
  color: #555;
  font-weight: 400;
  text-align: center;
}
/* NEWバッジ */
.cmp-new {
  display: inline-block;
  margin-right: 18px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--rn-orange);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: middle;
}

/* SP：幅が足りないので表だけ横スクロールさせ、右端の列まで見られるようにする */
@media screen and (max-width: 768px) {
  .modal-backdrop {
    padding: 16px;
  }
  .modal-backdrop .modal {
    width: 100%;
    max-height: 90vh;
    padding: 16px 14px 14px;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .modal-backdrop .modal-header {
    margin-bottom: 24px;
  }
  .modal-backdrop .modal-title {
    font-size: 1.8rem;
  }
  :is(.modal-backdrop, .p-topFaq__cmp) .cmp-wrap {
    overflow-x: scroll;
    padding-bottom: 10px; /* スクロールバー分の余白 */
    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
  }
  :is(.modal-backdrop, .p-topFaq__cmp) .cmp-wrap::-webkit-scrollbar {
    height: 6px;
  }
  :is(.modal-backdrop, .p-topFaq__cmp) .cmp-wrap::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #555;
  }
  :is(.modal-backdrop, .p-topFaq__cmp) .cmp-table {
    /* 文字が切れないよう列幅は中身に合わせ、はみ出た分を横スクロール */
    width: auto;
    min-width: 640px;
    table-layout: auto;
    font-size: 1.3rem;
  }
  .cmp-col-cat  { width: 82px; }
  .cmp-col-item { width: auto; }
  .cmp-col-val  { width: 148px; }
  :is(.modal-backdrop, .p-topFaq__cmp) .cmp-table th,
  :is(.modal-backdrop, .p-topFaq__cmp) .cmp-table td {
    height: 42px;
    padding: 6px 10px;
    white-space: nowrap;
  }
  :is(.modal-backdrop, .p-topFaq__cmp) .cmp-table .cmp-item {
    font-size: 1.3rem;
  }
  .cmp-new {
    margin-right: 10px;
    padding: 1px 9px;
    font-size: 1.1rem;
  }
}


/* ==========================================================
   料金プラン：見出し・余白
========================================================== */
.p-pricePlan__title--renewal {
  margin-bottom: 30px;
  color: #1f2328;
  font-size: 2.2rem;
}
.p-pricePlan .p-topPlan {
  margin-bottom: 24px;
}
.p-pricePlan .open-popup-btn {
  margin-bottom: 0;
}
.p-pricePlan {
  padding-bottom: 60px;
}
@media screen and (max-width: 768px) {
  .p-pricePlan__title--renewal {
    margin-bottom: 20px;
    font-size: 2rem;
  }
  .p-pricePlan {
    padding-bottom: 40px;
  }
}

/* ==========================================================
   機能・コンテンツ：2列のカード
   Figma：カード 490×54px／左にアイコン、右に Pro バッジ、左上に NEW タグ
========================================================== */
.p-priceFunction__title01 {
  font-size: 2.8rem;
}
.p-priceFunction__title02Text {
  font-size: 1.5rem;
}
.p-priceFunction__list--renewal {
  grid-template-columns: repeat(2, minmax(0, 490px));
  justify-content: center;
  gap: 20px 12px;
}
.p-priceFunction__list--renewal .p-priceFunction__listItem {
  position: relative;
}
.p-priceFunction__list--renewal [class*="p-priceFunction__listLink--icon"] {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  height: 100%;
  padding: 10px 76px 10px 49px;
  border: 2px solid transparent;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  color: #1f2328;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
  transition: border-color .5s;
}
@media (hover: hover) {
  .p-priceFunction__list--renewal [class*="p-priceFunction__listLink--icon"]:hover {
    border-color: #003e70;
  }
}
.p-priceFunction__list--renewal [class*="p-priceFunction__listLink--icon"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15px;
  width: 22px;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
/* 新しい項目のアイコン */
.p-priceFunction__listLink--icon14::before,
.c-modal01__title--icon14::before { background-image: url(../../assets/img/price/ic_group_briefing_02.svg); }
.p-priceFunction__listLink--icon15::before,
.c-modal01__title--icon15::before { background-image: url(../../assets/img/price/ic_mail_chat_02.svg); }
.p-priceFunction__listLink--icon16::before,
.c-modal01__title--icon16::before { background-image: url(../../assets/img/price/ic_pro_menu_02.svg); }
.p-priceFunction__listLink--icon17::before,
.c-modal01__title--icon17::before { background-image: url(../../assets/img/price/ic_asknikkei.svg); }

/* Pro バッジ（既存 .icon-pro を Figma の大きさに） */
.p-priceFunction__list--renewal .icon-pro {
  right: 18px;
  padding: 0 10px;
  border-radius: 2px;
  background: #f08300;
  font-size: 1.1rem;
  line-height: 21px;
  pointer-events: none;
}
/* NEW タグ */
.p-priceFunction__new {
  position: absolute;
  top: -11px;
  left: -1px;
  z-index: 1;
  padding: 0 9px;
  border-radius: 2px;
  background: #0a6fd8;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 19px;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .p-priceFunction__title01 {
    font-size: 2.1rem;
  }
  .p-priceFunction__list--renewal {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .p-priceFunction__list--renewal [class*="p-priceFunction__listLink--icon"] {
    min-height: 54px;
    padding: 10px 64px 10px 46px;
    font-size: 1.4rem;
  }
  .p-priceFunction__list--renewal [class*="p-priceFunction__listLink--icon"]::before {
    left: 14px;
    width: 20px;
  }
  .p-priceFunction__list--renewal .icon-pro {
    right: 14px;
    padding: 0 9px;
    font-size: 1.2rem;
    line-height: 22px;
  }
  .p-priceFunction__new {
    top: -10px;
    font-size: 1.1rem;
  }
}

/* ==========================================================
   機能のポップアップ（.c-modal01）
   NEW タグ・新しいアイコン・小見出し・画像2枚の重ね表示
========================================================== */
.c-modal01__titleWrap {
  position: relative;
}
.c-modal01__new {
  display: inline-block;
  margin-bottom: 12px;
  padding: 0 14px;
  border-radius: 4px;
  background: #0a6fd8;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 32px;
}
/* 新しいアイコン用の見出し（既存 --icon01〜13 と同じ見た目） */
.c-modal01__title--icon14,
.c-modal01__title--icon15,
.c-modal01__title--icon16,
.c-modal01__title--icon17 {
  position: relative;
  margin-bottom: 40px;
  padding-left: 46px;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.5;
}
.c-modal01__title--icon14::before,
.c-modal01__title--icon15::before,
.c-modal01__title--icon16::before,
.c-modal01__title--icon17::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  margin: auto;
  width: 36px;
  height: 36px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.c-modal01__titleWrap [class*="c-modal01__title--icon"] {
  margin-bottom: 40px;
}
.c-modal01__pic img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 768px) {
  .c-modal01__titleWrap {
    text-align: center;
  }
  .c-modal01__new {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0 10px;
    font-size: 1.3rem;
    line-height: 24px;
  }
  .c-modal01__title--icon14,
  .c-modal01__title--icon15,
  .c-modal01__title--icon16,
  .c-modal01__title--icon17 {
    margin-bottom: 20px;
    padding-top: 38px;
    padding-left: 0;
    text-align: center;
    font-size: 1.8rem;
  }
  .c-modal01__title--icon14::before,
  .c-modal01__title--icon15::before,
  .c-modal01__title--icon16::before,
  .c-modal01__title--icon17::before {
    inset: 0 0 auto 0;
    width: 28px;
    height: 28px;
  }
  .c-modal01__titleWrap [class*="c-modal01__title--icon"] {
    margin-bottom: 20px;
  }
}

/* ==========================================================
   ヘッダー：利用用途メガメニュー（TOPと同じ 2列×2段）
   PC：左列＝福利厚生／社内報、右列＝Location／Education
   SP：1段目＝福利厚生／社内報、2段目＝Location／Education
========================================================== */
@media screen and (min-width: 769px) {
  .l-headerNavSub__grid--usage {
    grid-template-columns: repeat(2, minmax(0, 400px));
    gap: 0 32px;
    margin-right: 0;
  }
  .l-headerNavSub__grid--usage .l-headerNavSub__gridItem {
    grid-row: auto;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    padding-right: 0;
    border-right: none;
  }
}
@media screen and (max-width: 768px) {
  .l-headerNavSub__grid--usage {
    gap: 6px;
  }

  .c-modal01__body .c-modal01__subhead {
    font-weight: 700;
    position: relative;
    margin: 22px auto 12px;
    padding-left: 10px;
	font-size: 1.4rem;
    line-height: 1.2;
}
	.c-modal01__content {
    position: absolute;
		margin: 0 10px;
    max-width: 1056px;
    max-height: 95vh;
    overflow-y: auto;
    background: #fff;
}
	.c-modal01__body p {
    margin-bottom: 16px;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .05em;
}
}

/* SEO B-1：FAQカテゴリを h3 に、オプションのロゴ枠を h3 にしたための調整 */
.qa_category_title.p-topFaq__head,
h3.p-priceOption__listLogo {
  margin-top: 0;
}
.qa_category_title .p-topFaq__headInner {
  display: block;
}

/* ==========================================================
   よくある質問「日経電子版と日経電子版Proの違い」の回答内に比較表を表示
   （表の見た目は比較表モーダルと共通。上の :is(.modal-backdrop, .p-topFaq__cmp) で適用）
========================================================== */
.p-topFaq__cmp {
  margin-top: 16px;
  letter-spacing: normal;
}
.p-topFaq__cmp .cmp-table {
  background: #fff;
}
@media screen and (max-width: 768px) {
  .p-topFaq__cmp {
    margin-top: 12px;
  }
}
