/*
Theme Name: À la Table en Vie
Theme URI: https://earjapan.com
Author: Tsukasa Watanabe
Author URI: https://earjapan.com
Description: オフィシャルサイト風カスタムテーマ — By Tsukasa Watanabe
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: earjapan
*/

/* ── RESET & ROOT ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:         #0e0c0a;
  --bg2:        #141210;
  --bg3:        #1a1714;
  --surface:    #1f1c18;
  --gold:       #b89a5a;
  --gold-light: #d4b87a;
  --gold-dim:   #7a6438;
  --white:      #f0ede8;
  --gray:       #8a8478;
  --gray-dim:   #4a4640;
  --border:     rgba(184,154,90,0.18);
  --nav-h:      60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(14,12,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-logo { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.site-logo .logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-weight: 400;
  letter-spacing: 0.18em; color: var(--white); line-height: 1;
}
.site-logo .logo-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 9px; font-weight: 200;
  letter-spacing: 0.3em; color: var(--gold);
}

.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gray); text-decoration: none;
  transition: color 0.25s;
}
.site-nav a:hover { color: var(--gold-light); }
.site-nav .nav-contact {
  border: 1px solid var(--gold-dim);
  padding: 6px 16px; color: var(--gold) !important;
  transition: all 0.25s !important;
}
.site-nav .nav-contact:hover { background: var(--gold-dim); color: var(--white) !important; }

.hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer;
}
.hamburger span { display: block; width: 22px; height: 1px; background: var(--gray); transition: all 0.3s; }

.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  z-index: 99; padding: 28px 40px;
  flex-direction: column; gap: 22px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gray); text-decoration: none;
}

/* ── HERO (トップページのみ) ── */
.hero {
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 80px 64px; position: relative; z-index: 2;
}
.hero-left::before {
  content: ''; position: absolute;
  left: 40px; top: 60px; bottom: 60px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim), transparent);
}
.hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.8s 0.3s forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 300; line-height: 1.05;
  color: var(--white); margin-bottom: 12px;
  opacity: 0; animation: fadeUp 0.9s 0.5s forwards;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-subtitle {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px; font-weight: 200;
  letter-spacing: 0.25em; color: var(--gray); margin-bottom: 48px;
  opacity: 0; animation: fadeUp 0.9s 0.7s forwards;
}
.hero-profile-mini {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 32px; border-top: 1px solid var(--border);
  opacity: 0; animation: fadeUp 0.9s 0.9s forwards;
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 400; letter-spacing: 0.15em; color: var(--white);
}
.hero-role { font-size: 11px; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; }

.hero-right {
  position: relative; background: var(--bg3); overflow: hidden;
}
.hero-right::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(184,154,90,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(184,154,90,0.04) 0%, transparent 50%);
}
.hero-image-wrap {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; position: relative; z-index: 1;
}
.hero-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.hero-scroll {
  position: absolute; bottom: 40px; left: 40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gray-dim); display: flex; align-items: center; gap: 16px;
  opacity: 0; animation: fadeIn 1s 1.2s forwards;
}
.hero-scroll::after {
  content: ''; display: block;
  width: 48px; height: 1px; background: var(--gold-dim);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ── SECTIONS ── */
.site-main { padding-top: 0; }

.content-section {
  padding: 96px 64px;
  border-top: 1px solid var(--border);
}
.section-bg-alt { background: var(--bg2); }

.section-header {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 56px;
}
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300;
  letter-spacing: 0.05em; color: var(--white);
}
.view-all {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid var(--gold-dim); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s; white-space: nowrap; align-self: flex-end;
}
.view-all:hover { color: var(--gold-light); border-color: var(--gold); }

/* ── POSTS GRID ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.post-card {
  display: block; text-decoration: none;
  color: var(--white); background: var(--surface);
  overflow: hidden; position: relative; transition: background 0.3s;
}
.post-card:hover { background: var(--bg3); }
.post-card.featured { grid-column: span 2; }

.post-thumb { aspect-ratio: 16/9; background: var(--bg3); overflow: hidden; position: relative; }
.post-card.featured .post-thumb { aspect-ratio: 16/7; }
.post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease; filter: brightness(0.85);
}
.post-card:hover .post-thumb img { transform: scale(1.04); }

.post-body { padding: 28px 28px 32px; }
.post-cat {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.post-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px; font-weight: 300;
  line-height: 1.75; letter-spacing: 0.03em;
  color: var(--white); margin-bottom: 12px;
}
.post-card.featured .post-title { font-size: 18px; }
.post-excerpt {
  font-size: 12px; line-height: 2; color: var(--gray);
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; color: var(--gray-dim);
  letter-spacing: 0.1em; margin-top: 16px;
}

/* ── 通常の投稿一覧 (archive) ── */
.posts-list { display: flex; flex-direction: column; gap: 2px; }
.post-list-item {
  display: flex; gap: 32px; align-items: flex-start;
  text-decoration: none; color: var(--white);
  background: var(--surface); padding: 28px;
  transition: background 0.3s;
}
.post-list-item:hover { background: var(--bg3); }
.post-list-thumb { width: 180px; flex-shrink: 0; aspect-ratio: 16/9; overflow: hidden; background: var(--bg3); }
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); transition: transform 0.5s; }
.post-list-item:hover .post-list-thumb img { transform: scale(1.04); }
.post-list-body { flex: 1; }

