/* コラム本文の体裁。色と書体は既存サイト（common.css）に合わせる */
/* 既存サイトは全要素（*）に文字色を直接指定していて、親に付けた色が子に伝わらない。コラムの中だけ、ふつうの継承に戻す */
:where(.l-column *) { color: inherit; }
.l-column { --c-text: #292f4a; --c-blue: #009fb7; --c-navy: #2d5f9a; --c-thin-blue: #e5f5f8; --c-thin-yellow: #fff7e0; --c-gray: #e9e9ec; --c-beige: #f8f5ef; --robo-red: #f34d1d; --robo-blue: #009fb7; --robo-yellow: #fed866; --robo-shadow: #385876; --robo-surface: #fff; }
.l-column .l-cat__inner { max-width: 820px; margin-left: auto; margin-right: auto; text-align: left; }
.l-column.-wide .l-cat__inner { max-width: 1000px; }
.l-column h1 { font-size: 34px; line-height: 1.4; margin-bottom: 16px; }
.c-column__breadcrumb { font-size: 13px; margin-bottom: 20px; }
.c-column__breadcrumb a { color: var(--c-navy); text-decoration: underline; }
.c-column__breadcrumb span { margin: 0 8px; color: #8a8fa3; }
.c-column__meta { font-size: 14px; color: #5b6078; margin-bottom: 28px; }
.c-column__meta p { margin: 0 0 4px; }
.c-column__asof { margin-top: 8px; font-size: 13px; color: #6f7490; }
.c-column__stale { background: var(--c-thin-yellow); border-left: 6px solid var(--robo-yellow); border-radius: 8px; padding: 12px 16px; margin: 0 0 28px; font-size: 14px; line-height: 1.8; }
.c-column__lead { font-size: 17px; line-height: 1.9; margin-bottom: 32px; }

.c-column__toc { background: #fff; border-radius: 12px; padding: 20px 24px; margin-bottom: 40px; }
.c-column__toc-title { font-weight: 700; margin: 0 0 8px; }
.c-column__toc ol { margin: 0; padding-left: 1.4em; list-style: decimal; }
.c-column__toc li { margin: 6px 0; line-height: 1.6; list-style: decimal; display: list-item; }
.c-column__toc a { color: var(--c-navy); text-decoration: underline; }

.c-column__body { font-size: 16px; line-height: 1.95; color: var(--c-text); margin-bottom: 48px; }
.c-column__body h2 { font-size: 24px; line-height: 1.5; font-weight: 700; margin: 56px 0 20px; padding-left: 14px; border-left: 6px solid var(--c-blue); scroll-margin-top: 150px; }
.c-column__body h3 { font-size: 19px; line-height: 1.6; font-weight: 700; margin: 36px 0 12px; scroll-margin-top: 150px; }
/* 既存サイトは p と li に行間を直接指定しているので、本文の行間はここで指定し直す */
.c-column__body p { margin: 0 0 20px; line-height: 1.95; }
.c-column__body a { color: var(--c-navy); text-decoration: underline; }
.c-column__body ul, .c-column__body ol { margin: 0 0 24px; padding-left: 1.5em; }
.c-column__body ul { list-style: disc; }
.c-column__body ol { list-style: decimal; }
.c-column__body li { margin: 8px 0; line-height: 1.8; }
.c-column__body ul > li { list-style: disc; display: list-item; }
.c-column__body ol > li { list-style: decimal; display: list-item; }
.c-column__body strong { font-weight: 700; background: linear-gradient(transparent 62%, #fed766 62%); }
.c-column__body img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--c-gray); margin: 8px 0 24px; }
.c-column__body blockquote { margin: 0 0 24px; padding: 16px 20px; background: #fff; border-left: 4px solid var(--c-blue); border-radius: 8px; }
.c-column__body blockquote p:last-child { margin-bottom: 0; }
.c-column__table { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 15px; line-height: 1.7; }
.c-column__table { background: #fff; }
.c-column__table th, .c-column__table td { border: 1px solid #d5d7e0; padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.7; }
.c-column__table th { background: var(--c-thin-blue); font-weight: 700; }
.c-column__table a { color: var(--c-navy); text-decoration: underline; }

.c-column__faq dt { font-weight: 700; margin: 24px 0 8px; padding-left: 1.8em; text-indent: -1.8em; }
.c-column__faq dt::before { content: "Q. "; color: var(--c-blue); }
.c-column__faq dd { margin: 0 0 8px; padding-left: 1.8em; }
.c-column__faq dt, .c-column__faq dd { line-height: 1.8; }

.c-column__cta { background: var(--c-thin-yellow); border-radius: 16px; padding: 28px 24px; margin: 0 0 48px; text-align: center; }
.c-column__cta-lead { font-weight: 700; margin: 0 0 16px; line-height: 1.7; }
.c-column__cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.c-column__btn { display: inline-block; min-width: 240px; padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 16px; line-height: 1.4; text-align: center; border: 3px solid var(--c-text); color: var(--c-text); background: #fed766; transition: transform .15s; }
.c-column__btn:hover { transform: translateY(-2px); }
.c-column__btn.-primary { background: #f34d1d; color: #fff; }

.c-column__sources { margin: 0 0 40px; font-size: 14px; line-height: 1.8; }
.c-column__sources h2 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.c-column__sources ul { padding-left: 1.4em; }
.c-column__sources li { list-style: disc; display: list-item; line-height: 1.8; }
.c-column__sources a { color: var(--c-navy); text-decoration: underline; word-break: break-all; }
.c-column__related, .c-column__others { margin: 0 0 40px; }
.c-column__related h2, .c-column__others h2 { font-size: 18px; font-weight: 700; line-height: 1.5; margin: 0 0 14px; }
.c-column__others .c-column__chips { margin-bottom: 0; }

.c-column__list { list-style: none; padding: 0; margin: 0 0 60px; }
.c-column__list li { border-bottom: 1px solid var(--c-gray); }
.c-column__list a { display: block; padding: 22px 4px; color: var(--c-text); }
.c-column__list-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: #5b6078; margin-bottom: 4px; }
.c-column__list-title { display: block; font-size: 19px; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.c-column__list-desc { display: block; font-size: 14px; line-height: 1.7; color: #5b6078; }

/* ロボット。線はロゴの原画、色は役で決まる（赤=きく、青=こたえる、黄=デイロボの操作） */
.c-column__robo { width: 46px; height: auto; flex: none; display: block; }
.c-column__robo.-s { width: 20px; }
.c-column__robo.-l { width: 76px; }
.c-column__robo.-red, .c-column__talk.-red .c-column__robo { --robo-color: var(--robo-red); }
.c-column__robo.-blue, .c-column__talk.-blue .c-column__robo { --robo-color: var(--robo-blue); }
.c-column__robo.-yellow, .c-column__talk.-yellow .c-column__robo { --robo-color: var(--robo-yellow); }
.c-column__prop { width: 20px; height: 20px; flex: none; display: block; color: var(--c-text); }
.c-column__prop.-l { width: 40px; height: 40px; }

/* TOP とカテゴリの頭 */
.c-column__hero { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.c-column__hero > div:first-child { flex: 1 1 320px; min-width: 0; }
.c-column__hero h1 { margin-bottom: 8px; }
.c-column__hero .c-column__lead { margin-bottom: 0; }
.c-column__trio { display: flex; gap: 8px; align-items: flex-end; }

.c-column__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 44px; }
.c-column__chips li { display: block; }
.c-column__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px 6px 10px; border: 2px solid var(--c-text); border-radius: 999px; background: #fff; color: var(--c-text); font-weight: 700; font-size: 15px; line-height: 1.4; transition: transform .15s; }
.c-column__chip:hover { transform: translateY(-2px); }
.c-column__chip.-on { background: #fed766; }

/* 棚と札 */
.c-column__shelf { margin: 0 0 48px; }
.c-column__shelf > h2 { font-size: 22px; line-height: 1.5; font-weight: 700; margin: 0 0 16px; padding-left: 14px; border-left: 6px solid var(--c-blue); }
.c-column__shelf > h2 a { color: inherit; }
.c-column__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.c-column__card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 18px; background: #fff; border: 1px solid var(--c-gray); border-radius: 12px; color: var(--c-text); transition: transform .15s; }
.c-column__card:hover, .c-column__pillar:hover { transform: translateY(-2px); }
.c-column__card-title { font-size: 16px; font-weight: 700; line-height: 1.6; }
.c-column__card-cat, .c-column__card-meta { font-size: 13px; line-height: 1.5; color: #5b6078; }
.c-column__tag { display: inline-block; padding: 2px 10px; border-radius: 4px; background: #fed766; color: var(--c-text); font-size: 12px; font-weight: 700; line-height: 1.5; }
.c-column__tag.-howto { background: var(--c-thin-blue); }
.c-column__tag.-mention, .c-column__tag.-backlink, .c-column__tag.-category, .c-column__tag.-popular { background: var(--c-gray); }
.c-column__shelf-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.c-column__shelf-body.-nopillar { grid-template-columns: minmax(0, 1fr); }
.c-column__links { list-style: none; margin: 0; padding: 0; }
.c-column__links li { display: block; border-bottom: 1px solid var(--c-gray); }
.c-column__links a { display: block; padding: 12px 4px; color: var(--c-text); font-weight: 700; line-height: 1.6; }
.c-column__links .-all a { font-weight: 400; color: var(--c-navy); text-decoration: underline; }
.c-column__pillar { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 0 48px; padding: 22px 24px; background: #fff; border: 3px solid var(--c-text); border-radius: 16px; color: var(--c-text); transition: transform .15s; }
.c-column__pillar-title { font-size: 21px; font-weight: 700; line-height: 1.5; }
.c-column__pillar-desc { font-size: 14px; line-height: 1.8; color: #5b6078; }

/* 吹き出し */
.c-column__talk { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: end; margin: 0 0 14px; }
.c-column__talk:not(:has(+ .c-column__talk)) { margin-bottom: 32px; }
.c-column__bubble { position: relative; padding: 12px 18px; background: #fff; border: 2px solid var(--c-text); border-radius: 16px; line-height: 1.8; }
.c-column__bubble::before { content: ""; position: absolute; left: -8px; bottom: 18px; width: 12px; height: 12px; background: #fff; border-left: 2px solid var(--c-text); border-bottom: 2px solid var(--c-text); transform: rotate(45deg); }
.c-column__body .c-column__bubble p { margin: 0 0 8px; line-height: 1.75; }
.c-column__body .c-column__bubble p:last-child { margin-bottom: 0; }
.c-column__who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* デイロボでの操作。制度の説明と分けて、ここにだけ製品の話を書く */
.c-column__howto { margin: 56px 0 32px; padding: 4px 24px 8px; background: #fff; border: 3px solid var(--robo-yellow); border-radius: 16px; }
.c-column__body .c-column__howto > h2 { margin-top: 24px; border-left-color: var(--robo-yellow); }
.c-column__howto .c-column__talk:not(:has(+ .c-column__talk)) { margin-bottom: 24px; }

@media (max-width: 768px) {
  .c-column__robo { width: 38px; }
  .c-column__robo.-l { width: 56px; }
  .c-column__prop.-l { width: 30px; height: 30px; }
  .c-column__cards, .c-column__shelf-body { grid-template-columns: minmax(0, 1fr); }
  .c-column__chips { margin-bottom: 36px; }
  .c-column__chip { font-size: 14px; }
  .c-column__talk { gap: 12px; }
  .c-column__howto { padding: 4px 16px 8px; }
  .c-column__pillar-title { font-size: 18px; }
  .l-column h1 { font-size: 25px; }
  .c-column__body h2 { font-size: 20px; margin-top: 44px; }
  .c-column__body h3 { font-size: 17px; }
  .c-column__table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Q&A 型。問いの印、親の記事への一文、問いの一覧 */
.c-column__q { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.6em; height: 1.6em; margin-right: .5em; border-radius: 50%; background: var(--c-navy); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; vertical-align: .1em; }
.c-column__qa-mark { display: flex; align-items: center; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--c-navy); }
.c-column__parent { margin: -16px 0 32px; padding: 12px 16px; border-left: 4px solid var(--c-thin-blue); background: #f7f9fc; font-size: 15px; line-height: 1.8; }
.c-column__parent a { color: var(--c-navy); text-decoration: underline; }
.c-column__qas { margin: 48px 0; }
.c-column__qa-list { list-style: none; margin: 0; padding: 0; }
.c-column__qa-list li { border-bottom: 1px solid var(--c-gray); }
.c-column__qa-list a { display: flex; align-items: flex-start; padding: 14px 4px; color: var(--c-text); font-weight: 700; line-height: 1.6; }
.c-column__qa-list .c-column__q { margin-top: .05em; }

/* ---- 記事の型（lib/blocks.mjs）。印と番号は HTML の文字で出し、ここでは見た目だけを整える ---- */
.c-column__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.c-column__kata-mark { margin: 0 0 8px; }
.c-column__kata { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.5; background: #fff; border: 2px solid var(--c-navy); color: var(--c-navy); }
.c-column__kata.-steps { border-color: var(--c-blue); color: #007d90; }
.c-column__kata.-compare { border-color: #6b5aa6; color: #5a4a94; }
.c-column__kata.-sample { border-color: #b0603a; color: #9a4f2c; }
.c-column__kata.-checklist { border-color: #3f8a4f; color: #2f7440; }
.c-column__card .c-column__kata { font-size: 12px; padding: 1px 10px; }

/* 解説: 要点 */
.c-column__points { background: #fff; border-radius: 12px; border-left: 6px solid var(--c-navy); padding: 18px 22px; margin: 0 0 32px; }
.c-column__body .c-column__points-title { font-weight: 700; margin: 0 0 8px; }
.c-column__body .c-column__points ol { margin: 0; padding-left: 1.6em; }
.c-column__body .c-column__points li { margin: 6px 0; }
.c-column__body .c-column__points li::marker { color: var(--c-navy); font-weight: 700; }

/* 手順: 流れの縮図と段 */
.c-column__body .c-column__flow { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 28px; padding: 16px; background: var(--c-thin-blue); border-radius: 12px; list-style: none; }
.c-column__body .c-column__flow > li { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0; background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 14px; font-weight: 700; list-style: none; line-height: 1.5; }
.c-column__flow-no, .c-column__step-no { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; background: var(--c-blue); color: #fff; font-weight: 700; }
.c-column__flow-no { width: 22px; height: 22px; font-size: 12px; }
.c-column__body .c-column__flow > li:not(:last-child)::after { content: "›"; position: absolute; right: -15px; color: var(--c-blue); font-size: 20px; line-height: 1; }
.c-column__body .c-column__steps { margin: 0 0 32px; padding: 0; list-style: none; }
.c-column__body .c-column__step { list-style: none; display: flex; gap: 16px; position: relative; padding-bottom: 20px; margin: 0; }
.c-column__step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 3px; background: var(--c-blue); opacity: .35; }
.c-column__step-no { width: 40px; height: 40px; font-size: 18px; }
.c-column__step-body { flex: 1; min-width: 0; background: #fff; border-radius: 12px; padding: 12px 16px; }
.c-column__body .c-column__step-body p { margin: 0 0 4px; }
.c-column__body .c-column__step-title { font-weight: 700; font-size: 17px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.c-column__step-when { font-size: 12px; font-weight: 700; background: var(--c-beige); border: 1px solid #e3dccd; border-radius: 4px; padding: 1px 8px; color: #6a5a3c; }

/* 比較: 1 つの表を、列ごとの色で見比べやすくする */
.c-column__compare-wrap { overflow-x: auto; margin: 0 0 32px; }
.c-column__compare { margin: 0; border-radius: 12px; overflow: hidden; }
.c-column__compare thead th { font-size: 16px; }
.c-column__compare thead th.-c1 { background: var(--c-thin-blue); border-top: 6px solid var(--c-blue); }
.c-column__compare thead th.-c2 { background: #efecf7; border-top: 6px solid #6b5aa6; }
.c-column__compare thead th.-c3 { background: var(--c-beige); border-top: 6px solid #b0603a; }
.c-column__compare tbody th { background: #f7f7f9; font-size: 13px; color: #5b6078; white-space: nowrap; }
.c-column__compare tbody td { font-weight: 700; }
.c-column__body .c-column__fork { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.c-column__body .c-column__fork > li { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 12px; padding: 14px 16px; border: 2px dashed #c9cbd6; }
.c-column__fork-if { font-size: 12px; font-weight: 700; color: #5b6078; }
.c-column__fork-then { font-weight: 700; color: var(--c-navy); }

/* 記入例: 紙の書式と、よくない例とよい例 */
.c-column__paper { margin: 0 0 32px; background: #fff; border: 1px solid #d5d7e0; border-radius: 4px; padding: 22px 24px 18px; box-shadow: 0 2px 0 #d5d7e0, 0 4px 0 #eceef3; }
.c-column__paper-title { text-align: center; font-weight: 700; letter-spacing: .1em; border-bottom: 3px double var(--c-text); padding-bottom: 8px; margin: 0 0 12px; }
.c-column__paper dl { display: grid; grid-template-columns: 11em 1fr; margin: 0; border-top: 1px solid #c9cbd6; }
.c-column__paper dt, .c-column__paper dd { margin: 0; padding: 10px 12px; border-bottom: 1px solid #c9cbd6; line-height: 1.7; }
.c-column__paper dt { background: #f4f5f8; font-weight: 700; font-size: 14px; border-right: 1px solid #c9cbd6; }
.c-column__paper dd { font-family: "Klee One", "YuKyokasho", "Hiragino Maru Gothic ProN", sans-serif; color: #1f3f8f; }
.c-column__ex { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 28px; }
.c-column__compare-ex { background: #fff; border-radius: 12px; padding: 14px 16px; border: 2px solid; }
.c-column__body .c-column__compare-ex p { margin: 0 0 6px; }
.c-column__compare-ex.-ng { border-color: #e7b3a3; }
.c-column__compare-ex.-ok { border-color: #9ccfa8; }
.c-column__body .c-column__ex-label { font-weight: 700; font-size: 13px; }
.c-column__compare-ex.-ng .c-column__ex-label { color: #c23d14; }
.c-column__compare-ex.-ok .c-column__ex-label { color: #2f7440; }
.c-column__body .c-column__ex-why { font-size: 13px; color: #5b6078; margin: 0; }

/* 点検表: チェック欄と印刷。サイト共通の CSS がチェック欄を隠すので、ここで戻す */
.c-column__check-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.c-column__body .c-column__check-top p { margin: 0; }
.c-column__check-top strong { font-size: 24px; color: #2f7440; background: none; }
.c-column__check-print { border: 2px solid var(--c-text); border-radius: 999px; background: #fff; padding: 6px 18px; font-weight: 700; cursor: pointer; }
.c-column__body .c-column__check { margin: 0 0 28px; padding: 0; background: #fff; border-radius: 12px; list-style: none; }
.c-column__body .c-column__check > li { list-style: none; display: block; margin: 0; border-bottom: 1px solid var(--c-gray); }
.c-column__check > li:last-child { border-bottom: 0; }
.c-column__check label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; cursor: pointer; }
.c-column__check input { display: inline-block !important; appearance: auto !important; -webkit-appearance: checkbox !important; width: 22px; height: 22px; margin-top: 3px; accent-color: #3f8a4f; flex: none; }
.c-column__check label > span { font-size: 14px; color: #5b6078; line-height: 1.6; }
.c-column__check label strong { display: block; font-size: 16px; color: var(--c-text); background: none; }
.c-column__check input:checked + span strong { text-decoration: line-through; color: #8a8fa3; }

/* デイロボのオチ */
.c-column__ochi { background: var(--c-thin-yellow); border: 3px solid var(--robo-yellow); border-radius: 20px; padding: 24px; margin: 0 0 48px; }
.c-column__ochi-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 12px; }
.c-column__ochi-kicker { margin: 0; font-size: 13px; font-weight: 700; color: #7a6a2e; }
.c-column__ochi h2 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.3; }
.c-column__ochi h3 { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.c-column__ochi p { line-height: 1.9; }
.c-column__ochi-bridge { font-size: 17px; font-weight: 700; margin: 0 0 16px; }
.c-column__ochi-cans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.c-column__ochi-cans > li { list-style: none; background: #fff; border-radius: 12px; padding: 14px 16px; }
.c-column__ochi-cans strong { display: block; margin-bottom: 4px; }
.c-column__ochi-cans span { display: block; font-size: 14px; line-height: 1.7; color: #4a4f66; }
.c-column__ochi-steps { margin: 0 0 16px; padding-left: 1.4em; font-size: 15px; }
.c-column__ochi-steps li { list-style: decimal; display: list-item; margin: 4px 0; }
.c-column__ochi-close { border-top: 2px dashed #e6cf7a; padding-top: 16px; text-align: center; }
.c-column__ochi-close p { font-weight: 700; margin: 0 0 14px; }

@media print {
  header, footer, .c-column__breadcrumb, .c-column__toc, .c-column__ochi, .c-column__check-print, .c-column__talk, .c-column__related, .c-column__others { display: none !important; }
}
@media (max-width: 640px) {
  .c-column__ex, .c-column__paper dl { grid-template-columns: 1fr; }
  .c-column__paper dt { border-right: 0; }
  .c-column__ochi { padding: 18px 16px; }
}
