@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    --primary-color: #2563eb; /* AI/Trustworthy Blue */
    --secondary-color: #10b981; /* Success/Growth Green */
    --accent-color: #f59e0b; /* Attention Orange */
    --text-color: #374151;
    --heading-color: #111827;
    --bg-color: #ffffff;
    --light-bg: #f3f4f6;
    --border-color: #e5e7eb;
    --max-width: 600px; /* Optimal for mobile reading */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-text-size-adjust: 100%;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Article */
article {
    padding: 30px 0 100px;
}

h1 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--heading-color);
    margin-bottom: 25px;
}

h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 50px 0 20px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
    line-height: 1.3;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 40px 0 15px;
    display: flex;
    align-items: center;
}

h3::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 2px;
    margin-right: 10px;
}

p {
    margin-bottom: 25px;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
    display: block;
}

.main-visual {
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.section-image {
    width: 100%;
    margin: 20px 0 30px;
}

/* UI Elements */
.summary-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.summary-box ul {
    list-style: none;
}

.summary-box li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-weight: 500;
}

.summary-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.balloon {
    position: relative;
    background: #fff;
    border: 2px solid var(--border-color);
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
    font-style: italic;
    color: #4b5563;
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-right: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    transform: rotate(45deg);
}

.note {
    background: #fdf2f8;
    border-left: 4px solid #db2777;
    padding: 15px 20px;
    margin: 30px 0;
    font-size: 0.95rem;
}

.note p {
    margin-bottom: 0;
}

.mk.js-marker {
    background: linear-gradient(transparent 60%, #fef08a 60%);
    font-weight: 600;
}

/* Tables */
.table-scroll {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

.spec-table th, .spec-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.spec-table th {
    background: var(--light-bg);
    width: 30%;
    color: var(--heading-color);
}

/* CTA Area */
.cta-area {
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.cta-area p {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--heading-color);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: #fff;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    width: 100%;
    max-width: 350px;
}

.cta-button:active {
    transform: scale(0.98);
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
}

.floating-cta.visible {
    bottom: 0;
}

.floating-cta .cta-button {
    padding: 15px 20px;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

/* Footer */
footer {
    background: var(--light-bg);
    padding: 40px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Lists in main content */
article ul {
    margin: 20px 0 30px 20px;
}

article li {
    margin-bottom: 10px;
}

/* Related Articles */
.related-articles {
    margin: 60px 0;
    padding-top: 40px;
    border-top: 2px solid var(--light-bg);
}

.related-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:active {
    transform: scale(0.98);
}

.related-img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 0;
    border-radius: 0;
}

.related-content {
    padding: 15px;
    flex: 1;
}

.related-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.4;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 480px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.25rem; }
    .cta-button { font-size: 1.1rem; }
}
