/* ==========================================================================
   パスキー登録方法ページ（/passkey_info/）専用
   - サイト共通のヘッダー/フッターに影響しないよう、すべて .passkey-lp 配下に限定
   - PCは左右サイドバーで中央カラムが狭いため、レスポンシブは
     ビューポートではなく .passkey-lp の幅（container query）で切り替える
   ========================================================================== */

.passkey-lp {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface2: #f7f7f7;
    --ink: #333333;
    --muted: #666666;
    --line: #dddddd;
    --brand: #ed681a;
    --brand-dark: #bc4c02;
    --brand-soft: #fff3ec;
    --green: #06b64a;
    --green-dark: #04853a;
    --green-bg: #e4f7ec;
    --amber: #b7791f;
    --amber-bg: #fff6db;
    --red: #d92d20;
    --red-bg: #fff0ef;
    --radius: 20px;
    --shadow: 0 12px 32px rgba(51, 51, 51, .14);

    container-type: inline-size;
    display: block;
    width: 100%;
    /* hidden だと内側の position:sticky が効かないため clip を使う */
    overflow: visible;
    overflow-x: clip;
    color: var(--ink);
    background: var(--bg);
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    padding: 0 0 48px;
}

.passkey-lp *,
.passkey-lp *::before,
.passkey-lp *::after {
    box-sizing: border-box;
}

.passkey-lp a {
    color: var(--brand-dark);
    font-weight: 700;
}

.passkey-lp img,
.passkey-lp svg {
    display: block;
}

.passkey-lp h1,
.passkey-lp h2,
.passkey-lp h3,
.passkey-lp p,
.passkey-lp ul,
.passkey-lp ol,
.passkey-lp figure {
    margin: 0;
}

.passkey-lp .muted {
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   ヒーロー
   -------------------------------------------------------------------------- */
.passkey-lp .hero {
    padding: 16px 0 10px;
}

/* PC：上段「文章｜スマホ画像」、下段「ボタン（横並び）」 */
.passkey-lp .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    grid-template-areas:
        "text   visual"
        "cta    cta";
    gap: 24px 28px;
    align-items: center;
    padding: 20px 0 8px;
}

.passkey-lp .hero-text {
    grid-area: text;
    min-width: 0;
}

.passkey-lp .hero-cta {
    grid-area: cta;
    min-width: 0;
}

.passkey-lp .hero-visual {
    grid-area: visual;
    min-width: 0;
}

.passkey-lp .hero-text .hero-points {
    margin-bottom: 0;
}

.passkey-lp .hero-title {
    font-size: clamp(28px, 5cqi, 44px);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 14px;
    font-weight: 900;
}

/* サイト共通の h1 / h2 の枠線・余白を打ち消す */
#main-contents .passkey-lp .hero-title {
    padding: 0;
    border: 0;
    background: none;
    margin: 0 0 14px;
}

.passkey-lp .hero-title em {
    font-style: normal;
    color: var(--brand);
    background: linear-gradient(transparent 62%, var(--brand-soft) 62%);
    padding: 0 2px;
}

.passkey-lp .lead {
    font-size: 16px;
    color: var(--muted);
    margin: 0 0 20px;
    max-width: 34em;
}

.passkey-lp .hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
}

.passkey-lp .hero-points span {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

.passkey-lp .cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
    margin-top: 8px;
}

.passkey-lp .cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.passkey-lp .cta-badge {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin: 0 0 -11px;
    padding: 3px 14px;
    border: 1px solid #ed6c18;
    border-radius: 999px;
    color: #d85e0d;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.passkey-lp .cta-item:not(.primary) .cta-badge {
    border-color: #4a4a4a;
    color: #4a4a4a;
}

.passkey-lp .cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 18px 14px 10px;
    border: 1px solid #4a4a4a;
    border-radius: 3px;
    color: #fff;
    background: #4a4a4a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

.passkey-lp .cta-button.primary {
    border-color: #ed6c18;
    background: #ed6c18;
}

