@charset "utf-8";
/*
  ファイル: /css/v2-oldpage.css
  役割: 昔のページ（ホームページビルダー製など）を新デザイン（緑と余白）の枠で出すときの見た目。
        本文の HTML は以前のまま（<font>・<center>・bgcolor・表での配置など）なので、ここで新デザインの色・文字・余白にそろえる。
        効かせるのは本文の枠（.lg-body）の中だけ。
  依存ファイル: /css/v2.css（--v2-* の変数・.v2-btn・.v2-container。ini.php の $coreCss で先に読み込む）
  このファイルを呼び出すコード: /views/v2/legacy/top.php（<link>）
  このファイルが呼び出すファイル: なし
  変更履歴: 2026-11-21 新規作成（デザイン刷新 5）
            2026-11-22 昔のページの「position: absolute」の枠（ホームページビルダーのレイヤー）を、本文の流れの中に戻す指定を足した
                       （.htm から移したページで、本文の枠の外へはみ出したり、ご相談の案内に重なったりしないように）
*/

/* ---------- 本文の枠 ---------- */
.lg-main { padding: 32px 0 8px; }
.lg-wrap { max-width: 880px; }

.lg-crumbs { margin: 0 0 16px; font-size: 13px; color: var(--v2-ink-mute); }
.lg-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.lg-crumbs li + li::before { content: "›"; margin: 0 10px; color: var(--v2-line); }
.lg-crumbs a { color: var(--v2-ink-soft); text-decoration: none; }
.lg-crumbs a:hover { color: var(--v2-primary); text-decoration: underline; }

.lg-body {
  background: var(--v2-surface);
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius);
  padding: 44px 52px;
  font-size: 17px;
  line-height: 2;
  color: var(--v2-ink);
  overflow-wrap: anywhere;
}
.lg-body::after { content: ""; display: block; clear: both; }

/* ---------- 昔の HTML の見た目をそろえる ---------- */
/* ホームページビルダーのレイヤー（style="position: absolute; top/left"）は、本文の流れの中に戻す */
.lg-body [style*="absolute" i] { position: static !important; top: auto !important; left: auto !important; }
.lg-body [style*="z-index" i] { z-index: auto !important; }
/* <center> で全体を中央にしていたページが多いので、文章は左にそろえる（見出し・画像・表は中央のまま） */
.lg-body center { display: block; text-align: left; }
.lg-body center > :is(h1, h2, h3, img, table) { margin-left: auto; margin-right: auto; }
.lg-body :is(p, div, td)[align="center" i] { text-align: left; }

