@import url(base/_base.css);

/*@import url(layout/_box.css);*/
@import url(layout/_propaganda.css);

@import url(component/_search.css);

@import url(responsive/_responsive.css);
	h1,h2,h3,h4,h5{
		font-size:26px;
		color:#2f2f2f;
		font-family:'Century Gothic','Century';
		margin-bottom:20px;
		word-spacing:-3px;
	}
	header{
	display:flex;
	margin:0 0 15px 0;
}
.logo{
	height:50px;
	line-height:50px;
}
nav{
	height:50px;
	line-height:50px;
	/*background-color:skyblue;*/
	font-size:14px;
	padding:0 0 0 20px;
}
nav img{
	width:28px;
	height:auto;
}
	main{
		max-width:900px;
		margin:0 auto 80px;
		/*background-color:skyblue;*/
	}

/* ==========================================================================
   最外郭：Flexboxによる3列の割り振り
   ========================================================================== */
.site-wrapper {
  display: flex;
  justify-content: center; /* 画面中央に寄せる */
  /* 縦方向は上揃え（Stickyを機能させるために必須） */
  /*align-items: flex-start;*/
  flex-direction:row;
  /*gap: 20px;*/
  /*width: 100%;*/
  max-width: 1200px; /* ポータルの最大横幅（環境に合わせて調整） */
  margin: 0 auto;
  /*padding: 0 20px;*/
}


/* ==========================================================================
   外枠：1カラム目（固定）と 2カラム目以降（残り全域）の切り分け
   ========================================================================== */
.portal-container {
  display: grid;
  /* 左側を300pxに固定、右側は残りスペース（1fr）をすべて使う */
  grid-template-columns: 300px 1fr;
  gap: 20px;
  max-width: 100%;
  padding: 0 30px;
  align-items: start;
}

/* 1カラム目：画面縦いっぱいにスクロール固定（Sticky仕様） */
.sidebar-search {
  position: sticky;
  top: 20px; /* スクロールした時に上部に残るマージン */
  height: calc(100vh - 30px); /* 画面の高さに合わせる */
  overflow-y: auto; /* コンテンツが溢れたらこのカラム単体でスクロール */
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px;
}

/* ==========================================================================
   2カラム目以降：MSN風の格子状（Grid）自動生成
   ========================================================================== */
.main-grid-content {
  display: grid;
  /* 画面幅に合わせて、最小280pxのボックスを自動で詰め込む（auto-fill） */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  /* 行の最小高さを160pxに指定。中身が溢れたら自動（auto）で伸びる */
  grid-auto-rows: minmax(150px, auto);
  gap: 20px;
}

/* 個別ボックスの基本スタイル */
.info-box {
  
  background: #f5f3ed;
  /*border: 1px solid #e2e8f0;*/
  border-radius: 7px;
  padding:0 0 2px 0;
  word-break: break-all;
  box-shadow:0 0 15px 1px rgba(0, 0, 0, 0.08);
  position:relative;
  user-select:none;
  cursor:pointer;
  z-index:9;
}

