:root{
  --yellow:#f7c948;
  --yellow-deep:#f0b429;
  --navy:#1f2a44;
  --ink:#27303f;
  --ink-soft:#3b4453;
  --gray:#73808c;
  --gray-soft:#94a0ac;
  --line:#e7eaee;
  --line-soft:#eef1f4;
  --bg:#eef0f3;
  --blue:#2f6fed;
  --blue-soft:#eaf1fd;
  --free:#2f9e63;
  --free-bg:#e7f6ee;
  --paid:#d9822b;
  --paid-bg:#fdf0e6;
  --new:#f4517a;
  --new-bg:#fde8ee;
  --shadow:0 1px 2px rgba(28,38,54,.04),0 1px 3px rgba(28,38,54,.06);
}
*{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{
  font-family:"Noto Sans JP",-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  line-height:1.5;
}
.app{
  max-width:1672px;
  margin:0 auto;
  background:#fff;
  min-height:100vh;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line);
}
svg{display:block}
button{font-family:inherit;cursor:pointer;border:none;background:none}
a{color:inherit;text-decoration:none}

/* ============ TOP BAR ============ */
.topbar{
  display:flex;align-items:center;gap:28px;
  height:80px;padding:0 30px;
  border-bottom:1px solid var(--line);
  background:#fff;
  position:sticky;top:0;z-index:50;
}
.brand{display:flex;align-items:center;gap:14px;flex-shrink:0}
.brand-logo{display:flex;align-items:center;gap:9px}
.brand-mark{width:34px;height:34px;flex-shrink:0}
.brand-name{font-weight:900;font-size:25px;letter-spacing:-.02em;color:#101418}
.brand-sub{font-size:16px;color:#8a96a3;font-weight:500;letter-spacing:.01em;white-space:nowrap}

.search{flex:1;max-width:none;position:relative;display:flex;align-items:center}
.search input{
  width:100%;height:46px;
  border:1.5px solid var(--line);
  border-radius:24px;
  background:#fff;
  padding:0 20px 0 50px;
  font-size:15px;font-family:inherit;color:var(--ink);
  transition:border-color .15s, box-shadow .15s;
}
.search input::placeholder{color:#9aa6b2}
.search input:focus{outline:none;border-color:#c9d6f0;box-shadow:0 0 0 4px rgba(47,111,237,.08)}
.search .ico-search{position:absolute;left:20px;color:#9aa6b2}

.topbar-right{display:flex;align-items:center;gap:16px;flex-shrink:0}
.topbar-spacer{flex:1}
.topbar-vendor{display:flex;align-items:center;gap:8px;white-space:nowrap;transition:opacity .12s}
.topbar-vendor:hover{opacity:.78}
.vendor-label{font-size:11px;color:#9aa6b2;font-weight:600}
.vendor-logo{height:38px;width:auto;display:block}
.nav-cta{
  display:inline-flex;align-items:center;
  background:var(--navy);color:#fff;font-weight:700;font-size:14px;
  padding:11px 20px;border-radius:10px;white-space:nowrap;
  box-shadow:0 2px 8px rgba(31,42,68,.16);transition:transform .12s,box-shadow .12s;
}
.nav-cta:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(31,42,68,.24)}

/* ============ LAYOUT ============ */
.layout{display:grid;grid-template-columns:262px 1fr 312px}

/* ============ LEFT SIDEBAR ============ */
.sidebar{
  border-right:1px solid var(--line);
  padding:20px 16px 24px;
  display:flex;flex-direction:column;
}
.nav{display:flex;flex-direction:column;gap:2px}
.nav-item{
  display:flex;align-items:center;gap:13px;
  height:44px;padding:0 14px;border-radius:11px;
  font-size:14.5px;font-weight:500;color:#4a5563;
  transition:background .12s,color .12s;
}
.nav-item .ni{color:#8893a0;flex-shrink:0;transition:color .12s}
.nav-item:hover{background:#f5f6f8}
.nav-item.active{background:#e9f1fc;color:#1c4fb3;font-weight:700}
.nav-item.active .ni{color:#2f6fed}

.cat-head{
  font-size:11.5px;font-weight:700;color:#9aa6b2;
  letter-spacing:.08em;padding:0 14px;margin:26px 0 10px;
}
.cat{display:flex;flex-direction:column;gap:1px}
.cat-item{
  display:flex;align-items:center;gap:11px;
  height:40px;padding:0 14px;border-radius:10px;
  font-size:13.5px;color:#56616e;font-weight:500;
  transition:background .12s,color .12s;cursor:pointer;
}
.cat-item:hover{background:#f5f6f8}
.cat-item.active{background:#e9f1fc;color:#1c4fb3;font-weight:700}
.ci-dot{width:8px;height:8px;border-radius:50%;background:#c2cdd9;flex-shrink:0}
.cat-item.active .ci-dot{background:#2f6fed}
.ci-label{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cat-count{font-size:12px;color:#9aa6b2;font-weight:700}
.cat-item.active .cat-count{color:#5b86d6}

.dev-card{
  margin-top:26px;
  background:linear-gradient(160deg,#f3f7fe 0%,#eef3fb 100%);
  border:1px solid #e4ecf7;
  border-radius:16px;padding:20px 18px;
  position:relative;overflow:hidden;
}
.dev-card h4{font-size:15px;font-weight:700;color:var(--ink);line-height:1.45;margin-bottom:8px}
.dev-card p{font-size:12.5px;color:#6b7785;line-height:1.6;margin-bottom:16px}
.dev-card .puzzle-bg{position:absolute;right:-18px;bottom:-20px;opacity:.5}
.dev-btn{
  display:inline-flex;align-items:center;gap:7px;
  background:#fff;border:1.5px solid #d7e2f4;
  color:#2f6fed;font-weight:700;font-size:13px;
  padding:9px 16px;border-radius:10px;
  box-shadow:0 1px 2px rgba(47,111,237,.06);
  position:relative;z-index:1;
}
.dev-btn:hover{background:#f8fbff}

/* ============ MAIN ============ */
.main{padding:24px 30px 40px;min-width:0;background:#fcfcfd}

/* HERO */
.hero{
  border-radius:18px;overflow:hidden;
  background:linear-gradient(105deg,#fdeec0 0%,#fbf0d2 30%,#f1eef6 64%,#e9eefb 100%);
  display:flex;align-items:center;
  padding:38px 40px;gap:24px;
  position:relative;min-height:230px;
  border:1px solid #f0ead9;
}
.hero-copy{flex:1;min-width:0;z-index:2}
.hero-copy h1{font-size:31px;font-weight:900;line-height:1.34;color:#22324a;letter-spacing:-.01em;margin-bottom:14px}
.hero-copy .lead{font-size:15px;color:#56616e;margin-bottom:26px;font-weight:500;max-width:560px}
.hero-btns{display:flex;gap:14px;flex-wrap:wrap}
.btn-primary{
  background:#1f2a44;color:#fff;font-weight:700;font-size:14.5px;
  padding:13px 26px;border-radius:11px;
  box-shadow:0 4px 12px rgba(31,42,68,.18);
  transition:transform .12s, box-shadow .12s;
}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(31,42,68,.24)}
.btn-outline{
  display:inline-flex;align-items:center;
  background:rgba(255,255,255,.7);color:#2c3850;font-weight:700;font-size:14.5px;
  padding:13px 24px;border-radius:11px;border:1.5px solid #d9d2c4;
  transition:background .12s;
}
.btn-outline:hover{background:#fff}
.hero-art{width:420px;height:230px;flex-shrink:0;position:relative;z-index:1}

/* SECTION */
.section{margin-top:30px;scroll-margin-top:96px}
.sec-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:12px}
.sec-head h2{font-size:19px;font-weight:700;color:#222b38;letter-spacing:.01em}
.result-count{font-size:13px;color:#9aa6b2;font-weight:600;white-space:nowrap}
.see-all{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#5b86d6;font-weight:600}
.see-all:hover{color:#2f6fed}

/* filter chips */
.filter-chips{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:18px}
.chip{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;color:#56616e;font-weight:600;
  background:#f3f5f8;border:1px solid transparent;
  padding:7px 14px;border-radius:20px;transition:background .12s,color .12s,border-color .12s;
}
.chip span{font-size:11.5px;color:#9aa6b2;font-weight:700}
.chip:hover{background:#e9edf2}
.chip.active{background:#e9f1fc;color:#1c4fb3;border-color:#cfe0fa}
.chip.active span{color:#5b86d6}

/* card layouts — 最低224pxを保ちつつ行幅いっぱいに均等配置（余白を出さない） */
.card-row,.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(224px,100%),1fr));gap:18px}

.pcard{
  background:#fff;border:1px solid var(--line);
  border-radius:15px;padding:18px 17px 16px;
  display:flex;flex-direction:column;
  transition:box-shadow .15s, border-color .15s, transform .15s;
}
.pcard:hover{box-shadow:0 8px 22px rgba(28,38,54,.09);border-color:#dde2e8;transform:translateY(-2px)}
.pcard-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:15px}
.app-icon{
  width:52px;height:52px;border-radius:14px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;color:#fff;
  box-shadow:0 3px 8px rgba(28,38,54,.12);
}
/* プラグインの実アイコン画像を表示するとき（アイコン画像フィールド使用時） */
.app-icon.has-img{background:#fff;border:1px solid var(--line);box-shadow:0 1px 3px rgba(28,38,54,.1);overflow:hidden}
.app-icon.has-img img{width:100%;height:100%;object-fit:cover;display:block}
.new-badge{
  font-size:11px;font-weight:700;color:var(--new);
  background:var(--new-bg);border-radius:6px;padding:3px 8px;letter-spacing:.04em;
}
.pcard h3{font-size:15.5px;font-weight:700;color:#222b38;margin-bottom:7px;line-height:1.35}
.pcard .desc{font-size:12.5px;color:#76818d;line-height:1.55;margin-bottom:16px;flex:1}
.pcard-bottom{display:flex;align-items:center;gap:8px}

/* pills */
.pill{font-size:11.5px;font-weight:700;border-radius:7px;padding:4px 9px;white-space:nowrap;letter-spacing:.02em}
.pill-free{color:var(--free);background:var(--free-bg)}
.pill-paid{color:var(--paid);background:var(--paid-bg)}
.pill-cat{color:#6b7785;background:#f1f3f6;font-weight:600}
.pill-ver{color:#5b86d6;background:#eef2fb}
.tag-pill{font-size:11.5px;color:#6b7785;background:#f1f3f6;border-radius:7px;padding:4px 9px;font-weight:500;white-space:nowrap;margin-left:auto}

.empty-state{padding:48px 0;text-align:center;color:#9aa6b2;font-size:14px}
.load-error{padding:30px 0;color:#76818d;font-size:13.5px;line-height:1.7}
.load-error code{background:#f1f3f6;padding:2px 7px;border-radius:5px;font-size:12.5px}

/* ============ RIGHT SIDEBAR ============ */
.rightbar{
  border-left:1px solid var(--line);
  padding:24px 22px 40px;background:#fcfcfd;
  display:flex;flex-direction:column;gap:20px;
}
.rcard{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px 19px}
.rcard-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.rcard-head h3{font-size:16px;font-weight:700;color:#222b38;white-space:nowrap}

.trust-card{text-align:center;padding:24px 19px}
.trust-logo-img{width:100%;max-width:188px;height:auto;margin:2px auto 14px;display:block}
.trust-card h3{font-size:15.5px;font-weight:700;color:#222b38;margin-bottom:8px}
.trust-card p{font-size:12.5px;color:#6b7785;line-height:1.7;margin-bottom:16px}
.trust-btn{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;font-weight:700;color:#2f6fed;
  border:1.5px solid #d7e2f4;border-radius:10px;padding:9px 16px;transition:background .12s;
}
.trust-btn:hover{background:#f8fbff}

.cta-card h3{font-size:15px;font-weight:700;color:#222b38;line-height:1.45;margin-bottom:8px}
.cta-card p{font-size:12.5px;color:#6b7785;line-height:1.6;margin-bottom:14px}
.new-plugin-btn{
  width:100%;display:flex;align-items:center;justify-content:center;gap:8px;
  border:1.5px dashed #b9cdf2;color:#2f6fed;background:#f7faff;
  font-weight:700;font-size:14px;padding:13px;border-radius:12px;transition:background .12s;
}
.new-plugin-btn:hover{background:#eef4ff}

.tags{display:flex;flex-wrap:wrap;gap:9px}
.tag{
  font-size:12.5px;color:#5b86d6;background:#f1f5fd;
  border:1px solid #e4ecf9;border-radius:8px;padding:6px 11px;font-weight:500;transition:background .12s;
}
.tag:hover{background:#e9f1fd}

/* ============ FOOTER ============ */
.site-footer{
  border-top:1px solid var(--line);
  padding:22px 30px;display:flex;align-items:center;justify-content:space-between;
  gap:14px;flex-wrap:wrap;font-size:12.5px;color:#8a96a3;
}
.site-footer a{color:#5b86d6;font-weight:600}
.footer-brand{display:flex;align-items:center;gap:14px}
.footer-logo{height:42px;width:auto;display:block}

/* ============ DETAIL PAGE ============ */
.detail-main{max-width:860px;margin:0 auto;padding:28px 30px 48px}
.back-link{display:inline-block;font-size:13px;color:#5b86d6;font-weight:600;margin-bottom:22px}
.back-link:hover{color:#2f6fed}
.detail-head{display:flex;gap:20px;align-items:flex-start;margin-bottom:24px}
.detail-icon{width:72px;height:72px;border-radius:18px;border-radius:18px}
.detail-icon svg{width:36px;height:36px}
.detail-headmeta{min-width:0}
.detail-pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.detail-headmeta h1{font-size:25px;font-weight:900;color:#1c2433;line-height:1.3;letter-spacing:-.01em;margin-bottom:8px}
.detail-catch{font-size:14.5px;color:#56616e;font-weight:500;margin-bottom:8px}
.detail-vendor{font-size:12.5px;color:#9aa6b2}
.detail-vendor a{color:#5b86d6;font-weight:600}

.cta-block{
  background:#fbfcfe;border:1px solid var(--line);border-radius:16px;
  padding:22px 24px;margin-bottom:28px;
}
.dl-btn,.contact-btn{
  display:inline-flex;align-items:center;gap:10px;
  font-weight:700;font-size:15px;padding:14px 28px;border-radius:12px;
}
.dl-btn{background:var(--navy);color:#fff;box-shadow:0 4px 12px rgba(31,42,68,.18);transition:transform .12s,box-shadow .12s}
.dl-btn:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(31,42,68,.24)}
.dl-btn[disabled]{background:#c2cad3;box-shadow:none;cursor:default;transform:none}
.dl-size{font-size:12px;font-weight:600;opacity:.8}
.contact-btn{background:var(--yellow-deep);color:#5a3d00;box-shadow:0 4px 12px rgba(240,180,41,.28);transition:transform .12s,box-shadow .12s}
.contact-btn:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(240,180,41,.36)}
.cta-note{font-size:12.5px;color:#8a96a3;margin-top:12px;line-height:1.6}

/* スクリーンショット カルーセル（詳細ページ・概要の上） */
.gallery-sec{margin-bottom:28px}
.gallery{position:relative;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#f4f6f9}
.gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.gallery-track::-webkit-scrollbar{display:none}
.gallery-slide{flex:0 0 100%;width:100%;height:auto;max-height:480px;object-fit:contain;background:#fff;scroll-snap-align:center;display:block}
.gallery-prev,.gallery-next{
  position:absolute;top:50%;transform:translateY(-50%);
  width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.94);
  box-shadow:0 2px 10px rgba(28,38,54,.18);
  display:flex;align-items:center;justify-content:center;
  font-size:24px;line-height:1;color:#3a4350;padding-bottom:3px;transition:background .12s;
}
.gallery-prev{left:12px}.gallery-next{right:12px}
.gallery-prev:hover,.gallery-next:hover{background:#fff}
.gallery-dots{position:absolute;bottom:12px;left:0;right:0;display:flex;justify-content:center;gap:7px}
.gallery-dot{width:8px;height:8px;border-radius:50%;background:rgba(40,50,70,.3);transition:background .12s,transform .12s}
.gallery-dot.active{background:#fff;box-shadow:0 0 0 1.5px rgba(40,50,70,.35);transform:scale(1.15)}

.detail-sec{margin-bottom:30px}
.detail-sec h2{font-size:17px;font-weight:700;color:#222b38;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--line-soft)}
.detail-summary{font-size:14px;color:#46505d;line-height:1.85}
.manual{font-size:13.5px;color:#46505d;line-height:1.8}
.manual h2,.manual h3,.manual h4{margin:18px 0 8px;color:#222b38}
.manual h2{font-size:16px}.manual h3{font-size:15px}.manual h4{font-size:14px}
.manual p{margin:8px 0}
.manual ul,.manual ol{margin:8px 0 8px 22px}
.manual li{margin:4px 0}
.manual code{background:#f1f3f6;padding:2px 6px;border-radius:5px;font-size:12.5px}
.manual a{color:#2f6fed;font-weight:600}

.ver-list{list-style:none;display:flex;flex-direction:column;gap:0}
.ver-list li{padding:13px 0;border-bottom:1px solid var(--line-soft)}
.ver-list li:last-child{border-bottom:none}
.ver-head{display:flex;align-items:baseline;gap:12px;margin-bottom:4px}
.ver-name{font-size:14px;font-weight:700;color:#2f6fed}
.ver-date{font-size:12px;color:#9aa6b2}
.ver-note{font-size:12.5px;color:#6b7785;line-height:1.7}

/* ============ CONTACT MODAL ============ */
.contact-modal{
  position:fixed;inset:0;z-index:200;
  display:none;align-items:flex-start;justify-content:center;
  background:rgba(20,28,44,.5);
  padding:44px 16px;overflow-y:auto;
}
.contact-modal.open{display:flex}
.cm-card{
  background:#fff;border-radius:18px;width:100%;max-width:520px;
  padding:28px 28px 24px;position:relative;margin:auto;
  box-shadow:0 20px 60px rgba(20,28,44,.32);
  animation:cm-in .18s ease-out;
}
@keyframes cm-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.cm-close{
  position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:#6b7785;transition:background .12s;
}
.cm-close:hover{background:#f3f5f7}
.cm-head{margin-bottom:18px;padding-right:30px}
.cm-head h3{font-size:20px;font-weight:700;color:#222b38;margin-bottom:6px}
.cm-sub{font-size:13px;color:#6b7785;line-height:1.6}
.cm-target{background:#f1f5fd;border:1px solid #e4ecf9;border-radius:10px;padding:10px 14px;font-size:13px;color:#46505d;margin-bottom:16px}
.cm-target b{color:#1c4fb3;font-weight:700}
.cm-field{margin-bottom:14px}
.cm-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cm-field label{display:block;font-size:12.5px;font-weight:600;color:#46505d;margin-bottom:6px}
.cm-req{color:#fff;background:var(--new);font-size:10px;font-weight:700;padding:1px 6px;border-radius:5px;margin-left:4px}
.cm-field input,.cm-field textarea{
  width:100%;border:1.5px solid var(--line);border-radius:10px;
  padding:11px 13px;font-size:14px;font-family:inherit;color:var(--ink);background:#fff;
  transition:border-color .15s,box-shadow .15s;
}
.cm-field textarea{resize:vertical;min-height:84px}
.cm-field input:focus,.cm-field textarea:focus{outline:none;border-color:#c9d6f0;box-shadow:0 0 0 4px rgba(47,111,237,.08)}
.cm-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.cm-submit{
  width:100%;margin-top:6px;background:var(--navy);color:#fff;
  font-weight:700;font-size:15px;padding:14px;border-radius:12px;
  box-shadow:0 4px 12px rgba(31,42,68,.18);transition:transform .12s,box-shadow .12s,background .12s;
}
.cm-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 16px rgba(31,42,68,.24)}
.cm-submit:disabled{background:#9aa6b2;box-shadow:none;cursor:default}
.cm-note{font-size:11.5px;color:#9aa6b2;text-align:center;margin-top:10px}
.cm-status{font-size:13px;text-align:center;margin-top:10px;line-height:1.6}
.cm-status.ok{color:#2f9e63;font-weight:700}
.cm-status.err{color:#d64545;font-weight:700}

/* ============ RESPONSIVE ============ */
@media(max-width:1400px){
  .layout{grid-template-columns:248px 1fr}
  .rightbar{display:none}
}
@media(max-width:820px){
  .layout{grid-template-columns:1fr}
  .sidebar{display:none}
  .search{display:none}
  .topbar-vendor{display:none}
  .hero-art{display:none}
}
@media(max-width:560px){
  /* ---- topbar（はみ出し防止＝コンパクト化） ---- */
  .topbar{height:58px;padding:0 14px;gap:10px}
  .brand{gap:8px}
  .brand-logo{gap:7px}
  .brand-mark{width:28px;height:28px}
  .brand-name{font-size:19px}
  .brand-sub{display:none}
  .nav-cta{padding:9px 14px;font-size:13px}

  /* ---- main / hero ---- */
  .main{padding:16px 14px 32px}
  .hero{padding:22px 18px;min-height:auto;border-radius:14px;gap:0}
  .hero-copy h1{font-size:21px;line-height:1.4;margin-bottom:10px}
  .hero-copy .lead{font-size:13px;margin-bottom:18px}
  .hero-btns{gap:10px}
  .btn-primary,.btn-outline{flex:1;justify-content:center;text-align:center;padding:12px 14px;font-size:13.5px}

  /* ---- sections / cards ---- */
  .section{margin-top:24px;scroll-margin-top:70px}
  .sec-head h2{font-size:16.5px}
  .card-row,.card-grid{grid-template-columns:1fr;gap:14px}
  .filter-chips{gap:7px;margin-bottom:14px}

  /* ---- detail page ---- */
  .detail-main{padding:18px 16px 36px}
  .detail-head{flex-direction:column;gap:14px}
  .detail-icon{width:60px;height:60px;border-radius:15px}
  .detail-headmeta h1{font-size:20px}
  .cta-block{padding:18px 16px}
  .dl-btn,.contact-btn{width:100%;justify-content:center}
  .gallery-slide{max-height:300px}
  .detail-sec h2{font-size:16px}

  /* ---- footer ---- */
  .site-footer{padding:18px 16px;flex-direction:column;align-items:flex-start;gap:10px}

  /* ---- contact modal ---- */
  .contact-modal{padding:14px 10px}
  .cm-card{padding:22px 18px;border-radius:16px}
  .cm-row{grid-template-columns:1fr}
}
