@charset "UTF-8";

/*
 * MERVELTA TOP mobile canonical v2
 * TOP固有かつ767px以下だけに限定し、記事ページとPC表示へ波及させない。
 */
.home-page .purpose-guide,
.home-page .start-here__heading-mobile,
.home-page .home-resources__heading-mobile,
.home-page .tool-links-mobile,
.home-page .section-head__more,
.home-page .home-sidebar__eyebrow,
.home-page .sidebar-button--mobile-toggle,
.home-page .about__mobile-title,
.home-page .about__text--mobile {
  display: none;
}

/* footer のSP専用要素（`site-footer__mobile-links` / `heading--mobile` /
   `mobile-only`）のPC非表示は `style.css` の site-wide 正本へ移した。 */

@media (max-width: 767px) {
  /* SP header は `style.css` の site-wide 正本（64px / 154x46 / 44pxタップ目標）が
     担うため、ここにあった `.home-page` 版の同値指定は削除した。
     TOPだけがこの値を持つ状態が、他ページとの不統一の原因だった（F027）。 */

  .home-page .hero {
    background: #f3f7fb;
  }

  .home-page .hero__inner {
    min-height: clamp(320px, calc(243px + 21.4vw), 335px);
    padding-block: 12px 0;
  }

  .home-page .hero__copy {
    width: 100%;
  }

  .home-page .hero__name {
    margin-bottom: 4px;
    color: #062855;
    font-family: 'Noto Sans JP', var(--font-sans);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.25;
  }

  .home-page .hero__lead {
    max-width: none;
    color: #4b5563;
    font-family: 'Noto Sans JP', var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
  }

  .home-page .hero__actions {
    width: 100%;
    gap: 10px;
    margin-top: 6px;
  }

  .home-page .blog-button {
    min-width: 0;
    min-height: 52px;
    flex: 1 1 0;
    padding: 10px 8px;
    gap: 6px;
    border-radius: 7px;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
  }

  .home-page .hero__art {
    inset: auto auto 0 -6%;
    width: 112%;
  }

  .home-page .quick-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding-block: 14px 8px;
  }

  .home-page .quick-nav a {
    height: 72px;
    min-height: 72px;
    padding: 7px 2px;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
  }

  .home-page .quick-nav__icon {
    width: 34px;
    height: 34px;
  }

  .home-page .quick-nav__text {
    display: block;
  }

  .home-page .quick-nav__title {
    display: block;
    font-size: 10.5px;
    line-height: 1.35;
    white-space: nowrap;
  }

  .home-page .quick-nav__desc {
    display: none;
  }

  .home-page .pickup {
    position: relative;
    padding-bottom: 34px;
    margin-right: -5px;
    margin-bottom: -40px;
    margin-left: -5px;
  }

  .home-page .pickup__head {
    display: grid;
    margin-bottom: 5px;
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }

  .home-page .pickup__heading {
    min-width: 0;
  }

  .home-page .pickup .section-head__label {
    margin-bottom: 3px;
  }

  .home-page .pickup__more {
    align-self: end;
    padding-bottom: 3px;
  }

  .home-page .pickup__more::after {
    content: " →";
  }

  .home-page .pickup__nav {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    gap: 8px;
  }

  .home-page .pickup__btn {
    width: 32px;
    height: 32px;
  }

  .home-page .pickup__layout {
    display: block;
  }

  .home-page .pickup-side {
    display: none;
  }

  .home-page .pickup-lead {
    touch-action: pan-y;
  }

  .home-page .pickup-lead__item .article-entry__link {
    min-height: 0;
    grid-template-columns: 40% minmax(0, 1fr);
    border-radius: 7px;
  }

  .home-page .pickup-lead__item .article-thumb {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .home-page .pickup-lead__item h3 {
    padding: 3px 12px 0;
    align-self: end;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
  }

  .home-page .pickup-lead__item .story-meta {
    padding: 1px 12px 5px;
    align-self: start;
    font-size: 11px;
    line-height: 1.45;
  }

  .home-page .pickup-lead__item .story-meta__cat {
    top: 8px;
    left: 8px;
    padding: 2px 10px;
    font-size: 10.5px;
    line-height: 1.45;
  }

  .home-page .start-here .section-head {
    margin-bottom: 10px;
  }

  .home-page .start-here {
    margin-right: -5px;
    margin-bottom: -22px;
    margin-left: -5px;
  }

  .home-page .start-here .section-head__label {
    margin-bottom: 3px;
  }

  .home-page .start-here__heading-desktop,
  .home-page .start-here > .section-intro,
  .home-page .start-here > .start-steps {
    display: none;
  }

  .home-page .start-here__heading-mobile,
  .home-page .purpose-guide {
    display: block;
  }

  .home-page .purpose-guide__track {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-page .purpose-guide__track::-webkit-scrollbar {
    display: none;
  }

  .home-page .purpose-guide__card {
    min-width: 100%;
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .home-page .purpose-guide__card a,
  .home-page .purpose-guide__card img {
    display: block;
    width: 100%;
  }

  .home-page .purpose-guide__card img {
    height: auto;
  }

  .home-page .purpose-guide__pagination {
    display: flex;
    margin-top: 7px;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .home-page .purpose-guide__dot {
    display: inline-flex;
    width: 28px;
    height: 28px;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .home-page .purpose-guide__dot::before {
    width: 7px;
    height: 7px;
    background: #c9d8e8;
    border-radius: 50%;
    content: "";
  }

  .home-page .purpose-guide__dot.is-active::before {
    width: 9px;
    height: 9px;
    background: #1763ba;
  }

  /* TOPの同階層見出しは、単一のmobile typography systemを使う。 */
  .home-page :is(.home-topics, .home-resources, .new-articles) .section-head {
    margin-bottom: 10px;
  }

  .home-page :is(.pickup, .start-here, .home-topics, .home-resources, .new-articles) .section-head__label {
    font-family: 'Noto Sans JP', var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.5;
  }

  .home-page :is(.pickup, .start-here, .home-topics, .home-resources, .new-articles) .section-head h2 {
    font-family: 'Noto Sans JP', var(--font-sans);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.4;
  }

  .home-page :is(.home-topics__heading-row, .home-resources__heading-row, .new-articles__heading-row) {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }

  .home-page :is(.home-topics, .home-resources, .new-articles) .section-head__more,
  .home-page .pickup__more {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 3px;
    color: #1763ba;
    font-family: 'Noto Sans JP', var(--font-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.5;
    white-space: nowrap;
  }

  .home-page .home-topics {
    margin-right: -10px;
    margin-left: -10px;
  }

  .home-page .home-topics__intro,
  .home-page .home-resources__intro,
  .home-page .home-resources__heading-desktop {
    display: none;
  }

  .home-page .home-resources__heading-mobile {
    display: inline;
  }

  .home-page .home-resources .tool-links--desktop {
    display: none;
  }

  .home-page .home-resources .tool-links-mobile {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    list-style: none;
  }

  .home-page .home-resources .tool-links-mobile > li {
    display: flex;
    min-width: 0;
    min-height: 82px;
    padding: 8px 4px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 6px;
    text-align: center;
  }

  .home-page .home-resources .tool-links-mobile__icon {
    display: flex;
    width: 27px;
    height: 27px;
    flex: none;
    align-items: center;
    justify-content: center;
  }

  .home-page .home-resources .tool-links-mobile__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.8);
    transform-origin: center;
  }

  .home-page .home-resources .tool-links-mobile__name {
    color: #062855;
    font-family: 'Noto Sans JP', var(--font-sans);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.45;
  }

  .home-page .home-resources .tool-links-mobile__name > span {
    display: block;
    white-space: nowrap;
  }

  .home-page .home-topics .concern-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
  }

  .home-page .home-topics .concern-links li,
  .home-page .home-topics .concern-links li:last-child {
    width: auto;
    min-width: 0;
    grid-column: auto;
    justify-self: stretch;
  }

  .home-page .home-topics .concern-links a {
    display: flex;
    min-height: 82px;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    background: #fff;
    border: 0;
    border-radius: 7px;
    box-shadow: inset 0 0 0 1px #e1eaf4;
    overflow: hidden;
    font-family: 'Noto Sans JP', var(--font-sans);
    font-size: 11.75px;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
  }

  .home-page .home-topics .concern-links__icon {
    display: block;
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    background: transparent;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
  }

  .home-page .home-topics .concern-links__icon picture,
  .home-page .home-topics .concern-links__icon img {
    display: block;
    width: 100%;
    height: auto;
  }

  .home-page .home-topics .concern-links a > span:last-child {
    display: flex;
    width: 100%;
    min-height: 25px;
    padding: 3px 0 4px;
    align-items: center;
    justify-content: center;
    color: #062855;
    text-align: center;
  }

  .home-page .home-main > .home-resources {
    margin-top: 27px;
  }

  .home-page .home-main > .home-resources + .new-articles {
    margin-top: 24px;
  }

  .home-page .new-articles > .new-articles__more {
    display: none;
  }

  .home-page .new-articles .article-preview:nth-child(n+4) {
    display: none;
  }

  /* TOP後半：PC用3カラムの内容を、正本のスマホ順へ1列で並べ直す。 */
  .home-page .editorial {
    padding-bottom: 30px;
  }

  .home-page .editorial__grid {
    gap: 0;
  }

  .home-page .home-sidebar--middle,
  .home-page .home-sidebar--right {
    padding-top: 0;
    border-top: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .home-sidebar--middle {
    margin-top: 30px;
  }

  .home-page .home-sidebar--right {
    margin-top: 28px;
    gap: 28px;
  }

  .home-page .home-sidebar__card--recent,
  .home-page .home-sidebar__message {
    display: none;
  }

  .home-page .home-sidebar__card--categories,
  .home-page .home-sidebar__card--tools,
  .home-page .home-sidebar__card--about {
    position: relative;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .home-page .home-sidebar__eyebrow {
    display: block;
    margin: 0 0 2px;
    padding: 0;
    color: #1763ba;
    font-family: 'Noto Sans JP', var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 15px;
  }

  .home-page :is(.home-sidebar__card--categories, .home-sidebar__card--tools, .home-sidebar__card--about) > h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    padding: 0;
    color: #062855;
    background: transparent;
    border: 0;
    font-family: 'Noto Sans JP', var(--font-sans);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 29.4px;
  }

  .home-page .home-sidebar__card--categories .home-sidebar__cats {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce6f1;
    border-radius: 6px;
  }

  .home-page .home-sidebar__card--categories .home-sidebar__cats li + li {
    border-top: 1px solid #e5edf6;
  }

  .home-page .home-sidebar__card--categories .home-sidebar__cats a {
    min-height: 46px;
    padding: 9px 14px;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 12px;
    color: #18345f;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
  }

  .home-page .home-sidebar__card--categories .home-sidebar__catname {
    font-family: 'Noto Sans JP', var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
  }

  .home-page .home-sidebar__card--categories .home-sidebar__cats a::after {
    color: #6d8db5;
    content: "›";
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    opacity: 0.65;
  }

  .home-page .home-sidebar__card--categories .home-sidebar__caticon {
    width: 23px;
    height: 23px;
  }

  .home-page :is(.home-sidebar__card--tools, .home-sidebar__card--about)::before {
    position: absolute;
    z-index: 0;
    top: 56px;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    border: 1px solid #dce6f1;
    border-radius: 6px;
    content: "";
  }

  .home-page :is(.home-sidebar__card--tools, .home-sidebar__card--about) > :not(.home-sidebar__eyebrow) {
    position: relative;
    z-index: 1;
  }

  .home-page .home-sidebar__card--tools > p:not(.home-sidebar__eyebrow) {
    margin: 0;
    padding: 14px 16px 0;
    color: #506582;
    font-family: 'Noto Sans JP', var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
  }

  .home-page .home-sidebar--right .home-sidebar__visual {
    margin: 12px 16px 0;
    border-radius: 6px;
  }

  .home-page .home-sidebar__card--tools .home-sidebar__visual {
    aspect-ratio: 2.2 / 1;
  }

  .home-page .home-sidebar__card--about .home-sidebar__visual {
    margin-top: 14px;
    aspect-ratio: 2.45 / 1;
  }

  .home-page .home-sidebar__card--about > p:not(.home-sidebar__eyebrow) {
    margin: 0;
    padding: 13px 16px 0;
    color: #18345f;
    font-family: 'Noto Sans JP', var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
    text-wrap: pretty;
  }

  .home-page .home-sidebar--right .sidebar-button {
    position: relative;
    z-index: 1;
    display: flex;
    width: calc(100% - 32px);
    height: 44px;
    margin: 14px 16px 16px;
    padding: 0 34px;
    align-items: center;
    justify-content: center;
    color: #1763ba;
    background: #fff;
    border: 1px solid #1763ba;
    border-radius: 5px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
  }

  .home-page .home-sidebar--right .sidebar-button::after {
    position: absolute;
    right: 14px;
    content: "›";
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
  }

  .home-page .home-sidebar--right .sidebar-button--desktop {
    display: none;
  }

  .home-page .sidebar-button--mobile-toggle {
    cursor: pointer;
  }

  .home-page .about {
    display: none;
    padding-block: 26px 28px;
    background: #f4f8fd;
  }

  .home-page .about.is-expanded {
    display: block;
  }

  .home-page .about__inner {
    text-align: left;
  }

  .home-page .about .section-head__label {
    margin-bottom: 5px;
    color: #1763ba;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.5;
  }

  .home-page .about__mobile-title {
    display: block;
    margin: 0 0 8px;
    color: #062855;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.4;
  }

  .home-page .about__text--desktop {
    display: none;
  }

  .home-page .about__text--mobile {
    display: block;
    color: #18345f;
    font-size: 13.5px;
    line-height: 1.8;
    text-wrap: pretty;
    word-break: auto-phrase;
    line-break: strict;
  }

  /* SP footer も `style.css` の site-wide 正本へ移した。
     TOPのSP実測値（padding 28/20px・カテゴリー6件のorder・10.5/11/11.5px）は
     そのまま正本へ引き継いでいる。 */

}
