/* =========================================================
 * top.css
 * トップページ専用のセクションスタイル
 * 適用テンプレート: Top.latte
 * ========================================================= */

/* ---------------------------------------------------------
 * 共通セクション (Top.latteには存在しないが、慣例で残す)
 * --------------------------------------------------------- */
.inner-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}
section {
	padding: 60px 0;
}
section h2 {
	font-size: 32px;
	text-align: center;
	margin-bottom: 40px;
	font-weight: bold;
	color: #00796b; /* テーマカラー */
}

/* ---------------------------------------------------------
 * 1. メインビジュアル (#main-visual)
 * --------------------------------------------------------- */
#main-visual {
	background-image: url('images/main_visual_2in1.jpg'); /* 実際の画像に置き換え */
	background-size: cover;
	background-position: center;
	height: 70vh;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: #fff;
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

#main-visual h1 {
	font-size: 52px; /* より大きく、インパクトを出す */
	margin-bottom: 5px; /* 下の行との間隔を詰める */
	font-weight: 900;
}

#main-visual p {
	font-size: 24px;
	font-weight: 500;
	margin-bottom: 15px;
	text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9); /* 影を濃く、ぼかしを強く */
}

.site-sub-caption {
	font-size: 18px; /* サイズをさらに小さくして、情報の補足と見せる */
	font-weight: 300;
}

/* ---------------------------------------------------------
 * 2. 事業選択ナビゲーション (CTAエリア) (#service-select)
 * --------------------------------------------------------- */
#service-select {
	padding: 80px 0;
	background-color: #fff;
}

#service-select .inner-wrap {
	display: flex;
	gap: 30px;
}

.cta-card {
	flex: 1;
	padding: 40px;
	text-align: center;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
	text-decoration: none; /* リンクの下線除去 */
}

.cta-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-card h2 {
	font-size: 24px;
	margin-top: 10px;
	margin-bottom: 10px;
}

.cta-card .icon {
	font-size: 40px;
	display: block;
}

/* --- CUTSALON デザイン --- */
.cta-cutsalon {
	background-color: #333;
	color: #fff;
}
.cta-cutsalon h2, .cta-cutsalon p {
	color: #fff;
}
.cta-cutsalon .btn-more {
	color: #f0f0f0;
}

/* --- 訪問福祉 デザイン --- */
.cta-fukushi {
	background-color: #e0f2f1;
	color: #333;
	border: 1px solid #b2dfdb;
}
.cta-fukushi .btn-more {
	color: #00796b;
	font-weight: 500;
}

/* ---------------------------------------------------------
 * 3. お知らせ (#news) - ★サムネイル対応済み★
 * --------------------------------------------------------- */
#news {
	background-color: #f0f0f0;
}

.news-list {
	max-width: 900px; /* 一覧の最大幅を調整 */
	margin: 0 auto 30px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	padding: 10px 10px 0; /* 下のパディングは li:last-child で調整 */
}

/* 記事項目 (li) */
#news .news-list > li {
	display: flex;
	align-items: flex-start;
	padding: 10px 0;
	border-bottom: 1px dashed #eee;
}
#news .news-list > li:last-child {
	border-bottom: none;
	padding-bottom: 10px; /* 最後の要素に下パディングを適用 */
}
/* お知らせがない場合 */
#news .news-list > li:only-child:not(.has-thumbnail) {
	padding: 20px;
	text-align: center;
}

/* サムネイルのリンクコンテナ */
.news-thumbnail-link {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	margin-right: 15px;
	border-radius: 4px;
	overflow: hidden;
	display: block;
}

/* サムネイル画像本体 */
.news-thumbnail {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s;
}

.news-thumbnail-link:hover .news-thumbnail {
	opacity: 0.8;
}

/* テキストコンテンツ */
.news-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	/* gap: 3px; 不要なgapは削除 */
}

/* 1行目：日付とカテゴリーを横並びにするラッパー */
.news-meta-row {
	display: flex;
	align-items: center;
	gap: 15px; /* 日付とカテゴリーの間の隙間を制御 */
}
/* 日付 (time) */
.news-content time {
	font-weight: bold;
	flex-shrink: 0;
	width: 90px; /* 日付の固定幅 */
	font-size: 15px;
	color: #555;
}
/* カテゴリー */
.news-content .category {
	color: #e57373;
	font-weight: 500;
	flex-shrink: 0;
	font-size: 15px;
	white-space: nowrap; /* 折り返しを防ぐ */
}

