/*
Theme Name: Coldbox Child (Asset Salon)
Theme URI: https://assetsalon.online/
Description: assetsalon.online 企業価値向上・M&A専門メディア トップページリニューアル用子テーマ。Coldboxテーマ本体は無改変。
Author: assetsalon
Template: coldbox
Version: 1.1.0
Text Domain: coldbox-child
*/

/* ==========================================================================
   共通変数
   ========================================================================== */
:root{
	--as-main: #0B2341;
	--as-main-light: #16345c;
	--as-accent: #D4AF37;
	--as-bg: #FFFFFF;
	--as-text: #222222;
	--as-text-muted: #5b6572;
	--as-border: #e5e7eb;
}

@media (prefers-reduced-motion: no-preference){
	html{ scroll-behavior: smooth; }
}

/* 既存の親テーマ .container (max-width:1140px; padding:0 10px) に揃えたコンテナ。
   ヘッダー・グローバルナビ・ヒーローの左右端を、復元した記事一覧(.container)と一致させるため。 */
.as-container{
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 10px;
}

/* ==========================================================================
   ① ヘッダー（トップページ専用マストヘッド：サイト名・タグライン・検索）
   ========================================================================== */
.as-topbar{
	background: var(--as-bg);
	border-bottom: 1px solid var(--as-border);
}

.as-topbar-inner{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 0;
}

.as-topbar-brand{
	min-width: 0;
}

.as-topbar-sitename{
	margin: 0;
	font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.2;
}

.as-topbar-sitename a{
	color: var(--as-main);
	text-decoration: none;
}

.as-topbar-tagline{
	margin: 4px 0 0;
	font-size: 12px;
	color: var(--as-text-muted);
	letter-spacing: .02em;
}

.as-topbar-right{
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.as-search-form{
	display: flex;
	align-items: center;
	width: 260px;
	max-width: 100%;
}

.as-search-form .search-form{
	display: flex;
	width: 100%;
}

.as-search-form input[type="search"]{
	flex: 1 1 auto;
	min-width: 0;
	border: 1px solid var(--as-border);
	border-radius: 999px 0 0 999px;
	padding: 8px 16px;
	font-size: 13px;
	background: #f7f8fa;
	color: var(--as-text);
}

.as-search-form input[type="search"]:focus{
	outline: none;
	border-color: var(--as-main);
	background: #fff;
}

.as-search-form button{
	border: 1px solid var(--as-main);
	background: var(--as-main);
	color: #fff;
	border-radius: 0 999px 999px 0;
	padding: 0 16px;
	cursor: pointer;
	transition: background .2s ease;
}

.as-search-form button:hover{
	background: var(--as-main-light);
}

/* ==========================================================================
   ② グローバルナビゲーション（白背景・横並び・ヒーロー直上）
   ========================================================================== */
.as-global-nav{
	background: var(--as-bg);
	border-bottom: 1px solid var(--as-border);
}

.as-global-nav-inner{
	overflow-x: auto;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.as-global-nav-inner::-webkit-scrollbar{
	display: none;
}

.as-global-nav ul{
	display: flex;
	align-items: stretch;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
}

.as-global-nav li{
	display: flex;
}

.as-global-nav a{
	display: flex;
	align-items: center;
	height: 52px;
	padding: 0 16px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: var(--as-text);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
	transition: color .2s ease, border-color .2s ease;
}

.as-global-nav a:hover,
.as-global-nav a:focus{
	color: var(--as-main);
}

.as-global-nav li.is-current a{
	color: var(--as-main);
	font-weight: 700;
	border-bottom-color: var(--as-main);
}

/* ==========================================================================
   ③ ヒーローエリア
   ========================================================================== */
.as-hero{
	position: relative;
	height: 650px;
	background-color: var(--as-main);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.as-hero::before{
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(2,19,33,.95) 0%,
		rgba(2,19,33,.82) 35%,
		rgba(2,19,33,.25) 65%,
		rgba(2,19,33,0) 100%
	);
}

.as-hero-inner{
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}

.as-hero-title{
	margin: 0 0 24px;
	font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
	font-size: 42px;
	font-weight: 900;
	line-height: 1.5;
	color: #fff;
	letter-spacing: .02em;
}

.as-hero-lead{
	margin: 0 0 36px;
	max-width: 560px;
	font-size: 15.5px;
	line-height: 1.9;
	color: rgba(255,255,255,.92);
}

.as-btn{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: .04em;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.as-btn-primary{
	background: var(--as-accent);
	color: var(--as-main);
	box-shadow: 0 8px 20px rgba(212,175,55,.35);
}

.as-btn-primary:hover{
	background: #e0bd4f;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(212,175,55,.45);
	color: var(--as-main);
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media screen and (max-width: 1023px){
	.as-hero{ height: 560px; }
	.as-hero-title{ font-size: 34px; }
}

@media screen and (max-width: 834px){
	.as-topbar-inner{ justify-content: flex-start; }
	.as-search-form{ width: 100%; }
	.as-global-nav a{ padding: 0 14px; font-size: 13.5px; }
}

@media screen and (max-width: 640px){
	.as-hero{ height: 440px; }
	.as-hero-inner{ align-items: center; text-align: center; }
	.as-hero::before{
		background: linear-gradient(
			180deg,
			rgba(2,19,33,.35) 0%,
			rgba(2,19,33,.75) 55%,
			rgba(2,19,33,.92) 100%
		);
	}
	.as-hero-title{ font-size: 26px; margin-bottom: 16px; }
	.as-hero-lead{ font-size: 14px; margin: 0 auto 28px; }
	.as-container{ padding: 0 16px; }
	.as-global-nav a{ height: 46px; padding: 0 12px; font-size: 13px; }
}
