/* ==========================================================================
   宅建業免許・新規申請ページ専用：冒頭の「記事の顔」と、要件セクションの2カラム
   適用範囲：.cover--ref（冒頭）と .req-*（要件セクション）のみ。他のページには読み込まれない。
   画像は使わず、SVGとCSSだけで表現する（H1などの文字は必ずHTMLテキスト）。
   ========================================================================== */

.article-hero.cover--ref {
  --shu: #B03A2E;
  --band-h: 104px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #EEE5D4;
  border-bottom: 1px solid var(--line);
  word-break: normal;
  word-break: auto-phrase;
  line-break: strict;
}
/* 和紙：中央に明るみ、繊維状のむら */
.cover--ref::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 80% at 28% 42%, rgba(255, 252, 244, 0.9), rgba(255, 252, 244, 0) 70%),
    radial-gradient(ellipse 50% 60% at 82% 30%, rgba(255, 250, 238, 0.55), rgba(255, 250, 238, 0) 70%);
}
.cover--ref::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02 0.14' numOctaves='4' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0.52 0 0 0 0 0.43 0 0 0 0 0.30 0 0 0 0.85 -0.34'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

.cover--ref .cover-ref-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  min-height: 556px;
  padding-top: 128px;
  padding-bottom: 36px;
}
.cover--ref .article-crumb { margin-bottom: 40px; }
.cover-ref-main { max-width: 560px; }

/* ---- ラベル・タイトル ---- */
.cover--ref .cover-label { margin-bottom: 26px; }
.cover--ref .cover-label::before { display: none; }
.cover--ref .cover-label > span:first-child::after {
  content: "";
  display: inline-block;
  width: 64px;
  height: 1px;
  margin-left: 16px;
  vertical-align: middle;
  background: var(--shu);
}
.cover--ref .cover-title {
  margin: 0 0 24px;
  padding: 2px 0 2px 26px;
  border-left: 3px solid var(--shu);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.cover--ref .cover-title-main,
.cover--ref .cover-title-sec .new,
.cover--ref .cover-title-sec .big { font-size: clamp(40px, 5.3vw, 70px); }
.cover--ref .cover-title > .cover-title-sec { display: flex; align-items: baseline; }
.cover--ref .cover-title-sec .hid {  /* 括弧・助詞は文言として残し、見た目だけ隠す */
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cover--ref .cover-title > .cover-title-sub {
  display: block !important;
  margin-top: 16px;
  font-family: var(--font-jp-heading);
  font-size: clamp(15px, 1.55vw, 19.5px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--ink);
}
.cover--ref .cover-title-sub::before { content: none; }
.cover--ref .cover-title-sub .gd {
  margin-right: 1em;
  font-family: var(--font-en);
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--shu);
  white-space: nowrap;
}
.cover--ref .cover-lede { margin: 0 0 30px; max-width: 30em; font-size: 15px; line-height: 2; color: var(--ink); }

/* ---- 相談導線（朱のボタン＋電話） ---- */
.cover--ref .cover-cta { flex-wrap: nowrap; align-items: center; gap: 28px; }
.cover--ref .cover-cta .btn-primary {
  min-width: 250px;
  justify-content: space-between;
  padding: 18px 24px;
  font-family: var(--font-jp-heading);
  font-size: 15px;
  letter-spacing: 0.1em;
}
.cover--ref .cover-cta .btn-primary::after { margin-left: 0; font-family: var(--font-en); font-size: 17px; }
.cover-tel { flex: none; display: flex; align-items: center; gap: 12px; color: var(--ink); white-space: nowrap; }
.cover-tel svg { flex: none; width: 26px; height: 26px; color: var(--ink); }
.cover-tel-body { display: block; line-height: 1.45; }
.cover-tel small { display: block; font-size: 11.5px; color: var(--charcoal); }
.cover-tel strong { display: block; font-family: var(--font-jp-heading); font-size: 25px; font-weight: 600; letter-spacing: 0.04em; }
.cover--ref .article-meta { margin-top: 28px; font-size: 12px; }

/* ---- 挿絵（SVG：建物のスケッチ・朱の円・墨のにじみ・申請書類と万年筆） ---- */
.cover-ref-art {
  position: absolute;
  z-index: 1;
  right: -1vw;
  bottom: var(--band-h);
  width: min(55vw, 720px);
  pointer-events: none;
}
.cover-ref-art .hero-art-svg { display: block; width: 100%; height: auto; }
.cover-ref-art {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%);
  mask-image: linear-gradient(to right, transparent 0, #000 16%);
}

/* ---- 縦書きの一文と印 ---- */
.cover-ref-vert {
  position: absolute;
  z-index: 2;
  top: 112px;
  right: max(28px, 4.5vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.cover-ref-vert p {
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-jp-heading);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.42em;
  line-height: 2.1;
  color: var(--ink);
}
.cover-ref-vert p span { display: block; }
.cover-seal {
  display: block;
  width: 22px;
  padding: 3px 0 2px;
  background: var(--shu);
  color: #fff;
  font-family: var(--font-jp-heading);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  opacity: 0.9;
}

/* ---- 「このページでわかること」の帯 ---- */
.cover--ref .cover-band {
  position: relative;
  z-index: 3;
  min-height: var(--band-h);
  display: flex;
  align-items: stretch;
  background: rgba(249, 246, 239, 0.97);
  border-top: 1px solid var(--line);
}
.cover--ref .cover-band .container { width: 100%; display: flex; align-items: stretch; }
.cover--ref .cover-jump {
  width: 100%;
  margin: 0;
  border: 0;
  grid-template-columns: 232px repeat(4, minmax(0, 1fr));
}
.cover--ref .cover-jump-label { font-size: 15px; padding: 0 12px 0 0; }
.cover--ref .cover-jump a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 14px 18px 18px;
}
.cover-jump .ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #A58E67;
  color: #FBF8F1;
}
.cover-jump .ic svg { width: 25px; height: 25px; }
.cover--ref .cover-jump a .tx strong { font-size: 16px; }
.cover--ref .cover-jump a .tx > span { display: block; margin-top: 2px; font-size: 12px; color: var(--charcoal); word-break: keep-all; }

