/*
Theme Name: Portfolio Starter
Theme URI: https://example.com
Author: Your Name
Description: Minimal portfolio theme inspired by andreirobu.com. Centered Header version.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: portfolio-starter
*/

/* ══════════════════════════════════════
   CSS Variables (defaults — overridden by Customizer)
   ══════════════════════════════════════ */
:root {
  --thumb-width: 340px;
  --thumb-ratio: 1 / 1;
  --grid-gap: 18px;

  --title-font: 'DM Sans', sans-serif;
  --title-size: 14px;
  --title-weight: 700;
  --title-color: #1a1a1a;

  --tag-font: 'DM Sans', sans-serif;
  --tag-size: 12.5px;
  --tag-weight: 400;
  --tag-color: #999999;

  --accent: #ff0000;
  --text: #1a1a1a;
  --gray: #8b8b8b;
  --bg: #ffffff;

  --font-heading: 'Crimson Pro', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

/* ══════════════════════════════════════
   Reset & Base
   ══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* ══════════════════════════════════════
   Animations
   ══════════════════════════════════════ */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: translateY(0) } }

/* ══════════════════════════════════════
   Header (Modified for Centering)
   ══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 36px; /* 上下の余白を少し増やしました */
  display: flex;
  flex-direction: column; /* 縦並びに変更 */
  justify-content: center;
  align-items: center;    /* 中央揃え */
  gap: 20px;              /* ロゴとメニューの間の距離 */
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

/* ロゴ画像のサイズと中央配置 */
.site-logo .custom-logo {
  max-width: 450px; /* ここでサイズを大きく調整しました */
  height: auto;
  display: block;
  margin: 0 auto;
}
.site-logo .custom-logo-link {
  display: block;
  transition: opacity 0.2s;
}
.site-logo .custom-logo-link:hover {
  opacity: 0.8;
}

.header-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-info {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--accent);
  transition: opacity 0.2s;
}
.nav-info:hover { opacity: 0.7; }
.nav-social {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray);
  transition: color 0.2s;
}
.nav-social:hover { color: var(--text); }
.social-group { display: flex; gap: 14px; }

/* ══════════════════════════════════════
   Hero
   ══════════════════════════════════════ */
.hero {
  padding: 30px 36px 22px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  animation: slideUp 0.5s ease both;
}
.hero h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.38;
  color: var(--text);
  max-width: 780px;
}
.hero .cta {
  color: var(--gray);
  font-style: italic;
  transition: color 0.2s;
}
.hero .cta:hover { color: #666; }

/* ══════════════════════════════════════
   Category Filter
   ══════════════════════════════════════ */
.cat-bar {
  padding: 0 36px 18px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  animation: slideUp 0.6s ease both;
}
.cat-btn {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 16px;
  border: none;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  border-radius: 20px;
  transition: color 0.2s, background 0.2s;