:root {
  color-scheme: light;
  --ink: #1b172e;
  --muted: #5e596f;
  --brand: #5334d0;
  --brand-dark: #4326b5;
  --canvas: #f8f6fd;
  --wash: #eee9ff;
  --line: #e4dfee;
  --paper: #fff;
  --radius: 6px;
  font: 16px/1.65 "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8461ef; outline-offset: 3px; }
.wrap { width: min(100% - 36px, 1312px); margin-inline: auto; }
.wide-only { display: none; }
.skip { position: absolute; z-index: 3; top: 8px; left: 8px; padding: 8px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; min-height: 63px; padding-block: 8px; }
.wordmark, .app-brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 750; white-space: nowrap; }
.wordmark { font-size: 19px; }
.mark { position: relative; display: inline-block; width: 20px; height: 17px; color: var(--brand); flex: 0 0 20px; }
.mark::before, .mark::after { content: ""; position: absolute; width: 8px; height: 8px; background: currentColor; }
.mark::before { left: 0; bottom: 1px; }
.mark::after { right: 1px; top: 1px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px clamp(10px, 3vw, 28px); font-size: .79rem; font-weight: 650; }
.site-header a:hover, summary:hover { color: var(--brand-dark); }

.hero { background: var(--canvas); }
.intro { display: grid; gap: 21px; padding-block: clamp(36px, 5vw, 73px); }
.intro h1 { font-size: clamp(2.08rem, 8.8vw, 4.7rem); letter-spacing: -.055em; font-weight: 760; }
.intro h1 span { color: var(--brand); }
.intro-action p { margin-bottom: 17px; font-weight: 550; font-size: clamp(.9rem, 2.5vw, 1.15rem); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 12px 20px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--brand);
  color: white;
  font-weight: 730;
  line-height: 1.35;
  text-align: center;
}
.button:hover { background: var(--brand-dark); }
.button.compact { font-size: .85rem; padding-inline: 13px; }

.showcase { padding-block: clamp(20px, 3.3vw, 48px) 20px; background: linear-gradient(135deg, #eeebff, #f4edff); }
.workspace {
  overflow: clip;
  border: 1px solid #d9d1ed;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 14px 36px #42278c12;
}
.app-nav { min-width: 0; border-bottom: 1px solid var(--line); }
.app-brand { padding: 14px 15px 10px; font-size: .91rem; }
.app-brand .mark { scale: .8; }
.app-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 8px 8px; }
.app-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: .81rem;
  text-align: left;
}
.app-tabs button:hover, .app-tabs button[aria-current="true"] { background: var(--wash); color: var(--brand-dark); }
.icon-list { display: inline-block; width: 14px; height: 9px; border-block: 1px solid currentColor; position: relative; }
.icon-list::after { content: ""; position: absolute; inset: 3px 0 auto; border-top: 1px solid currentColor; }
.icon-plus { font-size: 15px; line-height: 1; }

