/* --- Base Settings --- */
:root {
    /* 前回のブルーグレー系配色に戻す */
    --primary: #2c3e50;     /* 信頼感のあるダークブルー */
    --accent: #3498db;      /* 明るいブルー */
    --text-main: #333333;
    --text-sub: #546e7a;
    --bg-body: #f4f6f7;     /* クリーンなグレー背景 */
    --bg-card: #ffffff;
    --border: #cfd8dc;
}

body {
    font-family: 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Header --- */
.header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    height: 64px;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-sub);
    font-weight: 500;
}
.nav-link:hover { color: var(--accent); }

/* --- Page Description Bar (SEO Text Area) --- */
.page-desc-bar {
    background: #fff;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.seo-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.8;
    margin: 0;
}

.seo-text strong {
    font-size: 1.1rem;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

/* --- Main Layout --- */
.section { padding-bottom: 40px; }

.category-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-sub);
    margin-bottom: 12px;
    border-left: 4px solid var(--accent);
    padding-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.category-label i { color: var(--accent); }

/* --- Tool Grid --- */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* --- Tool Card --- */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.tool-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.tool-icon {
    font-size: 2rem;
    color: var(--primary);
}

.status-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    background: #eceff1;
    color: var(--text-sub);
}
.status-badge.new { background: #ffe0b2; color: #e65100; }

.card-body { flex-grow: 1; }

.card-body h2 {
    font-size: 1.15rem;
    margin: 0 0 8px 0;
    color: var(--primary);
}

.card-body p {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin: 0 0 20px 0;
}

.card-footer { margin-top: auto; }

/* Buttons */
.btn-open {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: 10px 0;
    border-radius: 4px;
    font-size: 0.95rem;
}
.btn-open:hover { background: #2980b9; gap: 12px; }

.btn-open.external {
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-open.external:hover { background: #e1f5fe; }

/* Disabled State */
.tool-card.disabled {
    background: #f5f5f5;
    opacity: 0.7;
    border-style: dashed;
    border-color: var(--border);
    box-shadow: none;
}
.tool-card.disabled:hover { transform: none; border-color: var(--border); }
.tool-card.disabled .tool-icon { color: #b0bec5; }

.btn-disabled {
    display: block;
    width: 100%;
    text-align: center;
    background: #cfd8dc;
    color: #fff;
    padding: 10px 0;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: not-allowed;
    font-weight: 700;
}

/* --- About & Footer --- */
.bg-gray {
    background: #eceff1;
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 40px 0;
    text-align: center;
}

.sub-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.about-text {
    font-size: 0.9rem;
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto 32px auto;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-sub);
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .header-inner { padding: 0 12px; }
    .logo a { font-size: 1.1rem; }
    .logo-img { height: 32px; }
    .tool-grid { grid-template-columns: 1fr; }
}