@charset "utf-8";
/* ------------------------------------------------------------------
 * ブログ記事の本文（.nk-entry の中）の見た目
 *   編集画面用の css/blog-editor.css は、このファイルから作る
 *   （make-blog-editor-css.py：「.nk-entry 」を外すだけ）。
 *   直したら両方を上げること。
 *   ルール：枠線はボタンと表だけ。グラデーションは使わない。
 * ------------------------------------------------------------------ */

.nk-entry {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 2;
  color: #2b3340;
  max-width: none;
  margin: 0;
  letter-spacing: .02em;
}
.nk-entry p,
.nk-entry li,
.nk-entry th,
.nk-entry td { font-size: 17px; }
.nk-entry p { margin: 0 0 1.5em; }
.nk-entry p,
.nk-entry li,
.nk-entry h2,
.nk-entry h3,
.nk-entry h4 { word-break: auto-phrase; text-wrap: pretty; }

/* 見出し */
.nk-entry h2 {
  clear: both;
  width: auto;
  margin: 2.6em 0 1.1em;
  padding: .75em 1.1em;
  border: 0;
  border-radius: 10px;
  background: #2A3C59;
  color: #fff;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}
.nk-entry h3 {
  position: relative;
  width: auto;
  margin: 2.2em 0 .9em;
  padding: 0 0 0 1.05em;
  border: 0;
  background: none;
  color: #2A3C59;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
}
.nk-entry h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: .42em;
  height: 1em;
  border-radius: 2px;
  background: #C03C18;
}
.nk-entry h4 {
  margin: 1.8em 0 .6em;
  color: #2A3C59;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
}

