@charset "UTF-8";

/*
 * azit の新しいレイアウト（CH-1695・レイアウト AzitPlus.app・element/app_topbar.php・templates/Home/index.php）
 * - 当てるのは body.azit-app の中だけ（今までのレイアウトの画面・ほかのサービスは変えない）
 * - 形は SiteBeacon のログインのあとの画面にそろえる（担当者さんの決め #21870）：白〜うすい灰色の地・白いカード（角 12px・うすい線・ごく弱い影）・
 *   白い帯に下のうすい線・タブの形のリンク・落ち着いた青 1 色（.rc の --brand と同じ #0b5cad）。暗い地・光る線・光る影は使わない
 * - 共通のテーマ（theme-standard.css）は読んだまま、ここで地・歯車・帯を明るい形に替える（SiteBeacon のレイアウトと同じ考え）。
 *   共通のテーマの色の変数は替えない（ダイアログ・知らせの箱は今までの見た目のまま）
 * - SiteBeacon の CSS を共通の部品に出さず、ここで作る理由：SiteBeacon の帯・カードの決まりは sb- の名前で、5 つのファイルに分けて読む順で勝ち負けが
 *   決まっている。共通に出すとその並びと名前を動かすことになり、SiteBeacon の見た目と試験を変えるおそれがあるため
 * - 帯は .app-header も付けている（app-message.js が帯の下を見るため）。共通の .app-header の固定・高さ・背景は、ここで替える
 * - スマホ（760px 以下）は 2 段：上にアイコン・下に全幅の検索の欄
 * - 選ぶ欄（プルダウン）は帯とホームに置かない（共通の高さ 100% の指定に当たらないように）
 * - 文字と地のコントラストは 4.5:1 以上（下の色の組み合わせで確認）
 */

.azit-app {
    --azit-accent: #0b5cad;
    /* 白の地で 6.7:1・うすい青の地で 5.9:1 以上 */
    --azit-accent-dark: #084785;
    --azit-accent-soft: #e8f2fc;
    --azit-accent-hover: #f3f8fd;
    --azit-text: #16202b;
    --azit-text-sub: #4b5764;
    /* 白の地で 7.4:1 */
    --azit-text-muted: #5a6672;
    /* うすい灰色の地（#f5f7f9）で 5.5:1・白で 5.9:1 */
    --azit-nav-text: #3b4754;
    --azit-line: #e1e5ea;
    --azit-line-strong: #c5cdd5;
    --azit-bg: #f5f7f9;
    --azit-surface: #fff;
    --azit-danger: #b42318;
    --azit-caution: #9a5b00;
    --azit-caution-soft: #fff8ec;
    --azit-caution-line: #f0d9a8;
    --azit-radius: 12px;
    --azit-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    --azit-font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
}

/* --- ページの地：うすい灰色で画面の下まで。共通のテーマの歯車は出さない --- */
html:has(body.azit-app),
body.azit-app {
    min-height: 100%;
    background: var(--azit-bg) !important;
}

body.azit-app {
    font-family: var(--azit-font);
    -webkit-font-smoothing: antialiased;
}

body.azit-app::before,
body.azit-app::after {
    content: none !important;
    display: none !important;
    animation: none !important;
}

.azit-app a:focus-visible,
.azit-app button:focus-visible,
.azit-app summary:focus-visible {
    outline: 3px solid var(--azit-accent);
    outline-offset: 2px;
}

/* --- 本文の枠：最大 1240px・字は濃い灰色（ダイアログ・知らせの箱は枠の外なので今までの色のまま） --- */
body.azit-app .app-body.azit-app-body {
    width: 100%;
    max-width: 1240px;
    height: auto; /* 共通の .app-body の高さ 100% をやめる（中が長いとき、地が途中で切れないように） */
    margin: 0 auto;
    padding: 28px 24px 96px !important; /* 下は右下の丸いボタンの分も空ける（CH-1695 agent #21891） */
    background: transparent;
    color: var(--azit-text);
}

