@layer legacy, reset, base, components, layout, pages, utilities;
@layer pages {
  body {
    font-family: var(--font-family);
  }
  body:not(:has(.hf-contents-color-layout)) .l-signup {
    margin-top: var(--space-5xl-sp);
  }
  @media print, screen and (width >= 768px) {
    body:not(:has(.hf-contents-color-layout)) .l-signup {
      margin-top: var(--space-5xl-pc);
    }
  }
  .hf-text-size-large {
    font-size: 1.125rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-text-size-large {
      font-size: 1.25rem;
    }
  }
  .text-size-medium {
    font-size: 1rem;
  }
  @media print, screen and (width >= 768px) {
    .text-size-medium {
      font-size: 1.125rem;
    }
  }
  .hf-text-size-extra-small,
  .hf-text-size-super-small {
    font-size: 0.75rem;
  }
  .hf-main {
    padding-top: 0;
  }
  @media print, screen and (width >= 768px) {
    .hf-hide-from-medium-screen {
      display: none;
    }
  }
  @media all and (min-width: 980px) {
    .hf-hide-from-large-screen {
      display: none;
    }
  }
  .hf-show-from-medium-screen {
    display: none;
  }
  @media print, screen and (width >= 768px) {
    .hf-show-from-medium-screen {
      display: block;
    }
  }
  .hf-show-from-large-screen {
    display: none;
  }
  @media all and (min-width: 980px) {
    .hf-show-from-large-screen {
      display: block;
    }
  }
  .hf-contents-color-layout {
    margin-bottom: 0;
  }
  .hf-local-nav {
    margin-right: -15px;
    margin-left: -15px;
  }
  @media print, screen and (width >= 768px) {
    .hf-local-nav {
      margin-right: 0;
      margin-left: 0;
    }
  }
  .hf-local-nav__item a {
    font-size: 1rem;
    color: var(--primary-pink);
  }
  .hf-local-nav__item a::after {
    width: 16px;
    height: 16px;
  }
  .hf-local-menu-layout__heading {
    font-size: 1.125rem;
  }
  .hf-heading--level-1,
  .rhs-heading--level-1 {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  @media print, screen and (width >= 768px) {
    .hf-heading--level-1,
    .rhs-heading--level-1 {
      font-size: 2rem;
    }
  }
  .hf-heading--level-2,
  .rhs-heading--level-2 {
    font-size: 1.25rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-heading--level-2,
    .rhs-heading--level-2 {
      font-size: 1.75rem;
    }
  }
  .hf-heading--level-3,
  .rhs-heading--level-3 {
    font-size: 1.125rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-heading--level-3,
    .rhs-heading--level-3 {
      font-size: 1.5rem;
    }
  }
  .hf-heading--level-4,
  .rhs-heading--level-4 {
    font-size: 1rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-heading--level-4,
    .rhs-heading--level-4 {
      font-size: 1.25rem;
    }
  }
  .hf-heading--polygon-level-2,
  .rhs-heading--polygon-level-2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    min-height: 38px;
    font-size: 1.0625rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-heading--polygon-level-2,
    .rhs-heading--polygon-level-2 {
      line-height: 3rem;
      font-size: 1.25rem;
    }
  }
  .hf-heading--bordered-left::before,
  .rhs-heading--bordered-left::before {
    top: 18px;
    width: 13px;
    height: 3px;
  }
  @media print, screen and (width >= 768px) {
    .hf-heading--bordered-left::before,
    .rhs-heading--bordered-left::before {
      padding-top: 0;
      top: 14px;
      width: 4px;
      height: 42px;
    }
  }
  .hf-heading-bordered {
    font-size: 1.125rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-heading-bordered {
      font-size: 1.5rem;
    }
  }
  .hf-heading-hexagon {
    font-size: 0.9375rem;
    line-height: 1;
  }
  @media print, screen and (width >= 768px) {
    .hf-heading-hexagon {
      font-size: 1.25rem;
    }
  }
  .hf-button {
    color: var(--text-invert);
  }
  .hf-button__inner {
    font-size: 1.125rem;
  }
  .hf-button__icon {
    width: 16px;
    height: 16px;
  }
  .hf-button--border {
    color: var(--color-base);
  }
  article a:not([class*=hf-]) {
    color: var(--primary-pink);
    text-decoration: underline;
  }
  @media (any-hover: hover) {
    article a:not([class*=hf-]):hover {
      text-decoration: none;
    }
  }
  .hf-table > tbody > tr > th,
  .hf-table > tbody > tr > td {
    padding: 10px 15px;
    border-color: #d9d9d9;
  }
  @media print, screen and (width >= 768px) {
    .hf-table > tbody > tr > th,
    .hf-table > tbody > tr > td {
      padding: 20px 25px;
    }
  }
  .hf-table > tbody > tr > th,
  .hf-table > tbody > tr > td {
    font-size: 1rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-table > tbody > tr > th,
    .hf-table > tbody > tr > td {
      font-size: 1.125rem;
    }
  }
  .rhs-table > tbody > tr > th,
  .rhs-table > tbody > tr > td {
    font-size: 1rem;
  }
  @media print, screen and (width >= 768px) {
    .rhs-table > tbody > tr > th,
    .rhs-table > tbody > tr > td {
      font-size: 1.125rem;
    }
  }
  .hf-text-note {
    font-size: 0.875rem;
  }
  .hf-text-note-number li {
    padding-left: 2rem;
    font-size: 0.875rem;
  }
  .hf-accordion__trigger {
    font-size: 1rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-accordion__trigger {
      font-size: 1.25rem;
    }
  }
  .hf-accordion__content {
    font-size: 1rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-accordion__content {
      font-size: 1.125rem;
    }
  }
  .hf-anchor-lists__item a {
    font-size: 0.8125rem;
    color: #eb6d73;
  }
  .hf-news-item__date {
    font-size: 0.875rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-news-item__date {
      font-size: 1rem;
    }
  }
  .hf-news-item__title {
    margin-top: 0;
    font-size: 1rem;
  }
  .hf-select {
    font-size: 0.875rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-select {
      height: auto;
      font-size: 0.9375rem;
    }
  }
  .hf-heading-table {
    font-size: 1.25rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-heading-table {
      font-size: 1.75rem;
    }
  }
  .hf-book-item__info {
    margin-bottom: 20px;
  }
  @media print, screen and (width >= 768px) {
    .hf-book-item__info {
      margin-bottom: 30px;
    }
  }
  .hf-book-item__img {
    text-align: center;
  }
  .hf-book-item__img img {
    display: inline-block;
  }
  .hf-book-item__text-box .hf-button--hyperlink {
    max-width: 260px;
  }
  .hf-profile {
    line-height: 1.5;
  }
  .hf-profile__post, .hf-profile__kana {
    font-size: 0.875rem;
  }
  .hf-profile__name {
    font-size: 1.25rem;
  }
  @media all and (min-width: 980px) {
    .hf-profile-text-box {
      padding-right: 0;
      padding-left: 0;
    }
    .hf-profile-text-box__inner {
      max-width: 510px;
    }
  }
  @media all and (min-width: 980px) {
    .hf-profile-name {
      padding-top: 0;
      margin-top: 15px;
      margin-bottom: 0;
      line-height: 1.5;
    }
    .hf-profile-name__post {
      font-size: 0.875rem;
    }
    .hf-profile-name__name {
      font-size: 1.625rem;
    }
    .hf-profile-name__kana {
      font-size: 1rem;
    }
  }
  @media all and (min-width: 980px) {
    .hf-profile-text {
      font-size: 0.9375rem;
    }
  }
  .rhs-detail__heading {
    font-size: 1.125rem;
  }
  @media print, screen and (width >= 768px) {
    .rhs-detail__heading {
      font-size: 1.5rem;
    }
  }
  .rhs-detail__image {
    text-align: center;
  }
  .rhs-detail__image img {
    display: inline;
  }
  .rhs-detail__caption {
    font-size: 0.75rem;
  }
  @media print, screen and (width >= 768px) {
    .rhs-detail__caption {
      font-size: 0.875rem;
    }
  }
  .hf-contact-box__heading {
    font-size: 1.25rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-contact-box__heading {
      font-size: 1.5rem;
    }
  }
  .hf-contact-box__heading::before {
    top: 16px;
  }
  @media print, screen and (width >= 768px) {
    .hf-contact-box__heading::before {
      top: 18px;
    }
  }
  body:has(.hf-contact-box) .hf-text-size-small {
    font-size: inherit;
  }
  .hf-contact-item__text {
    font-size: 1.25rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-contact-item__text {
      font-size: 1.5rem;
    }
  }
  .hf-contact-item__img {
    margin-top: 10px;
  }
  @media print, screen and (width >= 768px) {
    .hf-contact-item__img {
      margin-top: 5px;
    }
  }
  .hf-nisa-table th, .hf-nisa-table td {
    font-size: 1rem;
    vertical-align: middle;
  }
  @media print, screen and (width >= 768px) {
    .hf-nisa-table th, .hf-nisa-table td {
      font-size: 1.125rem;
    }
  }
  .hf-nisa-table > tbody > tr > th,
  .hf-nisa-table > tbody > tr > td {
    font-size: 0.8125rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-nisa-table > tbody > tr > th,
    .hf-nisa-table > tbody > tr > td {
      font-size: 1.125rem;
    }
  }
  .hf-new-nisa-point-card__title {
    font-size: 1rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-new-nisa-point-card__title {
      font-size: 1.25rem;
    }
  }
  .hf-margin-size--table .hf-table-title {
    font-size: 1rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-margin-size--table .hf-table-title {
      font-size: 1.25rem;
    }
  }
  .hf-margin-size--table .hf-table-title::before {
    top: 8px;
    height: 16px;
  }
  @media print, screen and (width >= 768px) {
    .hf-margin-size--table .hf-table-title::before {
      top: 8px;
      height: 20px;
    }
  }
  .hf-margin-size--table th,
  .hf-margin-size--table td {
    font-size: 1rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-margin-size--table th,
    .hf-margin-size--table td {
      font-size: 1.125rem;
    }
  }
  body:has(.hf-contents-layout--tsumiyell) .hf-main {
    padding-top: var(--space-xl-sp);
  }
  @media print, screen and (width >= 768px) {
    body:has(.hf-contents-layout--tsumiyell) .hf-main {
      padding-top: var(--space-xl-pc);
    }
  }
  body:has(.hf-contents-layout--tsumiyell) .l-signup {
    margin-top: 0;
  }
  .hf-tsumiyell-recommend__list {
    margin-inline: auto;
  }
  .hf-tsumiyell-recommend h2:not([class*=hf-text-size]) {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl-sp);
  }
  @media print, screen and (width >= 768px) {
    .hf-tsumiyell-recommend h2:not([class*=hf-text-size]) {
      font-size: 1.75rem;
      margin-bottom: var(--space-xl-pc);
    }
  }
  .hf-tsumiyell-yell h2:not([class*=hf-text-size]) {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl-sp);
  }
  @media print, screen and (width >= 768px) {
    .hf-tsumiyell-yell h2:not([class*=hf-text-size]) {
      font-size: 1.75rem;
      margin-bottom: var(--space-xl-pc);
    }
  }
  .hf-tsumiyell-other__btn .hf-button__icon + .hf-button__icon {
    display: none;
  }
  .hf-tsumiyell-other__btn--disabled .hf-button__icon {
    display: none;
  }
  .hf-tsumiyell-other__btn--disabled .hf-button__icon + .hf-button__icon {
    display: block;
  }
  .hf-ouendan-img img {
    width: 100%;
  }
  .hf-tsumiyell-other__term-list {
    list-style: disc;
    padding-left: 26px;
    margin-left: 0.5em;
  }
  .hf-tsumiyell-other__caution-list {
    list-style: disc;
    padding-left: 26px;
    margin-left: 0.5em;
  }
  .hf-card__title {
    font-size: 1.125rem;
    line-height: 1.5;
  }
  @media print, screen and (width >= 768px) {
    .hf-card__title {
      font-size: 1.25rem;
    }
  }
  .hf-card__link {
    font-size: 1rem;
  }
  .hf-card__link .hf-text-anchor-link-secondary {
    padding-left: 20px;
  }
  .hf-card__link .hf-text-anchor-link-secondary::before {
    top: 9px;
    width: 14px;
    height: 14px;
  }
  .hf-card__text {
    font-size: 1rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-card__text {
      font-size: 1.125rem;
    }
  }
  .hf-card__figure img {
    display: inline-block;
  }
  .hf-text-list-layout {
    list-style: disc;
    padding-left: 26px;
    line-height: 1.5;
  }
  .hf-text-list-layout .hf-text-list {
    font-size: 0.875rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-text-list-layout .hf-text-list {
      font-size: 1rem;
    }
  }
  @media print, screen and (width >= 768px) {
    .hf-pict-panel__heading {
      font-size: 1.25rem;
    }
  }
  .hf-pict-panel__image img {
    display: inline-block;
    max-width: none;
    height: 100px;
  }
  @media print, screen and (width >= 768px) {
    .hf-pict-panel__image img {
      height: 160px;
    }
  }
  .hf-pict-panel__content {
    font-size: 1rem;
  }
  @media print, screen and (width >= 768px) {
    .hf-pict-panel__content {
      font-size: 1.125rem;
    }
  }
  .hf-section-layout[id^=hf-] {
    scroll-margin-top: 45px;
  }
  @media print, screen and (width >= 768px) {
    .hf-section-layout[id^=hf-] {
      scroll-margin-top: 0;
    }
  }
}
