/* ==========================================
   AL-Tools 共通スタイルシート
   ========================================== */

/* 共通スタイル */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    background-color: #fff;
}

header {
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
}

header h1 a {
    color: #333;
    text-decoration: none;
}

header h1 a:hover {
    text-decoration: none;
    color: #007bff;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* フッター */
footer {
    margin-top: 50px;
    font-size: 0.9em;
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
    color: #666;
}

footer p {
    margin: 5px 0;
}

/* サイト紹介・導入部 */
.site-introduction {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 35px;
    border-left: 5px solid #333;
}

.site-introduction h2 {
    margin-top: 0;
    font-size: 1.5em;
}

/* ツールカード関連（トップページ） */
.tool-category {
    margin-bottom: 40px;
}

.tool-category h3 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 25px;
    font-size: 1.4em;
    color: #444;
}

.tool-card {
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.tool-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tool-card-header .icon {
    width: 44px;
    height: 44px;
    margin-right: 15px;
    object-fit: contain;
}

.tool-card-header h4 {
    margin: 0;
    font-size: 1.3em;
    color: #222;
}

.tool-card .tool-description {
    margin-bottom: 20px;
    font-size: 0.95em;
    color: #555;
}

.tool-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    text-decoration: none;
    color: #fff;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background-color: #e2e6ea;
    text-decoration: none;
    color: #333;
}

/* ==========================================
   解説ページ・コラム用スタイル
   ========================================== */
article {
    margin-bottom: 40px;
}

article h2 {
    font-size: 1.6em;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
    margin-top: 45px;
    color: #222;
}

article h3 {
    font-size: 1.25em;
    margin-top: 35px;
    border-left: 4px solid #007bff;
    padding-left: 12px;
    color: #333;
}

article p {
    font-size: 0.98em;
    color: #444;
}

article ul, article ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

article li {
    margin-bottom: 8px;
    color: #444;
}

.back-to-top {
    margin-top: 40px;
    display: inline-block;
    font-weight: bold;
}

/* Q&Aセクション */
.qa-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.qa-question {
    font-weight: bold;
    color: #111;
    margin-bottom: 10px;
    font-size: 1.05em;
    display: flex;
    align-items: flex-start;
}

.qa-question::before {
    content: "Q.";
    color: #dc3545;
    font-size: 1.2em;
    margin-right: 8px;
    font-weight: 800;
}

.qa-answer {
    color: #555;
    padding-left: 24px;
    margin: 0;
}

/* 活用・演出例ボックス */
.use-case-box {
    border: 1px dashed #28a745;
    padding: 20px;
    border-radius: 8px;
    background-color: #f4faf6;
    margin-bottom: 25px;
}

.use-case-box h4 {
    margin-top: 0;
    color: #1e7e34;
    font-size: 1.1em;
    border-bottom: 1px solid #d4edda;
    padding-bottom: 5px;
    margin-bottom: 15px;
}
