/* ================================================
   時兆 Web スタイル
   - HP リポジトリ (tokikizashi_project) 規約準拠
   - BEM ライク, kebab-case, 4 スペースインデント, 1 行 1 プロパティ
   - メディアクエリは max-width のみ使用（デスクトップファースト）
   - @import は使用しない（レンダーブロック回避）
   - フォントは next/font / <link> で layout.tsx から注入
   - このファイルは Next.js のビルドを通らず public/ から静的配信される
   ================================================ */

/* ===== FONTS: yakuhanjp ===== */
/*! Yaku Han JP v4.1.1 (OFL-1.1 AND MIT) by Qrac */
@font-face {
    font-family: YakuHanJP;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/app/fonts/yakuhanjp/YakuHanJP-Regular.woff2') format('woff2');
    unicode-range: U+3001, U+3002, U+3008, U+3009, U+300a, U+300b, U+300c, U+300d, U+300e, U+300f, U+3010, U+3011, U+3014, U+3015, U+30fb, U+ff01, U+ff08, U+ff09, U+ff1a, U+ff1b, U+ff1f, U+ff3b, U+ff3d, U+ff5b, U+ff5d;
}

@font-face {
    font-family: YakuHanJP;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/app/fonts/yakuhanjp/YakuHanJP-Medium.woff2') format('woff2');
    unicode-range: U+3001, U+3002, U+3008, U+3009, U+300a, U+300b, U+300c, U+300d, U+300e, U+300f, U+3010, U+3011, U+3014, U+3015, U+30fb, U+ff01, U+ff08, U+ff09, U+ff1a, U+ff1b, U+ff1f, U+ff3b, U+ff3d, U+ff5b, U+ff5d;
}

@font-face {
    font-family: YakuHanJP;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/app/fonts/yakuhanjp/YakuHanJP-Bold.woff2') format('woff2');
    unicode-range: U+3001, U+3002, U+3008, U+3009, U+300a, U+300b, U+300c, U+300d, U+300e, U+300f, U+3010, U+3011, U+3014, U+3015, U+30fb, U+ff01, U+ff08, U+ff09, U+ff1a, U+ff1b, U+ff1f, U+ff3b, U+ff3d, U+ff5b, U+ff5d;
}

/* ===== TOKENS =====
   Phase 1 の collect-token-stats.mjs による実データ集計を元に設計。
   括弧内の数字は出現頻度 (globals.css + auth.css + legal-hp.css 集計)。
   ================================================ */
:root {
    /* === カラー: ベース === */
    --color-white: #fff;
    /* 254 */
    --color-primary: #002a6a;
    /* 69 - brand navy */

    /* === カラー: 白透過（ダークテーマ用テキスト階調） === */
    --color-text-high: rgba(255, 255, 255, 0.85);
    /* 10 */
    --color-text-base: rgba(255, 255, 255, 0.8);
    /* 27 */
    --color-text-muted: rgba(255, 255, 255, 0.6);
    /* 17 */
    --color-text-subtle: rgba(255, 255, 255, 0.5);
    /* 23 */
    --color-text-dim: rgba(255, 255, 255, 0.4);
    /* 13 */

    /* === カラー: サーフェス（カード/パネル背景） === */
    --color-surface: rgba(255, 255, 255, 0.1);
    /* 24 */
    --color-border: rgba(255, 255, 255, 0.2);
    --color-border-subtle: rgba(255, 255, 255, 0.1);
    --color-overlay-strong: rgba(0, 0, 0, 0.2);
    /* 10 */
    --color-overlay-soft: rgba(0, 0, 0, 0.09);
    /* full-screen-loading / callback note */

    /* === カラー: 状態 === */
    --color-error: #dc2626;
    /* 14 */
    --color-error-soft: #d76069;
    /* 14 */
    --color-warning: rgba(234, 179, 8, 0.35);
    /* line-callback warning border */
    --color-warning-soft: rgba(234, 179, 8, 0.15);
    /* line-callback warning background */

    /* === blur === */
    --blur-card: 7px;
    /* 7 */

    /* === 複合フィルター === */
    --filter-glass: blur(7px) brightness(1.91);
    /* auth overlay 用 */
    --filter-glass-strong: blur(20px) brightness(1.81);
    /* sidebar SP overlay 用 */
    --filter-glass-trend: blur(7px) brightness(0.80);
    /* trend panel 用 */
    --filter-glass-soft: blur(7px) brightness(0.88);
    /* toast 等 */
    --filter-glass-input: blur(7px) brightness(0.87);
    /* auth input PC 用 */
    --filter-glass-bubble: blur(7px) brightness(0.91);
    /* consultation input / bubble 用 */
    --filter-glass-assistant: blur(7px) brightness(0.78);
    /* assistant bubble 用 */
    --filter-blur18-saturate108: blur(18px) saturate(1.08);
    /* consultation-input-wrap グラデーションマスク */
    --filter-blur17-bright87: blur(17px) brightness(0.87);
    /* trend filter / panel 用 */

    /* === コンポーネント別 サーフェス === */
    --color-bubble-bg: rgba(13, 18, 26, 0.2);
    /* consultation bubble 等 */
    --trend-glass-bg: rgba(33, 18, 26, 0.2);
    /* trend filter / panel 背景 */
    --trend-glass-panel-bg: rgba(33, 18, 26, 0.2);
    /* trend filter select パネル 背景 */
    --report-section-border: rgba(255, 255, 255, 0.12);
    /* my時兆レポート セクション境界 */
    --report-glass-border-strong: rgba(255, 255, 255, 0.2);
    /* my時兆レポート 強ボーダー */
    --report-content-panel-bg: var(--trend-glass-bg);
    /* レポート コンテンツパネル背景 */
    --report-gradient-start: #00eeff;
    /* レポート グラデーション開始 */
    --report-gradient-end: #a64dff;
    /* レポート グラデーション終了 */
    --report-blur: 7px;
    /* my時兆レポート blur */
    --report-text-sub: rgba(255, 255, 255, 0.78);
    /* my時兆レポート サブテキスト */
    --report-text-main: #fff;
    /* my時兆レポート メインテキスト */
    --report-text-muted: rgba(255, 255, 255, 0.5);
    /* my時兆レポート 薄テキスト */

    /* === radius === */
    --radius-sm: 6px;
    /* 13 */
    --radius-md: 8px;
    /* 79 - most common */
    --radius-lg: 12px;
    /* 44 */
    --radius-full: 9999px;
    /* 41 */

    /* === font-weight === */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    /* 159 */
    --font-weight-semibold: 600;
    /* 18 */
    --font-weight-bold: 700;
    /* 201 */

    /* === transition === */
    --duration-fast: 0.15s;
    /* 19 - background-color 等 */
    --duration-base: 0.2s;
    /* 13 - opacity 等 */
    --duration-slow: 0.3s;
    /* 4 */

    /* === タイポグラフィ ===
       next/font/google が layout.tsx の <body> に注入する変数を参照:
       --font-noto-sans-jp / --font-noto-serif-jp */
    --font-sans: var(--font-noto-sans-jp, 'Noto Sans JP'), 'YakuHanJP', system-ui, sans-serif;

    /* --- 以下は Phase 2 以降で必要に応じて追加 ---
       --shadow-card / --shadow-modal / --shadow-focus;
       --z-header / --z-sidebar / --z-modal / --z-toast;
       --ease-out / --ease-in-out;
       box-shadow・z-index は現状値が散らばっているため
       パターンが見えてから集約する（無理に作らない） */
}

/* ===== RESET =====
   Tailwind v4 preflight.css (node_modules/tailwindcss/preflight.css) の忠実移植。
   Phase 5 で globals.css (@import "tailwindcss") を削除しても基本リセットが崩れないように
   preflight 相当のルールを public/style.css 側に持つ。

   変更点:
   - html の font-family は --theme(--default-font-family, ...) を Noto Sans JP スタックに置換
   - code/kbd/samp/pre の font-family は --theme(--default-mono-font-family, ...) をそのまま展開
   - 個別クラスでの Noto Sans JP 指定は原則不要（YakuHanJP / Avenir 等の特殊フォントのみ明示）
   ================================================ */

/*
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
  2. Remove default margins and padding
  3. Reset all borders.
*/
*,
::after,
::before,
::backdrop,
::file-selector-button {
    box-sizing: border-box;
    /* 1 */
    margin: 0;
    /* 2 */
    padding: 0;
    /* 2 */
    border: 0 solid;
    /* 3 */
}

/*
  1. Use a consistent sensible line-height in all browsers.
  2. Prevent adjustments of font size after orientation changes in iOS.
  3. Use a more readable tab size.
  4. Use the user's configured `sans` font-family by default.
  5. Disable tap highlights on iOS.
*/
html,
:host {
    -webkit-text-size-adjust: 100%;
    /* 2 */
    tab-size: 4;
    /* 3 */
    -webkit-tap-highlight-color: transparent;
    /* 5 */
}

body {
    font-family: var(--font-noto-sans-jp, 'Noto Sans JP'), system-ui, sans-serif;
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
}

/*
  1. Add the correct height in Firefox.
  2. Correct the inheritance of border color in Firefox.
  3. Reset the default border style to a 1px solid border.
*/
hr {
    height: 0;
    /* 1 */
    color: inherit;
    /* 2 */
    border-top-width: 1px;
    /* 3 */
}

/*
  Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
}

/*
  Remove the default font size and weight for headings.
*/
h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

/*
  Reset links to optimize for opt-in styling instead of opt-out.
*/
a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
}

/*
  Add the correct font weight in Edge and Safari.
*/
b,
strong {
    font-weight: bolder;
}

/*
  1. Use a monospace font-family by default.
  2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    /* 1 */
    font-size: 1em;
    /* 2 */
}

/*
  Add the correct font size in all browsers.
*/
small {
    font-size: 80%;
}

/*
  Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/*
  1. Remove text indentation from table contents in Chrome and Safari.
  2. Correct table border color inheritance in all Chrome and Safari.
  3. Remove gaps between table borders by default.
*/
table {
    text-indent: 0;
    /* 1 */
    border-color: inherit;
    /* 2 */
    border-collapse: collapse;
    /* 3 */
}

/*
  Use the modern Firefox focus style for all focusable elements.
*/
:-moz-focusring {
    outline: auto;
}

/*
  Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
    vertical-align: baseline;
}

/*
  Add the correct display in Chrome and Safari.
*/
summary {
    display: list-item;
}

/*
  Make lists unstyled by default.
*/
ol,
ul,
menu {
    list-style: none;
}

/*
  1. Make replaced elements `display: block` by default.
  2. Add `vertical-align: middle` to align replaced elements more sensibly by default.
*/
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block;
    /* 1 */
    vertical-align: middle;
    /* 2 */
}

/*
  Constrain images and videos to the parent width and preserve their intrinsic aspect ratio.
*/
img,
video {
    max-width: 100%;
    height: auto;
}

/*
  1. Inherit font styles in all browsers.
  2. Remove border radius in all browsers.
  3. Remove background color in all browsers.
  4. Ensure consistent opacity for disabled states in all browsers.
*/
button,
input,
select,
optgroup,
textarea,
::file-selector-button {
    font: inherit;
    /* 1 */
    font-feature-settings: inherit;
    /* 1 */
    font-variation-settings: inherit;
    /* 1 */
    letter-spacing: inherit;
    /* 1 */
    color: inherit;
    /* 1 */
    border-radius: 0;
    /* 2 */
    background-color: transparent;
    /* 3 */
    opacity: 1;
    /* 4 */
}

/*
  Restore default font weight.
*/
:where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
}

/*
  Restore indentation.
*/
:where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
}

/*
  Restore space after button.
*/
::file-selector-button {
    margin-inline-end: 4px;
}

/*
  Reset the default placeholder opacity in Firefox.
*/
::placeholder {
    opacity: 1;
}

/*
  Prevent resizing textareas horizontally by default.
*/
textarea {
    resize: vertical;
}

/*
  Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
    -webkit-appearance: none;
}

/*
  1. Ensure date/time inputs have the same height when empty in iOS Safari.
  2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
*/
::-webkit-date-and-time-value {
    min-height: 1lh;
    /* 1 */
    text-align: inherit;
    /* 2 */
}

/*
  Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
*/
::-webkit-datetime-edit {
    display: inline-flex;
}

/*
  Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
*/
::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

::-webkit-datetime-edit,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-millisecond-field,
::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
}

/*
  Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome.
*/
::-webkit-calendar-picker-indicator {
    line-height: 1;
}

/*
  Remove the additional `:invalid` styles in Firefox.
*/
:-moz-ui-invalid {
    box-shadow: none;
}

/*
  Correct the inability to style the border radius in iOS Safari.
*/
button,
input:where([type='button'], [type='reset'], [type='submit']),
::file-selector-button {
    -webkit-appearance: button;
    appearance: button;
}

/*
  Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto;
}

/*
  Make elements with the HTML hidden attribute stay hidden by default.
*/
[hidden]:where(:not([hidden='until-found'])) {
    display: none !important;
}

/* ---- yakuhan: 約物詰め用 font-family utility ---- */
.yakuhan {
    font-family: YakuHanJP, var(--font-noto-sans-jp, 'Noto Sans JP'), system-ui, sans-serif;
}

/* ===== COMMON: LAYOUT ===== */
/* ===== COMMON: BUTTONS ===== */
/* ---- info-button ---- */
.info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: #9ca3af;
    transition: color var(--duration-base);
}

.info-button:hover {
    color: #3b82f6;
}

.info-button:focus {
    outline: none;
    box-shadow: 0 0 0 1px var(--color-white), 0 0 0 3px #93c5fd;
}

.info-button__icon {
    width: 16px;
    height: 16px;
}

.info-button__icon--md {
    width: 20px;
    height: 20px;
}

/* ---- autofill 背景リセット ---- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.13) inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: white;
}

/* ===== COMMON: CARDS ===== */
/* ===== COMMON: FORMS ===== */
/* ---- auth-date-picker ---- */
.auth-date-picker {
    position: relative;
}

.auth-date-picker__trigger {
    position: relative;
    width: 100%;
    height: 56px;
    padding: 0 56px 0 16px;
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.13);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    text-align: left;
    font-size: 16px;
    line-height: calc(24 / 16);
    color: var(--color-white);
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
    outline: none;
}

.auth-date-picker__trigger:focus {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.auth-date-picker__trigger--default {
    border: none;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-input);
    -webkit-backdrop-filter: var(--filter-glass-input);
}

.auth-date-picker__trigger--error {
    border: 1px solid rgba(248, 113, 113, 0.5);
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-input);
    -webkit-backdrop-filter: var(--filter-glass-input);
}

.auth-date-picker__value {
    color: var(--color-white);
}

.auth-date-picker__placeholder {
    color: var(--color-text-subtle);
}

.auth-date-picker__icon {
    pointer-events: none;
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
}

.auth-date-picker__panel {
    position: absolute;
    z-index: 50;
    width: 100%;
    margin-top: 4px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #0e0e43;
    box-shadow: 0 10px 15px var(--color-overlay-strong);
}

.auth-date-picker__toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.auth-date-picker__nav {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    color: var(--color-white);
    transition: background-color var(--duration-fast);
}

.auth-date-picker__nav:hover {
    background: rgba(255, 255, 255, 0.15);
}

.auth-date-picker__nav--next {
    margin-left: auto;
}

.auth-date-picker__select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-overlay-strong);
    font-size: 14px;
    line-height: calc(20 / 14);
    color: var(--color-white);
    outline: none;
}

.auth-date-picker__option {
    color: #000;
}

.auth-date-picker__weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px 0;
    margin-bottom: 8px;
    text-align: center;
    font-size: 12px;
    line-height: calc(18 / 12);
    color: rgba(255, 255, 255, 0.55);
}

.auth-date-picker__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px 0;
}

.auth-date-picker__blank {
    height: 36px;
}

.auth-date-picker__day {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: var(--radius-full);
    font-size: 14px;
    line-height: calc(20 / 14);
    transition: background-color var(--duration-fast), color var(--duration-fast);
}

.auth-date-picker__day--selected {
    background: var(--color-white);
    color: #0e0e43;
}

.auth-date-picker__day--default {
    color: var(--color-text-high);
}

.auth-date-picker__day--default:hover {
    background: var(--color-surface);
}

/* ---- prefecture-select ---- */
.prefecture-select {
    position: relative;
}

.prefecture-select__trigger {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 0 16px;
    border-radius: var(--radius-md);
    text-align: left;
    transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.prefecture-select__trigger--auth,
.prefecture-select__trigger--auth-error {
    height: 56px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-input);
    -webkit-backdrop-filter: var(--filter-glass-input);
    color: var(--color-white);
}

.prefecture-select__trigger--auth-filled {
    color: var(--color-white);
}

.prefecture-select__trigger--auth-placeholder {
    color: var(--color-text-subtle);
}

.prefecture-select__trigger--auth {
    border: none;
}

.prefecture-select__trigger--auth-error {
    border: 1px solid rgba(248, 113, 113, 0.5);
}

.prefecture-select__trigger--default,
.prefecture-select__trigger--default-error {
    height: 46px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    line-height: calc(20 / 14);
}

.prefecture-select__trigger--default-error {
    border-color: #fca5a5;
}

.prefecture-select__trigger--filled {
    color: #1a1a2e;
}

.prefecture-select__trigger--placeholder {
    color: #9ca3af;
}

.prefecture-select__auth-icon {
    pointer-events: none;
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
}

.prefecture-select__default-icon {
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: #9ca3af;
}

.prefecture-select__panel {
    position: absolute;
    z-index: 50;
    width: 100%;
    margin-top: 4px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.prefecture-select__panel--auth {
    border: 1px solid var(--color-border);
    background: #0e0e43;
}

.prefecture-select__panel--default {
    border: 1px solid #e5e7eb;
    background: var(--color-white);
}

.prefecture-select__search-wrap {
    padding: 8px;
}

.prefecture-select__search-wrap--auth {
    border-bottom: 1px solid var(--color-border-subtle);
}

.prefecture-select__search-wrap--default {
    border-bottom: 1px solid #f3f4f6;
}

.prefecture-select__search {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: calc(20 / 14);
    outline: none;
}

.prefecture-select__search--auth {
    border: 1px solid var(--color-border);
    background: var(--color-overlay-strong);
    color: var(--color-white);
}

.prefecture-select__search--auth::placeholder {
    color: var(--color-text-dim);
}

.prefecture-select__search--default {
    border: 1px solid #e5e7eb;
}

.prefecture-select__search:focus {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
}

.prefecture-select__list {
    max-height: 192px;
    overflow-y: auto;
    padding: 4px 0;
}

.prefecture-select__item {
    width: 100%;
    padding: 8px 16px;
    text-align: left;
    font-size: 14px;
    line-height: calc(20 / 14);
    transition: background-color var(--duration-fast), color var(--duration-fast);
}

.prefecture-select__item--auth {
    color: var(--color-text-high);
}

.prefecture-select__item--auth:hover,
.prefecture-select__item--auth-active {
    background: var(--color-surface);
}

.prefecture-select__item--auth-active {
    color: var(--color-white);
}

.prefecture-select__item--default {
    color: #374151;
}

.prefecture-select__item--default:hover,
.prefecture-select__item--default-active {
    background: #eff6ff;
}

.prefecture-select__item--default-active {
    color: #2563eb;
}

.prefecture-select__item--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.prefecture-select__empty {
    padding: 8px 16px;
    font-size: 14px;
    line-height: calc(20 / 14);
}

.prefecture-select__empty--auth {
    color: var(--color-text-subtle);
}

.prefecture-select__empty--default {
    color: #9ca3af;
}

/* ---- modal-card-field（Stripe カード入力フィールド） ---- */
.modal-card-field {
    width: 100%;
    height: 48px;
    padding-inline: 16px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    background: #f9fafb;
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-card-field--focused {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.modal-card-field>div {
    flex: 1;
}

/* ---- payment-element（Stripe PaymentElement ラッパー） ---- */
.payment-element {
    padding: 24px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    background: #f9fafb;
}

.payment-element__title {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: calc(28 / 18);
}

.payment-element__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== COMMON: MODALS ===== */
/* ---- plan-promotion-modal ---- */
.plan-promotion-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-promotion-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(56, 60, 65, 0.8);
    transition: opacity var(--duration-base);
}

.plan-promotion-modal {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90vw;
    max-width: 640px;
    max-height: calc(100vh - 100px);
    margin-inline: 16px;
    transition: all var(--duration-slow) ease-out;
}

.plan-promotion-modal--open {
    opacity: 1;
    transform: scale(1);
}

.plan-promotion-modal--closed {
    opacity: 0;
    transform: scale(0.95);
}

.plan-promotion-content {
    padding: 56px 66px 64px 71px;
}

.plan-promotion-title {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    line-height: calc(35 / 24);
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 46px;
}

.plan-promotion-title-accent {
    background: linear-gradient(to right, #00b4d8, #a64dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-promotion-description {
    font-size: 16px;
    line-height: 27.2px;
    color: var(--color-primary);
    margin-bottom: 60px;
}

.plan-promotion-btn {
    width: 400px;
    height: 56px;
    margin-inline: auto;
    padding: 0 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    line-height: calc(24 / 16);
    text-align: left;
    color: var(--color-white);
    background: linear-gradient(to right, #00eeff, #a64dff);
    cursor: pointer;
    transition: opacity var(--duration-fast);
}

.plan-promotion-btn:hover {
    opacity: 0.9;
}

.plan-promotion-close {
    position: fixed;
    top: 50px;
    right: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35.36px;
    height: 35.36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

.plan-promotion-close-image {
    display: block;
    width: 35.36px;
    height: 35.36px;
}

/* ---- info-modal ---- */
.info-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 60, 65, 0.8);
}

.info-modal-wrapper {
    position: relative;
}

.info-modal-close-btn {
    position: fixed;
    top: 50px;
    right: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35.36px;
    height: 35.36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
    transition: color var(--duration-fast);
    z-index: 1;
}

.info-modal-close-btn:hover {
    color: var(--color-white);
}

.info-modal-close-btn-image {
    display: block;
    width: 35.36px;
    height: 35.36px;
}

.info-modal-body {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90vw;
    max-width: 784px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    transition: all var(--duration-slow) ease-out;
}

.info-modal-body--open {
    opacity: 1;
    transform: scale(1);
}

.info-modal-body--closed {
    opacity: 0;
    transform: scale(0.95);
}

.info-modal-header {
    padding: 20px 24px 22px;
    border-bottom: 1px solid #cad1db;
}

.info-modal-title {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    line-height: calc(29 / 20);
    color: var(--color-primary);
}

.info-modal-content {
    overflow-y: auto;
    padding: 32px 24px 28px;
    flex: 1;
}

/* ---- onboarding-modal ---- */
.onboarding-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a1628;
}

.onboarding-modal__background {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.04;
    pointer-events: none;
}

.onboarding-modal__background-image {
    width: 800px;
}

.onboarding-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.15s;
}

.onboarding-modal__close:hover {
    color: var(--color-white);
}

.onboarding-modal__close-icon {
    width: 20px;
    height: 20px;
}

.onboarding-modal__content {
    position: relative;
    width: 100%;
    max-width: 36rem;
    padding: 0 32px;
}

.onboarding-modal__slides {
    margin-bottom: 40px;
}

.onboarding-modal__footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.onboarding-modal__button {
    width: 100%;
    border-radius: 12px;
    font-size: 16px;
    line-height: calc(24 / 16);
    color: var(--color-white);
    padding: 14px 0;
}

.onboarding-modal__button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.15s;
}

.onboarding-modal__button--secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.onboarding-modal__button--primary {
    font-weight: var(--font-weight-bold);
    background: linear-gradient(to right, #22d3ee, #a855f7);
    transition: filter 0.15s;
}

.onboarding-modal__button--primary:hover {
    filter: brightness(1.08);
}

.onboarding-modal__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.onboarding-modal__dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    transition: background-color 0.15s;
}

.onboarding-modal__dot--active {
    background: var(--color-white);
}

.onboarding-modal__dot--inactive {
    background: rgba(255, 255, 255, 0.2);
}

/* ---- onboarding-slide ---- */
.onboarding-slide {
    text-align: center;
}

.onboarding-slide--center {
    /* tsx で付与されているが globals.css に定義無しの no-op modifier。互換のため空定義で保持 */
}

.onboarding-slide__logo {
    height: 32px;
    margin: 0 auto 32px;
}

.onboarding-slide__title {
    font-weight: var(--font-weight-bold);
    line-height: 1.6;
    color: var(--color-white);
    font-size: 20px;
}

.onboarding-slide__title--lead,
.onboarding-slide__title--section {
    margin-bottom: 20px;
}

.onboarding-slide__title--final {
    margin-bottom: 32px;
}

.onboarding-slide__description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.onboarding-slide__description--wide {
    line-height: 1.9;
}

.onboarding-slide__description--section {
    margin-bottom: 24px;
    line-height: 1.8;
}

.onboarding-slide__desktop-break {
    display: none;
}

.onboarding-slide__image-frame {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.onboarding-slide__image-frame--spaced {
    margin-bottom: 20px;
}

.onboarding-slide__image {
    width: 100%;
}

.onboarding-slide__check-list {
    max-width: 280px;
    margin: 0 auto 32px;
    text-align: left;
}

.onboarding-slide__check-list>.onboarding-check-item+.onboarding-check-item {
    margin-top: 20px;
}

.onboarding-slide__note {
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.3);
}

.onboarding-slide__highlight {
    color: rgba(255, 255, 255, 0.8);
}

/* ---- onboarding-check-item ---- */
.onboarding-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.onboarding-check-item__icon-wrap {
    display: flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(to bottom right, rgba(34, 211, 238, 0.8), rgba(168, 85, 247, 0.8));
}

.onboarding-check-item__icon {
    width: 10px;
    height: 10px;
    color: var(--color-white);
}

.onboarding-check-item__text {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: rgba(255, 255, 255, 0.9);
}

/* ---- settings-sub-modal (共通設定サブモーダル基盤) ---- */
.settings-sub-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 110;
}

.settings-sub-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(56, 60, 65, 0.8);
}

.settings-sub-modal-body {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 448px;
    margin-inline: 20px;
}

.settings-sub-modal-body .prefecture-select span {
    font-size: 16px;
    line-height: calc(24 / 16);
}

.settings-sub-modal-body--wide {
    max-width: 720px;
    overflow: hidden;
}

.settings-sub-modal-inner {
    padding: 0 24px 40px 24px;
}

.settings-sub-modal-title {
    padding: 20px 0 22px;
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: calc(29 / 20);
    text-align: left;
    margin-bottom: 0;
}

.settings-sub-modal-divider {
    height: 1px;
    margin-inline: -22px;
    margin-bottom: 24px;
    background: rgba(0, 42, 106, 0.16);
}

.settings-sub-modal-label {
    display: block;
    font-size: 14px;
    line-height: calc(20 / 14);
    text-align: left;
    color: var(--color-primary);
    margin-bottom: 9px;
}

.settings-sub-modal-helper {
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    line-height: calc(17 / 12);
    color: #1c4a8f;
    margin-top: 8px;
}

.settings-sub-modal-description {
    font-size: 14px;
    line-height: 23.8px;
    text-align: left;
    color: var(--color-primary);
    margin-bottom: 9px;
}

.settings-sub-modal-description--change-email {
    letter-spacing: -0.01em;
}

.settings-sub-modal-description--change-email-verification {
    margin-bottom: 0;
}

.settings-sub-modal-description--delete-account {
    font-size: 12px;
    line-height: calc(17 / 12);
    margin-top: 9px;
    margin-bottom: 4px;
}

.settings-sub-modal-infobox {
    margin-bottom: 20px;
    padding: 12px 14px 14px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 2px solid #e3e9f4;
}

.settings-sub-modal-infobox-label {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    line-height: calc(20 / 14);
    text-align: left;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.settings-sub-modal-infobox-value {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: var(--color-primary);
}

.settings-sub-modal-infobox-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
}

.settings-sub-modal-infobox-row+.settings-sub-modal-infobox-row {
    margin-top: 10px;
}

.settings-sub-modal-infobox-row-label {
    color: #6b7280;
}

.settings-sub-modal-infobox-row-value {
    color: #1a1a2e;
    font-weight: var(--font-weight-semibold);
}

.settings-sub-modal-input {
    width: 100%;
    padding: 15px 24px 17px;
    font-size: 16px;
    line-height: calc(24 / 16);
    text-align: left;
    color: var(--color-primary);
    opacity: 1;
    background: rgba(202, 209, 219, 0.3);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.settings-sub-modal-input::placeholder {
    color: var(--color-primary);
    opacity: 0.4;
}

.settings-sub-modal-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 42, 106, 0.14);
}

.settings-sub-modal-input--error {
    border-color: #fca5a5;
}

.settings-sub-modal-input--error:focus {
    box-shadow: 0 0 0 2px rgba(252, 165, 165, 0.4);
}

.settings-sub-modal-error {
    font-size: 12px;
    color: var(--color-error);
    margin-top: 6px;
}

.settings-sub-modal-field-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-sub-modal-warning {
    font-size: 12px;
    color: var(--color-error);
    margin-bottom: 4px;
}

.settings-sub-modal-warning-link {
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
    transition: color var(--duration-fast);
}

.settings-sub-modal-warning-link:hover {
    color: #001d4a;
}

.settings-sub-modal-btn {
    flex: 1;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: background-color var(--duration-fast);
}

.settings-sub-modal-btn:hover {
    background: #001d4a;
}

.settings-sub-modal-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.settings-sub-modal-btn-pair {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.settings-sub-modal-btn--outline {
    min-height: 52px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: calc(23 / 16);
    border: 2px solid #123d85;
    color: #123d85;
    background: var(--color-white);
}

.settings-sub-modal-btn--outline:hover {
    background: #f9fafb;
}

.settings-sub-modal-btn--outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.settings-sub-modal-btn--danger {
    min-height: 52px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: calc(23 / 16);
    background: var(--color-error);
    color: var(--color-white);
}

.settings-sub-modal-btn--danger:hover {
    background: #b91c1c;
}

.settings-sub-modal-btn--danger:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.settings-sub-modal-btn--primary {
    min-height: 56px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: calc(20 / 16);
    text-align: center;
    background: var(--color-primary);
    color: var(--color-white);
}

.settings-sub-modal-btn--primary:hover {
    background: #001d4a;
}

.settings-sub-modal-btn--primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.settings-sub-modal__close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 44px;
    line-height: 1;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

.settings-sub-modal__label-mobile {
    display: none;
}

.settings-sub-modal__label-desktop {
    display: inline;
}

/* ---- settings-sub-modal 内の prefecture-select 上書き ---- */
.settings-sub-modal-inner .prefecture-select {
    position: relative;
    width: 100%;
    z-index: 1;
}

.settings-sub-modal-inner .prefecture-select__trigger--auth,
.settings-sub-modal-inner .prefecture-select__trigger--auth-error {
    width: 100%;
    height: 56px;
    padding: 15px 24px 17px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-md);
    background: rgba(202, 209, 219, 0.3);
    border: 1px solid transparent;
    font-size: 16px;
    line-height: calc(24 / 16);
    color: var(--color-primary);
}

.settings-sub-modal-inner .prefecture-select__trigger--auth-error {
    border-color: #fca5a5;
}

.settings-sub-modal-inner .prefecture-select__trigger--auth>span:first-child,
.settings-sub-modal-inner .prefecture-select__trigger--auth-error>span:first-child {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-sub-modal-inner .prefecture-select__auth-icon {
    display: none;
}

.settings-sub-modal-inner .prefecture-select__trigger--auth::after,
.settings-sub-modal-inner .prefecture-select__trigger--auth-error::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 8px;
    height: 7px;
    background: url("/app/images/icon-select-chevron.svg") center / contain no-repeat;
    transform: translateY(-50%);
    pointer-events: none;
}

.settings-sub-modal-inner .prefecture-select__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    margin-top: 0;
    max-height: 220px;
    border: 1px solid rgba(202, 209, 219, 0.8);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.settings-sub-modal-inner .prefecture-select__search-wrap {
    padding: 12px 12px 0;
}

.settings-sub-modal-inner .prefecture-select__search {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(202, 209, 219, 0.8);
    border-radius: var(--radius-md);
    background: #f1f4fa;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: var(--color-primary);
}

.settings-sub-modal-inner .prefecture-select__search::placeholder {
    color: rgba(0, 42, 106, 0.4);
    opacity: 1;
}

.settings-sub-modal-inner .prefecture-select__list {
    max-height: 168px;
    padding: 8px 0;
    overflow-y: auto;
}

.settings-sub-modal-inner .prefecture-select__list li {
    width: 100%;
}

.settings-sub-modal-inner .prefecture-select__item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: var(--color-primary);
}

.settings-sub-modal-inner .prefecture-select__item--auth:hover {
    background: rgba(202, 209, 219, 0.2);
}

.settings-sub-modal-inner .prefecture-select__item--auth-active {
    background: rgba(202, 209, 219, 0.3);
}

.settings-sub-modal-inner .prefecture-select__empty--auth {
    padding: 10px 16px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: rgba(0, 42, 106, 0.5);
}

/* ---- 個別モーダル: change-display-name ---- */
.change-display-name-modal {
    max-width: 448px;
}

.change-display-name-modal__input {
    max-width: 400px;
    padding: 15px 24px 17px;
    border: none;
}

.change-display-name-modal__input::placeholder {
    font-size: 16px;
    line-height: calc(24 / 16);
    color: rgba(0, 42, 106, 0.4);
    opacity: 1;
}

/* ---- 個別モーダル: delete-account ---- */
.delete-account-modal__input {
    padding: 15px 24px 17px;
    border: none;
}

.delete-account-modal__input::placeholder {
    font-size: 16px;
    line-height: calc(24 / 16);
    color: rgba(0, 42, 106, 0.4);
    opacity: 1;
}

/* ---- 個別モーダル: change-email / change-password ---- */
.change-email-modal__submit,
.change-password-modal__submit {
    width: 100%;
    margin-top: 20px;
}

.change-email-modal__warning {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: calc(20 / 14);
    letter-spacing: 0.05em;
    text-align: left;
    color: var(--color-error-soft);
}

.change-email-modal__warning-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    flex-shrink: 0;
}

/* ---- 相談タイトル変更モーダル (RenameModal) ---- */
.rename-modal-btn-pair {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

/* ---- delete-account-modal base (アカウント削除モーダル) ---- */
.delete-account-modal {
    max-height: 90vh;
    overflow-y: auto;
}

.delete-account-modal__warning {
    margin-bottom: 20px;
    padding: 16px 16px 20px;
    background: rgba(215, 96, 105, 0.1);
    border: 2px solid rgba(215, 96, 105, 0.5);
    border-radius: var(--radius-md);
}

.delete-account-modal__warning-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
}

.delete-account-modal__warning-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.delete-account-modal__warning-title {
    font-size: 18px;
    line-height: 28.8px;
    letter-spacing: 0.05em;
    text-align: left;
    color: #d76069;
}

.delete-account-modal__warning-list {
    padding-left: 2px;
    font-size: 14px;
    line-height: calc(26 / 14);
    text-align: left;
    color: #d76069;
}

.delete-account-modal__warning-list li {
    line-height: calc(23.8 / 14);
}

.delete-account-modal__warning-list li+li {
    margin-top: 2px;
}

.delete-account-modal__fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delete-account-modal__confirm-text {
    font-weight: 700;
}

