.omlsr-wrap {
  --omlsr-navy: #073663;
  --omlsr-navy-2: #0b4a83;
  --omlsr-blue: #166eb5;
  --omlsr-orange: #f56a00;
  --omlsr-bg: #f7f9fc;
  --omlsr-pale: #eef5fb;
  --omlsr-line: #d8e3ee;
  --omlsr-text: #24364b;
  --omlsr-muted: #6c7b8c;
  --omlsr-radius: 12px;
}

.omlsr-wrap,
.omlsr-wrap * { box-sizing: border-box; }
.omlsr-wrap { width: 100%; max-width: 1180px; margin: 0 auto 48px; color: var(--omlsr-text); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif; }
.omlsr-wrap a { text-decoration: none; }
.omlsr-wrap .screen-reader-text { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

.omlsr-hero { min-height: 205px; margin: 0 0 24px; display: grid; grid-template-columns: 1.06fr .94fr; border-radius: var(--omlsr-radius); overflow: hidden; background: linear-gradient(100deg,#f7fbff 0%,#fff 57%); border: 1px solid #e5edf4; }
.omlsr-hero-copy { padding: 40px 44px; align-self: center; position: relative; z-index: 2; }
.omlsr-eyebrow { margin: 0 0 8px; color: var(--omlsr-orange); font-weight: 800; letter-spacing: .12em; font-size: 12px; }
.omlsr-hero h1 { margin: 0 0 14px; color: var(--omlsr-navy); font-size: clamp(30px,4vw,48px); line-height: 1.15; letter-spacing: .02em; }
.omlsr-hero p:not(.omlsr-eyebrow) { margin: 0; font-size: 15px; line-height: 1.9; }
.omlsr-hero-visual { background-image: linear-gradient(90deg,#fff0 0%,#fff0 100%), url('../images/sitemap-hero-pen.png'); background-size: cover; background-position: center; min-height: 205px; }

.omlsr-search-panel { margin-bottom: 28px; padding: 20px 22px 16px; background: linear-gradient(180deg,#f7fbff,#f1f6fb); border: 1px solid var(--omlsr-line); border-radius: var(--omlsr-radius); box-shadow: 0 8px 22px rgba(10,55,95,.05); }
.omlsr-search-title { display:flex; align-items:center; gap:12px; margin-bottom: 12px; }
.omlsr-search-icon { width:38px; height:38px; border-radius:50%; background: var(--omlsr-navy); color:#fff; display:grid; place-items:center; font-size:25px; line-height:1; transform: rotate(-15deg); }
.omlsr-search-title strong { display:block; color:var(--omlsr-navy); font-size:18px; }
.omlsr-search-title small { color:var(--omlsr-muted); font-size:12px; }
.omlsr-search-form { display:grid; grid-template-columns: 1fr 110px; gap:10px; margin:0; }
.omlsr-search-form input { width:100%; height:50px; padding:0 16px; border:1px solid #c8d6e3; border-radius:8px; background:#fff; font-size:14px; outline:none; transition:.2s; }
.omlsr-search-form input:focus { border-color: var(--omlsr-blue); box-shadow: 0 0 0 3px rgba(22,110,181,.12); }
.omlsr-search-form button { border:0; border-radius:8px; background: var(--omlsr-orange); color:#fff; font-weight:800; cursor:pointer; font-size:15px; transition:.2s; }
.omlsr-search-form button:hover { filter:brightness(.95); transform:translateY(-1px); }
.omlsr-search-status { grid-column:1/-1; min-height:0; margin:0; color:var(--omlsr-muted); font-size:12px; }
.omlsr-quick { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding-top:14px; margin-top:10px; border-top:1px solid #dde7f0; }
.omlsr-quick-label { margin-right:4px; color:var(--omlsr-navy); font-weight:800; font-size:13px; }
.omlsr-quick a { display:inline-flex; align-items:center; min-height:34px; padding:6px 14px; border:1px solid #ccdce9; border-radius:999px; background:#fff; color:var(--omlsr-navy); font-size:12px; font-weight:700; transition:.2s; }
.omlsr-quick a:hover { background:var(--omlsr-navy); color:#fff; border-color:var(--omlsr-navy); }

.omlsr-grid { display:grid; gap:16px; margin-bottom:16px; align-items:start; }
.omlsr-grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.omlsr-grid-2 { grid-template-columns:minmax(0,1.55fr) minmax(320px,.95fr); }
.omlsr-main-grid { grid-auto-flow: row dense; }
.omlsr-card { background:#fff; border:1px solid var(--omlsr-line); border-radius: var(--omlsr-radius); overflow:hidden; box-shadow: 0 8px 20px rgba(7,54,99,.035); scroll-margin-top: 90px; }
.omlsr-card.omlsr-card-hidden { display:none; }
.omlsr-card-head { display:flex; gap:12px; align-items:flex-start; padding:20px 20px 14px; border-bottom:1px solid #e7edf3; }
.omlsr-icon { flex:0 0 38px; width:38px; height:38px; display:grid; place-items:center; border-radius:9px; background:var(--omlsr-pale); color:var(--omlsr-navy); }
.omlsr-icon svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.omlsr-card-head h2 { margin:1px 0 3px; color:var(--omlsr-navy); font-size:20px; line-height:1.35; }
.omlsr-card-head p { margin:0; color:var(--omlsr-muted); font-size:12px; line-height:1.6; }
.omlsr-card-body { padding: 0 18px 18px; }

.omlsr-links { list-style:none!important; padding:0!important; margin:0!important; display:grid; grid-template-columns:1fr; }
.omlsr-links-2col { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:18px; }
.omlsr-links-3col { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 12px; padding-top:14px!important; }
.omlsr-links li { margin:0!important; padding:0!important; border-bottom:1px solid #e7edf3; list-style:none!important; }
.omlsr-links li:last-child { border-bottom:0; }
.omlsr-links-2col li:nth-last-child(-n+2) { border-bottom:0; }
.omlsr-links-3col li { border:1px solid #e3ebf2; border-radius:7px; background:#f9fbfd; }
.omlsr-links a { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 4px; color:#224d75; font-size:13px; font-weight:650; transition:.18s; }
.omlsr-links-3col a { padding:10px 12px; min-height:42px; }
.omlsr-links a:hover { color:var(--omlsr-orange); padding-left:8px; }
.omlsr-links-3col a:hover { padding-left:15px; background:#fff; border-radius:7px; }
.omlsr-arrow { color:#1a77be; font-size:21px; font-weight:400; line-height:1; }
.omlsr-link-hidden { display:none!important; }

.omlsr-injury-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding-top:14px; }
.omlsr-mini-card { border:1px solid #e2eaf1; border-radius:8px; background:#f7fafc; padding:12px 14px; }
.omlsr-mini-card h3 { margin:0 0 5px; color:var(--omlsr-navy); font-size:14px; }
.omlsr-mini-card .omlsr-links li { border:0; }
.omlsr-mini-card .omlsr-links a { min-height:auto; padding:5px 0; font-size:12px; font-weight:600; }
.omlsr-mini-card-hidden { display:none!important; }

.omlsr-no-results { padding:30px; text-align:center; border:1px dashed #bdcbd8; background:#f8fafc; border-radius:10px; color:var(--omlsr-muted); }
.omlsr-no-results strong { display:block; color:var(--omlsr-navy); margin-bottom:6px; }
.omlsr-no-results p { margin:0; }

/* テーマ側の本文幅が狭い場合でもカードを崩しにくくする */
.omlsr-active .omlsr-wrap img { max-width:100%; }
.omlsr-active .entry-content > .omlsr-wrap,
.omlsr-active .post-content > .omlsr-wrap,
.omlsr-active .page-content > .omlsr-wrap { max-width:1180px; }

/* JSが安全に検出できた場合のみ、テーマ既定のページ見出しを隠す */
.omlsr-theme-title-hidden { display:none!important; }

@media (max-width: 980px) {
  .omlsr-wrap { padding:0 16px; }
  .omlsr-grid-3 { grid-template-columns:1fr 1fr; }
  .omlsr-grid-3 .omlsr-card:last-child { grid-column:1/-1; }
  .omlsr-grid-2 { grid-template-columns:1fr; }
  .omlsr-injury-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .omlsr-span-wide { grid-column:auto; }
}

@media (max-width: 700px) {
  .omlsr-wrap { padding:0 12px; margin-bottom:32px; }
  .omlsr-hero { grid-template-columns:1fr; min-height:0; }
  .omlsr-hero-copy { padding:28px 22px; }
  .omlsr-hero-visual { min-height:120px; background-position:center 58%; }
  .omlsr-search-panel { padding:16px; }
  .omlsr-search-form { grid-template-columns:1fr 88px; }
  .omlsr-search-form input { font-size:16px; }
  .omlsr-grid-3 { grid-template-columns:1fr; }
  .omlsr-grid-3 .omlsr-card:last-child { grid-column:auto; }
  .omlsr-links-2col, .omlsr-links-3col { grid-template-columns:1fr; }
  .omlsr-links-2col li:nth-last-child(-n+2) { border-bottom:1px solid #e7edf3; }
  .omlsr-links-2col li:last-child { border-bottom:0; }
  .omlsr-injury-grid { grid-template-columns:1fr; }
  .omlsr-card-head { padding:18px 16px 12px; }
  .omlsr-card-body { padding:0 14px 14px; }
  .omlsr-card-head h2 { font-size:18px; }
  .omlsr-quick { overflow-x:auto; flex-wrap:nowrap; padding-bottom:3px; }
  .omlsr-quick a, .omlsr-quick-label { flex:0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .omlsr-wrap * { scroll-behavior:auto!important; transition:none!important; }
}

/* Sitemap layout: full-width rows and equally sized thirds */
.omlsr-wrap .omlsr-grid-1 { grid-template-columns:minmax(0,1fr); }
.omlsr-wrap .omlsr-equal-thirds { grid-template-columns:repeat(3,minmax(0,1fr)); }
.omlsr-wrap .omlsr-equal-thirds > .omlsr-card { min-width:0; }
.omlsr-wrap .omlsr-grid-1 > .omlsr-card { width:100%; min-width:0; }
@media (max-width:980px) {
  .omlsr-wrap .omlsr-equal-thirds { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .omlsr-wrap .omlsr-equal-thirds > .omlsr-card:last-child { grid-column:1/-1; }
}
@media (max-width:700px) {
  .omlsr-wrap .omlsr-equal-thirds { grid-template-columns:minmax(0,1fr); }
  .omlsr-wrap .omlsr-equal-thirds > .omlsr-card:last-child { grid-column:auto; }
}

/* Equal-height cards within each three-column row. */
.omlsr-wrap .omlsr-grid-3 { align-items:stretch; }
.omlsr-wrap .omlsr-grid-3 > .omlsr-card { height:100%; min-width:0; }
