:root {
    --primary-color: #2563eb;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
}
body {
}
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-container-sp { max-width: 800px; margin: 0 auto; padding: 0 20px; }

.category-box { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); overflow: hidden; }

.category-trigger { display: flex; justify-content: space-between; align-items: center; padding: 20px 60px 20px 20px; font-size: 1.2rem; font-weight: bold; background-color: var(--category-bg); cursor: pointer; position: relative; user-select: none; transition: background-color 0.2s ease; }
.category-trigger:hover { background-color: #e2e8f0; }
.category-count { font-size: 0.95rem; color: #64748b; font-weight: normal; }


.category-box.open .category-trigger {
    background-color: #e6f0fa; 
}

.category-box.open .category-trigger:hover {
    background-color: #d4e5f7;
}

.category-trigger::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: #64748b; font-weight: normal; }
.category-box.open .category-trigger::after { content: "\2212"; }

.category-content { display: none; padding: 20px; border-top: 1px solid var(--border-color); background-color: #fff; }
.category-box.open .category-content { display: block; }

.category-content-sp { display: none; padding: 12px; border-top: 1px solid var(--border-color); background-color: #fff; }
.category-box.open .category-content-sp { display: block; }

.qa-details { background: #fff; border: 1px solid var(--border-color); border-radius: 6px; margin-bottom: 12px; overflow: hidden; }
.qa-details:last-child { margin-bottom: 0; }
.qa-details[open] { border-color: #4ba3e3; }
summary { 
    display: flex; 
    align-items: flex-start;
    padding: 16px; 
    font-weight: bold; 
    cursor: pointer; 
    list-style: none; 
    position: relative; 
    line-height: 24px;
    font-size: 1.2rem;
}
summary::-webkit-details-marker { display: none; }

summary::before { 
    content: "Q"; 
    background: #4ba3e3;  
    color: #ffffff;       
    font-size: 0.9rem; 
    margin-right: 12px; 
    font-weight: bold; 
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 23px;
    text-align: center;
    border-radius: 50%;   
    flex-shrink: 0;       
    margin-top: 0;
}

summary::after { 
    content: ""; 
    position: absolute; 
    right: 16px; 
    width: 6px; 
    height: 6px; 
    border-right: 2px solid #64748b; 
    border-bottom: 2px solid #64748b; 
    transform: rotate(45deg); 
    top: 25px;
    transition: transform 0.2s ease; 
}
.qa-details[open] summary::after { transform: translateY(2px) rotate(-135deg); }

.faq-answer { 
    padding: 16px 16px 16px 52px; 
    border-top: 1px solid var(--border-color); 
    background-color: #fafafa; 
    white-space: pre-wrap; 
    position: relative; 
    line-height: 24px;
    font-size: 1.2rem;
}

.faq-answer::before { 
    content: "A"; 
    background: #6fbe5a;  
    color: #ffffff;       
    font-size: 0.9rem; 
    font-weight: bold; 
    display: inline-block; 
    width: 24px;
    height: 24px;
    line-height: 23px;
    text-align: center;
    border-radius: 50%;
    position: absolute;
    left: 16px;
    top: 16px;
}

.inq-container {
    max-width: 840px;
    margin: 0 auto 10px auto;
    padding: 24px;
    background-color: #F7F6F2;
        border: 1px solid #CCC;
    box-sizing: border-box;
}

.inq-lead-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    line-height: 1.4;
}

.inq-lead-desc {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.id-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}


.id-link-grid .grid-item:last-child {
  grid-column: 1 / -1;
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 8px 12px;
    background-color: #ffffff;
    color: #333333;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(11px, 1.6vw, 15px);
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.link-text {
    flex: 1;
    text-align: left;
    padding-right: 8px;
    white-space: nowrap;
    overflow: visible;
}

.count-badge {
    margin-left: auto;
    font-size: 0.9em;
    color: #666666;
    font-weight: normal;
    white-space: nowrap;
}

.grid-item:hover {
    border-color: #333333;
    background-color: #f9f9f9;
}

@media (max-width: 640px) {
    .inq-container {
        padding: 16px;
        margin-bottom: 10px;
    }
    .inq-lead-title {
        font-size: 16px;
    }
    .inq-lead-desc {
        font-size: 13px;
        margin-bottom: 16px;
    }
    .id-link-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .grid-item {
        min-height: 44px;
        font-size: 14px;
    }
}