:root {
  --paper: #f6f1e2;
  --paper-light: #fbf8ef;
  --paper-deep: #eee5ce;
  --ink: #211d19;
  --ink-soft: #625a50;
  --shu: #b63a24;
  --shu-dark: #8f2818;
  --shu-pale: rgba(182, 58, 36, .09);
  --line: rgba(72, 56, 39, 0.23);
  --line-strong: rgba(72, 56, 39, 0.38);
  --shadow-soft: 0 12px 32px rgba(50, 39, 26, 0.08);
  --shadow: 0 20px 54px rgba(50, 39, 26, 0.12);
  --max-width: 1080px;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.85;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 16%, rgba(255,255,255,.32), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(113,79,41,.045), transparent 32%),
    linear-gradient(rgba(246,241,226,.88), rgba(246,241,226,.88)),
    url("../images/washi.png");
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-size: 58vw 58vw, 52vw 52vw, auto, 512px 512px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background-image: repeating-linear-gradient(88deg, transparent 0 9px, rgba(68,49,30,.018) 10px 11px);
  mix-blend-mode: multiply;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
button, summary { font: inherit; }
::selection { background: rgba(182,58,36,.22); }

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,241,226,.84);
  backdrop-filter: blur(14px) saturate(.9);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  background: rgba(246,241,226,.94);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(48,35,20,.06);
}
.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .16em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand::first-letter { color: var(--shu); }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: .92rem;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--shu);
  transition: right .2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after { right: 0; }

.hero {
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  padding-block: 92px 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  isolation: isolate;
}
.hero-frame {
  position: absolute;
  inset: 8% 4.5%;
  border: 1px solid rgba(182,58,36,.17);
  pointer-events: none;
}
.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: var(--shu);
  opacity: .34;
}
.hero-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.hero-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}
.hero-seal {
  position: absolute;
  right: 8%;
  top: 18%;
  width: 54px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--shu);
  border: 2px solid currentColor;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5rem;
  transform: rotate(4deg);
  opacity: .74;
}
.hero-logo {
  width: min(650px, 84vw);
  filter: drop-shadow(0 16px 30px rgba(49,37,22,.12));
  animation: hero-in .8s cubic-bezier(.2,.7,.2,1) both;
}
.hero-copy {
  margin: 34px 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 1.55;
  letter-spacing: .08em;
  text-wrap: balance;
  animation: hero-in .8s .08s cubic-bezier(.2,.7,.2,1) both;
}
.hero-lead {
  max-width: 700px;
  margin: 0 0 30px;
  color: var(--ink-soft);
  animation: hero-in .8s .16s cubic-bezier(.2,.7,.2,1) both;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 24px;
  animation: hero-in .8s .24s cubic-bezier(.2,.7,.2,1) both;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 13px 24px;
  border: 1px solid var(--shu);
  background: var(--shu);
  color: #fffaf0;
  text-decoration: none;
  letter-spacing: .12em;
  box-shadow: 0 8px 20px rgba(143,40,24,.13);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.primary-button:hover,
.primary-button:focus-visible {
  background: var(--shu-dark);
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(143,40,24,.22);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  text-underline-offset: 6px;
  text-decoration-color: rgba(182,58,36,.42);
}
.text-link span { color: var(--shu); transition: transform .2s ease; }
.text-link:hover span { transform: translateY(3px); }
.scroll-cue {
  position: absolute;
  bottom: 24px;
  width: 28px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--shu);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scroll-dot {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(18px); }
}

.section { padding-block: 110px; }
.section-heading { margin-bottom: 46px; text-align: center; }
.section-kicker {
  margin: 0 0 6px;
  color: var(--shu);
  font-family: Georgia, serif;
  font-size: .78rem;
  letter-spacing: .23em;
  text-transform: uppercase;
}
.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.15rem);
  letter-spacing: .14em;
  font-weight: 700;
}
.section-heading h2::after {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  margin: 16px auto 0;
  background: var(--shu);
}
.section-heading p:last-child { color: var(--ink-soft); margin: 14px 0 0; }

