/* LP（/）。ログイン前に見る紹介ページ */
.lp { scroll-behavior: smooth; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.lp-nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ヘッダーの国・地域のプルダウン（app/seo.py の lang_menu）。ボタンは小さく、いまのサイトの言語だけ。
   開くと、フッターと同じ国・地域のサイトが並ぶ（名前はその国の言葉のまま）。外を押す・Esc で閉じる（web/common.js） */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lang-menu { position: relative; margin-right: -12px;  /* 右のボタンとのあいだは、ヘッダーの間隔（24px）の半分に */
  --globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.lang-btn { display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 7px 0 8px; border-radius: 8px; color: var(--muted);
  font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; list-style: none; user-select: none;
  -webkit-tap-highlight-color: transparent; transition: background-color .15s, color .15s; }
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn::before, .lang-btn::after { content: ""; flex: none; background: currentColor; }
.lang-btn::before { width: 15px; height: 15px; -webkit-mask: var(--globe) center / contain no-repeat; mask: var(--globe) center / contain no-repeat; }
.lang-btn::after { width: 10px; height: 10px; opacity: .8; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat;
  transition: transform .2s ease; }
.lang-btn:hover, .lang-menu[open] .lang-btn { background: var(--surface-2); color: var(--text); }
.lang-menu[open] .lang-btn::after { transform: rotate(180deg); }
.lang-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; display: flex; flex-direction: column; gap: 2px;
  min-width: 236px; max-width: calc(100vw - 32px); padding: 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 18px 40px -8px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .06); transform-origin: top right; }
.lang-menu[open] .lang-pop { animation: lang-pop-in .16s ease-out; }
@keyframes lang-pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.lang-head { padding: 6px 10px 4px; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.lang-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 10px; border-radius: 8px;
  color: var(--text); font-size: 14px; line-height: 1.45; text-decoration: none; white-space: nowrap; }
