:root{color-scheme:light;--paper:#d8d8d8;--ink:#202020;--muted:#505050;--line:#aaa;--pad:clamp(20px,5vw,84px);font-family:Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:var(--ink);background:var(--paper);scroll-behavior:smooth}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-underline-offset:.25em}a:focus-visible,summary:focus-visible{outline:2px solid currentColor;outline-offset:5px}img{display:block;max-width:100%}p,h1,h2,h3,figure,dl,dd{margin:0}p,dd{line-height:1.85}section[id]{scroll-margin-top:24px}.wrap{width:min(100%,1640px);margin-inline:auto;padding-inline:var(--pad)}.mono{font:600 .72rem/1.35 ui-monospace,monospace;letter-spacing:.12em}.skip{position:absolute;left:16px;top:-100px;background:var(--paper);padding:12px;z-index:5}.skip:focus{top:12px}
.header{display:flex;align-items:center;justify-content:space-between;gap:26px;min-height:78px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0}.brand img{width:32px;height:32px;object-fit:contain}.brand strong{font-size:1.08rem;letter-spacing:.055em}.header nav{display:flex;flex-wrap:wrap;justify-content:end;gap:12px 26px;font-size:.75rem;font-weight:700}.header nav a{text-decoration:none}.header nav a:hover,.row:hover summary{text-decoration:underline}.header nav a:last-child{border-bottom:1px solid}
.hero{padding-block:clamp(16px,3vw,44px) 34px}
.hero-grid{position:relative;isolation:isolate;display:grid;place-items:center;min-height:clamp(420px,45vw,650px)}
.hero-copy{min-width:0;position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;padding:42px 0;text-align:center}
.hero h1{font-size:clamp(2.6rem,7vw,7rem);line-height:1.14;letter-spacing:-.075em;margin:24px 0;white-space:pre-line;overflow-wrap:anywhere}
.intro{font-size:.93rem;max-width:31em}
.hero-art{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.hero-art img{width:min(70%,470px);max-height:92%;object-fit:contain;opacity:.19;filter:grayscale(1)}
.edition{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:15px;padding-top:14px;color:var(--muted);font-size:.72rem}
.dark{background:#303030;color:#e3e3e3}.section{padding-block:clamp(48px,7vw,100px)}.section-head{display:grid;grid-template-columns:minmax(150px,.48fr) 1fr;gap:24px;margin-bottom:38px}.section-head h2{font-size:clamp(2.1rem,4.2vw,4.7rem);letter-spacing:-.07em;line-height:1.08}.section-head h2 span{display:block;margin-top:12px;font-size:.85rem;letter-spacing:.08em;font-weight:500}.lead{align-self:end;max-width:34em}.rule{border-top:1px solid var(--line)}.dark .rule,.dark .row{border-color:#666}.row{border-bottom:1px solid var(--line);padding:0}.row summary{cursor:pointer;list-style:none;padding:22px 0;display:grid;grid-template-columns:minmax(95px,.32fr) 1fr auto;align-items:center;gap:12px}.row summary::-webkit-details-marker{display:none}.row summary::after{content:"+";font-size:1.25rem}.row[open] summary::after{content:"−"}.row strong{font-size:clamp(1.1rem,2.5vw,2rem)}.row-body{padding:0 0 24px;white-space:pre-line}.row-body img{margin-bottom:15px;max-width:min(100%,520px);max-height:320px;object-fit:contain}.company-row{display:grid;grid-template-columns:minmax(95px,.32fr) 1fr;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.company-row dt{font-size:.86rem;font-weight:700}.split{display:grid;grid-template-columns:1fr 1fr;gap:44px}.split .section{padding-block:48px}.split h2{font-size:clamp(1.55rem,3vw,2.8rem);margin:10px 0 18px;letter-spacing:-.035em}.copy{white-space:pre-line}.footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-block:25px;font-size:.74rem}
@media(max-width:760px){.header{flex-wrap:wrap;padding-block:14px;gap:12px}.header nav{justify-content:start;gap:9px 15px;width:100%}.section-head,.split{grid-template-columns:1fr}.hero-grid{min-height:clamp(370px,86vw,470px)}.hero-copy{padding:28px 0}.hero h1{font-size:clamp(2.35rem,10vw,4.5rem);margin:18px 0}.hero-art img{width:min(90%,360px)}.section-head{gap:16px;margin-bottom:24px}.split{gap:0}.split .section+.section{border-top:1px solid var(--line)}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}}

/* Typography */
:root {
  --display-ja: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP", "Noto Serif JP", "MS PMincho", serif;
  --display-en: Optima, "Optima Nova", "Segoe UI", sans-serif;
}
.hero h1 {
  font-family: var(--display-ja);
  font-weight: 400;
  font-size: clamp(2.55rem, 6.8vw, 6.5rem);
  line-height: 1.25;
  letter-spacing: -.045em;
}
.hero-copy > .mono { align-self: center; text-align: center; letter-spacing: .21em; }
.hero h1[lang="en"] {
  font-family: var(--display-en);
  font-size: clamp(1.6rem, 3.2vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: .045em;
  white-space: normal;
}
.headline-line { display: block; }
.headline-initial { display: inline-block; width: .72em; font-size: 1.64em; line-height: .9; }
.hero-copy { align-items: start; text-align: left; max-width: 100%; }
.brand strong {
  font-family: var(--display-en);
  font-size: 1.27rem;
  font-weight: 500;
  letter-spacing: .1em;
}
.section-head h2 {
  font-family: var(--display-en);
  font-weight: 400;
  letter-spacing: -.035em;
}
.section-head h2 span { font-family: var(--display-ja); }
.split h2 {
  font-family: var(--display-ja);
  font-weight: 400;
}
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(2.35rem, 10vw, 4.5rem); }
}

/* A soft paper texture across the light and dark surfaces. */
:root, .dark {
  background-image: url("./paper-grain.webp");
  background-size: 640px 640px;
  background-blend-mode: soft-light;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art img {
    animation: hero-symbol-in 2.1s ease-out both;
  }
  .hero-copy > * {
    animation: hero-text-in 1.4s cubic-bezier(.22, 1, .36, 1) both;
  }
  .hero-copy > .mono { animation-delay: .4s; }
  .hero-copy > h1 { animation-delay: .65s; }
  .hero-copy > .intro { animation-delay: .95s; }
}

@keyframes hero-symbol-in {
  from { opacity: 0; transform: scale(.97); }
  to { transform: scale(1); }
}

@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .section-pending:not(:focus-within):not(:target) {
    opacity: 0;
    transform: translateY(12px);
  }
  .section-entered {
    transition: opacity .95s ease-out, transform .95s cubic-bezier(.22, 1, .36, 1);
  }
}

