/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    background: #f7f3ed;
    color: #2c2420;
    line-height: 1.8;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* ── Header ── */
.header {
    background: #fff;
    color: #1a1410;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
    border-bottom: 2px solid #9B2C3C;
}
.header-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}
.header a { color: #1a1410; text-decoration: none; }
.site-name {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}
.site-logo {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}
/* ── Container ── */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}
/* ── Breadcrumb ── */
.breadcrumb {
    font-size: 0.82rem;
    color: #8a7e72;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb a { color: #9B2C3C; text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #c8bfb4; }
/* ── Card ── */
.card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.05);
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
}
.card a { text-decoration: none; color: inherit; display: block; }
.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1410;
    margin-bottom: 6px;
}
.card-meta {
    font-size: 0.85rem;
    color: #8a7e72;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0e8dc;
    color: #6b4c30;
    font-size: 0.78rem;
    padding: 3px 12px;
    border-radius: 6px;
    font-weight: 700;
}
.badge-orange {
    background: #fef3e0;
    color: #c25e00;
}
/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, #9B2C3C, #7D222E);
    color: #fff;
    box-shadow: 0 3px 12px rgba(155,44,60,.25);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(155,44,60,.35); transform: translateY(-1px); }
.btn-secondary {
    background: #fff;
    color: #2c2420;
    border: 2px solid #d4cbc0;
}
.btn-secondary:hover { border-color: #9B2C3C; color: #9B2C3C; }
.btn-success {
    background: linear-gradient(135deg, #2d7d46, #1e6b35);
    color: #fff;
    box-shadow: 0 3px 10px rgba(30,107,53,.25);
}
.btn-success:hover { box-shadow: 0 6px 18px rgba(30,107,53,.35); transform: translateY(-1px); }
.btn-danger {
    background: #9B2C3C;
    color: #fff;
    box-shadow: 0 3px 10px rgba(155,44,60,.25);
}
.btn-block { display: flex; width: 100%; }
.btn-outline-primary {
    background: transparent;
    color: #9B2C3C;
    border: 2px solid #9B2C3C;
}
.btn-outline-primary:hover { background: #9B2C3C; color: #fff; }
/* ── Section title ── */
.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 8px;
    color: #1a1410;
    border-bottom: 2px solid #9B2C3C;
    position: relative;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #fbbf24;
}
/* ── Footer ── */
.footer {
    text-align: center;
    padding: 32px 16px;
    color: #8a7e72;
    font-size: 0.8rem;
    border-top: 1px solid #e0d8ce;
    margin-top: 20px;
}
.footer a { color: #8a7e72; }
/* ── Page title ── */
.page-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #1a1410;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}
.page-subtitle {
    color: #6b5e52;
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.7;
}
/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
@keyframes pulse-correct {
    0% { box-shadow: 0 0 0 0 rgba(22,163,74,.4); }
    70% { box-shadow: 0 0 0 12px rgba(22,163,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
@keyframes bounce-in {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes confetti-fall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(80px) rotate(720deg); opacity: 0; }
}
@keyframes slide-in { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
.animate-fade-in { animation: fadeInUp 0.4s ease-out; }
.animate-shake { animation: shake 0.4s ease-in-out; }
.animate-slide-in { animation: slide-in 0.3s ease-out; }
/* ── Responsive ── */
@media (max-width: 768px) {
    .container { padding: 24px 20px 36px; }
    .card { padding: 18px 20px; }
}
@media (max-width: 480px) {
    .container { padding: 16px 12px 32px; }
}
