/* Article pages: the same quiet, local editorial language as the sale homepage. */
body.aikikaku-sale-article {
  --article-width: 760px;
  color: var(--ink);
  background: var(--paper) !important;
}
body.aikikaku-sale-article a { color: inherit; }
body.aikikaku-sale-article .site-header { border-bottom: 1px solid transparent; }
body.aikikaku-sale-article .site-header::after {
  content: "";
  position: absolute;
  left: clamp(24px,4vw,68px);
  right: clamp(24px,4vw,68px);
  bottom: 0;
  height: 1px;
  background: var(--line);
}

body.aikikaku-sale-article #main.post-main {
  width: 100% !important;
  max-width: none !important;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  /* clip still hides overflow but, unlike hidden, lets the aside stick while scrolling. */
  overflow: clip;
  float: none !important;
}
body.aikikaku-sale-article .post-article {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.post-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(320px,.92fr);
  align-items: center;
  gap: clamp(44px,7vw,100px);
  width: min(100%,1360px);
  margin: 0 auto;
  padding: clamp(70px,8vw,120px) clamp(24px,5vw,72px) clamp(78px,8vw,112px);
}
.post-hero::after {
  content: "";
  position: absolute;
  left: clamp(24px,5vw,72px);
  right: clamp(24px,5vw,72px);
  bottom: 0;
  height: 1px;
  background: var(--line);
}
.post-hero:not(.has-image) { grid-template-columns: minmax(0,900px); }
.post-hero-copy { min-width: 0; }
.post-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: .75rem;
}
.post-breadcrumb a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; }
.post-breadcrumb a:hover { text-decoration-color: currentColor; }
.post-hero .eyebrow { margin-bottom: 18px; }
.post-hero h1 {
  margin: 0;
  font-size: clamp(2rem,3.35vw,3.4rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .035em;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 32px;
  color: var(--muted);
  font-size: .8125rem;
}
.post-category {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--ink);
}
.post-hero-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.08;
  margin: 0;
  border-radius: 44% 42% 20% 27% / 28% 33% 18% 25%;
  background: var(--paper-deep);
}
.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0,var(--article-width)) minmax(230px,280px);
  align-items: start;
  justify-content: center;
  gap: clamp(50px,7vw,96px);
  width: min(100%,1260px);
  margin: 0 auto;
  padding: clamp(76px,9vw,130px) clamp(24px,5vw,72px) 90px;
}
body.aikikaku-sale-article .post-content.entry-content {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 2.12;
}
body.aikikaku-sale-article .post-content > :first-child { margin-top: 0; }
body.aikikaku-sale-article .post-content > :last-child { margin-bottom: 0; }
.post-content p { margin: 0 0 1.8em; }
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .035em;
}
body.aikikaku-sale-article .post-content h2 {
  margin: 4.5em 0 1.35em;
  padding: 1.05em 0 .65em;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: clamp(1.625rem,2.4vw,2.125rem);
  line-height: 1.75;
}
body.aikikaku-sale-article .post-content h2::before,
body.aikikaku-sale-article .post-content h2::after { display: none; }
body.aikikaku-sale-article .post-content h3 {
  position: relative;
  margin: 3.4em 0 1.2em;
  padding: 0 0 .55em 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: clamp(1.3rem,2vw,1.625rem);
  line-height: 1.75;
}
body.aikikaku-sale-article .post-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 7px;
  height: 1.35em;
  border-radius: 8px;
  background: var(--sun);
}
body.aikikaku-sale-article .post-content h3::after { display: none; }
body.aikikaku-sale-article .post-content h4 {
  margin: 2.8em 0 1em;
  font-size: 1.15rem;
  line-height: 1.8;
}
.post-content a:not(.button) {
  color: #69501d;
  text-decoration: underline;
  text-decoration-color: #b59654;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.post-content a:hover { text-decoration-thickness: 2px; }
.post-content ul,
.post-content ol { margin: 1.5em 0 2em; padding-left: 1.5em; }
.post-content li { margin: .55em 0; }
.post-content blockquote {
  margin: 2.4em 0;
  padding: 24px 28px;
  border: 0;
  border-left: 4px solid var(--sun);
  background: #eeeee3;
  color: var(--muted);
}
.post-content figure { max-width: 100%; margin: 2.6em auto; }
.post-content img { height: auto; border-radius: 14px; }
/* Keep every SANGO conversation portrait visually related, while giving it an
   intentionally irregular outline like a smooth river stone. */
body.aikikaku-sale-article .post-content .say .faceicon img {
  display: block;
  width: 110px !important;
  height: 110px !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border: 3px solid #e1e3db !important;
  border-radius: 48% 52% 43% 57% / 41% 46% 54% 59% !important;
  background: #f5f2e9;
  box-shadow: 0 8px 20px rgba(48,49,42,.08);
}
body.aikikaku-sale-article .post-content .say:nth-of-type(3n + 2) .faceicon img {
  border-radius: 55% 45% 58% 42% / 48% 39% 61% 52% !important;
}
body.aikikaku-sale-article .post-content .say:nth-of-type(3n) .faceicon img {
  border-radius: 43% 57% 50% 50% / 55% 44% 56% 45% !important;
}
body.aikikaku-sale-article .post-content .say .faceicon span { font-size: 13px; }
/* SANGO narrows the portrait column to 100px (80px inside) below 481px, and its
   img max-width:100% then squeezed the 110px square into 80x110. Keep it square
   and smaller so the speech bubble gets the width back. */
@media only screen and (max-width: 480px) {
  body.aikikaku-sale-article .post-content .say .faceicon { width: 80px; padding-right: 16px; }
  body.aikikaku-sale-article .post-content .say.right .faceicon { padding: 0 0 0 16px; }
  body.aikikaku-sale-article .post-content .say .chatting { width: calc(100% - 80px); }
  body.aikikaku-sale-article .post-content .say .faceicon img {
    width: 64px !important;
    height: 64px !important;
    max-width: none;
    margin: 0 auto;
  }
}
.post-content figcaption { margin-top: 10px; color: var(--muted); font-size: .8125rem; text-align: center; }
body.aikikaku-sale-article .post-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 2.4em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-collapse: collapse;
  background: var(--white);
  white-space: normal;
  -webkit-overflow-scrolling: touch;
}
body.aikikaku-sale-article .post-content th,
body.aikikaku-sale-article .post-content td {
  min-width: 120px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  vertical-align: top;
  font-size: .9375rem;
  line-height: 1.7;
}
body.aikikaku-sale-article .post-content th { background: #e7eadf; color: var(--ink); }
/* Old editor styling written into each table: orange/pink fills, 10pt/8pt text, fixed heights. */
body.aikikaku-sale-article .post-content table[style*="height"],
body.aikikaku-sale-article .post-content table [style*="height"] { height: auto !important; }
body.aikikaku-sale-article .post-content table[style*="border-color"] { border-color: var(--line) !important; }
body.aikikaku-sale-article .post-content table [style*="font-size"] { font-size: inherit !important; }
body.aikikaku-sale-article .post-content table [style*="8pt"],
body.aikikaku-sale-article .post-content table [style*="small"] { font-size: .8125rem !important; }
body.aikikaku-sale-article .post-content table [style*="#ffb36b" i],
body.aikikaku-sale-article .post-content table [style*="#ffcd9e" i],
body.aikikaku-sale-article .post-content table [style*="#e6e8eb" i] { background-color: var(--paper-deep) !important; }
body.aikikaku-sale-article .post-content table [style*="#fff6ed" i],
body.aikikaku-sale-article .post-content table [style*="#fcf0f2" i],
body.aikikaku-sale-article .post-content table [style*="#f0f0f0" i] { background-color: var(--paper) !important; }
body.aikikaku-sale-article .post-content table [style*="#ffcfcf" i] { background-color: rgba(228,175,70,.22) !important; }
/* Transaction-count tables: cells with deals tinted, the busiest combination emphasised. */
body.aikikaku-sale-article .post-content table.is-count-matrix td.has-count { background-color: rgba(228,175,70,.16) !important; }
body.aikikaku-sale-article .post-content table.is-count-matrix td.is-peak { background-color: rgba(228,175,70,.55) !important; font-weight: 700; box-shadow: inset 0 0 0 2px var(--orange); }
.table-scroll-hint { margin: 2.4em 0 8px; color: var(--muted); font-size: .8125rem; text-align: right; }
.table-scroll-hint + table { margin-top: 0 !important; }
/* Emphasis, source boxes and speech bubbles in the new palette instead of SANGO's yellow and grey. */
body.aikikaku-sale-article .post-content .marker-yellow { background: linear-gradient(transparent 62%, rgba(228,175,70,.32) 62%); }
body.aikikaku-sale-article .post-content .memo { margin: 2.2em 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px 18px 6px 6px; background: var(--white); }
body.aikikaku-sale-article .post-content .memo_ttl { color: var(--orange); font-family: var(--serif); font-weight: 600; }
body.aikikaku-sale-article .post-content .memo_ttl::before { background: var(--orange); }
/* A summary box that opens the article sits right under the title block. */
body.aikikaku-sale-article .post-content > .memo:first-child,
body.aikikaku-sale-article .post-content > :first-child > .memo:first-child { margin-top: 0; }
body.aikikaku-sale-article .post-content .say .sc { border: 1px solid var(--line); background: var(--white); }
body.aikikaku-sale-article .post-content .say .sc::before { border-right-color: var(--line); }
body.aikikaku-sale-article .post-content .say .sc::after { left: -21px; border-right-color: var(--white); }
body.aikikaku-sale-article .post-content .say.right .sc::before { border-right-color: transparent; border-left-color: var(--line); }
body.aikikaku-sale-article .post-content .say.right .sc::after { left: auto; right: -21px; border-right-color: transparent; border-left-color: var(--white); }
/* Blank paragraphs typed as spacers made the rhythm uneven; the theme spacing takes over. */
body.aikikaku-sale-article .post-content p:empty,
body.aikikaku-sale-article .post-content p.is-blank { display: none; }
/* Long tables of contents open with the main headings only (script adds the toggle). */
body.aikikaku-sale-article .post-content #ez-toc-container.is-compact .ez-toc-list-level-3 { display: none; }
.toc-toggle { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-size: .9375rem; cursor: pointer; }
.toc-toggle:hover { border-color: var(--ink); }
body.aikikaku-sale-article .post-content .ez-toc-container,
body.aikikaku-sale-article .post-content #ez-toc-container {
  width: 100% !important;
  margin: 3em 0 !important;
  padding: 28px 30px !important;
  border: 0 !important;
  border-radius: 24px !important;
  background: #eeeee3 !important;
  box-shadow: none !important;
}
body.aikikaku-sale-article .post-content .ez-toc-title { font-family: var(--serif); font-size: 1.25rem; }
body.aikikaku-sale-article .post-content .ez-toc-list { margin-bottom: 0; }
body.aikikaku-sale-article .post-content .ez-toc-container a,
body.aikikaku-sale-article .post-content #ez-toc-container a { color: var(--ink); text-decoration-color: transparent; }
body.aikikaku-sale-article .post-content .ez-toc-container a:hover,
body.aikikaku-sale-article .post-content #ez-toc-container a:hover { text-decoration-color: var(--orange); }
body.aikikaku-sale-article .post-content .wp-block-button__link,
body.aikikaku-sale-article .post-content a.btn,
body.aikikaku-sale-article .post-content a.sgb-btn {
  color: var(--white);
  text-decoration: none;
}
body.aikikaku-sale-article .post-content .pryc-wp-acctp-original-content { margin: 0; }
.post-pages { display: flex; gap: 8px; margin-top: 50px; }

