/* ===== リセット ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    background-color: #f5f7fa;
    color: #333;
}

/* ===== 共通レイアウト ===== */
.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 30px;
}
.sess{
    margin-bottom:40px;
}

canvas{
height:1px;
}

/* ===== ヘッダー ===== */
header {
    background: #1f2937;
    color: white;
}

header h1 {
    margin-bottom: 10px;
}

h1 a {
    color: white;
    text-decoration: none;
}

h1 a:hover {
    text-decoration: underline;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    font-size: 0.9rem;
}

nav a:hover {
    text-decoration: underline;
}
ul{
margin-left:30px;

}

/* ===== メイン ===== */
main {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px 0;
}

a.tile{
text-decoration: none;
}

/* ===== 他 ===== */
section{
    margin: 20px 0;
}
.indext {
    text-align: center;
    margin: 20px 20px 0px 20px;
}
.indext h2 {
    margin-bottom: 15px;
}
.sidet {
    text-align: center;
    margin: 20px 20px 40px;
}
.sidet h2 {
    border-bottom:1px solid #ddd;
    padding-bottom:5px;
}

.item {
    border:1px solid #ddd;
    padding:10px;
    margin-bottom:10px;
    border-radius:6px;
    background:#fafafa;
    position: relative;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin: 45px 15px;
}
.button:hover {
    background: #1d4ed8;
}


/* ===== フォーム ===== */
input, select { padding:3px 5px; }
button { padding:5px 10px; cursor:pointer; }

button.del {
    position: absolute;
    top: 5px;
    right: 5px;
    padding:3px 10px;
    cursor:pointer;
}

form label {
    display: block;
    margin-bottom: 15px;
}

form input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    padding: 10px 15px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

form button:hover {
    background: #15803d;
}

input.age {width:55px;}
input.year {width:80px;}
input.amo {width:80px;}
input.per {width:60px;}
input.tag {width:140px;}

.income{background:#eeeeff;}
.expend{background:#ffeeee;}
.invest{background:#eeffee;}

/* ===== フッター ===== */
footer {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    padding: 20px 0;
}



@media (max-width: 520px) {
  .container {
    padding: 20px 10px;
  }
}


/* ===== ツール一覧 ===== */
.tools h3 {
    margin-bottom: 15px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tool-card {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: 0.2s ease;
}

.tool-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #1f2937;
}

.tool-card p {
    font-size: 0.9rem;
    color: #555;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* タブレット */
@media (max-width: 900px) {
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマホ */
@media (max-width: 520px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}


