
:root {
  --bg: #f6f2e9;
  --surface: #ffffff;
  --text: #2f2f2f;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #8b5e3c;
  --accent-dark: #5c3b22;
  --shadow: 0 12px 30px rgba(0,0,0,0.08);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #faf7f1 0%, #f3ede2 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.work-detail-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.work-detail-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.work-detail-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.work-detail-logo span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.16em;
}
.header-back,
.work-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(92,59,34,0.2);
}
.work-detail-main { padding: 24px 0 56px; }
.work-detail-card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.work-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  background: #f8f6f1;
}
.work-detail-gallery img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  border-radius: 18px;
  background: #ebe6dc;
  border: 1px solid rgba(0,0,0,0.05);
}
.work-detail-body { padding: 30px 28px 32px; }
.work-category {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3e7d5;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}
.work-detail-body h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.25;
}
.work-detail-body p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.9;
  color: #3f3f46;
}
.work-detail-section + .work-detail-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.work-detail-section h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.work-points { margin: 0; padding-left: 1.2em; line-height: 1.9; }
.work-action { margin-top: 28px; }
@media (max-width: 760px) {
  .container { width: min(100% - 20px, 1000px); }
  .work-detail-header-inner {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .header-back,
  .work-back-button { width: 100%; }
  .work-detail-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .work-detail-gallery img {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 14px;
  }
  .work-detail-body {
    padding: 22px 18px 24px;
  }
}