.passkey-lp .cta-button:hover {
    opacity: .85;
    color: #fff;
}

.passkey-lp .note {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 12px;
}

/* ログイン画面イメージ（スマホ風） */
.passkey-lp .phone {
    width: min(280px, 100%);
    margin: 0 auto;
    background: #333;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 8px 18px rgba(51, 51, 51, .12);
}

.passkey-lp .phone-screen {
    background: #f7f7f7;
    color: #333;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.passkey-lp .browserbar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eee;
    padding: 10px 12px;
    font-size: 11px;
    color: #666;
    border-bottom: 1px solid #ddd;
}

.passkey-lp .browserbar .url {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 5px 10px;
    text-align: center;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.passkey-lp .sitehead {
    padding: 14px 16px 12px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.passkey-lp .sitehead b {
    font-size: 17px;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: 7px;
}

.passkey-lp .gmark {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 900;
    font-style: normal;
}

.passkey-lp .pill {
    font-size: 11px;
    font-weight: 800;
    background: var(--brand-soft);
    color: var(--brand-dark);
    padding: 4px 8px;
    border-radius: 999px;
}

.passkey-lp .logincard {
    margin: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 22px 16px;
    text-align: center;
    flex: 1;
}

.passkey-lp .logincard-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
}

.passkey-lp .logincard p {
    font-size: 12.5px;
    color: #666;
    line-height: 1.6;
}

.passkey-lp .logincard .logincard-title {
    font-size: 18px;
    color: #333;
}

.passkey-lp .logincard .logincard-note {
    margin-top: 14px;
    font-size: 11px;
}

.passkey-lp .action {
    margin-top: 14px;
    background: var(--brand);
    color: #fff;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    padding: 13px 12px;
    border-radius: 10px;
}

.passkey-lp .action.action-first {
    margin-top: 20px;
}

.passkey-lp .action.secondary {
    background: #fff;
    color: #333;
    border: 1.5px solid #ddd;
}

.passkey-lp .action.line {
    background: var(--green);
    color: #fff;
}

.passkey-lp .finger {
    width: 84px;
    height: 84px;
    margin: 8px auto;
    border-radius: 50%;
    background: var(--brand-soft);
    display: grid;
    place-items: center;
    color: var(--brand);
}

.passkey-lp .watermark {
    font-size: 10px;
    letter-spacing: .14em;
    font-weight: 800;
    color: #888;
    text-align: center;
    padding: 8px;
    border-top: 1px dashed #ddd;
    background: #fff;
}

/* スクリーンショット */
.passkey-lp .shot {
    margin: 0;
}

.passkey-lp .shot img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 6px 14px rgba(51, 51, 51, .12);
    background: #fff;
}

/* クリック（タップ）で拡大できることを示す（拡大処理は js/passkey_info.js） */
.passkey-lp .shot {
    position: relative;
}

.passkey-lp .shot img {
    cursor: zoom-in;
}

.passkey-lp .shot img:focus:not(:focus-visible) {
    outline: none;
}

.passkey-lp .shot::after {
    content: "拡大";
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 10px 3px 24px;
    border-radius: 999px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") 8px center / 12px 12px no-repeat,
        rgba(51, 51, 51, .78);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    pointer-events: none; /* バッジを押しても画像のクリックとして扱う */
}

/* 拡大表示（body 直下に生成されるため .passkey-lp の外） */
.pk-lightbox {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 24px;
    background: rgba(0, 0, 0, .82);
    cursor: zoom-out;
}

.pk-lightbox[hidden] {
    display: none;
}

.pk-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}

.pk-lightbox-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 26px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
}

/* 影の外に出して文字が曇らないようにする */
.passkey-lp .caption {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 24px;
}

/* --------------------------------------------------------------------------
   ページ内メニュー
   PC：6列の表形式で上部に追従。サイトの固定ヘッダーが出ているときは
       その下に付く（top は js/passkey_info.js が --pk-sticky-top で指定）
   SP：1行の横スクロールで上部に追従（下部の .passkey-contents--sp 参照）
   -------------------------------------------------------------------------- */
