.top-stylebook-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

.brightness-card {
  height: 48px; /* 小さくする */
  width: calc(25% - 7.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 8px; /* パディングも小さく */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
  border: 2px solid transparent;
}

.brightness-card.low {
  background-image: url(/static/images/b39f2ae09b6fb6c89b4a4244b9ac6fc2ddc35566.png);
}

.brightness-card.medium {
  background-image: url(/static/images/cbfc704f6469ed964064f8f06c71828941a0eb1d.png);
}

.brightness-card.high {
  background-image: url(/static/images/3af3b859e6a0cdd88dbecd9c740561f9f09a0d5c.png);
}

.brightness-card.white {
  background-image: url(/static/images/5c45f661a312caf718532280a315c9d61568e71f.png);
}

.brightness-card.selected {
  transform: scale(1.02);
}

.brightness-card:hover {
  transform: scale(1.02);
}

.brightness-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.brightness-title {
  color: #ffffff;
  font-family: Zen Kaku Gothic New, var(--default-font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.brightness-range {
  color: #ffffff;
  font-family: Zen Kaku Gothic New, var(--default-font-family);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

#style-book-main {
  background: #f8fafa;
}

#style-book-banner .container {
  border-bottom: 1px solid var(--Grey-100);
}

.sylte-book-banner-title {
  font-weight: 700;
  font-size: 24px;
  color: var(--Neutral-Black);
}

.banne-add-to-fav-btn {
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.banne-add-to-fav-btn img {
  width: 24px;
  height: 24px;
}

.color-desc-title {
  font-weight: 500;
  font-size: 16px;
}

.style-book-banner-body {
  border-radius: 12px;
  overflow: hidden;
}

.color-desc-container {
  background-color: white;
}

.color-desc-box {
  width: 50%;
}

.color-ratio {
  font-weight: 700;
}

.color-box {
  font-weight: 700;
}

.color-note {
  color: var(--Red-700);
  font-weight: 500;
  font-size: 11px;
}

.color-desc-footer-btn {
  padding: 10px 0;
  width: 50%;
  font-weight: 500;
  background: var(--Grey-300);
}

.color-desc-footer-btn:first-child {
  margin-right: 2px;
}

#color-pickers .color-picker-box {
  width: 200px;
  margin-right: 10px;
  margin-top: 5px;
}

.color-pickers-title,
.tags-title {
  width: 100%;
  font-family: 'Times New Roman';
  font-size: 18px;
}

.tags {
  white-space: no-wrap;
  padding: 5px 10px;
  border: 1px solid var(--Neutral-Black);
  border-radius: 30rem;
  margin-right: 10px;
  margin-top: 5px;
}

@media (max-width: 576px) {
  .bracket-left,
  .bracket-right {
    font-size: 60px;
  }

  .bracket-wrapper .color-box img {
    width: 50px !important;
  }

  .color-rate {
    font-size: 10px;
  }

  /* 小さい画面での補色・補正色のレイアウト調整 */
  .color-supplements {
    gap: 5px; /* 小型画面での間隔を狭める */
  }

  .color-supplements .color-desc-box {
    width: calc(50% - 3px);
  }

  .color-supplements .color-box img {
    width: 50px; /* 画像サイズを小さくする */
    margin-right: 5px; /* 画像と数値の間隔を調整 */
  }

  .color-supplements .color-box div {
    font-size: 14px; /* 数値表示サイズ調整 */
  }

  .color-supplements .color-desc-title {
    font-size: 14px; /* タイトルサイズを小さくする */
  }
}

@media (max-width: 400px) {
  .color-desc-box {
    width: 100%;
    margin-top: 5px;
  }

  /* 超小型画面での補色・補正色のレイアウト調整 */
  .color-supplements {
    gap: 3px;
  }

  .color-supplements .color-desc-box {
    width: calc(50% - 2px);
    margin-top: 0;
  }

  .color-supplements .color-box img {
    width: 40px; /* さらに小さく */
    margin-right: 3px; /* 画像と数値の間隔をさらに縮める */
  }

  .color-supplements .color-box div {
    font-size: 12px; /* 数値表示も小さく */
  }

  .color-supplements .color-desc-title {
    font-size: 12px; /* さらに小さく */
    margin-bottom: 5px; /* 余白を減らす */
  }

  .brightness-title,
  .brightness-range {
    font-size: 0.8rem;
  }
}

@media (max-width: 767px) {
  .brightness-card {
    width: calc(50% - 5px);
    height: 55px;
  }
}

.item-unselected {
  opacity: 0.5;
}

/* パターン2用のスタイル */
.bracket-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.bracket-left,
.bracket-right {
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  color: #333;
  margin: 0 5px;
}

.color-rate {
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

/* 補色と補正色の区分け */
.color-desc-box h2.color-desc-title {
  margin-bottom: 10px;
}

/* 目的色が多い場合のスタイル調整 */
.color-desc-box .color-box {
  min-width: 60px;
}

/* パターン2の目的色サイズ調整 */
.bracket-wrapper .color-box img {
  max-width: 65px;
  width: 100%;
}

/* 目的色の間のセパレーター（:）のスタイル */
.color-separator {
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: #333;
}

/* パターン2の場合、セパレーターを少し小さくする */
.bracket-wrapper .color-separator {
  font-size: 16px;
}

/* 補色と補正色の横並びレイアウト */
.color-supplements {
  width: 100%;
  margin-top: 15px;
  display: flex;
  flex-direction: row;
  gap: 10px; /* 左右の間隔を設定 */
}

.color-supplements .color-desc-box {
  width: calc(50% - 5px);
  background-color: white; /* 背景色を設定 */
  border-radius: 4px; /* 角を丸くする */
  padding: 5px; /* 内側の余白 */
}

.color-supplements .color-desc-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

/* 補色と補正色のボックス内部のレイアウト調整 */
.color-supplements .color-box {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.color-supplements .color-box img {
  width: 66px;
  margin-right: 10px; /* 画像と数値の間隔 */
  border-radius: 2px; /* 画像の角を少し丸く */
}

.color-supplements .color-box div {
  font-size: 16px;
  font-weight: 700;
}

.color-supplements .color-ratio {
  width: 100%;
}

@media (max-width: 768px) {
  .color-supplements {
    gap: 5px; /* モバイルでの間隔を狭める */
  }

  .color-supplements .color-desc-box {
    width: calc(50% - 3px);
  }
}

/* 既存のstyle-book-page-large.cssの修正 */
.color-desc-box:nth-child(2),
.color-desc-box:nth-child(3) {
  width: auto;
  margin-left: 0;
}
/* 補色と補正色のパーセントを下に表示するスタイル */
.color-percentage {
  font-size: 14px;
  font-weight: 700;
  margin-top: 5px;
  text-align: center;
}

/* 右下に固定された上部へスクロールするボタン */
.fixed-scroll-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border-radius: 50%;
  background-color: #212121;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.fixed-scroll-top-btn:hover {
  background-color: #333333;
  transform: scale(1.05);
}

.fixed-scroll-top-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.fixed-scroll-top-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* モバイル向けの調整 */
@media (max-width: 768px) {
  .fixed-scroll-top-btn {
    bottom: 70px; /* モバイルフッターの上に配置 */
  }
}

/* 検索ヘッダーのスタイル */
.search-header-container {
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-title {
  font-size: 24px;
  font-weight: 400;
  margin: 0;
  font-family: 'Times New Roman', serif;
}

.page-help-button {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #212121;
}

.page-help-button svg {
  margin-right: 6px;
}

.page-help-button span {
  font-size: 14px;
}

/* 明度フィルターのスタイル更新 */
.brightness-filter-container {
  max-width: 850px;
  width: 100%;
  margin: 16px auto 0;
  padding: 0 15px;
}

.brightness-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 明度カードのサイズを調整 */
.brightness-card {
  height: 48px; /* 小さくする */
  width: calc(25% - 7.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 8px; /* パディングも小さく */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

/* カラーフィルターのスタイル */
.color-filter-container {
  max-width: 1300px;
  width: 100%;
  margin: 20px auto;
  padding: 0 15px;
}

@media (max-width: 768px) {
  .color-filter-container {
    margin: 8px auto 0 auto;
  }

  /* SP表示でのカラースライダー設定 */
  /* .color-filter-container の中の .color-buttons に限定 */
  .color-filter-container .color-buttons {
    flex-wrap: nowrap !important; /* 折り返さない */
    overflow-x: auto !important; /* 横スクロールを有効にする */
    justify-content: flex-start !important; /* 左寄せにする */
    padding-bottom: 10px; /* スクロールバーのための余白（任意） */
    /* スクロールバーを非表示にする（任意） */
    -ms-overflow-style: none; /* IE, Edge */
    scrollbar-width: none; /* Firefox */
  }
  .color-filter-container .color-buttons::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  /* SP表示時のカラーボタンのスタイル */
  .color-filter-container .color-buttons .color-button {
    flex-shrink: 0; /* ボタンが縮まないようにする */
    /* 必要に応じて幅/高さを再調整 */
    /* width: 60px; */
    /* height: 60px; */
  }
}

.color-buttons {
  display: flex;
  flex-wrap: wrap; /* デフォルト（PC）は折り返す */
  gap: 20px 10px;
  justify-content: center;
}

.color-button {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  border: 2px solid transparent;
  opacity: 1; /* 初期状態では完全に不透明 */
}

.color-button:hover {
  transform: scale(1.05);
}

/* 選択されたカラーボタンの表示 */
.color-button.selected,
.color-button.active {
  border: 2px solid #fff;
  transform: scale(1.05);
  opacity: 1;
}

/* カラーが選択されているときの非選択カラーボタンのスタイル */
.color-buttons.has-selection .color-button:not(.active):not(:hover) {
  opacity: 0.5;
}

/* 何かが選択されているときの、明度カードのスタイル */
.has-selection .brightness-card:not(.selected) {
  opacity: 0.5;
}

/* 明度カードの選択スタイル */
.brightness-card.selected {
  border: 2px solid #fff;
  transform: scale(1.02);
}

.color-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}

.color-button[data-color='gray']::before {
  background-image: url(/static/images/search/gray.png);
}
.color-button[data-color='beige']::before {
  background-image: url(/static/images/search/beige.png);
}
.color-button[data-color='brown']::before {
  background-image: url(/static/images/search/brown.png);
}
.color-button[data-color='orange']::before {
  background-image: url(/static/images/search/orange.png);
}
.color-button[data-color='blue']::before {
  background-image: url(/static/images/search/blue.png);
}
.color-button[data-color='pink']::before {
  background-image: url(/static/images/search/pink.png);
}
.color-button[data-color='purple']::before {
  background-image: url(/static/images/search/purple.png);
}
.color-button[data-color='green']::before {
  background-image: url(/static/images/search/green.png);
}
.color-button[data-color='red']::before {
  background-image: url(/static/images/search/red.png);
}
.color-button[data-color='yellow']::before {
  background-image: url(/static/images/search/yellow.png);
}
.color-button[data-color='black']::before {
  background-image: url(/static/images/search/black.png);
}

.color-button-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.color-button-inner span {
  color: white;
  font-weight: 500;
  font-size: 12px;
  text-align: center;
}

.color-button-inner span.black {
  color: black;
}

.color-button[data-color='yellow'] .color-button-inner span {
  color: #000;
}

/* リセットボタンのスタイル */
.reset-button-container {
  display: flex;
  justify-content: flex-start;
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  margin-bottom: 40px;
}

.reset-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  font-size: 14px;
  color: #333;
  border-radius: 30px;
  transition: all 0.2s ease;
}

.reset-button:hover {
  opacity: 0.7;
}

.reset-button img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

/* ヘルプモーダルのスタイル */
.help-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.help-modal-content {
  background-color: transparent;
  max-width: 800px;
  width: 90%;
  border-radius: 8px;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.help-modal-body {
  padding: 20px;
  color: white;
  border-radius: 8px;
  position: relative; /* ボタンの配置の基準となる位置指定 */
}

.close-help-modal {
  background-color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  position: absolute; /* 絶対位置指定 */
  top: 10px; /* 上から10pxの位置 */
  right: 10px; /* 右から10pxの位置 */
  z-index: 10; /* 他の要素より前面に表示 */
}

/* ステップセクションのスタイル */
.step-section {
  margin-bottom: 30px;
  text-align: left;
}

.step-section:last-child {
  margin-bottom: 0;
}

.step-title-modal {
  font-family: 'Times New Roman', serif;
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 5px 0;
  color: white;
  text-align: left;
}

.step-description {
  font-family: 'Zen Kaku Gothic New', var(--default-font-family);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 10px 0;
  color: white;
  text-align: left;
}

.step-detail {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 15px 0;
  color: white;
  text-align: left;
}

/* ステップ1の明度と色サンプル */
.step-images {
  margin-top: 15px;
}

.step-brightness-section,
.step-color-section {
  margin-bottom: 20px;
}

.brightness-label,
.color-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.brightness-buttons-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.brightness-preview {
  width: calc(25% - 8px);
  min-width: 80px;
  text-align: center;
  padding: 10px 5px;
  border-radius: 5px;
  color: white;
  font-size: 12px;
  line-height: 1.3;
}

.brightness-preview.low {
  background-color: #5c4e41;
}

.brightness-preview.middle {
  background-color: #8f7965;
}

.brightness-preview.high {
  background-color: #ba8e80;
}

.brightness-preview.white {
  background-color: #e0e0e0;
  color: #333;
}

.color-buttons-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.color-preview {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 500;
  position: relative;
}

.color-preview.brown {
  background-color: #8f5944;
}
.color-preview.beige {
  background-color: #a4978b;
}
.color-preview.pink {
  background-color: #d96b83;
}
.color-preview.purple {
  background-color: #966196;
}
.color-preview.gray {
  background-color: #8b8685;
}
.color-preview.black {
  background-color: #333333;
}
.color-preview.yellow {
  background-color: #e1b141;
  color: #333;
}

.swipe-indicator {
  font-size: 14px;
  margin-top: 5px;
  text-align: right;
  color: #666;
}

/* 結果プレビュー */
.result-preview {
  max-width: 100%;
  text-align: center;
}

.result-preview img {
  max-width: 100%;
  border-radius: 5px;
}

/* PC・SPの画像表示切り替え */
.pc-only-image {
  display: block;
}

.sp-only-image {
  display: none;
}

/* レスポンシブ調整 */
@media (max-width: 767px) {
  .help-modal-content {
    width: 95%;
    max-width: 500px;
  }

  .help-modal-body {
    padding: 15px;
  }

  .step-title-h {
    font-size: 16px;
  }

  .step-description {
    font-size: 15px;
  }

  .step-detail {
    font-size: 13px;
  }

  .brightness-buttons-preview {
    gap: 5px;
  }

  .brightness-preview {
    width: calc(25% - 4px);
    min-width: 65px;
    font-size: 11px;
    padding: 8px 3px;
  }

  .color-buttons-preview {
    gap: 8px;
  }

  .color-preview {
    width: 50px;
    height: 50px;
    font-size: 10px;
  }

  .pc-only-image {
    display: none;
  }

  .sp-only-image {
    display: block;
  }
}

/* 対応明度目安のスタイル */
.level-guide {
  margin: 15px 0;
  color: white;
}

.level-guide-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
  color: white;
}

.level-guide-items {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.level-item {
  font-size: 14px;
  color: white;
}

/* レスポンシブ調整 */
@media (max-width: 767px) {
  .level-guide-items {
    flex-direction: column;
    gap: 5px;
  }

  .level-item {
    font-size: 13px;
  }
}

/* 新規アイテム用のNew表示 */
.new-label {
  position: absolute;
  top: -22px;
  background-color: transparent; /* 背景色なし */
  color: #000000; /* 黒文字 */
  font-size: 14px; /* 少し大きめに */
  font-weight: normal; /* 通常の太さ */
  padding: 0; /* パディングなし */
  border-radius: 0; /* 角丸なし */
  z-index: 2;
  text-transform: none; /* 大文字変換なし */
}

/* アイテムカード内の要素配置調整 */
.hair-color-box {
  position: relative; /* Newラベルの配置基準 */
}

.hair-color-image {
  position: relative; /* Newラベルの配置基準 */
  overflow: hidden; /* はみ出した部分を隠す */
  border-radius: 8px; /* コンテナ自体にも角丸を設定 */
}

.hair-color-image img {
  display: block; /* img下の余白を消す */
  width: 100%;
  height: auto;
  border-radius: 8px; /* 画像に角丸を設定 */
  /* 念のため transform もリセット */
  transform: translateZ(0);
}

/* カラータグのスタイル */
.hair-color-tags {
  margin-top: 6px; /* 少し間隔をあける */
  margin-bottom: 6px;
  display: flex; /* 横並びにする */
  flex-wrap: wrap; /* 折り返しを許可 */
  gap: 6px; /* タグ間のスペース */
}

.color-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px; /* 角丸にする */
  font-size: 10px;
  font-weight: 500;
  color: white; /* デフォルトの文字色 */
  text-transform: uppercase;
  background-size: cover; /* 背景画像をカバー */
  background-position: center; /* 背景画像中央揃え */
}

/* Yellowタグの文字色調整 */
.color-tag:is([style*='yellow.png']) {
  color: #333;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5); /* 白っぽい影 */
}

/* レスポンシブ調整 */
@media (max-width: 767px) {
  .new-label {
    top: -22px;
  }
  /* SP時のカラータグスタイルは特に変更不要（上記スタイルが継承される）*/
  .hair-color-tags {
    gap: 4px;
  }
}

/* ブラーオーバーレイのスタイル */
.recipe-details-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.login-prompt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8); /* より白っぽく */
  backdrop-filter: blur(8px); /* ブラーを強く */
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.3s ease;
}

.login-prompt-content {
  text-align: center;
  padding: 20px;
  width: 90%;
}

.login-prompt-content p {
  font-weight: 500;
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}
@media (min-width: 767px) {
  .login-prompt-content p {
    font-size: 24px;
  }
}

.login-prompt-buttons {
  display: flex;
  justify-content: center;
  gap: 20px; /* 写真のボタン間隔に合わせて調整 */
}

.stylebook-signup-btn {
  background-color: #343a40;
  color: white !important;
  padding: 10px 5px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 30%;
}

.stylebook-signup-btn:hover {
  background-color: #212529;
  transform: translateY(-2px);
}

.stylebook-login-btn {
  background-color: white;
  color: #343a40 !important;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid #ced4da;
  text-decoration: none !important;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  width: 35%;
}

@media (max-width: 767px) {
  .stylebook-login-btn,
  .stylebook-signup-btn {
    width: 50%;
  }
}

.stylebook-login-btn:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

/* 非表示クラス */
.hidden {
  display: none !important;
}

/* Layout */
.main-container {
  font-family: 'Zen Kaku Gothic New' !important;
  position: relative;
  width: 1296px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
}

.header {
  margin-bottom: 24px;
}

.usage-steps,
.guide-tables {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.steps-row,
.tables-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  width: 100%;
}

.step-card,
.table-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tables-row:last-child {
  margin-top: 24px;
}

.tables-row:last-child .table-card {
  flex-basis: 405.333px;
  max-width: 405.333px;
}

.table-card.centered {
  align-items: center;
  justify-content: center;
  max-width: 345px;
}

/* Components */
.tab-navigation {
  display: flex;
  align-items: center;
  width: 450px;
  height: 40px;
  padding: 4px;
  background: #e9e9e9;
  border-radius: 40px;
  position: relative;
}

.tab-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 5px 46px;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.42px;
  border-radius: 40px;
  transition: all 0.3s ease;
  color: #888b8c;
  background: #e9e9e9;
}

.tab-button.active {
  background: #212529;
  color: #fdfdfd;
}

.tab-button:hover:not(.active) {
  background: #d0d0d0;
}

.special-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 103px;
  height: 24px;
  padding: 4px 8px;
  background: #212529;
  border-radius: 4px;
  margin-bottom: 8px;
}

