@charset "utf-8";

/* スタイルシート
作成者：Hatomi Inc.
作成日：R8.01.14
-------------------------------------------------------------------------------------*/

.home {
}

/*************************************************************************************
**************************************************************************************

main

**************************************************************************************
**************************************************************************************/

.home #main {
}

.home #main .block {
}

.home #main .inner {
}


/*************************************************************************************

catalogSection

**************************************************************************************/

.catalogSection{
	 padding: 3rem 0 3rem;
	
}

/* 畜産機材部門 */
.catalogSection.Livestock{
  background: #CAEEFC;
}

/* 各種フィーダー */
.catalogSection.feeders{
  background: #CCE9DA;
}

/* 飼料搬送システム */
.catalogSection.feed_system{
  background: #C6D5ED;
}

/* カタログダウンロード */
.catalogSection.calalog_download{
  background: #F9D4D3;
}

.catalogSection__title.catalogTitle{
  margin-left: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
}

/* 畜産機材部門 */
.catalogSection.feeders .catalogSection__title.catalogTitle{
  background: #00AEEF;
}

/* 各種フィーダー */
.catalogSection.feeders .catalogSection__title.catalogTitle{
  background: #0DB14B;
}

/* 飼料搬送システム */
.catalogSection.feed_system .catalogSection__title.catalogTitle{
  background: #0C3388;
}

/* カタログダウンロード */
.catalogSection.calalog_download .catalogSection__title.catalogTitle{
  background: #E32921;
}

/* 見出しバー */
.catalogSection__title{
  margin: 0 0 2.3rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
	 padding: .7rem .7rem;
}

@media only screen  and (min-width: 801px){
.catalogSection__title{
  font-size: 1.4rem;
}	
}
@media only screen  and (min-width: 701px) and (max-width: 800px){
.catalogSection__title{
  font-size: 1.3rem;
}		
}
@media only screen  and (min-width: 481px) and (max-width: 700px){
.catalogSection__title{
  font-size: 1.4rem;
}		
}
@media only screen  and (min-width: 401px) and (max-width: 480px){
.catalogSection__title{
  font-size: 1.2rem;
}	
}
@media only screen and (max-width: 400px){
.catalogSection__title{
  font-size: 1.3rem;
}	
}

/* 畜産機材部門 */
.catalogSection.Livestock .catalogSection__title{
  background: #00AEEF;
}

/* 各種フィーダー */
.catalogSection.feeders .catalogSection__title{
  background: #0DB14B;
}

/* 飼料搬送システム */
.catalogSection.feed_system .catalogSection__title{
  background: #0C3388;
}

/* カタログダウンロード */
.catalogSection.calalog_download .catalogSection__title{
  background: #E32921;
}