.passkey-lp .quicknav {
    position: -webkit-sticky;
    position: sticky;
    top: var(--pk-sticky-top, 0px);
    z-index: 9; /* サイトの固定ヘッダー（z-index:10）より下にして被らないようにする */
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    margin: 32px 0 0; /* ヒーロー（ボタン・注意書き）との間隔 */
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line); /* 隙間1pxを区切り線として見せる */
    overflow: hidden;
}

.passkey-lp .quicknav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 6px 4px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent; /* タップ時の灰色の点滅を出さない */
}

/* PC：追従中は高さを詰めて、本文の邪魔にならないようにする */
.passkey-lp .quicknav.is-stuck {
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
}

.passkey-lp .quicknav.is-stuck a {
    min-height: 34px;
    font-size: 12.5px;
}

.passkey-lp .quicknav a::after {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    margin: -3px 0 0 6px;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(45deg);
}

/* .passkey-lp .quicknav a:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
} */

/* いま読んでいるセクション（js/passkey_info.js が付与） */
.passkey-lp .quicknav a.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.passkey-lp .quicknav a.is-active::after {
    border-color: #fff;
}

/* --------------------------------------------------------------------------
   セクション共通
   -------------------------------------------------------------------------- */
/* 目次・ボタンから飛んだときの位置は js/passkey_info.js で
   「追従メニューの下端 + 24px」に合わせる（PC / SP 共通）。
   ここの scroll-margin-top は JS が動かない場合の予備
   （PC：固定ヘッダー約63px + 追従メニュー約36px + 24px） */
.passkey-lp .pk-section {
    margin-top: 44px;
    scroll-margin-top: 124px;
}

.passkey-lp .sec-head {
    margin-bottom: 16px;
}

.passkey-lp .sec-head h2 {
    font-size: clamp(22px, 3.6cqi, 30px);
    line-height: 1.3;
    margin: 6px 0 8px;
    letter-spacing: -.01em;
}

/* サイト共通の見出し装飾を打ち消す
   - SP/PC：#main-contents h2（枠線・余白0・白背景・文字色）
   - PC：.center-contents h2（枠線・影・左のオレンジ帯・font-size !important）
   - PC：.center-contents h3（下線3px・余白） */
#main-contents .passkey-lp h2 {
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
}

#main-contents .passkey-lp h2::before {
    content: none;
    display: none;
}

#main-contents .passkey-lp .sec-head h2 {
    font-size: clamp(22px, 3.6cqi, 30px) !important;
    margin: 6px 0 12px;
}

#main-contents .passkey-lp h3 {
    padding: 0;
    border: 0;
}

.passkey-lp .sec-head p {
    color: var(--muted);
    max-width: 44em;
}

.passkey-lp .kicker {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    color: var(--brand);
}

/* パスキーとは */
.passkey-lp .benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.passkey-lp .benefit {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.passkey-lp .benefit .icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--brand-soft);
    display: grid;
    place-items: center;
    color: var(--brand);
    font-size: 22px;
    margin-bottom: 12px;
}

.passkey-lp .benefit h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.passkey-lp .benefit p {
    color: var(--muted);
    font-size: 14px;
}

/* 始める前に */
.passkey-lp .prep-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.passkey-lp .prep-card.prep-card-gap {
    margin-top: 14px;
}

.passkey-lp .prep-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.passkey-lp .checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.passkey-lp .checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14.5px;
}

.passkey-lp .check {
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
    margin-top: 2px;
    padding: 0 4px;
}

/* 「用意するもの」：PCは横3列のカード（SPは下のレスポンシブで縦並び） */
.passkey-lp .checklist-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.passkey-lp .checklist-cards li {
    padding: 16px 14px 14px;
    border-radius: 14px;
    background: var(--surface2);
    font-size: 14px;
    line-height: 1.7;
}

/* 緑のアイコン（高さ24px）と小見出しの1行目の中心をそろえる */
.passkey-lp .checklist-cards .check {
    margin-top: 0;
}