/* --- 本文の左と幅をそろえる（CH-1902）：PC（761px〜）では、画面ごとの入れ物の外側の左右の余白・最大幅・真ん中寄せをやめ、
   上の枠の余白（左右 24px）だけにする。最初の箱の左は枠の内側にそろい、一覧・表・カードの画面は枠いっぱい。
   文の画面（.azit-acc：お知らせ・ヘルプ・お問い合わせ・ログインの設定・退会）も枠いっぱい（入力欄だけ最大 710px）。
   白いカードの中の見出しは、カードの左の内側の余白 24px（線 1px と合わせて枠の内側から 25px）にそろえる。
   スマホ（〜760px）は今までの余白のまま（ここは当てない） --- */
@media (min-width: 761px) {
    body.azit-app .azit-app-body > .azit-home,
    body.azit-app .azit-app-body > .azit-plan,
    body.azit-app .azit-app-body > .azit-acc,
    body.azit-app .azit-app-body > .rc {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    body.azit-app .azit-app-body > .azit-home,
    body.azit-app .azit-app-body > .azit-plan {
        max-width: none;
    }

    /* 文の画面も枠いっぱい（担当者さんの決め・agent #23331「横幅を広げる」）。
       入力欄（お問い合わせ・ログインの設定）は広がりすぎると打ちにくいので、欄だけ前のカードの中の幅（760 − 線と余白 50 ＝ 710px）までにする */
    body.azit-app .azit-app-body > .azit-acc {
        max-width: none;
    }

    body.azit-app .azit-app-body > .azit-acc .azit-acc-input {
        max-width: 710px;
    }

    /* 前の部品の画面（BG の仕入れ候補など・azit-app-legacy.css）：bg-candidates.css の最大 1100px・真ん中寄せをやめて枠いっぱい */
    body.azit-app .azit-app-body .bg-cand,
    body.azit-app .azit-app-body .bg-cand-page .contents-header .table-wrapper {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    body.azit-app .azit-app-body .bg-cand-head {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* まとめてチェック（.rc の白い箱の中に、もう 1 つ線の箱があった）：中の箱の線と左右の余白をやめ、見出しを履歴の画面と同じ位置に */
    body.azit-app .azit-app-body > .rc[data-rc-batch-page] .batch-box {
        border: 0;
        border-radius: 0;
        background: transparent;
        padding-left: 0;
        padding-right: 0;
    }
}

/* 利益のチェック・まとめてチェック・設定のページ（.rc の白い箱）：中は変えず、うすい灰色の地との境目にうすい線とごく弱い影だけ */
body.azit-app .azit-app-body > .rc {
    border: 1px solid var(--azit-line);
    box-shadow: var(--azit-shadow);
}

/* リサーチの詳細（利益のチェックの結果があるとき・CH-1695 #21880 の絵 s06・s07）：.rc の白い箱をやめ、うすい灰色の地に
   白いカード（商品の見出し・段階ごと）を並べる。上の ASIN の欄（入口）は白いカードにする（入口の中は次の段で直す）。
   結果の列は入口のカードと同じ幅（左右の余白なし）。
   リサーチの検索（入口〔data-rc-recent〕とキーワードの結果〔data-rc-keyword〕・#21880 の絵 s04・s05）も同じ形にする（CH-1695） */
body.azit-app .azit-app-body > .rc:has([data-rc-recent]),
body.azit-app .azit-app-body > .rc:has([data-rc-keyword]),
body.azit-app .azit-app-body > .rc:has([data-rc-result]) {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

body.azit-app .azit-app-body > .rc:has([data-rc-recent]) > .hero,
body.azit-app .azit-app-body > .rc:has([data-rc-keyword]) > .hero,
body.azit-app .azit-app-body > .rc:has([data-rc-result]) > .hero {
    background: var(--azit-surface);
    border: 1px solid var(--azit-line);
    border-radius: 14px;
    box-shadow: var(--azit-shadow);
    padding-bottom: 18px;
}

body.azit-app .azit-app-body > .rc:has([data-rc-recent]) > .wrap,
body.azit-app .azit-app-body > .rc:has([data-rc-keyword]) > .wrap,
body.azit-app .azit-app-body > .rc:has([data-rc-result]) > .wrap {
    padding-left: 0;
    padding-right: 0;
}

/* 仕入れリスト（/azit-plus/search/stocks）の本文は stock-list.css で明るい形にする（上の設定の帯・段の並び・カード。暗いカードにまとめるのはやめた） */

/* --- 帯：白・下にうすい線（#21880 の絵 s01：マーク＋AZIT＋添え書き・タブ・右に検索・⚙・丸いアカウント） --- */
.azit-app .app-header.azit-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: auto;
    width: 100%;
    border-bottom: 1px solid var(--azit-line);
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    color: var(--azit-text);
    font-family: var(--azit-font);
}

.azit-app .app-header.azit-topbar:not(.is-masquerading):not(.is-debug) {
    background: var(--azit-surface) !important;
}

.azit-app .azit-topbar-inner {
    margin: 0 auto;
    padding: 12px 36px; /* 絵のとおり、帯は画面の幅いっぱい（本文の枠より広い） */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

/* マーク（四角い青に白い虫めがね・白で 6.7:1）＋AZIT＋「仕入れ判断」 */
.azit-app .azit-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--azit-text) !important;
    text-decoration: none;
    line-height: 1;
}

.azit-app .azit-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--azit-accent);
    color: #fff;
    font-size: 15px;
}

