*, *::before, *::after {
    box-sizing: border-box;
}

.article-body {
    background-color: #fdf6ee;
    min-height: 100%;
    margin: 0;
    font-size: 16px;
    overflow-x: hidden;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1em 1.5em;
    font-family: 'New Tegomin', 'Noto Serif JP', serif;
    color: #333;
    line-height: 1.8;
}

.article-header {
    padding: 1em 0;
    border-bottom: 2px solid #c0392b;
    margin-bottom: 1em;
}

.site-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #c0392b;
    text-decoration: none;
}

.breadcrumb {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 1.5em;
}

.breadcrumb a { color: #888; text-decoration: none; }

h1 {
    font-size: 1.8em;
    border-left: 4px solid #c0392b;
    padding-left: 0.5em;
    margin-bottom: 1em;
}

h2 {
    font-size: 1.3em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3em;
    margin-top: 2em;
    color: #444;
}

h3 { font-size: 1.1em; color: #555; margin-top: 1.2em; }

section { margin-bottom: 2em; }

p, li { font-size: 1em; margin: 0.6em 0; }

ul, ol { padding-left: 1.5em; }

a { color: #c0392b; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 1.5em;
    margin: 1em 0;
}

.card-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1em;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.card-item img {
    display: block;
    width: 100px;
    margin: 0 auto 0.8em;
    border-radius: 4px;
}

.card-item h3 {
    text-align: center;
    margin: 0 0 0.4em;
    color: #333;
}

.card-keywords {
    font-size: 0.85em;
    color: #c0392b;
    text-align: center;
    margin-bottom: 0.8em;
}

.card-meaning h4 {
    font-size: 0.9em;
    margin: 0.5em 0 0.2em;
    color: #555;
}

.card-meaning p {
    font-size: 0.9em;
    margin: 0 0 0.5em;
    color: #444;
}

.ad-section { margin: 2em 0; min-height: 50px; }

.article-footer {
    margin-top: 3em;
    padding-top: 1em;
    border-top: 1px solid #ddd;
    font-size: 0.85em;
    color: #888;
    text-align: center;
}

.article-footer a { color: #888; text-decoration: none; margin: 0 0.3em; }
.article-footer a:hover { color: #c0392b; }
.copyright-text { margin-top: 0.5em; font-size: 0.8em; }

/* ブログ・コラム用 */
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-list-item {
    border-bottom: 1px solid #e8e0d6;
    padding: 1.4em 0;
}

.post-list-item:first-child { padding-top: 0.4em; }

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin-bottom: 0.4em;
    font-size: 0.85em;
    color: #999;
}

.post-date { white-space: nowrap; }

.post-category {
    background-color: #c0392b;
    color: #fff;
    font-size: 0.78em;
    padding: 0.15em 0.6em;
    border-radius: 3px;
    white-space: nowrap;
}

.post-title {
    font-size: 1.15em;
    font-weight: bold;
    margin: 0 0 0.4em;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover { color: #c0392b; }

.post-excerpt {
    font-size: 0.92em;
    color: #666;
    margin: 0;
    line-height: 1.7;
}

/* 記事本文 */
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.8em;
    font-size: 0.85em;
    color: #999;
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 1px solid #e8e0d6;
}

.article-body-text {
    font-size: 1em;
    line-height: 1.9;
    color: #333;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-body-text p { margin: 1em 0; }

blockquote {
    border-left: 3px solid #c0392b;
    margin: 1.5em 0;
    padding: 0.6em 1.2em;
    background: #fff8f6;
    color: #555;
    font-style: italic;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5em;
    padding-top: 1.2em;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    gap: 1em;
}

.post-nav a { color: #c0392b; text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }
.post-nav-prev { text-align: left; }
.post-nav-next { text-align: right; }

/* シンボル解説エントリー */
.symbol-entry {
    display: flex;
    gap: 1.2em;
    align-items: flex-start;
    margin: 1.5em 0;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #f0e8e0;
}
.symbol-entry:last-child { border-bottom: none; }
.symbol-card-img {
    width: 80px;
    min-width: 80px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.symbol-card-img-reversed {
    transform: rotate(180deg);
}
.symbol-text { flex: 1; }
.symbol-text h3 { margin-top: 0; }
@media (max-width: 600px) {
    .symbol-entry {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .symbol-card-img { width: 110px; }
}

/* セクションイラスト */
.section-illust {
    float: right;
    margin: 0 0 1em 1.5em;
    width: 160px;
    opacity: 0.88;
}
.section-illust-left {
    float: left;
    margin: 0 1.5em 1em 0;
    width: 160px;
    opacity: 0.88;
}
.section-illust-narrow {
    float: right;
    margin: 0 0 1em 1.5em;
    width: 110px;
    opacity: 0.88;
}
.section-illust-narrow-left {
    float: left;
    margin: 0 1.5em 1em 0;
    width: 110px;
    opacity: 0.88;
}
.section-illust-wide {
    display: block;
    margin: 0.8em auto 1.2em;
    width: 100%;
    max-width: 480px;
    opacity: 0.88;
}
.section-illust figcaption,
.section-illust-left figcaption,
.section-illust-narrow figcaption,
.section-illust-narrow-left figcaption,
.section-illust-wide figcaption {
    font-size: 0.72em;
    color: #aaa;
    text-align: center;
    margin-top: 0.3em;
}
.section-illust img { width: 100%; }
.section-illust-left img { width: 100%; }
.section-illust-narrow img { width: 100%; }
.section-illust-narrow-left img { width: 100%; }
.section-illust-wide img { width: 100%; }
@media (max-width: 600px) {
    .section-illust, .section-illust-left,
    .section-illust-narrow, .section-illust-narrow-left {
        float: none;
        display: block;
        margin: 0.8em auto;
        width: 130px;
    }
}

/* Amazon おすすめ商品ボックス */
.amazon-box {
    border: 1px solid #e0d0c0;
    border-radius: 8px;
    padding: 1.2em 1.4em;
    margin: 2em 0;
    background: #fffbf7;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.amazon-box-title {
    font-size: 0.82em;
    color: #999;
    letter-spacing: 0.05em;
    margin: 0 0 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e8ddd0;
}

.amazon-item {
    display: flex;
    gap: 1.2em;
    align-items: flex-start;
}

.amazon-item-img {
    width: 90px;
    min-width: 90px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.amazon-item-info {
    flex: 1;
}

.amazon-item-name {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    margin: 0 0 0.3em;
    line-height: 1.5;
}

.amazon-item-desc {
    font-size: 0.88em;
    color: #666;
    margin: 0 0 0.8em;
    line-height: 1.7;
}

.amazon-btn {
    display: inline-block;
    background-color: #ff9900;
    color: #111 !important;
    font-size: 0.88em;
    font-weight: bold;
    padding: 0.45em 1.1em;
    border-radius: 20px;
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.amazon-btn:hover {
    background-color: #e68a00;
}

@media (max-width: 480px) {
    .amazon-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .amazon-item-img { width: 110px; }
}
