/* サービスの紹介のページ（docs/design-site.md）。白い地＋青〜紫のグラデーション（依頼者の判断、2026-10-01）。
   お店のサイトの多くは白地なので、置いたときの見え方に近づける。TECH らしさは、最初の画面の淡い光と格子・
   グラデーションの見出しとボタンで出す。HTML と CSS だけで、運営者が一人で直せる形にする（外部の書体は使わない） */
:root {
  --bg: #ffffff; --bg-2: #f6f8fc; --fg: #0f172a; --body: #334155; --muted: #64748b; --line: #e2e8f0;
  --a1: #2563eb; --a2: #7c3aed; --grad: linear-gradient(120deg, var(--a1), var(--a2));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  line-height: 1.85; font-size: 16px; -webkit-font-smoothing: antialiased;
}
/* 最初の画面の背景：淡い青紫の光と、薄い格子（下へ向けて消える） */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 980px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 420px at 82% 12%, rgba(124, 58, 237, 0.12), transparent 70%),
    radial-gradient(560px 380px at 12% 4%, rgba(37, 99, 235, 0.10), transparent 70%),
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
}
a { color: var(--a1); }
/* 文は文節で折り返す（「商品／提案」「す／ぐに」のように言葉の途中で切らない。対応しないブラウザでは今までどおり）。
   チャットの窓の見本は、実物（frame.css）に合わせて普通の折り返しのまま */
body { word-break: auto-phrase; }
.widget { word-break: normal; }
.top, main, footer { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main.doc { max-width: 760px; }
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 16px;
       border-bottom: 1px solid var(--line); }
.top a { color: var(--fg); font-weight: 700; text-decoration: none; letter-spacing: 0.02em; }
.top a::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px;
                 background: var(--grad); vertical-align: 1px; }
.top span, .muted { color: var(--muted); font-size: 14px; }

/* 最初の画面：言葉と、実物と同じ見た目のチャットの窓を並べる */
.hero { display: grid; gap: 48px; grid-template-columns: 1fr 380px; align-items: center; padding: 64px 0 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 4px 12px; border-radius: 999px;
           border: 1px solid var(--line); background: rgba(255, 255, 255, 0.8); color: var(--muted); font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
h1 { font-size: 38px; line-height: 1.35; margin: 0 0 18px; letter-spacing: -0.01em; font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; margin: 0; color: var(--body); }
.cta { margin: 28px 0 0; }
.button { display: inline-block; background: var(--grad); color: #fff; text-decoration: none; font-weight: 700;
          padding: 12px 26px; border-radius: 999px; box-shadow: 0 8px 24px rgba(79, 70, 229, 0.28);
          transition: transform 0.15s ease, box-shadow 0.15s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(79, 70, 229, 0.36); }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover { transform: none; } html { scroll-behavior: auto; } }

/* チャットの窓の見本。実物（app/widget/static/frame.css・loader.js の .panel）と同じ寸法・色・文言にする。
   実物を変えたら、ここも合わせる */