/* 4列グリッド*/
.catalogGrid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* カード */
.catalogCard{
  background: #fff;
  padding: 12px 12px 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

.dl_type .catalogCard{
  background-color: transparent;
  padding: 0 0;
  box-shadow:none;
}

/* aで全部クリックできるように */
.catalogCard__link{
  display: block;
  color: inherit;
  text-decoration: none;
}

/* 画像枠*/
.catalogCard__figure{
  margin: 0;
  border: 1px solid rgba(0,0,0,.4);
  background: #fff;
  aspect-ratio: 3 / 4;/* 縦長想定 */
  display: grid;
  place-items: center;
}

.dl_type .catalogCard .catalogCard__figure{
  border: none;
}

.catalogCard__img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalogCard__name{
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}


/* =========================
  レスポンシブ
========================= */

/* タブレット：3列 */
@media (max-width: 900px){
  .catalogGrid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* SP：2列 */
@media (max-width: 650px){
  .catalogGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .catalogCard__name{ font-size: 13px; }
}

/* 小さいSP：1列 */
@media (max-width: 420px){
  .catalogGrid{
    grid-template-columns: 1fr;
  }
}

/* =========================
   Catalog Accordion (FINAL / NO BLUR)
========================= */

.catalogSection{
  --acc-bar-h: 64px;
  --acc-fade-h: 140px; /* フェード高さ */
  --acc-radius: 0px;

  /* default */
  --acc-bg: #00AEEF;
  --acc-rgb: 0,174,239;
}

@media only screen and (max-width: 700px){
.catalogSection{
  --acc-bar-h: 55px;
}	
}

/* セクション別カラー */
.catalogSection.Livestock{
  --acc-bg: #00AEEF;
  --acc-rgb: 0,174,239;
}
.catalogSection.feeders{
  --acc-bg: #0DB14B;
  --acc-rgb: 13,177,75;
}
.catalogSection.feed_system{
  --acc-bg: #0C3388;
  --acc-rgb: 12,51,136;
}

/* body */
.catalogAccordion__body{
  position: relative;
  overflow: hidden;
  transition: max-height 380ms ease;
  will-change: max-height;

  /* collapsed時にバーが被る */
  padding-bottom: var(--acc-bar-h);
}

/* bar */
.catalogAccordion__bar{
  height: var(--acc-bar-h);
  display: grid;
  place-items: center;
  z-index: 5;
  position: relative; /* ::before基準 */
}

/* ===== collapsed ===== */
.catalogAccordion__body[data-state="collapsed"] .catalogAccordion__bar{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
}

/* 上向きグラデーション（下＝色 / 上＝透明） */
.catalogAccordion__body[data-state="collapsed"] .catalogAccordion__bar::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: calc(var(--acc-bar-h) + var(--acc-fade-h));

  background: linear-gradient(
    to top,
    rgba(var(--acc-rgb), 1)   0%,
    rgba(var(--acc-rgb), .65) 25%,
    rgba(var(--acc-rgb), .35) 45%,
    rgba(var(--acc-rgb), .10) 65%,
    rgba(var(--acc-rgb), .05) 82%,
    rgba(var(--acc-rgb), 0)  100%
  );

  pointer-events: none;
  z-index: 1;
}

/* ===== open ===== */
.catalogAccordion__body[data-state="open"]{
  overflow: visible;
  padding-bottom: 0;
}

.catalogAccordion__body[data-state="open"] .catalogAccordion__bar{
  position: relative;
  margin-top: 18px;
  background: var(--acc-bg);
}

/* open時はフェード不要 */
.catalogAccordion__body[data-state="open"] .catalogAccordion__bar::before{
  display: none;
}

/* button */
.catalogAccordion__toggle{
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;

  background: var(--acc-bg);
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;
}

@media only screen  and (min-width: 801px){
.catalogAccordion__toggle{
  font-size: 1.4rem;
}	
}
@media only screen  and (min-width: 701px) and (max-width: 800px){
.catalogAccordion__toggle{
  font-size: 1.3rem;
}		
}
@media only screen  and (min-width: 481px) and (max-width: 700px){
.catalogAccordion__toggle{
  font-size: 1.4rem;
}		
}
@media only screen  and (min-width: 401px) and (max-width: 480px){
.catalogAccordion__toggle{
  font-size: 1.2rem;
}	
}
@media only screen and (max-width: 400px){
.catalogAccordion__toggle{
  font-size: 1.3rem;
}	
}

.catalogAccordion__toggle:focus-visible{
  outline: 3px solid rgba(255,255,255,.7);
  outline-offset: 2px;
}


.catalogAccordion__body{
  overflow: hidden;
  transition: max-height .35s ease;
}


/* =========================
  アイコン
========================= */
/* ヒーターアイコン */
.catalogCard__figure{
  position: relative;
}

.catalogCard__heaterIcon{
  position: absolute;
  top: 0px;
  left: 0px;
  width: 34px;
  height: 34px;
  z-index: 2;
  pointer-events: none; /* クリック邪魔しない */
}

@media only screen  and (min-width: 1001px){
.catalogCard__heaterIcon{
  width: 2.3rem;
  height: 2.3rem;
}	
}

@media only screen  and (min-width: 901px) and (max-width: 1000px){
.catalogCard__heaterIcon{
  width: 2.1rem;
  height: 2.1rem;
}	
}

@media only screen  and (min-width: 901px) and (max-width: 1000px){
.catalogCard__heaterIcon{
  width: 1.8rem;
  height: 1.8rem;
}	
}

@media only screen  and (min-width: 801px) and (max-width: 900px){
.catalogCard__heaterIcon{
  width: 2.05rem;
  height: 2.05rem;
}	
}

@media only screen  and (min-width: 701px) and (max-width: 800px){
.catalogCard__heaterIcon{
  width: 1.75rem;
  height: 1.75rem;
}	
}

@media only screen  and (min-width: 651px) and (max-width: 700px){
.catalogCard__heaterIcon{
  width: 2rem;
  height: 2rem;
}	
}

@media only screen  and (min-width: 481px) and (max-width: 650px){
.catalogCard__heaterIcon{
  width: 3.2rem;
  height: 3.2rem;
}	
}

@media only screen  and (min-width: 401px) and (max-width: 480px){
.catalogCard__heaterIcon{
  width: 1.6rem;
  height: 1.6rem;
}	
}

@media only screen and (max-width: 400px){
.catalogCard__heaterIcon{
  width: 3.5rem;
  height: 3.5rem;
}	
}

.catalogCard__heaterIcon img{
  width: 100%;
  height: auto;
  display: block;
}

/* ヒーターアイコンは常に不透明 */
.catalogCard__heaterIcon,
.catalogCard__heaterIcon img{
  opacity: 1 !important;
}
