@font-face {
  font-family: "Zen Maru Gothic";
  src: url("./assets/fonts/ZenMaruGothic-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #fffaf6;
  --card: #fffdf9;
  --ink: #5a443a;
  --muted: #796457;
  --copper: #994d36;
  --line: #e9dcd0;
  --tint: #f6e8dd;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.8; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid var(--copper); outline-offset: 6px; border-radius: 4px; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 700; }
.page { max-width: 1104px; margin: 0 auto; padding: 37px 32px 24px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.site-logo { display: block; width: min(300px, 70%); height: auto; }
.domain { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.card { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 8px 28px rgb(90 68 58 / 3%); }
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 38px; padding: 38px 54px 34px; }
.hero-visual { display: grid; place-items: center; min-width: 0; margin: 0; overflow: hidden; border-radius: 18px; background: var(--paper); }
.hero-visual img { display: block; width: 100%; max-width: 420px; height: auto; }
.identity { min-width: 0; text-align: left; }
.eyebrow { display: inline-block; margin-top: 14px; padding: 4px 13px; border: 1px solid #d9b8a8; border-radius: 99px; color: var(--copper); font-size: 13px; letter-spacing: .035em; }
h1 { font-size: clamp(36px, 4.3vw, 48px); line-height: 1.55; letter-spacing: .03em; color: var(--copper); }
h1 span { display: inline; }
.creator { display: flex; align-items: baseline; justify-content: flex-start; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; }
.small-label { color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.creator-name { font-size: 25px; letter-spacing: .045em; }
.profile { margin: 22px 0 0; text-align: left; font-size: 14px; line-height: 1.95; color: var(--muted); }
h2 { font-size: 17px; letter-spacing: .045em; }
.works { margin: 0 54px 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 22px; }
.work-card { min-width: 0; margin: 0; }
.work-media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.work-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.work-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; pointer-events: none; background: var(--paper); }
.has-video .work-video { opacity: 1; }
.video-toggle { position: absolute; right: 8px; bottom: 8px; min-height: 32px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: 11px/1.8 var(--font); cursor: pointer; }
.video-toggle[hidden] { display: none; }
.video-toggle:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
.work-card figcaption { margin-top: 13px; }
.work-category { color: var(--muted); font-size: 11px; line-height: 1.8; }
.work-title { margin: 4px 0 0; font-size: 17px; font-weight: 700; line-height: 1.7; }
.work-status { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 99px; background: var(--tint); color: var(--copper); }
.work-note { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.contact { display: grid; grid-template-columns: minmax(230px, .9fr) minmax(0, 1.25fr); align-items: center; gap: 22px 32px; margin: 0 30px; padding: 27px 25px; background: var(--tint); border-radius: 16px; }
.contact-heading { min-width: 0; }
.contact-details { display: grid; gap: 22px; min-width: 0; padding-left: 28px; border-left: 1px solid #d9c1b1; }
.contact-heading p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.contact-achievements h3, .contact-services h3 { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.contact-achievements ul { margin: 9px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 13px; line-height: 1.9; }
.contact-achievements li + li { margin-top: 5px; }
.contact-services ul { margin: 9px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 13px; line-height: 1.9; }
.contact-services li + li { margin-top: 5px; }
.contact .email { margin-top: 9px; gap: 12px; }
.email-icon { flex: 0 0 auto; }
.email-label { min-width: 0; overflow-wrap: anywhere; }
.contact-ai-policy { grid-column: 1 / -1; margin-top: 0; padding-top: 16px; border-top: 1px solid #d9c1b1; color: var(--muted); font-size: 12px; line-height: 1.9; text-wrap: balance; }
.email { display: inline-flex; gap: 22px; align-items: center; min-height: 44px; max-width: 100%; color: var(--copper); font-size: clamp(20px, 2.5vw, 27px); font-weight: 700; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.email:hover { text-decoration-thickness: 2px; }
.arrow { flex: 0 0 auto; font-size: 23px; }
.card-bottom { padding: 29px 54px 27px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.social-links a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 9px; min-height: 44px; font-size: 13px; text-decoration: none; }
.social-links a:hover .link-detail { text-decoration: underline; }
.link-name { color: var(--copper); font-weight: 700; }
.link-detail { color: var(--muted); }
.profile-links { margin-top: 14px; gap: 4px 24px; }
.profile-links .link-name { min-width: 0; }
.profile-links a:hover .link-name { text-decoration: underline; }
.site-footer { margin-top: 20px; text-align: center; color: var(--muted); }
.site-footer small { font-size: 11px; }
.skip-link { position: absolute; top: 8px; left: 16px; z-index: 10; transform: translateY(-180%); padding: 8px 16px; border-radius: 8px; background: var(--card); color: var(--copper); }
.skip-link:focus { transform: translateY(0); }

@media (max-width: 760px) {
  .page { max-width: 580px; padding: 23px 18px 20px; }
  .site-header { margin-bottom: 22px; gap: 12px; }
  .site-logo { width: min(240px, 65%); }
  .domain { font-size: 11px; }
  .card { border-radius: 22px; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding: 28px 28px 30px; }
  .hero-visual { width: min(100%, 240px); justify-self: center; }
  .identity { text-align: center; }
  .eyebrow { font-size: 12px; }
  h1 { font-size: clamp(34px, 8.4vw, 44px); line-height: 1.55; }
  h1 span { display: inline; }
  .creator { justify-content: center; margin-top: 10px; }
  .creator-name { font-size: 23px; }
  .profile { max-width: none; }
  h2 { font-size: 16px; }
  .works { margin: 0 28px 31px; padding-top: 27px; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 16px; margin-top: 20px; }
  .work-card--motion { grid-column: 1 / -1; }
  .work-card--motion .work-media { aspect-ratio: 16 / 9; }
  .work-title { font-size: 15px; }
  .work-category { font-size: 10px; }
  .contact { grid-template-columns: 1fr; margin: 0 14px; padding: 23px 18px; gap: 18px; }
  .contact-details { gap: 18px; padding: 18px 0 0; border-left: 0; border-top: 1px solid #d9c1b1; }
  .contact-services ul { font-size: 12px; }
  .contact-achievements ul { font-size: 12px; }
  .contact .email { gap: 9px; }
  .email-icon { width: 22px; height: 22px; }
  .email { gap: 12px; font-size: clamp(18px, 5.4vw, 26px); }
  .arrow { font-size: 20px; }
  .card-bottom { padding: 20px 28px 24px; }
  .social-links { flex-direction: column; gap: 3px; }
  .social-links a { align-self: flex-start; }
  .link-name { min-width: 49px; }
  .profile-links { flex-direction: row; justify-content: center; }
}

@media (max-width: 359px) {
  .page { padding-inline: 12px; }
  .hero { padding-inline: 21px; }
  h1 { font-size: 32px; }
  h1 span { display: inline; }
  .card-bottom { padding-inline: 21px; }
  .works { margin-inline: 21px; }
  .contact { padding-inline: 15px; }
  .email { gap: 8px; font-size: 18px; }
  .contact .email { gap: 7px; }
  .email-icon { width: 20px; height: 20px; }
}

@media print {
  .page { max-width: none; padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  .skip-link { display: none; }
}