/* 箇条書き */
.nk-entry ul,
.nk-entry ol { margin: 0 0 1.6em; padding: 0 0 0 1.6em; }
.nk-entry ul > li { list-style: none; position: relative; margin: 0 0 .45em; line-height: 1.8; }
.nk-entry ul > li::before {
  content: "";
  position: absolute;
  left: -1.05em;
  top: .72em;
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: #2A3C59;
}
.nk-entry ol > li { list-style: decimal; margin: 0 0 .45em; line-height: 1.8; }
.nk-entry ol > li::marker { color: #2A3C59; font-weight: 700; }

/* 写真 */
.nk-entry img { max-width: 100%; height: auto; border-radius: 10px; }
.nk-entry figure { margin: 0 0 1.8em; }
.nk-entry figcaption { margin-top: .6em; color: #6b7585; font-size: 14px; text-align: center; line-height: 1.6; }

/* リンク・強調 */
.nk-entry a { color: #1d6fb8; text-decoration: underline; text-underline-offset: .2em; }
.nk-entry strong { color: #1f2d44; font-weight: 700; }

/* 引用 */
.nk-entry blockquote {
  position: relative;
  margin: 0 0 1.8em;
  padding: 1.4em 1.6em 1.4em 3.4em;
  border: 0;
  border-radius: 12px;
  background: #F2F4F7;
}
.nk-entry blockquote::before {
  content: "“";
  position: absolute;
  left: .45em;
  top: .1em;
  color: #aeb6c4;
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 1;
}
.nk-entry blockquote p:last-child { margin-bottom: 0; }
.nk-entry blockquote cite { display: block; margin-top: .6em; color: #6b7585; font-size: 14px; font-style: normal; }

/* 表（ふつうの表） */
.nk-entry .wp-block-table { margin: 0 0 1.8em; overflow-x: auto; }
.nk-entry table { width: 100%; border-collapse: collapse; margin: 0; }
.nk-entry th,
.nk-entry td { padding: .75em 1em; border: 1px solid #aeb6c4; text-align: left; vertical-align: top; line-height: 1.7; }
.nk-entry th { background: #ECEEF2; color: #2A3C59; font-weight: 700; }

/* 区切り線 */
.nk-entry hr { margin: 2.4em 0; border: 0; height: 1px; background: #aeb6c4; }

/* 黄色いマーカー（<span class="marker">） */
.nk-entry .marker { background: #FFF27A; padding: 0 .1em; }

/* ------------------------------------------------------------------
 * 飾り（編集画面の右側「スタイル」で選ぶもの）
 * ------------------------------------------------------------------ */

/* ポイント（グレーの囲み） */
.nk-entry .is-style-nk-point {
  margin: 0 0 2em;
  padding: 1.5em 1.7em .6em;
  border-radius: 14px;
  background: #ECEEF2;
}
.nk-entry .is-style-nk-point .nk-box-ttl {
  margin: 0 0 .7em;
  color: #2A3C59;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}
.nk-entry .is-style-nk-point .nk-box-ttl::before {
  content: "✓";
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  margin-right: .5em;
  border-radius: 50%;
  background: #C03C18;
  color: #fff;
  font-size: 14px;
  line-height: 1.5em;
  text-align: center;
  vertical-align: .1em;
}
.nk-entry .is-style-nk-point ul > li::before { background: #C03C18; }

/* 注意（黄色の囲み） */
.nk-entry .is-style-nk-memo {
  position: relative;
  margin: 0 0 2em;
  padding: 1.2em 1.5em .1em 3.6em;
  border-radius: 14px;
  background: #FFF6D2;
}
.nk-entry .is-style-nk-memo::before {
  content: "!";
  position: absolute;
  left: 1.1em;
  top: 1.25em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: #E5A100;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6em;
  text-align: center;
}
.nk-entry .is-style-nk-memo p { margin-bottom: 1.1em; }


/* 工事データの表 */
.nk-entry .is-style-nk-data table { border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; background: #fff; }
.nk-entry .is-style-nk-data th,
.nk-entry .is-style-nk-data td { border: 0; border-bottom: 1px solid #aeb6c4; }
.nk-entry .is-style-nk-data tr:last-child th,
.nk-entry .is-style-nk-data tr:last-child td { border-bottom: 0; }
.nk-entry .is-style-nk-data th { width: 32%; background: #2A3C59; color: #fff; border-bottom-color: #4a5c79; }
.nk-entry .is-style-nk-data td { background: #F4F5F7; color: #2b3340; font-weight: 600; }

/* ビフォー・アフター（写真2枚） */
.nk-entry .is-style-nk-ba { position: relative; display: flex; gap: 56px; margin: 0 0 2em; }
.nk-entry .is-style-nk-ba > .wp-block-column { position: relative; flex: 1 1 0; min-width: 0; }
.nk-entry .is-style-nk-ba > .wp-block-column::before {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 10px;
  padding: .3em .9em;
  border-radius: 999px;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
}
.nk-entry .is-style-nk-ba > .wp-block-column:first-child::before { content: "BEFORE"; background: #6b7585; }
.nk-entry .is-style-nk-ba > .wp-block-column:last-child::before { content: "AFTER"; background: #C03C18; }
.nk-entry .is-style-nk-ba > .wp-block-column:first-child::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 50%;
  margin-top: -14px;
  border-style: solid;
  border-width: 14px 0 14px 20px;
  border-color: transparent transparent transparent #C03C18;
}
.nk-entry .is-style-nk-ba figure { margin: 0; }
.nk-entry .is-style-nk-ba img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* 質問（Q）と、そのすぐ下の答え（A） */
.nk-entry h3.is-style-nk-q { padding-left: 2.1em; }
.nk-entry h3.is-style-nk-q::before {
  content: "Q";
  top: -.05em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: #2A3C59;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6em;
  text-align: center;
}
.nk-entry h3.is-style-nk-q + p { position: relative; padding-left: 2.6em; }
.nk-entry h3.is-style-nk-q + p::before {
  content: "A";
  position: absolute;
  left: 0;
  top: .2em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: #C03C18;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6em;
  text-align: center;
}

/* お問い合わせボタン */
.nk-entry .wp-block-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 2.4em 0; }
.nk-entry .wp-block-button__link {
  display: inline-block;
  padding: .9em 2.6em;
  border: 0;
  border-radius: 999px;
  background: #C03C18;
  box-shadow: 0 4px 0 #8f2c12;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.nk-entry .wp-block-button__link:hover { background: #a8330f; color: #fff; }

/* 目次（見出し2が3つ以上の記事に自動で付く） */
.nk-entry .nk-toc { margin: 0 0 2.4em; padding: 1.4em 1.8em 1em; border-radius: 14px; background: #F2F4F7; }
.nk-entry .nk-toc-ttl { margin: 0 0 .6em; color: #2A3C59; font-size: 17px; font-weight: 800; }
.nk-entry .nk-toc-ttl i { margin-right: .5em; }
.nk-entry .nk-toc ol { margin: 0; padding: 0; counter-reset: nktoc; }
.nk-entry .nk-toc li { list-style: none; position: relative; margin: 0 0 .5em; padding-left: 2em; font-size: 15.5px; line-height: 1.7; counter-increment: nktoc; }
.nk-entry .nk-toc li::before {
  content: counter(nktoc);
  position: absolute;
  left: 0;
  top: .2em;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  background: #2A3C59;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45em;
  text-align: center;
}
.nk-entry .nk-toc a { color: #2A3C59; text-decoration: none; }
.nk-entry .nk-toc a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
 * スマホ
 * ------------------------------------------------------------------ */
@media screen and (max-width: 800px) {
  .nk-entry,
  .nk-entry p,
  .nk-entry li,
  .nk-entry th,
  .nk-entry td { font-size: 15.5px; }
  .nk-entry { line-height: 1.9; }
  .nk-entry h2 { font-size: 19px; padding: .65em .9em; border-radius: 8px; margin-top: 2.2em; }
  .nk-entry h3 { font-size: 17.5px; }
  .nk-entry .is-style-nk-point { padding: 1.2em 1.2em .4em; }
  .nk-entry .is-style-nk-memo { padding: 1em 1.1em .1em 3em; }
  .nk-entry .is-style-nk-memo::before { left: .8em; top: 1.05em; }
  .nk-entry .is-style-nk-data th { width: 34%; }
  .nk-entry .is-style-nk-data th,
  .nk-entry .is-style-nk-data td { padding: .65em .8em; }
  .nk-entry .wp-block-button__link { display: block; padding: .9em 1.2em; font-size: 16.5px; text-align: center; }
  .nk-entry .wp-block-buttons > .wp-block-button { width: 100%; }
  .nk-entry .nk-toc { padding: 1.1em 1.2em .8em; }
}

/* 段組みは 781px 以下で縦に並ぶ（WordPress の決まり）ので、矢印を下向きにする */
@media screen and (max-width: 781px) {
  .nk-entry .is-style-nk-ba { flex-direction: column; gap: 40px; }
  .nk-entry .is-style-nk-ba > .wp-block-column:first-child::after {
    right: 50%;
    top: auto;
    bottom: -32px;
    margin: 0 -14px 0 0;
    border-width: 20px 14px 0 14px;
    border-color: #C03C18 transparent transparent transparent;
  }
}
