/* ご利用ガイド — ハコフィットブランド */
.guide-page {
  /* style.css 準拠（html 62.5% → 1.6rem = 16px） */
  --guide-accent: #ff570d;
  --guide-accent-dark: #e04d0b;
  --guide-accent-soft: #fff3ed;
  --guide-text: #1a1b1f;
  --guide-muted: #5c5c5c;
  --guide-bg: #f4f5f7;
  --guide-card: #fff;
  --guide-border: #e4e6ea;
  --guide-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --guide-shadow-hover: 0 12px 32px rgba(255, 87, 13, 0.12);
  --guide-radius: 14px;
  --guide-radius-lg: 20px;
  /* 他ページと同じ rem スケール */
  --guide-fs-xs: 1.4rem;   /* 14px — ラベル・補足 */
  --guide-fs-sm: 1.4rem;   /* 14px */
  --guide-fs-base: 1.6rem; /* 16px — 本文（body と同じ） */
  --guide-fs-md: 2rem;     /* 20px — .c-heading--sm */
  --guide-fs-lg: 1.8rem;   /* 18px — リード文 */
  --guide-fs-xl: 2.4rem;   /* 24px — .mid_title */
  --guide-fs-h1: 2.4rem;   /* 24px — ページ見出し */
  --guide-fs-h2: 2.8rem;   /* 28px — .c-heading */
  --guide-fs-h3: 2rem;     /* 20px — 小見出し */
  color: var(--guide-text);
  font-size: inherit;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

/* ヘッダーナビ — 現在ページのハイライト */
.guide-page .site-nav .nav-link[href="guide.html"] {
  color: var(--guide-accent) !important;
  font-weight: 700;
  background: var(--guide-accent-soft);
}

/* ===== Masthead ===== */
.guide-masthead {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.guide-masthead__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.guide-masthead__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.guide-masthead__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.72) 0%,
    rgba(26, 26, 26, 0.55) 50%,
    rgba(255, 87, 13, 0.35) 100%
  );
  z-index: 1;
}

.guide-masthead__inner {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem 3.5rem;
  max-width: 720px;
}

.guide-masthead__eyebrow {
  font-family: "Montserrat", sans-serif;
  font-size: var(--guide-fs-xs);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}

.guide-masthead h1 {
  font-size: var(--guide-fs-h1);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.guide-masthead__lead {
  font-size: var(--guide-fs-base);
  line-height: 28px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

/* ===== Intro ===== */
.guide-intro {
  background: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--guide-border);
}

.guide-intro__inner {
  max-width: 640px;
  margin: 0 auto;
}

.guide-intro__text {
  font-size: var(--guide-fs-lg);
  font-weight: 600;
  line-height: 28px;
  margin-bottom: 0.75rem;
}

.guide-intro__sub {
  color: var(--guide-muted);
  font-size: var(--guide-fs-base);
  margin: 0;
}

.guide-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.guide-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  background: var(--guide-accent-soft);
  color: var(--guide-accent);
  font-size: var(--guide-fs-sm);
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(255, 87, 13, 0.15);
}

/* ===== Layout bands ===== */
.guide-band {
  width: 100%;
}

.guide-band--alt {
  background: var(--guide-bg);
}

.guide-section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.guide-section__head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.guide-section__eyebrow {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: var(--guide-fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--guide-accent);
  margin-bottom: 0.5rem;
}

.guide-section__title {
  font-size: var(--guide-fs-h2);
  font-weight: 700;
  margin: 0;
  position: relative;
  display: inline-block;
}

.guide-section__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--guide-accent);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.guide-section__desc {
  text-align: center;
  margin: -1.5rem auto 2.5rem;
  max-width: 560px;
  color: var(--guide-muted);
  font-size: var(--guide-fs-base);
}

/* ===== Features ===== */
.guide-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.guide-feature {
  background: var(--guide-card);
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.guide-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--guide-accent), #ff8a4d);
}

.guide-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--guide-shadow-hover);
}

.guide-feature__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--guide-accent-soft);
  border-radius: 50%;
  color: var(--guide-accent);
}

.guide-feature__icon svg {
  width: 28px;
  height: 28px;
}