/* 見出し */
.lg-body :is(h1, h2) {
  margin: 1.6em 0 .8em;
  padding-bottom: .5em;
  font-family: var(--v2-font-head);
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
  text-align: left;
  color: var(--v2-ink);
  border-bottom: 2px solid var(--v2-primary-50);
}
.lg-body > :is(h1, h2):first-child,
.lg-body > :first-child :is(h1, h2):first-of-type { margin-top: 0; }
.lg-body :is(h3, h4, h5) {
  margin: 1.8em 0 .6em;
  padding-left: .75em;
  font-family: var(--v2-font-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .05em;
  text-align: left;
  color: var(--v2-primary-ink);
  border-left: 4px solid var(--v2-primary);
}
.lg-body p { color: var(--v2-ink); font-size: inherit; }

/* <font> の文字の大きさ（昔の 1〜7 の段階を、本文に合う大きさにする） */
.lg-body font { font-family: inherit; }
.lg-body font:is([size="3"], [size="+0"]) { font-size: inherit; }
.lg-body font:is([size="1"], [size="2"], [size="-1"], [size="-2"]) { font-size: .9em; }
.lg-body font:is([size="4"], [size="+1"]) { font-size: 1.12em; }
.lg-body font:is([size="5"], [size="6"], [size="7"], [size="+2"], [size="+3"], [size="+4"]) { font-size: 1.3em; font-weight: 700; line-height: 1.6; }

/* <font> の文字の色: 白・黄色などの薄い色は、白い枠の上で読めなくなるので本文の色にする（ほかの色は以前のまま） */
.lg-body font:is([color="#ffffff" i], [color="ffffff" i], [color="white" i], [color="#fff" i],
                 [color="#ffff00" i], [color="ffff00" i], [color="yellow" i],
                 [color="#ffffcc" i], [color="ffffcc" i], [color="#ccffff" i], [color="ccffff" i],
                 [color="#ccffcc" i], [color="ccffcc" i], [color="#ffccff" i], [color="ffccff" i],
                 [color="#ffff99" i], [color="ffff99" i], [color="#99ffff" i], [color="#00ffff" i], [color="aqua" i]) {
  color: var(--v2-ink);
}

/* 背景の色（bgcolor）: 昔の明るい色・暗い色は使わず、淡い若草にそろえる */
.lg-body table[bgcolor],
.lg-body tr[bgcolor] { background-color: transparent; }
.lg-body :is(td, th)[bgcolor] { background-color: var(--v2-tint); }
.lg-body th { background-color: var(--v2-primary-50); color: var(--v2-primary-ink); font-weight: 700; }

/* 表（昔のページは配置に表を使っているものが多い） */
.lg-body table { max-width: 100%; height: auto !important; margin: 1em auto; border-collapse: collapse; border-color: var(--v2-line); }
.lg-body table[width] { width: 100% !important; }
.lg-body :is(td, th) { padding: .5em .8em; vertical-align: top; height: auto !important; line-height: 1.95; border-color: var(--v2-line); }
.lg-body :is(td, th)[width] { width: auto !important; }
.lg-body table:not([border]) :is(td, th),
.lg-body table[border="0"] :is(td, th) { padding: .25em .4em; }
.lg-body table[border]:not([border="0"]) > * > tr > :is(td, th) { border: 1px solid var(--v2-line); }
/* 配置のための表の中の表は、左右の余白を足さない（入れ子で本文が細くならないように） */
.lg-body table:is(:not([border]), [border="0"]) table:is(:not([border]), [border="0"]) :is(td, th) { padding-left: 0; padding-right: 0; }

/* 罫線・画像・リンク */
.lg-body hr { width: 100% !important; height: 0; margin: 2em 0; border: 0; border-top: 1px solid var(--v2-line); color: transparent; }
.lg-body img { max-width: 100%; height: auto; border: 0; border-radius: var(--v2-radius-s); }
.lg-body img[align="left" i] { float: left; margin: .3em 1.2em .8em 0; }
.lg-body img[align="right" i] { float: right; margin: .3em 0 .8em 1.2em; }
.lg-body a { color: var(--v2-primary); text-decoration: underline; text-underline-offset: 3px; }
.lg-body a:hover { color: var(--v2-primary-ink); }
.lg-body a font { color: inherit; }
.lg-body :is(ul, ol) { padding-left: 1.4em; }
.lg-body marquee { display: block; }

/* 種類ごとの小さな違い */
.lg-body--essay { font-size: 17px; line-height: 2.1; }

/* ---------- ご相談の案内 ---------- */
.lg-consult {
  margin: 32px 0 0;
  padding: 28px 32px;
  background: var(--v2-tint);
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius);
}
.lg-consult__title { margin: 0 0 6px !important; font-family: var(--v2-font-head); font-size: 20px; font-weight: 700; color: var(--v2-ink) !important; letter-spacing: .06em; }
.lg-consult__lead { margin: 0 0 16px !important; font-size: 14px; }
.lg-consult__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- スマートフォン ---------- */
@media (max-width: 640px) {
  .lg-main { padding-top: 20px; }
  .lg-body { padding: 24px 18px; font-size: 16px; line-height: 1.95; }
  .lg-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lg-body img:is([align="left" i], [align="right" i]) { float: none; display: block; margin: 1em auto; }
  .lg-consult { padding: 22px 18px; }
  .lg-consult__btns .v2-btn { width: 100%; }
}
