/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #24302b;
  background-color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2f6b4f;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1f4f38;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  line-height: 1.4;
  color: #24302b;
  font-weight: 700;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

figure {
  margin: 0;
}

blockquote {
  margin: 1.5em 0;
  padding: 0.75em 1.25em;
  border-left: 4px solid #2f6b4f;
  background-color: #f5f0e6;
  color: #24302b;
}

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #d8e0da;
  width: 100%;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #2f6b4f;
}

.brand-tagline {
  font-size: 13px;
  color: #66756e;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: #24302b;
  border-radius: 4px;
}

.main-nav a:hover {
  background-color: #e8f0e8;
  color: #2f6b4f;
  text-decoration: none;
}

.main-nav a.is-current {
  background-color: #e8f0e8;
  color: #2f6b4f;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid #d8e0da;
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #2f6b4f;
  border-radius: 2px;
}

.layout-shell,
.page-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left,
.layout-shell.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.site-main {
  min-width: 0;
}

.inner-main {
  min-width: 0;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar,
.page-sidebar {
  position: sticky;
  top: 24px;
}

.sidebar-inner {
  background-color: #e8f0e8;
  border-radius: 8px;
  padding: 20px;
}

.sidebar-title,
.sidebar-label {
  font-size: 14px;
  font-weight: 700;
  color: #2f6b4f;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  margin-bottom: 2px;
}

.sidebar-nav a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: #24302b;
  border-radius: 4px;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  background-color: #ffffff;
  color: #2f6b4f;
  text-decoration: none;
  border-left-color: #2f6b4f;
}

.sidebar-nav a.is-active {
  background-color: #ffffff;
  color: #2f6b4f;
  border-left-color: #2f6b4f;
  font-weight: 600;
}

.sidebar-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #c8d4cc;
  font-size: 14px;
  color: #66756e;
}

.sidebar-note p {
  margin-bottom: 8px;
}

.sidebar-note a {
  font-weight: 600;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-size: 14px;
  color: #66756e;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: #2f6b4f;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #a0aca5;
}

.breadcrumb-current {
  color: #66756e;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: #24302b;
  line-height: 1.3;
  margin: 0;
}

.page-title-block {
  margin-bottom: 28px;
}

.page-title-block p,
.page-heading p,
.page-intro,
.heading-intro,
.page-lead {
  font-size: 16px;
  color: #66756e;
  max-width: 720px;
}

/* ============================================================
   HERO SECTION (HOME)
   ============================================================ */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
  padding: 32px 0;
}

.hero-content h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 18px;
  color: #66756e;
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: #2f6b4f;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1f4f38;
  color: #ffffff;
}

.btn-secondary {
  background-color: #f5f0e6;
  color: #2f6b4f;
  border: 1px solid #c8b89a;
}

.btn-secondary:hover {
  background-color: #e8e0d0;
  color: #1f4f38;
}

.hero-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 8px;
}

.section-heading p {
  color: #66756e;
  max-width: 720px;
  margin-bottom: 0;
}

/* ============================================================
   SERVICE OVERVIEW CARDS (HOME)
   ============================================================ */
