/*
Theme Name: CUREBELL
Theme URI: 
Author: CUREBELL
Version: 1.0
*/

/* Global Font Settings */
* {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  color: #292929;
}

html {
  font-size: 62.5% !important;
}

html,
body {
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Noto Sans JP', "Poppins", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", sans-serif !important;
  font-style: normal;
  font-size: 1.4rem;
  line-height: 1;
  background: #fff;
  color: #292929;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
button,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  border: 0;
  font: inherit;
  font-size: 100%;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}


ol,
ul {
  list-style: none;
}

li,
dd {
  list-style-type: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption,
th,
td {
  font-weight: normal;
  text-align: left;
  vertical-align: middle;
}

q,
blockquote {
  quotes: none;
}

q:before,
q:after,
blockquote:before,
blockquote:after {
  content: "";
  content: none;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

img {
  border: none;
  vertical-align: bottom;
  width: 100%;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  opacity: 0.7;
}

#header>div {
  width: 1000px;
  margin: auto;
}

.ui_panel.border_bottom,
.ui_panel.border_bottom_pc{
  border: solid #ccc 0 !important;
  border-bottom-width: 1px !important;
}

.ui_panel.layout_horizon {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#nav {
  justify-content: flex-start !important;
}

#nav .breadcrumb li.icon_arrow {
  display: block;
  width: 14px;
  height: 14px;
  background: no-repeat center;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDEwIDE2Ij48cGF0aCBmaWxsPSIjNjE2NzczIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0uNDMgMTMuNjQ1YTEuMzIgMS4zMiAwIDAgMCAwIDEuOTUxIDEuNTQgMS41NCAwIDAgMCAyLjA4IDBsNy4wNi02LjYyYTEuMzIgMS4zMiAwIDAgMCAwLTEuOTUxTDIuNTEuNDA0YTEuNTQgMS41NCAwIDAgMC0yLjA4IDAgMS4zMiAxLjMyIDAgMCAwIDAgMS45NUw2LjQ1IDh6Ii8+PC9zdmc+);
  background-size: 10px;
  content: "";
}

.home {
  display: flex;
  align-items: center;
}

#nav .breadcrumb {
  display: flex;
  align-items: center;
  height: 38px;
  margin-left: 5px;
  list-style: none;
  font-size: 1.3rem;
  letter-spacing: 0.075em;
  color: #555b67;
}

#nav .breadcrumb li {
  position: relative;
  margin-right: 8px;
}

.pc-none {
  display: none !important;
}

@media screen and (max-width: 430px) {

  #page #content #main_panel {
    /* padding-top: 160px !important; */
  }

  .pc-none {
    display: block !important
  }
}

/* ▲common */

/* ▼single */

.l-body {
  background: #F6FAF3;
  margin: 0px auto 48px;
  padding: 32px 20px;
  border-radius: 8px;
}

.p-article {
  color: #333;
  font-size: 1.6rem;
  line-height: 1.8;
}

.p-article img{
    margin-bottom: 20px;
  }


.p-article-updatedate{
  font-size: 1.3rem;
  color: #919AA2;
  margin-bottom: 16px;
  font-size: 12px;
line-height: 160%;

}


.p-article-header {
  margin: 8px 0 16px;
}

.p-article p {
  margin: 0 0 32px 0;
  font-family: 'Noto Sans JP';
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 160%;
letter-spacing: 0.05em;
color: #292929;
}

.p-article a {
  color: #3C78D8;
}

h1 {
  padding: 8px 0 0;
  margin-bottom: 16px;

  font-family: 'Noto Sans JP';
font-style: normal;
font-weight: 500;
font-size: 22px;
line-height: 160%;
letter-spacing: 0.02em;

color: #292929;

}

.p-article h2 {
padding: 4px 12px 8px;
  margin: 48px 0 32px 0;
  font-weight: 600;
  color: #005200;
font-size: 20px;
line-height: 160%;
background: #63C871;
border-radius: 4px;

}

.p-article h3 {
  padding: 0px 0px 8px;
border-bottom: 2px solid #007E00;
font-weight: 600;
font-size: 18px;
line-height: 160%;

  margin-top: 32px;
  margin-bottom: 16px;
}

.p-article h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 160%;
  margin-bottom: 12px;
  position: relative;
  border-left: none !important;
  padding-left: 12px;
  display: flex;
  align-items: center;
}

.p-article h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: #007E00;
  background: color(display-p3 0.016 0.486 0.000);
  border-radius: 2px;
}

.p-article-header__image img {
  /* object-fit: cover; */
  /* height: 500px; */
  width: 100%;
}


.p-article-header__doctor__list {
  margin-top: 32px;
}

.p-article-header__doctor__list .title {
  font-weight: 600;
font-size: 16px;
line-height: 160%;
}


.p-article-header__doctor {

  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid #003974;
  border: 1px solid color(display-p3 0.000 0.220 0.439);
  border-radius: 4px;

  margin: 12px 0 8px;
  position: relative;
  min-height: 82px;
}

.p-article-header__doctor-image {
  padding-right: 16px;
  /* min-width: 64px; */
}

.p-article-header__doctor-image>img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 0.5px #e5e5e5 solid;
  margin: 0;
}

.p-article-header__doctor-text {
  color: #666;
  margin-left: 16px;
  flex: 1;
}

.p-article-header__doctor-hospital {
  font-size: 1.4rem;
  font-weight: bold;
}

.p-article-header__doctor-name {
  font-size: 1.8rem;
  color: #333;
  font-weight: bold;
}

.p-article-header__supervisor__list {
  margin-top: 32px;
}


.p-article-header__supervisor {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  padding: 16px 32px;
  background: #f8f8f8;
  margin: 4px 0;
  position: relative;
  min-height: 82px;
}

.p-article-header__supervisor-image>img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 0.5px #e5e5e5 solid;
  margin: 0 auto;
}

.p-article-header__supervisor-info p{
  font-weight: bold;
  text-align: center;
  margin-bottom:unset !important;
}

.p-article-header__supervisor-info p.p-article-header__supervisor-title{
  font-size: 0.8em;
}

.p-article-header__supervisor-hospital {
  font-size: 1.6rem;
  font-weight: bold;
}

.p-article-header__supervisor-text {
  color: #666;
  margin-left: 16px;
  flex: 1;
}

.p-article-header__supervisor-info {
  margin-top: 8px;
  font-size: 1.8rem;
  color: #333;
  font-weight: bold;
}


