:root {
  --bg: #fdf6f7;
  --text: #4a3a3f;
  --accent: #d0476b;
  --line: #e8909f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.9;
}
a { color: inherit; text-decoration: none; }

.header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  padding: 12px 20px;
  background: #e0405f;
  color: #fff;
}
.logo { font-size: 1.2rem; letter-spacing: .1em; font-weight: 700; color: var(--accent); background: #fff; padding: 2px 16px; border-radius: 999px; }
.header nav { display: flex; gap: 16px; font-size: .9rem; flex-wrap: wrap; }
.header nav a:hover { opacity: .75; }

.hero { text-align: center; padding: 90px 20px; background: #fae3e8; }
.hero-sub { letter-spacing: .15em; color: var(--accent); margin: 0; font-size: 1.3rem; font-weight: 700; }
.hero h1 { font-size: clamp(.85rem, 3.6vw, 1.4rem); font-weight: 500; margin: 16px 0 28px; }

.section { max-width: 960px; margin: 0 auto; padding: 64px 20px; }
.section h2 { text-align: center; letter-spacing: .15em; font-weight: 500; margin: 0 0 32px; }
.about p, #contact p { text-align: center; }
#contact p { margin: 16px 0; }

.btn {
  display: inline-block; padding: 10px 28px;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent); border-radius: 999px;
  cursor: pointer; font: inherit; margin: 4px;
}
.btn-line { background: transparent; color: var(--accent); }

.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: inherit; padding: 4px 16px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--text);
}
.filters button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.item { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.thumb { aspect-ratio: 1; background-size: contain; background-position: center; background-repeat: no-repeat; background-color: var(--frame, var(--line)); border: 8px solid var(--frame, var(--line)); border-radius: 6px; transition: transform .2s; }
.item:hover .thumb { transform: translateY(-4px); }
.thumb { position: relative; overflow: hidden; }
.thumb-in { position: absolute; inset: 0; background-size: contain; background-position: center; background-repeat: no-repeat; }
.thumb.blurred .thumb-in { filter: blur(22px); transform: scale(1.15); }
.cp-item { display: flex; flex-direction: column; gap: 8px; }
.cp-item .item { display: block; width: 100%; }
.cp-title { margin: 0; font-weight: 700; font-size: .95rem; text-align: center; }
.cp-toggle { align-self: center; padding: 6px 18px; font-size: .9rem; }
.item span { display: block; margin-top: 6px; font-size: .9rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.card:hover { border-color: var(--accent); }
.card h3 { margin: 0 0 8px; font-weight: 700; }
.card p { margin: 0; font-size: .9rem; }

.footer { text-align: center; padding: 28px; font-size: .8rem; border-top: 1px solid var(--line); }

.lightbox {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: rgba(48, 28, 34, .7); padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox-body { background: var(--bg); border-radius: 8px; padding: 20px; max-width: 480px; width: 100%; max-height: 90vh; overflow: auto; text-align: center; }
.lightbox-img { aspect-ratio: 1; background-size: contain; background-position: center; background-repeat: no-repeat; background-color: var(--frame, var(--line)); border: 10px solid var(--frame, var(--line)); border-radius: 6px; }
.lightbox-body h3 { margin: 16px 0 4px; font-weight: 500; }

.order { max-width: 680px; }
.order-title { text-align: center; font-weight: 500; letter-spacing: .1em; font-size: 1.4rem; margin: 0 0 16px; }
.lead { text-align: center; margin-bottom: 32px; }
.order fieldset { border: 1px solid var(--line); border-radius: 8px; background: #fff; margin: 0 0 20px; padding: 16px 20px 20px; }
.order legend { padding: 0 8px; font-weight: 600; }
.req { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: .7rem; font-weight: 400; color: #fff; background: #b8324f; border-radius: 4px; vertical-align: middle; }
.hint { margin: 0 0 8px; font-size: .85rem; color: #846a71; }
.notice { margin: 8px 0 0; font-size: .85rem; color: #a3283f; }
.info-box { margin: 14px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .9rem; }
.info-box h4 { margin: 0 0 6px; font-size: .95rem; color: var(--accent); }
.info-box p { margin: 4px 0; }
.info-box .small { font-size: .82rem; color: #846a71; }
.retake-kinds { display: grid; gap: 6px; margin: 10px 0; }
.retake-kinds label { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.field { display: block; margin-top: 12px; }
.order input[type="text"], .order input[type="number"], .order textarea {
  width: 100%; font: inherit; padding: 8px 10px; margin-top: 4px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text);
}
.order input[type="number"] { width: 90px; margin: 0 4px; }
.order textarea { resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.motifs label { width: 110px; }
.type-row { display: flex; align-items: center; gap: 4px; padding: 4px 0; }
.type-row label { width: 160px; }
.check { display: block; margin-top: 12px; }
.color-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.color-row label { min-width: 0; font-size: .85rem; }
.color-input { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.color-input input[type="color"] { width: 100%; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }
.color-input input[type="text"] { margin-top: 0; padding: 6px 8px; font-size: .85rem; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.error { padding: 10px 14px; background: #fde7ea; color: #a3283f; border-radius: 6px; }
.order .btn { display: block; margin: 8px auto 0; padding: 12px 48px; }
.order .btn:disabled { opacity: .6; cursor: wait; }
.done { text-align: center; padding: 40px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.steps { display: inline-block; text-align: left; margin: 16px 0 24px; padding-left: 1.4em; }

.msg { white-space: pre-wrap; margin: 0 0 12px; }
.photo { display: block; max-width: 100%; margin: 0 auto 16px; border-radius: 6px; border: 8px solid var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.btn-row .btn { margin: 0; }
.price { width: 100%; border-collapse: collapse; }
.price td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.price td:last-child { text-align: right; white-space: nowrap; }
.price .total td { font-weight: 700; border-bottom: 0; }
.admin { max-width: 760px; }
.admin select { width: 100%; font: inherit; padding: 8px 10px; margin: 8px 0; border: 1px solid var(--line); border-radius: 6px; }
.admin input[type="password"] { width: 100%; font: inherit; padding: 8px 10px; margin-top: 4px; border: 1px solid var(--line); border-radius: 6px; }
.order-row { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 10px 14px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.order-row:hover { border-color: var(--accent); }
.tag { display: inline-block; margin-left: 6px; padding: 0 8px; font-size: .75rem; border: 1px solid var(--line); border-radius: 999px; }
.tag-wait { color: #fff; background: var(--accent); border-color: var(--accent); }
.info dt { font-weight: 600; margin-top: 10px; }
.info dd { margin: 0; white-space: pre-wrap; }
.check-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
#detail { margin-top: 32px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 32px 0; }
.link-box { width: 100%; max-width: 420px; font: inherit; font-size: .8rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.text-link { color: var(--accent); font-weight: 700; text-decoration: underline; }
.badge-text { display: inline-block; margin-left: 6px; padding: 0 8px; font-size: .75rem; font-weight: 700; color: #b8324f; background: #fff; border-radius: 999px; }
.seg { display: flex; gap: 8px; margin: 16px 0; }
.seg .btn { flex: 1; margin: 0; }
.badge { display: inline-block; margin-left: 4px; min-width: 1.3em; padding: 0 5px; text-align: center; font-size: .75rem; font-weight: 700; color: var(--accent); background: #fff; border-radius: 999px; }
.idbox { font-size: 1.1rem; }
.idbox strong { letter-spacing: .1em; }
.opt { display: inline-block; margin-left: 4px; padding: 0 6px; font-size: .7rem; font-weight: 400; color: #846a71; background: #f3e8ea; border-radius: 4px; vertical-align: middle; }
.motif-other { margin-top: 6px; }
.tag-alert { color: #fff; background: #b8324f; border-color: #b8324f; font-weight: 700; }
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; }
.tabs .btn { margin: 0; }
.work-row { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; flex-wrap: wrap; }
.work-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
.work-info { flex: 1; min-width: 120px; }
.work-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.work-btns .btn { margin: 0; padding: 4px 12px; }
.work-btns .btn:disabled { opacity: .4; cursor: default; }
.works-note { text-align: center; margin: 0 0 24px; font-size: .95rem; }
.works-sample { text-align: center; margin: 0 0 8px; font-size: 1.8rem; font-weight: 700; letter-spacing: .2em; color: var(--accent); }
.opt-add { display: flex; gap: 8px; margin-bottom: 12px; }
.opt-add input { flex: 1; }
.opt-add .btn { margin: 0; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.opt-off .opt-name { color: #a99; text-decoration: line-through; }
.work-preview img { display: block; max-width: 100%; max-height: 320px; margin: 8px 0 16px; border-radius: 6px; border: 1px solid var(--line); background: #f5eef0; }
.theme-box { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.theme-box summary { cursor: pointer; padding: 10px 12px; font-weight: 700; }
.theme-body { padding: 0 12px 12px; }
.theme-tools { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.theme-tools .btn { margin: 0; padding: 4px 12px; }
details.motif-theme { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
details.motif-theme summary { cursor: pointer; padding: 10px 12px; font-weight: 700; color: var(--accent); }
details.motif-theme .choices { padding: 0 12px 12px; }
div.motif-theme { margin-bottom: 8px; }
.check-photo { display: block; max-width: 260px; max-height: 260px; margin: 8px 0; border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; }
.notify { margin-bottom: 16px; }
.notify .btn { margin: 0 0 0 8px; padding: 4px 14px; }
.info-boxes fieldset { background: #fff; }
.info-boxes .info dt { color: var(--accent); }
.info-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.info-images img { width: 110px; height: 110px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; cursor: zoom-in; }
.swatches { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0 10px; }
.swatch { text-align: center; font-size: .85rem; }
.swatch-color { display: block; width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 8px; border: 1px solid var(--line); }
.swatch-none { background: repeating-linear-gradient(45deg, #f3f3f3 0 6px, #fff 6px 12px); }
body.busy #app { pointer-events: none; opacity: .6; cursor: progress; }

.mode-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px 20px; margin: 0 0 20px; text-align: center; }
.mode-choices { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.mode-btn { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font: inherit; color: inherit; cursor: pointer; padding: 18px 12px; background: #fff; border: 2px solid var(--line); border-radius: 10px; }
.mode-btn strong { font-size: 1.1rem; color: var(--accent); }
.mode-btn span { font-size: .85rem; color: #846a71; }
.mode-btn:hover { border-color: var(--accent); }
.mode-now { text-align: center; margin: 0 0 16px; font-weight: 600; }
.link-btn { font: inherit; font-weight: 400; font-size: .85rem; color: var(--accent); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.person-tabs { margin-bottom: 14px; }
.order .person-tabs .btn { display: inline-block; margin: 0; padding: 8px 32px; }
.order .mode-box .btn { display: inline-block; margin: 0; padding: 10px 32px; }
.section, #works { scroll-margin-top: 80px; }

.review-title { text-align: center; font-weight: 600; font-size: 1.2rem; margin: 0 0 8px; }
.review > .hint { text-align: center; margin-bottom: 16px; }
.rv-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; margin: 0 0 16px; padding: 14px 18px 8px; }
.rv-card h3 { margin: 0 0 8px; padding-bottom: 6px; font-size: 1rem; font-weight: 700; color: var(--accent); border-bottom: 2px solid var(--line); }
.rv-card h4 { margin: 12px 0 4px; font-size: .9rem; }
.rv-row { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rv-row:last-child { border-bottom: 0; }
.rv-label { font-size: .8rem; color: #846a71; margin-bottom: 2px; }
.rv-value { white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-none { color: #a99aa0; }
.rv-swatch-wrap { display: inline-flex; align-items: center; gap: 8px; }
.rv-swatch { width: 22px; height: 22px; border-radius: 4px; border: 1px solid #ccc; }
.rv-price { border-width: 2px; border-color: var(--accent); }
.rv-total { margin: 12px 0 0; text-align: center; font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.review-btns { margin: 20px 0; }
.review-btns .btn { flex: 1 1 200px; }

.dialog { max-width: 340px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.dialog::backdrop { background: rgba(0, 0, 0, .35); }
.dialog p { margin: 0 0 16px; font-weight: 700; }
