:root {
  color-scheme: light;
  --ink: #29282b;
  --muted: #747276;
  --accent: #c42d3c;
  --accent-dark: #a71f2d;
  --accent-soft: #fbf0f1;
  --line: #ebe8e8;
  --surface: #ffffff;
  --background: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #e7929a; outline-offset: 2px; }
.demo-bar { padding: 9px 24px; border-bottom: 1px solid #f0dfe1; background: #fff8f8; color: #8e4a51; text-align: center; font-size: 12px; line-height: 1.5; letter-spacing: .02em; }
.layout { display: flex; min-height: calc(100vh - 37px); }
aside { position: sticky; top: 0; align-self: flex-start; width: 236px; height: 100vh; background: #fff; border-right: 1px solid var(--line); padding: 29px 16px 23px; display: flex; flex-direction: column; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 34px; }
.brandmark { width: 39px; height: 39px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.brand strong { display: block; font-size: 14px; letter-spacing: .02em; }
.brand small { display: block; color: #aaa3a5; letter-spacing: .1em; font-size: 10px; margin-top: 3px; }
.nav-label { font-size: 10px; color: #aaa3a5; letter-spacing: .15em; font-weight: 700; padding: 0 12px; margin: 7px 0 10px; }
.nav { position: relative; border: 0; background: transparent; text-align: left; color: #69676a; width: 100%; padding: 13px 12px; border-radius: 8px; display: flex; gap: 11px; align-items: center; font-weight: 600; margin: 2px 0; transition: background .15s, color .15s; }
.nav:hover { background: #faf7f7; color: var(--accent-dark); }
.nav.active { background: var(--accent-soft); color: var(--accent-dark); }
.nav.active:before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent); }
.nav i { width: 18px; text-align: center; font-size: 16px; font-style: normal; }
.side-bottom { margin-top: auto; padding: 18px 10px 4px; border-top: 1px solid var(--line); line-height: 1.8; color: #999296; font-size: 12px; }
.side-bottom b { display: block; color: #625a5d; }
.workspace { min-width: 0; flex: 1; }
.top { height: 76px; padding: 0 38px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top-title { font-size: 10px; letter-spacing: .11em; color: #9b9396; font-weight: 700; }
.top-title strong { display: block; color: #353135; letter-spacing: 0; font-size: 14px; margin-top: 5px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.role-select { border: 1px solid #e5dede; border-radius: 8px; padding: 10px 30px 10px 12px; color: #454044; background: #fff; }
.avatar { height: 36px; width: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.main { max-width: 1480px; margin: auto; padding: 30px 38px 65px; }
.breadcrumbs { color: #a39c9e; font-size: 12px; margin-bottom: 22px; }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.eyebrow { font-size: 10px; letter-spacing: .15em; color: var(--accent); font-weight: 800; margin-bottom: 9px; }
h1 { font-size: 26px; line-height: 1.35; margin: 0; letter-spacing: .01em; }
h2 { font-size: 17px; margin: 0; }
h3 { font-size: 14px; margin: 0; }
.sub { color: #81797c; margin: 8px 0 0; font-size: 13px; line-height: 1.7; }
.primary, .secondary { border-radius: 8px; padding: 11px 17px; font-weight: 700; transition: background .15s, border-color .15s; }
.primary { border: 1px solid var(--accent); background: var(--accent); color: #fff; box-shadow: 0 3px 7px #b7243214; }
.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.secondary { background: #fff; border: 1px solid #ded7d8; color: #50484a; }
.secondary:hover { background: #fff8f8; border-color: #d9b1b6; }
.hero { position: relative; overflow: hidden; background: #fff; color: var(--ink); border: 1px solid #eadfe1; border-left: 4px solid var(--accent); border-radius: 10px; padding: 28px 31px; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 176px; box-shadow: 0 6px 22px #33202408; }
.hero:after { content: ""; position: absolute; width: 360px; height: 360px; right: -110px; top: -235px; border-radius: 50%; background: #fcf1f2; }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--accent); }
.hero h2 { font-size: 23px; line-height: 1.5; margin: 0 0 8px; letter-spacing: .01em; }
.hero p { color: #777074; font-size: 13px; line-height: 1.8; margin: 0; max-width: 630px; }
.hero-stat { min-width: 215px; background: #fff8f8; border: 1px solid #f0dfe1; border-radius: 9px; padding: 18px 21px; }
.hero-stat span { font-size: 12px; color: #8a777a; }
.hero-stat strong { display: block; color: var(--accent-dark); font-size: 27px; margin: 5px 0 1px; }
.hero-stat small { font-size: 12px; font-weight: 500; }
.grid { display: grid; gap: 16px; }
.metrics { grid-template-columns: repeat(4, minmax(0,1fr)); margin: 20px 0; }
.metric, .panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 18px #26151a08; }
.metric { padding: 19px 20px; min-height: 117px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #7e777a; font-size: 13px; }
.metric-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #fbf0f1; color: var(--accent); font-size: 15px; }
.metric strong { display: block; font-size: 24px; margin-top: 8px; color: #302a2d; }
.metric strong small { font-size: 12px; font-weight: 500; margin-left: 3px; }
.metric-note { font-size: 11px; color: #a39b9e; margin-top: 5px; }
.columns { grid-template-columns: minmax(0,1.7fr) minmax(270px,1fr); align-items: start; }
.panel { padding: 23px; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 19px; }
.panel-head h2 { position: relative; padding-left: 12px; }
.panel-head h2:before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 3px; background: var(--accent); }
.panel-head p { font-size: 12px; color: #999195; margin: 7px 0 0; }
.text-btn { border: 0; background: none; color: var(--accent-dark); font-size: 12px; font-weight: 700; padding: 3px; }
.text-btn:hover { text-decoration: underline; }
.cases { display: flex; flex-direction: column; }
.case { border: 0; background: #fff; text-align: left; border-top: 1px solid #f0eded; padding: 15px 0; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; color: inherit; width: 100%; }
.case:first-child { border-top: 0; padding-top: 0; }
.case:hover .case-name { color: var(--accent-dark); }
.case-meta { font-size: 11px; color: #a0979a; margin-bottom: 6px; }
.case-name { font-size: 14px; font-weight: 700; }
.case-detail { font-size: 12px; color: #8d8488; margin-top: 6px; line-height: 1.6; }
.case-right { text-align: right; }
.pill { font-size: 11px; font-weight: 700; display: inline-block; padding: 5px 8px; border-radius: 5px; white-space: nowrap; }
.urgent { background: #fcebec; color: #b82231; }
.normal { background: #f4f2f2; color: #756e71; }
.pill.status { background: #f8f2ed; color: #87604a; }
.pill.status.done { background: #eef5f0; color: #4e7457; }
.flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.flow-item { background: #fbf7f7; border: 1px solid #f3e9e9; border-radius: 8px; padding: 12px 8px; text-align: center; color: #71676a; font-size: 11px; line-height: 1.5; }
.flow-item b { display: block; color: var(--accent); font-size: 16px; margin-bottom: 5px; }
.notice { padding: 14px; background: #fcf8f8; border-left: 3px solid #dba7ad; border-radius: 5px; color: #806c70; line-height: 1.7; font-size: 12px; margin-top: 18px; }
.list-toolbar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.list-toolbar input, .list-toolbar select { border: 1px solid #e5dddd; background: #fff; padding: 11px; border-radius: 8px; color: #4c4548; }
.list-toolbar input { flex: 1; min-width: 180px; }
.table, .report-table { width: 100%; border-collapse: collapse; text-align: left; }
.table th, .report-table th { font-weight: 600; color: #82797c; background: #faf8f8; font-size: 12px; padding: 12px; }
.table td, .report-table td { border-bottom: 1px solid #f0eded; padding: 15px 12px; font-size: 13px; }
.table tr[data-id] { cursor: pointer; }
.table tr[data-id]:hover { background: #fff8f8; }
.table-wrap { overflow: auto; }
.empty { color: #9b9295; text-align: center; padding: 35px; }
.section-grid { grid-template-columns: repeat(3,1fr); }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; line-height: 1.7; box-shadow: 0 4px 18px #26151a08; }
.info-card h3 { font-size: 16px; }
.info-card p { color: #837a7d; font-size: 13px; }
.tag { display: inline-block; background: #fbf0f1; color: #a23540; border-radius: 5px; padding: 4px 8px; font-size: 11px; }
.modal-bg { position: fixed; inset: 0; background: #23171acc; display: grid; place-items: center; padding: 20px; z-index: 5; }
.modal { background: #fff; border-radius: 12px; width: min(690px,100%); max-height: 90vh; overflow: auto; padding: 26px; box-shadow: 0 20px 65px #24121740; }
.modal h2 { font-size: 20px; }
.modal-close { border: 0; background: none; font-size: 24px; color: #9c9295; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 700; color: #665d60; }
.field.full { grid-column: 1/-1; }
.field input, .field select, .field textarea { border: 1px solid #e2dada; padding: 11px; border-radius: 7px; color: #3d3538; background: #fff; }
.field textarea { min-height: 90px; resize: vertical; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.detail-row { display: grid; grid-template-columns: 110px 1fr; padding: 12px 0; border-bottom: 1px solid #f0eded; font-size: 13px; line-height: 1.6; }
.detail-row span { color: #958b8e; }
.toast { position: fixed; bottom: 25px; right: 25px; background: #4a3336; color: #fff; border-radius: 8px; padding: 13px 18px; z-index: 10; box-shadow: 0 8px 24px #0002; }
.mobile-nav { display: none; }
.workflow { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.workflow span { padding: 7px 9px; border-radius: 6px; background: #f5f3f3; color: #81777a; font-size: 12px; }
.workflow span.current { background: #fbeaec; color: #a71f2d; font-weight: 700; }
.detail-section { margin-top: 20px; padding: 17px; border: 1px solid #eee8e9; border-radius: 9px; }
.detail-section h3 { margin: 0 0 10px; font-size: 14px; }
.detail-section p { font-size: 13px; line-height: 1.8; margin: 7px 0; color: #756b6e; white-space: pre-wrap; }
.timeline-entry { border-left: 2px solid #efd9dc; padding: 0 0 14px 13px; color: #7d7376; font-size: 12px; line-height: 1.6; }
.timeline-entry b { color: #51464a; }
.attachment { display: inline-block; font-size: 12px; color: var(--accent-dark); margin: 5px 12px 0 0; }
.file-note { font-weight: 400; color: #a2989b; line-height: 1.6; }
.new-intro { border-left: 3px solid var(--accent); padding-left: 12px; color: #807477; font-size: 12px; line-height: 1.7; margin: 12px 0; }
@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(2,1fr); }
  .columns { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  aside { width: 190px; }
  .main { padding: 25px; }
  .top { padding: 0 25px; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .columns { grid-template-columns: 1fr; }
  .section-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 650px) {
  .demo-bar { padding: 8px 13px; text-align: left; font-size: 11px; }
  aside { display: none; }
  .top { height: auto; padding: 14px 17px; }
  .top-title { display: none; }
  .top-actions { width: 100%; justify-content: space-between; }
  .main { padding: 22px 16px 48px; }
  .breadcrumbs { margin-bottom: 17px; }
  .mobile-nav { display: flex; overflow: auto; background: #fff; padding: 0 12px; border-bottom: 1px solid var(--line); }
  .mobile-nav button { white-space: nowrap; border: 0; background: none; padding: 13px; color: #8b8184; font-weight: 700; }
  .mobile-nav button.active { color: var(--accent-dark); border-bottom: 2px solid var(--accent); }
  .heading-row { align-items: start; }
  .heading-row .primary { font-size: 12px; padding: 10px; white-space: nowrap; }
  h1 { font-size: 23px; }
  .hero { padding: 22px; display: block; }
  .hero h2 { font-size: 20px; }
  .hero-stat { margin-top: 18px; }
  .metrics { gap: 9px; }
  .metric { padding: 15px; }
  .metric strong { font-size: 20px; }
  .flow { grid-template-columns: repeat(2,1fr); }
  .section-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .detail-row { grid-template-columns: 90px 1fr; }
  .table { min-width: 700px; }
  .case { grid-template-columns: 1fr; }
  .case-right { text-align: left; }
}
/* 複数業種の一覧と業者向けスマートフォン画面 */
.industry-panel { margin: 0 0 18px; }
.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.industry-card { text-align: left; display: flex; flex-direction: column; gap: 7px; border: 1px solid #efe7e8; background: #fffcfc; border-radius: 8px; padding: 15px 16px; color: #7c6e72; font-size: 12px; }
.industry-card:hover { border-color: #dca4aa; background: #fff6f6; }
.industry-card strong { color: #302a2d; font-size: 22px; }
.industry-card strong small { font-size: 12px; font-weight: 500; }
.line-callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #e8e8e5; border-radius: 10px; padding: 18px 22px; margin-bottom: 18px; }
.line-callout strong { font-size: 15px; }
.line-callout p { margin: 6px 0 0; color: #81797c; font-size: 12px; line-height: 1.7; }
.line-demo-layout { display: grid; grid-template-columns: minmax(290px, 380px) minmax(260px, 1fr); gap: 50px; align-items: start; max-width: 920px; }
.phone { overflow: hidden; border: 1px solid #ded9da; border-radius: 24px; box-shadow: 0 14px 35px #3f272d17; background: #fff; }
.phone-top { display: flex; justify-content: space-between; align-items: center; min-height: 58px; padding: 0 20px; background: #263635; color: white; font-size: 16px; }
.phone-top strong { font-size: 14px; }
.phone-body { background: #f7f8f7; padding: 22px 17px; }
.phone-intro span { color: #5d8575; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.phone-intro h2 { font-size: 21px; margin: 6px 0; }
.phone-intro p { color: #858783; font-size: 12px; margin: 0; }
.phone-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 20px 0; border-radius: 9px; overflow: hidden; background: #e9ebe8; border: 1px solid #e9ebe8; }
.phone-summary div { background: white; padding: 12px 4px; text-align: center; }
.phone-summary b { display: block; color: #be3541; font-size: 20px; }
.phone-summary span { display: block; font-size: 11px; color: #858783; margin-top: 4px; }
.phone-label { font-size: 14px; margin: 22px 0 11px; }
.phone-cases { display: grid; gap: 9px; }
.phone-case { width: 100%; display: flex; flex-direction: column; gap: 7px; text-align: left; border: 1px solid #ebeded; border-radius: 9px; padding: 14px; background: #fff; color: #686b67; font-size: 12px; }
.phone-case strong { color: #282e2b; font-size: 14px; line-height: 1.5; }
.phone-case small { color: #b02b38; font-size: 12px; font-weight: 700; }
.phone-store { color: #8a918a; }
.phone-footer { display: grid; grid-template-columns: repeat(3,1fr); text-align: center; border-top: 1px solid #eee; padding: 15px; color: #888; font-size: 11px; }
.phone-footer span:first-child { color: #b02734; font-weight: 700; }
.line-explainer { padding-top: 45px; }
.line-explainer h2 { font-size: 25px; line-height: 1.5; margin: 8px 0 18px; }
.line-explainer p { color: #746c6f; line-height: 1.9; font-size: 14px; }
@media (max-width: 750px) {
  .line-demo-layout { grid-template-columns: 1fr; gap: 12px; }
  .phone { width: 100%; max-width: 440px; margin: 0 auto; }
  .line-explainer { padding: 12px 0; }
  .industry-grid { grid-template-columns: 1fr; }
  .line-callout { align-items: flex-start; flex-direction: column; }
}