.paper-divider {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: var(--shu);
  opacity: .72;
}
.paper-divider span { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.paper-divider b { font-size: .7rem; transform: rotate(45deg); }

.accordion-list { display: grid; gap: 16px; }
.work-group {
  overflow: clip;
  border: 1px solid var(--line);
  background: rgba(255,252,244,.55);
  box-shadow: var(--shadow-soft);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.work-group:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.work-group[open] { border-color: rgba(182,58,36,.36); }
.work-group summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--serif);
  font-size: 1.16rem;
  letter-spacing: .08em;
  user-select: none;
}
.work-group summary::-webkit-details-marker { display: none; }
.work-group summary::after {
  content: "＋";
  flex: 0 0 auto;
  color: var(--shu);
  font-family: var(--sans);
  transition: transform .25s ease;
}
.work-group[open] summary::after { transform: rotate(45deg); }
.work-items {
  padding: 2px 22px 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.work-card {
  position: relative;
  min-height: 100%;
  padding: 24px 24px 22px;
  border: 1px solid rgba(72,56,39,.16);
  border-left: 3px solid var(--shu);
  background: linear-gradient(135deg, rgba(251,248,239,.92), rgba(246,241,226,.72));
  box-shadow: 0 8px 20px rgba(47,36,22,.035);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.work-card:hover {
  transform: translateY(-3px);
  border-color: rgba(182,58,36,.26);
  box-shadow: 0 15px 30px rgba(47,36,22,.09);
}
.work-card h3 { margin: 0 0 11px; font-family: var(--serif); font-size: 1.16rem; line-height: 1.7; }
.work-card p { margin: 6px 0; color: var(--ink-soft); }
.work-card p.is-highlight {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 9px;
  color: var(--shu-dark);
  background: var(--shu-pale);
  font-weight: 700;
}
.work-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--shu-dark);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.work-card a::after { content: "↗"; font-size: .9em; }
.badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  background: var(--shu);
  color: #fff;
  font-size: .68rem;
  letter-spacing: .08em;
  vertical-align: .15em;
}

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}
.skill-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(72,56,39,.16);
  border-top: 3px solid var(--shu);
  background: rgba(255,252,244,.58);
  box-shadow: var(--shadow-soft);
}
.skill-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -42px;
  bottom: -50px;
  border: 1px solid rgba(182,58,36,.13);
  transform: rotate(45deg);
}
.skill-card h3 { margin: 0 0 20px; font-family: var(--serif); font-size: 1.35rem; letter-spacing: .1em; }
.skill-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skill-card li {
  padding: 7px 12px;
  border: 1px solid rgba(72,56,39,.18);
  background: rgba(246,241,226,.72);
  color: var(--ink-soft);
  font-size: .94rem;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  counter-reset: services;
}
.service-list li {
  position: relative;
  min-height: 94px;
  padding: 24px 18px 18px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255,252,244,.49);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.service-list li::before {
  counter-increment: services;
  content: counter(services, decimal-leading-zero);
  position: absolute;
  top: 6px;
  left: 10px;
  color: rgba(182,58,36,.34);
  font-family: Georgia, serif;
  font-size: .75rem;
}
.service-list li:hover { transform: translateY(-2px); border-color: rgba(182,58,36,.42); background: rgba(255,252,244,.7); }
.estimate-note { margin: 30px 0 0; text-align: center; color: var(--ink-soft); }

.contact { text-align: center; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.contact-link {
  min-width: 232px;
  padding: 15px 22px;
  border: 1px solid var(--ink);
  text-decoration: none;
  background: rgba(255,252,244,.54);
  transition: color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.contact-link:hover,
.contact-link:focus-visible {
  color: var(--shu);
  border-color: var(--shu);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(47,36,22,.08);
}

.site-footer { border-top: 1px solid var(--line); background: rgba(238,229,206,.58); }
.footer-inner {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-soft);
}
.footer-inner > div { display: grid; gap: 2px; }
.footer-mark { font-family: var(--serif); color: var(--ink); letter-spacing: .16em; font-weight: 700; }
.footer-role { font-family: Georgia, serif; font-size: .72rem; letter-spacing: .16em; color: var(--shu); text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid rgba(182,58,36,.35); outline-offset: 4px; }

@media (max-width: 820px) {
  .work-items { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 58px; }
  .container { width: min(calc(100% - 28px), var(--max-width)); }
  .site-header { overflow-x: auto; }
  .nav { min-height: 58px; justify-content: flex-start; width: max-content; min-width: calc(100% - 28px); }
  .nav-brand { position: sticky; left: 14px; padding-right: 10px; background: linear-gradient(90deg, rgba(246,241,226,.97) 75%, transparent); }
  .nav-links { gap: 18px; padding-right: 14px; }
  .nav-links a { white-space: nowrap; font-size: .86rem; }
  .hero { min-height: calc(100svh - 58px); padding-block: 72px 84px; }
  .hero-frame { inset: 5% 1%; }
  .hero-seal { width: 44px; top: 11%; right: 5%; font-size: 1.2rem; }
  .hero-logo { width: min(530px, 92vw); }
  .hero-copy { margin-top: 24px; font-size: clamp(1.45rem, 7.2vw, 2.15rem); }
  .desktop-break { display: none; }
  .hero-lead { font-size: .94rem; }
  .hero-actions { flex-direction: column; gap: 14px; }
  .scroll-cue { bottom: 18px; }
  .section { padding-block: 82px; }
  .section-heading { margin-bottom: 34px; }
  .two-column-grid { grid-template-columns: 1fr; }
  .skill-card { padding: 28px 24px; }
  .service-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-inner { min-height: 138px; flex-direction: column; justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .service-list { grid-template-columns: 1fr; }
  .work-group summary { padding: 18px; }
  .work-items { padding: 0 14px 16px; }
  .work-card { padding: 20px 18px; }
  .contact-link { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