.passkey-lp .checklist-cards strong {
    display: inline-block;
    line-height: 24px;
}

/* --------------------------------------------------------------------------
   登録手順
   -------------------------------------------------------------------------- */
.passkey-lp .steps {
    display: grid;
    gap: 18px;
}

/* 「STEP番号＋見出し（右に進み具合）」→「画像｜本文」 */
.passkey-lp .step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
}

/* PC：見出しが長くても進み具合が下に回り込まないよう、左右2列に固定（見出し側が折り返す） */
.passkey-lp .step-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px 18px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.passkey-lp .step-body {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* STEP 4：画像2枚を横に並べ、本文はその下 */
.passkey-lp .step-body--gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.passkey-lp .step-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 300px));
    justify-content: center;
    gap: 28px;
    align-items: start;
}

.passkey-lp .step-media {
    min-width: 0;
}

.passkey-lp .step .caption b {
    margin-right: 2px;
    color: var(--brand);
}

/* ① ステップ番号 */
.passkey-lp .step-num {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.passkey-lp .step-num b {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 14px;
}

/* 見出し */
.passkey-lp .step h3 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.45;
    color: var(--ink);
    margin: 10px 0 0;
}

/* 文章 */
.passkey-lp .step p {
    color: #444;
    font-size: 15px;
    line-height: 1.85;
    margin: 0 0 12px;
}

/* .step p より優先させ、キャプションを画像の影の外に出す */
.passkey-lp .step .caption {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.passkey-lp .step ul {
    margin: 0;
    padding-left: 1.4em;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

/* サイト共通の li{list-style:none} を打ち消す */
.passkey-lp .step ul li {
    list-style: disc;
    margin-top: 4px;
}

.passkey-lp .step ul strong,
.passkey-lp .step p strong {
    color: var(--ink);
}

/* 注意枠（うまくいかないとき・次回から）：左にオレンジの線 */
.passkey-lp .tip {
    margin-top: 16px;
    background: var(--surface2);
    border-left: 4px solid var(--brand);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
}

.passkey-lp .tip strong {
    color: var(--brand-dark);
}

/* 経過 */
.passkey-lp .flowline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    white-space: nowrap;
    background: var(--surface2);
    font-size: 11.5px;
    font-weight: 700;
}

.passkey-lp .flowline span {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 9px;
    color: var(--muted);
}

.passkey-lp .flowline span.now {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.passkey-lp .flowline span.done {
    background: var(--green-bg);
    border-color: var(--green);
    color: var(--green-dark);
}

.passkey-lp .flowline i {
    font-style: normal;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   追加の手順
   -------------------------------------------------------------------------- */
/* PC：画像を左、説明カードを右 */
.passkey-lp .add-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.passkey-lp .add-grid .caption {
    margin-top: 24px;
}

.passkey-lp .add-flow {
    margin: 0;
    padding-left: 1.3em;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.9;
}

.passkey-lp .add-flow li {
    list-style: decimal;
}

.passkey-lp .step ul li::marker,
.passkey-lp .add-flow li::marker {
    color: var(--brand);
    font-weight: 700;
}

.passkey-lp .add-flow strong,
.passkey-lp .add-note strong,
.passkey-lp .delete-note strong {
    color: var(--ink);
}

.passkey-lp .add-note {
    font-size: 13.5px;
    color: var(--muted);
    margin: 12px 0 0;
}

.passkey-lp .delete-note {
    color: var(--muted);
    font-size: 14.5px;
}

/* --------------------------------------------------------------------------
   困ったとき
   -------------------------------------------------------------------------- */
.passkey-lp .trouble {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.passkey-lp .tcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.passkey-lp .tcard h3 {
    margin: 0 0 6px;
    font-size: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.passkey-lp .tcard p {
    color: var(--muted);
    font-size: 14px;
}

.passkey-lp .tcard p strong {
    color: var(--ink);
}

.passkey-lp .badge-warn,
.passkey-lp .badge-err {
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.passkey-lp .badge-warn {
    background: var(--amber-bg);
    color: var(--amber);
}

.passkey-lp .badge-err {
    background: var(--red-bg);
    color: var(--red);
}

/* --------------------------------------------------------------------------
   よくある質問
   -------------------------------------------------------------------------- */
.passkey-lp details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 4px 18px;
    margin-bottom: 10px;
}

.passkey-lp summary {
    cursor: pointer;
    font-weight: 800;
    padding: 14px 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    list-style: none;
}

.passkey-lp summary::-webkit-details-marker {
    display: none;
}

.passkey-lp summary::after {
    content: "＋";
    margin-left: auto;
    padding-left: 12px;
    color: var(--brand);
}

.passkey-lp details[open] summary::after {
    content: "－";
}

.passkey-lp details p {
    color: var(--muted);
    margin: 0 0 16px;
    font-size: 14.5px;
}

/* --------------------------------------------------------------------------
   PC用の調整
   -------------------------------------------------------------------------- */
/* #all-contents の overflow:hidden（style.css）があると追従が効かないため解除。
   float の回り込み解除は #all-contents::after（clearfix）が担うので影響なし */
#all-contents.passkey-contents--pc {
    overflow: visible;
}

/* --------------------------------------------------------------------------
   SP用テンプレートの調整（SNSログインページと同様：全幅化・サイドバー非表示）
   画面幅ではなくテンプレートのクラスで指定する。
   （横向きのスマホなど、幅768px以上でSPテンプレートが表示される場合も崩れないように）
   -------------------------------------------------------------------------- */
#all-contents.passkey-contents--sp {
    width: 100%;
    margin: 0;
}

.passkey-contents--sp #main-contents {
    display: block;
    width: 100%;
}

.passkey-contents--sp #main-contents .center-contents {
    float: none;
    width: 100%;
    margin: 0;
}

.passkey-contents--sp .side-table,
.passkey-contents--sp #side-contents {
    display: none;
}

