/* QUALITIA — quiet full-bleed portfolio, independently implemented. */
body.qp-page {
  --paper: #fafafa;
  --ink: #202020;
  --muted: #777;
  --english: 'Libre Caslon Text', Georgia, serif;
  --japanese: 'Noto Serif JP', 'Yu Mincho', YuMincho, serif;
  --font: var(--english), var(--japanese);
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 13px/2 var(--font); letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
.qp-page *, .qp-page *::before, .qp-page *::after { box-sizing: border-box; }
.qp-page :is(h1,h2,h3,p,figure) { margin: 0; font-size: inherit; font-weight: inherit; }
.qp-page a { color: inherit; text-decoration: none; }
.qp-page button { padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.qp-page img, .qp-page video { display: block; max-width: 100%; }
.qp-page :focus-visible { outline: 1px solid currentColor; outline-offset: 7px; }
.qp-page ::selection { background: #d8d8d8; color: #202020; }
.qp-page [hidden] { display: none !important; }
.qp-page [id] { scroll-margin-top: 28px; }
.qp-page #top { scroll-margin-top: 0; }
.qp-container { width: 89%; margin-inline: auto; }
.qp-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; margin: -1px; border: 0; clip-path: inset(50%); white-space: nowrap; }
.qp-skip { position: fixed; top: -100px; left: 20px; z-index: 200; background: var(--paper); padding: 12px 20px; }
.qp-skip:focus { top: 15px; }
.qp-header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding-top: 55px; }
.qp-header-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.qp-logo { display: block; width: fit-content; }
.qp-logo > span { display: block; font-family: 'Libre Caslon Text', Georgia, serif; font-size: 20px; font-weight: 400; letter-spacing: .04em; line-height: 1; }
.qp-logo > small { display: block; margin-top: 18px; font-size: 8px; line-height: 1.6; letter-spacing: .01em; white-space: nowrap; }
.qp-navigation { display: flex; flex-direction: row; align-items: flex-start; gap: 34px; padding-top: 3px; line-height: 1.1; }
.qp-navigation a, .qp-footer nav a, .qp-menu nav a { transition: opacity .25s; }
.qp-navigation a:hover, .qp-footer nav a:hover, .qp-menu nav a:hover { opacity: .45; }
.qp-menu-toggle { position: fixed; top: 46px; right: 5.5%; z-index: 12; width: 40px; height: 34px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.qp-menu-toggle span { position: absolute; left: 3px; width: 34px; height: 1px; background: currentColor; transition: width .25s; }
.qp-menu-toggle span:first-child { top: 12px; }
.qp-menu-toggle span:last-child { top: 21px; }
.qp-menu-toggle:hover span:last-child { width: 23px; }
.qp-past-hero .qp-menu-toggle { opacity: 1; visibility: visible; }
.qp-past-hero .qp-menu-toggle::before { content: ''; position: absolute; inset: -7px -10px; background: #fafafae6; z-index: -1; }
.qp-hero { height: 100svh; min-height: 540px; position: relative; overflow: hidden; background: #e4e5e2; }
.qp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; pointer-events: none; }
.qp-slide.is-current { opacity: 1; }
.qp-slide > :is(img,video) { width: 100%; height: 100%; object-fit: cover; }
.qp-slide--flower img { object-position: 50% 56%; }
.qp-slide--portrait img { object-position: 50% 42%; }
.qp-hero::after { content: ''; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(#ffffff18,transparent 25%,transparent 80%,#ffffff0a); }
.qp-hero-controls { position: absolute; z-index: 2; left: 5.5%; bottom: 32px; display: flex; align-items: center; gap: 16px; font-size: 9px; background: #fafafaad; padding: 0 9px; }
.qp-slide-buttons { display: flex; gap: 4px; }
.qp-slide-buttons button { min-width: 25px; min-height: 32px; opacity: .4; position: relative; }
.qp-slide-buttons button[aria-pressed=true] { opacity: 1; }
.qp-slide-buttons button::after { content: ''; position: absolute; left: 7px; right: 7px; bottom: 5px; border-bottom: 1px solid; transform: scaleX(0); transition: transform .3s; }
.qp-slide-buttons button[aria-pressed=true]::after { transform: none; }
.qp-motion { min-width: 24px; min-height: 32px; font-size: 12px !important; }
.qp-hero-scroll { position: absolute; z-index: 2; right: 5.5%; bottom: 33px; display: flex; align-items: center; gap: 22px; font-size: 10px; background: #fafafaad; padding: 3px 10px; }
.qp-hero-scroll span { font-size: 15px; }
.qp-editorial { display: grid; grid-template-columns: 25.6% 1fr; }
.qp-section-title { font-size: 13px !important; line-height: 1.5; letter-spacing: .04em; }
.qp-about { padding-top: 120px; }
.qp-about-body { min-width: 0; }
.qp-philosophy-ja { font-family: var(--japanese); font-size: 20px !important; line-height: 2; letter-spacing: .04em; }
.qp-philosophy-en { font-size: 11px !important; line-height: 2.75; margin-top: 44px !important; letter-spacing: .04em; }
.qp-more { display: inline-block; position: relative; font-size: 13px; line-height: 1.6; padding-bottom: 3px; }
.qp-more::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: #ccc; transition: background .25s, transform .25s; transform-origin: left; }
.qp-more:hover::after { background: var(--ink); transform: scaleX(.65); }
.qp-about-body > .qp-more { display: table; margin: 63px 0 0 auto; }
.qp-projects { padding-top: 180px; }
.qp-projects-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: 25px; margin-bottom: 60px; }
.qp-projects-heading h2 { font-size: clamp(24px,2.6vw,38px); letter-spacing: -.025em; line-height: 1.3; }
.qp-projects-heading p { font-family: var(--japanese); font-size: 10px; color: #777; line-height: 2; }
.qp-project-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 74px 3%; align-items: start; }
.qp-project { min-width: 0; grid-column: span 4; }
.qp-project:nth-child(5n+1) { grid-column: span 7; }
.qp-project:nth-child(5n+2) { grid-column: span 5; margin-top: 100px; }
.qp-project-open { display: block; position: relative; width: 100%; text-align: left; }
.qp-project-visual { display: block; aspect-ratio: 4/3; overflow: hidden; background: #e8e8e7; }
.qp-project:nth-child(5n+1) .qp-project-visual { aspect-ratio: 3/2; }
.qp-project-visual > img { width: 100%; height: 100%; object-fit: cover; transition: transform .85s cubic-bezier(.2,.65,.25,1); }
.qp-project--image .qp-project-visual > img { object-position: top; }
.qp-project-open:is(:hover,:focus-visible) .qp-project-visual > img { transform: scale(1.035); }
.qp-project-caption { position: relative; display: block; padding: 19px 32px 0 0; color: var(--ink); }
.qp-project-caption > span { display: block; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.qp-project-caption small { display: block; font-family: var(--japanese); color: #777; font-size: 9px; line-height: 1.9; margin-top: 5px; }
.qp-project-caption i { position: absolute; right: 0; top: 21px; font-size: 18px; line-height: 1; font-style: normal; transition: transform .3s; }
.qp-project-open:is(:hover,:focus-visible) .qp-project-caption i { transform: translate(3px,-3px); }
.qp-projects-more { display: flex; justify-content: flex-end; padding-top: 65px; }
.qp-news { grid-template-columns: 20.5% 1fr; padding-top: 235px; }
.qp-news .qp-section-title { padding-top: 5px; }
.qp-news-item { display: grid; grid-template-columns: 14% 1fr; column-gap: 4%; border-bottom: 1px solid #e4e4e4; padding: 0 0 27px; margin-bottom: 28px; align-items: baseline; }
.qp-news-item time { color: #aaa; font-size: 11px; white-space: nowrap; }
.qp-news-item h3 { font-family: var(--japanese); font-size: 12px; line-height: 2; transition: opacity .25s; }
.qp-news-item:hover h3 { opacity: .5; }
.qp-news-more { display: flex; justify-content: flex-end; gap: 28px; margin-top: 32px; }
.qp-services { padding-top: 220px; }
.qp-services-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.qp-services-heading > p { font-family: var(--japanese); font-size: 11px; color: #777; }
.qp-service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2.5%; }
.qp-service figure { overflow: hidden; background: #eee; }
.qp-service img { width: 100%; aspect-ratio: 1.35; object-fit: cover; transition: transform .8s, opacity .4s; }
.qp-service:hover img { transform: scale(1.025); opacity: .85; }
.qp-service h3 { margin-top: 12px; font-size: 12px; line-height: 1.65; }
.qp-service p { font-family: var(--japanese); font-size: 9px; margin-top: 4px; color: #777; }
.qp-footer { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 56px 2.5%; margin-top: 245px; padding-bottom: 36px; line-height: 1.45; }
.qp-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-size: 12px; }
.qp-footer-logo > small { margin-top: 18px; }
.qp-access { grid-column: 4/6; padding-left: 15%; }
.qp-access h2 { font-size: 12px; margin-bottom: 19px; }
.qp-access p { font-family: var(--japanese); font-size: 10px; line-height: 2.05; }
.qp-copyright { grid-row: 2; grid-column: 1; align-self: end; font-size: 9px; }
.qp-back { grid-row: 2; grid-column: 2; align-self: end; width: fit-content; font-size: 9px; border-bottom: 1px solid #ddd; }
.qp-page.qp-modal-open { overflow: hidden; }
.qp-page dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); font-family: var(--font); }
.qp-page dialog::backdrop { background: #fafafaf2; }
.qp-menu { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 55px 5.5% 40px !important; overflow-y: auto; }
.qp-menu[open] { display: grid; grid-template-columns: 25.6% 1fr 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 65px 0; }
.qp-menu .qp-logo { grid-column: 1; }
.qp-menu-primary { grid-column: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; font-size: clamp(28px,3vw,44px); line-height: 1.45; }
.qp-menu-secondary { grid-column: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; font-size: 13px; padding-top: 12px; }
.qp-menu-signature { grid-column: 2/4; align-self: end; font-size: 11px !important; line-height: 2.2; }
.qp-close { position: absolute; top: 42px; right: 5.5%; width: 44px; height: 44px; }
.qp-close span { position: absolute; width: 29px; height: 1px; top: 21px; left: 8px; background: currentColor; transform: rotate(45deg); }
.qp-close span:last-child { transform: rotate(-45deg); }
.qp-viewer { width: min(1360px,95vw); max-width: none; max-height: 95dvh; margin: auto; padding: 15px 25px 25px !important; }
.qp-viewer header { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 60px 15px 0; }
.qp-viewer h2 { font-size: 12px; line-height: 1.6; }
.qp-viewer .qp-close { top: 0; right: 17px; }
.qp-viewer-stage { display: grid; place-items: center; }
.qp-viewer-stage > :is(img,video) { width: auto; max-width: 100%; max-height: calc(95dvh - 105px); object-fit: contain; }
.qp-viewer-stage > video { width: 100%; background: #111; }
.qp-viewer-error { font-family: var(--japanese); margin-top: 15px !important; }
.qp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .85s ease, transform 1.15s cubic-bezier(.2,.7,.2,1); }
.qp-reveal.is-visible { opacity: 1; transform: none; }
@media (min-width: 1650px) {
  body.qp-page { font-size: 14px; }
  .qp-project-caption > span { font-size: 15px; }
  .qp-header { padding-top: 65px; }
  .qp-menu-toggle { top: 56px; }
}
@media (max-width: 1000px) and (min-width: 601px) {
  .qp-project-grid { gap: 55px 3%; }
  .qp-project:nth-child(5n+2) { margin-top: 65px; }
  .qp-navigation { gap: 22px; }
  .qp-news-item { grid-template-columns: 20% 1fr; }
  .qp-menu-primary { grid-column: 2/4; }
  .qp-menu-secondary { grid-column: 2; }
  .qp-menu-signature { grid-column: 3; }
}
@media (max-width: 600px) {
  .qp-container { width: 89%; }
  .qp-header { padding-top: 28px; }
  .qp-header-inner { display: block; }
  .qp-logo > span { font-size: 18px; }
  .qp-logo > small { margin-top: 11px; font-size: 7px; line-height: 1.6; }
  .qp-navigation { display: none; }
  .qp-menu-toggle { opacity: 1; visibility: visible; top: 18px; right: 5.5%; }
  .qp-hero { min-height: 0; height: 100svh; }
  .qp-hero-video { object-position: center; }
  .qp-slide--portrait img { object-position: 55% 50%; }
  .qp-hero-controls { left: 5.5%; bottom: 24px; gap: 8px; font-size: 8px; padding-inline: 6px; }
  .qp-hero-scroll { bottom: 25px; font-size: 8px; gap: 12px; }
  .qp-editorial { grid-template-columns: 1fr; }
  .qp-section-title { font-size: 12px !important; }
  .qp-about { padding-top: 64px; }
  .qp-about-body { padding-top: 46px; }
  .qp-philosophy { margin-left: 10%; }
  .qp-philosophy-ja { font-size: 18px !important; line-height: 2.15; }
  .qp-philosophy-en { font-size: 10px !important; margin-top: 38px !important; line-height: 2.8; }
  .qp-about-body > .qp-more { margin-top: 46px; }
  .qp-more { font-size: 12px; }
  .qp-projects { padding-top: 96px; }
  .qp-projects-heading { display: block; padding-top: 20px; margin-bottom: 34px; }
  .qp-projects-heading h2 { font-size: 25px; }
  .qp-projects-heading p { margin-top: 12px; font-size: 9px; }
  .qp-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 35px 5.8%; }
  .qp-project, .qp-project:nth-child(5n+2) { grid-column: span 1; margin-top: 0; }
  .qp-project:nth-child(5n+1) { grid-column: span 2; }
  .qp-project-visual { aspect-ratio: 4/5; }
  .qp-project--image .qp-project-visual { aspect-ratio: 4/3; }
  .qp-project-caption { padding: 12px 18px 0 0; }
  .qp-project-caption > span { font-size: 12px; }
  .qp-project-caption small { font-size: 8px; }
  .qp-project-caption i { font-size: 13px; top: 16px; }
  .qp-projects-more { padding-top: 44px; }
  .qp-news { padding-top: 112px; }
  .qp-news-body { margin-top: 32px; }
  .qp-news-item { grid-template-columns: 1fr; gap: 9px; padding-bottom: 21px; margin-bottom: 24px; }
  .qp-news-item time { font-size: 10px; }
  .qp-news-item h3 { font-size: 11px; line-height: 2.2; }
  .qp-news-more { margin-top: 29px; gap: 25px; }
  .qp-services { padding-top: 112px; }
  .qp-services-heading { flex-direction: column; align-items: flex-start; gap: 9px; margin-bottom: 28px; }
  .qp-services-heading > p { font-size: 10px; }
  .qp-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 27px 5.8%; }
  .qp-service h3 { font-size: 10px; margin-top: 10px; }
  .qp-service p { font-size: 8px; margin-top: 4px; }
  .qp-footer { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 42px 5.8%; margin-top: 125px; padding-bottom: 28px; }
  .qp-footer-logo { grid-column: 1/3; }
  .qp-footer nav { gap: 15px; font-size: 12px; }
  .qp-access { grid-column: 1/3; padding: 0; }
  .qp-access h2 { font-size: 11px; margin-bottom: 15px; }
  .qp-access p { font-size: 10px; }
  .qp-copyright { grid-row: auto; grid-column: 1; font-size: 8px; }
  .qp-back { grid-row: auto; grid-column: 2; justify-self: end; font-size: 8px; }
  .qp-menu { padding: 28px 5.5% 33px !important; }
  .qp-menu[open] { grid-template-columns: 1fr 1fr; gap: 36px 0; grid-template-rows: auto auto 1fr; }
  .qp-menu .qp-logo { grid-column: 1/3; }
  .qp-menu-primary { grid-column: 1; gap: 14px; font-size: 26px; line-height: 1.6; }
  .qp-menu-secondary { grid-column: 2; padding-left: 22%; padding-top: 12px; gap: 23px; font-size: 10px; }
  .qp-menu-signature { grid-column: 1/3; align-self: end; font-size: 10px !important; }
  .qp-close { top: 14px; }
  .qp-viewer { width: 96vw; padding: 12px 10px 15px !important; }
  .qp-viewer header { min-height: 50px; padding-right: 40px; }
  .qp-viewer h2 { font-size: 10px; }
  .qp-viewer .qp-close { right: 1px; top: 0; }
  .qp-viewer-stage > :is(img,video) { max-height: calc(95dvh - 100px); }
}
@media (prefers-reduced-motion: reduce) {
  .qp-page *, .qp-page *::before, .qp-page *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .qp-reveal { opacity: 1; transform: none; }
}
