/* ====================================================
   下山 / Shimoyama — Portfolio Site
   Common Stylesheet
   ==================================================== */

/* View Transitions API — MPA cross-document fade */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 0.25s ease both;
}
::view-transition-new(root) {
  animation: fade-in 0.35s ease both;
}

@keyframes fade-out {
  to { opacity: 0; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ====================================================
   Variables
   ==================================================== */
:root {
  --bg: #f5f3ee;
  --bg-card: #ffffff;
  --bg-card-soft: #faf8f3;
  --border: #d8d4cc;
  --border-soft: #e5e1d8;
  --border-strong: #b8b4ac;
  
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-dim: #999991;
  --text-faint: #b8b4ac;
  
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-bg-hover: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.7);
  
  --serif-jp: 'Shippori Mincho', 'Noto Serif JP', serif;
  --serif-en: 'Cormorant Garamond', 'Shippori Mincho', serif;
  --sans-jp: 'Noto Sans JP', sans-serif;
  --num: 'Cormorant Garamond', serif;
  
  --content-max: 880px;
  --nav-width: 240px;
  --content-pad-left: 320px;
}

/* ====================================================
   Reset
   ==================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

/* ====================================================
   Glass Navigation (left fixed)
   ==================================================== */
.glass-nav {
  position: fixed;
  top: 32px;
  left: 32px;
  bottom: 32px;
  width: var(--nav-width);
  z-index: 100;
  
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 28px;
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.8) inset,
    0 12px 40px rgba(60, 50, 30, 0.08),
    0 2px 8px rgba(60, 50, 30, 0.04);
  
  transition: background 0.3s ease;
}

/* Glass shine overlay */
.glass-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0.1) 30%,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.15) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle inner edge highlight */
.glass-nav::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 0;
}

.glass-nav > * {
  position: relative;
  z-index: 1;
}

/* Brand */
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-jp {
  font-family: var(--serif-jp);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
}

.brand-en {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* Nav items */
.nav-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  font-family: var(--serif-en);
  font-size: 22px;
  font-style: italic;
  color: var(--text-muted);
  transition: color 0.25s ease, padding-left 0.25s ease;
  position: relative;
}

.nav-link .num {
  font-family: var(--serif-en);
  font-size: 11px;
  font-style: normal;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  width: 20px;
}

.nav-link .label {
  flex: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 34px;
  bottom: 8px;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text);
  padding-left: 4px;
}

.nav-link:hover::after {
  width: 32px;
}

.nav-link.active {
  color: var(--text);
}

.nav-link.active .num {
  color: var(--text);
}

.nav-link.active::after {
  width: 40px;
}

/* Nav footer */
.nav-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.nav-footer-label {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}

