@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #fbf8f2;
  --white: #fff;
  --ink: #282620;
  --muted: #696258;
  --gold: #80602d;
  --line: #ddd6ca;
  --soft: #f2eee6;
  --serif: "Noto Serif JP", "Noto Serif CJK JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.9 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
ul, ol { margin: 0; padding: 0; }
button, summary { font: inherit; }
.case-container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; left: 20px; top: -120px; z-index: 20; padding: 12px 20px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }

/* The same quiet identity used on the portfolio home. */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; flex-shrink: 0; }
.brand-mark { width: 58px; height: 41px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font: 24px/1.1 Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.brand-person { color: var(--muted); font-size: 10px; line-height: 1.2; letter-spacing: .13em; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; letter-spacing: .09em; }
.site-nav a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 7px; }
.breadcrumbs { padding-top: 30px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 12px; }
.breadcrumbs li + li::before { content: "/"; color: #a9a093; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs a:hover { color: var(--gold); }

.case-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(230px, .75fr); align-items: end; gap: 50px 90px; padding-top: 42px; padding-bottom: 54px; }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 500; line-height: 1.5; letter-spacing: .16em; }
.work-kind { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 16px; }
.case-hero h1 { margin-top: 14px; font: 500 clamp(38px, 4.4vw, 62px)/1.45 var(--serif); letter-spacing: .07em; }
.case-tagline { margin-top: 18px; font: 500 clamp(19px, 1.8vw, 25px)/1.75 var(--serif); letter-spacing: .025em; }
.case-description { max-width: 41em; margin-top: 16px; color: var(--muted); line-height: 2; }
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 52px; max-width: 100%; padding: 12px 24px; border: 1px solid var(--ink); background: var(--ink); color: white; font-size: 13px; letter-spacing: .025em; transition: background .2s, border-color .2s; }
.button:hover { background: var(--gold); border-color: var(--gold); }
.button span[aria-hidden] { font-size: 19px; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding: 5px 0; color: var(--gold); border-bottom: 1px solid var(--line); font-size: 12px; }
.text-link:hover { border-color: var(--gold); }
.case-meta { margin: 0; border-top: 1px solid var(--line); }
.case-meta > div { padding: 17px 0; border-bottom: 1px solid var(--line); }
.case-meta dt { color: var(--gold); font-size: 10px; letter-spacing: .12em; }
.case-meta dd { margin: 5px 0 0; font-size: 13px; line-height: 1.8; }

.showcase { background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(28px, 5vw, 64px) 0; }
.desktop-frame { background: var(--soft); border: 1px solid var(--line); }
.browser-bar { min-height: 28px; display: flex; align-items: center; gap: 5px; padding: 8px 11px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 5px; height: 5px; border: 1px solid #a99e8c; border-radius: 50%; }
.desktop-frame img { width: 100%; }
.screen-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.screen-caption > span:first-child { color: var(--gold); letter-spacing: .13em; }

.design-story { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 50px 100px; padding-top: 94px; padding-bottom: 94px; }
.section-title { margin-top: 15px; font: 500 clamp(28px, 2.7vw, 37px)/1.65 var(--serif); letter-spacing: .04em; }
.section-intro { max-width: 25em; margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 2; }
.design-points { list-style: none; border-top: 1px solid var(--line); }
.design-points li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding: 25px 0 27px; border-bottom: 1px solid var(--line); }
.point-number { color: var(--gold); font: italic 23px/1.5 Georgia, serif; }
.design-points h3 { font: 500 20px/1.6 var(--serif); }
.design-points p { margin-top: 11px; color: var(--muted); font-size: 13px; line-height: 2; }

