/*
 * 公開ページ共通の presentation（トップLP・料金・認証・文書・動画・記事・エラー）。
 * 色は紙・墨・藍（操作）・朱（注記）、見出しは Shippori Mincho（OFL 1.1）を基本に、
 * 本文は Noto Sans JP。各ページは body に .lp-page を付けてこのファイルを読み込む。
 * アプリ本体（マップ・執筆・設定）には適用しない。
 */

html {
  scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px));
  background: #f3efe6;
}

.lp-page {
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  /* 粒子（.lp-page::before）を重ねた紙の見た目の平均色。粒子より上にある面（ヘッダー・メニュー）に使う。 */
  --paper-grain: #eeeae1;
  --sheet: #fbf9f4;
  --ink: #1a1712;
  --ink-2: #3b362d;
  --muted: #6b6457;
  --rule: rgba(26, 23, 18, 0.14);
  --rule-strong: rgba(26, 23, 18, 0.3);
  --night: #12110f;
  --night-2: #1b1916;
  --night-ink: #ece6da;
  --night-muted: #a69e8f;
  --night-rule: rgba(236, 230, 218, 0.15);
  --ai: #2443d6;
  --ai-deep: #1a32a8;
  --ai-light: #a9b8ff;
  --shu: #d4452a;
  --shu-light: #f08a6c;
  /* 小さい文字に使う朱。明るい地でコントラスト比4.5以上を保つ（装飾の線・点は --shu）。 */
  --shu-ink: #b2361d;
  --node-root: #cfc9bc;
  --node-character: #f29a1f;
  --node-place: #5cc6ec;
  --node-scene: #4d8df5;
  --node-world: #18bf8a;
  --node-foreshadow: #9b7cf2;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", "Source Han Serif JP", serif;
  --sans: 'Noto Sans JP', system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --latin: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  /* PWA などでステータスバーの裏から描くとき（viewport-fit=cover）の上端の余白。Safari では 0。 */
  --safe-top: env(safe-area-inset-top, 0px);
  --header-h: calc(64px + var(--safe-top));

  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.lp-page ::selection {
  background: rgba(36, 67, 214, 0.18);
  color: var(--ink);
}

/* 紙の粒子。固定レイヤーへ一度だけラスタライズし、合成モードは使わない。
 * ヘッダー（z-index 50）より下に置く。iOS 26 は画面上端に固定された要素の色をステータスバーの裏へ延ばすため、
 * ほぼ透明なこの層がヘッダーより上にあると色を決められず、PWA でステータスバーの裏に本文が透ける。 */
.lp-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── 日本語組版 ─────────────────────────────── */
.lp-page {
  line-break: strict;
}
.lp-page :where(h1, h2, h3) {
  word-break: auto-phrase;
  text-wrap: balance;
}
.lp-page :where(p, li, figcaption, summary > span:first-child, a) {
  word-break: auto-phrase;
  text-wrap: pretty;
}
.lp-page summary > span:last-child {
  flex: 0 0 auto;
}
.lp-page [data-analytics-cta] {
  white-space: nowrap;
}
/* 記事本文の見出しは装飾のため flex で組まれ、文節（auto-phrase）より狭くは縮まない。
 * 1行に収まらない長い文節は途中で折り返し、スマホ幅で画面からはみ出さないようにする。 */
.lp-page .article-prose :where(h2, h3, h4),
.lp-page .toc-link {
  overflow-wrap: anywhere;
}
/* 記事末尾の主CTAは文言が長いため、狭い幅では枠内で折り返す（はみ出すと iOS で横にずれる）。 */
.lp-page [data-analytics-cta="article_primary"] {
  max-width: 100%;
  white-space: normal;
}
.lp-nowrap,
.lp-writing-nowrap {
  white-space: nowrap;
}
.lp-writing-phrase {
  word-break: auto-phrase;
  text-wrap: pretty;
}
.lp-page :where(h1, h2, h3, .lp-display) {
  font-feature-settings: "palt";
}

.lp-wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lp-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
}
.lp-skip:focus {
  top: 12px;
}