/* ==========================================================================
   要件セクション：左に番号つき項目、右に相談パネル
   ========================================================================== */
.article-body .req-layout {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 48px));
  margin: 0 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}
.req-main { min-width: 0; }
.req-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--charcoal);
}
.req-eyebrow::before { content: ""; width: 36px; height: 1px; background: #B03A2E; }
.req-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-bottom: 22px; }
.article-body .req-head h2.acc-group-title {
  margin: 0;
  padding: 4px 0 4px 22px;
  border: 0;
  border-left: 3px solid #B03A2E;
  font-size: clamp(25px, 2.9vw, 34px);
  line-height: 1.5;
}
.article-body .req-head .req-note {
  margin: 0;
  padding: 2px 0 2px 18px;
  border-left: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.95;
  letter-spacing: 0.08em;
  color: var(--charcoal);
}
.req-main > p { color: var(--charcoal); text-wrap: pretty; }

/* 番号つきの行（角丸なし・細い罫線） */
.article-body .acc-list--boxed { border-top: 0; margin: 0 0 8px; }
.article-body .acc--box {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}
.article-body .acc--box > summary {
  grid-template-columns: 68px minmax(0, 1fr) 52px;
  column-gap: 0;
  min-height: 66px;
  padding: 0;
}
.article-body .acc--box > summary:hover { background: rgba(255, 255, 255, 0.92); }
.article-body .acc--box[open] > summary { background: rgba(255, 255, 255, 0.92); }
.article-body .acc--box .acc-n {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(156, 124, 62, 0.12);
  border-right: 1px solid var(--line);
  font-family: var(--font-jp-heading);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #A58E67;
}
.article-body .acc--box .acc-title { padding: 13px 8px 0 22px; font-size: 16.5px; }
.article-body .acc--box .acc-desc { padding: 0 8px 13px 22px; margin-top: 0; }
.article-body .acc--box > summary::after { grid-column: 3; justify-self: center; }
.article-body .acc--box > .acc-body { padding: 16px 24px 24px 90px; border-top: 1px solid var(--line); }

