/* 04 設定のシートの中身 */

/* 1行：見出し＋説明＋スイッチ */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--card);
}

/* まとまり：見出し＋ボタンの列＋説明 */
.setting-block {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--card);
}

.setting__label {
  display: block;
  font-size: .9375rem;
}

.setting__note {
  display: block;
  margin-top: 3px;
  font-size: .75rem;
  line-height: 1.55;
  color: var(--sub);
}

/* オン・オフのスイッチ */
.switch {
  position: relative;
  flex: none;
  width: 54px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: #E9DDE2;
  cursor: pointer;
  transition: background .2s;

  &[aria-checked="true"] {
    background: var(--green);

    & .switch__knob {
      transform: translateX(22px);
    }
  }
}

.switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .2s;
}

/* 並んだボタン（天気・季節） */
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 6px;
}

.seg__btn {
  flex: 1 1 0;
  min-width: 50px;
  min-height: 42px;
  border: none;
  border-radius: 999px;
  background: #FBEFF1;
  color: var(--sub);
  font-family: var(--body);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;

  &[aria-pressed="true"] {
    background: var(--ink);
    color: var(--ink-on);
  }
}
