/* ============================================= */
/* New Accordion Styles (for conflict avoidance) */
/* ============================================= */
.contents__left .titleMain--wrapper .titleMain--main {
  font-size: var(--font-2xl) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.contents__left .titleMain--lead {
  color: #000;
  font-weight: 500;
  width: fit-content;
  margin: auto;
  margin-top: 2%;
  font-size: var(--font-l) !important;
}

.new-accordion-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  margin-top: 5%;
}

.new-accordion-trigger {
  display: flex;
  align-items: center;
  padding: 2% 9px;
  background-color: #f0f0f0;
  border-radius: 8px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: var(--font-xl);
  transition: background-color 0.2s;
  cursor: pointer;
  margin-bottom: 0.7em;
}

.new-accordion-trigger:hover {
  background-color: #eaeaea;
}

.new-accordion-trigger.is-open {
  background-color: #f0f0f0;
  border-radius: 8px 8px 8px 8px;
  margin-bottom: 0em;
}

.new-accordion-icon {
  flex-shrink: 0;
  width: 15%;
  min-width: 50px;
  max-width: 70px;
  height: auto;
  object-fit: contain;
  margin-right: 4%;
}

.new-accordion-title {
  flex-grow: 1;
}

/* インジケーター（＋/－ アイコン） */
.new-accordion-indicator {
  width: 35px;
  height: 20px;
  position: relative;
}

.new-accordion-indicator::before,
.new-accordion-indicator::after {
  content: '';
  position: absolute;
  background-color: #000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.new-accordion-indicator::before {
  width: 20px;
  height: 2px;
}

.new-accordion-indicator::after {
  width: 2px;
  /* 縦棒 */
  height: 100%;
  transform: translate(-50%, -50%);
}

.new-accordion-trigger.is-open .new-accordion-indicator::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.new-accordion-panel {
  display: none;
  /* 初期状態では非表示 */
  padding: 0;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

/* 「他のモデル」のリストスタイル */
.new-other-models-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.new-other-model-item {
  display: block;
  padding: 12px;
  background-color: #f0f0f0;
  text-decoration: none;
  color: #333;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.2s;
}

.new-other-model-item:hover {
  background-color: #e0e0e0;
}

@media (min-width: 768px) {
  .new-other-models-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .new-accordion-panel {
    padding: 3% 0;
  }

  .new-accordion-trigger {
    margin-bottom: 1.5em;
    font-size: var(--font-l);
  }
}

/* ============================================= */
/* Result Item List (lv-result-list) - These styles are kept for the content inside panels */
/* ============================================= */
.lv-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lv-result-item {
  border-bottom: 1px solid #969696;
  flex-direction: column;
}

.lv-result-item:last-child {
  border-bottom: none;
}

.lv-result-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  padding: 5% 0;
  position: relative;
  overflow: hidden;
}

.lv-result-top {
  display: flex;
  align-items: flex-start;
}

