/*
Theme Name: Kalium - Child Theme
Theme URI: https://kaliumtheme.com
Author: Laborator
Author URI: https://laborator.co
Description: Start creating that amazing website that you have always wanted, only with Kalium &mdash; Connect with Laborator on: <a href="https://twitter.com/thelaborator">Twitter X</a> &bull; <a href="https://www.facebook.com/laboratorcreative">Facebook</a> &bull; <a href="https://www.instagram.com/laboratorcreative">Instagram</a>
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Template: kalium
Text Domain: kalium
*/


/*
.page-heading {
  background-image: url("http://nanalith.com/wp-content/uploads/2025/10/bk_img-scaled.jpg");
  background-repeat: no-repeat;
  background-size: cover;        
  background-position: center;                 
}
*/


/*  投稿ページのボタン設定 */

.download-minimal {
  display: inline-block;
  padding: 0.6em 0.6em;
  margin: 0.5em;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: #000;
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.download-minimal:hover {
  background-color: #b3b3b3;
  color: #fff;
  text-decoration:none;
}

.size-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
}


/*  トップページグリッドレイアウト */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 50px 0 20px;
}
/*
.category-item {
  position: relative;
  display: block;
  overflow: hidden;
  height:80px;
}

.category-item img {
  width: 100%;
  display: block;

  transition: transform 0.3s ease;

}

.category-item:hover img {
  transform: scale(1.05);
	
}


.category-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;               
  height: 100%;             
  display: flex;          
  align-items: center;      
  justify-content: center;  
  color:#4d4d4d;
  font-size: 1.4rem;
  font-weight: bold;
  pointer-events: none;
}

*/

.portfolio-thumb img {
  transition: transform 0.3s ease; /* なめらかな動き */
}

.portfolio-thumb:hover img {
  transform: scale(1.05);
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}




/*  プレビューエリアの調整 */

#pattern-preview {
  width: 100%;
  height: 400px;
  background-repeat: repeat;
  background-size: 100px 100px; /* 初期サイズ */
  border: 1px solid #ccc;

}

/*  サイズセレクターボタンの調整 */

.size-selector {
  display: flex;
  justify-content: center;
  gap: 0.5em;

}

.size-selector button {
  padding: 0.5em 0.5em;
  border: 2px solid #000;
  background-color: #fff;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.size-selector button:hover {
  background-color: #000;
  color: #fff;
}

.size-selector button.selected {
  background-color: #ffd700; /* ゴールド系の強調色 */
  color: #000;
  font-weight: bold;
  border: 2px solid #000000;
}

/*  ダウンロードボタンの調整 */

.download-minimal {
  display: inline-block;
  font-size: 1rem;
  text-decoration: none;
  color: #000;
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-align:center;
  width:320px;

}

.download-minimal:hover {
  background-color: #b3b3b3;
  color: #fff;
  text-decoration: none;
}


.download-wrapper {
  text-align: center;
  padding: 0.2em 0.2em;
}

/* -------------キーワードサーチボタン-----------*/

.tag-list {
  display: flex;
  flex-wrap: wrap;   /* 横並び＋折り返し */
  gap: 8px;          /* ボタン間の余白 */
 justify-content: center;/* 横方向の中央寄せ */
	margin-bottom:40px;
	margin-top:15px;
}

.tag {
  background: #e0e0e0;       /* フラットなグレー背景 */
  border: none;              /* 枠線なしでフラット感 */
  border-radius: 4px;        /* 角を少し丸める */
  padding: 8px 14px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s ease;
	text-align:center;

	text-decoration:none;
}

.tag:hover {
  background: #bdbdbd;       /* ホバー時に少し濃く */
}


/* -------------パンくずリスと調整-----------*/

.breadcrumbs{
	margin-left:50px;
}

/* -------------サブカテゴリの調整-----------*/

.subcategory-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9em;
  color: #666;
  display: block;       /* 縦方向に配置 */
  text-align:left;
}

.subcategory-list li:first-child {
    background-color: #f5f5f5; /* 好きな色に変更 */
    padding: 5px 10px;        /* 必要なら余白も */
	font-size:18px;
}


.subcategory-list li {
  margin: 4px 0;
  display: block;       /* 横並びを防ぐ */
}


.subcategory-list a {
  text-decoration: none;
  color: inherit; /* 親の色を継承して自然に */
  transition: color 0.3s ease;
}

.subcategory-list a:hover {
  color: #2a7ae2; /* ホバー時にアクセントカラー */
}

.subcategory-list li:first-child {
  font-weight: bold;
}

/* サブカテゴリアニメーション */

.subcategory-list li {
    position: relative;
    overflow: hidden; /* 背景がはみ出さないように */
}

.subcategory-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: #f0f0f0; /* 好きな色に変更 */
    transition: width 0.3s ease;
    z-index: -1; /* テキストの後ろに配置 */
}

.subcategory-list li:hover::before {
    width: 100%;
}



/*  ------------ヘッダータイトル ------------ */
.header-title{

	font-size:50px;
	color:#000000;
	font-weight:bold;
}

.header-wrapper {
  position: relative;   /* 親を相対配置 */
  text-align: center;   /* 保険で中央寄せ */
}

.header-site-images {
  position: absolute;   /* 絶対配置 */
  top: 4.1%;               /* 親の上端に配置 */
  left: 50%;            /* 横方向の中央基準 */
  transform: translateX(-50%); /* 中央に揃える */
  z-index: 10;          /* スライダーより前面に表示 */
}

/*  ------------画像表示ページ下のテキスト ------------ */

#portfolio_footer_txt{
	width:600px;
	margin:0px auto;
	word-break: break-all;
}


/*  ------------PC向けのスタイル ------------ */

@media screen and (min-width: 1200px) {
	/*  トップページグリッドレイアウト */

.category-grid {
  padding-left:70px;
}
}

/*  ------------PC向けのスタイル ------------ */

@media screen and (min-width: 768px) and (max-width: 1199px) {
	
	.category-grid {
grid-template-columns: repeat(3, 1fr);
margin-left:70px;
}
	
}

/*  ------------スマートフォン向けのスタイル ------------ */

@media screen and (max-width: 767px) {
	  .category-grid {
    grid-template-columns: repeat(1, 1fr);
	margin-left:90px;
  }
	/*  トップページのhover時のサブテキストを消す */

.subcategory-list li:first-child {
    background-color: #ffffff; /* 好きな色に変更 */
}	

	.portfolio-item__title {
  display: none;
}

.portfolio-item__subtitle {
  display: none;
}

	.category-label{
		
		font-size:0.9em;
	}

.header-site-images {

  top: 1.3%;               /* 親の上端に配置 */
  left: 50%;            /* 横方向の中央基準 */

}
	#portfolio_footer_txt{
	width:90%;
}
	
	
	}

