  :root {
    --maxw: 1320px;
    --pad: 20px;
    --border: #dedede;
    --border-strong: #b6b6b6;
    --text: #202020;
    --muted: #6d6d6d;
    --bg: #f3f3f2;
    --panel: #ffffff;
    --shadow: 0 2px 10px rgba(37,49,58,.045);
    --accent: #17191b;
    --accent-dark: #000000;
    --accent-weak: #f0f1f1;
    --warning: #f2c94c;
    --warning-soft: #fff8d8;
    --warning-border: #d3aa27;
    --danger: #d84545;
    --radius: 7px;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    font-family: "M PLUS 1p",-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: .01em;
    color: var(--text);
    background: var(--bg);
  }
  h1, h2, h3 { font-weight: 800; }
  button, input, summary { font: inherit; }
  a { color: inherit; text-decoration: none; }
  a:hover { text-decoration: underline; }
  :focus-visible { outline: 3px solid rgba(242,201,76,.78); outline-offset: 3px; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

  header { background: #fff; border-bottom: 1px solid var(--border); }
  .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: var(--pad);
    /* iOS Safari safe-area (notch) handling: prevents subtle left/right offset on some devices */
    padding-left: max(var(--pad), env(safe-area-inset-left));
    padding-right: max(var(--pad), env(safe-area-inset-right));
  }

  .toprow { display:flex; align-items:center; justify-content:space-between; gap: 16px; flex-wrap: wrap; }
  .brand { display:flex; align-items: center; gap: 12px; min-width: 0; }
  .site-name { color: var(--accent); font-size: 25px; margin: 0; font-weight: 800; letter-spacing: .035em; line-height: 1.1; }
  .brand a { text-decoration: none; }
  .brand a:hover { text-decoration: none; }
  .brand .sub { font-size: 12px; color: var(--muted); }

  form.site-search { display:flex; align-items:center; gap: 0; flex: 1 1 380px; justify-content: center; }
  .site-search input[type="text"],
  .site-search input[type="search"] {
    width: min(520px, 100%);
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    background: #fff;
    font-size: 13px;
  }
  .site-search button {
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #fff;
    background: var(--accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
  }
  .site-nav { display: flex; align-items: center; gap: 4px; }
  .site-nav a { min-height: 40px; padding: 9px 10px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
  .site-nav a:hover { color: var(--accent); text-decoration: none; }
  .site-nav .site-nav__shop { border: 1px solid var(--accent); border-radius: var(--radius); color: var(--accent); }
  .site-nav .site-nav__shop:hover { border-color: var(--warning-border); color: var(--accent); background: var(--warning); }
  .site-menu { display: none; }

  .mobile-category-nav { display: none; }

  @media (max-width: 980px) {
    .mobile-category-nav {
      display: block;
      margin-top: 12px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #fff;
      overflow: hidden;
    }
    .mobile-category-nav > summary {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 48px;
      padding: 11px 13px;
      color: var(--accent);
      background: var(--warning-soft);
      cursor: pointer;
      font-size: 14px;
      font-weight: 700;
      list-style: none;
    }
    .mobile-category-nav > summary::-webkit-details-marker,
    .mobile-category-more > summary::-webkit-details-marker { display: none; }
    .mobile-category-nav > summary::after {
      content: '＋';
      margin-left: 2px;
      font-size: 18px;
      line-height: 1;
    }
    .mobile-category-nav[open] > summary::after { content: '−'; }
    .mobile-category-title { flex: 1; }
    .mobile-category-summary-hint {
      color: var(--muted);
      font-size: 11px;
      font-weight: 500;
    }
    .mobile-category-body { padding: 12px; }
    .mobile-category-label {
      margin: 0 0 8px;
      color: var(--muted);
      font-size: 12px;
    }
    .mobile-category-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .mobile-category-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      min-width: 0;
      min-height: 44px;
      padding: 9px 10px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      font-size: 13px;
    }
    .mobile-category-link:hover { text-decoration: none; border-color: var(--border-strong); }
    .mobile-category-link.active { border-color: var(--accent); }
    .mobile-category-link .name {
      min-width: 0;
      font-weight: 700;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .mobile-category-link .catcount {
      min-width: 34px;
      padding-right: 6px;
      padding-left: 6px;
      flex: 0 0 auto;
    }
    .mobile-category-more { margin-top: 10px; }
    .mobile-category-more > summary {
      min-height: 44px;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #f7f7f6;
      color: var(--accent);
      cursor: pointer;
      font-size: 13px;
      font-weight: 700;
      list-style: none;
      text-align: center;
    }
    .mobile-category-more[open] > summary { margin-bottom: 8px; }
  }

  main { padding: var(--pad) 0 28px; }

  .panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--pad);
    box-shadow: var(--shadow);
  }

  .content { display: grid; gap: 24px; align-items: start; }
  /* Allow grid items to shrink below responsive AdSense's intrinsic width. */
  .content > * { min-width: 0; }
  .content.has-sidebar.has-aside { grid-template-columns: 260px minmax(0, 1fr) 320px; }
  .content.has-sidebar:not(.has-aside) { grid-template-columns: 260px minmax(0, 1fr); }
  .content:not(.has-sidebar).has-aside { grid-template-columns: minmax(0, 1fr) 320px; }
  .content:not(.has-sidebar):not(.has-aside) { grid-template-columns: minmax(0, 1fr); }

  @media (max-width: 980px) {
    .content.has-sidebar.has-aside { grid-template-columns: 1fr; }
    .content.has-sidebar:not(.has-aside) { grid-template-columns: 1fr; }
    .content:not(.has-sidebar).has-aside { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
    .aside { order: 3; }
  }

  /* Item page: show right-column info in main on mobile (same order as desktop aside) */
  .aside-mobile { display: none; }
  @media (max-width: 980px) {
    .aside-mobile { display: block; }
    .aside { display: none; }
  }

  /* AdSense: collapse empty slots to avoid mysterious whitespace (e.g., no-fill) */
  ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

  .sidebar .side-title,
  .aside .side-title { font-size: 13px; color: #222; margin: 0 0 10px; display:flex; align-items:center; gap: 6px; }

  .english-quiz-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #d8d1b0;
    border-radius: 12px;
    color: #28261e;
    background: linear-gradient(135deg, #fffdf5 0%, #f7f3df 100%);
    box-shadow: 0 2px 8px rgba(60, 55, 35, .08);
    line-height: 1.35;
    text-decoration: none;
  }
  .english-quiz-card:hover {
    border-color: #9a8b45;
    box-shadow: 0 3px 12px rgba(60, 55, 35, .13);
    text-decoration: none;
  }
  .english-quiz-card__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
    background: #fff3b5;
    font-size: 18px;
  }
  .english-quiz-card__copy { min-width: 0; flex: 1; }
  .english-quiz-card__copy strong { display: block; font-size: 13px; }
  .english-quiz-card__copy small {
    display: block;
    margin-top: 1px;
    color: #6b6447;
    font-size: 10px;
  }
  .english-quiz-card__arrow {
    flex: 0 0 auto;
    color: #7d7242;
    font-size: 22px;
    line-height: 1;
  }
  .english-quiz-card--desktop { margin-bottom: 14px; }
  .english-quiz-card--mobile { display: none; }

  @media (max-width: 980px) {
    .english-quiz-card--desktop { display: none; }
    .english-quiz-card--mobile { display: flex; }
    .item-page .english-quiz-card--mobile { display: none; }
    .english-quiz-card--mobile .english-quiz-card__copy strong { font-size: 14px; }
    .english-quiz-card--mobile .english-quiz-card__copy small { font-size: 11px; }
  }

  .catlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
  .catlist a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    min-height: 44px;
  }
  .catlist a:hover { text-decoration: none; border-color: var(--border-strong); }
  .catlist a.active {
    border-color: var(--warning-border);
    background: var(--warning-soft);
  }
  .catlabel { display:flex; align-items:center; gap: 8px; min-width: 0; overflow: hidden; flex: 1 1 auto; }
  .catlabel span.name { display:block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
  .catcount {
    font-size: 11px;
    color: #454a4d;
    background: #f0f1f1;
    border: 1px solid #d8dcde;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 40px;
    text-align: center;
  }

  .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  @media (max-width: 920px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  .recommendation-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }
  .recommendation-heading { margin: 0; font-size: 16px; line-height: 1.35; }
  .recommendation-lead { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
  .recommendation-shuffle {
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    color: var(--accent);
    background: var(--accent-weak);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }
  .recommendation-shuffle:hover { border-color: var(--accent); }
  .recommendation-shuffle:disabled { cursor: wait; opacity: .7; }
  .recommendation-grid .card img {
    aspect-ratio: 1.414 / 1;
    object-fit: contain;
  }
  .recommendation-ad {
    margin: 24px 0;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    min-width: 0;
    text-align: center;
  }
  .recommendation-ad-label {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .08em;
  }
  .recommendation-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
  .recommendation-ad + .recommendation-grid,
  .recommendation-grid + .recommendation-grid { margin-top: 16px; }
  .recommendation-footer { margin-top: 18px; text-align: center; }
  .recommendation-status {
    min-height: 1.65em;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
  }

  .popular-section {
    margin: 0 0 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
  }
  .popular-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }
  .popular-heading {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
  }
  .popular-lead {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
  }
  .popular-grid .card img {
    aspect-ratio: 1.414 / 1;
    object-fit: contain;
  }
  .ranked-card:hover {
    border-color: var(--border-strong);
    text-decoration: none;
  }
  .ranked-media {
    position: relative;
    background: #f2f2f2;
  }
  .rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    min-width: 38px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    background: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,.16);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
  }
  .ranked-card--top .rank-badge { color: var(--accent); background: var(--warning); }

  @media (max-width: 640px) {
    .recommendation-toolbar { align-items: stretch; flex-direction: column; }
    .recommendation-toolbar .recommendation-shuffle { width: 100%; }
    .popular-heading-row { align-items: stretch; flex-direction: column; }
    .rank-badge { min-width: 34px; font-size: 11px; }
  }

  .card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease; }
  .card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
  .card img { width: 100%; aspect-ratio: 1.414 / 1; object-fit: contain; display: block; background: #f1f1f0; }
  .card .meta { padding: 12px; }
  .card .title { display: -webkit-box; min-height: 2.9em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; margin: 0; font-weight: 700; line-height: 1.45; }
  .card .small { font-size: 12px; color: var(--muted); }

  .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
  }
  .section-head h2,
  .section-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
  }
  .section-head .small {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
  }
  .related-block {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
  .tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
  }
  .tag--cat { background: #f2f3f3; border-color: #d8dcde; color: #454a4d; }
  .tag--lang { background: var(--warning); border-color: var(--warning-border); color: var(--accent); }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--accent);
    background: #f2f3f3;
  }
  a.badge { text-decoration: none; }
  a.badge:hover { text-decoration: none; border-color: var(--border-strong); }

  .kvs { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; margin: 12px 0 0; }
  @media (max-width: 640px) { .kvs { grid-template-columns: 1fr; } }
  .kvs dt { font-weight: 700; color: #222; }
  .kvs dd { margin: 0; color: #222; }

  .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    min-height: 44px;
    border-radius: var(--radius);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
  }
  .btn:hover { text-decoration: none; border-color: #cfcfcf; }
  .btn-dl {
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    font-size: 16px;
    padding: 12px 14px;
    font-weight: 700;
    line-height: 1.25;
  }
  .btn-dl small { font-size: 11px; font-weight: 500; opacity: .82; }
  .btn-pdf { border-color: var(--accent); color: #fff; background: var(--accent); }
  .btn-jpg { border-color: var(--accent); color: var(--accent); background: #fff; }
  .btn-pdf:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
  .btn-jpg:hover { border-color: var(--accent-dark); }

  .heroimg { display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background:#f1f1f0; }
  .heroimg img { width: 100%; max-height: 80vh; height: auto; object-fit: contain; display:block; background:#f1f1f0; }

  .box { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background:#fff; }
  .box h2, .box h3 { margin: 0 0 8px; font-size: 13px; }
  .box p { margin: 0; color: #222; font-size: 13px; }
  .base-product-widget {
    border-color: var(--border-strong);
    background: #f6f6f5;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
  .aside .base-product-widget {
    max-width: none;
  }
  .aside .base-product-widget h2,
  .aside .base-product-widget h3 {
    font-size: 13px;
    line-height: 1.45;
  }
  .base-product-widget__heading-part {
    display: inline;
  }
  .aside .base-product-widget__heading-part {
    display: block;
  }
  .base-product-card {
    display: grid;
    grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
  }
  .base-product-card__image-link { display: block; }
  .base-product-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f3f3f2;
  }
  .base-product-card__body {
    min-width: 0;
    display: grid;
    gap: 10px;
  }
  .base-product-card__title {
    margin: 0;
    color: #202020;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
  }
  .base-product-widget__link {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    border-color: var(--border-strong);
    color: var(--accent);
    background: var(--accent-weak);
    font-weight: 700;
  }
  .aside .base-product-card {
    grid-template-columns: 1fr;
  }
  .aside .base-product-card__image-link {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
  .aside .base-product-card__title {
    text-align: center;
  }
  @media (max-width: 640px) {
    .base-product-card {
      grid-template-columns: 1fr;
    }
    .base-product-card__image-link {
      max-width: 280px;
      margin: 0 auto;
      width: 100%;
    }
    .base-product-card__title {
      text-align: center;
    }
    .base-product-widget__heading-part {
      display: block;
    }
  }
  .aside { font-size: 15px; }
  .aside .box h2, .aside .box h3 { font-size: 15px; }
  .aside .box p { font-size: 15px; }
  .aside .btn { font-size: 14px; }
  .aside .btn.btn-dl { font-size: 22px; }

  .box + .box { margin-top: 14px; }

  .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  @media (max-width: 920px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  .filter-strip {
    margin: 0 0 14px;
  }
  .filter-strip__label {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  .filter-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
  }
  .filter-chip span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }
  .filter-chip:hover,
  .filter-chip.active {
    border-color: var(--warning-border);
    background: var(--warning-soft);
    text-decoration: none;
  }
  .category-status,
  .search-status {
    min-height: 1.65em;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
  }

  .local-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
  }
  .local-search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
  }
  .local-search-form button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    color: var(--accent);
    background: var(--accent-weak);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }
  .local-search-suggestions {
    margin: 0 0 12px;
  }

  .page-title {
    margin: 0 0 18px;
    color: var(--text);
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .01em;
  }
  .home-page .page-panel { padding: clamp(22px, 4vw, 44px); }
  .home-page .page-title { max-width: 980px; margin-bottom: 10px; color: var(--accent-dark); font-size: clamp(30px, 4.1vw, 47px); font-weight: 900; line-height: 1.28; letter-spacing: .015em; }
  .home-lead { max-width: 720px; margin: 0 0 26px; color: var(--muted); font-size: clamp(14px, 1.8vw, 18px); }
  .home-hero { padding: 0 0 clamp(34px, 5vw, 58px); border-bottom: 1px solid var(--border); }
  .hero-search { display: flex; width: min(780px, 100%); }
  .hero-search input {
    min-width: 0;
    flex: 1;
    min-height: 60px;
    padding: 14px 18px;
    border: 2px solid var(--accent);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--text);
    background: #fff;
    font-size: 16px;
  }
  .hero-search button {
    min-height: 60px;
    padding: 12px 24px;
    border: 2px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #fff;
    background: var(--accent);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
  }
  .popular-keywords { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; color: var(--muted); font-size: 12px; }
  .popular-keywords a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
  .home-section { margin: 0; padding: clamp(34px, 5vw, 58px) 0; border-bottom: 1px solid var(--border); }
  .home-section:last-child { border-bottom: 0; padding-bottom: 0; }
  .home-section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
  .home-section h2, .popular-heading, .recommendation-heading { margin: 0; color: var(--text); font-size: clamp(21px, 2.6vw, 29px); font-weight: 800; line-height: 1.4; letter-spacing: .01em; }
  .home-section__head p, .multilingual-section p, .popular-lead, .recommendation-lead { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
  .purpose-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .purpose-card { display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
  .purpose-card:hover { border-color: var(--warning-border); text-decoration: none; }
  .purpose-card__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--warning-border); border-radius: 5px; color: var(--accent); background: var(--warning); font-size: 15px; font-weight: 800; }
  .purpose-card strong, .purpose-card small { display: block; }
  .purpose-card strong { font-size: 14px; font-weight: 700; }
  .purpose-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }
  .purpose-card__arrow { margin-left: auto; color: var(--accent); font-size: 22px; }
  .all-categories { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fafbfb; }
  .all-categories summary { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 700; }
  .all-categories summary:hover { background: var(--warning-soft); }
  .all-category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; padding: 1px; border-top: 1px solid var(--border); background: var(--border); }
  .all-category-grid a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #fff; font-size: 12px; }
  .all-category-grid a span { font-weight: 700; }
  .all-category-grid small { color: var(--muted); }
  .seasonal-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .seasonal-links a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text); font-size: 13px; font-weight: 700; }
  .seasonal-links a:hover { border-color: var(--warning-border); background: var(--warning-soft); text-decoration: none; }
  .seasonal-links span { color: var(--accent); }
  .multilingual-section { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-right: clamp(18px, 4vw, 38px); padding-left: clamp(18px, 4vw, 38px); background: var(--accent-weak); }
  .btn-primary { justify-content: center; border-color: var(--accent); color: #fff; background: var(--accent); font-weight: 700; }
  .btn-secondary { justify-content: center; border-color: var(--accent); color: var(--accent); background: #fff; font-weight: 700; }
  .btn-secondary:hover { border-color: var(--warning-border); background: var(--warning); }
  .download-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .download-choice { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
  .download-choice--free { border-color: var(--warning-border); background: #fffdf3; }
  .download-choice h3 { margin: 0; font-size: 19px; }
  .download-choice > p { min-height: 3em; margin: 8px 0 18px; color: var(--muted); font-size: 14px; }
  .category-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .category-intro p { margin: 0; color: var(--muted); font-size: 14px; }
  .sort-note { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); background: #fafbfb; font-size: 11px; }
  .category-search-form { display: flex; max-width: 620px; margin-bottom: 16px; }
  .category-search-form input { min-width: 0; min-height: 46px; flex: 1; padding: 10px 13px; border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); font-size: 14px; }
  .category-search-form button { min-height: 46px; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; color: #fff; background: var(--accent); cursor: pointer; font-weight: 700; }
  .result-count { margin-bottom: 12px; color: var(--muted); font-size: 12px; }

  .download-actions { display: grid; gap: 10px; }
  .item-mobile-info { margin-top: 14px; }
  .ad-container { max-width: 100%; margin: 28px auto; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
  .ad-label { margin: 0 0 6px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
  .base-product-widget { border-color: var(--border-strong); background: #f6f6f5; }
  .base-product-card__spec { margin: 0; color: var(--accent); font-size: 11px; font-weight: 800; }
  .base-product-card__price { margin: 0; color: var(--text); font-size: 14px; font-weight: 800; }
  .base-product-widget__link { border-color: var(--accent); color: var(--accent); background: #fff; }
  .card-format { display: flex; gap: 5px; margin: 8px 0 0; }
  .card-format span { padding: 2px 5px; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); font-size: 9px; font-weight: 800; }

  .pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
  .pager a { flex: 1; text-align: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
  .pager .spacer { flex: 1; }

  footer { color: var(--muted); font-size: 12px; padding: 24px 0; text-align: center; }

  @media (max-width: 1160px) {
    .site-nav--desktop { order: 3; width: 100%; justify-content: center; padding-top: 10px; border-top: 1px solid var(--border); }
    .purpose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .all-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  @media (max-width: 980px) {
    .site-nav--desktop { display: none; }
    .site-menu { display: block; flex: 0 0 auto; }
    .site-menu > summary { display: flex; align-items: center; min-height: 44px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--accent); cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
    .site-menu > summary::-webkit-details-marker { display: none; }
    .site-menu[open] { width: 100%; }
    .site-nav--mobile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
    .site-nav--mobile a { display: flex; align-items: center; min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
    .site-nav--mobile .site-nav__shop { grid-column: 1 / -1; justify-content: center; }
    .seasonal-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 640px) {
    :root { --pad: 14px; }
    .toprow { align-items: center; }
    .brand { flex: 1; }
    .brand .sub { display: none; }
    .site-name { font-size: 22px; }
    form.site-search { order: 3; width: 100%; flex: 1 0 100%; justify-content: space-between; }
    .site-search input[type="text"], .site-search input[type="search"] { width: 100%; flex: 1; }
    .site-search button { flex: 0 0 auto; }
    .mobile-category-nav { margin-top: 10px; }
    .page-panel { padding: 16px; }
    .home-page .page-panel { padding: 22px 16px; }
    .home-page .page-title { font-size: 32px; }
    .hero-search input { min-height: 54px; font-size: 14px; }
    .hero-search button { min-height: 54px; padding: 10px 14px; font-size: 13px; }
    .purpose-grid, .download-choice-grid { grid-template-columns: 1fr; }
    .purpose-card { min-height: 72px; padding: 12px; }
    .all-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .multilingual-section { align-items: stretch; flex-direction: column; }
    .multilingual-section .btn { width: 100%; }
    .category-intro { align-items: flex-start; flex-direction: column; gap: 8px; }
    .filter-chip { min-height: 40px; }
    .item-page .page-title { font-size: 23px; }
    .item-mobile-info .box { padding: 14px; }
    .item-mobile-info .btn-dl { min-height: 62px; }
  }

  @media (max-width: 380px) {
    .grid, .grid3 { grid-template-columns: 1fr; }
    .all-category-grid { grid-template-columns: 1fr; }
  }
