/* =====================================================================
   Matalog site v3 — アプリ全体像（伝える・出会う・受ける・活かす）の追加スタイル
   （style.css → site-v2.css の後に読み込む。既存定義は上書きしない方針）
   ===================================================================== */

/* ---------- ナビ（7項目）: 中間幅で詰める ---------- */
@media (min-width: 921px) and (max-width: 1180px) {
  .site-nav { gap: 14px; font-size: 0.84rem; }
}

/* ---------- 全体像 ---------- */
.overview-section { background: var(--paper); }
.app-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.stage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px 22px;
  box-shadow: 0 14px 36px rgba(43, 20, 34, 0.06);
}
/* 段階をつなぐ矢印（横並び時のみ） */
.stage-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
}
.stage-step {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}
.stage-card h3 {
  margin: 0 0 16px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--wine-deep);
}
.stage-verb {
  display: block;
  margin-bottom: 4px;
  font-family: "Noto Serif JP", serif;
  font-size: 1.55rem;
  color: var(--wine);
  letter-spacing: 0.06em;
}
.stage-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  flex: 1;
}
.stage-card li {
  position: relative;
  padding-left: 16px;
  color: #4c4244;
  font-size: 0.88rem;
  line-height: 1.6;
}
.stage-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wine-soft);
}
.stage-who {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.user-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.user-strip a {
  display: block;
  padding: 20px 22px;
  background: var(--white);
  transition: background 0.2s ease;
}
.user-strip a:hover { background: #fffaf2; }
.user-strip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--wine-deep);
  font-size: 0.98rem;
}
.user-strip strong::after { content: " →"; color: var(--gold); }
.user-strip span { color: var(--muted); font-size: 0.86rem; line-height: 1.7; }

/* ---------- 役割別入口（3枚） ---------- */
.path-cards.three { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path-cards.three .path-card h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

/* ---------- カタログモック: 表示切替タブ ---------- */
.mm-tabs {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 6px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(75, 35, 56, 0.07);
}
.mm-tabs span {
  padding: 3px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}
.mm-tabs span.on { background: var(--white); color: var(--wine-deep); box-shadow: 0 1px 3px rgba(43, 20, 34, 0.12); }

/* ---------- 試飲会 6カード ---------- */
.tasting-grid { margin-top: 56px; }
.tasting-grid article { min-height: 0; }

/* ---------- 飲食店・来場者 ---------- */
.guest-block { background: linear-gradient(160deg, #f6eee6 0%, #fbf7ef 100%); }
.guest-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
  padding: 0;
  list-style: none;
}
.guest-steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px 24px;
}
.guest-step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
}
.guest-steps h3 { margin: 0 0 10px; font-size: 1.08rem; }
.guest-steps p { margin: 0; color: #4c4244; font-size: 0.92rem; }
.guest-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

/* ---------- はじめ方（4ステップ） ---------- */
.how-grid.four { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.how-grid.four article { padding: 26px 24px; }
.how-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- FAQ グループ見出し ---------- */
.faq-group {
  margin: 48px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--wine-deep);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}
.faq-group + .faq-list { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .app-map { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stage-card:nth-child(2)::after { display: none; }
  .guest-steps { grid-template-columns: repeat(2, 1fr); }
  .how-grid.four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .path-cards.three { grid-template-columns: 1fr; }
  .user-strip { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .app-map { grid-template-columns: 1fr; gap: 26px; margin-top: 44px; }
  /* 縦積み時は下向き矢印 */
  .stage-card:not(:last-child)::after,
  .stage-card:nth-child(2)::after {
    display: grid;
    content: "↓";
    top: auto;
    bottom: -20px;
    right: 50%;
    transform: translateX(50%);
  }
  .overview-section .center h2 br,
  .guest-block .center h2 br { display: none; }
  .guest-steps { grid-template-columns: 1fr; margin-top: 44px; }
  .how-grid.four { grid-template-columns: 1fr; }
}