.delete-account-modal__reason-input {
    resize: none;
    min-height: 78px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.delete-account-modal__notice {
    margin-top: 16px;
    padding: 14px 14px 12px;
    background: #fff7f7;
    border: 2px solid #f3b3b8;
    border-radius: var(--radius-md);
}

.delete-account-modal__notice-title {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: calc(18 / 13);
    color: #dc2626;
}

.delete-account-modal__notice-list {
    font-size: 12px;
    line-height: calc(20 / 12);
    color: #dc2626;
}

.delete-account-modal__notice-list li+li {
    margin-top: 2px;
}

/* ---- 相談削除モーダル (DeleteConfirmModal) ---- */
.delete-confirm-warning {
    margin-top: 30px;
}

.delete-confirm-warning-text {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    line-height: calc(24 / 16);
    color: var(--color-primary);
}

.delete-confirm-warning-text-emphasis {
    color: var(--color-error-soft);
}

.delete-confirm-btn {
    flex: 1;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    line-height: calc(23 / 16);
    cursor: pointer;
    transition: background-color var(--duration-fast);
}

.delete-confirm-btn--cancel {
    border: 2px solid #123d85;
    color: #123d85;
    background: var(--color-white);
}

.delete-confirm-btn--cancel:hover {
    background: #f9fafb;
}

.delete-confirm-btn--cancel:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.delete-confirm-btn--delete {
    background: var(--color-error);
    color: var(--color-white);
}

.delete-confirm-btn--delete:hover {
    background: #b91c1c;
}

.delete-confirm-btn--delete:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* ===== COMMON: STATES ===== */
/* ---- full-screen-loading ---- */
.full-screen-loading {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
}

.full-screen-loading__background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.full-screen-loading__background-image {
    position: absolute;
    inset: -1px;
    display: block;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    max-width: none;
    object-fit: cover;
}

.full-screen-loading__decoration {
    position: absolute;
    top: 9.5%;
    left: -104px;
    width: auto;
    height: 81%;
    pointer-events: none;
}

.full-screen-loading__overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--color-overlay-soft);
    backdrop-filter: blur(var(--blur-card));
    -webkit-backdrop-filter: blur(var(--blur-card));
}

.full-screen-loading__content {
    position: relative;
    z-index: 10;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.full-screen-loading__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-text-base);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

.full-screen-loading__message {
    margin-top: 20px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: var(--color-text-muted);
}

.private-route {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.private-route__background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.private-route__background-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% center;
}

.private-route__spinner {
    position: relative;
    z-index: 10;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

/* ---- toast ---- */
.toast-container {
    position: fixed;
    top: 26px;
    left: 50%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    pointer-events: none;
}

.toast {
    position: relative;
    display: flex;
    align-items: center;
    width: 392px;
    min-height: 64px;
    padding-inline: 16px;
    padding-block: 12px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(7px) brightness(88%);
    -webkit-backdrop-filter: blur(7px) brightness(88%);
    color: var(--color-white);
    pointer-events: auto;
    animation: toast-fade-in 0.18s ease-out;
}

.toast::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0, 167, 179, 0.6) 0%, rgba(166, 77, 255, 0.6) 100%);
    pointer-events: none;
}

/* type 別の配色変種（success / info は .toast::before を流用）。
   二重クラスで .toast::before より specificity を高くして上書き。
   ブランドトーン: 原色アラートを避けた落ち着いた配色・半透明＋blur は .toast を継承 */
.toast.toast--error::before {
    background: linear-gradient(90deg, rgba(214, 69, 80, 0.6) 0%, rgba(160, 40, 70, 0.6) 100%);
}

.toast.toast--warning::before {
    background: linear-gradient(90deg, rgba(214, 158, 46, 0.6) 0%, rgba(180, 120, 30, 0.6) 100%);
}

.toast__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.toast__content--with-icon {
    /* アイコン付きの場合のレイアウト調整は将来用 */
}

.toast__check-icon {
    width: 14px;
    height: 11.05px;
    flex-shrink: 0;
}

.toast__message {
    font-size: 16px;
    line-height: calc(24 / 16);
    text-align: left;
    white-space: pre-line;
    word-break: break-word;
    color: var(--color-white);
}

.toast__close {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
    width: 18.38px;
    height: 18.38px;
    margin-left: 16px;
    padding: 0;
    background: transparent;
    border: 0;
    transition: opacity var(--duration-base);
}

.toast__close:hover {
    opacity: 0.7;
}

.toast__close-icon {
    width: 18.38px;
    height: 18.38px;
    flex-shrink: 0;
}

/* ---- background-marquee（trend / report の背景装飾） ---- */
.bg-marquee {
    position: relative;
    align-self: flex-start;
    margin-top: 12vh;
    height: 80vh;
    flex-shrink: 0;
}

.bg-marquee-shell--report {
    --report-marquee-scale: calc(100vh / 800);
    position: relative;
    height: 100vh;
    flex-shrink: 0;
    overflow: visible;
}

.bg-marquee--report {
    align-self: auto;
    margin-top: 0;
    height: 800px;
    transform: scale(var(--report-marquee-scale));
    transform-origin: top left;
    top: calc((100vh / var(--report-marquee-scale) - 800px) / 2);
}

.bg-marquee__card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    left: var(--card-left);
}

.bg-marquee__card:nth-child(1) {
    --card-left: 0;
}

.bg-marquee__card:nth-child(2) {
    --card-left: calc((566.36 + 135) / 1920 * 100vw);
}

.bg-marquee__card:nth-child(3) {
    --card-left: calc((566.36 + 135) * 2 / 1920 * 100vw);
}

.bg-marquee__card:nth-child(4) {
    --card-left: calc((566.36 + 135) * 3 / 1920 * 100vw);
}

.bg-marquee__card:nth-child(5) {
    --card-left: calc((566.36 + 135) * 4 / 1920 * 100vw);
}

.bg-marquee__card:nth-child(6) {
    --card-left: calc((566.36 + 135) * 5 / 1920 * 100vw);
}

.bg-marquee__bar {
    width: 100%;
    height: calc(10.03 / 1920 * 100vw);
    background: linear-gradient(to right, #00EEFF 0%, #A64DFF 100%);
}

.bg-marquee__title-wrap {
    display: inline-flex;
    flex-direction: column;
    margin-top: calc(20 / 1920 * 100vw);
}

.bg-marquee__title {
    font-size: calc(61 / 1920 * 100vw);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    background: linear-gradient(to right, #00BAFF 0%, #12EDFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-marquee__text {
    margin-top: calc(48 / 1920 * 100vw);
    font-size: calc(16 / 1920 * 100vw);
    font-weight: var(--font-weight-bold);
    line-height: calc(26 / 16);
    background: linear-gradient(to right, #00BAFF 0%, #12EDFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-marquee--report .bg-marquee__bar {
    height: 10.03px;
}

.bg-marquee--report .bg-marquee__title-wrap {
    margin-top: 20px;
}

.bg-marquee--report .bg-marquee__title {
    font-size: 61px;
    line-height: 1;
}

.bg-marquee--report .bg-marquee__text {
    margin-top: 48px;
    font-size: 16px;
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fade-in-marquee 600ms ease-in-out 0.3s forwards;
}

/* ---- error-content（500 / not-found ページ） ---- */
.error-content {
    display: flex;
    min-height: 60vh;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}

.error-content__inner {
    max-width: 400px;
    text-align: center;
}

.error-content__code {
    margin-bottom: 8px;
    font-size: 96px;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    color: rgba(255, 255, 255, 0.2);
}

.error-content__title {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    line-height: calc(32 / 24);
    color: var(--color-white);
}

.error-content__description {
    margin-bottom: 32px;
    font-size: 14px;
    line-height: calc(24 / 14);
    color: rgba(255, 255, 255, 0.6);
}

.error-content__mobile-break {
    display: none;
}

.error-content__actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
}

.error-content__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    line-height: calc(20 / 14);
    transition: background-color 0.15s;
}

.error-content__button--primary {
    background: var(--color-white);
    color: #002a6a;
}

.error-content__button--primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.error-content__button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.error-content__button--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 767px) {
    .error-content__mobile-break {
        display: inline;
    }

    .error-content__actions {
        flex-direction: column;
    }
}

/* ===== COMMON: ANIMATIONS ===== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes scroll-left {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes toast-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-in-marquee {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.25;
    }
}

@keyframes consultation-pulse {
    50% {
        opacity: 0.5;
    }
}

@keyframes consultation-bounce {

    0%,
    100% {
        transform: translateY(-100%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes report-tab-pane-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ================================================
   ─ ページ別 ─
   ================================================ */

/* ===== AUTH: LAYOUT ===== */
.auth-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
    background: #183f8c;
}

.auth-layout__background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.auth-layout__decoration {
    position: absolute;
    top: 9.5%;
    left: -104px;
    width: auto;
    height: 81%;
    pointer-events: none;
}

.auth-layout__overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-color: rgba(13, 18, 26, 0.6);
    backdrop-filter: var(--filter-glass);
    -webkit-backdrop-filter: var(--filter-glass);
}

.auth-layout__main {
    position: relative;
    z-index: 10;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: safe center;
    justify-content: safe center;
    overflow-y: auto;
}

.auth-layout__frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 32px 16px;
}

.auth-bg-sp {
    position: absolute;
    display: none;
    max-width: none;
}

.auth-bg-pc {
    position: absolute;
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    max-width: none;
    object-fit: cover;
}

/* ---- auth common primitives (container / logo / title / control / button / form / field / link / page) ---- */
.auth-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-inline: auto;
}

.auth-container--sm {
    max-width: 484px;
}

.auth-container--md {
    max-width: 600px;
}

.auth-loading {
    display: flex;
    width: 100%;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
}

.auth-loading__spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    animation: spin 1s linear infinite;
}

.auth-logo {
    width: 160px;
    height: 66px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    line-height: calc(46 / 32);
    text-align: center;
    color: var(--color-white);
    margin-bottom: 40px;
}

.auth-label {
    font-size: 14px;
    line-height: calc(27.2 / 14);
    color: var(--color-white);
}

.auth-control {
    width: 100%;
    height: 56px;
    padding-inline: 24px;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-input);
    -webkit-backdrop-filter: var(--filter-glass-input);
    font-size: 16px;
    line-height: calc(24 / 16);
    color: var(--color-white);
    text-align: left;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.auth-control::placeholder {
    font-size: 16px;
    line-height: calc(24 / 16);
    color: rgba(255, 255, 255, 0.5);
}

.auth-control:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.auth-control--error {
    border: 1px solid rgba(248, 113, 113, 0.5);
}

.auth-divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
}

.auth-surface {
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.13);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.auth-surface--soft {
    background: rgba(255, 255, 255, 0.05);
}

.auth-message {
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: calc(22.4 / 14);
    white-space: pre-line;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    color: var(--color-white);
}

.auth-message--error {
    border: 1px solid rgba(248, 113, 113, 0.25);
    background: rgba(185, 28, 28, 0.35);
}

