/* ===== 公式サイト（トップページ）=====
   色・角丸・影は style.css の値を使い、明暗の切り替えにもそのまま追従する */

body.site { overflow-x: hidden; }
.site a { color: inherit; }

/* お買い物中のお客様向けの一行 */
.shopper-note {
  margin: 0; padding: 8px 16px; text-align: center; font-size: .8rem;
  background: var(--brand-1); color: var(--on-brand);
}
.shopper-note a { color: var(--on-brand); font-weight: 700; margin-left: 6px; }

/* ヘッダー */
.site-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 12px max(20px, calc((100% - 1080px) / 2));
  background: var(--glass); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
}
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.05rem; text-decoration: none; }
.site-logo img { border-radius: 9px; }
.site-nav { display: flex; gap: 20px; margin-left: auto; font-size: .9rem; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.site-nav a:hover { color: var(--text); }

/* ボタン */
.site-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 800; text-decoration: none;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: var(--on-brand) !important;
  box-shadow: var(--shadow-brand); transition: transform .2s var(--ease);
}
.site-cta:hover { transform: translateY(-1px); }
.site-cta.small { min-height: 38px; padding: 0 16px; font-size: .85rem; box-shadow: none; }
.site-cta.ghost { background: var(--card); color: var(--text) !important; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

.site-main { max-width: 1120px; margin: 0 auto; padding: 0 20px 40px; }

/* 見出しまわり */
.eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.block { padding: 72px 0 8px; }
.block h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.35; letter-spacing: .01em; }
.block-lead { margin: 0 0 28px; color: var(--muted); }
.block-more { margin: 24px 0 0; }
.block-more a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* ファーストビュー */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px 0 24px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.22; font-weight: 900; letter-spacing: .01em; }
.hero .nw { display: inline-block; }
.hero .hl { background: linear-gradient(transparent 62%, var(--glow-1) 62%); color: var(--accent); }
.lead { margin: 0 0 26px; font-size: 1.05rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.pay-list li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .8rem; font-weight: 700; color: var(--muted); }

.hero-visual { position: relative; height: 520px; }
.hero-visual .phone { position: absolute; width: 230px; }
.hero-visual .back { right: 170px; top: 40px; transform: rotate(-6deg); opacity: .92; }
.hero-visual .front { right: 10px; top: 0; transform: rotate(4deg); }

/* スマホの枠 */
.phone {
  margin: 0; padding: 7px; border-radius: 32px; background: #151815;
  box-shadow: var(--shadow-md); aspect-ratio: 1 / 2;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; }
.shot { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--card); }
.shot img { display: block; width: 100%; height: auto; }
.shot.crop { aspect-ratio: 2 / 1; }
.shot.crop img { height: 100%; object-fit: cover; object-position: top; }

/* 4 ステップ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 18px 18px 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.steps .phone { width: 72%; margin: 0 auto 16px; }
.step-no {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 900; font-size: .9rem;
}
.steps h3 { margin: 8px 0 4px; font-size: 1.02rem; }
.steps p { margin: 0; font-size: .88rem; color: var(--muted); }

/* 特長 */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.feature { padding: 22px 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.feature svg {
  width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--glow-1);
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { margin: 12px 0 6px; font-size: 1rem; }
.feature p { margin: 0; font-size: .87rem; color: var(--muted); }

/* お店の方へ */
.store-rows { display: grid; gap: 48px; margin-top: 28px; }
.store-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.store-row.reverse { grid-template-columns: 1fr 1.25fr; }
.store-row.reverse > figure { order: 2; justify-self: center; }
.store-row .phone { width: 230px; }
.store-row h3 { margin: 0 0 8px; font-size: 1.25rem; }
.store-row p { margin: 0; color: var(--muted); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 40px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 28px; font-size: .92rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E");
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px;
  border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* 安心 */
.trust { margin-top: 64px; padding: 40px 32px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.trust h2 { font-size: 1.4rem; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.trust-grid h3 { margin: 0 0 4px; font-size: 1rem; color: var(--accent); }
.trust-grid p { margin: 0; font-size: .9rem; color: var(--muted); }

/* 導入の流れ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: flow; }
.flow li { position: relative; padding: 0 20px 0 0; counter-increment: flow; }
.flow li::before {
  content: counter(flow); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--accent); color: var(--accent); font-weight: 900;
}
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 52px; right: 8px; height: 2px; background: var(--line); }
.flow strong { display: block; margin-bottom: 4px; }
.flow span { font-size: .88rem; color: var(--muted); }

/* よくある質問 */
.faq { display: grid; gap: 10px; margin-top: 20px; max-width: 820px; }
.faq details { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: .92rem; }

/* お問い合わせ */
.contact {
  margin-top: 72px; padding: 48px 32px; border-radius: 28px; text-align: center;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: var(--on-brand);
}
.contact h2 { color: var(--on-brand); }
.contact p { margin: 0 0 12px; }
.contact-to { font-size: 1.1rem; font-weight: 800; }

/* フッター */
.site-foot { max-width: 1120px; padding: 24px 20px 40px; }
.site-foot .copy { margin-left: auto; }

/* ===== 画面幅に合わせる ===== */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .flow li:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-head .site-cta.small { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 8px; }
  .hero-visual { height: 380px; max-width: 360px; width: 100%; margin: 0 auto; }
  .hero-visual .phone { width: 168px; }
  .hero-visual .back { right: auto; left: 8px; top: 30px; }
  .hero-visual .front { right: 8px; }
  .block { padding-top: 56px; }
  .store-row, .store-row.reverse { grid-template-columns: 1fr; gap: 20px; }
  .store-row.reverse > figure { order: 0; }
  .store-row .phone { width: 200px; justify-self: center; }
  .checks { grid-template-columns: 1fr; }
  .trust { padding: 28px 20px; }
  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact { padding: 36px 20px; }
  .site-foot .copy { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 480px) {
  .site-main { padding: 0 16px 32px; }
  .site-head { padding: 10px 16px; }
  .steps, .features, .flow { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  /* スマホでは、画面写真を左に小さく、説明を右に並べる */
  .steps li { display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; align-items: start; padding: 14px; }
  .steps .phone { grid-row: 1 / 4; width: 96px; margin: 0; padding: 4px; border-radius: 16px; }
  .steps .phone img { border-radius: 12px; }
  .steps h3 { margin-top: 6px; }
  .hero-actions .site-cta { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .site-cta { transition: none; } }