.lv-result-img-wrap {
  position: relative;
  width: 35vw;
  min-width: 110px;
  max-width: 20%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin-right: 4vw;
  border: 1px solid #969696;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.lv-result-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}

.lv-result-img-wrap::after {
  right: -10%;
  bottom: -10%;
  width: 30%;
  height: 30%;
  background: #E60012;
  border-radius: 2em;
  position: absolute;
  display: block;
  content: "";
}

.lv-result-img-wrap::before {
  right: 5.6%;
  bottom: 5%;
  width: min(1.4vw, 14px);
  height: min(2vw, 22px);
  color: #fff;
  background: url(/brand/wp-content/themes/otakaraya/assets/img/common/icon_arrow_white02.png) no-repeat top left;
  background-size: contain;
  position: absolute;
  display: block;
  content: "";
  z-index: 10;
}

.lv-result-info-main {
  flex-grow: 1;
}

.lv-result-brand {
  font-size: var(--font-l);
  font-weight: 600;
  color: #000;
  margin-bottom: 0.4em;
  margin-top: 0.7rem;
  line-height: 1;
}

.lv-result-name {
  font-size: var(--font-l);
  font-weight: 500;
  color: #000;
  margin-bottom: 8px;
  line-height: 1.3;
}

.lv-result-bottom {
  margin-top: 10px;
  height: 145px;
}

.lv-result-price-line {
  display: flex;
  align-items: baseline;
  gap: 5%;
}

.lv-result-price-label {
  font-size: 4.6vw;
  color: #000;
  font-weight: 900;
  line-height: 1;
}

.lv-result-price {
  font-size: 7vw;
  font-weight: bold;
  color: #E60012;
  line-height: 1;
}

.lv-result-price span {
  font-size: 5vw;
}

.lv-result-date {
  font-size: var(--font-s);
  color: #000;
  font-weight: 600;
  margin-top: 3%;
  line-height: 1;
}

.buy-btn {
  width: 100%;
  display: block;
  margin: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin-top: 5%;
}

.buy-btn:hover {
  opacity: 0.8;
  /* 半透明に */
  transform: scale(1.05);
  /* 拡大 */
}

.buy-btn img {
  max-width: 100%;
  width: 100%;
  display: block;
  margin: -3% 0 0 0;
}

.detail_text_area p {
  font-size: 0.875rem;
  min-height: 3rem;
}

.detail_text_area p:nth-child(1) {
  font-size: 0.8rem;
}

#latest_result a.img__link:hover .img::before {
  background: var(--theme_color);
  opacity: 1;
}

#latest_result a.img__link .img::before {
  background: #000;
  border-radius: 24px;
  right: 7px;
  bottom: 7px;
  width: 24px;
  height: 24px;
  opacity: 0.3;
}

@media (min-width: 768px) {
  .lv-result-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
  }

  .lv-result-item {
    width: calc(25% - 15px);
    border-bottom: none;
    list-style: none;
    display: flex;
    flex-direction: column;
  }

  .lv-result-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .lv-result-img-wrap {
    position: relative;
    margin: 0;
    border-radius: 12px;
    width: 100%;
    min-width: unset;
    max-width: unset;
  }

  .lv-result-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
  }

  .lv-result-img-wrap::after {
    right: -12px;
    bottom: -12px;
    width: 48px;
    height: 48px;
    background: #969696;
    border-radius: 50%;
    position: absolute;
    display: block;
    content: "";
    transition: background-color 0.3s;
  }

  .lv-result-img-wrap::before {
    right: 8px;
    bottom: 8px;
    width: 12px;
    height: 12px;
    background: url(/brand/wp-content/themes/otakaraya/assets/img/common/icon_arrow_white02.png) no-repeat center;
    background-size: contain;
    position: absolute;
    display: block;
    content: "";
    z-index: 10;
  }

  .lv-result-link:hover .lv-result-img-wrap::after {
    background: #E60012;
  }

  .lv-result-top {
    display: block;
  }

  .lv-result-info-main,
  .lv-result-bottom {
    padding: 0 0px;
  }

  .lv-result-info-main {
    padding-top: 3px;
  }

  .lv-result-bottom {
    padding-bottom: 15px;
    margin-top: auto;
  }

  .lv-result-brand {
    font-size: var(--font-m);
    font-weight: 600;
  }

  .lv-result-name {
    font-size: var(--font-s);
    margin: 0.4em 0;
  }

  .lv-result-price-line {
    display: block;
    margin-top: 10px;
  }

  .lv-result-price-label {
    display: block;
    font-size: var(--font-m)
  }

  .lv-result-date {
    font-size: min(1.2vw, 14px);
    margin-top: 8%;
  }

  .lv-result-price {
    font-size: min(2.2vw, 32px);
  }

  .lv-result-price span {
    font-size: min(1.8vw, 24px);
  }
}


