/* HLAB-RULES: /page-hlb-design-template.php
 * 資料・実務ツール一覧の基本デザイン v1.3.1 / 2026-11-14
 * index-template.phpだけで読み込む。TOP・説明ページ・操作画面は対象外。
 */
body.hlab-catalog-page{margin:0}
.hlab-catalog--designed{--catalog-accent:#a45a18;--catalog-tint:#fff4df}
.hlab-catalog--designed.hlab-catalog--tools{--catalog-accent:#745184;--catalog-tint:#f7f0fa}
.hlab-catalog--designed .hlab-catalog__page{padding-top:22px;padding-bottom:48px}
.hlab-catalog--designed .hlab-catalog__breadcrumb{line-height:1.8;overflow-wrap:anywhere}
.hlab-catalog--designed .hlab-catalog__hero{border-radius:28px;margin-bottom:24px}
.hlab-catalog--designed .hlab-catalog__intro{border:0;margin:0;padding:0}
.hlab-catalog--designed .hlab-catalog__intro h1{font-size:clamp(28px,2.7vw,36px);line-height:1.45;margin:0;text-wrap:balance}
.hlab-catalog--designed .hlab-catalog__intro p{font-size:16px;line-height:1.85;font-weight:650}
.hlab-catalog--designed .hlab-button{font-size:16px;min-height:50px;max-width:100%;line-height:1.6;text-align:center;overflow-wrap:anywhere;text-decoration:none}
.hlab-catalog--designed .hlab-public-pages__master-image{border-radius:24px;max-height:280px}
.hlab-catalog--designed .hlab-catalog__jump{gap:10px;margin:24px 0;scroll-margin-top:20px}
.hlab-catalog--designed .hlab-catalog__jump a{display:flex;align-items:center;min-height:48px;padding:10px 16px;border-radius:999px;border-color:#dfccb4;background:#fffdf8;font-size:16px;font-weight:700;line-height:1.6;text-underline-offset:4px}
.hlab-catalog--designed .hlab-catalog__jump a:hover{background:var(--catalog-tint)}
.hlab-catalog--designed .hlab-catalog__group{margin:24px 0;padding:26px;border:2px solid rgba(240,138,0,.38);border-top:5px solid #f08a00;border-radius:26px;background:linear-gradient(145deg,rgba(240,138,0,.07),transparent),linear-gradient(180deg,#fff5e8,#f9ead4);box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 8px 20px rgba(105,63,24,.055)}
.hlab-catalog--designed .hlab-catalog__group-head{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:20px;padding-bottom:16px;border-bottom:2px solid #ead9c5}
.hlab-catalog--designed .hlab-catalog__group-head h2{flex:1;min-width:min(200px,100%);margin:0;color:var(--hl-brown);font-size:clamp(22px,2.2vw,28px);line-height:1.5;text-wrap:balance}
.hlab-catalog--designed .hlab-catalog__group-number{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:14px;background:var(--catalog-accent);color:#fff;font-size:18px;font-weight:900}
.hlab-catalog--designed .hlab-catalog__group-count{font-size:14px;font-weight:700;color:#72523c;white-space:nowrap}
/* 無料一覧と同じ色面・丸い装飾アイコン・横幅のあるCTA。
   既存HTMLの名前、説明、リンク、計測、会員別操作は変更しない。 */
.hlab-catalog--designed .hlab-catalog__grid{gap:14px}
.hlab-catalog--designed .hlab-catalog__card{
  border:2px solid var(--card-border);border-radius:18px;
  background:linear-gradient(145deg,var(--card-tint),#fff);box-shadow:none;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.hlab-catalog--designed .hlab-catalog__card:hover{transform:translateY(-2px);border-color:var(--card-color);box-shadow:0 12px 26px rgba(95,62,31,.10)}
.hlab-catalog--designed .hlab-catalog__explanation{
  display:grid;grid-template-columns:50px minmax(0,1fr);grid-template-rows:auto 1fr auto auto;
  gap:10px 14px;align-content:start;align-items:start;padding:18px;
}
.hlab-catalog--designed .hlab-catalog__explanation::before{
  content:"";grid-column:1;grid-row:1 / span 2;display:block;width:50px;height:50px;
  border-radius:50%;background:var(--card-icon) center / 28px 28px no-repeat,var(--card-icon-bg);
}
.hlab-catalog--designed .hlab-catalog__explanation h3{grid-column:2;grid-row:1;font-size:20px;line-height:1.5;margin:0;overflow-wrap:anywhere;color:var(--hl-brown);font-weight:900}
.hlab-catalog--designed .hlab-catalog__explanation p{grid-column:2;grid-row:2;font-size:16px;line-height:1.8;margin:0;color:#604a39;font-weight:650}
.hlab-catalog--designed .hlab-catalog__device{grid-column:2;grid-row:3;justify-self:start;margin:0;padding:5px 9px;border:1px solid rgba(121,87,57,.14);border-radius:999px;background:#fffaf2;color:#5f432f;font-size:14px;line-height:1.6}
.hlab-catalog--designed .hlab-catalog__explanation strong{
  grid-column:1 / -1;grid-row:4;display:flex;justify-content:center;align-items:center;
  align-self:end;width:100%;min-height:44px;margin-top:4px;padding:9px 16px;
  border:0;border-radius:999px;background:linear-gradient(135deg,#ff9b00,#e68000);
  color:#fff;font-size:16px;font-weight:900;line-height:1.6;text-align:center;text-decoration:none;
  box-shadow:0 8px 18px rgba(240,138,0,.16);
}
.hlab-catalog--designed .hlab-catalog__explanation:hover strong{filter:brightness(.97)}
.hlab-catalog--designed .hlab-catalog__explanation:focus-visible{outline-offset:-4px;border-radius:16px}

.hlab-catalog--designed #materials-start .hlab-catalog__card{--card-tint:#fff8ee;--card-color:#9a5200;--card-border:rgba(240,138,0,.30);--card-icon-bg:linear-gradient(145deg,#ffbf2f,#f08a00);--card-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205h7l1%202%201-2h7v15h-7l-1%202-1-2H4zM12%207v13M7%209h2M7%2012h2M15%209h2M15%2012h2%22%2F%3E%3C%2Fsvg%3E")}

.hlab-catalog--designed #materials-continue .hlab-catalog__card{--card-tint:#edf8eb;--card-color:#327443;--card-border:rgba(74,145,82,.30);--card-icon-bg:linear-gradient(145deg,#77b86f,#43884d);--card-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%205H5v16h14V5h-3M8%203h8v4H8zM8%2012l2%202%205-4M8%2018h8%22%2F%3E%3C%2Fsvg%3E")}

.hlab-catalog--designed #materials-grow .hlab-catalog__card{--card-tint:#f6f0ff;--card-color:#6552a0;--card-border:rgba(113,104,171,.30);--card-icon-bg:linear-gradient(145deg,#8d7dc4,#6552a0);--card-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3%2021v-4c0-5%2012-5%2012%200v4M16%204a3%203%200%200%201%200%206M18%2013c3%200%204%202%204%204v4%22%2F%3E%3C%2Fsvg%3E")}

.hlab-catalog--designed #tool-business-record .hlab-catalog__card{--card-tint:#edfafd;--card-color:#26779b;--card-border:rgba(47,133,166,.30);--card-icon-bg:linear-gradient(145deg,#26779b,#36a9b2);--card-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%204h14v18H5zM8%202v4M16%202v4M8%2017v-3M12%2017v-6M16%2017V9%22%2F%3E%3C%2Fsvg%3E")}

.hlab-catalog--designed #tool-customer-management .hlab-catalog__card{--card-tint:#edf8eb;--card-color:#327443;--card-border:rgba(74,145,82,.30);--card-icon-bg:linear-gradient(145deg,#77b86f,#43884d);--card-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%2220%22%20height%3D%2215%22%20rx%3D%222%22%2F%3E%3Ccircle%20cx%3D%228%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20d%3D%22M5%2016c0-4%206-4%206%200M15%2010h4M15%2014h4%22%2F%3E%3C%2Fsvg%3E")}

.hlab-catalog--designed #tool-business-documents .hlab-catalog__card{--card-tint:#fff8ee;--card-color:#9a5200;--card-border:rgba(240,138,0,.30);--card-icon-bg:linear-gradient(145deg,#ffbf2f,#f08a00);--card-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%202h8l4%204v16H6zM14%202v5h4M9%2011h6M9%2015h6M9%2019h4%22%2F%3E%3C%2Fsvg%3E")}

.hlab-catalog--designed #tool-qr-code .hlab-catalog__card{--card-tint:#fff8ee;--card-color:#9a5200;--card-border:rgba(240,138,0,.30);--card-icon-bg:linear-gradient(145deg,#ffbf2f,#f08a00);--card-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203h6v6H3zM15%203h6v6h-6zM3%2015h6v6H3zM15%2015h3v3h3v3h-6zM12%203v6M3%2012h6M12%2012h4M21%2012v3M12%2017v4%22%2F%3E%3C%2Fsvg%3E")}

.hlab-catalog--designed #tool-mercari-shops .hlab-catalog__card{--card-tint:#fff0eb;--card-color:#a63f2c;--card-border:rgba(214,93,61,.30);--card-icon-bg:linear-gradient(145deg,#ef7b5d,#c84f35);--card-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%207%209-5%209%205v11l-9%205-9-5zM3%207l9%205%209-5M12%2012v11M7%205l10%205%22%2F%3E%3C%2Fsvg%3E")}

.hlab-catalog--designed #tool-event-roulette .hlab-catalog__card{--card-tint:#f6f0ff;--card-color:#6552a0;--card-border:rgba(113,104,171,.30);--card-icon-bg:linear-gradient(145deg,#8d7dc4,#6552a0);--card-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%222%22%2F%3E%3Cpath%20d%3D%22M12%203v7M4%207l6%204M4%2017l6-4M12%2014v7M14%2013l6%204M14%2011l6-4%22%2F%3E%3C%2Fsvg%3E")}

.hlab-catalog--designed #tool-store-sound .hlab-catalog__card{--card-tint:#edfafd;--card-color:#26779b;--card-border:rgba(47,133,166,.30);--card-icon-bg:linear-gradient(145deg,#26779b,#36a9b2);--card-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%209h4l7-5v16l-7-5H3zM17%208c3%202%203%206%200%208M20%205c5%204%205%2010%200%2014%22%2F%3E%3C%2Fsvg%3E")}
.hlab-catalog--designed .hlab-catalog__footer a{font-size:16px;line-height:1.8;display:inline-flex;align-items:center;min-height:44px;overflow-wrap:anywhere}
.hlab-catalog--designed a:focus-visible{outline:3px solid #985000;outline-offset:4px}
@media(max-width:900px){
  .hlab-catalog--designed .hlab-catalog__hero{grid-template-columns:minmax(0,1fr);gap:20px}
  .hlab-catalog--designed .hlab-public-pages__master-visual{max-width:460px;margin-inline:auto}
}
@media(max-width:760px){
  .hlab-catalog--designed .hlab-catalog__grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:640px){
  .hlab-catalog--designed .hlab-catalog__page{padding-top:16px}
  .hlab-catalog--designed .hlab-catalog__hero{padding:20px 16px;border-radius:24px}
  .hlab-catalog--designed .hlab-catalog__intro h1{font-size:28px}
  .hlab-catalog--designed .hlab-public-pages__master-actions{display:grid;grid-template-columns:minmax(0,1fr)}
  .hlab-catalog--designed .hlab-catalog__jump{display:grid;grid-template-columns:minmax(0,1fr)}
  .hlab-catalog--designed .hlab-catalog__jump a{border-radius:14px}
  .hlab-catalog--designed .hlab-catalog__group{padding:22px 16px;border-radius:22px}
  .hlab-catalog--designed .hlab-catalog__group-head{gap:10px}
  .hlab-catalog--designed .hlab-catalog__group-head h2{min-width:0;flex-basis:calc(100% - 54px)}
  .hlab-catalog--designed .hlab-catalog__group-count{margin-left:54px}
  .hlab-catalog--designed .hlab-catalog__explanation{padding:18px;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 1fr auto auto;gap:12px}
  .hlab-catalog--designed .hlab-catalog__explanation::before{grid-column:1;grid-row:1}
  .hlab-catalog--designed .hlab-catalog__explanation h3{grid-column:1;grid-row:2}
  .hlab-catalog--designed .hlab-catalog__explanation p{grid-column:1;grid-row:3}
  .hlab-catalog--designed .hlab-catalog__device{grid-column:1;grid-row:4}
  .hlab-catalog--designed .hlab-catalog__explanation strong{grid-column:1;grid-row:5}
  .hlab-catalog--designed .sz-field{display:grid;grid-template-columns:minmax(0,1fr)}
  .hlab-catalog--designed .sz-field label,.hlab-catalog--designed .sz-field input{display:block;width:100%}
}

@media(prefers-reduced-motion:reduce){.hlab-catalog--designed .hlab-catalog__card{transition:none}.hlab-catalog--designed .hlab-catalog__card:hover{transform:none}}

/* 資料一覧：3分類への移動と、画像・用途・操作をひとまとまりにする。 */
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__hero {
  display:block;
  margin:0 0 16px;
  padding:4px 0 16px;
  border:0;
  border-bottom:2px solid #b18b65;
  border-radius:0;
  background:none;
  box-shadow:none;
}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__intro p {
  margin:10px 0 0;
  font-size:16px;
  font-weight:500;
}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__jump {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:16px 0;
  scroll-margin-top:100px;
}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__jump a {
  justify-content:center;
  min-width:0;
  min-height:44px;
  padding:8px 5px;
  border:2px solid #8d6949;
  border-radius:10px;
  font-size:16px;
}
.hlab-catalog--materials #materials-start { --material-accent:#9a5200; --material-tint:#fff8ee; }
.hlab-catalog--materials #materials-continue { --material-accent:#327443; --material-tint:#edf8eb; }
.hlab-catalog--materials #materials-grow { --material-accent:#6552a0; --material-tint:#f6f0ff; }
.hlab-catalog--member-materials #materials-start { --material-accent:#ae405a; --material-tint:#fff4f6; }
.hlab-catalog--member-materials #materials-continue { --material-accent:#2f658d; --material-tint:#f0f7fc; }
.hlab-catalog--member-materials #materials-grow { --material-accent:#3e7153; --material-tint:#f1f8f0; }
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__group {
  margin:20px 0;
  padding:18px;
  border:2px solid #ad8057;
  border-top:4px solid var(--material-accent);
  border-radius:17px;
  background:linear-gradient(145deg,var(--material-tint),#fffdf8);
  scroll-margin-top:100px;
}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__group-head {
  flex-wrap:nowrap;
  gap:8px 12px;
  margin:0 0 16px;
  padding:0;
  border:0;
}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__group-head h2 {
  flex:1;
  min-width:0;
  font-size:24px;
  line-height:1.5;
  text-wrap:wrap;
}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__group-count { margin:0; }
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__card {
  display:grid;
  min-width:0;
  border:2px solid var(--material-accent);
  border-radius:14px;
  background:linear-gradient(145deg,var(--material-tint),#fff);
  scroll-margin-top:100px;
}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__explanation {
  display:grid;
  grid-template-columns:minmax(0,42%) minmax(0,1fr);
  grid-template-rows:auto 1fr auto auto;
  gap:10px 14px;
  align-content:start;
  align-items:start;
  min-width:0;
  min-height:0;
  padding:16px;
  text-decoration:none;
}
.hlab-catalog--materials .hlab-catalog__explanation::before { content:none; }
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__explanation h3 {
  grid-column:1 / -1;
  grid-row:1;
  margin:0;
  font-size:20px;
  font-weight:700;
  line-height:1.5;
}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__material-image {
  grid-column:1;
  grid-row:2;
  align-self:start;
  display:block;
  box-sizing:border-box;
  width:100%;
  max-width:220px;
  height:auto;
  aspect-ratio:320 / 168;
  object-fit:contain;
  border:1px solid #a98463;
  border-radius:9px;
  background:#fffaf2;
}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__explanation p {
  grid-column:2;
  grid-row:2;
  margin:0;
  font-size:16px;
  font-weight:500;
  line-height:1.75;
}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__device {
  grid-column:1 / -1;
  grid-row:3;
  font-size:16px;
}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__explanation strong {
  grid-column:1 / -1;
  grid-row:4;
  justify-self:end;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:auto;
  min-height:44px;
  margin:0;
  padding:6px 14px;
  border:1px solid #795031;
  border-radius:9px;
  background:#fffaf2;
  color:#744014;
  box-shadow:none;
  font-size:16px;
  font-weight:700;
  line-height:1.6;
  white-space:normal;
}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__explanation:focus-visible {
  outline:3px solid #216caa;
  outline-offset:-4px;
  border-radius:11px;
}
@media (max-width:640px) {
  .hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__grid { grid-template-columns:minmax(0,1fr); }
  .hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__group { padding:12px; }
  .hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__group-head h2 { font-size:22px; }
  .hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__explanation { gap:10px; padding:12px; }
  .hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__explanation h3 { font-size:18px; }
}

/* 実務ツール一覧：契約方法の違いを説明し、専用画像から選べる配置。 */
.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__hero {
  display:block;
  margin:0 0 20px;
  padding:4px 0 16px;
  border:0;
  border-bottom:2px solid #b18b65;
  border-radius:0;
  background:none;
  box-shadow:none;
}
.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__intro p {
  margin:10px 0 0;
  font-size:16px;
  font-weight:500;
}
.hlab-catalog--tools .hlab-catalog__tool-sections { scroll-margin-top:12px; }
.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__group {
  margin:20px 0;
  padding:18px;
  border:2px solid #ad8057;
  border-top:4px solid #8062a5;
  border-radius:17px;
}
.hlab-catalog--designed.hlab-catalog--tools #tool-other { border-top-color:#3e7792; }
.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__group-head {
  gap:8px 12px;
  margin:0 0 10px;
  padding:0;
  border:0;
}
.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__group-head h2 {
  flex:1;
  min-width:0;
  font-size:24px;
  line-height:1.5;
  text-wrap:wrap;
}
.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__group-count { margin:0; }
.hlab-catalog--tools .hlab-catalog__group-note {
  margin:0 0 16px;
  color:#604a39;
  font-size:16px;
  font-weight:500;
  line-height:1.8;
}
.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__card {
  --card-color:#8062a5;
  --tool-card-tint:#f9f4ff;
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-rows:1fr auto;
  min-width:0;
  border:2px solid var(--card-color);
  border-radius:14px;
  background:var(--tool-card-tint);
}
.hlab-catalog--tools .hlab-catalog__card:nth-child(4n+2) { --card-color:#3e7792; --tool-card-tint:#f0f8fc; }
.hlab-catalog--tools .hlab-catalog__card:nth-child(4n+3) { --card-color:#b94553; --tool-card-tint:#fff3f2; }
.hlab-catalog--tools .hlab-catalog__card:nth-child(4n+4) { --card-color:#367d5c; --tool-card-tint:#eff9f0; }
.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__explanation {
  position:static;
  display:grid;
  grid-template-columns:minmax(0,42%) minmax(0,1fr);
  grid-template-rows:auto 1fr auto auto;
  gap:10px 14px;
  align-content:start;
  align-items:start;
  min-height:0;
  padding:16px;
  color:#604a39;
  text-decoration:none;
}
.hlab-catalog--tools .hlab-catalog__explanation::before { content:none; }
.hlab-catalog--tools .hlab-catalog__explanation::after {
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
}
.hlab-catalog--tools .hlab-catalog__explanation:focus-visible::after {
  outline:3px solid #216caa;
  outline-offset:3px;
}
.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__explanation h3 {
  grid-column:1 / -1;
  grid-row:1;
  margin:0;
  font-size:20px;
  font-weight:700;
  line-height:1.5;
}
.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__material-image {
  grid-column:1;
  grid-row:2;
  align-self:start;
  display:block;
  box-sizing:border-box;
  width:100%;
  max-width:220px;
  height:auto;
  aspect-ratio:320 / 168;
  object-fit:contain;
  border:1px solid #a98463;
  border-radius:9px;
  background:#fffaf2;
}
.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__explanation p {
  grid-column:2;
  grid-row:2;
  margin:0;
  font-size:16px;
  font-weight:500;
  line-height:1.75;
}
.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__device {
  grid-column:1 / -1;
  grid-row:3;
  justify-self:start;
  margin:0;
  padding:0;
  border:0;
  background:none;
  color:#604a39;
  font-size:16px;
  line-height:1.65;
}
.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__explanation strong {
  grid-column:1 / -1;
  grid-row:4;
  justify-self:end;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:auto;
  min-height:44px;
  margin:0;
  padding:6px 14px;
  border:1px solid #795031;
  border-radius:9px;
  background:#fffaf2;
  color:#744014;
  box-shadow:none;
  font-size:16px;
  font-weight:700;
  line-height:1.6;
  white-space:normal;
}
.hlab-catalog--tools .hlab-catalog__tool-guide {
  position:relative;
  z-index:1;
  justify-self:start;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin:0 16px 8px;
  color:#744014;
  font-size:16px;
  text-decoration:underline;
  text-underline-offset:3px;
}
@media (max-width:640px) {
  .hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__grid { grid-template-columns:minmax(0,1fr); }
  .hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__group { padding:12px; }
  .hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__group-head h2 { font-size:22px; }
  .hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__explanation { gap:10px; padding:12px; }
  .hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__explanation h3 { font-size:18px; }
}

/* 2026-11-14: 共通テンプレートの画面用文字階層。印刷・帳票見本・機能は保持。 */
@media screen {
.hlab-catalog--designed{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans",Meiryo,"Yu Gothic",sans-serif;font-size:16px;font-weight:500;line-height:1.85;letter-spacing:normal}
.hlab-catalog--designed .hlab-catalog__intro h1{font-size:32px;font-weight:750;line-height:1.45}
.hlab-catalog--designed .hlab-catalog__group-head h2{font-size:24px;font-weight:700;line-height:1.5}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__explanation h3,.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__explanation h3{font-size:18px;font-weight:700;line-height:1.6}
.hlab-catalog--designed .hlab-catalog__intro p{font-size:16px;font-weight:500;line-height:1.85}
.hlab-catalog--designed.hlab-catalog--materials .hlab-catalog__explanation p,.hlab-catalog--designed.hlab-catalog--tools .hlab-catalog__explanation p{font-size:16px;font-weight:500;line-height:1.85}
@media(max-width:640px){.hlab-catalog--designed .hlab-catalog__intro h1{font-size:28px}.hlab-catalog--designed .hlab-catalog__group-head h2{font-size:22px}}
}

/* 2026-11-14: 単色指定で消えていた既存の共通背景を画面表示に復元。 */
@media screen {
.hlab-root.hlab-catalog--designed {
  background-color: #fff9ef;
  background-image:
    linear-gradient(rgba(255, 249, 239, 0.84), rgba(255, 249, 239, 0.84)),
    var(--hlab-account-page-bg);
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}
}
@media screen and (max-width: 640px) {
.hlab-root.hlab-catalog--designed { background-attachment: scroll; }
}
