/* 固定ページは本文を中央に配置する。記事の目次は投稿で使用する。 */
body.page .article-rail { display: none; }
body.page .article-layout { display: block; max-width: 760px; margin-inline: auto; }

/* 東京EV・V2Hシリーズ：ネイビーを基調にした独自ビジュアル */
.mwl-ev-v2h-series {
  --ev-v2h-navy: #0b1020;
  --ev-v2h-cyan: #28d7e5;
  --ev-v2h-lime: #b7e43b;
  --ev-v2h-orange: #ff7a59;
  --ev-v2h-ink: #182333;
  --ev-v2h-muted: #657181;
}

.mwl-ev-v2h-series .mwl-ev-v2h-banner {
  margin: 1.5em 0;
  padding: 22px 24px;
  border: 1px solid #26364d;
  border-left: 8px solid var(--ev-v2h-cyan);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ev-v2h-navy), #17253b);
  color: #eef2f6;
  box-shadow: 0 10px 28px rgba(11, 16, 32, 0.16);
}

.mwl-ev-v2h-series .mwl-ev-v2h-banner strong {
  color: var(--ev-v2h-lime);
}

.mwl-ev-v2h-series .mwl-ev-v2h-banner a {
  color: var(--ev-v2h-cyan);
}

.mwl-ev-v2h-series .mwl-ev-v2h-label {
  display: inline-block;
  margin-bottom: 0.5em;
  color: var(--ev-v2h-cyan);
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mwl-ev-v2h-series .mwl-ev-v2h-table {
  overflow-x: auto;
  margin: 1.4em 0;
}

.mwl-ev-v2h-series .mwl-ev-v2h-table table {
  min-width: 680px;
  border-collapse: collapse;
  border-top: 3px solid var(--ev-v2h-navy);
}

.mwl-ev-v2h-series .mwl-ev-v2h-table th {
  background: var(--ev-v2h-navy);
  color: #eef2f6;
}

.mwl-ev-v2h-series .mwl-ev-v2h-table th,
.mwl-ev-v2h-series .mwl-ev-v2h-table td {
  padding: 0.75em 0.8em;
  border: 1px solid #c8d5e2;
  vertical-align: top;
}

.mwl-ev-v2h-series .mwl-ev-v2h-table tr:nth-child(even) td {
  background: #f4fbfc;
}

.mwl-ev-v2h-series .mwl-ev-v2h-cta {
  margin: 1.8em 0;
  padding: 20px 22px;
  border: 2px solid var(--ev-v2h-lime);
  border-radius: 14px;
  background: #f7fbe9;
  color: var(--ev-v2h-ink);
}

.mwl-ev-v2h-series .mwl-ev-v2h-cta__button {
  display: inline-block;
  margin-top: 0.6em;
  padding: 0.75em 1.1em;
  border-radius: 999px;
  background: var(--ev-v2h-navy);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.mwl-ev-v2h-series .mwl-ev-v2h-cta__button:hover,
.mwl-ev-v2h-series .mwl-ev-v2h-cta__button:focus-visible {
  background: #223858;
  color: var(--ev-v2h-lime);
}

@media screen and (max-width: 480px) {
  .mwl-ev-v2h-series .mwl-ev-v2h-banner {
    padding: 16px;
    border-left-width: 5px;
  }

}

/*
 * 固定ステッカー用component。
 * 画像内には文言を入れず、会話文・labelはHTMLで表示する。
 * faces-left/faces-rightは正式に別作成したassetの向きを表し、CSS mirrorは行わない。
 */
.mwl-sticker {
  display: grid;
  grid-template-columns: minmax(82px, 97px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 1.5em 0;
  padding: 16px 18px;
  border: 1px solid #dce5e8;
  border-left: 6px solid #2aa6b6;
  border-radius: 12px;
  background: #fff9ed;
}

.mwl-sticker__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mwl-sticker__image {
  display: block;
  width: 100%;
  max-width: 97px;
  height: auto;
  margin: 0;
}

.mwl-sticker__content {
  min-width: 0;
}

.mwl-sticker__content p {
  margin: 0.55em 0 0;
}

.mwl-sticker__content p:first-child {
  margin-top: 0;
}

.mwl-sticker__label {
  color: #087e79;
  font-weight: 700;
}

.mwl-sticker__text {
  line-height: 1.8;
}

@media screen and (max-width: 480px) {
  .mwl-sticker {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border-left-width: 4px;
    border-radius: 10px;
  }

  .mwl-sticker__image {
    max-width: 64px;
  }
}

/* MANABU WORK LAB: 共通Editorial Callout */
.mwl-editorial-callout {
  display: grid;
  grid-template-columns: minmax(82px, 97px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 1.5em 0;
  padding: 18px 20px;
  border: 1px solid #c8d5e2;
  border-left: 5px solid #082c5c;
  border-radius: 12px;
  background: #fff9ed;
  color: #082c5c;
  box-sizing: border-box;
}

.mwl-editorial-callout--series {
  border-left-color: #082c5c;
  box-shadow: inset 0 3px 0 #2aa6b6;
}

.mwl-editorial-callout--memo {
  border-left-color: #2aa6b6;
}

.mwl-editorial-callout--caution {
  border-left-color: #f47b6a;
}

.mwl-editorial-callout__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
}

.mwl-editorial-callout__visual img {
  display: block;
  width: 100%;
  max-width: 97px;
  height: auto;
  margin: 0;
}

.mwl-editorial-callout__image--faces-right {
  transform: scaleX(-1);
  transform-origin: center;
}

.mwl-editorial-callout--caution .mwl-editorial-callout__visual img {
  max-width: 97px;
}

.mwl-editorial-callout__content {
  min-width: 0;
}

.mwl-editorial-callout__content p {
  margin: 0.55em 0 0;
  line-height: 1.8;
}

.mwl-editorial-callout__content p:first-child {
  margin-top: 0;
}

.mwl-editorial-callout__label {
  color: #082c5c;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.45;
}

.mwl-editorial-callout--memo .mwl-editorial-callout__label {
  color: #2aa6b6;
}

.mwl-editorial-callout--caution .mwl-editorial-callout__label {
  color: #082c5c;
}

.mwl-editorial-callout__progress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.8em 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82em;
  line-height: 1.45;
}

.mwl-editorial-callout__progress li {
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #c8d5e2;
  border-radius: 999px;
  background: #ffffff;
  color: #657181;
}

.mwl-editorial-callout__progress li[aria-current="step"] {
  border-color: #2aa6b6;
  background: #2aa6b6;
  color: #082c5c;
  font-weight: 700;
}

.mwl-editorial-callout__progress a {
  color: inherit;
  text-decoration: none;
}

.mwl-editorial-callout__progress a:hover,
.mwl-editorial-callout__progress a:focus-visible {
  color: #082c5c;
  text-decoration: underline;
}

@media screen and (max-width: 480px) {
  .mwl-editorial-callout {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border-left-width: 4px;
    border-radius: 10px;
  }

  .mwl-editorial-callout__visual img,
  .mwl-editorial-callout--caution .mwl-editorial-callout__visual img {
    max-width: 64px;
  }

  .mwl-editorial-callout__visual {
    margin-top: 2px;
  }

  .mwl-editorial-callout__label {
    font-size: 0.95em;
  }

  .mwl-editorial-callout__content p {
    line-height: 1.7;
  }

  .mwl-editorial-callout__progress {
    gap: 5px;
    font-size: 0.76em;
  }

  .mwl-editorial-callout__progress li {
    padding: 3px 6px;
  }
}

/* MANABU WORK LAB: ひとくちクエスト紹介ページ */
.mwl-app-promo {
  box-sizing: border-box;
  margin: 1.8em 0;
  padding: 24px 26px;
  border: 1px solid #c8d5e2;
  border-radius: 16px;
  background: #fff9ed;
  color: #082c5c;
  box-shadow: 0 10px 24px rgba(8, 44, 92, 0.06);
}

.mwl-app-promo--lead {
  border-left: 6px solid #2aa6b6;
}

.mwl-app-promo--premium {
  border: 2px solid #d9a83e;
  background: linear-gradient(135deg, #fff9ed 0%, #ffffff 100%);
}

.mwl-app-promo p {
  margin: 0.55em 0 0;
  line-height: 1.85;
}

.mwl-app-promo p:first-child {
  margin-top: 0;
}

.mwl-app-promo__eyebrow {
  color: #2aa6b6;
  font-size: 0.92em;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mwl-app-promo--premium .mwl-app-promo__eyebrow {
  color: #9a6c12;
}

.mwl-app-promo + .wp-block-buttons,
.mwl-app-promo ~ .wp-block-buttons {
  margin: 1.5em 0 2em;
}

.mwl-app-promo ~ .wp-block-buttons .wp-block-button__link {
  border-radius: 999px;
  background: #2aa6b6;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(42, 166, 182, 0.22);
}

.mwl-app-promo ~ .wp-block-buttons .wp-block-button__link:hover,
.mwl-app-promo ~ .wp-block-buttons .wp-block-button__link:focus-visible {
  background: #082c5c;
  color: #ffffff;
}

@media screen and (max-width: 480px) {
  .mwl-app-promo {
    margin: 1.35em 0;
    padding: 18px 16px;
    border-radius: 12px;
  }

  .mwl-app-promo p {
    line-height: 1.75;
  }

  .mwl-app-promo ~ .wp-block-buttons .wp-block-button,
  .mwl-app-promo ~ .wp-block-buttons .wp-block-button__link {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