.info-box .content {
	height:150px;background:#fefefe;border:1px solid #e3e3e3;padding:15px;border-radius: 7px;}

.info-box .menu{
	width:32px;
	height:32px;
	position:absolute;
	top:8px;
	right:12px;
	display:flex;
	justify-content: center;
	align-content: center;
	align-items: center;
	z-index:10;
	border-radius:50%;
	
}
.info-box .menu:hover{
background:#efefef;
border:1px solid #eee;
}

/* ==========================================================================
   MSN風の「緩急」をつけるための拡張クラス（特定の箱をデカくする）
   ========================================================================== */

/* 横幅を2マス分、縦幅を2マス分占有する主役ボックス（ヒーローエリア） */
.info-box.hero-box {
  grid-column: span 2;
  grid-row: span 2;
  background: #fffdf5; /* 目立たせるためのバフ色 */
  border-color: #ecc94b;
}

/* 横長にしたいボックス（グラフ表示用など） */
.info-box.wide-box {
  grid-column: span 2;
}

/* 縦長にしたいボックス（ランキング集など） */
.info-box.tall-box {
  grid-row: span 2;
}


/* ==========================================================================
   モーダルウィンドウ
   ========================================================================== */
dialog{
	position:fixed;top:0;right:0;bottom:0;left:0;margin: auto;
	align-items: center; border: 2px solid #101010; min-width: 550px; max-width: 800px; height: calc(100vh - 50px);padding: 30px; border-radius: 0; border-radius:7px; outline:none;

/* 表示時のアニメーション（必要に応じて） */
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
dialog a {outline:none;}
#close-modal {cursor:pointer;}
/* dialogが開いている状態のスタイル */
dialog[open] {
  opacity: 1;
  transform: scale(1);
}

/* 背景の暗転（擬似要素 ::backdrop） */
dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px); /* 背景をわずかにぼかして要塞感を演出 */
}



	.thumbnail img{
		transition:0.15s;
	}
	.box:hover .thumbnail img{
		transform: scale(1.05, 1.05);
		/*transform: scale(1.05, 1.05) rotate(-0.6deg);*/
	}
	.thumbnail{
		overflow:hidden;
		border-radius:7px 7px 0 0;
	}
	.thumbnail img{
		width:100%;
		height:auto;
		user-select:none;
		/*background-image:url();*/
		/*background-size:cover;*/
	}




	.box2{
		max-width:655px;
		height:415px;
		background-color:#fff;
		border:1px solid #ddd;
		border-radius:7px;
		box-shadow:0 0 12px 1px rgba(0, 0, 0, 0.1);
		margin-right:32px;
		word-break: break-all;
		/*display:flex;*/
		cursor:pointer;
	}
	.box2:last-child{
		margin-right:0;
	}
	.box2:hover .text-link2{
		text-decoration:underline;
	}
	.box2 a{
		display:block;
		width:100%;
		height:100%;
	}
	.box2 a{
		color:#2f2f2f;
		display:block;
		width:100%;
		height:100%;
		text-decoration:none;
	}
	.box-bottom2{
		padding:12px 20px;
	}

	.thumbnail2{
		width:100%;
		overflow:hidden;
		border-radius:7px 7px 0 0;
	}
	.thumbnail2 img{
		width:100%;
		height:auto;
	}

.updated{
	color:darkcyan;
	margin-right:8px;
}
.media{
	color:crimson;
	margin-right:8px;
}
.writer{
	color:goldenrod;
	margin-right:8px;
}

/*.boxs1 {
	background: hsl(0, 60%, 60%);
	grid-area: 1/ 1/1/3;
}*/
.frame{
	border-radius:9px;
	box-shadow:0 0 15px 1px rgba(0, 0, 0, 0.09);
}


.bg-color-firebrick{background:firebrick;}
.bg-color-tomato{background:tomato;}
.bg-color-lightcoral{background: lightcoral;}
.bg-color-lightpink{background: lightpink;}

.bg-color-gold{background:gold;}
.bg-color-khaki {background:khaki;}

/*上から2番目 / 左から2番目 / 上から2番目 / 左辺4番目まで*/
/*.boxs2 {
	background: hsl(60, 60%, 60%);
	grid-area: 2 / 2 / 2 / 4;
	}*/
.bg-color-limegreen{background: limegreen;}
.bg-color-olive{background:olive;}
.bg-color-darkolivegreen{background:darkolivegreen;}

.bg-color-aqua{background:aqua;}
.bg-color-mediumturquoise{background: mediumturquoise;}
.bg-color-dodgerblue{background:dodgerblue;}
.bg-color-midnightblue{background:midnightblue;}

.bg-color-mediumslateblue{background:mediumslateblue;}






iframe{
	width:100%;
	height:auto;
	border-radius:10px 10px 0 0;
}



	@media(min-width:700px){

	}
	@media(min-width:1100px){
		main{
			max-width:1000px;
		}
		.display{
			display:none;
		}
	}
	@media(min-width:1350px){

	}
	@media(min-width:1400px){
		.site-wrapper{
			max-width:1300px;
		}

	}
	@media(min-width:1450px){
		.site-wrapper{
			max-width:1420px;
		}

	}



	@media(min-width:1500px){
		.site-wrapper{
			max-width:1470px;
		}
		.propaganda1{
			display:block;
		}
		.propaganda2{
			display:block;
		}
	}
	@media(min-width:1550px){
		.site-wrapper{
			max-width:1500px;
		}
	}
	@media(min-width:1600px){
		.site-wrapper{
			max-width:1500px;
		}
	}
	@media(min-width:1650px){
		.site-wrapper{
			max-width:1500px;
		}

	}
	@media(min-width:1700px){

	}
	@media(min-width:1900px){
		/*.grid{
			grid-template:repeat(auto-fit, 400px) / 310px 310px 310px 310px;
			grid-auto-rows: 400px;
		}*/
		/*main{
			max-width:1600px;
		}*/
		.site-wrapper{
			max-width:1800px;
			/*background:skyblue;*/
		}
	}