/* =========================================================
   hp.css — ホームページ制作 詳細ページ専用スタイル
   ========================================================= */

/* ---------- ページヒーロー タグ ---------- */
.page-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.page-hero__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border: 1px solid var(--line-2, rgba(31, 108, 255, 0.25));
  border-radius: 40px;
  color: var(--brand-1);
  background: rgba(31, 108, 255, 0.05);
}

/* ---------- 概要セクション ---------- */
.hp-overview__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hp-overview__media {
  position: relative;
}
.hp-overview__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}
.hp-overview__stat-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  gap: 28px;
  border: 1px solid var(--line);
}
.hp-overview__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hp-overview__stat-num {
  font-family: var(--display, "Space Grotesk", sans-serif);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hp-overview__stat-num small {
  font-size: 16px;
}
.hp-overview__stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.hp-check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.hp-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}
.hp-check-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* ---------- こんな方におすすめ ---------- */
.hp-worries {
  background: var(--bg-2);
}
.hp-worries__head {
  text-align: center;
  margin-bottom: 56px;
}
.hp-worries__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hp-worry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.hp-worry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(31, 108, 255, 0.1);
}
.hp-worry-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  color: var(--brand-1);
}
.hp-worry-card__icon svg {
  width: 100%;
  height: 100%;
}
.hp-worry-card p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

/* ---------- サイトの種類 ---------- */
.hp-types__head {
  text-align: center;
  margin-bottom: 20px;
}
.hp-types__lead {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 48px;
}
.hp-types__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hp-type-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 24px;
  background: #fff;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hp-type-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-1);
  box-shadow: 0 12px 40px rgba(31, 108, 255, 0.1);
}
.hp-type-card__icon {
  width: 44px;
  height: 44px;
  margin: auto;
}
.hp-type-card__title {
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  margin: 0;
  color: var(--ink);
}
.hp-type-card__desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0;
  flex: 1;
}
.hp-type-card__price {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  background: var(--grad-soft);
  color: var(--brand-1);
  padding: 4px 12px;
  border-radius: 40px;
  font-weight: 700;
  align-self: flex-start;
}

/* ---------- 料金プラン ---------- */
.hp-pricing {
  background: var(--deep);
}
.hp-pricing__head {
  text-align: center;
  margin-bottom: 16px;
}
.hp-pricing__head .section-eyebrow {
  color: var(--brand-2);
}
.hp-pricing__head .section-eyebrow::before {
  background: var(--brand-2);
}
.hp-pricing__head .section-title {
  color: #fff;
}
.hp-pricing__note {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 8px 0 48px;
}
.hp-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.hp-plan {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.hp-plan:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}
.hp-plan--popular {
  background: rgba(31, 108, 255, 0.15);
  border-color: var(--brand-1);
  transform: scale(1.02);
}
.hp-plan--popular:hover {
  transform: scale(1.02) translateY(-4px);
}
.hp-plan__popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 5px 16px;
  border-radius: 40px;
  white-space: nowrap;
}
.hp-plan__head {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hp-plan__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.hp-plan__name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
}
.hp-plan__price {
  font-family: var(--display, "Space Grotesk", sans-serif);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hp-plan__price span {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.6);
}
.hp-plan__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
}
.hp-plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}
.hp-plan__list li::before {
  content: "✓";
  color: var(--brand-2);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.hp-plan__btn {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.hp-plan__btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}
.hp-plan--popular .hp-plan__btn {
  background: var(--grad);
  border-color: transparent;
}
.hp-plan--popular .hp-plan__btn:hover {
  opacity: 0.9;
}

/* ---------- 制作の流れ ---------- */
.hp-flow__head {
  text-align: center;
  margin-bottom: 60px;
}
.hp-flow__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}
.hp-flow__step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 48px;
  position: relative;
}
.hp-flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-1), rgba(31, 108, 255, 0.1));
}
.hp-flow__step-num {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(31, 108, 255, 0.35);
  position: relative;
  z-index: 1;
}
.hp-flow__step-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 10px 0 10px;
  color: var(--ink);
}
.hp-flow__step-body p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin: 0;
}

/* ---------- FAQ ---------- */
.hp-faq {
  background: var(--bg-2);
}
.hp-faq__head {
  text-align: center;
  margin-bottom: 56px;
}
.hp-faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.hp-faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.hp-faq__item.is-open {
  border-color: var(--brand-1);
}
.hp-faq__q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.hp-faq__q:hover {
  opacity: 0.8;
}
.hp-faq__q span:nth-child(2) {
  flex: 1;
}
.hp-faq__q-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-1);
  color: var(--brand-1);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hp-faq__chevron {
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.35s ease;
  display: inline-block;
  flex-shrink: 0;
}
.hp-faq__item.is-open .hp-faq__chevron {
  transform: rotate(180deg);
}
.hp-faq__a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    transform 0.3s ease,
    padding 0.35s ease;
  padding: 0 24px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.85;
  border-top: 1px solid transparent;
  margin: 0;
}
.hp-faq__item.is-open .hp-faq__a {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
  padding: 18px 24px 24px;
  border-top-color: var(--line);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .hp-overview__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hp-overview__stat-box {
    right: 0;
  }
  .hp-worries__grid,
  .hp-types__grid,
  .hp-pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-plan--popular {
    transform: none;
  }
  .hp-plan--popular:hover {
    transform: translateY(-4px);
  }
}
@media (max-width: 640px) {
  .hp-worries__grid,
  .hp-types__grid,
  .hp-pricing__grid {
    grid-template-columns: 1fr;
  }
  .hp-overview__stat-box {
    position: static;
    margin-top: 16px;
    justify-content: center;
    right: auto;
    bottom: auto;
  }
  .hp-flow__step {
    gap: 20px;
  }
  .hp-flow__step-num {
    width: 44px;
    height: 44px;
    font-size: 12px;
  }
  .hp-flow__step:not(:last-child)::after {
    left: 21px;
    top: 44px;
  }
}