.nav-footer a {
  font-family: var(--serif-en);
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-footer a:hover {
  color: var(--text);
}

/* ====================================================
   Main content area
   ==================================================== */
.main {
  margin-left: var(--content-pad-left);
  padding: 64px 64px 96px 0;
  min-height: 100vh;
  max-width: calc(var(--content-max) + var(--content-pad-left) + 64px);
}

/* Page header (small, above content) */
.page-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-head-num {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.page-head-title {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 42px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
}

.page-head-jp {
  font-family: var(--serif-jp);
  font-size: 14px;
  color: var(--text-muted);
  margin-left: auto;
  letter-spacing: 0.15em;
}

/* ====================================================
   Works
   ==================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.work-card {
  cursor: pointer;
  transition: transform 0.4s ease;
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 14px;
  color: var(--text-faint);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  transition: border-color 0.3s ease;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card:hover .work-thumb {
  border-color: var(--border-strong);
}

.work-meta {
  padding: 0 4px;
}

.work-category {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.work-title {
  font-family: var(--serif-jp);
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.work-credit {
  font-family: var(--sans-jp);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Loading state */
.works-loading {
  grid-column: 1 / -1;
  padding: 80px 0;
  text-align: center;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 16px;
  color: var(--text-dim);
}

/* ====================================================
   Profile
   ==================================================== */
.profile {
  max-width: 720px;
}

.profile-hero {
  margin-bottom: 56px;
}

.profile-name {
  font-family: var(--serif-jp);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.profile-name-en {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 22px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.profile-tagline {
  font-family: var(--serif-jp);
  font-size: 22px;
  line-height: 1.7;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 20px;
  max-width: 600px;
}

.profile-role {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.profile-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.profile-section-label {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.profile-text {
  font-family: var(--serif-jp);
  font-size: 16px;
  line-height: 2;
  color: var(--text);
  margin-bottom: 16px;
}

.profile-text.muted {
  font-family: var(--sans-jp);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.02em;
}

.profile-list {
  font-family: var(--sans-jp);
  font-size: 14px;
  line-height: 2.1;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.profile-list .sep {
  color: var(--text-faint);
  margin: 0 8px;
}

.profile-handle {
  display: inline-block;
  padding: 12px 22px;
  margin-top: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 15px;
  color: var(--text);
  transition: all 0.25s ease;
}

.profile-handle:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-1px);
}

/* ====================================================
   Price
   ==================================================== */
.price-category {
  margin-bottom: 64px;
}

.price-category-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.price-category-title-en {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
}

.price-category-title-jp {
  font-family: var(--sans-jp);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* 横長カード型レイアウト */
.price-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 24px 28px;
  transition: border-color 0.2s ease;
}

.price-card:hover {
  border-color: var(--border);
}

.price-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.price-card-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.price-name {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}

.price-name-jp {
  font-family: var(--sans-jp);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.price-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
  flex-shrink: 0;
}

.price-value {
  font-family: var(--num);
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  letter-spacing: 0.01em;
}

.price-value .from {
  font-family: var(--num);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 1px;
}

.price-tax {
  font-family: var(--sans-jp);
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}

.price-desc {
  font-family: var(--sans-jp);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
  font-weight: 400;
}

.price-note {
  font-family: var(--sans-jp);
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
  text-align: right;
}

/* Options box */
.options {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 32px 36px;
  margin-bottom: 64px;
}

.options-title {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--text);
}

.options-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 40px;
}

.option-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--sans-jp);
  font-size: 13px;
}

.option-item .label {
  color: var(--text-muted);
}

.option-item .value {
  font-family: var(--num);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Campaign — glass treatment */
.campaign {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 36px 40px;
  margin-bottom: 64px;
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.7) inset,
    0 8px 24px rgba(60, 50, 30, 0.05);
  overflow: hidden;
}

.campaign::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
}

.campaign > * { position: relative; }

.campaign-label {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.campaign-title {
  font-family: var(--serif-jp);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}

.campaign-note {
  font-family: var(--serif-jp);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.campaign-items {
  display: flex;
  flex-direction: column;
}

.campaign-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
}

.campaign-item-name {
  font-family: var(--sans-jp);
  font-size: 15px;
  font-weight: 500;
}

.campaign-prices {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.campaign-from {
  font-family: var(--num);
  font-style: italic;
  font-size: 18px;
  color: var(--text-dim);
  text-decoration: line-through;
}

.campaign-arrow {
  color: var(--text-faint);
  font-family: var(--serif-en);
}

.campaign-to {
  font-family: var(--num);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
}

/* Workflow */
.workflow {
  margin-bottom: 64px;
}

.workflow-title {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 28px;
  margin-bottom: 28px;
}

.workflow-list {
  display: flex;
  flex-direction: column;
}

.workflow-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}

.workflow-step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 32px;
  color: var(--text-faint);
  line-height: 1;
  padding-top: 4px;
}

.step-title {
  font-family: var(--sans-jp);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.step-desc {
  font-family: var(--sans-jp);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.85;
}

/* Notes */
.notes {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 36px 40px;
}

.notes-title {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 24px;
  margin-bottom: 28px;
}

.notes-list {
  display: flex;
  flex-direction: column;
}

.note-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}

.note-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.note-item:first-child {
  padding-top: 0;
}

