/* Wolf's Design
   Layout: home opens with a works showcase (masonry of real cover ratios), copy sits below it;
   left-aligned single column after that. Monochrome on white — the works carry all the color. */
:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #555555;
  --ink-3: #767676;   /* 4.5:1 on white */
  --line: #e3e3e3;
  --bloom: #f4f4f4;
  --grape: #1a1a1a;
  --grape-ink: #000000;
  --on-grape: #ffffff;
  --danger: #a3312b;

  --f-latin: "Jost";   /* Latin letters & numbers; Japanese falls through to M PLUS Rounded 1c */
  --f-display: var(--f-latin), "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-body: var(--f-latin), "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(40px, 5vw, 64px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: .03em;
  font-feature-settings: "palt";
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--grape); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.note { font-size: 13px; color: var(--ink-3); }
.lead { color: var(--ink-2); max-width: 44em; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 24px;
  background: var(--grape); color: var(--on-grape); border: 1px solid var(--grape);
  border-radius: 2px; text-decoration: none; cursor: pointer;
  font: 500 14px/1.4 var(--f-body); letter-spacing: .08em;
  transition: background .15s;
}
.btn:hover { background: var(--grape-ink); border-color: var(--grape-ink); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.more { display: inline-block; margin-top: 28px; font-size: 14px; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.more:hover { color: var(--grape); }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 500; font-size: 24px; letter-spacing: .02em; text-decoration: none; white-space: nowrap; margin-right: auto; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-wordmark { display: block; height: 28px; width: auto; aspect-ratio: 147.52 / 24.6; }
@media (max-width: 720px) { .logo-wordmark { height: 24px; } }
.gnav { display: flex; align-items: center; gap: 28px; }
.gnav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.gnav a:not(.btn) { display: block; padding-block: 8px; font-size: 12px; letter-spacing: .1em; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-bottom: 1px solid transparent; }
.gnav a:not(.btn):hover { color: var(--ink); }
.gnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--grape); }
.gnav .btn { min-height: 36px; padding: 6px 16px; font-size: 13px; }
.menu-btn { display: none; }

/* narrower desktops: tighten the nav so it stays on one row */
@media (min-width: 1141px) and (max-width: 1440px) { .site-header .wrap { gap: 0 24px; } .gnav { gap: 20px; } .gnav ul { gap: 16px; } }

/* medium screens: nav drops to its own row, always visible */
@media (min-width: 721px) and (max-width: 1140px) {
  .site-header .wrap { padding-top: 10px; }
  .gnav { flex-basis: 100%; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 10px; padding-block: 4px; }
  .gnav .btn { display: none; }
  .gnav ul { gap: 4px 20px; flex-wrap: wrap; }
}

/* phones: hamburger */
@media (max-width: 720px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; min-width: 44px; padding: 0; margin-right: -11px; background: none; border: 0; cursor: pointer;
    color: var(--ink); font: 500 13px/1 var(--f-body); letter-spacing: .1em;
  }
  .menu-btn .bars { position: relative; width: 22px; height: 12px; border-block: 1.5px solid currentColor; transition: border-color .15s; }
  .menu-btn .bars::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; transform: translateY(-50%); }
  .menu-btn[aria-expanded="true"] .bars { border-color: transparent; }
  .menu-btn[aria-expanded="true"] .bars::before { transform: translateY(-50%) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; transform: translateY(-50%) rotate(-45deg); }
  .gnav {
    position: fixed; left: 0; right: 0; bottom: 0;
    top: calc(69px + env(safe-area-inset-top, 0px));
    z-index: 49; background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .15s, visibility .15s;
  }
  .gnav.is-open { visibility: visible; opacity: 1; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li { border-bottom: 1px solid var(--line); }
  .gnav a:not(.btn) { padding-block: 18px; font-size: 15px; border: 0; color: var(--ink); }
  .gnav a[aria-current="page"] { color: var(--grape); }
  .gnav .btn { margin-top: 24px; min-height: 48px; font-size: 15px; }
}

