@charset "utf-8";
/*
 * item_style.css
 * アイテム詳細ページ専用スタイル（_item.html のみ読み込む）
 *
 * 【設計方針】
 * - #container / #contents の幅をこのページ専用に拡張
 * - flexbox で #main2 / #sideLeft を横並び・gap:40px
 * - 装飾はシンプルに：box-shadow / border-radius のみ
 * - グラデーション・太枠線は使わない
 */

/* ============================================================
   ページ背景
============================================================ */
body {
	background: #f8f9fa;
	color: #2d3748;
}

/* ============================================================
   コンテナ幅拡張（item_style.css はこのページ専用なので安全）
============================================================ */
#container {
	width: 1120px;
}

/* ============================================================
   コンテンツ枠（#contents）
   幅を1080pxに拡張、flexboxで横並びレイアウト
============================================================ */
#contents {
	width: 1080px;
	background: #f8f9fa;
	border: none;
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
	padding: 0 0 36px;
}

/* ============================================================
   メインコンテンツエリア（#main2）
   flex で残りスペースを占有
   topstyle.css の float / width は flex context で無視される
   padding を 40px に拡張
============================================================ */
#main2 {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	padding: 40px;
	background: #ffffff;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	border: none;
}

/* アイテムタイトル */
#main2 H2.midashi {
	border-left: 6px solid #1a365d;
	border-bottom: 1px solid #e2e8f0;
	background: none;
	color: #1a365d;
	border-radius: 0;
	padding-left: 12px;
	margin-bottom: 24px;
}

/* パンくずリスト */
#main2 > a {
	color: #1a365d;
	font-size: 12px;
	text-decoration: none;
	border-bottom: 1px dotted #a0aec0;
}
#main2 > a:hover {
	color: #2c5282;
	text-decoration: underline;
}

/* ============================================================
   アイテム本体カード（#main2 内の section.ad）
============================================================ */
#main2 section.ad {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	position: relative;
}

/* カード上部のアクセントライン */
#main2 section.ad::before {
	content: '';
	display: block;
	height: 3px;
	background: #1a365d;
	border-radius: 6px 6px 0 0;
}

/* 画像 */
#main2 section.ad img {
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#main2 section.ad img:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* リンク */
#main2 section.ad a {
	color: #1a365d;
	transition: color 0.15s;
}
#main2 section.ad a:hover {
	color: #2c5282;
	text-decoration: underline;
}

/* タグボタン */
#main2 section.ad a[href*="/tag/"],
#main2 section.ad a[href*="/tag_guide/"] {
	display: inline-block;
	background: #edf2f7;
	color: #1a365d;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	padding: 2px 10px;
	font-size: 12px;
	margin: 2px 3px;
	text-decoration: none;
	transition: background 0.15s;
}
#main2 section.ad a[href*="/tag/"]:hover,
#main2 section.ad a[href*="/tag_guide/"]:hover {
	background: #e2e8f0;
}

/* ============================================================
   サイドバー（#sideLeft）
   flex で幅固定
============================================================ */
#sideLeft {
	flex: 0 0 200px;
	width: 200px;
	background: #ffffff;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   サブコンテンツエリア（#main）
   flex で横幅100%に広げて下に配置
============================================================ */
#main {
	flex: 0 0 100%;
	background: #ffffff;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	color: #2d3748;
}

/* ============================================================
   レスポンシブ補正
============================================================ */
@media screen and (max-width: 1140px) {
	#container { width: 100%; }
	#contents {
		width: 100%;
		flex-direction: column;
		gap: 20px;
	}
	#main2 { padding: 20px; }
	#sideLeft { flex: 0 0 auto; width: 100%; }
	#main { flex: none; }
}