/* 2行目：タイトル（日付の幅分インデント） */
.news-title-indent {
    display: block;
    /* 👈 変更: ネガティブマージンを削除し、タイトルは下の行に配置する */
    padding-left: 0; /* padding-leftをゼロにするか、.news-contentの左からスタートさせる */
    margin-top: 5px; /* 上のメタ行との間に隙間を追加 */
    
    font-size: 15px;
    color: #333;
    font-weight: bold;
    line-height: 1.4;
    text-decoration: none;
}
/* 【重要】サムネイルがある場合の表示調整 */
#news .news-list > li.has-thumbnail .news-content {
	/* サムネイルがある場合は、ニュースコンテンツ全体を縦並びにして、タイトルを次の行に押し込む */
	flex-direction: column;
}
#news .news-list > li.has-thumbnail .news-title-indent {
	/* タイトルは、サムネイルの右側に配置されるnews-contentの左端からスタートする */
	padding-left: 0;
	margin-top: 5px;
}
/* サムネイルがある場合は、メタ情報の幅を広げてタイトルとズレないようにする */
#news .news-list > li.has-thumbnail .news-meta-row {
	 /* サムネイルの右側からいっぱいに広げる（デフォルトでそうなっているはず） */
	 width: 100%;
}


/* 修正後のサムネイルがない場合のインデント解除（既存のコードを維持） */
#news .news-list > li:not(.has-thumbnail) .news-title-indent {
    padding-left: 0;
    margin-top: 5px; /* 統一感を出すため5pxに変更 */
    font-weight: normal;
}
#news .news-list > li:not(.has-thumbnail) .news-meta-row {
     margin-bottom: 5px; /* 既存のコードを維持 */
}

.btn-all-news {
	display: block;
	width: 200px;
	margin: 20px auto 0;
	text-align: center;
	padding: 10px;
	background-color: #616161;
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
}
.btn-all-news:hover {
	opacity: 0.8;
}


/* ---------------------------------------------------------
 * 4. 実績と信頼 (#achievements)
 * --------------------------------------------------------- */
#achievements {
	background-color: #f7f7f7;
	text-align: center;
}

.achievement-metrics {
	display: flex;
	justify-content: space-around;
	align-items: flex-start;
	margin: 40px auto;
	max-width: 900px;
	gap: 20px; /* 項目間の隙間を追加 */
}

.achievement-metrics p {
	flex-basis: 30%;
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background-color: #fff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	font-size: 16px;
	color: #555;
}

.achievement-metrics .number {
	display: block;
	font-size: 32px;
	font-weight: bold;
	color: #ff6f00; /* テーマカラー2 */
	margin-top: 5px;
}

/* ---------------------------------------------------------
 * 5. 企業理念 (#company-philosophy)
 * --------------------------------------------------------- */
#company-philosophy {
	text-align: center;
	background-color: #fff;
}

#company-philosophy .catchphrase {
	font-size: 32px;
	font-weight: 700;
	color: #00897b;
	margin-bottom: 20px;
}

#company-philosophy p {
	max-width: 800px;
	margin: 0 auto 30px;
}

.btn-detail {
	padding: 10px 30px;
	border: 2px solid #00897b;
	color: #00897b;
	border-radius: 4px;
	font-weight: 500;
	text-decoration: none;
	display: inline-block;
	transition: background-color 0.3s, color 0.3s;
}
.btn-detail:hover {
	background-color: #00897b;
	color: #fff;
}

/* ---------------------------------------------------------
 * 6. 両事業のハイライト (#service-highlights)
 * --------------------------------------------------------- */
#service-highlights {
	display: flex;
	background-color: #f8f8f8;
	padding: 60px 20px;
	gap: 30px;
}

#service-highlights .highlight-item {
	flex: 1;
	padding: 20px;
	border-radius: 8px;
	background-color: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#service-highlights h3 {
	font-size: 20px;
	margin-bottom: 15px;
	text-align: left;
}