.request-panel, .detail-panel { min-width: 0; padding: 16px clamp(13px, 3.4vw, 27px) 20px; }
.detail-panel { border-top: 1px solid var(--line); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-header h2, .panel-header h3 { font-size: clamp(1.18rem, 2.3vw, 1.55rem); overflow-wrap: anywhere; }
.list-help, .location, .ticket-note, .empty { color: var(--muted); font-size: .82rem; }
.list-help { margin-bottom: 10px; }
.filter { display: flex; align-items: center; gap: 6px; font-size: .73rem; color: var(--muted); }
select, input, textarea {
  min-width: 0;
  padding: 6px 8px;
  min-height: 36px;
  border: 1px solid #cac4dc;
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
}
textarea { resize: vertical; }
.ticket-list { list-style: none; padding: 0; }
.ticket-list li + li { border-top: 1px solid var(--line); }
.ticket-button {
  width: 100%;
  min-width: 0;
  min-height: 49px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: .88rem;
  font-weight: 680;
  text-align: left;
}
.ticket-button:hover, .ticket-button[aria-pressed="true"] { background: #eee7fe; }
.ticket-title { overflow-wrap: anywhere; }
.ticket-right { display: flex; align-items: center; gap: 7px; }
.status { display: inline-block; padding: 3px 8px; border-radius: 4px; background: #eeedf2; color: #504b61; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.status[data-state="対応中"] { color: #442399; background: #e9ddff; }
.status[data-state="完了"] { color: #235d37; background: #e3f4dc; }
.location { margin-bottom: 10px; overflow-wrap: anywhere; }
#ticket-photo { display: block; width: 100%; height: auto; max-height: 220px; aspect-ratio: 1.72; object-fit: cover; object-position: center 24%; border-radius: 4px; }
.ticket-note { margin-top: 10px; overflow-wrap: anywhere; white-space: pre-wrap; }

.update-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.update-form label, .editor label { display: grid; gap: 3px; color: var(--muted); font-size: .77rem; font-weight: 650; }
.update-form select { width: 100%; }
.update-form button { grid-column: 1 / -1; justify-self: start; }
.editor { display: grid; gap: 7px; }
.editor input, .editor textarea { width: 100%; font-size: .88rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.secondary-button, .text-button { padding: 7px 9px; border-radius: 4px; background: transparent; font-size: .77rem; font-weight: 650; }
.secondary-button { border: 1px solid #cac4dc; }
.text-button { border: 0; color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.secondary-button:hover, .text-button:hover { background: var(--canvas); }
.app-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 3px 12px; border-top: 1px solid var(--line); background: #faf9ff; }
#app-feedback { font-size: .76rem; color: #4c3b72; overflow-wrap: anywhere; }
#reset { flex: 0 0 auto; }
.demo-note { margin-top: 14px; color: #514666; text-align: right; font-size: .73rem; }

.section { padding-block: clamp(44px, 7.4vw, 102px); }
.section h2, .end h2 { font-size: clamp(1.7rem, 5vw, 3.35rem); letter-spacing: -.045em; }
.section-intro > p { margin-top: 13px; color: var(--muted); }
.flow { background: #f9f7fe; }
.timeline { display: grid; gap: 0; padding: 0; margin-top: 29px; list-style: none; }
.timeline li { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; padding: 0 0 27px 38px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; top: 17px; bottom: -15px; left: 14px; border-left: 1px solid #b49eed; }
.step { position: absolute; z-index: 1; top: 0; left: 0; width: 29px; height: 29px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.timeline h3, .comparison h3 { font-size: clamp(1.08rem, 2.1vw, 1.36rem); margin: 3px 0 11px; }
.timeline li > p { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.flow-sample {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 144px;
  padding: clamp(10px, 2.2vw, 21px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: .79rem;
  box-shadow: 0 3px 10px #41266f08;
}
.flow-sample > span:not(.status, .sample-button), .sample-labels { color: var(--muted); font-size: .68rem; }
.flow-entry strong, .sample-row { border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; }
.sample-button { justify-self: end; background: var(--brand); color: white; border-radius: 4px; padding: 3px 11px; margin-top: 3px; }
.sample-labels, .sample-row, .flow-done > div { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.sample-row { background: var(--canvas); }
.flow-assign .status { justify-self: end; }
.flow-done img { display: block; width: 100%; height: 73px; object-fit: cover; object-position: center 20%; border-radius: 4px; }

.comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(8px, 3.3vw, 35px); margin-top: 26px; }
.comparison-grid > div { border-top: 2px solid #cec8dc; padding: 10px 6px; }
.comparison-grid > div:nth-child(2) { border-color: var(--brand); background: var(--canvas); }
.comparison-grid ul { padding: 0; list-style: none; }
.comparison-grid li { border-top: 1px solid var(--line); padding: 8px 0; font-size: .83rem; }
.examples { color: var(--muted); margin-top: 17px; font-size: .84rem; }

.faq { border-top: 1px solid var(--line); display: grid; gap: 18px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 650; font-size: .9rem; }
.faq details p { margin: 10px 0 3px 17px; color: var(--muted); font-size: .88rem; }
.faq details:not([open]) > p { display: none; }
.end { background: var(--wash); padding-block: clamp(35px, 7vw, 83px); }
.end .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer small { font-size: .76rem; }

@media (min-width: 760px) {
  .wrap { width: min(100% - 8%, 1312px); }
  .mobile-only { display: none; }
  .intro { grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(18px, 4vw, 64px); }
  .intro h1 { font-size: clamp(2.55rem, 5vw, 4.7rem); }
  .intro-action { padding-left: clamp(18px,3vw,42px); border-left: 1px solid #cfc4ec; }
  .intro-action .button { min-width: 190px; justify-content: space-between; }
  .workspace { display: grid; grid-template-columns: minmax(132px, .53fr) minmax(0,1.58fr) minmax(0,1.1fr); }
  .app-nav { background: #fdfcff; border-right: 1px solid var(--line); border-bottom: 0; }
  .app-brand { padding: 19px 12px 15px; }
  .app-tabs { flex-direction: column; }
  .request-panel, .detail-panel { padding-top: clamp(13px, 2.2vw, 28px); }
  .detail-panel { border-top: 0; border-left: 1px solid var(--line); }
  .app-bottom { grid-column: 1 / -1; }
  .flow .section-intro { text-align: center; }
  .timeline { grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(20px, 3vw, 46px); margin-top: 35px; }
  .timeline li { display: block; padding: 43px 0 0; }
  .timeline li:not(:last-child)::before { top: 14px; left: 0; width: calc(100% + clamp(20px, 3vw, 46px)); bottom: auto; border: 0; border-top: 1px solid #b49eed; }
  .flow-sample { min-height: 176px; }
  .comparison-grid > div { padding: 18px 25px; }
  .comparison-grid li { font-size: .94rem; padding: 12px 0; }
  .faq { grid-template-columns: 1fr 1.45fr; }
}

@media (min-width: 1050px) {
  .wide-only { display: initial; }
  .intro { grid-template-columns: 1.12fr 1fr; padding-inline: 26px; }
  .app-tabs { margin-inline: 12px; }
  .app-brand { padding-inline: 21px; }
  .app-tabs button { padding-inline: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .ticket-button, .app-tabs button { transition: background-color .18s ease; }
}
