@charset "utf-8";
/* ----------------------------------------------------------------------------
 * 投稿（コラム・調査事例・お客様の声・ニュースなど）
 * 子テーマの milae-static/single-milae-post.php が読み込む（2026-10-22）。
 * 色と部品の形は、調査種別のページ（section-investigation.css の p-inv-*）にそろえる。
 * 本文の部品（milae-answer・milae-cta・milae-case など）は、articles/build.py が class だけを付けて出す。
 * -------------------------------------------------------------------------- */

.p-col {
  --col-green: #55A86C;
  --col-green-dark: #3E8B55;
  --col-bg: #F4F8F1;
  --col-border: #D9E8D0;
  --col-text: #333;
  --col-sub: #666;
  color: var(--col-text);
}

/* タイトル（共通の見出しは 44px と大きいので、記事のタイトルの長さに合わせて小さくする） */
.p-col .common_header .c-title-section {
  font-size: 30px;
  line-height: 1.5;
  padding: 0 5%;
}
@media screen and (max-width: 767px) {
  .p-col .common_header .c-title-section { font-size: 21px; }
}

/* パンくず：記事のタイトルが長いと、スマホで「ホーム」「コラム」が 1 文字ずつ折り返すため、
   ホーム・コラムは折り返さず、記事のタイトルだけを 1 行で省略する */
.p-col .breadlist .item {
  white-space: nowrap;
  flex-shrink: 0;
}
.p-col .breadlist .item:last-child {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-col-article {
  width: 90%;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 0 64px;
}
.p-col-meta {
  font-size: 13px;
  color: var(--col-sub);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 28px;
}
.p-col-meta a {
  color: var(--col-green-dark);
  text-decoration: underline;
}

/* アイキャッチ画像（調査事例・お客様の声・ニュースなど） */
.p-col-thumb {
  margin: 0 0 32px;
}
.p-col-thumb img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* 本文 */
.p-col-body {
  font-size: 16px;
  line-height: 1.9;
}
.p-col-body p {
  margin: 0 0 1.2em;
}
.p-col-body a {
  color: var(--col-green-dark);
  text-decoration: underline;
}
.p-col-body strong {
  font-weight: bold;
}
.p-col-body h2 {
  font-size: 24px;
  line-height: 1.5;
  font-weight: bold;
  margin: 64px 0 24px;
  padding: 14px 18px;
  background: var(--col-bg);
  border-left: 6px solid var(--col-green);
  border-radius: 0 10px 10px 0;
  scroll-margin-top: 90px;
}
.p-col-body h3 {
  font-size: 19px;
  line-height: 1.5;
  font-weight: bold;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--col-border);
  scroll-margin-top: 90px;
}
.p-col-body ul,
.p-col-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.5em;
}
.p-col-body ul { list-style: disc; }
.p-col-body ol { list-style: decimal; }
.p-col-body li { margin-bottom: .4em; list-style: inherit; } /* reset.css が li の記号を消しているため、ul・ol の指定を引き継ぐ */
@media screen and (max-width: 767px) {
  .p-col-body { font-size: 15px; }
  .p-col-body h2 { font-size: 20px; margin-top: 48px; padding: 12px 14px; }
  .p-col-body h3 { font-size: 17px; }
}

