/* 写真入り許認可メニュー。既設の画像ナビ #snavi には変更を加えない。 */
.permit-menu {width:300px;max-width:100%;box-sizing:border-box;margin:12px 0 24px;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#26384f;}
.permit-menu * {box-sizing:border-box;}
.permit-menu .permit-menu-group {border:1px solid #c4d1df;border-radius:4px;overflow:hidden;background:#fff;margin:0 0 14px;box-shadow:0 2px 5px rgba(34,51,75,.16);}
.permit-menu .permit-menu-group h2 {margin:0;padding:9px 11px 9px 13px;color:#fff;font-size:14px;font-weight:700;line-height:1.55;min-height:36px;text-shadow:0 1px 2px rgba(0,0,0,.4);border-bottom:1px solid #b3bdca;background-color:#294e85;background-size:100% 100%,cover;background-position:center;background-repeat:no-repeat;}
.permit-menu .permit-menu-group--construction h2 {background-image:linear-gradient(90deg,rgba(29,63,111,.97),rgba(47,93,151,.89) 64%,rgba(55,105,167,.18)),url("../img/permit-sidebar/kensetsu.webp");}
.permit-menu .permit-menu-group--business h2 {background-image:linear-gradient(90deg,rgba(29,63,111,.97),rgba(47,93,151,.89) 64%,rgba(55,105,167,.18)),url("../img/permit-sidebar/ryokan.webp");}
.permit-menu .permit-menu-group--special h2 {background-image:linear-gradient(90deg,rgba(29,63,111,.97),rgba(47,93,151,.89) 64%,rgba(55,105,167,.18)),url("../img/permit-sidebar/saiene.webp");}
.permit-menu .permit-menu-group ul {list-style:none;margin:0;padding:0;}
.permit-menu .permit-menu-group li {display:block;float:none;list-style:none;margin:0;padding:0;border-top:1px solid #fff;border-bottom:1px solid #cdd6e3;}
.permit-menu .permit-menu-group li:last-child {border-bottom:0;}
.permit-menu .permit-menu-group a.permit-menu-link {display:flex;align-items:center;position:relative;min-height:51px;width:100%;margin:0;padding:8px 20px 8px 31px;text-decoration:none;color:#123b74;font-weight:700;font-size:12.3px;line-height:1.45;border:0;overflow:hidden;background-color:#f1f5fa;background-image:linear-gradient(90deg,rgba(251,253,255,.99) 0%,rgba(251,253,255,.98) 40%,rgba(250,253,255,.86) 61%,rgba(249,251,255,.17) 98%),var(--permit-photo);background-position:center,center;background-repeat:no-repeat;background-size:100% 100%,cover;transition:filter .14s ease,box-shadow .14s ease;}
.permit-menu .permit-menu-link span {display:block;position:relative;z-index:1;max-width:235px;overflow-wrap:anywhere;}
.permit-menu .permit-menu-link::before {content:"›";position:absolute;left:8px;top:50%;transform:translateY(-50%);width:14px;height:14px;border-radius:2px;background:linear-gradient(#3276c6,#144480);color:#fff;font-family:Arial,sans-serif;font-weight:bold;font-size:16px;line-height:12px;text-align:center;box-shadow:0 1px 2px rgba(0,0,0,.15);}
.permit-menu .permit-menu-link::after {content:"›";position:absolute;right:6px;top:50%;transform:translateY(-50%);color:#254c83;font-family:Arial,sans-serif;font-size:19px;line-height:1;text-shadow:0 1px 1px #fff;}
.permit-menu .permit-menu-link:hover,.permit-menu .permit-menu-link:focus-visible {filter:brightness(.96) saturate(1.08);box-shadow:inset 3px 0 0 #2a67bd;text-decoration:underline;outline:2px solid transparent;}
.permit-menu .permit-menu-contact {display:flex;flex-direction:column;gap:6px;background:linear-gradient(#f5f8fc,#e8eff7);border:1px solid #c4d1df;border-radius:4px;padding:11px 12px;box-shadow:0 2px 5px rgba(34,51,75,.12);}
.permit-menu .permit-menu-contact strong {font-size:13px;color:#214c7e;}
.permit-menu .permit-menu-contact a {color:#244a8c;font-size:12.5px;text-decoration:underline;}
.permit-menu .permit-menu-contact a[href^="tel:"] {font-size:18px;font-weight:700;letter-spacing:.02em;}
.permit-menu .permit-menu-photo--kensetsu {--permit-photo:url("../img/permit-sidebar/kensetsu.webp");}
.permit-menu .permit-menu-photo--kessan {--permit-photo:url("../img/permit-sidebar/kessan.webp");}
.permit-menu .permit-menu-photo--keishin {--permit-photo:url("../img/permit-sidebar/keishin.webp");}
.permit-menu .permit-menu-photo--nyusatsu {--permit-photo:url("../img/permit-sidebar/nyusatsu.webp");}
.permit-menu .permit-menu-photo--kaitai {--permit-photo:url("../img/permit-sidebar/kaitai.webp");}
.permit-menu .permit-menu-photo--sanpai {--permit-photo:url("../img/permit-sidebar/sanpai.webp");}
.permit-menu .permit-menu-photo--birukan {--permit-photo:url("../img/permit-sidebar/birukan.webp");}
.permit-menu .permit-menu-photo--takken {--permit-photo:url("../img/permit-sidebar/takken.webp");}
.permit-menu .permit-menu-photo--kobutsu {--permit-photo:url("../img/permit-sidebar/kobutsu.webp");}
.permit-menu .permit-menu-photo--inshoku {--permit-photo:url("../img/permit-sidebar/inshoku.webp");}
.permit-menu .permit-menu-photo--ryokan {--permit-photo:url("../img/permit-sidebar/ryokan.webp");}
.permit-menu .permit-menu-photo--kashibesso {--permit-photo:url("../img/permit-sidebar/kashibesso.webp");}
.permit-menu .permit-menu-photo--fuzoku {--permit-photo:url("../img/permit-sidebar/fuzoku.webp");}
.permit-menu .permit-menu-photo--saiene {--permit-photo:url("../img/permit-sidebar/saiene.webp");}
.permit-menu .permit-menu-photo--shobo {--permit-photo:url("../img/permit-sidebar/shobo.webp");}
.permit-menu .permit-menu-photo--douro {--permit-photo:url("../img/permit-sidebar/douro.webp");}
.permit-menu .permit-menu-photo--denki {--permit-photo:url("../img/permit-sidebar/denki.webp");}

/* 既設業務一覧ページの「専門業務のご案内」だけは以前の配置を維持する。 */
.permit-directory {margin:32px 0 8px;}
.permit-directory h2 {font-size:18px;color:#2d4780;border-bottom:2px solid #cbd9ee;margin:0 0 12px;padding:0 0 8px;}
.permit-directory ul {padding:0;list-style:none;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
.permit-directory li {min-width:0;}
.permit-directory a {border:1px solid #cbd9ee;display:block;padding:9px;color:#244a8c;text-decoration:none;font-size:12px;line-height:1.5;}
.permit-directory a:hover {background:#eef4ff;text-decoration:underline;}
@media (prefers-reduced-motion:reduce) {.permit-menu .permit-menu-group a.permit-menu-link {transition:none;}}

/* =============================================================
   2026-11-17 旧許認可ページ本文のデザイン統一
   対象: body#service01 / #service02 / #service04 の .mcwidth 本文のみ
   写真入りサイドバー、ヘッダー、ナビ、料金値、本文・PHPは変更しない。
   ============================================================= */
:is(body#service01,body#service02,body#service04) .mcwidth {
  color:#344c66;
  font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  font-size:14.5px;
  line-height:1.85;
}
:is(body#service01,body#service02,body#service04) .mcwidth > header h1 {
  margin:0 0 22px;
  padding-bottom:14px;
  border-bottom:2px solid #d5e1ee;
}
:is(body#service01,body#service02,body#service04) .mcwidth > header h1 img {
  max-width:100%; height:auto;
}
:is(body#service01,body#service02,body#service04) .mcwidth > section {
  box-sizing:border-box;
  margin:0 0 22px !important;
  padding:22px 22px 20px;
  border:1px solid #dbe4ef;
  border-radius:5px;
  background:#fff;
  box-shadow:0 2px 6px rgba(40,73,113,.07);
  overflow-wrap:anywhere;
}
:is(body#service01,body#service02,body#service04) .mcwidth > section > header h2,
:is(body#service01,body#service02,body#service04) .mcwidth > section > h2 {
  margin:0 0 16px;
  padding:0 0 11px 14px;
  border-bottom:1px solid #dce6f3;
  border-left:4px solid #3766ac;
  color:#234c83;
  font-size:17px;
  font-weight:700;
  line-height:1.45;
  background:linear-gradient(90deg,#f5f9ff,#fff 88%);
}
:is(body#service01,body#service02,body#service04) .mcwidth > section > header h2 img,
:is(body#service01,body#service02,body#service04) .mcwidth > section > h2 img {
  vertical-align:middle;
  max-width:100%; height:auto;
}
:is(body#service01,body#service02,body#service04) .mcwidth > section p {
  margin:0 0 14px;
  line-height:1.92;
}
:is(body#service01,body#service02,body#service04) .mcwidth > section p:last-child {margin-bottom:0;}
:is(body#service01,body#service02,body#service04) .mcwidth > section a {
  color:#23569b;
  text-underline-offset:3px;
}
:is(body#service01,body#service02,body#service04) .mcwidth > section a:hover {color:#14365f;}
:is(body#service01,body#service02,body#service04) .mcwidth table.pricelist {
  width:100%;
  margin:16px 0 8px;
  font-size:13.5px;
  line-height:1.65;
  border-collapse:collapse;
  background:#fff;
}
:is(body#service01,body#service02,body#service04) .mcwidth table.pricelist td,
:is(body#service01,body#service02,body#service04) .mcwidth table.pricelist th {
  border:1px solid #cedaea;
  padding:10px 11px;
  text-align:left;
  vertical-align:middle;
}
:is(body#service01,body#service02,body#service04) .mcwidth table.pricelist tr:nth-child(odd) {background:#f4f8fd;}
:is(body#service01,body#service02,body#service04) .mcwidth table.pricelist td:last-child {
  color:#234e85;
  font-weight:700;
  white-space:nowrap;
}
:is(body#service01,body#service02,body#service04) .mcwidth table:not(.pricelist) {
  max-width:100%;
}
:is(body#service01,body#service02,body#service04) .mcwidth section.punctuation {
  display:none;
}
:is(body#service01,body#service02,body#service04) .mcwidth > section .fbold {
  color:#344c66;
  font-weight:600;
}
@media print {
  :is(body#service01,body#service02,body#service04) .mcwidth > section {
    box-shadow:none;break-inside:avoid;
  }
}

/* 元の画像見出しはJS無効時のフォールバック。通常は画像内文字をHTML文字に置換する。 */
:is(body#service01,body#service02,body#service04) .mcwidth .legacy-heading-label {
  display:block;
  font-size:16.5px;
  line-height:1.55;
  letter-spacing:.025em;
  color:#234c83;
}
