
* {
  box-sizing: border-box;
}



.rk-wrap {
  --rk-color1: #ff99b1;
  --rk-color2: #ffc189;
  --rk-color3: #7ddbc6;
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 8px 40px;
}

/* ラジオボタンは非表示 */
.rk-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* タブ */
.rk-tabs {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rk-tabs-item {
  flex: 1;
  margin: 0;
  padding: 0;
}

.rk-tabs-label {
  display: block;
  padding: 12px 4px;
  border-radius: 10px 10px 0 0;
  background: #e5e5e5;
  color: #666;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

/* 未選択タブ：下辺にブランド色の線 */
.rk-tabs-item:nth-child(1) .rk-tabs-label {
  border-bottom: 3px solid var(--rk-color1);
}

.rk-tabs-item:nth-child(2) .rk-tabs-label {
  border-bottom: 3px solid var(--rk-color2);
}

.rk-tabs-item:nth-child(3) .rk-tabs-label {
  border-bottom: 3px solid var(--rk-color3);
}

/* 選択中タブ：ブランド色で塗りつぶし */
#rk-tab1:checked ~ .rk-tabs .rk-tabs-item:nth-child(1) .rk-tabs-label {
  background: var(--rk-color1);
  color: #fff;
}

#rk-tab2:checked ~ .rk-tabs .rk-tabs-item:nth-child(2) .rk-tabs-label {
  background: var(--rk-color2);
  color: #fff;
}

#rk-tab3:checked ~ .rk-tabs .rk-tabs-item:nth-child(3) .rk-tabs-label {
  background: var(--rk-color3);
  color: #fff;
}

/* キーボード操作時のフォーカス表示 */
#rk-tab1:focus-visible ~ .rk-tabs .rk-tabs-item:nth-child(1) .rk-tabs-label,
#rk-tab2:focus-visible ~ .rk-tabs .rk-tabs-item:nth-child(2) .rk-tabs-label,
#rk-tab3:focus-visible ~ .rk-tabs .rk-tabs-item:nth-child(3) .rk-tabs-label {
  outline: 2px solid #333;
}

/* パネル */
.rk-panel {
  display: none;
  background: #f0f0f0;
  padding-bottom: 8px;
}

#rk-tab1:checked ~ .rk-panel1,
#rk-tab2:checked ~ .rk-panel2,
#rk-tab3:checked ~ .rk-panel3 {
  display: block;
}

.rk-title {
  margin: 0 0 8px;
  padding: 14px 8px;
  background: #ee7592;
  color: #fff;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.6;
  text-align: center;
}

/* タイトル帯：ブランド色 */
.rk-panel1 .rk-title {
  background: var(--rk-color1);
}

.rk-panel2 .rk-title {
  background: var(--rk-color2);
}

.rk-panel3 .rk-title {
  background: var(--rk-color3);
}

/* リスト：スマホ2列 */
.rk-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0 8px;
  list-style: none;
}

.rk-item {
  margin: 0;
  padding: 0;
}

.rk-link {
  position: relative;
  display: block;
  height: 100%;
  padding: 28px 8px 12px;
  background: #fff;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25);
  color: #555;
  text-decoration: none;
}

.rk-num {
  position: absolute;
  top: 2px;
  left: 6px;
  color: #555;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
}

.rk-img {
  display: block;
  margin-bottom: 8px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.rk-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rk-name {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  text-decoration: underline;
}

/* タブレット＆PC */
@media (min-width: 820px) {
  .rk-wrap {
    padding: 32px 16px 60px;
  }

  .rk-tabs-label {
    padding: 14px 8px;
    font-size: 16px;
  }

  .rk-title {
    padding: 18px 12px;
    font-size: 18px;
  }

  .rk-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 12px;
  }

  .rk-link {
    padding: 32px 12px 16px;
  }

  .rk-num {
    top: 4px;
    left: 8px;
    font-size: 28px;
  }

  .rk-name {
    font-size: 12px;
  }

  .rk-link:hover {
    opacity: 0.8;
  }
}