@charset "UTF-8";
/* =========================================================
   contact-redesign.css
   お問い合わせページ（page-contact.php）リニューアル用スタイル

   パス: /wp-content/themes/suite-sapeet/roleplay/assets/css/contact-redesign.css

   ---------------------------------------------------------
   方針

   1. すべて `.c26` 配下にスコープする。
      contact.css は page-contact / kasuhara-form / seminar-entry の3ページで
      共有されているため、共通クラス（.formContent / .required-badge /
      .char-counter / .checkbox-group など）を素で上書きしない。
      このファイルは header.php の contact.css より後に読み込まれる前提で、
      `.c26 .formContent` のように必ず1段深い指定で打ち消す。

   2. 色はモック（グレースケール）ではなく base.css のブランドトークンに合わせる。
      --color-forest-dark / --color-teal / --color-bronze / --gray-*
      モックはあくまで構成確認用のため、配色はサイト全体に揃える。

   3. 送信ボタンは現行の見た目（濃緑のピル型）を維持する。
      base.css の .btn-primary（ブロンズ）は打ち消している。
      CTA色をブロンズに寄せるかはマーケ判断のため、今回は現状踏襲。

   4. PCでは左カラムを sticky にし、SPでは
      「案内カード（圧縮版）→ フォーム → 導入企業ロゴ」の順に並べ替える。

   5. 文字サイズは px 固定ではなく rem で指定し、/roleplay/ 配下の他ページに揃える。
      base.css の `html { font-size: clamp(14px, 1vw + 0.5rem, 16px) }` により
      1rem = PC 16px / SP 14px として自動的にスケールする。
      そのためSP用のフォントサイズ上書きは原則不要。

      本文 1rem / 補足 0.875rem / 注記 0.8125rem / ラベル 1rem（contact.css の
      .form-label に合わせる）/ バッジ 0.6875rem を基本スケールとする。
      入力欄は 1rem（16px）固定。これを下回るとiOS Safariがフォーカス時に
      画面を自動ズームするため、下げないこと。
   ========================================================= */

/* =========================================================
   ローカル変数
   ========================================================= */