/* 表 */
.p-col-body .wp-block-table {
  margin: 0 0 1.6em;
  overflow-x: auto;
}
.p-col-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
}
.p-col-body th,
.p-col-body td {
  border: 1px solid var(--col-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.p-col-body thead th {
  background: var(--col-bg);
  font-weight: bold;
}
.p-col-body figcaption {
  font-size: 13px;
  color: var(--col-sub);
  margin-top: 8px;
}
@media screen and (max-width: 767px) {
  .p-col-body table { font-size: 14px; }
  .p-col-body th, .p-col-body td { padding: 8px; }
}

/* 冒頭の答え（調査種別のページの p-inv-lead と同じ形） */
.p-col-body .milae-answer {
  background: #FFF;
  border: 2px solid var(--col-green);
  border-radius: 20px;
  box-shadow: 10px 10px 30px rgba(197, 213, 183, .35);
  padding: 26px 30px;
  margin: 0 0 32px;
}
.p-col-body .milae-answer p {
  margin-bottom: .6em;
}
.p-col-body .milae-answer p:last-child {
  margin-bottom: 0;
}
.p-col-body .milae-answer p:first-child strong {
  color: var(--col-green-dark);
  font-size: 17px;
}
@media screen and (max-width: 767px) {
  .p-col-body .milae-answer { padding: 20px 18px; }
}

/* この記事で分かること */
.p-col-body .milae-points {
  list-style: none;
  padding: 18px 20px;
  background: var(--col-bg);
  border-radius: 12px;
}
.p-col-body .milae-points li {
  position: relative;
  padding-left: 1.6em;
}
.p-col-body .milae-points li::before {
  content: '';
  position: absolute;
  left: .2em;
  top: .55em;
  width: .7em;
  height: .4em;
  border-left: 3px solid var(--col-green);
  border-bottom: 3px solid var(--col-green);
  transform: rotate(-45deg);
}

/* 目次 */
.p-col-toc {
  border: 2px solid var(--col-border);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 40px 0;
  font-size: 15px;
}
.p-col-toc__ttl {
  font-weight: bold;
  color: var(--col-green-dark);
  margin-bottom: 10px;
}
.p-col-body .p-col-toc__list {
  list-style: decimal;
  margin: 0;
  padding-left: 1.4em;
}
.p-col-body .p-col-toc__sub {
  list-style: none;
  margin: .3em 0 .2em;
  padding-left: .6em;
  font-size: 14px;
}
.p-col-body .p-col-toc a {
  color: var(--col-text);
  text-decoration: none;
}
.p-col-body .p-col-toc a:hover {
  color: var(--col-green-dark);
  text-decoration: underline;
}

/* 相談の案内（調査種別のページの p-inv-cta と同じ形） */
.p-col-body .milae-cta {
  background: var(--col-green);
  color: #FFF;
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  margin: 40px 0;
}
.p-col-body .milae-cta p {
  margin-bottom: 16px;
}
.p-col-body .milae-cta p:last-child {
  margin-bottom: 0;
}
.p-col-body .milae-cta strong {
  font-size: 19px;
}
.p-col-body .milae-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.p-col-body .milae-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 13px 20px;
  border-radius: 40px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.p-col-body .milae-cta a.milae-cta-tel {
  background: #FFF;
  color: var(--col-green-dark);
  font-family: 'Montserrat', sans-serif;
}
.p-col-body .milae-cta a.milae-cta-line {
  background: #06C755;
  color: #FFF;
}
.p-col-body .milae-cta a.milae-cta-form {
  background: linear-gradient(#E4747F, #EBA3D5);
  color: #FFF;
}
@media screen and (max-width: 767px) {
  .p-col-body .milae-cta { padding: 22px 16px; }
  .p-col-body .milae-cta strong { font-size: 17px; }
  .p-col-body .milae-cta a { min-width: 0; width: 100%; }
}

/* 事例 */
.p-col-body .milae-case {
  background: var(--col-bg);
  border: 1px solid var(--col-border);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 28px 0;
}
.p-col-body .milae-case > p:first-child strong {
  color: var(--col-green-dark);
}
.p-col-body .milae-case-facts {
  list-style: none;
  padding: 14px 16px;
  background: #FFF;
  border-radius: 10px;
}
.p-col-body .milae-case-facts li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--col-border);
  margin: 0;
}
.p-col-body .milae-case-facts li:last-child {
  border-bottom: none;
}
@media screen and (max-width: 767px) {
  .p-col-body .milae-case { padding: 18px 14px; }
}

/* よくある質問 */
.p-col-body h3.milae-faq-q {
  position: relative;
  border-bottom: none;
  padding: 0 0 0 40px;
  margin: 28px 0 10px;
  font-size: 17px;
}
.p-col-body h3.milae-faq-q::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--col-green);
  color: #FFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  line-height: 30px;
  text-align: center;
}
.p-col-body .milae-faq-a {
  padding-left: 40px;
}

/* 監修者（弁護士など）・出典 */
.p-col-body .milae-supervisor {
  border: 2px solid var(--col-border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 32px 0;
  font-size: 15px;
}
.p-col-body .milae-sources {
  font-size: 13px;
  color: var(--col-sub);
  margin-top: 32px;
}

/* この記事を書いた人（supervisor.css の部品を使う。上下の余白だけ調整） */
.p-col-author {
  padding: 48px 0;
}

/* ほかのコラム */
.p-col-related {
  padding: 48px 0 72px;
}
.p-col-related__inner {
  width: 90%;
  max-width: 760px;
  margin: 0 auto;
}
.p-col-related__ttl {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
}
.p-col-related__list li {
  border-bottom: 1px solid var(--col-border);
}
.p-col-related__list a {
  display: block;
  padding: 14px 4px;
  color: var(--col-text);
}
.p-col-related__list a:hover {
  color: var(--col-green-dark);
}
.p-col-related__more {
  margin-top: 16px;
  text-align: right;
}
.p-col-related__more a {
  color: var(--col-green-dark);
  text-decoration: underline;
}

/* ----------------------------------------------------------------------------
 * 調査事例・お客様の声・ニュースの部品（2026-10-22 に Emanon Premium Blocks から置き換えたもの。articles/convert_epb.py）
 * -------------------------------------------------------------------------- */

/* ご相談内容・お客様の声（milae-voice） */
.p-col-body .milae-voice {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 4px 20px;
  background: #FFF;
  border: 2px solid var(--col-border);
  border-radius: 20px;
  padding: 24px;
  margin: 0 0 28px;
}
.p-col-body .milae-voice > * {
  grid-column: 2;
}
.p-col-body .milae-voice > .milae-voice__img {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 0;
}
.p-col-body .milae-voice__img img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--col-bg);
}
.p-col-body .milae-voice__name {
  font-size: 14px;
  color: var(--col-green-dark);
  font-weight: bold;
  margin-bottom: .4em;
}
.p-col-body .milae-voice__ttl {
  font-size: 17px;
}
@media screen and (max-width: 767px) {
  .p-col-body .milae-voice { grid-template-columns: 64px minmax(0, 1fr); padding: 18px 16px; gap: 4px 14px; }
  .p-col-body .milae-voice__img img { width: 64px; height: 64px; }
  .p-col-body .milae-voice > *:not(.milae-voice__img):not(.milae-voice__name) { grid-column: 1 / -1; }
  .p-col-body .milae-voice > .milae-voice__img { grid-row: 1; }
}