.azit-app .azit-brand-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--azit-text);
}

.azit-app .azit-brand-sub {
    font-size: 13px;
    color: var(--azit-text-muted);
}

/* タブ：字だけ・今の画面はうすい青の地（字 #084785 で 8.2:1） */
.azit-app .azit-nav {
    display: flex;
    gap: 4px;
    font-size: 15px;
}

.azit-app .azit-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--azit-nav-text) !important;
    font-weight: 700;
    text-decoration: none;
}

.azit-app .azit-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--azit-nav-text) !important;
    text-decoration: none;
    font-size: 18px;
}

.azit-app .azit-nav-link:hover,
.azit-app .azit-icon-link:hover {
    background: var(--azit-bg);
}

.azit-app .azit-nav-link.is-current,
.azit-app .azit-icon-link.is-current {
    background: var(--azit-accent-soft);
    color: var(--azit-accent-dark) !important;
}

/* --- 帯の小さな検索の欄（ホーム以外の画面だけ）：うすい灰色の欄・左に虫めがね（押すと送る） --- */
.azit-app .azit-bar-search {
    position: relative;
    flex: 0 1 390px;
    display: flex;
    margin: 0 0 0 auto;
}

.azit-app .azit-bar-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    margin: 0;
    padding: 0 12px 0 40px;
    border: 1px solid var(--azit-line-strong);
    border-radius: 8px;
    background: var(--azit-bg);
    color: var(--azit-text);
    font-size: 14px;
}

.azit-app .azit-bar-search-input::placeholder {
    color: var(--azit-text-muted);
}

.azit-app .azit-bar-search-input:focus {
    outline: none;
    border-color: var(--azit-accent);
    background: var(--azit-surface);
    box-shadow: 0 0 0 3px var(--azit-accent-soft);
}

.azit-app .azit-bar-search-button {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px 0 0 8px;
    background: transparent;
    color: var(--azit-text-sub);
    font-size: 14px;
    cursor: pointer;
}

.azit-app .azit-bar-search-button:hover {
    color: var(--azit-accent);
}

/* --- 右：⚙・丸いアカウント --- */
.azit-app .azit-account {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    font-size: 14px;
    color: var(--azit-text-sub);
}

.azit-app .azit-topbar-inner.has-search .azit-account {
    margin-left: 0;
}

.azit-app .azit-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid var(--azit-caution-line);
    border-radius: 999px;
    background: var(--azit-caution-soft);
    color: var(--azit-caution);
    font-size: 12px;
    font-weight: 700;
}

.azit-app .azit-account-menu {
    position: relative;
}

.azit-app .azit-account-button {
    position: relative;
    list-style: none;
    width: 40px;
    height: 40px;
    border: 1px solid #d5dbe1;
    border-radius: 50%;
    background: var(--azit-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--azit-nav-text);
    cursor: pointer;
    user-select: none;
}

.azit-app .azit-account-button::-webkit-details-marker {
    display: none;
}

.azit-app .azit-account-menu[open] > .azit-account-button,
.azit-app .azit-account-button:hover {
    border-color: var(--azit-accent);
}

/* お知らせの未読：赤い丸だけ（数はボタンの読み上げの名前とメニューの中） */
.azit-app .azit-account-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--azit-surface);
    border-radius: 50%;
    background: var(--azit-danger);
}

