:root {
  --paper: #f7f5f0;
  --surface: #ffffff;
  --ink: #23221f;
  --muted: #6d6a63;
  --line: #dcd8cf;
  --accent: #1f4e79;
  --accent-ink: #ffffff;
  --error: #a3312a;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --gutter: 16px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.site-title { font-family: var(--serif); font-size: 15px; text-decoration: none; letter-spacing: 0.08em; }
.site-nav a { font-size: 13px; color: var(--muted); text-decoration: none; }

/* メインビジュアル */
.hero { padding: 56px 0 40px; text-align: center; }
.hero-eyebrow { font-size: 12px; letter-spacing: 0.3em; color: var(--muted); margin: 0 0 16px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 5.4vw, 36px); line-height: 1.6; margin: 0 0 24px; }
.hero-meta { font-size: 14px; color: var(--muted); margin: 0; }
.hero-lead { max-width: 36em; margin: 32px auto 0; font-size: 15px; text-align: left; }

/* 見出し */
.section { padding: 40px 0; }
.section-title { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 0 0 4px; letter-spacing: 0.1em; }
.section-sub { font-size: 13px; color: var(--muted); margin: 0 0 24px; }

/* 作品一覧 */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; } }

.card { all: unset; display: block; cursor: pointer; width: 100%; }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.card-title { font-family: var(--serif); font-size: 15px; margin: 12px 0 2px; line-height: 1.5; }
.card-meta { font-size: 12px; color: var(--muted); margin: 0; }
.card-price { font-size: 13px; margin: 4px 0 0; }

.artwork { aspect-ratio: 728 / 515; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.artwork img { width: 100%; height: 100%; object-fit: cover; }
.artwork-placeholder { font-size: 12px; color: var(--muted); }

/* 作品詳細（モーダル） */
.modal { border: 0; padding: 0; width: 100%; max-width: 760px; max-height: 100dvh; background: var(--surface); color: var(--ink); }
.modal::backdrop { background: rgb(20 20 18 / 0.6); }
@media (max-width: 767px) { .modal { margin: 0; max-width: none; height: 100dvh; } }
.modal-inner { padding: 16px var(--gutter) 32px; }
.modal-close { all: unset; cursor: pointer; display: block; margin-left: auto; font-size: 13px; color: var(--muted); padding: 8px 0; }
.modal-close:focus-visible { outline: 2px solid var(--accent); }
.modal .artwork { aspect-ratio: auto; min-height: 240px; border: 0; background: var(--paper); }
.modal h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 20px 0 4px; }

.spec { display: grid; grid-template-columns: 7em 1fr; gap: 6px 12px; margin: 16px 0 24px; font-size: 14px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }

/* ボタン */
.button { display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 15px; letter-spacing: 0.1em; padding: 14px 32px; text-decoration: none; text-align: center; cursor: pointer; min-width: 240px; }
.button:hover { opacity: 0.9; }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button[disabled] { opacity: 0.4; cursor: not-allowed; }
.button.secondary { background: transparent; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* フォーム */
.form { max-width: 640px; margin: 0 auto; }
.field { margin-bottom: 24px; }
.field label, .field legend { display: block; font-size: 14px; margin-bottom: 6px; }
.required { font-size: 11px; color: var(--error); margin-left: 6px; }
.optional { font-size: 11px; color: var(--muted); margin-left: 6px; }
.hint { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.error { font-size: 13px; color: var(--error); margin: 4px 0 0; }
.error:empty { display: none; }
.form-alert { border: 1px solid var(--error); color: var(--error); padding: 12px 16px; margin-bottom: 24px; font-size: 14px; }
.form-alert:empty { display: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notes { background: var(--surface); border: 1px solid var(--line); padding: 16px 20px; font-size: 14px; margin-bottom: 16px; }
.notes h3 { font-size: 14px; margin: 0 0 8px; }
.notes ul { margin: 0; padding-left: 1.2em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 4px; flex: none; }

.confirm { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.confirm div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.confirm dt { font-size: 12px; color: var(--muted); }
.confirm dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.closed { text-align: center; padding: 48px 0; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 0; font-size: 12px; color: var(--muted); }
.site-footer p { margin: 0 0 4px; }

.center { text-align: center; }
[hidden] { display: none !important; }

/* キービジュアル（画像があるときだけ表示） */
.hero-visual:empty { display: none; }
.hero-visual img { width: 100%; height: auto; }
.hero h1 span { display: block; }
.hero-cta { margin-top: 32px; }

/* 作家の草花の挿絵（飾り） */
.deco { pointer-events: none; user-select: none; height: auto; }
.hero-body { position: relative; }
.deco-hero-l { position: absolute; top: -12px; left: 0; width: 72px; }
.deco-hero-r { position: absolute; top: -4px; right: 4px; width: 72px; }
@media (min-width: 768px) {
  .deco-hero-l { width: 128px; left: 2%; }
  .deco-hero-r { width: 120px; right: 4%; }
}
.deco-section { display: block; width: 72px; margin-bottom: 8px; }
.deco-page { display: inline-block; width: 88px; margin-bottom: 4px; }
.flower-band { display: flex; justify-content: center; align-items: flex-end; gap: 4px 12px; margin: 48px auto 0; padding: 0 var(--gutter); max-width: 640px; }
.flower-band .band-item { width: auto; height: 76px; max-width: 22%; object-fit: contain; }
.flower-band .band-item:nth-child(even) { height: 60px; }
.site-footer .wrap { position: relative; }
.deco-footer { position: absolute; right: var(--gutter); bottom: -8px; width: 64px; opacity: 0.9; }
