@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;800&display=swap');

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #2b0014; /* Deep Burgundy for contrast */
    color: #fff;
}

/* ======================================== */
/* MUJI-like Minimal Theme (non-destructive) */
/* Later rules override the earlier vibrant UI */
/* ======================================== */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --fg: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e0;
  --accent: #222222;
}

html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
}

/* Subtle paw watermark to keep the cat vibe */
body::before {
  content: "🐾";
  position: fixed;
  right: 16px;
  bottom: 16px;
  font-size: 32px;
  color: rgba(0,0,0,0.06);
  z-index: 0;
}

h1 {
  color: var(--fg);
  text-shadow: none;
  font-weight: 600;
  font-size: clamp(20px, 3.5vh, 28px);
  letter-spacing: 0.03em;
  margin: 12px 0 8px;
}

#game-container { gap: 16px; }

#game-board {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

#score-line {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

#score {
  color: var(--fg);
  text-shadow: none;
}

#combo-display {
  color: var(--accent);
  text-shadow: none;
}

/* Start overlay: light and calm */
#start-overlay {
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
}

#start-btn {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 600;
  box-shadow: none;
  animation: none;
}

#start-btn:hover { opacity: 0.9; transform: none; }
#start-btn:active { transform: translateY(1px); box-shadow: none; }

/* Controls: understated buttons */
#controls { gap: 12px; }
button {
  width: 48px;
  height: 48px;
  max-width: none;
  max-height: none;
  border-radius: 8px;
  background: #f0f0ed;
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 18px;
}
button:active { background: #e7e7e2; transform: translateY(1px); box-shadow: none; }

/* Floating text & cat popup: keep, but soften */
.nyan-text {
  font-size: clamp(20px, 5vh, 36px);
  font-weight: 600;
  color: var(--fg);
  text-shadow: none;
}
.nyan-subtext {
  font-size: clamp(12px, 2.4vh, 16px);
  color: var(--muted);
  text-shadow: none;
}

#cat-popup {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid var(--line);
}

/* Fever mode: functional but subtle */
body.fever-mode { background: var(--bg); animation: none; }
body.fever-mode #game-board { border-color: #c7b299; box-shadow: 0 0 0 1px #c7b299 inset; }

/* Responsive tweaks */
@media (max-width: 480px) {
  #controls { gap: 10px; }
  button { width: 44px; height: 44px; font-size: 16px; }
}


body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 10px 100px 10px;
    padding-top: env(safe-area-inset-top, 10px);
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    transition: background-color 0.5s;
    box-sizing: border-box;
    min-height: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Background Pattern */
body::before {
    content: "🐱 🐾 🐱 🐾";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 5vh;
    color: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    z-index: -1;
    overflow: hidden;
}

body.fever-mode {
    background-color: #3e0000; /* Deep Red for Fever */
    animation: fever-bg 1s infinite alternate;
}

@keyframes fever-bg {
    0% { background-color: #3e0000; }
    100% { background-color: #6a0000; }
}

h1 {
    color: #222222;
    margin: 5px 0;
    font-size: 4vh;
    text-shadow: none;
}

#game-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
    box-sizing: border-box;
}

/* Next piece preview (non-obtrusive, mobile friendly) */
#next-box {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 96px;
  height: 110px;
  box-sizing: border-box;
  background: rgba(255,255,255,0.9);
  border: 1px solid #e6e6e0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 6px 6px 8px;
  pointer-events: none; /* avoid blocking gameplay taps */
  z-index: 5;
}

#next-box .label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #6b6b6b;
}

#next-canvas {
  display: block;
}

@media (max-width: 480px) {
  #next-box { top: 6px; right: 6px; width: 88px; height: 102px; }
}

#game-board {
    border: 1px solid #e6e6e0;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s, border-color 0.3s;
    /* サイズはJavaScriptで動的に設定 */
}

/* スタートオーバーレイ */
#start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: 10px;
}

#start-overlay.hidden {
    display: none;
}

#start-btn {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 3vh;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(145deg, #f0f0f0, #e6e6e6);
    color: #111111;
    font-weight: 800;
    box-shadow: 0 4px 0 #bdbdbd, 0 5px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    animation: pulse 1.5s ease-in-out infinite;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}