.post-aside { display: grid; grid-template-rows: auto 1fr; align-self: stretch; gap: 22px; }
/* Only the consultation box follows the reader, so its link stays on short laptop screens. */
.post-aside-contact { position: sticky; top: 128px; align-self: start; }
.post-author-mini,
.post-aside-contact {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px 28px 8px 8px;
  background: var(--paper);
}
.post-author-avatar {
  width: 78px;
  height: 78px;
  margin-bottom: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.post-author-mini .eyebrow,
.post-aside-contact .eyebrow { margin-bottom: 8px; }
.post-author-name { margin: 0 0 12px; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.post-author-mini > p:last-child:not(.post-author-name),
.post-aside-contact > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.9; }
.post-aside-contact { background: var(--paper-deep); }
.post-aside-contact h2 { margin: 0 0 15px; font-size: 1.2rem; line-height: 1.8; }
.post-aside-contact .text-link { margin-top: 18px; }

/* Consultation paths for phones, where the aside drops below the article. */
.post-inline-consult { margin: 2.6em 0 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 22px 22px 6px 6px; background: var(--paper-deep); }
body.aikikaku-sale-article .post-content .post-inline-consult p { margin: 0; font-size: 1rem; line-height: 1.9; }
body.aikikaku-sale-article .post-content .post-inline-consult .text-link { margin-top: 14px; font-size: 1rem; text-decoration: none; }
.consult-bar { display: none; }
@media (max-width: 860px) {
  .consult-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 19; display: grid; grid-template-columns: minmax(0,2fr) minmax(0,3fr); gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(247,246,239,.97); box-shadow: 0 -6px 18px rgba(48,59,53,.06); transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .consult-bar.is-visible { transform: none; visibility: visible; transition: transform .25s ease; }
  .consult-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 999px; font-size: 1rem; letter-spacing: .04em; white-space: nowrap; }
  .consult-bar__tel { border: 1px solid var(--ink); background: var(--white); }
  body.aikikaku-sale-article .consult-bar__main { background: var(--ink); color: var(--white); }
  .consult-bar__main span { color: var(--sun); }
}
.consult-bar[hidden] { display: none; }
@media (min-width: 861px) {
  .post-inline-consult { display: none; }
}