.passkey-contents--sp .passkey-lp {
    max-width: 1000px; /* 横向き・大きい画面で横に広がりすぎないように */
    margin: 0 auto;
    padding: 0 15px 40px;
}

/* ページ内メニュー：1行の横スクロールで上部に追従 */
.passkey-contents--sp .passkey-lp .quicknav {
    display: flex;
    gap: 6px;
    margin: 24px -15px 0; /* 画面幅いっぱいに広げる（上はスマホ画像のキャプションとの間隔） */
    padding: 8px 15px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* scroll-snap は自動の横スクロール（js）とぶつかって細かく震えるため使わない */
    scrollbar-width: none;
    /* 右端に影を出して「続きがある」ことを示す（端までスクロールすると消える） */
    background:
        linear-gradient(to left, #fff 40%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
        radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0)) right center / 14px 100% no-repeat scroll,
        #fff;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, .06); */
}

.passkey-contents--sp .passkey-lp .quicknav::-webkit-scrollbar {
    display: none;
}

.passkey-contents--sp .passkey-lp .quicknav a,
.passkey-contents--sp .passkey-lp .quicknav.is-stuck a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-size: 12.5px;
    white-space: nowrap;
}

.passkey-contents--sp .passkey-lp .quicknav a.is-active {
    border-color: var(--brand);
    background: var(--brand);
}

.passkey-contents--sp .passkey-lp .quicknav a:last-child {
    margin-right: 15px;
}

/* JS が動かない場合の予備（追従メニュー約51px + 24px） */
.passkey-contents--sp .passkey-lp .pk-section {
    scroll-margin-top: 76px;
}

/* 画面幅いっぱいまで広げたときは、メニューも中央の幅に合わせる */
@media (min-width: 1030px) {
    .passkey-contents--sp .passkey-lp .quicknav {
        margin-right: 0;
        margin-left: 0;
        border: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 8px 8px;
    }
}