#start-btn:hover {
    background: linear-gradient(145deg, #eaeaea, #f5f5f5);
    transform: none;
}

#start-btn:active {
    transform: translateY(2px) scale(1);
    box-shadow: 0 0 0 #bdbdbd, inset 0 0 6px rgba(0,0,0,0.06);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 0 #bdbdbd, 0 5px 15px rgba(0, 0, 0, 0.08);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 0 #bdbdbd, 0 5px 20px rgba(0, 0, 0, 0.10);
    }
}

body.fever-mode #game-board {
    border-color: #cfcfcf;
    box-shadow: 0 0 0 1px #cfcfcf inset;
}

#score-line {
    font-size: 2.5vh;
    color: #6b6b6b;
    margin-bottom: 10px;
    text-align: center;
}

#score {
    font-size: 1.5em;
    font-weight: 800;
    color: #111111;
    text-shadow: none;
    font-variant-numeric: tabular-nums;
}

#combo-display {
    margin-top: 10px;
    font-size: 1.2em;
    height: 1.5em;
    color: #222222;
    text-shadow: none;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.2s;
}

#nyan-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    width: 100%;
    text-align: center;
}

/* 猫画像ポップアップ */
#cat-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    max-width: 80vw;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 128, 171, 0.8), 0 0 60px rgba(255, 64, 129, 0.5);
    z-index: 100;
    animation: cat-pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: none;
}

#cat-popup.fade-out {
    animation: cat-pop-out 0.5s ease-in forwards;
}

@keyframes cat-pop-in {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-10deg);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.1) rotate(3deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes cat-pop-out {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
}

.nyan-text {
    font-size: 8vh;
    font-weight: 800;
    color: #222222;
    text-shadow: none;
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    white-space: nowrap;
}

.nyan-subtext {
    font-size: 4vh;
    color: #6b6b6b;
    text-shadow: none;
    animation: slide-up 0.5s ease-out forwards;
}

@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-up {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Shake Animation */
.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

#controls {
    margin-top: 2vh;
    display: flex;
    gap: 4vw;
}

button {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 4vh;
    width: 12vh;
    height: 12vh;
    max-width: 70px;
    max-height: 70px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
    color: #111111;
    box-shadow: 0 4px 0 #c9c9c9, 0 5px 10px rgba(0,0,0,0.10);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

button:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #c9c9c9, inset 0 0 10px rgba(0,0,0,0.06);
    background: #d9d9d9;
}

/* Touch controls adjustment */
@media (hover: none) and (pointer: coarse) {
    button {
        width: 14vh;
        height: 14vh;
    }
}

/* ==================== */
/* Responsive Design    */
/* ==================== */

/* スマートフォン縦向き (480px以下) */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 4vh;
        margin: 0.5vh 0;
    }

    #game-container {
        flex-direction: column;
        gap: 10px;
    }

    #game-board {
        width: 80vw;
        max-width: 280px;
        height: auto;
    }

    #game-info {
        margin-left: 0;
        margin-top: 10px;
        display: flex;
        gap: 15px;
        align-items: center;
        justify-content: center;
        min-width: auto;
    }

    #score-container {
        padding: 8px 15px;
    }

    #controls {
        gap: 3vw;
        margin-top: 1.5vh;
    }

    button {
        font-size: 3.5vh;
        width: 15vw;
        height: 15vw;
        max-width: 60px;
        max-height: 60px;
    }

    .nyan-text {
        font-size: 6vh;
    }

    .nyan-subtext {
        font-size: 3vh;
    }
}

/* スマートフォン横向き & 小さめタブレット (481px〜768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    h1 {
        font-size: 4.5vh;
    }

    #game-container {
        flex-direction: row;
        gap: 15px;
    }

    #game-board {
        width: 40vw;
        max-width: 300px;
        height: auto;
    }

    #game-info {
        margin-left: 15px;
    }

    #controls {
        gap: 3vw;
    }

    button {
        width: 10vh;
        height: 10vh;
        max-width: 65px;
        max-height: 65px;
    }
}

/* タブレット (769px〜1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    #game-board {
        width: 300px;
        height: 600px;
    }

    button {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }
}

/* 画面の高さが低い場合（横向きスマホなど） */
@media screen and (max-height: 500px) {
    h1 {
        font-size: 3vh;
        margin: 0;
    }

    #game-container {
        flex-direction: row;
    }

    #game-board {
        height: 70vh;
        width: auto;
    }

    #game-info {
        margin-left: 10px;
        font-size: 2vh;
    }

    #controls {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 10px;
        margin-top: 0;
    }

    button {
        width: 8vh;
        height: 8vh;
        font-size: 3vh;
    }

    .nyan-text {
        font-size: 5vh;
    }
}