.azit-app .azit-account-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    min-width: 220px;
    padding: 8px;
    background: var(--azit-surface);
    border: 1px solid var(--azit-line);
    border-radius: var(--azit-radius);
    box-shadow: 0 8px 24px rgba(22, 32, 43, 0.12);
}

.azit-app .azit-account-name {
    margin: 0;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--azit-text-muted);
    border-bottom: 1px solid var(--azit-line);
}

.azit-app .azit-account-panel ul {
    list-style: none;
    margin: 0;
    padding: 4px 0 0;
}

.azit-app .azit-account-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--azit-text) !important;
    text-decoration: none;
    font-size: 14px;
}

.azit-app .azit-account-panel a:hover {
    background: var(--azit-bg);
}

.azit-app .azit-account-panel a[aria-current="page"] {
    background: var(--azit-accent-soft);
    color: var(--azit-accent-dark) !important;
    font-weight: 700;
}

.azit-app .azit-account-logout {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--azit-line);
}

.azit-app .azit-account-count {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--azit-danger);
    color: #fff;
    font-size: 12px;
    text-align: center;
}

/* --- 1080px より狭いとき：添え書きを外す（タブを 1 段に収める） --- */
@media (max-width: 1080px) {
    .azit-app .azit-brand-sub {
        display: none;
    }
}

/* --- スマホ（絵の s03）：マーク＋AZIT・⚙・アカウントだけ。タブは出さない（行き先はホームのメニュー）。ホーム以外は下に全幅の検索の欄 --- */
@media (max-width: 760px) {
    .azit-app .azit-topbar-inner {
        padding: 10px 16px;
        gap: 8px;
    }

    .azit-app .azit-nav {
        display: none;
    }

    .azit-app .azit-brand-name {
        font-size: 21px;
    }

    .azit-app .azit-topbar-inner.has-search .azit-account {
        margin-left: auto;
    }

    .azit-app .azit-bar-search {
        order: 3;
        flex: 1 0 100%;
        margin: 0;
    }

    .azit-app .azit-bar-search-input {
        height: 44px;
        font-size: 16px;
    }

    .azit-app .azit-bar-search-button {
        width: 44px;
        height: 44px;
    }

    /* 下は 96px：右下に浮いている丸いボタン（ページの上に重なる共通の部品）が、いちばん下のカードやボタンに重ならないように（CH-1695 agent #21887・#21891） */
    body.azit-app .app-body.azit-app-body {
        padding: 16px 12px 96px !important;
    }
}

/*
 * azit のホーム（CH-1695・plugins/AzitPlus/templates/Home/index.php・#21880 の絵 s02・s03）
 * - 白いカード：見出し（後半を青）＋大きな検索の欄＋最近の検索のチップ、右に小さな売れ行きの絵（スマホでは出さない）
 * - メニューのカード 6 つ（アイコンは機能ごとの色・右に →・さわると少し浮く・PC は 3 列 × 2 段・スマホは縦 1 列・高さはそろえる）
 * - 開ける人だけの仕入れ候補の 1 行
 * - アイコンの白い字と地は 4.5:1 以上：青 6.7・紫 6.6・緑 5.1・灰 5.8・橙 4.7・赤 5.4
 *   （緑と橙は絵の #0f8a6a・#d07a12 だと 4.3・3.2 なので、同じ色みで少し濃くした）
 */
/* ホームも本文の枠はほかの画面と同じ（最大 1240px）。前は少し広く 1368px にしていて、枠からはみ出していた（CH-1902） */

.azit-app .azit-home {
    color: var(--azit-text);
}

.azit-app .azit-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: 40px 24px 28px; /* 左右はほかの画面の白いカードと同じ 24px（見出しの左をそろえる・CH-1902。前は 48px） */
    border: 1px solid var(--azit-line);
    border-radius: 14px;
    background: var(--azit-surface);
    box-shadow: var(--azit-shadow);
}

.azit-app .azit-home-title {
    margin: 0 0 24px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--azit-text);
}

.azit-app .azit-home-title-accent {
    display: block;
    color: var(--azit-accent);
}

.azit-app .azit-home-search {
    display: flex;
    gap: 12px;
    max-width: 900px;
}

