/* =========================================================
  #brush : Unified CSS (Clean / No duplicates)
========================================================= */

/* ===== Anchor smooth (optional) ===== */
html{ scroll-behavior:smooth; }
#brush .brushRow{ scroll-margin-top:110px; }

/* =========================================================
  Base / Layout
========================================================= */
#brush{
  padding: 90px 0 110px;
  background:#fff;
  color:#111;
  line-height: 1.5;
}

#brush *{ box-sizing:border-box; }

#brush .brush__head,
#brush .brush__selectWrap,
#brush .brush__body{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
  Head
========================================================= */
#brush .brush__head{
  margin: 0 auto 100px;
}

#brush .brush__headline{
  margin: 0;
  font-size: clamp(16px, 2.1vw, 24px);
  font-weight: 900;
  line-height: 1.5;
}

#brush .brush__headline span{
  display:block;
  margin-top: 16px;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
  letter-spacing: .03em;
  color: rgba(0,0,0,.70);
}

#brush .brush__headline span::before{
  content:"";
  display:block;
  width: 32%;
  height: 3px;
  background:#ffe600;
  margin-bottom: 14px;
}

#brush .brush__lead{
  margin: 18px 0 0;
  line-height: 1.5;
  color: rgba(0,0,0,.80);
  font-weight: 600;
}

/* =========================================================
  Select (3 buttons + dropdown)
========================================================= */
#brush .brush__selectWrap{
  padding-bottom: 100px;
  position: relative;
}

#brush .brush__selectTitle{
  text-align:center;
  font-size: clamp(22px, 4.5vw, 40px);
  font-weight: 900;
  letter-spacing: .02em;
  color: rgba(0,0,0,.20);
  margin: 0 0 34px;
  line-height: 1.5;
}

#brush .brush__selectGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

/* buttons */
#brush .brushBtn{
  width:100%;
  min-height: 92px;
  border: 2px solid #111;
  background:#fff;
  color:inherit;
  text-decoration:none;
  display:flex;
  flex-direction: column;
  justify-content:center;
  align-items:center;
  position: relative;
  padding: 12px 48px;
}

#brush .brushBtn .jp{
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
}

#brush .brushBtn .en{
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(0,0,0,.55);
  font-weight: 800;
}

/* dropdown */
#brush .brushDrop{ position: relative; }

#brush .brushBtn--drop .chev{
  position:absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: translateY(-60%) rotate(45deg);
  opacity: .9;
}

#brush .brushDrop.is-open .brushBtn--drop .chev{
  transform: translateY(-35%) rotate(-135deg);
}

/* dropdown menu */
#brush .brushMenu{
  position:absolute;
  left:0;
  top: calc(100% + 10px);
  width:100%;
  border: 2px solid #111;
  background:#fff;
  padding: 16px 18px;
  z-index: 50;

  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition: opacity .16s ease, visibility .16s ease;
}

#brush .brushDrop.is-open .brushMenu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

#brush .brushMenu__link{
  display:block;
  text-decoration:none;
  color:#111;
  font-size: 16px;
  font-weight: 900;
  padding: 10px 6px;
      font-family: auto;
}

#brush .brushMenu__link + .brushMenu__link{
  border-top: 1px solid rgba(0,0,0,.12);
}

/* hover */
@media (hover:hover){
  #brush .brushBtn{
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  }
  #brush .brushBtn:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    background:#f7f7f7;
  }
}

/* =========================================================
  Category Hero
========================================================= */
#brush .brushCategory{
  margin-top: 100px;
}
#brush .brushCategory:first-child{
  margin-top: 0;
}

#brush .brushCategory__hero{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
padding: 34px 22px;
  margin-bottom: 64px;

  background-image: url("../images/top/page-brush.png");
  background-size: cover;
  background-position: center;
}

/* readability overlay */
#brush .brushCategory__hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(180deg,
      rgba(255,255,255,.86) 0%,
      rgba(255,255,255,.78) 55%,
      rgba(255,255,255,.45) 75%,
      rgba(255,255,255,0) 100%
    ),
    linear-gradient(90deg,
      rgba(248,248,248,.70) 0%,
      rgba(248,248,248,.35) 55%,
      rgba(248,248,248,0) 100%
    );
  pointer-events:none;
}

#brush .brushCategory__hero::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:6px;
  height:100%;
  background:#d43b31;
  pointer-events:none;
}

#brush .brushCategory__title{
  position: relative;
  z-index: 1;
  margin: 0;
font-size: clamp(16px, 2.2vw, 28px);
  font-weight: 900;
  letter-spacing: .02em;
}

#brush .brushCategory__title span{
  display:block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,.55);
  font-weight: 700;
}

/* hero bg override */
#brush .bg1{ background-image: url("../images/page-brush/category-top/brushtop.png") !important; }
#brush .bg2{ background-image: url("../images/page-brush/category-top/machinerytop.png") !important; }
#brush .bg3{ background-image: url("../images/top/page-renewa.png") !important; }
#brush .bg4{ background-image: url("../images/page-renewableenergy/SmartFlower1.jpg") !important; }
#brush .bg5{ background-image: url("../images/top/page-plant.jpg") !important; }
#brush .bg6{ background-image: url("../images/top/page-plant.jpg") !important; }

/* =========================================================
  Rows (2 columns)
========================================================= */
#brush .brushRow{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 34px;

  padding-top: 60px;
  margin-top: 56px;
  border-top: 1px solid rgba(0,0,0,.08);
}

