/*
 * nokkeru.com の紹介ページの部品（Tailwind で書きにくいものだけ）。
 * 坂井の紹介ページ（public/landing/sakai/css/style.css）と同じ見た目。「AI に聞く」の部品は使わないので入れていない。
 * 色はアプリの共通部品（resources/css/nk-ui.css）にそろえる。本文 17px・最小 15px、押せる所は 48px 以上。
 */
:root {
    --lp-ink: #10275e;
    --lp-ink-2: #34466e;
    --lp-line: #e2e9f8;
    --lp-bg: #f5f8ff;
    --lp-tint: #edf3ff;
    --lp-blue: #3561ff;
    --lp-grad: linear-gradient(120deg, #1a8cff 0%, #3561ff 55%, #5b3ff0 100%);
    --lp-shadow: 0 2px 6px rgba(53, 97, 255, .05), 0 10px 28px rgba(53, 97, 255, .07);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
    line-break: strict;
}
img, video { max-width: 100%; }
:focus-visible { outline: 3px solid #1a8cff; outline-offset: 3px; border-radius: 6px; }
.lp-balance { text-wrap: balance; }

/* 本文へ移る（キーボードで使う方向け。押すまで見えない） */
.lp-skip { position: absolute; left: 12px; top: -80px; z-index: 60; padding: 12px 18px; border-radius: 12px; background: #fff; color: var(--lp-blue); font-weight: 700; }
.lp-skip:focus { top: 12px; }

/* ヘッダーのページ内リンク */
.lp-nav { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 999px; }
.lp-nav:hover { background: var(--lp-bg); color: var(--lp-blue); }

/* ボタン */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px; border-radius: 999px; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; text-align: center; transition: transform .15s, box-shadow .15s, background-color .15s; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn--sm { min-height: 48px; padding: 0 18px; font-size: .9375rem; white-space: nowrap; }
.lp-btn--primary { background: var(--lp-grad); color: #fff; box-shadow: 0 6px 18px rgba(53, 97, 255, .28); }
.lp-btn--white { background: #fff; color: var(--lp-blue); box-shadow: 0 6px 18px rgba(16, 39, 94, .25); }
.lp-btn--ghost { border: 2px solid rgba(255, 255, 255, .85); color: #fff; background: rgba(255, 255, 255, .08); }
.lp-btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.lp-btn--outline { border: 2px solid var(--lp-blue); color: var(--lp-blue); background: #fff; }
.lp-btn--outline:hover { background: var(--lp-tint); }
@media (prefers-reduced-motion: reduce) { .lp-btn, .lp-btn:hover { transition: none; transform: none; } }

.lp-link { color: var(--lp-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.lp-eyebrow { color: var(--lp-blue); font-size: .9375rem; font-weight: 700; letter-spacing: .08em; }

/* 最初の画面の写真の上の影（文字を読みやすく） */
/* スマホ: 紺ではなくブランドの明るい青で、上ほど写真が見えるように薄くする（白い文字が読める濃さは保つ） */
.lp-hero-shade { background: linear-gradient(180deg, rgba(37, 99, 235, .38) 0%, rgba(37, 99, 235, .62) 30%, rgba(29, 78, 216, .78) 65%, rgba(30, 64, 175, .86) 100%); }
@media (max-width: 767px) {
    #top h1, #top h1 + p { text-shadow: 0 1px 12px rgba(16, 39, 94, .45); }
}
@media (min-width: 768px) {
    .lp-hero-shade { background: linear-gradient(90deg, rgba(16, 39, 94, .92) 0%, rgba(16, 39, 94, .78) 42%, rgba(16, 39, 94, .25) 75%, rgba(16, 39, 94, .1) 100%); }
}

/* 番号の丸 */
.lp-num { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lp-grad); color: #fff; font-weight: 700; line-height: 1; }

/* カード */
.lp-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 20px; background: #fff; color: var(--lp-ink-2); box-shadow: var(--lp-shadow); border: 1px solid var(--lp-line); }
.lp-card__title { color: var(--lp-ink); font-size: 1.1875rem; font-weight: 700; line-height: 1.5; }
.lp-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 16px; background: var(--lp-tint); color: var(--lp-blue); }
.lp-icon svg { width: 28px; height: 28px; }
.lp-icon--line { background: #e7f8ee; color: #04843a; }

/* チェックの付いた箇条書き */
.lp-check { position: relative; padding-left: 30px; color: var(--lp-ink-2); }
.lp-check::before { content: ""; position: absolute; left: 2px; top: .5em; width: 18px; height: 18px; border-radius: 50%; background: var(--lp-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233561ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* 動画の一覧 */
.lp-video { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 8px 8px 14px; border-radius: 18px; color: var(--lp-ink); transition: background-color .15s; }
.lp-video:hover { background: var(--lp-bg); }
.lp-video__thumb { position: relative; display: block; overflow: hidden; margin-bottom: 6px; border-radius: 14px; border: 1px solid var(--lp-line); aspect-ratio: 16 / 9; background: var(--lp-bg); }
.lp-video__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-video__play { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lp-grad); color: #fff; box-shadow: 0 6px 18px rgba(53, 97, 255, .35); }
.lp-video__play svg { width: 22px; height: 22px; margin-left: 3px; }
.lp-video__time { position: absolute; right: 8px; bottom: 15px; padding: 1px 10px; border-radius: 999px; background: rgba(16, 39, 94, .85); color: #fff; font-size: .9375rem; font-weight: 700; }
.lp-video__title { font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
.lp-video__desc { color: var(--lp-ink-2); font-size: .9375rem; line-height: 1.65; }

/* よくある質問 */
.lp-faq { border-radius: 18px; background: #fff; border: 1px solid var(--lp-line); box-shadow: var(--lp-shadow); }
.lp-faq summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: 14px 56px 14px 20px; font-weight: 700; line-height: 1.5; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 3px solid var(--lp-blue); border-bottom: 3px solid var(--lp-blue); transform: rotate(45deg); transition: transform .2s; }
.lp-faq[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.lp-faq > div { padding: 0 20px 18px; color: var(--lp-ink-2); }
.lp-faq > div p + p { margin-top: 10px; }

/* 最後のお誘い */
.lp-cta { background: var(--lp-grad); }

/* 動画を再生する窓 */
.lp-dialog { width: min(1080px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px; background: #0b1a40; color: #fff; overflow: hidden; }
.lp-dialog::backdrop { background: rgba(16, 39, 94, .75); }
.lp-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; }
.lp-dialog__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.4; }
.lp-dialog__close { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .9375rem; font-weight: 700; }
.lp-dialog__close:hover { background: rgba(255, 255, 255, .24); }
.lp-dialog__close svg { width: 20px; height: 20px; }
.lp-dialog__video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 100px); aspect-ratio: 16 / 9; background: #000; }
.lp-video-note { display: block; height: 100%; padding: 16px 18px; border-radius: 18px; background: var(--lp-bg); color: var(--lp-ink-2); font-size: .9375rem; line-height: 1.7; }
[id] { scroll-margin-top: 84px; }
/* スマホでは、表紙を左・題を右に並べて短くする */
@media (max-width: 639px) {
    .lp-video { display: grid; grid-template-columns: 136px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 2px; padding: 6px; }
    .lp-video__thumb { grid-row: 1 / span 2; margin: 0; align-self: start; }
    .lp-video__play { width: 36px; height: 36px; left: 6px; bottom: 6px; }
    .lp-video__play svg { width: 18px; height: 18px; }
    .lp-video__time { top: 5px; right: 5px; bottom: auto; padding: 0 7px; line-height: 1.5; }
}

/* 「はじめかた」の中の動画へのリンク（押すとその場で再生） */
.lp-howto-video { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 10px; border-radius: 999px; background: #fff; color: var(--lp-blue); font-weight: 700; line-height: 1.5; box-shadow: 0 0 0 1px var(--lp-line, #dbe4f5); }
.lp-howto-video svg { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--lp-grad); color: #fff; }
.lp-howto-video:hover { box-shadow: 0 0 0 2px var(--lp-blue); }
.lp-howto-video:focus-visible { outline: 3px solid var(--lp-blue); outline-offset: 2px; }

/* 使える地域の一覧 */
.lp-region { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 22px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); }
.lp-region__name { font-size: 1.3125rem; font-weight: 700; line-height: 1.5; }
.lp-region__badge { display: inline-flex; align-items: center; align-self: flex-start; min-height: 32px; padding: 2px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 700; }
.lp-region__badge--open { background: #e6f7f0; color: #11775a; }
.lp-region__badge--soon { background: rgba(255, 255, 255, .18); color: #fff; }
.lp-region__url { color: #cfe2ff; font-weight: 700; }
.lp-region .lp-link { color: #fff; }
.lp-region__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.lp-region__actions .lp-btn { min-height: 48px; padding: 0 20px; }
.lp-section-dark { background: linear-gradient(135deg, #10275e 0%, #1e3a8a 55%, #3561ff 130%); }