.guide-feature__label {
  font-size: var(--guide-fs-sm);
  font-weight: 700;
  color: var(--guide-accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.guide-feature__title {
  font-size: var(--guide-fs-md);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.guide-feature__text {
  font-size: var(--guide-fs-base);
  color: var(--guide-muted);
  margin: 0;
  line-height: 28px;
}

/* ===== More cards ===== */
.guide-more {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.guide-more__card {
  background: var(--guide-card);
  border-radius: var(--guide-radius);
  padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--guide-border);
  box-shadow: var(--guide-shadow);
  transition: box-shadow 0.25s ease;
}

.guide-more__card:hover {
  box-shadow: var(--guide-shadow-hover);
}

.guide-more__card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--guide-accent-soft);
  color: var(--guide-accent);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.guide-more__card-icon svg {
  width: 22px;
  height: 22px;
}

.guide-more__card h3 {
  font-size: var(--guide-fs-md);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.guide-more__card p {
  font-size: var(--guide-fs-base);
  color: var(--guide-muted);
  margin: 0;
  line-height: 28px;
}

/* ===== Steps ===== */
.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.guide-steps-block {
  background: var(--guide-card);
  border-radius: var(--guide-radius-lg);
  padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--guide-border);
  box-shadow: var(--guide-shadow);
}

.guide-steps-block__heading {
  font-size: var(--guide-fs-md);
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding: 0.65rem 1rem;
  background: var(--guide-accent-soft);
  color: var(--guide-accent);
  border-radius: 8px;
  border-left: 4px solid var(--guide-accent);
}

.guide-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.guide-step-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0;
  padding-bottom: 1.5rem;
  position: relative;
}

.guide-step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--guide-accent) 0%, var(--guide-border) 100%);
  opacity: 0.5;
}

.guide-step-list li:last-child {
  padding-bottom: 0;
}

.guide-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--guide-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--guide-fs-base);
  box-shadow: 0 4px 12px rgba(255, 87, 13, 0.35);
  position: relative;
  z-index: 1;
}

.guide-step-text {
  font-size: var(--guide-fs-base);
  padding-top: 0.4rem;
  line-height: 28px;
}

.guide-step-text a {
  color: var(--guide-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-step-text a:hover {
  color: var(--guide-accent-dark);
}

.guide-steps-note {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0;
  padding: 1rem 1.25rem;
  background: var(--guide-accent-soft);
  border-radius: 10px;
  color: var(--guide-muted);
  font-size: var(--guide-fs-base);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.guide-steps-note a {
  color: var(--guide-accent);
  font-weight: 600;
}

/* ===== Know section ===== */
.guide-know {
  background: var(--guide-card);
  border-radius: var(--guide-radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--guide-border);
  box-shadow: var(--guide-shadow);
}

.guide-know__lead {
  text-align: center;
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--guide-border);
}

.guide-know__lead h2 {
  font-size: var(--guide-fs-h3);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.guide-know__lead p {
  color: var(--guide-muted);
  font-size: var(--guide-fs-base);
  max-width: 640px;
  margin: 0 auto;
  line-height: 28px;
}

.guide-know-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.guide-know-item {
  padding: 1.35rem 1.5rem;
  background: var(--guide-bg);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.guide-know-item:hover {
  background: #fff;
  border-color: var(--guide-border);
}

.guide-know-item h3 {
  font-size: var(--guide-fs-md);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--guide-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-know-item h3::before {
  content: "Q";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--guide-accent);
  color: #fff;
  font-size: var(--guide-fs-xs);
  font-weight: 700;
  border-radius: 6px;
}

.guide-know-item p {
  font-size: var(--guide-fs-base);
  color: var(--guide-muted);
  margin: 0;
  line-height: 28px;
  padding-left: 2rem;
}

.guide-know-item a {
  color: var(--guide-accent);
  font-weight: 600;
}

/* ===== CTA ===== */
.guide-cta {
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #ff570d 0%, #ff7a3d 50%, #ff570d 100%);
  color: #fff;
}

.guide-cta > p {
  font-size: var(--guide-fs-lg);
  margin: 0;
  opacity: 0.95;
}

.guide-cta > p a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.guide-btn {
  display: inline-block;
  padding: 0.9rem 1.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--guide-fs-base);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.guide-btn:hover {
  transform: translateY(-2px);
}

.guide-btn--primary {
  background: #fff;
  color: var(--guide-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.guide-btn--primary:hover {
  background: #fff;
  color: var(--guide-accent-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.guide-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.guide-btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .guide-masthead {
    min-height: 260px;
  }

  .guide-masthead__inner {
    padding: 3rem 1.25rem 2.5rem;
  }

  .guide-section__title,
  .guide-know__lead h2 {
    font-size: 2rem;
  }

  .guide-section {
    padding: 3rem 1.25rem;
  }

  .guide-features,
  .guide-more,
  .guide-steps-grid,
  .guide-know-grid {
    grid-template-columns: 1fr;
  }

  .guide-know {
    padding: 1.75rem 1.25rem;
  }

  .guide-know-item p {
    padding-left: 0;
  }

  .guide-cta__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-feature,
  .guide-btn,
  .guide-more__card {
    transition: none;
  }

  .guide-feature:hover,
  .guide-btn:hover {
    transform: none;
  }
}
