/*
Theme Name: Client Confirmation Portal
Theme URI: https://example.com/
Author: Web Team
Description: Lightweight client confirmation portal theme.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: client-confirmation-portal
*/

:root {
  --ink: #1f2a32;
  --muted: #65727d;
  --line: #d9e1e7;
  --panel: #ffffff;
  --bg: #f5f7f8;
  --accent: #1CA3E5;
  --accent-dark: #1688c2;
  --accent-soft: #e1f0fa;
  --done: #15803d;
  --done-soft: #e9f8ee;
  --dirty: #b7791f;
  --dirty-soft: #fff8df;
  --warn-soft: #fff3d6;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
}

a {
  color: var(--accent-dark);
}

.portal-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.portal-header {
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.meta-item {
  min-height: 72px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.meta-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.meta-value {
  font-size: 15px;
  font-weight: 700;
}

.note {
  margin: 22px 0 0;
  padding: 14px 16px;
  color: #6b3d07;
  background: var(--warn-soft);
  border: 1px solid #f4d28a;
  border-radius: 8px;
  font-size: 14px;
}

.status-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 24px 0 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.status-count {
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.priority {
  margin: 28px 0 0;
  padding: 22px;
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: 8px;
}

.priority h2,
.confirmation-section h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0;
}

.priority-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.priority-list li {
  padding: 10px 12px;
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 22px;
}

.confirmation-section {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  vertical-align: 1px;
}

.tag {
  flex: 0 0 auto;
  padding: 4px 9px;
  color: var(--muted);
  background: #eef2f4;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  min-height: 130px;
  padding: 14px;
  background: #fbfcfd;
  border: 1px solid #e6edf1;
  border-radius: 8px;
  font-size: 14px;
}

.checklist li::before {
  content: "未";
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #a8b5bf;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.checklist li.is-complete {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.checklist li.is-complete::before {
  content: "✓";
  color: #fff;
  background: var(--done);
  border-color: var(--done);
  font-size: 16px;
}

.checklist li.is-dirty {
  background: var(--dirty-soft);
  border-color: #e6c76d;
}

.checklist li.is-dirty::before {
  content: "未保存";
  width: 54px;
  color: #6b4208;
  background: #ffe8a3;
  border-color: #d6a23a;
  border-radius: 999px;
  font-size: 11px;
}

.question-title {
  display: block;
  padding-right: 64px;
  font-weight: 700;
}

.sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.answer-input {
  display: block;
  width: 100%;
  min-height: 92px;
  margin: 12px 0;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px dashed #cbd5dc;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  line-height: 1.7;
  resize: vertical;
}

.answer-input:hover {
  border-color: var(--accent);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.answer-input:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--accent);
  border-style: solid;
  box-shadow: none;
}

.answer-input::placeholder {
  color: var(--muted);
}

.is-complete .answer-input {
  color: var(--ink);
  background: #fff;
  border-color: var(--accent);
  border-style: solid;
}

.is-dirty .answer-input {
  background: #fffdf4;
  border-color: #d6a23a;
  border-style: solid;
}

.item-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

button {
  appearance: none;
  min-height: 36px;
  padding: 7px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9c6ce;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
}

.save-btn {
  justify-self: end;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.reset-btn {
  justify-self: start;
  min-height: 30px;
  padding: 4px 0;
  color: #8a3a3a;
  background: transparent;
  border-color: transparent;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reset-btn:hover {
  color: #b91c1c;
  border-color: transparent;
}

.save-notice {
  color: var(--done);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.save-notice.is-visible {
  opacity: 1;
}

.login-body {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(224, 242, 239, 0.65), rgba(245, 247, 248, 0) 34%), var(--bg);
}

.login-wrap {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 16px;
}

.login-panel {
  width: min(100%, 440px);
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(31, 42, 50, 0.08);
}

.login-panel h1 {
  font-size: 28px;
}

.field {
  margin-top: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
}

input[type="text"],
input[type="password"] {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9c6ce;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
}

input:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--accent);
}

.options {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.submit {
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.submit:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.footer-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 820px) {
  .portal-page {
    width: min(100% - 24px, 1120px);
    padding-top: 20px;
  }

  .meta,
  .status-bar,
  .priority-list,
  .checklist {
    grid-template-columns: 1fr;
  }

  .confirmation-section,
  .priority {
    padding: 18px;
  }

  .section-head {
    display: block;
  }

  .tag {
    display: inline-block;
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .login-panel {
    padding: 24px 18px;
  }

  .login-panel h1 {
    font-size: 24px;
  }
}


.confirmation-home {
  padding-bottom: 72px;
}

.confirmation-intro {
  margin-top: 24px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.confirmation-intro > *:first-child {
  margin-top: 0;
}

.confirmation-intro > *:last-child {
  margin-bottom: 0;
}

.notice-area {
  margin-top: 28px;
}

.notice-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.notice-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
}

.notice-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.notice-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.notice-card:hover {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 14px 32px rgba(31, 42, 50, 0.08);
  transform: translateY(-1px);
}

.notice-link {
  display: block;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
}

.notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.notice-category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.notice-title {
  margin: 0;
  padding-right: 24px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 800;
}

.notice-card:hover .notice-title {
  color: var(--accent-dark);
}

.notice-excerpt {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.empty-panel {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.empty-panel .lead {
  margin-top: 0;
}

.notice-pagination {
  margin-top: 22px;
}

.notice-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-pagination li {
  margin: 0;
}

.notice-pagination a,
.notice-pagination span {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  padding: 6px 11px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.notice-pagination a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.notice-pagination .current {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 820px) {
  .notice-head {
    display: block;
  }

  .notice-link {
    padding: 16px;
  }

  .notice-title {
    padding-right: 0;
    font-size: 16px;
  }
}



.single-notice-page {
  padding-bottom: 72px;
}

.single-notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.single-notice-content {
  margin-top: 28px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.single-notice-content > *:first-child {
  margin-top: 0;
}

.single-notice-content > *:last-child {
  margin-bottom: 0;
}

.single-notice-content p {
  margin: 0 0 1.4em;
}

.single-notice-content h2 {
  margin: 2em 0 0.8em;
  font-size: 24px;
  line-height: 1.45;
}

.single-notice-content h3 {
  margin: 1.8em 0 0.7em;
  font-size: 20px;
  line-height: 1.45;
}

.single-notice-content ul,
.single-notice-content ol {
  margin: 1em 0;
  padding-left: 1.4em;
}

.back-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.back-to-top-btn:hover {
  color: #fff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 42, 50, 0.12);
}

@media (max-width: 820px) {
  .single-notice-content {
    padding: 20px;
  }

  .back-actions {
    justify-content: stretch;
  }

  .back-to-top-btn {
    width: 100%;
  }
}


.sheet-input-section {
  margin-top: 28px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sheet-input-head {
  margin-bottom: 18px;
}

.sheet-input-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
}

.sheet-input-head .lead {
  margin-top: 10px;
}

.sheet-button-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sheet-button {
  display: grid;
  gap: 6px;
  min-height: 128px;
  padding: 18px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid #e6edf1;
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.sheet-button:hover {
  color: var(--ink);
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 14px 32px rgba(31, 42, 50, 0.08);
  transform: translateY(-1px);
}

.sheet-button-label {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.sheet-button-title {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.sheet-button-meta {
  display: block;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sheet-empty-panel {
  padding: 18px;
  color: var(--muted);
  background: #fbfcfd;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .sheet-button-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sheet-input-section {
    padding: 20px;
  }

  .sheet-button-list {
    grid-template-columns: 1fr;
  }

  .sheet-button {
    min-height: 112px;
  }
}
