/* 
  ノールブレンド・ホームスタイリングスタジオ
  Design System — Rooted in Japanese residential calm
  Natural materials, proportion, light, quiet presence.
*/

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

:root {
  --bg: #F8F6F3;
  --bg-warm: #F4F0E9;
  --surface: #FFFFFF;
  --surface-warm: #F5F2ED;
  --border: #E6E2D9;
  --border-soft: #D9D4C9;
  
  --text: #2C2C2C;
  --text-muted: #5F5C56;
  --text-soft: #706B63;
  
  --accent: #B89B6E;
  --accent-dark: #8F7551;
  --oak: #B89B6E;
  --walnut: #5C4632;
  --stone: #8A8278;
  --ink: #2C2C2C;
  
  --shadow-soft: 0 2px 10px rgba(44, 44, 44, 0.05);
  --shadow-card: 0 4px 18px rgba(44, 44, 44, 0.07);
  --shadow-elevated: 0 10px 30px rgba(44, 44, 44, 0.1);
  
  --radius: 6px;
  --radius-sm: 3px;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Noto Sans JP', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  
  --space-xs: 8px;
  --space-sm: 14px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.78;
  font-size: 15.5px;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.35rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* Header & Navigation */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
}

.logo img { height: 38px; width: auto; }
.logo-text { font-size: 17.5px; font-weight: 500; letter-spacing: 0.5px; }
.logo-sub { font-size: 9.5px; letter-spacing: 2.2px; color: var(--text-soft); margin-top: -3px; }

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.2s ease;
}

nav a:hover { color: var(--accent); }

.nav-btn {
  background: var(--ink);
  color: white;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--accent);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  flex-direction: column;
  gap: 10px;
}

.nav-mobile a {
  display: block;
  padding: 8px 0;
  font-size: 15px;
}

/* Hero */
.hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(248,246,243,0.55) 0%, rgba(248,246,243,0.82) 65%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  max-width: 620px;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6.5vw, 3.8rem);
}

.hero .lead {
  font-size: 17.5px;
  max-width: 460px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: white;
  padding: 14px 30px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.btn-small {
  padding: 9px 18px;
  font-size: 13px;
}

/* Sections */
section {
  padding: var(--space-2xl) 0;
}

.section-title {
  text-align: left;
  margin-bottom: var(--space-xl);
  max-width: 680px;
}

.section-title.centered {
  text-align: center;
  margin: 0 auto var(--space-xl);
}

.section-title h2 {
  margin-bottom: 10px;
}

.section-title .subtitle {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 560px;
}

/* Cards & Surfaces */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

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

.card-body {
  padding: 26px 24px;
}

.card-body h3 {
  margin-bottom: 9px;
  font-size: 1.15rem;
}

/* Inspiration Grid */
.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.inspiration-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 13;
  background: #ddd;
}

.inspiration-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.inspiration-item:hover img {
  transform: scale(1.035);
}

.inspiration-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 20px;
  background: linear-gradient(transparent, rgba(44,44,44,0.78));
  color: white;
}

.inspiration-overlay h3 {
  font-size: 1.02rem;
  margin-bottom: 3px;
  color: white;
}

.inspiration-overlay span {
  font-size: 12.5px;
  opacity: 0.85;
}

/* Room Cards */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 20px;
}

.room-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.room-card img {
  width: 100%;
  height: 198px;
  object-fit: cover;
}

.room-card .body {
  padding: 18px 18px 22px;
}

.room-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.room-card p {
  font-size: 13.8px;
  color: var(--text-muted);
  margin: 0;
}

/* Feature / Principle blocks */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.principle {
  background: var(--surface-warm);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
}

.principle h3 {
  margin-bottom: 11px;
  font-size: 1.1rem;
}

.principle p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Material & Swatch */
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.material {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.swatch {
  width: 100%;
  height: 96px;
  border-radius: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--border-soft);
}

.swatch.walnut { background: #5C4632; }
.swatch.oak { background: #B89B6E; }
.swatch.stone { background: #A8A29A; }
.swatch.ash { background: #D4C8B5; }
.swatch.ink { background: #2C2C2C; }
.swatch.linen { background: #EDE6D9; }

/* Article / Journal */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.article-card {
  cursor: pointer;
}

.article-card .meta {
  font-size: 12.5px;
  color: var(--text-soft);
  margin-top: 12px;
}

/* Process steps */
.process-step {
  display: flex;
  gap: 22px;
  margin-bottom: 32px;
}

.process-step:last-child { margin-bottom: 0; }

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
}

.step-content h4 {
  margin-bottom: 6px;
}

/* Light study */
.light-study {
  background: var(--surface-warm);
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.light-bar {
  height: 6px;
  background: linear-gradient(to right, #F8F6F3, #B89B6E, #5C4632);
  border-radius: 999px;
  margin: 18px 0;
}

/* Footer */
footer {
  background: var(--ink);
  color: #C9C3B5;
  padding: 62px 0 36px;
  font-size: 14px;
}

footer a { color: #C9C3B5; }
footer a:hover { color: white; }

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
  gap: 42px;
}

.footer-col h4 {
  color: white;
  font-size: 13px;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  nav ul { display: none; }
  .hamburger { display: flex; }
  .nav-mobile.active { display: flex; }
  
  .hero { min-height: 72vh; }
  
  .inspiration-grid,
  .room-grid,
  .material-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  .principle-grid {
    grid-template-columns: 1fr;
  }
  
  section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .hero-content { max-width: 100%; }
  .btn { padding: 13px 24px; font-size: 14px; }
}

/* Subtle theme-specific animations */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reading experience for articles */
.article-body {
  max-width: 720px;
  font-size: 15.8px;
  line-height: 1.9;
}

.article-body h2 {
  font-size: 1.45rem;
  margin: 42px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.article-body p { max-width: 66ch; }

/* Table for planning / specs */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.spec-table th,
.spec-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14.2px;
}

.spec-table th {
  font-weight: 500;
  color: var(--text-soft);
  width: 38%;
}

/* Proportion visual helper */
.proportion {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 18px 0;
}

.prop-bar {
  background: var(--accent);
  border-radius: 2px;
}

.prop-bar.low { height: 34px; width: 38%; }
.prop-bar.med { height: 72px; width: 28%; }
.prop-bar.high { height: 110px; width: 34%; }

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 13px 26px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 3000;
  display: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  max-width: 960px;
  width: 100%;
  overflow: hidden;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 720px) {
  .modal-body { grid-template-columns: 1fr; }
}