@charset "UTF-8";

/* 1. 全体背景 */
.bg-diagonal {
    background: repeating-linear-gradient(-45deg, #f5faff, #f5faff 10px, #ffffff 10px, #ffffff 20px);
    padding: 60px 0 100px;
}

/* 2. 鉄壁の3カラムグリッド */
.data-grid-layout {
    display: grid;
    grid-template-columns: 1fr; /* スマホでは1カラム */
    gap: 50px 20px;            /* 縦の隙間を広めにして、アイコンが重ならないようにする */
    max-width: 1080px;
    margin: 0 auto 50px;
    padding: 40px 20px 0;      /* 上に40px空けて、1段目のアイコンが切れるのを防ぐ */
    box-sizing: border-box;
}

@media screen and (min-width: 768px) { /* 960pxから768pxに変更：より確実に3カラムにする */
    .data-grid-layout {
        grid-template-columns: repeat(3, 1fr); /* 絶対に3カラム固定 */
        gap: 60px 25px;                       /* カード間の隙間 */
    }
}

/* 3. 各カード */
.data-card {
    position: relative; 
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    padding: 50px 15px 30px; 
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 145, 234, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* これが重要：パディングを含めた幅計算にする */
    width: 100%;            /* 親のグリッド幅に100%合わせる */
    margin-top: 0;          /* ★ここを削除（gridのgapで調整するため不要） */
}
/* 4. パーツ装飾 */
.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0091ea;
    background: #e1f5fe;
    padding: 3px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.data-card h3 {
    font-size: 1.1rem !important;
    color: #005588 !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    font-weight: 700 !important;
}

.card-chart {
    width: 100%;
    max-width: 140px;
    height: 100px;
    margin-bottom: 10px;
    position: relative;
}

/* 数字部分（基本） */
.card-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: #5ACCE4;
    line-height: 1.1;
}

/* 男女比専用サイズ（10枚〜12枚並んだ時に一番きれいに見えます） */
.card-num.-ratio {
    font-size: 1.6rem;
}

.card-num span { font-size: 1.1rem; color: #99aabb; }

.card-sub-text {
    font-size: 0.85rem;
    color: #778899;
    margin-top: 8px;
    font-weight: 700;
}


/* 5. ボタンデザイン */
.p-data-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 60px;      /* 上の余白 */
    margin-bottom: 80px;   /* ★ここを追加：下の余白（80px〜100pxくらいが綺麗です） */
}

/* スマホ用の調整（もし崩れていたら） */
@media screen and (max-width: 767px) {
    .p-data-footer {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 60px; /* スマホは少し狭めてもOK */
    }
}

.btn-kirarin {
    position: relative;
    display: inline-block;
    padding: 20px 50px;
    background: #f21795;
    color: #ffffff !important;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none !important;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(242, 23, 149, 0.3);
}

.btn-kirarin::before {
    content: "";
    position: absolute;
    top: -50%; left: -70%; width: 30%; height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    animation: shine-effect 4s infinite;
}

@keyframes shine-effect {
    0% { left: -70%; }
    15% { left: 120%; }
    100% { left: 120%; }
}

.btn-dot-move {
    display: inline-flex;
    align-items: center;
    color: #005588 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.btn-dot-move span {
    display: inline-block;
    width: 36px; height: 36px;
    background: #5ACCE4;
    border-radius: 50%;
    margin-left: 12px;
    position: relative;
}

