/* =========================
   基本設定
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:
        "Hiragino Sans",
        "Yu Gothic",
        sans-serif;

    background:#f5f7fa;
    color:#333;
    line-height:1.8;
    max-width:1200px;
    margin:auto;
    padding:20px;
}

/* =========================
   見出し
========================= */

h1{
    font-size:32px;
    margin-bottom:25px;
    color:#0d47a1;
    border-bottom:3px solid #0d47a1;
    padding-bottom:10px;
}

h2{
    margin-top:50px;
    margin-bottom:15px;
    font-size:24px;
    color:#1565c0;
    border-left:6px solid #1565c0;
    padding-left:12px;
}

h3{
    margin-top:30px;
    margin-bottom:10px;
}

/* =========================
   テキスト
========================= */

p{
    margin-bottom:15px;
}

ul,
ol{
    margin:15px 0 20px 25px;
}

li{
    margin-bottom:8px;
}

/* =========================
   リンク
========================= */

a{
    color:#1565c0;
    text-decoration:none;
}

a:hover{
    text-decoration:underline;
}

/* =========================
   ナビゲーション
========================= */

.menu{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:25px 0;
}

.menu a{
    background:#1565c0;
    color:#fff;
    padding:10px 18px;
    border-radius:6px;
    transition:.2s;
}

.menu a:hover{
    background:#0d47a1;
    text-decoration:none;
}

/* =========================
   カード
========================= */

.card{
    background:#fff;
    padding:20px;
    margin-bottom:20px;
    border-radius:10px;
    box-shadow:
        0 2px 8px rgba(0,0,0,.08);
}



/* =========================
   資産サマリー
========================= */

.summary{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
    margin:25px 0;
}

.summary-box{
    background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:
        0 2px 8px rgba(0,0,0,.08);
}

.summary-title{
    font-size:14px;
    color:#666;
}

.summary-value{
    font-size:28px;
    font-weight:bold;
    color:#1565c0;
}

/* =========================
   テーブル
========================= */

table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    margin:20px 0;
    box-shadow:
        0 2px 8px rgba(0,0,0,.08);
}

th{
    background:#1565c0;
    color:#fff;
}

th,
td{
    border:1px solid #ddd;
    padding:10px;
    text-align:center;
}

tr:nth-child(even){
    background:#f8f9fb;
}

/* =========================
   利益・損失表示
========================= */

.plus{
    color:#008000;
    font-weight:bold;
}

.minus{
    color:#d50000;
    font-weight:bold;
}

/* =========================
   フォーム
========================= */

form{
    background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:
        0 2px 8px rgba(0,0,0,.08);
    margin:20px 0;
}

input[type=text],
input[type=password],
input[type=number],
select{
    width:100%;
    padding:10px;
    border:1px solid #ccc;
    border-radius:5px;
    margin-top:5px;
    margin-bottom:15px;
}

button,
input[type=submit]{
    background:#1565c0;
    color:#fff;
    border:none;
    padding:12px 25px;
    border-radius:6px;
    cursor:pointer;
}

button:hover,
input[type=submit]:hover{
    background:#0d47a1;
}

/* =========================
   ランキング
========================= */

.rank1{
    background:#fff8dc;
}

.rank2{
    background:#f3f3f3;
}

.rank3{
    background:#ffe0b2;
}

/* =========================
   フッター
========================= */

footer{
    margin-top:60px;
    padding-top:20px;
    border-top:1px solid #ccc;
    color:#666;
    font-size:14px;
}

/* =========================
   スマホ対応
========================= */

@media(max-width:768px){

    body{
        padding:15px;
    }

    h1{
        font-size:24px;
    }

    h2{
        font-size:20px;
    }

    table{
        font-size:13px;
        display:block;
        overflow-x:auto;
    }

    .summary-value{
        font-size:22px;
    }
    .dashboard{

    grid-template-columns:
        repeat(2,1fr);
}

}

@media(max-width:480px){

    .dashboard{

        grid-template-columns:1fr;
    }

}

/* =========================
   ダッシュボード
========================= */

.dashboard{

    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:15px;

    margin:30px 0;
}

.dash-card{

    background:#fff;

    border-radius:10px;

    padding:20px;

    min-height:120px;

    box-shadow:
        0 2px 8px rgba(0,0,0,.08);
}

.dash-title{

    color:#666;

    font-size:14px;

    margin-bottom:10px;
}

.dash-value{

    font-size:28px;

    font-weight:bold;

    word-break:break-word;
}