.highlight {
  background: linear-gradient(to top, #DAEDA3 0%, #DAEDA3 32%, transparent 40%);
  font-weight: bold;
}

table.blueTable {
  text-align: center;
  margin: 0 0 0 0;
  line-height: 3.0rem;
  width: 100%;
}

table.blueTable td,
table.blueTable th {
  border: 1px solid #AAAAAA;
  padding: 4px 8px;
}

table.blueTable tbody td {
  font-size: 1.6rem;
  background-color: #FFF;
}

table.blueTable thead {
  background: #5686CE;
}

table.blueTable thead th {
  text-align: center;
  font-size: 1.8rem;
  font-weight: normal;
  color: #FFFFFF;
}
.table_scroll {
  margin-bottom: 20px;
}

.p-app-area {
  width: 100%;
border: 1px solid #007E00;
  margin: 0 0 32px 0;
  border-radius: 4px;
  background: #fff;

}

.p-app-area__title {
  background: #5686CE;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  font-size: 1.8rem;
}

.p-app-area__contents {
  padding: 16px;
}

.p-app-area__contents p {
  margin: 0;
}

.p-app-area__contents ul {
font-weight: 500;
font-size: 14px;
line-height: 160%;
  padding-left: 32px;
}

.p-app-area__contents ul li {

  list-style: disc;

}



.medicine_item .item_detail .header .badges .medicine_class_badge,
.medicine_item .item_detail .header .badges .abuse_badge,
.medicine_item .item_detail .header .badges .self_medication_badge {
  margin-right: 8px;
}

.medicine_item .item_detail .header {
  height: 25%;
  margin-bottom: 16px;
}

.medicine_item:not(:last-child) {
  /* border-radius: 6px 6px 0 0; */
}

a .medicine_item {
  color: #44403C !important;
}

.medicine_item {
  /* border-bottom: 1px solid #CCC; */
  border-radius: 4px;
border: 1px solid #003974;
  margin: 8px 0;
  background-color: #fff;
  width: 100%;
}

.medicine_item img {
  object-fit: cover;
}

.medicine_item {
  position: relative;
}

.medicine_item::before {
  content: "この商品を見る";
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: white;
  background-color: rgba(86, 134, 206);
  border-radius: 5px;
  height: 25px;
  width: 125px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  line-height: 25px;
}

.medicine_item .item_detail {
  padding: 20px 20px 60px 20px !important;
  cursor: pointer;
  border-radius: 4px;
}

.medicine_item .item_detail .detail {
  width: 100%;
  align-items: flex-start;
}


.medicine_item .item_detail img {
  object-fit: contain;
  width: 100px;
  height: 100px;
}

.font-red {
  color: red;
}


.medicine_item .item_detail .price {
  overflow: hidden;
  text-overflow: ellipsis;
  /* white-space: nowrap; */
  display: -webkit-box;
  /* 必須 */
  -webkit-box-orient: vertical;
  /* 必須 */
  -webkit-line-clamp: 1;
  /* 行数を制限 */
  margin: 4px 0;
  /* max-width:100%; */
}

.medicine_item .item_detail .msg {
  padding: 12px 16px;
  background: #F3F8FA;
  border-radius: 4px;
  color: #000000;
  width: 100%;
  font-weight: 500;
}

.flex.align_center {
  align-items: center;
}

.flex.justify_between {
  justify-content: space-between;
}

.flex {
  display: flex;
}

.medicine_item .item_detail .header .medicine_title {
  line-height: 1.1;
  margin: 0 8px;
  width: 100%;
}

.medicine_item .item_detail .header .badges {
  flex: 1;
}

.medicine_class_badge {
  display: inline-block;
  min-width: 100px;
  padding: 4px 8px;
  background: #FFF;
  text-align: center;
  color: #383838;
  border-radius: 16px;
  border: 1px solid #E0E0E0;
font-weight: 400;
font-size: 10px;
line-height: 140%;

}

.medicine_item .item_detail .header .badges .abuse_badge {
  /* display: block;
  width: 84px;
  height: 24px;
  border-radius: 4px;
  background: #BE185D;
  box-shadow: inset 0 0 0 1px #BE185D, inset 0 0 0 2px #FFF;
  line-height: 24px;
  font-size: 12px;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  color: #FFF; */

      width: 88px !important;
      height: 22px;
      background: url(/wp-content/themes/curebell/images/abuse.svg) no-repeat center;
      background-size: contain;

}

.medicine_item .item_detail .header .badges .self_medication_badge {
  width: 60px;
  height: 24px;
  background: url(/wp-content/themes/curebell/images/self.svg) no-repeat center;
  background-size: contain;
}

.medicine_item .item_detail .header .medicine_title .name {
  font-weight: 700;
  font-size: 20px;
}

.p-post-feedback__btn {
  margin-top: 24px;
}

.p-post-feedback__btn a {
  width: 100%;
  font-size: 1.5rem;
  border: 1px #ccc solid;
  border-radius: 3px;
  display: inline-block;
  color: #333;
  padding: 9px 32px 9px 10px;
  background: #f8f8f8;
  background-size: auto 19px;
  position: relative;
}

.p-post-feedback__btn a:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 20px;
  bottom: 0;
  width: 12px;
  height: 12px;
  margin: auto;
  border-top: solid 2px #666;
  border-right: solid 2px #666;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

.doctor_more_p {
  display: block;
}

.doctor_more,
.doctor_more_t {
  display: none;
}

@media screen and (max-width: 430px) {

  .doctor_more_p {
    display: none;
  }

  .doctor_more,
  .doctor_more_t {
    display: initial;
  }

  .doctor_more {
    border: solid 1px #ccc;
    display: inline-block;
    padding: 1px 4px;
    font-size: 10px;
  }


  .sp-only {
    display: block;
  }

  .pc-only {
    display: none;
  }

  .p-article-header__doctor-name {
    display: flex;
    padding-bottom: 10px;
    align-items: center;
  }

  .p-article-header__doctor-image>img {
    width: 50px;
    height: 50px;
  }

  .p-article-header__doctor {
    padding: 16px 0px;
  }

  .p-article-header__supervisor {
    padding: 16px 0px;
}
  .p-article-header__supervisor-title {
      margin-top: 12px;
      padding-left: 16px;
      font-size: 0.8em;
  }

  .p-article-header__supervisor-name {
      margin-top: 8px;
      padding-left: 16px;
  }
  .p-article-header__supervisor-image>img {
      width: 50px;
      height: 50px;
  }
  div.p-article-header__supervisor-info {
      display:flex;
      padding-bottom: 10px;        
  }

  .l-body {
    margin: 0px auto 48px;
  }


  .medicine_item {
    background: #FFF;
    padding: 16px 16px 0 16px;
    margin-bottom: 16px;

  }

  .medicine_item .item_detail .medicine_image {
    padding-right: 8px;
    border-right: 1px solid #AAAAAA;
  }

  .medicine_item .item_detail .msg {
    padding: 8px 6px;
    margin-left: 8px;
  }

  .medicine_item .item_detail .header .medicine_title {
    margin: 0
  }

  .medicine_class_badge {
    margin-bottom: 5px
  }

  .medicine_item .item_detail {
    padding: 0;
  }

  .badges {
    display: none !important;
  }

}

/* ▲single */

/* ▼index */

:before,
:after {
  vertical-align: inherit;
  text-decoration: inherit;
}

#page #content #main_panel {
  width: 960px;
  background: #fff;
  /* padding-top: 130px; */
  padding-top: 0 !important;
}

/* #page #content #main_panel_update {
  width: 850px;
  background: transparent;
} */

.search_panel {
  padding: 0 20px 32px 20px;
}

.search_panel--with-border {
  border-top: 1px solid #EFF0F2;
  padding-top: 32px;
}

.search_panel--new-articles {
  padding-top: 32px; /* 32px gap from previous article list */
}

.heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.heading-with-icon {
  font-size: 22px;
  line-height: 160%;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.heading-icon {
  width: 20px;
  height: 20px;
}

/* Major Search Area - Using cb-sidebar button styles with green theme */
.major-search-area {
  margin-bottom: 16px;
}

.major-search-area__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.major-search-area__button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 0;
  background-color: #ffffff;
  border: 1px solid #035000;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease-in-out;
  overflow: hidden;
}

.major-search-area__button:hover {
  background-color: #eff0f2;
  box-shadow: 0 4px 6px #0000001a;
  text-decoration: none;
  opacity: 1;
}

.major-search-area__button:active {
  transform: scale(0.98);
}

.major-search-area__button-bar {
  display: block;
  width: 4px;
  height: 100%;
  min-height: 24px;
  background-color: #059200;
  border-radius: 0 2px 2px 0;
}

.major-search-area__button-text {
  flex: 1;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: #383838;
}

.major-search-area__button-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-right: 4px;
}

/* Focus styles for accessibility */
.major-search-area__button:focus {
  outline: 2px solid #059200;
  outline-offset: 2px;
}

.major-search-area__button:focus:not(:focus-visible) {
  outline: none;
}

