/* Mobile layout for 排水マスター. */
@media (max-width: 760px) {
  .main :is(h1, h2, h3), .list__body .t, .curated-card__body h3 {
    overflow-wrap: anywhere;
  }

  .main :is(h1, h2), .sec__head h2, .curated__head h2 {
    text-wrap: balance;
    word-break: auto-phrase;
  }

  .main .home-article-dates {
    color: var(--ink-soft, #465754);
  }

  .card--img > .home-article-dates {
    margin: 0;
    padding: .46rem 1.15rem .84rem;
  }

  .main .toc > summary, .main .toc li > a {
    min-height: 44px;
  }

  .main .toc li > a {
    overflow-wrap: anywhere;
    align-items: start;
  }

  .main .hm-choice select, .main form :is(input:not([type]), input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
    min-width: 0;
    max-width: 100%;
    font-size: max(16px, 1em);
  }

  .main .hm-choice select, .main form :is(input:not([type]), input[type="text"], input[type="email"], input[type="tel"], select) {
    min-height: 44px;
  }

  .hm-quick .hm-quick-card, .hm-quick .hm-quick-go, .hm-quick .hm-quick-step::before {
    animation: none;
  }

  .hm-quick .hm-quick-card:hover, .hm-quick .hm-quick-card:focus-visible {
    transform: none;
  }

  .hm-quick .hm-quick-back, .hm-quick .hm-diagnosis-rakuten a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .hm-quick .hm-diagnosis-rakuten a {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #91bac9;
    border-radius: 7px;
    background: #fff;
    color: #075675;
  }
}

@media (max-width: 540px) {
  .hero {
    min-height: 0;
  }

  .hero .hero__copy {
    max-width: 100%;
    padding: 23px 18px 24px;
  }

  .hero .hero__eyebrow {
    margin-bottom: 12px;
    letter-spacing: .055em;
  }

  .hero #hero-title {
    margin-bottom: 13px;
    font-size: clamp(25px, 7vw, 33px);
    line-height: 1.36;
  }

  .hero .hero__typed {
    animation: none;
    clip-path: none;
  }

  .hero .hero__lead {
    margin: 0 0 13px;
    font-size: 16px;
    line-height: 1.66;
  }

  .hero .hero__steps {
    gap: 4px 10px;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.42;
  }

  .hero .hero__steps > span + span::before {
    margin-right: 8px;
  }

  .hero .hero__acts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .hero .hero__acts a.btn,
  .hero .hero__acts a.btn--teal {
    width: 100%;
    min-height: 52px;
    padding: 10px 12px;
    line-height: 1.45;
    font-size: 16px;
    text-align: center;
    white-space: normal;
  }

  .hero .hero__acts a.btn--teal {
    animation: none;
    box-shadow: none;
  }

  .hero .hero__acts a.btn--teal span[aria-hidden="true"] {
    display: none;
  }

  .sec__head > h2, .curated__head h2 {
    font-size: clamp(18px, 5.4vw, 25px);
    line-height: 1.4;
  }

  .curated-card {
    grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
  }

  .curated-card__media {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: auto;
    min-height: 0;
    padding: 10px 0 10px 10px;
    background: transparent;
  }

  .curated-card__img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 7px;
  }

  .curated-card__tag {
    position: static;
    max-width: 100%;
    padding: 3px 5px;
    border-radius: 5px;
    font-size: 11px;
    text-align: start;
    background: var(--accent-sft);
    color: var(--accent-dk);
  }

  .curated-card__body {
    gap: 6px;
    min-width: 0;
    padding: 10px 12px;
  }

  .list .list__img {
    width: clamp(70px, 23vw, 94px);
    height: auto;
    aspect-ratio: 16 / 11;
  }

  .chips--cat a {
    min-height: 44px;
  }
}
