@charset "UTF-8";

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

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #f9f9f9;
    font-size: 16px;
    padding-bottom: 80px; /* Space for sticky CTA */
}

a {
    color: #ff7e67;
    text-decoration: none;
}

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

/* =========================================
   Layout
========================================= */
.site-header {
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.site-title {
    font-weight: bold;
    color: #ff7e67;
    font-size: 1.2rem;
}

.main-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.02);
}

.site-footer {
    text-align: center;
    padding: 30px 20px;
    background: #f0f0f0;
    font-size: 0.85rem;
    color: #666;
}

/* =========================================
   Article Typography & Elements
========================================= */
.article-title {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #222;
    font-weight: bold;
}

.article-body p {
    margin-bottom: 1.5em;
}

.article-body ul {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.article-body li {
    margin-bottom: 0.5em;
}

/* Headings */
.article-body h2 {
    font-size: 1.3rem;
    color: #333;
    background: #fff0ed;
    padding: 15px 20px;
    margin: 40px 0 20px;
    border-left: 5px solid #ff7e67;
    border-radius: 0 4px 4px 0;
    line-height: 1.4;
}

.article-body h3 {
    font-size: 1.15rem;
    color: #ff7e67;
    border-bottom: 2px dashed #ff7e67;
    padding-bottom: 8px;
    margin: 30px 0 15px;
    line-height: 1.4;
}

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

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

.js-marker.active {
    background-size: 100% 100%;
}

/* Boxes & Note */
.main-point-box {
    background: #fff9f0;
    border: 2px solid #ffc873;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.main-point-box ul {
    margin-bottom: 0;
    padding-left: 1.2em;
}

.main-point-box li {
    font-weight: bold;
    color: #d98d00;
}

.note {
    background: #f4f6f8;
    border-left: 4px solid #829ab1;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.95rem;
    color: #444;
}

/* Balloon (Speech Bubble) */
.balloon {
    position: relative;
    background: #e8f5e9;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 25px 0;
    color: #2e7d32;
    font-weight: bold;
}
.balloon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #e8f5e9 transparent;
}

/* Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

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

.spec-table th {
    background: #f7f7f7;
    font-weight: bold;
    white-space: nowrap;
    width: 30%;
}

/* =========================================
   CTA Area
========================================= */
.cta-area {
    text-align: center;
    background: #fff0ed;
    padding: 30px 20px;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(255, 126, 103, 0.15);
}

.cta-area p {
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    background: #ff7e67;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 18px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(255, 126, 103, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '▶';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.cta-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(255, 126, 103, 0.4);
}

/* =========================================
   Sticky CTA (Bottom Fixed)
========================================= */
.sticky-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%); /* Hidden initially */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    backdrop-filter: blur(5px);
}

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

.sticky-cta-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    background: linear-gradient(135deg, #ff7e67, #ff5e40);
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 15px 20px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(255, 94, 64, 0.4);
    animation: pulse 2s infinite;
}

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

/* =========================================
   Related Articles
========================================= */
.related-article {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin: 40px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.related-article h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.related-article h4::before {
    content: '📚';
    margin-right: 8px;
}

.related-article a {
    display: block;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    line-height: 1.5;
    transition: color 0.2s;
}

.related-article a:hover {
    color: #ff7e67;
    text-decoration: underline;
}

/* =========================================
   Responsive Adjustments
========================================= */
@media screen and (min-width: 768px) {
    body {
        font-size: 17px;
    }
    .article-title {
        font-size: 2rem;
    }
    .article-body h2 {
        font-size: 1.5rem;
    }
    .article-body h3 {
        font-size: 1.3rem;
    }
}
