/*
Theme Name: ロロココ レトロ
Theme URI: https://500curry.space/
Author: カレースペース ロロココ
Author URI: https://500curry.space/
Description: 阿部寛のホームページ的な「あえて飾らない」素朴さと、90〜00年代ホームページ的な懐かしい「動き」を組み合わせたロロココ専用テーマです。投稿・固定ページの管理はWP管理画面からいつも通り行えます。
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rorococo
*/

/* ==========================================================
   基本方針：装飾はほぼ足さない。白背景・黒文字・青リンク。
   「動き」は最小限のポイントだけに絞って目立たせる。
   ========================================================== */

* {
  box-sizing: border-box;
}

body {
  background: #ffffff;
  color: #000000;
  font-family: "MS PGothic", "MS Pゴシック", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 8px;
  padding: 0;
}

a {
  color: #0000ee;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:hover {
  color: #ff0000;
}

hr {
  border: none;
  border-top: 1px dashed #999999;
  margin: 16px 0;
}

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

h1, h2, h3, h4 {
  font-weight: bold;
  margin: 0.8em 0 0.4em;
}

h1 { font-size: 1.6em; }
h2 { font-size: 1.3em; }
h3 { font-size: 1.1em; }

table {
  border-collapse: collapse;
}

/* ==========================================================
   サイト全体の枠（あえて900px程度の素朴な1カラム）
   ========================================================== */

.site-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.site-title {
  font-size: 1.8em;
  font-weight: bold;
}

.site-title a {
  text-decoration: none;
  color: #000000;
}

.site-description {
  font-size: 0.9em;
  color: #333333;
}

/* ==========================================================
   ナビゲーション（ただの横並びテキストリンク＋｜区切り）
   ========================================================== */

.retro-nav ul {
  list-style: none;
  margin: 8px 0;
  padding: 0;
}

.retro-nav li {
  display: inline;
}

.retro-nav li::after {
  content: " ｜ ";
  color: #000;
}

.retro-nav li:last-child::after {
  content: "";
}

/* ==========================================================
   「動き」その1：マーキー風スクロールテキスト（上部お知らせ帯）
   ========================================================== */

.retro-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: #000000;
  color: #ffff00;
  font-weight: bold;
  padding: 4px 0;
  margin: 6px 0;
}

.retro-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 14s linear infinite;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================
   「動き」その2：NEW! 点滅バッジ
   ========================================================== */

.retro-blink {
  color: #ff0000;
  font-weight: bold;
  animation: retro-blink-anim 1s steps(1) infinite;
}

@keyframes retro-blink-anim {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ==========================================================
   「動き」その3：リンクのレトロホバー（下線が太くなる）
   ========================================================== */

.entry-list a,
.retro-nav a {
  transition: all 0.1s ease;
}

.entry-list a:hover,
.retro-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

/* ==========================================================
   投稿一覧
   ========================================================== */

.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-list li {
  margin: 6px 0;
}

.entry-date {
  color: #666666;
  font-size: 0.85em;
  margin-right: 6px;
}

/* ==========================================================
   フッター＆カウンター
   ========================================================== */

.site-footer {
  margin-top: 24px;
  border-top: 1px dashed #999999;
  padding-top: 8px;
  font-size: 0.9em;
}

/* ==========================================================
   クリックカウンター（Win95風の押せるボタン）
   ========================================================== */

.retro-counter-wrap {
  margin: 6px 0 10px;
}

.retro-counter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 6px 12px;
  font-family: "MS PGothic", "MS Pゴシック", sans-serif;
  font-size: 0.95em;
  cursor: pointer;
  user-select: none;
}

.retro-counter-button:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

.retro-counter-label {
  color: #000000;
  font-weight: bold;
}

.retro-counter {
  font-family: "Courier New", monospace;
  background: #000000;
  color: #00ff00;
  display: inline-block;
  padding: 2px 6px;
  letter-spacing: 2px;
  perspective: 200px;
}

.retro-counter.is-spinning {
  animation: retro-counter-spin 0.3s ease;
}

@keyframes retro-counter-spin {
  0%   { transform: rotateX(0deg); }
  50%  { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}

/* ==========================================================
   トップページ中央のカレー画像
   ========================================================== */

.curry-hero {
  text-align: center;
  margin: 16px 0;
}

.curry-hero img {
  display: inline-block;
  max-width: 360px;
  width: 100%;
  border: 2px solid #000000;
}

/* ==========================================================
   カーソル追従スパークル（お楽しみ要素／不要なら script.js 側で無効化可）
   ========================================================== */

.retro-sparkle {
  position: fixed;
  pointer-events: none;
  font-size: 14px;
  z-index: 9999;
  animation: sparkle-fade 0.8s ease-out forwards;
}

@keyframes sparkle-fade {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-20px) scale(1.4); }
}