/* 右側：相談パネル */
.req-aside { position: sticky; top: 104px; }
.req-panel {
  position: relative;
  padding: 36px 28px 30px;
  overflow: hidden;
  background: linear-gradient(160deg, #F8F3E8 0%, #EFE7D6 100%);
  border: 1px solid var(--line);
}
.req-panel > *:not(.req-gold) { position: relative; z-index: 1; }
.req-gold { position: absolute; z-index: 0; width: 120px; height: auto; pointer-events: none; }
.req-gold--tr { top: 0; right: 0; }
.req-gold--bl { bottom: 0; left: 0; }
.article-body .req-panel .req-panel-title {
  margin: 0 0 20px;
  padding-left: 18px;
  border-left: 3px solid #B03A2E;
  font-family: var(--font-jp-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
}
.article-body .req-panel .req-panel-text { margin: 0 0 22px; font-size: 13.5px; line-height: 1.95; color: var(--charcoal); }
.article-body .req-checks { margin: 0 0 26px; }
.article-body .req-checks li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 30px;
  font-size: 14px;
  color: var(--ink);
}
.article-body .req-checks li::before {
  content: "✓";
  left: 0; top: 2px;
  display: grid;
  place-items: center;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #A58E67;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}
.req-panel .btn-primary {
  width: 100%;
  justify-content: space-between;
  padding: 16px 22px;
  background: #B03A2E;
  border-color: #B03A2E;
  color: #fff;
  font-family: var(--font-jp-heading);
  letter-spacing: 0.1em;
}
.req-panel .btn-primary::after { content: "→"; font-family: var(--font-en); }
.req-panel .btn-primary:hover { background: #8E2C22; border-color: #8E2C22; }

/* ---- 初回表示 ---- */
@media (prefers-reduced-motion: no-preference) {
  .cover--ref .cover-ref-art { animation: cover-in 1.1s var(--ease) 0.15s both; }
  .cover--ref .cover-ref-vert { animation: cover-in 1s var(--ease) 0.4s both; }
}

/* ---- タブレット ---- */
@media (max-width: 1100px) {
  .article-body .req-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .req-aside { position: static; }
  .cover--ref .cover-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover--ref .cover-jump-label { grid-column: 1 / -1; padding: 16px 0 6px; }
  .cover--ref .cover-jump a { border-top: 1px solid var(--line); }
  .cover--ref .cover-jump a:nth-of-type(odd) { border-left: 0; padding-left: 2px; }
  .cover--ref .cover-ref-inner { min-height: 0; padding-top: 112px; padding-bottom: 8px; }
  .cover-ref-main { max-width: none; }
  .cover-ref-art {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 720px);
    margin: 0 0 0 auto;
    order: 2;
  }
  .cover-ref-vert { display: none; }
  .cover--ref .cover-band { order: 3; }
}
@media (max-width: 900px) {
  .cover-ref-art { width: calc(100% + 24px); margin: 0 -24px 0 0; }
}

/* ---- スマートフォン ---- */
@media (max-width: 640px) {
  .cover--ref .cover-ref-inner { padding-top: 100px; }
  .cover--ref .article-crumb { margin-bottom: 30px; }
  .cover--ref .cover-title { padding-left: 18px; }
  .cover--ref .cover-title-main,
  .cover--ref .cover-title-sec .new,
  .cover--ref .cover-title-sec .big { font-size: 42px; }
  .cover--ref .cover-title > .cover-title-sub { font-size: 14.5px; }
  .cover--ref .cover-lede { font-size: 14.5px; line-height: 1.95; }
  .cover--ref .cover-cta { flex-direction: column; align-items: stretch; gap: 18px; }
  .cover--ref .cover-cta .btn-primary { min-width: 0; width: 100%; }
  .cover-tel { justify-content: center; }
  .cover--ref .article-meta { flex-direction: column; gap: 4px; }
  .cover--ref .cover-jump a { padding: 14px 8px 14px 2px; gap: 12px; }
  .cover-jump .ic { width: 42px; height: 42px; }
  .cover-jump .ic svg { width: 22px; height: 22px; }
  .cover--ref .cover-jump a .tx strong { font-size: 14.5px; }
  .cover--ref .cover-jump a .tx > span { font-size: 11.5px; }
  .article-body .req-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .article-body .req-head h2.acc-group-title { font-size: 21.5px; }
  .article-body .req-head .req-note { display: none; }
  .article-body .acc--box > summary { grid-template-columns: 52px minmax(0, 1fr) 40px; min-height: 62px; }
  .article-body .acc--box .acc-n { font-size: 20px; }
  .article-body .acc--box .acc-title { padding: 12px 4px 0 14px; font-size: 15.5px; }
  .article-body .acc--box .acc-desc { padding: 0 4px 12px 14px; }
  .article-body .acc--box > .acc-body { padding: 14px 16px 20px; }
  .req-panel { padding: 28px 22px 24px; }
}

/* ==========================================================================
   宅建業の総合ページ（cover--hubref）：「大阪の」＋「宅建業」
   ========================================================================== */
.cover--hubref .cover-title > .cover-title-pre {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-jp-heading);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--charcoal);
}
.cover--hubref .cover-title-main { font-size: clamp(52px, 7.2vw, 96px); letter-spacing: 0.08em; }
.cover--hubref .cover-title > .cover-title-sub { margin-top: 18px; font-size: clamp(16px, 1.8vw, 22px); letter-spacing: 0.1em; font-weight: 600; }
.cover--hubref .cover-ref-art { width: min(55vw, 720px); }
/* 見出しが長い場合（産業廃棄物収集運搬業許可など）：語のまとまりで折り返す */
.cover--hubref .cover-title-main .ph { display: inline-block; }
.cover--hubref .cover-title-main.cover-title-main--long { font-size: clamp(34px, 4.6vw, 62px); letter-spacing: 0.06em; line-height: 1.25; }
@media (max-width: 640px) {
  .cover--hubref .cover-title-main { font-size: 52px; }
  .cover--hubref .cover-title-main.cover-title-main--long { font-size: 33px; }
  .cover--hubref .cover-title > .cover-title-sub { font-size: 15px; }
}
.cover--hubref .cover-jump a .tx strong { font-size: 14.5px; letter-spacing: 0.02em; white-space: nowrap; }
.cover--hubref .cover-jump a { gap: 10px; }
@media (max-width: 1100px) { .cover--hubref .cover-jump a .tx strong { white-space: normal; } }