/* ===========================================
   Article Content Styles - Modern & Readable
   =========================================== */

.article-content {
    max-width: 800px;
    width: 100%;
    margin: 60px auto;
    padding: 0 24px;
    box-sizing: border-box;
    line-height: 1.9;
    font-size: 16px;
    /* 背景を不透明にして猫絵文字を隠す */
    position: relative;
    background: var(--bg);
    z-index: 1;
}

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.article-header h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 16px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.article-subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Table of Contents */
.article-toc {
    background: linear-gradient(135deg, #f8f8f6 0%, #f0f0ec 100%);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 48px;
    border: 1px solid var(--line);
}

.article-toc h4 {
    font-size: 1rem;
    margin: 0 0 16px;
    color: var(--fg);
    font-weight: 600;
}

.article-toc ol {
    margin: 0;
    padding-left: 20px;
    list-style-position: outside;
}

.article-toc li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.article-toc a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.article-toc a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Article Section */
.article-section {
    margin-bottom: 56px;
    padding-top: 24px;
    scroll-margin-top: 80px;
}

.article-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 28px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.article-section h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fg);
    margin: 36px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #888;
}

.article-section h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    margin: 28px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Paragraphs */
.article-section p {
    margin: 0 0 20px;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Superscripts */
.article-section sup {
    font-size: 0.7em;
    color: #666;
    margin-left: 1px;
}

/* Lists in Article */
.article-section ul,
.article-section ol:not(.article-toc ol) {
    margin: 0 0 24px;
    padding-left: 24px;
}

.article-section li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.article-section li strong {
    color: var(--fg);
}

/* Tables */
.article-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.9rem;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-section table tr:first-child td {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

.article-section td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.article-section table tr:last-child td {
    border-bottom: none;
}

.article-section table tr:hover:not(:first-child) {
    background: rgba(0, 0, 0, 0.02);
}

/* Horizontal Rule */
.article-section hr {
    border: none;
    height: 1px;
    background: var(--line);
    margin: 40px 0;
}

/* Footer / References */
.article-content > footer {
    background: #fafafa;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px 24px;
    margin-top: 48px;
    font-size: 0.85rem;
    color: var(--muted);
}

.article-content > footer h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg);
    margin: 0 0 16px;
}

.article-content > footer ol {
    margin: 0;
    padding-left: 28px;
}

.article-content > footer li {
    margin-bottom: 12px;
    line-height: 1.6;
    word-break: break-all;
}

.article-content > footer a {
    color: #0066cc;
    text-decoration: none;
    word-break: break-all;
}

.article-content > footer a:hover {
    text-decoration: underline;
}

/* Responsive Design for Article */
@media screen and (max-width: 600px) {
    .article-content {
        padding: 0 20px;
        margin: 32px auto;
        font-size: 16px;
        line-height: 1.85;
    }

    .article-header {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .article-header h2 {
        font-size: 1.3rem;
        line-height: 1.5;
    }

    .article-subtitle {
        font-size: 0.9rem;
    }

    .article-toc {
        padding: 18px;
    }

    .article-toc h4 {
        font-size: 0.95rem;
    }

    .article-toc li {
        margin-bottom: 8px;
    }

    .article-toc a {
        font-size: 0.85rem;
    }

    .article-section {
        margin-bottom: 40px;
    }

    .article-section h3 {
        font-size: 1.15rem;
    }

    .article-section h4 {
        font-size: 1rem;
        margin: 28px 0 14px;
    }

    .article-section p {
        text-align: left;
        margin-bottom: 18px;
    }

    .article-section table {
        font-size: 0.78rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .article-section td {
        padding: 10px 12px;
    }
}

/* Article References Section */
.article-references {
    background: linear-gradient(145deg, #f9f9f7 0%, #f3f3ef 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px 28px;
    margin-top: 60px;
}

.article-references h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--line);
}

.article-references h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fg);
    margin: 32px 0 16px;
}

