@charset "utf-8";

:root {
  --tab-active-bg: #ffe4e1;
  --tab-inactive-bg: #e0e0e0;
  --border-color: #000;
  --text-color: #333;
  --accent-pink: #ea55b2;
  --accent-orange: #ed9121;
  --btn-red: #f03e2f;
  --header-gray: #666;
}

#clearance * {
  box-sizing: border-box;
}

#clearance {
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 80px;
}

#clearance .inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

#clearance .caution {
  margin: 60px auto 60px;
}

#clearance .caution svg {
  display: block;
  width: 50px;
  margin: 0 auto 20px;
}

#clearance .caution .ttl {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
}

#clearance .caution .text {
  font-size: 20px;
  margin-bottom: 1em;
}

#clearance .caution .text span {
  color: #cc0000;
}

#clearance .gasket-link {
  text-align: right;
  font-size: 20px;
  text-decoration: underline;
}

/* ?^?u?G???A?S???R???e?i */
.tab-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* ?^?u??w?b?_?[???? */
.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: -2px; /* ?R???e???c??{?[?_?[??d????????? */
  position: relative;
  z-index: 1;
  gap: 0.5em;
}

.tab-btn {
  height: 80px;
  flex: 1;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid var(--border-color);
  border-bottom: none; /* ???????????R???e???c??????????? */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--tab-inactive-bg);
  color: #888;
  transition: background-color 0.2s;
}

.tab-btn img {
  height: 100%;
  width: auto;
}

/* ?A?N?e?B?u??^?u??X?^?C?? */
.tab-btn.active {
  background-color: var(--tab-active-bg);
  color: var(--border-color);
  border-bottom: 2px solid var(--tab-active-bg); /* ??????w?i?F????????????E?????? */
  z-index: 2;
}

.tab-btn svg {
  width: 30px;
  height: 30px;
}

/* ?^?u????g?i?R???e???c?G???A?j */
.tab-content-wrapper {
  border: 2px solid var(--border-color);
  padding: 40px 20px;
  background-color: #fff;
  position: relative;
  z-index: 0;
}

.tab-panel {
  display: none; /* ?f?t?H???g???\?? */
}

.tab-panel.active {
  display: block; /* ?A?N?e?B?u?????????\?? */
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ?O???b?h???C?A?E?g?i?J?[?h????„ƒj */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  justify-content: center;
}

/* ??????i?J?[?h */
.product-card {
  border: 1px solid #ccc;
  text-align: center;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

/* ?J?[?h??w?b?_?[ (RX-00???) */
.card-header {
  background-color: var(--header-gray);
  color: #fff;
  padding: 5px;
  font-size: 18px;
  font-weight: bold;
}

/* ?J?[?h??T?u?w?b?_?[ (???) */
.card-sub-header {
  padding: 4px;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
}

/* ?J?[?h??{?? */
.card-body {
  padding: 10px 5px;
  flex-grow: 1;
}

.card-body img {
  width: 30%;
  margin-bottom: 10px;
}

.model-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  line-height: 1.4;
  font-weight: bold;
  font-size: 14px;
}
.product-icon {
  width: 40px;
  height: auto;
  margin: 10px auto;
  display: block;
  border: 1px solid #333; /* ????A?C?R???g */
  border-radius: 4px;
  padding: 2px;
}

/* ?v???[?g?K?X?P?b?g????????x?? */
.card-label {
  background-color: #000;
  color: #fff;
  padding: 2px;
  font-size: 12px;
  margin-top: auto;
}

/* ???????{?^???G???A */
.card-footer {
  padding: 10px 5px;
}

.quote-btn {
  background-color: var(--btn-red);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 5px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  display: block;
  margin-bottom: 5px;
}
.quote-btn:hover {
  opacity: 0.8;
}

.note {
  font-size: 10px;
  color: #000;
  font-weight: bold;
}