/*
Theme Name: 決算情報.com Child
Description: Twenty Twenty-Five の子テーマ。トップページの記事一覧をタイトルと日付だけにします。
Author: 決算情報.com
Template: twentytwentyfive
Version: 1.0.2
Text Domain: companysearch-child
*/

/* トップページの記事一覧では本文とアイキャッチを表示しない。 */
body.home .wp-block-post-content,
body.home .wp-block-post-featured-image {
	display: none;
}

/* 企業ページの決算数値表 */
.company-financial-data {
	margin-top: 2.5rem;
}
.company-financial-table-wrap {
	overflow-x: auto;
	border: 1px solid #d8d8d8;
}
.company-financial-data table {
	width: 100%;
	min-width: 1080px;
	border-collapse: collapse;
	font-size: 0.84rem;
	line-height: 1.45;
}
.company-financial-data th,
.company-financial-data td {
	padding: 0.65rem 0.75rem;
	border: 1px solid #d8d8d8;
	white-space: nowrap;
}
.company-financial-data thead th {
	background: #1e4b7a;
	color: #fff;
	font-weight: 600;
	text-align: center;
}
.company-financial-data tbody tr:nth-child(even) {
	background: #f7f9fb;
}
.company-financial-data tbody th {
	background: #eef4f9;
	font-weight: 600;
	text-align: left;
}
.company-financial-data td {
	text-align: right;
}
.company-financial-data td:nth-child(2),
.company-financial-data td:nth-child(3) {
	text-align: center;
}
@media (max-width: 700px) {
	.company-financial-data table { font-size: 0.78rem; }
	.company-financial-data th,
	.company-financial-data td { padding: 0.55rem 0.6rem; }
}


/* 決算表の区分表示：BS・PL・分析指標 */
.company-financial-data .financial-table-legend {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
}
.company-financial-data .financial-table-legend span {
    display: inline-block;
    padding: 0.16rem 0.48rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
}
.company-financial-data .financial-table-legend .financial-bs { background: #176b87; }
.company-financial-data .financial-table-legend .financial-pl { background: #7c4d8d; }
.company-financial-data .financial-table-legend .financial-analysis { background: #39754d; }
.company-financial-data thead th.financial-bs { background: #176b87 !important; }
.company-financial-data thead th.financial-pl { background: #7c4d8d !important; }
.company-financial-data thead th.financial-analysis { background: #39754d !important; }
.company-financial-data tbody td.financial-bs { background: #f1f8fb !important; }
.company-financial-data tbody td.financial-pl { background: #fbf5fc !important; }
.company-financial-data tbody td.financial-analysis {
    background: #f2f8f1 !important;
    font-weight: 600 !important;
}


/* 企業・公告ページのステータスタグ */
.company-status-tags,
.financial-status-tags {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin: 0.75rem 0 1rem;
}
.company-tag,
.financial-status-tag {
    display: inline-block;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}
.company-tag-funding { background: #276749; }
.company-tag-capital-reduction { background: #a13d3d; }
.company-tag-period { background: #3568a7; }
.company-tag-industry { background: #6a4c93; }
.financial-status-insolvent { background: #b42318; }
.financial-status-standard { background: #2f6db3; }
.financial-status-strong { background: #21805c; }

.financial-status-caution { background: #bf6a13; }
/* 投稿一覧の見出しを表示しない。 */body.home .wp-block-query-title,body.blog .wp-block-query-title {    display: none;}

/* 投稿一覧の「ブログ」見出しを表示しない。 */
body.home h1.wp-block-heading.has-text-align-left {
    display: none;
}