.azit-app .azit-home-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 64px;
    margin: 0;
    padding: 0 22px;
    border: 2px solid var(--azit-accent);
    border-radius: 10px;
    background: var(--azit-surface);
    color: var(--azit-text);
    font-size: 20px;
}

.azit-app .azit-home-search-input::placeholder {
    color: var(--azit-text-muted);
}

.azit-app .azit-home-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--azit-accent-soft);
}

.azit-app .azit-home-search-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 64px;
    margin: 0;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--azit-accent);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.azit-app .azit-home-search-button:hover {
    background: var(--azit-accent-dark);
}

/* 最近の検索のチップ（うすい青の地に青い字で 5.9:1） */
.azit-app .azit-home-recent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 12px;
}

.azit-app .azit-home-recent-label {
    font-size: 14px;
    color: var(--azit-text-muted);
}

.azit-app .azit-home-recent-label::after {
    content: "：";
}

.azit-app .azit-home-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--azit-accent-soft);
    color: var(--azit-accent) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.azit-app .azit-home-chip:hover {
    background: #d6e7f8;
    color: var(--azit-accent-dark) !important;
}

/* 小さな売れ行きの絵（飾り） */
.azit-app .azit-home-chart {
    display: block;
    width: 260px;
    height: 210px;
}

.azit-app .azit-home-chart-bar.is-low {
    fill: #cfe2f6;
}

.azit-app .azit-home-chart-bar.is-mid {
    fill: #9cc5ee;
}

.azit-app .azit-home-chart-bar.is-high {
    fill: var(--azit-accent);
}

.azit-app .azit-home-chart-line {
    fill: none;
    stroke: #1a8a4a;
    stroke-width: 4;
    stroke-linecap: round;
}

/* メニューのカード */
.azit-app .azit-home-menu {
    margin-top: 40px;
}

.azit-app .azit-home-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr; /* 6 つのカードの高さをそろえる（#21862 の 2） */
    gap: 20px;
}

.azit-app .azit-home-cards > li {
    display: flex;
    margin: 0;
}

.azit-app .azit-home-card {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "icon label arrow"
        "icon note arrow";
    align-content: center;
    align-items: center;
    gap: 4px 18px;
    min-height: 124px;
    padding: 22px 24px;
    border: 1px solid var(--azit-line);
    border-radius: 14px;
    background: var(--azit-surface);
    box-shadow: var(--azit-shadow);
    color: var(--azit-text) !important;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

/* さわると少し浮く（線を青に） */
.azit-app .azit-home-card:hover,
.azit-app .azit-home-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--azit-accent);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
}

.azit-app .azit-home-card-icon {
    grid-area: icon;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    color: #fff;
    font-size: 26px;
}

.azit-app .azit-home-card-icon.is-tone-blue {
    background: var(--azit-accent);
}

.azit-app .azit-home-card-icon.is-tone-purple {
    background: #7a3fb0;
}

.azit-app .azit-home-card-icon.is-tone-green {
    background: #0d7d60;
}

.azit-app .azit-home-card-icon.is-tone-gray {
    background: #5b6678;
}

.azit-app .azit-home-card-icon.is-tone-orange {
    background: #ad600b;
}

.azit-app .azit-home-card-icon.is-tone-red {
    background: #c0392b;
}