.post-end { padding-top: 20px; padding-bottom: 120px; }
.post-taxonomy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
}
.post-taxonomy > span { color: var(--orange); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.post-taxonomy a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; }
.post-taxonomy a:hover { text-decoration-color: currentColor; }
.post-author-card {
  display: grid;
  grid-template-columns: 180px minmax(0,1fr);
  gap: clamp(35px,6vw,75px);
  align-items: center;
  margin-top: 90px;
  padding: clamp(38px,5vw,65px);
  border-radius: 74px 74px 12px 12px;
  background: var(--blue);
}
.post-author-photo img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
.post-author-card .eyebrow { margin-bottom: 10px; }
.post-author-card h2,
.post-section-heading h2 { margin: 0; font-size: clamp(1.625rem,2.6vw,2.25rem); line-height: 1.7; }
.post-author-fullname { margin: 14px 0 8px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.post-author-card div > p:not(.eyebrow,.post-author-fullname) { margin: 0 0 18px; color: var(--muted); line-height: 2; }
.post-related { margin-top: 100px; }
.post-section-heading { margin-bottom: 35px; }
.post-section-heading .eyebrow { margin-bottom: 10px; }
.post-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.post-related-card { min-width: 0; border-top: 1px solid var(--line); }
.post-related-card a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 24px 6px 20px; }
.post-related-card a:hover { background: #f0efe4; }
.post-related-card span { color: var(--orange); font-size: .75rem; }
.post-related-card h3 { margin: 14px 0 20px; font-size: 1.05rem; line-height: 1.85; }
.post-related-card time { margin-top: auto; color: var(--muted); font-size: .75rem; }
.post-related-card b { position: absolute; right: 8px; bottom: 18px; color: var(--orange); font-size: 1.25rem; font-weight: 400; }
.post-navigation {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
  margin-top: 75px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.post-navigation a { display: grid; gap: 8px; padding: 10px 0; }
.post-navigation a:last-child { text-align: right; }
.post-navigation small { color: var(--orange); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.post-navigation span { font-family: var(--serif); font-size: .9375rem; line-height: 1.8; }
.post-comments { padding-top: 0; }

@media (max-width: 1040px) {
  .post-layout { grid-template-columns: minmax(0,var(--article-width)) 230px; gap: 48px; }
  .post-author-mini, .post-aside-contact { padding: 23px; }
}
@media (max-width: 860px) {
  .post-hero { grid-template-columns: minmax(0,1fr); gap: 42px; }
  .post-hero-image { grid-row: 1; width: min(100%,600px); aspect-ratio: 1.35; }
  .post-hero-copy { grid-row: 2; }
  .post-breadcrumb { margin-bottom: 32px; }
  .post-layout { grid-template-columns: minmax(0,var(--article-width)); }
  .post-aside { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .post-aside-contact { position: static; }
}
@media (max-width: 700px) {
  /* Keep the first phone screen for the title and the start of the article. */
  .post-hero { gap: 18px; padding: 16px 24px 28px; }
  .post-hero-image { aspect-ratio: 2.2; border-radius: 34px 40px 16px 22px / 30px 36px 16px 20px; }
  .post-breadcrumb { margin-bottom: 12px; }
  .post-hero .eyebrow { display: none; }
  .post-hero h1 { font-size: 1.5rem; line-height: 1.6; }
  .post-meta { flex-direction: row; align-items: center; gap: 6px 14px; margin-top: 14px; }
  .post-category { min-height: 30px; }
  .post-layout { gap: 60px; padding: 28px 24px 70px; }
  body.aikikaku-sale-article .post-content.entry-content { font-size: 1rem; line-height: 2.05; }
  body.aikikaku-sale-article .post-content h2 { margin-top: 3.7em; font-size: 1.5rem; }
  body.aikikaku-sale-article .post-content h3 { margin-top: 3em; padding-left: 18px; font-size: 1.25rem; }
  body.aikikaku-sale-article .post-content .ez-toc-container,
  body.aikikaku-sale-article .post-content #ez-toc-container { padding: 22px 20px !important; border-radius: 18px !important; }
  /* 120px minimum cells pushed even 3-column tables past the 327px column. */
  body.aikikaku-sale-article .post-content th,
  body.aikikaku-sale-article .post-content td { min-width: 4.5em; padding: 10px 9px; line-height: 1.6; }
  body.aikikaku-sale-article .post-content table.is-scrollable tr:not([style*="background"]) { background-color: var(--white); }
  body.aikikaku-sale-article .post-content table.is-scrollable tr > :first-child { position: sticky; left: 0; z-index: 1; background-color: inherit; box-shadow: 1px 0 0 var(--line); }
  .post-aside { grid-template-columns: minmax(0,1fr); }
  .post-author-card { grid-template-columns: minmax(0,1fr); gap: 28px; margin-top: 65px; padding: 38px 28px; border-radius: 54px 54px 10px 10px; }
  .post-author-photo img { width: 135px; height: 135px; margin: 0 auto; }
  .post-related { margin-top: 75px; }
  .post-related-grid { grid-template-columns: minmax(0,1fr); }
  .post-related-card a { padding: 22px 4px; }
  .post-navigation { grid-template-columns: minmax(0,1fr); gap: 4px; margin-top: 55px; }
  .post-navigation a:last-child { text-align: left; border-top: 1px solid var(--line); }
  .post-end { padding-top: 10px; padding-bottom: 80px; }
}
@media print {
  body.aikikaku-sale-article .site-header,
  body.aikikaku-sale-article .post-aside,
  body.aikikaku-sale-article .consult-bar,
  body.aikikaku-sale-article .post-inline-consult,
  body.aikikaku-sale-article .toc-toggle,
  body.aikikaku-sale-article .table-scroll-hint,
  body.aikikaku-sale-article .post-related,
  body.aikikaku-sale-article .post-navigation,
  body.aikikaku-sale-article .closing,
  body.aikikaku-sale-article .site-footer { display: none !important; }
  .post-hero, .post-layout { display: block; width: 100%; padding: 20px 0; }
  .post-hero-image { max-width: 360px; margin: 25px 0; }
}
