/*
 * お役立ち資料の一覧 /tralog/whitepaper/（#389）。ビルドしない素の CSS（app.css とは別。このページだけで読む）。
 * 色はテーマの _setting.scss に合わせる: 主色 #f38019・文字 #222・灰 #828282・線 #dadada
 */
.l-content--wpl {
  display: block;
}

.wpl {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 0;
  color: #222;
}

.wpl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  white-space: nowrap;
}

.wpl-head__title {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
}

.wpl-head__lead {
  margin: 0 0 24px;
  color: #555;
  font-size: 15px;
  line-height: 1.8;
}

.wpl-tools {
  padding: 20px 24px 16px;
  border: 1px solid #dadada;
  border-radius: 12px;
  background: #fff;
}

.wpl-tools[hidden] {
  display: none;
}

.wpl-tools__row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.wpl-search {
  position: relative;
  flex: 1 1 auto;
  display: block;
}

.wpl-search__icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  color: #828282;
  pointer-events: none;
}

.wpl-search__input {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 0 20px 0 48px;
  border: 2px solid #f38019;
  border-radius: 9999px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.wpl-search__input:focus {
  outline: 3px solid rgba(243, 128, 25, 0.35);
  outline-offset: 1px;
}

.wpl-sort {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.wpl-sort__label {
  color: #555;
  white-space: nowrap;
}

.wpl-sort__select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #bfbfbf;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 15px;
}

.wpl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.wpl-chip {
  padding: 8px 16px;
  border: 1px solid #bfbfbf;
  border-radius: 9999px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.wpl-chip:hover {
  border-color: #f38019;
  color: #f38019;
}

.wpl-chip.is-active {
  border-color: #f38019;
  background: #f38019;
  color: #fff;
}

.wpl-chip:focus-visible,
.wpl-empty__reset:focus-visible,
.wpl-card__main:focus-visible,
.wpl-card__btn:focus-visible,
.wpl-modal__close:focus-visible {
  outline: 3px solid rgba(243, 128, 25, 0.5);
  outline-offset: 2px;
}

.wpl-count {
  margin: 24px 0 12px;
  color: #555;
  font-size: 14px;
}

.wpl-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wpl-item[hidden] {
  display: none;
}

.wpl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dadada;
  border-radius: 12px;
  background: #fff;
  color: #222;
  transition: box-shadow 0.2s, transform 0.2s;
}

.wpl-card__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  color: #222;
  text-decoration: none;
}

.wpl-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* 表紙は 2.44:1 の横長（全 29 枚）。枠も同じ比率にして、切らずに全体を出す（#389 野田さんの指摘）。
   比率の違う画像が来ても切れないよう contain（余白は薄い灰色） */
.wpl-card__figure {
  display: block;
  aspect-ratio: 2.44 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

.wpl-card__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wpl-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 14px 18px 18px;
}

.wpl-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  margin-bottom: 8px;
}

.wpl-card__cat,
.wpl-card__new {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 20px;
}

.wpl-card__cat {
  background: #fff3e6;
  color: #a85200;
}

.wpl-card__new {
  background: #222;
  color: #fff;
  font-weight: 700;
}

