@charset "UTF-8";

/* ==========================================================================
   OKWEBコンテンツトップページ専用CSS
   ========================================================================== */

/* --- レイアウト --- */

.okw-container {
	max-width: 980px;
	margin: 0 auto;
	padding: 0;
}

/* コーナータイトルのフォント調整 (若年層向け) */
.okw-corner-title {
	font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Rounded Mplus 1c", "Meiryo", sans-serif;
	font-weight: bold;
	color: #126db6; /* NECブルー */
}

/* --- メインビジュアルエリア --- */
.okw-top-mv {
	width: 100%;
	height: 329px;
	background-image: url('/navigate/application/okweb/images/okw-topmain02.png'); 
	background-size: cover;
	background-position: center;
	border-radius: 12px;
	margin: 20px auto 40px;
	position: relative; 
	overflow: hidden;
}

/* テキスト配置エリア */
.okw-mv-text-area {
	position: absolute;
	top: 25%;
	transform: translateY(-50%);
	right: 3%; /* 右端から3%の位置 */
	left: auto; /* 左指定を解除 */
	text-align: right; /* テキスト右揃え */
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: flex-end; /* 要素を右端に寄せる */
}

/* メインキャッチコピー */
.okw-mv-copy {
	font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
	font-size: 30px;
	font-weight: bold;
	color: #e60033;
	background: #fff;
	padding: 8px 20px;
	border-radius: 5px;
	box-shadow: 3px 3px 0 rgba(230, 230, 230, 0.5); /* 立体感 */
	margin: 0 0 5px;
	line-height: 1.2;
}

/* サブキャッチ */
.okw-mv-sub {
	display: inline-block;
	font-size: 16px;
	font-weight: bold;
	color: #005eb0; /* ブルー系 */
	margin: 0;
	background: rgba(255, 255, 255, 0.9);
	padding: 5px 15px;
	border-radius: 20px;
	margin-top: 25px; 
	margin-right: 10px; 
	margin-left: 0;
	box-shadow: 1px 1px 0 rgba(0,0,0,0.1);
	line-height: 1.4;
}

/* --- 記事リストエリア --- */
.okw-article-list-wrapper {
	margin-bottom: 60px;
	padding: 0 20px;
}

/* 新着記事タイトル */
.okw-section-title {
	font-size: 22px;
	font-weight: bold;
	color: #333;
	border-left: 8px solid #f39800; /* オレンジの太い線 */
	padding-left: 15px;
	margin-top: 0;
	margin-bottom: 25px;
	line-height: 1.2;
}

.okw-article-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.okw-article-list li {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s, transform 0.3s;
}

.okw-article-list li:hover {
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	transform: translateY(-3px);
}

.okw-article-list a {
	text-decoration: none !important;
	color: inherit !important;
	display: block;
	height: 100%;
	position: relative; /* 詳細ボタンの配置基準 */
	padding-bottom: 40px; /* ボタン分のスペース確保 */
}

/* 画像エリア */
.okw-card-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #f9f9f9;
	border-bottom: 1px solid #eee;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.okw-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* 枠いっぱいに表示 */
	vertical-align: bottom;
	transition: transform 0.3s;
}

.okw-article-list li:hover .okw-card-thumb img {
	transform: scale(1.05);
}

.okw-card-content {
	padding: 20px;
}

/* タグ */
.okw-tag {
	display: inline-block;
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 3px;
	color: #fff;
	margin-bottom: 10px;
	background: #999;
}
.okw-tag.tag-battery { background: #007bff; }
.okw-tag.tag-wifi { background: #17a2b8; }
.okw-tag.tag-zoom { background: #005eb0; }
.okw-tag.tag-chatgpt { background: #00a19b; }

/* カードタイトル */
.okw-card-title {
	font-size: 16px;
	font-weight: bold;
	line-height: 1.5;
	margin: 0 0 10px;
	color: #333;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 詳細を見るボタン */
.okw-card-btn {
	font-size: 14px;
	color: #e60012; /* NECレッド */
	font-weight: bold;
	margin: 0;
	position: absolute;
	bottom: 15px;
	right: 20px;
}
.okw-card-btn::after {
	content: " >";
	font-family: monospace;
}

.okw-card-date {
	font-size: 12px;
	color: #999;
	position: absolute;
	bottom: 15px;
	left: 20px;
}

/* --- バックナンバーエリア --- */
.okw-backnumber-wrapper {
	margin-top: 50px;
	padding: 0 20px 40px;
}
.okw-backnumber-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.okw-backnumber-list li {
	border-bottom: 1px solid #eee;
	padding: 15px 0;
}
.okw-backnumber-list li a {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: #333;
	transition: opacity 0.2s;
}
.okw-backnumber-list li a:hover {
	opacity: 0.7;
}

/* アイコン画像スタイル */
.okw-bn-icon-img {
	width: 60px;
	height: 60px;
	object-fit: contain; /* 比率を保って収める */
	margin-right: 15px;
	flex-shrink: 0;
}

.okw-bn-text {
	font-size: 14px;
	font-weight: bold;
	flex-grow: 1;
}

/* 矢印アイコン */
.okw-backnumber-list li a::after {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-image: url('/navigate/application/okweb/images/ic_arrow_01.png');
	background-size: contain;
	background-repeat: no-repeat;
	margin-left: 10px;
}

.okw-backnumber-dates {
	margin-top: 20px;
	text-align: center;
}
.okw-backnumber-dates a {
	display: inline-block;
	padding: 8px 20px;
	border: 1px solid #ccc;
	border-radius: 4px;
	color: #666;
	text-decoration: none;
	margin: 0 5px;
	font-size: 14px;
	transition: background 0.3s;
}
.okw-backnumber-dates a:hover {
	background: #f0f0f0;
}

/* --- レスポンシブ (SP) --- */
@media screen and (max-width: 750px) {
	.okw-top-mv {
		height: auto;
		aspect-ratio: 980/329; 
		/* [修正] .png に戻しました */
		background-image: url('/navigate/application/okweb/images/okw-topmain02.png');
		align-items: center; /* SPでは中央寄せ */
		text-align: center;
	}
	
	.okw-mv-text-area {
		position: static; /* 絶対配置解除 */
		margin-top: 20px;
		padding: 0 15px;
		transform: none; /* 上下中央解除 */
		
		/* SPではセンター揃えに戻す */
		align-items: center; 
		text-align: center;
	}
	
	/* SP時は背景を透過させてイラストを見やすくする */
	.okw-mv-copy {
		font-size: 20px;
		margin: 0 auto 10px;
		background: rgba(255, 255, 255, 0.7); /* 透過率70% */
	}
	
	.okw-mv-sub {
		font-size: 12px;
		padding: 5px 15px;
		margin: 0 auto; /* SP時は中央揃え */
		background: rgba(255, 255, 255, 0.7); /* 透過率70% */
	}

	.okw-article-list {
		grid-template-columns: 1fr; /* 1列 */
	}
}
