@media (max-width: 1180px) {
  .site-main,
  .site-header__inner {
    width: min(calc(100% - 48px), var(--container));
    max-width: 100%;
  }

  .site-nav {
    gap: 24px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tag-pills {
    grid-template-columns: repeat(5, 1fr);
  }

  .home-cta-row {
    grid-template-columns: 1fr 1fr;
  }

  .about-cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-main,
  .site-header__inner {
    width: min(calc(100% - 32px), 430px);
    max-width: calc(100% - 32px);
  }

  .site-header__inner {
    justify-content: space-between;
    min-height: 62px;
    gap: 10px;
  }

  .site-header__menu {
    display: inline-flex;
    flex-direction: column;
  }

  .site-logo {
    gap: 7px;
  }

  .site-logo__cat {
    width: 30px;
    height: 30px;
  }

  .site-logo__text {
    font-size: 1.18rem;
  }

  .site-logo__paw {
    font-size: 0.9rem;
  }

  .site-nav {
    position: absolute;
    top: 62px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
  }

  .is-menu-open .site-nav {
    display: flex;
  }

  .site-nav__link {
    padding: 12px;
    font-size: 0.92rem;
  }

  .site-nav__link.is-current::after,
  .site-nav__link.current-menu-item::after,
  .site-nav__link.current_page_item::after,
  .site-nav__link.current-menu-ancestor::after {
    display: none;
  }

  .site-header__search {
    width: 36px;
    height: 36px;
    color: #38231a;
    background: transparent;
    box-shadow: none;
  }

  .home-hero {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    overflow: hidden;
    padding: 18px 0 4px;
  }

  .home-hero::before {
    display: block;
    right: 0;
    top: 54px;
    bottom: auto;
    width: min(50vw, 184px);
    height: 142px;
    border-radius: 28px;
  }

  .home-hero::after {
    display: none;
  }

  .home-hero__content {
    position: relative;
    z-index: 2;
    display: block;
    padding-left: 0;
  }

  .home-hero__label {
    margin-bottom: 10px;
    padding: 3px 12px;
    font-size: 0.74rem;
  }

  .home-hero__title {
    max-width: 188px;
    margin-bottom: 7px;
    font-size: 1.34rem;
    line-height: 1.28;
    letter-spacing: 0.02em;
  }

  .home-hero__lead {
    max-width: 196px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    line-height: 1.48;
  }

  .home-hero__visual {
    position: absolute;
    z-index: 1;
    top: 66px;
    right: 5px;
    width: min(45vw, 164px);
    max-width: 164px;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  .home-hero__visual img {
    width: 100%;
    max-height: 148px;
    margin: 0 auto;
    object-fit: contain;
  }

  .search-box {
    width: 100%;
    max-width: 100%;
    height: 40px;
    margin-top: 0;
    padding-left: 14px;
  }

  .search-box button {
    flex-basis: 64px;
  }

  .home-section {
    margin-top: 28px;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .section-heading h2 {
    font-size: 0.98rem;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .category-card {
    flex-direction: column;
    min-height: 78px;
    padding: 9px 6px;
    text-align: center;
    border-radius: 8px;
  }

  .category-card img {
    width: min(58px, 76%);
    height: 40px;
    margin: 0 0 4px;
    object-fit: contain;
  }

  .category-card span {
    font-size: 0.76rem;
  }

  .category-card--all {
    flex-direction: column;
    align-items: center;
  }

  .category-card__icon {
    font-size: 1.2rem;
  }

  .category-card__arrow {
    display: none;
  }

  .tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .tag-pill {
    min-height: 28px;
    padding: 4px 14px;
    font-size: 0.74rem;
  }

  .home-lists {
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
    max-width: 100%;
  }

  .home-list + .home-list::before {
    display: none;
  }

  .illust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .illust-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .illust-card__title {
    font-size: 0.72rem;
    min-height: calc(0.72rem * 1.4 * 2);
  }

  .illust-card__category {
    padding: 2px 8px;
    font-size: 0.66rem;
  }

  .home-cta-row {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
  }

  .stock-cta {
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 6px;
  }

  .stock-cta strong {
    font-size: 1.05rem;
  }

  .stock-cta span {
    display: none;
  }

  .about-cta {
    grid-template-columns: minmax(0, 1fr) 116px;
    min-height: 100px;
    max-width: 100%;
    border-radius: 8px;
  }

  .about-cta img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .about-cta span {
    padding: 12px 0 12px 14px;
    font-size: 0.72rem;
  }

  .about-cta em {
    width: 126px;
    font-size: 0.72rem;
  }

  .site-footer {
    width: 100%;
    max-width: 100%;
    min-height: 154px;
    margin-top: 36px;
    padding: 58px 16px 22px;
  }

  .site-footer__nav {
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 10px 24px;
    max-width: 100%;
    margin: 0 auto 12px;
    font-size: 0.68rem;
    text-align: center;
  }

  .site-footer__nav a + a::before {
    left: -13px;
    height: 10px;
  }

  .site-footer__cat {
    right: 34px;
    bottom: 18px;
    width: 54px;
  }

  .site-footer__paws {
    right: 12px;
    bottom: 18px;
    font-size: 0.75rem;
  }

  .site-footer__tree {
    display: none;
  }

  .site-footer__tree--small {
    display: none;
  }

  .site-footer__house {
    display: none;
  }

  .single-illust {
    padding-top: 18px;
  }

  .single-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "breadcrumb"
      "header"
      "media"
      "sidebar"
      "content";
    gap: 18px;
  }

  .single-layout__sidebar {
    position: static;
    gap: 12px;
  }

  .breadcrumb {
    gap: 6px;
    font-size: 0.72rem;
  }

  .single-illust__title {
    margin-bottom: 10px;
    font-size: 1.32rem;
    line-height: 1.52;
  }

  .single-labels {
    gap: 7px;
  }

  .single-label {
    min-height: 26px;
    padding: 3px 10px;
    font-size: 0.72rem;
  }

  .single-illust__figure {
    min-height: 310px;
    padding: 14px;
    border-radius: 10px;
  }

  .single-illust__figure img {
    max-height: 390px;
  }

  .single-illust__note {
    font-size: 0.72rem;
  }

  .side-panel,
  .single-section {
    border-radius: 10px;
  }

  .side-panel,
  .single-section {
    padding: 16px;
  }

  .download-panel {
    padding: 0;
  }

  .download-panel h2 {
    padding: 16px 16px 4px;
  }

  .download-panel__lead {
    padding: 0 16px 14px;
    font-size: 0.76rem;
  }

  .download-panel__spec div {
    padding: 13px 16px;
    font-size: 0.82rem;
  }

  .download-button {
    min-height: 48px;
    margin: 16px 16px 10px;
    font-size: 0.9rem;
  }

  .download-panel__note {
    padding: 0 16px 16px;
  }

  .side-panel h2,
  .single-section h2 {
    font-size: 0.98rem;
  }

  .single-use__list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .single-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .single-tags__list {
    gap: 8px;
  }

  .about-page {
    gap: 12px;
    padding-top: 14px;
  }

  .about-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 10px;
  }

  .about-hero__content {
    padding: 22px 16px 10px;
  }

  .about-hero h1 {
    font-size: 1.58rem;
  }

  .about-hero__visual {
    height: 126px;
    padding: 0 28px 0 16px;
    justify-content: center;
  }

  .about-hero__visual::before {
    top: 22px;
    left: 34px;
  }

  .about-hero__visual::after {
    top: 16px;
    right: 42px;
  }

  .about-hero__decoration {
    right: 10px;
    width: calc(100% - 20px);
    height: 126px;
    object-fit: contain;
  }

  .about-hero__image {
    width: min(100%, 128px);
    max-height: 118px;
    object-fit: contain;
  }

  .about-grid--intro,
  .about-grid--middle,
  .about-grid--bottom {
    grid-template-columns: 1fr;
  }

  .about-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .about-card {
    padding: 15px;
    border-radius: 10px;
  }

  .about-card h2 {
    font-size: 1.08rem;
  }

  .about-profile h2 {
    font-size: 1.55rem;
  }

  .about-profile {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
  }

  .about-profile__image {
    width: 66px;
  }

  .about-feature {
    min-height: 0;
    padding: 14px 13px;
  }

  .about-feature__icon {
    width: 42px;
    height: 42px;
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px;
  }

  .about-feature__icon i,
  .about-feature__icon svg {
    width: 32px;
    height: 32px;
    font-size: 32px;
  }

  .about-page .about-commitment .about-feature h3 {
    font-size: 13px;
    line-height: 1.65;
    letter-spacing: -0.02em;
  }

  .about-page .about-commitment .about-feature p {
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: -0.01em;
  }

  .about-link-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-service-link {
    min-height: 48px;
    border-radius: 8px;
  }

  .about-contact__button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .about-page .about-commitment .about-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .terms-page {
    gap: 14px;
    max-width: 100%;
    padding-top: 14px;
  }

  .terms-hero {
    padding: 24px 18px;
    border-radius: 12px;
  }

  .terms-hero h1 {
    font-size: 1.7rem;
  }

  .terms-hero p {
    white-space: normal;
  }

  .privacy-page .privacy-hero__lead {
    white-space: normal;
  }

  .privacy-page .privacy-hero__break {
    display: block;
  }

  .terms-card {
    padding: 18px;
    border-radius: 10px;
  }

  .terms-card h2 {
    font-size: 1.04rem;
  }

  .terms-card h2::before {
    width: 24px;
    height: 24px;
    font-size: 0.78rem;
  }

  .terms-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .terms-list li {
    min-height: 42px;
    padding: 9px 12px 9px 38px;
    border-radius: 8px;
  }

  .contact-form-card {
    padding: 18px;
  }

  .contact-form-card .wpforms-field {
    padding-bottom: 14px;
  }

  .contact-form-card button[type="submit"],
  .contact-form-card .wpforms-submit {
    width: 100%;
    min-width: 0;
  }

  .contact-note {
    font-size: 0.78rem;
    text-align: left;
  }

  .sitemap-content,
  .sitemap-page .sitemap-link-list--pages,
  .sitemap-page .sitemap-link-list--terms,
  .sitemap-page .sitemap-link-list--tags,
  .sitemap-page .sitemap-link-list--external {
    grid-template-columns: 1fr;
  }

  .sitemap-page .sitemap-link-list a {
    min-height: 44px;
    padding: 10px 30px 10px 12px;
    font-size: 0.86rem;
  }

  .archive-page {
    gap: 18px;
    padding-top: 14px;
  }

  .archive-hero {
    gap: 14px;
  }

  .archive-hero h1 {
    margin-bottom: 8px;
    font-size: 1.55rem;
  }

  .archive-hero p {
    font-size: 0.84rem;
    line-height: 1.75;
  }

  .archive-search {
    height: 52px;
    padding: 5px 5px 5px 16px;
  }

  .archive-search svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
  }

  .archive-search input {
    font-size: 0.82rem;
  }

  .archive-search button {
    flex-basis: 62px;
    height: 40px;
    font-size: 0.8rem;
  }

  .archive-filter-card {
    gap: 14px;
    padding: 14px;
  }

  .archive-filter h2 {
    margin-bottom: 9px;
    font-size: 0.9rem;
  }

  .archive-filter__list,
  .archive-filter__list--tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .archive-filter__pill,
  .archive-filter__pose {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
    font-size: 0.84rem;
    border-radius: 10px;
  }

  .archive-toolbar {
    gap: 10px;
  }

  .archive-count {
    font-size: 0.84rem;
  }

  .archive-controls {
    gap: 7px;
  }

  .archive-sort select {
    min-width: 92px;
    height: 36px;
    padding-left: 10px;
    font-size: 0.78rem;
  }

  .archive-results {
    gap: 10px;
  }

  .archive-results .illust-card {
    gap: 7px;
    padding: 8px;
    border-radius: 8px;
  }

  .archive-results .illust-card__title {
    font-size: 0.72rem;
    min-height: calc(0.72rem * 1.4 * 2);
  }

  .archive-pagination {
    gap: 7px;
  }

  .archive-pagination .page-numbers {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .archive-terms-cta {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
    text-align: center;
  }

  .archive-terms-cta__icon {
    justify-self: center;
    width: 40px;
    height: 40px;
  }

  .archive-terms-cta a {
    width: 100%;
    min-width: 0;
  }

  .category-archive-page {
    gap: 16px;
  }

  .category-hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  .category-hero__image {
    min-height: 134px;
    padding: 12px 16px 0;
    background: #eef7ff;
  }

  .category-hero__image img {
    width: min(92%, 250px);
    max-height: 136px;
  }

  .category-hero__body {
    padding: 20px 18px 22px;
    background: #fff;
  }

  .category-hero h1 {
    margin-bottom: 10px;
    font-size: 1.55rem;
  }

  .category-hero p {
    font-size: 0.84rem;
    line-height: 1.85;
  }

  .category-hero__count {
    gap: 8px;
    margin-top: 14px;
    font-size: 0.82rem;
  }

  .category-hero__count strong {
    min-height: 30px;
    padding-inline: 13px;
  }

  .category-filter__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-archive-page .archive-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tag-hero {
    gap: 10px;
    padding: 24px 18px;
  }

  .tag-hero h1 {
    font-size: 1.55rem;
  }

  .tag-hero p {
    font-size: 0.84rem;
    line-height: 1.85;
  }

  .tag-hero__count {
    gap: 8px;
    margin-top: 2px;
    font-size: 0.82rem;
  }

  .tag-hero__count strong {
    min-height: 30px;
    padding-inline: 13px;
  }

  .not-found-page {
    gap: 20px;
    padding-top: 14px;
  }

  .not-found-hero {
    gap: 13px;
    padding: 28px 18px 30px;
  }

  .not-found-page .not-found-hero .not-found-hero__label {
    width: 100%;
    font-size: clamp(4.5rem, 20vw, 6rem);
    text-align: center;
  }

  .not-found-hero__image {
    width: min(100%, 240px);
    min-height: 102px;
  }

  .not-found-hero__image img {
    max-height: 150px;
  }

  .not-found-hero h1 {
    font-size: 1.55rem;
  }

  .not-found-mobile-break {
    display: block;
  }

  .not-found-hero p {
    font-size: 0.84rem;
    line-height: 1.85;
  }

  .not-found-actions {
    width: 100%;
    gap: 9px;
  }

  .not-found-button {
    width: 100%;
    min-width: 0;
  }

  .not-found-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .not-found-category-list a,
  .not-found-category-list span {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.84rem;
  }
}
