/* ========================================
   トップページ専用スタイル
   （共通のレイアウトは global.css を参照）
   ======================================== */

/* コンテンツ上部 */
#contenttop {
	width: 100%;
	/* margin-top: 15px; */
	clear: both;
}


.content-group {
	padding: 3rem;
}





/* トップイメージ */
#topimage {
	display: flex;
	/* flex-wrap: wrap; */
	    display: flex;
    align-items: center;
	justify-content: center;
	width: 100%;
	/* margin: 0 0 2rem; */
	/* position: absolute;
	top: -112px; */
}

.topimage__inner {

}

.backimage {
	position: relative;
}




/* アイキャッチ */
#eyecatch {
	width: 300px;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

#eyecatch img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

/* カタログ紹介 */
#catalog_bg {
	width: 240px;
	max-width: 100%;
	margin: 0 0 0 10px;
	padding: 0;
	background: url(../img/top/bg_catalog.gif) no-repeat center top;
	background-size: contain;
	text-align: center;
}

#catalog_bg #catalog {
	width: 211px;
	max-width: 100%;
	margin: 10px auto 0;
	padding: 0;
	text-align: center;
}

.catalog_tex {
	font-size: 110%;
	line-height: 1.3;
}

/* おすすめ商品 */
.content-recommend {
      max-width: 880px;
    margin: 0 auto;

}
.content-recommend__title {
	font-weight: bold;
	font-size: 1rem;
	position: relative;
	border-radius: 5px 5px 0 0;
    padding: .3rem .3rem .3rem 2rem;
    border: 2px solid #d6cbcc;
    background-image:
        linear-gradient(-45deg, transparent 0 20px, #fff 20px calc(100% - 20px), transparent calc(100% - 20px)),
        repeating-linear-gradient(135deg, #d6cbcc 0 2px, transparent 2px 4px);
    color: #333;

}


.recommend_bg {
	width: 100%;
	background-color: #F1F1F1;
	padding: 40px 60px;
	margin: 0 0 20px;
	clear: both;
	text-align: center;
}
.recommend_bg__innerarea {
	    position: relative;
    padding: 2rem 2rem;
    border: 1px solid #dcd791;
    background-image:
        linear-gradient(#ffffffeb 0 100%),
        repeating-linear-gradient(135deg, #dcd791 0 5px, transparent 5px 10px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: calc(100% - 10px) calc(100% - 10px), 100%;
    color: #353535;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
	line-height: 1.3;
	    border-radius: 5px;
      max-width: 650px;
    margin: 1rem auto;

}

.recommend_bg__textarea {

		    margin: 0 0 1rem;
			    display: flex;
    justify-content: center;
    align-items: center;
			
}


.recommend_bg__textarea-text {
		color: #333;
		font-weight: bold;
	font-size: 1.2rem;
	line-height: 2;
		display: block;
}

.text-gray {
	color: #333;
	font-size: 1rem;
	font-weight: 500;
	margin: 0 0 1rem;
	line-height: 2;
}
.text-white {
	color: #fff;
	font-size: 1.1rem;
	font-weight: bold;
	line-height: 1.7;
	/* text-shadow: 2px 3px 4px rgb(15 12 12 / 83%); */
}
.text-back-area {
	position: relative;
	    margin: 6.8rem 0 0 0;
}

.text-back-maru {
background: #a84343;
color: #fff;
width: 200px;
height: 200px;
border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
	    transform: rotate(-15deg);
		    width: 180px;
    height: 180px;
    padding: 10px;
}


/* ---------吹き出し ここから---------- */

.balloon1 {
    position: absolute;
top: -8px;
    left: -15px;
    transform: rotate(-15deg);
    display: inline-block;
    margin: 1.5em 0;
    padding: 7px 23px 13px;
  min-width: 120px;
  max-width: 100%;
  box-sizing: border-box;
  color: #555;
  font-size: 16px;
  background: #d0ebed;
  border-radius: 15px;
  
}

.balloon1::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 80%;
  margin-left: -12px;
  border: 12px solid transparent;
  border-top: 12px solid #d0ebed;
}

.balloon1 p {
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
}
.balloon1 p::first-letter {
  font-size: 150%;
  font-weight: bold; 
  color: #1f258e; 
}


/* ---------吹き出し ここまで---------- */



.recommend_bg img {
	display: block;
	margin: 1rem auto 1.5rem;
}

.highlight {
  background: linear-gradient(transparent 35%, #f4f162 0%);
}
.highlight-back {
  background: linear-gradient(transparent 80%, #eaf584 0%);
  padding: .2rem;
}


.item1,
.item2,
.item3 {
	width: 212px;
	max-width: 100%;
	margin: 0 auto 0 20px;
	padding: 3px;
	background-color: #FFFFFF;
	border: solid 1px #D3D3D3;
}

.item_tex strong {
	font-size: 120%;
}

.item_tex {
	margin: 2px;
	font-size: 85%;
}

/* トピックス */
#topics {
	width: 100%;
	margin: 20px 0 0;
	padding: 0;
	clear: both;
  max-width: 880px;
    margin: 0 auto;
}

#topicslogo {
	width: 100%;
	margin: 0;
	/* padding: 0; */
}
.topics-logo-title {
font-weight: bold;
padding: .5rem;
font-size: 1rem;
color: #444;
    position: relative;
    padding: .3rem .3rem .3rem 2.5rem;
	border-radius: 5px 5px 0 0;
    border: 2px solid #e3dd95;
    background-image:
        linear-gradient(90deg, transparent 0 30px, #fff 30px),
        repeating-linear-gradient(135deg, #e3dd95 0 3px, transparent 3px 6px);

}
#topics .news {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	background-color: #f2f2e6;
	min-height: 70px;
}

#topics li {
padding: 8px 10px 10px 25px;
	background: url(../img/common/icn_migi.gif) no-repeat 3px 0.7em;
	/* border-bottom: dotted 1px #A5A3B2; */
	list-style-type: none;
}

.style1 {
	color: #FF0000
}
.style4 {
  color: #FF0000;
  font-size: 24px;
  font-weight: bold;
  font-family: "ＭＳ Ｐゴシック", Osaka, "ヒラギノ角ゴ Pro W3";
}
.style5 {
	color: #FF0000;
	 /* font-size: 1.1rem;  */
	 	 font-size: 1rem; 
	 font-weight: bold; 
	 font-family: "ＭＳ Ｐゴシック", Osaka, "ヒラギノ角ゴ Pro W3"; 
}
.style6 {
  font-size: 16px;
  color: #0000FF;
}



#topics li table {
	margin: 0;
	padding: 0 0 10px;
	width: 100%;
}

#topics td {
	word-break: break-word;
}




/******** TOPページ CSSスライダー**********/

/* スライダー全体の枠 */
.css-slider {
  position: relative;
  width: 100%;
height: 600px;
  overflow: hidden;
  background-color: #000;
  margin-top: -40px; /*ナビの高さ分だけマイナス*/
}

/* スライドアイテム（画像＋文字） */
.css-slider__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: sliderFade 15s linear infinite;
  display: flex;
  align-items: center; /* 上下中央揃え */
  justify-content: center; /* 左右中央揃え */
}