.service-overview {
  margin-bottom: 48px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  background-color: #f5f0e6;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e0d0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(36, 48, 43, 0.08);
  transform: translateY(-2px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: #66756e;
  flex-grow: 1;
  margin-bottom: 12px;
}

.service-card a {
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   SCENARIO SECTION (HOME)
   ============================================================ */
.scenario-section {
  margin-bottom: 48px;
}

.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scenario-item {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: center;
  background-color: #e8f0e8;
  border-radius: 8px;
  padding: 20px 24px;
}

.scenario-problem h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.scenario-problem p {
  margin: 0;
  font-size: 14px;
  color: #66756e;
}

.scenario-action p {
  margin: 0;
  font-size: 15px;
  color: #24302b;
}

.scenario-link a {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

/* ============================================================
   PROCESS SUMMARY (HOME)
   ============================================================ */
.process-summary {
  margin-bottom: 48px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.process-step {
  background-color: #ffffff;
  border: 1px solid #d8e0da;
  border-radius: 8px;
  padding: 20px;
  position: relative;
}

.process-step .step-number {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background-color: #c47b4a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
}

.process-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
  color: #66756e;
  margin-bottom: 0;
}

.link-more {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
}

/* ============================================================
   FAQ ENTRY (HOME)
   ============================================================ */
.faq-entry {
  margin-bottom: 48px;
}

.faq-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.faq-card {
  background-color: #ffffff;
  border: 1px solid #d8e0da;
  border-radius: 8px;
  padding: 20px;
}

.faq-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.faq-card p {
  font-size: 14px;
  color: #66756e;
  margin-bottom: 12px;
}

.faq-card a {
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   BOUNDARY SECTION
   ============================================================ */
.boundary-section {
  margin-bottom: 48px;
  background-color: #f5f0e6;
  border-radius: 8px;
  padding: 32px;
}

.boundary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
}

.boundary-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #c47b4a;
  font-weight: 700;
}

/* ============================================================
   RELATED LINKS
   ============================================================ */
.related-links {
  border-top: 1px solid #d8e0da;
  padding-top: 20px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: #66756e;
}

.related-links-item {
  font-size: 14px;
  padding: 6px 14px;
  background-color: #e8f0e8;
  border-radius: 4px;
  color: #2f6b4f;
}

.related-links-item:hover {
  background-color: #d8e0da;
  text-decoration: none;
}

/* ============================================================
   CONTENT SECTIONS (INNER PAGES)
   ============================================================ */
.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  margin-bottom: 12px;
}

.content-section > p {
  color: #66756e;
  max-width: 720px;
}

.section-desc {
  color: #66756e;
  max-width: 720px;
}

/* ============================================================
   HEADING FIGURE
   ============================================================ */
.heading-figure,
.page-hero-figure,
.page-hero-image,
.page-hero,
.page-lead-image {
  margin: 20px 0 32px;
}

.heading-figure img,
.page-hero-figure img,
.page-hero-image img,
.page-hero img,
.page-lead-image img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
}

/* ============================================================
   DEFINITION GRID (ABOUT)
   ============================================================ */
.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.definition-card {
  background-color: #e8f0e8;
  border-radius: 8px;
  padding: 24px;
}

.definition-card h3 {
  margin-bottom: 8px;
}

.definition-card p {
  margin: 0;
  font-size: 15px;
  color: #66756e;
}

/* ============================================================
   WORK MODE LIST (ABOUT)
   ============================================================ */
.work-mode-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work-mode-item {
  background-color: #f5f0e6;
  border-radius: 8px;
  padding: 20px 24px;
}

.work-mode-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.work-mode-item p {
  margin: 0;
  font-size: 15px;
  color: #66756e;
}

/* ============================================================
   NEXT STEP & ENTRY LINKS (ABOUT)
   ============================================================ */
.next-step {
  background-color: #e8f0e8;
  border-radius: 8px;
  padding: 32px;
}

.next-step h2 {
  margin-bottom: 8px;
}

.entry-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.entry-link {
  display: inline-block;
  padding: 10px 24px;
  background-color: #2f6b4f;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
}

.entry-link:hover {
  background-color: #1f4f38;
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   SERVICE MATRIX TABLE (SERVICES)
   ============================================================ */
.service-intro-media {
  margin-bottom: 32px;
}

.intro-figure {
  margin: 0;
}

.intro-figure img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.intro-figure figcaption {
  font-size: 14px;
  color: #66756e;
  margin-top: 8px;
  text-align: center;
}

.service-matrix-section {
  margin-bottom: 48px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid #d8e0da;
  border-radius: 8px;
}

.service-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}

.service-matrix-table thead th {
  background-color: #2f6b4f;
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.service-matrix-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #d8e0da;
  vertical-align: top;
}

.service-matrix-table tbody tr:nth-child(even) {
  background-color: #f5f0e6;
}

.service-matrix-table tbody tr:hover {
  background-color: #e8f0e8;
}

.service-matrix-table th.sortable {
  cursor: pointer;
}

.service-matrix-table th.sortable::after {
  content: "↕";
  margin-left: 6px;
  font-size: 13px;
  opacity: 0.7;
}

.service-matrix-table th.sorted-asc::after {
  content: "↑";
}

.service-matrix-table th.sorted-desc::after {
  content: "↓";
}

/* ============================================================
   SERVICE DETAIL CARDS (SERVICES)
   ============================================================ */
.service-detail-section {
  margin-bottom: 48px;
}

.service-detail-section .service-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  background-color: #ffffff;
  border: 1px solid #d8e0da;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease;
}

.service-detail-section .service-card:hover {
  box-shadow: 0 4px 16px rgba(36, 48, 43, 0.08);
}

.service-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.service-card-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.service-goal {
  font-weight: 600;
  color: #2f6b4f;
  margin-bottom: 8px;
}

.service-card-body p {
  font-size: 15px;
  color: #66756e;
}

.service-work-list {
  margin: 12px 0;
  padding-left: 20px;
}

.service-work-list li {
  font-size: 15px;
  margin-bottom: 4px;
}