.auth-message--info {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.auth-error-text {
    margin-top: 8px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: rgba(255, 204, 211, 0.96);
}

.auth-button {
    width: calc(100% - 4px);
    height: 56px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: calc(24 / 16);
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.auth-button--primary {
    background: var(--color-white);
    color: var(--color-primary);
}

.auth-button--primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.auth-button--secondary {
    border: 1px solid var(--color-white);
    background: transparent;
    color: var(--color-white);
}

/* NOTE: disabled 状態は LoginForm.tsx の Tailwind `disabled:opacity-50 disabled:cursor-not-allowed` を BEM 化したもの */
.auth-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.auth-actions--standalone {
    margin-top: 28px;
}

.auth-link-list {
    text-align: center;
    margin-top: 24px;
}


.auth-link-list--offset {
    margin-top: 36px;
}

.auth-link {
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-bottom: 8px;
}

.auth-link-list .auth-link:last-child {
    margin-bottom: 0;
}

/* NOTE: auth-link--block は LoginForm / register の Tailwind `block w-full` を BEM 化 — button 要素で width:100% を効かせるため同梱 */
.auth-link--block {
    display: block;
    width: 100%;
}

/* NOTE: auth-link--hoverable は LoginForm / register の Tailwind `transition-colors hover:text-white/80` を BEM 化 */
.auth-link--hoverable {
    transition: color 0.2s ease;
}

.auth-link--hoverable:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* NOTE: auth-link--no-underline は register/page.tsx の Tailwind `no-underline` を BEM 化 */
.auth-link--no-underline {
    text-decoration: none;
}

/* NOTE: button.auth-link:disabled は register/page.tsx の Tailwind `disabled:opacity-50 disabled:cursor-not-allowed` を BEM 化 */
.auth-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-page {
    display: flex;
    flex-direction: column;
}

.auth-page__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.auth-page__content {
    display: flex;
    flex-direction: column;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-field {
    width: 100%;
    margin-bottom: 16px;
}

.auth-field-group {
    margin-bottom: 16px;
}

.auth-field-group .auth-field:last-child {
    margin-bottom: 0;
}



.auth-button-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}


.auth-button-icon--line {
    width: 24px;
    height: 22.87px;
}

.auth-alt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-inline: 2px;
    margin: 24px 0;
}

/* NOTE: .auth-alt > .auth-divider は LoginForm.tsx の Tailwind `flex-1` を BEM 化した descendant 指定 */
.auth-alt>.auth-divider {
    flex: 1;
}

.auth-alt__label {
    font-size: 16px;
    font-weight: 700;
    line-height: calc(24 / 16);
    text-align: left;
    color: var(--color-white);
}

.auth-line-button {
    gap: 7px;
    padding-inline: 16px;
    border-radius: var(--radius-lg);
    background: #24bc4d;
    color: var(--color-white);
}

.auth-line-button:hover {
    background: #1fa843;
}

/* NOTE: auth-line-button__label は tsx のマーカー用。auth.css に定義なし — 空定義で互換維持 */
.auth-line-button__label {}

.auth-feedback {
    margin-bottom: 16px;
}

.auth-feedback--roomy {
    margin-bottom: 20px;
}

/* NOTE: auth-feedback--bordered は LoginForm.tsx の Tailwind `border border-white/20` を BEM 化した modifier */
.auth-feedback--bordered {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* NOTE: auth-feedback__note は LoginForm.tsx の <p className="text-white/80 text-sm"> を BEM 化 */
.auth-feedback__note {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: rgba(255, 255, 255, 0.8);
}

/* ---- auth-description / auth-page__description (共通テキスト) ---- */
.auth-description {
    font-size: 16px;
    line-height: calc(27.2 / 16);
    color: var(--color-white);
}

.auth-page__description {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 32px;
}

.auth-page__description--left {
    text-align: left;
}

.auth-page__description--center {
    text-align: center;
}

.auth-page__description--forgot-sent {
    margin-bottom: 16px;
}

/* ---- auth-field / auth-button-icon 追加 modifier ---- */

.auth-button-icon--mail {
    width: 17px;
    height: 15px;
}

.auth-button-icon--verify {
    width: 16.534px;
    height: 14.172px;
}

/* ---- auth-code-notice / auth-code-input (register-code step で使用) ---- */
.auth-code-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.auth-code-notice__icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.auth-code-notice__text {
    text-align: left;
    font-size: 14px;
    line-height: calc(20 / 14);
    letter-spacing: 0.05em;
    color: #d76069;
}

.auth-code-input {
    padding-inline: 24px;
    caret-color: var(--color-white);
}

.auth-code-input--filled {
    text-align: center;
    font-size: 34px;
    font-weight: 600;
    line-height: calc(45.9 / 34);
    letter-spacing: 0.36em;
    font-variant-numeric: tabular-nums;
}

.auth-code-input--empty {
    font-size: 16px;
    font-weight: 700;
    line-height: calc(24 / 16);
}

.auth-text-links__inline {
    display: inline;
}

/* ===== AUTH: LOGIN ===== */

/* ===== AUTH: REGISTER ===== */
.auth-register-shell {
    padding-bottom: 48px;
}

.auth-register-shell--profile {
    padding-bottom: 40px;
}


.auth-register-title {
    margin-bottom: 36px;
}

.auth-register-title--profile {
    margin-bottom: 40px;
}

.auth-section {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-section--confirm {
    padding-top: 26px;
    margin-bottom: -8px;
}

.auth-section--plan {
    padding-top: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.auth-row--start {
    align-items: flex-start;
}

.auth-row__label {
    align-self: center;
    flex-shrink: 0;
}

.auth-row__label .auth-label {
    display: block;
    width: 120px;
}

.auth-row__content {
    flex: 1;
    min-width: 0;
}

.auth-row__content--stack {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-row__stack-item+.auth-row__stack-item {
    margin-top: 16px;
}

.auth-row__content--payment {
    width: 282px;
}

.auth-value {
    font-size: 18px;
    font-weight: 700;
    line-height: calc(23.8 / 18);
    color: var(--color-white);
}

.auth-summary-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-summary-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.auth-summary-item__label {
    width: 22%;
    flex-shrink: 0;
    text-align: left;
}

.auth-summary-item__value {
    flex: 1;
    text-align: left;
}

.auth-summary-item__value--break {
    word-break: break-all;
}

.stripe-field {
    display: flex;
    width: 100%;
    height: 56px;
    align-items: center;
    padding-inline: 24px;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-input);
    -webkit-backdrop-filter: var(--filter-glass-input);
    transition: box-shadow 0.2s ease;
}

.stripe-field--focused {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.stripe-field--invalid {
    border: 1px solid rgba(248, 113, 113, 0.5);
}

.stripe-field>div {
    flex: 1;
}

.auth-plan-choice-heading {
    width: 120px;
    flex-shrink: 0;
    align-self: center;
    padding-bottom: 48px;
}

.auth-plan-choice-title {
    font-size: 14px;
    line-height: calc(27.2 / 14);
    color: var(--color-white);
}

.auth-plan-choice-list {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
}

.plan-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.plan-card--free {
    background: rgba(0, 0, 0, 0.13);
}

.plan-card--standard {
    background: rgba(0, 0, 0, 0.13);
}

.plan-card-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.57;
}

.plan-card-overlay--free {
    background: linear-gradient(90deg, #5f53d9 0%, #3d3bb0 100%);
}

.plan-card-overlay--standard {
    background: linear-gradient(to right, rgba(0, 238, 255, 1), rgba(166, 77, 255, 1));
}

.auth-plan-card {
    display: flex;
    width: 480px;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.auth-plan-card--free {
    padding: 16px 20px 23px 25px;
}

.auth-plan-card--standard {
    padding: 16px 20px 18px 25px;
}

.auth-plan-card--inactive {
    background: rgba(255, 255, 255, 0.05);
}

.auth-plan-card--inactive:hover {
    background: rgba(255, 255, 255, 0.08);
}

.auth-plan-card__overlay {
    transition: opacity 0.2s ease;
}

.auth-plan-card__overlay--visible {
    opacity: 1;
}

.auth-plan-card__overlay--hidden {
    opacity: 0;
}

.auth-plan-card__radio {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.auth-plan-card__content {
    position: relative;
}

.auth-plan-card__content--standard {
    flex: 1;
}

.auth-plan-card__name {
    font-weight: 700;
    color: var(--color-white);
    font-size: 24px;
    line-height: calc(35 / 24);
}

.auth-plan-card__name--free {
    margin-bottom: 9px;
}

.auth-plan-card__name--standard {
    margin-bottom: 15px;
}

.auth-plan-card__subtext {
    font-size: 14px;
    line-height: calc(23.8 / 14);
}

.auth-plan-card__subtext--free {
    color: rgba(255, 255, 255, 0.8);
}

.auth-plan-card__price-row {
    position: relative;
    line-height: calc(23.8 / 14);
}

.auth-plan-card__price-value {
    font-size: 23px;
    font-weight: 700;
    line-height: calc(29 / 23);
    color: var(--color-white);
}

.auth-plan-card__price-value--animated {
    animation: auth-register-price-fade-in 0.2s ease-out;
}

.auth-plan-card__price-suffix {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.auth-plan-card__price-break {
    display: none;
}

.auth-plan-card__price-separator {
    display: inline;
}

.auth-plan-card__annual-note {
    margin-left: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.plan-card-billing-toggle {
    position: relative;
    display: flex;
    width: 182px;
    height: 22px;
    gap: 2px;
    margin-bottom: 10px;
    padding: 2px 3px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.5);
}

.plan-card-billing-toggle__thumb {
    position: absolute;
    top: 2px;
    width: 88px;
    height: 18px;
    border-radius: 9px;
    background: var(--color-white);
    transform: translateX(0);
    transition: transform 0.2s ease-in-out;
}

.plan-card-billing-toggle__thumb--annual {
    transform: translateX(90px);
}

.plan-card-billing-toggle__button {
    position: relative;
    z-index: 10;
    display: flex;
    width: 88px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    line-height: calc(23 / 13);
    transition: color 0.2s ease;
}

.plan-card-billing-toggle__button--active {
    color: #022a6a;
}

.plan-card-billing-toggle__button--inactive {
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.auth-email-panel {
    width: 100%;
    margin-bottom: 40px;
}

.auth-email-panel__box {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    padding: 15px 24px 17px;
    border: 2px solid rgba(202, 209, 219, 0.5);
    border-radius: 12px;
    background: transparent;
}

.auth-email-panel__loading {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.auth-email-panel__text {
    text-align: left;
}

.auth-email-panel__label {
    font-size: 16px;
    line-height: calc(24 / 16);
    text-align: left;
    color: rgba(255, 255, 255, 0.5);
}

.auth-email-panel__value {
    font-size: 16px;
    line-height: calc(24 / 16);
    text-align: left;
    color: var(--color-white);
}

.auth-email-panel__break {
    display: none;
}

.auth-email-panel__skeleton {
    width: 132px;
    height: 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.14);
}

.auth-email-panel__skeleton--loading {
    animation: auth-email-panel-skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


.auth-consent {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    margin-inline: auto;
    padding: 40px 16px;
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.auth-consent__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-consent__check {
    display: flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.auth-consent__check--checked {
    border-color: var(--color-white);
    background: var(--color-white);
    color: #0e0e43;
}

.auth-consent__text {
    font-size: 13px;
    line-height: calc(22.1 / 13);
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
}

.auth-consent__link {
    color: var(--color-white);
    text-decoration: underline;
}

.auth-button--profile-back {
    width: 173px;
}

.auth-button--profile-next {
    width: 412px;
}

.auth-button--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-payment-note {
    margin-bottom: 40px;
    font-size: 14px;
    line-height: calc(23.8 / 14);
    text-align: left;
    color: var(--color-white);
}

.auth-payment-submit {
    width: 100%;
}

.auth-payment-help {
    margin-top: 8px;
    font-size: 12px;
    line-height: calc(23.8 / 12);
    text-align: center;
    color: var(--color-white);
}

.auth-plan-page__spinner-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 0;
}

.auth-plan-page__spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    animation: spin 1s linear infinite;
}

.auth-plan-page__fields--hidden {
    position: absolute;
    z-index: -10;
    visibility: hidden;
}

.auth-plan-page__card-number-field {
    display: flex;
    align-items: center;
}

.auth-plan-page .auth-row {
    justify-content: flex-start;
    gap: 48px;
}

.auth-plan-page .auth-row__label .auth-label {
    width: 125px;
    letter-spacing: -0.01em;
}

.auth-plan-page__card-number-input {
    flex: 1;
}

.auth-plan-page__card-brands {
    width: 103px;
    height: 16px;
    margin-left: 8px;
    flex-shrink: 0;
}

.auth-plan-page__security-break {
    display: none;
}

.auth-plan-page__divider {
    margin-bottom: 28px;
}

.auth-plan-page__error {
    margin-bottom: 28px;
}

.auth-plan-page__back-button {
    flex: 0 0 173px;
    width: 173px;
    min-width: 173px;
    height: 56px;
    border: 1px solid var(--color-white);
    border-radius: 12px;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    line-height: calc(23.8 / 16);
}

.auth-plan-page__submit-button {
    width: 100%;
    height: 56px;
}

.auth-plan-page__top-error {
    margin-bottom: 28px;
}

.auth-plan-page__selected-plan {
    margin-bottom: 40px;
}

.auth-plan-page__selected-plan-label {
    display: block;
    margin-bottom: 6px;
}

.auth-plan-page__selected-plan-card-wrap {
    width: 100%;
}

.auth-plan-page__selected-plan-card {
    display: flex;
    width: 100%;
    height: 92px;
    align-items: center;
    padding: 19px 21px 23px;
    text-align: left;
}

.auth-plan-page__selected-plan-content {
    position: relative;
}

.auth-plan-page__selected-plan-title {
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 700;
    line-height: calc(26 / 18);
    text-align: left;
    color: var(--color-white);
}

.auth-plan-page__selected-plan-price {
    margin-bottom: 1px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: var(--color-white);
}

.auth-confirm-empty {
    text-align: center;
}

.auth-confirm-empty__message {
    color: #dc2626;
}

.auth-confirm-error {
    margin-bottom: 28px;
}

.auth-confirm-divider {
    margin-bottom: 40px;
}

.auth-confirm-back-button {
    width: 173px;
}

.auth-confirm-submit-button {
    width: 412px;
}

.auth-confirm-plan {
    margin-top: -6px;
    margin-bottom: 28px;
}

.auth-confirm-plan__inner {
    display: flex;
    flex-direction: column;
}

.auth-confirm-plan__label {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.8);
}

.auth-confirm-plan__card {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px 0;
    text-align: left;
}

.auth-confirm-plan__card--standard {
    height: 124px;
}

.auth-confirm-plan__card--free {
    height: 92px;
}

.auth-confirm-plan__content {
    position: relative;
}

.auth-confirm-plan__title {
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 700;
    line-height: calc(26 / 18);
    text-align: left;
    color: var(--color-white);
}

.auth-confirm-plan__free-description {
    margin-top: 2px;
    font-size: 13px;
    line-height: calc(19 / 13);
    text-align: left;
    color: var(--color-white);
}

.auth-confirm-plan__price-value {
    font-size: 24px;
    font-weight: 700;
    line-height: calc(35 / 24);
    color: var(--color-white);
}

.auth-confirm-plan__price-suffix {
    font-size: 16px;
    line-height: calc(35 / 16);
    color: rgba(255, 255, 255, 0.8);
}

.auth-confirm-plan__price-note {
    margin-top: 2px;
    font-size: 13px;
    line-height: calc(19 / 13);
    text-align: left;
    color: var(--color-white);
}

@keyframes auth-register-price-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes auth-email-panel-skeleton-pulse {
    50% {
        opacity: 0.5;
    }
}

/* ===== AUTH: FORGOT / RESET PASSWORD ===== */
.auth-notice {
    width: 100%;
    text-align: center;
    margin-bottom: 32px;
}

.auth-notice__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
}

.auth-notice__icon {
    width: 16px;
    height: 16px;
    margin: 2px 4px 2px 0;
    flex-shrink: 0;
}

.auth-notice__text {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #d76069;
}

.auth-notice__list {
    list-style: none;
    width: fit-content;
    margin: 0 auto;
    padding-left: 0;
    text-align: left;
}

.auth-notice__item {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #d76069;
}


/* ===== AUTH: LINE CALLBACK ===== */
.line-callback {
    min-height: 60dvh;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
}

.line-callback__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.line-callback__text {
    text-align: center;
}

.line-callback__button {
    max-width: 280px;
}

.line-callback__warning {
    padding: 16px;
    border: 1px solid var(--color-warning);
    border-radius: var(--radius-lg);
    background: var(--color-warning-soft);
    text-align: left;
}

.line-callback__warning-title {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: calc(22 / 14);
    color: rgba(253, 224, 71, 0.95);
}

.line-callback__warning-body {
    font-size: 14px;
    line-height: calc(22 / 14);
    color: rgba(255, 255, 255, 0.85);
}

.line-callback__fallback-spinner {
    width: 32px;
    height: 32px;
    margin-inline: auto;
    border: 2px solid transparent;
    border-bottom-color: var(--color-white);
    border-radius: 9999px;
    animation: spin 1s linear infinite;
}

/* ===== MAIN: LAYOUT ===== */
/* ---- account-context-menu ---- */
.account-context-menu {
    position: fixed;
    z-index: 50;
    width: 242px;
    overflow: hidden;
    padding: 12px 0;
    border: 2px solid #fff;
    border-radius: 8px;
    background: #0d2347;
    box-shadow: none;
}

.account-context-menu__item {
    display: flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    gap: 12px;
    padding: 3px 18px;
    text-align: left;
    transition: opacity 0.2s;
}

.account-context-menu__item:hover {
    opacity: 0.7;
}

.account-context-menu__icon-wrap {
    display: flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-context-menu__icon {
    height: auto;
    flex-shrink: 0;
}

.account-context-menu__icon--setting,
.account-context-menu__icon--guide,
.account-context-menu__icon--knowledge,
.account-context-menu__icon--contact,
.account-context-menu__icon--logout {
    width: 18px;
}

.account-context-menu__icon--terms,
.account-context-menu__icon--privacy {
    width: 16px;
}

/* NOTE: icon--faq / icon--commerce は globals.css にも width 定義が無かった既存状態を保持。別タスクで幅を設計する */
.account-context-menu__icon--faq,
.account-context-menu__icon--commerce {
    /* width 未設定（現状保持） */
}

.account-context-menu__text {
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
}

.account-context-menu__divider {
    height: 1px;
    margin: 10px 1px 8px;
    background: rgba(255, 255, 255, 0.25);
}

.account-context-menu__debug {
    margin: 12px 1px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.account-context-menu__debug-text {
    font-size: 12px;
    line-height: calc(18 / 12);
    color: #fb923c;
}

.main-layout {
    display: flex;
    height: 100dvh;
    overflow: hidden;
    background: transparent;
}

.main-layout--loading {
    position: relative;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

.main-layout__background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.main-layout__background-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.main-layout__background-image.main-bg {
    object-position: 30% center;
}

.main-layout__marquee {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.main-layout__marquee-track {
    display: flex;
    flex-shrink: 0;
    will-change: transform;
    contain: layout style;
}

.main-layout__marquee-track--scroll {
    animation: scroll-left var(--scroll-duration, 480s) linear infinite;
}

.main-layout__content {
    position: relative;
    z-index: 10;
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.main-layout__mobile-header {
    display: none;
    flex-shrink: 0;
}

.main-layout__mobile-header-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    padding: 0 20px;
}

.main-layout__mobile-logo {
    width: 34px;
    height: auto;
}

.main-layout__mobile-toggle {
    position: absolute;
    top: 1.87px;
    right: 6.17px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.main-layout__mobile-toggle--open {
    top: 0.97px;
}

.main-layout__mobile-toggle-icon {
    position: relative;
    display: block;
    width: 15.74px;
    height: 14px;
}

.main-layout__mobile-toggle-bar {
    position: absolute;
    left: 0;
    display: block;
    width: 15.74px;
    height: 1.71px;
    border-radius: var(--radius-full);
    background: var(--color-white);
    transform-origin: center;
    transition:
        width 0.12s ease,
        left 0.12s ease,
        top 0.2s ease,
        transform 0.2s ease,
        opacity 0.16s ease;
}

.main-layout__mobile-toggle-bar:nth-child(1) {
    top: 0;
}

.main-layout__mobile-toggle-bar:nth-child(2) {
    top: calc((14px - 1.71px) / 2);
}

.main-layout__mobile-toggle-bar:nth-child(3) {
    top: calc(14px - 1.71px);
}

.main-layout__mobile-toggle--open .main-layout__mobile-toggle-icon {
    width: 12.34px;
    height: 12.34px;
}

.main-layout__mobile-toggle--open .main-layout__mobile-toggle-bar {
    top: calc((12.34px - 1.71px) / 2);
    left: calc((12.34px - 15.73px) / 2);
    width: 15.73px;
}

.main-layout__mobile-toggle--open .main-layout__mobile-toggle-bar:nth-child(1) {
    transform: rotate(45deg);
}

.main-layout__mobile-toggle--open .main-layout__mobile-toggle-bar:nth-child(2) {
    opacity: 0;
}

.main-layout__mobile-toggle--open .main-layout__mobile-toggle-bar:nth-child(3) {
    transform: rotate(-45deg);
}

.main-layout__mobile-divider {
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.main-layout__main {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.main-layout__scroll-layer {
    position: absolute;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ---- sidebar ---- */

/* サイドバー用極細スクロールバー */
.sidebar-scrollbar::-webkit-scrollbar {
    width: 3px;
}

.sidebar-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.sidebar-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar-layout {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: 240px;
    height: 100dvh;
    transform: translateX(0);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    background: var(--color-overlay-soft);
    backdrop-filter: var(--filter-glass-bubble);
    -webkit-backdrop-filter: var(--filter-glass-bubble);
    transition: width 0.3s ease-in-out;
}

.sidebar-layout__header {
    position: relative;
    display: flex;
    justify-content: center;
    padding-inline: 16px;
    overflow: hidden;
    transition: padding 0.3s ease-in-out;
}

.sidebar-layout__header--open {
    padding-top: 57px;
    padding-bottom: 49px;
}

.sidebar-layout__header--collapsed {
    padding-top: 16px;
    padding-bottom: 40px;
}

.sidebar-layout__logo {
    flex-shrink: 0;
    transition: all 0.3s;
}

.sidebar-layout__logo--mini {}

.sidebar-layout__logo--full {
    overflow: hidden;
}

.sidebar-layout__logo--full-open {
    width: 165px;
    height: 72px;
    opacity: 1;
}

.sidebar-layout__logo--full-collapsed {
    position: absolute;
    width: 48px;
    height: 20px;
    opacity: 0;
}

.sidebar-layout__logo--mini-open {
    position: absolute;
    width: 48px;
    height: 20px;
    opacity: 0;
}

.sidebar-layout__logo--mini-collapsed {
    width: 48px;
    height: 20px;
    opacity: 1;
}

.sidebar-layout__logo-image {
    width: 100%;
    height: auto;
}

.sidebar-layout__toggle {
    position: absolute;
    top: 16px;
    right: -58px;
    z-index: 50;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.sidebar-layout__toggle:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.sidebar-layout__toggle-inner {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(6, 32, 64, 0.4);
}

.sidebar-layout__toggle-icon {
    width: 16px;
    height: 13px;
}

.sidebar-layout__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding: 0 16px 0;
    transition: all 0.3s;
}

.sidebar-layout__history {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-inline: 16px;
}

.sidebar-layout__footer {
    height: 61px;
    min-height: 61px;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-layout--collapsed {
    width: 82px;
}

.sidebar-layout--collapsed .sidebar-nav__link {
    justify-content: center;
    gap: 0;
    padding-inline: 0;
}

.sidebar-layout--collapsed .sidebar-nav__link--new {
    padding-inline: 0;
}

.sidebar-nav__group {
    width: 100%;
    margin-bottom: 11px;
}

.sidebar-nav__group>.sidebar-nav__link+.sidebar-nav__link {
    margin-top: 8px;
}

.sidebar-nav__link {
    display: flex;
    width: 100%;
    height: 48px;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding-inline: 12px;
}

.sidebar-nav__link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 1);
}

.sidebar-nav__link--new {
    margin-bottom: 8px;
    border-color: transparent;
    background: #000;
    padding-inline: 14px;
    transition: opacity 0.2s;
}

.sidebar-nav__link--new:hover {
    background: #000;
    border-color: transparent;
    opacity: 0.7;
}

.sidebar-nav__link--active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 1);
}

.sidebar-nav__link--new.sidebar-nav__link--active {
    background: #000;
    border-color: transparent;
}

.sidebar-nav__link--disabled,
.sidebar-nav__link--disabled:hover {
    opacity: 0.5;
}

.sidebar-nav__icon {
    display: flex;
    width: 20px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-nav__icon-image {}

.sidebar-nav__icon-image--new,
.sidebar-nav__icon-image--trend,
.sidebar-nav__icon-image--history {
    width: 20px;
    height: 20px;
}

.sidebar-nav__icon-image--report {
    width: 16px;
    height: 21px;
}

.sidebar-nav__label {
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: calc(42 / 14);
    white-space: nowrap;
    transition: max-width 0.3s ease-in-out;
}

.sidebar-nav__label--open {
    max-width: 200px;
}

.sidebar-nav__label--collapsed {
    max-width: 0;
}

.sidebar-history {
    width: 100%;
    transition: all 0.3s;
}

.sidebar-history--fixed-title {
    padding-inline: 16px;
}

.sidebar-history--expanded {
    opacity: 1;
}

.sidebar-history--collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.sidebar-history__title {
    margin-top: 12px;
    padding-top: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: calc(25.2 / 14);
    color: #859cb5;
}

.sidebar-history__loading {
    padding: 8px 12px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-history__loading--center {
    text-align: center;
}

.sidebar-history__list {
    display: flex;
    flex-direction: column;
}

.sidebar-history__item {
    position: relative;
    margin-bottom: 6px;
}

.sidebar-history__item-link {
    display: block;
    padding: 0;
}

.sidebar-history__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 24px;
    font-size: 14px;
    font-weight: 700;
    line-height: calc(25.2 / 14);
}

.sidebar-history__marker {
    flex-shrink: 0;
}

.sidebar-history__link {
    display: inline-block;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.sidebar-history__link--active {
    text-decoration-line: underline;
    text-decoration-color: currentColor;
}

.sidebar-history__link--inactive {
    text-decoration-line: none;
}

.sidebar-history__subtext {
    margin-top: 2px;
    overflow: hidden;
    font-size: 12px;
    line-height: calc(16 / 12);
    color: rgba(255, 255, 255, 0.4);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-history__menu-trigger-icon {
    width: 3px;
    height: 13px;
}

.sidebar-history__menu-trigger {
    position: absolute;
    top: 50%;
    right: 0;
    display: flex;
    width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
    transition: background-color 0.2s, opacity 0.2s;
}

.sidebar-history__menu-trigger--shown {
    opacity: 1;
}

.sidebar-history__menu-trigger:hover,
.sidebar-history__menu-trigger--active {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-history-menu {
    position: fixed;
    z-index: 60;
    right: auto;
    width: 155px;
    height: 95px;
    background: transparent;
}

/* sidebar-history-menu の派生要素は consultation-title-menu__* と複合 className で
   実体スタイルが当たる。tsx で参照されるため verify を通すための空定義 */
.sidebar-history-menu__list {}

.sidebar-history-menu__item {}

.sidebar-history-menu__item--danger {}

.sidebar-history-menu__item-icon-wrap {}

.sidebar-history-menu__item-icon {}

.sidebar-history-menu__item-icon--rename {}

.sidebar-history-menu__item-icon--delete {}

/* ---- consultation-title-menu （Sidebar history menu と consultation page で共有） ---- */
.consultation-title-menu {
    position: relative;
}

.consultation-title-menu__trigger {
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.consultation-title-menu__trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.consultation-title-menu__trigger-icon {
    width: 20px;
    height: 20px;
}

.consultation-title-menu__panel {
    position: absolute;
    top: 100%;
    right: 8px;
    z-index: 50;
    width: 155px;
    height: 95px;
    margin-top: 14px;
    padding: 18px 18px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: transparent;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.consultation-title-menu__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.consultation-title-menu__item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
    text-align: left;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.consultation-title-menu__item:hover {
    opacity: 0.7;
}

.consultation-title-menu__item--danger {
    color: #d76069;
}

.consultation-title-menu__item-icon-wrap {
    display: flex;
    width: 20px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.consultation-title-menu__item-icon {}

.consultation-title-menu__item-icon--rename {
    width: 18px;
    height: 18px;
}

.consultation-title-menu__item-icon--delete {
    width: 16px;
    height: 21px;
}

.sidebar-account-button {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
}

.sidebar-account-button--open {
    gap: 12px;
    padding-inline: 16px;
}

.sidebar-account-button--collapsed {
    justify-content: center;
}

.sidebar-account-button__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
    padding-bottom: 9px;
    text-align: left;
}

.sidebar-account-button__info--collapsed {
    display: none;
}

.sidebar-account-button__name {
    font-size: 14px;
    font-weight: 700;
    line-height: calc(25.2 / 14);
    white-space: nowrap;
}

.sidebar-account-button__plan {
    font-size: 14px;
    font-weight: 700;
    line-height: calc(25.2 / 14);
    color: #859CB5;
}

.sidebar-account-button__dots {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-left: auto;
}

.sidebar-account-button__icon {
    width: 18px;
    height: 23px;
    display: none;
}

.sidebar-account-button__icon--visible {
    display: block;
}

.sidebar-account-button__plan-skeleton {
    display: inline-block;
    width: 100px;
    height: 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== PUBLIC: LAYOUT ===== */
.public-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.public-layout-main {
    flex: 1;
}

/* ---- public-header ---- */
.public-header {
    width: 100%;
    height: 68px;
    border-bottom: 1px solid transparent;
    background: #07072a;
}

.public-header__inner {
    display: flex;
    height: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
}

.public-header__logo-link {
    display: flex;
    align-items: center;
}

.public-header__logo {
    /* サイズは img の width/height 属性で指定 */
}

.public-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.public-header__nav-link {
    font-size: 12px;
    line-height: calc(16 / 12);
    letter-spacing: 1.44px;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s;
}

.public-header__nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.public-header__nav-link--uppercase {
    text-transform: uppercase;
}

.public-header__cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-header__cta {
    border-radius: 8px;
    transition: color 0.2s, border-color 0.2s, opacity 0.2s;
    font-size: 12px;
    line-height: calc(16 / 12);
}

.public-header__cta--secondary {
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    letter-spacing: 0.96px;
    color: rgba(255, 255, 255, 0.65);
}

.public-header__cta--secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.public-header__cta--primary {
    padding: 10px 24px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #07072a;
    background-image: linear-gradient(135deg, rgb(0, 237, 255) 0%, rgb(166, 77, 255) 100%);
}

/* ---- public-footer ---- */
.public-footer {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(4, 4, 20, 0.98);
}

.public-footer__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 52px 16px 0;
}

.public-footer__top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.public-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.public-footer__logo {
    opacity: 0.6;
}

.public-footer__tagline {
    font-size: 10px;
    font-weight: 300;
    line-height: calc(14 / 10);
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, 0.35);
}

.public-footer__nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.public-footer__nav-link {
    font-size: 11px;
    font-weight: 300;
    line-height: calc(16 / 11);
    letter-spacing: 0.66px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s;
}

.public-footer__nav-link:hover {
    color: rgba(255, 255, 255, 0.6);
}

.public-footer__bottom {
    margin-top: 40px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.public-footer__copyright {
    font-size: 10px;
    font-weight: 300;
    line-height: calc(14 / 10);
    letter-spacing: 0.8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
}

/* ---- legal shared layout ---- */
html:has(.legal-page-root),
body:has(.legal-page-root) {
    overflow-x: clip;
}

.legal-page-root {
    font-family: var(--font-sans);
    background: #0c1474;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.legal-page-root main {
    position: relative;
    z-index: 1;
}

.legal-page-root .legal-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    height: 120px;
    padding: 32px;
    align-items: flex-start;
    background: linear-gradient(to bottom, rgba(0, 32, 82, 0.6), rgba(0, 32, 82, 0));
}

.legal-page-root .legal-header-bar .logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    text-decoration: none;
}

.legal-page-root .legal-header-bar .logo img {
    width: auto;
    height: 56px;
}

.legal-page-root .page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.legal-page-root .page-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legal-page-root .site-bg {
    position: absolute;
    top: 100vh;
    right: calc(((395 / 1440) * 100vw) * -1);
    z-index: 0;
    pointer-events: none;
}

.legal-page-root .site-bg--fixed {
    position: fixed;
}

.legal-page-root .site-bg img {
    display: block;
    width: calc((1443 / 1440) * 100vw);
    height: auto;
}

.legal-page-root .legal {
    position: relative;
    z-index: 2;
    padding: 160px 0 120px;
}

.legal-page-root .legal-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 48px;
}

.legal-page-root .legal-header {
    margin-bottom: 64px;
    text-align: center;
}

.legal-page-root .legal-title {
    margin-bottom: 12px;
    font-family: var(--font-noto-serif-jp, 'Noto Serif JP'), serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
}

.legal-page-root .legal-update {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
}

.legal-page-root .legal-body {
    font-size: 15px;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.04em;
}

.legal-page-root .legal-body p {
    margin-bottom: 20px;
}

.legal-page-root .legal-intro {
    margin-bottom: 48px;
    font-size: 15px;
    line-height: 2;
}

.legal-page-root .legal-section {
    margin-bottom: 48px;
}

.legal-page-root .legal-section:last-child {
    margin-bottom: 0;
}

.legal-page-root .legal-section-title {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-family: var(--font-noto-serif-jp, 'Noto Serif JP'), serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.04em;
}

.legal-page-root .legal-subsection-title {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.04em;
}

.legal-page-root .legal-ol {
    list-style: none;
    counter-reset: legal-counter;
    margin-bottom: 20px;
    padding-left: 0;
}

.legal-page-root .legal-ol>li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 2em;
    counter-increment: legal-counter;
}

.legal-page-root .legal-ol>li::before {
    content: counter(legal-counter) ".";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
}

.legal-page-root .legal-ul {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}

.legal-page-root .legal-ul>li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 1.5em;
}

.legal-page-root .legal-ul>li::before {
    content: "・";
    position: absolute;
    left: 0;
}

.legal-page-root .legal-table-wrap {
    margin: 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.legal-page-root .legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.8;
}

.legal-page-root .legal-table th,
.legal-page-root .legal-table td {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
    vertical-align: top;
}

.legal-page-root .legal-table th {
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
    white-space: nowrap;
}

.legal-page-root .legal-table td {
    font-weight: 400;
}

.legal-page-root .legal-link {
    color: #7dd3fc;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.legal-page-root .legal-link:hover {
    opacity: 0.7;
}

.legal-page-root .legal-small {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.legal-page-root .legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.legal-page-root .legal-nav-link {
    font-size: 14px;
    color: #7dd3fc;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: opacity 0.2s;
}

.legal-page-root .legal-nav-link:hover {
    opacity: 0.7;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page-root .site-footer {
    position: relative;
    z-index: 2;
    margin: 0 32px 32px;
    overflow: hidden;
    padding: 0 48px;
    border-radius: 24px;
    background: #001952;
}

.legal-page-root .site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 0;
}

.legal-page-root .site-footer-brand {
    display: flex;
    align-items: center;
    gap: 28px;
}

.legal-page-root .site-footer-logo {
    width: auto;
    height: 72px;
}

.legal-page-root .site-footer-tagline {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.legal-page-root .site-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 20px 24px;
    justify-items: start;
}

.legal-page-root .site-footer-link {
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.legal-page-root .site-footer-link:hover {
    opacity: 0.7;
}

.legal-page-root .site-footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.legal-page-root .site-footer-copy {
    font-size: 12px;
}

/* ---- legal hp header ---- */
.legal-page-root--hp-header .header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 120px;
    padding: 32px;
    background: linear-gradient(to bottom, rgba(0, 32, 82, 0.6), rgba(0, 32, 82, 0));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.legal-page-root--hp-header .header-sticky--visible {
    opacity: 1;
    pointer-events: auto;
}

.legal-page-root--hp-header .header-inner {
    display: flex;
    align-items: flex-start;
}

.legal-page-root--hp-header .header-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.legal-page-root--hp-header .header-btn-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-page-root--hp-header .logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    text-decoration: none;
}

.legal-page-root--hp-header .logo img {
    width: auto;
    height: 56px;
}

.legal-page-root--hp-header .nav {
    display: flex;
    gap: 32px;
}

.legal-page-root--hp-header .nav a {
    font-family: "avenir-next-lt-pro", sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-page-root--hp-header .nav a:hover {}

.legal-page-root--hp-header .avenil {
    font-family: "avenir-next-lt-pro", sans-serif;
    letter-spacing: 0;
}

.legal-page-root--hp-header .btn-login {
    display: inline-flex;
    width: 160px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    background: transparent;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all 0.3s;
}

.legal-page-root--hp-header .btn-login:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.legal-page-root--hp-header .btn-cta {
    display: inline-flex;
    width: 204px;
    height: 56px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #00c6ff 0%, #7c3aed 100%);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    transition: opacity 0.3s, transform 0.3s;
}

.legal-page-root--hp-header .btn-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.legal-page-root--hp-header .btn-cta--sm {
    width: 160px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    justify-content: center;
    font-size: 14px;
}

.legal-page-root--hp-header .header-hamburger {
    display: none;
}

.legal-page-root--hp-header .sp-menu-overlay {
    display: none;
}

/* ===== PUBLIC: TERMS ===== */
/* ===== PUBLIC: PRIVACY ===== */
/* ===== PUBLIC: TOKUSHOHO ===== */
/* ===== PUBLIC: FAQ ===== */
.legal-page-root .faq-guide-link {
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.legal-page-root .faq-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-bubble);
    -webkit-backdrop-filter: var(--filter-glass-bubble);
}

.legal-page-root .faq-search__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-left: 16px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.legal-page-root .faq-search__input {
    width: 100%;
    padding: 14px 48px 14px 8px;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    letter-spacing: 0.04em;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.legal-page-root .faq-search__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.legal-page-root .faq-search:focus-within {
    border-color: rgba(125, 211, 252, 0.5);
}

.legal-page-root .faq-search__clear {
    position: absolute;
    right: 12px;
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.2s;
}

.legal-page-root .faq-search__clear:hover {
    background: rgba(255, 255, 255, 0.2);
}

.legal-page-root .faq-search__clear svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.legal-page-root .faq-search__count {
    margin-bottom: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.legal-page-root .faq-categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.legal-page-root .faq-category {
    /* ラッパー用途のみ。互換のため空定義 */
}

.legal-page-root .faq-category__title {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-noto-serif-jp, 'Noto Serif JP'), serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.legal-page-root .faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-page-root .faq-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-bubble);
    -webkit-backdrop-filter: var(--filter-glass-bubble);
    transition: border-color 0.2s;
}

.legal-page-root .faq-card--open {
    border-color: rgba(255, 255, 255, 0.18);
}

.legal-page-root .faq-card__question {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.legal-page-root .faq-card__q-label {
    width: 24px;
    flex-shrink: 0;
    font-family: 'avenir-next-lt-pro', 'Noto Sans JP', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    color: #2dc8d3;
}

.legal-page-root .faq-card__q-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.03em;
}

.legal-page-root .faq-card__toggle {
    width: 24px;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.legal-page-root .faq-card__answer-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.legal-page-root .faq-card__answer-wrap--open {
    grid-template-rows: 1fr;
}

.legal-page-root .faq-card__answer-clip {
    min-height: 0;
    overflow: hidden;
}

.legal-page-root .faq-card__answer {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 0 20px 20px;
}

.legal-page-root .faq-card__a-label {
    width: 24px;
    flex-shrink: 0;
    font-family: 'avenir-next-lt-pro', 'Noto Sans JP', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.9;
    text-align: center;
    color: #884bc4;
}

.legal-page-root .faq-card__a-text {
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.03em;
}

.legal-page-root .faq-empty {
    padding: 48px 0;
    text-align: center;
}

.legal-page-root .faq-empty__text {
    margin-bottom: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.legal-page-root .faq-empty__sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
}

.legal-page-root .faq-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 48px;
    padding: 28px 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-bubble);
    -webkit-backdrop-filter: var(--filter-glass-bubble);
    text-align: center;
}

.legal-page-root .faq-contact__text {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.legal-page-root .faq-contact__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(125, 211, 252, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #7dd3fc;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.legal-page-root .faq-contact__link:hover {
    border-color: rgba(125, 211, 252, 0.5);
    background: rgba(125, 211, 252, 0.08);
}

.legal-page-root .faq-contact__link-icon {
    width: 16px;
    height: 16px;
}

/* ===== PUBLIC: CONTACT ===== */
.legal-page-root .contact-description {
    display: inline-block;
    text-align: left;
}

.legal-page-root .contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.legal-page-root .contact-form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
}

.legal-page-root .contact-form__required {
    color: #f87171;
}

.legal-page-root .contact-form__input,
.legal-page-root .contact-form__textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-bubble);
    -webkit-backdrop-filter: var(--filter-glass-bubble);
    font-size: 15px;
    font-family: inherit;
    letter-spacing: 0.04em;
    outline: none;
    transition: border-color 0.2s;
}

.legal-page-root .contact-form__input::placeholder,
.legal-page-root .contact-form__textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.legal-page-root .contact-form__input:focus,
.legal-page-root .contact-form__textarea:focus {
    border-color: rgba(125, 211, 252, 0.5);
}

.legal-page-root .contact-form__input--error,
.legal-page-root .contact-form__textarea--error {
    border-color: #f87171;
}

.legal-page-root .contact-form__input--readonly {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    cursor: default;
}

.legal-page-root .contact-form__static-value {
    margin-bottom: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.legal-page-root .contact-form__textarea {
    min-height: 200px;
    resize: vertical;
}

.legal-page-root .contact-form__hint {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.legal-page-root .contact-form__error {
    margin-top: 4px;
    font-size: 13px;
    color: #f87171;
}

.legal-page-root .contact-form__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.legal-page-root .contact-form__checkbox input {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.legal-page-root .contact-form__checkbox input:checked {
    border-color: #7dd3fc;
    background: #7dd3fc;
}

.legal-page-root .contact-form__checkbox input:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #0c1474;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.legal-page-root .contact-form__checkbox-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.legal-page-root .contact-form__checkbox-text .legal-link {
    color: #7dd3fc;
    font-weight: 600;
}

.legal-page-root .contact-btn-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 24px;
}

.legal-page-root .contact-btn--outline {
    min-width: 160px;
    padding: 14px 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s;
}

.legal-page-root .contact-btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.legal-page-root .contact-btn--outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.legal-page-root .contact-btn--primary {
    min-width: 160px;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #0c1474;
    cursor: pointer;
    transition: opacity 0.2s;
}

.legal-page-root .contact-btn--primary:hover {
    opacity: 0.9;
}

.legal-page-root .contact-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.legal-page-root .contact-confirm__info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
}

.legal-page-root .contact-confirm__field-label {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.legal-page-root .contact-confirm__field-value {
    font-size: 15px;
}

.legal-page-root .contact-confirm__field-value--pre {
    white-space: pre-wrap;
}

.legal-page-root .contact-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.legal-page-root .contact-complete__icon {
    display: flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-bubble);
    -webkit-backdrop-filter: var(--filter-glass-bubble);
    box-shadow: 0 0 24px rgba(45, 200, 211, 0.15), 0 0 48px rgba(136, 75, 196, 0.08);
}

.legal-page-root .contact-complete__icon svg {
    width: 34px;
    height: 34px;
    color: #2dc8d3;
    filter: drop-shadow(0 0 6px rgba(45, 200, 211, 0.4));
}

.legal-page-root .contact-complete__title {
    margin-bottom: 8px;
    font-family: var(--font-noto-serif-jp, 'Noto Serif JP'), serif;
    font-size: 24px;
    font-weight: 700;
}

.legal-page-root .contact-complete__message {
    display: inline-block;
    font-size: 15px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

/* ===== PUBLIC: GUIDE ===== */
.legal-page-root .help-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.legal-page-root .help-toc__item {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-bubble);
    -webkit-backdrop-filter: var(--filter-glass-bubble);
    font-size: 13px;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.legal-page-root .help-toc__item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.legal-page-root .help-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.legal-page-root .help-section {
    scroll-margin-top: 100px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-bubble);
    -webkit-backdrop-filter: var(--filter-glass-bubble);
}

.legal-page-root .help-accordion {
    /* アコーディオン状態判定用のマーカー。互換のため空定義 */
}

.legal-page-root .help-section__title {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-noto-serif-jp, 'Noto Serif JP'), serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.legal-page-root .help-section__body {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.03em;
}

.legal-page-root .help-section__body p {
    margin-bottom: 12px;
}

.legal-page-root .help-section__body p:last-child {
    margin-bottom: 0;
}

.legal-page-root .help-subsection__title {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
}

.legal-page-root .help-section__body .help-subsection__title:first-child {
    margin-top: 0;
}

.legal-page-root .help-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.legal-page-root .help-list li {
    position: relative;
    margin-bottom: 6px;
    padding-left: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.legal-page-root .help-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.legal-page-root .help-list li:last-child {
    margin-bottom: 0;
}

.legal-page-root .help-note {
    margin-top: 12px;
    font-size: 13px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
}

.legal-page-root .help-link {
    color: #7dd3fc;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-page-root .help-link:hover {
    color: #bae6fd;
}

.legal-page-root .help-table-wrap {
    margin: 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.legal-page-root .help-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.legal-page-root .help-table th,
.legal-page-root .help-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    white-space: normal;
}

.legal-page-root .help-table th {
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0;
}

.legal-page-root .help-table td {
    color: rgba(255, 255, 255, 0.8);
}

.legal-page-root .help-table td strong {
    color: #fff;
}

.legal-page-root .help-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legal-page-root .help-step {
    display: flex;
    gap: 16px;
}

.legal-page-root .help-step__number {
    display: flex;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(45, 200, 211, 0.3);
    border-radius: 50%;
    background: rgba(45, 200, 211, 0.15);
    font-family: 'avenir-next-lt-pro', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    color: #2dc8d3;
}

.legal-page-root .help-step__body {
    flex: 1;
    min-width: 0;
}

.legal-page-root .help-step__title {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
}

.legal-page-root .help-accordion__trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    text-align: left;
    font-family: inherit;
}

.legal-page-root .help-accordion__trigger .help-section__title {
    flex: 1;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.legal-page-root .help-accordion__chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
}

.legal-page-root .help-accordion__chevron svg {
    width: 100%;
    height: 100%;
}

.legal-page-root .help-accordion__chevron--open {
    transform: rotate(180deg);
}

.legal-page-root .help-accordion__content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.legal-page-root .help-accordion__content--open {
    grid-template-rows: 1fr;
}

.legal-page-root .help-accordion__clip {
    min-height: 0;
    overflow: hidden;
}

.legal-page-root .help-accordion .help-section__body {
    padding-top: 8px;
}

.legal-page-root .help-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding: 28px 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-bubble);
    -webkit-backdrop-filter: var(--filter-glass-bubble);
    text-align: center;
}

.legal-page-root .help-footer__text {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.legal-page-root .help-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.legal-page-root .help-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(125, 211, 252, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #7dd3fc;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.legal-page-root .help-footer__link:hover {
    border-color: rgba(125, 211, 252, 0.5);
    background: rgba(125, 211, 252, 0.08);
}

.legal-page-root .help-footer__link-icon {
    width: 16px;
    height: 16px;
}

/* ===== MAIN: WELCOME ===== */
.welcome-page {
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.welcome-page__inner {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.welcome-page__title {
    margin-bottom: 4px;
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    line-height: calc(48 / 32);
    color: var(--color-white);
}

.welcome-page__lead {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: calc(32 / 18);
    color: rgba(255, 255, 255, 0.9);
}

.welcome-page__description {
    margin-bottom: 40px;
    font-size: 14px;
    line-height: calc(24 / 14);
    color: rgba(255, 255, 255, 0.5);
}

.welcome-page__steps {
    margin-bottom: 32px;
    text-align: left;
}

.welcome-page__steps>.welcome-page__step+.welcome-page__step {
    margin-top: 12px;
}

.welcome-page__step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.welcome-page__step::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--color-bubble-bg);
    backdrop-filter: blur(7px) brightness(0.85);
    -webkit-backdrop-filter: blur(7px) brightness(0.85);
}

.welcome-page__step>* {
    position: relative;
    z-index: 1;
}

.welcome-page__step-index {
    flex-shrink: 0;
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    line-height: calc(28 / 20);
    background: linear-gradient(135deg, #2dc8d3, #884bc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-page__step-title {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    line-height: calc(24 / 16);
    color: var(--color-white);
}

.welcome-page__step-text {
    margin-top: 4px;
    font-size: 14px;
    line-height: calc(22 / 14);
    color: rgba(255, 255, 255, 0.58);
}

.welcome-page__cta {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #00c6ff 0%, #7c3aed 100%);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    line-height: calc(24 / 16);
    color: var(--color-white);
    text-align: center;
    transition: opacity 0.2s;
}

.welcome-page__cta:hover {
    opacity: 0.85;
}

.welcome-page__guide-link {
    display: block;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.welcome-page__guide-link:hover {
    color: rgba(255, 255, 255, 0.78);
}

/* ===== MAIN: CONSULTATION ===== */
.consultation-shell {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.consultation-shell--new {
    justify-content: center;
    padding: 32px 48px;
}

.consultation-shell--detail {
    height: 100%;
}

.consultation-shell__intro {
    position: relative;
    width: 100%;
    max-width: 768px;
    align-self: center;
}

.consultation-shell__title {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 40px;
    font-weight: var(--font-weight-bold);
    line-height: calc(64 / 44);
    color: var(--color-white);
}

.consultation-shell__title-break {
    display: none;
}

.consultation-shell__lead {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: calc(28 / 18);
    color: var(--color-white);
}

.consultation-shell__header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 22px 24px 40px;
}

.consultation-shell__header-title {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    line-height: calc(30 / 20);
    color: var(--color-white);
    text-align: center;
}

.consultation-shell__title-skeleton-wrap {
    display: flex;
    height: 30px;
    align-items: center;
}

.consultation-shell__title-skeleton {
    display: inline-block;
    width: 160px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    animation: consultation-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.consultation-shell__menu-frame {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

.consultation-shell__menu-inner {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(6, 32, 64, 0.4);
}

.consultation-shell__messages {
    flex: 1;
    overflow-y: auto;
    padding-inline: 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.consultation-shell__messages::-webkit-scrollbar {
    width: 3px;
}

.consultation-shell__messages::-webkit-scrollbar-track {
    background: transparent;
}

.consultation-shell__messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.consultation-shell__messages-inner {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding-bottom: 76px;
}

.consultation-shell__messages-inner--wide {
    max-width: 896px;
}

.consultation-empty-state {
    padding: 32px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.consultation-new-guide {
    margin-bottom: 32px;
}

.consultation-new-guide-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 16px;
    line-height: 1.4;
    cursor: pointer;
    transition: opacity 0.15s;
}

.consultation-new-guide-toggle:hover {
    opacity: 0.8;
}

.consultation-new-guide-toggle__icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s ease;
}

.consultation-new-guide-toggle--open .consultation-new-guide-toggle__icon {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.consultation-new-guide-list-wrap {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin-top 0.3s ease;
}

.consultation-new-guide-list-wrap--open {
    max-height: 600px;
    opacity: 1;
    margin-top: 12px;
}

.consultation-new-guide-list>.consultation-new-guide-item+.consultation-new-guide-item {
    margin-top: 8px;
}

.consultation-new-guide-item {
    width: 100%;
    padding: 12px 16px;
    border-radius: 2px 12px 12px 12px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-bubble);
    -webkit-backdrop-filter: var(--filter-glass-bubble);
}

.consultation-new-guide-text {
    font-size: 14px;
    line-height: calc(26 / 14);
    color: var(--color-white);
}

.consultation-genre {
    margin-bottom: 24px;
}

.consultation-genre__title {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    line-height: calc(28 / 18);
    color: var(--color-white);
}

.consultation-genre__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.consultation-genre__option {
    padding: 12px 16px;
    border: 2px solid;
    border-radius: 8px;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}

.consultation-genre__option--selected {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.consultation-genre__option--default {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.consultation-genre__option--default:hover {
    background: rgba(255, 255, 255, 0.2);
}

.consultation-genre__option--disabled {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.consultation-genre__option-label {
    font-size: 14px;
    line-height: calc(20 / 14);
}

.consultation-genre__skip {
    display: block;
    margin: 16px auto 0;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

.consultation-genre__skip:hover {
    color: var(--color-white);
}

.consultation-template {
    margin-bottom: 16px;
}

.consultation-template__label {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: calc(18 / 12);
    color: rgba(255, 255, 255, 0.4);
}

.consultation-template__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.consultation-template__chip {
    padding: 6px 12px;
    border: 1px solid;
    border-radius: 9999px;
    font-size: 12px;
    line-height: calc(18 / 12);
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s, box-shadow 0.15s;
}

.consultation-template__chip--selected {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.consultation-template__chip--default {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}

.consultation-template__chip--default:hover {
    background: rgba(255, 255, 255, 0.1);
}

.consultation-template__chip--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.consultation-error {
    padding: 0 0 16px;
}

.consultation-error__body {
    padding: 16px 0;
    text-align: center;
}

.consultation-error__message {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #f87171;
}

.consultation-error__support {
    margin-top: 14px;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

.consultation-error__support a {
    color: rgba(0, 238, 255, 0.85);
    text-decoration: underline;
}

.consultation-error__button {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
    line-height: calc(20 / 14);
    color: var(--color-white);
    transition: background-color 0.15s;
}

.consultation-error__button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.consultation-quick-replies {
    margin-bottom: 16px;
}

.consultation-quick-replies__inner {
    display: flex;
    justify-content: flex-start;
}

.consultation-quick-replies__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.consultation-quick-replies__button {
    height: 56px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    line-height: calc(24 / 16);
    color: var(--color-white);
    transition: background-color 0.15s;
}

.consultation-loading-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.consultation-loading-row--compact {
    align-items: center;
    gap: 24px;
}

.consultation-loading-bubble {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    border-radius: 2px 12px 12px 12px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-assistant);
    -webkit-backdrop-filter: var(--filter-glass-assistant);
}

.consultation-loading-logo {
    width: 32px;
    height: 13px;
    flex-shrink: 0;
}

.consultation-loading-dots {
    display: flex;
    gap: 6px;
}

.consultation-loading-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: var(--color-white);
    animation: consultation-bounce 1s infinite;
}

.consultation-loading-dot--delay-1 {
    animation-delay: 0.1s;
}

.consultation-loading-dot--delay-2 {
    animation-delay: 0.2s;
}

.consultation-loading-dot--delay-3 {
    animation-delay: 0.3s;
}

.consultation-loading-dot--delay-4 {
    animation-delay: 0.4s;
}

.consultation-deepening-panel {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.consultation-deepening-title {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: var(--color-white);
}

.consultation-deepening-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.consultation-deepening-panel__title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.consultation-deepening-panel__close {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

.consultation-deepening-panel__close:hover {
    color: var(--color-white);
}

.consultation-feedback {
    padding: 16px 24px;
}

.consultation-feedback__inner {
    max-width: 896px;
    margin: 0 auto;
}

.consultation-feedback__label,
.consultation-feedback__thanks {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: rgba(255, 255, 255, 0.7);
}

.consultation-feedback__label {
    margin-bottom: 12px;
}

.consultation-feedback__actions {
    display: flex;
    gap: 8px;
}

.consultation-feedback__button {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transition: background-color 0.15s;
}

.consultation-feedback__button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.consultation-feedback__button--deepening {
    margin-left: auto;
}

.consultation-input-wrap {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
}

.consultation-input-wrap--detail {
    position: sticky;
    bottom: 0;
    isolation: isolate;
    z-index: 20;
    padding-bottom: 16px;
}

.consultation-input-wrap--detail::before {
    content: "";
    position: absolute;
    top: -64px;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 64px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 27, 46, 0) 0%, rgba(10, 40, 67, 0.11) 38%, rgba(17, 58, 92, 0.2) 72%, rgba(28, 86, 132, 0.3) 100%);
    backdrop-filter: var(--filter-blur18-saturate108);
    -webkit-backdrop-filter: var(--filter-blur18-saturate108);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 26%, rgba(0, 0, 0, 0.72) 64%, rgba(0, 0, 0, 1) 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 26%, rgba(0, 0, 0, 0.72) 64%, rgba(0, 0, 0, 1) 100%);
}

.consultation-redirect-loading {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.consultation-redirect-loading__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    animation: spin 1s linear infinite;
}

/* ---- consultation-overflow-message ---- */
.consultation-overflow-message {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.consultation-overflow-message__body {
    color: rgba(255, 255, 255, 0.8);
}

.consultation-overflow-message__body>p+p {
    margin-top: 8px;
}

.consultation-overflow-message__next {
    margin-top: 12px;
    color: var(--color-white);
}

/* ---- consultation-line-nature ---- */
.consultation-line-nature {
    /* tsx で wrapper として使われているが globals.css に base ルール無し。互換のため空定義 */
}

.consultation-line-nature__stack>div+div {
    margin-top: 12px;
}

.consultation-line-nature__explanation {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 25px 24px 24px 24px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
}

.consultation-line-nature__row {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.consultation-line-nature__badge {
    display: inline-flex;
    width: 68px;
    height: 24px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    font-size: 14px;
    line-height: calc(20 / 14);
    text-align: left;
    color: var(--color-white);
}

.consultation-line-nature__badge--warning {
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(230, 105, 102, 1) 0%, rgba(204, 90, 107, 1) 100%);
}

.consultation-line-nature__badge--possibility {
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(0, 238, 255, 1) 0%, rgba(166, 77, 255, 1) 100%);
}

.consultation-line-nature__text,
.consultation-line-nature__plain-text {
    font-size: 16px;
    line-height: calc(27.2 / 16);
    text-align: left;
    color: var(--color-white);
}

.consultation-line-nature__plain-label {
    color: var(--color-white);
}

.consultation-line-nature__plain-text--spaced {
    margin-top: 4px;
}

/* ---- consultation-line-status ---- */
.consultation-line-status {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.consultation-line-status__title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    line-height: calc(24 / 16);
}

.consultation-line-status__text {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #374151;
    white-space: pre-wrap;
}

/* ---- c-marquee（相談詳細背景スクロール） ---- */
.c-marquee-shell {
    --c-marquee-scale: calc(100vh / 800);
    position: relative;
    height: 100vh;
    flex-shrink: 0;
    overflow: visible;
    animation: scroll-left var(--scroll-duration, 60s) linear infinite;
}

.c-marquee {
    position: relative;
    height: 800px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 125px;
    transform: scale(var(--c-marquee-scale));
    transform-origin: top left;
    top: calc((100vh / var(--c-marquee-scale) - 800px) / 2);
    opacity: 0;
    animation: fade-in-marquee 600ms ease-in-out 0.3s forwards;
}

.c-marquee__pair {
    position: relative;
    flex-shrink: 0;
}

.c-marquee__user {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.c-marquee__user-text {
    width: 100%;
    font-size: 24px;
    line-height: calc(36 / 24);
    background: linear-gradient(to right, #00BAFF, #12EDFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.c-marquee__system {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: flex-start;
}

.c-marquee__system-logo {
    flex-shrink: 0;
}

.c-marquee__system-body {
    overflow: hidden;
}

.c-marquee__system-text {
    width: 100%;
    font-size: 20px;
    font-weight: var(--font-weight-regular);
    line-height: calc(32 / 20);
    word-break: break-word;
    background: linear-gradient(to right, #00BAFF, #12EDFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- consultation-input ---- */
.consultation-input {
    width: 100%;
}

.consultation-input__field {
    position: relative;
    z-index: 1;
}

.consultation-input__field--compact {
    min-height: 200px;
    border: 2px solid var(--color-white);
    border-radius: 12px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-bubble);
    -webkit-backdrop-filter: var(--filter-glass-bubble);
}

.consultation-input__textarea {
    width: 100%;
    resize: none;
    overflow: hidden;
    background: transparent;
    color: var(--color-white);
}

.consultation-input__textarea:focus {
    outline: none;
}

.consultation-input__textarea:disabled {
    opacity: 0.5;
}

.consultation-input__textarea--compact {
    min-height: 150px;
    padding: 24px 64px 17px 24px;
    font-size: 16px;
    line-height: calc(24 / 16);
}

.consultation-input__textarea--compact::placeholder {
    font-family: YakuHanJP, var(--font-noto-sans-jp, 'Noto Sans JP'), system-ui, sans-serif;
    font-size: 14px;
    line-height: calc(23.8 / 14);
    text-align: left;
    color: var(--color-white);
    opacity: 0.5;
}

.consultation-input__submit {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, opacity 0.2s;
}

.consultation-input__submit:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.consultation-input__submit--compact {
    right: 7px;
    bottom: 7px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
}

.consultation-input__submit--compact:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ---- consultation-message ---- */
.consultation-message {
    width: 100%;
    margin-bottom: 16px;
}

.consultation-message--analysis {
    margin-bottom: 0;
}

.consultation-message__row {
    display: flex;
}

.consultation-message--analysis .consultation-message__row {
    margin-bottom: 48px;
}

.consultation-message__row--assistant {
    justify-content: flex-start;
}

.consultation-message__row--user {
    justify-content: flex-end;
}

.consultation-message__bubble {
    padding: 24px;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.consultation-message__bubble--assistant {
    display: flex;
    max-width: 720px;
    align-items: flex-start;
    gap: 24px;
    border-radius: 2px 12px 12px 12px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-assistant);
    -webkit-backdrop-filter: var(--filter-glass-assistant);
}

.consultation-message__bubble--result,
.consultation-message__bubble--system,
.consultation-message__bubble--user {
    max-width: 484px;
}

.consultation-message__bubble--result {
    width: 140px;
    height: 72px;
    max-width: none;
    padding: 0 24px;
    align-items: center;
    border-radius: 2px 12px 12px 12px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-assistant);
    -webkit-backdrop-filter: var(--filter-glass-assistant);
}

.consultation-message__bubble--user {
    border-radius: 12px 2px 12px 12px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-bubble);
    -webkit-backdrop-filter: var(--filter-glass-bubble);
}

.consultation-message__bubble--system {
    border-radius: 2px 12px 12px 12px;
    background: rgba(0, 0, 0, 0.15);
}

.consultation-message__logo {
    width: 36px;
    height: auto;
    margin-top: 7px;
    flex-shrink: 0;
}

.consultation-message__text {
    font-size: 16px;
    line-height: calc(27.2 / 16);
    color: var(--color-white);
    white-space: pre-wrap;
    word-break: break-word;
}

.consultation-message__text--system {
    color: rgba(255, 255, 255, 0.8);
}

/* ---- consultation-analysis ---- */
.consultation-analysis {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 768px;
    min-height: 1803px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 12px 12px 12px;
    background-color: rgba(0, 0, 0, 0.12);
    backdrop-filter: var(--filter-glass-soft);
    -webkit-backdrop-filter: var(--filter-glass-soft);
}

.consultation-analysis::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 167, 179, 0.7) 0%, rgba(177, 77, 255, 0.7) 100%);
    opacity: 0.6214;
}

.consultation-analysis>* {
    position: relative;
    z-index: 1;
}

.consultation-analysis__inner {
    padding: 46px 30px 48px;
}

.consultation-analysis__inner>section+section {
    margin-top: 24px;
}

.consultation-analysis__section {
    /* BEM base block. 実定義は modifier (--line-nature / --next-actions) 側のみ */
}

.consultation-analysis__section--line-nature {
    margin-top: 48px !important;
}

.consultation-analysis__section--next-actions {
    margin-top: 47px !important;
}

.consultation-analysis__section--next-actions .consultation-analysis__section-heading {
    margin-bottom: 13px;
}

.consultation-analysis__section-heading {
    margin-bottom: 13px;
}

.consultation-analysis__section-bar {
    width: 96px;
    height: 4px;
    margin-bottom: 4px;
    background: linear-gradient(to right, #0ef, #a64dff);
}

.consultation-analysis__section--line-nature .consultation-analysis__section-bar {
    width: 120px;
}

.consultation-analysis__section-title {
    font-size: 24px;
    font-weight: 700;
    line-height: calc(35 / 24);
    text-align: left;
}

.consultation-analysis__stack>div+div {
    margin-top: 20px;
}

.consultation-analysis__overflow {
    margin-bottom: 16px;
}

.consultation-analysis__subheading {
    margin-bottom: 3px;
    font-size: 20px;
    font-weight: 600;
    line-height: calc(29 / 20);
    text-align: left;
}

.consultation-analysis__subheading--tight {
    margin-bottom: 0;
}

.consultation-analysis__meta-text {
    font-size: 16px;
    line-height: calc(24 / 16);
    text-align: left;
    opacity: 0.5;
}

.consultation-analysis__panel {
    width: 704px;
    max-width: 100%;
    padding: 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.consultation-analysis__sentence-group.consultation-analysis__body-text {
    margin-top: 14px;
    padding: 24px;
}

.consultation-analysis__sentence-group>.consultation-analysis__sentence+.consultation-analysis__sentence {
    margin-top: 4px;
}

.consultation-analysis__sentence,
.consultation-analysis__body-text {
    font-size: 16px;
    line-height: calc(27.2 / 16);
}

.consultation-analysis__body-text {
    color: rgba(255, 255, 255, 0.8);
}

.consultation-analysis__body-text--prewrap,
.consultation-analysis__closing-text {
    white-space: pre-wrap;
}

.consultation-analysis__fallback-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 8px 0;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: rgba(255, 255, 255, 0.6);
}

.consultation-analysis__fallback {
    padding-top: 8px;
}

.consultation-analysis__intro {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: calc(24 / 16);
    text-align: left;
}

.consultation-analysis__intro--actions {
    margin-bottom: 16px;
}

.consultation-analysis__disclaimer {
    margin-top: 15px;
    font-size: 12px;
    line-height: calc(17 / 12);
    text-align: left;
}

.consultation-analysis__actions>.consultation-analysis__action-card+.consultation-analysis__action-card {
    margin-top: 16px;
}

.consultation-analysis__action-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.consultation-analysis__action-index {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 33px;
    border-bottom-right-radius: 8px;
    background: linear-gradient(90deg, rgba(0, 238, 255, 1) 0%, rgba(166, 77, 255, 1) 100%);
}

.consultation-analysis__action-index--numbered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.consultation-analysis__action-index-text {
    font-family: "avenir-next-lt-pro", "Avenir Next", "Avenir", system-ui, sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: calc(27 / 20);
}

.consultation-analysis__action-body {
    padding: 24px 24px 28px 72px;
}

.consultation-analysis__action-body--numbered>.consultation-analysis__body-text {
    margin-top: 4px;
}

.consultation-analysis__action-headline {
    font-size: 16px;
    font-weight: 700;
    line-height: calc(27.2 / 16);
    text-align: left;
}

.consultation-analysis__closing {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.consultation-analysis__closing-text {
    font-size: 14px;
    line-height: calc(24 / 14);
    color: rgba(255, 255, 255, 0.5);
}

/* ===== MAIN: SETTINGS ===== */
/* ---- settings-modal (設定モーダル本体) ---- */
.settings-modal-height {
    height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    height: calc(100dvh - 100px);
    max-height: calc(100dvh - 100px);
}

.settings-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    height: 100vh;
    height: 100dvh;
}

.settings-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(56, 60, 65, 0.8);
}

.settings-modal__desktop {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.settings-modal__dialog {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 1024px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.settings-modal__sidebar {
    display: flex;
    width: 240px;
    min-width: 240px;
    flex-direction: column;
    border-right: 1px solid #e8e8ec;
    background: #fff;
}

.settings-modal__sidebar-header {
    padding: 17px 0;
}

.settings-modal__sidebar-title {
    font-size: 20px;
    font-weight: 700;
    line-height: calc(29 / 20);
    text-align: center;
    color: #002a6a;
}

.settings-modal__nav {
    flex: 1;
    padding: 0 16px;
}

.settings-modal__nav-button {
    display: flex;
    width: 208px;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    min-height: 48px;
    padding: 6px 11px;
    border-radius: 8px;
    border: 1px solid #d9e3f2;
    text-align: left;
    transition: background-color 0.15s, color 0.15s, box-shadow 0.15s, border-color 0.15s;
    color: #002a6a;
}

.settings-modal__nav-button--active {
    background: #e5e9f0;
    border-color: transparent;
    box-shadow: none;
}

.settings-modal__nav-label {
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
    color: #002a6a;
}

.settings-modal__logout-wrap {
    display: flex;
    min-height: 64px;
    margin-top: auto;
    background: #edf2f8;
}

.settings-modal__logout-button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 9px;
    padding: 23px 29px;
    border-radius: 0;
    text-align: left;
    color: #002a6a;
    transition: background-color 0.15s;
}

.settings-modal__logout-button:hover {
    background: #e6edf8;
}

.settings-modal__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px) brightness(90%);
    -webkit-backdrop-filter: blur(30px) brightness(90%);
}

.settings-modal__content-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 24px;
    border-bottom: 1px solid #cad1db;
}

.settings-modal__content-title {
    font-size: 18px;
    font-weight: 700;
    line-height: calc(25 / 18);
    color: #002a6a;
}

.settings-modal__content-body {
    flex: 1;
    overflow-y: auto;
    padding: 31px 24px 48px;
}

.settings-modal__mobile {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    height: calc(100vh - 60px - 48px);
    height: calc(100dvh - 60px - 48px);
    margin-top: 60px;
    margin-bottom: 48px;
    padding: 0 20px;
}

.settings-modal__mobile-sheet {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
}

.settings-modal__mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
}

.settings-modal__mobile-title {
    font-size: 20px;
    font-weight: 700;
    line-height: calc(28 / 20);
    color: #002a6a;
}

.settings-modal__mobile-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #002a6a;
    transition: color 0.15s;
}

.settings-modal__mobile-logout:hover {
    color: #123d85;
}

.settings-modal__mobile-logout-label {
    font-size: 12px;
    font-weight: 700;
    line-height: calc(17 / 12);
}

.settings-modal__mobile-tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px;
    border-bottom: none;
}

.settings-modal__mobile-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: calc(18 / 13);
    transition: color 0.15s, background-color 0.15s;
}

.settings-modal__mobile-tab--active {
    color: #002a6a;
    background: #edf2f8;
}

.settings-modal__mobile-tab--inactive {
    color: #9ca3af;
}

.settings-modal__mobile-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #edf2f8;
}

.settings-modal__mobile-section-title {
    font-size: 16px;
    font-weight: 700;
    line-height: calc(22 / 16);
    color: #002a6a;
}

.settings-modal__mobile-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px 40px;
}

/* ---- report-free-close (汎用クローズボタン。SettingsModal / FreeUserReport で共有) ---- */
.report-free-close {
    position: fixed;
    top: 50px;
    right: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35.36px;
    height: 35.36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

.report-free-close-image {
    display: block;
    width: 35.36px;
    height: 35.36px;
}

/* ---- AccountSection ---- */
.account-section {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.account-section__group {
    display: block;
}

.account-section__heading {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: calc(24 / 16);
    color: #002a6a;
}

.account-section__heading--danger {
    margin-bottom: 29px;
    color: #d76069;
}

.account-section__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 14px;
    border-bottom: 1px solid rgba(202, 209, 219, 0.5);
}

.account-section__row+.account-section__row {
    padding-top: 17px;
}

.account-section__row-content {
    min-width: 0;
    flex: 1;
}

.account-section__row-label {
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
    color: #002a6a;
}

.account-section__row-value {
    margin-top: 0;
    padding-top: 5px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #002a6a;
}

.account-section__row-sub {
    margin-top: 0;
}

.account-section__change-button {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0;
    width: 64px;
    min-width: 64px;
    min-height: 24px;
    padding: 1px 11px;
    border: 1px solid rgba(2, 42, 106, 0.5);
    border-radius: 9999px;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
    color: #022a6a;
    transition: background-color 0.15s;
}

.account-section__change-button:hover {
    background: rgba(0, 42, 106, 0.05);
}

.account-section__note {
    margin-top: 20px;
    font-size: 12px;
    line-height: calc(17 / 12);
    color: #8ca0bf;
}

.account-section__verified-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: calc(17 / 12);
    color: #939fb1;
}

.account-section__verified-icon {
    width: 10px;
    height: 7.9px;
    flex-shrink: 0;
}

.account-section__password-note {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #002a6a;
}

.account-section__danger-card {
    width: 100%;
}

.account-section__danger-card--disabled {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.account-section__danger-title {
    font-size: 14px;
    line-height: calc(20 / 14);
}

.account-section__danger-title--disabled {
    color: #6f7d91;
}

.account-section__danger-description {
    margin-top: 8px;
    font-size: 12px;
    line-height: calc(18 / 12);
    color: #6b7280;
}

.account-section__danger-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    padding: 15px 16px 14px;
    border-radius: 8px;
    background: #df6671;
    transition: background-color 0.15s;
}

.account-section__danger-button:hover {
    background: #cf5762;
}

.account-section__danger-button--disabled {
    margin-top: 16px;
    background: rgba(128, 150, 184, 0.28);
    cursor: not-allowed;
}

.account-section__danger-button--disabled:hover {
    background: rgba(128, 150, 184, 0.28);
}

.account-section__danger-button-label {
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
}

.account-section__danger-button-icon {
    width: 16px;
    height: 21px;
    flex-shrink: 0;
}

.account-section__danger-button-icon--disabled {
    color: rgba(255, 255, 255, 0.85);
}

.account-section__danger-note {
    margin-top: 7px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #d76069;
}

.account-section__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
}

.account-section__loading-spinner {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    border-bottom: 2px solid #002a6a;
    animation: spin 1s linear infinite;
}

/* ---- BillingSection ---- */
.billing-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.billing-section__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
}

.billing-section__loading-spinner {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    border-bottom: 2px solid #2563eb;
    animation: spin 1s linear infinite;
}

.billing-section__processing-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.billing-section__processing-spinner {
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    border-bottom: 2px solid #2563eb;
    animation: spin 1s linear infinite;
}

.billing-section__processing-text {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #1d4ed8;
}

.billing-section__group {
    display: block;
}

.billing-section__group-title {
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 16px;
    line-height: calc(24 / 16);
    text-align: left;
    color: #002A6A;
}

.billing-section__receipt-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-radius: 8px;
    background: transparent;
}

.billing-section__receipt-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.billing-section__receipt-company,
.billing-section__receipt-name {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #1f2937;
}

.billing-section__receipt-name {}

.billing-section__receipt-dept {
    font-size: 12px;
    line-height: calc(18 / 12);
    color: #6b7280;
}

.billing-section__receipt-empty {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #6b7280;
}

.billing-section__receipt-action {
    margin-left: 16px;
    flex-shrink: 0;
    padding: 2px 8px;
    border: 1px solid rgba(2, 42, 106, 0.5);
    border-radius: 4px;
    background: transparent;
    font-size: 12px;
    line-height: calc(18 / 12);
    color: #022a6a;
    transition: background-color 0.15s;
}

.billing-section__receipt-action:hover {
    background: rgba(0, 42, 106, 0.05);
}

.billing-section__receipt-action--compact {
    margin-left: 0;
}

.billing-section__payment-list {
    display: flex;
    flex-direction: column;
}

.billing-section__payment-item {
    padding: 8px 0 14px;
    border-bottom: 1px solid rgba(202, 209, 219, 0.5);
    background: transparent;
}

.billing-section__payment-item+.billing-section__payment-item {
    padding-top: 17px;
}

.billing-section__payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.billing-section__payment-date {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #374151;
}

.billing-section__payment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.billing-section__payment-amount {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #111827;
}

.billing-section__payment-badge {
    display: inline-block;
    width: 56px;
    padding: 2px 0;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    line-height: calc(18 / 12);
}

.billing-section__payment-badge--success {
    background: #dcfce7;
    color: #16a34a;
}

.billing-section__payment-badge--failed {
    background: #fee2e2;
    color: #dc2626;
}

.billing-section__status-card {
    margin-bottom: 22px;
    padding: 21px;
    border: 1px solid;
    border-radius: 16px;
}

.billing-section__status-card--green {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.billing-section__status-card--premium {
    padding: 19px 20px 24px;
    border: 0;
    background: linear-gradient(90deg, #00EEFF 0%, #A64DFF 100%);
}

.billing-section__status-card--orange {
    border-color: #fed7aa;
    background: #fff7ed;
}

.billing-section__status-card--gray {
    border-color: transparent;
    background: #8096B8;
}

.billing-section__status-card--red {
    border-color: #fecaca;
    background: #fef2f2;
}

.billing-section__status-card--yellow {
    border-color: #fde68a;
    background: #fefce8;
}

.billing-section__status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.billing-section__status-header--compact {
    margin-bottom: 8px;
}

.billing-section__status-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.billing-section__status-icon {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}

.billing-section__status-icon--green {
    background: #dcfce7;
}

.billing-section__status-icon--orange {
    background: #ffedd5;
}

.billing-section__status-icon--red {
    background: #fee2e2;
}

.billing-section__status-icon--yellow {
    background: #fef3c7;
}

.billing-section__status-icon-svg {
    width: 22px;
    height: 17.6px;
}

.billing-section__status-icon-svg--green {
    color: #16a34a;
}

.billing-section__status-icon-svg--orange {
    color: #ea580c;
}

.billing-section__status-icon-svg--red {
    color: #dc2626;
}

.billing-section__status-icon-svg--yellow {
    color: #ca8a04;
}

.billing-section__status-title {
    font-size: 18px;
    font-weight: 700;
    line-height: calc(26 / 18);
    text-align: left;
}

.billing-section__status-title--green {
    color: #166534;
}

.billing-section__status-title--orange {
    color: #9a3412;
}

.billing-section__status-title--red {
    color: #991b1b;
}

.billing-section__status-title--yellow {
    color: #854d0e;
}

.billing-section__status-subtitle {
    font-size: 18px;
    font-weight: 700;
    line-height: calc(20 / 18);
    text-align: left;
}

.billing-section__status-subtitle--green {
    color: #16a34a;
}

.billing-section__status-subtitle--orange {
    color: #ea580c;
}

.billing-section__status-subtitle--red {
    color: #dc2626;
}

.billing-section__status-subtitle--yellow {
    color: #ca8a04;
}

.billing-section__status-description {
    font-size: 16px;
    line-height: calc(23 / 16);
    color: #4b5563;
}

.billing-section__status-card--gray .billing-section__status-title,
.billing-section__status-card--gray .billing-section__status-description {
    color: #fff;
}

.billing-section__status-description--orange {
    color: #c2410c;
}

.billing-section__status-description--red {
    color: #b91c1c;
}

.billing-section__status-card--premium .billing-section__status-header {
    display: block;
    margin-bottom: 10px;
}

.billing-section__status-card--premium .billing-section__status-title,
.billing-section__status-card--premium .billing-section__status-subtitle,
.billing-section__status-card--premium .billing-section__status-description,
.billing-section__status-card--premium .billing-section__detail-value {
    color: #fff;
}

.billing-section__status-card--premium .billing-section__detail-label {
    color: rgba(255, 255, 255, 0.72);
}

.billing-section__status-card--premium .billing-section__payment-method {
    gap: 12px;
}

.billing-section__status-card--premium .billing-section__receipt-action {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.billing-section__status-card--premium .billing-section__receipt-action:hover {
    background: rgba(255, 255, 255, 0.18);
}

.billing-section__detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.billing-section__detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    line-height: calc(20 / 14);
}

.billing-section__detail-row--payment {
    align-items: center;
}

.billing-section__detail-label {
    color: #6b7280;
}

.billing-section__detail-value {
    color: #111827;
}

.billing-section__payment-method {
    display: flex;
    align-items: center;
    gap: 8px;
}

.billing-section__upgrade-card {
    padding: 19px 20px 24px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(90deg, #00EEFF 0%, #A64DFF 100%);
}

.billing-section__upgrade-title {
    margin-bottom: 2px;
    font-size: 20px;
    font-weight: 700;
    line-height: calc(29 / 20);
}

.billing-section__upgrade-price {
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
    line-height: calc(35 / 24);
}

.billing-section__upgrade-price-unit {
    font-size: 16px;
    font-weight: 700;
    line-height: calc(23 / 16);
    color: rgba(255, 255, 255, 0.96);
}

.billing-section__upgrade-note {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: calc(20 / 14);
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    text-align: left;
}

.billing-section__upgrade-note-accent {
    display: inline-block;
    margin-left: 8px;
    font-size: 20px;
    line-height: 1;
    color: #fbbf24;
}

.billing-section__feature-list {
    margin-bottom: 21px;
}

.billing-section__feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.billing-section__feature-item+.billing-section__feature-item {
    margin-top: 5px;
}

.billing-section__feature-icon {
    width: 12.19px;
    height: 9.63px;
    flex-shrink: 0;
}

.billing-section__feature-text {
    font-size: 14px;
    line-height: calc(20 / 14);
    text-align: left;
}

.billing-section__notice-banner {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid;
    border-radius: 8px;
}

.billing-section__notice-banner--blue {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.billing-section__notice-banner--yellow {
    border-color: #fde68a;
    background: #fefce8;
}

.billing-section__notice-text {
    font-size: 14px;
    line-height: calc(20 / 14);
}

.billing-section__notice-text--strong {}

.billing-section__notice-text--with-gap {
    margin-bottom: 4px;
}

.billing-section__notice-text--blue {
    color: #1d4ed8;
}

.billing-section__notice-text--blue-dark {
    color: #1e40af;
}

.billing-section__notice-text--yellow {
    color: #a16207;
}

.billing-section__text-button {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #2563eb;
}

.billing-section__text-button:hover {
    text-decoration: underline;
}

.billing-section__text-button:disabled {
    opacity: 0.5;
}

.billing-section__action-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.billing-section__primary-button {
    width: 100%;
    min-height: 56px;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    line-height: calc(24 / 16);
    color: #123d85;
    transition: background-color 0.15s, opacity 0.15s;
}

.billing-section__primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.billing-section__primary-button--blue {
    background: #fff;
}

.billing-section__primary-button--blue:hover:not(:disabled) {
    background: #f6f8fc;
}

.billing-section__primary-button--red {
    background: #dc2626;
}

.billing-section__primary-button--red:hover:not(:disabled) {
    background: #b91c1c;
}

.billing-section__primary-button--yellow {
    background: #ca8a04;
}

.billing-section__primary-button--yellow:hover:not(:disabled) {
    background: #a16207;
}

.billing-section__action-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    padding: 15px 16px 14px;
    border-radius: 8px;
    transition: background-color 0.15s, opacity 0.15s, border-color 0.15s;
}

.billing-section__action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.billing-section__action-button--blue {
    border: 1px solid #022A6A;
    background: transparent;
    color: #022A6A;
}

.billing-section__action-button--blue:hover:not(:disabled) {
    background: rgba(2, 42, 106, 0.06);
}

.billing-section__action-button-label {
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
    color: #022A6A;
}

.billing-section__action-button-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.billing-section__action-button-icon--change {
    width: 18px;
    height: 18px;
    color: #022A6A;
}

.billing-section__action-button-icon--billing {
    width: 18px;
    height: 14.4px;
}

.billing-section__danger-button-close {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.billing-section__danger-button-close::before,
.billing-section__danger-button-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1.8px;
    border-radius: 999px;
    background: #fff;
    transform-origin: center;
}

.billing-section__danger-button-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.billing-section__danger-button-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.billing-section__danger-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    padding: 15px 16px 14px;
    border-radius: 8px;
    background: #df6671;
    transition: background-color 0.15s, opacity 0.15s;
}

.billing-section__danger-button:hover:not(:disabled) {
    background: #cf5762;
}

.billing-section__danger-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.billing-section__danger-button-label {
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
}

/* ---- billing-cancel-modal ---- */
.billing-cancel-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.billing-cancel-modal__dialog {
    width: 100%;
    max-width: 448px;
    margin: 0 16px;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.billing-cancel-modal__title {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    line-height: calc(28 / 18);
    color: #1f2937;
}

.billing-cancel-modal__description {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #4b5563;
}

.billing-cancel-modal__warning {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
}

.billing-cancel-modal__warning-text {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #c2410c;
}

.billing-cancel-modal__textarea {
    width: 100%;
    height: 96px;
    margin-bottom: 16px;
    padding: 15px 24px 17px;
    background: rgba(202, 209, 219, 0.3);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 16px;
    line-height: calc(24 / 16);
    color: var(--color-primary);
    resize: none;
    outline: none;
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.billing-cancel-modal__textarea::placeholder {
    color: var(--color-primary);
    opacity: 0.4;
}

.billing-cancel-modal__textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 42, 106, 0.14);
}

.billing-cancel-modal__actions {
    display: flex;
    gap: 12px;
}

.billing-cancel-modal__button {
    flex: 1;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    line-height: calc(23 / 16);
    cursor: pointer;
    transition: background-color var(--duration-fast);
}

.billing-cancel-modal__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.billing-cancel-modal__button--secondary {
    border: 2px solid #123d85;
    color: #123d85;
    background: var(--color-white);
}

.billing-cancel-modal__button--secondary:hover:not(:disabled) {
    background: #f9fafb;
}

.billing-cancel-modal__button--danger {
    background: var(--color-error);
    color: var(--color-white);
}

.billing-cancel-modal__button--danger:hover:not(:disabled) {
    background: #b91c1c;
}

/* ---- ConsultationSettingsSection ---- */
.consultation-settings {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.consultation-settings__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
}

.consultation-settings__loading-spinner {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    border-bottom: 2px solid #2563eb;
    animation: spin 1s linear infinite;
}

.consultation-settings__section {
    display: block;
}

.consultation-settings__section--disabled {
    opacity: 0.5;
}

.consultation-settings__section-title {
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: calc(20 / 14);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.consultation-settings__badge {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 9999px;
    background: #e5e7eb;
    font-size: 12px;
    line-height: calc(16 / 12);
    color: #6b7280;
}

.consultation-settings__description {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #4b5563;
}

.consultation-settings__options {
    display: flex;
    gap: 12px;
}

.consultation-settings__option {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s, opacity 0.15s;
}

.consultation-settings__option--active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.consultation-settings__option--inactive {
    color: #374151;
}

.consultation-settings__option--disabled,
.consultation-settings__option--unavailable {
    cursor: not-allowed;
}

.consultation-settings__option--disabled {
    opacity: 0.5;
}

.consultation-settings__option--unavailable {
    border-color: #e5e7eb;
    color: #9ca3af;
}

.consultation-settings__option-title {
    font-size: 14px;
    line-height: calc(20 / 14);
}

.consultation-settings__option-caption {
    margin-top: 4px;
    font-size: 12px;
    line-height: calc(18 / 12);
    color: #6b7280;
}

.consultation-settings__info {
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.consultation-settings__info-title {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #1e40af;
}

.consultation-settings__info-list {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #1d4ed8;
}

.consultation-settings__info-list li+li {
    margin-top: 4px;
}

/* ---- LineAccountSection ---- */
.line-account-section {
    padding-top: 0;
}

.line-account-section__title {
    margin-top: 5px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    line-height: calc(24 / 16);
    color: #002a6a;
}

.line-account-section__description {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #002a6a;
}

.line-account-section__connect-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 236px;
    min-height: 48px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #00bc4d;
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
    transition: background-color 0.15s;
}

.line-account-section__connect-button:hover {
    background: #00ad46;
}

.line-account-section__connect-icon {
    width: 24px;
    height: 22.87px;
}

.line-account-section__linked-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.line-account-section__linked-status {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #15803d;
}

.line-account-section__linked-date {
    margin-bottom: 16px;
    font-size: 12px;
    line-height: calc(18 / 12);
    color: #6b7280;
}

.line-account-section__unlink-button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #374151;
    transition: background-color 0.15s;
}

.line-account-section__unlink-button:hover {
    background: #f9fafb;
}

/* ---- line-account-modal (LineAccountSection で使用中の部分のみ) ---- */
.line-account-modal__description--last {
    margin-bottom: 24px;
}

.line-account-modal__list {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #4b5563;
}

.line-account-modal__list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.line-account-modal__list-item+.line-account-modal__list-item {
    margin-top: 8px;
}

.line-account-modal__bullet {
    margin-top: 2px;
    color: #9ca3af;
}

/* ---- PaymentMethodModal (settings-sub-modal で包むため使用中 class のみ) ---- */
.payment-method-modal {
    background: transparent;
}

.payment-method-modal__body {
    max-width: 478px;
}

.payment-method-modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-method-modal__form-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.payment-method-modal__form-shell--hidden {
    position: absolute;
    z-index: -10;
    visibility: hidden;
}

.payment-method-modal__field-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 76px;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 42, 106, 0.12);
}

.payment-method-modal__field-row:last-of-type {
    border-bottom: 1px solid rgba(0, 42, 106, 0.12);
}

.payment-method-modal__field-label {
    width: 98px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: calc(20 / 13);
    color: #002a6a;
}

.payment-method-modal__field-control {
    flex: 1;
}

.payment-method-modal__error {
    margin-top: 18px;
    padding: 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
}

.payment-method-modal__error-text {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #b91c1c;
}

.payment-method-modal__retry {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: #dc2626;
    text-decoration: underline;
}

.payment-method-modal__retry:hover {
    color: #991b1b;
}

.payment-method-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 32px;
}

.payment-method-modal__loading--secret {
    padding-block: 48px;
}

.payment-method-modal__spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #2563eb;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 9999px;
    animation: spin 1s linear infinite;
}

/* ---- ReceiptBillingInfoModal ---- */
.receipt-billing-modal__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.receipt-billing-modal__required {
    color: #dc2626;
}

/* ---- ReceiptModal ---- */
.receipt-modal__warning-block {
    margin-bottom: 16px;
}

/* ---- UpgradeModal ---- */
.upgrade-plan-card {
    background: linear-gradient(90deg, #00EEFF 0%, #A64DFF 100%);
    border-radius: 12px;
    padding: 16px 18px 14px;
    margin-bottom: 39px;
}

.upgrade-modal__body {
    max-width: 720px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(30px) brightness(90%);
    -webkit-backdrop-filter: blur(30px) brightness(90%);
}

.upgrade-modal__body .settings-sub-modal-inner {
    overflow-y: auto;
    max-height: calc(100vh - 100px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.upgrade-modal__body .settings-sub-modal-inner::-webkit-scrollbar {
    width: 3px;
}

.upgrade-modal__body .settings-sub-modal-inner::-webkit-scrollbar-track {
    background: transparent;
}

.upgrade-modal__body .settings-sub-modal-inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.upgrade-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 32px;
}

.upgrade-modal__loading--secret {
    padding-block: 48px;
}

.upgrade-modal__spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #002a6a;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 9999px;
    animation: spin 1s linear infinite;
}

/* upgrade-modal__form-shell: globals に base 未定義。BEM 互換のため空定義で維持 (Phase 4 で要整理) */
.upgrade-modal__form-shell {}

.upgrade-modal__form-shell--hidden {
    position: absolute;
    z-index: -10;
    visibility: hidden;
}

.upgrade-modal__section-title {
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 700;
    line-height: calc(24 / 16);
    text-align: left;
    color: #002A6A;
}

.upgrade-modal__field-list {
    display: flex;
    flex-direction: column;
}

.upgrade-modal__field-row {
    display: flex;
    align-items: center;
    gap: 48px;
    min-height: 64px;
    padding: 28px 0;
    border-top: 1px solid rgba(0, 42, 106, 0.12);
}

.upgrade-modal__field-row:last-child {
    border-bottom: 1px solid rgba(0, 42, 106, 0.12);
}

.upgrade-modal__field-label {
    width: 125px;
    flex-shrink: 0;
    font-size: 14px;
    line-height: calc(20 / 14);
    letter-spacing: -0.01em;
    text-align: left;
    color: #002A6A;
}

.upgrade-modal__field-control {
    width: 494px;
    height: 56px;
    flex: none;
    border-radius: 12px;
    background: rgba(202, 209, 219, 0.3);
}

.upgrade-modal__card-number-field {
    display: flex;
    width: 100%;
    align-items: center;
}

.upgrade-modal__card-number-input {
    flex: 1;
    min-width: 0;
}

.upgrade-modal__card-brands {
    width: 103px;
    height: 16px;
    margin-left: 8px;
    flex-shrink: 0;
}

.upgrade-modal__agreement {
    margin-top: 28px;
    margin-bottom: 38px;
    font-size: 14px;
    line-height: calc(20 / 14);
    text-align: left;
    color: #002A6A;
}

.upgrade-modal__agreement-link {
    color: #002A6A;
    text-decoration: underline;
}

.upgrade-modal__agreement-link:hover {
    text-decoration: underline;
}

/* upgrade-modal__agreement-separator: globals に未定義。BEM 互換のため空定義で維持 (Phase 4 で要整理) */
.upgrade-modal__agreement-separator {}

.upgrade-modal__check-icon {
    width: 12.19px;
    height: 9.63px;
    flex-shrink: 0;
}

.upgrade-modal__billing-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.upgrade-modal__billing-toggle {
    display: flex;
    width: 240px;
    height: 44px;
    padding: 4px;
    border-radius: 9999px;
    background: rgba(0, 42, 106, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 42, 106, 0.08);
}

.upgrade-modal__billing-option {
    flex: 1;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
    color: rgba(0, 42, 106, 0.58);
    transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.upgrade-modal__billing-option--active {
    background: #fff;
    color: #002A6A;
    box-shadow: 0 4px 10px rgba(0, 42, 106, 0.14);
}

.upgrade-modal__plan-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.upgrade-modal__plan-name {
    font-size: 20px;
    font-weight: 700;
    line-height: calc(29 / 20);
}

.upgrade-modal__price-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.upgrade-modal__price {
    font-size: 24px;
    font-weight: 700;
    line-height: calc(35 / 24);
}

.upgrade-modal__price-suffix {
    margin-left: 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: calc(23 / 16);
    color: rgba(255, 255, 255, 0.92);
}

.upgrade-modal__annual-note {
    margin-left: 8px;
    font-size: 16px;
    line-height: calc(18 / 16);
    color: #fbbf24;
}

.upgrade-modal__renewal-note {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: calc(17 / 12);
    color: rgba(255, 255, 255, 0.82);
}

.upgrade-modal__feature-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.upgrade-modal__feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.upgrade-modal__feature-text {
    font-size: 12px;
    line-height: calc(17 / 12);
}

.upgrade-modal__actions {
    margin-top: 14px;
    gap: 16px;
}

.upgrade-modal__actions .settings-sub-modal-btn--outline {
    width: 240px;
    height: 56px;
    flex: none;
    min-height: 56px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid #022A6A;
    font-weight: 700;
    font-size: 16px;
    line-height: calc(24 / 16);
    text-align: center;
    color: #022A6A;
}

.upgrade-modal__actions .settings-sub-modal-btn--primary {
    flex: 1;
    min-width: 0;
    min-height: 56px;
}

/* ===== MAIN: SEARCH ===== */
.search-page-shell {
    height: 100%;
    overflow-y: auto;
    padding: 69px 28px 72px;
}

.search-page-content {
    width: 100%;
    max-width: 1024px;
    margin-inline: auto;
}

.search-page-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 0;
    margin-bottom: 49px;
    padding-left: 0;
}

.search-page-title-icon {
    display: block;
    width: 34px;
    height: 34px;
    margin-top: 6px;
    flex-shrink: 0;
}

.search-page-title-text {
    display: block;
    font-size: 40px;
    font-weight: var(--font-weight-bold);
    line-height: calc(58 / 40);
    text-align: left;
    color: var(--color-white);
}

.search-filter-bar {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px;
    margin-bottom: 47px;
}

.search-filter-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-filter-label {
    padding-left: 1px;
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    line-height: calc(24 / 16);
    text-align: left;
    color: var(--color-white);
}

.search-filter-control {
    position: relative;
    width: 100%;
    height: 48px;
    overflow: visible;
    border-radius: 6px;
}

.search-filter-control::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-blur17-bright87);
    -webkit-backdrop-filter: var(--filter-blur17-bright87);
    pointer-events: none;
}

.search-filter-control .prefecture-select {
    width: 100%;
    height: 100%;
}

.search-filter-control .prefecture-select__trigger {
    position: relative;
    z-index: 1;
}

.search-filter-control .prefecture-select__trigger--auth,
.search-filter-control .prefecture-select__trigger--auth-error {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    padding: 16px 48px 16px 24px;
    border-radius: 6px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-size: 16px;
    line-height: calc(24 / 16);
    color: var(--color-white);
}

.search-filter-control .prefecture-select__trigger--auth>span:first-child,
.search-filter-control .prefecture-select__trigger--auth-error>span:first-child {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-filter-control .prefecture-select__auth-icon {
    display: none;
}

.search-filter-control .prefecture-select__trigger--auth::after,
.search-filter-control .prefecture-select__trigger--auth-error::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 9px;
    height: 8px;
    background: url("/app/images/search-select-arrow.svg") center / contain no-repeat;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-filter-control .prefecture-select__panel {
    z-index: 40;
    width: 100%;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-blur17-bright87);
    -webkit-backdrop-filter: var(--filter-blur17-bright87);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.search-filter-control .prefecture-select__panel--auth {
    background: var(--color-bubble-bg);
}

.search-filter-control .prefecture-select__list {
    max-height: none;
    padding: 0;
}

.search-filter-control .prefecture-select__list li {
    width: 100%;
}

.search-filter-control .prefecture-select__item {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 8px 16px;
    font-size: 14px;
    line-height: calc(20 / 14);
    text-align: left;
    white-space: normal;
    word-break: keep-all;
}

.search-filter-control .prefecture-select__item--auth {
    color: rgba(255, 255, 255, 0.85);
}

@media (hover: hover) {
    .search-filter-control .prefecture-select__item--auth:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

.search-filter-control .prefecture-select__item--auth-active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.search-filter-control .prefecture-select__list li:first-child .prefecture-select__item--auth-active {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.search-filter-control .prefecture-select__list li:last-child .prefecture-select__item--auth-active {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.search-filter-input {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 48px;
    padding: 16px 24px;
    border: none;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    line-height: calc(20 / 14);
    color: var(--color-white);
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.search-filter-input::placeholder {
    font-size: 16px;
    line-height: calc(24 / 16);
    text-align: left;
    color: var(--color-white);
    opacity: 0.5;
}

.search-filter-input:focus {
    box-shadow: none;
}

.search-filter-clear {
    position: absolute;
    top: 50%;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 16px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%);
}

.search-filter-clear:hover {
    color: var(--color-white);
}

.search-card-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.search-empty-state {
    display: flex;
    justify-content: center;
    width: 100%;
}

.search-card {
    width: 100%;
    height: auto;
    padding: 24px 32px 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: var(--color-bubble-bg);
    backdrop-filter: var(--filter-glass-bubble);
    -webkit-backdrop-filter: var(--filter-glass-bubble);
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.search-card--interactive {
    cursor: pointer;
}

.search-card:hover {
    opacity: 0.86;
    border-color: rgba(255, 255, 255, 0.32);
}

.search-card--empty {
    display: flex;
    max-width: 1024px;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.search-empty-text {
    font-size: 16px;
    line-height: calc(24 / 16);
    text-align: center;
    color: var(--color-white);
}

.search-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.search-card-title {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    line-height: calc(35 / 22);
    text-align: left;
    color: var(--color-white);
}

.search-card-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
    line-height: 27.2px;
    text-align: left;
    color: var(--color-white);
}

.search-status-badge {
    display: inline-flex;
    width: 80px;
    height: 28px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 9999px;
    font-size: 14px;
    line-height: calc(20 / 14);
    text-align: left;
    white-space: nowrap;
    color: var(--color-white);
}

.search-status-badge--completed {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(202, 209, 219, 0.4);
}

.search-status-badge--progress {
    margin-top: 4px;
    background: linear-gradient(90deg, rgb(0 238 255) 0%, rgb(166 77 255) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.search-load-more-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.search-load-more-frame {
    display: flex;
    width: 296px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.search-load-more {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    line-height: calc(29 / 20);
    text-align: center;
    color: var(--color-white);
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.search-load-more-content {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.search-load-more-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.search-load-more:hover {
    opacity: 0.8;
}

.search-load-more:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ===== MAIN: REPORT ===== */
.report-status-icon {
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
}

.report-status-icon-svg {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.6);
    animation: consultation-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.report-tab-pane {
    animation: report-tab-pane-fade 0.2s ease;
}

.report-section--timeflow-shoui .report-section-header {
    margin-bottom: 30px;
}

.report-section--timeflow-shoui .report-mini-chart-grid {
    width: 100%;
    max-width: none;
}

.report-section--timeflow-shoui .report-timeflow-grid {
    width: 100%;
    max-width: none;
}

.report-section--timeflow-shoui .report-timeflow-label {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    line-height: calc(26 / 18);
    text-align: left;
    color: var(--color-white);
}

.report-section--timeflow-shoui .report-timeflow-row {
    gap: 2px;
}

.report-section--timeflow-chusei .report-granularity-wrap {
    margin-bottom: -30px;
}

/* ---- SectionComment ---- */
.report-section-comment {
    margin-top: 6px;
    padding: 0;
    border-top: 1px solid var(--report-section-border);
}

.report-section--shoui-chusei+.report-section-comment {
    border-top: none;
}

.report-section--genre-shoui+.report-section-comment {
    border-top: none;
    margin-top: 0;
}

.report-section--timeflow-chusei+.report-section-comment {
    border-top: none;
}

.report-section-comment-body {
    display: flex;
    align-items: flex-start;
    margin-top: 8px;
    padding: 20px 24px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.report-section-comment-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* ---- OverallSummary ---- */
.report-summary {
    margin-top: 48px;
    background: linear-gradient(to right, rgba(0, 167, 179, 0.7), rgba(166, 77, 255, 0.7));
    border-radius: 10px;
    padding: 24px 64px 56px 64px;
}

.report-summary-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.report-summary-title__top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #2EEAFD, #A64DFF);
}

.report-summary-title__bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #2EEAFD, #A64DFF);
}

.report-summary-title__left {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: #2EEAFD;
}

.report-summary-title__right {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 3px;
    background: #A152F8;
}

.report-summary-title__text {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    line-height: calc(35 / 24);
    padding: 13px 20px 18px;
}

.report-summary-text {
    font-size: 16px;
    line-height: calc(27 / 16);
    white-space: pre-wrap;
}

.report-summary-text__strong {
    font-weight: 700;
}

/* ---- AnalysisCard ---- */
.report-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    width: 100%;
}

.report-section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
}

.report-section-header--timeflow {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.report-section-header--timeflow .report-section-title-wrap {
    flex: 0 0 auto;
    max-width: none;
}

.report-granularity-wrap {
    display: flex;
    width: auto;
    justify-content: flex-start;
    margin-top: 26px;
}

.report-section-title {
    font-size: 24px;
    font-weight: 700;
    line-height: calc(35 / 24);
}

.report-card {
    background: transparent;
    border: none;
    border-radius: 0;
}

.report-card-header {
    padding: 0;
    margin: 0 0 43px;
}

.report-section--tenchijin .report-card-header {
    margin-bottom: 14px;
}

.report-section--genre-shoui .report-card-header {
    margin-bottom: 36px;
}

.report-card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: calc(35 / 24);
}

.report-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 88px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.report-info-btn-icon {
    width: 14.86px;
    height: 12px;
    flex-shrink: 0;
}

.report-info-btn-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.report-info-btn:hover {
    opacity: 0.85;
}

.report-card-body {
    padding: 0;
    width: 100%;
}

.report-section--tenchijin .report-card-body {
    display: flex;
    justify-content: center;
}

.report-ai-comment {
    margin-top: 6px;
    padding: 0;
    border-top: 1px solid var(--report-section-border);
}

.report-section--tenchijin .report-ai-comment {
    margin-top: 32px;
    padding: 0;
    border-top: none;
}

.report-ai-comment-body {
    display: flex;
    align-items: flex-start;
    margin-top: 8px;
    padding: 20px 24px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.report-ai-comment-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.report-section--tenchijin .report-ai-comment-text {
    max-width: 820px;
}

/* ---- ShouiClassBarChart ---- */
.report-shoui-chart {
    max-width: 764px;
    width: 100%;
    margin: 0 auto 9px;
    transform: translateX(-2px);
}

.report-shoui-chart__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.report-shoui-chart__col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.report-shoui-chart__bar-area {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 120px;
}

.report-shoui-chart__bar {
    width: 100%;
    height: var(--report-shoui-bar-height);
}

.report-shoui-chart__label {
    margin-top: 15px;
    text-align: center;
}

.report-shoui-chart__bar--transformation {
    background: linear-gradient(to right, #ff6764, #cc5a6b);
}

.report-shoui-chart__bar--forward {
    background: linear-gradient(to right, #f7e663, #deb459);
}

.report-shoui-chart__bar--adjustment {
    background: linear-gradient(to right, #72c66e, #61ad6a);
}

.report-shoui-chart__bar--exploration {
    background: linear-gradient(to right, #4775dd, #3f51c4);
}

.report-shoui-chart__bar--maintenance {
    background: linear-gradient(to right, #89989d, #737d85);
}

.report-shoui-chart__name {
    font-size: 16px;
    font-weight: 700;
    line-height: calc(24 / 16);
}

.report-shoui-chart__value {
    display: inline-flex;
    align-items: baseline;
    margin-top: 1px;
    font-family: "avenir-next-lt-pro", "Avenir Next", sans-serif;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.report-shoui-chart__value--transformation {
    color: #d76069;
}

.report-shoui-chart__value--forward {
    color: #f7e663;
}

.report-shoui-chart__value--adjustment {
    color: #72c66e;
}

.report-shoui-chart__value--exploration {
    color: #4775dd;
}

.report-shoui-chart__value--maintenance {
    color: #89989d;
}

.report-shoui-chart__value-number {
    font-size: 32px;
    line-height: calc(44 / 32);
}

.report-shoui-chart__value-unit {
    font-size: 24px;
    line-height: calc(44 / 24);
}

/* ---- StackedBarChart ---- */
.report-segment-chart {
    width: 100%;
}

.report-segment-chart__bar {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.report-segment-chart__segment {
    height: 100%;
    flex: 0 0 auto;
}

.report-segment-chart__segment--transformation {
    background: linear-gradient(to right, #ff6764, #cc5a6b);
}

.report-segment-chart__segment--forward {
    background: linear-gradient(to right, #f7e663, #deb459);
}

.report-segment-chart__segment--adjustment {
    background: linear-gradient(to right, #72c66e, #61ad6a);
}

.report-segment-chart__segment--exploration {
    background: linear-gradient(to right, #4775dd, #3f51c4);
}

.report-segment-chart__segment--maintenance {
    background: linear-gradient(to right, #89989d, #737d85);
}

.report-segment-chart__legend {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    margin-top: 2px;
}

.report-segment-chart__legend-item {
    text-align: center;
}

.report-segment-chart__legend-name {
    font-size: 6px;
    font-weight: 700;
    line-height: calc(9 / 6);
    color: rgba(255, 255, 255, 0.72);
}

.report-segment-chart__legend-value {
    margin-top: 1px;
    font-size: 7px;
    font-weight: 700;
    line-height: calc(9 / 7);
    color: rgba(255, 255, 255, 0.94);
}

/* ---- TenchijinInfoContent / report-info（InfoModal 内コンテンツ） ---- */
.report-info {
    color: #1f2937;
}

.report-info__intro {
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #cad1db;
}

.report-info__intro-text {
    font-size: 14px;
    line-height: 23.8px;
    text-align: left;
    color: #002a6a;
}

.report-info__intro-subtext {
    margin-top: 8px;
    font-size: 14px;
    line-height: calc(22 / 14);
    color: #4b5563;
}

.report-info__intro-emphasis {
    font-weight: 700;
    color: inherit;
}

.report-info-item {
    border-bottom: 1px solid #e5e7eb;
}

.report-info-item:last-child {
    border-bottom: none;
}

.report-info-item__inner {
    padding: 17px 0 21px;
}

.report-info-item__title {
    font-size: 16px;
    font-weight: 700;
    line-height: calc(24 / 16);
    text-align: left;
    color: #002a6a;
}

.report-info-item__description {
    padding: 0 24px;
    font-size: 14px;
    line-height: calc(20 / 14);
    letter-spacing: -0.04em;
    text-align: left;
    color: #002a6a;
}

.report-info-item__detail {
    /* globals 未定義（BEM 互換のため空定義） */
}

/* ---- ShouiClassInfoContent ---- */
.report-info-item__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.report-info-item__marker {
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.report-info-item__marker--default {
    background: #d1d5db;
}

.report-info-item__toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 0 24px;
    font-size: 12px;
    line-height: calc(17 / 12);
    text-align: left;
    color: #002a6a;
    transition: color 0.2s;
}

.report-info-item__toggle-icon {
    width: 18px;
    height: 18px;
}

.report-info-item__toggle-icon--open {
    /* globals 未定義（BEM 互換のため空定義） */
}

.report-info-item__panel {
    margin-top: 21px;
    margin-left: 24px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(202, 209, 219, 0.5);
    background: transparent;
}

.report-info-item__hexagrams {
    font-weight: 700;
    font-size: 12px;
    line-height: calc(18 / 12);
    text-align: left;
    color: #002a6a;
}

.report-info-item__hexagram {
    display: inline;
    white-space: nowrap;
}

.report-shoui-color--transformation {
    background: #ff6764;
}

.report-shoui-color--forward {
    background: #f7e663;
}

.report-shoui-color--adjustment {
    background: #72c66e;
}

.report-shoui-color--exploration {
    background: #4775dd;
}

.report-shoui-color--maintenance {
    background: #89989d;
}

/* ---- ChuseiInfoContent ---- */
.report-info__chusei-detail-block {
    margin-top: 8px;
    margin-bottom: 8px;
}

.report-info__detail-row {
    /* globals 未定義（BEM 互換のため空定義） */
}

.report-info__detail-row--chusei {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 23.8px;
    text-align: left;
    color: #002a6a;
}

.report-info__detail-row--chusei+.report-info__detail-row--chusei {
    margin-top: 2px;
}

.report-info__detail-label {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
}

.report-info__detail-value {
    min-width: 0;
}

.report-info__intro-text--chusei {
    /* globals 未定義（BEM 互換のため空定義） */
}

.report-info__intro-text--chusei-detail {
    /* globals 未定義（BEM 互換のため空定義） */
}

.report-info__section-title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: calc(24 / 16);
    color: #1f2937;
}

.report-info__section-title--chusei {
    margin-top: 16px;
    margin-bottom: 0;
    padding: 0;
    color: #002a6a;
}

.report-info__list {
    display: flex;
    flex-direction: column;
}

.report-info-item__description--chusei {
    /* globals 未定義（BEM 互換のため空定義） */
}

.report-info-item__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.report-info-item__list--chusei {
    padding: 0 24px;
}

.report-info-item__list-item {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: calc(22 / 14);
    color: #4b5563;
}

.report-info-item__list-item--chusei {
    line-height: calc(20 / 14);
    letter-spacing: -0.04em;
    text-align: left;
    color: #002a6a;
}

.report-info-item__list-bullet {
    margin-right: 8px;
}

.report-chusei-color--chu-sei {
    background: #52d2c1;
}

.report-chusei-color--chu-fusei {
    background: #f8a315;
}

.report-chusei-color--fuchu-sei {
    background: #69a8ff;
}

.report-chusei-color--fuchu-fusei {
    background: #c86be7;
}

.report-chusei-text--chu-sei {
    color: #52d2c1;
}

.report-chusei-text--chu-fusei {
    color: #f8a315;
}

.report-chusei-text--fuchu-sei {
    color: #69a8ff;
}

.report-chusei-text--fuchu-fusei {
    color: #c86be7;
}

/* ---- GranularityToggle ---- */
.report-granularity {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0;
    width: fit-content;
    max-width: 100%;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--report-blur);
    -webkit-backdrop-filter: var(--report-blur);
}

.report-granularity-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 32px;
    border: 2px solid #fff;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 0;
}

.report-granularity-indicator::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 14px;
    height: 12px;
    background: #fff;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    transform: translateX(-50%);
}

.report-granularity-indicator--ready {
    opacity: 1;
}

.report-granularity-indicator--animated {
    transition: transform 0.28s ease, width 0.28s ease, opacity 0.18s ease;
}

.report-granularity-btn {
    position: relative;
    z-index: 1;
    min-width: 44px;
    height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
    text-align: left;
    background: transparent;
    border: 2px solid transparent;
    border-right-width: 0;
    cursor: pointer;
    transition: color 0.24s ease, background 0.24s ease, border-color 0.24s ease;
    flex-shrink: 0;
}

.report-granularity-btn:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.report-granularity-btn--active {
    border-right-color: transparent;
}

.report-granularity-btn__label {
    position: relative;
    z-index: 1;
}

/* ---- ReportTabs ---- */
.report-tabs {
    position: relative;
    display: flex;
    overflow: visible;
    align-items: center;
    gap: 0;
    padding: 0;
    scrollbar-width: none;
}

.report-tabs::-webkit-scrollbar {
    display: none;
}

.report-tab-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 56px;
    border: 2px solid #fff;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.06);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, width 0.28s ease, opacity 0.18s ease;
    z-index: 0;
}

.report-tab-indicator::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 14px;
    height: 12px;
    background: #fff;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    transform: translateX(-50%);
}

.report-tab-indicator--ready {
    opacity: 1;
}

.report-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    height: 56px;
    min-height: 56px;
    padding: 0 19px 0 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: calc(24 / 16);
    text-align: center;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    background: transparent;
    flex-shrink: 0;
}

.report-tab:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 32px;
    background: #fff;
    opacity: 0.2;
    transform: translateY(-50%);
}

.report-tab--active {
    color: var(--report-text-main);
}

.report-tab--active::before,
.report-tab:has(+ .report-tab--active)::before {
    display: none;
}

.report-tab__label {
    /* globals 未定義（BEM 互換のため空定義） */
}

/* ---- FreeUserReport ---- */
.report-page {
    padding: 40px 40px 48px;
    position: relative;
}

.report-page__inner {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
}

.report-page-blur {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 48px;
}

.report-header-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-header-title-icon {
    width: 34px;
    height: 33.77px;
    margin-top: 2px;
    object-fit: contain;
    flex-shrink: 0;
}

.report-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 202px;
    height: 56px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--report-glass-border-strong);
    background: #fff;
    backdrop-filter: blur(var(--report-blur));
    -webkit-backdrop-filter: blur(var(--report-blur));
    color: #002a6a;
    font-size: 16px;
    font-weight: 700;
    line-height: calc(24 / 16);
    text-align: left;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.report-header-btn:hover {
    opacity: 0.9;
}

.report-header-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.report-header-btn-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.report-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.report-tabs-shell {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: 1024px;
    max-width: 100%;
    height: 56px;
    padding: 0;
    border-radius: 12px;
    background: transparent;
    background-color: var(--color-overlay-soft);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(var(--report-blur));
    -webkit-backdrop-filter: blur(var(--report-blur));
}

.report-tabs-scroll {
    width: 100%;
}

.report-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.report-content-panel {
    position: relative;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.report-tab-content {
    padding: 23px 30px 30px;
    background: var(--report-content-panel-bg);
    backdrop-filter: var(--filter-glass-trend);
    -webkit-backdrop-filter: var(--filter-glass-trend);
}

.report-tab-stack {
    display: flex;
    flex-direction: column;
}

.report-section {
    padding: 18px 0 18px;
    border-top: 1px solid var(--report-section-border);
}

.report-section:first-child {
    border-top: none;
    padding-top: 0;
}

.report-free-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 60, 65, 0.8);
}

.report-free-wrapper {
    position: relative;
}

.report-free-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90vw;
    max-width: 640px;
    max-height: calc(100vh - 100px);
    padding: 56px 66px 64px 71px;
    text-align: center;
}

.report-free-card-title {
    font-weight: 700;
    font-size: 24px;
    line-height: calc(35 / 24);
    text-align: center;
    color: #002A6A;
    margin-bottom: 46px;
}

.report-free-card-text {
    font-size: 16px;
    line-height: 27.2px;
    text-align: center;
    color: #002A6A;
    margin-bottom: 60px;
}

.report-free-card .report-gradient-btn {
    width: 100%;
    max-width: 400px;
}

.report-gradient-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--report-gradient-start), var(--report-gradient-end));
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    width: 100%;
    max-width: 320px;
}

.report-gradient-btn:hover {
    opacity: 0.9;
}

/* ---- InsufficientDataReport ---- */
.report-page__stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-page--insufficient {
    height: 100vh;
    padding: 0;
}

.report-page--insufficient .report-page__inner,
.report-page--insufficient .report-page__stack--insufficient {
    height: 100%;
}

.report-page--insufficient .report-page__stack--insufficient {
    display: flex;
    flex-direction: column;
}

.report-page--insufficient .report-header {
    position: absolute;
    top: 68px;
    left: 50%;
    width: 100%;
    max-width: 594px;
    margin-top: 0;
    margin-bottom: 0;
    transform: translateX(-50%);
    justify-content: center;
}

.report-page--insufficient .report-gradient-btn {
    width: 320px;
    height: 56px;
    font-weight: 700;
    font-size: 16px;
    line-height: calc(24 / 16);
    text-align: left;
}

.report-status {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-page--insufficient .report-status {
    flex: 1;
    min-height: 0;
}

.report-status-card {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.report-page--insufficient .report-status-card {
    max-width: 480px;
}

.report-status-title {
    font-size: 20px;
    font-weight: 700;
    line-height: calc(29 / 20);
    color: var(--report-text-main);
    margin-bottom: 12px;
}

.report-status-title-break {
    display: none;
}

.report-page--insufficient .report-status-title {
    font-weight: 700;
    font-size: 24px;
    line-height: calc(35 / 24);
    margin-bottom: 21px;
    text-align: left;
}

.report-status-text {
    font-size: 13px;
    line-height: calc(23 / 13);
    color: var(--report-text-sub);
}

.report-page--insufficient .report-status-text {
    font-size: 14px;
    line-height: 23.8px;
    text-align: center;
}

.report-progress-ring-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.report-page--insufficient .report-progress-ring-bg {
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 2;
}

.report-progress-ring-fill {
    transition: stroke-dashoffset 0.5s;
}

.report-status-progress {
    display: flex;
    justify-content: center;
    margin-block: 32px;
}

.report-page--insufficient .report-status-progress {
    margin-bottom: 32px;
}

.report-status-progress__inner {
    position: relative;
}

.report-status-progress__inner--pc {
    /* base 表示は PC で OK（SP で hide） */
}

.report-status-progress__inner--sp {
    display: none;
}

.report-status-progress__chart {
    display: block;
}

.report-status-progress__label {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.report-status-progress__count-wrap {
    position: absolute;
    top: 30.02px;
    left: 31.9px;
    display: flex;
    align-items: flex-end;
}

.report-status-progress__subcount-wrap {
    position: absolute;
    right: 37px;
    bottom: 44px;
    display: flex;
    align-items: center;
}

.report-status-progress__count {
    font-family: "Avenir Next";
    font-weight: 700;
    font-size: 48px;
    line-height: calc(66 / 48);
    text-align: right;
}

.report-status-progress__count-unit {
    font-weight: 700;
    font-size: 15px;
    line-height: calc(21 / 15);
    position: relative;
    top: -8px;
    text-align: left;
}

.report-status-progress__subcount-value {
    font-family: "Avenir Next";
    font-weight: 700;
    font-size: 19px;
    line-height: calc(26 / 19);
    text-align: right;
}

.report-status-progress__subcount-unit {
    font-family: "Avenir Next";
    font-weight: 700;
    font-size: 19px;
    line-height: calc(21 / 19);
    margin-left: 2px;
    text-align: right;
}

.report-status-progress__divider {
    position: absolute;
    top: 59.11px;
    left: 57.7px;
    width: 49.73px;
    height: 48.79px;
}

/* ---- TriangleHeatmap ---- */
.report-triangle {
    display: flex;
    justify-content: center;
    width: 100%;
}

.report-triangle-chart-frame {
    /* tsx でインライン scale サイズを与えるラッパー（globals 未定義） */
}

.report-triangle-chart {
    position: relative;
    width: 448px;
    height: 318px;
    flex-shrink: 0;
}

.report-triangle-shape {
    position: absolute;
    top: 52px;
    left: calc((448px - 249.81px) / 2);
    width: 249.81px;
    height: 216px;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.report-triangle-shape--fill {
    background: rgba(255, 255, 255, 0.1);
}

.report-triangle-axis {
    position: absolute;
    border-radius: 9999px;
}

.report-triangle-node {
    position: absolute;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.report-triangle-node--ten {
    background: linear-gradient(180deg, #4775DD 0%, #3F51C4 100%);
}

.report-triangle-node--chi {
    background: linear-gradient(180deg, #3F51C4 0%, #3F51C4 100%);
}

.report-triangle-node--jin {
    background: linear-gradient(180deg, #3F51C4 0%, #3F51C4 100%);
}

.report-triangle-node-text {
    font-size: 18px;
    font-weight: 700;
    line-height: calc(26 / 18);
    text-align: center;
}

.report-triangle-center {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background: linear-gradient(180deg, #00EEFF 0%, #A64DFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.report-triangle-metric {
    position: absolute;
    display: inline-flex;
    align-items: baseline;
    transform: translateY(-50%);
    z-index: 2;
}

.report-triangle-metric--ten,
.report-triangle-metric--chi,
.report-triangle-metric--jin {
    /* 位置調整は tsx インラインスタイル（globals 未定義） */
}

.report-triangle-percent {
    font-family: "avenir-next-lt-pro", "Avenir Next", sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: calc(44 / 32);
}

.report-triangle-percent-unit {
    font-size: 18px;
    line-height: calc(26 / 18);
}

.report-triangle-description {
    position: absolute;
    font-size: 13px;
    font-weight: 700;
    line-height: calc(19 / 13);
    text-align: left;
    z-index: 2;
}

/* ---- GenreShouiMatrix ---- */
.report-genre-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 100%;
}

.report-mini-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 10px;
    width: 100%;
    position: relative;
}

.report-mini-chart-grid::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.report-mini-chart-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 448px;
}

.report-mini-chart-grid>.report-mini-chart-card:nth-child(2n-1) {
    justify-self: start;
}

.report-mini-chart-grid>.report-mini-chart-card:nth-child(2n) {
    justify-self: end;
}

.report-genre-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.report-section--genre-shoui .report-genre-row-header {
    margin-bottom: -2px;
}

.report-genre-row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.report-genre-label {
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
    color: var(--report-text-main);
}

.report-genre-row .report-genre-label {
    font-size: 18px;
    font-weight: 700;
    line-height: calc(26 / 18);
    text-align: left;
}

.report-genre-count {
    font-size: 12px;
    font-weight: 700;
    line-height: calc(17 / 12);
    color: rgba(255, 255, 255, 0.58);
}

.report-genre-row .report-genre-count {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transform: translateY(1px);
}

.report-genre-shoui {
    --trend-keyword-shoui-gap: 8px;
    --trend-keyword-shoui-col-width: 72px;
    width: 100%;
    max-width: 448px;
    margin: 0;
}

.report-genre-shoui.trend-keyword-shoui {
    gap: 0;
    justify-content: space-between;
    margin-bottom: 7px;
}

.report-mini-chart-grid>.report-mini-chart-card:nth-child(5) .report-genre-shoui.trend-keyword-shoui,
.report-mini-chart-grid>.report-mini-chart-card:nth-child(6) .report-genre-shoui.trend-keyword-shoui {
    margin-bottom: 0;
}

.report-genre-shoui .trend-keyword-shoui__col {
    width: calc(81.1 / 448 * 100%);
}

.report-genre-shoui .trend-keyword-shoui__bar-area {
    height: 60px;
}

.report-genre-shoui .trend-keyword-shoui__label {
    margin-top: 4px;
    font-size: 14px;
    line-height: calc(20 / 14);
}

.report-genre-shoui .trend-keyword-shoui__val {
    margin-top: 0;
}

.report-genre-shoui .trend-keyword-shoui__val-number {
    font-size: 20px;
    line-height: calc(27 / 20);
}

.report-genre-shoui .trend-keyword-shoui__val-unit {
    font-size: 16px;
    line-height: calc(27 / 16);
}

/* ---- TimeflowChart ---- */
.report-placeholder-bar {
    height: 18px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.report-timeflow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    position: relative;
}

.report-timeflow-grid::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.report-timeflow-grid__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-timeflow-grid__col:first-child {
    align-items: flex-start;
}

.report-timeflow-grid__col:last-child {
    align-items: flex-end;
}

.report-timeflow-grid--compact>.report-mini-chart-card:nth-child(2n-1) {
    justify-self: start;
    width: min(100%, 448px);
}

.report-timeflow-grid--compact>.report-mini-chart-card:nth-child(2n) {
    justify-self: end;
    width: min(100%, 448px);
}

.report-timeflow-shoui {
    --trend-keyword-shoui-gap: 8px;
    --trend-keyword-shoui-col-width: 72px;
    width: 100%;
    max-width: 448px;
    margin: 0;
}

.report-timeflow-shoui .trend-keyword-shoui__bar-area {
    height: 60px;
}

.report-timeflow-shoui .trend-keyword-shoui__label {
    margin-top: 4px;
    font-size: 14px;
    line-height: calc(20 / 14);
}

.report-timeflow-shoui .trend-keyword-shoui__val {
    margin-top: 0;
}

.report-timeflow-shoui .trend-keyword-shoui__val-number {
    font-size: 20px;
    line-height: calc(27 / 20);
}

.report-timeflow-shoui .trend-keyword-shoui__val-unit {
    font-size: 16px;
    line-height: calc(27 / 16);
}

.report-timeflow-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-timeflow-row--empty {
    opacity: 0.4;
}

.report-timeflow-row--progress {
    opacity: 0.74;
}

.report-timeflow-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}

.report-timeflow-label {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
    color: var(--report-text-main);
}

.report-timeflow-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.report-timeflow-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 24px;
    border-radius: 9999px;
    background-color: transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: calc(17 / 12);
    white-space: nowrap;
    background-image: linear-gradient(90deg, rgba(0, 238, 255, 1) 0%, rgba(166, 77, 255, 1) 100%);
}

/* ---- ShouiChuseiMatrix ---- */
.report-heatmap-scroll {
    overflow: visible;
}

.report-heatmap {
    --trend-heatmap-period-width: 172px;
    --trend-heatmap-data-width: calc((100% - 172px - 12px) / 4);
    --trend-heatmap-column-gap: 4px;
    --trend-heatmap-row-gap: 4px;
    width: 100%;
}

.report-shoui-row-marker {
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.report-shoui-matrix {
    --trend-heatmap-period-width: 84px;
    --trend-heatmap-data-width: 215px;
    --trend-heatmap-column-gap: 4px;
}

.report-shoui-matrix.report-heatmap {
    --trend-heatmap-period-width: 84px;
    --trend-heatmap-data-width: 215px;
    --trend-heatmap-column-gap: 4px;
}

.report-shoui-matrix__label-cell {
    display: flex;
    align-items: center;
    min-width: 0;
    justify-content: flex-start;
}

.report-shoui-matrix__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: calc(26 / 18);
    white-space: nowrap;
}

.report-shoui-matrix__cell {
    min-width: 0;
}

/* report-shoui-matrix__row: tsx で row マーカーとして使われているが globals.css に定義なし。BEM 互換のため空定義で維持 */
.report-shoui-matrix__row {}

/* ---- GenreChuseiMatrix ---- */
.report-genre-chusei-matrix {
    --trend-heatmap-period-width: 228px;
    --trend-heatmap-data-width: 180px;
}

.report-genre-chusei-matrix.report-heatmap {
    --trend-heatmap-period-width: 228px;
    --trend-heatmap-data-width: 180px;
}

.report-genre-chusei-matrix .trend-heatmap__header,
.report-genre-chusei-matrix .trend-heatmap__row {
    grid-template-columns: var(--trend-heatmap-period-width) repeat(4, var(--trend-heatmap-data-width));
}

.report-genre-chusei-matrix .trend-heatmap__cell {
    height: 54px;
}

.report-genre-chusei-matrix .trend-heatmap__cell-unit {
    font-size: 16px;
    line-height: calc(20 / 16);
}

.report-genre-chusei-matrix .report-shoui-matrix__label {
    gap: 0;
    width: 100%;
    padding-right: 15px;
    white-space: normal;
    line-height: calc(26 / 18);
    word-break: keep-all;
}

.report-genre-chusei-matrix .report-shoui-matrix__label-cell {
    width: 100%;
    min-height: 54px;
}

.report-genre-chusei-matrix__total-header,
.report-genre-chusei-matrix__total-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: calc(14 / 10);
    color: rgba(255, 255, 255, 0.5);
}

/* report-genre-chusei-matrix__row: tsx で row マーカーとして使われているが globals.css に定義なし。BEM 互換のため空定義で維持 */
.report-genre-chusei-matrix__row {}

/* ---- ChuseiTimeHeatmap ---- */
.report-heatmap-0 {
    background: rgba(255, 255, 255, 0.04);
    color: var(--report-text-muted);
}

/* 副軸 BP: 1340 / 1182 / 1080 / 922 — sidebar open/collapsed に応じたレイアウト圧縮 */
@media (max-width: 1340px) {

    .main-layout__main--sidebar-open .report-genre-chusei-matrix,
    .main-layout__main--sidebar-open .report-genre-chusei-matrix.report-heatmap {
        --trend-heatmap-period-width: 177px;
        --trend-heatmap-data-width: 1fr;
    }

    .main-layout__main--sidebar-open .report-genre-chusei-matrix .trend-heatmap__header,
    .main-layout__main--sidebar-open .report-genre-chusei-matrix .trend-heatmap__row {
        grid-template-columns: minmax(0, 177px) repeat(4, minmax(0, 1fr));
    }

    .main-layout__main--sidebar-open .report-genre-chusei-matrix .report-shoui-matrix__label {
        max-width: 177px;
        padding-right: 15px;
    }
}

@media (max-width: 1182px) {

    .main-layout__main--sidebar-collapsed .report-genre-chusei-matrix,
    .main-layout__main--sidebar-collapsed .report-genre-chusei-matrix.report-heatmap {
        --trend-heatmap-period-width: 177px;
        --trend-heatmap-data-width: 1fr;
    }

    .main-layout__main--sidebar-collapsed .report-genre-chusei-matrix .trend-heatmap__header,
    .main-layout__main--sidebar-collapsed .report-genre-chusei-matrix .trend-heatmap__row {
        grid-template-columns: minmax(0, 177px) repeat(4, minmax(0, 1fr));
    }

    .main-layout__main--sidebar-collapsed .report-genre-chusei-matrix .report-shoui-matrix__label {
        max-width: 177px;
        padding-right: 15px;
    }
}

@media (max-width: 1080px) {

    .main-layout__main--sidebar-open .report-genre-chusei-matrix,
    .main-layout__main--sidebar-open .report-genre-chusei-matrix.report-heatmap {
        --trend-heatmap-period-width: 75px;
    }

    .main-layout__main--sidebar-open .report-genre-chusei-matrix .trend-heatmap__header,
    .main-layout__main--sidebar-open .report-genre-chusei-matrix .trend-heatmap__row {
        grid-template-columns: 75px repeat(4, minmax(0, 1fr));
    }

    .main-layout__main--sidebar-open .report-genre-chusei-matrix .report-shoui-matrix__label {
        display: block;
        max-width: 75px;
        min-width: 75px;
        font-size: 14px;
        line-height: 1;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .main-layout__main--sidebar-open .report-genre-chusei-matrix .trend-heatmap__col-label {
        font-size: 14px;
        line-height: calc(20 / 14);
    }

    .main-layout__main--sidebar-open .report-genre-chusei-matrix .trend-heatmap__col-desc {
        font-size: 11px;
        line-height: calc(16 / 11);
    }
}

@media (max-width: 922px) {

    .main-layout__main--sidebar-collapsed .report-genre-chusei-matrix,
    .main-layout__main--sidebar-collapsed .report-genre-chusei-matrix.report-heatmap {
        --trend-heatmap-period-width: 75px;
        --trend-heatmap-data-width: 1fr;
    }

    .main-layout__main--sidebar-collapsed .report-genre-chusei-matrix .trend-heatmap__header,
    .main-layout__main--sidebar-collapsed .report-genre-chusei-matrix .trend-heatmap__row {
        grid-template-columns: 75px repeat(4, minmax(0, 1fr));
    }

    .main-layout__main--sidebar-collapsed .report-genre-chusei-matrix .report-shoui-matrix__label {
        display: block;
        max-width: 75px;
        min-width: 75px;
        font-size: 10px;
        line-height: 1;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .main-layout__main--sidebar-collapsed .report-genre-chusei-matrix .trend-heatmap__col-label {
        font-size: 12px;
        line-height: calc(17 / 12);
    }

    .main-layout__main--sidebar-collapsed .report-genre-chusei-matrix .trend-heatmap__col-desc {
        font-size: 8px;
        line-height: calc(12 / 8);
    }
}

/* ===== MAIN: TREND ===== */
.trend-empty-state {
    display: flex;
    min-height: 50vh;
    align-items: center;
    justify-content: center;
}

.trend-empty-state__content {
    text-align: center;
}

.trend-empty-state__message {
    font-size: 14px;
    line-height: calc(20 / 14);
    color: rgba(255, 255, 255, 0.5);
}

.trend-empty-state__note {
    margin-top: 8px;
    font-size: 12px;
    line-height: calc(16 / 12);
    color: rgba(255, 255, 255, 0.4);
}

.trend-blur-block,
.trend-column--blurred,
.trend-summary-wrap--blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.trend-page {
    padding: 0 63px 0 62px;
}

.trend-page-inner {
    max-width: 1553px;
    margin: 0 auto;
}

.trend-filter-row {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 64px;
}

.trend-header-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 68px;
    margin-bottom: 48px;
    font-size: 40px;
    font-weight: var(--font-weight-bold);
    line-height: 1.45;
    color: var(--color-white);
}

.trend-header-icon {
    width: 34px;
    height: 33.77px;
    margin-top: 2px;
}

.trend-meta {
    display: flex;
    flex: 0 0 140px;
    flex-direction: column;
    align-items: flex-end;
    min-width: 140px;
}

.trend-meta--mobile {
    display: none;
}

.trend-meta--inline {
    display: none;
}

.trend-meta-item {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    line-height: 2;
    color: var(--color-white);
    white-space: nowrap;
}

.trend-meta-loading {
    font-size: 11px;
    color: var(--report-gradient-start);
}

.trend-panel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 23px 30px 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: var(--trend-glass-bg);
    backdrop-filter: var(--filter-glass-trend);
    -webkit-backdrop-filter: var(--filter-glass-trend);
}

.trend-grid {
    display: grid;
    grid-template-columns: 1024fr 480fr;
    gap: 48px;
}

.trend-grid>* {
    min-width: 0;
}

.trend-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 48px;
}

.trend-ai-comment-wrap--chusei {
    margin-top: 29px;
}

.trend-section-divider {
    width: 100%;
    height: 1px;
    margin-bottom: 24px;
    background-color: rgba(255, 255, 255, 0.2);
}

.trend-summary-wrap {
    width: 100%;
    margin-bottom: 70px;
}

@media (max-width: 1380px) {
    .main-layout__main--sidebar-open .trend-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .main-layout__main--sidebar-open .trend-grid>.trend-column {
        display: contents;
    }

    .main-layout__main--sidebar-open .trend-panel--shoui {
        order: 1;
    }

    .main-layout__main--sidebar-open .trend-panel--chusei {
        order: 2;
    }

    .main-layout__main--sidebar-open .trend-panel--keyword-map {
        order: 3;
        min-width: 0;
    }

    .main-layout__main--sidebar-open .trend-summary-wrap {
        order: 4;
    }

    .main-layout__main--sidebar-open .trend-keyword-expand {
        max-width: 560px;
    }

    .main-layout__main--sidebar-open .trend-bubble-chart {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 24px;
    }
}

@media (max-width: 1222px) {
    .main-layout__main--sidebar-collapsed .trend-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .main-layout__main--sidebar-collapsed .trend-grid>.trend-column {
        display: contents;
    }

    .main-layout__main--sidebar-collapsed .trend-panel--shoui {
        order: 1;
    }

    .main-layout__main--sidebar-collapsed .trend-panel--chusei {
        order: 2;
    }

    .main-layout__main--sidebar-collapsed .trend-panel--keyword-map {
        order: 3;
        min-width: 0;
    }

    .main-layout__main--sidebar-collapsed .trend-summary-wrap {
        order: 4;
    }

    .main-layout__main--sidebar-collapsed .trend-keyword-expand {
        max-width: 560px;
    }
}

@media (max-width: 767px) {
    .trend-page {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .main-layout__main--sidebar-collapsed .trend-panel--keyword-map {
        padding-left: 19px;
        padding-right: 19px;
    }

    .main-layout__main--sidebar-collapsed .trend-summary-wrap {
        margin-top: -16px;
    }

    .trend-header-title {
        gap: 12px;
        margin-top: 40px;
        margin-bottom: 29px;
        font-size: 28px;
        line-height: calc(40 / 28);
    }

    .trend-header-icon {
        width: 24px;
        height: 24px;
    }

    .trend-filter-row>.trend-meta {
        display: none;
    }

    .trend-filter-row {
        margin-bottom: 16px;
    }

    .trend-meta--mobile {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        margin-bottom: 20px;
    }

    .trend-meta--mobile .trend-meta-item {
        font-size: 12px;
        line-height: calc(17 / 12);
    }

    .trend-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trend-summary-wrap {
        margin-bottom: 48px;
    }

    .trend-ai-comment-wrap--keyword-map .trend-ai-comment-header {
        padding-right: 48px;
    }

    .trend-ai-comment-wrap--keyword-map .trend-ai-comment-icon-img {
        width: 16px;
        height: 16px;
    }

    .trend-ai-comment-wrap--keyword-map .trend-ai-comment-headline {
        font-size: 14px;
        font-weight: var(--font-weight-bold);
        letter-spacing: -0.02em;
        line-height: calc(23.8 / 14);
    }
}

@media (max-width: 640px) {
    .trend-filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .trend-panel {
        padding: 24px 20px 32px;
    }
}

@media (max-width: 1460px) {
    .trend-header-title {
        margin-bottom: 40px;
    }

    .trend-filter-row>.trend-meta {
        display: none;
    }

    .trend-filter-row {
        margin-bottom: 16px;
    }

    .trend-meta--inline {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 16px;
        min-width: 0;
    }

    .trend-meta--inline .trend-meta-item {
        font-size: 12px;
        line-height: calc(17 / 12);
    }

    .trend-meta--mobile {
        display: none;
    }
}

@media (max-width: 1540px) {
    .main-layout__main--sidebar-collapsed .trend-header-title {
        margin-bottom: 40px;
    }

    .main-layout__main--sidebar-collapsed .trend-filter-row>.trend-meta {
        display: none;
    }

    .main-layout__main--sidebar-collapsed .trend-filter-row {
        margin-bottom: 16px;
    }

    .main-layout__main--sidebar-collapsed .trend-filters__meta-slot {
        display: flex;
        flex: 0 0 auto;
        align-self: flex-end;
        margin-left: auto;
        min-width: max-content;
    }

    .main-layout__main--sidebar-collapsed .trend-meta--inline {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 16px;
        min-width: 0;
    }

    .main-layout__main--sidebar-collapsed .trend-meta--inline .trend-meta-item {
        font-size: 12px;
        line-height: calc(17 / 12);
    }

    .main-layout__main--sidebar-collapsed .trend-meta--mobile {
        display: none;
    }
}

@media (max-width: 1320px) {
    .main-layout__main--sidebar-collapsed .trend-filters__meta-slot {
        flex: 1 0 100%;
        justify-content: flex-end;
        margin-left: 0;
        min-width: 0;
    }
}

/* ---- TrendFilters ---- */
.trend-filters {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 17px;
    min-width: 0;
}

.trend-filters__meta-slot {
    display: none;
}

.trend-filter-group {
    position: relative;
    z-index: 31;
    display: flex;
    flex: 1 1 100px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    min-width: 100px;
    max-width: 160px;
}

.trend-filter-group:has(.prefecture-select--open) {
    z-index: 80;
}

.trend-filter-group:has(.trend-filter-control--wide) {
    flex-basis: 160px;
    min-width: 160px;
    max-width: 308px;
}

.trend-filter-label {
    font-size: 16px;
    font-weight: 700;
}

.trend-filters>.trend-filter-group:first-child .trend-filter-label {
    padding-left: 2px;
}

.trend-filter-control {
    position: relative;
    z-index: 32;
    width: 100%;
    min-width: 0;
    max-width: 160px;
    height: 48px;
    border-radius: 8px;
    overflow: visible;
}

.trend-filter-control--wide {
    min-width: 160px;
    max-width: 308px;
}

.trend-filter-control .prefecture-select {
    width: 100%;
    height: 100%;
}

.trend-filter-control .prefecture-select--open {
    position: relative;
    z-index: 60;
}

.trend-filter-control .prefecture-select__trigger {
    position: relative;
    z-index: 1;
}

.trend-filter-control .prefecture-select__trigger--auth,
.trend-filter-control .prefecture-select__trigger--auth-error {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 24px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    background: var(--trend-glass-bg);
    backdrop-filter: var(--filter-blur17-bright87);
    -webkit-backdrop-filter: var(--filter-blur17-bright87);
    font-size: 16px;
    line-height: calc(24 / 16);
}

.trend-filter-control .prefecture-select__trigger--auth>span:first-child,
.trend-filter-control .prefecture-select__trigger--auth-error>span:first-child {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trend-filter-control .prefecture-select__auth-icon {
    display: none;
}

.trend-filter-control .prefecture-select__trigger--auth::after,
.trend-filter-control .prefecture-select__trigger--auth-error::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 9px;
    height: 8px;
    background: url("/app/images/search-select-arrow.svg") center / contain no-repeat;
    transform: translateY(-50%);
    pointer-events: none;
}

.trend-filter-control .prefecture-select__panel {
    z-index: 40;
    width: 100%;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: var(--trend-glass-panel-bg);
    backdrop-filter: var(--filter-blur17-bright87);
    -webkit-backdrop-filter: var(--filter-blur17-bright87);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.trend-filter-control .prefecture-select__panel--auth {
    background: var(--trend-glass-panel-bg);
}

.trend-filter-control .prefecture-select__list {
    max-height: none;
    padding: 0;
}

.trend-filter-control .prefecture-select__list li {
    width: 100%;
}

.trend-filter-control .prefecture-select__item {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 8px 16px;
    text-align: left;
    font-size: 14px;
    line-height: calc(20 / 14);
    white-space: normal;
    word-break: keep-all;
}

.trend-filter-control .prefecture-select__item--auth {
    color: rgba(255, 255, 255, 0.85);
}

@media (hover: hover) {
    .trend-filter-control .prefecture-select__item--auth:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

.trend-filter-control .prefecture-select__item--auth-active {
    background: rgba(255, 255, 255, 0.1);
}

.trend-filter-control .prefecture-select__item--disabled {
    color: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
}

.trend-filter-control .prefecture-select__list li:first-child .prefecture-select__item--auth-active {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.trend-filter-control .prefecture-select__list li:last-child .prefecture-select__item--auth-active {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.trend-filter-control .prefecture-select__empty--auth {}

.trend-filter-disabled {
    position: relative;
    display: flex;
    width: 100%;
    height: 56px;
    align-items: center;
    padding: 0 16px 0 24px;
    border-radius: 8px;
    background: var(--trend-glass-bg);
    backdrop-filter: var(--filter-blur17-bright87);
    -webkit-backdrop-filter: var(--filter-blur17-bright87);
    font-size: 16px;
    line-height: calc(24 / 16);
    cursor: pointer;
}

.trend-filter-disabled::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 9px;
    height: 8px;
    background: url("/app/images/search-select-arrow.svg") center / contain no-repeat;
    transform: translateY(-50%);
    pointer-events: none;
}

@media (max-width: 1460px) {
    .trend-filters__meta-slot {
        display: flex;
        flex: 1 0 100%;
        justify-content: flex-end;
        min-width: 0;
    }
}

/* ---- BubbleChart ---- */
.trend-bubble-chart {
    width: 100%;
    margin-bottom: 48px;
}

.trend-bubble-chart__surface {
    position: relative;
    --trend-bubble-scale: 1;
    width: 100%;
    aspect-ratio: 1;
}

.trend-bubble-chart__quadrant {
    position: absolute;
    width: 50%;
    height: 50%;
}

.trend-bubble-chart__quadrant--top-left {
    top: 0;
    left: 0;
    border-top-left-radius: 8px;
    background: rgba(56, 72, 92, 0.5);
}

.trend-bubble-chart__quadrant--top-right {
    top: 0;
    right: 0;
    border-top-right-radius: 8px;
    background: rgba(76, 91, 110, 0.5);
}

.trend-bubble-chart__quadrant--bottom-left {
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 8px;
    background: rgba(76, 91, 110, 0.5);
}

.trend-bubble-chart__quadrant--bottom-right {
    right: 0;
    bottom: 0;
    border-bottom-right-radius: 8px;
    background: rgba(56, 72, 92, 0.5);
}

.trend-bubble-chart__axis {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.trend-bubble-chart__axis--horizontal {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

.trend-bubble-chart__axis--vertical {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

.trend-bubble-chart__axis-label {
    position: absolute;
    z-index: 2;
    display: flex;
    width: calc(60px * var(--trend-bubble-scale));
    height: calc(28px * var(--trend-bubble-scale));
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    opacity: 0.5;
    font-size: calc(14px * var(--trend-bubble-scale));
    font-weight: 700;
    line-height: calc(20px * var(--trend-bubble-scale));
}

.trend-bubble-chart__axis-label--left {
    top: calc(50% - (14px * var(--trend-bubble-scale)));
    left: calc(12px * var(--trend-bubble-scale));
}

.trend-bubble-chart__axis-label--right {
    top: calc(50% - (14px * var(--trend-bubble-scale)));
    right: calc(12px * var(--trend-bubble-scale));
}

.trend-bubble-chart__axis-label--top {
    top: calc(12px * var(--trend-bubble-scale));
    left: calc(50% - (30px * var(--trend-bubble-scale)));
}

.trend-bubble-chart__axis-label--bottom {
    bottom: calc(12px * var(--trend-bubble-scale));
    left: calc(50% - (30px * var(--trend-bubble-scale)));
}

.trend-bubble-chart__quadrant-label {
    position: absolute;
    z-index: 2;
    font-size: calc(18px * var(--trend-bubble-scale));
    font-weight: 700;
    line-height: calc(26px * var(--trend-bubble-scale));
}

.trend-bubble-chart__quadrant-label--top-right {
    top: calc(12px * var(--trend-bubble-scale));
    right: calc(12px * var(--trend-bubble-scale));
    color: #4db6ac;
}

.trend-bubble-chart__quadrant-label--top-left {
    top: calc(12px * var(--trend-bubble-scale));
    left: calc(12px * var(--trend-bubble-scale));
    color: #e6962d;
}

.trend-bubble-chart__quadrant-label--bottom-left {
    bottom: calc(12px * var(--trend-bubble-scale));
    left: calc(12px * var(--trend-bubble-scale));
    color: #ba68c8;
}

.trend-bubble-chart__quadrant-label--bottom-right {
    right: calc(12px * var(--trend-bubble-scale));
    bottom: calc(12px * var(--trend-bubble-scale));
    color: #64b5f6;
}

.trend-bubble-chart__bubble {
    position: absolute;
    top: var(--trend-bubble-top);
    left: var(--trend-bubble-left);
    width: var(--trend-bubble-size);
    height: var(--trend-bubble-size);
    transform: translate(-50%, -50%);
    z-index: 3;
}

.trend-bubble-chart__bubble-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--trend-bubble-color);
    border: 1px solid var(--trend-bubble-color);
    opacity: 0.8;
}

.trend-bubble-chart__bubble-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    font-size: calc(var(--trend-bubble-font-size) * var(--trend-bubble-scale));
    font-weight: 700;
    line-height: calc(var(--trend-bubble-font-size) * var(--trend-bubble-scale) * 1.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

/* ---- ChuseiCardRow ---- */
.chusei-card-row {
    --chusei-row-scale: 1;
    display: flex;
    justify-content: center;
    gap: calc(25px * var(--chusei-row-scale));
    max-width: 713px;
    margin: 0 auto 18px;
}

.chusei-card-row__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.chusei-card-row__item:first-child {
    margin-left: calc(-12px * var(--chusei-row-scale));
}

.chusei-card-row__circle-wrap {
    position: relative;
    width: calc(160px * var(--chusei-row-scale));
    height: calc(160px * var(--chusei-row-scale));
    display: flex;
    align-items: center;
    justify-content: center;
}

.chusei-card-row__circle-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.chusei-card-row__circle {
    position: relative;
    border-radius: 50%;
}

.chusei-card-row__circle-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.chusei-card-row__circle.chusei-card-row--chu-sei {
    background: linear-gradient(to right, #4db6ac, #41869c);
}

.chusei-card-row__circle.chusei-card-row--chu-fusei {
    background: linear-gradient(to right, #e69615, #cc6612);
}

.chusei-card-row__circle.chusei-card-row--fuchu-sei {
    background: linear-gradient(to right, #64b5f6, #5a8cdb);
}

.chusei-card-row__circle.chusei-card-row--fuchu-fusei {
    background: linear-gradient(to right, #ba68c8, #935aad);
}

.chusei-card-row__circle-label {
    font-size: calc(18px * var(--chusei-row-scale));
    font-weight: 700;
    line-height: calc(26px * var(--chusei-row-scale));
    text-align: center;
}

.chusei-card-row__circle-desc {
    font-size: calc(13px * var(--chusei-row-scale));
    font-weight: 700;
    line-height: calc(19px * var(--chusei-row-scale));
    text-align: center;
}

.chusei-card-row__percent {
    font-family: "avenir-next-lt-pro", "Avenir Next", sans-serif;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
    margin-top: calc(7px * var(--chusei-row-scale));
}

.chusei-card-row__percent-value {
    font-size: calc(32px * var(--chusei-row-scale));
    letter-spacing: 0;
    line-height: calc(44px * var(--chusei-row-scale));
    text-align: center;
}

.chusei-card-row__percent-unit {
    font-size: calc(24px * var(--chusei-row-scale));
    line-height: 1;
    text-align: center;
}

.chusei-card-row__percent.chusei-card-row--chu-sei,
.chusei-card-row__count.chusei-card-row--chu-sei {
    color: #4DB6AC;
}

.chusei-card-row__percent.chusei-card-row--chu-fusei,
.chusei-card-row__count.chusei-card-row--chu-fusei {
    color: #E69615;
}

.chusei-card-row__percent.chusei-card-row--fuchu-sei,
.chusei-card-row__count.chusei-card-row--fuchu-sei {
    color: #64B5F6;
}

.chusei-card-row__percent.chusei-card-row--fuchu-fusei,
.chusei-card-row__count.chusei-card-row--fuchu-fusei {
    color: #BA68C8;
}

.chusei-card-row__count {
    font-size: calc(16px * var(--chusei-row-scale));
    font-weight: 700;
    line-height: calc(24px * var(--chusei-row-scale));
    text-align: center;
    margin-top: calc(-6px * var(--chusei-row-scale));
    margin-bottom: calc(-8px * var(--chusei-row-scale));
}

/* ---- TimeHeatmap ---- */
.trend-heatmap-scroll {
    overflow: visible;
}

.trend-heatmap {
    --trend-heatmap-period-width: 172px;
    --trend-heatmap-data-width: calc((100% - 172px - 12px) / 4);
    --trend-heatmap-column-gap: 4px;
    --trend-heatmap-row-gap: 4px;
    width: 100%;
}

.trend-heatmap__header,
.trend-heatmap__row {
    display: grid;
    grid-template-columns: var(--trend-heatmap-period-width) repeat(4, minmax(0, var(--trend-heatmap-data-width)));
    column-gap: var(--trend-heatmap-column-gap);
}

.trend-heatmap__header {
    align-items: end;
    margin-bottom: 21px;
}

.trend-heatmap__body {
    display: grid;
    row-gap: var(--trend-heatmap-row-gap);
}

.trend-heatmap__period-header {
    width: auto;
}

.trend-heatmap__col-header {
    padding: 0 8px;
    text-align: center;
}

.trend-heatmap__col-header:not(.trend-heatmap__col-header--first) {
    padding-left: 8px;
}

.trend-heatmap__col-dot {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin: 0 auto 4px;
}

.trend-heatmap__col-dot--chu-sei {
    background: #4DB6AC;
}

.trend-heatmap__col-dot--chu-fusei {
    background: #E69615;
}

.trend-heatmap__col-dot--fuchu-sei {
    background: #64B5F6;
}

.trend-heatmap__col-dot--fuchu-fusei {
    background: #BA68C8;
}

.trend-heatmap__col-label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: calc(26 / 18);
}

.trend-heatmap__col-desc {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: calc(17 / 12);
    margin-top: 2px;
}

.trend-heatmap__period-label {
    font-size: 18px;
    font-weight: 700;
    line-height: calc(26 / 18);
    text-align: left;
    display: inline-flex;
    align-items: center;
    align-self: center;
}

.trend-heatmap__latest-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    width: 60px;
    height: 24px;
    border-radius: 9999px;
    background: linear-gradient(90deg, rgba(0, 238, 255, 1) 0%, rgba(166, 77, 255, 1) 100%);
    font-size: 12px;
    font-weight: 700;
    line-height: calc(17 / 12);
    white-space: nowrap;
}

.trend-heatmap__period-cell {
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.trend-heatmap__period-stack {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 11px;
}

.trend-heatmap__cell {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "avenir-next-lt-pro", "Avenir Next", sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: calc(33 / 24);
}

.trend-heatmap__data-slot {
    width: 100%;
}

.trend-heatmap__cell-unit {
    font-size: 16px;
    margin-left: 1px;
}

/* ---- ShouiBarChart ---- */
.shoui-bar-chart {
    max-width: 764px;
    width: 100%;
    margin: 0 auto 22px;
    transform: translateX(-2px);
}

.shoui-bar-chart__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.shoui-bar-chart__col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shoui-bar-chart__bar-area {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 120px;
}

.shoui-bar-chart__bar {
    width: 100%;
    height: var(--shoui-bar-height);
}

.shoui-bar-chart__bar--transformation {
    background: linear-gradient(to right, #ff6764, #cc5a6b);
}

.shoui-bar-chart__bar--forward {
    background: linear-gradient(to right, #f7e663, #deb459);
}

.shoui-bar-chart__bar--adjustment {
    background: linear-gradient(to right, #72c66e, #61ad6a);
}

.shoui-bar-chart__bar--exploration {
    background: linear-gradient(to right, #4775dd, #3f51c4);
}

.shoui-bar-chart__bar--maintenance {
    background: linear-gradient(to right, #89989d, #737d85);
}

.shoui-bar-chart__label {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 700;
    line-height: calc(24 / 16);
    text-align: center;
}

.shoui-bar-chart__value {
    display: inline-flex;
    align-items: baseline;
    margin-top: 1px;
    font-family: "avenir-next-lt-pro", "Avenir Next", sans-serif;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.shoui-bar-chart__value--transformation {
    color: #d76069;
}

.shoui-bar-chart__value--forward {
    color: #f7e663;
}

.shoui-bar-chart__value--adjustment {
    color: #72c66e;
}

.shoui-bar-chart__value--exploration {
    color: #4775dd;
}

.shoui-bar-chart__value--maintenance {
    color: #89989d;
}

.shoui-bar-chart__value-number {
    font-size: 32px;
    line-height: calc(44 / 32);
}

.shoui-bar-chart__value-unit {
    font-size: 24px;
    line-height: calc(44 / 24);
}

/* ---- TrendAiComment ---- */
.trend-ai-comment {
    margin-top: 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
    cursor: pointer;
}

.trend-ai-comment-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 54px 26px 24px;
    cursor: pointer;
}

.trend-ai-comment-header--static {
    cursor: default;
}

.trend-ai-comment-toggle {
    position: absolute;
    top: 26.5px;
    right: 24px;
    width: 19px;
    height: 19px;
    transform: scaleY(1);
    transition: transform 0.2s;
}

.trend-ai-comment-toggle--open {
    transform: scaleY(-1);
}

.trend-ai-comment-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.trend-ai-comment-icon-img {
    width: 20px;
    height: 19.86px;
}

.trend-ai-comment-headline {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
}

.trend-ai-comment-body {
    padding: 0 24px 24px 24px;
}

.trend-ai-comment-text {
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    margin-top: 0;
}

.trend-ai-comment-text--flat {
    padding-top: 0;
}

/* ---- TrendSummary ---- */
.trend-summary {
    background: linear-gradient(to right, rgba(0, 167, 179, 0.7), rgba(166, 77, 255, 0.7));
    border-radius: 12px;
    padding: 32px 64px 64px 64px;
}

.trend-summary-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 45px;
}

.trend-summary-title__top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #2EEAFD, #A64DFF);
}

.trend-summary-title__bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #2EEAFD, #A64DFF);
}

.trend-summary-title__left {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: #2EEAFD;
}

.trend-summary-title__right {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 3px;
    background: #A152F8;
}

.trend-summary-title__text {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    line-height: calc(35 / 24);
    padding: 13px 20px 18px;
}

.trend-summary-text {
    font-size: 16px;
    line-height: calc(27 / 16);
    white-space: pre-wrap;
}

.trend-summary-text__strong {
    font-weight: 700;
}

/* ---- trend-section-title (shared) ---- */
.trend-section-title {
    font-size: 24px;
    font-weight: 700;
    line-height: calc(35 / 24);
    margin-bottom: 38px;
}

.trend-section-title--subsection {
    margin-top: 20px;
}

.trend-section-title--shoui-distribution {
    margin-top: 1px;
}

.trend-section-title--chusei {
    margin-bottom: 44px;
}

.trend-section-title--chusei-timeseries {
    margin-bottom: 30px;
}

.trend-section-title--keyword-map {
    margin-top: 41px;
    margin-bottom: 28px;
}

/* ---- KeywordRanking ---- */
.trend-section-title--keyword-ranking {
    margin-bottom: 23px;
}

.trend-keyword-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.trend-keyword-item {
    overflow: hidden;
}

.trend-keyword-item--interactive {
    cursor: pointer;
}

.trend-keyword-item-header {
    padding-top: 21px;
    padding-bottom: 20px;
}

.trend-keyword-item-header--first {
    padding-top: 0;
}

/* [REVERT] .trend-keyword-row { display: flex; align-items: center; } */
.trend-keyword-row {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 26px;
}

/* [REVERT] .trend-keyword-row-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; } */
.trend-keyword-row-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

/* [REVERT] .trend-keyword-row-meta { display: flex; flex: 1 1 auto; align-items: center; gap: 8px; min-width: 0; flex-wrap: nowrap; overflow: hidden; } */
.trend-keyword-row-meta {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

/* [REVERT] .trend-keyword-row-right { display: flex; align-items: center; flex-shrink: 0; } */
.trend-keyword-row-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.trend-keyword-rank {
    font-family: "avenir-next-lt-pro", "Avenir Next", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: calc(27 / 20);
    transform: translateY(1px);
}

.trend-keyword-name {
    font-size: 18px;
    font-weight: 700;
    line-height: calc(26 / 18);
    white-space: nowrap;
    flex-shrink: 0;
}

.trend-keyword-genre-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.trend-keyword-genre {
    font-size: 12px;
    line-height: calc(17 / 12);
}

.trend-keyword-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.trend-keyword-dot.trend-keyword--transformation,
.trend-keyword-shoui__val.trend-keyword--transformation {
    color: #d76069;
}

.trend-keyword-dot.trend-keyword--transformation {
    background: #ff5e7e;
}

.trend-keyword-dot.trend-keyword--forward,
.trend-keyword-shoui__val.trend-keyword--forward {
    color: #f7e663;
}

.trend-keyword-dot.trend-keyword--forward {
    background: #4ea1ff;
}

.trend-keyword-dot.trend-keyword--adjustment,
.trend-keyword-shoui__val.trend-keyword--adjustment {
    color: #72c66e;
}

.trend-keyword-dot.trend-keyword--adjustment {
    background: #34d399;
}

.trend-keyword-dot.trend-keyword--exploration,
.trend-keyword-shoui__val.trend-keyword--exploration {
    color: #4775dd;
}

.trend-keyword-dot.trend-keyword--exploration {
    background: #fbbf24;
}

.trend-keyword-dot.trend-keyword--maintenance,
.trend-keyword-shoui__val.trend-keyword--maintenance {
    color: #89989d;
}

.trend-keyword-dot.trend-keyword--maintenance {
    background: #a78bfa;
}

.trend-keyword-chusei__circle.trend-keyword--chu_sei,
.trend-keyword-chusei__val.trend-keyword--chu_sei {
    color: #00eeff;
}

.trend-keyword-chusei__circle.trend-keyword--chu_sei {
    background: linear-gradient(to right, #4db6ac, #41869c);
}

.trend-keyword-chusei__circle.trend-keyword--chu_fusei,
.trend-keyword-chusei__val.trend-keyword--chu_fusei {
    color: #ff7e00;
}

.trend-keyword-chusei__circle.trend-keyword--chu_fusei {
    background: linear-gradient(to right, #e69615, #cc6612);
}

.trend-keyword-chusei__circle.trend-keyword--fuchu_fusei,
.trend-keyword-chusei__val.trend-keyword--fuchu_fusei {
    color: #a64dff;
}

.trend-keyword-chusei__circle.trend-keyword--fuchu_fusei {
    background: linear-gradient(to right, #ba68c8, #935aad);
}

.trend-keyword-chusei__circle.trend-keyword--fuchu_sei,
.trend-keyword-chusei__val.trend-keyword--fuchu_sei {
    color: #4ea1ff;
}

.trend-keyword-chusei__circle.trend-keyword--fuchu_sei {
    background: linear-gradient(to right, #64b5f6, #5a8cdb);
}

/* [REVERT] .trend-keyword-toggle { width: 18px; height: 18px; flex-shrink: 0; transform: scaleY(1); transition: transform 0.2s; } */
.trend-keyword-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

/* [REVERT] .trend-keyword-toggle--open { transform: scaleY(-1); } */
.trend-keyword-toggle--open {
    transform: translateY(-50%) scaleY(-1);
}

/* [REVERT] .trend-keyword-change { font-size: 14px; font-weight: 700; line-height: calc(20 / 14); white-space: nowrap; margin-right: 24px; } */
.trend-keyword-change {
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
    white-space: nowrap;
    margin-right: 0;
}

.trend-keyword-change--positive {
    color: #00eeff;
}

.trend-keyword-change--negative {
    color: #a64dff;
}

.trend-keyword-expand {
    --trend-keyword-shoui-gap: 8px;
    --trend-keyword-shoui-col-width: 70px;
    --trend-keyword-chusei-gap: 16px;
    --trend-keyword-chusei-circle-size: 84px;
    padding-top: 0;
    padding-bottom: 26px;
    max-width: 384px;
    margin: 0 auto;
}

.trend-keyword-expand-wrap {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.18s ease;
}

.trend-keyword-expand-wrap--open {
    max-height: 800px;
    opacity: 1;
}

.trend-keyword-shoui {
    display: flex;
    justify-content: center;
    gap: var(--trend-keyword-shoui-gap);
}

.trend-keyword-shoui__col {
    width: var(--trend-keyword-shoui-col-width);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trend-keyword-shoui__bar-area {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: flex-end;
}

.trend-keyword-shoui__bar {
    width: 100%;
}

.trend-keyword-shoui__bar.trend-keyword--transformation {
    background: linear-gradient(to right, #ff6764, #cc5a6b);
}

.trend-keyword-shoui__bar.trend-keyword--forward {
    background: linear-gradient(to right, #f7e663, #deb459);
}

.trend-keyword-shoui__bar.trend-keyword--adjustment {
    background: linear-gradient(to right, #72c66e, #61ad6a);
}

.trend-keyword-shoui__bar.trend-keyword--exploration {
    background: linear-gradient(to right, #4775dd, #3f51c4);
}

.trend-keyword-shoui__bar.trend-keyword--maintenance {
    background: linear-gradient(to right, #89989d, #737d85);
}

.trend-keyword-shoui__label {
    font-size: 14px;
    font-weight: 700;
    line-height: calc(20 / 14);
    text-align: left;
    margin-top: 4px;
}

.trend-keyword-shoui__val {
    display: inline-flex;
    align-items: baseline;
    font-weight: 700;
    line-height: 1;
}

.trend-keyword-shoui__val-number {
    font-family: "avenir-next-lt-pro", "Avenir Next", sans-serif;
    font-size: 18px;
    letter-spacing: 0;
    line-height: calc(27 / 18);
}

.trend-keyword-shoui__val-unit {
    font-family: "avenir-next-lt-pro", "Avenir Next", sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    line-height: calc(27 / 14);
}

.trend-keyword-chusei {
    display: flex;
    justify-content: center;
    gap: var(--trend-keyword-chusei-gap);
    margin-top: 16px;
}

.trend-keyword-chusei__col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trend-keyword-chusei__circle-wrap {
    width: var(--trend-keyword-chusei-circle-size);
    height: var(--trend-keyword-chusei-circle-size);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend-keyword-chusei__circle-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.trend-keyword-chusei__circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 1;
}

.trend-keyword-chusei__circle-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.trend-keyword-chusei__circle-label {
    font-size: max(10px, calc(14 / 1920 * 100vw));
    font-weight: 700;
    line-height: calc(20 / 14);
    text-align: left;
}

.trend-keyword-chusei__val {
    display: inline-flex;
    align-items: baseline;
    font-weight: 700;
    margin-top: 2px;
    line-height: 1;
}

.trend-keyword-chusei__val-number {
    font-family: "avenir-next-lt-pro", "Avenir Next", sans-serif;
    font-size: 18px;
    letter-spacing: 0;
    line-height: calc(27 / 18);
    text-align: center;
}

.trend-keyword-chusei__val-unit {
    font-family: "avenir-next-lt-pro", "Avenir Next", sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    line-height: calc(27 / 14);
}

/* ---- LineChart ---- */
.trend-line-chart {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.trend-line-chart__canvas {
    position: relative;
    width: 100%;
    margin-left: 20px;
    overflow: visible;
}

.trend-line-chart__grid-row {
    position: absolute;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
}

.trend-line-chart__grid-line {
    position: absolute;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.trend-line-chart__grid-line--zero {
    background: rgba(255, 255, 255, 0.5);
}

.trend-line-chart__y-label {
    position: absolute;
    left: 0;
    width: 36px;
    transform: translateY(-50%);
    font-family: "avenir-next-lt-pro", "Avenir Next", sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-align: right;
}

.trend-line-chart__series-segment {
    position: absolute;
    transform-origin: left center;
    height: 2px;
    border-radius: 2px;
    pointer-events: none;
}

.trend-line-chart__point {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    transition: width 0.15s, height 0.15s;
}

.trend-line-chart__x-label {
    position: absolute;
    transform: translateX(-50%);
    font-family: "avenir-next-lt-pro", "Avenir Next", "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.trend-line-chart__tooltip-wrap {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 50;
    pointer-events: none;
}

.trend-line-chart__tooltip {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    font-size: 12px;
    line-height: calc(16 / 12);
}

.trend-line-chart__tooltip-title {
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.trend-line-chart__tooltip-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-block: 2px;
}

.trend-line-chart__tooltip-swatch {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.trend-line-chart__tooltip-swatch--transformation {
    background: #ff5e7e;
}

.trend-line-chart__tooltip-swatch--forward {
    background: #4ea1ff;
}

.trend-line-chart__tooltip-swatch--adjustment {
    background: #34d399;
}

.trend-line-chart__tooltip-swatch--exploration {
    background: #fbbf24;
}

.trend-line-chart__tooltip-swatch--maintenance {
    background: #a78bfa;
}

.trend-line-chart__tooltip-label {
    color: rgba(255, 255, 255, 0.6);
}

.trend-line-chart__tooltip-value {}

.trend-line-chart__hover-hit {
    position: absolute;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.trend-line-chart__hover-line {
    position: absolute;
    top: 0;
    width: 1px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    z-index: 2;
}

.trend-line-chart__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 17px;
    margin-bottom: 38px;
}

.trend-line-chart__legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trend-line-chart__legend-line {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    flex-shrink: 0;
}

.trend-line-chart__legend-line--transformation {
    background: #ff5e7e;
}

.trend-line-chart__legend-line--forward {
    background: #4ea1ff;
}

.trend-line-chart__legend-line--adjustment {
    background: #34d399;
}

.trend-line-chart__legend-line--exploration {
    background: #fbbf24;
}

.trend-line-chart__legend-line--maintenance {
    background: #a78bfa;
}

.trend-line-chart__legend-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: calc(24 / 16);
}

/* ===== ADMIN ===== */

/* ================================================
   ─ レスポンシブ末尾集約（主軸のみ） ─
   副軸 BP (1540 / 1460 / 1380 / 1340 / 1320 / 1222 / 1182 / 1080 / 922 / 640 等) は
   各セクション内に直接書く（案 B）
   ================================================ */

/* ===== SP 768 - Trend 専用（globals 由来） ===== */
/* NOTE: 640 / 767 ブロックより前に置く。globals.css の cascade（768 → 640 の順）を再現するため */
@media (max-width: 768px) {

    /* ----- MAIN: TREND ----- */
    /* ---- TrendFilters ---- */
    .trend-filters {
        gap: 17px;
    }

    .trend-filter-group {
        flex: 0 0 calc((100% - 17px) / 2);
        min-width: calc((100% - 17px) / 2);
        max-width: calc((100% - 17px) / 2);
        gap: 9px;
    }

    .trend-filter-group:nth-child(1) {
        order: 2;
    }

    .trend-filter-group:nth-child(2) {
        order: 1;
        flex-basis: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .trend-filter-group:nth-child(3) {
        order: 3;
    }

    .trend-filter-group:nth-child(4) {
        order: 4;
    }

    .trend-filter-group:nth-child(5) {
        order: 5;
    }

    .trend-filter-group:has(.trend-filter-control--wide) {
        min-width: calc((100% - 17px) / 2);
        max-width: calc((100% - 17px) / 2);
    }

    .trend-filter-group:nth-child(2):has(.trend-filter-control--wide) {
        min-width: 100%;
        max-width: 100%;
    }

    .trend-filter-label {
        font-size: 14px;
        line-height: calc(20 / 14);
    }

    .trend-filter-control {
        min-width: 0;
        max-width: none;
        height: 48px;
    }

    .trend-filter-control .prefecture-select__trigger--auth,
    .trend-filter-control .prefecture-select__trigger--auth-error {
        height: 48px;
        padding: 13px 20px;
    }

    .trend-filter-control .prefecture-select__trigger--auth::after,
    .trend-filter-control .prefecture-select__trigger--auth-error::after {
        right: 20px;
    }

    .trend-filter-disabled {
        height: 48px;
        padding: 13px 20px;
    }

    .trend-filter-disabled::after {
        right: 20px;
    }

    /* ---- BubbleChart ---- */
    .trend-bubble-chart {
        margin-bottom: 40px;
    }

    .trend-bubble-chart__bubble-label {
        font-size: 11px;
        line-height: calc(20 / 11);
    }

    /* ---- ChuseiCardRow ---- */
    .chusei-card-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        padding: 0 20px;
        justify-items: center;
        gap: 24px 20px;
        margin-bottom: 29px;
    }

    .chusei-card-row__item:first-child {
        margin-left: 0;
    }

    .chusei-card-row__circle-wrap {
        width: 137px;
        height: 137px;
    }

    .chusei-card-row__circle-label {
        font-size: 16px;
        line-height: calc(24 / 16);
    }

    .chusei-card-row__circle-desc {
        font-size: 11px;
        line-height: calc(16 / 11);
        margin-top: 0;
    }

    .chusei-card-row__percent {
        margin-top: 6px;
    }

    .chusei-card-row__percent-value {
        font-size: 22px;
    }

    .chusei-card-row__percent-unit {
        font-size: 16px;
    }

    .chusei-card-row__count {
        font-family: "avenir-next-lt-pro", "Avenir Next", sans-serif;
        font-weight: 800;
        letter-spacing: 0;
        font-size: 13px;
        line-height: calc(20 / 13);
        margin-top: -4px;
    }

    /* ---- TimeHeatmap ---- */
    .trend-heatmap__period-label {
        font-size: 12px;
        line-height: calc(17 / 12);
    }

    .trend-heatmap__col-label {
        font-size: 12px;
        line-height: calc(17 / 12);
    }

    .trend-heatmap__col-desc {
        font-size: 8px;
        line-height: calc(11 / 8);
    }

    .trend-heatmap__col-dot {
        width: 12px;
        height: 12px;
        margin-bottom: 3px;
    }

    .trend-heatmap__col-header {
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }

    .trend-heatmap {
        --trend-heatmap-period-width: clamp(55px, calc(65 / 414 * 100vw), 120.65px);
        --trend-heatmap-column-gap: 2px;
        --trend-heatmap-row-gap: 2px;
    }

    .trend-heatmap__col-header:not(.trend-heatmap__col-header--first) {
        padding-left: 0;
    }

    .trend-heatmap__header,
    .trend-heatmap__row {
        grid-template-columns: var(--trend-heatmap-period-width) repeat(4, 1fr);
        justify-content: center;
    }

    .trend-heatmap__period-cell {
        padding-top: 0;
    }

    .trend-heatmap__latest-badge {
        position: static;
        margin-left: 0;
        width: 40px;
        height: 18px;
        font-size: 11px;
    }

    .trend-heatmap__period-stack {
        flex-direction: column-reverse;
        gap: 4px;
    }

    .trend-heatmap__cell {
        width: 100%;
        height: 54px;
        font-size: 22px;
        line-height: calc(30 / 22);
    }

    .trend-heatmap__cell-unit {
        font-size: 16px;
    }

    .trend-heatmap {
        margin-bottom: 24px;
        min-width: 0;
        width: 100%;
        margin-left: 0;
    }

    .trend-heatmap-scroll {
        padding: 0;
    }

    /* ---- ShouiChuseiMatrix ---- */
    .report-heatmap {
        --trend-heatmap-period-width: clamp(55px, calc(65 / 414 * 100vw), 120.65px);
        --trend-heatmap-column-gap: 2px;
        --trend-heatmap-row-gap: 2px;
    }

    .report-heatmap {
        margin-bottom: 24px;
        min-width: 0;
        width: 100%;
        margin-left: 0;
    }

    .report-heatmap-scroll {
        padding: 0;
    }

    /* ---- ShouiBarChart ---- */
    .shoui-bar-chart__grid {
        gap: 8px;
    }

    .shoui-bar-chart {
        padding: 0 8px;
    }

    .shoui-bar-chart__label {
        margin-top: 7px;
        line-height: calc(24 / 16);
        text-align: left;
    }

    .shoui-bar-chart__value {
        margin-top: 0;
    }

    .shoui-bar-chart__value-number {
        font-size: 22px;
        line-height: calc(30 / 22);
    }

    .shoui-bar-chart__value-unit {
        font-size: 16px;
        line-height: calc(30 / 16);
    }

    /* ---- TrendAiComment ---- */
    .trend-ai-comment-body {
        padding: 0 20px 20px;
    }

    .trend-ai-comment-body .trend-ai-comment-text {
        margin-top: 12px;
        font-size: 14px;
        letter-spacing: -0.02em;
        line-height: calc(22.1 / 13);
    }

    .trend-ai-comment-header {
        gap: 12px;
    }

    .trend-ai-comment-toggle {
        top: 50%;
        right: 20px;
        transform: translateY(-50%) scaleY(1);
    }

    .trend-ai-comment-toggle--open {
        transform: translateY(-50%) scaleY(-1);
    }

    .trend-ai-comment-icon-img {
        width: 16px;
        height: 16px;
    }

    /* ---- TrendSummary ---- */
    .trend-summary {
        padding: 32px 20px 42px;
    }

    .trend-summary-title__text {
        font-size: 20px;
        line-height: calc(30 / 20);
        padding-top: 7px;
        padding-bottom: 13px;
    }

    .trend-summary-text {
        margin-top: 36px;
        font-size: 14px;
        line-height: calc(24 / 14);
    }

    /* ---- KeywordRanking ---- */
    .trend-section-title {
        font-size: 20px;
        line-height: calc(29 / 20);
    }

    .trend-section-title--chusei-timeseries {
        margin-top: 26px;
        margin-bottom: 36px;
    }

    .trend-section-title--keyword-map {
        margin-top: 33px;
        margin-bottom: 25px;
    }

    .trend-section-title--keyword-ranking {
        margin-bottom: 13px;
    }

    .trend-keyword-item-header {
        padding-top: 15px;
        padding-bottom: 14px;
    }

    .trend-keyword-rank {
        font-size: 20px;
        line-height: calc(27 / 20);
        transform: none;
    }

    .trend-keyword-row-left {
        gap: 6px;
        align-items: center;
    }

    .trend-keyword-row-meta {
        gap: 4px;
    }

    .trend-keyword-row-right {
        gap: 12px;
    }

    .trend-keyword-name {
        font-size: 16px;
        line-height: calc(24 / 16);
    }


    .trend-keyword-change {
        font-size: 12px;
        line-height: calc(17 / 12);
    }

    .trend-keyword-toggle {
        width: 14px;
        height: 14px;
    }

    .trend-keyword-expand {
        padding-top: 13px;
    }

    .trend-keyword-shoui {
        gap: var(--trend-keyword-shoui-gap, 6px);
        justify-content: center;
    }

    .trend-keyword-shoui__bar-area {
        height: 120px;
    }

    .trend-keyword-shoui__label {
        font-size: 16px;
        line-height: calc(24 / 16);
        margin-top: 6px;
    }

    .trend-keyword-chusei {
        gap: var(--trend-keyword-chusei-gap, 12px);
        justify-content: center;
    }

    .trend-keyword-chusei__circle-label {
        font-size: 12px;
        line-height: calc(17 / 12);
    }

    .trend-keyword-chusei__val-number {
        font-size: 18px;
        line-height: calc(27 / 18);
    }

    .trend-keyword-chusei__val-unit {
        font-size: 14px;
        line-height: calc(27 / 14);
    }

    /* ---- LineChart ---- */
    .trend-line-chart {
        width: calc(100% + 9px);
        max-width: none;
        margin-left: -10px;
    }

    .trend-line-chart__canvas {
        margin-left: 0;
    }

    .trend-line-chart__x-label {
        font-size: 12px;
        line-height: calc(17 / 12);
    }

    .trend-line-chart__y-label {
        font-size: 13px;
        line-height: calc(18 / 13);
    }

    .trend-line-chart__legend {
        width: 100%;
        max-width: 100%;
        margin-left: 10px;
        flex-wrap: nowrap;
        gap: 12px;
        justify-content: center;
        margin-bottom: 37px;
    }

    .trend-line-chart__legend-item {
        flex: 0 1 auto;
        gap: 6px;
    }

    .trend-line-chart__legend-line {
        width: 16px;
    }

}

/* ===== SP 640 - レスポンシブ追加調整 ===== */
/* NOTE: 767 ブロックより前に置くこと。globals.css の元 cascade（640 を 767 が上書きする）を再現するため */
@media (max-width: 640px) {

    /* ----- MAIN ----- */
    .report-status-title {
        font-size: 18px;
        line-height: calc(26 / 18);
    }

    .report-triangle-percent-unit {
        font-size: 14px;
        line-height: calc(20 / 14);
    }

    .report-summary-title__text {
        font-size: 20px;
        line-height: calc(30 / 20);
        padding-top: 7px;
        padding-bottom: 13px;
    }

    .report-summary-text {
        margin-top: 28px;
        font-size: 14px;
        line-height: calc(24 / 14);
    }

    .report-section-title {
        font-size: 20px;
        line-height: calc(29 / 20);
    }

    .report-card-title {
        font-size: 20px;
        line-height: calc(29 / 20);
    }

    .report-shoui-chart__grid {
        gap: 8px;
    }

    .report-segment-chart__legend {
        gap: 8px;
    }

    .report-shoui-chart__value {
        font-size: inherit;
        line-height: 1;
    }

    .report-shoui-chart__value-number {
        font-size: 18px;
        line-height: calc(22 / 18);
    }

    .report-shoui-chart__value-unit {
        font-size: 12px;
        line-height: calc(18 / 12);
    }

    /* ---- GenreShouiMatrix ---- */
    .report-mini-chart-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .report-genre-row-header {
        gap: 8px;
        margin-bottom: 6px;
    }

    .report-genre-count {
        font-size: 10px;
        line-height: calc(14 / 10);
    }

    .report-genre-shoui .trend-keyword-shoui__bar-area {
        height: 120px;
    }

    .report-genre-shoui .trend-keyword-shoui__label {
        margin-top: 6px;
        font-size: 16px;
        line-height: calc(24 / 16);
    }

    .report-genre-shoui .trend-keyword-shoui__val-number {
        font-size: 20px;
        line-height: calc(27 / 20);
    }

    .report-genre-shoui .trend-keyword-shoui__val-unit {
        font-size: 16px;
        line-height: calc(27 / 16);
    }

    /* ---- TimeflowChart ---- */
    .report-timeflow-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .report-timeflow-grid__col {
        gap: 12px;
    }

    .report-timeflow-header {
        gap: 6px;
    }

    .report-timeflow-label {
        font-size: 16px;
        line-height: calc(24 / 16);
    }

    .report-timeflow-badges {
        gap: 4px;
    }

    .report-timeflow-shoui .trend-keyword-shoui__bar-area {
        height: 120px;
    }

    .report-timeflow-shoui .trend-keyword-shoui__label {
        margin-top: 6px;
        font-size: 16px;
        line-height: calc(24 / 16);
    }

    .report-timeflow-shoui .trend-keyword-shoui__val-number {
        font-size: 20px;
        line-height: calc(27 / 20);
    }

    .report-timeflow-shoui .trend-keyword-shoui__val-unit {
        font-size: 16px;
        line-height: calc(27 / 16);
    }

    /* ---- ShouiChuseiMatrix ---- */
    .report-shoui-row-marker {
        width: 6px;
        height: 6px;
    }

    .report-shoui-matrix__label {
        gap: 4px;
        font-size: 8px;
        line-height: calc(11 / 8);
    }

    /* ---- GenreChuseiMatrix ---- */
    .report-genre-chusei-matrix__total-header,
    .report-genre-chusei-matrix__total-cell {
        font-size: 8px;
        line-height: calc(11 / 8);
    }

    /* ---- TrendSummary ---- */
    .trend-summary {
        padding: 16px;
    }
}

/* ===== SP (max-width: 767px) ===== */
@media (max-width: 767px) {

    .sidebar-account-button__info {
        display: flex;
    }

    .sidebar-history {
        max-height: none;
        overflow: visible;
        opacity: 1;
    }

    .auth-confirm-plan__title {
        font-size: 16px;
        font-weight: 700;
        line-height: calc(24 / 16);
        text-align: left;
        color: var(--color-white);
    }

    .auth-plan-card__name {
        font-size: 20px;
        line-height: calc(29 / 20);
    }


    .auth-container {
        max-width: 374px;
    }

    .onboarding-slide__title {
        font-size: 24px;
    }

    .prefecture-select__trigger {
        backdrop-filter: var(--filter-glass-soft);
        -webkit-backdrop-filter: var(--filter-glass-soft);
        padding-left: 20px;
        padding-right: 20px;
        font-size: 14px;
        line-height: calc(20 / 14);
        text-align: left;
    }

    .auth-date-picker__trigger {
        backdrop-filter: var(--filter-glass-soft);
        -webkit-backdrop-filter: var(--filter-glass-soft);
        padding-left: 20px;
        padding-right: 20px;
        font-size: 14px;
        line-height: calc(20 / 14);
        text-align: left;
    }

    /* ----- COMMON ----- */
    .toast {
        width: 334px;
        min-height: 46px;
        padding-inline: 14px;
        padding-block: 10px;
    }

    .toast__message {
        font-size: 14px;
        line-height: calc(20 / 14);
    }

    .toast-container {
        top: 26px;
        left: 50%;
        transform: translateX(-50%);
    }

    .toast__content {
        gap: 8px;
    }

    .toast__check-icon {
        width: 14px;
        height: 11.05px;
    }

    .toast__close {
        width: 18.38px;
        height: 18.38px;
        margin-left: 12px;
    }

    .toast__close-icon {
        width: 18.38px;
        height: 18.38px;
    }

    .error-content__code {
        font-size: 80px;
    }

    .error-content__title {
        font-size: 20px;
        line-height: calc(28 / 20);
    }

    .search-page-shell {
        padding: 40px 20px 48px;
    }

    .search-page-content {
        width: 100%;
    }

    .search-page-title {
        gap: 8px;
        margin-bottom: 29px;
    }

    .search-page-title-text {
        font-size: 28px;
        line-height: calc(40 / 28);
    }

    .search-page-title-icon {
        width: 22.86px;
        height: 22.86px;
    }

    .search-filter-bar {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 40px;
    }

    .search-filter-item {
        gap: 9px;
    }

    .search-filter-label {
        font-size: 14px;
        line-height: calc(20 / 14);
    }


    .search-filter-control .prefecture-select__trigger--auth,
    .search-filter-control .prefecture-select__trigger--auth-error {
        height: 48px;
        padding: 14px 15px;
        font-size: 14px;
        line-height: calc(20 / 14);
        text-align: left;
    }

    .search-filter-input {
        height: 48px;
        padding: 16px 48px 16px 24px;
        font-size: 14px;
        line-height: calc(20 / 14);
        text-align: left;
    }

    .search-filter-clear {
        right: 16px;
    }

    .search-filter-control .prefecture-select__trigger--auth::after,
    .search-filter-control .prefecture-select__trigger--auth-error::after {
        right: 24.4px;
    }

    .search-filter-input::placeholder {
        font-size: 16px;
        line-height: calc(24 / 16);
        text-align: left;
        color: var(--color-white);
        opacity: 0.5;
    }

    .search-card {
        width: 100%;
        min-height: 106px;
        padding: 26px 20px 32px;
    }

    .search-card-header {
        gap: 12px;
        margin-bottom: 18px;
    }

    .search-card-title {
        font-size: 20px;
        line-height: calc(29 / 20);
    }

    .search-card-description {
        font-size: 14px;
        line-height: calc(23.8 / 14);
    }

    .search-status-badge {
        width: 64px;
        height: 24px;
        padding: 0 8px;
        font-size: 12px;
        line-height: calc(17 / 12);
    }

    .search-card-list {
        gap: 12px;
    }

    .search-card--empty {
        min-height: 160px;
        border-radius: 12px;
    }

    .search-empty-text {
        font-size: 16px;
        line-height: calc(20 / 16);
    }

    .search-load-more-wrap {
        margin-top: 14px;
    }

    .search-load-more-frame {
        width: 100%;
        height: 56px;
        border-radius: 8px;
    }

    .search-load-more {
        font-size: 16px;
        line-height: calc(24 / 16);
    }

    .search-load-more-content {
        gap: 12px;
    }

    .search-load-more-icon {
        width: 20px;
        height: 20px;
    }

    .consultation-shell--new {
        --new-h: calc(100dvh - 48px);
        justify-content: center;
        padding: 0 20px clamp(8px, calc(var(--new-h) * 0.015), 20px);
    }

    .consultation-shell__intro {
        max-width: none;
    }

    .consultation-shell__title {
        margin-top: clamp(8px, calc(var(--new-h) * 0.03), 30px);
        margin-bottom: clamp(4px, calc(var(--new-h) * 0.01), 13px);
        font-size: 28px;
        line-height: calc(42 / 28);
    }

    .consultation-shell__title-break {
        display: inline;
    }

    .consultation-shell__lead {
        margin-bottom: clamp(8px, calc(var(--new-h) * 0.03), 29px);
        font-size: 14px;
        line-height: calc(22 / 14);
    }

    .consultation-shell__messages,
    .consultation-shell__header {
        min-height: 40px;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 10px 20px 0;
    }

    .consultation-shell__messages {
        padding-top: 24px;
        padding-inline: 20px;
    }

    .consultation-shell__messages-inner {
        padding-bottom: 36px;
    }

    .consultation-shell__header-title {
        width: 100%;
        padding-right: 44px;
        overflow: hidden;
        font-size: 16px;
        font-weight: var(--font-weight-bold);
        line-height: calc(24 / 16);
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--color-white);
    }

    .consultation-shell__menu-frame {
        top: 8px;
        right: 16px;
        width: 32px;
        height: 32px;
        border-width: 2px;
    }

    .consultation-shell__menu-inner {
        width: 28px;
        height: 28px;
    }

    .consultation-new-guide {
        margin-bottom: clamp(12px, calc(var(--new-h) * 0.04), 46px);
    }

    .consultation-new-guide-item {
        padding: clamp(3px, calc(var(--new-h) * 0.008), 7px) 16px clamp(3px, calc(var(--new-h) * 0.008), 8px);
    }

    .consultation-new-guide-toggle {
        font-size: 14px;
    }

    .consultation-new-guide-text {
        font-size: 14px;
        line-height: calc(22 / 14);
    }

    .consultation-feedback {
        padding: 16px 20px;
    }

    .consultation-feedback__actions {
        flex-wrap: wrap;
    }

    .consultation-feedback__button--deepening {
        margin-left: 0;
    }

    .consultation-input-wrap {
        max-width: none;
    }

    .consultation-input-wrap--detail {
        width: 100%;
        padding-inline: 20px;
        padding-bottom: 20px;
    }

    .consultation-title-menu__panel {
        min-width: 155px;
        margin-top: 10px;
        padding: 20px 18px 18px;
    }

    .consultation-title-menu__list {
        gap: 18px;
    }

    .consultation-title-menu__item {
        gap: 11px;
        font-size: 14px;
        line-height: calc(20 / 14);
    }

    .consultation-title-menu__item-icon-wrap {
        width: 18px;
    }

    .consultation-title-menu__item-icon--rename {
        width: 18px;
        height: 18px;
    }

    .consultation-title-menu__item-icon--delete {
        width: 16px;
        height: 21px;
    }

    .consultation-message__bubble--user {
        max-width: 314px;
    }

    .consultation-message__bubble--assistant {
        max-width: 354px;
    }

    .consultation-message__bubble {
        padding: 20px;
    }

    .consultation-message__text {
        font-size: 14px;
        line-height: 23.8px;
        text-align: left;
    }

    .consultation-message--analysis .consultation-message__row {
        margin-bottom: 32px;
    }

    .consultation-message__bubble--result {
        width: 121px;
        height: 60px;
        gap: 20px;
        background: transparent;
        background-color: rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
    }

    .consultation-message__bubble--result .consultation-message__logo {
        width: 32px;
        height: 13.27px;
        margin-top: 0;
    }

    .consultation-message__bubble--result .consultation-message__text {
        font-size: 14px;
        line-height: calc(20 / 14);
        text-align: left;
    }

    .consultation-line-nature__explanation {
        gap: 17px;
        padding: 24px 23px 20px 22px;
    }

    .consultation-line-nature__row {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .consultation-line-nature__badge {
        width: 56px;
        height: 20px;
        font-size: 12px;
        line-height: calc(17 / 12);
        text-align: left;
    }

    .consultation-line-nature__text,
    .consultation-line-nature__plain-text {
        font-size: 14px;
        line-height: calc(23.8 / 14);
        text-align: left;
    }

    .consultation-input__field--compact {
        width: 100%;
        max-width: 100%;
        min-height: 84px;
        border-radius: 12px;
        border: 2px solid #fff;
        background: var(--color-bubble-bg);
        backdrop-filter: var(--filter-glass-bubble);
        -webkit-backdrop-filter: var(--filter-glass-bubble);
    }

    .consultation-input__textarea--compact {
        padding: 18px 56px 12px 18px;
    }

    .consultation-input__textarea--compact::placeholder {
        font-family: var(--font-noto-sans-jp, 'Noto Sans JP'), system-ui, sans-serif;
    }

    .consultation-input__submit--compact {
        right: 6px;
        bottom: 6px;
        width: 32px;
        height: 32px;
    }

    .consultation-analysis__inner {
        padding: 32px 19px 48px 21px;
    }

    .consultation-analysis__section-bar {
        width: 80px;
        height: 4px;
        margin-bottom: 2px;
    }

    .consultation-analysis__section-title {
        font-size: 20px;
        font-weight: 700;
        line-height: calc(29 / 20);
        text-align: left;
    }

    .consultation-analysis__section-heading {
        margin-bottom: 14px;
    }

    .consultation-analysis__subheading {
        margin-bottom: 3px;
        font-size: 16px;
        font-weight: 700;
        line-height: calc(24 / 16);
        text-align: left;
    }

    .consultation-analysis__meta-text {
        margin-bottom: 14px;
        font-size: 14px;
        line-height: calc(20 / 14);
        text-align: left;
        opacity: 0.5;
    }

    .consultation-analysis__panel {
        border-radius: 4px;
    }

    .consultation-analysis__sentence-group.consultation-analysis__body-text {
        padding: 20px;
    }

    .consultation-analysis__sentence,
    .consultation-analysis__body-text {
        font-size: 14px;
        line-height: calc(23.8 / 14);
        text-align: left;
        color: #fff;
    }

    .consultation-analysis__stack>div+div {
        margin-top: 19px;
    }

    .consultation-analysis__subheading+.consultation-analysis__panel {
        margin-top: 20px;
    }

    .consultation-analysis__section--line-nature {
        margin-top: 48px !important;
    }

    .consultation-analysis__section--line-nature .consultation-analysis__section-bar {
        width: 100px;
    }

    .consultation-analysis__section--line-nature .consultation-analysis__section-heading {
        margin-bottom: 15px;
    }

    .consultation-analysis__intro {
        margin-bottom: 13px;
        font-size: 14px;
        line-height: calc(23.8 / 14);
        text-align: left;
    }

    .consultation-analysis__disclaimer {
        font-size: 12px;
        line-height: calc(20.4 / 12);
        text-align: left;
    }

    .consultation-analysis__action-index {
        width: 36px;
        height: 22px;
        border-radius: 4px 0 4px 0;
        background: linear-gradient(180deg, #0ef 0%, #a64dff 100%);
    }

    .consultation-analysis__action-index-text {
        font-family: "avenir-next-lt-pro", "Avenir Next", "Avenir", system-ui, sans-serif;
        font-size: 16px;
        font-weight: 800;
        letter-spacing: 0;
        line-height: calc(22 / 16);
        text-align: center;
    }

    .consultation-analysis__action-body {
        padding: 24px 20px 24px 50px;
    }

    .onboarding-modal__background-image {
        width: 600px;
    }

    .onboarding-modal__content {
        max-width: 32rem;
        padding: 0 24px;
    }

    .onboarding-modal__slides {
        margin-bottom: 32px;
    }

    .onboarding-modal__button {
        font-size: 14px;
        line-height: calc(20 / 14);
        padding: 16px 0;
    }

    .onboarding-slide__logo {
        height: 40px;
        margin-bottom: 40px;
    }

    .onboarding-slide__title--lead {
        margin-bottom: 24px;
    }

    .onboarding-slide__title--section {
        margin-bottom: 16px;
    }

    .onboarding-slide__title--final {
        margin-bottom: 40px;
    }

    .onboarding-slide__description {
        font-size: 16px;
    }

    .onboarding-slide__description--section {
        margin-bottom: 32px;
    }

    .onboarding-slide__desktop-break {
        display: inline;
    }

    .onboarding-slide__image-frame--spaced {
        margin-bottom: 24px;
    }

    .onboarding-slide__check-list {
        max-width: 320px;
        margin-bottom: 40px;
    }

    .onboarding-slide__check-list>.onboarding-check-item+.onboarding-check-item {
        margin-top: 24px;
    }

    .onboarding-slide__note {
        font-size: 14px;
    }

    .onboarding-check-item__icon-wrap {
        width: 24px;
        height: 24px;
    }

    .onboarding-check-item__icon {
        width: 12px;
        height: 12px;
    }

    .onboarding-check-item__text {
        font-size: 16px;
        line-height: calc(24 / 16);
    }

    .info-modal-overlay {
        align-items: flex-start;
        padding: 59px 20px 46px;
    }

    .info-modal-body {
        width: 100%;
        max-height: calc(100vh - 105px);
    }

    .info-modal-header {
        padding: 15px 20px;
    }

    .info-modal-title {
        font-size: 16px;
        line-height: calc(24 / 16);
    }

    .info-modal-close-btn {
        top: 12px;
        right: 12px;
    }

    .info-modal-content {
        padding: 24px 20px 20px;
    }

    .info-modal-close-btn-image {
        width: 18.38px;
        height: 18.38px;
    }

    .main-bg {
        object-position: 30% center;
    }

    .report-info__intro-text {
        font-size: 12px;
        line-height: 20.4px;
        letter-spacing: -0.01em;
        text-align: left;
        color: #002a6a;
    }

    .report-info__intro {
        margin-bottom: 0;
    }

    .report-info__detail-row--chusei {
        font-size: 12px;
        line-height: 20.4px;
        letter-spacing: -0.01em;
    }

    .report-info-item__marker {
        width: 12px;
        height: 12px;
    }

    .report-info-item__header {
        gap: 4px;
        margin-bottom: 6px;
    }

    .report-info-item__title {
        font-weight: 700;
        font-size: 14px;
        line-height: calc(20 / 14);
        text-align: left;
        color: #002a6a;
    }

    .report-info-item__description {
        padding: 0 16px;
        font-size: 12px;
        line-height: 20.4px;
        text-align: left;
        color: #002a6a;
    }

    .report-info-item__toggle {
        gap: 4px;
        margin-top: 8px;
        padding: 0 16px;
        font-size: 10px;
        line-height: calc(15 / 10);
        text-align: left;
        color: #002a6a;
    }

    .report-info-item__panel {
        margin-top: 12px;
        margin-left: 16px;
    }

    .report-info-item__toggle-icon {
        width: 14px;
        height: 14px;
    }

    .report-info-item__inner {
        padding: 16px 0;
    }

    .report-info-item__hexagrams {
        font-weight: 700;
        font-size: 12px;
        letter-spacing: -0.01em;
        line-height: 20.4px;
        text-align: left;
        color: #002a6a;
    }

    .report-info__section-title--chusei {
        margin-top: 12px;
        padding: 0;
        font-size: 14px;
        line-height: calc(20 / 14);
    }

    .report-info-item__list--chusei {
        padding: 0 16px;
    }

    .report-info-item__list-item--chusei {
        font-size: 12px;
        line-height: 20.4px;
        text-align: left;
        color: #002a6a;
    }

    .plan-promotion-content {
        padding: 40px 26px 48px;
    }

    .plan-promotion-close {
        top: 12px;
        right: 12px;
    }

    .plan-promotion-close-image {
        width: 18.38px;
        height: 18.38px;
    }

    .plan-promotion-title {
        font-size: 20px;
        line-height: 35px;
        margin-bottom: 29px;
    }

    .plan-promotion-description {
        line-height: 27.2px;
        letter-spacing: -0.05em;
        width: fit-content;
        max-width: 100%;
        margin-inline: auto;
        text-align: left;
        margin-bottom: 28px;
    }

    .plan-promotion-btn {
        width: 100%;
        max-width: 400px;
        height: 56px;
        margin-inline: auto;
        display: flex;
    }

    .settings-sub-modal-body {
        margin-inline: 20px;
        max-width: 374px;
    }

    .settings-sub-modal-inner {
        padding: 0 20px 40px;
    }

    .settings-sub-modal-title {
        padding: 17px 0 15px;
        font-size: 20px;
        line-height: calc(29 / 20);
    }

    .settings-sub-modal-description {
        font-size: 12px;
        line-height: calc(17 / 12);
        text-align: left;
        color: #002a6a;
        margin-bottom: 12px;
    }

    .settings-sub-modal-infobox {
        margin-bottom: 20px;
        padding: 10px 20px 14px;
    }

    .settings-sub-modal-infobox-label {
        font-size: 12px;
        font-weight: 700;
        line-height: calc(17 / 12);
        text-align: left;
        color: #002a6a;
        margin-bottom: 6px;
    }

    .settings-sub-modal-infobox-value {
        font-size: 12px;
        line-height: calc(17 / 12);
        text-align: left;
        color: #002a6a;
    }

    .settings-sub-modal-input {
        padding: 13px 20px 15px;
        font-size: 14px;
        line-height: calc(20 / 14);
        text-align: left;
        color: #002a6a;
        opacity: 1;
    }

    .settings-sub-modal-input::placeholder {
        font-size: 14px;
        line-height: calc(20 / 14);
        text-align: left;
        color: #002a6a;
        opacity: 0.4;
    }

    .settings-sub-modal-inner .prefecture-select__trigger--auth,
    .settings-sub-modal-inner .prefecture-select__trigger--auth-error {
        padding: 13px 20px 15px;
    }

    .settings-sub-modal-inner .prefecture-select__trigger--auth span,
    .settings-sub-modal-inner .prefecture-select__trigger--auth-error span {
        font-size: 14px;
        line-height: calc(20 / 14);
    }

    .settings-sub-modal-helper {
        margin-top: 10px;
        font-size: 12px;
        font-weight: 500;
        line-height: calc(17 / 12);
        text-align: left;
        color: #002a6a;
    }

    .settings-sub-modal-btn--primary {
        min-height: 48px;
        padding-top: 12px;
        padding-bottom: 16px;
        font-size: 14px;
        font-weight: 700;
        line-height: calc(20 / 14);
    }

    .settings-sub-modal-divider {
        margin-inline: -20px;
        margin-bottom: 24px;
    }

    .settings-sub-modal-btn-pair {
        flex-direction: row;
    }

    .settings-sub-modal-btn-pair,
    .rename-modal-btn-pair {
        margin-top: 16px;
    }

    .delete-confirm-warning {
        margin-top: 24px;
    }

    .change-email-modal__submit,
    .change-password-modal__submit {
        margin-top: 16px;
    }

    .delete-account-modal__fields {
        gap: 10px;
    }

    .delete-account-modal .settings-sub-modal-btn-pair {
        flex-direction: column-reverse;
        gap: 10px;
        margin-top: 16px;
    }

    .delete-account-modal .settings-sub-modal-btn--danger,
    .delete-account-modal .settings-sub-modal-btn--outline {
        width: 100%;
    }

    .delete-account-modal__warning,
    .delete-account-modal__notice {
        padding: 12px;
    }

    .delete-account-modal__warning-title {
        font-size: 14px;
        line-height: calc(28.8 / 14);
    }

    .delete-account-modal__reason-input {
        min-height: 72px;
    }

    .settings-sub-modal__label-desktop {
        display: none;
    }

    .settings-sub-modal__label-mobile {
        display: inline;
    }

    .settings-sub-modal__close {
        top: 15px;
        right: 17px;
        font-size: 28px;
    }

    /* ----- AUTH ----- */
    .auth-layout__main {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .auth-layout__frame {
        --auth-h: 100dvh;
        min-height: auto;
        padding: 32px 16px;
    }

    .auth-bg-sp {
        display: block;
        top: -15px;
        left: -279px;
        width: 2061px;
        height: 817px;
    }

    .auth-bg-pc {
        display: none;
    }

    .auth-title {
        font-size: 20px;
        line-height: calc(37 / 26);
        margin-bottom: 24px;
    }

    .auth-label {
        font-size: 12px;
        line-height: calc(27.2 / 12);
    }

    .auth-control {
        height: 48px;
        font-size: 14px;
        line-height: calc(23.8 / 14);
        backdrop-filter: var(--filter-glass-soft);
        -webkit-backdrop-filter: var(--filter-glass-soft);
    }

    .auth-control::placeholder {
        font-size: 14px;
    }

    .auth-link {
        font-size: 13px;
        margin-bottom: 6px;
    }


    .auth-link-list--offset {
        margin-top: 32px;
    }

    .auth-button {
        width: 100%;
        height: 48px;
        margin-inline: 0;
        font-size: 14px;
        gap: 6px;
    }

    .auth-notice {
        margin-bottom: 24px;
    }

    .auth-actions {
        flex-direction: column;
        gap: 16px;
    }

    .auth-button--secondary {
        height: 40px;
    }

    .auth-actions .auth-button--secondary {
        order: 1;
    }

    .auth-actions .auth-button--primary {
        order: 0;
    }

    .auth-button-icon {
        width: 14px;
        height: 14px;
    }

    .auth-button-icon--line {
        width: 18px;
        height: 17.15px;
    }

    .auth-alt {
        gap: 16px;
        margin: 16px 0;
    }

    .auth-alt__label {
        font-size: 14px;
        font-weight: 700;
        line-height: calc(20 / 14);
    }

    .auth-line-button {
        gap: 8px;
    }

    .auth-page__logo {
        margin-bottom: 24px;
    }

    .auth-page__description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .auth-page__description--forgot-sent {
        margin-bottom: 16px;
    }



    .auth-code-notice {
        margin-bottom: 22px;
    }

    .auth-code-notice__text {
        font-size: 13px;
        line-height: calc(19 / 13);
    }



    .auth-register-shell {
        padding-bottom: 72px;
    }


    .auth-register-title {
        margin-bottom: 37px;
    }

    .auth-register-title--profile {
        margin-bottom: 38px;
    }

    .auth-section {
        padding: 24px 0;
    }

    .auth-section--confirm {
        padding-top: 16px;
        margin-bottom: -8px;
    }

    .auth-section--plan {
        padding-top: 28px;
        padding-bottom: 28px;
        margin-bottom: 0;
    }

    .auth-row .auth-error-text {}

    .auth-row__label .auth-label {
        width: 80px;
    }

    .auth-row__content {
        width: 480px;
    }

    .auth-row__content--payment {
        width: 427px;
    }


    .auth-row__content .auth-control,
    .auth-row__content--stack .auth-control {
        padding-left: 20px;
        padding-right: 20px;
    }

    .auth-row__content .auth-control::placeholder,
    .auth-row__content--stack .auth-control::placeholder {
        font-size: 14px;
        line-height: calc(20 / 14);
        text-align: left;
        color: rgba(255, 255, 255, 0.5);
        opacity: 1;
    }

    .auth-plan-choice-heading {
        width: 80px;
        padding-bottom: 73px;
    }

    .auth-plan-choice-title {
        font-size: 12px;
        line-height: calc(27.2 / 12);
        color: rgba(255, 255, 255, 0.8);
    }

    .auth-plan-choice-list {
        width: 480px;
        gap: 16px;
    }

    .auth-plan-card {
        width: 100%;
    }

    .auth-plan-card--free {
        padding: 13px 20px 21px 20px;
    }

    .auth-plan-card__name--free {
        margin-bottom: 7px;
    }

    .auth-plan-card__name--standard {
        margin-bottom: 11px;
    }

    .auth-plan-card__subtext--free {
        font-size: 13px;
        line-height: calc(19 / 13);
        color: var(--color-white);
    }

    .auth-plan-card__price-value {
        font-size: 22px;
        line-height: calc(32 / 22);
    }

    .auth-plan-card__price-suffix {
        font-size: 14px;
    }

    .auth-plan-card__price-break {
        display: block;
    }

    .auth-plan-card__price-separator {
        display: none;
    }

    .plan-card-billing-toggle {
        width: 184px;
        height: 24px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .plan-card-billing-toggle__thumb {
        height: 20px;
        border-radius: 10px;
    }

    .plan-card-billing-toggle__button {
        height: 20px;
        border-radius: 10px;
    }

    .auth-email-panel__box {
        min-height: 84px;
        padding: 19px 20px;
    }

    .auth-email-panel__loading {
        flex-wrap: nowrap;
    }

    .auth-email-panel__break {
        display: block;
    }

    .auth-email-panel__label {
        display: inline-block;
        margin-bottom: 0;
    }

    .auth-email-panel__label,
    .auth-email-panel__text {
        font-size: 14px;
        line-height: calc(20 / 14);
    }

    .auth-email-panel__value {
        font-size: 14px;
        line-height: calc(20 / 14);
    }


    .auth-consent {
        padding: 32px 16px;
    }

    .auth-consent__text {
        font-size: 14px;
        line-height: calc(23.8 / 14);
    }

    .stripe-field {
        height: 48px;
        backdrop-filter: var(--filter-glass-soft);
        -webkit-backdrop-filter: var(--filter-glass-soft);
    }

    .auth-value {
        font-size: 16px;
        font-weight: 700;
        line-height: calc(23.8 / 16);
    }

    .auth-summary-item {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .auth-summary-item__label {
        width: auto;
    }

    .auth-summary-list {
        gap: 7px;
    }

    .auth-payment-note {
        margin: 0 0 28px;
        font-size: 14px;
        line-height: calc(23.8 / 14);
    }

    .auth-payment-submit {
        width: 412px;
    }

    .auth-payment-help {
        margin-top: 16px;
        font-size: 12px;
        line-height: calc(23.8 / 12);
        text-align: center;
    }

    .auth-confirm-divider {
        margin-bottom: 28px;
    }

    .auth-plan-page__card-brands {
        width: 78px;
        height: 12px;
    }

    .auth-plan-page__security-break {
        display: inline;
    }

    .auth-plan-page .auth-row {
        justify-content: flex-start;
        gap: 21px;
    }

    .auth-plan-page .auth-section {
        padding: 24px 0 24px;
    }

    .auth-plan-page .auth-row__label .auth-label {
        width: 71px;
        font-size: 12px;
        line-height: 20.4px;
        text-align: left;
        color: var(--color-white);
    }

    .auth-plan-page .auth-row__content--payment {
        width: 427px;
    }

    .auth-plan-page .auth-row__content--payment .stripe-field {
        padding-left: 20px;
        padding-right: 20px;
    }

    .auth-plan-page__divider {
        margin-bottom: 20px;
    }

    .auth-plan-page__error {
        margin-bottom: 24px;
    }

    .auth-plan-page .auth-payment-note {
        margin-bottom: 22px;
        font-size: 14px;
        line-height: calc(23.8 / 14);
        text-align: left;
        color: var(--color-white);
    }

    .auth-plan-page__back-button {
        flex: none;
        width: 100%;
        min-width: 0;
        height: 40px;
        border: 1px solid var(--color-white);
        border-radius: 12px;
        background: transparent;
        font-size: 14px;
        font-weight: 500;
        line-height: calc(20 / 14);
    }

    .auth-plan-page__submit-button {
        width: 100%;
        height: 48px;
        border-radius: 12px;
        background: var(--color-white);
    }

    .auth-plan-page .auth-payment-help {
        margin-top: 8px;
        margin-inline: auto;
        font-size: 11px;
        line-height: calc(16 / 11);
        text-align: left;
        color: var(--color-white);
    }

    .auth-plan-page .auth-payment-submit {
        width: auto;
    }

    .auth-plan-page__selected-plan {
        margin-bottom: 32px;
    }

    .auth-plan-page__selected-plan-label {
        display: block;
        margin-bottom: 6px;
    }

    .auth-plan-page__selected-plan-card {
        height: 86px;
        padding: 17px 20px 21px;
    }

    .auth-plan-page__selected-plan-title {
        margin-bottom: 5px;
        font-size: 16px;
        font-weight: 700;
        line-height: calc(24 / 16);
        text-align: left;
    }

    .auth-plan-page__selected-plan-price {
        font-size: 13px;
        line-height: calc(19 / 13);
    }

    .auth-confirm-plan {
        margin-top: -6px;
        margin-bottom: 28px;
    }

    .auth-confirm-plan__inner {
        display: flex;
        flex-direction: column;
    }

    .auth-confirm-plan__label {
        margin-bottom: 6px;
        color: rgba(255, 255, 255, 0.8);
    }

    .auth-confirm-plan__card {
        display: flex;
        width: 100%;
        align-items: flex-start;
        gap: 16px;
        padding: 18px 20px 0;
        text-align: left;
    }

    .auth-confirm-plan__card--standard {
        height: 119px;
    }

    .auth-confirm-plan__card--free {
        height: 92px;
    }

    .auth-confirm-plan__content {
        position: relative;
    }

    .auth-confirm-plan__title--free {
        margin-bottom: 6px;
    }

    .auth-confirm-plan__title--standard {
        margin-bottom: -2px;
    }

    .auth-confirm-plan__free-description {
        font-size: 16px;
        font-weight: 700;
        line-height: calc(19 / 16);
        text-align: left;
        color: var(--color-white);
    }

    .auth-confirm-plan__price-value {
        font-size: 24px;
        font-weight: 700;
        line-height: calc(35 / 24);
        color: var(--color-white);
    }

    .auth-confirm-plan__price-suffix {
        font-size: 14px;
        line-height: calc(35 / 14);
        color: rgba(255, 255, 255, 0.8);
    }

    .auth-confirm-plan__price-note {
        margin-top: -2px;
        font-size: 13px;
        line-height: calc(19 / 13);
        text-align: left;
        color: var(--color-white);
    }

    /* ----- PUBLIC ----- */
    .public-header__nav {
        display: none;
    }

    .public-header__cta-group {
        display: none;
    }

    .legal-page-root .legal-header-bar {
        height: 64px;
        padding: 0 min(24px, calc((24 / 414) * 100vw));
        align-items: center;
    }

    .legal-page-root .legal-header-bar .logo img {
        height: 32px;
    }

    .legal-page-root .site-bg {
        top: 100vh;
        left: 0;
        right: auto;
    }

    .legal-page-root .site-bg--fixed {
        left: 0;
        right: auto;
    }

    .legal-page-root .site-bg img {
        width: calc((715 / 414) * 100vw);
    }

    .legal-page-root .legal {
        padding: 120px 0 80px;
    }

    .legal-page-root .legal-inner {
        padding: 0 20px;
    }

    .legal-page-root .legal-header {
        margin-bottom: 40px;
    }

    .legal-page-root .legal-title {
        font-size: 24px;
    }

    .legal-page-root .legal-update {
        font-size: 12px;
    }

    .legal-page-root .legal-body {
        font-size: 14px;
        line-height: 1.9;
    }

    .legal-page-root .legal-intro {
        margin-bottom: 32px;
        font-size: 14px;
    }

    .legal-page-root .legal-section {
        margin-bottom: 36px;
    }

    .legal-page-root .legal-section-title {
        margin-bottom: 16px;
        padding-bottom: 10px;
        font-size: 17px;
    }

    .legal-page-root .legal-subsection-title {
        margin-top: 24px;
        margin-bottom: 12px;
        font-size: 15px;
    }

    .legal-page-root .legal-table {
        font-size: 13px;
    }

    .legal-page-root .legal-table th,
    .legal-page-root .legal-table td {
        padding: 10px 12px;
    }

    .legal-page-root .legal-nav {
        flex-direction: column;
        gap: 12px;
        margin-top: 40px;
        padding-top: 24px;
    }

    .legal-page-root .legal-nav-link {
        font-size: 13px;
    }

    .legal-page-root .site-footer {
        margin: 0 16px 16px;
        padding: 0 24px;
        border-radius: 16px;
    }

    .legal-page-root .site-footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 48px 0;
    }

    .legal-page-root .site-footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .legal-page-root .site-footer-logo {
        height: 56px;
    }

    .legal-page-root .site-footer-tagline {
        font-size: 16px;
        text-align: center;
        white-space: nowrap;
    }

    .legal-page-root .site-footer-nav {
        display: grid;
        grid-template-columns: repeat(3, auto);
        gap: 16px 20px;
        justify-content: center;
    }

    .legal-page-root .site-footer-link {
        font-size: 11px;
        white-space: nowrap;
    }

    .legal-page-root .site-footer-bottom {
        padding: 20px 0 32px;
        font-size: 10px;
    }

    .legal-page-root .site-footer-copy {
        font-size: 10px;
    }

    .legal-page-root .faq-search__input {
        padding: 12px 44px 12px 10px;
        font-size: 14px;
    }

    .legal-page-root .faq-search__icon {
        width: 16px;
        height: 16px;
        margin-left: 14px;
    }

    .legal-page-root .faq-categories {
        gap: 32px;
    }

    .legal-page-root .faq-category__title {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .legal-page-root .faq-card__question {
        gap: 10px;
        padding: 14px 16px;
    }

    .legal-page-root .faq-card__q-label {
        width: 20px;
        font-size: 18px;
    }

    .legal-page-root .faq-card__q-text {
        font-size: 14px;
    }

    .legal-page-root .faq-card__toggle {
        font-size: 20px;
    }

    .legal-page-root .faq-card__answer {
        gap: 10px;
        padding: 0 16px 16px;
    }

    .legal-page-root .faq-card__a-label {
        width: 20px;
        font-size: 18px;
    }

    .legal-page-root .faq-card__a-text {
        font-size: 13px;
    }

    .legal-page-root .faq-contact {
        gap: 12px;
        padding: 24px 20px;
    }

    .legal-page-root .faq-contact__text {
        font-size: 14px;
    }

    .legal-page-root .help-toc {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        margin-bottom: 32px;
    }

    .legal-page-root .help-toc::-webkit-scrollbar {
        display: none;
    }

    .legal-page-root .help-toc__item {
        padding: 6px 12px;
        font-size: 12px;
    }

    .legal-page-root .help-section {
        scroll-margin-top: 80px;
    }

    .legal-page-root .help-section__title {
        font-size: 16px;
    }

    .legal-page-root .help-table {
        font-size: 12px;
    }

    .legal-page-root .help-table th,
    .legal-page-root .help-table td {
        padding: 8px 10px;
    }

    .legal-page-root .help-step {
        gap: 12px;
    }

    .legal-page-root .help-step__number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .legal-page-root .help-footer {
        padding: 24px 20px;
    }

    .legal-page-root .help-footer__links {
        width: 100%;
        flex-direction: column;
    }

    .legal-page-root .help-footer__link {
        justify-content: center;
    }

    .legal-page-root--hp-header .header-sticky {
        height: auto;
        padding: 20px min(64px, calc((64 / 414) * 100vw)) 20px min(24px, calc((24 / 414) * 100vw));
    }

    .legal-page-root--hp-header .header-inner {
        align-items: center;
    }

    .legal-page-root--hp-header .logo img {
        height: 32px;
    }

    .legal-page-root--hp-header .nav {
        display: none;
    }

    .legal-page-root--hp-header .header-actions {
        gap: 16px;
    }

    .legal-page-root--hp-header .header-btn-group {
        display: none;
    }

    .legal-page-root--hp-header .header-hamburger {
        display: flex;
        width: 16px;
        height: 32px;
        flex-shrink: 0;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 4px;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 0;
    }

    .legal-page-root--hp-header .header-hamburger span {
        display: block;
        width: 16px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        transition: transform 0.3s, opacity 0.3s;
    }

    .legal-page-root--hp-header .header-hamburger--fixed {
        position: fixed;
        top: 20px;
        right: min(24px, calc((24 / 414) * 100vw));
        z-index: 10000;
        display: flex;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .legal-page-root--hp-header .header-hamburger--fixed.header-hamburger--always,
    .legal-page-root--hp-header .header-hamburger--fixed.header-hamburger--visible {
        opacity: 1;
        pointer-events: auto;
    }

    .legal-page-root--hp-header .header-hamburger--open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .legal-page-root--hp-header .header-hamburger--open span:nth-child(2) {
        opacity: 0;
    }

    .legal-page-root--hp-header .header-hamburger--open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .legal-page-root--hp-header .sp-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: #0a0a2e;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .legal-page-root--hp-header .sp-menu-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .legal-page-root--hp-header .sp-menu-overlay--open {
        opacity: 1;
        pointer-events: auto;
    }

    .legal-page-root--hp-header .sp-menu-header {
        position: relative;
        z-index: 1;
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: space-between;
        padding: 20px min(64px, calc((64 / 414) * 100vw)) 20px min(24px, calc((24 / 414) * 100vw));
    }

    .legal-page-root--hp-header .sp-menu-header-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .legal-page-root--hp-header .sp-menu-header-right .btn-cta--sm {
        width: 100px;
        height: 32px;
        font-size: 13px;
    }

    .legal-page-root--hp-header .sp-menu-header-right .btn-login {
        width: 100px;
        height: 32px;
        font-size: 13px;
    }

    .legal-page-root--hp-header .sp-menu-nav {
        position: relative;
        z-index: 1;
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 40px;
        padding: 64px 24px 0;
    }

    .legal-page-root--hp-header .sp-menu-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .legal-page-root--hp-header .sp-menu-nav-label {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-bottom: 0;
        font-size: 14px;
        letter-spacing: 0.12em;
        opacity: 0.8;
    }

    .legal-page-root--hp-header .sp-menu-nav-label .section-icon {
        width: 12px;
        height: auto;
        padding-bottom: 1px;
    }

    .legal-page-root--hp-header .sp-menu-nav-title {
        font-size: 30px;
        font-weight: 700;
        letter-spacing: 0.08em;
    }

    .legal-page-root--hp-header .sp-menu-overlay--open .sp-menu-nav-item:nth-child(1) {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.1s;
    }

    .legal-page-root--hp-header .sp-menu-overlay--open .sp-menu-nav-item:nth-child(2) {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }

    .legal-page-root--hp-header .sp-menu-overlay--open .sp-menu-nav-item:nth-child(3) {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.3s;
    }

    .legal-page-root--hp-header .sp-menu-overlay--open .sp-menu-nav-item:nth-child(4) {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.4s;
    }

    .public-footer__top {
        flex-direction: column;
        gap: 24px;
    }

    /* ----- MAIN ----- */
    .account-context-menu {
        width: auto;
    }

    .main-layout {
        background: #2844b2;
    }

    .main-layout__content {
        min-width: 0;
    }

    .main-layout__mobile-header {
        display: block;
        backdrop-filter: var(--filter-glass-strong);
        -webkit-backdrop-filter: var(--filter-glass-strong);
        background-color: rgba(13, 18, 26, 0.6);
        clip-path: inset(0px);
    }

    .sidebar-layout {
        position: fixed;
        top: 48px;
        width: 100%;
        height: calc(100dvh - 48px);
        background-color: rgba(13, 18, 26, 0.6);
        backdrop-filter: var(--filter-glass-strong);
        -webkit-backdrop-filter: var(--filter-glass-strong);
        transition: opacity 0.2s ease-in-out;
    }

    .sidebar-layout__header,
    .sidebar-layout__toggle {
        display: none;
    }

    .sidebar-layout--open {
        pointer-events: auto;
        opacity: 1;
    }

    .sidebar-layout--closed {
        pointer-events: none;
        opacity: 0;
    }

    .sidebar-layout__nav {
        padding-top: 29px;
        padding-inline: 20px;
        align-items: stretch;
    }

    .sidebar-layout__history {
        padding-inline: 20px;
    }

    .sidebar-layout__footer {
        background: transparent;
    }

    .sidebar-nav__label {
        max-width: 200px;
        transition: none;
        text-align: left;
    }

    .sidebar-nav__label--open,
    .sidebar-nav__label--collapsed {
        max-width: none;
    }

    .sidebar-nav__link,
    .sidebar-layout--collapsed .sidebar-nav__link,
    .sidebar-layout--collapsed .sidebar-nav__link--new {
        justify-content: flex-start;
        gap: 8px;
    }

    .sidebar-layout--collapsed .sidebar-nav__link {
        padding-inline: 12px;
    }

    .sidebar-layout--collapsed .sidebar-nav__link--new {
        padding-inline: 14px;
    }

    .sidebar-account-button {
        background: rgba(0, 0, 0, 0.5);
    }

    .sidebar-account-button {
        justify-content: flex-start;
        gap: 12px;
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 20px;
        padding-right: 16px;
    }

    .sidebar-account-button__icon {
        display: none;
    }

    .sidebar-account-button__dots {
        margin-left: auto;
    }

    .sidebar-account-button__name {
        font-size: 16px;
        line-height: calc(20 / 16);
    }

    .sidebar-account-button__plan {
        line-height: calc(20 / 14);
        color: #859cb5;
    }

    .settings-modal__desktop {
        display: none;
    }

    .settings-modal__mobile {
        display: flex;
    }

    .report-free-close {
        top: 12px;
        right: 12px;
    }

    .report-free-close-image {
        width: 18.38px;
        height: 18.38px;
    }

    .billing-section {
        gap: 24px;
    }

    .billing-section__group-title {
        margin-bottom: 14px;
        font-size: 16px;
        line-height: calc(24 / 16);
    }

    .billing-section__status-card {
        margin-bottom: 16px;
        padding: 18px 20px;
        border-radius: 14px;
    }

    .billing-section__status-card--premium {
        padding: 20px 20px 24px;
    }

    .billing-section__status-title {
        font-size: 16px;
        line-height: calc(24 / 16);
    }

    .billing-section__status-description {
        font-size: 14px;
        line-height: calc(20 / 14);
    }

    .billing-section__upgrade-card {
        padding: 20px 20px 24px;
        border-radius: 14px;
    }

    .billing-section__upgrade-title {
        font-size: 16px;
        line-height: calc(24 / 16);
    }

    .billing-section__upgrade-price {
        font-size: 20px;
        line-height: calc(29 / 20);
    }

    .billing-section__upgrade-price-unit {
        font-size: 14px;
        line-height: calc(20 / 14);
    }

    .billing-section__primary-button {
        min-height: 54px;
        border-radius: 12px;
    }

    .payment-method-modal__body {
        max-width: 374px;
    }

    .payment-method-modal__field-label {
        display: block;
        width: auto;
        margin-bottom: 10px;
    }

    .payment-method-modal__field-row {
        display: block;
        min-height: auto;
        padding: 14px 0 18px;
    }

    .upgrade-modal__body {
        max-width: 374px;
    }

    .upgrade-modal__field-row {
        display: block;
        min-height: auto;
        padding: 14px 0 18px;
    }

    .upgrade-modal__field-label {
        display: block;
        width: auto;
        margin-bottom: 10px;
    }

    .upgrade-modal__plan-name {
        font-size: 18px;
        line-height: calc(26 / 18);
    }

    .upgrade-modal__price {
        font-size: 20px;
        line-height: calc(29 / 20);
    }

    .upgrade-modal__price-suffix {
        font-size: 14px;
        line-height: calc(20 / 14);
    }

    .upgrade-modal__actions {
        flex-direction: column-reverse;
        margin-top: 18px;
    }

    .report-section-comment {
        margin-top: 6px;
        padding: 0;
    }

    .report-section--shoui-chusei+.report-section-comment {
        border-top: none;
    }

    .report-section--genre-shoui+.report-section-comment {
        border-top: none;
        margin-top: 0;
    }

    .report-section-comment-body {
        margin-top: 8px;
        padding: 16px;
    }

    .report-section-comment-text {
        font-size: 14px;
        letter-spacing: -0.02em;
        line-height: calc(24 / 14);
    }

    .report-summary {
        margin-top: 6px;
        padding: 32px 20px 42px;
    }

    .report-section-header {
        margin-bottom: 18px;
    }

    .report-section--timeflow-shoui .report-section-header {
        margin-bottom: 28px;
    }

    .report-section-title-wrap {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        gap: 12px;
    }

    .report-granularity-wrap {
        margin-top: 21px;
    }

    .report-section+.report-section .report-section-title-wrap {
        margin-top: 32px;
    }

    .report-info-btn {
        width: 80px;
        height: 24px;
        font-size: 12px;
        line-height: calc(17 / 12);
    }

    .report-info-btn-icon {
        width: 10.47px;
        height: 8.08px;
    }

    .report-card-header {
        margin-bottom: 32px;
    }

    .report-card-body {
        margin-bottom: 10px;
    }

    .report-section--tenchijin .report-card-header {
        margin-bottom: 30px;
    }

    .report-section--tenchijin .report-card-body {
        margin-bottom: -8px;
    }

    .report-section--genre-chusei .report-card-body {
        margin-bottom: 0;
    }

    .report-section--genre-shoui .report-card-header {
        margin-bottom: 30px;
    }

    .report-section--timeflow-shoui .report-timeflow-row {
        gap: 6px;
        margin-bottom: 4px;
    }

    /* ---- ChuseiTimeHeatmap ---- */
    .report-section--timeflow-chusei .report-granularity-wrap {
        margin-bottom: 30px;
    }

    .report-section--timeflow-chusei .trend-heatmap__period-prefix {
        display: none;
    }

    .report-ai-comment {
        margin-top: 6px;
        padding: 0;
    }

    .report-ai-comment-body {
        margin-top: 8px;
        padding: 16px;
    }

    .report-ai-comment-text {
        font-size: 14px;
        letter-spacing: -0.02em;
        line-height: calc(24 / 14);
    }

    .report-shoui-chart__grid {
        gap: 6px;
    }

    .report-segment-chart__legend {
        gap: 6px;
    }

    .report-shoui-chart__label {
        margin-top: 8px;
    }

    .report-granularity-indicator::after {
        left: 50%;
        bottom: -5px;
        width: 6.25px;
        height: 5px;
        background: #fff;
        transform: translateX(-50%);
    }

    .report-granularity-indicator {
        width: 47px !important;
    }

    .report-tabs {
        width: max-content;
        overflow: visible;
        gap: 2px;
    }

    .report-tab-indicator {
        display: none;
    }

    .report-tab {
        height: 40px;
        min-height: 40px;
        padding: 4px 14px 5px 12px;
        border-radius: 8px;
        font-size: 14px;
        line-height: calc(20 / 14);
    }

    .report-tab--active {
        border-color: #fff;
        background: rgba(255, 255, 255, 0.2);
        color: var(--report-text-main);
    }

    .report-tab--active::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -12px;
        width: 14px;
        height: 12px;
        background: #fff;
        clip-path: polygon(50% 100%, 0 0, 100% 0);
        transform: translateX(-50%);
    }

    /* FreeUserReport SP */
    .report-page {
        padding: 18px 20px 28px;
    }

    .report-page__inner {
        max-width: 100%;
    }

    .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 34px;
        margin-top: 22px;
        margin-bottom: 27px;
    }

    .report-header-title {
        font-size: 28px;
        line-height: calc(40 / 28);
        gap: 10px;
    }

    .report-header-title-icon {
        width: 17.96px;
        height: 24px;
        background: transparent;
    }

    .report-header-btn {
        align-self: flex-start;
        width: 170px;
        height: 40px;
        gap: 12px;
        padding: 13px 16px;
        border-radius: 8px;
        background: #fff;
        font-size: 14px;
        line-height: calc(20 / 14);
    }

    .report-header-btn-icon {
        width: 14px;
        height: 14px;
    }

    .report-tab-content {
        padding: 26px 17px 32px 19px;
    }

    .report-tabs-shell {
        display: flex;
        width: max-content;
        max-width: none;
        height: 40px;
        overflow: visible;
        margin-right: 20px;
    }

    .report-tabs-scroll {
        width: calc(100% + 40px);
        margin-left: -20px;
        padding-left: 20px;
        padding-bottom: 12px;
        margin-bottom: -12px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .report-section {
        padding: 0;
    }

    .report-section+.report-section {
        margin-top: 32px;
    }

    .report-free-card {
        padding: 40px 26px 48px;
    }

    .report-free-card-title {
        font-weight: 700;
        font-size: 20px;
        line-height: 35px;
        text-align: center;
        color: #002A6A;
        margin-bottom: 29px;
    }

    .report-free-card-text {
        font-size: 16px;
        line-height: 27.2px;
        letter-spacing: -0.05em;
        width: fit-content;
        max-width: 100%;
        margin-inline: auto;
        text-align: left;
        color: #002A6A;
        margin-bottom: 28px;
    }

    /* InsufficientDataReport SP */
    .report-page--insufficient .report-header {
        align-items: center;
        top: 40px;
    }

    .report-page--insufficient .report-status-title {
        font-size: 20px;
        line-height: 35px;
        margin-bottom: 24px;
        text-align: center;
    }

    .report-page--insufficient .report-status-card {
        transform: translateY(-36px);
    }

    .report-page--insufficient .report-status-text {
        margin-bottom: 28px;
    }

    .report-status-title-break {
        display: block;
    }

    .report-status-progress__inner {
        width: 112px;
        height: 112px;
    }

    .report-status-progress__chart {
        width: 112px;
        height: 112px;
    }

    .report-status-progress__inner--pc {
        display: none;
    }

    .report-status-progress__inner--sp {
        display: block;
    }

    .report-status-progress__inner--sp .report-status-progress__count-wrap {
        top: 21.01px;
        left: 22.33px;
    }

    .report-status-progress__inner--sp .report-status-progress__count {
        font-size: 34px;
        line-height: calc(46 / 34);
    }

    .report-status-progress__inner--sp .report-status-progress__count-unit {
        top: -5.6px;
    }

    .report-status-progress__inner--sp .report-status-progress__divider {
        top: 41.38px;
        left: 40.39px;
        width: 36.64px;
        height: 35.95px;
    }

    .report-status-progress__inner--sp .report-status-progress__subcount-wrap {
        right: 25.9px;
        bottom: 30.8px;
    }

    .report-status-progress__inner--sp .report-status-progress__subcount-value {
        font-size: 14px;
        line-height: calc(19 / 14);
    }

    .report-status-progress__inner--sp .report-status-progress__subcount-unit {
        font-size: 10px;
        line-height: calc(15 / 10);
        margin-left: 1.4px;
        text-align: left;
    }

    .report-page--insufficient .report-gradient-btn {
        max-width: 334px;
        height: 48px;
        font-size: 14px;
        line-height: calc(20 / 14);
        text-align: left;
    }

    /* TriangleHeatmap SP */
    .report-triangle-node-text {
        font-size: 16px;
        line-height: calc(24 / 16);
    }

    .report-triangle-percent-unit {
        font-size: 16px;
        line-height: calc(30 / 16);
    }

    /* ---- KeywordRanking ---- */
    .trend-keyword-shoui {
        margin-bottom: 0;
    }

    /* ---- GenreShouiMatrix ---- */
    .report-section--genre-shoui .report-mini-chart-grid::after {
        display: none;
    }

    .report-genre-label {
        font-size: 16px;
        line-height: calc(24 / 16);
    }

    .report-genre-shoui .trend-keyword-shoui__bar-area {
        height: 60px;
    }

    /* ---- TimeflowChart ---- */
    .report-timeflow-badge {
        width: 40px;
        height: 18px;
        font-size: 11px;
        line-height: calc(16 / 11);
    }

    .report-timeflow-grid::after {
        display: none;
    }

    .report-timeflow-shoui .trend-keyword-shoui__bar-area {
        height: 60px;
    }

    /* ---- ShouiChuseiMatrix ---- */
    .report-shoui-matrix:not(.report-genre-chusei-matrix),
    .report-shoui-matrix.report-heatmap:not(.report-genre-chusei-matrix) {
        --trend-heatmap-period-width: 40px;
        --trend-heatmap-data-width: calc((100% - 40px - 16px) / 4);
    }

    .report-shoui-matrix:not(.report-genre-chusei-matrix) .report-shoui-matrix__label-cell {
        width: 40px;
        min-width: 40px;
    }

    .report-shoui-matrix:not(.report-genre-chusei-matrix) .report-shoui-matrix__label {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-right: 14px;
        gap: 4px;
        font-size: 13px;
    }

    .report-shoui-matrix:not(.report-genre-chusei-matrix) .report-shoui-matrix__cell {
        width: 100%;
    }

    /* ----- ADMIN ----- */
}

/* ===== HOVER DEVICES ===== */
@media (hover: hover) {

    /* PC で hover 演出する箇所のみ */
    .sidebar-account-button:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .sidebar-history__item:hover .sidebar-history__menu-trigger {
        opacity: 1;
    }

    .sidebar-history__item:hover .sidebar-history__link--inactive {
        text-decoration-line: underline;
        text-decoration-color: currentColor;
    }

    .sidebar-history__menu-trigger--hoverable {
        opacity: 0;
    }

    .legal-page-root .faq-card:hover {
        border-color: rgba(255, 255, 255, 0.15);
    }

    .consultation-quick-replies__button:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .settings-modal__nav-button--inactive:hover {
        background: #f7f9fd;
    }

    .consultation-settings__option--inactive:hover {
        border-color: #d1d5db;
    }

    .report-info-item__toggle:hover {
        color: #1d4ed8;
    }

    .report-granularity-btn:hover {
        color: var(--report-text-sub);
    }

    .report-tab:hover {
        color: var(--report-text-main);
    }

    .trend-ai-comment:hover {
        background: rgba(0, 0, 0, 0.15);
    }
}

/* ============================================================
 * 解析アウトプット v2 (仕様 v2.1) 追加スタイル
 * ============================================================ */

/* ②③ 古典原文セクション */
.consultation-analysis__section--genbun {
    margin-top: 32px;
}

.consultation-analysis__genbun-block + .consultation-analysis__genbun-block {
    margin-top: 16px;
}

.consultation-analysis__subheading--genbun {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.consultation-analysis__body-text--genbun {
    padding: 14px 18px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.15);
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: 0.02em;
    white-space: pre-wrap;
}

/* ⑥ 段階・中正・構造的特性 */
.consultation-analysis__section--phase {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.consultation-analysis__phase-meta {
    margin-bottom: 16px;
}

.consultation-analysis__meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.5;
}

.consultation-analysis__meta-label {
    min-width: 7em;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 0.04em;
}

.consultation-analysis__meta-value {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.consultation-analysis__meta-sublabel {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.consultation-analysis__traits {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.18);
}

.consultation-analysis__subheading--traits {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.consultation-analysis__trait-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.6;
}

.consultation-analysis__trait-row:last-child {
    margin-bottom: 0;
}

.consultation-analysis__trait-label {
    min-width: 4em;
    color: rgba(0, 238, 255, 0.85);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.consultation-analysis__trait-value {
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
}

/* ⑦ ブリッジ文 */
.consultation-analysis__bridge {
    margin: 24px 0 12px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
}

/* ⑧ 時の要諦 */
.consultation-analysis__section--tokino {
    margin-top: 12px !important;
}

.consultation-analysis__body-text--tokino {
    font-size: 16.5px;
    line-height: 1.85;
    letter-spacing: 0.02em;
}

/* ⑨ 傾向コメント (Codex final HIGH 1 対応: __divider-mid との二重線回避のため margin のみ) */
.consultation-analysis__section--trend {
    margin-top: 18px;
    padding-top: 0;
}

.consultation-analysis__trend-panel {
    padding: 16px 18px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.15);
}

.consultation-analysis__body-text--trend {
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

/* legacy v1 互換表示バッジ: 横断レビュー C-3 で撤廃 (2026-06-17、 decisions CR-2 撤回)
   過去 v1 形式は LegacyAnalysisDisplay で改修前 UI そのままに表示するため、 バッジ自体不要 */

/* ============================================================
 * 0612 表示仕様 v1 §4 / §9-1 / §10-2 準拠
 * 章区切り構造（太線=章 / 中線=節）+ ▌マーカー CSS + 段落保持
 * decisions D-16 CR0612-H1 / H2 / L1 / CR0612-X1 対応
 * ============================================================ */
.consultation-analysis__hexagram-header {
    margin: 0 0 22px;
    padding: 18px 0;
    border-top: 2px solid rgba(0, 238, 255, 0.55);
    border-bottom: 2px solid rgba(166, 77, 255, 0.55);
}
.consultation-analysis__hexagram-header-inner {
    text-align: center;
}
/* §4-1 同一行・同系統組版 + §9-1 Web 版 HTML 構造案 (span 3 分離) 準拠
   2026-06-22 仕様準拠化: 卦番号・卦名・セパレータ・象意クラスを inline-flex で並べ、
   §2-3「半角 2 つ × 2」相当の視覚的余白を gap で表現。
   §4-1 期待出力「第64卦  火水未済  /  変革クラス」各区切り半角 2 文字 = gap: 2ch。
   各 span は title スタイル継承で同色・同サイズ (Web 標準: 文字レベル空白の HTML
   保持は white-space 副作用大、 CSS gap が自然) */
.consultation-analysis__hexagram-title {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 2ch;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
}
.consultation-analysis__hexagram-code,
.consultation-analysis__hexagram-name,
.consultation-analysis__hexagram-separator,
.consultation-analysis__hexagram-class {
    /* title スタイル継承 (font-size 22px / font-weight 700 / color 親) で同色同サイズ */
}
.consultation-analysis__marker-heading {
    margin: 0 0 6px;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.5;
}
.consultation-analysis__marker-heading::before {
    content: '▌';
    margin-right: 6px;
    color: rgba(0, 238, 255, 0.9);
}
.consultation-analysis__divider-mid {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin: 22px 0;
}
.consultation-analysis__tokino-title-band {
    margin: 8px 0 14px;
    padding: 12px 0;
    border-top: 2px solid rgba(0, 238, 255, 0.55);
    border-bottom: 2px solid rgba(166, 77, 255, 0.55);
    text-align: center;
}
.consultation-analysis__tokino-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, rgba(0, 238, 255, 1) 0%, rgba(166, 77, 255, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.consultation-analysis__closing-band {
    margin-top: 18px;
    border-top: 2px solid rgba(166, 77, 255, 0.5);
}
.consultation-analysis__paragraph + .consultation-analysis__paragraph {
    margin-top: 14px;
}