/* 調査の詳細（時系列。milae-timeline） */
.p-col-body ol.milae-timeline {
  list-style: none;
  counter-reset: milae-step;
  padding: 0;
  margin: 0 0 28px;
  position: relative;
}
.p-col-body ol.milae-timeline::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--col-border);
}
.p-col-body ol.milae-timeline li {
  counter-increment: milae-step;
  position: relative;
  padding: 4px 0 18px 52px;
  margin: 0;
  list-style: none;
}
.p-col-body ol.milae-timeline li::before {
  content: counter(milae-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--col-green);
  color: #FFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  line-height: 36px;
  text-align: center;
}

/* 調査の結果・掲載許可について（milae-result） */
.p-col-body .milae-result {
  border: 2px solid var(--col-green);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 0 0 28px;
  background: #FFF;
}
.p-col-body .milae-result__ttl {
  display: inline-block;
  background: var(--col-green);
  color: #FFF;
  border-radius: 30px;
  padding: 2px 14px;
  font-size: 14px;
}
.p-col-body .milae-result p:last-child {
  margin-bottom: 0;
}

/* 紹介したサイトへのリンク（milae-linkcard） */
.p-col-body .milae-linkcard a {
  display: block;
  border: 2px solid var(--col-border);
  border-radius: 12px;
  padding: 16px 20px;
  font-weight: bold;
  text-decoration: none;
}
.p-col-body .milae-linkcard a::after {
  content: ' ›';
}

/* 画像・地図 */
.p-col-body .wp-block-image {
  margin: 0 0 24px;
}
.p-col-body .wp-block-image img {
  max-width: 100%;
  height: auto;
}
.p-col-body .wp-block-image.aligncenter {
  text-align: center;
}
.p-col-body iframe {
  max-width: 100%;
}

/* ----------------------------------------------------------------------------
 * 既存の投稿（調査事例・お客様の声・ニュース）が使う Emanon Premium Blocks の色を、静的なデザインの緑にそろえる。
 * ブロックの中に赤（#b81a3b）・茶（#765657）が直接書かれているため、!important で上書きする。
 * -------------------------------------------------------------------------- */
.p-col-body .epb-advance-headling {
  --epb-style-color: var(--col-green) !important;
  margin-top: 0 !important;
}
/* 見出しは、コラムの h2 と同じ形（緑の左線＋薄い緑の背景）だけにする。Emanon の左線は消す */
.p-col-body .epb-advance-headling__text-wrapper {
  display: block !important;
  border: none !important;
  padding: 0 !important;
}
.p-col-body .epb-advance-headling__text-wrapper::before,
.p-col-body .epb-advance-headling__text-wrapper::after {
  display: none !important;
}
.p-col-body .wp-block-emanon-premium-blocks-headling {
  display: block !important;
  width: auto !important;
}
.p-col-body .epb-advance-headling h2.epb-advance-headling__text {
  display: block !important;
  width: auto !important;
  color: var(--col-text) !important;
  font-size: 24px !important;
}
.p-col-body .epb-step-number {
  background-color: var(--col-green) !important;
  border-color: var(--col-green) !important;
}
.p-col-body .epb-step {
  border-color: var(--col-border) !important;
}
.p-col-body .epb-box__headline {
  background-color: var(--col-green) !important;
}
.p-col-body .epb-box__body {
  border-color: var(--col-green) !important;
}
.p-col-body .epb-testimonial__headling {
  background-color: var(--col-green) !important;
  border-color: var(--col-green) !important;
}
.p-col-body .epb-linkcard_inner {
  border-color: var(--col-border) !important;
  border-radius: 12px;
}
.p-col-body .epb-step p,
.p-col-body .epb-box p,
.p-col-body .epb-testimonial p {
  margin-bottom: .6em;
}
@media screen and (max-width: 767px) {
  .p-col-body .epb-advance-headling h2.epb-advance-headling__text { font-size: 20px !important; }
}