/* Tablet styles - 2 columns */
@media screen and (max-width: 768px) {
  .major-search-area__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile styles - handled by #major_search_area_mobile */

/* Show More functionality for categories */
.major-search-area--collapsed .major-search-area__button:not(.major-search-area__button--show-more):nth-child(n+7) {
  display: none;
}

/* Show more button - same as category button but without green bar */
.major-search-area__button--show-more {
  padding-left: 12px;
  cursor: pointer;
  border: 1px solid #035000;
  background: none;
  width: 100%;
  text-align: left;
  grid-column: 2;
  position: relative
}

.major-search-area__button--show-more .major-search-area__button-bar {
  display: none;
}

.major-search-area__button--show-more .major-search-area__show-more-icon {
  width: 7px;
  height: 7px;
  margin: 2px;
  position: absolute;
  right: 16px;
}

/* Responsive adjustments for show more */
@media screen and (max-width: 768px) {
  .major-search-area--collapsed .major-search-area__button:not(.major-search-area__button--show-more):nth-child(n+5) {
    display: none;
  }
  
  /* Center the show more button in 2-column layout */
  .major-search-area__button--show-more {
    grid-column: 1 / -1;
  }
}

/* TOC adjustments */
.toc-area .major-search-area__grid {
  grid-template-columns: 1fr;
}

.toc-toggle {
  width: 100%;
  margin-bottom: 12px;
}

.panel {
  flex-direction: column;
  margin: 16px auto 32px auto;
  background: #FFF;
  padding: 16px;
  border: 1px solid #CCC;
  border-radius: 12px;
}

.panel .list {
  position: relative;
  flex-wrap: wrap;
}

.panel .list label {
  display: block;
  cursor: pointer;
  width: 32%;
}

.panel .list label a {
  color: #333;
}

.panel .list label [type='checkbox'],
.panel .list label [type='radio'] {
  display: none;
}

.panel .list label [type='radio']:checked+div::before {
  background-color: #1E469B;
  border-color: transparent;
  box-shadow: inset 0 0 0 1px #1E469B, inset 0 0 0 4px #FFF;
}

.panel .list label [type='checkbox']+div::before,
.panel .list label [type='radio']+div::before {
  position: absolute;
  left: 14px;
  display: block;
  width: 24px;
  height: 24px;
  background: #FFF no-repeat center;
  border: 2px solid #808080;
  content: '';
}

.panel .list label {
  position: relative;
  padding: 8px 16px;
  background: #FFF;
  border: 2px solid #808080;
  box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.06), 0 2px 4px 0 rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  line-height: 24px;
  color: #333;
  font-size: 16px;
}

.panel .list label:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 20px;
  bottom: 0;
  width: 12px;
  height: 12px;
  margin: auto;
  border-top: solid 2px #666;
  border-right: solid 2px #666;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.panel .list label:hover {
  opacity: .7;
}

.panel .list label [type='radio']+div::before {
  border-radius: 50%;
}

.panel .list label:nth-child(3n-1) {
  margin: 0 2%;
}

.panel .list label:nth-child(n+4) {
  margin-top: 12px;
}

#major_search_area_mobile {
  display: none;
  margin-bottom: 0px;
}

.more {
  color: #333;
  background-color: #FFF;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  width: 30%;
  justify-content: center;
  margin: 16px auto;
}

.search_box {
  width: 100%;
  margin-top: 0;
  display: flex;
  gap: 0;
}

.search_box input {
  flex: 1;
  border: 1px solid #383838;
  border-radius: 4px 0 0 4px;
  border-right: none;
  padding: 14px 16px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  background: #FFFFFF;
  line-height: 160%;
}

.search_box input::placeholder {
  color: #999999;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
}

.search_box input:focus {
  outline: none;
  border-color: #059200;
}

.search_box button {
  background: linear-gradient(100.23deg, #00A600 7.64%, #009500 17.81%, #007E00 28.82%, #006800 92.36%);
  background: linear-gradient(100.23deg, color(display-p3 0.176 0.639 0.161) 7.64%, color(display-p3 0.020 0.573 0.000) 17.81%, color(display-p3 0.016 0.486 0.000) 28.82%, color(display-p3 0.016 0.400 0.000) 92.36%);
  color: #FFFFFF;
  padding: 14px 32px;
  font-size: 14px;
  line-height: 160%;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #007E00;
  border-radius: 0 4px 4px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.search_box button:hover {
  background: linear-gradient(90deg, #268a24 0%, #035500 100%);
}

.search_box button:after {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url('images/icon/glass_w.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.search_box_wrapper {
  position: relative;
}

.search-hint {
  display: none;
}

.search-hint-pc {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 160%;
  color: #666666;
  margin: 4px 0 0 0;
  text-align: left;
}

/* Mobile Search Box Overrides */
@media screen and (max-width: 768px) {
  .search-hint-pc {
    display: none;
  }
  
  .search_box {
    flex-direction: column;
    gap: 0;
  }
  
  .search_box input {
    width: 100%;
    border: 1px solid #383838;
    border-radius: 4px;
    border-right: 1px solid #383838;
  }
  
  .search-hint {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 160%;
    color: #666666;
    margin: 4px 0 8px 0;
    text-align: left;
  }
  
  .search_box button {
    width: 100%;
    border-radius: 4px;
    margin-top: 0;
    padding: 14px 16px;
  }
  
  .search_box button:after {
    position: absolute;
    right: 16px;
  }
}

/* Article List Styles */
.article_list {
  margin-top: 16px;
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: -32px; /* Compensate for search_panel bottom padding */
  width: calc(100% + 40px);
  background: #F6FAF3;
  padding: 32px 20px 32px 20px;
  border-radius: 0;
}

.article_list ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.article_list li {
  background: #FFFFFF;
  border: 1px solid #005200;
  border-radius: 4px;
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article_list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 82, 0, 0.1);
}

.article_list a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: #383838;
}

/* Thumbnail wrapper with 16:9 aspect ratio */
.thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: #f5f5f5;
}

.thumbnail-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* For images without wrapper (fallback) */
.article_list img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* PR Label */
.pr-label {
  position: absolute;
  background: #FF6B6B;
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  z-index: 1;
}

.article_list .text {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article_list .text .title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 160%;
  font-weight: 400;
  color: #383838;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 12px 12px 24px 12px; /* Added 12px extra bottom padding for gap */
  border-bottom: 1px solid #EFF0F2;
  max-height: 126px; /* Constrains to 4 lines: (14px * 1.6 * 4) + 36px padding */
  flex-grow: 1;
}

.article_list .text .date {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  line-height: 160%;
  color: #666666;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  height: 42px; /* Fixed height for consistent layout */
}

/* Add arrow icon after date */
.article_list .text .date::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('images/icon/arrow-right.svg');
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.pagenation {
  background: #F6FAF3;
  padding: 32px 20px 32px 20px; /* 32px top for gap, 32px bottom */
}

/* Mobile Pagenation Styles */
@media screen and (max-width: 768px) {
  .pagenation {
    margin-bottom: 64px; /* Gap between pagination and footer on mobile */
    border-radius: 8px;
  }
}

.pagenation ul {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.pagenation li {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
}

.pagenation li .current {
  background: #3C78D8;
  border-radius: 100%;
  width: 35px;
  height: 35px;
  color: white;
  text-align: center;
  line-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagenation li:hover {
  opacity: 0.7;
}

@media screen and (max-width: 430px) {

  #major_search_area_mobile {
    display: block;
  }

  .major-search-area {
    display: none;
  }

  #medicine_type_select {
    position: relative;
    width: 100%;
    height: 34px;
    padding-left: 20px;
    background: #FFF no-repeat calc(100% - 20px) center;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjYiIHZpZXdCb3g9IjAgMCA4IDYiPjxwYXRoIGZpbGw9IiM5YTllYTciIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTQuNDEgNS43OUw3LjkxNi43MzVBLjQ2MS40NjEgMCAwIDAgNy43OC4wNzkuNTA2LjUwNiAwIDAgMCA3LjUwOCAwSC40OTJBLjQ4My40ODMgMCAwIDAgMCAuNDczYS40Ni40NiAwIDAgMCAuMDgzLjI2MkwzLjU5IDUuNzlhLjUwNC41MDQgMCAwIDAgLjgxOCAweiIvPjwvc3ZnPg==);
    background-size: auto 30%;
    border: 2px solid #808080;
    box-shadow: 0 0 16px 0 rgb(0 0 0 / 6%), 0 2px 4px 0 rgb(0 0 0 / 12%);
    border-radius: 4px;
    appearance: none;
    color: #333;
    font-size: 18px;
  }

  .more {
    display: none;
  }

  /* Mobile Article List Styles */
  .article_list {
    padding: 32px 20px;
  }

  .article_list ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .article_list .text .title {
    padding: 10px 10px 20px 10px; /* Added gap before border */
    height: 104px; /* Fixed height for mobile: 84px text + 10px top + 20px bottom */
  }

  .article_list .text .date {
    padding: 10px;
    height: 36px; /* Adjusted for mobile */
  }

}

/* Ensure TOC area can show on mobile when expanded */
@media screen and (max-width: 430px) {
  .toc-area {
    display: block !important;
  }
}


/* ▲index */
#page,
#page #content {
  height: auto !important;
  background-color: #FFF;
}

