/* glossary.css — /llmo/ /geo/ 用語ページのカスタムセクション。旧style.cssから移植 */

/* ---------- Lucide icons in icon containers ---------- */
.problem-icon svg,
.term-icon svg,
.solution-icon svg {
    width: 32px;
    height: 32px;
    stroke: #1a4d8f;
    stroke-width: 1.5;
}

/* ---------- セクション見出し ---------- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #1a4d8f;
    font-weight: 700;
}

.section-header p {
    font-size: 1.05rem;
    color: #5a6c7d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---------- 課題セクション ---------- */
.problem {
    padding: 5rem 5%;
    background: white;
    padding-top: 130px;
}

.problem-container {
    max-width: 1200px;
    margin: 0 auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.problem-card {
    text-align: center;
    padding: 2rem;
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: #e8f0fe;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0 auto 1.5rem;
}

.problem-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1a4d8f;
    font-weight: 600;
}

.problem-card p {
    color: #5a6c7d;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ---------- インパクト統計 ---------- */
.impact-stats {
    background: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.impact-stats h3 {
    font-size: 1.5rem;
    color: #1a4d8f;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a4d8f;
}

.stat-label {
    color: #5a6c7d;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* ---------- GEO/LLMO解説セクション ---------- */
.geo-explanation {
    padding: 5rem 5%;
    background: #f8f9fa;
    padding-top: 130px;
}

.geo-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- 用語解説カード ---------- */
.geo-terms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.geo-term-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-align: center;
}

.geo-term-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #1a4d8f;
}

.term-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: #e8f0fe;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0 auto 1.5rem;
}

.geo-term-card h3 {
    font-size: 1.8rem;
    color: #1a4d8f;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.geo-term-card h4 {
    font-size: 1rem;
    color: #5a6c7d;
    margin-bottom: 1rem;
    font-weight: 500;
}

.geo-term-card p {
    color: #5a6c7d;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ---------- ビフォーアフター ---------- */
.before-after-section {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 4rem;
    border: 1px solid #e9ecef;
}

.before-after-section h3 {
    text-align: center;
    font-size: 1.8rem;
    color: #1a4d8f;
    margin-bottom: 2rem;
    font-weight: 600;
}

.comparison-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.comparison-item {
    position: relative;
}

.comparison-header {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem;
    border-radius: 4px 4px 0 0;
    text-align: center;
}

.comparison-header.bad {
    background: #ffdddd;
    color: #dc3545;
}

.comparison-header.good {
    background: #d4edda;
    color: #28a745;
}

.chat-example {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 0 4px 4px;
    border: 1px solid #e9ecef;
    border-top: none;
}

.chat-q {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #2c3e50;
    border-left: 3px solid #1a4d8f;
}

.chat-a {
    background: #e8f0fe;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #2c3e50;
    line-height: 1.8;
}

.result-note {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.result-note.bad {
    color: #dc3545;
}

.result-note.good {
    color: #28a745;
}

/* ---------- ソリューションセクション ---------- */
.solution {
    padding: 5rem 5%;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding-top: 130px;
}

.solution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.solution-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.solution-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1a4d8f;
    font-weight: 600;
}

.solution-list {
    list-style: none;
}

.solution-list li {
    padding: 1.2rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.solution-list li:last-child {
    border-bottom: none;
}

.solution-icon {
    font-size: 1.3rem;
    color: #1a4d8f;
    flex-shrink: 0;
    background: #e8f0fe;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.solution-demo {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.demo-title {
    font-weight: 600;
    color: #1a4d8f;
    font-size: 1.1rem;
}

.demo-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #28a745;
    font-size: 0.9rem;
}

.alert-item {
    background: #fff8e1;
    border-left: 3px solid #ff9800;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-content {
    font-size: 0.95rem;
    color: #2c3e50;
    line-height: 1.6;
}

/* ---------- 比較テーブル ---------- */
.comparison-table {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    overflow-x: auto;
}

.table-wrapper {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
}

.comparison-table th {
    background: #1a4d8f;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
}

.comparison-table th:first-child {
    background: #1a4d8f;
}

.comparison-table td {
    font-size: 0.95rem;
    color: #2c3e50;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 768px) {
    .geo-terms {
        grid-template-columns: 1fr;
    }

    .comparison-container {
        grid-template-columns: 1fr;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .solution-visual {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comparison-table table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