/* ----------------------------------------------------------------------------
 * 一覧（カテゴリ・執筆者・タグ・日付）・検索結果・404（milae-static/archive-milae.php。2026-10-22）
 * -------------------------------------------------------------------------- */
.p-col-archive__desc {
  font-size: 15px;
  color: var(--col-sub);
}
.p-col-body .p-col-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.p-col-body .p-col-list__item {
  list-style: none;
  margin: 0;
  border-bottom: 1px solid var(--col-border);
}
.p-col-body .p-col-list__link {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  color: var(--col-text);
  text-decoration: none;
}
.p-col-body .p-col-list__link:hover .p-col-list__ttl {
  color: var(--col-green-dark);
  text-decoration: underline;
}
.p-col-list__thumb {
  flex: 0 0 200px;
  margin: 0;
}
.p-col-list__thumb img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.p-col-list__text {
  min-width: 0;
}
.p-col-body .p-col-list__meta {
  font-size: 13px;
  color: var(--col-sub);
  margin: 0 0 4px;
}
.p-col-list__cat {
  display: inline-block;
  margin-left: 10px;
  padding: 0 10px;
  border-radius: 20px;
  background: var(--col-bg);
  color: var(--col-green-dark);
}
.p-col-body .p-col-list__ttl {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.6;
  margin: 0 0 6px;
}
.p-col-body .p-col-list__excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: var(--col-sub);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .p-col-body .p-col-list__link { gap: 14px; padding: 18px 0; }
  .p-col-list__thumb { flex-basis: 110px; }
  .p-col-list__thumb img { width: 110px; height: 80px; border-radius: 8px; }
  .p-col-body .p-col-list__ttl { font-size: 16px; }
  .p-col-body .p-col-list__excerpt { -webkit-line-clamp: 2; }
}

/* ページ送り */
.p-col-pager ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}
.p-col-body .p-col-pager li {
  list-style: none;
  margin: 0;
}
.p-col-body .p-col-pager .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 8px 12px;
  border: 1px solid var(--col-border);
  border-radius: 8px;
  text-align: center;
  color: var(--col-text);
  text-decoration: none;
}
.p-col-body .p-col-pager .page-numbers.current {
  background: var(--col-green);
  border-color: var(--col-green);
  color: #FFF;
}

/* 404・該当なしのときのリンク */
.p-col-body .p-col-archive__links {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.p-col-body .p-col-archive__links li {
  list-style: none;
}

/* ----------------------------------------------------------------------------
 * テンプレートを指定していない固定ページ（milae-static/page-milae.php。2026-10-22）と、お問い合わせフォーム（Contact Form 7）
 * -------------------------------------------------------------------------- */
.p-col-body .wpcf7 {
  margin: 32px 0;
  background: var(--col-bg);
  border-radius: 20px;
  padding: 28px 28px 20px;
}
.p-col-body .wpcf7 label {
  display: block;
  font-weight: bold;
  font-size: 15px;
}
.p-col-body .wpcf7 input[type="text"],
.p-col-body .wpcf7 input[type="email"],
.p-col-body .wpcf7 input[type="tel"],
.p-col-body .wpcf7 input[type="url"],
.p-col-body .wpcf7 select,
.p-col-body .wpcf7 textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: normal;
  border: 1px solid #C9D8C0;
  border-radius: 10px;
  background: #FFF;
  color: var(--col-text);
}
.p-col-body .wpcf7 textarea {
  min-height: 180px;
}
.p-col-body .wpcf7 input:focus,
.p-col-body .wpcf7 select:focus,
.p-col-body .wpcf7 textarea:focus {
  outline: 2px solid var(--col-green);
  outline-offset: 1px;
}
.p-col-body .wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 8px auto 0;
  padding: 15px 20px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(#E4747F, #EBA3D5);
  color: #FFF;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
}
.p-col-body .wpcf7 input[type="submit"]:disabled {
  opacity: .6;
  cursor: default;
}
.p-col-body .wpcf7-not-valid-tip {
  color: #C0392B;
  font-size: 14px;
  margin-top: 4px;
}
.p-col-body .wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
}
.p-col-body .wpcf7-spinner {
  margin: 8px auto 0;
  display: block;
}
@media screen and (max-width: 767px) {
  .p-col-body .wpcf7 { padding: 20px 16px 14px; }
}

/* 埋め込み（WordPress の埋め込みブロック）と画像 */
.p-col-body .wp-block-embed iframe {
  width: 100%;
}