/* ── ボタン ─────────────────────────────── */
.lp-btn {
  --fill: var(--ai-deep);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  transition: color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.6s var(--ease-out);
}
.lp-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--fill);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
.lp-btn:hover::before,
.lp-btn:focus-visible::before {
  transform: translateY(0);
}
.lp-btn:active {
  transform: scale(0.98);
}
.lp-btn--arrow::after {
  content: "→";
  font-family: var(--latin);
  font-weight: 400;
  font-size: 1.15em;
  transition: transform 0.55s var(--ease-out);
}
.lp-btn--arrow:hover::after {
  transform: translateX(4px);
}

.lp-btn--sm { min-height: 40px; padding: 0 18px; font-size: 13.5px; }
.lp-btn--md { min-height: 48px; padding: 0 24px; font-size: 14.5px; }
.lp-btn--lg { min-height: 58px; padding: 0 30px; font-size: 15.5px; }
.lp-btn--xl { min-height: 68px; padding: 0 40px; font-size: 17px; }
.lp-btn--block { width: 100%; min-height: 54px; padding: 0 24px; font-size: 15px; }

.lp-btn--ai {
  background: var(--ai);
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(36, 67, 214, 0.75);
}
.lp-btn--ink {
  --fill: var(--ai);
  background: var(--ink);
  color: var(--paper);
}
.lp-btn--paper {
  --fill: #fff;
  background: var(--night-ink);
  color: var(--ink);
}
.lp-btn--ghost {
  --fill: var(--ink);
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
}
.lp-btn--ghost:hover,
.lp-btn--ghost:focus-visible {
  color: var(--paper);
  border-color: var(--ink);
}
.lp-btn--ghost-night {
  --fill: var(--night-ink);
  border: 1px solid rgba(236, 230, 218, 0.35);
  background: transparent;
  color: var(--night-ink);
}
.lp-btn--ghost-night:hover,
.lp-btn--ghost-night:focus-visible {
  color: var(--night);
  border-color: var(--night-ink);
}
.lp-btn--outline {
  --fill: var(--ink);
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.lp-btn--outline:hover,
.lp-btn--outline:focus-visible {
  color: var(--paper);
}

.lp-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: color 0.3s ease, text-underline-offset 0.3s ease;
}
.lp-textlink:hover {
  color: var(--ai);
  text-underline-offset: 4px;
}
.lp-textlink svg {
  width: 16px;
  height: 16px;
}

/* ── 柱（ランニングヘッド）と図版キャプション ─────────────── */
.lp-running-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.22em;
  line-height: 1.6;
  color: var(--muted);
}
.lp-running-head__no {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--shu-ink);
  font-weight: 600;
}
.lp-running-head__no::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.lp-running-head--night {
  color: var(--night-muted);
}
.lp-running-head--night .lp-running-head__no {
  color: var(--shu-light);
}