/* sidebar-test */
.sidebar-flex{
  display: flex;
  width: 1200px;
}

div#main_panel{
  width: 960px;
  padding-top: 0 !important;
}

div.sidebar{
  width:20%;
  padding: 130px 8px 0px;
}

li.widget{
  padding:16px 0;
}

li.widget h2.widgettitle{
  font-weight: 600;
  font-size: 1.2em;
  padding-bottom: 8px;
}

/* spnav */
#header .spNav ul li span {
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0.5px;
}

#header .spNav ul li small {
  font-size: 14px;
  line-height: 14px;
}

.btn--fv{
  width: 88%;
  height: 48px;
  font-size: 1.8rem;
  line-height: 1.8rem;
  letter-spacing: 0.08em;
}

.btn--fv::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  padding-top: 1px;
  background-image: url(https://curebell.jp/img/btnIcon--sp.svg);
  margin-right: 10px;
}

.btn--fv::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-image: url(https://curebell.jp/img/arrow.svg);
  background-size: cover;
  position: absolute;
  right: 16px;
}

/* search-Tab */
div.spTab-area{
  display: none;
}

ul.search-spTab{
  width:100%;
  display:flex;
  justify-content: center;
}

ul.search-pcTab{
  width:650px;
  display:flex;
  padding-top: 16px;
  justify-content: left;
}

ul.search-pcTab li{
  font-family: -apple-system, BlinkMacSystemFont, "メイリオ", "Segoe UI", "Roboto", "Noto Sans CJK JP", sans-serif;
  flex-shrink: 0;
  margin:0 6%;
}

ul.search-pcTab li a{
  font-family: -apple-system, BlinkMacSystemFont, "メイリオ", "Segoe UI", "Roboto", "Noto Sans CJK JP", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color:#444444;
}

ul li a.active {
  position: relative;
}

ul li a.active::after {
  position: absolute;
  content: "";
  background-color: #3C78D8;
  width: 60px;
  height: 3px;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.banner-sp {
	display: none;
}

@media screen and (max-width: 1000px) {
  ul.search-pcTab{
    padding-top: 16px;
  }
  ul.search-pcTab li{
    margin:0 4%;
  }
  ul.search-pcTab li a{
    font-size: 16px;
  }
}

@media screen and (max-width: 640px) {
  #header .spNav:not(.navHidden){
    display: initial;
  }
  ul.search-pcTab {
    display: none;
  }
  .header_btn.menu_trgr {
    display: unset;
  }
  .header_btn{
	  margin-right: unset;
  }
  #page #content #main_panel {
    /* padding-top: 170px; */
  }
  .ui_panel.border_bottom_pc {
    border: none !important;
  }
  div.spTab-area{
    display: flex !important;
    padding: 12px 0;
    background:#f6f6f6;
    max-width: 100% !important;
    line-height: 14px;
  }
  ul.search-spTab li{
    flex-shrink: 0;
    margin:0 4%;
  }
  ul.search-spTab li a{
    font-family: -apple-system, BlinkMacSystemFont, "メイリオ", "Segoe UI", "Roboto", "Noto Sans CJK JP", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color:#444444;
  }
	
  .banner-sp {
	display: block;
  }
  .banner-pc {
	display: none;
  }
}

.highlight {
  background-color: #DAEDA3; /* 好きな色に変更可能 */
  padding: 0.2em;
}

/* Breadcrumb Styles */
.breadcrumb-wrapper {
  background-color: #E6E6E6;
  padding: 10px 20px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #999 #E6E6E6;
}

.breadcrumb-wrapper::-webkit-scrollbar {
  height: 6px;
}

.breadcrumb-wrapper::-webkit-scrollbar-track {
  background: #E6E6E6;
}

.breadcrumb-wrapper::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 3px;
}

.breadcrumb-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.breadcrumb {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.breadcrumb-link {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 160%;
  display: flex;
  align-items: center;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  /* text-decoration-line: underline; */
  /* color: #0068D3; */
  color: #5586ce;
}

.breadcrumb-icon {
  width: 21px;
  height: 21px;
}

.breadcrumb-home-icon {
  margin-right: 4px;
}

.breadcrumb-arrow-icon {
  margin: 0 8px;
}

.breadcrumb-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 160%;
  letter-spacing: 0.05em;
  color: #333;
}

/* Page Title H1 */
.page-title-h1 {
  padding: 32px 20px;
  color: #292929;
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 26px;
  line-height: 160%;
  margin: 0;
}

