/* 機能一覧ページ（ワイヤー実装） */

/* トップと同じコンテナ幅。画面端には最低 --gutter-sp の余白を確保 */
@media (min-width: 769px) and (max-width: 1024px) {
  .features-page .container,
  .features-page .header__inner {
    max-width: min(var(--container-max-tablet), calc(100% - var(--gutter-sp) * 2));
  }
}

@media (min-width: 1025px) and (max-width: 1279px) {
  .features-page .container {
    padding-inline: var(--gutter-sp);
  }
}

.fn-section {
  padding-block: 48px;
}

.fn-section[hidden] {
  display: none;
}

@media (min-width: 769px) {
  .fn-section {
    padding-block: 64px;
  }
}

@media (min-width: 1025px) {
  .fn-section {
    padding-block: var(--section-padding-desktop);
  }
}

.fn-section__title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.5;
  color: var(--color-green-accent);
  text-align: center;
}

@media (min-width: 769px) {
  .fn-section__title {
    font-size: 2rem;
    line-height: 1.47;
    margin-bottom: 32px;
  }
}

@media (min-width: 1025px) {
  .fn-section__title {
    font-size: var(--section-title-size-desktop);
  }
}

.fn-section__lead {
  margin: -12px 0 24px;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  color: var(--color-text);
  text-align: center;
}

@media (min-width: 769px) {
  .fn-section__lead {
    font-size: 14px;
    line-height: 22px;
    margin-top: -16px;
    margin-bottom: 24px;
  }
}

@media (min-width: 1025px) {
  .fn-section__lead {
    font-size: min(18px, calc(100vw * 18 / 1280));
    line-height: min(28px, calc(100vw * 28 / 1280));
  }
}

.fn-section--page-title {
  padding-bottom: 24px;
}

.fn-section--page-title .fn-section__title {
  margin-bottom: 0;
}

@media (min-width: 769px) {
  .fn-section--page-title {
    padding-bottom: 32px;
  }
}

@media (min-width: 1025px) {
  .fn-section--page-title {
    padding-bottom: min(40px, calc(100vw * 40 / 1280));
  }
}

.features-page .reservation-types {
  padding-top: 0;
}

.features-page .reservation-types + .fn-section {
  padding-top: 0;
}

.fn-type-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-white);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.fn-type-tag--simple {
  background-color: #168ace;
}

.fn-type-tag--hours {
  background-color: #c24fec;
}

.fn-type-tag--common {
  background-color: #737373;
}

@media (min-width: 1025px) {
  .fn-type-tag--hours {
    background-color: #9b4fec;
  }

  .fn-type-tag {
    padding: min(3px, calc(100vw * 3 / 1280)) min(10px, calc(100vw * 10 / 1280));
    font-size: min(12px, calc(100vw * 12 / 1280));
  }
}

/* 機能グループ */
.fn-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.fn-group__title {
  margin: 40px 0 32px;
  font-size: 18px;
  font-weight: 900;
  line-height: 24px;
  color: var(--color-green-accent);
  text-align: center;
}

.fn-group:first-child .fn-group__title {
  margin-top: 0;
}

@media (min-width: 769px) {
  .fn-group__title {
    font-size: 17px;
    line-height: 22px;
    margin-bottom: 40px;
  }
}

@media (min-width: 1025px) {
  .fn-group__title {
    margin-bottom: min(40px, calc(100vw * 40 / 1280));
    font-size: min(32px, calc(100vw * 32 / 1280));
    line-height: min(42px, calc(100vw * 42 / 1280));
  }
}

.fn-group__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 769px) {
  .fn-group__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.fn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 4px;
  background-color: var(--color-white);
  box-shadow: 0 2px 13px rgba(35, 157, 107, 0.25);
  text-align: center;
}

.fn-item__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.fn-item__name {
  margin: 0;
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.fn-item__desc {
  margin: 0;
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text-muted);
}

@media (min-width: 769px) {
  .fn-item {
    gap: 6px;
    padding: 12px;
    box-shadow: 0 1px 9px rgba(35, 157, 107, 0.25);
  }

  .fn-item__name {
    font-size: 14px;
  }
}

@media (min-width: 1025px) {
  .fn-item {
    gap: min(8px, calc(100vw * 8 / 1280));
    padding: min(23px, calc(100vw * 23 / 1280));
    border-radius: min(8px, calc(100vw * 8 / 1280));
    box-shadow: var(--hero-shadow);
  }

  .fn-item__heading {
    gap: min(8px, calc(100vw * 8 / 1280));
  }

  .fn-item__name {
    font-size: min(18px, calc(100vw * 18 / 1280));
  }

  .fn-item__desc {
    font-size: min(14px, calc(100vw * 14 / 1280));
    line-height: min(24px, calc(100vw * 24 / 1280));
  }
}

/* アップデート */
.fn-updates {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background-color: var(--color-white);
  overflow: hidden;
}

.fn-updates__item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 18px 20px;
  border-bottom: 1px solid #e6e6e6;
}

.fn-updates__item:last-child {
  border-bottom: 0;
}

@media (min-width: 769px) {
  .fn-updates__item {
    gap: 24px;
    padding: 20px 24px;
  }
}

.fn-updates__date {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-green);
  white-space: nowrap;
}

.fn-updates__title {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  text-decoration: none;
}

a.fn-updates__title:hover {
  color: var(--color-green);
  text-decoration: underline;
}

@media (min-width: 769px) {
  .fn-updates__title {
    font-size: 15px;
  }
}

/* CTA（トップ途中の btn--cta を2列） */
.fn-cta {
  flex-direction: column;
  align-items: stretch;
}

.fn-cta .container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.fn-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-inline: auto;
}

.fn-cta .btn--cta {
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

.fn-cta .btn--cta-green {
  border-color: var(--color-red);
  background-color: var(--color-red);
  color: var(--color-white);
}

@media (min-width: 769px) {
  .fn-cta__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 960px;
  }

  .fn-cta .btn--cta {
    max-width: none;
  }
}

@media (min-width: 1025px) {
  .fn-cta__actions {
    gap: min(24px, calc(100vw * 24 / 1280));
    max-width: min(1100px, calc(100vw * 1100 / 1280));
  }
}

/* 予約受付方式カードを、下の機能グリッドと同じ“2コマ幅”に揃える */
@media (min-width: 769px) {
  .features-page .reservation-types__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    align-items: stretch;
  }

  .features-page .reservation-card {
    grid-column: span 2;
    max-width: none;
    min-width: 0;
    max-width: none;
  }

  .features-page .reservation-card__figure {
    width: 320px;
    max-width: calc(100% - 48px);
    margin-inline: auto;
  }
}