/* ---------- home: showcase then copy ---------- */
.showcase-sec { padding-block: clamp(24px, 4vw, 40px) 0; }
.marquee { --h: clamp(92px, 11vw, 150px); display: grid; gap: 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.m-row { overflow: hidden; }
.m-track { display: flex; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.m-row:nth-child(2) .m-track { animation-direction: reverse; }
.marquee:hover .m-track, .marquee:focus-within .m-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.m-item { flex: none; height: var(--h); margin-right: 14px; }
.marquee .m-item .work, .marquee .m-item .work button { height: 100%; }
.marquee .m-item .ph { height: 100%; width: auto; padding: 6px 8px; font-size: 10px; }
.marquee .m-item .ph span { display: none; }
.marquee .m-item img { height: 100%; width: auto; }
.marquee .m-item .work figcaption { display: none; }
@media (prefers-reduced-motion: reduce) {
  .m-track { animation: none; }
  .m-row { overflow-x: auto; }
}
.showcase-more { display: flex; justify-content: flex-end; margin-top: 16px; }
.showcase-more .more { margin-top: 0; }
.intro { padding-block: clamp(44px, 6vw, 72px) var(--sec); }
.intro .inner { display: grid; grid-template-columns: auto minmax(0, 32em); justify-content: center; gap: 40px clamp(32px, 4vw, 56px); align-items: start; }
.intro h1 { font-family: var(--f-display); font-size: 15px; letter-spacing: .12em; color: var(--ink-2); }
.intro .copy .nw { display: block; white-space: nowrap; }
.intro .copy { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.3; letter-spacing: .02em; }
.intro .body { display: grid; gap: 28px; color: var(--ink-2); max-width: 32em; }
.intro .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: center; }
.form-actions { display: flex; justify-content: center; }
.intro .actions .more { margin-top: 0; }
@media (max-width: 760px) { .intro .inner { grid-template-columns: 1fr; justify-content: stretch; gap: 28px; } }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); }

.page-hero + .sec, .works-sec { padding-top: clamp(30px, 3.5vw, 44px); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(16px, 2vw, 24px); }
.sec-head h2 {
  /* F: crop-mark corners (トンボ) drawn with background gradients — no extra markup */
  --tm: var(--ink); --tl: 10px;
  font-family: var(--f-display); font-size: clamp(18px, 2.1vw, 22px); letter-spacing: .02em; line-height: 1.3;
  padding: 12px 14px;
  background:
    linear-gradient(var(--tm), var(--tm)) left top / var(--tl) 1px no-repeat,
    linear-gradient(var(--tm), var(--tm)) left top / 1px var(--tl) no-repeat,
    linear-gradient(var(--tm), var(--tm)) right top / var(--tl) 1px no-repeat,
    linear-gradient(var(--tm), var(--tm)) right top / 1px var(--tl) no-repeat,
    linear-gradient(var(--tm), var(--tm)) left bottom / var(--tl) 1px no-repeat,
    linear-gradient(var(--tm), var(--tm)) left bottom / 1px var(--tl) no-repeat,
    linear-gradient(var(--tm), var(--tm)) right bottom / var(--tl) 1px no-repeat,
    linear-gradient(var(--tm), var(--tm)) right bottom / 1px var(--tl) no-repeat,
    #f9f9f9;
  text-align: center;
}

.page-hero { padding-block: clamp(20px, 3vw, 36px) 0; }
.page-hero h1 { font-family: var(--f-display); font-size: clamp(20px, 2.8vw, 30px); letter-spacing: .02em; line-height: 1.3; }
.page-hero .lead { margin-top: 20px; }

/* ---------- placeholder art ---------- */
.ph {
  width: 100%; max-width: 100%;
  background: var(--bloom);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px 12px; color: var(--ink-3); font-size: 11px; line-height: 1.5;
}
.ph b { font-weight: 500; color: var(--ink-2); }
.ph--book { aspect-ratio: 1 / 1.414; }
.ph--dl { aspect-ratio: 4 / 3; }
.ph--goods { aspect-ratio: 1 / 1; }
.ph--logo { aspect-ratio: 3 / 2; }
.ph--portrait { aspect-ratio: 4 / 5; }

