/* ===== カラー設定（ベージュ系） ===== */
:root {
  --bg-light: #f6f1e7;         /* ペールベージュ（背景） */
  --bg-card: #fffdf8;          /* 白に近いベージュ */
  --bg-soft: #f0e7db;          /* サイドや囲みの淡いベージュ */
  --accent: #caa37a;           /* くすみブラウンベージュ */
  --accent-light: #e7cdb2;     /* 明るめアクセント */
  --text-main: #5e4a3b;        /* メイン文字 */
  --shadow-soft: rgba(150,110,80,0.15);
}

/* ===== 全体 ===== */
body {
  font-family: "Yu Gothic", sans-serif;
  background: var(--bg-light);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

/* ? ===== 背景の猫模様：淡く優しいトーンに ===== */
body::before {
  content: "";
  background: url("https://ik.imagekit.io/Kwatchstore/images/cats/cat_paw_dark.png") repeat;
  opacity: 0.06;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* ===== レイアウト ===== */
.container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  gap: 2rem;
}

/* ===== メイン ===== */
.content {
  flex: 3;
}

/* ===== サイドメニュー（柔らかいベージュボックス） ===== */
.sidebar {
  flex: 1;
  background: var(--bg-soft);
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px var(--shadow-soft);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar details {
  margin-bottom: 1rem;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 0.7rem;
  box-shadow: 0 3px 8px var(--shadow-soft);
}

.sidebar summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--accent);
  font-size: 1.1rem;
}

.sidebar a {
  color: var(--accent);
  text-decoration: none;
}

.sidebar a:hover {
  color: var(--accent-light);
}

/* ===== ヘッダー ===== */
.header {
  text-align: center;
  padding: 2.5rem 1rem;
}

.header h1 a {
  color: var(--accent);
  font-size: 2.4rem;
  font-weight: bold;
  text-decoration: none;
}

.header p {
  margin-top: 0.8rem;
  font-size: 1.1rem;
  color: #7e6a58;
}

/* ===== カード一覧 ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* aタグカード */
.card {
  display: block;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 1.2rem;
  flex: 1 1 calc(30% - 1rem);
  box-shadow: 0 6px 12px var(--shadow-soft);
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* タイトル */
.card-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

/* 日付 */
.card-date {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ホバー効果：ふわっと */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px var(--shadow-soft);
}

/* ===== 見出し ===== */
.links h2 {
  color: var(--accent);
  border-left: 5px solid var(--accent);
  padding-left: 0.6rem;
  font-size: 1.6rem;
}

/* ===== フッター ===== */
.footer {
  text-align: center;
  margin: 3rem 0;
  color: #8b7a6b;
}

.footer img {
  opacity: 0.85;
}

.footer img:hover {
  opacity: 1;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    position: static;
  }
}

/* 年セパレーター */
.year-separator {
  font-weight: bold;
  color: var(--accent);
  margin-top: 1rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid var(--accent-light);
}

/* ===== タイトルバナー ===== */
.header-banner {
  position: relative;
  width: 100%;
  height: 260px;   /* バナーの高さ（好みで変更） */
  background: url("https://ik.imagekit.io/Kwatchstore/images/cats/cat_bana01.jpg")
              center/cover no-repeat;  /* ← 好きな画像に変更 */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 全体を少し暗くして文字を読みやすくする */
.banner-overlay {
  background: rgba(0,0,0,0.25);  /* 黒透明。不要なら削除可 */
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

/* タイトル文字 */
.header-banner h1 {
  font-size: 2.6rem;
  margin: 0;
  color: white;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* サブメッセージ */
.header-banner p {
  font-size: 1.1rem;
  margin-top: 0.4rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.back-link:hover {
    text-decoration: underline;
}

.back-link {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    color: #af7217;
    box-shadow: 0 0 5px rgba(0,0,0,0.15);
    text-decoration: none;
    z-index: 1000;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}
.photo-gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
