/* トップページ（templates/landing.html・2026-11-28 作り直し）。土台は solution_v2.css（.sv-*）。
   導入事例の数字は about_v2.css（.cs-*）・料金のカードは pricing_v2.css（.pv-main）を借りる。ここはトップだけの部品（.tp-*） */

.tp-h1 { font-size: clamp(32px, 9vw, 40px); }
.tp-dot { display: none; }   /* 「・」は行の終わりに来るので見せない（文としては残す） */

/* ---------- 最初の画面: ばらばらの道具が1つの画面に吸い込まれる（8秒でひと回り） ---------- */
.tp-pull { margin-top: 30px; display: grid; justify-items: center; gap: 6px; }
.tp-pull-tools { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 0 6px; }
/* 外側＝吸い込まれたあとに残る薄い枠（場所が空白にならないように）／内側＝動く札 */
.tp-tool { display: block; border: 1px dashed #c9d8e4; border-radius: 12px; }
.tp-tool > span { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -1px; font-size: 15px; font-weight: 800; color: var(--sv-sub); background: #fff; border: 1px dashed #9fb6c9; border-radius: 12px; padding: 11px 6px; animation: tpTool 8s ease-in-out infinite; animation-delay: inherit; }
.tp-tool i { font-size: 16px; color: #8ea3b6; }
.tp-tool--1 { --r: -5deg; --x: 40px; }
.tp-tool--2 { --r: 4deg; --x: -40px; }
.tp-tool--2 > span { animation-delay: .12s; }
.tp-tool--3 { --r: 3deg; --x: 40px; }
.tp-tool--3 > span { animation-delay: .24s; }
.tp-tool--4 { --r: -4deg; --x: -40px; }
.tp-tool--4 > span { animation-delay: .36s; }
@keyframes tpTool {
    0% { opacity: 0; transform: translateY(-8px) rotate(var(--r)); }
    8%, 30% { opacity: 1; transform: rotate(var(--r)); }
    44%, 100% { opacity: 0; transform: translate(var(--x), 110px) scale(.3) rotate(0deg); }
}
.tp-pull-arrow { color: var(--sv-teal); font-size: 18px; }
.tp-pull-arrow i { animation: svBob 1.2s ease-in-out infinite; }
.tp-screen { width: 100%; background: #fff; border-radius: 18px; border: 2px solid var(--sv-navy); overflow: hidden; box-shadow: 0 24px 46px -26px rgba(20, 35, 60, .8); animation: tpScreen 8s ease infinite; }
.tp-screen-bar { display: flex; align-items: center; gap: 5px; background: var(--sv-navy); padding: 9px 12px; }
.tp-screen-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.tp-screen-bar b { margin-left: 8px; font-size: 14px; font-weight: 900; color: #fff; letter-spacing: .04em; }
.tp-screen ul { display: grid; padding: 6px 12px; }
.tp-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--sv-line); animation: tpRow 8s ease infinite; }
.tp-row:last-child { border-bottom: 0; }
.tp-row > i { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: var(--sv-teal-dark); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.tp-row span { font-size: 17px; font-weight: 900; color: var(--sv-navy); }
.tp-row em { margin-left: auto; font-style: normal; font-size: 14px; font-weight: 800; color: var(--sv-teal-dark); background: var(--sv-teal-soft); border-radius: 999px; padding: 2px 12px; }
.tp-row--1 { --t: 40%; }
.tp-row--2 { animation-name: tpRow2; }
.tp-row--3 { animation-name: tpRow3; }
.tp-row--4 { animation-name: tpRow4; }
@keyframes tpScreen { 0%, 36% { transform: none; } 42% { transform: scale(1.03); } 48%, 100% { transform: none; } }
@keyframes tpRow { 0%, 40% { opacity: .18; transform: translateX(-8px); } 46%, 96% { opacity: 1; transform: none; } 100% { opacity: .18; } }
@keyframes tpRow2 { 0%, 46% { opacity: .18; transform: translateX(-8px); } 52%, 96% { opacity: 1; transform: none; } 100% { opacity: .18; } }
@keyframes tpRow3 { 0%, 52% { opacity: .18; transform: translateX(-8px); } 58%, 96% { opacity: 1; transform: none; } 100% { opacity: .18; } }
@keyframes tpRow4 { 0%, 58% { opacity: .18; transform: translateX(-8px); } 64%, 96% { opacity: 1; transform: none; } 100% { opacity: .18; } }

/* ---------- 悩みから選ぶ ---------- */
.tp-worries { display: grid; gap: 10px; }
.tp-worries a { position: relative; display: block; background: var(--sv-tint); border-radius: 16px; padding: 16px 52px 16px 16px; color: var(--sv-navy); }
.tp-worries small { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--sv-teal-dark); border-radius: 999px; padding: 1px 11px; margin-bottom: 6px; }
.tp-worries b { display: block; font-size: 18px; font-weight: 900; line-height: 1.5; word-break: auto-phrase; }
.tp-worries i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--sv-teal-dark); font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* ---------- 選ばれる理由 ---------- */
.tp-reasons { display: grid; gap: 12px; }
.tp-reasons li { position: relative; background: #fff; border-radius: 20px; padding: 22px 18px; box-shadow: 0 18px 40px -30px rgba(20, 35, 60, .6); }
.tp-reasons li > span { position: absolute; right: 16px; top: 10px; font-size: 40px; font-weight: 900; line-height: 1; color: var(--sv-teal-soft); }
.tp-reasons li > i { width: 50px; height: 50px; border-radius: 15px; background: var(--sv-navy); color: var(--sv-mark); font-size: 20px; display: flex; align-items: center; justify-content: center; }
.tp-reasons b { display: block; margin: 12px 0 6px; font-size: 20px; font-weight: 900; line-height: 1.5; color: var(--sv-navy); word-break: auto-phrase; }
.sv .tp-reasons p { font-size: 16px; line-height: 1.8; color: var(--sv-sub); }

/* ---------- できること ---------- */
.sv .tp-total { text-align: center; margin: -10px 0 20px; font-size: 20px; font-weight: 900; color: var(--sv-navy); }
.tp-total b { font-size: 72px; line-height: 1; color: var(--sv-teal-dark); margin-right: 6px; font-variant-numeric: tabular-nums; }
.tp-cats { display: grid; gap: 10px; }
.tp-cats a { display: flex; align-items: center; gap: 14px; background: var(--sv-tint); border-radius: 16px; padding: 12px 16px; color: var(--sv-navy); }
.tp-cats-icon { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; background: var(--acc); color: #fff; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.tp-cats b { flex: 1; font-size: 18px; font-weight: 900; }
.tp-cats em { font-style: normal; font-size: 24px; font-weight: 900; color: var(--acc); font-variant-numeric: tabular-nums; }
.tp .sv-cap { margin-top: 16px; }

/* ---------- 比較 ---------- */
.tp-cmp-head { display: none; }
.tp-cmp { display: grid; gap: 12px; }
.tp-cmp-item { background: #fff; border-radius: 18px; padding: 18px 16px; box-shadow: 0 16px 36px -30px rgba(20, 35, 60, .6); display: grid; gap: 8px; }
.sv .tp-cmp-q { display: flex; gap: 10px; align-items: flex-start; font-size: 18px; font-weight: 900; line-height: 1.5; color: var(--sv-navy); margin-bottom: 4px; }
.tp-cmp-q span { flex: 0 0 26px; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--sv-navy); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.sv .tp-cmp-us, .sv .tp-cmp-other { display: grid; grid-template-columns: 30px 1fr; gap: 0 10px; align-items: start; border-radius: 12px; padding: 10px 12px; }
.tp-cmp-us em, .tp-cmp-other em { grid-row: 1 / 3; font-style: normal; font-size: 22px; font-weight: 900; line-height: 1.3; text-align: center; }
.tp-cmp-us b, .tp-cmp-other b { font-size: 13px; font-weight: 800; line-height: 1.5; }
.tp-cmp-us span, .tp-cmp-other span { font-size: 16px; line-height: 1.65; }
.sv .tp-cmp-us { background: var(--sv-teal-soft); }
.tp-cmp-us em { color: var(--sv-warm); }
.tp-cmp-us b { color: var(--sv-teal-dark); }
.tp-cmp-us span { font-weight: 800; color: var(--sv-navy); }
.sv .tp-cmp-other { background: var(--sv-tint); }
.tp-cmp-other em { color: #8ea3b6; }
.tp-cmp-other b { color: var(--sv-sub); }
.tp-cmp-other span { color: var(--sv-sub); }
.sv-js .tp-cmp-item .tp-cmp-us em { display: inline-block; transform: scale(.3); opacity: 0; }
.sv-js .tp-cmp-item.is-in .tp-cmp-us em { animation: csPop .6s cubic-bezier(.2, 1.6, .4, 1) .35s forwards; }

/* ---------- 導入事例 ---------- */
.tp-case { display: block; color: inherit; background: var(--sv-tint); box-shadow: none; }
.tp-case h3 { margin: 6px 0 16px; font-size: 22px; font-weight: 900; line-height: 1.5; color: var(--sv-navy); word-break: auto-phrase; }
.tp-case-more { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 16px; font-weight: 800; color: var(--sv-teal-dark); }
.tp-case-more i { font-size: 12px; }

/* ---------- 開発者メッセージ ---------- */
.tp-msg-photo { margin-bottom: 22px; }
.tp-msg { display: grid; gap: 14px; }
.sv .tp-msg p { font-size: 17px; line-height: 1.95; color: var(--sv-ink); }
.tp-msg mark { background: linear-gradient(transparent 62%, var(--sv-mark) 62%); color: inherit; font-weight: 800; }
.sv .tp-msg-sign { text-align: right; font-weight: 800; color: var(--sv-navy); }

/* ---------- ブログ ---------- */
.tp-blog { display: grid; gap: 12px; }
.tp-blog a { display: block; background: #fff; border-radius: 16px; overflow: hidden; color: var(--sv-navy); box-shadow: 0 14px 32px -28px rgba(20, 35, 60, .6); }
/* 画像は上に大きく・切らずに全部見せる（ブログのサムネイルは 1200x630 前後・中に文字があるので左右を切らない） */
.tp-blog-img { aspect-ratio: 1200 / 630; background: #e9f1f6; display: flex; align-items: center; justify-content: center; color: #9fb6c9; font-size: 22px; overflow: hidden; }
.tp-blog-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tp-blog-body { display: grid; gap: 4px; padding: 12px 16px 16px; min-width: 0; }
.tp-blog-body small { font-size: 12px; font-weight: 800; color: var(--sv-teal-dark); }
.tp-blog-body b { font-size: 17px; font-weight: 900; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 媒体 ---------- */
.tp-media { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-media span { font-size: 15px; font-weight: 800; color: var(--sv-navy); background: var(--sv-tint); border: 1px solid var(--sv-line); border-radius: 999px; padding: 7px 16px; }

/* ---------- よくある質問 ---------- */
.sv .tp-faq-label { margin: 0 0 12px; font-size: 16px; font-weight: 900; color: var(--sv-teal-dark); }
.sv .sv-faq + .tp-faq-label { margin-top: 34px; }
.tp .sv-faq a { color: var(--sv-teal-dark); font-weight: 800; text-decoration: underline; }
.tp .sv-faq details p + p { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
    .tp-tool > span, .tp-screen, .tp-row, .tp-pull-arrow i { animation: none !important; }
    .sv-js .tp-cmp-item .tp-cmp-us em { opacity: 1 !important; transform: none !important; animation: none !important; }
}

@media (min-width: 900px) {
    .tp-h1 { font-size: 50px; }
    .tp-pull { margin-top: 0; }
    .tp-tool > span { font-size: 17px; padding: 14px 8px; }
    .tp-row span { font-size: 19px; }
    .tp-worries { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .tp-worries a { padding: 22px 56px 22px 22px; }
    .tp-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .tp-reasons li { padding: 30px 28px; }
    .tp-total b { font-size: 96px; }
    .tp-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
    .tp-cats a { flex-direction: column; text-align: center; padding: 24px 12px 16px; gap: 8px; }
    /* 比較は表の形に */
    .sv .tp-cmp-head, .tp-cmp-item { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1fr; gap: 12px; align-items: stretch; }
    .sv .tp-cmp-head { margin-bottom: 10px; padding: 0 18px; font-size: 15px; font-weight: 900; color: var(--sv-navy); }
    .tp-cmp-head span:nth-child(2) { color: var(--sv-teal-dark); }
    .tp-cmp { gap: 8px; }
    .tp-cmp-item { padding: 12px 18px; box-shadow: none; }
    .sv .tp-cmp-q { margin: 0; align-items: center; font-size: 17px; }
    .tp-cmp-us b, .tp-cmp-other b { display: none; }
    .tp-cmp-us em, .tp-cmp-other em { grid-row: auto; }
    .sv .tp-cmp-us, .sv .tp-cmp-other { align-items: center; }
    .tp-msg-photo { margin: 24px 0 0; }
    .sv .tp-msg p { font-size: 18px; }
    .tp-blog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .tp-blog-body b { font-size: 18px; }
    .tp-media { justify-content: center; }
}