.tag-text {
  color: #fdfdfd;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
  letter-spacing: 0.36px;
}

.content-section {
  display: none;
  width: 100%;
}

.content-section.active {
  display: block;
}

.step-title-h,
.table-title {
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #212529;
  margin-bottom: 8px;
}

.table-title {
  color: #090f26;
  font-weight: 500;
  line-height: 21px;
}

.step-description,
.table-subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #212529;
  margin-bottom: 8px;
}

.step-note,
.table-note {
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  color: #212529;
}

.step-image-h img,
.table-image img {
  width: 100%;
  height: auto;
}

.table-note {
  line-height: 17.376px;
}

/* Responsive */
@media (max-width: 768px) {
  .main-container {
    width: 100%;
    padding: 0 16px;
  }

  .tab-navigation {
    width: 100%;
    max-width: 345px;
  }

  .tab-button {
    padding: 5px 20px;
    font-size: 13px;
  }

  .steps-row,
  .tables-row {
    flex-direction: column;
    gap: 24px;
  }

  .step-card,
  .table-card {
    width: 100%;
    max-width: 100%;
    flex-basis: auto;
  }

  .tables-row:last-child {
    margin-top: 24px;
  }

  .tables-row:last-child .table-card {
    max-width: 100%;
    flex-basis: auto;
  }

  .table-card.centered {
    max-width: 100%;
    align-items: flex-start;
  }

  .special-tag {
    width: auto;
    min-width: 103px;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 0 12px;
  }

  .tab-button {
    padding: 5px 12px;
    font-size: 12px;
  }

  .step-title-h,
  .table-title,
  .step-description,
  .table-subtitle {
    font-size: 13px;
  }

  .step-note,
  .table-note {
    font-size: 11px;
  }

  .tag-text {
    font-size: 11px;
  }
}
