:root{color-scheme:dark;--bg:#101512;--surface:#171e19;--text:#f1f4ed;--muted:#b6c0b6;--line:#344137;--accent:#bcf977;--mono:"IBM Plex Mono",ui-monospace,monospace;font-family:Inter,system-ui,"Hiragino Sans",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);line-height:1.65}a{color:inherit;text-underline-offset:.22em}a:hover{color:var(--accent)}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}.wrap{max-width:1280px;padding-inline:clamp(20px,5vw,78px);margin-inline:auto}
.top{border-bottom:1px solid var(--line);background:#111713}.bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:20px}.brand,.label,.monitor-top{font:600 .77rem/1.4 var(--mono);letter-spacing:.1em}.brand{text-decoration:none;white-space:nowrap}.top nav{display:flex;flex-wrap:wrap;gap:clamp(12px,3vw,32px);font-size:.9rem}.top nav a{text-decoration:none}
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);align-items:center;gap:clamp(24px,6vw,90px);padding-block:clamp(50px,9vw,114px)}.label,.tag{color:var(--accent)}h1,h2,h3,p{margin:0}h1{font-size:clamp(3.6rem,8vw,7rem);line-height:1.06;letter-spacing:-.09em;margin-block:14px 22px}h2{font-size:clamp(1.65rem,3.7vw,2.8rem);letter-spacing:-.045em;line-height:1.25;margin-bottom:12px}h3{font-size:1.12rem;line-height:1.35}p{color:var(--muted)}.hero-copy{font-size:clamp(1.05rem,2vw,1.4rem)}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.primary,.secondary{padding:10px 15px;display:inline-block;text-decoration:none;border:1px solid var(--line);border-radius:5px;font-weight:650}.primary{color:#152012;background:var(--accent);border-color:var(--accent)}.primary:hover{color:#152012;background:#d3ffa5}
.monitor{margin:0;display:block;text-decoration:none;background:#19211b;border:1px solid #435344;border-radius:10px;padding:13px;box-shadow:0 18px 60px #080d0a85}.monitor-top,.monitor-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.monitor-top{color:#ccd6ca;padding:4px 3px 12px}.monitor-top i{display:inline-block;width:7px;height:7px;background:var(--accent);margin-right:6px;border-radius:50%;box-shadow:0 0 12px #bdf97a90}.monitor-bottom{padding:10px 3px 2px;font-size:.82rem}.signal{aspect-ratio:16/9;background:repeating-linear-gradient(to bottom,transparent 0 3px,#1114 3px 4px),linear-gradient(90deg,#dadccf 0 14.285%,#d2d85a 14.285% 28.57%,#5fbeb8 28.57% 42.855%,#6bb979 42.855% 57.14%,#af71ad 57.14% 71.425%,#c06f66 71.425% 85.71%,#666caa 85.71%) 0 0/100% 75% no-repeat,linear-gradient(90deg,#222935 0 40%,#e8ebdd 40% 60%,#273c46 60% 80%,#101510 80%) 0 100%/100% 25% no-repeat}
main>section:not(.hero){border-top:1px solid var(--line);padding-block:clamp(35px,6vw,75px);scroll-margin-top:12px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:24px}.section-head>a,.launch{color:var(--accent);font-size:.9rem;font-weight:650}
.catalog-controls{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}.filters{display:flex;gap:6px;flex-wrap:wrap}.filters button,input[type=search]{font:inherit;font-size:.85rem;color:var(--text);background:#151d17;border:1px solid var(--line);padding:8px 12px;border-radius:5px}.filters button{cursor:pointer}.filters button[aria-pressed=true]{color:#182117;background:var(--accent);border-color:var(--accent)}input[type=search]{min-width:min(100%,240px)}
.cards,.products{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:19px;display:flex;flex-direction:column;gap:8px}.card:hover{border-color:#758b65}.card h3 a{text-decoration:none}.card p{font-size:.88rem}.card .launch{margin-top:auto;padding-top:6px}.clock-demo{margin-top:24px;border:1px solid var(--line);padding:18px;border-radius:8px}.demo summary{color:var(--accent);cursor:pointer;margin-block:8px}.demo-screen{position:relative;display:grid;place-items:center;background:#070b09;min-height:140px;margin-block:10px;font:700 clamp(2rem,8vw,4rem)/1 var(--mono)}.demo-inset{position:absolute;bottom:8px;right:8px;border:1px solid var(--line);padding:8px;font-size:.7rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.work{display:grid;grid-template-columns:minmax(120px,1fr) 4fr;gap:18px;border-bottom:1px solid var(--line);padding:18px 0}.work .tag,section>.tag{font:600 .76rem/1.5 var(--mono);letter-spacing:.05em}section>.tag{margin-bottom:8px}.work p{margin-top:6px}.products{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:22px}.product{overflow:hidden;padding:0}.product>div:last-child{padding:14px 18px 19px}.product img,.template-preview{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#0a100c}.product h3,.product p{margin-block:7px}.template-preview{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:12px;align-content:center}.template-preview span{color:var(--accent);padding:10px;background:var(--surface);border:1px solid var(--line);font-size:.8rem}.bio{display:grid;grid-template-columns:1fr 1fr;gap:28px}.skills{margin:0}.skills div{border-bottom:1px solid var(--line);padding-block:7px}.skills dd{margin:0;color:var(--muted)}footer{border-top:1px solid var(--line);color:var(--muted);font-size:.85rem}
@media(max-width:900px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.top .bar{align-items:flex-start;flex-direction:column;gap:8px}.top nav{font-size:.82rem}.hero,.cards,.products,.bio{grid-template-columns:1fr}.work{grid-template-columns:1fr;gap:5px}.hero h1{margin-bottom:16px}.catalog-controls input{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Portfolio */
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #fff;
  --text: #1d1d1f;
  --muted: #55555d;
  --line: #d7d7df;
  --accent: #005bbd;
  font-family: -apple-system, BlinkMacSystemFont, Inter, "Hiragino Sans", sans-serif;
}
.wrap { max-width: 1250px; }
.top { position: sticky; top: 0; z-index: 3; background: #fafafbdc; border-color: #e2e2e7; backdrop-filter: saturate(150%) blur(18px); }
.top .bar { padding-block: 13px; }
.top nav { color: #35353a; font-size: .82rem; }
.brand { letter-spacing: .105em; }
.hero {
  display: block;
  padding: 0;
  text-align: center;
  color: #f5f5f7;
  background: radial-gradient(ellipse at 50% 94%, #263b68 0, #121a2c 35%, #08090d 73%);
  overflow: hidden;
}
.hero-inner { width: min(100%, 1000px); margin: auto; padding: clamp(56px, 8vw, 98px) 22px clamp(36px, 6vw, 72px); }
.hero .label { color: #bfc8e1; font-family: inherit; font-size: .85rem; letter-spacing: .10em; }
.hero h1 { font-size: clamp(1.1rem, 2.5vw, 1.7rem); line-height: 1.25; letter-spacing: .085em; margin: 11px 0 19px; }
.hero-copy { color: #fafaff; font-size: clamp(2.35rem, 7.5vw, 5.2rem); font-weight: 750; line-height: 1.12; letter-spacing: -.075em; }
.hero-detail { margin-top: 18px; color: #c6c8d3; font-size: clamp(.95rem, 2vw, 1.14rem); }
.mobile-break { display: none; }
.actions { justify-content: center; margin-top: 24px; }
.primary,.secondary { border-radius: 999px; padding: 10px 19px; font-size: .92rem; }
.primary { background: #006acc; border-color: #006acc; color: white; }
.primary:hover { background: #056bd0; border-color: #056bd0; color: white; }
.secondary { color: #fff; border-color: #85899c; }
.secondary:hover { color: #fff; background: #ffffff22; }
.hero a:focus-visible { outline-color: #80baff; }
.monitor {
  width: min(100%, 670px);
  margin: clamp(30px, 6vw, 62px) auto 0;
  background: linear-gradient(145deg, #323645, #151621 72%);
  border: 1px solid #73788b;
  border-radius: 21px;
  padding: 11px;
  box-shadow: 0 24px 75px #000a, inset 0 1px #ffffff38;
  text-align: left;
  transition: transform .25s ease, border-color .25s ease;
}
.monitor:hover { transform: translateY(-3px); border-color: #a9b8e6; color: #fff; }
.monitor-top { color: #c7cddd; padding: 4px 6px 10px; }
.monitor-top i { background: #71d78a; box-shadow: 0 0 11px #52d98166; }
.monitor-bottom { color: #e1e5f0; padding: 8px 6px 1px; }
.signal { display: block; border-radius: 9px; aspect-ratio: 16/9; box-shadow: inset 0 0 35px #0003; }
.content>section { padding-block: clamp(42px, 7vw, 86px); scroll-margin-top: 55px; }
.content>section+section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 25px; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); line-height: 1.18; }
h3 { letter-spacing: -.015em; }
.catalog-controls { align-items: center; margin: 0 0 19px; }
.filters button,input[type=search] { border-radius: 999px; background: white; }
.filters button[aria-pressed=true] { background: #1d1d1f; color: white; border-color: #1d1d1f; }
.cards,.products { gap: 15px; }
.card,.clock-demo {
  background: white;
  border: 1px solid #e5e5e9;
  border-radius: 20px;
  padding: clamp(17px, 2.7vw, 26px);
  box-shadow: 0 4px 16px #191d3707;
}
.card { transition: border-color .2s ease, box-shadow .2s ease; }
.card:hover { border-color: #c8d4e8; box-shadow: 0 10px 24px #191d3710; }
.card .label,.product .label,.tag { color: #4d5876; font-size: .73rem; font-weight: 650; }
.card[data-category="送出・進行"] .label { color: #875017; }
.card[data-category="信号・計測"] .label { color: #0057ae; }
.card[data-category="納品・計算"] .label { color: #285e51; }
.card .launch { width: fit-content; padding-top: 10px; }
.clock-demo { margin-top: 17px; }
.demo-screen { background: #090b14; color: white; border-radius: 12px; }
.demo-inset { border-color: #707681; }
#works { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#works .section-head { grid-column: 1/-1; margin-bottom: 9px; }
#works .work {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 0;
  border-radius: 22px;
  padding: clamp(21px, 4vw, 38px);
  background: #fff;
}
#works .work:first-of-type { background: linear-gradient(145deg,#101a32,#253a6d); color: #fff; }
#works .work:first-of-type :is(p,.tag) { color: #e1e7f7; }
#works .work h3 { font-size: clamp(1.22rem, 2.5vw, 1.7rem); }
#experience .work:last-child { border-bottom: 0; }
.product { padding: 0; }
.product>div:last-child { padding: 19px 23px 24px; }
.template-preview { background: linear-gradient(150deg,#d6ebff,#e9e4ff); }
.template-preview span { color: #244a78; border: 1px solid #d8e1f3; border-radius: 8px; background: #ffffffba; }
footer { background: #ededf1; }
@media(max-width:640px) {
  .top .bar { gap: 6px; padding-block: 9px; }
  .top nav { font-size: .76rem; }
  .hero-inner { padding-top: 46px; }
  .mobile-break { display: initial; }
  #works { grid-template-columns: 1fr; }
  .content>section { scroll-margin-top: 74px; }
}
@media(prefers-reduced-motion:reduce) {
  .monitor,.card { transition: none; }
  .monitor:hover { transform: none; }
}
