/* MYLIBRARY about v1.6.2（top.css の部品に足す分だけ） */

/* テーマ（SWELL）のページタイトルを隠す
   ※SWELLはページの目印クラスを body ではなく #body_wrap に付けるので、要素名をつけずに指定する */
.mla-notitle .l-topTitleArea,
.mla-notitle .c-pageTitle,
.mla-notitle .p-articleHead { display: none !important; }

/* ---------- 1 AttachStyleとは ---------- */
.mla-intro { background: linear-gradient(180deg, color-mix(in srgb, var(--mlt-c) 7%, #fff) 0%, #fff 70%); }
.mla .mla-intro.is-alt { background: linear-gradient(180deg, color-mix(in srgb, var(--mlt-c) 7%, #fff) 0%, var(--mlt-soft) 70%); }
.mla-intro-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.mla .mla-intro-head h2.mlt-catch { margin: 6px 0 22px; }
.mla-eyecatch { max-width: 760px; margin: 0 auto 28px; overflow: hidden; border-radius: var(--mlt-r); box-shadow: var(--mlt-shadow); }
.mla .mla-eyecatch img { display: block; width: 100%; height: auto; }
.mla-eyecatch.is-slides { overflow: visible; border-radius: 0; box-shadow: none; }
.mla-eyecatch.is-slides .mlt-slides { border-radius: var(--mlt-r); box-shadow: var(--mlt-shadow); }
.mla .mla-eyecatch.is-slides .mlt-slides .mlt-slide:not(:first-child) { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.mla-intro-lead { max-width: 640px; text-wrap: pretty; margin: 0 auto; font-size: 15px; color: var(--mlt-sub); }

.mla-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mla-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 28px 24px 26px; background: #fff; border: 1px solid var(--mlt-line); border-radius: var(--mlt-r);
  box-shadow: var(--mlt-shadow);
  animation: mla-up .7s both; animation-delay: var(--d, 0s);
}
.mla-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: var(--mlt-c); opacity: .85; }
.mla-card-ico { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 10px; color: var(--mlt-c); background: var(--mlt-tint); border-radius: 50%; }
.mla-card-word { font-size: 26px; font-weight: 900; line-height: 1.2; letter-spacing: .01em; color: var(--mlt-c); }
.mla-card-title { font-size: 17px; font-weight: 900; line-height: 1.5; color: var(--mlt-ink); }
.mla-card-text { margin-top: 6px; font-size: 14px; line-height: 1.9; color: var(--mlt-sub); }
.mla-card-text em { font-style: normal; color: var(--mlt-c); }

.mla-origin { display: flex; align-items: flex-start; gap: 14px; max-width: 760px; margin: 34px auto 0; padding: 16px 20px; background: #fff; border: 1px dashed color-mix(in srgb, var(--mlt-c) 40%, var(--mlt-line)); border-radius: 14px; }
.mla-origin-label { flex: none; padding: 2px 12px; font-size: 12px; font-weight: 800; line-height: 1.9; color: #fff; background: var(--mlt-c2); border-radius: 99px; }
.mla-origin-text { font-size: 14px; color: var(--mlt-sub); }
.mla-origin-text em { font-style: normal; color: var(--mlt-c); }

@keyframes mla-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 2 運営者情報 ---------- */
.mla-owner-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.mla-owner-grid.is-single { grid-template-columns: 1fr; max-width: 420px; }
.mla-person { display: flex; flex-direction: column; align-items: center; padding: 30px 24px; text-align: center; background: #fff; border: 1px solid var(--mlt-line); border-radius: var(--mlt-r); box-shadow: var(--mlt-shadow); }
.mla .mla-avatar { width: 140px; height: 140px; margin-bottom: 16px; border: 4px solid #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--mlt-c) 25%, transparent), var(--mlt-shadow); }
.mla-name { font-size: 22px; font-weight: 900; line-height: 1.4; }
.mla-role { margin-top: 6px; text-wrap: balance; font-size: 13px; font-weight: 700; line-height: 1.7; color: var(--mlt-c); }
.mla-person-text { margin-top: 14px; font-size: 13px; line-height: 1.9; color: var(--mlt-sub); text-align: left; }

.mla-history { padding: 26px 28px; background: #fff; border: 1px solid var(--mlt-line); border-radius: var(--mlt-r); box-shadow: var(--mlt-shadow); }
.mla-history-label { margin-bottom: 18px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--mlt-sub); }
.mla .mla-steps { position: relative; margin: 0 !important; padding: 0 0 0 30px !important; list-style: none !important; }
.mla .mla-steps::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--mlt-line), color-mix(in srgb, var(--mlt-c) 45%, var(--mlt-line))); }
.mla .mla-step { position: relative; display: flex; flex-direction: column; margin: 0 0 16px !important; padding: 0 !important; list-style: none !important; }
.mla .mla-step::marker { content: none; }
.mla .mla-step:last-child { margin-bottom: 0 !important; }
.mla .mla-step::before { content: ""; position: absolute; left: -28px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid color-mix(in srgb, var(--mlt-c) 55%, #fff); }
.mla-step-title { font-size: 15px; font-weight: 800; line-height: 1.7; color: var(--mlt-ink); }
.mla-step-text { font-size: 12px; line-height: 1.7; color: var(--mlt-sub); }
.mla .mla-step.is-now::before { left: -30px; top: 5px; width: 16px; height: 16px; background: var(--mlt-c); border-color: var(--mlt-c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--mlt-c) 18%, transparent); }
.mla .mla-step.is-now .mla-step-title { color: var(--mlt-c); }

/* ---------- 3 紙芝居 ---------- */
.mla-embed { max-width: 900px; margin: 0 auto; }

/* ---------- 4 サイトのツール ---------- */
.mla .mla-tools { grid-template-columns: repeat(3, 1fr); }

/* ---------- 5 ライブラリへの導線 ---------- */
.mla-libs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.mla-libs.is-single { grid-template-columns: 1fr; max-width: 460px; }
.mla .mla-lib {
  display: flex; flex-direction: column; gap: 6px; padding: 26px 26px 24px;
  color: var(--mlt-ink) !important; background: #fff; border: 1px solid var(--mlt-line); border-radius: var(--mlt-r); box-shadow: var(--mlt-shadow);
  transition: transform .2s, border-color .2s;
}
.mla .mla-lib:hover { transform: translateY(-4px); border-color: var(--mlt-c); }
.mla-lib-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.mla-lib-kind { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--mlt-c); }
.mla .mla-lib.is-game .mla-lib-kind { color: var(--mlt-c2); }
.mla-lib-n { font-size: 12px; color: var(--mlt-sub); }
.mla-lib-n b { margin-right: 2px; font-size: 20px; font-weight: 900; color: var(--mlt-ink); }
.mla-lib-title { font-size: 20px; font-weight: 900; line-height: 1.5; }
.mla-lib-text { font-size: 14px; line-height: 1.8; color: var(--mlt-sub); }
.mla-lib-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 800; color: var(--mlt-c); }
.mla .mla-lib.is-game .mla-lib-btn { color: var(--mlt-c2); }

/* ---------- スマホ ---------- */
@media (max-width: 900px) {
  .mla-cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .mla-owner-grid { grid-template-columns: 1fr; gap: 20px; max-width: 560px; margin: 0 auto; }
  .mla .mla-tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mla-intro-head { margin-bottom: 32px; }
  .mla-card { padding: 24px 20px 22px; }
  .mla-history { padding: 22px 18px; }
  .mla .mla-tools { grid-template-columns: 1fr; }
  .mla-libs { grid-template-columns: 1fr; }
  .mla-origin { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .mla-card { animation: none; }
  .mla .mla-lib { transition: none; }
}
