/* ===================================================
   guide.css - ガイドページ共通スタイル（購入の流れ・諸費用等）
   CENTURY21ココカラ
   =================================================== */

/* ===== Guide Article ===== */
.guide-article {
  padding: 60px 0 80px;
}
.page-intro + .guide-article {
  padding-top: 20px;
}
.guide-article-inner {
  max-width: 820px;
  margin: 0 auto;
}

/* ===== Guide Lead ===== */
.guide-lead {
  font-size: 16px;
  line-height: 2;
  color: var(--text-main);
  margin: 0 0 48px;
  font-weight: 500;
}

/* ===== Flow Overview (Infographic) ===== */
.flow-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 64px;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.flow-overview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  border: 1px solid #e8e6e1;
  transition: background 0.3s, border-color 0.3s;
}
.flow-overview-item:hover {
  background: #f8f6f0;
  border-color: var(--accent);
  opacity: 1;
}
.flow-overview-num {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.flow-overview-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

/* ===== Step Section ===== */
.guide-step {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid #e8e6e1;
  scroll-margin-top: 100px;
}
.guide-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Step Header */
.guide-step-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.guide-step-num {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  line-height: 1;
}
.guide-step-num-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.guide-step-num-value {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
}
.guide-step-titles {
  padding-top: 6px;
}
.guide-step-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px;
  line-height: 1.5;
}
.guide-step-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  line-height: 1.5;
}

/* Step Body */
.guide-step-body p {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.9;
  margin: 0 0 20px;
}
.guide-step-body strong {
  font-weight: 700;
}
.guide-step-body ul,
.guide-step-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.guide-step-body li {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 6px;
}
.guide-step-body a {
  color: var(--accent-cta);
  text-decoration: underline;
  font-weight: 500;
}
.guide-step-body a:hover {
  opacity: 0.8;
}

/* Step Sub-heading */
.guide-step-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 28px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}

/* ===== Check List ===== */
.guide-checklist {
  list-style: none;
  padding-left: 0;
  margin: 0 0 24px;
}
.guide-checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 8px;
}
.guide-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.guide-checklist.-no-check li::before {
  background: transparent;
  background-image: none;
  border: 1px solid var(--accent);
}

/* ===== Point Box ===== */
.guide-point {
  background: #f8f6f0;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.guide-point-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.guide-point p {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.8;
  margin: 0;
}

/* ===== Warning/Note Box ===== */
.guide-note {
  background: #fdf5ee;
  border-left: 4px solid var(--accent-cta);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.guide-note-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cta);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.guide-note p {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.8;
  margin: 0;
}

/* ===== Document List ===== */
.guide-doc-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 24px;
}
.guide-doc-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 6px;
}
.guide-doc-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== Period Table ===== */
.guide-period-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 40px;
  font-size: 14px;
}
.guide-period-table thead th {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 14px 20px;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.guide-period-table thead th:first-child {
  border-radius: 6px 0 0 0;
}
.guide-period-table thead th:last-child {
  border-radius: 0 6px 0 0;
}
.guide-period-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid #e8e6e1;
  color: var(--text-main);
  line-height: 1.6;
}
.guide-period-table tbody tr:last-child td {
  background: #f8f6f0;
}
.guide-period-table.-lastBold tbody tr:last-child td {
  font-weight: 700;
}
.guide-period-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 6px;
}
.guide-period-table tbody tr:last-child td:last-child {
  border-radius: 0 0 6px 0;
}

