/* セコサポ ページUI（一覧・カテゴリ・検索・新着・404） */

/* ---------- ページの枠（トップと同じ地色・ヘッダー） ---------- */
html:root body.seco-pg,html:root body.seco-pg #wrapper,html:root body.seco-pg #mainContent,html:root body.seco-pg #mainContentInner{background:#F7F8F5!important;color:#283832!important}
html:root body.seco-pg{overflow-x:hidden}
html:root body.seco-pg #wrapper #commonHeader{background:#fff!important;border-bottom:1px solid #e0e8e3!important;box-shadow:0 2px 15px rgba(37,76,61,.03)!important}
html:root body.seco-pg #wrapper #commonHeaderInner{padding-top:18px!important;padding-bottom:18px!important;min-height:0!important}
html:root body.seco-pg #wrapper #headerLogoLink{font-size:27px!important;color:#285a43!important;-webkit-text-fill-color:#285a43!important;text-shadow:none!important;letter-spacing:-1px}
html:root body.seco-pg #wrapper #SiteSubCopy{display:none!important}
html:root body.seco-pg #wrapper #globalMenuList a{font-size:14px!important;color:#354b3d!important}
html:root body.seco-pg #wrapper .a--header-style-parts{display:none!important}
html:root body.seco-pg #wrapper #mainContent #mainContentInner #jinrArticle#jinrArticle{border-radius:0!important;background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important;max-width:none!important}
html:root body.seco-pg #wrapper #mainContentInner #postContent{max-width:none!important;width:auto!important;padding:0!important;overflow:visible!important}
html:root body.seco-pg:not(.seco-pg-news) #wrapper #postHeader{display:none!important}
html:root body.seco-pg #wrapper .c--labeling-act{background:transparent!important;padding:10px 0 0!important;margin:0!important;text-align:center}
html:root body.seco-pg #wrapper .a--labeling-act{background:transparent!important;border:0!important;color:#58665c!important;font-size:12px!important}
html:root body.seco-pg #wrapper #mainContentInner{padding-top:0!important}
@media (max-width:820px){html:root body.seco-pg #wrapper #commonHeaderInner{padding-top:12px!important;padding-bottom:12px!important}}

/* ---------- 一覧 ---------- */
#secoDir{
  --ink:#15221D;--muted:#5E6C66;--line:#DCE3DF;--card:#fff;--soft:#F2F5F3;--brand:#0D4A3A;--brand-d:#08372B;--amber:#F2B600;
  box-sizing:border-box;width:100vw;max-width:100vw;margin:0 calc(50% - 50vw);padding:14px clamp(16px,2.6vw,48px) 48px;
  color:var(--ink);font-family:"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.7;-webkit-font-smoothing:antialiased}
#secoDir *,#secoDir *::before,#secoDir *::after{box-sizing:border-box}
body.seco-pg #secoDir h1,body.seco-pg #secoDir h2,body.seco-pg #secoDir p,body.seco-pg #secoDir ul,body.seco-pg #secoDir li{
  margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;list-style:none!important;
  font-family:inherit!important;letter-spacing:normal!important;text-align:left!important;color:inherit}
body.seco-pg #secoDir h1::before,body.seco-pg #secoDir h1::after,body.seco-pg #secoDir h2::before,body.seco-pg #secoDir h2::after,
body.seco-pg #secoDir li::before,body.seco-pg #secoDir li::after{content:none!important;display:none!important}
#secoDir a{text-decoration:none!important;color:inherit}
#secoDir button,#secoDir select,#secoDir input{font-family:inherit}
#secoDir :focus-visible{outline:3px solid var(--amber)!important;outline-offset:2px}
#secoDir .sd-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

#secoDir .sd-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px 24px;padding:12px 0 16px}
body.seco-pg #secoDir .sd-h1{font-size:clamp(23px,2.4vw,30px)!important;font-weight:900!important;line-height:1.35!important;color:var(--ink)!important;flex:1 1 auto}
body.seco-pg #secoDir .sd-lead{flex:1 0 100%;order:2;font-size:14px!important;color:var(--muted)!important}
#secoDir .sd-tabs{display:flex;gap:4px;flex-wrap:wrap;order:1}
#secoDir .sd-tabs a{font-size:13px;font-weight:700;color:var(--muted);padding:7px 13px;border-radius:999px;border:1px solid transparent}
#secoDir .sd-tabs a:hover{color:var(--brand);border-color:var(--line);background:#fff}
#secoDir .sd-tabs a[aria-current="page"]{background:var(--brand);color:#fff}

/* 操作バー（上に固定） */
#secoDir .sd-bar{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;align-items:center;
  background:rgba(247,248,245,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:10px 0;margin-bottom:6px;border-bottom:1px solid var(--line)}