a.lang-item:hover, a.lang-item:focus-visible { background: var(--surface-2); }
a.lang-item:focus-visible { outline-offset: -2px; }
.lang-item[aria-current] { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.lang-item[aria-current]::after { content: ""; flex: none; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }
/* 日本語の名前は、台湾版・韓国版でも日本語のフォントで（中国語のフォントだと、かっこの形と字形が変わる）。フッターの案内も同じ */
.lang-menu :lang(ja), .region-links :lang(ja) { font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; }
.lang-menu :lang(zh) { font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; }
.lang-menu :lang(ko) { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
@media (prefers-color-scheme: dark) { .lang-pop { box-shadow: 0 18px 40px -8px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3); } }
@media (prefers-reduced-motion: reduce) { .lang-menu[open] .lang-pop { animation: none; } .lang-btn::after { transition: none; } }
/* スマホ: ボタンは地球のマークだけ（言語の名前は読み上げにだけ残す）。開いた欄は画面の右端にそろえる（はみ出さないように）。
   サイト名は折り返さない。ログイン後の「アカウント」は、紹介ページのログインの欄にもあるので、ヘッダーでは「アプリを開く」だけにする */
@media (max-width: 600px) {
  .nav-inner { position: relative; gap: 12px; }
  .lp-nav .brand { white-space: nowrap; }
  .lang-menu { position: static; margin-right: -6px; }
  .lang-btn { justify-content: center; width: 34px; height: 34px; padding: 0; }
  .lang-btn::before { width: 18px; height: 18px; }
  .lang-btn::after { display: none; }
  .lang-now { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-pop { top: calc(100% - 6px); right: 20px; }  /* ヘッダーの右端の余白（.wrap）にそろえる */
  .nav-cta .btn.ghost { display: none; }
}
@media (max-width: 400px) {
  .nav-inner { gap: 10px; }
  .lang-menu { margin-right: -4px; }
  .nav-cta .btn.small { padding: 4px 10px; }
  .lp-nav .brand { gap: 8px; font-size: 15px; }
  .lp-nav .brand svg { width: 26px; height: 26px; }
}
/* とても狭い画面（と、ログイン後の少し狭い画面）では、PRO のカプセルを外して、サイト名を1行に収める */
@media (max-width: 359px) {
  .lp-nav .brand { gap: 7px; font-size: 14px; }
  .lp-nav .brand svg { width: 24px; height: 24px; }
  .lp-nav .brand::after { display: none; }
}
@media (max-width: 389px) { .nav-inner:has(.nav-cta .btn.ghost) .brand::after { display: none; } }

.hero { background: radial-gradient(1200px 500px at 85% -10%, #3c63d8 0%, transparent 60%),
  linear-gradient(160deg, #0b1020 0%, #13244d 55%, #1b3a80 100%); color: #fff; padding: 72px 0 80px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "copy media" "login media";
  gap: 28px 56px; align-items: center; }
.hero-copy { grid-area: copy; align-self: end; }
.hero-media { grid-area: media; }
.hero .login-box { grid-area: login; align-self: start; }
.nb { white-space: nowrap; }
html[lang="en"] .nb { white-space: normal; display: inline-block; text-wrap: balance; }  /* 英語の見出しは長いので、折り返す */
#login { scroll-margin-top: 84px; }
.hero-tag { display: inline-block; font-size: 12px; letter-spacing: .08em; border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px; padding: 2px 12px; }
.hero h1 { font-size: clamp(25px, 3.6vw, 46px); line-height: 1.3; margin: 18px 0 16px; letter-spacing: .01em; }
html[lang="en"] .hero h1 { font-size: clamp(25px, 3.1vw, 40px); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffd34d, #ffb000); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.lead { font-size: clamp(15px, 1.8vw, 17px); color: rgba(255, 255, 255, .86); margin: 0 0 22px; max-width: 34em; }

.login-box { background: var(--surface); color: var(--text); border-radius: 18px; padding: 20px; max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.login-box .fine { margin: 12px 0 0; }
.login-box .soon { font-size: 14px; }
.login-box .signed-in { display: flex; flex-direction: column; gap: 10px; }
.signed-in .who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.signed-in .btn.primary { padding: 12px 16px; font-size: 15px; }

.band { padding: 80px 0; }
.band.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 32px; letter-spacing: .01em; }
.band h3 { font-size: 17px; margin: 0 0 8px; }
.band p { margin: 0; color: var(--muted); }

/* 見本動画。カードの絵は軽い 640×360、再生の画面で 720p の動画を読み込む（押すまで読み込まない） */
.band .demos-lead { max-width: 46em; margin: -18px 0 24px; }
.demo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.demo-card { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer; }
.demo-card.featured { grid-column: span 2; grid-row: span 2; }
a.demo-card { text-decoration: none; }
.demo-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: #0e1424; box-shadow: var(--shadow); }
.demo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.demo-card:hover .demo-thumb img, .demo-card:focus-visible .demo-thumb img { transform: scale(1.04); }
.demo-play { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%;
  background: rgba(10, 15, 25, .55); border: 1.5px solid rgba(255, 255, 255, .75); backdrop-filter: blur(4px); }
.demo-play::after { content: ""; position: absolute; left: 19px; top: 14px; border-left: 15px solid #fff;
  border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.demo-card.featured .demo-play { transform: scale(1.4); }
.demo-time { position: absolute; right: 8px; bottom: 8px; padding: 1px 7px; border-radius: 6px; background: rgba(0, 0, 0, .65);
  color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.demo-meta { display: flex; flex-direction: column; gap: 2px; }
.demo-field { color: var(--primary); font-size: 12px; font-weight: 700; }
.demo-title { font-size: 15px; font-weight: 700; line-height: 1.45; }
.demo-card.featured .demo-title { font-size: 18px; }
.demo-more { display: flex; margin: 28px auto 0; }
.demo-modal { max-width: 960px; overflow: hidden; }
.demo-modal video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.demo-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 18px 18px; }
.demo-caption h3 { margin: 2px 0 4px; font-size: 17px; }
.demo-caption p { margin: 0; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.band.alt .step { background: var(--bg); }
.step .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary);
  color: #fff; font-weight: 800; margin-bottom: 14px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.band:not(.alt) .feature { background: var(--surface); }
.feature h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent);
  margin-right: 10px; vertical-align: 2px; }

.pricing { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.pricing > div > p { color: var(--text); font-size: 16px; }
.ticks { padding: 0; margin: 18px 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.price-card p { margin: 0 0 14px; }
.pack-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pack-list span { text-align: center; padding: 14px 6px; border-radius: 12px; background: var(--primary-soft); color: var(--primary);
  font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.pack-list span small { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; }
.pack-list span em { display: block; margin-top: 6px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }
/* 購入単位が奇数のときは、最初（いちばん小さい単位）を横いっぱいにして、残りを2列にそろえる */
.pack-list span:first-child:nth-last-child(odd) { grid-column: 1 / -1; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 4px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; }

.cta { background: linear-gradient(160deg, #0b1020, #1b3a80); color: #fff; }
.cta p { color: rgba(255, 255, 255, .8); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: center; }
.cta h2 { margin-bottom: 12px; }

.lp-foot { padding: 36px 0 48px; border-top: 1px solid var(--border); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
.foot-links a { color: var(--muted); font-size: 13px; }
/* 国・地域のサイトの案内（app/seo.py の lang_link）。名前はその国の言葉のまま */
.region-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.region-links a { color: var(--muted); }
.region-links [aria-current] { color: var(--text); font-weight: 600; }
.region-links :lang(zh) { font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; }
.region-links :lang(ko) { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
.region-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.region-label::before { content: ""; width: 14px; height: 14px; background: currentColor;
  --globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
  -webkit-mask: var(--globe) center / contain no-repeat; mask: var(--globe) center / contain no-repeat; }
.guide-about { margin-top: 28px; }
.inapp-note { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #fff4d6; color: #5c4400; font-size: 13px; line-height: 1.6; }

@media (max-width: 960px) {
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: clamp(22px, 6.6vw, 40px); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "media" "login"; gap: 28px; }
  .pricing, .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-box { max-width: none; }
  .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .lang-menu { margin-left: auto; }
  .lang-menu + .nav-cta { margin-left: 0; }
  .band { padding: 56px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .lang-pop { right: 16px; }
  .pack-list span { font-size: 15px; }
  .demo-grid { gap: 18px 12px; }
  .demo-title { font-size: 14px; }
  .demo-card.featured { grid-row: auto; }
  .demo-play { transform: scale(.85); }
}

/* 見本の下の「用途から探す」と、招待リンク・お試しポイントのお知らせ */
.use-links { margin-top: 30px; }
.use-links h3 { font-size: 15px; margin: 0 0 10px; }
.use-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.use-chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 14px; text-decoration: none; }
.use-chips a:hover { border-color: var(--primary); color: var(--primary); }
.use-chips a.guide { background: var(--primary-soft); border-color: transparent; color: var(--primary); font-weight: 600; }
.invite-note, .welcome-note { margin: 0 0 12px; font-size: 13.5px; line-height: 1.7; padding: 10px 12px; border-radius: 10px;
  background: var(--primary-soft); color: var(--text); }
.price-card .welcome-note { margin: 12px 0 0; }
.hero .hero-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ヒーロー: 3つの強みと、本物の見本動画 */
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.5; }
.hero-points li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 13px; height: 7px; border-left: 2.5px solid #ffd34d;
  border-bottom: 2.5px solid #ffd34d; transform: rotate(-45deg); }
.hero-points b { color: #fff; margin-right: 10px; }
@media (max-width: 640px) { .hero-points span { display: block; } .hero-points span span { display: inline; } }
.hero-video { display: block; text-decoration: none; color: inherit; }
.hero-video .demo-thumb { border-radius: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.hero-video .demo-play { transform: scale(1.5); }
.hero-video-note { display: block; margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .7); }

/* この目安で、この仕上がり（サービスで実際に作った2本と、かかった費用） */
.band .section-lead { max-width: 46em; margin: -18px 0 26px; }
.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.example { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); }
.example .demo-thumb { border-radius: 0; box-shadow: none; }
.example .demo-play { transform: scale(1.3); }
.example-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.example-mode { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); }
.example.hq .example-mode { background: #2a2210; color: #ffd34d; }
.band p.example-price { color: var(--text); font-size: 15px; font-weight: 700; }
.example-price b { font-size: 34px; letter-spacing: .01em; margin-right: 2px; font-variant-numeric: tabular-nums; }
.example-price small { margin-left: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.example-cost-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.example-meta { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.more-demos { margin-top: 44px; }
@media (max-width: 960px) { .examples { grid-template-columns: 1fr; } .example-price b { font-size: 30px; } }
.more-demos h3 { font-size: 16px; margin: 0 0 14px; }

/* 料金: 外注との比べ方（2つの数字だけ） */
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.vs-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); }
.vs-item > span { font-size: 13px; color: var(--muted); }
.vs-item b { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.3; }
.vs-item small { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.vs-item.us { background: var(--primary-soft); border-color: transparent; }
.vs-item.us b { color: var(--primary); }
@media (max-width: 560px) { .vs { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr; } }
