@charset "UTF-8";

/** Housekey responsive adjustments. */
@media (max-width: 959px) {
  .housekey-section { padding-block: var(--housekey-space-lg); }

  #header .l-header__inner {
    height: 4rem;
    min-height: 4rem;
    padding-block: 0.375rem;
  }

  #header .c-headLogo__img {
    width: 100%;
    height: auto;
  }

  #header .c-headLogo {
    width: 8.125rem;
    max-width: none;
  }

  #header .l-header__menuBtn,
  #header .l-header__menuBtn .c-iconBtn,
  #sp_menu .p-spMenu__closeBtn .c-iconBtn {
    min-width: var(--housekey-tap-target);
    min-height: var(--housekey-tap-target);
  }

  #header .l-header__menuBtn .c-iconBtn { color: var(--housekey-navy); }

  #sp_menu .c-spnav a {
    display: flex;
    align-items: center;
    min-height: var(--housekey-tap-target);
    padding-block: 0.75rem;
  }

  .l-footer .l-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .l-footer .l-footer__nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--housekey-tap-target);
    padding: 0.625rem;
  }

  .home .housekey-hero__columns,
  .home .housekey-beginner-cards { grid-template-columns: 1fr; }

  .home .housekey-hero__columns { gap: 1.5rem; }

  .home .housekey-hero__visual img { max-width: 20rem; }

  .home .housekey-beginner-cards { max-width: 40rem; }

  .home .housekey-purpose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .home .housekey-about-card { grid-template-columns: 1fr; }

  .housekey-scroll-hint { display: block; }

  .home .housekey-comparison-section .housekey-scroll-hint { display: none; }

  .home .housekey-comparison-scroll {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .home .housekey-comparison-scroll table,
  .home .housekey-comparison-scroll tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .home .housekey-comparison-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .home .housekey-comparison-scroll tbody tr {
    display: grid;
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--housekey-border-color);
    border-radius: var(--housekey-radius-md);
    background: var(--housekey-white);
    box-shadow: var(--housekey-shadow-subtle);
  }

  .home .housekey-comparison-scroll tbody :is(th, td) {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--housekey-border-color);
    background: var(--housekey-white);
    font-size: 0.9rem;
    line-height: 1.65;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .home .housekey-comparison-scroll tbody th {
    display: block;
    padding-block: 0.875rem;
    background: #EFF6FF;
    color: var(--housekey-navy);
    font-size: 1.0625rem;
    font-weight: 700;
  }

  .home .housekey-comparison-scroll tbody td:last-child { border-bottom: 0; }

  .home .housekey-comparison-scroll tbody td::before {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--housekey-navy);
    font-size: 0.8125rem;
    font-weight: 700;
  }

  .home .housekey-comparison-scroll tbody td:nth-child(2)::before { content: "主な特徴"; }
  .home .housekey-comparison-scroll tbody td:nth-child(3)::before { content: "対応物件"; }
  .home .housekey-comparison-scroll tbody td:nth-child(4)::before { content: "比較するときの視点"; }

  .p-fixBtnWrap {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .p-fixBtnWrap .c-fixBtn {
    width: 3rem;
    height: 3rem;
  }
}