.widget { margin: 0; width: 380px; max-width: 100%; height: 600px; display: flex; flex-direction: column;
          border-radius: 14px; overflow: hidden; background: #fff;
          box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 30px 80px rgba(79, 70, 229, 0.12);
          font: 15px/1.6 system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; color: #1c2530; }
.w-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #1f5f99; color: #fff; }
.w-title { margin: 0; font-size: 16px; font-weight: 600; }
.w-note { margin: 2px 0 0; font-size: 12px; line-height: 1.4; opacity: 0.92; }
.w-close { font-size: 22px; line-height: 1; width: 32px; text-align: center; }
/* 実物と同じく、窓の高さは 600px で、会話の欄だけが上下に動く */
.w-list { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.w-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; overflow-wrap: anywhere; }
.w-msg.user { align-self: flex-end; background: #1f5f99; color: #fff; border-bottom-right-radius: 4px; }
.w-msg.assistant { align-self: flex-start; background: #eef2f6; border-bottom-left-radius: 4px; }
.w-msg .para { margin: 0 0 0.5em; }
.w-msg .para:last-child { margin-bottom: 0; }
.w-msg .items { margin: 0.2em 0 0.5em; padding-left: 1.2em; }
.w-msg .product-item { list-style: none; margin: 0.5em 0 0.5em -1.2em; padding: 8px 10px; background: #fff;
                       border-left: 3px solid #1f5f99; border-radius: 6px; }
.w-msg .product-item .para { margin-bottom: 0; }
.product-figure { margin: 6px 0 0; }
.product-image img { display: block; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid #e3e8ee; }
.product-page { display: inline-block; margin-top: 4px; font-size: 13px; color: #1f5f99; text-decoration: underline; }
.w-form { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid #e3e8ee; }
.w-input { flex: 1; border: 1px solid #b9c6d3; border-radius: 10px; padding: 8px 10px; font-size: 15px; color: #8a96a3; min-height: 60px; }
.w-send { flex: none; align-self: stretch; display: flex; align-items: center; border-radius: 10px; padding: 0 16px;
          background: #1f5f99; color: #fff; font-weight: 600; }
.demo { margin: 0; }
.demo figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; text-align: center; }

/* 背景（探し方の変化）：読ませる節なので幅を絞り、最後の一文を強める */
.why, .narrow { max-width: 760px; }   /* 文を読ませる節は一行を40字前後にする */
.why p { color: var(--body); font-size: 17px; }
.why strong { color: var(--fg); }
h2 { font-size: 26px; margin: 96px 0 22px; letter-spacing: -0.005em; }
h3 { font-size: 17px; margin: 0 0 8px; }

/* カード：縁を青紫で細く光らせる（外側にグラデーション、内側を白にして 1px の縁に見せる） */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cards li { border-radius: 14px; padding: 20px; color: var(--body); font-size: 15px;
            background: linear-gradient(#fff, #fff) padding-box,
                        linear-gradient(140deg, rgba(37, 99, 235, 0.55), rgba(124, 58, 237, 0.25) 45%, var(--line)) border-box;
            border: 1px solid transparent; box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05); }
.cards strong { display: block; margin: 6px 0 8px; font-size: 16px; color: var(--fg); line-height: 1.6; text-wrap: balance; }
/* 「売上を伸ばす」「少ない人数でも、行き届いた接客を」の2つの柱 */
.pillar + .pillar { margin-top: 36px; }
.pillar h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 14px; }
.tag { font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); border-radius: 999px; padding: 2px 10px; }
.pillar .cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pillar.four .cards { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.num { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
       background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ほかにも、こんなことができます（アイコンと説明の一覧） */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); grid-auto-rows: 1fr; }
.features li { display: flex; gap: 14px; align-items: flex-start; color: var(--body); font-size: 15px;
               background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.features b { display: block; color: var(--fg); font-size: 16px; margin-bottom: 4px; }
.icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { padding-left: 34px; position: relative; color: var(--body); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 6px;
                     background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; text-align: center; line-height: 22px; }
.checks b { display: block; color: var(--fg); }

.split { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.split > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.split p { margin: 0; color: var(--body); }

.sub { color: var(--body); margin: -4px 0 20px; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: var(--bg); }
.plan h3 { margin: 0 0 6px; font-size: 17px; }
.plan .price { margin: 0 0 12px; font-size: 30px; font-weight: 700; letter-spacing: -0.01em;
               background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan .price span { font-size: 14px; font-weight: 500; }
.plan ul { margin: 0; padding: 0; list-style: none; color: var(--body); font-size: 15px; }
.plan li { padding: 5px 0; border-top: 1px solid var(--line); }
.notes { margin: 18px 0 20px; padding-left: 1.2em; color: var(--body); font-size: 15px; }
.notes li { margin: 2px 0; }

.steps { padding: 0; margin: 0; list-style: none; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; padding-left: 52px; position: relative; color: var(--body); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 36px; height: 36px;
                    border-radius: 10px; background: var(--grad); color: #fff;
                    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; font-weight: 700;
                    text-align: center; line-height: 36px; }
.steps b { display: block; color: var(--fg); }

.faq { margin: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; padding: 16px 32px 16px 0; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; color: var(--a2); }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-weight: 400; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--body); }
.tm { max-width: 1080px; margin: 64px auto 0; padding: 0 20px; font-size: 12px; color: var(--muted); }

.contact { margin-top: 96px; padding: 12px 28px 26px; border-radius: 18px; border: 1px solid rgba(124, 58, 237, 0.25);
           background: radial-gradient(520px 220px at 100% 0%, rgba(124, 58, 237, 0.10), transparent 70%),
                       radial-gradient(420px 200px at 0% 100%, rgba(37, 99, 235, 0.08), transparent 70%), var(--bg-2); }
.contact h2 { margin-top: 24px; }

/* 利用規約・プライバシーポリシー：本文は飾らず読みやすく */
.doc h1 { margin-top: 48px; font-size: 28px; }
.doc h2 { font-size: 18px; margin: 36px 0 10px; padding-left: 12px; border-left: 3px solid var(--a2); }
.doc p, .doc li, .doc td { color: var(--body); }
.doc li { margin: 4px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--bg-2); }
code { font-size: 14px; }

/* メールアドレスの画像（透明の地に濃い文字。devtools/make_contact_image.py） */
.mail { vertical-align: middle; }
footer { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 96px; padding-top: 20px; padding-bottom: 44px;
         border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); }
footer .mail { width: auto; height: 21px; }   /* 下の欄では、周りの文字の大きさに合わせる */

/* 狭い画面：1列にし、窓は幅いっぱいにする */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; }
  .widget { margin: 0 auto; }
}
@media (max-width: 760px) {
  h1 { font-size: 28px; }
  h2 { margin-top: 64px; font-size: 22px; }
  body::before { height: 640px; }
  .contact { padding: 8px 18px 20px; }
}

/* 問い合わせのフォーム（docs/design-site.md） */
.form { display: grid; gap: 14px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); color: var(--fg); width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid rgba(79, 70, 229, 0.35); border-color: var(--a1); }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 7px; }
.form .req { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--a2); }
.form-note { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.form-result { margin: 0; min-height: 1.5em; }
.form-result.ok { color: #166534; }
.form-result.error { color: #b42318; }
.form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: 0.6; cursor: wait; }
.form button.button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.tm + footer { margin-top: 16px; }

/* 取り込める商品データの帯（ロゴは使わず文字で書く。docs/logo-permission.md） */
.carts { margin: 8px auto 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); text-align: center; }
.carts-lead { margin: 0 0 12px; font-weight: 700; font-size: 18px; }
.cart-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cart-names li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-weight: 600; font-size: 15px; }
.carts-note { margin: 12px 0 0; color: var(--body); font-size: 15px; }

/* 上の帯：いつでも押せる「導入を相談する」（紹介のページ） */
.top.sticky { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.92);
              -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding-top: 12px; padding-bottom: 12px; }
.top-right { display: flex; align-items: center; gap: 14px; }
.button.small { padding: 7px 16px; font-size: 14px; box-shadow: none; }
.top-right .button.small::before { content: none; }
@media (max-width: 560px) { .top-right .by { display: none; } }
.top .button.small { color: #fff; letter-spacing: 0; }
.top.sticky { box-shadow: 0 0 0 100vmax rgba(255, 255, 255, 0.92); clip-path: inset(0 -100vmax); }
