/* =========================================================
   /assets 配信・動画向け 公式素材ページ専用スタイル
   本体サイト (top_v2.css) のトンマナに準拠:
   - 見出し: #2a5c6e / アクセント: #46baa1 / 本文: #555
   - 白半透明カード + ティール系ボーダー
   ========================================================= */

/* --- アンカー着地位置の調整 (sticky ヘッダー対策) --- */
#as-hero,
.as-section {
	scroll-margin-top: 90px;
}
@media (max-width: 768px) {
	#as-hero,
	.as-section { scroll-margin-top: 70px; }
}

/* --- ヘッダー調整（サブページ用・/performance と同じ考え方） --- */
#gheader nav { margin-left: auto; }
@media (min-width: 981px) and (max-width: 1120px) {
	.gheader-logo-text a { font-size: 0.92rem !important; }
	#gnav ul { gap: 1.1em !important; }
	#gnav a { font-size: 0.88rem !important; }
}
@media (max-width: 480px) {
	.gheader-logo-text a { font-size: 0.8rem !important; }
}

/* --- ページヒーロー ---
   タイトル文字が焼き込まれたキービジュアルをページの顔にする。
   テキスト見出しは重複を避けて視覚的に非表示 (.as-sr-only) で残す (SEO / スクリーンリーダー用) */
#as-hero {
	padding: clamp(36px, 5vw, 60px) 0 40px;
	text-align: center;
}
.as-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.as-hero-visual {
	max-width: 1000px;
	margin: 0 auto;
}
.as-hero-visual img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 14px;
	border: 1px solid rgba(70, 186, 161, 0.28);
	box-shadow: 0 12px 32px rgba(42, 141, 118, 0.18);
}
#as-hero .as-hero-lead {
	max-width: 720px;
	margin: 2em auto 0;
	font-size: 0.98rem;
	line-height: 2.0;
	color: #555;
	text-align: left;
}
@media (max-width: 768px) {
	#as-hero { padding: 24px 0 24px; }
	#as-hero .as-hero-lead { font-size: 0.92rem; margin-top: 1.4em; }
}

/* --- ご利用条件ボックス --- */
.as-terms {
	max-width: 720px;
	margin: 2.5em auto 0;
	padding: 1.4em 1.8em;
	background: rgba(70, 186, 161, 0.08);
	border: 1px solid rgba(70, 186, 161, 0.45);
	border-radius: 10px;
	text-align: left;
}
.as-terms-title {
	margin: 0 0 0.6em;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #2a5c6e;
}
.as-terms p {
	margin: 0 0 0.8em;
	font-size: 0.92rem;
	line-height: 1.9;
	color: #555;
}
.as-terms a { color: #2a5c6e; font-weight: 600; }
.as-terms a:hover { color: #46baa1; opacity: 1; }
.as-terms ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.as-terms li {
	position: relative;
	margin-bottom: 0.45em;
	padding-left: 1.9em;
	line-height: 1.8;
	color: #555;
	font-size: 0.95rem;
}
.as-terms li::before {
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
}
.as-terms li.ok::before { content: "○"; color: #46baa1; }
.as-terms li.ng::before { content: "×"; color: #d0021b; }
.as-terms li.caution::before { content: "！"; color: #e8a000; }

/* --- セクション共通 --- */
.as-section { padding: 46px 0; }
.as-section h2 { color: #2a5c6e; }
.as-section .sub { color: #666 !important; }

/* --- 素材カード --- */
.as-grid {
	display: grid;
	gap: 1.6em;
	max-width: 1000px;
	margin: 2em auto 0;
}
.as-grid.cols-1 { grid-template-columns: minmax(0, 720px); justify-content: center; }
.as-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.as-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
	.as-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.as-grid.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.as-grid.cols-4 { grid-template-columns: 1fr; }
}

.as-card {
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(70, 186, 161, 0.22);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(42, 141, 118, 0.08);
}

/* プレビュー領域。透過素材は市松模様の上に載せて透過が分かるようにする */
.as-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.2em;
	min-height: 180px;
	background: #fff;
}
.as-preview.is-trans {
	background-image:
		linear-gradient(45deg, #e8e8e8 25%, transparent 25%, transparent 75%, #e8e8e8 75%),
		linear-gradient(45deg, #e8e8e8 25%, transparent 25%, transparent 75%, #e8e8e8 75%);
	background-size: 20px 20px;
	background-position: 0 0, 10px 10px;
}
.as-preview img {
	max-width: 100%;
	max-height: 260px;
	width: auto;
	height: auto;
}
.as-preview.is-wide { padding: 0; }
.as-preview.is-wide img { max-height: none; width: 100%; display: block; }

.as-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	padding: 1em 1.2em 1.3em;
	border-top: 1px solid rgba(70, 186, 161, 0.18);
}
.as-name {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 700;
	color: #2a5c6e;
}
.as-spec {
	margin: 0;
	font-size: 0.8rem;
	color: #999;
	letter-spacing: 0.03em;
}
.as-dl {
	display: inline-block;
	margin-top: 0.6em;
	align-self: flex-start;
	padding: 0.55em 1.8em;
	border-radius: 999px;
	background: linear-gradient(135deg, #46baa1, #2a8d76);
	color: #fff !important;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.08em;
	transition: opacity 0.2s, transform 0.2s;
}
.as-dl:hover { opacity: 0.85; transform: translateY(-1px); }
.as-dl::before { content: "↓ "; }

/* --- 締めのメッセージ --- */
#as-message .as-card-msg {
	max-width: 860px;
	margin: 0 auto;
	padding: 2em 2.4em;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(70, 186, 161, 0.22);
	border-radius: 10px;
	font-size: 0.95rem;
	line-height: 1.9;
	color: #555;
}
#as-message .as-card-msg p { margin: 0 0 1em; }
#as-message .as-card-msg p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
	#as-message .as-card-msg { padding: 1.4em 1.2em; font-size: 0.9rem; }
}

/* トップへ戻る CTA */
.as-back {
	margin: 3em auto 0;
	text-align: center;
}
.as-back a {
	display: inline-block;
	padding: 0.8em 2.6em;
	border: 1px solid rgba(70, 186, 161, 0.5);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.75);
	color: #2a5c6e;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.08em;
	transition: background 0.2s, color 0.2s;
}
.as-back a:hover { background: #46baa1; color: #fff; opacity: 1; }
