/* 家の売却ガイド ディレクトリページ */

.zika-dir {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  line-height: 1.9;
}

.zika-dir__crumbs {
  font-size: .82rem;
  margin-bottom: 1.2rem;
  color: #6b7280;
  word-break: break-all;
}
.zika-dir__crumbs a { color: #6b7280; text-decoration: none; }
.zika-dir__crumbs a:hover { text-decoration: underline; }
.zika-dir__crumbs span { margin: 0 .35em; }

.zika-dir__title {
  font-size: 1.55rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.zika-dir__lead { margin-bottom: 2rem; }

.zika-dir__section { margin: 2.5rem 0; }
.zika-dir__section h2 {
  font-size: 1.2rem;
  border-left: 4px solid #1f6feb;
  padding-left: .7em;
  margin-bottom: 1rem;
}

.zika-dir__note {
  font-size: .88rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* 事務所カード */
.zika-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  background: #fff;
}
.zika-card__name {
  font-size: 1.05rem;
  margin: 0 0 .7rem;
}
.zika-card__masked { color: #9ca3af; font-weight: normal; font-size: .9rem; }

.zika-card__meta {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: .35rem .9rem;
  margin: 0;
  font-size: .92rem;
}
.zika-card__meta dt { color: #6b7280; }
.zika-card__meta dd { margin: 0; word-break: break-all; }

/* 地域リンク */
.zika-dir__prefs,
.zika-dir__children { margin: 2.5rem 0; }
.zika-dir__children h2 {
  font-size: 1.2rem;
  border-left: 4px solid #1f6feb;
  padding-left: .7em;
  margin-bottom: 1rem;
}
.zika-dir__pref,
.zika-dir__child {
  display: inline-block;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: .4em .9em;
  margin: 0 .4rem .55rem 0;
  font-size: .93rem;
  text-decoration: none;
  color: #1f2937;
  background: #fff;
}
.zika-dir__pref:hover,
.zika-dir__child:hover { border-color: #1f6feb; color: #1f6feb; }
.zika-dir__child em { font-style: normal; color: #6b7280; font-size: .85em; margin-left: .4em; }

/* 箇条書き
   テーマ側が list-style を消していると印が出ず、ただの改行に見えてしまう。
   印と番号は意味を持つので、ここで明示的に戻す。 */
.zika-dir .zika-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}
.zika-dir .zika-list > li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: .55rem;
}
.zika-dir .zika-list > li::before {
  content: "";
  position: absolute;
  left: .35em;
  top: .72em;
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: #1f6feb;
}

/* 手順は番号そのものを見せる */
.zika-dir .zika-steps {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.2rem;
  counter-reset: zika-step;
}
.zika-dir .zika-steps > li {
  position: relative;
  padding-left: 3em;
  margin-bottom: .9rem;
  min-height: 2em;
}
.zika-dir .zika-steps > li::before {
  counter-increment: zika-step;
  content: counter(zika-step);
  position: absolute;
  left: 0;
  top: .18em;
  width: 2em;
  height: 2em;
  line-height: 2em;
  text-align: center;
  border-radius: 50%;
  background: #1f6feb;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}

/* 査定への誘導 */
.zika-cta {
  margin: 2.5rem 0;
  padding: 0 0 1.4rem;
  /* 枠だけ見出しの緑でしっかり縁取る。記事本文との区別が付くように。背景は白 */
  border: 2px solid #0a7a45;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.zika-cta__heading {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 1rem 1.1rem .6rem;
  border: 0;
  padding: 0;
  background: none;
}
.zika-cta__heading::before,
.zika-cta__heading::after { content: none; }
.zika-cta__body {
  margin: 0 1.1rem 1.2rem;
  font-size: .95rem;
  line-height: 1.9;
}
/* 枠内のマーカーは少し濃いめ（記事本文の黄色より目立たせる） */
.zika-cta__body .zika-marker {
  background: linear-gradient(transparent 56%, #ffd84d 56%);
}
/* ボタンはSWELLのボタンブロックに任せる。
   見た目の指定はテーマ側にあるので、ここでは色と余白だけを渡す。
   自前で background や padding を書くと、光るエフェクトの疑似要素とずれる。 */
.zika-cta .zika-cta__action {
  --the-btn-color: #f97316;
  --the-btn-radius: 8px;
  --the-min-width: 100%;
  margin: 0 1.1rem 0 !important;
}
.zika-cta .zika-cta__action .swell-block-button__link {
  /* 地名入りの文言はスマホで2行になる。それを受け入れて文字を1.2倍にする（1.05→1.26rem） */
  font-size: 1.26rem;
  line-height: 1.45;
  color: #fff !important;
}

/* 査定への誘導の上部（見出しエリア）。装飾は付けない */
.zika-cta2__hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 26px 18px;
  background: #f5f8fb;
  border-bottom: 1px solid #e5e7eb;
}
.zika-cta2__txt { flex: 1 1 auto; min-width: 0; }
.zika-cta2__kicker {
  margin: 0 0 6px;
  font-size: .82rem;
  font-weight: 700;
  color: #0a7a45;
  letter-spacing: .04em;
}
.zika-cta2__title {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.4;
  font-weight: 700;
  color: #1b3a5c;
  word-break: keep-all;
}
.zika-cta2__title em { font-style: normal; color: #0a7a45; }
.zika-cta2__sub {
  margin: 0;
  font-size: .95rem;
  line-height: 1.75;
  color: #374151;
}
.zika-cta2__fig { flex: 0 0 150px; margin: 0; }
.zika-cta2__fig img { display: block; width: 150px; height: auto; border-radius: 8px; }
.zika-cta .zika-cta__body { margin-top: 1rem; }
.zika-cta2__note {
  margin: .6rem 1.1rem 0;
  font-size: .8rem;
  color: #6b7280;
  text-align: center;
}
@media (max-width: 600px) {
  .zika-cta2__hero {
    display: grid;
    grid-template-columns: 1fr 104px;
    grid-template-areas: "kicker fig" "title fig" "sub sub";
    column-gap: 12px;
    align-items: start;
    padding: 18px 16px 14px;
  }
  .zika-cta2__txt { display: contents; }
  .zika-cta2__kicker { grid-area: kicker; }
  .zika-cta2__title { grid-area: title; font-size: 1.18rem; margin-bottom: 8px; }
  .zika-cta2__sub { grid-area: sub; font-size: .9rem; margin-top: 4px; }
  .zika-cta2__fig { grid-area: fig; align-self: center; }
  .zika-cta2__fig img { width: 104px; }
}

.zika-dir__updated {
  margin-top: 3rem;
  font-size: .82rem;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

@media (max-width: 600px) {
  .zika-dir { padding: 1rem .9rem 3rem; }
  .zika-dir__title { font-size: 1.3rem; }
  .zika-card__meta { grid-template-columns: 4.8em 1fr; font-size: .88rem; }
}

/* トップページ */
.zika-front__more {
  display: inline-block;
  margin-top: .6rem;
  font-weight: 700;
  color: #1f6feb;
  text-decoration: none;
}
.zika-front__more::after { content: " ›"; }
.zika-front__more:hover { text-decoration: underline; }

/* 県ページの市区町村一覧 */
.zika-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  margin: 0 0 1rem;
}
.zika-table th,
.zika-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: .55em .6em;
  text-align: left;
}
.zika-table th {
  background: #f3f4f6;
  font-weight: 700;
  white-space: nowrap;
}
/* 数値列の固定幅は、市区町村一覧の表だけに適用する。
   記事本文の2列表に当たると、右列が5.5emに潰れて崩れる。 */
.zika-table--counts td:nth-child(2),
.zika-table--counts td:nth-child(3),
.zika-table--counts th:nth-child(2),
.zika-table--counts th:nth-child(3) {
  text-align: right;
  white-space: nowrap;
  width: 5.5em;
}

/* 記事本文の表。左列を広げすぎず、右列を潰さない */
.zika-table:not(.zika-table--counts) th:first-child,
.zika-table:not(.zika-table--counts) td:first-child {
  width: 38%;
}
.zika-table:not(.zika-table--counts) td { vertical-align: top; }
.zika-table a { color: #1f6feb; text-decoration: none; font-weight: 700; }
.zika-table a:hover { text-decoration: underline; }
.zika-table__soon {
  display: inline-block;
  margin-left: .5em;
  padding: .1em .5em;
  border-radius: 4px;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: .78em;
}

/* 解説記事の一覧 */
.zika-guide-list { list-style: none; padding: 0; margin: 0; }
.zika-guide-list li {
  border-bottom: 1px solid #e5e7eb;
  padding: .9rem 0;
}
.zika-guide-list a {
  display: block;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
  line-height: 1.6;
}
.zika-guide-list a:hover { color: #1f6feb; }
.zika-guide-list span {
  display: block;
  margin-top: .3rem;
  font-size: .88rem;
  color: #6b7280;
}

/* 解説記事の本文 */
.zika-guide-box {
  border: 2px solid #1f6feb;
  border-radius: 8px;
  background: #f5f9ff;
  padding: 1.1rem 1.2rem;
  margin: 0 0 2rem;
}
.zika-guide-box__title {
  font-weight: 700;
  margin: 0 0 .7rem;
  color: #1f6feb;
}
.zika-guide-box .zika-list { margin-bottom: 0; }
.zika-guide-example {
  background: #f3f4f6;
  border-left: 4px solid #9ca3af;
  padding: .8em 1em;
  font-weight: 700;
  margin: 1rem 0;
}

/* 記事内の重要箇所。乱発しないこと（1記事に数か所まで） */
.zika-marker {
  font-weight: 700;
  background: linear-gradient(transparent 58%, #ffe680 58%);
  padding-bottom: .05em;
}

/* 記事内の図解 */
.zika-figure {
  margin: 1.8rem 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.zika-figure__svg { display: block; width: 100%; height: auto; }
.zika-figure figcaption {
  font-size: .85rem;
  color: #6b7280;
  padding: .7rem 1rem;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}

/* 記事内の写真 */
.zika-photo { margin: 1.8rem 0; padding: 0; }
.zika-photo img { width: 100%; height: auto; display: block; border-radius: 8px; }
.zika-photo figcaption {
  font-size: .85rem;
  color: #6b7280;
  margin-top: .5rem;
  line-height: 1.6;
}

/* トップページから相場ページへの入口 */
.zika-front__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 1.2rem 0;
}
@media (min-width: 620px) {
  .zika-front__cards { grid-template-columns: 1fr 1fr; }
}
.zika-front__card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  padding: 20px 18px;
  text-decoration: none;
  color: inherit;
}
.zika-front__card b { font-size: 1.05rem; font-weight: 800; color: #1b4f8a; }
.zika-front__card span { font-size: .82rem; color: #6b7280; }
.zika-front__card:hover { border-color: #1b4f8a; background: #f5f8fb; }

.zika-front__guides > li a { color: #1b4f8a; text-decoration: none; }
.zika-front__guides > li a:hover { text-decoration: underline; }

/* 種別カードの画像。
   縦横比は 2:1 で固定し、object-fit: cover で切り取る。
   高さや幅を個別に指定すると画像が歪むため、比率だけを決めて中身を合わせる。 */
.zika-cardthumb {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #eef2f6;
  line-height: 0;
}
.zika-cardthumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zika-front__card--img { padding: 0; overflow: hidden; }
.zika-front__cardbody { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px 18px; }

/* 会社一覧ページから相場ページへの導線 */
.zika-dir__rel { display: flex; flex-direction: column; gap: 8px; margin-top: 1rem; }
.zika-dir__rel a {
  display: block;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  padding: 13px 15px;
  font-size: .95rem;
  font-weight: 700;
  color: #1b4f8a;
  text-decoration: none;
}
.zika-dir__rel a::after { content: " ›"; }
.zika-dir__rel a:hover { border-color: #1b4f8a; background: #f5f8fb; }

/* ===== 吹き出し =====
   SWELLの吹き出しはREST APIから登録できないので自前で持つ。
   売主を左、編集部を右に置いて会話として読ませる。 */
.zika-talk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 1.4em 0;
}
.zika-talk--editor { flex-direction: row-reverse; }

.zika-talk__who {
  flex: 0 0 auto;
  width: 62px;
  text-align: center;
}
.zika-talk__who img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #e6eaee;
  background: #fff;
  display: block;
  object-fit: cover;
}
.zika-talk__name {
  display: block;
  font-size: 10.5px;
  color: #77848f;
  margin-top: 3px;
  line-height: 1.3;
  white-space: nowrap;
}

.zika-talk__say {
  position: relative;
  background: #f3f5f7;
  border-radius: 12px;
  padding: 13px 16px;
  max-width: calc(100% - 90px);
}
.zika-talk__say p { margin: 0; font-size: .95rem; line-height: 1.85; }
.zika-talk__say p + p { margin-top: .6em; }

/* しっぽ。枠線を使わず背景色だけで作る */
.zika-talk__say::before {
  content: "";
  position: absolute;
  top: 18px;
  border: 8px solid transparent;
}
.zika-talk--seller .zika-talk__say::before {
  left: -15px;
  border-right-color: #f3f5f7;
}
.zika-talk--editor .zika-talk__say {
  background: #e8f0f8;
}
.zika-talk--editor .zika-talk__say::before {
  right: -15px;
  border-left-color: #e8f0f8;
}

@media (max-width: 520px) {
  .zika-talk { gap: 9px; }
  .zika-talk__who { width: 48px; }
  .zika-talk__who img { width: 46px; height: 46px; }
  .zika-talk__say { padding: 11px 13px; max-width: calc(100% - 62px); }
  .zika-talk__say p { font-size: .9rem; }
  .zika-talk__say::before { top: 14px; border-width: 7px; }
  .zika-talk--seller .zika-talk__say::before { left: -13px; }
  .zika-talk--editor .zika-talk__say::before { right: -13px; }
}

/* 記事内の表。狭い画面では横スクロールさせる。
   列を詰めて折り返すと金額が読めなくなるため、幅は保ったまま流す。 */
.zika-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4em 0;
}
.zika-table-wrap .zika-table { margin: 0 !important; min-width: 520px; }

/* ボタンの文言を画面幅で出し分ける。
   狭い画面で2行に折り返すと押しにくく、視線も止まるため。 */
.zika-cta__sp { display: none; }
@media (max-width: 599px) {
  .zika-cta__pc { display: none; }
  /* ゼロ幅スペースを入れた位置でだけ折り返す（「業／者」で割れないように） */
  .zika-cta__sp { display: inline; word-break: keep-all; overflow-wrap: normal; }
}

/* 解説記事のカテゴリー入口。
   記事本文からしか辿れない状態だと、読者もクローラも回遊できない。 */
.zika-catnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.6rem;
}
.zika-catchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .88rem;
  font-weight: 700;
  color: #1b4f8a;
  text-decoration: none;
  line-height: 1.4;
}
.zika-catchip em {
  font-style: normal;
  font-size: .78em;
  font-weight: 700;
  color: #fff;
  background: #1b4f8a;
  border-radius: 999px;
  min-width: 1.6em;
  text-align: center;
  padding: 1px 5px;
}
.zika-catchip:hover { border-color: #1b4f8a; background: #f5f8fb; }

.zika-dir__section h2 > a { color: inherit; text-decoration: none; }
.zika-dir__section h2 > a:hover { text-decoration: underline; }

/* 記事末尾の出典。
   根拠として必要なので載せるが、読者が読む対象ではない。
   本文と同じ大きさだと最後に目立ってしまうので落とす。 */
.zika-guide-source {
  font-size: .78rem;
  line-height: 1.75;
  color: #8a949d;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9edf1;
}
@media (max-width: 599px) {
  .zika-guide-source { font-size: .74rem; }
}

/* トップページのタイル日本地図 */
.zt{margin:8px 0 4px}
.zt__lead{font-size:14px;line-height:1.8;margin:0 0 14px}
.zt__grid{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:4px}
.zt__c{display:flex;flex-direction:column;align-items:center;justify-content:center;
  aspect-ratio:1/1;border-radius:6px;text-decoration:none;line-height:1.2;padding:2px;
  transition:transform .12s ease}
.zt__c:hover{transform:translateY(-2px);outline:2px solid #1b4f8a;outline-offset:0}
.zt__n{font-weight:700;font-size:12px}
.zt__v{font-size:10.5px;opacity:.92;margin-top:2px}
/* 五分位の5段階。連続階調にすると隣の県との差が読めない */
.zt__c--s0{background:#eaf1f7;color:#1b3a5f}
.zt__c--s1{background:#cfe0ef;color:#1b3a5f}
.zt__c--s2{background:#a5c6e2;color:#123457}
.zt__c--s3{background:#5f96c8;color:#fff}
.zt__c--s4{background:#1b4f8a;color:#fff}
.zt__legend{display:flex;align-items:center;gap:8px;margin:14px 0 0;font-size:12px;color:#444}
.zt__bar{width:120px;height:11px;border-radius:6px;display:inline-block;
  background:linear-gradient(90deg,#eaf1f7,#1b4f8a)}
.zt__src{font-size:11px;color:#777;margin:8px 0 0;line-height:1.7}
@media(max-width:600px){
  .zt__grid{gap:3px}
  .zt__n{font-size:10px}
  .zt__v{font-size:8.5px}
  .zt__bar{width:80px}
}

/* ホームページを確認した会社の紹介。掲載データがある市区町村だけで使う */
.zika-tabs {
  display: flex;
  gap: .4rem;
  border-bottom: 2px solid #e5e7eb;
  margin: 2.5rem 0 1.5rem;
}
.zika-tab {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  padding: .6rem 1rem;
  color: #6b7280;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.zika-tab[aria-selected="true"] {
  color: #1f6feb;
  border-bottom-color: #1f6feb;
  font-weight: 700;
}
.zika-tab:focus-visible { outline: 2px solid #1f6feb; outline-offset: 2px; }

.zika-co {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.2rem;
  background: #fff;
}
.zika-co__shot { margin: 0; }
.zika-co__shot img {
  width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  display: block;
}
.zika-co__shot figcaption {
  font-size: .74rem;
  color: #9ca3af;
  margin-top: .35rem;
  word-break: break-all;
}
.zika-co__note p { margin: 0 0 .5rem; font-size: .94rem; }
.zika-co .zika-card__meta { margin-top: .9rem; font-size: .88rem; }

@media (max-width: 640px) {
  .zika-co { grid-template-columns: 1fr; }
  .zika-tab { padding: .55rem .7rem; font-size: .92rem; }
}

/* ===== 近隣タイル（3×3の方角タイル。真ん中がこのページの市区町村） ===== */
.zika-near__lead{font-size:14px;line-height:1.8;margin:0 0 12px}
.zika-near__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:600px}
.zika-near__c{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  border-radius:8px;text-decoration:none;line-height:1.25;padding:16px 4px 14px;min-height:96px;
  background:#eaf1f7;color:#1b3a5f;transition:transform .12s ease}
a.zika-near__c:hover{transform:translateY(-2px);outline:2px solid #1b4f8a}
.zika-near__c--me{background:#1b4f8a;color:#fff}
.zika-near__c--none{background:transparent}
.zika-near__d{font-size:10.5px;opacity:.75;margin-bottom:4px}
.zika-near__n{font-weight:700;font-size:14px}
.zika-near__v{font-size:12.5px;margin-top:4px}
@media(max-width:600px){.zika-near__grid{gap:4px}.zika-near__n{font-size:12.5px}.zika-near__v{font-size:11px}.zika-near__d{font-size:9.5px}}