/* ── 単記事 (single) ── */
.single-header { padding: 80px 64px 48px; border-top: 1px solid var(--border); }
.single-cat {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.single-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3vw, 36px); font-weight: 300;
  line-height: 1.7; letter-spacing: 0.05em;
  color: var(--white); margin-bottom: 16px;
}
.single-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px; color: var(--gray-dim); letter-spacing: 0.15em;
}
.single-thumb { width: 100%; max-height: 520px; overflow: hidden; }
.single-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }
.single-content {
  padding: 64px;
  max-width: 760px;
}
.single-content p {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px; font-weight: 300;
  line-height: 2.4; color: var(--gray);
  margin-bottom: 28px;
}
.single-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 300;
  letter-spacing: 0.05em; color: var(--white);
  margin: 48px 0 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.single-content h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px; font-weight: 300;
  color: var(--white); margin: 36px 0 16px;
}
.single-content a { color: var(--gold); text-decoration: underline; }
.single-content blockquote {
  border-left: 2px solid var(--gold-dim);
  padding: 16px 24px; margin: 32px 0;
  color: var(--gray);
}
.single-content img { width: 100%; margin: 32px 0; }

/* ── PROFILE ── */
.profile-inner {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 80px; align-items: center;
}
.profile-img-wrap {
  aspect-ratio: 3/4; background: var(--surface);
  position: relative; overflow: hidden;
}
.profile-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid var(--border); pointer-events: none;
}
.profile-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-name-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 12px; font-weight: 200;
  letter-spacing: 0.4em; color: var(--gold); margin-bottom: 8px;
}
.profile-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300;
  letter-spacing: 0.05em; line-height: 1;
  color: var(--white); margin-bottom: 6px;
}
.profile-name-read {
  font-family: 'Noto Serif JP', serif;
  font-size: 11px; font-weight: 200;
  color: var(--gray); letter-spacing: 0.2em; margin-bottom: 40px;
}
.profile-bio {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px; font-weight: 300;
  line-height: 2.2; color: var(--gray); margin-bottom: 40px;
}
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table tr { border-top: 1px solid var(--border); }
.profile-table tr:last-child { border-bottom: 1px solid var(--border); }
.profile-table td { padding: 14px 0; font-size: 12px; font-weight: 300; letter-spacing: 0.05em; }
.profile-table td:first-child {
  color: var(--gold); width: 120px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
}
.profile-table td:last-child { color: var(--gray); }

/* ── CATEGORIES ── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.cat-card {
  display: block; text-decoration: none;
  background: var(--surface); padding: 40px 32px;
  position: relative; overflow: hidden;
  transition: background 0.3s; border-bottom: 2px solid transparent;
}
.cat-card:hover { background: var(--bg3); border-bottom-color: var(--gold); }
.cat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300;
  color: var(--gold-dim); line-height: 1;
  margin-bottom: 20px; opacity: 0.4;
}
.cat-label-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-weight: 400;
  letter-spacing: 0.1em; color: var(--white); margin-bottom: 4px;
}
.cat-label-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 11px; font-weight: 200;
  letter-spacing: 0.2em; color: var(--gray);
}

/* ── CONTACT BAND ── */
.contact-band {
  background: var(--surface); padding: 80px 64px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
}
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 300;
  letter-spacing: 0.05em; color: var(--white); margin-bottom: 8px;
}
.contact-sub { font-size: 12px; color: var(--gray); letter-spacing: 0.1em; }
.contact-btn {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bg); background: var(--gold);
  padding: 16px 40px; text-decoration: none;
  white-space: nowrap; transition: background 0.25s;
}
.contact-btn:hover { background: var(--gold-light); }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg2); padding: 48px 64px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; font-weight: 400;
  letter-spacing: 0.2em; color: var(--gray);
}
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gray-dim); text-decoration: none; transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
  font-size: 10px; color: var(--gray-dim); letter-spacing: 0.1em;
  width: 100%; padding-top: 24px;
  border-top: 1px solid var(--border); margin-top: 24px;
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .site-header { padding: 0 24px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { display: none; }
  .hero-left { padding: 60px 24px 60px 48px; }
  .hero-left::before { left: 24px; }
  .hero-scroll { left: 24px; }
  .content-section { padding: 64px 24px; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-column: span 1; }
  .profile-inner { grid-template-columns: 1fr; gap: 40px; }
  .profile-img-wrap { max-width: 260px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-band { flex-direction: column; align-items: flex-start; padding: 60px 24px; }
  .site-footer { padding: 40px 24px; }
  .single-header { padding: 60px 24px 40px; }
  .single-content { padding: 40px 24px; }
  .post-list-item { flex-direction: column; }
  .post-list-thumb { width: 100%; }
}
.reveal {
  opacity: 1 !important;
  transform: none !important;
}