body.admin-bar #secoDir .sd-bar{top:32px}
@media (max-width:782px){body.admin-bar #secoDir .sd-bar{top:0}}
#secoDir .sd-search{position:relative;display:flex;align-items:center;background:#fff;border:2px solid var(--brand);border-radius:12px;height:50px;padding:0 6px 0 42px;box-shadow:0 8px 20px -16px rgba(13,74,58,.6)}
#secoDir .sd-search:focus-within{box-shadow:0 0 0 4px rgba(242,182,0,.35)}
#secoDir .sd-search-ic{position:absolute;left:13px;top:50%;width:20px;height:20px;transform:translateY(-50%);color:var(--brand)}
#secoDir .sd-search-ic svg{width:20px;height:20px;display:block}
body.seco-pg #secoDir .sd-search input{flex:1;min-width:0;height:100%;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;font-size:16px!important;color:var(--ink);padding:0!important;margin:0!important}
#secoDir .sd-search input::-webkit-search-cancel-button{display:none}
#secoDir .sd-man~.sd-empty,#secoDir .sd-bar .sd-search:only-child{grid-column:1/-1}
#secoDir .sd-clear{border:0;background:var(--soft);color:var(--muted);width:30px;height:30px;border-radius:50%;font-size:16px;line-height:1}
#secoDir .sd-ctl{display:flex;align-items:center;gap:8px}
body.seco-pg #secoDir .sd-ctl select{height:40px;border:1px solid var(--line)!important;border-radius:10px!important;background:#fff!important;padding:0 30px 0 12px!important;font-size:14px!important;color:var(--ink);margin:0!important}
#secoDir .sd-favbtn{height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 13px;font-size:14px;font-weight:700;color:var(--ink);white-space:nowrap}
#secoDir .sd-favbtn[aria-pressed="true"]{background:#FFF6D6;border-color:var(--amber);color:#6b4a00}
#secoDir .sd-count{font-size:13px;font-weight:700;color:var(--muted);white-space:nowrap;min-width:3.6em;text-align:right;font-variant-numeric:tabular-nums}
#secoDir .sd-chips{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap}
#secoDir .sd-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:999px;padding:5px 12px;font-size:13px;font-weight:700;line-height:1.4}
#secoDir .sd-chip i{width:9px;height:9px;border-radius:3px;background:var(--c)}
#secoDir .sd-chip b{font-weight:700;font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
#secoDir .sd-chip:hover{border-color:var(--c,var(--brand))}
#secoDir .sd-chip[aria-pressed="true"]{background:var(--c,var(--brand));border-color:var(--c,var(--brand));color:#fff}
#secoDir .sd-chip[aria-pressed="true"] i{background:#fff}
#secoDir .sd-chip[aria-pressed="true"] b{color:rgba(255,255,255,.85)}

/* 行 */
#secoDir .sd-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:10px;margin-top:12px!important}
#secoDir .sd-item{position:relative}
#secoDir .sd-item[hidden]{display:none!important}
#secoDir .sd-row{display:flex;gap:13px;align-items:flex-start;height:100%;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:13px 44px 13px 13px;transition:border-color .12s,box-shadow .12s}
#secoDir .sd-row:hover{border-color:var(--c,#9db5aa);box-shadow:0 10px 24px -18px rgba(13,74,58,.55)}
#secoDir .sd-b{display:flex;flex-direction:column;min-width:0;flex:1}
#secoDir .sd-n{font-weight:800;font-size:15px;line-height:1.4;color:var(--ink)}
#secoDir .sd-row:hover .sd-n{color:var(--brand)}
#secoDir .sd-d{font-size:12.8px;color:var(--muted);line-height:1.55;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#secoDir .sd-g{align-self:flex-start;margin-top:7px;font-size:11px;font-weight:700;color:var(--c);background:color-mix(in srgb,var(--c) 9%,#fff);border-radius:4px;padding:1px 7px}
#secoDir .sd-dt{font-size:12px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums;margin-left:auto;padding-left:8px}
#secoDir .sd-new{font-style:normal;font-size:10.5px;font-weight:800;color:#fff;background:#C0392B;border-radius:4px;padding:1px 5px;margin-left:6px;vertical-align:2px}
#secoDir .sd-star{position:absolute;top:8px;right:8px;width:32px;height:32px;border:0;border-radius:9px;background:transparent;color:#9aa8a1;font-size:18px;line-height:1}
#secoDir .sd-star:hover{background:var(--soft);color:#b88700}
#secoDir .sd-star[aria-pressed="true"]{color:#E0A800}

#secoDir .sd-ic{flex:none;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;color:#fff;font-weight:800;font-size:14.5px;letter-spacing:-.02em;line-height:1;
  background:var(--c);
  background:linear-gradient(150deg,color-mix(in srgb,var(--c) 78%,#fff) 0%,var(--c) 52%,color-mix(in srgb,var(--c) 78%,#000) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),inset 0 -2px 0 rgba(0,0,0,.18),0 3px 8px -4px color-mix(in srgb,var(--c) 70%,#000);text-shadow:0 1px 1px rgba(0,0,0,.25)}
#secoDir .sd-ic.is-s{font-size:11.5px}
#secoDir .sd-ic-doc{--c:#2F6E8F}
#secoDir .sd-ic-doc svg{width:24px;height:24px}
#secoDir .sd-man .sd-row{padding-right:13px;align-items:center}

#secoDir .sd-empty{background:#fff;border:1px dashed #b9c8c0;border-radius:14px;padding:22px;margin-top:12px;text-align:center}
body.seco-pg #secoDir .sd-empty p{text-align:center!important;font-size:14px!important;color:var(--muted)!important}
body.seco-pg #secoDir .sd-empty p+p{margin-top:6px!important}
#secoDir .sd-empty b{color:var(--ink)}
#secoDir .sd-empty a,#secoDir .sd-foot a,#secoDir .sd-plain a{color:var(--brand)!important;font-weight:700;border-bottom:1px solid currentColor}

#secoDir .sd-others{margin-top:28px!important;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px!important}
body.seco-pg #secoDir .sd-h2{font-size:16px!important;font-weight:800!important;margin-bottom:8px!important}
#secoDir .sd-plain li{padding:6px 0!important;border-top:1px solid var(--line)!important;font-size:14px}
#secoDir .sd-plain li:first-child{border-top:0!important}
body.seco-pg #secoDir .sd-foot{margin-top:24px!important;font-size:13px!important;color:var(--muted)!important;text-align:center!important}

@media (max-width:900px){
  #secoDir .sd-bar{grid-template-columns:1fr;position:static;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
  #secoDir .sd-ctl{justify-content:flex-start}
  #secoDir .sd-count{margin-left:auto}
  #secoDir .sd-tabs{order:3;flex:1 0 100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px}
  #secoDir .sd-tabs::-webkit-scrollbar{display:none}
  #secoDir .sd-tabs a{flex:none;background:#fff;border-color:var(--line)}
  #secoDir .sd-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px 2px}
  #secoDir .sd-chips::-webkit-scrollbar{display:none}
  #secoDir .sd-chip{flex:none}
}
@media (max-width:640px){
  #secoDir{padding:6px 16px 90px}
  #secoDir .sd-list{grid-template-columns:minmax(0,1fr);gap:8px}
  #secoDir .sd-row{padding:11px 42px 11px 11px;border-radius:12px}
  #secoDir .sd-ic{width:40px;height:40px;border-radius:11px;font-size:13.5px}
  #secoDir .sd-g{display:none}
  #secoDir .sd-search{height:48px}
}
@media (prefers-reduced-motion:reduce){#secoDir *{transition:none!important}}

/* ---------- 新着情報 ---------- */
html:root body.seco-pg.seco-pg-news #wrapper #mainContentInner #postHeader #postHeaderInner{max-width:880px!important;margin:0 auto!important;padding:18px 16px 4px!important}
html:root body.seco-pg.seco-pg-news #wrapper #mainContentInner #jinrPostTitle#jinrPostTitle{letter-spacing:.02em!important;font-size:clamp(23px,2.4vw,30px)!important;font-weight:900!important;text-align:left!important;color:#15221D!important}
html:root body.seco-pg.seco-pg-news #wrapper #mainContentInner #postContent#postContent{max-width:880px!important;margin:0 auto!important;padding:0 16px 40px!important}
html:root body.seco-pg.seco-pg-news #wrapper #mainContentInner #postContent>p{font-size:14px!important;color:#5E6C66!important;margin:4px 0 10px!important}
body.seco-pg-news .seco-news__head{display:none!important}
body.seco-pg-news .sn-bar{position:sticky;top:0;z-index:20;display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:rgba(247,248,245,.95);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:10px 0;border-bottom:1px solid #DCE3DF;margin-bottom:6px}
body.admin-bar.seco-pg-news .sn-bar{top:32px}
body.seco-pg-news .sn-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #DCE3DF;background:#fff;color:#15221D;border-radius:999px;padding:5px 12px;font:700 13px/1.4 "Noto Sans JP",sans-serif;cursor:pointer}
body.seco-pg-news .sn-chip i{width:9px;height:9px;border-radius:3px;background:var(--c)}
body.seco-pg-news .sn-chip b{font-size:11.5px;color:#5E6C66}
body.seco-pg-news .sn-chip[aria-pressed="true"]{background:var(--c,#0D4A3A);border-color:var(--c,#0D4A3A);color:#fff}
body.seco-pg-news .sn-chip[aria-pressed="true"] i{background:#fff}
body.seco-pg-news .sn-chip[aria-pressed="true"] b{color:rgba(255,255,255,.85)}
body.seco-pg-news .sn-q{flex:1 1 200px;min-width:0;height:36px;border:1px solid #DCE3DF!important;border-radius:9px!important;padding:0 12px!important;font-size:16px!important;background:#fff!important;margin:0!important}
body.seco-pg-news .sn-month{display:flex;align-items:baseline;gap:10px;font:800 15px/1.4 "Noto Sans JP",sans-serif;color:#15221D;margin:22px 0 8px;padding-bottom:6px;border-bottom:2px solid #15221D}
body.seco-pg-news .sn-month span{font-size:12px;font-weight:700;color:#5E6C66}
body.seco-pg-news .seco-news__list{display:block!important}
body.seco-pg-news .seco-news__item{display:grid!important;grid-template-columns:92px minmax(0,1fr);gap:4px 16px;padding:12px 0!important;border-bottom:1px solid #E4EAE6!important;background:none!important}
body.seco-pg-news .seco-news__item[hidden]{display:none!important}
body.seco-pg-news .seco-news__meta{display:flex!important;flex-direction:column;align-items:flex-start;gap:4px}
body.seco-pg-news .seco-news__date{font-size:12.5px!important;color:#5E6C66!important;font-variant-numeric:tabular-nums}
body.seco-pg-news .seco-news__type{font-size:11px!important;font-weight:700!important;color:var(--sn-c)!important;background:color-mix(in srgb,var(--sn-c) 10%,#fff)!important;border-radius:4px!important;padding:1px 7px!important}
body.seco-pg-news .seco-news__link{font-size:15px!important;font-weight:800!important;line-height:1.5!important;color:#15221D!important;text-decoration:none!important}
body.seco-pg-news .seco-news__link:hover{color:#0D4A3A!important;text-decoration:underline!important}
body.seco-pg-news .seco-news__ver{font-size:11.5px!important;font-weight:600!important;color:#5E6C66!important}
body.seco-pg-news .seco-news__body{font-size:13.5px!important;line-height:1.75!important;color:#4A5853!important;margin-top:3px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}
body.seco-pg-news .seco-news__item.is-open .seco-news__body{-webkit-line-clamp:unset;display:block}
body.seco-pg-news .sn-empty{padding:24px;text-align:center;color:#5E6C66;font-size:14px}
@media (max-width:640px){
  body.seco-pg-news .seco-news__item{grid-template-columns:minmax(0,1fr)}
  body.seco-pg-news .seco-news__meta{flex-direction:row;align-items:center}
  body.seco-pg-news .sn-bar{position:static}
  body.seco-pg-news .sn-chips{display:flex;gap:6px;overflow-x:auto;flex-wrap:nowrap;margin:0 -16px;padding:0 16px;scrollbar-width:none}
  body.seco-pg-news .sn-chip{flex:none}
}

html:root body.seco-pg.seco-pg-news #wrapper #mainContentInner #postHeader{display:block!important;padding:0!important;background:transparent!important;border:0!important}
html:root body.seco-pg.seco-pg-news #wrapper #mainContentInner #postContent .c--labeling-act{text-align:left}
html:root body.seco-pg.seco-pg-tools #wrapper #mainContentInner #postContent>.c--labeling-act,
html:root body.seco-pg.seco-pg-news #wrapper #mainContentInner #postContent>.c--labeling-act{padding:4px 0 0!important}
html:root body.seco-pg.seco-pg-news #wrapper #mainContentInner .seco-news{padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important}

/* v1.1 動きの誘導 */
#secoDir.is-typing .sd-search input::placeholder{color:#15221D;opacity:.75}
#secoDir .sd-head{position:relative}
#secoDir .sd-head::after{content:"";position:absolute;left:0;right:0;bottom:4px;height:3px;border-radius:2px;opacity:.7;
  background:linear-gradient(90deg,transparent,#FFE08A,transparent) no-repeat,linear-gradient(90deg,#8B5A2B,#C98A4B,#8B5A2B);
  background-size:140px 100%,100% 100%;background-position:-140px 0,0 0;animation:sdBus 3.4s linear infinite}
@keyframes sdBus{to{background-position:calc(100% + 140px) 0,0 0}}
#secoDir .sd-item.is-in{animation:sdRow .3s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 18ms)}
@keyframes sdRow{from{opacity:0;transform:translateY(8px)}}
#secoDir .sd-chip{transition:transform .12s,background .15s,color .15s,border-color .15s}
#secoDir .sd-chip:active{transform:scale(.95)}
#secoDir .sd-star[aria-pressed="true"]{animation:sdPop .3s ease}
@keyframes sdPop{50%{transform:scale(1.3)}}
@media (prefers-reduced-motion:reduce){#secoDir *,#secoDir .sd-head::after{animation:none!important}}