.azit-app .azit-home-card-label {
    grid-area: label;
    align-self: end;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.azit-app .azit-home-card-note {
    grid-area: note;
    align-self: start;
    font-size: 14px;
    line-height: 1.6;
    color: var(--azit-text-muted);
}

.azit-app .azit-home-card-arrow {
    grid-area: arrow;
    font-size: 22px;
    color: var(--azit-text-muted);
    transition: transform 0.15s, color 0.15s;
}

.azit-app .azit-home-card:hover .azit-home-card-arrow {
    transform: translateX(3px);
    color: var(--azit-accent);
}

/* 仕入れ候補の 1 行（開ける人だけ・全体が押せる） */
.azit-app .azit-home-bg {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 32px;
    margin: 32px 0 0;
    padding: 16px 28px;
    border: 1px solid var(--azit-line);
    border-radius: 14px;
    background: var(--azit-surface);
    box-shadow: var(--azit-shadow);
    color: var(--azit-text) !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.azit-app .azit-home-bg:hover,
.azit-app .azit-home-bg:focus-visible {
    border-color: var(--azit-accent);
}

.azit-app .azit-home-bg-link {
    margin-left: auto;
    color: var(--azit-accent);
    font-size: 18px;
}

/* 名前の横の「🔒 あなただけ」（CH-1919）。設定の BG 限定（research-settings.css の .rc-bg-only）と同じ見た目・色は同じ値の変数 */
.azit-app .azit-home-bg-label .rc-bg-only {
    display: inline-block;
    margin-left: 8px;
    padding: 0 10px;
    border: 1px solid var(--azit-accent);
    border-radius: 999px;
    background: var(--azit-accent-soft);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
}

/*
 * はじめにすること（CH-1861・element home_onboarding）。検索の欄のカードの下のカード 1 枚。
 * 白いカード・線・角・影・色はホームのカードと同じ変数だけ（新しい色は作らない）。行き先のボタンは最近の検索のチップ（.azit-home-chip）と同じ形
 */
.azit-app .azit-home-onb {
    margin-top: 24px;
    padding: 22px 28px 10px;
    border: 1px solid var(--azit-line);
    border-radius: 14px;
    background: var(--azit-surface);
    box-shadow: var(--azit-shadow);
}

.azit-app .azit-home-onb[hidden] {
    display: none;
}

.azit-app .azit-home-onb-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.azit-app .azit-home-onb-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--azit-text);
}

.azit-app .azit-home-onb-count {
    font-size: 14px;
    color: var(--azit-text-muted);
}

.azit-app .azit-home-onb-close {
    margin: 0 0 0 auto;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid var(--azit-line-strong);
    border-radius: 999px;
    background: var(--azit-surface);
    color: var(--azit-text-sub);
    font-size: 14px;
    cursor: pointer;
}

.azit-app .azit-home-onb-close:hover,
.azit-app .azit-home-onb-close:focus-visible {
    border-color: var(--azit-accent);
    color: var(--azit-accent);
}

.azit-app .azit-home-onb-steps {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.azit-app .azit-home-onb-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 16px;
    margin: 0;
    padding: 14px 0;
    border-top: 1px solid var(--azit-line);
}

.azit-app .azit-home-onb-num {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--azit-accent);
    border-radius: 50%;
    color: var(--azit-accent);
    font-size: 15px;
    font-weight: 700;
}

.azit-app .azit-home-onb-step.is-done .azit-home-onb-num {
    background: var(--azit-accent-soft);
}

.azit-app .azit-home-onb-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.azit-app .azit-home-onb-step-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--azit-text);
}

.azit-app .azit-home-onb-done {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--azit-accent);
}

.azit-app .azit-home-onb-note {
    font-size: 14px;
    line-height: 1.6;
    color: var(--azit-text-muted);
}

.azit-app .azit-home-onb-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 14px;
}

.azit-app .azit-home-onb-help {
    color: var(--azit-accent);
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 1080px) {
    .azit-app .azit-home-hero {
        padding: 32px 24px 24px;
    }

    .azit-app .azit-home-title {
        font-size: 32px;
    }

    .azit-app .azit-home-chart {
        width: 180px;
        height: 146px;
    }

    .azit-app .azit-home-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* スマホ（絵の s03）：検索がいちばん上・全幅、カードは縦 1 列、絵は出さない、「最近の検索」の字はチップの下 */
@media (max-width: 760px) {
    .azit-app .azit-home-hero {
        display: block;
        padding: 22px 18px 18px;
    }

    .azit-app .azit-home-chart {
        display: none;
    }

    .azit-app .azit-home-title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .azit-app .azit-home-search {
        gap: 8px;
    }

    .azit-app .azit-home-search-input {
        height: 56px;
        padding: 0 14px;
        font-size: 17px;
    }

    .azit-app .azit-home-search-button {
        min-width: 0;
        height: 56px;
        padding: 0 20px;
        font-size: 18px;
    }

    .azit-app .azit-home-recent {
        margin-top: 16px;
    }

    .azit-app .azit-home-recent-label {
        order: 2;
        flex: 1 0 100%;
        font-size: 13px;
    }

    .azit-app .azit-home-recent-label::after {
        content: none;
    }

    .azit-app .azit-home-menu {
        margin-top: 20px;
    }

    .azit-app .azit-home-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .azit-app .azit-home-card {
        min-height: 84px;
        padding: 14px 16px;
        gap: 2px 14px;
    }

    .azit-app .azit-home-card-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        font-size: 21px;
    }

    .azit-app .azit-home-card-label {
        font-size: 19px;
    }

    .azit-app .azit-home-card-note {
        font-size: 13px;
    }

    .azit-app .azit-home-bg {
        margin-top: 20px;
        padding: 14px 18px;
        gap: 4px 16px;
        font-size: 16px;
    }

    .azit-app .azit-home-bg-link {
        font-size: 16px;
    }

    .azit-app .azit-home-onb {
        margin-top: 16px;
        padding: 16px 16px 6px;
    }

    .azit-app .azit-home-onb-title {
        font-size: 18px;
    }

    .azit-app .azit-home-onb-step {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 8px 12px;
    }

    .azit-app .azit-home-onb-actions {
        grid-column: 2;
        justify-content: flex-start;
    }
}