.other-accordion {
  margin-top: 20px;
  margin-bottom: 3rem;
}

.other-accordion-trigger {
  border: 1px solid #ccc;
  border-radius: 50px;
  padding: 16px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  max-width: 392px;
  margin: auto;
}

.other-accordion-trigger::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 28px;
  background-image: url(/brand/wp-content/themes/otakaraya/assets/img/common/icon_arrow_red_down.webp);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(0deg);
  transition: transform 0.3s;
  position: absolute;
  right: 20px;
  top: 50%;
  margin-top: -14px;
}

.other-accordion-trigger.is-open::after {
  transform: rotate(180deg);
}

.other-accordion-panel {
  padding: 5% 0;
  /* border: 1px solid #eee; */
  border-top: none;
  margin-top: -8px;
  border-radius: 0 0 8px 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.btn__wrap--result-brand.btn__wrap.btn__red {
  padding-bottom: 20px;
}

@media(min-width: 768px) {
  .other-accordion-panel {
    grid-template-columns: repeat(3, 1fr);
  }
}

.other-models-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.other-model-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5% 12px 10%;
  background-color: #f0f0f0;
  text-decoration: none;
  color: #000;
  border-radius: 8px;
  font-weight: bold;
  font-size: var(--font-l);
}

.other-model-item::after {
  content: '';
  display: inline-block;
  min-width: 22px;
  min-height: 22px;
  background-image: url(/brand/wp-content/themes/otakaraya/assets/img/common/icon_arrow_red01.webp);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Shared and Desktop Styles */
@media (min-width: 768px) {
  .other-models-list {
    grid-template-columns: repeat(3, 1fr);
  }
}


#brand_result_search {
  margin-top: 5%;
  padding: 0 0em;
}

#brand_result_search .wd_searchtitle {
  font-size: var(--font-l);
  font-weight: 600;
  color: #000 !important;
  background: none;
  padding-left: 0;
}

#brand_result_search .wd_searchbox form {
  display: flex;
  gap: 0;
}

#brand_result_search .wd_searchinput {
  box-sizing: border-box;
  width: 86%;
  height: 50px;
  border: 1px solid #333333;
  background-color: #FFFFFF;
  padding: 0px 12px;
  border-radius: 10px 0px 0px 10px;
  border-right: none;
  font-size: var(--font-l);
}

#brand_result_search input[type="submit"] {
  width: 18%;
  background: #E60012;
  color: #FFF;
  font-weight: bold;
  border: 1px solid #333333;
  border-left: none;
  border-radius: 0px 10px 10px 0px;
  cursor: pointer;
  box-shadow: none;
  padding: 0 10px;

  text-align: center;
}

#latest_result>div.result__flex.flex>div>ul {
  padding-bottom: 0 !important;
}

.flex_annitation {
  padding-top: 0 !important;
}

@media(max-width: 767px) {
  .btn__wrap.btn__red.btnToSogo {
    width: 90%;
  }

  #brand_result_search .wd_searchinput {
    font-size: 14px;
    height: 45px;
  }

  #brand_result_search input[type="submit"] {
    height: 45px;
    padding: 0% 3%;
  }

  .buy-btn {
    width: 100%;
    display: block;
    margin: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .buy-btn img {
    max-width: 100%;
    width: 100%;
    display: block;
    margin: 2% 0 2% 0;
  }

  .lv-result-item {
    padding: 3% 0;
  }

  .lv-result-price-line {
    flex-direction: row;
  }

  .lv-result-bottom {
    height: auto;
  }

  .lv-result-link {
    padding: 0;
  }
}


.other-accordion {
  margin-bottom: 0 !important;
}

#purchase_items.otakaraya_purchase_items {
  margin-top: 0 !important;
}


@media screen and (max-width: 767px) {
  #purchase-options-section .purchase-card:last-child {
    margin-bottom: 0 !important;
  }
}