.lp-figcap {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.lp-figcap__no {
  flex: none;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
}
/* 図版の種別。自作の図解は必ず「イメージ図」とし、実画面と見分けられるようにする。 */
.lp-kind {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 1.7em;
  margin-right: 0.7em;
  padding: 0 0.7em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  vertical-align: 0.1em;
  white-space: nowrap;
  color: var(--ink-2);
}
.lp-kind--illust {
  border-style: dashed;
  color: var(--shu-ink);
}
.lp-kind--night {
  color: var(--night-ink);
}
.lp-figcap--center {
  justify-content: center;
  text-align: center;
}

/* ── ヘッダー ─────────────────────────────── */
.lp-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  box-sizing: border-box;
  height: var(--header-h);
  padding-top: var(--safe-top);
  /* ページ最上部でも紙の地を持たせる（iOS がステータスバーの裏の色をこの地から決めるため。透明だと本文が透ける）。 */
  background: rgba(238, 234, 225, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.lp-header.is-scrolled {
  background: rgba(238, 234, 225, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--rule);
}
.lp-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
.lp-header__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.lp-header__logo {
  position: relative;
}
.lp-header__logo img {
  width: auto;
  height: 28px;
  transition: opacity 0.4s ease;
}
.lp-header__logo .lp-header__logo-night {
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  opacity: 0;
}
/* 暗い章の上では墨色のヘッダーにする */
.lp-header.is-night.is-scrolled {
  background: rgba(18, 17, 15, 0.82);
  box-shadow: 0 1px 0 var(--night-rule);
}
.lp-header.is-night .lp-header__logo img {
  opacity: 0;
}
.lp-header.is-night .lp-header__logo .lp-header__logo-night {
  opacity: 1;
}
.lp-header.is-night .lp-header__nav a,
.lp-header.is-night .lp-header__login {
  color: var(--night-muted);
}
.lp-header.is-night .lp-header__nav a:hover,
.lp-header.is-night .lp-header__nav a.is-current,
.lp-header.is-night .lp-header__login:hover {
  color: var(--night-ink);
}
.lp-header.is-night .lp-header__settings {
  border-color: var(--night-rule);
  background: var(--night-ink);
}
.lp-header__nav {
  display: none;
}
.lp-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.lp-header__login {
  display: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.3s ease;
}
.lp-header__login:hover {
  color: var(--ai);
}
.lp-header__pro {
  display: none;
}
.lp-header__settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.3s ease;
}
.lp-header__settings:hover {
  background: rgba(26, 23, 18, 0.06);
}
.lp-header__settings img {
  width: 26px;
  height: 26px;
}
.lp-header__progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  pointer-events: none;
}
.lp-header__progress span {
  display: block;
  height: 100%;
  background: var(--shu);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

@media (min-width: 640px) {
  .lp-header__login,
  .lp-header__pro {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .lp-header__nav {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    gap: 2px;
    transform: translate(-50%, -50%);
  }
  .lp-header__nav a {
    position: relative;
    padding: 10px 13px;
    font-family: var(--serif);
    font-size: 14.5px;
    letter-spacing: 0.16em;
    color: var(--ink-2);
    transition: color 0.3s ease;
  }
  .lp-header__nav a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: calc(13px + 0.16em);
    bottom: 6px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.5s var(--ease-out);
  }
  .lp-header__nav a:hover,
  .lp-header__nav a.is-current {
    color: var(--ink);
  }
  .lp-header__nav a:hover::after,
  .lp-header__nav a.is-current::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
  .lp-header__nav a.is-current::after {
    background: var(--shu);
  }
}

/* ── フッター ─────────────────────────────── */
.lp-footer {
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.lp-footer__inner {
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}
.lp-footer__brand img {
  width: auto;
  height: 24px;
  margin-inline: auto;
}
.lp-footer__brand p {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.lp-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  font-size: 13px;
}
.lp-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-2);
  transition: color 0.3s ease;
}
.lp-footer__nav a:hover {
  color: var(--ai);
}
.lp-footer__copy {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 1024px) {
  .lp-footer__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: stretch;
    align-items: center;
    text-align: left;
  }
  .lp-footer__brand img {
    margin-inline: 0;
  }
}


/* ── スマホ幅のメニュー（public_nav.js が組み立てる） ─────────── */
.lp-menu-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
/* 線の太さと位置は整数pxにする（1.5px だと端末の解像度で上下の線の太さが違って見える）。 */
.lp-menu-btn__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.lp-header.is-menu-open .lp-menu-btn__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}
.lp-header.is-menu-open .lp-menu-btn__bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}
.lp-header.is-night .lp-menu-btn {
  color: var(--night-ink);
}
.lp-mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
  padding: 8px var(--gutter) 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-grain);
  box-shadow: 0 30px 50px -30px rgba(26, 23, 18, 0.35);
}
.lp-mobile-nav[hidden] {
  display: none;
}
.lp-mobile-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-mobile-nav li {
  border-bottom: 1px solid var(--rule);
}
.lp-mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.lp-mobile-nav a::after {
  content: "→";
  font-family: var(--latin);
  font-weight: 400;
  color: var(--muted);
}
.lp-mobile-nav a.is-current {
  color: var(--shu-ink);
}
.lp-mobile-nav .lp-mobile-nav__sub a {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.04em;
}
@media (min-width: 1024px) {
  .lp-menu-btn,
  .lp-mobile-nav {
    display: none !important;
  }
}

/* 公開ページ共通：動きを減らす設定ではボタン・リンクの遷移を止める */
@media (prefers-reduced-motion: reduce) {
  .lp-page .lp-btn,
  .lp-page .lp-btn::before,
  .lp-page .lp-btn::after,
  .lp-page .lp-textlink,
  .lp-page .lp-header__nav a::after {
    transition-duration: 1ms !important;
  }
}

