/* Styles for articles written in the CMS editor (format "prose"). Loaded after app.css.
   The editor writes plain HTML (h3 h4 h5 p ul ol table figure a); this file gives it the site's look. */
/* body text follows the existing news pages (app.css ".p-news-cms article p"): size 1.1429vw (max 16px) / 3.7333vw on phones, line-height 1.75 / 1.7857, weight 500 */
/* ---- the values to adjust ----
   --cms-line-height : height of a line of text (also the height of an empty line: an empty paragraph is one line high)
   --cms-p-gap       : space between paragraphs (Enter). 0 = lines follow each other; 1lh = one empty line between paragraphs.
                       A line break inside a paragraph (Shift+Enter, a <br>) never adds space. */
.cms-prose { --cms-line-height: 1.75; --cms-p-gap: 0; }
@media (max-width: 900px) { .cms-prose { --cms-line-height: 1.785714285714286; } }
.cms-prose { color: #333; font-size: min(1.142857142857143vw, 16px); line-height: var(--cms-line-height); font-weight: 500; letter-spacing: 0; word-break: break-word; }
.cms-prose * { word-break: inherit; }   /* app.css sets "body * { word-break: break-all }", which cut English words anywhere on the page but not in the editor */
@media (max-width: 900px) { .cms-prose { font-size: 3.733333333333334vw; } }
.cms-prose.cms-prose p, .cms-prose.cms-prose li, .cms-prose.cms-prose th, .cms-prose.cms-prose td { font-size: 1em; line-height: inherit; font-weight: 500; letter-spacing: 0; }
/* the site gives a news article a light gray card; articles written in the editor sit on white */
.p-news-cms article:has(> .c-group__inner > .cms-prose) { background-color: #fefefe; }
.cms-prose::after { content: ""; display: block; clear: both; }
.cms-prose > :first-child { margin-top: 0; }
.cms-prose > :last-child { margin-bottom: 0; }
/* Enter = next line, no extra space (like a plain text editor). Press Enter twice for one empty line: that is an empty <p><br></p>, one line high. */
.cms-prose p { margin: 0 0 var(--cms-p-gap); }

/* 見出し1 / 見出し2 / 見出し3  (h3 / h4 / h5: the page title is already h2) */
.cms-prose h3, .cms-prose h4, .cms-prose h5 { clear: both; }
.cms-prose h3 { position: relative; margin: 2.2em 0 1em; padding-left: 1.1em; color: #004e7b; font-size: 24px; font-weight: 700; line-height: 1.5; }
.cms-prose h3::before { content: ""; position: absolute; left: 0; top: .55em; width: .55em; height: .55em; border-radius: 3px; background: #004e7b; }
.cms-prose h4 { margin: 1.9em 0 .9em; padding: .6em 1em; border-radius: 8px; background: #eaf2f8; color: #004e7b; font-size: 19px; font-weight: 600; line-height: 1.5; }
.cms-prose h5 { margin: 1.6em 0 .7em; padding-left: .7em; border-left: 4px solid #004e7b; color: #333; font-size: 16px; font-weight: 700; line-height: 1.5; }
@media (max-width: 600px) {
  .cms-prose h3 { font-size: 20px; } .cms-prose h4 { font-size: 17px; } .cms-prose h5 { font-size: 15px; }
}

.cms-prose strong { font-weight: 700; }
.cms-prose h3 strong, .cms-prose h4 strong, .cms-prose h5 strong { font-weight: inherit; }   /* bold inside a heading adds nothing (old pages have it) */
.cms-prose em { font-style: italic; }
.cms-prose.cms-prose a:not(.cms-btn) { color: #0d47a1; text-decoration: underline; }   /* doubled class: news pages otherwise colour links #004e7b (app.css ".p-news-cms article p a"), unlike the editor */

/* the site's reset removes list markers, so they are set here */
/* space above and below a list: 1.5em */
.cms-prose ul, .cms-prose ol { margin: 1.5em 0; padding-left: 1.7em; }
.cms-prose li ul, .cms-prose li ol { margin: .3em 0; }
.cms-prose ul ul { list-style: circle; }
.cms-prose ul { list-style: disc; }
.cms-prose ol { list-style: decimal; }
.cms-prose li { list-style: inherit; margin: .3em 0; }

/* images: width is set per image (saved as style="width:NN%" on the figure, published as class cms-w-NN, see
   inlineStylesToClasses in src/render.ts: the site's CSP does not allow style attributes); left / right let the text flow around it */
.cms-prose.cms-prose figure { width: 100%; max-width: 100%; margin: 0 auto 1.4em; }
.cms-prose.cms-prose figure.cms-w-1{width:1%}.cms-prose.cms-prose figure.cms-w-2{width:2%}.cms-prose.cms-prose figure.cms-w-3{width:3%}.cms-prose.cms-prose figure.cms-w-4{width:4%}.cms-prose.cms-prose figure.cms-w-5{width:5%}.cms-prose.cms-prose figure.cms-w-6{width:6%}.cms-prose.cms-prose figure.cms-w-7{width:7%}.cms-prose.cms-prose figure.cms-w-8{width:8%}.cms-prose.cms-prose figure.cms-w-9{width:9%}.cms-prose.cms-prose figure.cms-w-10{width:10%}
.cms-prose.cms-prose figure.cms-w-11{width:11%}.cms-prose.cms-prose figure.cms-w-12{width:12%}.cms-prose.cms-prose figure.cms-w-13{width:13%}.cms-prose.cms-prose figure.cms-w-14{width:14%}.cms-prose.cms-prose figure.cms-w-15{width:15%}.cms-prose.cms-prose figure.cms-w-16{width:16%}.cms-prose.cms-prose figure.cms-w-17{width:17%}.cms-prose.cms-prose figure.cms-w-18{width:18%}.cms-prose.cms-prose figure.cms-w-19{width:19%}.cms-prose.cms-prose figure.cms-w-20{width:20%}.cms-prose.cms-prose figure.cms-w-21{width:21%}.cms-prose.cms-prose figure.cms-w-22{width:22%}.cms-prose.cms-prose figure.cms-w-23{width:23%}.cms-prose.cms-prose figure.cms-w-24{width:24%}.cms-prose.cms-prose figure.cms-w-25{width:25%}.cms-prose.cms-prose figure.cms-w-26{width:26%}.cms-prose.cms-prose figure.cms-w-27{width:27%}.cms-prose.cms-prose figure.cms-w-28{width:28%}.cms-prose.cms-prose figure.cms-w-29{width:29%}.cms-prose.cms-prose figure.cms-w-30{width:30%}.cms-prose.cms-prose figure.cms-w-31{width:31%}.cms-prose.cms-prose figure.cms-w-32{width:32%}.cms-prose.cms-prose figure.cms-w-33{width:33%}.cms-prose.cms-prose figure.cms-w-34{width:34%}.cms-prose.cms-prose figure.cms-w-35{width:35%}.cms-prose.cms-prose figure.cms-w-36{width:36%}.cms-prose.cms-prose figure.cms-w-37{width:37%}.cms-prose.cms-prose figure.cms-w-38{width:38%}.cms-prose.cms-prose figure.cms-w-39{width:39%}.cms-prose.cms-prose figure.cms-w-40{width:40%}.cms-prose.cms-prose figure.cms-w-41{width:41%}.cms-prose.cms-prose figure.cms-w-42{width:42%}.cms-prose.cms-prose figure.cms-w-43{width:43%}.cms-prose.cms-prose figure.cms-w-44{width:44%}.cms-prose.cms-prose figure.cms-w-45{width:45%}.cms-prose.cms-prose figure.cms-w-46{width:46%}.cms-prose.cms-prose figure.cms-w-47{width:47%}.cms-prose.cms-prose figure.cms-w-48{width:48%}.cms-prose.cms-prose figure.cms-w-49{width:49%}.cms-prose.cms-prose figure.cms-w-50{width:50%}.cms-prose.cms-prose figure.cms-w-51{width:51%}.cms-prose.cms-prose figure.cms-w-52{width:52%}.cms-prose.cms-prose figure.cms-w-53{width:53%}.cms-prose.cms-prose figure.cms-w-54{width:54%}.cms-prose.cms-prose figure.cms-w-55{width:55%}.cms-prose.cms-prose figure.cms-w-56{width:56%}.cms-prose.cms-prose figure.cms-w-57{width:57%}.cms-prose.cms-prose figure.cms-w-58{width:58%}.cms-prose.cms-prose figure.cms-w-59{width:59%}.cms-prose.cms-prose figure.cms-w-60{width:60%}.cms-prose.cms-prose figure.cms-w-61{width:61%}.cms-prose.cms-prose figure.cms-w-62{width:62%}.cms-prose.cms-prose figure.cms-w-63{width:63%}.cms-prose.cms-prose figure.cms-w-64{width:64%}.cms-prose.cms-prose figure.cms-w-65{width:65%}.cms-prose.cms-prose figure.cms-w-66{width:66%}.cms-prose.cms-prose figure.cms-w-67{width:67%}.cms-prose.cms-prose figure.cms-w-68{width:68%}.cms-prose.cms-prose figure.cms-w-69{width:69%}.cms-prose.cms-prose figure.cms-w-70{width:70%}.cms-prose.cms-prose figure.cms-w-71{width:71%}.cms-prose.cms-prose figure.cms-w-72{width:72%}.cms-prose.cms-prose figure.cms-w-73{width:73%}.cms-prose.cms-prose figure.cms-w-74{width:74%}.cms-prose.cms-prose figure.cms-w-75{width:75%}.cms-prose.cms-prose figure.cms-w-76{width:76%}.cms-prose.cms-prose figure.cms-w-77{width:77%}.cms-prose.cms-prose figure.cms-w-78{width:78%}.cms-prose.cms-prose figure.cms-w-79{width:79%}.cms-prose.cms-prose figure.cms-w-80{width:80%}.cms-prose.cms-prose figure.cms-w-81{width:81%}.cms-prose.cms-prose figure.cms-w-82{width:82%}.cms-prose.cms-prose figure.cms-w-83{width:83%}.cms-prose.cms-prose figure.cms-w-84{width:84%}.cms-prose.cms-prose figure.cms-w-85{width:85%}.cms-prose.cms-prose figure.cms-w-86{width:86%}.cms-prose.cms-prose figure.cms-w-87{width:87%}.cms-prose.cms-prose figure.cms-w-88{width:88%}.cms-prose.cms-prose figure.cms-w-89{width:89%}.cms-prose.cms-prose figure.cms-w-90{width:90%}.cms-prose.cms-prose figure.cms-w-91{width:91%}.cms-prose.cms-prose figure.cms-w-92{width:92%}.cms-prose.cms-prose figure.cms-w-93{width:93%}.cms-prose.cms-prose figure.cms-w-94{width:94%}.cms-prose.cms-prose figure.cms-w-95{width:95%}.cms-prose.cms-prose figure.cms-w-96{width:96%}.cms-prose.cms-prose figure.cms-w-97{width:97%}.cms-prose.cms-prose figure.cms-w-98{width:98%}.cms-prose.cms-prose figure.cms-w-99{width:99%}
/* spacers from older pages (style="padding-top:NNpx" → class cms-pt-NN) */
.cms-pt-0{padding-top:0px}.cms-pt-10{padding-top:10px}.cms-pt-20{padding-top:20px}.cms-pt-30{padding-top:30px}.cms-pt-40{padding-top:40px}.cms-pt-50{padding-top:50px}.cms-pt-60{padding-top:60px}.cms-pt-70{padding-top:70px}.cms-pt-80{padding-top:80px}.cms-pt-90{padding-top:90px}.cms-pt-100{padding-top:100px}.cms-pt-110{padding-top:110px}.cms-pt-120{padding-top:120px}.cms-pt-130{padding-top:130px}.cms-pt-140{padding-top:140px}.cms-pt-150{padding-top:150px}.cms-pt-160{padding-top:160px}.cms-pt-170{padding-top:170px}.cms-pt-180{padding-top:180px}.cms-pt-190{padding-top:190px}.cms-pt-200{padding-top:200px}
.cms-prose img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
/* 納品実績: 前の記事 | 一覧に戻る | 次の記事 under the article (outside .cms-prose, so older pages get it too) */
.cms-pn { display: flex; align-items: center; gap: 16px; margin: min(4.285714285714286vw, 60px) 0 0; }
.cms-pn_back { flex: 0 0 auto; }
.cms-pn .l-btn-back { margin-top: 0; }
.cms-pn_link { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border: 1px solid #c9d6e2; border-radius: 8px; background: #fff; color: #333; text-decoration: none; transition: background-color .2s, border-color .2s; }
.cms-pn_link.-empty { visibility: hidden; }
.cms-pn_link.-next { text-align: right; }
a.cms-pn_link:hover { background: #eaf2f8; border-color: #004e7b; }
.cms-pn_label { color: #004e7b; font-size: 14px; font-weight: 700; }
.cms-pn_link.-prev .cms-pn_label::before { content: "← "; }
.cms-pn_link.-next .cms-pn_label::after { content: " →"; }
.cms-pn_ttl { font-size: 15px; font-weight: 500; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) {
  .cms-pn { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 8vw; }
  .cms-pn_link.-empty { display: none; }
  .cms-pn_back { order: 3; margin-top: 4vw; }   /* phones: the button under the two links */
  .cms-pn_ttl { font-size: 14px; }
}

/* 納品実績 cards (list page, 関連記事): the card is as tall as the tallest in its row; the hashtag line and 詳しく見る sit at its
   bottom, so they line up across the row however long the text is. The text block fills the card (flex), the hashtags take the
   space left (margin-top: auto), 詳しく見る stays where the site puts it (absolute, inside the text block's bottom padding). */
.l-works-list .l-works-item a { display: flex; flex-direction: column; }
.l-works-list .l-works-item .l-works-item_img { flex: 0 0 auto; }
.l-works-list .l-works-item .l-works-item_desc { flex: 1 0 auto; display: flex; flex-direction: column; }
.l-works-list .l-works-item .l-works-item_desc > .l-works-item_tagList { align-self: flex-start; }
.l-works-list .l-works-item .cms-works-hashtags { margin-top: auto; padding-top: min(0.928571428571429vw, 13px); }
@media (max-width: 900px) { .l-works-list .l-works-item .cms-works-hashtags { padding-top: 0.533333333333333vw; } }

/* an image fills the size chosen in the editor (小 / 中 / 全幅 = share of the article width), also when the file itself is smaller */
.cms-prose figure img { width: 100%; }
.cms-prose.cms-prose figure.cms-float-left { float: left; margin: .3em 1.6em 1em 0; }
.cms-prose.cms-prose figure.cms-float-right { float: right; margin: .3em 0 1em 1.6em; }
@media (max-width: 600px) {   /* too narrow to flow text beside a picture */
  .cms-prose.cms-prose figure.cms-float-left, .cms-prose.cms-prose figure.cms-float-right { float: none !important; width: 100% !important; margin: 0 auto 1.4em; }
}

.cms-prose .cms-table { overflow-x: auto; }
.cms-prose table { width: 100%; border-collapse: collapse; margin: 0; }
.cms-prose th, .cms-prose td { padding: .65em .9em; border: 1px solid #d5dbe3; text-align: left; vertical-align: top; }
.cms-prose th { background: #f3f6f9; font-weight: 700; white-space: nowrap; }

.cms-prose.cms-prose blockquote { clear: both; margin: 1.6em 0; padding: .9em 1.4em; border-left: 4px solid #3d8fc0; background: #e6f0f7; color: #46515c; }
.cms-prose.cms-prose blockquote > *:last-child { margin-bottom: 0; }
.cms-prose.cms-prose hr { clear: both; height: 0; margin: 2em 0; border: 0; border-top: 1px solid #c4ccd6; }
.cms-prose .cms-align-center { text-align: center; }
.cms-prose .cms-align-right { text-align: right; }
.cms-prose .cms-btn-row { text-align: center; margin: 1.8em 0; }
.cms-prose .cms-btn { display: inline-block; padding: .85em 2.4em; border-radius: 999px; background: linear-gradient(90deg, #004e7b, #3d8fc0); color: #fff; font-weight: 700; text-decoration: none; }