/* --------------------------------------------------------------------------
   レスポンシブ（.passkey-lp の幅で切り替え）
   PCの中央カラムは約740〜780px。それより狭い場合（SPの縦向きなど）は1列にする
   -------------------------------------------------------------------------- */
@container (max-width: 639px) {
    /* SP：文章 → ボタン（縦並び） → スマホ画像 */
    .passkey-lp .hero-grid {
        grid-template-areas:
            "text"
            "cta"
            "visual";
        align-items: start;
    }

    .passkey-lp .hero-text .hero-points {
        margin-bottom: 4px;
    }

    .passkey-lp .cta-row {
        grid-template-columns: 1fr;
        max-width: 430px;
    }

    .passkey-lp .hero-grid,
    .passkey-lp .step-body,
    .passkey-lp .step-gallery,
    .passkey-lp .checklist-cards,
    .passkey-lp .benefits,
    .passkey-lp .trouble,
    .passkey-lp .add-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .passkey-lp .phone {
        width: min(300px, 100%);
    }

    .passkey-lp .step {
        padding: 18px;
    }

    /* SP：見出し → 進み具合 → 画像 → 本文 */
    .passkey-lp .step-head {
        display: block;
    }

    .passkey-lp .step-head .flowline {
        margin-top: 12px;
        flex-wrap: wrap;
    }

    .passkey-lp .step-body,
    .passkey-lp .step-gallery,
    .passkey-lp .add-grid {
        gap: 18px;
    }

    .passkey-lp .quicknav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .passkey-lp .shot {
        max-width: 300px;
        margin: 0 auto;
        width: 100%;
    }
}

/* PC（中央カラムが広いとき）：ヒーローのスマホ画像を、文章（タグ群まで）と同じくらいの高さに詰める */
@container (min-width: 640px) {
    .passkey-lp .phone {
        width: 240px;
        padding: 8px;
        border-radius: 30px;
    }

    .passkey-lp .phone-screen {
        border-radius: 23px;
    }

    .passkey-lp .browserbar {
        padding: 7px 10px;
        font-size: 10px;
    }

    .passkey-lp .browserbar .url {
        padding: 3px 8px;
    }

    .passkey-lp .sitehead {
        padding: 9px 12px;
    }

    .passkey-lp .sitehead b {
        font-size: 15px;
    }

    .passkey-lp .gmark {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }

    .passkey-lp .logincard {
        margin: 10px;
        padding: 14px 12px;
    }

    .passkey-lp .finger {
        width: 56px;
        height: 56px;
        margin: 0 auto 6px;
    }

    .passkey-lp .finger svg {
        width: 30px;
        height: 30px;
    }

    .passkey-lp .logincard .logincard-title {
        font-size: 15px;
    }

    .passkey-lp .logincard p {
        font-size: 11px;
    }

    .passkey-lp .action {
        margin-top: 8px;
        padding: 9px 10px;
        font-size: 12px;
        border-radius: 8px;
    }

    .passkey-lp .action.action-first {
        margin-top: 12px;
    }

    .passkey-lp .logincard .logincard-note,
    .passkey-lp .watermark {
        display: none;
    }

    .passkey-lp .hero-visual .caption {
        margin-top: 16px;
    }
}

/* container query 非対応ブラウザ向けのフォールバック */
@supports not (container-type: inline-size) {
    @media (max-width: 767px) {
        .passkey-lp .hero-grid,
        .passkey-lp .step-body,
        .passkey-lp .step-gallery,
        .passkey-lp .checklist-cards,
        .passkey-lp .benefits,
        .passkey-lp .trouble,
        .passkey-lp .add-grid {
            grid-template-columns: 1fr;
        }

        .passkey-lp .step-head {
            display: block;
        }

        .passkey-lp .shot {
            max-width: 300px;
            margin: 0 auto;
        }

        .passkey-lp .hero-grid {
            grid-template-areas:
                "text"
                "cta"
                "visual";
        }

        .passkey-lp .cta-row {
            grid-template-columns: 1fr;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .passkey-lp * {
        transition: none;
        animation: none;
    }
}