.article-references p {
    margin: 0 0 16px;
    color: var(--muted);
}

.article-references .note {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    margin: 20px 0;
}

.article-references ul {
    margin: 0 0 16px;
    padding-left: 24px;
}

.article-references ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-references ol {
    margin: 0;
    padding-left: 28px;
    counter-reset: ref-counter;
}

.article-references ol li {
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.88rem;
    color: var(--muted);
}

.article-references a {
    color: #0066cc;
    text-decoration: none;
    word-break: break-all;
}

.article-references a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 600px) {
    .article-references {
        padding: 24px 20px;
    }
    
    .article-references h3 {
        font-size: 1.1rem;
    }
    
    .article-references ol li {
        font-size: 0.82rem;
    }
}

/* ===========================================
   Blog Navigation Styles
   =========================================== */

.blog-navigation {
    max-width: 800px;
    width: 100%;
    margin: 40px auto;
    padding: 0 24px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    background: var(--bg);
}

.blog-navigation h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 20px;
    text-align: center;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-decoration: none;
    color: var(--fg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.blog-card .blog-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
    text-align: center;
}

.blog-card p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
    text-align: center;
}

/* Blog Header */
.blog-header {
    width: 100%;
    padding: 16px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.7;
}

/* Blog Footer Nav */
.blog-footer-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.blog-footer-nav a {
    display: inline-block;
    padding: 12px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--fg);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.blog-footer-nav a:hover {
    background: #f5f5f3;
    transform: translateX(2px);
}

.blog-footer-nav .prev-article:hover {
    transform: translateX(-2px);
}

/* Site Footer */
.site-footer {
    width: 100%;
    padding: 24px;
    text-align: center;
    background: var(--surface);
    border-top: 1px solid var(--line);
    margin-top: 60px;
}

.site-footer a {
    color: var(--fg);
    text-decoration: none;
    font-weight: 600;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Intro Section */
.intro-section {
    padding: 24px;
    background: linear-gradient(135deg, #f8f8f6 0%, #f0f0ec 100%);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    margin-bottom: 40px;
}

.intro-section p {
    margin: 0 0 12px;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

/* Benefit Icon */
.benefit-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 16px;
}

/* Tip Box & Technique Box */
.tip-box, .technique-box {
    padding: 20px 24px;
    background: #fffef5;
    border: 1px solid #eee8c0;
    border-radius: 12px;
    margin: 20px 0;
}

.tip-box h4, .technique-box h4 {
    font-size: 1rem;
    margin: 0 0 12px;
    color: var(--fg);
    border: none;
    padding: 0;
}

.tip-box p, .technique-box p {
    margin: 0;
}

.technique-box ol, .technique-box ul {
    margin: 0;
    padding-left: 20px;
}

/* Tetromino List */
.tetromino-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.tetromino-item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.tetromino-name {
    font-weight: 700;
    color: var(--fg);
    min-width: 120px;
}

.tetromino-desc {
    color: var(--muted);
}

/* Score Table */
.score-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.score-table th, .score-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.score-table th {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.score-table tr:last-child td {
    border-bottom: none;
}

.score-table tr:nth-child(even) {
    background: #fafafa;
}

/* Conclusion Section */
.conclusion-section {
    padding: 32px;
    background: linear-gradient(135deg, #f0f0ec 0%, #e8e8e0 100%);
    border-radius: 16px;
    margin-top: 40px;
}

.conclusion-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 16px;
}

.conclusion-section p {
    margin: 0 0 12px;
}

.conclusion-section p:last-child {
    margin-bottom: 0;
}

/* Responsive for Blog */
@media screen and (max-width: 600px) {
    .blog-navigation {
        padding: 0 16px;
        margin: 24px auto;
    }

    .blog-navigation h2 {
        font-size: 1.2rem;
    }

    .blog-cards {
        grid-template-columns: 1fr;
    }

    .blog-card {
        padding: 20px 16px;
    }

    .blog-footer-nav {
        flex-direction: column;
    }

    .blog-footer-nav a {
        text-align: center;
    }

    .benefit-icon {
        font-size: 2.5rem;
    }

    .tip-box, .technique-box {
        padding: 16px 18px;
    }
}
