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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #f7f9fa;
    font-size: 16px;
    padding-bottom: 80px; /* Space for fixed CTA */
}

a {
    text-decoration: none;
    color: #0056b3;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px 0;
}

/* Header & Footer */
.site-header {
    background-color: #ffffff;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.site-title {
    font-size: 14px;
    font-weight: 700;
    color: #555;
}

.site-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    font-size: 12px;
}

/* Main Container */
.main-content {
    max-width: 768px;
    margin: 20px auto;
    padding: 0 15px;
}

.article-body {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* Title */
.article-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 25px;
    color: #111;
    border-bottom: 3px solid #0056b3;
    padding-bottom: 10px;
}

/* Typography */
p {
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    background-color: #0056b3;
    padding: 15px;
    border-radius: 6px;
    margin: 40px 0 20px;
    line-height: 1.4;
}

h3 {
    font-size: 19px;
    font-weight: 700;
    color: #0056b3;
    border-left: 5px solid #0056b3;
    padding-left: 10px;
    margin: 35px 0 15px;
    line-height: 1.4;
}

ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* Summary Box */
.summary-box {
    background-color: #f0f7ff;
    border: 2px solid #b3d4fc;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.summary-box ul {
    margin: 0;
    padding-left: 5px;
    list-style-type: none;
}

.summary-box li {
    position: relative;
    padding-left: 20px;
    color: #003b80;
    font-weight: 700;
    margin-bottom: 10px;
}

.summary-box li:last-child {
    margin-bottom: 0;
}

.summary-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6b00;
    font-weight: bold;
}

/* Balloon (Speech bubble) */
.balloon {
    position: relative;
    background: #e8f5e9;
    padding: 15px 20px;
    border-radius: 12px;
    margin: 25px 0;
    font-weight: 500;
    color: #2e7d32;
}

.balloon::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 30px;
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #e8f5e9 transparent;
}

/* Marker Animation */
.mk {
    background: linear-gradient(transparent 60%, #fff200 60%);
    font-weight: bold;
}

/* Note Box */
.note {
    background-color: #fff9e6;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 14px;
    color: #555;
    border-left: 4px solid #ffcc00;
}

.note p {
    margin-bottom: 0;
}

/* Table */
.table-scroll {
    overflow-x: auto;
    margin: 25px 0;
}

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

.spec-table th, .spec-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

.spec-table th {
    background-color: #f5f5f5;
    font-weight: 700;
    color: #333;
}

/* CTA Area */
.cta-area {
    background: #fff;
    border: 3px solid #ff6b00;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}

.cta-area p {
    color: #ff6b00;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
}

.cta-button {
    display: block;
    background: linear-gradient(135deg, #ff8c00, #ff5722);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 10px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(255, 87, 34, 0.3);
}

/* Fixed Bottom CTA */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.fixed-cta.is-visible {
    transform: translateY(0);
}

.fixed-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8c00, #ff5722);
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(255, 87, 34, 0.3);
}

.fixed-cta-sub {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.fixed-cta-main {
    font-size: 16px;
    font-weight: 700;
}

/* Internal Links */
.internal-links {
    margin: 40px 0;
    padding: 25px 20px;
    background-color: #f0f7ff;
    border-radius: 8px;
    border: 2px solid #b3d4fc;
}

.internal-links h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    border: none;
    padding-left: 0;
    color: #003b80;
    text-align: center;
}

.internal-links ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.internal-links li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.internal-links li:last-child {
    margin-bottom: 0;
}

.internal-links li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #ff6b00;
    font-size: 14px;
    top: 2px;
}

.internal-links a {
    color: #0056b3;
    text-decoration: underline;
    text-decoration-color: #b3d4fc;
    text-underline-offset: 4px;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    transition: color 0.2s;
}

.internal-links a:hover {
    color: #ff6b00;
    text-decoration-color: #ff6b00;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .article-title {
        font-size: 22px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    body {
        font-size: 15px;
    }
}
