/* Base Variables & Reset */
:root {
    --text-color: #333333;
    --bg-color: #f9f9f9;
    --main-color: #0b2545; /* Trustworthy navy blue */
    --accent-color: #ff6b35; /* Orange for CTA */
    --accent-hover: #e85d2b;
    --h2-bg: #e6eef5;
    --border-color: #dddddd;
    --font-family: 'Noto Sans JP', sans-serif;
    --content-width: 768px; /* Max width for readability on PC, but mobile-first */
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.03em;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Header & Footer */
.site-header {
    background-color: var(--main-color);
    color: #fff;
    padding: 15px 20px;
    text-align: center;
}

.site-title {
    font-size: 18px;
    font-weight: 700;
}

.site-footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
    margin-bottom: 80px; /* Space for sticky CTA */
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.article-container {
    padding: 30px 20px;
}

.article-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.4;
    color: var(--main-color);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--main-color);
    padding-bottom: 15px;
}

.article-body p {
    margin-bottom: 25px;
    font-size: 16px;
}

/* Typography & Headings */
h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--main-color);
    margin: 50px 0 20px;
    padding: 15px 15px 15px 20px;
    background-color: var(--h2-bg);
    border-left: 5px solid var(--main-color);
    border-radius: 0 4px 4px 0;
    line-height: 1.4;
}

h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--main-color);
    margin: 40px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px dashed var(--border-color);
    line-height: 1.4;
}

/* Images */
.article-image {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.article-image img {
    width: 100%;
    display: block;
}

/* Decorations */
.summary-box {
    background-color: #fffaf0;
    border: 2px solid #ffcc80;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

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

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

.summary-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #ff9800;
    font-size: 18px;
}

.balloon {
    position: relative;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 10px;
    margin: 30px 0;
    color: #0d47a1;
    font-weight: 700;
    text-align: center;
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    margin-left: -15px;
    border: 15px solid transparent;
    border-top-color: #e3f2fd;
    border-bottom: 0;
}

.note {
    background-color: #f5f5f5;
    border-left: 4px solid #9e9e9e;
    padding: 15px;
    margin: 25px 0;
    font-size: 14px;
    color: #555;
}

.note p {
    margin-bottom: 0 !important;
}

.check-list {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    background: #f1f8e9;
    padding: 15px 15px 15px 45px;
    border-radius: 6px;
    font-weight: 500;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%237cb342" xmlns="http://www.w3.org/2000/svg"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
    background-size: contain;
}

.mk {
    background: linear-gradient(transparent 60%, #ffff66 60%);
    font-weight: 700;
}

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

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

.spec-table th, .spec-table td {
    border: 1px solid var(--border-color);
    padding: 12px 10px;
    text-align: center;
    font-size: 15px;
}

.spec-table th {
    background-color: var(--main-color);
    color: #fff;
    font-weight: 700;
}

.spec-table td.highlight {
    color: #d32f2f;
    font-weight: 700;
    font-size: 18px;
}

/* CTA Buttons */
.cta-area {
    background-color: #fff4e6;
    border: 2px solid #ffe0b2;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.cta-catch {
    color: #d84315;
    font-weight: 700;
    font-size: 18px !important;
    margin-bottom: 20px !important;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8a00, #ff5200);
    color: #fff;
    padding: 18px 20px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 6px 15px rgba(255, 82, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 82, 0, 0.4);
}

.cta-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px 15px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-cta.is-show {
    transform: translateY(0);
}

.sticky-cta-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ff8a00, #ff5200);
    color: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    position: relative;
    max-width: var(--content-width);
    margin: 0 auto;
}

.sticky-cta-badge {
    position: absolute;
    top: -10px;
    left: 10px;
    background: #d32f2f;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sticky-cta-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.sticky-cta-main {
    font-size: 16px;
    font-weight: 900;
}

.sticky-cta-icon {
    font-size: 20px;
    margin-left: 10px;
}

/* Related Articles */
.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 3px solid var(--h2-bg);
}

.related-articles h3 {
    margin-top: 0;
    border: none;
}

.related-articles .check-list li a {
    color: var(--main-color);
    text-decoration: underline;
    display: block;
}

.related-articles .check-list li a:hover {
    color: var(--accent-color);
}

/* Media Queries */
@media (min-width: 768px) {
    .article-title {
        font-size: 28px;
    }
    
    .article-body p {
        font-size: 17px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    h3 {
        font-size: 22px;
    }
    
    .cta-button {
        font-size: 22px;
        padding: 22px 30px;
    }

    .sticky-cta-main {
        font-size: 18px;
    }
}
