/*
 * 【無料】セキュリティ相談窓口（/contact/optim-biz-premium/security-consultation）の見た目
 * ページ本体は WordPress の固定ページ（テンプレート「静的ページフォーム用」）。本文の先頭でこのファイルを読み込む。
 * 色・ボタンはコーポレートサイト（OPTiM Biz Premium・サイバーセキュリティ対策ナビ）にそろえる。
 * ほかのページに影響しないよう、すべて .cs-page の中だけに効かせる。
 */
.cs-page {
  --cs-primary: #004386;
  --cs-primary-hover: #3073b6;
  --cs-accent: #fa6b00;
  --cs-accent-hover: #ff9d53;
  --cs-text: #171a1c;
  --cs-sub: #4d5862;
  --cs-surface: #f2f6f9;
  --cs-border: #c7d3df;
  --cs-error: #c62828;

  /* テンプレートの .container（幅の上限あり）から外に出して、背景を画面の端まで広げる */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: clip;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--cs-text);
  text-align: left;
  background: #fff;
}
.cs-page *, .cs-page *::before, .cs-page *::after { box-sizing: border-box; }
/* 余白の初期化は :where() で弱くして、各部品の margin が効くようにする */
.cs-page :where(h1, h2, h3, h4, p, ul, ol) { margin: 0; }
.cs-page a { color: var(--cs-primary); }
.cs-wrap { max-width: 1120px; padding: 0 24px; margin: 0 auto; }
/* ページ内リンクで移動したとき、上に固定したヘッダーに見出しが隠れないようにする */
.cs-page section { scroll-margin-top: 88px; }
.cs-pc { display: inline; }

