/* ===== リセット & ベース ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f5f5f0;
  --surface: #ffffff;
  --text: #111111;
  --text-sub: #666666;
  --border: #e0e0e0;
  --pop-pink: #ff6b9d;
  --pop-purple: #c44dff;
  --pop-blue: #6e8efb;
  --pop-green: #43e97b;
  --pop-orange: #ffa751;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 8px rgba(0,0,0,0.07);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.13);
  --font-ja: 'Zen Maru Gothic', 'Hiragino Maru Gothic Pro', sans-serif;
  --font-en: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== ヘッダー ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* 上段 */
.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--text);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.search-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color 0.2s;
}

.search-btn:hover { border-color: var(--text); }

/* ロゴ中央 */
.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  transition: opacity 0.2s;
}
.sns-link:hover { opacity: 0.75; }

/* ナビ */
.header-nav {
  border-bottom: 1px solid var(--border);
}

.header-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
}

.header-nav-link {
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.header-nav-link:hover { color: var(--text); }
.header-nav-link.active {
  color: var(--text);
  border-bottom-color: var(--pop-pink);
}

/* タグバー */
.tagbar {
  background: var(--text);
}

.tagbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.tagbar-item {
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.tagbar-item:hover { color: #fff; }

/* ===== タグ ===== */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tag-new {
  background: linear-gradient(135deg, var(--pop-pink), var(--pop-orange));
  color: #fff;
}

.tag-illust {
  background: linear-gradient(135deg, var(--pop-purple), var(--pop-blue));
  color: #fff;
}

.tag-blog {
  background: linear-gradient(135deg, var(--pop-green), #38f9d7);
  color: #111;
}

/* ===== 特集記事 ===== */
.feature {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.feature-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-image {
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
}

.feature-emoji {
  font-size: 6rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.feature-body {
  order: 1;
}

.feature-date {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--text-sub);
  margin: 8px 0;
}

.feature-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.4;
  margin: 12px 0 16px;
}

.feature-excerpt {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 24px;
}

.feature-btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--text);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 99px;
  transition: opacity 0.2s;
}

.feature-btn:hover { opacity: 0.75; }

/* ===== セクションヘッダー ===== */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}

.section-en {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.section-slash {
  font-size: 1.5rem;
  color: var(--text-sub);
  font-family: var(--font-en);
}

.section-ja {
  font-size: 0.9rem;
  color: var(--text-sub);
  font-weight: 700;
}

/* ===== 記事グリッド ===== */
.articles-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-sub);
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

.gallery-emoji {
  font-size: 2.5rem;
}

.card-image {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-emoji {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.card-body {
  padding: 16px;
}

.card-date {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--text-sub);
  margin: 6px 0 4px;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
}

.card-excerpt {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

.load-more {
  display: inline-block;
  padding: 10px 40px;
  border: 2px solid var(--text);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s;
}

.load-more:hover {
  background: var(--text);
  color: #fff;
}

/* ===== ギャラリー ===== */
.gallery-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 40px;
}

.gallery-section .section-header,
.gallery-section .load-more-wrap {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  max-width: 1280px;
  margin: 0 auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

/* ===== About ===== */
.about-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.about-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.about-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.about-name {
  font-size: 1.2rem;
  font-weight: 900;
  margin: 8px 0 12px;
}

.about-bio {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 20px;
}

.about-links {
  display: flex;
  gap: 12px;
}

.about-link {
  display: inline-block;
  padding: 6px 18px;
  border: 1.5px solid var(--text);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s;
}

.about-link:hover {
  background: var(--text);
  color: #fff;
}

/* ===== フッター ===== */
.footer {
  background: var(--text);
  color: #fff;
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 4px 16px;
  border-radius: 4px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-nav a {
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity 0.2s;
  font-weight: 600;
}

.footer-nav a:hover { opacity: 1; }

.footer-copy {
  font-size: 0.72rem;
  opacity: 0.35;
  font-family: var(--font-en);
}

/* ===== フルスクリーンメニュー ===== */
body.no-scroll { overflow: hidden; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.overlay-inner {
  text-align: center;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  transform: translateY(20px);
  transition: transform 0.35s;
}

.overlay.open .overlay-inner {
  transform: translateY(0);
}

/* 検索バー */
.overlay-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px;
  padding: 12px 20px;
  margin-bottom: 40px;
  color: #fff;
}

.overlay-search svg {
  flex-shrink: 0;
  stroke: rgba(255,255,255,0.5);
}

.overlay-search-input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-ja);
  font-size: 0.95rem;
  width: 100%;
}

.overlay-search-input::placeholder {
  color: rgba(255,255,255,0.4);
}

/* ナビリンク */
.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
}

.overlay-nav-link {
  display: block;
  padding: 16px 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s;
}

.overlay-nav-link:first-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.overlay-nav-link:hover {
  color: var(--pop-pink);
}

/* タグ */
.overlay-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.overlay-tag {
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}

.overlay-tag:hover {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}

/* SNS */
.overlay-sns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.overlay-sns-link {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.overlay-sns-link:hover {
  color: #fff;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .feature-inner { grid-template-columns: 1fr; gap: 24px; }
  .feature-image { order: 1; aspect-ratio: 16/9; }
  .feature-body { order: 2; }
  .feature-title { font-size: 1.5rem; }
  .article-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .header-nav.open { display: block; }
  .header-nav-inner { flex-direction: column; gap: 0; }
  .header-nav-link { display: block; border-bottom: 1px solid var(--border); }
  .about-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .article-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section-en { font-size: 1.5rem; }
}