/* 動きを減らす設定の人には、浮く動きを出さない */
@media (prefers-reduced-motion: reduce) {
    .azit-app .azit-home-card,
    .azit-app .azit-home-card-arrow {
        transition: none;
    }

    .azit-app .azit-home-card:hover,
    .azit-app .azit-home-card:focus-visible,
    .azit-app .azit-home-card:hover .azit-home-card-arrow {
        transform: none;
    }
}

/* 有料プランの案内（CH-1851・案の ① ② ③）。利益のチェック・キーワードの一覧・まとめてチェックで使う（element plan_offer・batch_locked） */
.azit-app .azit-plan-offer {
    margin: 0 0 12px;
    padding: 12px 14px;
    background: var(--azit-caution-soft);
    border: 1px solid var(--azit-caution-line);
    border-radius: 10px;
    color: var(--azit-caution);
    font-size: 14px;
}

.azit-app .azit-plan-offer-inline {
    color: var(--azit-caution);
}

.azit-app .azit-plan-offer-link {
    color: var(--azit-accent);
    font-weight: 700;
    white-space: nowrap;
}

.azit-app .azit-plan-lock {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border: 1px dashed var(--azit-line-strong);
    border-radius: 10px;
    font-size: 14px;
}

.azit-app .azit-plan-lock-text {
    margin: 0;
}

.azit-app .azit-plan-lock-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--azit-accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.azit-app .azit-plan-lock-button:hover,
.azit-app .azit-plan-lock-button:focus-visible {
    background: var(--azit-accent-dark);
    color: #fff;
}

/*
 * 見出しの横の「？」（CH-1852・element help_q・AzitHelp）。押すとヘルプのページを説明のモーダル（js/info-modal.js）で開く
 * - 見た目は 22px の細い青い丸（枠 1.5px と字は azit の青・白地・13px・太字・縦は真ん中）。見出しの字の大きさ・字の間は受けない
 * - 押せる範囲は 44px（見た目は 22px のまま・::before で広げる）
 */
.azit-app .azit-help-q {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    margin-left: 8px;
    padding: 0;
    border: 1.5px solid var(--azit-accent);
    border-radius: 50%;
    background: #fff;
    color: var(--azit-accent);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    vertical-align: middle;
}

.azit-app .azit-help-q::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}

.azit-app .azit-help-q:hover {
    background: var(--azit-accent-soft);
    color: var(--azit-accent-dark);
    text-decoration: none;
}

.azit-app .azit-help-q:focus-visible {
    outline: 3px solid var(--azit-accent);
    outline-offset: 2px;
}

/* 見出しが横並び（flex・間 8px）のときは、その間だけにする（まとめてチェックの .h2・設定のまとまりの見出し） */
.azit-app .rc .h2 > .azit-help-q,
.azit-app .rc .rs-group-title > .azit-help-q {
    margin-left: 0;
}

/* --- 確認の枠（「退会しますか？」など）と説明のモーダル（「？」から開くヘルプ）を、azit の白い形に（CH-1859） ---
 * 枠は共通の app-confirm.js・info-modal.js が body の直下に作るので、body.azit-app の下だけで上書きする（siteb の siteb-app-4-common.css と同じ考え）。
 * 共通の app-confirm.css・info-modal.css（暗い形）は変えない。ほかのサービスは body.azit-app がないので今のまま。
 * ヘルプの本文（.backlog-md・字は #333）は、白い地でそのまま読める。取り消せない操作（.is-danger）の OK は赤のまま
 */