/* ヘッダー右側の操作は縮めない（幅320pxでもボタン・アイコンを44px以上に保つ） */
.lp-header__actions > * {
  flex-shrink: 0;
}
@media (max-width: 359px) {
  .lp-header__actions {
    gap: 6px;
  }
  .lp-header__actions .lp-btn--sm {
    padding: 0 14px;
  }
  .lp-header__logo img {
    height: 24px;
  }
}

/* ── iOS Safari ではステータスバーの裏にもページが描かれるため、ヘッダーの地を上へ延ばして覆う ── */
.lp-header::before {
  content: "";
  position: absolute;
  inset: auto 0 100%;
  height: 160px;
  background: var(--lp-header-cover, var(--paper-grain));
  pointer-events: none;
}
.lp-header.is-scrolled,
.lp-header.is-menu-open,
.lp-header--static {
  --lp-header-cover: var(--paper-grain);
}
.lp-header.is-night.is-scrolled {
  --lp-header-cover: var(--night);
}

/* ── 線のアイコン（メニュー内） ── */
.lp-page .mk-icon {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── ログイン中の設定メニュー（includes/marketing_account_menu.html）。歯車の真下に開く ── */
.lp-header__actions {
  position: relative;
}
.mk-settings-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 2px;
  width: 248px;
  max-width: calc(100vw - 24px);
  padding: 6px 6px 8px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: 0 30px 60px -30px rgba(26, 23, 18, 0.45), 0 2px 6px -2px rgba(26, 23, 18, 0.12);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0.02em;
}
.mk-settings-menu.hidden {
  display: none;
}
/* 歯車を指す小さな切り欠き */
.mk-settings-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 15px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  background: var(--sheet);
  transform: rotate(45deg);
}
.mk-settings-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 6px 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
}
.mk-settings-menu__label {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.mk-settings-menu__close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mk-settings-menu__close::after {
  content: "";
  position: absolute;
  inset: -6px;
}
.mk-settings-menu__close:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.mk-settings-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mk-settings-menu__item .mk-icon {
  color: var(--muted);
  transition: color 0.2s ease;
}
.mk-settings-menu__item:hover {
  background: var(--paper-2);
}
.mk-settings-menu__item:hover .mk-icon {
  color: var(--ai);
}
.mk-settings-menu__logout-form {
  margin: 4px 0 0;
  padding-top: 4px;
  border-top: 1px solid var(--rule);
}
.mk-settings-menu .mk-settings-menu__logout,
.mk-settings-menu .mk-settings-menu__logout .mk-icon,
.mk-settings-menu .mk-settings-menu__logout:hover .mk-icon {
  color: var(--shu-ink);
}
.mk-settings-menu .mk-settings-menu__logout:hover {
  background: rgba(212, 69, 42, 0.08);
}

/* ── スマホ幅：歯車は出さず、アカウントの項目を二本線のメニューにまとめる ── */
@media (max-width: 1023.98px) {
  .lp-header.has-mobile-menu .lp-header__settings,
  .lp-header.has-mobile-menu .mk-settings-menu {
    display: none !important;
  }
}
.lp-mobile-nav .lp-mobile-nav__heading {
  padding: 22px 0 6px;
  border-bottom: 0;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.lp-mobile-nav .lp-mobile-nav__account,
.lp-mobile-nav .lp-mobile-nav__logout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.lp-mobile-nav .lp-mobile-nav__account::after {
  margin-left: auto;
}
.lp-mobile-nav .lp-mobile-nav__account .mk-icon {
  color: var(--muted);
}
.lp-mobile-nav .lp-mobile-nav__pro {
  font-weight: 700;
  color: var(--ai);
}
.lp-mobile-nav .lp-mobile-nav__pro::after,
.lp-mobile-nav .lp-mobile-nav__pro .mk-icon {
  color: var(--ai);
}
.lp-mobile-nav .lp-mobile-nav__logout,
.lp-mobile-nav .lp-mobile-nav__logout .mk-icon {
  color: var(--shu-ink);
}
.lp-mobile-nav form {
  margin: 0;
}