.wpl-card__title {
  flex: 1 1 auto;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

/* 「資料ダウンロード」ボタンの形は、トラログ TOP のカード（.card__download・.btn--white.btn--download）と同じ（大場 11/14）:
   2px の黒い枠・丸い角・13px/500・文字は中央・右に矢印（ホバーで 5px 右へ）。
   色は TOP と逆にして、黄色（#ffe44e）の地・ホバーで白（野田さん 11/16「白だと目立たない」・大場の選択）。
   黄色はヘッダーの「お問い合わせ」と同じ */
.wpl-card__btn,
.wpl-rank__cta {
  position: relative;
  display: block;
  padding: 7px 0;
  border: 2px solid #222;
  border-radius: 60px;
  background: #ffe44e;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.wpl-card__desc {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #555;
  font-size: 13px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wpl-card__btn {
  margin: 10px 18px 18px;
}

.wpl-btn-arr {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 17px;
  height: 9.5px;
  margin-top: -4.75px;
  fill: #000;
  transition: transform 0.3s;
}

.wpl-card__btn:hover,
.wpl-card__btn:focus-visible,
.wpl-rank__link:hover .wpl-rank__cta,
.wpl-rank__link:focus-visible .wpl-rank__cta {
  background: #fff;
  color: #222;
}

.wpl-card__btn:hover .wpl-btn-arr,
.wpl-card__btn:focus-visible .wpl-btn-arr,
.wpl-rank__link:hover .wpl-btn-arr,
.wpl-rank__link:focus-visible .wpl-btn-arr {
  transform: translateX(5px);
}

.wpl-card__main:hover .wpl-card__title {
  text-decoration: underline;
}

.wpl-empty {
  padding: 48px 16px;
  text-align: center;
}

.wpl-empty[hidden] {
  display: none;
}

.wpl-empty p {
  margin: 0 0 16px;
  font-size: 16px;
}

.wpl-empty__reset {
  padding: 10px 24px;
  border: 1px solid #222;
  border-radius: 9999px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

@media screen and (max-width: 1280px) {
  .wpl {
    padding-right: 0;
    padding-left: 0;
  }
}

@media screen and (max-width: 960px) {
  .wpl-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media screen and (max-width: 750px) {
  .wpl {
    padding: 0 16px 40px;
  }

  .wpl-head__title {
    font-size: 24px;
  }

  .wpl-head__lead {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .wpl-tools {
    padding: 14px 14px 12px;
  }

  .wpl-tools__row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .wpl-search__input {
    height: 48px;
  }

  .wpl-sort__select {
    flex: 1 1 auto;
  }

  /* スマホは分類を横に流す */
  .wpl-chips {
    flex-wrap: nowrap;
    margin: 12px -14px 0;
    padding: 0 14px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .wpl-chips::-webkit-scrollbar {
    display: none;
  }

  .wpl-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .wpl-count {
    margin: 16px 0 8px;
  }

  /* スマホは 1 列・画像を上に（切らずに全体）。文字とボタンはその下 */
  .wpl-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wpl-card__body {
    padding: 12px 14px 4px;
  }

  .wpl-card__labels {
    margin-bottom: 6px;
  }

  .wpl-card__title {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
  }

  .wpl-card__btn {
    margin: 8px 14px 14px;
  }
}

/* 一覧からフォームを開く窓（決定 ⑤）
   野田さん追加要望: 入力〜CTA を 1 画面に収める（スクロールしないと押せない・スクロールに気づきにくい） */
.wpl-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
}

.wpl-modal[hidden] {
  display: none;
}

.wpl-modal__bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.wpl-modal__card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 24px);
  max-height: calc(100vh - 24px);
  padding: 16px 20px 12px;
  border-radius: 14px;
  background: #fff;
  color: #222;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.wpl-modal__card:focus {
  outline: none;
}

.wpl-modal__close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #555;
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
}

.wpl-modal__close:hover {
  background: #f2f2f2;
}

.wpl-modal__kicker {
  margin: 0 0 2px;
  color: #f38019;
  font-size: 12px;
  font-weight: 700;
}

.wpl-modal__title {
  margin: 0 40px 4px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.wpl-modal__lead,
.wpl-modal__loading,
.wpl-modal__error {
  margin: 0 0 8px;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
}

.wpl-modal__loading[hidden],
.wpl-modal__error[hidden] {
  display: none;
}

.wpl-modal__error {
  color: #c62828;
}

.wpl-modal .wpl-modal__form {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 12px;
  border-radius: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.wpl-modal .js-wpl-form > div[hidden] {
  display: none !important;
}

.wpl-modal .wpl-modal__form .mktoForm {
  width: 100% !important;
}

/* 窓の中だけフォームを圧縮（記事ページの .form は変えない） */
.wpl-modal .form .form_in .mktoLabel {
  margin-top: 0;
  padding: 0;
  font-size: 13px !important;
  line-height: 1.3;
}

.wpl-modal .form .form_in .mktoFieldWrap.mktoRequiredField .mktoLabel:after {
  margin-left: 6px;
  padding: 0 6px;
  font-size: 10px;
}

.wpl-modal .form .form_in .mktoField,
.wpl-modal .form .form_in .mktoField:focus,
.wpl-modal .form .form_in .mktoField.mktoInvalid {
  margin-bottom: 8px !important;
  padding: 8px 12px !important;
  min-height: 40px;
  font-size: 16px;
  line-height: 1.3;
  box-sizing: border-box;
}

.wpl-modal .form .form_in .mktoGutter {
  height: 0;
}

.wpl-modal .form .form_in .mktoButtonRow {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: 8px !important;
  padding: 8px 0 0 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
}

.wpl-modal .form .form_in .mktoButtonWrap.mktoPaperMashup,
.wpl-modal .form .form_in .mktoButtonWrap.mktoNative,
.wpl-modal .form .form_in .mktoButtonWrap.mktoSimple {
  width: 100% !important;
}

.wpl-modal .form .form_in .mktoButtonWrap.mktoPaperMashup .mktoButton,
.wpl-modal .form .form_in .mktoButtonWrap.mktoNative .mktoButton,
.wpl-modal .form .form_in .mktoButtonWrap.mktoSimple .mktoButton {
  line-height: 44px !important;
  font-size: 15px !important;
}

.wpl-modal .form .form_in .mktoHtmlText {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.wpl-modal__privacy,
.wpl-modal__more {
  flex: 0 0 auto;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.wpl-modal__privacy a,
.wpl-modal__more a {
  color: #0070b2;
}

html.wpl-modal-open,
html.wpl-modal-open body {
  overflow: hidden;
}

@media screen and (max-width: 750px) {
  .wpl-modal {
    align-items: flex-end;
    padding: 0;
  }

  .wpl-modal__card {
    max-width: none;
    max-height: 100dvh;
    max-height: 100vh;
    padding: 14px 12px 10px;
    border-radius: 14px 14px 0 0;
  }

  .wpl-modal__title {
    font-size: 15px;
  }

  .wpl-modal .wpl-modal__form {
    padding: 8px 6px;
  }

  .wpl-modal .form .form_in .mktoField,
  .wpl-modal .form .form_in .mktoField:focus,
  .wpl-modal .form .form_in .mktoField.mktoInvalid {
    margin-bottom: 6px !important;
    padding: 7px 10px !important;
    min-height: 40px;
  }

  .wpl-modal__more {
    margin-top: 6px;
  }
}

/* 短い画面でも CTA を優先して見せる */
@media screen and (max-height: 700px) {
  .wpl-modal__lead {
    display: none;
  }

  .wpl-modal__kicker {
    font-size: 11px;
  }

  .wpl-modal__title {
    margin-bottom: 2px;
    font-size: 14px;
  }

  .wpl-modal .wpl-modal__form {
    padding: 6px 4px;
  }

  .wpl-modal .form .form_in .mktoLabel {
    font-size: 12px !important;
  }

  .wpl-modal .form .form_in .mktoField,
  .wpl-modal .form .form_in .mktoField:focus,
  .wpl-modal .form .form_in .mktoField.mktoInvalid {
    margin-bottom: 4px !important;
    padding: 6px 10px !important;
    min-height: 38px;
  }

  .wpl-modal .form .form_in .mktoButtonWrap.mktoPaperMashup .mktoButton,
  .wpl-modal .form .form_in .mktoButtonWrap.mktoNative .mktoButton,
  .wpl-modal .form .form_in .mktoButtonWrap.mktoSimple .mktoButton {
    line-height: 40px !important;
    font-size: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wpl-card {
    transition: none;
  }

  .wpl-card:hover {
    transform: none;
  }
}

/* 画面の下に固定の「さらに絞り込む」と、開く分類・並び順の窓（#389・参考 neo-career）。
   一覧の上の絞り込み（検索・分類）が画面の外へ出たら出す（JS）。
   PC: 画面の下の中央（右下の丸いボタンの列とは重ならない）・窓は真ん中に開く。
   スマホ: 下の帯（チャット・Web でお問い合わせ。.cta-bar・高さ 52px・下から 10px・重なり順 4）の上に置き、窓は下から開く */
.wpl-fbtn {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 48px;
  padding: 0 24px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 24px;
  background: #222;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.wpl-fbtn:hover,
.wpl-fbtn:focus-visible {
  background: #000;
}

.wpl-fbtn[hidden],
.wpl-sheet[hidden],
html.wpl-modal-open .wpl-fbtn {
  display: none;
}

.wpl-fbtn__icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.wpl-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.wpl-sheet__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.55);
}

.wpl-sheet__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  max-height: 85dvh;
  border-radius: 16px;
  background: #fff;
  color: #222;
  overflow: hidden;
}

.wpl-sheet__card:focus {
  outline: none;
}

.wpl-sheet__head {
  position: relative;
  flex: 0 0 auto;
  padding: 14px 48px;
  background: #222;
  color: #fff;
  text-align: center;
}

.wpl-sheet__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.wpl-sheet__x {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.wpl-sheet__body {
  flex: 1 1 auto;
  padding: 4px 16px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.wpl-sheet__h {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.wpl-sheet__body .wpl-chips {
  flex-wrap: wrap;
  margin: 10px 0 0;
  padding: 0;
  overflow: visible;
}

.wpl-sheet__foot {
  display: flex;
  flex: 0 0 auto;
  padding: 10px 16px 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e3e3e3;
  background: #fff;
}

.wpl-sheet__clear,
.wpl-sheet__go {
  height: 48px;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.wpl-sheet__clear {
  flex: 0 0 28%;
  margin-right: 10px;
  border: 1px solid #222;
  background: #fff;
  color: #222;
}

.wpl-sheet__go {
  flex: 1 1 auto;
  border: 0;
  background: #f38019;
  color: #fff;
}

.wpl-sheet__go:hover,
.wpl-sheet__go:focus-visible {
  background: #d96d0c;
}

html.wpl-sheet-open,
html.wpl-sheet-open body {
  overflow: hidden;
}

@media screen and (max-width: 750px) {
  .wpl-fbtn {
    bottom: 72px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .wpl-sheet {
    align-items: flex-end;
    padding: 0;
  }

  .wpl-sheet__card {
    max-width: none;
    border-radius: 16px 16px 0 0;
  }
}

/* 人気ランキング（#389・参考 one-group）。上位 3 本。目立たせる（大場 11/14「見にくい・気づきにくい」）:
   オレンジの太い枠と薄いオレンジの地・オレンジの見出しの帯・大きな順位のバッジ・白いカードに影・「無料でダウンロード」の表示。
   PC は 3 列。スマホは 1 列に積む（画像は切らない） */
.wpl-rank {
  margin: 28px 0 8px;
  padding: 18px 20px 22px;
  border: 3px solid #f38019;
  border-radius: 16px;
  background: #fff7ec;
}

.wpl-rank[hidden] {
  display: none;
}

.wpl-rank__title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -18px -20px 18px;
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  background: #f38019;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
}

.wpl-rank__crown {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  fill: #ffe27a;
}

.wpl-rank__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wpl-rank__link {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
  color: #222;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.wpl-rank__link:hover,
.wpl-rank__link:focus-visible {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.wpl-rank__link .wpl-card__figure {
  border-radius: 12px 12px 0 0;
}

.wpl-rank__no {
  position: absolute;
  top: -12px;
  left: -10px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.wpl-rank__no--1 {
  background: #d4a017;
}

.wpl-rank__no--2 {
  background: #8c8c8c;
}

.wpl-rank__no--3 {
  background: #a9622f;
}

.wpl-rank__body {
  display: block;
  padding: 10px 14px 14px;
}

.wpl-rank__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.wpl-rank__link:hover .wpl-rank__name,
.wpl-rank__link:focus-visible .wpl-rank__name {
  text-decoration: underline;
}

.wpl-rank__cta {
  margin-top: 10px;
}

@media screen and (max-width: 750px) {
  .wpl-rank {
    margin-top: 20px;
    padding: 14px 12px 14px;
  }

  .wpl-rank__title {
    margin: -14px -12px 14px;
    padding: 10px 12px;
    font-size: 18px;
  }

  .wpl-rank__crown {
    width: 24px;
    height: 24px;
  }

  .wpl-rank__list {
    display: block;
  }

  .wpl-rank__item + .wpl-rank__item {
    margin-top: 12px;
  }

  .wpl-rank__no {
    top: -10px;
    left: -6px;
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .wpl-rank__body {
    padding: 10px 12px 12px;
  }

  .wpl-rank__name {
    font-size: 14px;
    line-height: 1.5;
  }

}

/* 窓の中の Marketo フォームを、サイトの見た目に合わせる（大場 11/14「トンマナが合っていない」）。
   以前の窓は、記事ページ用の .form の灰色の地に、枠なしの白い入力欄と、Marketo の既定の青いボタンが出ていた。
   フォームによってボタンの外側の class が違う（mktoPaperMashup・mktoRound など）ので、class に頼らず .mktoButton を直接そろえる。
   送信ボタンは、サイトの記事のフォームの送信ボタンと同じ（黒い丸いボタン・白い文字） */
.wpl-modal .wpl-modal__form {
  padding: 4px 2px 0;
  border-radius: 0;
  background: #fff;
}

.wpl-modal .form .form_in .mktoFormRow + .mktoFormRow {
  margin-top: 14px;
}

.wpl-modal .form .form_in .mktoLabel {
  display: block;
  float: none !important;
  width: auto !important;
  margin: 0 0 6px;
  color: #222;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.4;
  text-align: left !important;
}

/* 「名」「姓」のラベルは <strong> に入っていて、余白が付いて左へずれていた */
.wpl-modal .form .form_in .mktoLabel strong {
  display: inline;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 700;
}

.wpl-modal .form .form_in .mktoField,
.wpl-modal .form .form_in .mktoField:focus,
.wpl-modal .form .form_in .mktoField.mktoInvalid {
  width: 100% !important;
  min-height: 46px;
  margin-bottom: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid #bfbfbf;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}

.wpl-modal .form .form_in .mktoField:focus {
  border-color: #f38019;
  box-shadow: 0 0 0 3px rgba(243, 128, 25, 0.25);
}

.wpl-modal .form .form_in .mktoField.mktoInvalid {
  border-color: #c62828;
}

.wpl-modal .form .form_in input::placeholder {
  color: #9a9a9a;
}

.wpl-modal .form .form_in .mktoButtonRow {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: 14px !important;
  padding: 10px 0 2px !important;
  background: #fff;
}

.wpl-modal .form .form_in .mktoButtonWrap {
  width: 100% !important;
  margin: 0 !important;
}

.wpl-modal .form .form_in .mktoButtonWrap .mktoButton {
  display: block;
  width: 100% !important;
  height: auto;
  margin: 0;
  padding: 0 !important;
  border: 2px solid #222 !important;
  border-radius: 60px !important;
  background: #222 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 46px !important;
  text-shadow: none !important;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.wpl-modal .form .form_in .mktoButtonWrap .mktoButton:hover,
.wpl-modal .form .form_in .mktoButtonWrap .mktoButton:focus-visible {
  background: #ffe44e !important;
  color: #222 !important;
}

.wpl-modal .form .form_in .mktoForm .mktoError .mktoErrorMsg {
  padding: 8px 12px;
  border-radius: 6px;
  background: #c62828;
  font-size: 13px;
}

.wpl-modal .form .form_in .mktoForm .mktoError .mktoErrorArrow {
  background: #c62828;
}

/* 短い画面（高さ 700px 以下）では、入力欄と間隔を詰めて、送信ボタンが画面に入るようにする（野田さん 11/12「1 スクロールに収めたい」） */
@media screen and (max-height: 700px) {
  .wpl-modal .form .form_in .mktoFormRow + .mktoFormRow {
    margin-top: 8px;
  }

  .wpl-modal .form .form_in .mktoLabel {
    margin-bottom: 3px;
    font-size: 13px !important;
  }

  .wpl-modal .form .form_in .mktoField,
  .wpl-modal .form .form_in .mktoField:focus,
  .wpl-modal .form .form_in .mktoField.mktoInvalid {
    min-height: 40px;
    padding: 6px 12px !important;
  }

  .wpl-modal .form .form_in .mktoButtonWrap .mktoButton {
    line-height: 40px !important;
  }
}

/* mktoArrowButton 型のフォーム（資料 4 本）は、Marketo の既定が送信ボタンの右に青い丸（矢印）を出す。他のフォームと見た目をそろえるため消す */
.wpl-modal .form .form_in .mktoButtonWrap::before,
.wpl-modal .form .form_in .mktoButtonWrap::after,
.wpl-modal .form .form_in .mktoButtonWrap .mktoButton::before,
.wpl-modal .form .form_in .mktoButtonWrap .mktoButton::after,
.wpl-modal .form .form_in .mktoButtonRow::before,
.wpl-modal .form .form_in .mktoButtonRow::after {
  display: none !important;
  content: none !important;
}

/* PC の余白を広げる（大場 11/14「PC の画面が窮屈」）。カードの中・カードの間・見出しの間を、ひと回りゆったりさせる。スマホは変えない */
@media screen and (min-width: 751px) {
  .wpl-head__lead {
    margin-bottom: 32px;
  }

  .wpl-rank {
    margin-top: 40px;
  }

  .wpl-count {
    margin: 40px 0 16px;
  }

  .wpl-list {
    gap: 32px;
  }

  .wpl-card__body {
    padding: 20px 22px 6px;
  }

  .wpl-card__labels {
    margin-bottom: 12px;
  }

  .wpl-card__title {
    margin-bottom: 8px;
    line-height: 1.7;
  }

  .wpl-card__desc {
    margin-top: 10px;
    line-height: 1.8;
  }

  .wpl-card__btn {
    margin: 18px 22px 24px;
  }
}

/* 右下に固定の丸いボタンの列（幅 60px・右から 16px）が、右端のカードに重ならないよう、画面が狭い PC では右に余白を足す */
@media screen and (min-width: 751px) and (max-width: 1360px) {
  .wpl {
    padding-right: 30px;
  }
}

/* 横スクロールのバーを出さない（大場 11/14）。トラログのテーマは PC で .l-wrapper に min-width: 1280px を付けているため（resources/themes/tralog/assets/css/layout/_content.scss）、
   窓の幅が 1280px 未満、または 1280px ちょうどでも縦スクロールバーの分（約 15px）を引くと、ページ全体が横にはみ出す（本番の /tralog/ や記事も同じ）。
   この一覧のページだけ、最小幅をやめる。:has() が使えない古いブラウザは今までどおり */
@media screen and (min-width: 751px) and (max-width: 1300px) {
  .l-wrapper:has(.l-content--wpl) {
    min-width: 0;
  }
}

/* 窓の幅が 1210〜1300px（縦スクロールバー込みの 1280px 前後）では、フッターの右端の飾り（ページ先頭へのバナー）だけが数 px はみ出して、
   横スクロールのバーが出る。この幅では、はみ出しを切る。1210px 未満は、フッターの右のメニュー（幅 1217px）が本当にはみ出すので切らない（別の課題） */
@media screen and (min-width: 1210px) and (max-width: 1300px) {
  .l-wrapper:has(.l-content--wpl) {
    overflow-x: hidden;
    overflow-x: clip;
  }
}

/* 形式と無料の表示（#389）。カテゴリのチップと同じ高さ・同じ形の、色を付けない小さなタグを右端に置く（ボタンの上に別の行を足さない） */
.wpl-card__fmt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 2px 0;
  color: #777;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}

.wpl-card__fmt svg {
  width: 13px;
  height: 13px;
}
