/* BaseCafe /ext/coffee — GSAP-ready stable CSS */

:root{
  --bg:#ffffff;
  --text:#111;
  --muted:#616161;
  --line:#e8e8e8;
  --soft:#f7f7f7;

  --radius:18px;
  --container: 1000px;

  --s0: 10px;
  --s1: 14px;
  --s2: 18px;
  --s3: 24px;
  --s4: 32px;
  --s5: 44px;
  --s6: 56px;

  --t-xs: 12px;
  --t-sm: 13px;
  --t-md: 15px;
  --t-xl: 22px;

  --lh: 1.8;

  /* JS sets this */
  --hdr: 56px;
  --sb: 0px;
}

*{ box-sizing:border-box; }
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: var(--t-md);
  line-height: var(--lh);
  letter-spacing: .02em;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

/* fixed header baseline */
body{
  padding-top: var(--hdr);
}

.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

/* Header */
.lp-header{
  position:fixed;
  left:0;
  right:0;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.2) blur(10px);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 20px;
}
.brand{ font-weight:700; letter-spacing:.02em; }

/* Hero */
.hero{ padding: var(--s6) 0 var(--s4); }
.eyebrow{ color:var(--muted); margin:0 0 var(--s0); font-size: var(--t-sm); }
.hero-title{
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 var(--s2);
}
.hero-sub{
  color:var(--muted);
  margin: 0 0 var(--s3);
}
.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 0 0 var(--s3);
}
.hero-media{
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--soft);
}
.hero-media img{ width:100%; }

/* Sections */
.section{ padding: var(--s1) 0; }
.section.subtle{
  background:var(--soft);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section-title{ font-size: var(--t-xl); margin: 0 0 var(--s1); }
.section-lead{ color:var(--muted); margin: 0 0 var(--s4); }

/* Layout grids */
.grid{ display:grid; gap:14px; }
.grid.cards{ grid-template-columns: repeat(2, 1fr); }
.grid.two{ grid-template-columns: repeat(2, 1fr); }

/* Cards */
.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding: var(--s3);
  background:#fff;
}
.card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.card h3{ margin:0; font-size:16px; line-height:1.35; }
.tag{
  font-size: var(--t-xs);
  color: var(--muted);
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 10px;
  white-space:nowrap;
}
.note{
  margin: var(--s2) 0 var(--s3);
  color:var(--muted);
  line-height:1.75;
}
.chips{
  list-style:none;
  padding:0;
  margin:0 0 var(--s3);
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chips li{
  font-size: var(--t-xs);
  color:#333;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 10px;
}

.card-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.link{
  color:#111;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Panels */
.panel{
  border:1px solid var(--line);
  background:#fff;
  border-radius:var(--radius);
  padding: var(--s3);
}
.panel h3{ margin:0 0 var(--s0); font-size:15px; line-height:1.35; }
.panel p{ margin:0; color:var(--muted); line-height:1.75; }

/* Buy grid */
/*
.buy-grid{ display:grid; gap:12px; grid-template-columns: repeat(3, 1fr); }
.buy-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding: var(--s3);
  background:#fff;
  display:flex;
  flex-direction:column;
  gap: var(--s0);
}
.buy-card h3{ margin:0; font-size:16px; }
.buy-card p{ margin:0; color:var(--muted); line-height:1.75; }
.buy-card .arrow{ margin-top:auto; color:var(--muted); font-size:18px; }
*/

/* Buy cards: more tappable */
.buy-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s3);
  background: #fff;
  display:flex;
  flex-direction:column;
  gap: var(--s0);
  position: relative;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.buy-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
  border-color: rgba(17,17,17,.25);
}