/* ===== Flow Day List ===== */
.guide-flow-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 24px;
  counter-reset: flow-item;
}
.guide-flow-list li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 8px;
  counter-increment: flow-item;
}
.guide-flow-list li::before {
  content: counter(flow-item);
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-main);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== Two Column Layout (Text + Image) ===== */
.guide-step-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.guide-step-image {
  position: sticky;
  top: 100px;
}
.guide-step-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* ===== Related Guide Navigation ===== */
.guide-related-nav {
  padding: 80px 0;
  background: #f5f4f0;
}
.guide-related-nav .section-head {
  margin-bottom: 40px;
}
.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.guide-related-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 8px;
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.guide-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  opacity: 1;
}
.guide-related-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f5f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.guide-related-card-body {
  flex: 1;
  min-width: 0;
}
.guide-related-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px;
  line-height: 1.4;
}
.guide-related-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ===== Merit Check Grid (2-column) ===== */
.merit-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}
.merit-check-col h4 {
  margin-top: 0;
}
.merit-check-col h4 a {
  color: var(--accent-cta);
  text-decoration: none;
  transition: opacity 0.3s;
}
.merit-check-col h4 a::after {
  content: " ↓";
  font-size: 14px;
}
.merit-check-col h4 a:hover {
  opacity: 0.7;
}

/* ===== Merit / Demerit Heading ===== */
.guide-merit-heading {
  border-left: 3px solid #3b82c4 !important;
  color: #3b82c4;
}
.guide-merit-heading::before {
  content: "○ ";
  font-weight: 700;
}
.guide-demerit-heading {
  border-left: 3px solid #c45a5a !important;
  color: #c45a5a;
}
.guide-demerit-heading::before {
  content: "× ";
  font-weight: 700;
}

/* ===== Merit / Demerit List ===== */
.guide-merit-list,
.guide-demerit-list {
  list-style: none;
  padding-left: 0;
}
.guide-merit-list li,
.guide-demerit-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.guide-merit-list li::before,
.guide-demerit-list li::before {
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.guide-merit-list li::before {
  content: "○";
  color: #3b82c4;
  background: rgba(59, 130, 196, 0.1);
}
.guide-demerit-list li::before {
  content: "×";
  color: #c45a5a;
  background: rgba(196, 90, 90, 0.1);
}

/* ===== Related Content Sections ===== */
.guide-content-section {
  padding: 80px 0;
}
.guide-content-section:nth-child(even) {
  background: #f5f4f0;
}
.guide-content-section .section-head {
  margin-bottom: 40px;
}
.guide-content-section .btn-more-wrap,
.subsidy .btn-more-wrap,
.local-info .btn-more-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ===== Responsive (Guide Pages) ===== */
@media (max-width: 1024px) {
  .flow-overview {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 24px 16px;
  }
  .flow-overview-item {
    padding: 12px 6px;
  }
  .flow-overview-label {
    font-size: 12px;
  }
  .guide-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Two Column → Stack */
  .guide-step-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .guide-step-image {
    position: static;
    order: -1;
  }

  .guide-article {
    padding: 40px 0 60px;
  }
  .guide-lead {
    font-size: 15px;
    margin-bottom: 36px;
  }

  /* Flow Overview: 2-column grid on SP */
  .flow-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 20px 12px;
  }
  .flow-overview-item {
    padding: 12px 8px;
  }
  .flow-overview-num {
    font-size: 10px;
  }
  .flow-overview-label {
    font-size: 12px;
  }

  /* Step Section */
  .guide-step {
    margin-bottom: 40px;
    padding-bottom: 40px;
  }
  .guide-step-header {
    flex-direction: column;
    gap: 12px;
  }
  .guide-step-num {
    width: 56px;
    height: 56px;
  }
  .guide-step-num-value {
    font-size: 20px;
  }
  .guide-step-titles {
    padding-top: 0;
  }
  .guide-step-title {
    font-size: 19px;
  }
  .guide-step-subtitle {
    font-size: 14px;
  }
  .guide-step-body p,
  .guide-step-body li {
    font-size: 14px;
  }
  .guide-step-body h4 {
    font-size: 15px;
  }

  /* Point / Note */
  .guide-point,
  .guide-note {
    padding: 16px 18px;
  }

  /* Merit Check Grid */
  .merit-check-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Checklist */
  .guide-checklist li {
    font-size: 14px;
  }

  /* Period Table */
  .guide-period-table {
    font-size: 13px;
  }
  .guide-period-table thead th,
  .guide-period-table tbody td {
    padding: 10px 14px;
  }

  /* Related Nav */
  .guide-related-nav {
    padding: 60px 0;
  }
  .guide-related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Related Content */
  .guide-content-section {
    padding: 60px 0;
  }
}
