* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7efd5;
  color: #333;
  font-family: Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: inherit;
}

/* =========================
   上部コピー
========================= */

.top-copy {
  background: #e8e0c5;
  padding: 6px 14px;
  font-size: 13px;
}

/* =========================
   ヘッダー
========================= */

.header {
  background: #fff;
  padding: 26px 0 20px;
  border-bottom: 1px solid #ddd;
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 14px;
}

.logo {
  font-size: 42px;
  font-weight: bold;
  color: #222;
  text-decoration: none;
  line-height: 1.4;
}

.tel-area {
  text-align: right;
  white-space: nowrap;
}

.tel-note {
  font-size: 14px;
  color: #555;
}

.tel-number {
  color: #1144cc;
  font-size: 48px;
  font-weight: bold;
  line-height: 1.2;
}

.business {
  font-size: 14px;
}

.mail a {
  color: #7b4b00;
  text-decoration: underline;
  font-size: 14px;
}

/* =========================
   緑ナビ
========================= */

.nav {
  background: #67b62f;
  padding: 12px 14px;
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;

  display: flex;
  gap: 12px;
}

.nav-inner a {
  flex: 1;

  display: block;

  background: #fff;
  color: #333;

  text-align: center;
  text-decoration: none;

  padding: 14px 10px;

  border-radius: 4px;

  font-size: 18px;
  font-weight: bold;

  box-shadow: 0 2px 0 rgba(0,0,0,0.12);

  transition: .15s;
}

.nav-inner a:hover {
  transform: translateY(-1px);
}

/* =========================
   メイン
========================= */

.page-wrap,
.main,
.container {
  max-width: 1040px;
  margin: 34px auto 50px;
  padding: 0 14px;
}

.page-title {
  margin: 0 0 10px;
  font-size: 42px;
  font-weight: bold;
  line-height: 1.4;
  color: #222;
}

.page-desc {
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.9;
}

/* =========================
   カード
========================= */

