/* ===========================================
   SNPIT Requests /requests/style.css
   - Tasks(グリーン系)と明確に差が出る「オレンジ/アンバー」テーマ
   - レイアウトは同じ、色と質感だけ変更
   =========================================== */

:root{
  /* Warm / orange theme */
  --bg:#140b06;          /* 背景(焦げ茶) */
  --card:#1f110a;        /* カード背景 */
  --card-2:#160c07;      /* 入力背景 */
  --text:#fff1e7;        /* 文字 */
  --muted:#d1b6a6;       /* サブ文字 */
  --line:#3a2418;        /* 罫線 */
  --accent:#ff7a18;      /* メイン(オレンジ) */
  --accent-2:#ffb347;    /* サブ(アンバー) */
  --danger:#d15b5b;
  --ok:#2bc46e;

  --shadow:0 10px 30px rgba(0,0,0,.35);
}

/* ===== Base ===== */
*{ box-sizing:border-box; }
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Noto Sans JP",system-ui,-apple-system,Segoe UI,Roboto,
    "Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic",Meiryo,sans-serif;
}

/* iOS safe-area */
.lp-header,.lp-footer{
  padding-left:calc(env(safe-area-inset-left,0) + 0px);
  padding-right:calc(env(safe-area-inset-right,0) + 0px);
}

.container{
  max-width:860px;
  margin:0 auto;
  padding:16px 16px 24px;
}

/* ===== Header ===== */
.lp-header{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(20,11,6,.88);
  backdrop-filter:saturate(120%) blur(10px);
  border-bottom:1px solid var(--line);
}
.hdr-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  max-width:980px;
  margin:0 auto;
  padding:10px 16px;
}
.brand{
  color:#fff;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.2px;
}
.hdr-tools{
  display:flex;
  align-items:center;
  gap:10px;
}

/* ===== Switch ===== */
.switch{
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  color:var(--muted);
  font-size:13px;
}
.switch input{ display:none; }

.switch .slider{
  width:42px;
  height:24px;
  border-radius:20px;
  background:#2a1a12;
  position:relative;
  border:1px solid #4a2f22;
  display:inline-block;
  vertical-align:middle;
}
.switch .slider::after{
  content:"";
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  position:absolute;
  top:2px;
  left:2px;
  transition:transform .18s ease;
}
.switch input:checked + .slider{
  background:var(--accent);
  border-color:rgba(255,179,71,.55);
}
.switch input:checked + .slider::after{
  transform:translateX(18px);
}
.switch-label{ user-select:none; }

/* ===== Buttons ===== */
.btn{
  border:1px solid #5a3a2a;
  background:#2a1911;
  color:#fff;
  border-radius:10px;
  padding:8px 12px;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
}
.btn-ghost{
  background:transparent;
}
.btn:hover{ filter:brightness(1.07); }
.btn:active{ transform:translateY(1px); }
.btn[disabled]{ opacity:.5; cursor:default; }

/* ===== Titles ===== */
.page-title{
  margin:14px 0 4px;
  font-size:20px;
}
.sub{
  margin:0 0 12px;
  color:var(--muted);
  font-size:13px;
}

/* ===== Status row ===== */
.status-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.updated{
  color:var(--muted);
  font-size:12px;
}
.net{
  width:10px;
  height:10px;
  border-radius:50%;
}
.net.ok{ background:var(--ok); }
.net.off{ background:var(--danger); }

/* ===== Post form card ===== */
.post-card{
  background:var(--card);
  border-radius:12px;
  border:1px solid var(--line);
  padding:12px;
  margin-bottom:14px;
  box-shadow:var(--shadow);
}
.section-title{
  margin:0 0 8px;
  font-size:15px;
}
.field-label{
  display:block;
  margin-top:6px;
  margin-bottom:2px;
  font-size:13px;
  color:var(--text);
}
.req-mark{
  color:var(--accent-2);
  font-weight:800;
}

/* inputs */
#reqTitle,
#reqBody{
  width:100%;
  border-radius:10px;
  border:1px solid #4b2f22;
  background:var(--card-2);
  color:var(--text);
  font-size:13px;
  padding:8px 10px;
  font-family:inherit;
}
#reqTitle::placeholder,
#reqBody::placeholder{
  color:rgba(209,182,166,.75);
}
#reqTitle:focus,
#reqBody:focus{
  outline:none;
  border-color:rgba(255,122,24,.9);
  box-shadow:0 0 0 3px rgba(255,122,24,.15);
}
#reqBody{
  resize:vertical;
  min-height:78px;
}

.hint{
  margin:8px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
.form-actions{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:10px;
}
.form-msg{
  margin:0;
  font-size:12px;
  color:var(--muted);
}

/* ===== List ===== */
.task-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
}

/* 1行カード(Tasksと同じUI構造) */
.task{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:8px;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}
.task:hover{
  border-color:rgba(255,179,71,.45);
}

/* left block */
.title{
  display:flex;
  align-items:flex-start;
  gap:8px;
  line-height:1.35;
  min-width:0;
}
.bullet{
  width:14px;
  height:14px;
  border:2px solid rgba(255,179,71,.65);
  border-radius:50%;
  box-shadow:inset 0 0 0 3px var(--card);
  margin-top:2px;
  flex:0 0 auto;
}
.label{
  font-size:14px;
  word-break:break-word;
}
.detail{
  margin-top:3px;
  font-size:12px;
  color:var(--muted);
  white-space:pre-wrap;
  word-break:break-word;
}

/* right block */
.meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
.count{
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}

.vote{
  min-height:34px;
  min-width:78px;
  background:var(--accent);
  color:#fff;
  border:0;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  font-weight:800;
  font-size:12px;
  letter-spacing:.2px;
}
.vote:hover{ filter:brightness(1.07); }
.vote:active{ transform:translateY(1px); }

.vote.voted{
  background:#2a1911;
  border:1px solid rgba(255,179,71,.8);
  box-shadow:inset 0 0 0 1px rgba(255,179,71,.7);
  color:#ffe6c9;
  cursor:pointer;
}

.vote[disabled]{
  opacity:.6;
  cursor:default;
}

.done-label{
  font-size:11px;
  padding:2px 8px;
  border-radius:999px;
  background:#2a1911;
  color:#ffd7a6;
  border:1px solid rgba(255,179,71,.7);
  white-space:nowrap;
}

/* done state */
.task.done .label{ opacity:.95; }
.task.done .bullet{
  border-color:rgba(255,179,71,.35);
}

/* ===== Footer ===== */
.lp-footer{
  border-top:1px solid var(--line);
  background:#120904;
}
.footer-inner{
  max-width:980px;
  margin:0 auto;
  padding:12px 16px 16px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:center;
  font-size:12px;
}
.footer-link{
  color:var(--text);
  text-decoration:none;
}
.footer-link:hover{
  color:var(--accent-2);
}
.sep{ opacity:.4; }

/* ===== Responsive ===== */
@media (min-width:720px){
  .page-title{ font-size:22px; }
  .task-list{ gap:10px; }
}
@media (min-width:960px){
  .container{ padding:20px 20px 28px; }
  .task{ padding:12px 14px; }
  .label{ font-size:15px; }
}
