/* 段階2：旧デザインの設備販売ページ（wl.css）に新しいヘッダー・サイドバー・フッターを載せるためのCSS
   本文のスタイルは wl.css のまま。ここではレイアウトと外枠だけを上書きする。 */
:root {
  --navy: #0f2a44; --copper: #d9772b; --copper-soft: #fbeee3;
  --ink: #1c2530; --muted: #5b6774; --line: #dfe4ea; --bg-soft: #f4f7fa;
}
body#nottopbody {
  background: #fff !important; margin: 0; text-align: left;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; color: var(--ink);
}

/* レイアウト：ヘッダーは全幅、本文(700px)＋サイドバー(270px)を中央に */
body#nottopbody div#wrapper {
  width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
  display: grid; grid-template-columns: 1fr minmax(0, 700px) 270px 1fr; column-gap: 28px; align-items: start;
}
#wrapper > .wlgn, #wrapper > .nw-header, #wrapper > .nw-strip { grid-column: 1 / -1; }
#wrapper > #cont_inq, #wrapper > #contents { grid-column: 2; float: none !important; width: auto !important; margin: 24px 0 40px !important; padding: 0 !important; }
#cont_inq > #contents { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
#wrapper > #sidebar { grid-column: 3; float: none !important; width: auto !important; margin: 24px 0 40px !important; border: 0 !important; overflow: visible !important; }
#wrapper > #pageTop { position: fixed; }

/* ヘッダー */
.nw-header { background: #fff; border-bottom: 1px solid var(--line); }
.nw-header .nw-in { max-width: 1160px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box; }
.nw-logo, .nw-logo:link, .nw-logo:visited { font-weight: 900; font-size: 20px; letter-spacing: .04em; color: var(--navy) !important; text-decoration: none !important; line-height: 1.3; }
.nw-logo small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .1em; }
.nw-nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
.nw-nav a, .nw-nav a:link, .nw-nav a:visited { color: var(--ink) !important; text-decoration: none !important; }
.nw-nav a:hover { color: var(--copper) !important; }
.nw-nav a.on { color: var(--copper) !important; font-weight: 700; }
.nw-btn, .nw-btn:link, .nw-btn:visited { background: var(--copper); color: #fff !important; padding: 8px 16px; border-radius: 6px; font-weight: 700; font-size: 14px; text-decoration: none !important; white-space: nowrap; }
.nw-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.nw-strip .nw-in { max-width: 1160px; margin: 0 auto; padding: 8px 20px; box-sizing: border-box; color: var(--muted); }
.nw-strip a { color: var(--copper) !important; font-weight: 700; }

/* 本文の見出しだけ新デザインに寄せる */
#contents h1 {
  background: none !important; padding: 0 0 0 14px !important; line-height: 1.5 !important;
  border-left: 5px solid var(--copper); font-size: 22px !important; font-weight: 900; color: var(--navy); margin: 8px 0 16px !important;
}
#contents h2 { background-image: none !important; background-color: var(--navy) !important; color: #fff !important; border-radius: 6px; padding: 8px 14px !important; line-height: 1.5 !important; }
#contents #panlist { width: auto !important; margin: 0 0 6px !important; color: var(--muted); }
#contents #panlist a { color: var(--copper); }

/* サイドバー */
.nw-side { font-size: 14px; }
.nw-side .box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.nw-side .ttl { font-weight: 900; color: var(--navy); margin: 0 0 8px; font-size: 15px; }
.nw-side ul { list-style: none; margin: 0; padding: 0; }
.nw-side li a, .nw-side li a:link, .nw-side li a:visited { display: block; padding: 7px 4px; border-bottom: 1px solid var(--line); color: var(--ink) !important; text-decoration: none !important; line-height: 1.4; }
.nw-side li:last-child a { border-bottom: 0; }
.nw-side li a:hover { color: var(--copper) !important; }
.nw-side .alt { background: var(--copper-soft); border: 0; }
.nw-side .alt p { margin: 0 0 8px; line-height: 1.6; }
.nw-side .alt a { color: var(--copper) !important; font-weight: 700; }
.nw-side .demo { background: var(--navy); border: 0; color: #fff; }
.nw-side .demo .ttl { color: #fff; }
.nw-side .demo p { margin: 0 0 12px; color: #c9d6e3; line-height: 1.6; font-size: 13px; }
.nw-side .demo a { display: block; text-align: center; background: var(--copper); color: #fff !important; border-radius: 8px; padding: 10px; font-weight: 700; text-decoration: none !important; }

/* フッター */
.nw-foot { background: var(--navy); color: #c9d6e3; font-size: 13px; line-height: 1.7; padding-bottom: 70px; }
.nw-foot .nw-in { max-width: 1160px; margin: 0 auto; padding: 40px 20px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; box-sizing: border-box; }
.nw-foot .nw-logo { color: #fff !important; }
.nw-foot .nw-logo small { color: #8fa6bd; }
.nw-foot p { margin: 8px 0 0; }
.nw-foot .col { display: flex; flex-direction: column; gap: 6px; }
.nw-foot .h { color: #fff; font-weight: 700; margin: 0 0 4px; }
.nw-foot a, .nw-foot a:link, .nw-foot a:visited { color: #c9d6e3 !important; text-decoration: none !important; }
.nw-foot a:hover { color: #fff !important; }
.nw-foot .copy { margin: 0; text-align: center; padding: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: #8fa6bd; }

/* スマホ（wl.css の切替幅 767px に合わせる） */
@media screen and (max-width: 767px) {
  body#nottopbody div#wrapper { display: block; }
  #wrapper > #cont_inq, #wrapper > #contents, #wrapper > #sidebar { margin: 16px 12px 24px !important; }
  .nw-nav { display: none; }
  .nw-header .nw-in { padding: 10px 12px; }
  .nw-btn { font-size: 12px; padding: 6px 10px; }
  .nw-foot .nw-in { grid-template-columns: 1fr 1fr; padding: 28px 16px 16px; }
  .nw-foot .nw-in > div:first-child { grid-column: 1 / -1; }
}
.nw-header, .nw-strip, .nw-foot, .nw-side { text-align: left; }
.nw-foot .col { align-items: flex-start; }
@media screen and (max-width: 767px) {
  /* 旧ページの固定幅（645px など）で横にはみ出さないようにする */
  #contents div, #contents p, #contents table, #contents iframe, #contents img, #contents ul { max-width: 100% !important; box-sizing: border-box; }
  #contents .photo_messageBox, #contents .u_h1, #contents .u_h2 { width: auto !important; }
  #contents iframe { height: auto; aspect-ratio: 16 / 9; }
  #contents table { display: block; overflow-x: auto; }
}
@media screen and (max-width: 767px) {
  #contents * { max-width: 100%; box-sizing: border-box; }
  #wrapper > #cont_inq, #wrapper > #contents { overflow-x: hidden; }
}
.nw-logo img { display: block; height: 36px; width: auto; }
.nw-foot .nw-logo img { height: 32px; margin-bottom: 6px; }
@media screen and (max-width: 767px) { .nw-header .nw-logo img { height: 28px; } }
.nw-header .nw-logo img { height: 46px; }
@media screen and (max-width: 767px) { .nw-header .nw-logo img { height: 34px; } }
