/* ==================================
   Hair2Go Support Pages CSS
   guide.htm / faq.htm などで共通利用
   前提: top-page.css を先に読み込む
   ================================== */

/* --------------------
   Search Card
-------------------- */
.search-wrap {
  padding: 10px 0 6px;
  background: transparent;
  border-bottom: 0;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbf8 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.search-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(31, 122, 89, 0.12);
}

.search-btn {
  min-width: 160px;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(242, 106, 33, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(242, 106, 33, 0.28);
}

.search-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(242, 106, 33, 0.2);
}

.search-btn:focus-visible {
  outline: 3px solid rgba(242, 106, 33, 0.22);
  outline-offset: 2px;
}

/* --------------------
   Shared Page Hero
-------------------- */
.guide-hero,
.support-hero {
  padding: 12px 0 8px;
}

.guide-hero-card,
.support-hero-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.guide-hero-copy p,
.support-hero-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1rem;
}

.guide-hero-visual,
.support-hero-visual {
  min-height: 240px;
  border-radius: 20px;
  overflow: hidden;
  background: #eef6f2;
}

.guide-photo,
.support-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------
   Shared Card Blocks
-------------------- */
.guide-grid,
.support-grid {
  display: grid;
  gap: 8px;
  padding: 8px 0;
}

.guide-nav-card,
.guide-section,
.guide-note-box,
.support-nav-card,
.support-section,
.support-note-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.guide-nav-grid,
.support-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-nav-link,
.support-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--green-050);
  color: var(--green-900);
  font-weight: 800;
  font-size: 0.92rem;
}

.guide-nav-link::after,
.support-nav-link::after {
  content: "›";
  font-size: 1.2rem;
}

.guide-section h2,
.support-section h2 {
  margin-bottom: 8px;
}

.guide-section p,
.guide-section li,
.support-section p,
.support-section li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.guide-section p,
.support-section p {
  margin: 0 0 10px;
}

.guide-section ul,
.guide-section ol,
.support-section ul,
.support-section ol {
  margin: 0;
  padding-left: 1.2rem;
}

.guide-section li + li,
.support-section li + li {
  margin-top: 6px;
}

.guide-section-grid,
.support-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guide-subcard,
.support-subcard {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
}

.guide-subcard h3,
.support-subcard h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.guide-alert,
.support-alert {
  padding: 12px 14px;
  border: 1px solid #f3c3b6;
  border-radius: 16px;
  background: #fff7f3;
}

.guide-alert strong,
.support-alert strong {
  display: block;
  margin-bottom: 4px;
  color: var(--danger-text);
}

.guide-note-box,
.support-note-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbf8 100%);
}

.guide-note-box p,
.support-note-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* --------------------
   Optional FAQ helpers
-------------------- */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
}

.faq-question {
  margin: 0 0 8px;
  color: var(--green-900);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.faq-answer {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* --------------------
   Responsive
-------------------- */
@media (max-width: 900px) {
  .guide-hero-card,
  .support-hero-card,
  .guide-section-grid,
  .support-section-grid,
  .guide-nav-grid,
  .support-nav-grid {
    grid-template-columns: 1fr;
  }

  .guide-hero-visual,
  .support-hero-visual {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .search-row,
  .news-card,
  .news-list li {
    grid-template-columns: 1fr;
  }

  .search-row {
    gap: 10px;
    padding: 10px;
  }

  .search-input,
  .search-btn {
    height: 46px;
  }

  .search-btn {
    width: 100%;
    min-width: 0;
  }

  .guide-hero-card,
  .guide-nav-card,
  .guide-section,
  .guide-note-box,
  .support-hero-card,
  .support-nav-card,
  .support-section,
  .support-note-box,
  .faq-item {
    padding: 12px;
    border-radius: 18px;
  }

  .guide-hero-visual,
  .support-hero-visual {
    min-height: 190px;
    order: -1;
  }

  .guide-note-box,
  .support-note-box {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-section p,
  .guide-section li,
  .support-section p,
  .support-section li,
  .faq-answer,
  .faq-question {
    font-size: 0.9rem;
  }
}


html {
  scroll-padding-top: 80px;
}

.faq-section {
  scroll-margin-top: 80px;
}