@font-face {
  font-family: 'Tsunagi Partner';
  src: url('assets/toromaro-name.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Felis Tsunagi Extra';
  src: url('assets/tsunagi-extra.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Felis Zen Medium';
  src: url('assets/zen-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
:root { --display-font: 'Tsunagi Gothic', 'Felis Tsunagi Extra', sans-serif; }
body { font: 1rem/1.8 var(--body-font); letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
figure, dl, dd { margin: 0; }
.mast { display: flex; align-items: center; gap: .65rem; min-height: 64px; }
.jump, .views a, dt, summary, .section-top .status, .cover-title .about-label {
  font-family: 'Felis Zen Medium', var(--body-font); font-weight: 500; letter-spacing: .045em;
}
.mast .logo, .partner { text-box: trim-both cap alphabetic; }
.partner { font: 900 .875rem/1 'Tsunagi Partner', var(--display-font); white-space: nowrap; }
@media (max-width: 360px) {
  .mast { width: calc(100% - 24px); gap: 6px; }
  .mast .logo { font-size: 1.75rem; }
}
.sheet a:hover { text-decoration: underline; }
.cover { position: relative; isolation: isolate; overflow: hidden; background: #f2f2f2; }
.cover-in { position: relative; padding-block: 24px; }
.cover-title, .cover-action { position: relative; z-index: 1; }
.cover-title .about-label { font-size: .91rem; }
.cover-title h1 { line-height: 1; }
.display { display: block; font: 900 clamp(5.1rem, 18vw, 10rem)/1 var(--display-font); letter-spacing: -.04em; }
.display > span { color: var(--accent); }
.kana { display: inline-block; margin-block-start: .2rem; font: 900 clamp(1.55rem, 5vw, 2.65rem)/1.3 var(--display-font); letter-spacing: .025em; }
.art { isolation: isolate; position: relative; width: 100%; height: clamp(260px, 74vw, 410px); margin-block: 12px 8px; }
.art::before { content: ''; position: absolute; z-index: -1; width: 74%; height: 56%; inset: 29% auto auto 13%; border-radius: 50%; transform: rotate(-12deg); background: var(--accent); }
.art picture, .art img { display: block; width: 100%; height: 100%; }
.art img { object-fit: contain; }
.cover-action p { font-size: 1rem; }
.jump { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.25em; min-height: 46px; margin-top: 14px; padding: 4px 6px 4px 20px; border: 2px solid var(--ink); border-radius: 2em; background: var(--accent); color: var(--ink); line-height: 1.4; }
.jump span { display: grid; place-items: center; width: 31px; height: 31px; background: var(--ink); color: var(--paper); border-radius: 50%; }
.jump:hover { background: white; }
.gallery-section, .character-in, .entry { display: grid; align-items: start; gap: 24px; padding-block: clamp(48px,7vw,96px); }
.section-top { margin: 0; display: grid; gap: 8px; align-content: start; }
.section-top > .eyebrow { font: 700 .75rem/1.5 Arial,sans-serif; letter-spacing: .12em; color: var(--muted); }
.section-top > p:not(.eyebrow):not(.status) { font: 1rem/1.8 var(--body-font); color: var(--ink); margin: 0; }
.section-top h2, .application h3 {
  font-family: 'Felis Zen Medium', var(--body-font);
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: .035em;
  line-height: 1.45;
}
.section-top h2 { margin: 0; }
.portrait { min-width: 0; }
.frame { overflow: hidden; border-radius: var(--radius); background: var(--line); }
.frame img { width: 100%; height: auto; }
.portrait figcaption { margin-top: 10px; }
.views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.views a { display: grid; gap: 2px; padding: 3px; border: 2px solid transparent; border-radius: 10px; text-align: center; font-size: .875rem; }
.views img { display: block; width: 100%; height: auto; border-radius: 5px; }
.views a[aria-current] { border-color: var(--ink); background: var(--accent); }
@media (min-width: 1024px) {
  .views { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.character { background: #f0f0f0; }
.sheet img { width: 100%; border-radius: var(--radius); }
.sheet figcaption { text-align: end; }
.sheet figcaption a { display: inline-flex; align-items: center; min-height: 44px; gap: .45em; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
.status { justify-self: start; display: inline-flex; align-items: center; gap: .5em; margin-top: .45em; padding: 2px 12px; font-size: .875rem; background: var(--accent); border-radius: 2em; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.notice { padding-inline-start: 16px; border-inline-start: 4px solid var(--accent); }
.entry p + p { margin-block-start: .75em; }
.terms { margin-top: 24px; }
.terms > div { padding-block: 16px; border-bottom: 1px solid var(--line); }
dt { margin-bottom: 4px; }
.price { font: 900 clamp(2rem,4vw,2.85rem)/1.2 var(--display-font); letter-spacing: 0; font-variant-numeric: tabular-nums; }
small { color: var(--muted); }
details { margin-top: 24px; background: #f0f0f0; border-radius: 16px; padding: 0 18px; }
summary { padding-block: 13px; cursor: pointer; }
ol { margin: 0; padding: 4px 0 16px 1.5em; }
li + li { margin-top: 12px; }
.inquiry { margin-top: 24px; }
.application { margin-top: 32px; }
.application h3 { margin-bottom: 8px; }
#dm-template { margin: 12px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; font: inherit; white-space: pre-wrap; user-select: all; }
#copy-template { min-height: 44px; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#copy-result { font-size: .875rem; }
.inquiry a { display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
.footer { border-top: 1px solid var(--line); }
html.scroll-easing { scroll-behavior: auto; }
@media (min-width: 680px) {
  .mast { min-height: 76px; }
  .cover-in { display: grid; grid-template-columns: 1fr 1.1fr; align-content: center; align-items: end; min-height: clamp(450px,46vw,620px); padding: 50px 0; }
  .cover-title, .cover-action { grid-column: 1; }
  .art { position: absolute; right: 0; top: 4%; width: 53%; height: 92%; margin: 0; }
  .cover-action { align-self: start; margin-top: 22px; }
  .gallery-section, .character-in, .entry { grid-template-columns: minmax(0, .78fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 92px); }
  .terms > div { display: grid; grid-template-columns: minmax(110px,.45fr) 1fr; gap: 12px; }
  .portrait figcaption { margin-top: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .art picture { animation: arrive .78s cubic-bezier(.16,.78,.2,1) both; }
  @keyframes arrive { from { opacity: 0; transform: translate(7%,5%) rotate(3deg); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