/* ---------- price rows ---------- */
.price-label { display: inline-block; font-size: 13px; color: var(--grape); margin-bottom: 16px; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 10px 40px; padding-block: 24px; border-bottom: 1px solid var(--line); align-items: baseline; }
.svc h3 { font-family: var(--f-display); font-size: 19px; letter-spacing: .06em; line-height: 1.3; }
.svc p { font-size: 14px; color: var(--ink-2); }
.svc .price { text-align: right; font-family: var(--f-display); font-size: clamp(26px, 3vw, 32px); line-height: 1.2; white-space: nowrap; color: var(--ink); }
.svc .price small { font-family: var(--f-body); font-size: 13px; color: var(--ink-2); margin-left: 3px; }
.svc .price .sub { display: block; font-family: var(--f-body); font-size: 12px; color: var(--ink-2); white-space: normal; margin-top: 6px; line-height: 1.5; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } .svc .price { text-align: left; } }

/* ---------- works ---------- */
.works-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; align-items: start; }
.works-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .works-grid, .works-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } }
.work { margin: 0; }
.work button { all: unset; display: block; width: 100%; cursor: pointer; }
.work button:focus-visible { outline: 2px solid var(--grape); outline-offset: 4px; }
.work button:hover .ph { border-color: var(--ink-3); }
.work figcaption { margin-top: 10px; display: grid; gap: 0; }
.work .cat { font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.work .ttl { font-size: 13px; line-height: 1.5; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button { font: 500 13px/1 var(--f-body); letter-spacing: .04em; min-height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cat-desc { font-size: 13px; color: var(--ink-2); margin-bottom: 36px; min-height: 1.9em; }

dialog.work-dialog { border: 0; padding: 0; width: 100%; max-width: min(1040px, calc(100% - 32px)); background: var(--paper); color: var(--ink); }
dialog.work-dialog::backdrop { background: rgb(30 27 33 / .55); }
.wd-inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; padding: 40px 36px 36px; }
.wd-art .ph { max-width: 340px; }
.wd-meta { display: grid; gap: 18px; align-content: start; }
.wd-meta h2 { font-family: var(--f-display); font-size: 22px; letter-spacing: .06em; }
.wd-meta dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.wd-meta dt { color: var(--ink-3); font-size: 12px; }
.wd-meta dd { margin: 0; }
.wd-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: var(--paper); color: var(--ink); font: 400 26px/1 var(--f-body); cursor: pointer; }
@media (max-width: 640px) { .wd-inner { grid-template-columns: 1fr; padding: 56px 20px 24px; } }

/* ---------- doujin / commercial ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.split > div { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.split h3 { font-family: var(--f-display); font-size: 20px; letter-spacing: .06em; }
.split p { font-size: 14px; color: var(--ink-2); }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 16px 0 0; display: grid; gap: 4px; align-content: start; }
.steps .n { font-family: var(--f-display); font-size: 15px; color: var(--grape); display: flex; align-items: center; gap: 10px; }
.steps .n::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.steps li:last-child .n::after { display: none; }
.steps h3 { font-family: var(--f-display); font-size: 16px; letter-spacing: .04em; line-height: 1.3; }
.steps p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { grid-template-columns: 24px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); column-gap: 8px; row-gap: 2px; }
  .steps .n { grid-row: span 2; font-size: 16px; line-height: 1.3; align-items: flex-start; }
  .steps .n::after { display: none; }
}

/* ---------- terms ---------- */
.term { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 12px 48px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.term h3 { font-family: var(--f-display); font-size: 18px; letter-spacing: .06em; line-height: 1.3; }
.term ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); max-width: 40em; }
.term li::marker { color: var(--ink-3); }
.term > p { color: var(--ink-2); max-width: 40em; }
.term strong { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .term { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
table.opt { width: 100%; border-collapse: collapse; font-size: 14px; }
table.opt th, table.opt td { text-align: left; vertical-align: top; padding: 18px 0; border-bottom: 1px solid var(--line); }

table.opt th { font-weight: 500; padding-right: 24px; }
table.opt td.p { text-align: right; font-family: var(--f-display); font-size: 21px; white-space: nowrap; padding-left: 24px; }
table.opt td.p small { font-family: var(--f-body); font-size: 12px; color: var(--ink-2); }
.callout { border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); display: grid; gap: 8px; }
.callout h3 { font-family: var(--f-display); font-size: 20px; letter-spacing: .06em; }
.callout p { font-size: 14px; color: var(--ink-2); }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 32px 1fr 24px; gap: 8px; padding: 20px 0; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq .q { font-family: var(--f-display); font-size: 18px; color: var(--grape); line-height: 1; }
.faq .pm { justify-self: end; font-size: 20px; line-height: 1; transition: transform .15s; }
.faq details[open] .pm { transform: rotate(45deg); }
.faq .a { overflow: hidden; }
.faq .a-in { display: grid; grid-template-columns: 32px 1fr; gap: 8px; padding: 0 32px 22px 0; font-size: 14px; color: var(--ink-2); }
.faq .a-in .q { color: var(--ink-3); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-role { font-size: 13px; color: var(--ink-3); }
.about-quote { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; letter-spacing: .02em; margin-top: 16px; }
.about-body { display: grid; gap: 18px; margin-top: 28px; color: var(--ink-2); max-width: 44em; }
.facts { margin: 36px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 22px; }
.facts dt { color: var(--ink-3); font-size: 13px; }
.facts dd { margin: 0; }
.about-logo .logo-mark { display: block; width: 112px; height: 112px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-logo .logo-mark { width: 80px; height: 80px; } }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.form-aside { display: grid; gap: 14px; align-content: start; font-size: 14px; color: var(--ink-2); }
.form-aside h2 { font-family: var(--f-display); font-size: 19px; color: var(--ink); letter-spacing: .06em; }
form.order { display: grid; gap: 28px; }
.field { display: grid; gap: 12px; min-width: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { margin-bottom: 12px; }   /* legend sits outside the grid gap */
.field > label, .field legend { font-size: 14px; font-weight: 500; padding: 0; }
.req, .opt-tag { display: inline-block; font-size: 11px; padding: 1px 9px; margin-left: 8px; vertical-align: 1px; font-weight: 500; border-radius: 999px; }
.req { background: var(--grape); color: var(--on-grape); }
.opt-tag { border: 1px solid var(--line); color: var(--ink-3); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 15px/1.6 var(--f-body); color: var(--ink); background: #ffffff;
  border: 1px solid var(--line); border-radius: 2px;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--grape); box-shadow: 0 0 0 1px var(--grape); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 12px; color: var(--ink-3); }
.err { font-size: 12px; color: var(--danger); }
.err:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 2px; background: #ffffff; font-size: 14px; cursor: pointer; }
.choice input:checked + span { border-color: var(--grape); background: var(--grape); color: var(--on-grape); }
.choice input:focus-visible + span { outline: 2px solid var(--grape); outline-offset: 2px; }
.choice input:disabled + span { color: var(--ink-3); background: var(--bloom); text-decoration: line-through; cursor: not-allowed; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.agree input { flex: none; width: 20px; height: 20px; margin-top: 4px; accent-color: var(--grape); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 20px; background: var(--bloom); color: var(--grape-ink); font-size: 14px; }
.contract-note { font-size: 13px; color: var(--ink-2); padding: 14px 16px; border: 1px solid var(--line); }

/* ---------- closing CTA ---------- */
.closing { padding-block: var(--sec); }
.closing .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.closing p { text-wrap: balance; font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.3; letter-spacing: .02em; max-width: 22em; }

/* ---------- footer ---------- */
.site-footer { background: #1a1a1a; color: #dddddd; padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.f-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; }
.f-logo { font-family: var(--f-display); font-weight: 500; font-size: 28px; color: #ffffff; }
.f-grid p { font-size: 13px; color: #aaaaaa; margin-top: 8px; }
.f-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; list-style: none; margin: 0; padding: 0; font-size: 13px; letter-spacing: .06em; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #3a3a3a; font-size: 12px; color: #aaaaaa; }
.f-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 720px) { .f-grid { grid-template-columns: 1fr; } }

/* ---------- mobile floating CTA ---------- */
.float-cta {
  position: fixed; left: 16px; right: 16px; z-index: 40;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: none; transform: translateY(160%); transition: transform .2s;
}
@media (max-width: 720px) { .float-cta { display: flex; } }
.float-cta.is-shown { transform: none; }

.legal-block { display: grid; gap: 10px; padding-block: 36px; border-bottom: 1px solid var(--line); }
.legal-block h2 { font-family: var(--f-display); font-size: 20px; letter-spacing: .06em; }
.legal-block { gap: 20px; }
.legal-block > p, .legal-sub > p { color: var(--ink-2); max-width: 44em; }
.legal-sub { display: grid; gap: 10px; }
.legal-sub h3 { font-size: 15px; font-weight: 700; }
.legal-sub ul, .usage ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); max-width: 44em; }
.legal-sub li::marker, .usage li::marker { color: var(--ink-3); }
.usage { display: grid; gap: 8px; margin-top: 8px; }
.usage h4 { font-size: 14px; font-weight: 700; }
.usage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.usage-col { border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; font-size: 14px; }
.usage-tag { font-weight: 700; font-size: 12px; letter-spacing: .1em; line-height: 1; padding: 4px; border-radius: 4px; width: fit-content; }
.usage-col--ok .usage-tag { background: var(--ink); color: var(--paper); }
.usage-col--ng .usage-tag { border: 1px solid var(--ink); }
@media (max-width: 560px) { .usage-grid { grid-template-columns: 1fr; } }
.legal-dl { display: grid; grid-template-columns: 11em 1fr; margin: 0; border-top: 1px solid var(--line); font-size: 14px; }
.legal-dl dt, .legal-dl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-dl dt { font-weight: 700; padding-right: 16px; }
.legal-dl dd { color: var(--ink-2); }
@media (max-width: 560px) { .legal-dl { grid-template-columns: 1fr; } .legal-dl dt { border-bottom: 0; padding-bottom: 0; } }
.legal-sub > p + p, .legal-block > p + p { margin-top: -4px; }
.legal-dl dd p { margin: 6px 0 0; } .legal-dl dd p:first-child { margin-top: 0; }
.legal-dl dd ul { margin: 0 0 6px; padding-left: 1.2em; display: grid; gap: 4px; }

/* ---------- heading kerning (optical-style, applied by main.js) ---------- */
h1, h2, h3, .intro .copy, .closing p, .about-quote { font-feature-settings: "palt" 1, "kern" 1; font-kerning: normal; text-spacing-trim: trim-start; }
.kn-small { margin-inline: -.05em; }          /* ゃゅょっァィ… */
.kn-kata  { margin-inline: -.025em; }         /* katakana */
.kn-long  { margin-inline: -.04em; }          /* ー */
.kn-dot   { margin-inline: -.22em; }          /* ・ */
.kn-comma { margin-right: -.38em; }           /* 、。 */
.kn-open  { margin-left: -.42em; }            /* 「（ */
.kn-close { margin-right: -.42em; }           /* 」） */

/* ---------- real work images (natural aspect ratio) ---------- */
.work img.wimg { width: 100%; height: auto; background: var(--bloom); border: 1px solid var(--line); }
.work button:hover img.wimg { border-color: var(--ink-3); }
.marquee .m-item img.wimg { height: 100%; width: auto; max-width: none; }
dialog.work-dialog { max-height: calc(100vh - 32px); overflow-y: auto; }
.wd-art { display: grid; gap: 12px; align-content: start; }
.wd-art img.wimg { width: 100%; height: auto; border: 1px solid var(--line); }
.wd-stage { position: relative; width: min(100%, calc(100dvh - 32px - 76px - 140px)); aspect-ratio: 1 / 1; margin-inline: auto; }
.wd-stage img.wd-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; transition: opacity .12s var(--ease); }
.wd-stage img.wd-main.is-switching { opacity: 0; }
.wd-count { position: absolute; right: 0; bottom: -22px; margin: 0; font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }
.wd-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.wd-thumbs button { flex: none; padding: 0; border: 1px solid var(--line); background: #f6f6f6; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.wd-thumbs button:hover { opacity: .85; }
.wd-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.wd-thumbs img { display: block; height: 56px; width: auto; }
.wd-meta h2.sr-only + dl { border-top: 0; padding-top: 0; }
.wd-thumbs { justify-content: center; margin-top: 14px; }
@media (min-width: 641px) {
  dialog.work-dialog { overflow: hidden; }
  .wd-inner { max-height: calc(100dvh - 32px); }
  .wd-meta { overflow-y: auto; max-height: calc(100dvh - 32px - 76px); }
}
@media (max-width: 640px) { .wd-stage { width: 100%; } }
.wd-meta dd { line-height: 1.5; }

/* ---------- R18 filter + age check ---------- */
.filters .f-r18 { border-style: dashed; }
dialog.age-gate { border: 0; padding: 0; width: 100%; max-width: min(440px, calc(100% - 32px)); background: var(--paper); color: var(--ink); }
dialog.age-gate::backdrop { background: rgb(26 26 26 / .7); }
.ag-inner { display: grid; gap: 18px; padding: 32px 28px; text-align: center; }
.ag-inner h2 { font-family: var(--f-display); font-size: 20px; }
.ag-inner p { font-size: 14px; color: var(--ink-2); }
.ag-actions { display: grid; gap: 10px; }
/* R18 area: underline tabs instead of pill buttons */
.filters.subfilters { gap: 24px; margin-top: 4px; border-bottom: 1px solid var(--line); }
.filters.subfilters button {
  min-height: 40px; padding: 0 2px; margin-bottom: -1px;
  background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  font-size: 14px; color: var(--ink-3);
}
.filters.subfilters button:hover { color: var(--ink); border-bottom-color: var(--ink-3); }
.filters.subfilters button[aria-pressed="true"] { color: var(--ink); background: none; border-bottom-color: var(--ink); }

/* first row of a list sits directly under the H2 band */
.svc-list > .svc:first-child, .terms > .term:first-child { padding-top: 8px; }
.faq details:first-child summary { padding-top: 8px; }
table.opt td.p { white-space: nowrap; }
@media (max-width: 520px) { table.opt th, table.opt td { padding: 14px 0; } table.opt td.p { font-size: 18px; padding-left: 12px; } }
table.opt--plans th { font-size: 15px; }
table.opt th .note { display: inline-block; margin-top: 4px; font-weight: 400; line-height: 1.5; color: var(--ink-2); }
/* content under an H2 lines up with the heading text (H2 has 14px side padding) */
.sec-head > :not(h2),
.sec-head ~ * { padding-inline: 14px; }
/* "〜を見る" links sit at the right, like the carousel's "すべての制作実績を見る" */
.sec .wrap > a.more { display: block; width: fit-content; margin-left: auto; }

/* ---------- SNS icons (header + footer) ---------- */
.sns { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.sns a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--ink-2); border: 0 !important; padding: 0 !important; }
.sns a:hover { color: var(--ink); }
.gnav .sns { margin-left: -8px; }
.site-footer .sns { margin-top: 16px; margin-left: -8px; }
.site-footer .sns a { color: #cccccc; }
.site-footer .sns a:hover { color: #ffffff; text-decoration: none; }
@media (min-width: 721px) and (max-width: 1140px) { .gnav .sns { margin-left: auto; } }
@media (max-width: 720px) { .gnav .sns { margin: 20px 0 0 -8px; } .gnav .sns a { width: 44px; height: 44px; } .gnav .sns li { border: 0; } }
.gnav ul.sns { flex-direction: row; gap: 4px; align-items: center; }
.sns li { display: flex; }
.gnav .sns a:not(.btn) { display: inline-flex; padding: 0; }
#works-grid { margin-top: clamp(20px, 3vw, 32px); }

/* ---------- page titles: English + small Japanese ---------- */
.page-hero h1 { display: grid; gap: 6px; }
.page-hero h1 .en { letter-spacing: .02em; }
.page-hero h1 .ja { font-size: 13px; font-weight: 400; color: var(--ink-3); letter-spacing: .08em; line-height: 1.4; }

/* ---------- motion ---------- */
:root { --ease: cubic-bezier(.22, .61, .36, 1); --dur: .28s; }

/* buttons, links, tabs: one easing everywhere */
.btn, .filters button, .choice span, .more, .gnav a, .sns a, .work img.wimg, .work .ph, .faq .pm, .menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after {
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.work button:hover img.wimg, .work button:hover .ph { transform: translateY(-3px); }

/* phone menu slides down slightly as it fades in */
@media (max-width: 720px) {
  .gnav { transform: translateY(-8px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur); }
  .gnav.is-open { transform: none; }
}

/* FAQ answer fades in when opened */

/* dialogs (work detail, age check) */
dialog[open] { animation: wd-pop .32s var(--ease); }
dialog[open]::backdrop { animation: wd-fade .32s var(--ease); }

/* page transition: native cross-fade where supported, simple fade-in otherwise */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }
@supports not (view-transition-name: none) { main { animation: wd-fade .4s var(--ease); } }

@keyframes wd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wd-fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes wd-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .nav-ink { transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* sliding nav underline (desktop) */
.gnav ul:not(.sns) { position: relative; }
.nav-ink { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--ink); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s var(--ease); }
@media (min-width: 721px) {
  .gnav.has-ink a[aria-current="page"] { border-bottom-color: transparent; }
  .gnav a:not(.btn):hover { color: var(--ink); }
}
@media (max-width: 720px) { .nav-ink { display: none; } }

/* works grid fades between categories */
#works-grid { transition: opacity .5s var(--ease); }
#works-grid.is-switching { opacity: 0; }
.faq .a { overflow: hidden; }
.faq .pm { transition: transform .32s var(--ease); }

/* ---------- news ---------- */
.news-list { list-style: none; margin: 0; }
.news-list li { display: grid; grid-template-columns: 96px auto 1fr; gap: 4px 16px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--line); }
.news-list time { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.news-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-2); border: 1px solid var(--line); padding: 1px 7px; line-height: 1.6; }
.news-title { grid-column: 3; font-size: 14px; }
.news-list li:not(:has(.news-tag)) .news-title { grid-column: 2 / 4; }
.news-title a { text-decoration: none; transition: color var(--dur) var(--ease); }
.news-title a:hover { color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.news-empty { grid-template-columns: 1fr !important; color: var(--ink-3); font-size: 14px; }
@media (max-width: 560px) {
  .news-list li { grid-template-columns: auto 1fr; }
  .news-title, .news-list li:not(:has(.news-tag)) .news-title { grid-column: 1 / -1; }
}
/* news page: full entries */
.news-entries { display: grid; }
.news-entry { padding-block: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.news-entry:first-child { padding-top: 0; }
.news-meta { display: flex; align-items: center; gap: 12px; }
.news-meta time { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.news-entry-title { font-family: var(--f-display); font-size: clamp(17px, 1.8vw, 19px); letter-spacing: .02em; margin-top: 8px; }
.news-body { display: grid; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--ink-2); max-width: 40em; }
.news-ext { margin-top: 14px; }
.news-ext .more { margin-top: 0; }
.news-tag { font-weight: 700; color: var(--ink); border-radius: 4px; padding: 4px; line-height: 1; justify-self: start; width: fit-content; }

/* ---------- Japanese line breaking ----------
   Static text gets phrase breaks (<wbr>) from build.py; text added by JS falls back to the browser's
   phrase detection where available (Chrome/Edge). */
.bx { word-break: keep-all; overflow-wrap: anywhere; }
:where(p, li, dd, dt, th, td, h1, h2, h3, h4, label, legend, summary) { line-break: strict; text-wrap: pretty; }   /* normal flow; "pretty" avoids a lone character on the last line */

/* ---------- service page: prices + sticky campaign card ---------- */
.price-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.price-main { display: grid; gap: var(--sec); min-width: 0; }
.camp-card { position: sticky; top: calc(69px + 24px); display: grid; gap: 18px; padding: 24px 22px; border: 1px solid var(--ink); border-radius: 4px; background: var(--paper); }
.camp-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .14em; }
.camp-label span { font-family: var(--f-body); font-weight: 500; font-size: 12px; letter-spacing: .04em; color: var(--ink-2); }
.camp-item { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.camp-item h3 { font-size: 13px; font-weight: 700; }
.camp-item p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.camp-off { font-size: 13px; color: var(--ink); }
.camp-item .camp-off { font-size: 13px; color: var(--ink); }
.camp-off b { font-family: var(--f-display); font-weight: 700; font-size: 20px; margin-left: 4px; letter-spacing: .02em; white-space: nowrap; }
.camp-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; }
.camp-links a { text-underline-offset: 4px; }
table.opt td.p .camp-price { display: block; white-space: nowrap; text-wrap-mode: nowrap; margin-top: 4px; font-family: var(--f-body); font-size: 11px; color: var(--ink-2); letter-spacing: .02em; }
table.opt td.p .camp-price .u { font-size: 11px; }
.camp-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.camp-box { display: grid; gap: 8px; align-content: start; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: 4px; }
.camp-box h3 { font-family: var(--f-display); font-size: 18px; letter-spacing: .04em; }
.camp-box p { margin: 0; font-size: 14px; color: var(--ink-2); }
.camp-box .camp-off { color: var(--ink); }
.camp-period { font-weight: 700; font-size: 13px !important; color: var(--ink) !important; }
.camp-terms { margin-top: 20px; display: grid; gap: 6px; font-size: 13px; color: var(--ink-3); }
.camp-terms-h { margin: 0; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.camp-terms ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; max-width: 52em; }
#campaign { scroll-margin-top: 80px; }
@media (max-width: 900px) {
  .price-layout { grid-template-columns: 1fr; }
  .camp-card { position: static; order: -1; }
}
@media (max-width: 640px) { .camp-detail { grid-template-columns: 1fr; } }
@media (max-width: 520px) { table.opt td.p .camp-price .lbl { display: block; } }

/* price table: grouped rows (同人誌・書籍表紙) */
table.opt--plans tr.grp th { padding-bottom: 4px; border-bottom: 0; font-size: 15px; }
table.opt--plans tr.sub th { padding-left: 1em; font-size: 14px; }
table.opt--plans tr.sub th, table.opt--plans tr.sub td { padding-block: 12px; }
table.opt--plans tr.incl td { padding: 16px 0 24px; }
.incl-box { display: grid; gap: 8px; padding: 16px 18px; background: #f9f9f9; border-radius: 4px; font-size: 13px; color: var(--ink-2); }
.incl-h { margin: 0; font-weight: 700; color: var(--ink); font-size: 13px; }
.incl-box ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.incl-box .note { margin: 0; font-size: 12px; }

.note-list { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }

.usage-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 8px; }
@media (max-width: 640px) { .usage-wrap { grid-template-columns: 1fr; } }
.usage-wrap .usage { margin-top: 0; align-content: start; }
.usage-wrap .usage-col { height: 100%; }
.usage-wrap .usage-col { gap: 10px; padding: 18px 20px; }
.usage-wrap .usage-col h4 { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.usage-wrap .usage-col ul { margin: 0; }

/* ---------- main content width: 900px, centered (header/footer keep the wider width) ---------- */
main .wrap { max-width: calc(900px + var(--gutter) * 2); }

/* order page: steps with descriptions read top to bottom */
.steps.steps--detail { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.steps.steps--detail li { grid-template-columns: 48px minmax(0, 13em) minmax(0, 1fr); column-gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.steps.steps--detail .n { font-size: 16px; }
.steps.steps--detail .n::after { display: none; }
.steps.steps--detail h3 { font-size: 16px; }
@media (max-width: 860px) {
  .steps.steps--detail { border-top: 0; }
  .steps.steps--detail li { grid-template-columns: 32px 1fr; column-gap: 8px; row-gap: 4px; padding: 16px 0; }
  .steps.steps--detail .n { grid-row: span 2; }
}

.form-aside .aside-label { margin: 4px 0 -4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }

