:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #20221c;
  --muted: #56584f;
  --line: #d4d3c9;
  --accent: #d44a18;
  --dark-accent: #a63410;
  --sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 var(--sans); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: rgb(212 74 24 / .18); }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #0068b3;
  outline-offset: 4px;
}
::selection { background: #ffd5b8; color: #20221c; }
.shell { width: min(1280px, 89.5%); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: 8px; transform: translateY(-150%); padding: 8px 16px; background: var(--ink); color: white; z-index: 5; }
.skip:focus { transform: none; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.masthead { min-height: 79px; border-bottom: 1px solid var(--line); }
.brand { font: 800 37px/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: -.085em; padding-block: 5px 9px; }
.brand span, .period { color: var(--accent); }
nav { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 40px); font-size: 13px; font-weight: 650; }
nav a, .back { display: inline-flex; align-items: center; min-height: 44px; }
nav a:not(.nav-contact):hover, .back:hover { text-decoration: underline; text-underline-offset: .35em; }
.nav-contact { gap: 18px; border: 1px solid var(--ink); padding: 3px 18px; border-radius: 99px; }
.nav-contact:hover { color: var(--paper); background: var(--ink); }
.nav-contact span, .back span { font-family: Arial, sans-serif; font-size: 1.2em; }
.hero {
  display: grid; grid-template-columns: 1fr 1.03fr; gap: clamp(30px, 5.5vw, 85px); align-items: center;
  padding-block: clamp(35px, 4.8vw, 72px) clamp(46px, 5.9vw, 84px);
}
.kicker, .eyebrow { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.kicker { font-size: 13px; letter-spacing: .07em; }
.rule, .eyebrow::before { content: ""; display: inline-block; width: 24px; height: 3px; background: var(--accent); flex: none; }
h1 { margin: 19px 0 22px; font-size: clamp(43px, 4.95vw, 78px); line-height: 1.19; font-weight: 800; letter-spacing: -.067em; }
.intro-text { max-width: 32em; color: var(--muted); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.95; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 27px; padding: 11px 22px; min-height: 48px; border: 1px solid transparent; border-radius: 3px; font-weight: 700; font-size: 14px; }
.button span { font: 21px/1 Arial, sans-serif; }
.dark { margin-top: 27px; background: var(--ink); color: var(--paper); }
.dark:hover { background: #42463c; }
.hero-art { display: block; width: 100%; height: auto; aspect-ratio: 4/3; border-radius: 3px; }
.works { padding-block: clamp(32px, 3.7vw, 54px) clamp(58px, 7vw, 104px); border-top: 1px solid var(--ink); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 31px; }
.eyebrow { font: 700 12px/1.4 "Helvetica Neue", Arial, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { width: 17px; height: 2px; }
h2 { margin-top: 8px; font-size: clamp(34px, 3.3vw, 54px); line-height: 1.3; letter-spacing: -.055em; }
.period { font-family: Arial, sans-serif; margin-left: .025em; }
.section-aside { color: var(--muted); font-size: 14px; padding-bottom: 3px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.3vw, 36px); }
.case { display: flex; flex-direction: column; align-items: start; position: relative; }
.case-image { width: 100%; aspect-ratio: 1.72; overflow: hidden; background: #e1ded2; border-radius: 2px; }
.case-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.moteki { background: #292c29; }
.moteki img { object-fit: contain; }
.case:has(.work-link:hover) img { transform: scale(1.025); }
.category { margin-top: 19px; font-size: 12px; font-weight: 700; letter-spacing: .015em; color: var(--dark-accent); }
.category span { margin-inline: .2em; }
h3 { margin-top: 5px; font-size: clamp(20px, 1.68vw, 26px); line-height: 1.45; letter-spacing: -.035em; text-wrap: pretty; }
.case-desc { margin: 12px 0 14px; font-size: 15px; line-height: 1.85; color: var(--muted); }
.work-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.work-link::after { content: ""; position: absolute; inset: 0; }
.work-link span { font: 18px/1 Arial, sans-serif; color: var(--dark-accent); }
.work-link:hover { color: var(--dark-accent); }
.service-band { background: #eeede5; border-block: 1px solid var(--line); }
.service-layout, .contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 8vw, 130px); padding-block: clamp(52px, 6.6vw, 100px); }
.service-intro > p:last-child, .contact h2 + p { max-width: 29em; margin-top: 17px; color: var(--muted); }
.menu { border-top: 1px solid #97998b; }
details { border-bottom: 1px solid #babbb0; }
summary { list-style: none; position: relative; padding: 18px 38px 18px 0; line-height: 1.5; font-size: clamp(16px, 1.45vw, 21px); font-weight: 700; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; inset: 50% 6px auto auto; width: 14px; height: 2px; background: var(--dark-accent); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: none; }
summary:hover { color: var(--dark-accent); }
details p { padding: 0 35px 19px 0; color: var(--muted); font-size: 15px; }
.contact { background: #252820; color: var(--paper); }
.contact-layout { align-items: center; }
.contact .eyebrow::before { background: #ff8353; }
.contact .period { color: #ff8353; }
.contact h2 + p { color: #dcdfd2; }
.reply { border-left: 1px solid #696d61; padding-left: clamp(24px, 3.5vw, 56px); }
.reply-label { color: #d5d7ce; font-size: 12px; font-weight: 700; letter-spacing: .05em; }
#reply-text { margin: 8px 0 20px; max-width: 28em; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.7; }
.copy { background: var(--paper); color: var(--ink); }
.copy:hover { background: #f9d9c2; }
.copy[hidden] { display: none; }
.status { font-size: 13px; color: #f3d2bd; }
.status:not(:empty) { margin-top: 10px; }
.footer { min-height: 84px; }
.footer .brand { font-size: 29px; }
.back { gap: 10px; font-size: 13px; }
@media (max-width: 820px) {
  .shell { width: 91%; }
  .hero { gap: 23px; grid-template-columns: 1fr .94fr; }
  h1 { font-size: clamp(36px, 5.7vw, 52px); }
  .hero-art { aspect-ratio: 1.06; object-fit: cover; }
  .work-grid { gap: 18px; }
  .service-layout, .contact-layout { grid-template-columns: .8fr 1.2fr; gap: 25px; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 12px; }
  .shell { width: calc(100% - 40px); }
  .masthead { min-height: 62px; gap: 8px; }
  .brand { font-size: 30px; }
  nav { gap: 13px; font-size: 12px; }
  .nav-contact { gap: 3px; padding: 3px 8px; min-height: 36px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-block: 33px; }
  .kicker { font-size: 12px; }
  h1 { font-size: clamp(42px, 9.7vw, 60px); margin: 14px 0 13px; }
  .intro-text { font-size: 15px; line-height: 1.85; }
  .dark { margin-top: 18px; }
  .hero-art { aspect-ratio: 1.62; object-position: 50% 52%; }
  .works { padding-block: 32px 47px; }
  .section-head { display: block; margin-bottom: 21px; }
  .section-aside { font-size: 13px; margin-top: 6px; }
  .work-grid { grid-template-columns: 1fr; gap: 30px; }
  .case + .case { padding-top: 25px; border-top: 1px solid var(--line); }
  .category { margin-top: 13px; }
  h3 { margin-top: 2px; font-size: 23px; }
  .case-desc { margin: 7px 0 3px; }
  .service-layout, .contact-layout { grid-template-columns: 1fr; gap: 25px; padding-block: 42px; }
  .service-intro > p:last-child, .contact h2 + p { margin-top: 11px; }
  .reply { padding: 20px 0 0; border-left: 0; border-top: 1px solid #696d61; }
  .footer { min-height: 72px; }
}
@media (max-width: 370px) {
  .shell { width: calc(100% - 28px); }
  nav { gap: 9px; font-size: 11px; }
  .brand { font-size: 27px; }
  h3 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case-image img { transition: none; }
}