@media (max-width: 599px) {
  .housekey-container { width: min(100% - 1.5rem, var(--housekey-container-width)); }
  .housekey-section { padding-block: var(--housekey-space-md); }
  .housekey-profile { grid-template-columns: 1fr; }

  .housekey-comparison-table-wrapper {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .home .housekey-hero { padding-block: 1.5rem 1.75rem; }

  .home .housekey-hero > .swell-block-fullWide__inner,
  .home .housekey-beginner-section > .swell-block-fullWide__inner,
  .home .housekey-comparison-section > .swell-block-fullWide__inner {
    width: min(calc(100% - 2rem), 70rem);
  }

  .home .housekey-hero__copy h1 {
    margin-block: 0.375rem 0.75rem;
    font-size: clamp(1.875rem, 8vw, 2.125rem);
    line-height: 1.3;
  }

  .home .housekey-hero__copy > p {
    margin-block: 0 0.75rem;
  }

  .home .housekey-hero__columns { gap: 0.875rem; }

  .home .housekey-hero__trust {
    gap: 0.25rem 0.75rem;
    margin-top: 0.75rem;
  }

  .home .housekey-hero__visual img { max-width: min(63vw, 14rem); }

  .home .housekey-comparison-section h2.wp-block-heading {
    padding: 0 0 0.75rem;
    border: 0;
    background: transparent;
    color: var(--housekey-navy);
    font-weight: 700;
    text-align: center;
  }

  .home .housekey-comparison-section h2.wp-block-heading::before {
    display: none;
  }

  .home .housekey-comparison-section h2.wp-block-heading::after {
    display: block;
    width: 2.75rem;
    height: 3px;
    margin: 0.75rem auto 0;
    border-radius: 999px;
    background: var(--housekey-navy);
    content: "";
  }

  .home .housekey-beginner-card {
    width: auto;
    min-height: 0;
    padding: 1.25rem;
  }

  .home .housekey-purpose-grid { grid-template-columns: 1fr; }

  .home .housekey-purpose-card {
    min-height: var(--housekey-tap-target);
    padding: 1rem;
  }

  .home .housekey-section-lead { margin-bottom: 1.5rem; }

  .home .housekey-about-card {
    gap: 1.25rem;
    border-radius: var(--housekey-radius-md);
  }

  .home .housekey-about-card__heading .housekey-section-kicker,
  .home .housekey-about-card__heading .housekey-section-heading {
    text-align: center;
  }

  .home .housekey-featured-slider .swiper:not(.swiper-initialized) {
    overflow: visible;
  }

  .home .housekey-featured-slider .swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 0.875rem;
    width: 100%;
    padding: 0 0.125rem 0.75rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 0.125rem;
    scroll-snap-type: inline mandatory;
    transform: none !important;
    -webkit-overflow-scrolling: touch;
  }

  .home .housekey-featured-slider .swiper:not(.swiper-initialized) .swiper-slide {
    display: block;
    flex: 0 0 calc((100vw - 2.75rem) / 1.18) !important;
    width: calc((100vw - 2.75rem) / 1.18) !important;
    scroll-snap-align: start;
  }

  .home .housekey-featured-slider .swiper:not(.swiper-initialized) .swiper-slide-duplicate { display: none; }

  .home .housekey-featured-slider .swiper:not(.swiper-initialized) .swiper-pagination,
  .home .housekey-featured-slider .swiper:not(.swiper-initialized) .swiper-button-prev,
  .home .housekey-featured-slider .swiper:not(.swiper-initialized) .swiper-button-next { display: none; }

  .l-footer .l-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 0.8125rem;
  }

  .l-footer .l-footer__nav a {
    justify-content: flex-start;
    min-height: var(--housekey-tap-target);
    padding: 0.625rem 0.5rem;
  }
}

@media (min-width: 960px) {
  #header .l-header__bar {
    display: none;
  }

  #header .l-header__inner {
    height: 4.75rem;
    min-height: 4.75rem;
    padding-block: 0.5rem;
    align-items: center;
  }

  #header .l-header__logo {
    height: 100%;
    padding-block: 0;
    align-items: center;
  }

  #header .c-headLogo,
  #header .c-headLogo__link {
    max-height: 100%;
    line-height: 1;
  }

  #header .c-headLogo__img {
    width: auto;
    height: 3.5rem;
    max-height: 100%;
  }

  #gnav .c-gnav > li > a { padding-inline: 0.875rem; }

  #body_wrap.home .l-content.l-container {
    margin-bottom: 0;
  }

  .home .housekey-hero > .swell-block-fullWide__inner {
    width: min(calc(100% - 2rem), 75rem);
    max-width: 75rem;
  }

  .home .housekey-hero__columns {
    gap: 3rem;
  }

  .home .housekey-hero__visual img {
    max-width: 26rem;
  }

  .home .housekey-cta-button {
    min-height: 3.25rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgb(31 41 55 / 10%);
    font-size: 1rem;
  }

  .home .housekey-beginner-section {
    padding-top: 4.75rem;
    padding-bottom: 4rem;
  }

  .home .housekey-beginner-section h2 {
    margin-bottom: 2.25rem;
  }

  .home .housekey-beginner-card h3 {
    margin-bottom: 0.625rem;
  }

  .home .housekey-beginner-card p {
    margin-block: 0 1.125rem;
  }

  .home .housekey-beginner-card .housekey-card-link {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
  }

  .home .housekey-beginner-card:hover .housekey-card-link {
    color: #142A66;
  }

  .home .housekey-comparison-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .home .housekey-comparison-section h2.wp-block-heading {
    padding: 0 0 0.875rem;
    border: 0;
    background: transparent;
    color: var(--housekey-navy);
  }

  .home .housekey-comparison-section h2.wp-block-heading::before {
    display: none;
  }

  .home .housekey-comparison-section h2.wp-block-heading::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 3rem;
    height: 3px;
    border-radius: 999px;
    background: var(--housekey-navy);
    content: "";
    transform: translateX(-50%);
  }

  .home .housekey-comparison-scroll :is(th, td) {
    padding: 0.4375rem 0.75rem;
  }

  .home .housekey-comparison-scroll tbody th {
    color: var(--housekey-navy);
    font-weight: 700;
  }

  .home .housekey-comparison-scroll tbody tr:hover > * {
    background-color: rgb(30 58 138 / 3%);
  }
}