.note-heading {
  font-family: var(--sans-jp);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.note-body {
  font-family: var(--sans-jp);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ====================================================
   Contact
   ==================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}

.contact-intro {
  font-family: var(--serif-jp);
  font-size: 16px;
  line-height: 2;
  color: var(--text);
  margin-bottom: 36px;
}

.contact-direct {
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.contact-direct-label {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: padding-left 0.25s ease;
}

.contact-link:hover {
  padding-left: 4px;
}

.contact-link .label {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.contact-link .value {
  font-family: var(--serif-en);
  font-size: 15px;
  color: var(--text);
}

/* Form (glass treatment) */
.form-wrap {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 40px;
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.7) inset,
    0 8px 24px rgba(60, 50, 30, 0.05);
  position: relative;
  overflow: hidden;
}

.form-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

.form-wrap > * { position: relative; }

.form-row {
  margin-bottom: 22px;
}

.form-row.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-row label {
  display: block;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.form-row label .req {
  color: var(--text);
  margin-left: 2px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--sans-jp);
  font-size: 14px;
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-faint);
  font-family: var(--sans-jp);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.form-row select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='%236b6b6b'%3E%3Cpath d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none;
  appearance: none;
}

.submit-btn {
  width: 100%;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 16px;
  border-radius: 4px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 16px;
  cursor: pointer;
  margin-top: 12px;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.88;
}

/* ====================================================
   Modal (Works detail)
   ==================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 35, 28, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  box-shadow: 0 20px 60px rgba(60, 50, 30, 0.15);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  font-family: var(--serif-en);
  font-size: 16px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--bg-card);
  border-color: var(--border-strong);
}

.modal-preview {
  aspect-ratio: 16 / 9;
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-family: var(--serif-en);
  font-style: italic;
  overflow: hidden;
}

.modal-fragments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.modal-fragment {
  aspect-ratio: 16 / 10;
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 12px;
  overflow: hidden;
}

.modal-fragment video,
.modal-fragment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-category {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.modal-title {
  font-family: var(--serif-jp);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.modal-credit {
  font-family: var(--sans-jp);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.modal-desc {
  font-family: var(--sans-jp);
  font-size: 14px;
  line-height: 2;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* ====================================================
   Footer (small, only on long pages)
   ==================================================== */
.page-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ====================================================
   Responsive
   ==================================================== */
@media (max-width: 1100px) {
  :root {
    --nav-width: 220px;
    --content-pad-left: 290px;
  }
  
  .main {
    padding-right: 48px;
  }
}

@media (max-width: 900px) {
  :root {
    --content-pad-left: 64px;
  }
  
  .glass-nav {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: auto;
    width: auto;
    padding: 20px 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px;
  }
  
  .nav-items {
    flex-direction: row;
    gap: 16px;
  }
  
  .nav-link {
    font-size: 16px;
    padding: 4px 0;
  }
  
  .nav-link .num { display: none; }
  .nav-link::after { display: none; }
  
  .nav-footer { display: none; }
  
  .main {
    margin-left: 0;
    padding: 140px 32px 80px 32px;
    max-width: none;
  }
  
  .works-grid { grid-template-columns: 1fr; }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .options-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .glass-nav {
    padding: 16px 20px;
  }
  
  .brand-en { display: none; }
  .brand-jp { font-size: 20px; }
  
  .nav-items {
    gap: 12px;
  }
  
  .nav-link {
    font-size: 14px;
  }
  
  .main {
    padding: 120px 20px 60px 20px;
  }
  
  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .page-head-title { font-size: 32px; }
  .page-head-jp { margin-left: 0; }
  
  .profile-name { font-size: 40px; }
  .profile-tagline { font-size: 18px; }
  
  .form-row.split { grid-template-columns: 1fr; }
  
  .modal {
    padding: 32px 24px;
  }
  
  .modal-fragments { grid-template-columns: 1fr; }
  
  .price-amount { padding-left: 16px; }
  .price-value { font-size: 22px; }
  
  .options, .notes, .form-wrap, .campaign {
    padding: 24px;
  }
  
  .workflow-step {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }
  
  .step-num { font-size: 22px; }
}