.responsive-section { padding: 70px 0; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.responsive-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr); align-items: center; gap: 72px 100px; }
.responsive-copy { max-width: 520px; }
.responsive-copy > p:not(.eyebrow) { margin-top: 23px; color: var(--muted); line-height: 2.05; }
.responsive-note { margin-top: 25px; padding-top: 20px; border-top: 1px solid #d1c7b7; color: var(--muted); font-size: 12px; line-height: 1.9; }
.mobile-figure { width: min(100%, 290px); justify-self: center; }
.mobile-frame { padding: 7px; background: white; border: 1px solid #c3baad; border-radius: 22px; }
.mobile-frame img { width: 100%; border-radius: 15px; }
.mobile-figure figcaption { margin-top: 14px; color: var(--gold); font-size: 10px; letter-spacing: .14em; text-align: center; }

.full-view { padding-top: 52px; padding-bottom: 54px; }
.full-view details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.full-view summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 14px 4px; cursor: pointer; list-style: none; }
.full-view summary::-webkit-details-marker { display: none; }
.full-view summary::after { content: "+"; color: var(--gold); font: 26px/1 Georgia, serif; }
.full-view details[open] summary::after { content: "−"; }
.full-view summary:hover { color: var(--gold); }
.full-label { display: block; font: 500 18px/1.7 var(--serif); }
.full-hint { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.full-screen { margin-bottom: 26px; border: 1px solid var(--line); background: white; }
.full-screen img { width: 100%; }
.full-screen figcaption { padding: 13px 18px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.material-note { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px 50px; padding-bottom: 65px; }
.material-note h2 { color: var(--gold); font-size: 12px; font-weight: 500; }
.material-note p { max-width: 68em; color: var(--muted); font-size: 12px; line-height: 2; }
.material-note p + p { margin-top: 9px; }

.next-work { border-top: 1px solid var(--line); }
.next-work-link { display: grid; grid-template-columns: minmax(0, 1fr) 190px 32px; align-items: center; gap: 40px; padding-top: 38px; padding-bottom: 40px; }
.next-work-title { display: block; margin-top: 9px; font: 500 clamp(25px, 2.5vw, 35px)/1.7 var(--serif); letter-spacing: .04em; }
.next-work-text { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.next-work-image { border: 1px solid var(--line); aspect-ratio: 8 / 5; object-fit: cover; }
.next-work-arrow { color: var(--gold); font: 28px/1 var(--serif); transition: transform .2s; }
.next-work-link:hover .next-work-arrow { transform: translateX(5px); }
.next-work-link:hover .next-work-title { color: var(--gold); }

.case-contact { padding: 64px 0 56px; background: var(--ink); color: var(--paper); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 36px 80px; align-items: center; }
.case-contact .eyebrow { color: #d9bf94; }
.case-contact h2 { margin-top: 14px; font: 400 clamp(27px, 2.4vw, 34px)/1.7 var(--serif); letter-spacing: .04em; }
.contact-description { max-width: 40em; margin-top: 17px; color: #d5cec4; font-size: 13px; line-height: 1.95; }
.contact-links { display: flex; flex-direction: column; align-items: stretch; gap: 9px; }
.contact-links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 12px 0; border-bottom: 1px solid #716757; font-size: 13px; }
.contact-links a:hover { color: #ebc992; border-color: #d9bf94; }
.case-contact a:focus-visible { outline-color: #ebc992; }
.site-footer { padding-top: 24px; padding-bottom: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px 30px; }
.footer-back { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; color: var(--gold); font-size: 12px; }
.footer-back:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer small { color: var(--muted); font-size: 10px; letter-spacing: .05em; }

@media (max-width: 1000px) {
  .case-container { width: calc(100% - 64px); }
  .case-hero { grid-template-columns: minmax(0, 1.5fr) minmax(190px, .8fr); gap: 42px; }
  .case-hero h1 { font-size: 45px; }
  .case-description { font-size: 14px; }
  .design-story { gap: 50px; padding-top: 72px; padding-bottom: 72px; }
  .responsive-layout { gap: 60px; }
  .contact-layout { gap: 48px; }
}

@media (max-width: 760px) {
  .case-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 30px; padding-bottom: 38px; }
  .case-meta { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .case-meta > div { border-bottom: 0; }
  .case-meta > div + div { border-left: 1px solid var(--line); padding-left: 22px; }
  .design-story { grid-template-columns: 1fr; gap: 30px; }
  .section-intro { max-width: 44em; }
  .responsive-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 38px; }
  .responsive-copy > p:not(.eyebrow) { font-size: 13px; }
  .material-note { grid-template-columns: 1fr; gap: 12px; }
  .contact-layout { grid-template-columns: 1fr; gap: 26px; }
  .contact-links { max-width: 440px; }
}

@media (max-width: 640px) {
  .case-container { width: calc(100% - 40px); }
  body { font-size: 14px; }
  .site-header-inner { min-height: 98px; padding-top: 6px; display: grid; grid-template-columns: 1fr; gap: 0; }
  .brand { justify-self: center; gap: 10px; min-height: 44px; }
  .brand-mark { width: 47px; height: 33px; }
  .brand-name { font-size: 21px; }
  .brand-person { font-size: 9px; }
  .site-nav { justify-content: center; gap: 36px; min-height: 44px; }
  .site-nav a { font-size: 11px; }
  .breadcrumbs { padding-top: 13px; font-size: 10px; }
  .breadcrumbs ol { gap: 2px 9px; }
  .breadcrumbs li { gap: 9px; }
  .case-hero { padding-top: 22px; gap: 28px; }
  .eyebrow { font-size: 10px; }
  .work-kind { margin-top: 14px; font-size: 10px; }
  .case-hero h1 { margin-top: 12px; font-size: clamp(32px, 9.1vw, 42px); letter-spacing: .045em; }
  .case-tagline { font-size: 19px; line-height: 1.75; }
  .case-description { margin-top: 14px; font-size: 13px; line-height: 1.95; }
  .case-actions { margin-top: 24px; gap: 12px 20px; }
  .button { gap: 26px; min-height: 50px; padding: 12px 19px; font-size: 12px; }
  .text-link { font-size: 11px; }
  .case-meta dd { font-size: 11px; }
  .case-meta dt { font-size: 9px; }
  .case-meta > div { padding: 14px 0; }
  .case-meta > div + div { padding-left: 15px; }
  .showcase { padding: 27px 0 25px; }
  .browser-bar { min-height: 20px; padding: 5px 7px; }
  .browser-bar i { width: 4px; height: 4px; }
  .screen-caption { font-size: 10px; }
  .design-story { padding-top: 49px; padding-bottom: 49px; }
  .section-title { margin-top: 12px; font-size: 28px; }
  .section-intro { margin-top: 14px; font-size: 12px; }
  .design-points li { grid-template-columns: 27px minmax(0, 1fr); gap: 13px; padding: 23px 0; }
  .point-number { font-size: 20px; }
  .design-points h3 { font-size: 19px; }
  .design-points p { margin-top: 10px; font-size: 12px; }
  .responsive-section { padding: 46px 0; }
  .responsive-layout { grid-template-columns: 1fr; gap: 31px; }
  .responsive-copy > p:not(.eyebrow) { margin-top: 17px; }
  .responsive-note { margin-top: 19px; padding-top: 17px; font-size: 11px; }
  .mobile-figure { width: min(100% - 36px, 270px); }
  .full-view { padding-top: 33px; padding-bottom: 35px; }
  .full-view summary { min-height: 73px; }
  .full-label { font-size: 17px; }
  .full-hint { font-size: 10px; }
  .full-screen figcaption { padding: 11px 12px; font-size: 10px; }
  .material-note { padding-bottom: 41px; }
  .material-note p { font-size: 11px; }
  .next-work-link { grid-template-columns: minmax(0, 1fr) 90px 18px; gap: 12px; padding-top: 27px; padding-bottom: 29px; }
  .next-work-title { margin-top: 7px; font-size: clamp(19px, 5.4vw, 24px); }
  .next-work-text { display: none; }
  .next-work-arrow { font-size: 22px; }
  .case-contact { padding: 44px 0 39px; }
  .case-contact h2 { font-size: 27px; }
  .contact-description { margin-top: 15px; font-size: 12px; }
  .contact-links a { font-size: 12px; }
  .site-footer { padding-top: 16px; padding-bottom: 20px; gap: 8px 24px; }
}

@media (max-width: 360px) {
  .case-container { width: calc(100% - 32px); }
  .case-hero h1 { font-size: 31px; }
  .case-tagline { font-size: 18px; }
  .site-nav { gap: 30px; }
  .next-work-link { grid-template-columns: minmax(0, 1fr) 70px 16px; gap: 10px; }
  .next-work-title { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