/* 画像の設定（文字の後ろに配置） */
.css-slider__item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* 💡 文字の視認性を上げるための黒いマスク（オーバーレイ） */
.css-slider__item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* 画像を30%暗くする（不要なら削除OK） */
  z-index: 2;
}

/* 文字・ボタンのレイアウト設定 */
.css-slider__content {
  position: relative;
  z-index: 3; /* 画像とマスクより上に配置 */
  color: #fff;
  text-align: center; /* 中央寄せ */
padding: 75px 20px 0;
  max-width: 800px;
  width: 100%;
}

/* キャッチコピー */
.css-slider__title {
  font-size: 2.5rem; /* スマホ用に後述のメディアクエリで調整 */
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* 文字の影 */
}

/* 説明文 */
.css-slider__text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* リンクボタン */
.css-slider__btn {
  display: inline-block;
  background-color: #ffffffb8; /* ボタンの背景色 */
  color: #333; /* ボタンの文字色 */
  padding: 15px 40px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px; /* 丸み */
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ボタンのホバーエフェクト */
.css-slider__btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px); /* ほんのり浮き上がる */
}

/* --- アニメーションのタイミング調整 --- */
.css-slider__item:nth-child(1) { animation-delay: 0s; }
.css-slider__item:nth-child(2) { animation-delay: 5s; }
.css-slider__item:nth-child(3) { animation-delay: 10s; }

@keyframes sliderFade {
  0% { opacity: 0; }
  5% { opacity: 1; } /* 0.75秒でフェードイン */
  33.33% { opacity: 1; } /* 5秒間キープ */
  38.33% { opacity: 0; } /* 0.75秒でフェードアウト */
  100% { opacity: 0; }
}

/* --- レンポンシブ対応（スマホ用の文字サイズ） --- */
@media screen and (max-width: 767px) {
  .css-slider {
    height: 70vh; /* スマホでの高さ調整 */
  }
  .css-slider__title {
    font-size: 1.6rem; /* スマホに合わせて文字を小さく */
  }
  .css-slider__text {
    /* font-size: 0.95rem; */
	    font-size: 0.9rem;
  }
  .css-slider__btn {
    padding: 12px 30px;
    font-size: 0.9rem;
  }
}



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

@media screen and (max-width: 600px) {
	#topimage {
		justify-content: center;
	}

	#eyecatch {
		margin: 0 auto;
	}

	#catalog_bg {
		margin: 16px auto 0;
	}

	.item1,
	.item2,
	.item3 {
		margin: 0 auto;
	}

	#topics li table,
	#topics li table tbody,
	#topics li table tr,
	#topics li table td {
		display: block;
		width: 100%;
	}

	#topics li {
		padding: 8px 10px 10px 18px;

	}

.content-group {
	padding: 1rem;
}

.recommend_bg {
	width: 100%;
	padding: 15px;
	margin: 0 0 20px;
}
.text-gray{

		font-size: .9rem;
}

.text-white {
	color: #fff;
	font-size: .8rem;
	line-height: 1.2;
}



.balloon1 {
    position: absolute;
top: -18px;
    left: -15px;

}
