/* =========================
   BuzzRice Tools
   共通スタイル
========================= */

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

body {
    font-family: system-ui, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.7;
}

a {
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

header {
    background: #2563eb;
    color: white;
    padding: 18px 0;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
}

.hero {
    text-align: center;
    padding: 70px 20px;
}

.hero h2 {
    font-size: 2.3rem;
    margin-bottom: 18px;
}

.hero p {
    color: #64748b;
    font-size: 1.05rem;
}

.button {
    display: inline-block;
    margin-top: 28px;
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: .2s;
}

.button:hover {
    background: #1d4ed8;
}

.page {
    padding: 48px 0;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.page-description {
    color: #64748b;
    margin-bottom: 28px;
}

.tool-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

textarea {
    width: 100%;
    min-height: 220px;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.7;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.result-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
}

.result-label {
    color: #64748b;
    font-size: 0.9rem;
}

.result-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 6px;
}

.content-section {
    margin-top: 36px;
}

.content-section h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

footer {
    margin-top: 80px;
    text-align: center;
    color: #94a3b8;
    padding: 30px;
}

.tool-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,320px));
    gap:24px;
}

/* .tool-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap:24px;
} */



.tool-card h3{
    margin-bottom:10px;
}

.tool-card p{
    margin-bottom:18px;
}

.tool-category {
    margin-top: 48px;
}

.tool-category h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    border-left: 6px solid #2563eb;
    padding-left: 12px;
}

.category-description {
    color: #666;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    .result-grid {
        grid-template-columns: 1fr 1fr;
    }
}