/* 「見学・お問い合わせ」内の円の中の記号を太くブロック風に */
.btn-dot-move span::after {
    content: "»";           /* 記号をより太い「»」に変更 */
    color: #fff;
    font-size: 22px;        /* サイズを大きく */
    font-weight: 900;       /* 最大の太さに */
    font-family: sans-serif; /* ゴシック体でブロック感を強調 */
    position: absolute;
    top: 48%;               /* 記号の形状に合わせて上下位置を微調整 */
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.btn-dot-move:hover span { animation: jump-move 0.5s infinite alternate; }

@keyframes jump-move { from { transform: translateX(0); } to { transform: translateX(8px); } }


/* アイコンのスタイル */
.card-icon {
    position: absolute;
    top: -35px;        /* カードの枠から上に飛び出させる距離 */
    left: 50%;
    transform: translateX(-50%); /* 左右中央に配置 */
    width: 80px;       /* アイコンの表示サイズ（好みで調整してください） */
    height: 80px;
    
    /* 透過PNGを活かすため背景や枠は消す */
    background: transparent;
    border: none;
    box-shadow: none;
    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 縦横比を崩さず収める */
}
/* --- 勤務時間・休憩テキストの最終調整 --- */

/* ===================================================
   【整理版】追加項目・微調整用スタイル
   =================================================== */

/* 1. 休憩・補足テキスト（隙間を詰めて色を指定） */
.data-card .card-break {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    display: block;
    margin-top: -10px; /* 数字に密着させる */
    margin-bottom: 12px;
}
.data-card .card-break._blue { color: #5ACCE4; }
.data-card .card-break._gray { color: #888888; font-weight: normal; }

/* 2. 単位（回・名など） */
.data-card .card-unit,
.data-card .g-unit {
    font-size: 18px; /* 他の数字の隣の単位とサイズを統一 */
    font-weight: bold;
    margin-left: 4px;
    color: #778899;
}

/* 3. 看護体制のコロン（数字より小さく、中央に） */
.data-card .-big-colon span {
    font-size: 0.8em;
    color: #888888;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -0.1em;
    margin: 0 3px;
    font-weight: bold;
}

/* 4. 男女割合（他の数字と太さを揃え、色だけ分ける） */
/* --- 男女割合セクション：統合整理版 --- */

/* 1. エリア全体の配置 */
.gender-num-area {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

/* 2. ラベル（男性・女性） */
.gender-item .g-label {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: #333;
}

/* 3. 数字（他カードの .card-num とサイズ・太さを統一） */
.data-card .g-num {
    font-size: 42px;    /* 他の数字と同じサイズ */
    font-weight: 700;   /* 他の数字と同じ太さ */
    line-height: 1;
    display: inline-block;
}

/* 4. 個別の色指定（詳細度を高めて黒色を上書き） */
.data-card .gender-item.-male .g-num {
    color: #5ACCE4; /* 水色 */
}

.data-card .gender-item.-female .g-num {
    color: #E685E4; /* 淡ピンク */
}

/* 5. 単位（名） */
.gender-item .g-unit {
    font-size: 18px;
    font-weight: bold;
    margin-left: 2px;
    color: #333;
}

/* 6. スラッシュ（極限まで薄く） */
.gender-slash {
    font-size: 24px;
    color: #eeeeee;
    margin: 0 5px;
}

/* 5. 夜勤の病棟分け用余白 */
.data-card .mt-mid {
    margin-top: 25px;
}

/* 6. 男性実績（アチーブメントカード） */
/* 男性の実績リスト：ラベンダーの点（中ポチ）を消す */
.achievement-list {
    list-style: none !important; /* 標準の点を消す */
    padding: 0;
    margin: 20px 0 0;
    text-align: left;
}

.achievement-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    position: relative;
}

/* ★重要：他のCSSから引き継いでいるラベンダー色の点を強制的に消す */
.achievement-list li::before {
    display: none !important;
    content: none !important;
}

/* チェックアイコンの調整 */
.check-icon {
    color: #fff;
    background: #5ACCE4; /* 水色 */
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* --- 経験年数 円グラフ専用デザイン --- */

/* グラフの親要素（真ん中の文字を配置するために相対位置に） */
.data-card .card-chart.-doughnut {
    position: relative;
    width: 100%;
    max-width: 200px;
    height: 200px;
    margin: 10px auto;
}

/* グラフの真ん中に浮かぶテキスト */
.chart-center-text {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none; /* グラフの操作を邪魔しない */
}

.chart-center-text .label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #888;
}

.chart-center-text .num {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.chart-center-text .unit {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* グラフの説明（凡例）リスト */
.career-legend {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列で並べる */
    gap: 8px 15px;
}

.career-legend li {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
}

.career-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

/* --- 経験年数の凡例：余計な紫の点を消す --- */

.career-legend {
    list-style: none !important; /* 標準の点を消す */
    padding: 0;
    margin: 15px 0 0;
}

/* 他のCSSから強制的に入ってしまう擬似要素の点を消す */
.career-legend li::before {
    display: none !important;
    content: none !important;
}

.career-legend li {
    font-size: 13px; /* 少しだけ大きくして読みやすく */
    color: #666;
    display: flex;
    align-items: center;
    margin-bottom: 8px; /* 項目間の隙間 */
    position: relative;
    padding-left: 0 !important; /* 点のための余白をリセット */
}


.career-legend .dot {
    display: inline-block;
    width: 12px;        /* 横幅を固定 */
    height: 12px;       /* 縦幅を固定（横と同じにする） */
    border-radius: 50%; /* 角丸を50%にして正円にする */
    margin-right: 8px;
    flex-shrink: 0;     /* 【重要】Flexbox内で潰されないように固定する */
}

/* グラフがないカード内のテキスト装飾 */
.card-info-content {
    padding: 20px 0;
    text-align: center;
}
.info-item {
    margin-bottom: 20px;
}
.info-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}
.info-val {
    font-size: 32px;
    font-weight: bold;
    color: #005588;
}
.info-val .unit {
    font-size: 16px;
    margin-left: 4px;
}

/* 中央アイコン専用のスタイル */
.chart-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 真ん中に固定 */
    width: 40px;  /* アイコンのサイズ（お好みで） */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* グラフのツールチップ動作を邪魔しない */
}

.chart-center-icon img {
    width: 100%;
    height: auto;
    opacity: 0.6; /* 少し薄くすると、周りのグラフの文字が際立ちます */
}

/* ロゴマークを中央に配置するスタイル */
.chart-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;  /* ロゴのサイズ（cutout: 30%に合わせて調整） */
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.chart-center-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* グラフの文字を主役にするなら、ロゴを少しだけ薄くしてもオシャレです */
    opacity: 0.8; 
}

/* グラフ自体に少し影をつけて立体感を出すと、さらに厚みが強調されます */
.card-chart canvas {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
}