* {
  box-sizing: border-box;
}

body {
  color: #313131;
  font-family: -apple-system, 'system-ui', Roboto, 'Segoe UI', 'BIZ UDPGothic', arial, helvetica,
    'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

.container {
  width: 100%;
}

@media (min-width: 768px) {
  .container {
    margin: 0 auto;
    width: 1020px;
  }
}

/* ヘッダー */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #efefef;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
}

@media (min-width: 768px) {
  .site-header__inner {
    margin: 0 auto;
    width: 1020px;
  }
}

.site-header__logo img {
  display: block;
  height: 24px;
  width: auto;
}

.site-header__shoulder {
  color: #999999;
  font-size: 10px;
}

/* パンくず */
.breadcrumbs-container {
  overflow-x: auto;
}

.breadcrumbs ol {
  align-items: center;
  display: flex;
  padding: 8px 16px;
  white-space: nowrap;
}

.breadcrumbs__item {
  color: #999999;
  font-size: 12px;
}

.breadcrumbs__separator {
  padding: 0 8px;
}

.breadcrumbs--pc {
  display: none;
}

@media (min-width: 768px) {
  .breadcrumbs--pc {
    display: block;
  }

  .breadcrumbs--sp {
    display: none;
  }
}

/* ヒーロー */
.hero {
  background-color: #fbf8f4;
  overflow: hidden;
  padding: 16px 16px 24px;
  position: relative;
}

@media (min-width: 768px) {
  .hero {
    padding: 32px 16px;
  }
}

.hero__bg {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero__bg img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.hero__bg--pc {
  display: none;
}

@media (min-width: 768px) {
  .hero__bg--sp {
    display: none;
  }

  .hero__bg--pc {
    display: block;
  }
}

.hero__content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero__logo {
  width: 224px;
}

@media (min-width: 768px) {
  .hero__logo {
    width: 288px;
  }
}

.hero__products {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.hero__products img {
  background-color: #ffffff;
  display: block;
  height: 96px;
  object-fit: contain;
  width: 96px;
}

@media (min-width: 768px) {
  .hero__products img {
    height: 144px;
    width: 144px;
  }
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.hero__title-label {
  color: #9c8659;
  font-size: 14px;
  margin-bottom: 4px;
}

.hero__title-main {
  font-size: 20px;
  line-height: 1.3;
}

.hero__lead {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

@media (min-width: 768px) {
  .hero__lead {
    font-size: 18px;
  }
}

/* 見出し */
.heading2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

@media (min-width: 768px) {
  .heading2 {
    font-size: 36px;
  }
}

.heading2--reverse {
  color: #ffffff;
}

.heading3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

/* セクション共通 */
.section--intro,
.section--ranking-link {
  margin-top: 32px;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .section--intro,
  .section--ranking-link {
    margin-top: 64px;
    padding: 0;
  }
}

.section--top {
  background-color: #9c8659;
  margin-top: 32px;
  padding: 32px;
}

.section--groups {
  background-color: #eceae4;
  padding: 32px;
}

@media (min-width: 768px) {
  .section--top,
  .section--groups {
    padding: 64px;
  }
}

/* マイベストのおすすめランキングとは */
.intro {
  background-color: #313131;
  margin-top: 16px;
  position: relative;
}

.intro__body {
  align-items: center;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .intro__body {
    flex-direction: row;
  }
}

.intro__image {
  flex-shrink: 0;
}

.intro__image img {
  display: block;
  width: 100%;
}

@media (min-width: 768px) {
  .intro__image {
    height: 341px;
    width: 532px;
  }

  .intro__image img {
    height: 100%;
    object-fit: cover;
  }
}

.intro__text {
  color: #ffffff;
  font-size: 16px;
  padding: 24px 16px;
}

@media (min-width: 768px) {
  .intro__text {
    font-size: 18px;
    padding: 24px 36px;
  }
}

.intro__badge {
  left: 274px;
  position: absolute;
  top: -42px;
  width: 88px;
}

@media (min-width: 768px) {
  .intro__badge {
    left: -60px;
    top: 281px;
    width: 112px;
  }
}

.intro__cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.intro__cta .button {
  width: auto;
}

/* 商品カード */
.cards {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .cards {
    flex-direction: row;
  }
}

.card {
  background-color: #ffffff;
  border-radius: 4px;
  flex-basis: 100%;
  padding: 20px;
}

@media (min-width: 768px) {
  .card {
    flex-basis: calc((100% - 12px * 2) / 3);
  }
}

.card__badge {
  color: #ffffff;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
}

.card__badge--1 {
  background-color: #f2b50d;
}

.card__badge--2 {
  background-color: #738c8c;
}

.card__badge--3 {
  background-color: #b36b4d;
}

.card__badge--4 {
  background-color: #f7f7f7;
  color: #313131;
}

.card__image {
  margin-top: 16px;
}

.card__image img {
  aspect-ratio: 1 / 1;
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.card__image-source {
  color: #999999;
  font-size: 10px;
  text-align: right;
}

.card__manufacturer {
  font-size: 16px;
  margin-top: 16px;
}

.card__manufacturer--sub {
  color: #999999;
  font-size: 14px;
}

.card__name {
  font-size: 20px;
  font-weight: 400;
  margin: 4px 0 0;
}

@media (min-width: 768px) {
  .card__name {
    font-size: 18px;
  }
}

.card__name-strong {
  font-weight: 700;
}

.card__rate {
  margin-top: 12px;
}

.rate__label {
  color: #7b4e38;
  font-weight: 700;
}

.rate {
  align-items: center;
  display: flex;
  gap: 4px;
}

.rate__stars {
  display: inline-block;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1;
  position: relative;
}

.rate__stars-base {
  color: #c7c7c7;
}

.rate__stars-fill {
  color: #ff2600;
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.rate__value {
  color: #ff2600;
  font-size: 20px;
  font-weight: 700;
}

.card__catch-copy {
  font-weight: 700;
  margin-top: 12px;
}

/* ボタン */
.button {
  background-color: #f7f7f7;
  border-radius: 4px;
  display: block;
  font-size: 14px;
  line-height: 40px;
  margin-top: 12px;
  padding: 0 12px;
  text-align: center;
  width: 100%;
}

/* ニーズ別No.1 / 評価項目ごとのNo.1 */
.group {
  margin-top: 32px;
}

.group__heading {
  align-items: center;
  display: flex;
  gap: 8px;
}

.group .cards {
  margin-top: 16px;
}

@media (min-width: 768px) {
  .group .cards {
    margin-top: 24px;
  }
}

/* 最新のランキングはこちら */
.ranking-link__text {
  margin-top: 16px;
}

.cassette {
  align-items: center;
  border: 1px solid #efefef;
  border-radius: 4px;
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow: hidden;
}

.cassette__image {
  flex-shrink: 0;
  height: 99px;
  object-fit: cover;
  width: 132px;
}

.cassette__text {
  font-weight: 700;
  padding-right: 12px;
}

/* フッター */
.site-footer {
  background-color: #f7f7f7;
  margin-top: 32px;
  padding: 32px 16px;
}

@media (min-width: 768px) {
  .site-footer {
    margin-top: 64px;
    padding: 64px 16px;
  }
}

.site-footer__lead {
  font-size: 12px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 24px;
}

.site-footer__links a {
  font-size: 12px;
  text-decoration: underline;
}

.site-footer__copyright {
  color: #999999;
  font-size: 12px;
  margin-top: 24px;
}
