/* TOGL — style.css */
:root {
  --paper: #F2F0EB;
  --ink: #141414;
  --green: #83C14A;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --serif: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #141414;
  --ink: #F2F0EB;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.9;
  transition: background-color .3s ease, color .3s ease;
  font-feature-settings: "palt" 0;
}
a { color: inherit; text-underline-offset: .2em; }
a:hover { opacity: .6; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* header */
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding: 28px 0; border-bottom: 1px solid currentColor; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { display: block; height: 30px; width: auto; }
.logo .logo-dark { display: none; }
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-family: var(--mono); font-size: 15px; letter-spacing: .04em; }
.site-nav a { text-decoration: none; padding: 10px 0; }

/* hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 10vw, 128px); }
.hero-head { position: relative; display: flex; flex-direction: column; gap: 40px; }
.hero h1 { margin: 0; font-weight: normal; line-height: 1.15; }
@media (min-width: 900px) {
  .hero-head .toggle { position: absolute; right: 0; top: clamp(16px, 3vw, 48px); }
}
.hero .l1 { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(64px, 13vw, 176px); line-height: 1; letter-spacing: -.05em; }
.hero .l1 .to { font-family: var(--serif); font-weight: 800; letter-spacing: 0; font-size: .42em; margin: 0 .12em; }
.hero .l1 .no { font-family: var(--serif); font-weight: 800; letter-spacing: 0; font-size: .5em; }
.hero .l2 { display: block; margin-top: .25em; font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 8.6vw, 96px); letter-spacing: .02em; white-space: nowrap; }

.toggle { display: flex; align-items: center; min-height: 68px; padding: 0; border: 0; background: transparent; cursor: pointer; color: inherit; }
.toggle .track { display: flex; align-items: center; width: 132px; height: 68px; padding: 6px; border: 2px solid var(--green); background: var(--green); border-radius: 999px; transition: background-color .25s ease, border-color .25s ease; }
.toggle .knob { display: block; width: 52px; height: 52px; border-radius: 50%; background: #fff; transition: transform .25s ease, background-color .25s ease; }
.toggle[aria-pressed="false"] .track { background: transparent; border-color: currentColor; }
.toggle[aria-pressed="false"] .knob { background: currentColor; transform: translateX(64px); }

.lead { display: flex; flex-wrap: wrap; gap: 40px 64px; margin-top: clamp(56px, 8vw, 104px); align-items: flex-start; }
.lead .catch { flex: 1 1 100%; margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 5.8vw, 48px); line-height: 1.6; }
.lead .body { flex: 0 1 720px; margin: 0 0 0 auto; line-height: 2.05; }
.hero-photo { display: block; margin-top: clamp(56px, 8vw, 104px); }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* sections */
.section { border-top: 1px solid currentColor; padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.25; }

.service { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 40px 0; border-top: 1px solid currentColor; }
.service:last-child { border-bottom: 1px solid currentColor; }
.service .num { flex: 0 0 64px; margin: 0; font-family: var(--mono); font-size: 16px; }
.service .name { flex: 1 1 260px; }
.service h3 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.4; }
.service .tags { margin: 8px 0 0; font-family: var(--mono); font-size: 14px; letter-spacing: .04em; }
.service .desc { flex: 2 1 420px; }
.service .desc p { margin: 0; }
.service .more { display: inline-block; margin-top: 16px; padding: 10px 0; font-family: var(--mono); font-size: 16px; letter-spacing: .04em; }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 48px; margin-bottom: clamp(40px, 6vw, 64px); }
.figures .n { margin: 0; font-family: var(--mono); font-weight: 500; font-size: clamp(64px, 9vw, 112px); line-height: 1; letter-spacing: -.04em; }
.figures .t { margin: 12px 0 0; font-size: 17px; }
.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 48px; border-top: 1px solid currentColor; margin: 0; padding: 0; list-style: none; }
.clients li { padding: 22px 0; border-bottom: 1px solid currentColor; }
.clients .c { margin: 0; font-weight: 700; font-size: 19px; }
.clients .d { margin: 4px 0 0; font-size: 16px; }
.press { margin: 32px 0 0; font-family: var(--mono); font-size: 15px; letter-spacing: .04em; }

.company { margin: 0; border-top: 1px solid currentColor; }
.company div { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid currentColor; }
.company dt { flex: 0 0 160px; font-family: var(--mono); font-size: 15px; letter-spacing: .06em; padding-top: 3px; }
.company dd { flex: 1 1 320px; margin: 0; }

/* contact */
.contact .section-head { margin-bottom: 28px; }
.contact .section-head h2 { font-size: clamp(44px, 7vw, 96px); line-height: 1.2; }
.contact .intro { margin: 0 0 clamp(40px, 6vw, 64px); max-width: 680px; }
.form { display: flex; flex-direction: column; gap: 32px; max-width: 760px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 15px; letter-spacing: .04em; }
.form input, .form select, .form textarea { font: inherit; font-family: var(--sans); font-size: 18px; color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; padding: 10px 0; min-height: 48px; }
.form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 14px) 52%, calc(100% - 8px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 28px; }
.form select option { color: #141414; background: #fff; }
.form textarea { border: 1px solid currentColor; padding: 14px; line-height: 1.8; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .note { margin: 0; font-size: 14px; }
.btn { align-self: flex-start; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 16px 44px; min-height: 52px; font-family: var(--mono); font-size: 16px; letter-spacing: .1em; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { opacity: .8; }

/* footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding: 28px 0 40px; border-top: 1px solid currentColor; font-family: var(--mono); font-size: 14px; letter-spacing: .06em; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer a { text-decoration: none; padding: 10px 0; }

/* sub pages */
.page { padding: clamp(56px, 8vw, 104px) 0; }
.page h1 { margin: 0 0 clamp(32px, 5vw, 56px); font-family: var(--serif); font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: 1.3; }
.page h2 { margin: 48px 0 12px; font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); }
.page p, .page li { max-width: 760px; }