.card,
.panel,
.box {
  margin-top: 26px;

  background: #fff;

  border: 1px solid #ddd;
  border-radius: 8px;

  padding: 30px;

  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.card h2,
.panel h2,
.box h2 {
  margin: 0 0 22px;

  padding-bottom: 12px;

  border-bottom: 3px solid #9ec5e5;

  color: #4b9bd0;

  font-size: 34px;
  font-weight: bold;
}

.card h3,
.panel h3,
.box h3 {
  margin: 32px 0 14px;

  padding-bottom: 8px;

  border-bottom: 1px solid #ddd;

  color: #444;

  font-size: 24px;
}

/* =========================
   メニュー
========================= */

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.menu-button {
  display: block;

  width: 100%;

  text-align: left;

  padding: 26px;

  border-radius: 8px;

  background: linear-gradient(#ffffff,#f2f2f2);

  border: 1px solid #ccc;

  box-shadow: 0 2px 0 rgba(0,0,0,0.12);

  transition: .2s;

  color: #333;
}

.menu-button:hover {
  transform: translateY(-2px);
}

.menu-button span {
  display: block;

  margin-top: 10px;

  font-size: 15px;
  line-height: 1.8;
  font-weight: normal;

  color: #555;
}

/* =========================
   フォーム
========================= */

label {
  display: block;
  margin: 14px 0 6px;
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;

  padding: 12px 14px;

  border: 1px solid #bbb;
  border-radius: 6px;

  background: #fff;

  font-size: 16px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #67b62f;
  box-shadow: 0 0 0 3px rgba(103,182,47,0.15);
}

/* =========================
   ボタン
========================= */

button,
.btn {
  border-radius: 8px;

  background: linear-gradient(#ffffff,#f2f2f2);

  border: 1px solid #cfcfcf;

  box-shadow: 0 2px 0 rgba(0,0,0,0.10);

  color: #333;

  padding: 12px 18px;

  font-size: 16px;
  font-weight: bold;

  cursor: pointer;

  transition: .18s;
}

button:hover,
.btn:hover {
  background: linear-gradient(#ffffff,#ececec);

  transform: translateY(-2px);
}

button.secondary,
.btn.secondary {
  background: linear-gradient(#ffffff,#f2f2f2);

  border: 1px solid #cfcfcf;

  color: #333;
}

button.secondary:hover,
.btn.secondary:hover {
  background: linear-gradient(#ffffff,#ececec);
}

/* =========================
   一覧テーブル
========================= */

.table-scroll {
  overflow-x: auto;
  margin-top: 16px;

  border: 1px solid #ddd;
  border-radius: 8px;

  background: #fff;
}

.staff-table {
  width: 100%;
  min-width: 1200px;

  border-collapse: collapse;
}

.staff-table th {
  background: #f3f6f8;

  border: 1px solid #ddd;

  padding: 12px 10px;

  text-align: left;

  font-size: 14px;
  white-space: nowrap;
}

.staff-table td {
  border: 1px solid #e5e5e5;

  padding: 12px 10px;

  vertical-align: top;
}

.staff-table tr:hover {
  background: #fffdf5;
}

.content-cell {
  max-width: 380px;
  white-space: normal;
}

/* =========================
   詳細
========================= */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;

  margin: 18px 0 28px;
}

.summary-item {
  background: #fffdf7;

  border: 1px solid #e2d7b5;
  border-radius: 8px;

  padding: 14px;
}

.summary-label {
  font-size: 12px;
  color: #777;
  margin-bottom: 6px;
}

.summary-value {
  font-size: 17px;
  font-weight: bold;
}

.content-box {
  background: #fff9e8;

  border: 1px solid #e0c978;
  border-radius: 8px;

  padding: 18px;

  line-height: 1.9;

  color: #6b5200;

  white-space: pre-wrap;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;

  margin-top: 12px;
}

.detail-table th {
  width: 220px;

  background: #f3f6f8;

  border: 1px solid #ddd;

  padding: 10px;

  text-align: left;
  vertical-align: top;
}

.detail-table td {
  border: 1px solid #e5e5e5;

  padding: 10px;

  vertical-align: top;
}

/* =========================
   メッセージ
========================= */

.message {
  margin-top: 12px;
  color: #2d6b00;
  font-weight: bold;
}

.error-box {
  background: #fff1f0;

  border: 1px solid #d66a5c;
  border-radius: 8px;

  padding: 14px;

  color: #8a2a1f;
}

.loading {
  display: none;

  padding: 12px;

  background: #fff9e8;

  border: 1px solid #e0c978;
  border-radius: 8px;

  color: #6b5200;

  margin-bottom: 14px;
}

/* =========================
   スマホ
========================= */

@media (max-width: 800px) {

  body {
    font-size: 18px;
  }

  .header-inner {
    display: block;
    text-align: center;
  }

  .logo {
    display: block;
    margin-bottom: 14px;
    font-size: 34px;
  }

  .tel-area {
    text-align: center;
    white-space: normal;
  }

  .tel-number {
    font-size: 38px;
  }

  .nav-inner {
    display: block;
  }

  .nav-inner a {
    margin-bottom: 8px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .staff-table {
    min-width: 1000px;
  }

  .page-title {
    font-size: 34px;
  }

  .card h2,
  .panel h2,
  .box h2 {
    font-size: 28px;
  }
}
.staff-portal-header {
  margin-bottom: 26px;

  background: #fff;

  border: 1px solid #ddd;
  border-top: 8px solid #67b62f;
  border-radius: 8px;

  padding: 28px 30px;

  box-shadow: 0 2px 6px rgba(0,0,0,0.10);

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.portal-label {
  display: inline-block;

  margin-bottom: 8px;

  padding: 4px 10px;

  border-radius: 999px;

  background: #fff9e8;
  border: 1px solid #e0c978;

  color: #6b5200;

  font-size: 13px;
  font-weight: bold;
}

.staff-portal-header h1 {
  margin: 0 0 8px;

  font-size: 38px;
  line-height: 1.4;

  color: #222;
}

.staff-portal-header p {
  margin: 0;

  font-size: 17px;
  line-height: 1.8;

  color: #555;
}

.portal-status {
  min-width: 140px;

  text-align: center;

  background: #67b62f;
  color: #fff;

  padding: 10px 14px;

  border-radius: 6px;

  font-weight: bold;
}

.notice-box {
  margin-top: 24px;

  padding: 16px 18px;

  border-radius: 8px;

  background: #fff9e8;
  border: 1px solid #e0c978;

  color: #6b5200;

  line-height: 1.9;
}

@media (max-width: 800px) {
  .staff-portal-header {
    display: block;
    padding: 22px 18px;
  }

  .staff-portal-header h1 {
    font-size: 30px;
  }

  .portal-status {
    margin-top: 14px;
    width: 100%;
  }
}
.filter-panel {
  margin-bottom: 18px;
  padding: 18px;
  background: #fffdf7;
  border: 1px solid #e2d7b5;
  border-radius: 8px;
}

.filter-title {
  margin-bottom: 10px;
  color: #6b5200;
  font-weight: bold;
}

.count-text {
  margin-top: 8px;
  color: #666;
  font-size: 14px;
}

.status-badge {
  display: inline-block;
  min-width: 64px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  border: 1px solid #ddd;
}

.status-open {
  background: #fff9e8;
  color: #6b5200;
  border-color: #e0c978;
}

.status-working {
  background: #e8f3ff;
  color: #24527a;
  border-color: #9ec5e5;
}

.status-done {
  background: #edf8e8;
  color: #2d6b00;
  border-color: #9ccc82;
}

.receipt-cell {
  white-space: nowrap;
  font-weight: bold;
}

.date-cell {
  white-space: nowrap;
}
.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.detail-title-row h2 {
  margin: 6px 0 0;
  font-size: 32px;
  color: #222;
}

.raw-data-box {
  margin-top: 28px;
  padding: 16px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.raw-data-box summary {
  cursor: pointer;
  font-weight: bold;
  color: #444;
}

@media (max-width: 800px) {
  .detail-title-row {
    display: block;
  }

  .detail-title-row h2 {
    font-size: 26px;
  }
}
.filter-panel {
  margin-bottom: 18px;
  padding: 18px;
  background: #fffdf7;
  border: 1px solid #e2d7b5;
  border-radius: 8px;
}

.filter-title {
  margin: 14px 0 8px;
  color: #6b5200;
  font-weight: bold;
}

.count-text {
  margin-top: 8px;
  color: #666;
  font-size: 14px;
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.staff-table th,
.staff-table td {
  word-break: break-word;
}

.receipt-cell {
  width: 150px;
}

.date-cell {
  width: 150px;
}

.type-cell {
  width: 90px;
}

.property-cell {
  width: 150px;
}

.room-cell {
  width: 70px;
}

.name-cell {
  width: 130px;
}

.category-cell {
  width: 120px;
}

.content-cell {
  width: 290px;
}

.status-cell {
  width: 90px;
  text-align: center;
}

.detail-cell {
  width: 80px;
  text-align: center;
}

.status-badge {
  display: inline-block;
  min-width: 64px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  border: 1px solid #ddd;
}

.status-open {
  background: #fff9e8;
  color: #6b5200;
  border-color: #e0c978;
}

.status-working {
  background: #e8f3ff;
  color: #24527a;
  border-color: #9ec5e5;
}

.status-done {
  background: #edf8e8;
  color: #2d6b00;
  border-color: #9ccc82;
}

@media (max-width: 800px) {

  .inquiry-table th:nth-child(4),
  .inquiry-table td:nth-child(4),
  .inquiry-table th:nth-child(6),
  .inquiry-table td:nth-child(6),
  .inquiry-table th:nth-child(7),
  .inquiry-table td:nth-child(7) {
    display: none;
  }

  .staff-table {
    table-layout: auto;
  }

  .receipt-cell,
  .date-cell,
  .type-cell,
  .room-cell,
  .content-cell,
  .status-cell,
  .detail-cell {
    width: auto;
  }
}
/* =========================
   PC版：一覧は横幅を広く使う
========================= */

@media (min-width: 801px) {
  .main,
  .page-wrap,
  .container {
    max-width: 96vw;
  }

  .staff-table {
    table-layout: auto;
    min-width: 0;
  }

  .table-scroll {
    overflow-x: auto;
  }

  .receipt-cell {
    width: 140px;
    white-space: nowrap;
  }

  .date-cell {
    width: 145px;
    white-space: nowrap;
  }

  .type-cell {
    width: 95px;
    white-space: nowrap;
  }

  .room-cell {
    width: 65px;
    white-space: nowrap;
  }

  .status-cell {
    width: 90px;
    white-space: nowrap;
  }

  .detail-cell {
    width: 75px;
    white-space: nowrap;
  }

  .content-cell {
    min-width: 260px;
  }
}

/* =========================
   TOPメニュー：ホバー時に緑へ変えない
========================= */

.menu-button:hover {
  background: linear-gradient(#ffffff,#f2f2f2);
  color: #333;
  transform: translateY(-2px);
}

.menu-button:hover span {
  color: #555;
}

.status-panels{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-bottom:14px;
}

.status-panel{
  background:#fff;

  border:1px solid #ddd;
  border-radius:8px;

  padding:10px 8px;

  text-align:center;

  box-shadow:0 2px 4px rgba(0,0,0,.06);
}

.status-count{
  font-size:24px;
  font-weight:bold;
  color:#67b62f;
  line-height:1.2;
}

.status-label{
  margin-top:4px;
  font-size:12px;
  color:#666;
}

.receipt-guide{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:10px 0 22px;
  padding:12px 14px;
  background:#f8fbff;
  border:1px solid #cfe3f5;
  border-radius:8px;
  font-size:14px;
  color:#444;
}

.receipt-guide strong{
  color:#4b9bd0;
  font-size:15px;
}

/* =========================
   問い合わせ一覧ボタン
========================= */

.filter-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}

.filter-btn{
  display:inline-block;

  min-width:120px;

  padding:14px 18px;

  border-radius:8px;

  background:linear-gradient(#ffffff,#f2f2f2);

  border:1px solid #cfcfcf;

  box-shadow:0 2px 0 rgba(0,0,0,0.10);

  color:#333;

  font-size:15px;
  font-weight:bold;

  cursor:pointer;

  transition:.18s;
}

.filter-btn:hover{
  transform:translateY(-2px);

  background:linear-gradient(#ffffff,#ececec);
}

.filter-btn.active{
  background:linear-gradient(#ffffff,#e5e5e5);

  border:1px solid #bbbbbb;

  color:#222;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 2px 4px rgba(0,0,0,.10);
}

.filter-btn.active:hover{
  background:linear-gradient(#ffffff,#ececec);
}}}
.past-history-area {
  margin-top: 14px;
}

.past-history-area h4 {
  margin: 22px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
  color: #444;
  font-size: 18px;
}

.history-card {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #fffdf7;
  border: 1px solid #e2d7b5;
  border-radius: 8px;
}

.history-date {
  font-size: 13px;
  color: #777;
  margin-bottom: 4px;
}

.history-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.history-line {
  margin: 4px 0;
  font-size: 14px;
  color: #555;
}

.history-body {
  margin-top: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  line-height: 1.8;
  white-space: normal;
}
.history-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 20px;
}

.history-filter {
  border: 1px solid #cfcfcf;
  background: #f3f3f3;
  color: #333;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}

.history-filter.active {
  background: #d9d9d9;
  font-weight: bold;
}