.buy-card:active{
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

.buy-card:focus-visible{
  outline: 2px solid rgba(17,17,17,.45);
  outline-offset: 3px;
}

/* make it obvious it's a link */
.buy-card::after{
  content: "タップして開く";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: var(--t-xs);
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(247,247,247,.9);
  padding: 6px 10px;
  border-radius: 999px;
}

.buy-card .arrow{
  margin-top:auto;
  color:#111;
  font-size: 20px;
  font-weight: 700;
  transition: transform .12s ease;
}

.buy-card:hover .arrow{
  transform: translateX(3px);
}

.buy-card--secondary{
  background: var(--soft);
  box-shadow: none;
}
.buy-card--secondary::after{
  content: "比較ページへ";
}

/* Buttons */
.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  font-weight:650;
  font-size:14px;
  -webkit-tap-highlight-color: transparent;
}
.cta--primary{ background:#111; color:#fff; border-color:#111; }
.cta--ghost{ background:#fff; }
.cta--small{ padding:8px 12px; font-size:13px; }
.cta--primary:hover{ opacity: .92; }
.cta--ghost:hover{ background: var(--soft); }

/* Footer */
.lp-footer{
  border-top:1px solid var(--line);
  padding: var(--s3) 0 80px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}
.footer-brand{ font-weight:700; }
.footer-meta{ color:var(--muted); font-size: var(--t-xs); margin-top:6px; }
.footer-links{ display:flex; gap:14px; flex-wrap:wrap; color:var(--muted); font-size: var(--t-sm); }

/* Pager dots */
.pager{
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
}
.dot{
  appearance:none;
  -webkit-appearance:none;
  border:1px solid var(--line);
  background: rgba(17,17,17,.12);
  width:10px;
  height:10px;
  border-radius:999px;
  padding:0;
}
.dot.is-active{
  background:#111;
  border-color:#111;
}

/* Sticky CTA */
.sticky-cta{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  padding:10px 14px;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.2) blur(10px);
  border-top:1px solid var(--line);
  display:none; /* JS toggles */
  z-index:70;
}
.sticky-cta .cta{ width:100%; }

/* Story section tweaks (optional) */
.story .panel p{
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

/* Buy section: make it a decision stage */
#buy{
  background: #1f1f1f;
  color: #fff;
  padding: calc(var(--s6) + 10px) 0;
  position: relative;
  border-top: 1px solid rgba(255,255,255,.12);
}

#buy .section-title{
  color: #fff;
  font-size: 26px;
  margin-bottom: var(--s1);
}

#buy .section-lead{
  color: rgba(255,255,255,.72);
  margin-bottom: var(--s4);
}

/* cards inside buy */
#buy .buy-card{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}

#buy .buy-card:hover{
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}

#buy .buy-card h3{
  color: #fff;
}

#buy .buy-card p{
  color: rgba(255,255,255,.72);
}

#buy .buy-card .arrow{
  color: #fff;
}

/* little label */
#buy .buy-card::after{
  border-color: rgba(255,255,255,.16);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.78);
}

/* Primary buy card */
.buy-card--primary{
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
}
.buy-card--primary::after{
  content: "まずはこれ";
}

.card-top--stack{
  display:block;
}

.card-top--stack h3{
  margin:0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.subtag{
  display:inline-block;
  font-size: var(--t-xs);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}

.chips-label{
  font-size: var(--t-xs);
  color: var(--muted);
  margin: 0 0 8px;
  letter-spacing: .02em;
}

/* storesで見る：押せる感（静かめ） */
.badge-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);
  color: inherit;
  text-decoration: none;

  /* “押せる”の土台 */
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    opacity .18s ease;
}

/* 右向き矢印（常時薄め） */
.badge-link::after {
  content: "→";
  opacity: .55;
  transform: translateX(0);
  transition: transform .18s ease, opacity .18s ease;
}

/* PC hover */
@media (hover: hover) and (pointer: fine) {
  .badge-link:hover {
    transform: translateY(-1px);
    border-color: rgba(0,0,0,.18);
    background: rgba(255,255,255,.85);
    box-shadow: 0 10px 22px rgba(0,0,0,.10);
  }
  .badge-link:hover::after {
    opacity: .85;
    transform: translateX(2px);
  }
}

/* 押下（モバイル含む） */
.badge-link:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  opacity: .96;
}

/* キーボード操作の見え方 */
.badge-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,.18);
}


/* Responsive */
@media (max-width: 860px){
  .container{ width:calc(100% - 32px); }
  .grid.cards{ grid-template-columns: 1fr; }
  .grid.two{ grid-template-columns: 1fr; }
  .buy-grid{ grid-template-columns: 1fr; }
  .hero-title{ font-size: 28px; }

  /* dots slightly lower so they don't overlap header visually */
  .pager{
    top: calc(var(--hdr) + 140px);
    transform:none;
  }
  .card-actions{
    gap: 8px;
    flex-wrap: wrap;
  }
  .card-actions .cta{
    flex: 1 1 auto;
    justify-content: center;
  }
}