#brush .brushRow:first-of-type{
  border-top: 0;
  margin-top: 30px;
}

#brush .brushRow.is-reverse{
  flex-direction: row-reverse;
}

#brush .brushText,
#brush .brushMedia{
  width: 47%;
  min-width: 0;
  padding: 10px 6px;
}

#brush .brushMedia{
  display:flex;
  flex-direction: column;
  gap: 12px;

  position: sticky;
  top: 110px;
  /* align-self: flex-start; */
}

.bold{
  font-weight: bold;
  text-decoration:underline;
}
/* =========================================================
  Titles / Desc
========================================================= */
#brush .brushTitle{
  margin: 0 0 12px;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 900;
  line-height: 1.5;
  text-align: left;
}

#brush .brushTitle span{
  display:block;
  margin-top: 12px;
  font-size: 18px;
  letter-spacing: .1em;
  font-weight: 900;
  /* opacity: .9; */
      color: rgba(0, 0, 0, .45);
}

#brush .brushTitle span::before{
  content:"";
  display:block;
  width: 42%;
  height: 4px;
  background:#0064c2;
  margin-bottom: 14px;
}

#brush .brushDesc{
  margin: 0;
  line-height: 1.5;
  font-weight: 600;
}

/* =========================================================
  Spec
========================================================= */
#brush .brushSpec{
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.12);
}

#brush .brushSpec__title{
  display:inline-flex;
  align-items:center;
  gap: 10px;

  margin: 18px 0 10px;
  padding: 10px 15px;

  font-weight: 900;
  font-size: 16px;

  border-radius: 0 12px 12px 0;
  border: 1px solid rgba(0,0,0,.18);
  border-left: 4px solid #0064c2;

  background:#f7f8fa;
  box-shadow: 1px 2px 6px rgba(0,0,0,.06);
}

#brush .brushSpec__list{
  margin: 0 0 8px 1.1em;
  padding: 0;
}
#brush .brushSpec__list li{
  line-height: 1.5;
  margin: 4px 0;
  font-weight: 600;
  font-family: auto;
}


.plantImage{
  max-width: 600px;
  margin: auto;
   padding-top: clamp(100px, 2.5vw, 150px);
}

/* =========================================================
  Media (video/img)
========================================================= */
#brush .brushVideo{
  overflow:hidden;
  aspect-ratio: 16 / 9;
}

#brush .videoWrap{
  position: relative;
  width: 100%;
  height: 100%;
}

#brush .videoWrap iframe,
#brush .videoWrap img{
  position:absolute;
  inset:0;
  width:100%;
  /* height:100%; */
  display:block;
}

#brush .videoWrap img{
  object-fit: contain;
}

/* =========================================================
  Thumbs (Auto continuous friendly + Arrow nav stays)
  - JSでscrollLeftを回す方式に最適化
========================================================= */
#brush .brushThumbs{
  position: relative;
  padding-top: 10px;
}

#brush .brushThumbs .thumbs{
  list-style:none;
  display:flex;
  gap: 12px;
  margin: 0;
  padding: 0 34px;        /* arrows space */

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: none; /* autoに邪魔なので無効 */
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;  /* Firefox */
}
#brush .brushThumbs .thumbs::-webkit-scrollbar{ display:none; }

#brush .brushThumbs .thumbs__item{
  flex: 0 0 220px;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.1);
}

#brush .brushThumbs .thumbs__item img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* arrows */
#brush .thumbsNav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background:#ffe600;
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .2s ease;
}
#brush .thumbsNav--prev{ left: 6px; }
#brush .thumbsNav--next{ right: 6px; }
#brush .thumbsNav.is-disabled{
  opacity: .25 !important;
  pointer-events: none !important;
}

/* =========================================================
  Makers (optional)
========================================================= */
#brush .brushMaker{
  display:flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 5px 0 0;
  font-family: auto;
}
#brush .brushMaker li{ list-style:none; }
#brush .brushMaker a{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: inherit;
}
#brush .makerLogo{
  max-width: clamp(120px, 30vw, 220px);
  height: auto;
  object-fit: contain;
}
#brush .makerName{
  font-weight: 600;
  font-size: 15px;
}
#brush .brushMaker a:hover{ opacity:.75; }

/* =========================================================
  Last row
========================================================= */
#brush .brushRow--last{ padding-bottom: 70px; }

/* =========================================================
  Responsive
========================================================= */
@media (max-width: 1025px){
  #brush .brush__selectGrid{
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 560px;
    margin: 0 auto;
  }

  #brush .brushRow,
  #brush .brushRow.is-reverse{
    flex-direction: column;
    align-items: stretch;
  }

  #brush .brushText,
  #brush .brushMedia{
    width: 100%;
    padding: 0;
  }

  #brush .brushMedia{
    position: static;
    top: auto;
  }

  #brush .brushThumbs .thumbs__item{
    flex-basis: 70vw;
    max-width: 420px;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px){
  #brush{
    padding: 70px 0 90px;
            font-size: 14px;
  }
  #brush .brush__selectWrap{
    padding-bottom: 0px;
  }
  #brush .brush__selectTitle{
    margin-bottom: 24px;
  }
  #brush .brushBtn .jp{
  font-size: 14px;
}
#brush .brushMenu__link{
  font-size: 14px;
}
#brush .brushCategory__hero {
    margin-top: 100px;
}
}


.h100{
  height: 100%!important;
}