/* ボタン（コーポレートサイトと同じ、オレンジの丸いボタン） */
.cs-page .cs-btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-width: 260px; padding: 14px 32px; font-size: 18px; font-weight: 700; line-height: 1.5; color: #fff; text-decoration: none; cursor: pointer; background: var(--cs-accent); border: 2px solid var(--cs-accent); border-radius: 999px; transition: background-color .2s, box-shadow .2s, transform .2s; }
.cs-page .cs-btn::after { width: 8px; height: 8px; content: ""; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.cs-page .cs-btn:hover { color: #fff; background: var(--cs-accent-hover); border-color: var(--cs-accent-hover); box-shadow: 0 2px 2px rgba(0, 0, 0, .3); transform: translateY(-2px); }
.cs-page .cs-btn--sm { min-width: 0; padding: 6px 22px; font-size: 15px; }
.cs-page .cs-btn--block { display: flex; width: 100%; }
.cs-badge { display: inline-block; padding: 2px 12px; margin-right: 10px; font-size: 14px; font-weight: 700; line-height: 1.6; vertical-align: 2px; color: #fff; background: var(--cs-primary); border-radius: 4px; }

/* ヘッダー */
.cs-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 6px rgba(0, 40, 80, .08); }
.cs-header__inner { display: flex; gap: 24px; align-items: center; min-height: 72px; }
.cs-brand { display: flex; gap: 14px; align-items: center; margin-right: auto; text-decoration: none; }
.cs-brand img { display: block; width: 110px; height: auto; }
.cs-brand__name { padding-left: 14px; font-size: 16px; font-weight: 700; color: var(--cs-text); border-left: 2px solid var(--cs-border); }
.cs-nav { display: flex; gap: 24px; }
.cs-nav a { font-size: 15px; font-weight: 700; color: var(--cs-text); text-decoration: none; }
.cs-nav a:hover { color: var(--cs-primary); }

/* MV */
.cs-hero { padding: 64px 0 72px; background: linear-gradient(180deg, #eef4fa 0%, #fff 100%); }
.cs-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.cs-hero__label { margin-bottom: 18px; font-size: 16px; font-weight: 700; color: var(--cs-primary); }
.cs-hero__title { margin-bottom: 22px; font-size: 44px; font-weight: 700; line-height: 1.45; color: var(--cs-text); }
.cs-hero__title em { font-style: normal; color: var(--cs-primary); background: linear-gradient(transparent 68%, #ffd7b5 68%); }
.cs-hero__lead { margin-bottom: 30px; font-size: 17px; }
.cs-hero__note { margin-top: 14px; font-size: 15px; color: var(--cs-sub); }
.cs-hero__visual { display: flex; flex-direction: column; gap: 20px; }
.cs-hero__card { padding: 24px 28px; background: #fff; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 40, 80, .12); }
.cs-hero__card-title { margin-bottom: 12px; font-size: 17px; font-weight: 700; color: var(--cs-primary); }
.cs-hero__card ul { padding: 0; list-style: none; }
.cs-hero__card li { padding: 12px 0; font-size: 15px; color: var(--cs-sub); }
.cs-hero__card li + li { border-top: 2px solid var(--cs-surface); }
.cs-hero__card strong { display: block; font-size: 17px; color: var(--cs-text); }
/* イラスト（MV：相談している様子、フォームの横：応対するスタッフ）。元の画像の色をサイトの紺・青・オレンジに変えたもの */
.cs-page img.cs-illust-img { display: block; width: 100%; height: auto; }
.cs-page img.cs-illust-img--sm { max-width: 360px; margin: 28px auto 0; }
/* セクションの見出しの下に添えるイラスト（こんな状況の方へ：考え込む人、ご相談の流れ：担当者と話す様子） */
.cs-page img.cs-section-illust { display: block; width: 100%; max-width: 440px; height: auto; margin: -8px auto 32px; }
.cs-page img.cs-section-illust--wide { max-width: 520px; }

/* セクション共通 */
.cs-section { padding: 80px 0; }
.cs-section--tint { background: var(--cs-surface); }
.cs-heading { margin-bottom: 12px; font-size: 32px; font-weight: 700; line-height: 1.5; text-align: center; }
.cs-heading--left { text-align: left; }
.cs-heading-lead { margin-bottom: 40px; font-size: 16px; color: var(--cs-sub); text-align: center; }

/* こんな状況の方へ（押すとフォームの「いまの状況」に反映する） */
.cs-situations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cs-page .cs-situation { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 24px 64px; font: inherit; color: inherit; text-align: left; cursor: pointer; background: #fff; border: 2px solid var(--cs-border); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.cs-page .cs-situation::before { position: absolute; top: 26px; left: 22px; width: 26px; height: 26px; content: ""; background: #fff; border: 2px solid var(--cs-border); border-radius: 6px; }
.cs-page .cs-situation:hover { border-color: var(--cs-primary); box-shadow: 0 4px 14px rgba(0, 40, 80, .1); }
.cs-page .cs-situation[aria-pressed="true"] { background: #f2f7fd; border-color: var(--cs-primary); }
.cs-page .cs-situation[aria-pressed="true"]::before { background: var(--cs-primary); border-color: var(--cs-primary); }
.cs-page .cs-situation[aria-pressed="true"]::after { position: absolute; top: 31px; left: 31px; width: 9px; height: 15px; content: ""; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); }
.cs-situation strong { font-size: 18px; line-height: 1.55; }
.cs-situation span { font-size: 15px; color: var(--cs-sub); }
/* カードを押したあとの「フォームに反映しました」 */
.cs-situations__status { padding: 14px 20px; margin-top: 20px; font-size: 15px; font-weight: 700; text-align: center; background: #f2f7fd; border: 2px solid var(--cs-primary); border-radius: 8px; }
.cs-situations__status[hidden] { display: none; }
.cs-situations__count { font-size: 18px; color: var(--cs-primary); }
.cs-page .cs-situations__status a { margin-left: 12px; }

/* ご相談の流れ */
.cs-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; list-style: none; }
.cs-step { padding: 28px; background: #fff; border-radius: 12px; }
.cs-step__no { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 14px; font-size: 22px; font-weight: 700; color: #fff; background: var(--cs-primary); border-radius: 50%; }
.cs-step h3 { margin-bottom: 8px; font-size: 20px; font-weight: 700; }
.cs-step p { font-size: 15px; color: var(--cs-sub); }

/* フォーム */
.cs-form-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.cs-form-intro > p { margin-bottom: 20px; }
.cs-checks { padding: 0; list-style: none; }
.cs-checks li { position: relative; padding-left: 30px; font-weight: 700; }
.cs-checks li + li { margin-top: 8px; }
.cs-checks li::before { position: absolute; top: .45em; left: 4px; width: 14px; height: 8px; content: ""; border-bottom: 3px solid var(--cs-accent); border-left: 3px solid var(--cs-accent); transform: rotate(-45deg); }
.cs-form-card { padding: 36px 40px; background: #fff; border: 2px solid #dbe4ee; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 40, 80, .08); }
.cs-form-card__title { display: flex; align-items: center; margin-bottom: 24px; font-size: 22px; font-weight: 700; }
.cs-form-card__title .cs-badge { margin: 0 0 0 12px; }
.cs-page .wpcf7-form > br, .cs-page .hidden-fields-container { display: none; }
.cs-field + .cs-field { margin-top: 22px; }
.cs-label { margin-bottom: 8px !important; font-size: 16px; font-weight: 700; }
.cs-req, .cs-opt { display: inline-block; padding: 0 8px; margin-left: 10px; font-size: 13px; font-weight: 700; line-height: 1.7; vertical-align: 1px; border-radius: 4px; }
.cs-req { color: #fff; background: var(--cs-error); }
.cs-opt { color: var(--cs-sub); background: var(--cs-surface); }
.cs-hint { margin: -2px 0 10px !important; font-size: 14px; color: var(--cs-sub); }
.cs-page .wpcf7-form-control-wrap { display: block; }
.cs-name { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-page input[type="text"], .cs-page input[type="email"], .cs-page input[type="tel"], .cs-page textarea { width: 100%; padding: 12px 16px; font: inherit; font-size: 16px; line-height: 1.6; color: var(--cs-text); background: var(--cs-surface); border: 2px solid var(--cs-border); border-radius: 6px; }
.cs-page input:focus, .cs-page textarea:focus { outline: none; background: #fff; border-color: var(--cs-primary); }
.cs-page input::placeholder, .cs-page textarea::placeholder { color: #8f99a3; }
.cs-page textarea { min-height: 120px; resize: vertical; }
/* いまの状況（チェックボックス）：2列のボタン風 */
.cs-page .wpcf7-checkbox { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-page .wpcf7-checkbox .wpcf7-list-item { margin: 0; }
.cs-page .wpcf7-checkbox label { display: flex; gap: 10px; align-items: center; height: 100%; padding: 12px 14px; font-size: 15px; font-weight: 700; line-height: 1.5; cursor: pointer; background: #fff; border: 2px solid var(--cs-border); border-radius: 8px; }
.cs-page .wpcf7-checkbox label:has(input:checked) { background: #f2f7fd; border-color: var(--cs-primary); }
.cs-page .wpcf7-checkbox input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--cs-primary); }
/* サイト共通の CSS（general-asset の form.css）は、チェックボックスを隠して見た目だけの四角を描く。このページでは本物のチェックボックスを出し、見た目だけの四角は消す */
.cs-page .wpcf7-checkbox input[type="checkbox"] { display: block !important; }
.cs-page .wpcf7-checkbox label::before, .cs-page .wpcf7-checkbox label::after, .cs-page .wpcf7-checkbox .wpcf7-list-item-label::before, .cs-page .wpcf7-checkbox .wpcf7-list-item-label::after { display: none !important; content: none !important; }
.cs-page .wpcf7-checkbox .wpcf7-list-item-label { padding: 0 !important; margin: 0 !important; }
.cs-privacy { margin-top: 28px; font-size: 13px; line-height: 1.75; color: var(--cs-sub); }
.cs-privacy p { margin: 0 0 4px; }
.cs-turnstile { margin-top: 20px; text-align: center; }
.cs-submit { margin-top: 20px; }
.cs-page .cs-submit .cs-btn { border-radius: 999px; }
.cs-page .cs-submit .cs-btn::after { display: none; }
.cs-page .cs-submit .cs-btn[disabled] { opacity: .6; transform: none; }
.cs-page .wpcf7-spinner { display: block; margin: 10px auto 0; }
.cs-page .wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--cs-error); }
.cs-page .wpcf7 form .wpcf7-response-output { padding: 12px 16px; margin: 20px 0 0; font-size: 15px; color: var(--cs-error); text-align: center; border: 2px solid var(--cs-error); border-radius: 6px; }

/* よくあるご質問 */
.cs-faq { max-width: 880px; }
.cs-faq__item { margin-bottom: 14px; background: #fff; border-radius: 10px; }
.cs-faq__item summary { position: relative; padding: 20px 56px 20px 24px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.cs-faq__item summary::-webkit-details-marker { display: none; }
.cs-faq__item summary::before { margin-right: 10px; color: var(--cs-primary); content: "Q"; }
.cs-faq__item summary::after { position: absolute; top: 50%; right: 24px; width: 10px; height: 10px; margin-top: -7px; content: ""; border-right: 3px solid var(--cs-primary); border-bottom: 3px solid var(--cs-primary); transform: rotate(45deg); transition: transform .2s; }
.cs-faq__item[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.cs-faq__item p { padding: 0 24px 22px 50px; font-size: 15px; color: var(--cs-sub); }
.cs-pilot { margin-top: 28px; font-size: 15px; text-align: center; }

/* タブレット */
@media (max-width: 991px) {
  .cs-nav { display: none; }
  .cs-hero__inner, .cs-form-layout { grid-template-columns: minmax(0, 1fr); }
  .cs-hero__title { font-size: 36px; }
  .cs-situations, .cs-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* スマホ */
@media (max-width: 600px) {
  .cs-page { font-size: 15px; }
  .cs-wrap { padding: 0 16px; }
  .cs-pc { display: none; }
  .cs-header__inner { gap: 12px; min-height: 60px; }
  .cs-brand { gap: 10px; }
  .cs-brand img { width: 80px; }
  .cs-brand__name { display: none; }
  .cs-page .cs-btn--sm { padding: 5px 12px; font-size: 12px; white-space: nowrap; }
  .cs-page .cs-btn--sm::after { display: none; }
  .cs-hero { padding: 36px 0 48px; }
  .cs-hero__title { font-size: 27px; }
  .cs-hero__lead { font-size: 15px; }
  .cs-page .cs-hero .cs-btn { display: flex; width: 100%; min-width: 0; }
  .cs-section { padding: 52px 0; }
  .cs-heading { font-size: 24px; }
  .cs-heading-lead { margin-bottom: 28px; text-align: left; }
  .cs-situations, .cs-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cs-page .cs-situation { padding: 18px 18px 18px 56px; }
  .cs-page .cs-situation::before { top: 20px; left: 18px; }
  .cs-page .cs-situation[aria-pressed="true"]::after { top: 25px; left: 27px; }
  .cs-situation strong { font-size: 16px; }
  .cs-form-card { padding: 24px 16px; }
  /* スマホでは、フォームまでの距離を短くするため、フォーム横のイラストは出さない */
  .cs-page img.cs-illust-img--sm { display: none; }
  .cs-page img.cs-section-illust { max-width: 300px; margin-bottom: 24px; }
  .cs-page .wpcf7-checkbox { grid-template-columns: minmax(0, 1fr); }
  .cs-faq__item summary { font-size: 15px; }
  .cs-faq__item p { padding-left: 24px; }
}

/* ===== サンキューページ（/contact/optim-biz-premium/security-consultation-thanks） ===== */
/* お礼のメッセージ */
.cs-thanks { padding: 72px 0 64px; text-align: center; background: linear-gradient(180deg, #eef4fa 0%, #fff 100%); }
.cs-thanks__icon { position: relative; display: block; width: 72px; height: 72px; margin: 0 auto 24px; background: var(--cs-primary); border-radius: 50%; }
.cs-thanks__icon::after { position: absolute; top: 22px; left: 22px; width: 28px; height: 15px; content: ""; border-bottom: 5px solid #fff; border-left: 5px solid #fff; transform: rotate(-45deg); }
.cs-thanks__title { margin-bottom: 20px; font-size: 32px; font-weight: 700; line-height: 1.5; color: var(--cs-text); }
.cs-thanks__text { font-size: 17px; }
.cs-thanks__note { max-width: 640px; margin: 12px auto 0; font-size: 14px; color: var(--cs-sub); }
/* ご連絡までの間に：セルフチェック・資料のカード */
.cs-resources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; list-style: none; }
.cs-resource { display: flex; }
.cs-page .cs-resource__link { display: flex; flex-direction: column; width: 100%; overflow: hidden; color: var(--cs-text); text-decoration: none; background: #fff; border: 1px solid var(--cs-border); border-radius: 12px; transition: box-shadow .2s, transform .2s; }
.cs-page .cs-resource__link:hover { color: var(--cs-text); box-shadow: 0 6px 20px rgba(0, 40, 80, .12); transform: translateY(-2px); }
.cs-resource__image { display: flex; align-items: center; justify-content: center; height: 180px; padding: 16px; background: #eef4fa; }
.cs-page .cs-resource__image img { display: block; max-width: 100%; max-height: 100%; height: auto; object-fit: contain; }
.cs-resource__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.cs-resource__label { align-self: flex-start; padding: 0 10px; font-size: 13px; font-weight: 700; line-height: 1.8; color: var(--cs-primary); background: #e5edf6; border-radius: 4px; }
.cs-resource__title { font-size: 18px; line-height: 1.5; color: var(--cs-text); }
.cs-resource__text { flex: 1 1 auto; font-size: 14px; line-height: 1.75; color: var(--cs-sub); }
.cs-resource__more { display: inline-flex; gap: 8px; align-items: center; align-self: flex-end; margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--cs-accent); }
.cs-resource__more::after { width: 7px; height: 7px; content: ""; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
/* 情報漏洩・サイバーセキュリティ対策ナビの紹介 */
.cs-navi { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; padding: 40px 48px; background: #fff; border: 2px solid var(--cs-surface); border-radius: 16px; box-shadow: 0 6px 20px rgba(0, 40, 80, .08); }
.cs-navi__logo { margin-bottom: 16px; }
.cs-page .cs-navi__logo img { display: block; width: 280px; max-width: 100%; height: auto; }
.cs-navi__text { margin-bottom: 24px; font-size: 16px; }
.cs-navi__links { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.cs-page .cs-navi__links a { display: flex; gap: 12px; align-items: center; padding: 14px 18px; font-size: 16px; font-weight: 700; color: var(--cs-text); text-decoration: none; background: var(--cs-surface); border-radius: 8px; }
.cs-page .cs-navi__links a:hover { color: var(--cs-primary); background: #e5edf6; }
.cs-navi__links a::after { width: 7px; height: 7px; margin-left: auto; content: ""; border-top: 2px solid var(--cs-primary); border-right: 2px solid var(--cs-primary); transform: rotate(45deg); }
.cs-navi__links span { padding: 0 8px; font-size: 12px; line-height: 1.8; color: #fff; background: var(--cs-primary); border-radius: 4px; }
.cs-thanks__back { margin-top: 40px; text-align: center; }
.cs-page .cs-thanks__back a { font-size: 15px; font-weight: 700; }
@media (max-width: 991px) {
  .cs-resources { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .cs-navi { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; }
}
@media (max-width: 600px) {
  .cs-thanks { padding: 44px 0 40px; }
  .cs-thanks__icon { width: 60px; height: 60px; margin-bottom: 18px; }
  .cs-thanks__icon::after { top: 18px; left: 17px; width: 24px; height: 13px; border-width: 0 0 4px 4px; }
  .cs-thanks__title { font-size: 23px; }
  .cs-thanks__text { font-size: 15px; text-align: left; }
  .cs-thanks__note { text-align: left; }
  /* スマホでは、カードを横長（左に画像・右に文字）にして、縦に長くなりすぎないようにする */
  .cs-resources { gap: 14px; }
  .cs-page .cs-resource__link { flex-direction: row; }
  .cs-resource__image { flex: 0 0 104px; height: auto; padding: 10px; }
  .cs-resource__body { gap: 6px; padding: 14px 14px 14px 16px; }
  .cs-resource__label { font-size: 12px; }
  .cs-resource__title { font-size: 16px; }
  .cs-resource__text { font-size: 13px; }
  .cs-resource__more { margin-top: 2px; font-size: 14px; }
  .cs-navi { padding: 24px 18px; }
  .cs-page .cs-navi .cs-btn { display: flex; width: 100%; min-width: 0; }
}