.service-deliverable {
  font-size: 15px;
  background-color: #e8f0e8;
  padding: 10px 14px;
  border-radius: 6px;
  display: inline-block;
}

.service-card-body a {
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
}

/* ============================================================
   SERVICE BOUNDARY (SERVICES)
   ============================================================ */
.service-boundary-section {
  margin-bottom: 48px;
}

/* ============================================================
   RELATED NAV GRID (SERVICES)
   ============================================================ */
.related-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-nav-card {
  display: block;
  background-color: #e8f0e8;
  border-radius: 8px;
  padding: 24px;
  transition: background-color 0.2s ease;
}

.related-nav-card:hover {
  background-color: #d8e0da;
  text-decoration: none;
}

.related-nav-card-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #2f6b4f;
  margin-bottom: 6px;
}

.related-nav-card-desc {
  display: block;
  font-size: 14px;
  color: #66756e;
}

/* ============================================================
   PROCESS STEPS GRID (PROCESS)
   ============================================================ */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background-color: #f5f0e6;
  border-radius: 8px;
  padding: 20px;
  border-top: 4px solid #c47b4a;
}

.step-card .step-number {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #c47b4a;
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: #66756e;
  margin-bottom: 8px;
}

.step-output {
  font-size: 13px;
  color: #2f6b4f;
  font-weight: 600;
  background-color: #e8f0e8;
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-block;
}

/* ============================================================
   DUAL COLUMN TABLE (PROCESS)
   ============================================================ */
.dual-column-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8e0da;
  border-radius: 8px;
}

.dual-column-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

.dual-column-table thead th {
  background-color: #2f6b4f;
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.dual-column-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #d8e0da;
  vertical-align: top;
}

.dual-column-table tbody tr:nth-child(even) {
  background-color: #f5f0e6;
}

.dual-column-table tbody tr:hover {
  background-color: #e8f0e8;
}

/* ============================================================
   CHECK LIST (PROCESS / STANDARDS)
   ============================================================ */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background-color: #2f6b4f;
  color: #ffffff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

/* ============================================================
   MATERIALS GRID (PROCESS)
   ============================================================ */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.material-item {
  background-color: #e8f0e8;
  border-radius: 8px;
  padding: 20px;
}

.material-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.material-item p {
  font-size: 14px;
  color: #66756e;
  margin: 0;
}

/* ============================================================
   NEXT LINKS (PROCESS)
   ============================================================ */
.next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.next-link-card {
  display: block;
  background-color: #2f6b4f;
  border-radius: 8px;
  padding: 24px;
  transition: background-color 0.2s ease;
}

.next-link-card:hover {
  background-color: #1f4f38;
  text-decoration: none;
}

.next-link-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.next-link-desc {
  display: block;
  font-size: 14px;
  color: #d8e0da;
}

/* ============================================================
   STANDARD LIST (STANDARDS)
   ============================================================ */
.standard-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.standard-list li {
  background-color: #f5f0e6;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 15px;
}

.standard-list strong {
  color: #2f6b4f;
}

/* ============================================================
   LEVEL LIST (STANDARDS)
   ============================================================ */
.level-list {
  margin: 0 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.level-list li {
  font-size: 15px;
}

.level-list strong {
  color: #2f6b4f;
}

/* ============================================================
   ACCEPTANCE LIST (STANDARDS)
   ============================================================ */
.acceptance-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acceptance-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #e8f0e8;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
}

.check-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  line-height: 22px;
  text-align: center;
  background-color: #2f6b4f;
  color: #ffffff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.note-text {
  font-size: 14px;
  color: #66756e;
  margin-top: 16px;
}

/* ============================================================
   RELATED CARDS (STANDARDS)
   ============================================================ */
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-card {
  display: block;
  background-color: #f5f0e6;
  border-radius: 8px;
  padding: 24px;
  transition: background-color 0.2s ease;
}

.related-card:hover {
  background-color: #e8e0d0;
  text-decoration: none;
}

.related-card-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #2f6b4f;
  margin-bottom: 6px;
}

.related-card-desc {
  display: block;
  font-size: 14px;
  color: #66756e;
}

/* ============================================================
   FAQ SECTIONS (FAQ)
   ============================================================ */
.faq-section {
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #d8e0da;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #2f6b4f;
  font-weight: 400;
}

.faq-item[open] summary {
  background-color: #e8f0e8;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background-color: #f5f0e6;
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 15px;
  color: #66756e;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  font-weight: 600;
}

/* ============================================================
   UNRESOLVED GUIDE (FAQ)
   ============================================================ */
