/* マット、ツヤありボタン */
:root {
  --pill-height: 32px;
  --pill-hpad: 14px;
  --pill-font-size: 14px;
  --pill-width: 85px;
  --darkBrown:#503732;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  /* 固定サイズ（文字数に関係なく同じ大きさ） */
  height: var(--pill-height);
  width: var(--pill-width);
  /* 文字と見栄え */
  padding: 0 var(--pill-hpad);
  font-size: var(--pill-font-size);
  line-height: 1;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-pill:hover {
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
/* 既存：マット／ツヤありの色（ワントーン）*/
.oneToneGlossButton{
  background: var(--orange);
}

/*既存：マット／ツヤありの色（ツートーンメイン）*/
.twoToneMainGlossButton{
  background: var(--orange);
}

/*既存：マット／ツヤありの色（ツートーンセカンド）*/
.twoToneScondGlossButton{
  background: var(--orange);
}

/* 既存：マット／ツヤありの色（詳細カスタム）*/
.glossButton {
  background: var(--orange);
}

/* 表示切替用ラジオ本体は非表示（視覚のみ） */
.visibleButton {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
/* 表示切替の並びと fieldset の余白リセット */
.visible-toggle {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  border: 0;
  padding: 0;
  margin: 0;
}
/* ラベルのデフォルト色（未選択） */
.visible-toggle_option {
  background-color: var(--lightGray);
}
/* 選択時の色（選択された input の次の label） */
.visibleButton:checked + .visible-toggle_option {
  background-color: var(--lightGreen);
}
.visible-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: .3rem;
  padding-right: .5rem;
  padding-left: .25rem;
}
.button-space {
  margin-left: 25px;
  margin-left: auto;
}
.glossButton--gray  { 
  background-color: var(--lightGray);
}

/* 視点切り替えボタン */
.switchEyesightButton {
  position: absolute;   /* 画面右上に固定 */
  top: 110px;
  right: 10px;
  display: flex;
  flex-direction: column; /* 縦並び */
  gap: 8px;               /* ボタン間の余白 */
  z-index: 3;          /* Canvasより前面 */
  background-color: transparent;
}
/* ボタン全体（縦に画像→ラベル） */
.switchEyesightButton .eyesight-item {
  --circle: 64px;                 /* 画像の円の直径（調整点） */
  --ring-width: 3px;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
}
/* 円形アイコンの器 */
.switchEyesightButton .eyesight-item .icon {
  width: var(--circle);
  height: var(--circle);
  border-radius: 50%;
  background: #e9ecef;            /* 薄いグレーの背景（プレースホルダ） */
  display: grid;
  place-items: center;
  overflow: hidden;               /* 中の画像を丸く切り抜く */
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    inset 0 0 0 2px rgba(0,0,0,0.04);
}
.switchEyesightButton .eyesight-item .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ラベル（文字） */
.switchEyesightButton .eyesight-item .label {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  line-height: 1.1;
  color: #C8AA82;
  text-transform: uppercase;
  white-space: nowrap;
}
.switchEyesightButton .eyesight-item:hover .label {
  color: #F1BD40;
}
/* ラジオ本体は非表示 */
.switchEyesightButton .eyesight-radio {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
/* 選択されたラジオに対応するボタンを黄色に */
.switchEyesightButton .eyesight-radio:checked + .eyesight-item .icon {
  box-shadow:
    0 3px 10px rgba(0,0,0,0.12),
    0 0 0 var(--ring-width) #F1BD40; 
}
.switchEyesightButton .eyesight-radio:checked + .eyesight-item .label {
  color: #F1BD40;
}

/* ログアウトボタン */
#logoutButton {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background-color: #000000;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;  /* a要素の下線を消す */
  font-weight: 700;
}

#backHistoryButton { /* リセットボタン */
  top: 3px;
  right: 150px;
}
.backHistory-btn {
  color: #79BFA9;
  background-color: #fff;
}

#recommendButton{/**おすすめ組み合わせボタン**/
  color:  #fff;
  background-color: var(--darkBrown);
  border-radius: 999px;
  border: none;
  width: 180px;
  margin-left: auto;
  margin-top:24px;
}
.recommendButtonArea{
  display: flex;

}