/* =========================================================
   日本防犯ドクター リニューアル用スタイル
   既存CSS（common.css / 旧 import.css）の後に読み込んで上書きする。
   文章・構成は変えず、見た目だけを現代的にする。
   ========================================================= */

:root {
  --navy: #0f2a56;
  --navy-deep: #0a1d3d;
  --blue: #1d4fa3;
  --blue-50: #eef3fb;
  --accent: #ee7a00;
  --accent-deep: #d26a00;
  --text: #1f2937;
  --muted: #5b6574;
  --line: #e3e8ef;
  --bg: #f3f5f9;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 42, 86, .06), 0 6px 20px rgba(15, 42, 86, .06);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", sans-serif;
  --w: 1020px;
}

/* ---------- 基本 ---------- */
body, input, option, select, table, textarea, button { font-family: var(--font); }
body { background: var(--bg); color: var(--text); min-width: calc(var(--w) + 40px); }
a { transition: color .2s, background-color .2s, opacity .2s, box-shadow .2s, transform .2s; }
.m-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 最上部のキャッチ帯 ---------- */
h1 { background: var(--navy); border-bottom: 0; }
h1 p { width: var(--w); height: 30px; line-height: 30px; color: rgba(255, 255, 255, .82); font-size: 11px; letter-spacing: .04em; }