/* ==========================================================================
   トップ画像が墨絵（WebP）の版：右側に大きく敷き、左は和紙色になじませる
   ========================================================================== */
.cover-ref-art--img {
  top: 0;
  right: 0;
  bottom: var(--band-h);
  width: min(64%, 960px);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
  mask-image: linear-gradient(to right, transparent 0, #000 22%);
}
.cover-ref-art--img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 84% 80%; }
.cover--hubref .cover-ref-art--img { width: min(64%, 960px); }
@media (max-width: 1100px) {
  .cover--ref .cover-ref-art.cover-ref-art--img { position: relative; inset: auto; top: auto; right: auto; bottom: auto; width: 100%; height: auto; -webkit-mask-image: none; mask-image: none; margin: 4px 0 0; order: 2; }
  .cover--ref .cover-ref-art--img img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; object-position: 70% 60%; }
}
@media (max-width: 640px) {
  .cover--ref .cover-ref-art--img img { aspect-ratio: 4 / 3; object-position: 72% 66%; }
}

/* ==========================================================================
   墨絵に図・ラベルが含まれる記事用（cover--fit）：切らずに全体を、右側に大きく置く
   位置は他の記事・ハブと同じ（右寄せ・帯の上）。画像の縦横比のまま表示する
   ========================================================================== */
.cover--ref.cover--fit .cover-ref-art.cover-ref-art--img {
  top: auto;
  right: 0;
  bottom: var(--band-h);
  width: var(--fit-w, min(54%, 780px));
  height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%), linear-gradient(to bottom, transparent 0, #000 16%);
  mask-image: linear-gradient(to right, transparent 0, #000 12%), linear-gradient(to bottom, transparent 0, #000 16%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.cover--ref.cover--fit .cover-ref-inner { position: relative; z-index: 3; }
.cover--ref.cover--fit .cover-ref-art--img img { width: 100%; height: auto; object-fit: contain; }
@media (max-width: 1100px) {
  .cover--ref.cover--fit .cover-ref-art.cover-ref-art--img { position: relative; inset: auto; width: 100%; margin: 4px 0 0; order: 2; -webkit-mask-image: none; mask-image: none; }
  .cover--ref.cover--fit .cover-ref-art--img img { position: static; aspect-ratio: auto; object-fit: contain; }
}
