/* 配色・共通設定 → PC画面 → ダイアログ → 画面幅別の調整 */
:root{
  color-scheme:light;
  --green:#163f35;
  --gold:#b69452;
  --ink:#253b34;
  --muted:#7b8580;
  --line:#e6eae6;
  --surface:#f7f8f5;
  --pending:#b47b21;
  --active:#4b78a0;
  --done:#428168;
  font-family:"Yu Gothic UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  color:var(--ink);
  background:var(--surface);
  font-synthesis:none
}
*{
  box-sizing:border-box
}
body{
  margin:0
}
button,input,select,textarea{
  font:inherit
}
button{
  cursor:pointer
}
button,a,input,textarea,select{
  -webkit-tap-highlight-color:transparent
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  outline:3px solid #b69452;
  outline-offset:3px
}
button{
  transition:background .15s,box-shadow .15s
}
button:hover{
  filter:brightness(.96)
}
.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:232px;
  background:var(--green);
  color:white;
  padding:38px 24px;
  display:flex;
  flex-direction:column
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:white;
  text-decoration:none;
  font-size:28px;
  font-weight:650;
  letter-spacing:1px
}
.brand-icon{
  position:relative;
  display:grid;
  place-content:center;
  width:38px;
  height:42px;
  border:1px solid #82998b;
  border-radius:11px;
  font-family:Georgia,serif;
  font-size:37px;
  color:#dfcf9d
}
.brand-icon span{
  position:absolute;
  top:0;
  right:1px;
  font-size:24px
}
.brand small{
  display:block;
  font-size:8px;
  letter-spacing:1.8px;
  font-weight:400;
  margin-top:4px;
  color:#c2cfc7
}
.workspace-label{
  font-size:10px;
  letter-spacing:1.8px;
  color:#a9bdb0;
  margin:58px 12px 16px
}
.nav-current{
  display:flex;
  align-items:center;
  gap:10px;
  background:#ffffff12;
  border:1px solid #ffffff12;
  border-radius:6px;
  padding:14px 12px;
  font-size:13px
}
.nav-current>span:first-child{
  font-size:20px;
  color:#cfbb87
}
.nav-dot{
  margin-left:auto;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#c8ab6e
}
.sidebar-bottom{
  margin-top:auto;
  display:flex;
  align-items:center;
  gap:9px;
  padding-top:22px;
  border-top:1px solid #ffffff1c;
  font-size:11px;
  color:#d1dbd4
}
.sidebar-bottom small{
  display:block;
  margin-top:5px;
  font-size:9px;
  color:#9eb3a5
}
.local-symbol{
  font-size:24px;
  color:#c7ad75
}
.app-shell{
  margin-left:232px
}
.topbar{
  height:76px;
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:0 42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  color:var(--muted)
}
.topbar div span{
  margin:0 15px;
  color:#bcc4bd
}
.topbar strong{
  font-weight:500;
  color:#48584f
}
.prototype{
  font-size:9px;
  letter-spacing:1.4px;
  display:flex;
  align-items:center;
  gap:7px
}
.prototype i{
  width:5px;
  height:5px;
  background:var(--gold);
  border-radius:50%
}
main{
  max-width:1500px;
  margin:auto;
  padding:43px 42px 24px
}
.page-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:40px
}
.eyebrow{
  font-size:9px;
  color:var(--gold);
  font-weight:700;
  letter-spacing:2px;
  margin:0 0 10px
}
h1{
  font-size:28px;
  letter-spacing:1.5px;
  margin:0;
  font-weight:650
}
.subtitle{
  font-size:12px;
  color:var(--muted);
  margin:12px 0 0
}
.button{
  border:1px solid transparent;
  border-radius:5px;
  min-height:44px;
  padding:11px 19px;
  font-size:12px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px
}
.button-primary{
  background:var(--green);
  color:white;
  box-shadow:0 3px 6px #163f3510
}
.button-primary span{
  font-size:19px;
  line-height:1
}
.button-secondary{
  background:white;
  border-color:#d9dfd9;
  color:#58645c
}
.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:15px
}
h2{
  font-size:14px;
  font-weight:650;
  margin:0
}
.section-heading>span{
  font-size:10px;
  color:var(--muted)
}
.stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:32px
}
.stat-card{
  padding:22px 22px 18px;
  background:white;
  border:1px solid var(--line);
  border-radius:7px;
  min-height:157px
}
.stat-card.total{
  background:var(--green);
  color:white;
  border-color:var(--green);
  position:relative;
  overflow:hidden
}
.total:after{
  content:"";
  position:absolute;
  width:115px;
  height:115px;
  border:1px solid #ffffff0c;
  border-radius:50%;
  right:-42px;
  bottom:-50px;
  box-shadow:0 0 0 18px #ffffff03,0 0 0 36px #ffffff03
}
.stat-label{
  font-size:11px;
  display:flex;
  align-items:center;
  gap:7px
}
.total .stat-label{
  color:#e1e8df;
  justify-content:space-between
}
.total .stat-label>span{
  font-size:19px;
  color:#c9b67f
}
.status-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  display:inline-block
}
.pending{
  background:var(--pending)
}
.active{
  background:var(--active)
}
.done{
  background:var(--done)
}
.stat-number{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin:12px 0 9px
}
.stat-number>span{
  font-family:Arial,sans-serif;
  font-size:38px;
  font-weight:500;
  letter-spacing:-1px
}
.stat-number small{
  font-size:10px;
  font-weight:400;
  color:var(--muted)
}
.total .stat-number small{
  color:#cad8cd
}
.stat-card p{
  font-size:9px;
  color:var(--muted);
  margin:0
}
.total p{
  color:#b6c9bc
}
.list-panel{
  border:1px solid var(--line);
  border-radius:8px;
  background:white;
  overflow:hidden
}
.list-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:25px 26px 21px;
  gap:16px
}
.list-title h2{
  display:flex;
  align-items:center;
  gap:9px
}
.list-title h2 span{
  border:1px solid var(--line);
  border-radius:4px;
  font-family:Arial,sans-serif;
  font-size:10px;
  padding:2px 6px;
  color:#7a877e
}
.list-title p{
  font-size:10px;
  color:var(--muted);
  margin:9px 0 0
}
.sort-label{
  font-size:10px;
  color:var(--muted)
}
.list-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 26px 18px;
  gap:12px
}
.filters{
  display:flex;
  gap:4px;
  background:var(--surface);
  padding:4px;
  border:1px solid #edf0eb;
  border-radius:6px
}
.filter{
  font-size:11px;
  white-space:nowrap;
  border:0;
  border-radius:4px;
  padding:9px 13px;
  background:transparent;
  color:#7d857f;
  min-height:36px
}
.filter span{
  font-size:9px;
  margin-left:6px;
  opacity:.7
}
.filter.selected{
  background:white;
  color:var(--green);
  box-shadow:0 1px 4px #123d3412;
  font-weight:700
}
.list-toolbar>span{
  font-size:10px;
  color:var(--muted)
}
table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  text-align:left
}
thead{
  background:#f8f9f6;
  color:#7b867c;
  font-size:10px
}
th{
  font-weight:500;
  padding:13px 20px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)
}
th:first-child{
  width:16%;
  padding-left:26px
}
th:nth-child(2){
  width:43%
}
th:nth-child(3){
  width:16%
}
th:nth-child(4){
  width:19%
}
th:last-child{
  width:6%
}
td{
  padding:21px 20px;
  border-bottom:1px solid #edf0eb;
  font-size:12px;
  vertical-align:middle
}
td:first-child{
  padding-left:26px;
  font-size:11px;
  color:#738076;
  font-variant-numeric:tabular-nums
}
.inquiry-content{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  line-height:1.8
}
.assignee-name{
  overflow-wrap:anywhere;
  line-height:1.6
}
.status-select{
  border:1px solid transparent;
  border-radius:5px;
  padding:7px 4px;
  min-height:38px;
  font-size:11px;
  max-width:100%;
  cursor:pointer;
  font-weight:600
}
.status-pending{
  color:#986714;
  background:#fbf3e3
}
.status-active{
  color:#446e96;
  background:#edf3fa
}
.status-done{
  color:#337254;
  background:#edf5ef
}
.delete-button{
  border:0;
  background:transparent;
  color:#97a098;
  font-size:19px;
  min-width:36px;
  min-height:40px;
  display:grid;
  place-items:center;
  border-radius:4px
}
.delete-button:hover{
  background:#fff0ed;
  color:#a74435
}
.delete-button svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5
}
.empty-state{
  text-align:center;
  padding:52px 20px 60px
}
.empty-icon{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  background:#f2f5ef;
  border:1px solid #e5eadd;
  border-radius:13px;
  color:#9baf99;
  font-size:26px;
  margin:0 auto 17px
}
.empty-state h3{
  font-size:13px;
  font-weight:500;
  margin:0 0 10px
}
.empty-state p{
  color:var(--muted);
  font-size:11px;
  line-height:1.8;
  margin:0
}
.list-footer{
  padding:16px 26px;
  background:#fff;
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid var(--line);
  font-size:9px;
  color:#8e988e
}
.list-footer>span:first-child>span{
  margin-right:5px;
  color:var(--gold)
}
.page-footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:25px;
  color:#919b91;
  font-size:9px;
  line-height:1.8
}
.page-footer>span:first-child{
  color:#7c8b7f
}
.footer-divider{
  color:#c7cec4;
  margin:0 9px
}
.storage-note{
  font-size:9px;
  color:#929a92;
  line-height:1.8;
  margin-top:12px
}
.feedback{
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  background:var(--green);
  color:white;
  padding:14px 23px;
  box-shadow:0 4px 24px #17362a26;
  border-radius:6px;
  font-size:12px;
  z-index:10;
  max-width:calc(100% - 32px)
}
.feedback.error{
  background:#9d3e32
}
dialog{
  border:1px solid #e2e6df;
  border-radius:12px;
  padding:28px;
  width:min(500px,calc(100% - 32px));
  max-height:calc(100dvh - 40px);
  overflow:auto;
  color:var(--ink);
  box-shadow:0 20px 80px #122b3333
}
dialog::backdrop{
  background:#18392e70;
  backdrop-filter:blur(3px)
}
.dialog-header{
  display:flex;
  align-items:center;
  justify-content:space-between
}
.dialog-header h2{
  font-size:20px
}
.icon-button{
  background:transparent;
  border:0;
  font-size:26px;
  min-width:40px;
  min-height:40px;
  color:#8b958c;
  border-radius:5px
}
.dialog-description{
  font-size:12px;
  line-height:1.9;
  color:var(--muted);
  margin:16px 0 22px
}
label{
  display:block;
  font-size:12px;
  margin:17px 0 8px;
  font-weight:600
}
.required{
  font-size:9px;
  color:#a37c36;
  margin-left:5px;
  font-weight:400
}
input,textarea,form select{
  width:100%;
  border:1px solid #d7dfd5;
  border-radius:5px;
  padding:11px 12px;
  background:white;
  color:var(--ink);
  font-size:14px;
  min-height:44px
}
textarea{
  resize:vertical;
  line-height:1.7
}
input::placeholder,textarea::placeholder{
  color:#a5ada4
}
.field-help{
  display:block;
  font-size:10px;
  color:#90998e;
  margin-top:5px
}
.dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:25px
}
.form-error{
  color:#aa4332;
  font-size:12px;
  line-height:1.8
}
.button-danger{
  background:#aa4436;
  color:white
}
.delete-body{
  text-align:left
}
.delete-symbol{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  color:#aa4436;
  background:#fcf0ed;
  border-radius:50%;
  font-size:22px;
  margin-bottom:18px
}
.delete-body h2{
  font-size:19px
}
.delete-body>p{
  font-size:12px;
  line-height:1.8;
  overflow-wrap:anywhere
}
.delete-warning{
  color:#a04b3e
}
#delete-preview{
  background:var(--surface);
  border-radius:5px;
  padding:12px;
  color:#728173;
  white-space:pre-wrap
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
[hidden]{
  display:none!important
}
@media(min-width:1600px){
  main{
    padding-top:55px
  }
  .page-heading{
    margin-bottom:48px
  }
  .stats{
    gap:22px
  }
  .stat-card{
    min-height:170px;
    padding:25px
  }
  .empty-state{
    padding:70px 20px 78px
  }
}
@media(max-width:1150px){
  .sidebar{
    width:200px;
    padding:32px 18px
  }
  .app-shell{
    margin-left:200px
  }
  main{
    padding:32px 25px
  }
  .topbar{
    padding:0 25px
  }
  .stat-card{
    padding:18px 14px
  }
  .stat-card p{
    font-size:8px
  }
  .stats{
    gap:10px
  }
  td,th{
    padding-left:12px;
    padding-right:12px
  }
  .filter{
    padding:8px 10px
  }
}
@media(max-width:850px){
  .sidebar{
    position:static;
    width:100%;
    height:72px;
    flex-direction:row;
    align-items:center;
    padding:12px 22px
  }
  .brand{
    font-size:23px
  }
  .brand-icon{
    height:35px;
    width:32px;
    font-size:29px
  }
  .brand small{
    font-size:7px
  }
  .workspace-label,.nav-current,.sidebar-bottom{
    display:none
  }
  .app-shell{
    margin-left:0
  }
  .topbar{
    height:49px;
    padding:0 22px
  }
  main{
    padding:28px 22px
  }
  .stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
  .stat-card{
    padding:19px 20px
  }
  .stat-card p{
    font-size:9px
  }
  .page-heading{
    margin-bottom:30px
  }
  .page-footer{
    flex-wrap:wrap
  }
}
@media(max-width:600px){
  main{
    padding:25px 16px
  }
  .topbar{
    padding:0 16px;
    font-size:10px
  }
  .topbar div span{
    margin:0 9px
  }
  .prototype{
    font-size:8px
  }
  .page-heading{
    display:block
  }
  h1{
    font-size:25px
  }
  .page-heading>.button{
    width:100%;
    margin-top:23px;
    min-height:48px
  }
  .section-heading h2{
    font-size:12px
  }
  .section-heading>span{
    font-size:9px
  }
  .stats{
    gap:10px;
    margin-bottom:24px
  }
  .stat-card{
    padding:17px 15px;
    min-height:145px
  }
  .stat-label{
    font-size:10px
  }
  .stat-number>span{
    font-size:34px
  }
  .stat-card p{
    font-size:8px
  }
  .list-title{
    padding:21px 18px
  }
  .sort-label{
    display:none
  }
  .list-toolbar{
    padding:0 14px 16px;
    align-items:flex-start;
    flex-direction:column
  }
  .filters{
    width:100%;
    gap:2px
  }
  .filter{
    flex:1;
    padding:8px 4px;
    font-size:10px;
    min-height:40px
  }
  .filter span{
    margin-left:3px
  }
  .list-toolbar>span{
    align-self:flex-end;
    font-size:9px
  }
  .table-wrap table,.table-wrap tbody{
    display:block
  }
  .table-wrap thead{
    display:none
  }
  tr{
    display:grid;
    grid-template-columns:1fr auto;
    gap:12px;
    position:relative;
    margin:0 16px;
    padding:18px 0;
    border-top:1px solid var(--line)
  }
  td,td:first-child{
    padding:0;
    border:0
  }
  td:first-child{
    grid-column:1;
    grid-row:1;
    font-size:11px
  }
  td:nth-child(2){
    grid-row:2;
    grid-column:1 / -1;
    padding-right:32px;
    font-size:13px
  }
  td:nth-child(3){
    grid-row:3;
    grid-column:1;
    font-size:12px;
    align-self:center
  }
  td:nth-child(3):before{
    content:"担当者：";
    font-size:10px;
    color:var(--muted)
  }
  td:nth-child(4){
    grid-column:2;
    grid-row:3
  }
  .status-select{
    font-size:12px;
    min-width:100px;
    min-height:44px
  }
  td:last-child{
    grid-row:1;
    grid-column:2;
    position:absolute;
    right:-5px;
    top:-12px
  }
  .delete-button{
    min-width:44px;
    min-height:44px
  }
  .list-footer{
    padding:14px 16px;
    font-size:8px
  }
  .empty-state{
    padding:40px 18px 45px
  }
  .page-footer{
    font-size:8px;
    gap:6px
  }
  .storage-note{
    font-size:8px
  }
  dialog{
    padding:23px 20px
  }
  .dialog-actions .button{
    flex:1
  }
  .dialog-header h2{
    font-size:19px
  }
  input,textarea,form select{
    font-size:16px
  }
  .feedback{
    width:max-content;
    text-align:center
  }
}
@media(prefers-reduced-motion:reduce){
  *{
    transition:none!important
  }
}