.unresolved-guide {
  background-color: #f5f0e6;
  border-radius: 8px;
  padding: 32px;
  margin-top: 40px;
}

.guide-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background-color: #c47b4a;
  color: #ffffff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.guide-steps p {
  margin: 0;
  font-size: 15px;
}

/* ============================================================
   CARD GRID (FEEDBACK)
   ============================================================ */
.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  background-color: #e8f0e8;
  border-radius: 8px;
  padding: 24px;
}

.info-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #2f6b4f;
}

.info-card p {
  font-size: 15px;
  color: #66756e;
  margin-bottom: 8px;
}

.info-card p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   CHECKLIST (FEEDBACK)
   ============================================================ */
.checklist {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  font-size: 15px;
}

/* ============================================================
   STEP LIST (FEEDBACK)
   ============================================================ */
.step-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-list li {
  font-size: 15px;
}

.step-list strong {
  color: #2f6b4f;
}

/* ============================================================
   RELATED GRID (FEEDBACK)
   ============================================================ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-grid .related-card {
  background-color: #e8f0e8;
}

.related-grid .related-card:hover {
  background-color: #d8e0da;
}

.related-grid .related-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #2f6b4f;
}

.related-grid .related-card p {
  font-size: 14px;
  color: #66756e;
  margin: 0;
}

/* ============================================================
   BOUNDARY NOTE (FEEDBACK)
   ============================================================ */
.boundary-note {
  font-size: 14px;
  color: #66756e;
  background-color: #f5f0e6;
  border-radius: 8px;
  padding: 16px 20px;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
  min-height: 60vh;
}

.error-panel {
  text-align: center;
  padding: 48px 24px;
  background-color: #f5f0e6;
  border-radius: 8px;
  margin-bottom: 48px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: #c47b4a;
  margin-bottom: 8px;
  line-height: 1;
}

.error-panel h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: #66756e;
  max-width: 480px;
  margin: 0 auto 24px;
}

.error-home-link {
  display: inline-block;
  padding: 12px 28px;
  background-color: #2f6b4f;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
}

.error-home-link:hover {
  background-color: #1f4f38;
  color: #ffffff;
  text-decoration: none;
}

.error-links h2 {
  font-size: 20px;
  margin-bottom: 16px;
  text-align: center;
}

.error-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.error-links a {
  display: block;
  padding: 10px 24px;
  background-color: #e8f0e8;
  border-radius: 6px;
  font-weight: 600;
}

.error-links a:hover {
  background-color: #d8e0da;
  text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: #24302b;
  color: #d8e0da;
  margin-top: 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  color: #a0aca5;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid #3a4a42;
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #a0aca5;
  margin: 0;
  max-width: 1280px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  .service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-inner {
    padding: 0 16px;
    min-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #d8e0da;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 8px 16px;
    gap: 2px;
  }

  .site-nav a {
    padding: 12px 16px;
    font-size: 16px;
  }

  .layout-shell,
  .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px 48px;
  }

  .sidebar-left .page-layout,
  .page-layout.sidebar-left,
  .layout-shell.sidebar-left {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .page-sidebar {
    position: static;
    order: 2;
  }

  .sidebar-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .sidebar-nav li {
    margin-bottom: 0;
  }

  .sidebar-nav a {
    padding: 8px 12px;
    font-size: 14px;
    border-left: none;
    border-bottom: 2px solid transparent;
    background-color: #ffffff;
    border-radius: 4px;
  }

  .sidebar-nav a:hover {
    border-left: none;
    border-bottom-color: #2f6b4f;
  }

  .sidebar-nav a.is-active {
    border-left: none;
    border-bottom-color: #2f6b4f;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-figure img {
    aspect-ratio: 16 / 9;
  }

  .scenario-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .definition-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-section .service-card {
    grid-template-columns: 1fr;
  }

  .service-card-media img {
    max-height: 220px;
  }

  .next-links {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 40px 16px 24px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .page-title {
    font-size: 28px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .faq-cards {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps-grid {
    grid-template-columns: 1fr;
  }

  .materials-grid {
    grid-template-columns: 1fr;
  }

  .related-nav-grid {
    grid-template-columns: 1fr;
  }

  .related-cards {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.three-col {
    grid-template-columns: 1fr;
  }

  .boundary-section {
    padding: 24px;
  }

  .next-step {
    padding: 24px;
  }

  .unresolved-guide {
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

  .entry-links {
    flex-direction: column;
    align-items: stretch;
  }

  .entry-link {
    text-align: center;
  }

  .related-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-links ul {
    flex-direction: column;
    align-items: stretch;
  }

  .error-links a {
    text-align: center;
  }
}
