/*
Theme Name: Lightning Child
Template: lightning
*/

/* カテゴリページ */
.category-container {
    margin: 40px auto;
    padding: 0 20px;
}

.question-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    width: 100%;
}

.question-list li {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 16px 20px;
    transition: box-shadow 0.2s;
}

.question-list li:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.question-list li a {
    font-size: 16px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* 問題ページ */
.question-container {
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
}

.question-text {
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.8;
}

#toggle-answer {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin: 20px 0;
}

#toggle-answer:hover {
    background: #005a87;
}

#answer pre {
    background: #1e1e1e;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.question-text img {
    display: block;
    margin-top: 16px;
    max-width: 100%;
}

.video-wrap {
    display: block;
    margin-top: 16px;
}

.video-wrap iframe {
    max-width: 100%;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.category-card {
    display: block;
    text-decoration: none;
    color: #333;
}

.category-card-inner {
    background: #f0f4ff;
    border: 2px solid #c0cfe8;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: background 0.2s, box-shadow 0.2s;
}

.category-card-inner:hover {
    background: #d0dcf5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-card-inner h2 {
    margin: 0;
    font-size: 22px;
}

body.tax-question_category .l-main,
body.tax-question_category .main-section {
    width: 100%;
    max-width: 100%;
    float: none;
}