.cutsalon-highlight {
	border-left: 5px solid #000;
}

.fukushi-highlight {
	border-left: 5px solid #81c784;
}

.highlight-content img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	margin-bottom: 15px;
	object-fit: cover;
}

.btn-to-page {
	display: block;
	margin-top: 15px;
	font-weight: 500;
	text-align: right;
	text-decoration: none;
	color: #00796b;
}

/* ---------------------------------------------------------
 * 7. 最終CTA (#final-cta)
 * --------------------------------------------------------- */
#final-cta {
	background-color: #e6f2ff;
	padding: 60px 20px;
	text-align: center;
}

#final-cta h2 {
	font-size: 32px;
	color: #1a1a1a;
	margin-bottom: 10px;
}

.cta-tel {
	text-align: center;
	margin: 20px 0 30px;
	font-size: 18px;
	color: #cc0000;
	font-weight: bold;
}

.cta-tel a {
	display: inline-block;
	padding: 10px 20px;
	margin-left: 10px;
	background-color: #fff;
	border: 3px solid #cc0000;
	border-radius: 8px;
	color: #cc0000;
	font-size: 24px;
	font-weight: 900;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.3s, border-color 0.3s;
}

.cta-tel a:hover {
	background-color: #ffcccc;
	color: #cc0000;
}

.cta-buttons {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin: 0 auto;
	max-width: 800px;
}

.cta-buttons a {
	display: block;
	flex-grow: 1;
	padding: 15px 25px;
	font-size: 18px;
	font-weight: bold;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
	line-height: 1.4;
	text-decoration: none;
}

.btn-cta-salon {
	background-color: #3f51b5;
	color: #fff;
	border: 2px solid #3f51b5;
}

.btn-cta-fukushi {
	background-color: #4caf50;
	color: #fff;
	border: 2px solid #4caf50;
}

.cta-buttons a:hover {
	transform: translateY(-3px);
	opacity: 0.9;
	box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* ---------------------------------------------------------
 * 8. レスポンシブ対応 (Topページ固有)
 * --------------------------------------------------------- */
@media (max-width: 768px) {
	/* メインビジュアル */
	#main-visual {
		height: 50vh;
	}
	#main-visual h1 {
		font-size: 32px;
	}
	#main-visual p {
		font-size: 20px;
		text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
	}
	.site-sub-caption {
		font-size: 14px;
	}

	/* 事業選択 */
	#service-select {
		padding: 50px 0; /* パディング調整 */
	}
	#service-select .inner-wrap {
		flex-direction: column;
		gap: 20px;
	}
	.cta-card {
		padding: 30px 20px;
	}

	/* お知らせ */
	.news-list {
		padding: 5px; /* モバイルでのパディング調整 */
	}
	.news-thumbnail-link {
		width: 50px; /* サムネイルを少し小さく */
		height: 50px;
		margin-right: 10px;
	}
	.news-content time, .news-content .category {
		font-size: 14px; /* フォントを小さく */
	}
	.news-content time {
		width: 80px; /* 日付の固定幅を調整 */
	}
	.news-meta-row {
		gap: 10px;
	}
	/* モバイルでのタイトルインデント調整 */
	.news-title-indent {
		/* 日付幅(80px) + gap(10px) = 90px を基準に調整 */
		padding-left: 90px;
	}


	/* 縦並び */
	.achievement-metrics {
		flex-direction: column;
		gap: 20px;
	}
	.achievement-metrics p {
		flex-basis: 100%;
		width: 100%
	}
	.achievement-metrics .number {
		font-size: 28px;
	}

	/* ハイライト */
	#service-highlights {
		flex-direction: column;
		gap: 40px;
		padding: 40px 20px;
	}

	/* 最終CTA */
	#final-cta {
		padding: 40px 15px;
	}
	.cta-buttons {
		flex-direction: column;
		gap: 15px;
	}
	.cta-buttons a {
		font-size: 16px;
		padding: 12px 20px;
	}
	.cta-tel {
		font-size: 16px;
	}
	.cta-tel a {
		font-size: 20px;
		padding: 8px 15px;
	}
}