/* Mobile Search Box Styles */
@media screen and (max-width: 768px) {
  .search_box_wrapper {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  
  .search-hint-pc {
    display: none;
  }
  
  .search_box {
    flex-direction: column;
    gap: 0;
  }
  
  .search_box input {
    width: 100%;
    border: 1px solid #383838;
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 14px;
    background: #FFFFFF;
    background-position: initial;
    background-image: none;
  }
  
  .search_box input::placeholder {
    color: #999999;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
  }
  
  .search-hint {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 160%;
    color: #666666;
    margin: 4px 0 0px 0;
    text-align: left;
  }
  
  .search_box button {
    width: 100%;
    background: linear-gradient(100.23deg, #00A600 7.64%, #009500 17.81%, #007E00 28.82%, #006800 92.36%);
    background: linear-gradient(100.23deg, color(display-p3 0.176 0.639 0.161) 7.64%, color(display-p3 0.020 0.573 0.000) 17.81%, color(display-p3 0.016 0.486 0.000) 28.82%, color(display-p3 0.016 0.400 0.000) 92.36%);
    color: #FFFFFF;
    border: 1px solid #007E00;
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 160%;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 12px;
  }
  
  .search_box button:after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('images/icon/glass_w.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  }
  
  .search_box button:hover {
    background: linear-gradient(90deg, #268a24 0%, #035500 100%);
    
  }
}

/* Pagination Styles */
.pagination-wrapper {
  background: #F6FAF3;
  padding: 0 20px 32px 20px; /* No top padding, 32px bottom */
  display: flex;
  justify-content: center;
}

/* Mobile Pagination Styles */
@media screen and (max-width: 768px) {
  .pagination-wrapper {
    margin-bottom: 64px; /* Gap between pagination and footer on mobile */
    border-radius: 8px;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.pagination-item {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0px;
  background: #FFFFFF;
  border: 1px solid #005200;
  border-radius: 4px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #005200;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-number {
  margin: 0;
}

.pagination-item:hover {
  background: #f0f0f0;
}

.pagination-item.active {
  background: #009500;
  color: #FFFFFF;
}

.pagination-item.active:hover {
  background: #009500;
}

.pagination-prev img,
.pagination-next img {
  width: 10px;
  height: 10px;
}

.pagination-dots {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: #005200;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Mobile Dropdown Styles */
#major_search_area_mobile {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
}

#major_search_area_mobile select#medicine_type_select {
  width: 100%;
  height: 48px;
  padding: 12px 48px 12px 16px;
  border: 1px solid #383838;
  border-radius: 4px;
  background-color: #FFFFFF;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #292929;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('images/icon/chevron-down.svg');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  cursor: pointer;
  line-height: 1.5;
  box-shadow: none !important;
  transition: border-color 0.2s ease;
}

#major_search_area_mobile select#medicine_type_select:focus {
  outline: none;
  border-color: #0068D3;
  box-shadow: none !important;
}

#major_search_area_mobile select#medicine_type_select option {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #292929;
  padding: 8px;
}

/* Listing templates (category, search) */
.tpl-listing .search_panel .search_area > h2.heading {
  padding-top: 32px;
}


/* Scoped padding for category/search templates */

/* Table of Contents Styles */
.toc-container {
  margin: 16px 0px 32px 0px;
  width: 100%;
  max-width: 580px;
}

.toc-toggle[aria-expanded="true"] {
  background-color: #96DA9E !important;
  border-color: #383838;
  border-bottom: none;
  border-radius: 2px;
}


.toc-toggle[aria-expanded="true"]:hover {
  background-color: #96DA9E !important;
}

.toc-toggle:focus {
  outline: 2px solid #059200;
  outline-offset: 2px;
}

.toc-toggle[aria-expanded="true"]:focus {
  background-color: #96DA9E !important;
}

.toc-toggle:hover .major-search-area__button-text,
.toc-toggle:focus .major-search-area__button-text {
  color: #383838 !important;
}


.toc-toggle:hover .major-search-area__button-bar,
.toc-toggle:focus .major-search-area__button-bar {
  background-color: #059200 !important;
}


.toc-toggle[aria-expanded="true"]:active {
  background-color: #96DA9E !important;
  border-color: #383838 !important;
}

.toc-toggle:active .major-search-area__button-text {
  color: #383838 !important;
}


.toc-toggle:active .major-search-area__button-bar {
  background-color: #059200 !important;
}


.toc-toggle {
  border-radius: 2px;
  margin-bottom: 0;
  justify-content: flex-start !important;
  text-align: left !important;
}

.toc-toggle[aria-expanded="true"] {
  border-radius: 2px 2px 0 0;
  margin-bottom: 0;
  background-color: #96DA9E !important;
}

.toc-toggle[aria-expanded="false"] {
  border-radius: 2px;
}

.toc-expanded {
  background-color: #ffffff !important;
  padding: 0 !important;
  border-radius: 0 0 2px 2px;
  border: 1px solid #292929;
  border-top: none;
  margin-top: 0;
}

.toc-expanded[hidden] {
  display: none !important;
}

.toc-expanded:not([hidden]) {
  display: block !important;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #ffffff;
  border: none;
  border-bottom: 1px solid #EFF0F2;
  border-radius: 0;
  text-decoration: none;
  color: #383838;
  transition: background-color 0.2s ease;
  position: relative;
}

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

.toc-item:hover {
  background-color: #f9fafb;
  text-decoration: none;
  color: #383838;
}

.toc-item.toc-item-h3 {
  padding-left: 32px;
}

.toc-number {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  color: #383838;
  min-width: 24px;
}

.toc-text {
  flex: 1;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: #383838;
}

.toc-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  filter: none;
  margin-left: auto;
}

/* Focus styles for accessibility */
.toc-item:focus {
  outline: 2px solid #96DA9E;
  outline-offset: 2px;
  background-color: #f9fafb;
}

.toc-item:focus:not(:focus-visible) {
  outline: none;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
  .toc-item {
    padding: 10px 12px;
  }
  
  .toc-item.toc-item-h3 {
    padding-left: 24px;
  }
  
  .toc-number,
  .toc-text {
    font-size: 13px;
  }
}

/* External Link Styles - Override all existing styles */
.external-link,
a.external-link,
.p-article .external-link,
.p-article a.external-link,
article .external-link,
article a.external-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #383838 !important;
  border-radius: 4px !important;
  padding: 8px 32px 8px 16px !important;
  font-size: 14px !important;
  line-height: 160% !important;
  color: #383838 !important;
  text-decoration: none !important;
  position: relative !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
  background-color: #ffffff !important;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 500 !important;
  margin: 8px 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  background-image: none !important;
  vertical-align: middle !important;
  min-height: 36px !important;
}

.external-link::after,
a.external-link::after,
.p-article .external-link::after,
.p-article a.external-link::after,
article .external-link::after,
article a.external-link::after {
  content: '' !important;
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  width: 6px !important;
  height: 6px !important;
  border-right: 1px solid #383838 !important;
  border-top: 1px solid #383838 !important;
  border-left: none !important;
  border-bottom: none !important;
  transform: translateY(-50%) rotate(45deg) !important;
  background: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.external-link:hover,
a.external-link:hover,
.p-article .external-link:hover,
.p-article a.external-link:hover,
article .external-link:hover,
article a.external-link:hover {
  background-color: #f9fafb !important;
  border-color: #035000 !important;
  text-decoration: none !important;
  color: #383838 !important;
  box-shadow: none !important;
}

.external-link:hover::after,
a.external-link:hover::after,
.p-article .external-link:hover::after,
.p-article a.external-link:hover::after,
article .external-link:hover::after,
article a.external-link:hover::after {
  border-right-color: #383838 !important;
  border-top-color: #383838 !important;
}

.external-link:focus,
a.external-link:focus,
.p-article .external-link:focus,
.p-article a.external-link:focus,
article .external-link:focus,
article a.external-link:focus {
  outline: 2px solid #059200 !important;
  outline-offset: 2px !important;
  text-decoration: none !important;
  color: #383838 !important;
  background-color: #ffffff !important;
}

.external-link:active,
a.external-link:active,
.p-article .external-link:active,
.p-article a.external-link:active,
article .external-link:active,
article a.external-link:active {
  background-color: #f0f0f0 !important;
  transform: scale(0.98) !important;
  color: #383838 !important;
}

.external-link:visited,
a.external-link:visited,
.p-article .external-link:visited,
.p-article a.external-link:visited,
article .external-link:visited,
article a.external-link:visited {
  color: #383838 !important;
}

/* Remove any underlines from child elements */
.external-link *,
a.external-link *,
.p-article .external-link *,
.p-article a.external-link *,
article .external-link *,
article a.external-link * {
  text-decoration: none !important;
}

/* Inpage Linkdown Styles - Override all existing styles */
.inpage-linkdown,
a.inpage-linkdown,
.p-article .inpage-linkdown,
.p-article a.inpage-linkdown,
article .inpage-linkdown,
article a.inpage-linkdown {
  height: auto !important;
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(100.23deg, #00A600 7.64%, #009500 17.81%, #007E00 28.82%, #006800 92.36%) !important;
  background: linear-gradient(100.23deg, color(display-p3 0.176 0.639 0.161) 7.64%, color(display-p3 0.020 0.573 0.000) 17.81%, color(display-p3 0.016 0.486 0.000) 28.82%, color(display-p3 0.016 0.400 0.000) 92.36%) !important;
  color: #FFFFFF !important;
  border: 1px solid #007E00 !important;
  border-radius: 4px !important;
  padding: 12px 32px 12px 16px !important;
  font-size: 14px !important;
  line-height: 160% !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  position: relative !important;
  text-decoration: none !important;
  transition: background 0.2s ease !important;
  margin: 8px 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  vertical-align: middle !important;
  min-height: 36px !important;
}

.inpage-linkdown::after,
a.inpage-linkdown::after,
.p-article .inpage-linkdown::after,
.p-article a.inpage-linkdown::after,
article .inpage-linkdown::after,
article a.inpage-linkdown::after {
  content: '' !important;
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 12px !important;
  height: 12px !important;
  background-image: url('images/icon/chevron_down_w.svg') !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.inpage-linkdown:hover,
a.inpage-linkdown:hover,
.p-article .inpage-linkdown:hover,
.p-article a.inpage-linkdown:hover,
article .inpage-linkdown:hover,
article a.inpage-linkdown:hover {
  background: linear-gradient(90deg, #268a24 0%, #035500 100%) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  border-color: #035500 !important;
  box-shadow: none !important;
}

.inpage-linkdown:focus,
a.inpage-linkdown:focus,
.p-article .inpage-linkdown:focus,
.p-article a.inpage-linkdown:focus,
article .inpage-linkdown:focus,
article a.inpage-linkdown:focus {
  outline: 2px solid #FFFFFF !important;
  outline-offset: 2px !important;
  text-decoration: none !important;
  color: #FFFFFF !important;
  background: linear-gradient(100.23deg, #00A600 7.64%, #009500 17.81%, #007E00 28.82%, #006800 92.36%) !important;
}

/* .inpage-linkdown:active,
a.inpage-linkdown:active,
.p-article .inpage-linkdown:active,
.p-article a.inpage-linkdown:active,
article .inpage-linkdown:active,
article a.inpage-linkdown:active {
  background: linear-gradient(90deg, #035500 0%, #024400 100%) !important;
  transform: scale(0.98) !important;
  color: #FFFFFF !important;
} */

.inpage-linkdown:visited,
a.inpage-linkdown:visited,
.p-article .inpage-linkdown:visited,
.p-article a.inpage-linkdown:visited,
article .inpage-linkdown:visited,
article a.inpage-linkdown:visited {
  color: #FFFFFF !important;
}

/* Remove any underlines from child elements */
.inpage-linkdown *,
a.inpage-linkdown *,
.p-article .inpage-linkdown *,
.p-article a.inpage-linkdown *,
article .inpage-linkdown *,
article a.inpage-linkdown * {
  text-decoration: none !important;
  color: #FFFFFF !important;
}

/* Basic Vote Button Styles - Override all existing styles */
.button.basic-vote-button,
button.basic-vote-button,
.p-article .button.basic-vote-button,
.p-article button.basic-vote-button,
article .button.basic-vote-button,
article button.basic-vote-button {
  height: auto !important;
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(100.23deg, #00A600 7.64%, #009500 17.81%, #007E00 28.82%, #006800 92.36%) !important;
  background: linear-gradient(100.23deg, color(display-p3 0.176 0.639 0.161) 7.64%, color(display-p3 0.020 0.573 0.000) 17.81%, color(display-p3 0.016 0.486 0.000) 28.82%, color(display-p3 0.016 0.400 0.000) 92.36%) !important;
  color: #FFFFFF !important;
  border: 1px solid #007E00 !important;
  border-radius: 4px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  line-height: 160% !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  position: relative !important;
  text-decoration: none !important;
  transition: background 0.2s ease !important;
  margin: 8px 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  vertical-align: middle !important;
  min-height: 36px !important;
}

.button.basic-vote-button:hover,
button.basic-vote-button:hover,
.p-article .button.basic-vote-button:hover,
.p-article button.basic-vote-button:hover,
article .button.basic-vote-button:hover,
article button.basic-vote-button:hover {
  background: linear-gradient(90deg, #268a24 0%, #035500 100%) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  border-color: #035500 !important;
  box-shadow: none !important;
}

.button.basic-vote-button:focus,
button.basic-vote-button:focus,
.p-article .button.basic-vote-button:focus,
.p-article button.basic-vote-button:focus,
article .button.basic-vote-button:focus,
article button.basic-vote-button:focus {
  outline: 2px solid #FFFFFF !important;
  outline-offset: 2px !important;
  text-decoration: none !important;
  color: #FFFFFF !important;
  background: linear-gradient(100.23deg, #00A600 7.64%, #009500 17.81%, #007E00 28.82%, #006800 92.36%) !important;
}

.button.basic-vote-button:active,
button.basic-vote-button:active,
.p-article .button.basic-vote-button:active,
.p-article button.basic-vote-button:active,
article .button.basic-vote-button:active,
article button.basic-vote-button:active {
  background: linear-gradient(90deg, #035500 0%, #024400 100%) !important;
  transform: scale(0.98) !important;
  color: #FFFFFF !important;
}

.button.basic-vote-button:visited,
button.basic-vote-button:visited,
.p-article .button.basic-vote-button:visited,
.p-article button.basic-vote-button:visited,
article .button.basic-vote-button:visited,
article button.basic-vote-button:visited {
  color: #FFFFFF !important;
}

/* Remove any underlines from child elements */
.button.basic-vote-button *,
button.basic-vote-button *,
.p-article .button.basic-vote-button *,
.p-article button.basic-vote-button *,
article .button.basic-vote-button *,
article button.basic-vote-button * {
  text-decoration: none !important;
  color: #FFFFFF !important;
}

/* YOP Poll Styles - Override all existing styles */
div.bootstrap-yop.yop-poll-mc,
.bootstrap-yop.yop-poll-mc {
  border-top: 1px solid #383838 !important;
  border-bottom: 1px solid #383838 !important;
  padding: 32px 24px !important;
  margin: 52px 0 !important;
  box-shadow: none !important;
  font-family: 'Noto Sans JP', sans-serif !important;
}

/* Poll question styling */
.bootstrap-yop.yop-poll-mc .basic-yop-question,
.bootstrap-yop.yop-poll-mc h3,
.bootstrap-yop.yop-poll-mc h4,
.bootstrap-yop.yop-poll-mc .question-text {
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 160% !important;
  color: #383838 !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  text-align: left !important;
  font-family: 'Noto Sans JP', sans-serif !important;
}

.basic-question-title {
text-align: left !important;
}

/* Poll answers container */
.bootstrap-yop.yop-poll-mc .basic-yop-answers,
.bootstrap-yop.yop-poll-mc .answers-container,
.bootstrap-yop.yop-poll-mc ul.basic-yop-answers-ul {
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  list-style: none !important;
}

/* Individual answer items */
.bootstrap-yop.yop-poll-mc .basic-yop-answers-ul li,
.bootstrap-yop.yop-poll-mc .answer-item,
.bootstrap-yop.yop-poll-mc .basic-yop-answer {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
}

/* Radio button styling */
.bootstrap-yop.yop-poll-mc input[type="radio"],
.basic-inner input[type="radio"],
input[type="radio"].basic-yop-poll-answer-label-radio {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid #383838 !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  margin: 0 8px 0 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  position: relative !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.bootstrap-yop.yop-poll-mc input[type="radio"]:checked,
.basic-inner input[type="radio"]:checked,
input[type="radio"].basic-yop-poll-answer-label-radio:checked {
  border-color: #383838 !important;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
}

.bootstrap-yop.yop-poll-mc input[type="radio"]:checked::after,
.basic-inner input[type="radio"]:checked::after,
input[type="radio"].basic-yop-poll-answer-label-radio:checked::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 10px !important;
  height: 10px !important;
  background: #059200 !important;
  background-color: #059200 !important;
  border-radius: 50% !important;
  border: none !important;
}

.bootstrap-yop.yop-poll-mc input[type="radio"]:hover,
.basic-inner input[type="radio"]:hover,
input[type="radio"].basic-yop-poll-answer-label-radio:hover {
  border-color: #383838 !important;
}

.bootstrap-yop.yop-poll-mc input[type="radio"]:focus,
.basic-inner input[type="radio"]:focus,
input[type="radio"].basic-yop-poll-answer-label-radio:focus {
  outline: none !important;
  border-color: #383838 !important;
  box-shadow: none !important;
}

.bootstrap-yop.yop-poll-mc input[type="radio"]:focus-visible,
.basic-inner input[type="radio"]:focus-visible,
input[type="radio"].basic-yop-poll-answer-label-radio:focus-visible {
  outline: none !important;
  border-color: #383838 !important;
  box-shadow: 0 0 0 2px rgba(5, 146, 0, 0.1) !important;
}

/* Answer labels */
.bootstrap-yop.yop-poll-mc label,
.bootstrap-yop.yop-poll-mc .answer-text {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 160% !important;
  color: #383838 !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  display: inline !important;
  background: none !important;
}

/* Vote button - matches green button style */
.bootstrap-yop.yop-poll-mc .basic-vote-button,
.bootstrap-yop.yop-poll-mc button[type="submit"],
.bootstrap-yop.yop-poll-mc .vote-button,
.bootstrap-yop.yop-poll-mc input[type="submit"] {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(100.23deg, #00A600 7.64%, #009500 17.81%, #007E00 28.82%, #006800 92.36%) !important;
  color: #FFFFFF !important;
  border: 1px solid #007E00 !important;
  border-radius: 4px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  line-height: 160% !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background 0.2s ease !important;
  margin: 20px 0 0 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  min-height: 44px !important;
}

.bootstrap-yop.yop-poll-mc .basic-vote-button:hover,
.bootstrap-yop.yop-poll-mc button[type="submit"]:hover,
.bootstrap-yop.yop-poll-mc .vote-button:hover,
.bootstrap-yop.yop-poll-mc input[type="submit"]:hover {
  background: linear-gradient(90deg, #268a24 0%, #035500 100%) !important;
  color: #FFFFFF !important;
  border-color: #035500 !important;
}

/* Remove any unwanted elements */
.bootstrap-yop.yop-poll-mc .yop-poll-footer,
.bootstrap-yop.yop-poll-mc .poll-footer,
.bootstrap-yop.yop-poll-mc .results,
.bootstrap-yop.yop-poll-mc .poll-results {
  display: none !important;
}

/* Clean up any additional styling */
.bootstrap-yop.yop-poll-mc * {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Ensure proper spacing */
.bootstrap-yop.yop-poll-mc form {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

/* Handle poll container borders */
.bootstrap-yop.yop-poll-mc::before,
.bootstrap-yop.yop-poll-mc::after {
  display: none !important;
}

/* Basic Inner Styles - Simple text and radio only */
.basic-inner,
.bootstrap-yop .basic-inner,
.yop-poll-mc .basic-inner,
.yop-container .basic-inner,
div.basic-inner,
.basic-inner.yop-poll-container {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: block !important;
  width: 100% !important;
}

/* Remove all decorative elements from basic-inner */
.basic-inner::before,
.basic-inner::after,
.bootstrap-yop .basic-inner::before,
.bootstrap-yop .basic-inner::after {
  display: none !important;
  content: none !important;
}

/* Simplify all child elements in basic-inner */
.basic-inner *,
.bootstrap-yop .basic-inner *,
.yop-poll-mc .basic-inner *,
.yop-container .basic-inner *,
div.basic-inner * {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  padding: 0 !important;
}

/* Also target parent containers that might have styling */
.yop-container,
.yop-poll-container,
.basic-inner-wrapper,
.basic-inner-container {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0 !important;
  box-shadow: none !important;
}

/* Specifically override basic-yop-poll-container inline styles */
.basic-yop-poll-container,
div.basic-yop-poll-container,
.basic-inner .basic-yop-poll-container,
.bootstrap-yop .basic-yop-poll-container,
[class*="basic-yop-poll-container"] {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Use attribute selector to target elements with inline styles */
div[style*="background-color"],
div[style*="border"],
.basic-yop-poll-container[style],
.basic-inner [style] {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Keep only essential spacing for readability */
.basic-inner .basic-yop-question,
.basic-inner h3,
.basic-inner h4 {
  margin-bottom: 16px !important;
}

.basic-inner .basic-yop-answers,
.basic-inner ul {
  margin-bottom: 20px !important;
}

.basic-inner li,
.basic-inner .basic-yop-answer {
  margin-bottom: 8px !important;
}

/* Ensure radio buttons remain visible and functional */
.basic-inner input[type="radio"] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 20px !important;
  height: 20px !important;
  margin-right: 8px !important;
  vertical-align: middle !important;
}

/* Simple text styling */
.basic-inner,
.basic-inner * {
  font-family: 'Noto Sans JP', sans-serif !important;
  color: #383838 !important;
  font-weight: normal !important;
}

.basic-inner label {
  display: inline-block !important;
  cursor: pointer !important;
}

/* Remove any images, icons, or decorative elements */
.basic-inner img:not([src*="radio"]),
.basic-inner svg,
.basic-inner i,
.basic-inner .icon,
.basic-inner .decoration {
  display: none !important;
}

/* Ensure form elements are clean */
.basic-inner form {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Keep submit button but style it simply */
.basic-inner button,
.basic-inner input[type="submit"] {
  margin-top: 16px !important;
}

/* Remove negative right margin from basic-vote */
.basic-yop-poll-container .basic-vote,
.basic-inner .basic-vote,
.bootstrap-yop .basic-vote,
div.basic-vote {
  margin: 0 !important;
}

/* Mobile styles for YOP Poll - Remove padding */
@media screen and (max-width: 768px) {
  div.bootstrap-yop.yop-poll-mc,
  .bootstrap-yop.yop-poll-mc {
    padding: 32px 0 !important;
  }
}

@media screen and (max-width: 640px) {
  div.bootstrap-yop.yop-poll-mc,
  .bootstrap-yop.yop-poll-mc {
    padding: 32px 0 !important;
  }
}

/* Blue Table Styles - Applied to both blueTable and blueTable__sp */
table.blueTable__sp,
table.blueTable,
table.flexTable {
  border-collapse: collapse !important;
  width: 100% !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  background: transparent !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Table header styles */
table.blueTable__sp thead th,
table.blueTable__sp th,
table.blueTable thead th,
table.blueTable th,
table.flexTable thead th,
table.flexTable th {
  background: #C6EAC9 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 160% !important;
  color: #005200 !important;
  padding: 12px 16px !important;
  text-align: left !important;
  border: 1px solid #96DA9E !important;
}

/* Table body cells */
table.blueTable__sp td,
table.blueTable td,
table.flexTable td {
  border: 1px solid #EFF0F2 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 160% !important;
  color: #292929 !important;
  padding: 12px 16px !important;
  background: #FFFFFF !important;
}

/* Override for non-header cells in body */
table.blueTable__sp tbody td,
table.blueTable tbody td,
table.flexTable tbody td {
  background: #FFFFFF !important;
  color: #292929 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}

/* Table rows */
table.blueTable__sp tr,
table.blueTable tr,
table.flexTable tr {
  border: 1px solid #EFF0F2 !important;
}

/* Remove any hover effects */
table.blueTable__sp tr:hover,
table.blueTable tr:hover,
table.flexTable tr:hover {
  background-color: transparent !important;
}

/* Ensure consistent styling for all table elements */
table.blueTable__sp,
table.blueTable__sp *,
table.blueTable,
table.blueTable *,
table.flexTable,
table.flexTable * {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Table wrapper styling */
table.blueTable__sp,
table.blueTable,
table.flexTable {
  border: none !important;
  border-radius: 4px !important;
  background-clip: padding-box !important;
  -webkit-background-clip: padding-box !important;
  -moz-background-clip: padding-box !important;
}

/* Add proper outer borders to cells */
/* Top border - green for header */
table.blueTable__sp tr:first-child th,
table.blueTable__sp tr:first-child td,
table.blueTable tr:first-child th,
table.blueTable tr:first-child td,
table.flexTable tr:first-child th,
table.flexTable tr:first-child td {
  border-top: 1px solid #96DA9E !important;
}

/* Bottom border - gray for last row */
table.blueTable__sp tr:last-child td,
table.blueTable tr:last-child td,
table.flexTable tr:last-child td {
  border-bottom: 1px solid #EFF0F2 !important;
}

/* Left border */
table.blueTable__sp th:first-child,
table.blueTable__sp td:first-child,
table.blueTable th:first-child,
table.blueTable td:first-child,
table.flexTable th:first-child,
table.flexTable td:first-child {
  border-left: 1px solid #EFF0F2 !important;
}

/* Left border green for header */
table.blueTable__sp thead th:first-child,
table.blueTable__sp tr:first-child th:first-child,
table.blueTable thead th:first-child,
table.blueTable tr:first-child th:first-child,
table.flexTable thead th:first-child,
table.flexTable tr:first-child th:first-child {
  border-left: 1px solid #96DA9E !important;
}

/* Right border */
table.blueTable__sp th:last-child,
table.blueTable__sp td:last-child,
table.blueTable th:last-child,
table.blueTable td:last-child,
table.flexTable th:last-child,
table.flexTable td:last-child {
  border-right: 1px solid #EFF0F2 !important;
}

/* Right border green for header */
table.blueTable__sp thead th:last-child,
table.blueTable__sp tr:first-child th:last-child,
table.blueTable thead th:last-child,
table.blueTable tr:first-child th:last-child,
table.flexTable thead th:last-child,
table.flexTable tr:first-child th:last-child {
  border-right: 1px solid #96DA9E !important;
}

/* Stars Rating Bar Design */
.stars {
  display: inline-flex !important;
  gap: 1px !important;
  align-items: center !important;
}

/* Remove any existing star icons or pseudo-elements */
.stars::before,
.stars::after,
.stars *::before,
.stars *::after {
  content: none !important;
  display: none !important;
}

/* Create rating bars */
.stars {
  position: relative !important;
  height: 4px !important;
  min-width: 152px !important; /* 3 bars × 50px + 2 gaps × 1px */
}

/* Individual bar elements */
.stars .star,
.stars i,
.stars span {
  display: inline-block !important;
  width: 50px !important;
  height: 4px !important;
  border-radius: 0 !important;
  background: #E0E0E0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  vertical-align: middle !important;
}

/* Rounded corners only for first and last bars */
.stars .star:first-child,
.stars i:first-child,
.stars span:first-child {
  border-radius: 2px 0 0 2px !important;
}

.stars .star:last-child,
.stars i:last-child,
.stars span:last-child {
  border-radius: 0 2px 2px 0 !important;
}

/* Filled/active bars */
.stars .star.filled,
.stars .star.active,
.stars i.filled,
.stars i.active,
.stars span.filled,
.stars span.active,
.stars .fa-star:not(.fa-star-o),
.stars .fas {
  background: #0068D3 !important;
}

/* If stars are rendered as a single element with data attributes */
.stars[data-rating] {
  background: linear-gradient(to right, 
    #0068D3 0%, 
    #0068D3 var(--rating-percent, 0%), 
    #E0E0E0 var(--rating-percent, 0%), 
    #E0E0E0 100%) !important;
  background-size: 100% 100% !important;
  mask: repeating-linear-gradient(to right, 
    black 0, 
    black 25px, 
    transparent 25px, 
    transparent 28px) !important;
  -webkit-mask: repeating-linear-gradient(to right, 
    black 0, 
    black 25px, 
    transparent 25px, 
    transparent 28px) !important;
}

/* Specific rating values */
.stars.rating-1 .star:nth-child(1),
.stars.rating-2 .star:nth-child(-n+2),
.stars.rating-3 .star:nth-child(-n+3),
.stars.rating-4 .star:nth-child(-n+4),
.stars.rating-5 .star:nth-child(-n+5) {
  background: #0068D3 !important;
}

/* Remove any text or icons */
.stars svg,
.stars img,
.stars .icon {
  display: none !important;
}

/* Medicine Item Button Design */
.medicine_item2 {
  position: relative;
  display: inline-block;
}

.medicine_item2::before {
  content: "詳細を見る";
  width: 218px !important;
  height: 38px !important;
  display: inline-block;
  background: #FFFFFF;
  border: 1px solid #383838 !important;
  border-radius: 4px;
  font-size: 12px;
  line-height: 38px !important;
  color: #333333 !important;
  text-decoration: none;
  cursor: pointer;
  font-weight: 400;
  background-image: url('/wp-content/themes/curebell/images/icon/open_in_new.svg') !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 10px 10px !important;
  padding: 0 40px 0 16px !important;
  white-space: nowrap;
  box-sizing: border-box;
  vertical-align: middle;
  bottom: 15px;
  right: 15px;
}

.result_row {
  padding-bottom: 24px;
}

/* Medicine Item Desktop/Mobile Visibility Control */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

/* Medicine Item Mobile Component Styles */
@media (max-width: 768px) {
  .medicine_item_mobile {
    display: block !important;
    width: 100% !important;
    background: #FFFFFF !important;
    border: 1px solid #003974 !important;
    border-radius: 4px !important;
    margin: 10px 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Section 1: Badges with solid border */
  .mobile-badges-section {
    padding: 12px 16px !important;
    border-bottom: 1px solid #EFF0F2 !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }
  
  .mobile-badges-section .medicine_class_badge {
    display: inline-block !important;
    min-width: 100px !important;
    padding: 2px 8px !important;
    background: #FFF !important;
    text-align: center !important;
    color: #383838 !important;
    border-radius: 16px !important;
    border: 1px solid #E0E0E0 !important;
    font-weight: 400 !important;
    font-size: 10px !important;
    line-height: 140% !important;
    margin:0 !important;
  }
  
  .mobile-badges-section .abuse_badge {
    /* display: block !important;
    width: 84px !important;
    height: 24px !important;
    border-radius: 4px !important;
    background: #BE185D !important;
    box-shadow: inset 0 0 0 1px #BE185D, inset 0 0 0 2px #FFF !important;
    line-height: 24px !important;
    font-size: 12px !important;
    text-align: center !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
    color: #FFF !important; */

      width: 88px !important;
      height: 22px;
      background: url(/wp-content/themes/curebell/images/abuse.svg) no-repeat center;
      background-size: contain;

  }
  
  .mobile-badges-section .self_medication_badge {
    width: 60px !important;
    height: 24px !important;
    background: url(/wp-content/themes/curebell/images/self.svg) no-repeat center !important;
    background-size: contain !important;
  }
  
  /* Section 2: Product info with thumbnail - dotted border */
  .mobile-product-section {
    padding: 16px !important;
    display: flex !important;
    gap: 12px !important;
  }
  
  .mobile-thumbnail {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  
  .mobile-product-info {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  
  .mobile-product-info .name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #383838 !important;
    margin: 0 0 5px 0 !important;
    line-height: 140% !important;
  }
  
  .mobile-product-info .price {
    font-size: 14px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
    font-weight: 500 !important;
  }
  
  .mobile-product-info .tax_included {
    font-size: 11px !important;
    display: inline !important;
    margin-right: 4px !important;
  }
  
  .mobile-product-info .price .font-red {
    display: inline !important;
  }
  
  /* Consolidated price ellipsis fix */
  .mobile-product-info .price {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Section 3: Results section with toggle */
  .mobile-results-section {
    padding: 15px !important;
    border-top: 1px dashed #003974;
    position: relative !important;
  }
  
  .mobile-results-section .result_rows_title {
    font-weight: 600 !important;
    font-size: 12px !important;
    line-height: 140% !important;
    color: #383838 !important;
    margin-bottom: 8px !important;
  }
  
  /* Hide content when collapsed, show only first 2 rows */
  .mobile-results-section.collapsed .result_rows .result_row:nth-child(n+3) {
    display: none !important;
  }
  
  /* Gradient overlay when collapsed */
  .mobile-results-section.collapsed::before {
    content: "" !important;
    position: absolute !important;
    bottom: 30px !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, #FFFFFF 40.38%, #FFFFFF 79.81%) !important;
    background: linear-gradient(180deg, color(display-p3 1.000 1.000 1.000 / 0.05) 0%, color(display-p3 1.000 1.000 1.000) 40.38%, color(display-p3 1.000 1.000 1.000) 79.81%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }
  
  /* Toggle button */
  .mobile-toggle-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    width: 100% !important;
    padding: 12px 0 !important;
    margin-top: 10px !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    position: relative !important;
    z-index: 2 !important;
  }
  
  .mobile-toggle-btn .toggle-text {
    vertical-align: middle !important;
  }
  
  .mobile-toggle-btn .toggle-icon {
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
  }
  
  .mobile-results-section .result_row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
  }
  
  .mobile-results-section .result_row > div:first-child {
    font-size: 10px !important;
    line-height: 140% !important;
    color: #383838 !important;
    flex: 1 !important;
  }
  
  .mobile-results-section .stars {
    margin: 0 !important;
    justify-content: flex-end !important;
  }
}
