/* AXIS LOG エディタ（MVA デザイン：ネイビー #151130 × シアン #5BB8D4） */
:root {
  --navy: #151130;
  --cyan: #5BB8D4;
  --cyan-text: #1F6F8B;
  --bg: #F4F5F7;
  --text: #333333;
  --heading: #41403E;
  --muted: #666666;
  --border: #E4E4E4;
  --red: #B42318;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--text); }
body.axw { font-family: YuGothic, "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; -webkit-font-smoothing: antialiased; }
.screen-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button { font: inherit; }

/* 上のバー */
.axw-bar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, calc((100% - 1100px) / 2 + 24px)); }
.axw-back { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); border-radius: 50%; }
.axw-back:hover { background: var(--bg); }
.axw-bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.axw-saved { font-size: 12px; color: var(--muted); }
.axw-btn { min-height: 44px; padding: 10px 20px; border-radius: 22px; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid transparent; }
.axw-btn:disabled { opacity: .45; cursor: not-allowed; }
.axw-btn-ghost { background: #fff; color: var(--navy); border-color: #CFCFCF; }
.axw-btn-dark { background: var(--navy); color: #fff; }
.axw-btn-cyan { background: var(--cyan); color: var(--navy); }
.axw-link { background: none; border: 0; color: var(--cyan-text); font-weight: 700; font-size: 14px; padding: 8px 0; min-height: 44px; cursor: pointer; }

/* 本体 */
.axw-main { max-width: 720px; margin: 0 auto; padding: 36px 16px 120px; }
.axw-notice { margin: 0 0 20px; padding: 12px 16px; border-radius: 6px; font-size: 14px; line-height: 1.7; background: var(--bg); }
.axw-notice.is-error { background: #FDECEA; color: #8A1C12; }
.axw-notice.is-info { background: #DDF0F6; color: #134E63; }

.axw-cover { margin-bottom: 12px; }
.axw-cover-add { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--muted); font-size: 15px; padding: 8px 0; min-height: 44px; cursor: pointer; }
.axw-cover-add:hover { color: var(--navy); }
.axw-cover-img { position: relative; }
.axw-cover-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; }
.axw-cover-remove { position: absolute; right: 10px; bottom: 10px; background: rgba(21, 17, 48, .8); color: #fff; border: 0; border-radius: 16px; padding: 8px 14px; font-size: 13px; cursor: pointer; }

.axw-title { width: 100%; border: 0; outline: none; resize: none; overflow: hidden; font: inherit; font-size: 32px; font-weight: 700; line-height: 1.45; color: var(--heading); padding: 4px 0; margin: 0 0 12px; background: transparent; }
.axw-title::placeholder { color: #BDBDBD; }

/* Editor.js の見た目 */
.axw-editor { font-size: 17px; line-height: 1.9; }
.axw-editor .ce-block__content, .axw-editor .ce-toolbar__content { max-width: 720px; }
/* 見出しは公開後の記事（mva-unified）と同じ見た目にする（0.10.5）。PC 34px／27px、780px 以下 20px／17px */
.axw-editor h2.ce-header,
.axw-editor h3.ce-header { font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif; color: #10243D; letter-spacing: normal; text-wrap: wrap; word-break: auto-phrase; }
.axw-editor h2.ce-header { font-size: 34px; font-weight: 600; line-height: 1.55; border-left: 5px solid #E82932; border-bottom: 1px solid #D6E0E9; padding: .15em 0 .55em .75em; margin: 2.3em 0 1em; }
.axw-editor h3.ce-header { font-size: 27px; font-weight: 700; line-height: 1.6; border-bottom: 2px solid #9ABBD7; padding: 0 0 .55em; margin: 2em 0 .8em; }
@media (max-width: 780px) {
  .axw-editor h2.ce-header { font-size: 20px; line-height: 1.5; }
  .axw-editor h3.ce-header { font-size: 17px; line-height: 1.55; }
}
.axw-editor .ce-paragraph[data-placeholder]:empty::before, [contenteditable][data-placeholder]:empty::before { color: #9A9A9A; }
.axw-editor .ce-toolbar__plus, .axw-editor .ce-toolbar__settings-btn { color: var(--navy); }
.axw-editor .ce-toolbar__plus { border: 1px solid #CFCFCF; border-radius: 50%; width: 30px; height: 30px; }
.axw-editor .cdx-quote { border-left: 0; }
.axw-editor .image-tool__caption { font-size: 14px; }
.axw-editor .ce-popover { --width: 300px; }

/* AXIS LOG の部品 */
.axb { margin: 14px 0; }
.axb input { font: inherit; font-size: 15px; border: 1px solid #CFCFCF; border-radius: 4px; padding: 8px 10px; min-height: 40px; width: 100%; background: #fff; }
.axb input:focus, .axb [contenteditable]:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.axb-add { background: none; border: 0; color: var(--cyan-text); font-size: 14px; font-weight: 700; padding: 8px 0; min-height: 40px; cursor: pointer; }
.axb-del { flex: 0 0 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; border-radius: 50%; }
.axb-del:hover { background: var(--bg); color: var(--text); }
.axb-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.axb-note.is-bad { color: var(--red); }

.axb-advice { background: #EEF7FA; border: 1px solid var(--cyan); border-radius: 6px; padding: 14px 18px; }
.axb-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #134E63; margin-bottom: 4px; }
.axb-advice-text { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.7; min-height: 1.7em; outline: none; }
[contenteditable][data-placeholder]:empty::before { content: attr(data-placeholder); color: #8AA9B4; font-weight: 400; }

.axb-caution { color: var(--red); font-weight: 700; min-height: 1.9em; outline: none; }

.axb-info { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.axb-info-head { background: var(--navy); padding: 8px 12px; }
.axb-info-head input { background: transparent; border: 0; color: #fff; font-weight: 700; font-size: 14px; min-height: 32px; padding: 4px; }
.axb-info-head input:focus { outline: 2px solid var(--cyan); }
.axb-rows { padding: 12px 12px 0; display: flex; flex-direction: column; gap: 8px; }
.axb-row { display: flex; gap: 8px; align-items: center; }
.axb-row .axb-k { flex: 0 0 34%; font-weight: 700; background: var(--bg); }
.axb-info .axb-add, .axb-info .axb-note { margin-left: 12px; margin-right: 12px; }
.axb-info .axb-note { margin-bottom: 12px; }

.axb-tl { border-left: 3px solid var(--cyan); padding-left: 14px; }
.axb-tl-title { font-weight: 700; margin-bottom: 8px; }
.axb-tl-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.axb-tl-row { display: flex; gap: 8px; align-items: center; }
.axb-tl-row .axb-when { flex: 0 0 96px; font-weight: 700; color: var(--cyan-text); }

.axb-embed { background: var(--bg); border-radius: 6px; padding: 12px; }

/* ヒント */
.axw-hint { margin-top: 40px; background: var(--bg); border-radius: 6px; padding: 16px 18px; }
.axw-hint strong { font-size: 14px; color: var(--heading); }
.axw-hint p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: #555; }

/* 提出に進む */
.axw-submit { position: fixed; inset: 0; z-index: 50; background: #fff; overflow-y: auto; }
.axw-submit-inner { max-width: 720px; margin: 0 auto; padding: 16px 16px 80px; }
.axw-submit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.axw-submit h1 { font-size: 26px; color: var(--heading); margin: 0 0 6px; outline: none; }
.axw-muted { color: #555; font-size: 14px; font-weight: 400; }
.axw-field { border: 0; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.axw-field legend, .axw-field > label { font-size: 16px; font-weight: 700; color: var(--heading); padding: 0; margin-bottom: 10px; }
.axw-field input[type="text"] { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #CFCFCF; border-radius: 4px; min-height: 44px; }
.axw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.axw-chip { min-height: 44px; padding: 10px 16px; border-radius: 22px; border: 1px solid #CFCFCF; background: #fff; color: var(--text); font-size: 14px; cursor: pointer; }
.axw-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.axw-radio { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 36px; }
.axw-radio input, .axw-checks input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.axw-checks { background: var(--bg); border-radius: 6px; padding: 18px 20px; }
.axw-checks legend { float: left; width: 100%; }
.axw-checks label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.axw-checks input { margin-top: 3px; }
.axw-error { color: #8A1C12; background: #FDECEA; border-radius: 6px; padding: 12px 14px; font-size: 14px; }

@media (max-width: 600px) {
  .axw-title { font-size: 26px; }
  .axw-saved { display: none; }
  .axw-btn { padding: 10px 14px; }
  .axb-row { flex-wrap: wrap; }
  .axb-row .axb-k { flex: 1 1 100%; }
  .axb-row .axb-v { flex: 1 1 0; }
}
.axw-notice { white-space: pre-wrap; }
.axw-notice.is-warn { background: #FBE9E3; color: #5C1D0B; border-left: 4px solid #9A3412; }

/* ここから会員限定／ここから有料 */
.axb-gate { margin: 24px 0; padding: 14px 18px; border-radius: 6px; border: 2px dashed; text-align: center; }
.axb-gate-members { border-color: #5BB8D4; background: #EEF7FA; color: #134E63; }
.axb-gate-paid { border-color: #C97C10; background: #FFF6E8; color: #7A4300; }
.axb-gate-title { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.axb-gate-note { margin: 4px 0 0; font-size: 13px; }
.axw-gate-info { margin: 12px 0 0; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.axw-gate-info.is-members { background: #EEF7FA; color: #134E63; }
.axw-gate-info.is-paid { background: #FFF6E8; color: #7A4300; }
.axb-price { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 2px; }
.axb-price-label { font-weight: 700; font-size: 14px; }
.axb .axb-price-input { width: 120px; min-height: 40px; text-align: right; font-size: 16px; border-color: #C97C10; }
.axb-price-yen { font-size: 14px; }
