/* =========================================================================
 * Product Page — Shifter 風 SaaS LP レイアウト (複数プロダクトで共有)
 *  - スコープ用 body class: .product-page
 *  - 全クラスは .ph- 接頭辞で本体テーマと衝突しないようにする
 * ========================================================================= */

.product-page {
  --ph-text:       #0f172a;
  --ph-muted:      #64748b;
  --ph-line:       #e2e8f0;
  --ph-bg-soft:    #f8fafc;
  --ph-bg-tint:    #eef2ff;
  --ph-primary:    #4f46e5;   /* indigo-600 */
  --ph-primary-d:  #4338ca;   /* indigo-700 */
  --ph-accent:     #06b6d4;   /* cyan-500 */
  --ph-success:    #10b981;
  --ph-warn:       #f59e0b;
  --ph-pad-x:      24px;
  --ph-max-w:      1200px;
  --ph-radius:     12px;
}

/* ホスト側の .container を上書きするための独自コンテナ */
.product-page .container {
  max-width: var(--ph-max-w);
  margin: 0 auto;
  padding: 0 var(--ph-pad-x);
}

/* ---------- ヘッダー ---------- */
.ph-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--ph-line);
}
.ph-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.ph-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}
.ph-logo__mark {
  color: var(--ph-primary);
  font-size: 18px;
}
.ph-logo__text { font-size: 16px; }
.ph-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.ph-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ph-text);
}
.ph-nav a:hover { color: var(--ph-primary); opacity: 1; }

.ph-header__actions { display: flex; gap: 10px; align-items: center; }
.ph-link-back {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ph-muted);
}
.ph-link-back:hover { color: var(--ph-text); opacity: 1; }
.ph-menu-toggle { display: none; font-size: 22px; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--ph-line); }

@media (max-width: 980px) {
  .ph-nav { display: none; }
  .ph-header__actions .ph-link-back,
  .ph-header__actions .ph-btn--ghost { display: none; }
  .ph-menu-toggle { display: inline-grid; place-items: center; }
}

/* ---------- ボタン ---------- */
.ph-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.ph-btn--primary {
  background: var(--ph-primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(79,70,229,.6);
}
.ph-btn--primary:hover { background: var(--ph-primary-d); transform: translateY(-1px); opacity: 1; }
.ph-btn--ghost {
  background: transparent;
  color: var(--ph-text);
  border: 1px solid var(--ph-line);
}
.ph-btn--ghost:hover { border-color: var(--ph-primary); color: var(--ph-primary); opacity: 1; }
.ph-btn--lg {
  padding: 16px 32px;
  font-size: 15px;
}

/* ---------- 共通セクション ---------- */
.ph-section { padding: 96px 0; }
.ph-section--soft  { background: var(--ph-bg-soft); }
.ph-section--tint  { background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%); }
.ph-section--dark  { background: #0f172a; color: #f1f5f9; }

.ph-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.ph-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ph-primary);
  margin-bottom: 16px;
}
.ph-h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .02em;
  margin: 0 0 16px;
}
.ph-lead {
  font-size: 16px;
  color: var(--ph-muted);
  line-height: 1.8;
  margin: 0;
}