.c26 {
  --c26-line: var(--gray-300, #e5e5e5);
  --c26-line-strong: #cfd8d4;
  --c26-bg-soft: #f6f8f7;
  --c26-text: var(--gray-900, #2d2d2d);
  --c26-text-sub: var(--gray-600, #737373);
  --c26-text-mute: var(--gray-500, #a3a3a3);
  --c26-brand: var(--color-forest-dark, #063026);
  --c26-brand-2: var(--color-teal, #2C7260);
  --c26-danger: #e74c3c;
  --c26-radius: 10px;
  --c26-shadow: 0 4px 18px rgba(6, 48, 38, 0.07);

  max-width: 1120px;
  margin: 0 auto;
  color: var(--c26-text);
  font-size: 1rem;
  line-height: 1.7;
}

.c26 *,
.c26 *::before,
.c26 *::after {
  box-sizing: border-box;
}

/* =========================================================
   ページ見出し・リード
   ========================================================= */
.c26-title {
  margin: 0 0 10px;
  color: var(--c26-brand);
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: center;
}

.c26-lead {
  max-width: 760px;
  margin: 0 auto 34px;
  color: var(--c26-text-sub);
  font-size: 1rem;
  text-align: center;
}

.c26-lead strong {
  color: var(--c26-text);
  font-weight: 700;
}

/* 固定ページ本文（管理画面で編集された内容） */
.c26-cms {
  max-width: 760px;
  margin: -18px auto 30px;
  color: var(--c26-text-sub);
  font-size: 1rem;
}

.c26-cms p {
  margin-bottom: 1em;
}

.c26-cms p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   レイアウト
   ========================================================= */
.c26-layout {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(430px, 7fr);
  gap: 36px;
  align-items: start;
}

.c26-side {
  position: sticky;
  /* 固定ヘッダー（base.css の --header-h）に潜らせない */
  top: calc(var(--header-h, 118px) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =========================================================
   左：案内カード
   ========================================================= */
.c26-side-card {
  border: 1px solid var(--c26-line);
  border-radius: var(--c26-radius);
  background: var(--c26-bg-soft);
  padding: 20px;
}

.c26-side-card__eyebrow {
  margin: 0 0 4px;
  color: var(--c26-text-mute);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.c26-side-card__title {
  margin: 0;
  color: var(--c26-brand);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
}

.c26-side-card__lead {
  margin: 8px 0 0;
  color: var(--c26-text-sub);
  font-size: 0.875rem;
}

.c26-side-card__note {
  margin: 12px 0 0;
  padding: 11px 12px;
  border-radius: 6px;
  background: var(--color-green-lightE8, #E5EEE8);
  color: #2f4f45;
  font-size: 0.75rem;
  line-height: 1.65;
}

/* 種別パネル（hidden 属性で表示を切り替える） */
.c26-panel[hidden] {
  display: none;
}

/* 資料サムネイル */
.c26-doc-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.c26-doc-thumb {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--c26-line-strong);
  border-radius: 6px;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(6, 48, 38, 0.08);
  overflow: hidden;
}

.c26-doc-thumb--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c26-doc-thumb--placeholder {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.c26-doc-thumb__brand {
  color: var(--c26-text-mute);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

.c26-doc-thumb__title {
  color: var(--c26-brand);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
}

.c26-doc-thumb__foot {
  color: var(--gray-400, #d4d4d4);
  font-size: 0.6875rem;
}

/* チェック項目 */
.c26-benefits {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: #3f5a51;
  font-size: 0.875rem;
}

.c26-benefits:empty {
  display: none;
}

.c26-benefits li {
  position: relative;
  padding-left: 20px;
}

.c26-benefits li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--c26-brand-2);
  font-weight: 700;
}

/* =========================================================
   左：デモ動画
   ========================================================= */
.c26-demo-embed {
  position: relative;
  width: 100%;
  margin-top: 16px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--c26-line-strong);
  border-radius: 8px;
  background: #000;
  overflow: hidden;
}

.c26-demo-embed__poster {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.c26-demo-embed__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.15s;
}

.c26-demo-embed__poster:hover .c26-demo-embed__thumb {
  opacity: 1;
}

.c26-demo-embed__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.c26-demo-embed__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent var(--c26-brand);
}

.c26-demo-embed__label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: left;
}

/* JSが生成する iframe */
.c26-demo-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.c26-demo-chapters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.c26-demo-embed__poster[hidden] {
  display: none;
}

.c26-demo-chapter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--c26-line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--c26-text);
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.c26-demo-chapter:hover {
  border-color: var(--c26-brand-2);
  background: #fff;
}

.c26-demo-chapter.is-active {
  border-color: var(--c26-brand);
  background: #fff;
}

.c26-demo-chapter__time {
  flex: none;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--c26-brand);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.c26-demo-chapter__title {
  font-weight: 700;
  line-height: 1.4;
}

.c26-demo-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--c26-brand-2);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.c26-demo-more::after {
  content: "→";
}

.c26-demo-more:hover {
  text-decoration: underline;
}

.c26-demo-note {
  margin: 8px 0 0;
  color: var(--c26-text-mute);
  font-size: 0.8125rem;
  line-height: 1.65;
}

/* =========================================================
   左：FAQ
   ========================================================= */
.c26-faq {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.c26-faq__item {
  border: 1px solid var(--c26-line-strong);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.c26-faq__q {
  position: relative;
  padding: 12px 38px 12px 14px;
  color: var(--c26-brand);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.c26-faq__q::-webkit-details-marker {
  display: none;
}

.c26-faq__q::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--c26-brand-2);
  font-size: 1.25rem;
  font-weight: 400;
}

.c26-faq__item[open] .c26-faq__q::after {
  content: "−";
}

/* 閉じるアニメーションの実行中。
   open 属性は再生完了後に外れるため、記号だけ先に戻す。 */
.c26-faq__item.is-closing .c26-faq__q::after {
  content: "+";
}

.c26-faq__a {
  padding: 0 14px 13px;
  color: var(--c26-text-sub);
  font-size: 0.875rem;
  line-height: 1.7;
  /* contact-redesign.js が height / padding をアニメーションさせる。
     はみ出しを隠すために必須。 */
  overflow: hidden;
}

.c26-faq__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--c26-brand-2);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
}

.c26-faq__more::after {
  content: "→";
}

.c26-faq__more:hover {
  text-decoration: underline;
}

.c26-faq__support {
  margin: 0;
  padding: 11px 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px dashed var(--c26-line-strong);
  color: var(--c26-text-sub);
  font-size: 0.8125rem;
  line-height: 1.65;
}

/* =========================================================
   左：導入企業ロゴ
   ========================================================= */
.c26-trust {
  border: 1px solid var(--c26-line);
  border-radius: var(--c26-radius);
  padding: 16px 20px;
  text-align: center;
}

.c26-trust__title {
  margin: 0 0 16px;
  color: var(--c26-text-sub);
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
}

/* 幅を固定するとカラム幅との端数が右側に余る。
   1fr で等分し、カラム幅がいくつでも端まで埋まるようにする。 */
.c26-trust__logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.c26-trust__logo {
  width: auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c26-line);
}

.c26-trust__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.c26-trust__logo--placeholder {
  border: 1px dashed var(--c26-line-strong);
  background: var(--gray-200, #f5f5f5);
  color: var(--gray-400, #d4d4d4);
  font-size: 0.6875rem;
  line-height: 1.3;
  text-align: center;
}

/* 導入企業一覧ページへの導線。
   ロゴが0件のときはセクションごと出力されないため、
   リンクだけが残ることはない。 */
.c26-trust__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  color: var(--c26-brand-2);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.c26-trust__more::after {
  content: "→";
}

.c26-trust__more:hover {
  text-decoration: underline;
}

/* =========================================================
   右：フォームカード
   ========================================================= */
.c26-form-card {
  border: 1px solid var(--c26-line);
  border-radius: var(--c26-radius);
  background: #fff;
  padding: 30px;
  box-shadow: var(--c26-shadow);
}

.c26-form-promise {
  margin: 0 0 16px;
  padding: 0 4px;
  color: var(--c26-brand);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.c26-form-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 12px;
  margin-bottom: 24px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--c26-bg-soft);
  color: var(--c26-text-sub);
  font-size: 0.875rem;
}

.c26-form-meta__item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.c26-form-meta__item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c26-brand-2);
}

/* =========================================================
   フィールド共通
   ========================================================= */
.c26 fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.c26-field {
  margin-top: 22px;
  margin-bottom: 22px;
}

.c26-field:last-child {
  margin-bottom: 0;
}

.c26-label,
.c26 legend.c26-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  float: none;
  margin-bottom: 8px;
  padding: 0;
  color: var(--c26-brand);
  font-size: 1rem;
  font-weight: 700;
}

/* 必須／任意バッジ（contact.css の指定を打ち消す） */
.c26 .required-badge,
.c26 .optional-badge {
  flex: none;
  margin-left: 0;
  padding: 4px 5px 5px;;
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.c26 .required-badge {
  background: var(--c26-danger);
  color: #fff;
}

.c26 .optional-badge {
  background: var(--gray-300, #e5e5e5);
  color: var(--c26-text-sub);
}

.c26-hint {
  margin: 6px 0 0;
  color: var(--c26-text-mute);
  font-size: 0.75rem;
}

.c26-hint[hidden] {
  display: none;
}

/* 入力欄（contact.css の .formContent を打ち消す） */
.c26 .formContent {
  width: 100%;
  margin-bottom: 0;
  padding: 13px 14px 17px;
  border: 1px solid var(--c26-line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--c26-text);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.c26 .formContent::placeholder {
  color: var(--gray-400, #d4d4d4);
}

.c26 .formContent:hover:not(:focus):not(.error) {
  border-color: var(--c26-brand-2);
}

.c26 .formContent:focus {
  outline: none;
  transform: none; /* contact.css の scale(1.01) を打ち消す */
  border-color: var(--c26-brand-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(44, 114, 96, 0.15);
}

.c26 textarea.formContent {
  min-height: 118px;
  resize: vertical;
}

.c26 select.formContent {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--c26-text-sub) 50%),
                    linear-gradient(135deg, var(--c26-text-sub) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

/* 姓・名 */
.c26-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* 文字数カウンター（contact.css を打ち消す） */
.c26 .char-counter-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.c26 .char-counter {
  flex: none;
  color: var(--c26-text-mute);
  font-size: 0.75rem;
  text-align: right;
}

/* =========================================================
   お問い合わせ種別カード
   ========================================================= */
.c26-type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.c26-type-card {
  position: relative;
  display: block;
  /* contact-validation.js がエラー時に .radio-item へ
     背景色・padding をインライン付与するため、余白を持たせて
     赤いフレームとして見えるようにしておく */
  padding: 3px;
  border-radius: 9px;
  cursor: pointer;
}

.c26-type-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.c26-type-card__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
  height: 100%;
  min-height: 78px;
  padding: 13px 9px 20px;
  border: 1px solid var(--c26-line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--c26-text-sub);
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.c26-type-card__title {
  font-size: 1rem;
  font-weight: 700;
}

.c26-type-card__sub {
  color: var(--c26-text-mute);
  font-size: 0.75rem;
  line-height: 1.4;
}

.c26-type-card:hover .c26-type-card__box {
  border-color: var(--c26-brand-2);
}

.c26-type-card input:checked + .c26-type-card__box {
  border-color: var(--c26-brand);
  background: var(--c26-brand);
  color: #fff;
}

.c26-type-card input:checked + .c26-type-card__box .c26-type-card__sub {
  color: var(--color-sage-lightC6, #C6D6CD);
}

.c26-type-card input:focus-visible + .c26-type-card__box {
  box-shadow: 0 0 0 3px rgba(44, 114, 96, 0.3);
}

/* =========================================================
   エラー表示
   ========================================================= */
/* 上部アラート（サーバー差し戻し／クライアント一括） */
.c26 .form-notification.c26-alert {
  margin-bottom: 20px;
  padding: 13px 16px;
  border: 1px solid var(--c26-danger);
  border-left: 5px solid var(--c26-danger);
  border-radius: 6px;
  background: #fdf3f2;
  color: #a5352a;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.6;
}

.c26 .form-notification.c26-alert p {
  margin: 0;
}

.c26 .form-notification.c26-alert small {
  display: block;
  margin-top: 4px;
  color: var(--c26-text-sub);
  font-size: 0.875rem;
  font-weight: 400;
}

/* 項目下のエラー文言（contact-validation.js が textContent を書き込む） */
.c26 .error-message {
  display: block;
  color: var(--c26-danger);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
}

.c26 .error-message:empty {
  display: none;
}

/* JSが付ける .error と、PHPが付ける .has-error の両方に対応 */
.c26 .formContent.error,
.c26-field.has-error .formContent {
  border-color: var(--c26-danger);
  background: #fdf3f2;
}

.c26 .formContent.error:focus,
.c26-field.has-error .formContent:focus {
  border-color: var(--c26-danger);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.c26-name-col.has-error .formContent {
  border-color: var(--c26-danger);
  background: #fdf3f2;
}

/* =========================================================
   同意・送信
   ========================================================= */
.c26-submit-block {
  margin-top: 30px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-200, #f5f5f5);
}

.c26 .checkbox-group.c26-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--c26-text-sub);
  font-size: 0.9375rem;
}

.c26 .checkbox-group.c26-agree input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--c26-brand-2);
}

.c26 .c26-agree__label {
  margin: 0;
  cursor: pointer;
}

.c26 .c26-agree__label .privacyLink {
  color: var(--c26-brand-2);
  font-weight: 700;
}

.c26 .submit-area {
  margin-top: 18px;
  text-align: center;
}

/* 送信ボタン。base.css の .btn-primary（ブロンズ）を打ち消し、
   現行の濃緑ピル型を維持する。 */
.c26 .c26-submit,
.c26 .c26-submit.btn-primary {
  display: block;
  width: auto;
  margin: 0 auto;
  padding: 14px 20px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-gradient-primary, linear-gradient(90deg, #063026 0%, #2C7260 100%));
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}

.c26 .c26-submit:hover {
  transform: none; /* base.css の translateY(-2px) を打ち消す */
  background: var(--bg-gradient-primary, linear-gradient(90deg, #063026 0%, #2C7260 100%));
  box-shadow: 0 4px 14px rgba(6, 48, 38, 0.25);
  opacity: 0.92;
}

.c26 .c26-submit:active {
  transform: translateY(1px);
}

.c26 .c26-submit:focus-visible {
  outline: 3px solid rgba(44, 114, 96, 0.4);
  outline-offset: 3px;
}

/* contact-validation.js が送信中に付与する状態 */
.c26 .c26-submit:disabled,
.c26 .c26-submit.loading {
  opacity: 0.65;
  cursor: progress;
}

.c26-submit-note {
  margin: 12px 0 0;
  color: var(--c26-text-mute);
  font-size: 0.75rem;
  text-align: center;
  white-space: pre-line;
}

/* =========================================================
   日本語の折り返し制御

   狭い左カラムだと「〜につい／て教えてください。」のように
   文節の途中で折り返されたり、最終行に1〜2文字だけ残ったりする。

   - word-break: auto-phrase
       文節の区切りで折り返す。Chrome / Edge 119 以降で対応。
       Safari・Firefox は未対応だが、その場合は従来どおりの
       折り返しになるだけで、崩れることはない。
       ※ 判定に言語情報を使うため <html lang="ja"> が必要。

   - text-wrap: pretty
       最終行に1〜2文字だけ残る状態を避ける。本文向け。

   - text-wrap: balance
       各行の長さを揃える。数行で収まる見出し向け。
       ブラウザ側で行数の上限があるため、本文には使わない。
   ========================================================= */

/* 本文・注記 */
.c26-lead,
.c26-cms p,
.c26-benefits li,
.c26-faq__a,
.c26-faq__support,
.c26-form-promise,
.c26-hint,
.c26-submit-note,
.c26 .error-message,
.c26 .form-notification.c26-alert p,
.c26 .form-notification.c26-alert small,
.c26 .c26-agree__label {
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* 見出し・短いラベル */
.c26-side-card__title,
.c26-doc-thumb__title,
.c26-trust__title,
.c26-type-card__sub {
  word-break: auto-phrase;
  text-wrap: balance;
}

/* 左カラムのテキストは改行位置を固定する
   auto-phrase / text-wrap: pretty は Chrome系のみの対応のため、
   Safari・Firefox と改行位置が揃わない。
   PHP側の文字列に入れた \n を唯一の基準にする。
   （.c26-submit-note と同じ方式） */
.c26-side-card__lead,
.c26-side-card__note,
.c26-demo-chapter__title,
.c26-demo-note,
.c26-faq__q {
  white-space: pre-line;
}

/* =========================================================
   レスポンシブ
   ========================================================= */

/* --- タブレット以下：1カラム化 ------------------------------
   .c26-side を display:contents にして、子要素を
   案内カード → フォーム → 導入企業ロゴ の順に並べ替える。
   （判断材料は上に残しつつ、ロゴはフォームの下へ回す）
----------------------------------------------------------- */
@media screen and (max-width: 920px) {
  .c26-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  .c26-side {
    position: static;
    display: contents;
  }

  .c26-side-card {
    order: 1;
  }

  .c26-form-card {
    order: 2;
  }

  .c26-trust {
    order: 3;
  }
}

/* --- SP ---------------------------------------------------
   案内カードは圧縮版にする。
   .c26-panel__sp-hide が付いた要素（資料サムネイル、デモの補足文）を落とし、
   見出し＋リード＋チェック項目だけを残してフォームまでの距離を短くする。
   デモ動画はSPでも表示する（種別で「デモ希望」を選んだ人にしか出ないため、
   初期表示の高さには影響しない）。
----------------------------------------------------------- */
@media screen and (max-width: 720px) {
  .c26-panel__sp-hide {
    display: none;
  }

  .c26-submit-block {
    margin-top: 0;
    padding-top: 0;
  }

  .c26-lead {
    margin-bottom: 24px;
    text-align: left;
  }

  .c26-cms {
    margin-top: -14px;
    text-align: left;
  }

  .c26-side-card {
    padding: 16px;
  }

  .c26-form-card {
    padding: 22px 18px;
  }

  .c26-form-meta {
    justify-content: flex-start;
  }

  .c26-type-cards {
    grid-template-columns: 1fr;
  }

  .c26-type-card__box {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 12px 14px;
    text-align: left;
  }

  .c26-type-card__sub::before {
    content: "— ";
  }

  .c26-name-row {
    gap: 10px;
  }

  .c26-demo-chapters {
    grid-template-columns: 1fr;
  }

  .c26-trust__logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .c26-trust__logo {
    height: 48px;
  }
}

@media screen and (max-width: 420px) {
  .c26-name-row {
    grid-template-columns: 1fr;
  }

  .c26 .c26-submit {
    font-size: 1rem;
    letter-spacing: 0.04em;
  }
}

/* =========================================================
   印刷・モーション設定
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .c26 * {
    transition: none !important;
  }
}