/* ---------- ヘッダー ---------- */
#header { background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(15, 42, 86, .05); position: relative; z-index: 50; }
.h_inner { width: var(--w); }
.h_inner > ul { margin: 18px 0 8px; }
.h_inner > ul li img { display: block; width: auto; height: 58px; }
/* 注意書きが無いページ（contact.php）は電話番号と重ならないよう余白を確保 */
.h_inner > ul + .gnavi { margin-top: 44px; }
.h_inner > p { max-width: none !important; margin: 0 !important; padding: 0 0 14px !important; font-size: 12.5px !important; font-weight: 600 !important; color: #c2410c !important; }

.h_inner > .contact_navi { position: absolute; top: 16px; right: 0; width: auto; height: auto; margin: 0; display: flex; flex-direction: column; align-items: flex-end; }
.h_inner > .contact_navi br { display: none; }
.h_inner > .contact_navi > ul { order: 3; margin: 6px 0 0; font-size: 12px; color: #c4cad4; }
.h_inner > .contact_navi > ul li { padding: 0 8px; }
.h_inner > .contact_navi > ul li a { color: var(--muted); }
.h_inner > .contact_navi > ul li a:hover { color: var(--blue); text-decoration: none; }
.h_inner > .contact_navi > dl.tel,
.h_inner > .contact_navi > dl.mail { position: static; margin: 0; }
.h_inner > .contact_navi a.telhref { text-decoration: none; }
.m-tel { display: inline-flex; align-items: center; font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: .02em; color: var(--navy); font-feature-settings: "palt"; }
.m-tel i { margin-right: 10px; font-size: .62em; color: #fff; background: var(--accent); width: 1.6em; height: 1.6em; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.m-time { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- グローバルナビ ---------- */
.gnavi { border-top: 1px solid var(--line); }
.gnavi > ul { align-items: center; height: 60px; }
.gnavi > ul > li { flex: 1 1 0; }
.gnavi > ul > li:first-child { flex: 0 0 56px; }
.gnavi > ul > li > a { position: relative; display: flex; align-items: center; justify-content: center; height: 60px; font-size: 15px; font-weight: 700; color: var(--text); text-decoration: none; }
.gnavi > ul > li > a .fa-home { font-size: 18px; color: var(--navy); }
.gnavi > ul > li > a::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 10px; height: 3px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.gnavi > ul > li > a:hover { color: var(--blue); text-decoration: none; }
.gnavi > ul > li > a:hover::after { transform: scaleX(1); }
.gnavi > ul > li:last-child > a { height: 44px; margin-left: 12px; border-radius: 999px; background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(238, 122, 0, .3); }
.gnavi > ul > li:last-child > a::after { display: none; }
.gnavi > ul > li:last-child > a:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.m-nav i { margin-right: 8px; }

/* 導入実績のドロップダウン（JSの画像ホバーの代わりにCSSで開く） */
.ddgp:hover .ddp, .ddgp:focus-within .ddp { display: block; top: 100%; z-index: 99; }
.ddgp .ddp { left: 50%; transform: translateX(-50%); width: 220px; padding: 8px; background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 42, 86, .16); }
.ddgp .ddp .ddc { width: auto; display: block; }
.ddgp .ddp .ddc a { background: none; padding: 10px 14px; border-radius: 6px; font-size: 14px; color: var(--text); text-decoration: none; }
.ddgp .ddp .ddc a:hover { background: var(--blue-50); color: var(--blue); }

/* ---------- レイアウト ---------- */
#wrapper { background: var(--bg); }
#container { width: var(--w); padding: 28px 0 8px; background: transparent; border: 0; }
#side { width: 230px; margin-right: 24px; padding: 0; background: transparent; }
#contents { width: 710px; margin: 0; padding: 32px 28px 40px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
#contents > p { font-size: 14px; }
#contents p, #contents li, #contents td, #contents th, #contents dd { line-height: 1.85; }
#contents iframe { max-width: 100%; }  /* 地図など固定幅の埋め込みをはみ出させない */

/* ---------- サイドバー ---------- */
.side_contact > ul li { margin-bottom: 14px; }
#side img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
#side a img:hover { opacity: .9; }
.side_box { margin: 0 0 20px; background: #fff; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.side_box > h2 { height: auto; line-height: 1.5; padding: 13px 16px; background: var(--navy); font-size: 14px; text-align: left; letter-spacing: .03em; }
.side_box > ul li { height: auto; background: none; border-bottom: 1px solid var(--line); }
.side_box > ul li:last-child { border-bottom: 0; }
.side_box > ul li a, .side_box > ul li a:hover { position: relative; height: auto; line-height: 1.5; padding: 13px 14px 13px 34px; box-sizing: border-box; text-decoration: none; }
.side_box > ul li a::before { content: "\f054"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--blue); }
.side_box > ul li a:hover { background: var(--blue-50); color: var(--blue); }

/* ---------- 見出し・バナー ---------- */
h2.h2_01 { width: auto; height: auto; line-height: 1.5; box-sizing: border-box; padding: 12px 16px 12px 46px; font-size: 17px; font-weight: 700; color: var(--navy); background: var(--blue-50); border: 0; border-left: 4px solid var(--blue); border-radius: 6px; }
h2.h2_01::after { left: 18px; color: var(--blue); }
.top-bana img, .result img, .place img, #top_box img { border-radius: 8px; }
#contents a img { transition: transform .2s, box-shadow .2s, opacity .2s; }
#contents .top-bana a:hover img, #contents .result a:hover img, #contents .place a:hover img { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 42, 86, .15); }

/* ---------- ページ下部のお問い合わせ枠 ---------- */
.contact { margin-top: 64px; }
.contact__head { background: var(--navy); border: 0; border-radius: var(--radius) var(--radius) 0 0; padding: 16px 20px; }
.contact__text { color: #fff; font-size: 15px; }
.contact__btnArea { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 24px 16px; }
.contact__btnArea a img:hover { opacity: .9; }
.contact__tel { border-top-color: var(--line); }

/* ---------- 対応メーカー ---------- */
#maker { border-top: 0; background: #fff; padding: 36px 0 28px; margin-top: 32px; }
#maker > h3 { width: var(--w); padding: 0 0 18px; font-size: 15px; font-weight: 700; color: var(--navy); text-align: center; }
.maker_inner { border-top: 0; }
.maker_inner > ul { width: var(--w); }

/* ---------- フッター ---------- */
#footer_navi { background: var(--navy); }
.footer_navi_inner { width: var(--w); padding: 40px 0 44px; }
.footer_navi_inner > dl { width: 204px; }
.footer_navi_inner > dl dt { background: none; padding: 6px 0; font-size: 13px; }
.footer_navi_inner > dl dd { color: rgba(255, 255, 255, .7); }
.footer_navi_inner > dl dd > ul { margin-left: 0; }
.footer_navi_inner > dl dd > ul li { color: rgba(255, 255, 255, .7); }
.footer_navi_inner dl dt.tit a, .footer_navi_inner dl dt.tit a:visited { color: #fff; }
.footer_navi_inner > dl dd > ul li a, .footer_navi_inner > dl dd > ul li a:visited { color: rgba(255, 255, 255, .72); font-size: 12px; line-height: 2; }
.footer_navi_inner dl dt.tit > a:hover, .footer_navi_inner > dl dd > ul li a:hover { color: #ffb45c; text-decoration: none; }
#footer { background: var(--navy-deep); }
.footer_navi { background: none; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer_navi > ul { width: var(--w); padding: 6px 0; }
.footer_navi > ul li a, .footer_navi > ul li a:visited { color: rgba(255, 255, 255, .85); }
.footer_navi > ul li a:hover { color: #ffb45c; text-decoration: none; }
.copyright { width: var(--w); }
.copyright > .txt { color: rgba(255, 255, 255, .55); }

/* =========================================================
   スマホ（既存のSP用レイアウトを活かしつつ整える）
   ========================================================= */
@media only screen and (max-width: 768px) {
  body { min-width: 0; background: #fff; }
  #spHeader { box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(15, 42, 86, .06); }
  #spHeader__logo a img { height: 8vw; }
  .spNav { background: var(--navy); }
  .spNav__item { border-bottom-color: rgba(255, 255, 255, .12); }
  .spNav__item a { padding: 16px 20px; }
  .spNav__item2 a.spNav__contact { background: var(--accent); border-radius: 999px; }
  .spNav__item2.spNav__close { color: rgba(255, 255, 255, .8); }

  #container { width: 100%; padding: 0; }
  #contents { width: auto; padding: 8px 0 24px; border-radius: 0; box-shadow: none; }
  #contents > p { font-size: 15px; }
  #side { width: 90%; margin: 0 auto; padding: 24px 0 0; }
  h2.h2_01 { font-size: 16px; padding: 11px 14px 11px 42px; }
  h2.h2_01::after { left: 15px; }
  .top-bana img, .result img, .place img { border-radius: 6px; }

  #maker { margin-top: 0; padding: 28px 0 20px; background: var(--bg); }
  #maker > h3 { width: 90%; font-size: 14px; }
  .maker_inner > ul { width: 90%; }
  .footer_navi_inner { width: 90%; padding: 28px 0; }
  .footer_navi > ul { width: 100%; padding: 0; }
  .footer_navi > ul li { border-color: rgba(255, 255, 255, .12) !important; }
  .copyright { width: 90%; }

  #spFoot { background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 -4px 16px rgba(15, 42, 86, .1); padding: 8px 0; }
  #spFoot .spFoot__item a { border-radius: 999px; font-size: 13px; font-weight: 700; padding: 13px 8px; }
  #spFoot .spFoot__item.tel a { background: var(--accent); }
  #spFoot .spFoot__item.mail a { background: var(--navy); }
}

/* 2026-10-13: existing case-study content and contact artwork refresh */
#contents .page_result2 > p.tit {
  box-sizing: border-box; width: 100%; height: auto; min-height: 56px;
  margin: 36px 0 20px; padding: 14px 20px; line-height: 1.5;
  border-left: 5px solid var(--accent); border-radius: 6px;
  background: var(--blue-50); color: var(--navy); font-size: 20px;
}
#contents .page_result2 > a[id] { display: block; padding: 0; scroll-margin-top: 80px; }
#contents .page_result2 > ul {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 16px; width: 100%; margin: 0; overflow: visible;
}
#contents .page_result2 > ul::before, #contents .page_result2 > ul::after { display: none; }
#contents .page_result2 > ul > li {
  box-sizing: border-box; float: none; width: auto; height: auto; min-width: 0;
  margin: 0; padding: 10px 10px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 3px 12px rgba(15,42,86,.05); overflow-wrap: anywhere;
}
#contents .page_result2 > ul > li:has(> .placename:empty):not(:has(img)):not(:has(.sysname)) { display: none; }
#contents .page_result2 > ul > li > img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: contain; background: #f3f5f9; border-radius: 5px;
}
#contents .page_result2 > ul > li > p.placename {
  margin: 12px 0 8px; padding: 0; color: var(--navy);
  font-size: 14px; line-height: 1.7; font-weight: 700;
}
#contents .page_result2 > ul > li > p.placename:empty { margin: 0; }
#contents .page_result2 > ul > li > p.sysname {
  margin: 8px 0 0; padding: 0; background: none;
  font-size: 13px; line-height: 1.8; color: #4b586b;
}
#contents .page_result2 > p.result_other {
  margin: 22px 0 30px; padding: 16px 20px; border-radius: 8px;
  background: #f7f9fc; color: #4b586b; font-size: 13px; line-height: 1.9;
}
#contents .page_result2 > img { display: block; width: 100%; height: auto; margin: 24px 0 0; }
#contents:has(.page_result2) > figure { margin: 22px 0 36px; }
#contents:has(.page_result2) > figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.contact__head { box-sizing: border-box; min-height: 92px; padding: 22px 180px 22px 24px; }
.contact__text { padding: 0; font-size: 15px; line-height: 1.8; }
.contact__photo { right: 20px; width: 140px; }
.contact__photo img { display: block; width: 100%; height: auto; }
.contact__btnArea .btn_01 img { max-width: 100%; height: auto; }
.contact__tel { padding: 20px 0 0; margin: 20px auto 0; text-align: center; }
.contact__tel img { display: inline-block; width: 538.9px; max-width: 100%; height: auto; }
.spContact__head { background: #eef3fb; border-color: #e3e8ef; }
.spContact__text img, .spContact__photo img, .spContact__btn img, .spContact__tel img { display: block; max-width: 100%; height: auto; }
@media only screen and (max-width: 768px) {
  #contents .page_result2 > p.tit { width: 90%; margin: 28px auto 18px; padding: 12px 16px; font-size: 18px; min-height: 0; }
  #contents .page_result2 > ul { width: 90%; margin: 0 auto; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #contents .page_result2 > ul > li { padding: 14px; }
  #contents .page_result2 > ul > li > p.placename { font-size: 16px; }
  #contents .page_result2 > ul > li > p.sysname { font-size: 14px; }
  #contents .page_result2 > p.result_other { box-sizing: border-box; width: 90%; margin: 20px auto 28px; padding: 16px; }
  #contents .page_result2 > img { width: 90%; margin-left: auto; margin-right: auto; }
  #contents:has(.page_result2) > figure { width: 90%; margin-left: auto; margin-right: auto; }
}

/* Five promises: retain content and order, separate illustrated cards. */
#contents .page_point_support > p { margin: 0 0 16px; }
#contents .page_point_support > p:last-child { margin-bottom: 0; }
#contents .page_point_support > p > img { display: block; width: 100%; height: auto; }
@media only screen and (max-width: 768px) {
  #contents .page_point_support { box-sizing: border-box; width: 96%; margin-left: auto; margin-right: auto; }
  #contents .page_point_support > p { margin-bottom: 12px; }
}
/* Contact heading: larger guide and readable copy. */
.contact .contact__head { min-height: 176px; padding: 30px 220px 30px 24px; display: flex; align-items: center; background: #123b65; }
.contact .contact__text { font-size: 25px; line-height: 1.55; font-weight: 700; color: #fff; }
.contact .contact__photo { width: 196px; right: 12px; bottom: 0; }
.spContact .spContact__head { min-height: 132px; padding: 16px 8px; box-sizing: border-box; display: flex; align-items: center; background: #eef3fb; }
.spContact .spContact__text { width: 66%; position: relative; z-index: 1; }
.spContact .spContact__text img { width: 100%; }
.spContact .spContact__photo { width: 34%; right: 0; bottom: 0; }

/* Camera installer guide: preserve every testimonial and paragraph. */
#contents .page_camera_function { color: #243c50; font-size: 16px; line-height: 1.95; }
#contents .page_camera_function > h3 { margin: 28px 0 18px; padding: 17px 20px; border: 0; border-left: 5px solid #e99732; border-radius: 0 10px 10px 0; background: #edf4f8; color: #123b65; font-size: 23px; line-height: 1.6; }
#contents .page_camera_function > img.selection-illustration { display: block; width: 100%; height: auto; margin: 0 0 22px; border-radius: 12px; }
#contents .page_camera_function > p, #contents .page_camera_function > p.txt { margin: 0 6px 24px; line-height: 1.95; }
#contents .camera_function_koe > ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 18px 0 28px; padding: 0; list-style: none; }
#contents .camera_function_koe > ul > li { position: relative; box-sizing: border-box; margin: 0; padding: 78px 20px 22px; border: 1px solid #dce6ef; border-radius: 14px; background: #f7fafc; color: #243c50; font-size: 15px; line-height: 1.9; font-weight: 400; }
#contents .camera_function_koe > ul > li::before { content: ''; position: absolute; top: 18px; left: 20px; width: 44px; height: 44px; background: center / contain no-repeat; }
#contents .camera_function_koe > ul > li:last-child { grid-column: 1 / -1; min-height: 92px; padding: 22px 24px 22px 82px; }
#contents .page_camera_function > ul { margin: 0 0 25px; padding: 0; list-style: none; }
#contents .page_camera_function > ul > li { margin: 10px 0; padding: 17px 20px 17px 52px; border-radius: 10px; background: #fff6e8; color: #624d32; font-size: 16px; line-height: 1.8; position: relative; }
#contents .page_camera_function > ul > li::before { content: ''; position: absolute; left: 20px; top: 22px; width: 17px; height: 13px; border: 2px solid #b47123; border-radius: 4px; }
#contents .page_camera_function > p:has(> span) { padding: 20px 24px; border-left: 4px solid #e99732; border-radius: 0 10px 10px 0; background: #f0f5f9; color: #123b65; font-weight: 700; }
@media only screen and (max-width: 768px) {
 #contents .page_camera_function { width: 92%; margin: 0 auto; font-size: 16px; }
 #contents .page_camera_function > h3 { padding: 14px 15px; font-size: 20px; }
 #contents .camera_function_koe > ul { grid-template-columns: minmax(0,1fr); gap: 12px; }
 #contents .camera_function_koe > ul > li { padding: 70px 18px 20px; font-size: 15px; }
 #contents .camera_function_koe > ul > li:last-child { padding: 70px 18px 20px; }
 #contents .page_camera_function > p:has(> span) { margin-left: 0; margin-right: 0; padding: 18px; }
}

#contents .camera_function_koe > ul > li:nth-child(1)::before { background-image: url("selection-icons/rain.svg"); }
#contents .camera_function_koe > ul > li:nth-child(2)::before { background-image: url("selection-icons/repair.svg"); }
#contents .camera_function_koe > ul > li:nth-child(3)::before { background-image: url("selection-icons/closed.svg"); }
#contents .camera_function_koe > ul > li:nth-child(4)::before { background-image: url("selection-icons/recorder.svg"); }
#contents .camera_function_koe > ul > li:nth-child(5)::before { background-image: url("selection-icons/lens.svg"); }
#contents .camera_function_koe > ul > li:nth-child(6)::before { background-image: url("selection-icons/support.svg"); }
#contents .camera_function_koe > ul > li:nth-child(7)::before { background-image: url("selection-icons/clock.svg"); }

/* Compact shared contact panel, 2026-10-13 revision 10. */
.contact:has(> .contact__head) { margin-top: 44px; margin-bottom: 28px; }
.contact .contact__head { min-height: 128px; padding: 24px 152px 24px 24px; }
.contact .contact__text { font-size: 22px; line-height: 1.65; }
.contact .contact__text > span { display: block; }
.contact .contact__photo { width: 138px; right: 10px; }
.contact .contact__btnArea { box-sizing: border-box; min-height: 122px; padding: 24px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 24px; align-items: center; }
.contact .contact__btnArea > .btn_01 { grid-column: 2; grid-row: 1; width: auto; margin: 0; padding: 0; }
.contact .contact__btnArea > .btn_01 a { display: flex; align-items: center; min-height: 48px; }
.contact .contact__btnArea > .btn_01 img { display: block; width: 100%; height: auto; }
.contact .contact__tel { grid-column: 1; grid-row: 1; width: auto; margin: 0; padding: 0; border: 0; }
.contact .contact__tel img { display: block; width: 100%; height: auto; }
.spContact .spContact__head { min-height: 108px; padding: 14px 10px; }
.spContact .spContact__text { width: 70%; }
.spContact .spContact__photo { width: 28%; max-width: 108px; right: 4px; }
.spContact .spContact__btnArea { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
.spContact .spContact__tel { order: 0; width: 100%; max-width: 320px; margin: 0 auto; }
.spContact .spContact__btn { order: 1; width: 100%; max-width: 320px; margin: 0 auto; }
.spContact .spContact__btn a { display: flex; min-height: 44px; align-items: center; }
.spContact .spContact__btn img, .spContact .spContact__tel img { width: 100%; height: auto; }

#contents .contact .contact__text > span { color: #fff; }
