/*
 * ひとり商いラボ 会員資料の共通文字階層・作業領域
 * v1.7 / 2026-11-03
 * 旧版に重複していたPC/スマホ・compact・追記の文字指定を一本化する。
 * 既存の18資料だけへ適用。契約画面・データ・縮小見本・印刷は対象外。
 */
@media screen {
  body.hlab-material-typography-page,
  .hlab-material-typography-page .hlab-root {
    --hlab-material-title-size: clamp(28px, 3.2vw, 34px);
    --hlab-material-subtitle-size: 18px;
    --hlab-material-lead-size: 16px;
    --hlab-material-section-title-size: 23px;
    --hlab-material-reading-size: 16px;
    --hlab-material-dense-reading-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", Meiryo, "Yu Gothic", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: normal;
    color: #403027;
  }
  .hlab-material-typography-page .hlab-root :is(p,li,td,dt,dd,label,input,textarea,select):not(:where(.hl-sheet-preview-doc *, .hl-sheet-print-sheet *, .hlab-material-print *)) {
    font-size: 16px !important;
    line-height: 1.8;
  }
  .hlab-material-typography-page .hlab-root :is(small,th,summary,button):not(:where(.hl-sheet-preview-doc *, .hl-sheet-print-sheet *, .hlab-material-print *, .hlab-account__confidential *)) {
    font-size: 14px;
    line-height: 1.65;
  }
  .hlab-material-typography-page .hlab-root :is(input,textarea,select,button) { font-family: inherit; }
  .hlab-material-typography-page .hlab-root :is(label > span,label > strong,.sz-field > span) { font-size:16px; }
  .hlab-material-typography-page .hlab-root :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),textarea,select) {
    min-width: 0; max-width: 100%; min-height:44px;
  }
  .hlab-material-typography-page .hlab-root :is(button,summary) { min-height:44px; }
  .hlab-material-typography-page .hlab-root :is(button,a,summary):focus-visible { outline:3px solid #9d530d;outline-offset:3px; }
  .hlab-material-typography-page .hlab-root :is(.hl-lead p,.hl-sheet-page-head__lead,.hl-monthly-lead p,.hl-content p,.hl-group__intro,.hl-sheet-phase-divider p,.hl-sheet-viewpoint__copy p) {
    font-weight:500;line-height:1.85;color:#403027;
  }
  .hlab-material-typography-page :is(.hl-title,.hl-sheet-page-head h1,.hl-monthly-hero h1) { font-size:var(--hlab-material-title-size);line-height:1.4; }
  .hlab-material-typography-page :is(.hl-subtitle,.hl-monthly-subtitle) { font-size:var(--hlab-material-subtitle-size);line-height:1.6; }
  .hlab-material-typography-page :is(.hl-group__head h2,.hl-monthly-group__head h2) { font-size:var(--hlab-material-section-title-size);line-height:1.5; }
  .hlab-material-typography-page .hlab-root :is([class$="__breadcrumb"],.hl-plan-breadcrumb,.hl-sheet-breadcrumb) {font-size:14px;line-height:1.7;}
  .hlab-material-typography-page .hlab-root :is([class$="__breadcrumb"],.hl-plan-breadcrumb,.hl-sheet-breadcrumb) :is(a,strong) {font-size:inherit;}
  .hlab-material-typography-page .hlab-root :is(.hlab-ui-block__body p,.hlab-roadmap-note-guide__hint > strong) {font-size:16px!important;}
  .hlab-material-typography-page .hlab-root :is(.hl-label,.hl-property-compare__head > span,.hl-compact-toc__label,.hl-mid-review__summary > span,.hl-action-status > span,.hl-monthly-number-card > span,.hl-monthly-privacy > span,.hl-monthly-privacy > strong,.hl-monthly-goal > span,.hl-check-work__count,.hlab-ui-block__label,.hl-compact-toc a,.hl-inline-action,.hl-progress-link,.hl-unchecked-group__back,.hl-unchecked-summary__count > span,.hl-monthly-related__grid > a > span,.hlab-monthly-check__migration-note span,.hl-monthly-number-card em,.hl-calculation-status) {font-size:14px;}
  .hlab-material-typography-page :is(.hl-sheet-learning-guide summary small,.hl-sheet-learning-guide__grid p) {line-height:1.8;}

  /* 役割別の枠とアイコンは既存の意味・形を保持する。 */
  .hlab-material-typography-page .hlab-root :is(.hl-note,.hl-monthly-note,.hl-warning,.hl-goal,.hl-card-note,.hl-result-note,.hl-source-note) {
    position:relative;box-sizing:border-box;font-size:14px!important;line-height:1.8!important;box-shadow:none!important;
  }
  .hlab-material-typography-page .hlab-root :is(.hl-note,.hl-goal) :is(strong,a) {font-size:inherit;}
  .hlab-material-typography-page :is(.hl-note,.hl-monthly-note) {
    margin-top:14px!important;padding:10px 12px 10px 38px!important;border:1px solid #dfd4ca!important;border-left:3px solid #b69a7c!important;border-radius:8px!important;background:#fffdf9!important;color:#514035!important;font-weight:600!important;
  }
  .hlab-material-typography-page :is(.hl-note,.hl-monthly-note)::before {
    content:""!important;position:absolute;top:12px;left:12px;width:16px;height:16px;background:#795f4a!important;mask:url('../icons/role-hint.svg') center/contain no-repeat;-webkit-mask:url('../icons/role-hint.svg') center/contain no-repeat;
  }
  .hlab-material-typography-page .hl-warning {
    margin-top:14px!important;padding:11px 13px 11px 42px!important;border:1px solid #dfb78f!important;border-left:5px solid #b96424!important;border-radius:9px!important;background:#fffdf9!important;color:#633b20!important;font-weight:700!important;
  }
  .hlab-material-typography-page .hl-warning::before {
    content:""!important;position:absolute;top:13px;left:14px;width:17px;height:17px;background:#a65220!important;mask:url('../icons/role-warning.svg') center/contain no-repeat;-webkit-mask:url('../icons/role-warning.svg') center/contain no-repeat;
  }
  .hlab-material-typography-page .hl-goal {
    margin-top:14px!important;padding:10px 12px 10px 39px!important;border:1px solid #ded4cb!important;border-left:3px solid #9b8b80!important;border-radius:10px!important;background:#fffdf9!important;color:#514035!important;font-weight:700!important;
  }
  .hlab-material-typography-page .hl-goal::before {
    content:""!important;position:absolute;top:12px;left:12px;width:17px;height:17px;background:#66554b!important;mask:url('../icons/role-check.svg') center/contain no-repeat;-webkit-mask:url('../icons/role-check.svg') center/contain no-repeat;
  }
  .hlab-material-typography-page .hl-example-box {margin-top:14px;padding:11px 13px;border:1px dashed #bda993;border-radius:10px;background:#fcf9f5;font-size:14px;line-height:1.8;}
  .hlab-material-typography-page .hl-source-note {padding:8px 10px 8px 28px!important;border:0;border-top:1px dashed #c8b7a7;border-radius:0;background:transparent;color:#625044;font-weight:500;}
  .hlab-material-typography-page .hl-source-note::before {content:"";position:absolute;top:11px;left:7px;width:14px;height:14px;background:#7c6b61;mask:url('../icons/role-info.svg') center/contain no-repeat;-webkit-mask:url('../icons/role-info.svg') center/contain no-repeat;}
  .hlab-material-typography-page .hl-monthly-privacy {position:relative;margin:0 0 18px!important;padding:10px 12px 10px 39px!important;border:1px solid #d8cbc0!important;border-left:3px solid #9b8b80!important;border-radius:9px!important;background:#fcf9f5!important;color:#514035!important;}
  .hlab-material-typography-page .hl-monthly-privacy::before {content:"";position:absolute;top:12px;left:12px;width:17px;height:17px;background:#716158;mask:url('../icons/role-info.svg') center/contain no-repeat;-webkit-mask:url('../icons/role-info.svg') center/contain no-repeat;}
  .hlab-material-typography-page :is(.hl-summary,.hl-summary-box,.hl-message) {box-sizing:border-box;border-color:#d6c7ba!important;border-top:4px solid #8b6d5a!important;background:#fffcf7!important;box-shadow:none!important;}
  .hlab-material-typography-page .hl-summary {margin-top:24px;padding:clamp(18px,2.4vw,26px);border:1px solid #d6c7ba;border-radius:20px!important;}
  .hlab-material-typography-page :is(.hl-summary h2,.hl-next-materials h2) {font-size:var(--hlab-material-section-title-size)!important;line-height:1.5!important;}
  .hlab-material-typography-page .hl-summary h2 {margin-top:0;}
  .hlab-material-typography-page .hl-summary h2::before {content:"";display:inline-block;width:1em;height:1em;margin-right:8px;vertical-align:-.12em;background:#70594b;mask:url('../icons/role-notebook.svg') center/contain no-repeat;-webkit-mask:url('../icons/role-notebook.svg') center/contain no-repeat;}
  .hlab-material-typography-page .hl-message {margin-top:20px!important;padding:16px 18px!important;border-radius:16px!important;color:#4a271b!important;font-size:clamp(16px,2vw,19px)!important;line-height:1.8!important;font-weight:700!important;}
  .hlab-material-typography-page :is(.hl-check-card,.hl-check-card:nth-child(even)) {border-color:#e0d4c8!important;background:#fffdf9!important;box-shadow:none!important;}
  .hlab-material-typography-page :is(.hl-final-message,.hl-monthly-goal) {position:relative;box-sizing:border-box;margin-top:20px!important;padding:15px 17px 15px 45px!important;border:1px solid #d6c7ba!important;border-top:4px solid #8b6d5a!important;border-radius:16px!important;background:#fffcf7!important;color:#4a271b!important;box-shadow:none!important;}
  .hlab-material-typography-page :is(.hl-final-message,.hl-monthly-goal)::before {content:"";position:absolute;top:16px;left:16px;width:19px;height:19px;background:#70594b;mask:url('../icons/role-notebook.svg') center/contain no-repeat;-webkit-mask:url('../icons/role-notebook.svg') center/contain no-repeat;}
  .hlab-material-typography-page :is(.hl-card-note,.hl-result-note) {color:#625044!important;}
  .hlab-material-typography-page :is(.hl-print-help,.hl-pdf-ready) {border-radius:9px!important;box-shadow:none!important;}
  .hlab-material-typography-page .hl-section > .hlab-material-note-control:last-child {margin-bottom:0;}
  .hlab-material-typography-page .hl-section {scroll-margin-top:132px;scroll-margin-bottom:90px;}

  /* 本文の上に点在していた固定操作を同じ不透明な操作帯へ置く。 */
  .hlab-material-typography-page .hlab-root {padding-bottom:calc(90px + env(safe-area-inset-bottom));}
  .hlab-material-typography-page .hlab-root::after {content:"";position:fixed;z-index:1000;left:0;right:0;bottom:0;height:calc(72px + env(safe-area-inset-bottom));border-top:1px solid #d5c5b5;background:#fffdf8;box-shadow:0 -3px 12px #4a241408;pointer-events:none;}
  html:has(body.hlab-material-typography-page) {scroll-padding-bottom:calc(90px + env(safe-area-inset-bottom));scroll-padding-top:132px;}
  .hlab-material-typography-page .hlab-account__member-top {position:fixed;z-index:1200;right:16px;bottom:calc(14px + env(safe-area-inset-bottom));min-height:44px;width:112px;min-width:112px;font-size:14px;box-shadow:none;}
  .hlab-material-typography-page .hl-sheet-floating-open {right:140px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:1200;min-width:96px;min-height:44px;box-shadow:none;}
  .hlab-material-typography-page .hlab-material-floating-wrap {right:140px;bottom:calc(14px + env(safe-area-inset-bottom));}
  .hlab-material-typography-page .hlab-material-floating-open {min-width:96px;min-height:44px;box-shadow:none;}
  .hlab-material-typography-page .hlab-material-floating-wrap:has(.hlab-material-floating:not([hidden])) {right:14px;bottom:calc(84px + env(safe-area-inset-bottom));}
  .hlab-material-typography-page .hl-sheet-floating-note {right:14px;bottom:calc(84px + env(safe-area-inset-bottom));max-height:min(540px,calc(100dvh - 180px));}
  .hlab-material-typography-page .hlab-material-floating {max-height:calc(100dvh - 180px);overflow:auto;}
  body.hlab-material-typography-page .hlab-line-support {bottom:calc(11px + env(safe-area-inset-bottom));box-shadow:none;box-sizing:border-box;height:50px;min-height:50px;}
  .hlab-material-typography-page .hlab-account__top-inner {min-height:80px;gap:16px;}
  .hlab-material-typography-page .hlab-account__logo {width:190px;flex-shrink:0;}
  .hlab-material-typography-page .hlab-account__top-actions {flex-wrap:wrap;}
  .hlab-material-typography-page .hlab-account__top-actions a {font-size:14px;min-height:44px;}
  .hlab-material-typography-page .hlab-account .hlab-account__top-actions > a:not(.hlab-account__logout):not(.hlab-account__login),
  .hlab-material-typography-page .hlab-account__member-top {color:#4a2414!important;}
  @media(max-width:640px) {
    .hlab-material-typography-page .hlab-root {--hlab-material-title-size:clamp(26px,8vw,30px);--hlab-material-section-title-size:21px;}
    .hlab-material-typography-page .hlab-root .sz-field {display:grid;grid-template-columns:minmax(0,1fr);gap:6px;}
    .hlab-material-typography-page .hlab-account__top-inner {position:relative;gap:8px;min-height:84px;padding-block:6px;}
    .hlab-material-typography-page .hlab-account__logo {width:128px;align-self:flex-start;}
    .hlab-material-typography-page .hlab-account__confidential {position:absolute;left:0;bottom:5px;}
    .hlab-material-typography-page .hlab-account__top-actions {gap:6px;flex-wrap:nowrap;}
    .hlab-material-typography-page .hlab-account__top-actions a {padding-inline:5px;white-space:nowrap;}
    .hlab-material-typography-page .hlab-account__member-top {right:12px;width:96px;min-width:96px;padding-inline:10px;}
    .hlab-material-typography-page .hl-sheet-floating-open,
    .hlab-material-typography-page .hlab-material-floating-wrap {right:120px;}
    .hlab-material-typography-page .hl-sheet-floating-open,
    .hlab-material-typography-page .hlab-material-floating-open {min-width:90px;padding-inline:12px;}
    .hlab-material-typography-page .hl-sheet-floating-note,
    .hlab-material-typography-page .hlab-material-floating-wrap:has(.hlab-material-floating:not([hidden])) {right:12px;}
    body.hlab-material-typography-page .hlab-line-support {bottom:calc(12px + env(safe-area-inset-bottom));height:48px;min-height:48px;}
    .hlab-material-typography-page .hl-summary {margin-top:20px;padding:16px;}
  }
  @media(max-width:350px) {.hlab-material-typography-page .hlab-account__logo{width:88px;} .hlab-material-typography-page .hlab-account__top-actions a{padding-inline:2px;}}
}
@media print {
  .hlab-material-typography-page .hlab-root {--hlab-material-title-size:initial;--hlab-material-subtitle-size:initial;--hlab-material-lead-size:initial;--hlab-material-section-title-size:initial;--hlab-material-reading-size:initial;--hlab-material-dense-reading-size:initial;}
  .hlab-material-typography-page .hlab-root::after,
  .hlab-material-typography-page .hlab-material-notes-intro,
  .hlab-material-typography-page .hlab-material-note-control,
  .hlab-material-floating-wrap,
  .hlab-material-notebook-modal {display:none!important;}
}