/* ---------- ヒーロー ---------- */
.ph-hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(79,70,229,.08), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(6,182,212,.10), transparent 60%),
    #ffffff;
  overflow: hidden;
}
.ph-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 980px) {
  .ph-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 72px; }
}
.ph-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ph-bg-tint);
  border: 1px solid #c7d2fe;
  color: var(--ph-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.ph-hero__title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: .01em;
  margin: 0 0 24px;
}
.ph-hero__title strong {
  background: linear-gradient(120deg, var(--ph-primary), var(--ph-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ph-hero__sub {
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.85;
  color: var(--ph-muted);
  margin: 0 0 32px;
  max-width: 560px;
}
.ph-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ph-hero__note {
  font-size: 12px;
  color: var(--ph-muted);
  letter-spacing: .05em;
}
.ph-hero__note::before { content: "✓ "; color: var(--ph-success); font-weight: 800; }

/* ヒーロービジュアル (テック系イラスト風 — 純 CSS) */
.ph-hero__visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  background:
    linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
  box-shadow: 0 30px 60px -20px rgba(79,70,229,.4);
  overflow: hidden;
}
.ph-hero__visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.4) 0, transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.25) 0, transparent 35%);
}
.ph-hero__visual__inner {
  position: absolute; inset: 16px;
  background: rgba(255,255,255,.96);
  border-radius: 16px;
  display: grid;
  grid-template-rows: 32px 1fr;
}
.ph-mock-bar {
  display: flex; gap: 6px; align-items: center; padding: 0 16px;
  border-bottom: 1px solid var(--ph-line);
}
.ph-mock-bar span {
  width: 10px; height: 10px; border-radius: 999px; background: #e2e8f0;
}
.ph-mock-bar span:nth-child(1) { background: #ef4444; }
.ph-mock-bar span:nth-child(2) { background: #f59e0b; }
.ph-mock-bar span:nth-child(3) { background: #10b981; }
.ph-mock-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
}
.ph-mock-side {
  background: linear-gradient(180deg, var(--ph-bg-soft), #fff);
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 8px;
}
.ph-mock-side div { height: 8px; border-radius: 999px; background: var(--ph-line); }
.ph-mock-side div:nth-child(1) { background: var(--ph-primary); width: 70%; }
.ph-mock-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 32px repeat(3, 1fr);
  gap: 10px;
}
.ph-mock-main > div {
  background: var(--ph-bg-soft);
  border-radius: 6px;
}
.ph-mock-main > div:nth-child(1) {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, #4f46e5, #06b6d4);
}
.ph-mock-main > div:nth-child(2) { background: var(--ph-bg-tint); }
.ph-mock-main > div:nth-child(5) { background: #d1fae5; }
.ph-mock-main > div:nth-child(7) { background: #fef3c7; }

/* ---------- ロゴクラウド ---------- */
.ph-logo-cloud {
  padding: 56px 0;
  border-top: 1px solid var(--ph-line);
  border-bottom: 1px solid var(--ph-line);
}
.ph-logo-cloud__head {
  text-align: center;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--ph-muted);
  font-weight: 600;
  margin-bottom: 32px;
  text-transform: uppercase;
}
.ph-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 700px)  { .ph-logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .ph-logo-grid { grid-template-columns: repeat(6, 1fr); } }
.ph-logo-item {
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--ph-bg-soft);
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: .15em;
  font-weight: 700;
  color: var(--ph-muted);
  transition: color .2s ease;
}
.ph-logo-item:hover { color: var(--ph-text); }

/* ---------- Why セクション (3 つの理由) ---------- */
.ph-why-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .ph-why-grid { grid-template-columns: repeat(3, 1fr); } }

.ph-why-card {
  background: #fff;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ph-why-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(15,23,42,.12); }
.ph-why-card__num {
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--ph-primary);
  font-weight: 700;
  margin-bottom: 16px;
}
.ph-why-card__num::before {
  content: ""; display: inline-block;
  width: 24px; height: 1px; background: var(--ph-primary);
  vertical-align: middle; margin-right: 10px;
}
.ph-why-card__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
}
.ph-why-card__desc {
  font-size: 14px;
  color: var(--ph-muted);
  line-height: 1.85;
  margin-bottom: 24px;
}
.ph-why-card__ill {
  height: 120px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--from, #eef2ff), var(--to, #c7d2fe));
}
.ph-why-card[data-tone="blue"]   { --from: #eef2ff; --to: #c7d2fe; }
.ph-why-card[data-tone="cyan"]   { --from: #ecfeff; --to: #67e8f9; }
.ph-why-card[data-tone="green"]  { --from: #ecfdf5; --to: #6ee7b7; }

.ph-badge-strip {
  margin-top: 48px;
  padding: 24px;
  background: var(--ph-bg-tint);
  border: 1px solid #c7d2fe;
  border-radius: var(--ph-radius);
  text-align: center;
  font-size: 13px;
  color: var(--ph-text);
}
.ph-badge-strip strong { color: var(--ph-primary); letter-spacing: .03em; }

/* ---------- 機能セクション (Features) ---------- */
.ph-features { display: grid; gap: 96px; }
.ph-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .ph-feature { grid-template-columns: 1fr 1fr; gap: 80px; }
  .ph-feature--reverse > .ph-feature__media { order: 2; }
}
.ph-feature__num {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .35em;
  font-weight: 700;
  color: var(--ph-primary);
  margin-bottom: 16px;
}
.ph-feature__title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 16px;
}
.ph-feature__desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ph-muted);
  margin-bottom: 24px;
}
.ph-feature__list { display: grid; gap: 8px; margin-bottom: 24px; }
.ph-feature__list li {
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.ph-feature__list li::before {
  content: "✓";
  color: var(--ph-success);
  font-weight: 800;
  flex: 0 0 auto;
}
.ph-feature__cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--ph-primary);
}
.ph-feature__cta::after { content: " →"; }

