@charset "UTF-8";

/* ==========================================================================
   【ページ2（不動産登記・測量）専用：詳細解説レイアウト】
   ・管理メモ：情報量が多い2列グリッドにおいて、文字被りを物理的に防ぐ設計。
   ========================================================================== */

/* 1. ページ2基本背景：共通の質感を担保 */
body {
    background-color: #f0f6fa;
    background-image: radial-gradient(#dce4ec 1.5px, transparent 1.5px);
    background-size: 25px 25px;
}

/* 2. ページ2専用グリッド：詳細解説用の2列固定 */
.p-infographic-grid.u-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 25px;
    box-sizing: border-box;
}

/* 3. 詳細カード（is-detailed想定）：枠内収容の徹底 */
.p-info-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    box-sizing: border-box; /* 枠かぶり防止の核心 */
    width: 100%;
    min-height: 100%; /* 高さを揃えて赤線を同期 */
}

/* 4. 詳細カードヘッダー：赤線の高さを左右で同期 */
.p-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px; /* タイトルの高さが違っても、下の赤線を左右で揃える */
    padding: 15px 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.p-info-card .material-icons {
    font-size: 2.8rem;
    margin-bottom: 8px;
}

.p-card-title {
    font-size: 1.15rem;
    font-weight: bold;
    line-height: 1.4;
}

/* 5. 詳細カードボディ：文字と枠の距離を死守 */
.p-card-body {
    padding: 25px;
    width: 100%;
    box-sizing: border-box;
    flex-grow: 1;
}

/* 6. 垂直頭揃え：アイコンの真下に文字を落とさないインデント */
.p-card-content-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.p-card-content-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.p-card-content-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    margin-bottom: 5px;
}

.p-card-content-head .material-icons {
    font-size: 1.4rem;
    margin-bottom: 0;
}

.p-card-content-body {
    display: block;
    padding-left: 32px; /* アイコンの幅に合わせて文字の頭を垂直に揃える */
    font-size: 0.95rem;
    line-height: 1.7;
    word-break: break-all; /* 枠外への突き出し防止 */
    overflow-wrap: break-word;
}

/* 7. カード内導入リード文 */
.p-info-lead {
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* 8. スマホ表示（1列に切り替え） */
@media screen and (max-width: 768px) {
    .p-infographic-grid.u-grid-2col {
        grid-template-columns: 1fr;
    }
    .p-card-header {
        min-height: auto;
    }
}

/* ==========================================================================
   【修正：カード内文字色の完全白抜き】
   ・目的：グラデーション背景の上で、全ての文字を確実に白（#fff）で表示させる。
   ========================================================================== */

/* 1. カード全体の基本色を白に固定 */
.p-info-card {
    color: #ffffff !important;
}

/* 2. ヘッダー内のタイトルとアイコン */
.p-info-card .p-card-title {
    color: #ffffff !important;
}

.p-info-card .p-card-header .material-icons {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 3. ボディ内の各項目タイトル（太字部分）とアイコン */
.p-card-content-head {
    color: #ffffff !important;
}

.p-card-content-head b, 
.p-card-content-head strong {
    color: #ffffff !important;
}

.p-card-content-head .material-icons {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 4. 本文およびリード文 */
.p-card-content-body {
    color: #ffffff !important;
    opacity: 0.95; /* わずかに透過させて読みやすくする（お好みで） */
}

.p-info-lead {
    color: #ffffff !important;
}

/* リスト全体の基本設定 */
.p-card-list {
    list-style: none; /* デフォルトのポレットを消す */
    padding: 0;
    margin: 0;
}

/* 各リスト項目：ぶら下げインデントの設定 */
.p-card-list li {
    position: relative;
    padding-left: 1.2em; /* 「・」の分の余白を確保 */
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: left;
}

/* 擬似要素で「・」を配置 */
.p-card-list li::before {
    content: "・";     /* ここで「・」を付与 */
    position: absolute;
    left: 0;           /* 左端に固定 */
    top: 0;            /* 1行目の高さに合わせる */
}

.p-card-list li:last-child {
    margin-bottom: 0;
}

/* 3列グリッドの設定 */
.u-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 均等に3分割 */
    gap: 20px;                            /* カード間の隙間 */
    align-items: stretch;                 /* 高さを一番長いカードに合わせる */
}

/* モバイル（スマホ）では縦1列に切り替える設定（レスポンシブ） */
@media (max-width: 992px) {
    .u-grid-3col {
        grid-template-columns: 1fr;
    }
}