/* =============================================
   style_toppage_20260506.css
   トップページ専用スタイル（2026-05-06）
   目的: tools-list & details の中央寄せ強化 + レスポンシブ改善
   ============================================= */

.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ツールリスト（常用・その他共通） */
.tools-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    padding: 0;
    list-style: none;
    margin: 16px auto;
    max-width: 860px;
}

.tools-list li {
    white-space: nowrap;
}

.tools-list li a {
    color: dodgerblue;
    text-decoration: none;
    font-size: 1.02em;
}

.tools-list li a:hover {
    color: mediumblue;
    text-decoration: underline;
}

/* details（折りたたみ部分）の中央寄せ強化 */
.tools-details {
    margin: 12px auto !important;
    max-width: 860px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px 0;
    border: 1px solid #eee;
}

.tools-details summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.08em;
    color: #333;
    text-align: center;
    padding: 10px 0;
    list-style: none; /* ▼ を非表示にしたい場合はここを調整 */
}

.tools-details summary::-webkit-details-marker {
    display: none;
}

.tools-details .tools-list {
    justify-content: center !important;
    margin: 8px auto 16px auto !important;
    max-width: 820px;
}

/* 開いた時の視覚的区切り */
details[open] .tools-list {
    padding-top: 12px;
    border-top: 1px dashed #ccc;
}

/* その他 */
.last-update {
    color: #666;
    font-size: 0.95em;
    margin: 12px 0 20px 0;
}

.inline-controls {
    margin: 24px auto;
    max-width: 860px;
    text-align: center;
}

/* ブラウザ対応表まわりの調整 */
.map-section {
    margin: 30px auto;
    max-width: 960px;
}

/* ==================== レスポンシブ ==================== */
@media screen and (max-width: 767px) {
    .tools-list {
        gap: 10px 16px;
    }
    
    .tools-details {
        margin: 10px auto !important;
        max-width: 96%;
    }
    
    .tools-list li a {
        font-size: 0.98em;
    }
    
    .inline-controls {
        margin: 20px 8px;
    }
}

@media screen and (max-width: 480px) {
    .tools-list {
        gap: 8px 12px;
    }
}