

:root {
  --ink: #171717;
  --muted: #6c6869;
  --line: #e9e5e6;
  --paper: #fbfaf9;
  --rose: #d78fa1;
  --rose-pale: #f8edf0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Helvetica, Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1440px, calc(100% - 64px)); margin-inline: auto; }

.topbar { height: 76px; padding: 0 max(32px, calc((100vw - 1440px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(251,250,249,.92); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 20px; }
.brand-logo { position: relative; display: block; width: 164px; height: 50px; overflow: hidden; flex: 0 0 auto; }
.brand-logo img { position: absolute; display: block; width: 346px; height: 182px; max-width: none; left: -93px; top: -67px; object-fit: fill; mix-blend-mode: multiply; }
.brand-label { color: #8a8586; font-size: 11px; font-weight: 700; letter-spacing: .18em; border-left: 1px solid var(--line); padding-left: 20px; }
.view-switch { display: flex; padding: 4px; background: #f0eded; border-radius: 999px; }
.view-switch button { border: 0; background: transparent; color: #777; padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; }
.view-switch button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(20,10,14,.08); }

.intro { display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 48px; padding-top: 92px; padding-bottom: 72px; }
.eyebrow { margin: 0 0 16px; color: #a46979; font-size: 11px; font-weight: 800; letter-spacing: .22em; }
h1 { margin: 0; font-size: clamp(44px, 6vw, 88px); line-height: 1.08; letter-spacing: -.055em; font-weight: 700; }
.lead { width: min(720px, 100%); margin: 30px 0 0; font-size: 16px; line-height: 2; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.metrics div { padding: 22px 10px 20px 0; }
.metrics strong { display: block; font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.metrics span { display: block; margin-top: 12px; color: #8b8587; font-size: 9px; font-weight: 800; letter-spacing: .16em; }

.controls { display: grid; grid-template-columns: minmax(260px, .7fr) 1.3fr; gap: 24px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: #fff; border-radius: 12px; height: 48px; padding: 0 16px; }
.search span { color: #a19b9d; font-size: 20px; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.chips { display: flex; justify-content: flex-end; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 10px 12px; color: #696466; font-size: 12px; cursor: pointer; }
.chips button.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips i, .card-meta i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.chips small { opacity: .55; }

.management { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; }
.management p { margin: 0; color: #837d7f; font-size: 11px; }
.management > div { display: flex; gap: 8px; }
.primary-action, .secondary-action { border-radius: 10px; padding: 11px 16px; font-size: 11px; font-weight: 800; cursor: pointer; }
.primary-action { border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.secondary-action { border: 1px solid var(--line); background: #fff; color: var(--ink); }

.catalog, .network { padding: 64px 0 104px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.045em; }
.section-heading > span { color: #8c8688; font-size: 12px; }
.section-heading > a, .download-actions a { color: var(--ink); border-bottom: 1px solid var(--ink); text-decoration: none; font-size: 12px; padding-bottom: 4px; }
.download-actions { display: flex; gap: 18px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tool-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 20px 54px rgba(64,40,47,.1); }
.tool-cover { width: 100%; aspect-ratio: 16/9; display: block; object-fit: contain; background: #f3f1f1; border-bottom: 1px solid var(--line); }
.tool-cover.placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #f7ecef, #f3f0f1); color: #ac7181; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.tool-body { padding: 20px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-meta span { display: flex; align-items: center; gap: 7px; color: #746f70; font-size: 10px; font-weight: 700; }
.card-meta b { color: #8d6170; background: var(--rose-pale); font-size: 8px; letter-spacing: .12em; padding: 5px 7px; border-radius: 4px; }
.tool-card h3 { margin: 0; font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.short { margin: 8px 0 0; color: #736d6f; font-size: 12px; font-weight: 700; }
.purpose { min-height: 88px; margin: 18px 0; color: #625e5f; font-size: 12px; line-height: 1.85; }
dl { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
dl div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
dl div + div { margin-top: 9px; }
dt { color: #a08f94; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
dd { margin: 0; color: #575253; font-size: 10px; line-height: 1.5; }
.connects { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.connects span { width: 100%; color: #a08f94; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.connects em { border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; color: #696466; font-size: 9px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.empty { padding: 80px 24px; text-align: center; color: #8a8586; border: 1px dashed #d9d3d5; border-radius: 14px; }

.map-frame { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 70px rgba(60,37,44,.08); }
.map-frame img { width: 100%; display: block; }
.flow-notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 28px; background: var(--line); border: 1px solid var(--line); }
.flow-notes article { background: var(--paper); padding: 24px; }
.flow-notes span { color: var(--rose); font-size: 11px; font-weight: 800; }
.flow-notes h3 { margin: 14px 0 8px; font-size: 16px; }
.flow-notes p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }

footer { border-top: 1px solid var(--line); }
footer .shell { min-height: 120px; display: flex; align-items: center; gap: 20px; color: #918b8d; font-size: 10px; }
footer img { width: 88px; mix-blend-mode: multiply; }
footer p { margin-right: auto; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(23, 18, 20, .5); backdrop-filter: blur(10px); }
.modal { width: min(760px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 18px; background: var(--paper); padding: 28px; box-shadow: 0 28px 100px rgba(20, 10, 14, .22); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.modal-head h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.modal-head > button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 24px; cursor: pointer; }
.modal form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal label { display: grid; gap: 8px; }
.modal label.wide { grid-column: 1 / -1; }
.modal label span { color: #746d6f; font-size: 10px; font-weight: 800; }
.modal input, .modal select, .modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #fff; padding: 12px 13px; color: var(--ink); font-size: 13px; }
.modal textarea { min-height: 94px; resize: vertical; }
.modal input:focus, .modal select:focus, .modal textarea:focus { border-color: #bd8494; box-shadow: 0 0 0 3px rgba(189, 132, 148, .12); }
.modal-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.notice { position: fixed; right: 24px; bottom: 24px; z-index: 60; border-radius: 10px; background: var(--ink); color: #fff; padding: 14px 18px; box-shadow: 0 18px 48px rgba(20,10,14,.2); font-size: 12px; }

@media (max-width: 1180px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .intro { grid-template-columns: 1fr; }
  .metrics { max-width: 560px; }
  .controls { grid-template-columns: 1fr; }
  .chips { justify-content: flex-start; }
  .management { align-items: flex-start; }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 32px, 680px); }
  .topbar { height: 68px; padding-inline: 16px; }
  .brand-label { display: none; }
  .brand-logo { width: 154px; height: 46px; }
  .brand-logo img { width: 326px; height: 171px; left: -87px; top: -63px; }
  .view-switch button { padding: 8px 12px; font-size: 11px; }
  .intro { padding: 56px 0 48px; }
  h1 { font-size: clamp(40px, 12vw, 66px); }
  .lead { font-size: 14px; line-height: 1.9; }
  .metrics strong { font-size: 32px; }
  .catalog, .network { padding: 48px 0 72px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-notes { grid-template-columns: repeat(2, 1fr); }
  .map-frame { overflow-x: auto; }
  .map-frame img { width: 1180px; max-width: none; }
}

@media (max-width: 560px) {
  .tool-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metrics strong { font-size: 27px; }
  .metrics span { font-size: 7px; }
  .purpose { min-height: 0; }
  .flow-notes { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; gap: 20px; }
  .management { flex-direction: column; }
  .management > div { width: 100%; }
  .management button { flex: 1; }
  .modal { padding: 22px; }
  .modal form { grid-template-columns: 1fr; }
  .modal label.wide, .modal-actions { grid-column: auto; }
  .notice { right: 16px; bottom: 16px; left: 16px; text-align: center; }
  footer .shell { flex-wrap: wrap; padding-block: 24px; }
}

.topbar{position:static;justify-content:flex-end}.topbar>.brand-label{margin-right:auto;border:0;padding:0}.view-switch,.view-switch button,.search,.chips button,.tool-card,.card-meta b,.connects em,.empty,.map-frame{border-radius:0}input{min-width:0}.controls,.chips{min-width:0}body{overflow-wrap:anywhere}