.ph-feature__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--ph-radius);
  background: linear-gradient(135deg, var(--m-from, #eef2ff), var(--m-to, #c7d2fe));
  position: relative;
  overflow: hidden;
}
.ph-feature[data-tone="indigo"] { --m-from: #eef2ff; --m-to: #a5b4fc; }
.ph-feature[data-tone="cyan"]   { --m-from: #ecfeff; --m-to: #22d3ee; }
.ph-feature[data-tone="green"]  { --m-from: #ecfdf5; --m-to: #34d399; }
.ph-feature[data-tone="amber"]  { --m-from: #fef3c7; --m-to: #fbbf24; }
.ph-feature[data-tone="rose"]   { --m-from: #ffe4e6; --m-to: #fb7185; }
.ph-feature__media::after {
  content: "";
  position: absolute; inset: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 40px -16px rgba(15,23,42,.18);
  background-image:
    linear-gradient(transparent 0, transparent 28px, var(--ph-line) 28px, var(--ph-line) 29px, transparent 29px),
    linear-gradient(transparent 0, transparent 60px, var(--ph-line) 60px, var(--ph-line) 61px, transparent 61px);
}

/* ---------- How it works (3 ステップ) ---------- */
.ph-steps {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 800px) {
  .ph-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.ph-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius);
  padding: 32px 28px;
  text-align: center;
}
.ph-step__circle {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent));
  color: #fff;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 800;
  box-shadow: 0 14px 28px -10px rgba(79,70,229,.6);
}
.ph-step__title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
}
.ph-step__desc {
  font-size: 14px;
  color: var(--ph-muted);
  line-height: 1.8;
  margin: 0;
}
@media (min-width: 800px) {
  /* デスクトップで矢印接続 */
  .ph-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -22px;
    top: 32px;
    font-size: 22px;
    color: var(--ph-primary);
    font-weight: 800;
  }
}

/* ---------- 導入事例 ---------- */
.ph-cases {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px)  { .ph-cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ph-cases { grid-template-columns: repeat(4, 1fr); } }

.ph-case {
  background: #fff;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ph-case:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(15,23,42,.12);
  opacity: 1;
}
.ph-case__logo {
  height: 96px;
  display: grid; place-items: center;
  background: var(--ph-bg-soft);
  font-size: 13px; letter-spacing: .2em; font-weight: 800;
  color: var(--ph-muted);
}
.ph-case__body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.ph-case__cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .15em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ph-bg-tint);
  color: var(--ph-primary);
  align-self: flex-start;
  margin-bottom: 12px;
}
.ph-case__title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 8px;
}
.ph-case__excerpt {
  font-size: 13px;
  color: var(--ph-muted);
  line-height: 1.7;
  margin: 0 0 16px;
}
.ph-case__link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--ph-primary);
}
.ph-case__link::after { content: " →"; }

.ph-cases-foot {
  text-align: center;
  margin-top: 40px;
}

/* ---------- 料金プラン ---------- */
.ph-pricing {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .ph-pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }

.ph-plan {
  background: #fff;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ph-plan--featured {
  border-color: var(--ph-primary);
  box-shadow: 0 30px 60px -24px rgba(79,70,229,.3);
  transform: translateY(-8px);
  position: relative;
}
.ph-plan--featured::before {
  content: "おすすめ";
  position: absolute;
  top: -14px; left: 28px;
  background: var(--ph-primary); color: #fff;
  padding: 4px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em;
  border-radius: 999px;
}
.ph-plan__name {
  font-size: 16px;
  letter-spacing: .15em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.ph-plan__sub {
  font-size: 13px;
  color: var(--ph-muted);
  margin: 0 0 24px;
}
.ph-plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}
.ph-plan__price strong {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.ph-plan__price span { font-size: 13px; color: var(--ph-muted); }
.ph-plan__feats { margin: 0 0 24px; display: grid; gap: 8px; }
.ph-plan__feats li {
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.6;
}
.ph-plan__feats li::before {
  content: "✓"; color: var(--ph-success); font-weight: 800;
}
.ph-plan__feats li.is-disabled { color: var(--ph-muted); }
.ph-plan__feats li.is-disabled::before { content: "—"; color: var(--ph-line); }
.ph-plan .ph-btn { justify-content: center; margin-top: auto; }

/* ---------- FAQ ---------- */
.ph-faq {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
.ph-faq details {
  background: #fff;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius);
  padding: 18px 24px;
  transition: border-color .2s ease;
}
.ph-faq details[open] { border-color: var(--ph-primary); }
.ph-faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ph-faq summary::-webkit-details-marker { display: none; }
.ph-faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--ph-primary);
  font-weight: 700;
  transition: transform .2s ease;
}
.ph-faq details[open] summary::after { content: "−"; }
.ph-faq__body {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ph-muted);
  line-height: 1.85;
}

/* ---------- 最終 CTA ---------- */
.ph-final-cta {
  text-align: center;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(79,70,229,.16), transparent 60%),
    linear-gradient(180deg, #ffffff, #eef2ff);
  border-radius: 24px;
  padding: 80px 24px;
  border: 1px solid #c7d2fe;
}
.ph-final-cta__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 16px;
}
.ph-final-cta__sub {
  font-size: 15px;
  color: var(--ph-muted);
  margin: 0 0 32px;
}
.ph-final-cta__ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.ph-final-cta__note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--ph-muted);
}

/* ---------- フッター (簡易) ---------- */
.ph-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 24px;
  font-size: 13px;
}
.ph-footer a { color: #cbd5e1; }
.ph-footer a:hover { color: #fff; opacity: 1; }
.ph-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 800px) { .ph-footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.ph-footer h4 {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}
.ph-footer ul { display: grid; gap: 8px; }
.ph-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #94a3b8;
  font-size: 12px;
}
