@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600;700&family=Noto+Sans+JP:wght@300;400;500;900&family=Yusei+Magic&display=swap');

:root {
  --bg: #0d0d0d;
  --bg-elevated: #161616;
  --text: #e8e6e1;
  --text-muted: #8a8680;
  --accent: #b08e5c;
  --border: #2a2826;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover { opacity: 0.55; }

img { max-width: 100%; display: block; }

/* HEADER */
header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
}

.logo {
  font-family: 'Helvetica Neue', 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 13px;
  letter-spacing: 0.32em;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}
nav a {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}
nav a:hover { color: var(--text); opacity: 1; }

/* MAIN */
main { min-height: 70vh; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 80px 40px; }

h1, h2, h3, h4 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
h1 { font-size: 44px; margin-bottom: 24px; letter-spacing: 0.02em; }
h2 { font-size: 28px; margin: 56px 0 20px; }
h3 { font-size: 20px; margin: 36px 0 14px; }
p { margin-bottom: 22px; }
em { color: var(--accent); font-style: normal; }

/* HERO */
.hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.5) 0%, rgba(13,13,13,0.85) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 0 24px; }
.hero h1 {
  font-family: 'Yusei Magic', 'Noto Sans JP', sans-serif;
  font-size: 76px;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  font-weight: 400;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
}
.hero .subtitle {
  font-size: 13px;
  letter-spacing: 0.45em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* SECTION HEADING */
.section-heading {
  text-align: center;
  margin: 100px 0 60px;
}
.section-heading .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-heading h2 {
  font-size: 36px;
  margin: 0;
  letter-spacing: 0.05em;
}

/* POSTS GRID */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 56px;
  margin-bottom: 100px;
}
.post-card { display: block; cursor: pointer; }
.post-card .img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  margin-bottom: 22px;
  transition: transform 0.5s ease, opacity 0.3s;
  overflow: hidden;
}
.post-card:hover .img { transform: scale(1.02); opacity: 0.92; }
.post-card .meta {
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.post-card .title {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 600;
  margin-bottom: 10px;
}
.post-card .excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ARTICLE */
.article-hero {
  height: 65vh;
  min-height: 460px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--bg) 100%);
}
.article-meta {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 60px 0 18px;
}
article.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px 80px;
}
article.post h1 {
  text-align: center;
  margin-bottom: 60px;
  font-size: 38px;
}
article.post p, article.post li { font-size: 16px; }
article.post ul { padding-left: 24px; margin-bottom: 22px; }
article.post img {
  width: 100%;
  margin: 40px 0;
  border-radius: 2px;
}
article.post figure { margin: 40px 0; }
article.post figcaption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0.1em;
}

/* AD SLOT */
.ad-slot {
  margin: 60px auto;
  max-width: 720px;
  padding: 32px;
  border: 1px dashed var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* FOOTER */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 40px 40px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 80px;
}
footer.site-footer .links {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
footer.site-footer a { color: var(--text-muted); }
footer.site-footer a:hover { color: var(--text); opacity: 1; }

/* FORM */
.contact-form { display: grid; gap: 20px; margin-top: 40px; }
.contact-form label {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  margin-top: 6px;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button {
  background: var(--text);
  color: var(--bg);
  border: 0;
  padding: 16px 32px;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  justify-self: start;
}
.contact-form button:hover { background: var(--accent); color: var(--bg); }

/* RESPONSIVE */
@media (max-width: 768px) {
  header.site-header { padding: 16px 20px; }
  nav ul { gap: 18px; }
  nav a { font-size: 10px; letter-spacing: 0.2em; }
  .container, .narrow { padding-left: 20px; padding-right: 20px; }
  .narrow { padding-top: 60px; padding-bottom: 60px; }
  .hero h1 { font-size: 42px; }
  .hero .subtitle { font-size: 11px; letter-spacing: 0.3em; }
  .section-heading { margin: 60px 0 40px; }
  .section-heading h2 { font-size: 26px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  article.post { padding: 0 20px 60px; }
  article.post h1 { font-size: 28px; }
  .posts-grid { gap: 40px; }
}