body.azit-app .app-confirm,
body.azit-app .info-modal {
    background: rgba(22, 32, 43, .38);
}

body.azit-app .app-confirm-box,
body.azit-app .info-modal-box {
    border: 1px solid var(--azit-line);
    border-top: 1px solid var(--azit-line);
    border-radius: 12px;
    background: var(--azit-surface);
    color: var(--azit-text);
    font-family: var(--azit-font);
    box-shadow: var(--azit-shadow);
}

body.azit-app .app-confirm-box {
    max-width: 440px;
    padding: 22px 24px 20px;
}

body.azit-app .app-confirm-title {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--azit-text-sub);
}

body.azit-app .app-confirm-box.is-danger .app-confirm-title {
    color: var(--azit-danger);
}

body.azit-app .app-confirm-message {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--azit-text);
}

body.azit-app .app-confirm-input {
    border: 1px solid var(--azit-line-strong);
    border-radius: 8px;
    background: var(--azit-surface);
    color: var(--azit-text);
    font-size: 15px;
}

body.azit-app .app-confirm-input:focus {
    outline: 3px solid var(--azit-accent-soft);
    border-color: var(--azit-accent);
}

/* 選ばずに OK を押したときの 1 行（CH-1900・白い地では濃い赤） */
body.azit-app .app-confirm-error {
    color: var(--azit-danger);
}

body.azit-app .app-confirm-btn {
    min-width: 104px;
    padding: 10px 18px;
    border: 1px solid;
    border-radius: 999px;
    font-family: var(--azit-font);
    font-size: 14px;
    font-weight: 700;
}

body.azit-app .app-confirm-btn-cancel,
body.azit-app .info-modal-btn {
    border: 1px solid var(--azit-line-strong);
    background: var(--azit-surface);
    color: var(--azit-text);
    font-weight: 700;
}

body.azit-app .app-confirm-btn-cancel:hover,
body.azit-app .info-modal-btn:hover {
    background: var(--azit-bg);
}

body.azit-app .app-confirm-btn-ok {
    border-color: var(--azit-accent);
    background: var(--azit-accent);
    color: var(--azit-surface);
}

body.azit-app .app-confirm-btn-ok:hover {
    border-color: var(--azit-accent-dark);
    background: var(--azit-accent-dark);
}

body.azit-app .app-confirm-box.is-danger .app-confirm-btn-ok {
    border-color: var(--azit-danger);
    background: var(--azit-danger);
    color: var(--azit-surface);
}

/* 共通の CSS はマウスを乗せたときにも光る線を出すので、乗せたときは線を消し、キーボードのフォーカスだけ青の線にする */
body.azit-app .app-confirm-btn:hover {
    outline: none;
}

body.azit-app .app-confirm-btn:focus-visible,
body.azit-app .info-modal-x:focus-visible,
body.azit-app .info-modal-btn:focus-visible,
body.azit-app .info-modal-newtab:focus-visible,
body.azit-app .info-modal-title:focus-visible {
    outline: 3px solid var(--azit-accent);
    outline-offset: 2px;
}

body.azit-app .app-confirm-box.is-danger .app-confirm-btn-ok:focus-visible {
    outline-color: var(--azit-danger);
}

body.azit-app .info-modal-head,
body.azit-app .info-modal-foot {
    border-color: var(--azit-line);
}

/* 上の帯（共通の暗い形は border-top の色の線）は azit の青に */
body.azit-app .info-modal-box {
    border-top: 3px solid var(--azit-accent);
}

body.azit-app .info-modal-title {
    color: var(--azit-text);
    font-size: 17px;
}

body.azit-app .info-modal-x {
    color: var(--azit-text-sub);
}

body.azit-app .info-modal-x:hover {
    border-color: var(--azit-line);
    background: var(--azit-bg);
}

body.azit-app .info-modal-newtab {
    color: var(--azit-accent);
}

@media (max-width: 600px) {
    body.azit-app .info-modal-box {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
}