.service-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  --block-height: clamp(76px, 7vw, 108px);
}
.service-link {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 8px;
  height: var(--block-height);
  padding: 8px clamp(14px, 2.6vw, 40px);
  border: 1px solid #858585;
  background: #28282866;
  color: #e3e3e3;
  text-decoration: none;
  cursor: pointer;
}
.service-link:nth-child(3n + 2) { margin-top: var(--block-height); }
.service-link:nth-child(3n) { margin-top: calc(2 * var(--block-height)); }
.service-category {
  font: 400 clamp(1.15rem, 3.1vw, 3.5rem)/1.15 var(--display-en);
  overflow-wrap: anywhere;
}
.service-name { font-family: var(--display-ja); }
.service-link:hover, .service-link:focus-visible {
  background: #d8d8d8;
  border-color: #d8d8d8;
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .service-name { opacity: 0; }
  .service-link:hover .service-name, .service-link:focus-visible .service-name { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .service-link { transition: background-color .28s ease, color .28s ease, border-color .28s ease; }
  .service-name { transition: opacity .28s ease; }
}
@media (max-width: 650px) {
  .service-blocks { grid-template-columns: 1fr; gap: 4px; }
  .service-link { width: 86%; }
  .service-link:nth-child(3n + 2) { justify-self: center; margin-top: 0; }
  .service-link:nth-child(3n) { justify-self: end; margin-top: 0; }
  .service-category { font-size: clamp(1.45rem, 6vw, 2.6rem); }
}

.masthead { position: relative; isolation: isolate; overflow: clip; }
.masthead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -42% -34%;
  pointer-events: none;
  background: repeating-radial-gradient(ellipse at 90% 16%,
    transparent 0 20px, #34343420 21px, #fafafa4d 22px, transparent 24px 33px);
  transform: rotate(-9deg) scale(1.06);
}
@media (prefers-reduced-motion: no-preference) {
  .masthead::before { animation: masthead-contours 15s ease-in-out infinite alternate; }
}
@keyframes masthead-contours {
  from { transform: translate(-5%, 2%) rotate(-9deg) scale(1.06); }
  to { transform: translate(6%, -5%) rotate(-4deg) scale(1.16); }
}

.masthead[data-motion="mist"]::before {
  background:
    radial-gradient(ellipse at 32% 36%, #fcfcfcd9, transparent 44%),
    radial-gradient(ellipse at 65% 61%, #7776, transparent 52%),
    radial-gradient(ellipse at 83% 26%, #fafafab3, transparent 38%);
  transform: none;
}
.masthead[data-motion="orbit"]::before {
  background: none;
  inset: -40% -14% -13% 22%;
  border: 1px solid #54545460;
  border-radius: 50%;
  transform: rotate(-18deg);
  box-shadow: 0 0 0 35px #ececec66, 0 0 0 36px #54545442,
              0 0 0 76px #ececec33, 0 0 0 77px #54545435;
}
@media (prefers-reduced-motion: no-preference) {
  .masthead[data-motion="mist"]::before { animation: masthead-mist 12s ease-in-out infinite alternate; }
  .masthead[data-motion="orbit"]::before { animation: masthead-orbit 20s ease-in-out infinite alternate; }
}
@keyframes masthead-mist {
  from { transform: translate(-11%, -5%) scale(.93); }
  to { transform: translate(12%, 5%) scale(1.1); }
}
@keyframes masthead-orbit {
  from { transform: translate(-14%, -8%) rotate(-23deg) scale(.96); }
  to { transform: translate(13%, 8%) rotate(17deg) scale(.98); }
}
.service-page { padding-block: clamp(24px, 4vw, 56px); }
.service-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 72px);
  margin-block: 24px 28px;
}
.service-intro { max-width: 42rem; }
.service-intro h1 {
  font: 400 clamp(2rem, 3.5vw, 3.5rem)/1.22 var(--display-ja);
  margin-block: 9px 13px;
}
.service-visual img {
  width: 100%;
  aspect-ratio: 2.25;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
}
.service-visual figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: .75rem;
}
@media (max-width: 700px) {
  .service-overview { grid-template-columns: 1fr; gap: 16px; margin-block: 20px 22px; }
  .service-visual img { max-height: 165px; }
}
.offering {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) 1fr;
  gap: 12px 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.offering h2 { font: 400 clamp(1.15rem, 2.3vw, 1.6rem)/1.5 var(--display-ja); }
.service-contact { display: inline-block; margin-top: 36px; }
.service-contact, .service-page > a:first-child { text-decoration-thickness: 1px; }
.service-contact:hover, .service-page > a:first-child:hover { text-decoration-thickness: 2px; }
.form-panel {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #787878;
}
.form-panel summary { cursor: pointer; font-weight: 700; }
.form-fields { display: grid; gap: 14px; margin-top: 16px; }
.form-panel label { display: grid; gap: 6px; font-size: .88rem; }
.form-panel input, .form-panel select, .form-panel textarea, .form-panel button {
  padding: 10px 12px;
  border: 1px solid #999;
  border-radius: 0;
  background: #e3e3e3;
  color: var(--ink);
  font: inherit;
}
.form-panel textarea { resize: vertical; }
.form-panel button { justify-self: start; cursor: pointer; }
.form-panel button:disabled { opacity: .55; cursor: default; }
.form-note { margin-top: 8px; font-size: .83rem; }
@media (max-width: 760px) {
  .offering { grid-template-columns: 1fr; }
}
