/* =========================================================
   haitou.css
   ---------------------------------------------------------
   「配当金で暮らしたい」専用ページ (/haitou/) のスタイル。
   page-haitou.php からのみ enqueue される。

   スコープ:
     すべてのルールは .ht-root 配下、または .ht- プレフィックスを
     持つクラスに限定して書く。サイト全体の .nt-* スタイルや
     他ページに影響しないこと。

   配色トーン:
     - 深緑     #1f5c42  (タイトル / 主アクションのベース色)
     - 若葉     #6ca870  (アクセント・ホバー)
     - 背景生成 #f7f6f2  (穏やかな背景・--alt セクション用)
     - 補助ゴールド #c8a96b (ハイライト・スコアバッジ)
     - 暗テキスト #1f2a26 (見出し)
     - サブテキスト #5a6660 (説明文)
     - 注意ベージュ #e9d9b3 + 焦茶 #7a5a2c (注意ワード chip)
       ※ 赤系の警告色は使わない (穏やかさ・育成感を優先)

   レイアウト前提:
     親テーマの .nt-container / .nt-section の余白・幅トークン
     (--nt-container, --nt-section-y, --nt-gap) はそのまま活かす。
     配当ページ専用の装飾だけ .ht-* に閉じる。
   ========================================================= */

/* ---- ローカルトークン (haitouページ内のみ有効) ---- */
.ht-root {
	--ht-color-deep:        #1f5c42;
	--ht-color-leaf:        #6ca870;
	--ht-color-leaf-soft:   #a7c9a5;
	--ht-color-bg:          #f7f6f2;
	--ht-color-card:        #ffffff;
	--ht-color-gold:        #c8a96b;
	--ht-color-text:        #1f2a26;
	--ht-color-text-sub:    #5a6660;
	--ht-color-border:      #e3e7e2;
	--ht-color-note-bg:     #f4ecd8;
	--ht-color-note-fg:     #7a5a2c;

	--ht-radius-card:       18px;
	--ht-radius-sm:         10px;
	--ht-radius-pill:       999px;

	--ht-shadow-soft:       0 8px 24px rgba(31, 92, 66, 0.07);
	--ht-shadow-hover:      0 14px 32px rgba(31, 92, 66, 0.11);

	color: var(--ht-color-text);
	background: var(--ht-color-card);
}

/* SP でのみ <br> を効かせる小ヘルパ (haitou ページ専用) */
.ht-root .ht-br-sp { display: none; }
@media (max-width: 600px) {
	.ht-root .ht-br-sp { display: inline; }
}

/* PC / tablet でのみ <br> を効かせる小ヘルパ (haitou ページ専用) */
.ht-root .ht-br-pc { display: inline; }
@media (max-width: 600px) {
	.ht-root .ht-br-pc { display: none; }
}

/* =========================================================
   共通要素
   ========================================================= */
.ht-root .ht-section {
	padding-block: clamp(48px, 7vw, 96px);
	background: var(--ht-color-card);
}

.ht-root .ht-section--alt {
	background: var(--ht-color-bg);
}

.ht-root .ht-section__head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto clamp(28px, 4vw, 44px);
}

.ht-root .ht-section__head h2 {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.5;
	color: var(--ht-color-deep);
	letter-spacing: 0.01em;
	margin: 0.4em 0 0.6em;
}

.ht-root .ht-section__lead {
	color: var(--ht-color-text-sub);
	line-height: 1.85;
	margin: 0;
}

.ht-root .ht-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	color: var(--ht-color-leaf);
	font-weight: 600;
	background: rgba(108, 168, 112, 0.10);
	padding: 0.3em 0.9em;
	border-radius: var(--ht-radius-pill);
}

/* ---- ボタン ---- */
.ht-root .ht-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.85em 1.6em;
	border-radius: var(--ht-radius-pill);
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
	border: 1px solid transparent;
}

.ht-root .ht-btn--primary {
	background: var(--ht-color-deep);
	color: #ffffff;
	box-shadow: 0 6px 16px rgba(31, 92, 66, 0.18);
}

.ht-root .ht-btn--primary:hover,
.ht-root .ht-btn--primary:focus-visible {
	background: var(--ht-color-leaf);
	color: #ffffff;
	box-shadow: 0 10px 22px rgba(31, 92, 66, 0.22);
	transform: translateY(-1px);
}

.ht-root .ht-btn--ghost {
	background: transparent;
	color: var(--ht-color-deep);
	border-color: rgba(31, 92, 66, 0.28);
}

.ht-root .ht-btn--ghost:hover,
.ht-root .ht-btn--ghost:focus-visible {
	background: rgba(31, 92, 66, 0.05);
	border-color: var(--ht-color-deep);
}

.ht-root .ht-btn--lg {
	padding: 1em 2em;
	font-size: 1.05rem;
}

/* =========================================================
   1. ヒーロー
   ========================================================= */
.ht-root .ht-hero {
	position: relative;
	padding-block: clamp(64px, 10vw, 128px);
	background:
		radial-gradient(ellipse at 80% -10%, rgba(108, 168, 112, 0.18), transparent 55%),
		radial-gradient(ellipse at 0% 110%, rgba(200, 169, 107, 0.10), transparent 60%),
		var(--ht-color-bg);
	overflow: hidden;
}

.ht-root .ht-hero__inner {
	text-align: center;
}

.ht-root .ht-hero__eyebrow {
	display: inline-block;
	font-size: 0.85rem;
	letter-spacing: 0.18em;
	color: var(--ht-color-leaf);
	font-weight: 600;
	margin-bottom: 1.2em;
}

.ht-root .ht-hero__title {
	font-size: clamp(1.85rem, 4.2vw, 2.8rem);
	line-height: 1.45;
	color: var(--ht-color-deep);
	letter-spacing: 0.01em;
	margin: 0 0 0.6em;
	/* v0.16+: PC で短い語句だけが次行に落ちる「中途半端な改行」を避ける。
	   text-wrap: balance は対応ブラウザで自然に分割、非対応ブラウザは無視。 */
	text-wrap: balance;
}

.ht-root .ht-hero__lead {
	font-size: clamp(0.98rem, 1.4vw, 1.08rem);
	color: var(--ht-color-text-sub);
	line-height: 2;
	margin: 0 auto 2em;
	/* v0.16+: 横幅を 38em に抑えて長文の行末オーファン文字を減らす。
	   pretty は最終行の単独文字落ちを抑える hint (対応ブラウザのみ)。 */
	max-width: 38em;
	text-wrap: pretty;
}

.ht-root .ht-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 16px;
}

/* =========================================================
   2. 今日の市場温度感
   ========================================================= */
.ht-root .ht-market-temp {
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-card);
	box-shadow: var(--ht-shadow-soft);
	padding: clamp(24px, 4vw, 36px);
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.ht-root .ht-market-temp__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.5em 1.2em;
	background: rgba(108, 168, 112, 0.12);
	color: var(--ht-color-deep);
	border-radius: var(--ht-radius-pill);
	font-weight: 600;
	margin-bottom: 1em;
}

.ht-root .ht-market-temp__emoji {
	font-size: 1.3em;
}

.ht-root .ht-market-temp__label {
	font-size: 1rem;
}

.ht-root .ht-market-temp__desc {
	color: var(--ht-color-text-sub);
	line-height: 1.95;
	margin: 0 0 1.4em;
}

.ht-root .ht-market-temp__meta {
	margin: 0;
	font-size: 0.82rem;
	color: var(--ht-color-text-sub);
	opacity: 0.75;
}

/* =========================================================
   3. 今日のぜひ買い (ピックカード)
   ========================================================= */
.ht-root .ht-pick-card {
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-card);
	box-shadow: var(--ht-shadow-soft);
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 36px);
	position: relative;
	overflow: hidden;
}

.ht-root .ht-pick-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: linear-gradient(180deg, var(--ht-color-leaf) 0%, var(--ht-color-deep) 100%);
}

.ht-root .ht-pick-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding-bottom: 16px;
	border-bottom: 1px dashed var(--ht-color-border);
	margin-bottom: 18px;
}

.ht-root .ht-pick-card__symbol {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2em 0.4em;
	font-weight: 600;
}

.ht-root .ht-pick-card__code {
	font-size: 1.4rem;
	color: var(--ht-color-deep);
	letter-spacing: 0.05em;
}

.ht-root .ht-pick-card__divider {
	color: var(--ht-color-text-sub);
	opacity: 0.5;
}

.ht-root .ht-pick-card__name {
	font-size: 1.05rem;
	color: var(--ht-color-text);
}

.ht-root .ht-pick-card__score {
	display: inline-flex;
	align-items: baseline;
	gap: 0.25em;
	padding: 0.55em 1.1em;
	background: linear-gradient(135deg, rgba(200, 169, 107, 0.18), rgba(200, 169, 107, 0.08));
	color: var(--ht-color-note-fg);
	border-radius: var(--ht-radius-pill);
	font-weight: 700;
	border: 1px solid rgba(200, 169, 107, 0.45);
}

.ht-root .ht-pick-card__score-label {
	font-size: 0.78rem;
	letter-spacing: 0.05em;
}

.ht-root .ht-pick-card__score-value {
	font-size: 1.45rem;
	line-height: 1;
}

.ht-root .ht-pick-card__score-unit {
	font-size: 0.82rem;
}

.ht-root .ht-pick-card__rows {
	display: grid;
	gap: 12px;
	margin: 0;
}

.ht-root .ht-pick-card__row {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 12px 16px;
	align-items: baseline;
}

.ht-root .ht-pick-card__row-label {
	font-size: 0.85rem;
	color: var(--ht-color-text-sub);
	letter-spacing: 0.05em;
	font-weight: 600;
}

.ht-root .ht-pick-card__row-value {
	margin: 0;
	color: var(--ht-color-text);
	line-height: 1.7;
}

.ht-root .ht-pick-card__row--note .ht-pick-card__row-value {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.ht-root .ht-pick-card__note {
	background: var(--ht-color-note-bg);
	color: var(--ht-color-note-fg);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.25em 0.85em;
	border-radius: var(--ht-radius-pill);
}

.ht-root .ht-pick-card__foot {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px dashed var(--ht-color-border);
}

.ht-root .ht-pick-card__disclaimer {
	margin: 0;
	color: var(--ht-color-text-sub);
	font-size: 0.78rem;
	opacity: 0.85;
}

@media (max-width: 600px) {
	.ht-root .ht-pick-card__row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
	.ht-root .ht-pick-card__row-label {
		font-size: 0.78rem;
	}
}

/* ---- ヘルプリンク (どうしたらいい?) ---- */
.ht-root .ht-help-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	color: var(--ht-color-deep);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	padding: 0.25em 0.7em;
	background: rgba(108, 168, 112, 0.10);
	border-radius: var(--ht-radius-pill);
	transition: background 0.2s ease, color 0.2s ease;
}

.ht-root .ht-help-link::before {
	content: "?";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25em;
	height: 1.25em;
	background: var(--ht-color-deep);
	color: #fff;
	border-radius: 50%;
	font-size: 0.7em;
	font-weight: 700;
}

.ht-root .ht-help-link:hover,
.ht-root .ht-help-link:focus-visible {
	background: rgba(108, 168, 112, 0.22);
	color: var(--ht-color-deep);
}

.ht-root .ht-help-link--block {
	margin-top: 12px;
	align-self: flex-start;
}

/* =========================================================
   4. 配当金を育てる仕組み (5 カード)
   ========================================================= */
.ht-root .ht-grow-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.ht-root .ht-card {
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-card);
	box-shadow: var(--ht-shadow-soft);
	padding: 24px;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ht-root .ht-card:hover {
	box-shadow: var(--ht-shadow-hover);
	transform: translateY(-2px);
}

.ht-root .ht-grow-card {
	text-align: center;
}

.ht-root .ht-grow-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: rgba(108, 168, 112, 0.12);
	border-radius: 50%;
	font-size: 1.6rem;
	margin-bottom: 14px;
}

.ht-root .ht-grow-card__title {
	font-size: 1.05rem;
	color: var(--ht-color-deep);
	margin: 0 0 0.5em;
	letter-spacing: 0.02em;
}

.ht-root .ht-grow-card__desc {
	margin: 0;
	color: var(--ht-color-text-sub);
	font-size: 0.92rem;
	line-height: 1.75;
}

/* =========================================================
   5. 用語ミニヘルプ
   ========================================================= */
.ht-root .ht-glossary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}

.ht-root .ht-glossary__item {
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: center;
	gap: 8px 12px;
	padding: 16px 18px;
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-card);
	box-shadow: var(--ht-shadow-soft);
}

.ht-root .ht-glossary__term {
	font-weight: 700;
	color: var(--ht-color-deep);
	font-size: 1rem;
}

.ht-root .ht-glossary-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6em;
	height: 1.6em;
	border-radius: 50%;
	background: var(--ht-color-deep);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.85rem;
	border: 0;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
	line-height: 1;
}

.ht-root .ht-glossary-link:hover:not([disabled]),
.ht-root .ht-glossary-link:focus-visible {
	background: var(--ht-color-leaf);
	transform: scale(1.05);
}

.ht-root .ht-glossary-link[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.ht-root .ht-glossary__hint {
	color: var(--ht-color-text-sub);
	font-size: 0.88rem;
	line-height: 1.65;
	grid-column: 1 / -1;
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px dashed var(--ht-color-border);
}

.ht-root .ht-mascot-note {
	text-align: center;
	color: var(--ht-color-text-sub);
	font-size: 0.82rem;
	opacity: 0.8;
	margin: 12px 0 0;
}

/* =========================================================
   6. 注意ワード
   ========================================================= */
.ht-root .ht-care-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.ht-root .ht-care-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.ht-root .ht-care-card__title {
	margin: 0;
	font-size: 1rem;
}

.ht-root .ht-care-card__chip {
	display: inline-block;
	background: var(--ht-color-note-bg);
	color: var(--ht-color-note-fg);
	font-weight: 700;
	font-size: 0.88rem;
	padding: 0.35em 0.9em;
	border-radius: var(--ht-radius-pill);
	letter-spacing: 0.02em;
}

.ht-root .ht-care-card__desc {
	margin: 0;
	color: var(--ht-color-text-sub);
	font-size: 0.92rem;
	line-height: 1.75;
	flex: 1;
}

/* =========================================================
   7. ダッシュボード プレビュー
   ========================================================= */
.ht-root .ht-dashboard-preview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-card);
	box-shadow: var(--ht-shadow-soft);
	padding: clamp(20px, 3vw, 28px);
}

.ht-root .ht-dashboard-preview__tile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	background: var(--ht-color-bg);
	border-radius: var(--ht-radius-sm);
	border: 1px solid var(--ht-color-border);
}

.ht-root .ht-dashboard-preview__tile--primary {
	background: linear-gradient(135deg, rgba(31, 92, 66, 0.96), rgba(108, 168, 112, 0.92));
	border-color: transparent;
	color: #ffffff;
}

.ht-root .ht-dashboard-preview__tile--primary .ht-dashboard-preview__label,
.ht-root .ht-dashboard-preview__tile--primary .ht-dashboard-preview__meta {
	color: rgba(255, 255, 255, 0.85);
}

.ht-root .ht-dashboard-preview__tile--accent {
	background: rgba(200, 169, 107, 0.10);
	border-color: rgba(200, 169, 107, 0.35);
}

.ht-root .ht-dashboard-preview__label {
	font-size: 0.8rem;
	color: var(--ht-color-text-sub);
	letter-spacing: 0.04em;
	font-weight: 600;
}

.ht-root .ht-dashboard-preview__value {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ht-color-deep);
	line-height: 1.3;
}

.ht-root .ht-dashboard-preview__tile--primary .ht-dashboard-preview__value {
	color: #ffffff;
}

.ht-root .ht-dashboard-preview__meta {
	font-size: 0.78rem;
	color: var(--ht-color-text-sub);
	opacity: 0.85;
}

/* =========================================================
   8. 最後の CTA
   ========================================================= */
.ht-root .ht-cta-section {
	background: var(--ht-color-bg);
}

.ht-root .ht-cta {
	background: linear-gradient(135deg, var(--ht-color-deep) 0%, #2a7a5a 100%);
	color: #ffffff;
	border-radius: var(--ht-radius-card);
	padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
	text-align: center;
	box-shadow: 0 18px 40px rgba(31, 92, 66, 0.22);
	position: relative;
	overflow: hidden;
}

.ht-root .ht-cta::after {
	content: "";
	position: absolute;
	right: -40px;
	top: -40px;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(200, 169, 107, 0.22), transparent 70%);
	pointer-events: none;
}

.ht-root .ht-cta__title {
	margin: 0 0 0.6em;
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	line-height: 1.5;
	color: #ffffff;
	letter-spacing: 0.01em;
}

.ht-root .ht-cta__lead {
	margin: 0 0 1.6em;
	color: rgba(255, 255, 255, 0.92);
	line-height: 1.95;
}

.ht-root .ht-cta__actions {
	display: flex;
	justify-content: center;
}

.ht-root .ht-cta .ht-btn--primary {
	background: #ffffff;
	color: var(--ht-color-deep);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.ht-root .ht-cta .ht-btn--primary:hover,
.ht-root .ht-cta .ht-btn--primary:focus-visible {
	background: var(--ht-color-bg);
	color: var(--ht-color-deep);
}

/* v0.16+: 最下部 CTA セクションは deep-green グラデ背景なので、
   デフォルトの ghost ボタン (color: deep-green) は背景と同化して
   見えない。CTA スコープでだけ白文字 + 半透明白枠に上書きする。
   他のセクションの .ht-btn--ghost には影響しない。 */
.ht-root .ht-cta .ht-btn--ghost {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.55);
	background: transparent;
}

.ht-root .ht-cta .ht-btn--ghost:hover,
.ht-root .ht-cta .ht-btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	border-color: #ffffff;
	color: #ffffff;
}

/* =========================================================
   SP 調整 (≤ 600px)
   ========================================================= */
@media (max-width: 600px) {
	.ht-root .ht-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ht-root .ht-btn {
		width: 100%;
	}

	.ht-root .ht-pick-card__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.ht-root .ht-pick-card__score {
		align-self: flex-start;
	}
}

/* =========================================================
   モーダル (用語 / どうしたらいい?)
   ---------------------------------------------------------
   JS 側 (haitou.js) で動的に body 直下へ 1 個だけ生成される。
   ルート要素 .ht-modal は .ht-root の外側に配置されるため、
   .ht-root にトークン宣言を集めても継承されない。ここでは
   .ht-modal 自身に同等のローカルトークンを再宣言して
   見た目を確保する。

   配色方針:
     - 赤や強い警告色は不使用
     - 注意点ブロックは穏やかなベージュ + 焦茶
     - 「やらなくていい」は薄いグレーのトーンで「グレーアウト感」
   ========================================================= */
.ht-modal {
	--ht-color-deep:        #1f5c42;
	--ht-color-leaf:        #6ca870;
	--ht-color-card:        #ffffff;
	--ht-color-text:        #1f2a26;
	--ht-color-text-sub:    #5a6660;
	--ht-color-border:      #e3e7e2;
	--ht-color-note-bg:     #f4ecd8;
	--ht-color-note-fg:     #7a5a2c;
	--ht-color-skip-bg:     #f3f1ec;
	--ht-color-skip-fg:     #6e6a60;

	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.ht-modal[hidden] {
	display: none;
}

.ht-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(31, 42, 38, 0.45);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	animation: ht-modal-fade 0.18s ease-out;
}

.ht-modal__panel {
	position: relative;
	background: var(--ht-color-card);
	border-radius: 18px;
	width: min(560px, 100%);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
	padding: clamp(24px, 4vw, 36px);
	color: var(--ht-color-text);
	animation: ht-modal-pop 0.22s ease-out;
}

.ht-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 0;
	background: rgba(31, 92, 66, 0.06);
	color: var(--ht-color-deep);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ht-modal__close:hover,
.ht-modal__close:focus-visible {
	background: rgba(31, 92, 66, 0.12);
	transform: scale(1.05);
}

.ht-modal__title {
	margin: 0 36px 0.8em 0;
	font-size: clamp(1.2rem, 2.4vw, 1.45rem);
	color: var(--ht-color-deep);
	letter-spacing: 0.01em;
	line-height: 1.5;
}

.ht-modal__lead {
	margin: 0 0 1.2em;
	font-size: 1rem;
	line-height: 1.85;
	color: var(--ht-color-text);
	background: rgba(108, 168, 112, 0.08);
	border-left: 3px solid var(--ht-color-leaf);
	border-radius: 0 10px 10px 0;
	padding: 14px 16px;
}

.ht-modal__subtitle {
	margin: 1.4em 0 0.5em;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--ht-color-deep);
}

.ht-modal__subtitle--note {
	color: var(--ht-color-note-fg);
}

.ht-modal__text {
	margin: 0;
	color: var(--ht-color-text-sub);
	line-height: 1.85;
	font-size: 0.95rem;
}

.ht-modal__note {
	margin-top: 1.4em;
	background: var(--ht-color-note-bg);
	border-radius: 10px;
	padding: 14px 16px;
}

.ht-modal__note .ht-modal__subtitle {
	margin-top: 0;
}

.ht-modal__note .ht-modal__text {
	color: var(--ht-color-note-fg);
}

.ht-modal__list {
	margin: 0;
	padding: 0 0 0 1.2em;
	list-style: none;
}

.ht-modal__list-item {
	position: relative;
	margin: 0.4em 0;
	padding-left: 0.4em;
	color: var(--ht-color-text-sub);
	font-size: 0.93rem;
	line-height: 1.75;
}

.ht-modal__list-item::before {
	content: "";
	position: absolute;
	left: -1em;
	top: 0.7em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ht-color-leaf);
}

.ht-modal__list--check .ht-modal__list-item::before {
	background: var(--ht-color-deep);
}

.ht-modal__list--todo .ht-modal__list-item::before {
	background: var(--ht-color-leaf);
}

.ht-modal__list--skip {
	background: var(--ht-color-skip-bg);
	border-radius: 10px;
	padding: 12px 16px 12px 32px;
}

.ht-modal__list--skip .ht-modal__list-item {
	color: var(--ht-color-skip-fg);
}

.ht-modal__list--skip .ht-modal__list-item::before {
	background: var(--ht-color-skip-fg);
	opacity: 0.55;
}

.ht-modal__related {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ht-modal__related-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.45em 0.95em;
	background: rgba(108, 168, 112, 0.10);
	color: var(--ht-color-deep);
	border: 1px solid rgba(31, 92, 66, 0.18);
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ht-modal__related-link::before {
	content: "?";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.2em;
	height: 1.2em;
	background: var(--ht-color-deep);
	color: #fff;
	border-radius: 50%;
	font-size: 0.7em;
	font-weight: 700;
}

.ht-modal__related-link:hover,
.ht-modal__related-link:focus-visible {
	background: rgba(108, 168, 112, 0.22);
	border-color: rgba(31, 92, 66, 0.35);
	transform: translateY(-1px);
}

.ht-modal__related-text {
	display: inline-flex;
	align-items: center;
	padding: 0.45em 0.95em;
	background: rgba(0, 0, 0, 0.03);
	color: var(--ht-color-text-sub);
	border-radius: 999px;
	font-size: 0.88rem;
}

/* body scroll lock */
body.ht-modal-open {
	overflow: hidden;
}

/* glossary "?" を有効化 (元の disabled スタイルを上書き) */
.ht-root .ht-glossary-link {
	cursor: pointer;
}

.ht-root .ht-glossary-link:not([disabled]):hover,
.ht-root .ht-glossary-link:not([disabled]):focus-visible {
	background: var(--ht-color-leaf);
	transform: scale(1.05);
}

/* 見出し内に置く装飾用「?」マーク (非インタラクティブ)。
   .ht-glossary-link の見た目を流用しつつ、hover / cursor は無効化する。 */
.ht-root .ht-glossary-link.ht-glossary-link--mark {
	cursor: default;
	vertical-align: middle;
	margin-inline: 0.05em;
}
.ht-root .ht-glossary-link.ht-glossary-link--mark:hover,
.ht-root .ht-glossary-link.ht-glossary-link--mark:focus-visible {
	background: var(--ht-color-deep);
	transform: none;
}

@keyframes ht-modal-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes ht-modal-pop {
	from { opacity: 0; transform: translateY(8px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* prefers-reduced-motion 配慮 */
@media (prefers-reduced-motion: reduce) {
	.ht-modal__backdrop,
	.ht-modal__panel {
		animation: none;
	}
}

/* SP 調整 (モーダル) */
@media (max-width: 600px) {
	.ht-modal {
		padding: 16px 12px;
		align-items: flex-end;
	}

	.ht-modal__panel {
		width: 100%;
		max-height: 88vh;
		border-radius: 18px 18px 12px 12px;
	}

	.ht-modal__title {
		margin-right: 44px;
	}
}

/* =========================================================
   v0.3: 保有株入力プレビュー (.ht-holdings-section)
   ---------------------------------------------------------
   静的プロトタイプ。入力カード / 配当ステータス / 保有株一覧 /
   配当の森ステージ の 4 ブロックを 1 セクションにまとめる。
   実データ連携・DB 保存は行わない。
   ========================================================= */
.ht-root .ht-holdings-section {
	background:
		radial-gradient(60% 60% at 10% 0%, rgba(108, 168, 112, 0.06) 0%, transparent 70%),
		radial-gradient(50% 50% at 90% 100%, rgba(200, 169, 107, 0.05) 0%, transparent 70%),
		var(--ht-color-card);
}

.ht-root .ht-holdings-preview {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(20px, 2.5vw, 28px);
	align-items: start;
}

.ht-root .ht-holdings-preview > .ht-holding-list,
.ht-root .ht-holdings-preview > .ht-growth-stage {
	grid-column: 1 / -1;
}

/* ---- 8-1. 入力フォーム ---- */
.ht-root .ht-holding-form {
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-card);
	padding: clamp(20px, 2.4vw, 28px);
	box-shadow: var(--ht-shadow-soft);
}

.ht-root .ht-holding-form__title {
	margin: 0 0 0.4em;
	font-size: 1.05rem;
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
}

.ht-root .ht-holding-form__lead {
	margin: 0 0 1.2em;
	color: var(--ht-color-text-sub);
	font-size: 0.88rem;
	line-height: 1.7;
}

.ht-root .ht-holding-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}

.ht-root .ht-holding-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}

.ht-root .ht-holding-field--radio {
	grid-column: 1 / -1;
}

.ht-root .ht-holding-field__label {
	font-size: 0.8rem;
	color: var(--ht-color-text-sub);
	letter-spacing: 0.04em;
	font-weight: 600;
	padding: 0;
}

.ht-root .ht-holding-field__input {
	width: 100%;
	font: inherit;
	color: var(--ht-color-text);
	background: #fbfbf8;
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
	padding: 0.75em 0.9em;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	box-sizing: border-box;
}

.ht-root .ht-holding-field__input::placeholder {
	color: #b3bab4;
}

.ht-root .ht-holding-field__input:focus {
	outline: 0;
	border-color: var(--ht-color-leaf);
	background: var(--ht-color-card);
	box-shadow: 0 0 0 3px rgba(108, 168, 112, 0.18);
}

.ht-root .ht-holding-radio {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.5em 0.95em;
	margin-right: 8px;
	background: #fbfbf8;
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-pill);
	cursor: pointer;
	font-size: 0.92rem;
	color: var(--ht-color-text-sub);
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ht-root .ht-holding-radio:hover {
	border-color: var(--ht-color-leaf-soft);
}

.ht-root .ht-holding-radio input[type="radio"] {
	accent-color: var(--ht-color-leaf);
	margin: 0;
}

.ht-root .ht-holding-radio:has(input[type="radio"]:checked) {
	border-color: var(--ht-color-leaf);
	background: rgba(108, 168, 112, 0.10);
	color: var(--ht-color-deep);
	font-weight: 600;
}

.ht-root .ht-holding-form__actions {
	margin-top: 18px;
	display: flex;
	justify-content: flex-start;
}

.ht-root .ht-holding-form__submit {
	min-width: 200px;
}

.ht-root .ht-holding-form__note {
	margin: 14px 0 0;
	padding: 0.9em 1em;
	background: rgba(108, 168, 112, 0.10);
	border-left: 3px solid var(--ht-color-leaf);
	border-radius: 6px;
	color: var(--ht-color-deep);
	font-size: 0.95rem;
	line-height: 1.7;
}

.ht-root .ht-holding-form__disclaimer {
	margin: 12px 0 0;
	font-size: 0.78rem;
	color: var(--ht-color-text-sub);
}

/* ---- 8-2. 配当ステータス ---- */
.ht-root .ht-dividend-status {
	background:
		linear-gradient(180deg, rgba(108, 168, 112, 0.06) 0%, transparent 100%),
		var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-card);
	padding: clamp(20px, 2.4vw, 28px);
	box-shadow: var(--ht-shadow-soft);
}

.ht-root .ht-dividend-status__title {
	margin: 0 0 1em;
	font-size: 1.05rem;
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
}

.ht-root .ht-dividend-status__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
	margin: 0;
}

.ht-root .ht-dividend-status__row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	background: #fbfbf8;
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
	min-width: 0;
}

.ht-root .ht-dividend-status__row--primary {
	grid-column: 1 / -1;
	background: rgba(108, 168, 112, 0.10);
	border-color: var(--ht-color-leaf-soft);
}

.ht-root .ht-dividend-status__row--goal {
	background: rgba(200, 169, 107, 0.10);
	border-color: rgba(200, 169, 107, 0.45);
}

.ht-root .ht-dividend-status__label {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--ht-color-text-sub);
}

.ht-root .ht-dividend-status__value {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--ht-color-deep);
	letter-spacing: 0.01em;
	word-break: break-word;
}

.ht-root .ht-dividend-status__row--primary .ht-dividend-status__value {
	font-size: 1.5rem;
}

/* ---- 8-3. 保有株一覧 ---- */
.ht-root .ht-holding-list {
	background: var(--ht-color-bg);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-card);
	padding: clamp(20px, 2.4vw, 28px);
}

.ht-root .ht-holding-list__title {
	margin: 0 0 1em;
	font-size: 1.05rem;
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
}

.ht-root .ht-holding-table-wrap {
	overflow-x: auto;
	border-radius: var(--ht-radius-sm);
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
}

.ht-root .ht-holding-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	color: var(--ht-color-text);
}

.ht-root .ht-holding-table thead th {
	background: rgba(108, 168, 112, 0.08);
	color: var(--ht-color-deep);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-align: left;
	padding: 0.85em 1em;
	border-bottom: 1px solid var(--ht-color-border);
}

.ht-root .ht-holding-table th.ht-holding-table__num,
.ht-root .ht-holding-table td.ht-holding-table__num {
	text-align: right;
}

.ht-root .ht-holding-table tbody th,
.ht-root .ht-holding-table tbody td {
	padding: 0.9em 1em;
	border-bottom: 1px solid var(--ht-color-border);
	vertical-align: middle;
	font-weight: 500;
}

.ht-root .ht-holding-table tbody tr:last-child th,
.ht-root .ht-holding-table tbody tr:last-child td {
	border-bottom: 0;
}

.ht-root .ht-holding-table__code {
	font-weight: 700;
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
}

.ht-root .ht-holding-table__state {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.3em 0.75em;
	border-radius: var(--ht-radius-pill);
	font-size: 0.85rem;
	font-weight: 600;
}

.ht-root .ht-holding-table__state--ok {
	background: rgba(108, 168, 112, 0.12);
	color: var(--ht-color-deep);
}

.ht-root .ht-holding-table__state--grow {
	background: rgba(167, 201, 165, 0.22);
	color: var(--ht-color-deep);
}

.ht-root .ht-holding-table__state--note {
	background: var(--ht-color-note-bg);
	color: var(--ht-color-note-fg);
}

.ht-root .ht-help-link--inline {
	display: inline-block;
	margin-left: 0.5em;
	font-size: 0.78rem;
}

.ht-root .ht-holding-list__note {
	margin: 12px 0 0;
	font-size: 0.78rem;
	color: var(--ht-color-text-sub);
}

/* ---- 8-4. 配当の森ステージ ---- */
.ht-root .ht-growth-stage {
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-card);
	padding: clamp(20px, 2.4vw, 28px);
	box-shadow: var(--ht-shadow-soft);
}

.ht-root .ht-growth-stage__title {
	margin: 0 0 1em;
	font-size: 1.05rem;
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
}

.ht-root .ht-stage-card {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2vw, 22px);
	padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 26px);
	background:
		linear-gradient(135deg, rgba(108, 168, 112, 0.10) 0%, rgba(200, 169, 107, 0.06) 100%),
		var(--ht-color-card);
	border: 1px solid var(--ht-color-leaf-soft);
	border-radius: var(--ht-radius-card);
	margin-bottom: 18px;
}

.ht-root .ht-stage-card__icon {
	font-size: clamp(2.4rem, 4vw, 3rem);
	line-height: 1;
	filter: drop-shadow(0 4px 8px rgba(31, 92, 66, 0.10));
}

.ht-root .ht-stage-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ht-root .ht-stage-card__label {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--ht-color-text-sub);
}

.ht-root .ht-stage-card__name {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
}

.ht-root .ht-stage-card__desc {
	margin: 0.4em 0 0;
	color: var(--ht-color-text-sub);
	line-height: 1.75;
	font-size: 0.92rem;
}

.ht-root .ht-stage-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	position: relative;
}

.ht-root .ht-stage-list::before {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	top: 22px;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--ht-color-border) 0 6px, transparent 6px 12px);
	z-index: 0;
}

.ht-root .ht-stage-list__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	position: relative;
	z-index: 1;
}

.ht-root .ht-stage-list__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ht-color-bg);
	border: 1px solid var(--ht-color-border);
	font-size: 1.4rem;
	line-height: 1;
}

.ht-root .ht-stage-list__name {
	font-size: 0.82rem;
	color: var(--ht-color-text-sub);
	letter-spacing: 0.02em;
}

.ht-root .ht-stage-list__item[data-stage-state="done"] .ht-stage-list__icon {
	background: rgba(108, 168, 112, 0.18);
	border-color: var(--ht-color-leaf-soft);
}

.ht-root .ht-stage-list__item[data-stage-state="done"] .ht-stage-list__name {
	color: var(--ht-color-deep);
}

.ht-root .ht-stage-list__item[data-stage-state="current"] .ht-stage-list__icon {
	background: var(--ht-color-card);
	border: 2px solid var(--ht-color-leaf);
	box-shadow: 0 0 0 4px rgba(108, 168, 112, 0.15);
}

.ht-root .ht-stage-list__item[data-stage-state="current"] .ht-stage-list__name {
	color: var(--ht-color-deep);
	font-weight: 700;
}

.ht-root .ht-growth-stage__note {
	margin: 16px 0 0;
	font-size: 0.82rem;
	color: var(--ht-color-text-sub);
	text-align: center;
}

/* ---- SP 調整 (保有株プレビュー) ---- */
@media (max-width: 760px) {
	.ht-root .ht-holdings-preview {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.ht-root .ht-holding-fields {
		grid-template-columns: 1fr;
	}

	.ht-root .ht-dividend-status__grid {
		grid-template-columns: 1fr;
	}

	.ht-root .ht-dividend-status__row--primary {
		grid-column: 1 / -1;
	}

	.ht-root .ht-dividend-status__row--primary .ht-dividend-status__value {
		font-size: 1.35rem;
	}

	.ht-root .ht-holding-form__actions {
		justify-content: stretch;
	}

	.ht-root .ht-holding-form__submit {
		width: 100%;
		min-width: 0;
	}

	/* 保有株テーブルをカードスタックに変形 */
	.ht-root .ht-holding-table-wrap {
		overflow: visible;
		background: transparent;
		border: 0;
	}

	.ht-root .ht-holding-table {
		display: block;
		font-size: 0.92rem;
	}

	.ht-root .ht-holding-table thead {
		display: none;
	}

	.ht-root .ht-holding-table tbody,
	.ht-root .ht-holding-table tr {
		display: block;
	}

	.ht-root .ht-holding-table tbody tr {
		background: var(--ht-color-card);
		border: 1px solid var(--ht-color-border);
		border-radius: var(--ht-radius-sm);
		padding: 6px 4px;
		margin-bottom: 10px;
	}

	.ht-root .ht-holding-table tbody th,
	.ht-root .ht-holding-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 8px;
		padding: 0.55em 0.9em;
		border-bottom: 1px dashed var(--ht-color-border);
		text-align: right;
	}

	.ht-root .ht-holding-table tbody tr th[data-label]::before,
	.ht-root .ht-holding-table tbody tr td[data-label]::before {
		content: attr(data-label);
		font-size: 0.74rem;
		font-weight: 600;
		color: var(--ht-color-text-sub);
		letter-spacing: 0.04em;
		text-align: left;
	}

	.ht-root .ht-holding-table tbody tr th[data-label],
	.ht-root .ht-holding-table tbody tr td[data-label] {
		text-align: right;
	}

	.ht-root .ht-holding-table tbody tr td:last-child {
		border-bottom: 0;
		flex-wrap: wrap;
	}

	.ht-root .ht-stage-card {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.ht-root .ht-stage-list {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 4px;
	}

	.ht-root .ht-stage-list::before {
		top: 18px;
	}

	.ht-root .ht-stage-list__icon {
		width: 36px;
		height: 36px;
		font-size: 1.1rem;
	}

	.ht-root .ht-stage-list__name {
		font-size: 0.7rem;
	}
}

/* =========================================================
   v0.4: localStorage 連動 (空状態 / 動的テーブル / セクター比率 /
   リセット / フォームノート variant)
   ---------------------------------------------------------
   v0.3 のレイアウト・トークンを再利用し、追加要素のみ定義。
   インライン style は使用しないが、セクター比率バーの fill 幅
   だけは JS から `style.setProperty('--ht-sector-pct', ...)` で
   設定する (動的計算結果を CSS 変数に流す形)。
   ========================================================= */

/* 視覚的に隠す (a11y) */
.ht-root .ht-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;
	clip: rect(0 0 0 0);
	overflow: hidden;
	white-space: nowrap;
}

/* ---- フォーム: 例ヒント / note level variants ---- */
.ht-root .ht-holding-form__hint {
	margin: 12px 0 0;
	padding: 0.7em 0.95em;
	background: #fbfaf4;
	border: 1px dashed var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
	font-size: 0.82rem;
	color: var(--ht-color-text-sub);
	line-height: 1.7;
}

.ht-root .ht-holding-form__hint-label {
	font-weight: 700;
	color: var(--ht-color-deep);
	margin-right: 0.3em;
}

.ht-root .ht-holding-form__note--warn {
	background: rgba(200, 169, 107, 0.14);
	border-left-color: var(--ht-color-gold);
	color: var(--ht-color-note-fg);
}

.ht-root .ht-holding-form__note--ok {
	background: rgba(108, 168, 112, 0.13);
	border-left-color: var(--ht-color-leaf);
	color: var(--ht-color-deep);
}

/* ---- 空状態 ---- */
.ht-root .ht-holdings-empty {
	text-align: center;
	padding: clamp(24px, 4vw, 36px) clamp(16px, 3vw, 28px);
	background: var(--ht-color-card);
	border: 1px dashed var(--ht-color-leaf-soft);
	border-radius: var(--ht-radius-card);
}

.ht-root .ht-holdings-empty__icon {
	margin: 0 0 0.4em;
	font-size: 2.2rem;
	line-height: 1;
}

.ht-root .ht-holdings-empty__title {
	margin: 0 0 0.4em;
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--ht-color-deep);
}

.ht-root .ht-holdings-empty__desc {
	margin: 0;
	font-size: 0.9rem;
	color: var(--ht-color-text-sub);
	line-height: 1.75;
}

/* ---- 動的テーブル: 削除ボタン列 ---- */
.ht-root .ht-holdings-table .ht-holdings-table__th-action {
	width: 44px;
	text-align: center;
}

.ht-root .ht-holdings-table__delete {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--ht-color-text-sub);
	font-size: 1.1rem;
	line-height: 1;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.ht-root .ht-holdings-table__delete:hover,
.ht-root .ht-holdings-table__delete:focus-visible {
	background: rgba(200, 169, 107, 0.16);
	color: var(--ht-color-note-fg);
	outline: 0;
}

.ht-root .ht-holding-table__name {
	display: inline-block;
	margin-left: 0.5em;
	font-size: 0.86rem;
	font-weight: 500;
	color: var(--ht-color-text-sub);
	letter-spacing: 0.01em;
}

.ht-root .ht-holding-table__state--high {
	background: rgba(200, 169, 107, 0.18);
	color: var(--ht-color-note-fg);
}

/* ---- セクター比率バー ---- */
.ht-root .ht-sector-bars {
	margin-top: 18px;
	padding: clamp(16px, 2vw, 22px);
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
}

.ht-root .ht-sector-bars__title {
	margin: 0 0 0.8em;
	font-size: 0.92rem;
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
}

.ht-root .ht-sector-bars__list {
	display: grid;
	gap: 8px;
}

.ht-root .ht-sector-bar {
	display: grid;
	grid-template-columns: 6em 1fr 3em;
	align-items: center;
	gap: 10px;
	font-size: 0.88rem;
}

.ht-root .ht-sector-bar__label {
	color: var(--ht-color-text-sub);
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ht-root .ht-sector-bar__track {
	position: relative;
	height: 10px;
	background: rgba(108, 168, 112, 0.10);
	border-radius: 999px;
	overflow: hidden;
}

.ht-root .ht-sector-bar__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--ht-sector-pct, 0%);
	background: linear-gradient(90deg, var(--ht-color-leaf-soft) 0%, var(--ht-color-leaf) 100%);
	border-radius: inherit;
	transition: width 0.35s ease;
}

.ht-root .ht-sector-bar__fill--warn {
	background: linear-gradient(90deg, rgba(200, 169, 107, 0.55) 0%, var(--ht-color-gold) 100%);
}

.ht-root .ht-sector-bar__pct {
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: var(--ht-color-deep);
}

/* セクター偏りアラート */
.ht-root .ht-sector-alert {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6em;
	padding: 0.7em 0.95em;
	background: var(--ht-color-note-bg);
	border-radius: var(--ht-radius-sm);
	font-size: 0.9rem;
	color: var(--ht-color-note-fg);
}

.ht-root .ht-sector-alert__icon {
	font-size: 1.05rem;
	line-height: 1;
}

.ht-root .ht-sector-alert__text {
	flex: 1 1 auto;
	min-width: 0;
}

/* ---- リセットボタン ---- */
.ht-root .ht-holdings-live__actions {
	margin-top: 18px;
	display: flex;
	justify-content: flex-end;
}

.ht-root .ht-reset-button {
	appearance: none;
	background: transparent;
	border: 1px solid var(--ht-color-border);
	color: var(--ht-color-text-sub);
	padding: 0.5em 1em;
	border-radius: var(--ht-radius-pill);
	font-size: 0.82rem;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ht-root .ht-reset-button:hover,
.ht-root .ht-reset-button:focus-visible {
	background: #fbfbf8;
	color: var(--ht-color-deep);
	border-color: var(--ht-color-leaf-soft);
	outline: 0;
}

/* ---- SP 調整 (v0.4 追加分) ---- */
@media (max-width: 600px) {
	.ht-root .ht-sector-bar {
		grid-template-columns: 5.5em 1fr 2.6em;
		gap: 8px;
		font-size: 0.82rem;
	}

	.ht-root .ht-holdings-empty {
		padding: 22px 16px;
	}

	.ht-root .ht-holdings-live__actions {
		justify-content: stretch;
	}

	.ht-root .ht-reset-button {
		width: 100%;
	}

	/* 動的テーブル: SP カード変形時に削除セルを単独 row に */
	.ht-root .ht-holdings-table tbody tr td.ht-holdings-table__action-cell {
		justify-content: flex-end;
		border-bottom: 0;
	}

	.ht-root .ht-holdings-table tbody tr td.ht-holdings-table__action-cell::before {
		content: "";
	}
}

/* =========================================================
   v0.5: あなた向け 今日のぜひ買い (.ht-personal-pick)
   ---------------------------------------------------------
   既存 .ht-pick-card のレイアウトは維持し、判定ラベル行 /
   あなた向けコメント / 待機モード装飾 だけを上から重ねる。
   赤系・強警告色は使わず、深緑〜ゴールド〜生成りに留める。
   ========================================================= */

/* 判定ラベル行 (label + sector chip) */
.ht-root .ht-personal-pick__label-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 4px 0 14px;
}

.ht-root .ht-personal-pick__label {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.35em 0.95em;
	background: rgba(108, 168, 112, 0.14);
	color: var(--ht-color-deep);
	border-radius: var(--ht-radius-pill);
	font-weight: 700;
	font-size: 0.88rem;
	letter-spacing: 0.02em;
	border: 1px solid var(--ht-color-leaf-soft);
}

.ht-root .ht-personal-pick__sector {
	font-size: 0.82rem;
	color: var(--ht-color-text-sub);
	letter-spacing: 0.04em;
}

.ht-root .ht-personal-pick__sector::before {
	content: "セクター: ";
	font-size: 0.78rem;
	color: var(--ht-color-text-sub);
	opacity: 0.85;
	margin-right: 0.2em;
}

/* あなた向けコメント */
.ht-root .ht-personal-pick__comment {
	margin: 14px 0 0;
	padding: 0.95em 1.05em;
	background: rgba(108, 168, 112, 0.08);
	border-left: 3px solid var(--ht-color-leaf);
	border-radius: 6px;
	color: var(--ht-color-deep);
	font-size: 0.93rem;
	line-height: 1.85;
}

.ht-root .ht-personal-pick__comment::before {
	content: "あなた向け ";
	display: inline;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--ht-color-leaf);
	margin-right: 0.5em;
	text-transform: none;
}

/* 注意 chip variant (caution はベージュベース) */
.ht-root .ht-personal-pick__caution {
	background: var(--ht-color-note-bg);
	color: var(--ht-color-note-fg);
}

/* スコア表示 (mode 別に色味を変える) */
.ht-root .ht-pick-score .ht-pick-card__score-value {
	transition: color 0.2s ease;
}

/* mode = empty : はじめの一歩候補 */
.ht-root .ht-personal-pick[data-ht-pick-mode="empty"] .ht-personal-pick__label {
	background: rgba(200, 169, 107, 0.14);
	border-color: rgba(200, 169, 107, 0.55);
	color: var(--ht-color-note-fg);
}

/* mode = concentration : 分散候補 */
.ht-root .ht-personal-pick[data-ht-pick-mode="concentration"] .ht-personal-pick__label {
	background: rgba(108, 168, 112, 0.14);
	border-color: var(--ht-color-leaf-soft);
	color: var(--ht-color-deep);
}

/* mode = balanced : 積み上げ候補 (default 色を維持) */

/* mode = wait : 待機寄り */
.ht-root .ht-personal-pick[data-ht-pick-mode="wait"] {
	background: linear-gradient(180deg, #fbfaf4 0%, var(--ht-color-card) 100%);
}

.ht-root .ht-personal-pick[data-ht-pick-mode="wait"] .ht-personal-pick__label {
	background: rgba(167, 201, 165, 0.20);
	border-color: var(--ht-color-leaf-soft);
	color: var(--ht-color-deep);
}

.ht-root .ht-personal-pick[data-ht-pick-mode="wait"] .ht-personal-pick__label::before {
	content: "🍵 ";
	margin-right: 0.2em;
}

.ht-root .ht-personal-pick[data-ht-pick-mode="wait"] .ht-personal-pick__comment {
	background: rgba(200, 169, 107, 0.10);
	border-left-color: var(--ht-color-gold);
	color: var(--ht-color-note-fg);
}

.ht-root .ht-personal-pick[data-ht-pick-mode="wait"] .ht-personal-pick__comment::before {
	content: "今日の見立て ";
	color: var(--ht-color-gold);
}

/* 待機時はコード/スコアを少し控えめに */
.ht-root .ht-personal-pick[data-ht-pick-mode="wait"] .ht-pick-card__code {
	color: var(--ht-color-text-sub);
	font-weight: 500;
}

.ht-root .ht-personal-pick[data-ht-pick-mode="wait"] .ht-pick-card__score-value {
	color: var(--ht-color-note-fg);
}

/* SP 調整 */
@media (max-width: 600px) {
	.ht-root .ht-personal-pick__label-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.ht-root .ht-personal-pick__comment {
		font-size: 0.88rem;
		line-height: 1.8;
	}
}

/* =========================================================
   v0.6: 投資ペース設定 / 目標距離 / ステージ進捗
   ---------------------------------------------------------
   .ht-pace-card は .ht-holdings-preview グリッド先頭で
   full-width を取る。
   .ht-target-progress は配当ステータス内の goal 行に
   差し替え表示。
   .ht-stage-progress は ステージカードと list の間に挿入。
   バー fill は CSS 変数経由 (style.setProperty('--ht-target-pct'))
   で JS から幅指定 (インライン style ブロックなし)。
   ========================================================= */

/* ---- 8-0. 自分のペースを設定する ---- */
.ht-root .ht-pace-card {
	grid-column: 1 / -1;
	background: linear-gradient(135deg, rgba(108, 168, 112, 0.06) 0%, rgba(200, 169, 107, 0.04) 100%), var(--ht-color-card);
	border: 1px solid var(--ht-color-leaf-soft);
	border-radius: var(--ht-radius-card);
	padding: clamp(20px, 2.4vw, 28px);
	box-shadow: var(--ht-shadow-soft);
}

.ht-root .ht-pace-card__head {
	margin-bottom: 14px;
}

.ht-root .ht-pace-card__title {
	margin: 0 0 0.4em;
	font-size: 1.05rem;
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	gap: 0.4em;
}

.ht-root .ht-pace-card__title::before {
	content: "🍃";
	font-size: 1.1em;
}

.ht-root .ht-pace-card__lead {
	margin: 0;
	color: var(--ht-color-text-sub);
	font-size: 0.9rem;
	line-height: 1.85;
}

.ht-root .ht-pace-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 18px;
}

.ht-root .ht-pace-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}

.ht-root .ht-pace-field--radio {
	grid-column: 1 / -1;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}

.ht-root .ht-pace-field__label {
	font-size: 0.8rem;
	color: var(--ht-color-text-sub);
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 0;
}

.ht-root .ht-pace-field--radio > .ht-pace-field__label {
	width: 100%;
	margin-bottom: 2px;
}

.ht-root .ht-pace-field__input-wrap {
	display: flex;
	align-items: stretch;
	background: #fbfbf8;
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ht-root .ht-pace-field__input-wrap:focus-within {
	border-color: var(--ht-color-leaf);
	box-shadow: 0 0 0 3px rgba(108, 168, 112, 0.18);
	background: var(--ht-color-card);
}

.ht-root .ht-pace-field__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--ht-color-text);
	padding: 0.75em 0.9em;
	line-height: 1.4;
	box-sizing: border-box;
}

.ht-root .ht-pace-field__input::placeholder {
	color: #b3bab4;
}

.ht-root .ht-pace-field__input:focus {
	outline: 0;
}

.ht-root .ht-pace-field__suffix {
	display: inline-flex;
	align-items: center;
	padding: 0 0.9em;
	background: rgba(108, 168, 112, 0.08);
	color: var(--ht-color-text-sub);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.ht-root .ht-pace-radio {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.5em 0.95em;
	background: #fbfbf8;
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-pill);
	cursor: pointer;
	font-size: 0.9rem;
	color: var(--ht-color-text-sub);
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ht-root .ht-pace-radio:hover {
	border-color: var(--ht-color-leaf-soft);
}

.ht-root .ht-pace-radio input[type="radio"] {
	accent-color: var(--ht-color-leaf);
	margin: 0;
}

.ht-root .ht-pace-radio:has(input[type="radio"]:checked) {
	border-color: var(--ht-color-leaf);
	background: rgba(108, 168, 112, 0.12);
	color: var(--ht-color-deep);
	font-weight: 700;
}

.ht-root .ht-pace-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
	align-items: center;
}

.ht-root .ht-pace-form__submit {
	min-width: 180px;
}

.ht-root .ht-pace-form__reset {
	margin-left: auto;
}

.ht-root .ht-pace-message {
	margin: 12px 0 0;
	padding: 0.85em 1em;
	background: rgba(108, 168, 112, 0.12);
	border-left: 3px solid var(--ht-color-leaf);
	border-radius: 6px;
	color: var(--ht-color-deep);
	font-size: 0.93rem;
	line-height: 1.7;
}

.ht-root .ht-pace-card__disclaimer {
	margin: 12px 0 0;
	font-size: 0.78rem;
	color: var(--ht-color-text-sub);
}

/* ---- 目標までの距離 (配当ステータス内) ---- */
.ht-root .ht-dividend-status__row[data-ht-target-progress] {
	grid-column: 1 / -1;
	background: rgba(108, 168, 112, 0.08);
	border-color: var(--ht-color-leaf-soft);
}

.ht-root .ht-dividend-status__row[data-ht-target-progress] .ht-dividend-status__value {
	font-size: 1rem;
	font-weight: 600;
}

.ht-root .ht-target-progress {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.ht-root .ht-target-progress__msg {
	color: var(--ht-color-deep);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.6;
}

.ht-root .ht-target-progress__bar {
	display: block;
	position: relative;
	height: 8px;
	background: rgba(108, 168, 112, 0.12);
	border-radius: 999px;
	overflow: hidden;
}

.ht-root .ht-target-progress__fill {
	display: block;
	height: 100%;
	width: var(--ht-target-pct, 0%);
	background: linear-gradient(90deg, var(--ht-color-leaf-soft) 0%, var(--ht-color-leaf) 100%);
	border-radius: inherit;
	transition: width 0.4s ease;
}

.ht-root .ht-target-progress__pct {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--ht-color-deep);
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.ht-root .ht-dividend-status__row[data-ht-target-progress][data-target-achieved="true"] {
	background: rgba(200, 169, 107, 0.12);
	border-color: rgba(200, 169, 107, 0.55);
}

.ht-root .ht-dividend-status__row[data-ht-target-progress][data-target-achieved="true"] .ht-target-progress__fill {
	background: linear-gradient(90deg, var(--ht-color-leaf) 0%, var(--ht-color-gold) 100%);
}

/* ---- ステージ進捗ブロック ---- */
.ht-root .ht-stage-progress {
	margin: 14px 0 18px;
	padding: 14px 16px;
	background: var(--ht-color-bg);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
}

.ht-root .ht-stage-progress__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 6px;
}

.ht-root .ht-stage-progress__label {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--ht-color-text-sub);
}

.ht-root .ht-stage-progress__pct {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ht-color-deep);
	font-variant-numeric: tabular-nums;
}

.ht-root .ht-stage-progress__bar {
	position: relative;
	height: 8px;
	background: rgba(108, 168, 112, 0.12);
	border-radius: 999px;
	overflow: hidden;
}

.ht-root .ht-stage-progress__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--ht-stage-pct, 0%);
	background: linear-gradient(90deg, var(--ht-color-leaf-soft) 0%, var(--ht-color-leaf) 100%);
	border-radius: inherit;
	transition: width 0.4s ease;
}

.ht-root .ht-stage-progress[data-stage-achieved="true"] .ht-stage-progress__fill {
	background: linear-gradient(90deg, var(--ht-color-leaf) 0%, var(--ht-color-gold) 100%);
}

.ht-root .ht-stage-progress__msg {
	margin: 10px 0 0;
	font-size: 0.88rem;
	color: var(--ht-color-text-sub);
	line-height: 1.7;
}

/* ---- SP 調整 (v0.6) ---- */
@media (max-width: 600px) {
	.ht-root .ht-pace-fields {
		grid-template-columns: 1fr;
	}

	.ht-root .ht-pace-field--radio {
		grid-column: 1 / -1;
	}

	.ht-root .ht-pace-form__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ht-root .ht-pace-form__submit,
	.ht-root .ht-pace-form__reset {
		width: 100%;
		margin-left: 0;
		min-width: 0;
	}

	.ht-root .ht-target-progress__msg {
		font-size: 0.88rem;
	}
}

/* =========================================================
   v0.7: 配当カレンダー / 今月の実り
   ---------------------------------------------------------
   保有株マスターの dividendMonths をもとに、今月の配当予定と
   年間 12 ヶ月の配当タイミングを表示する。月別バーは active
   (金額あり) / current (今月) を data 属性で切替。
   ========================================================= */

.ht-root .ht-dividend-calendar {
	grid-column: 1 / -1;
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-card);
	padding: clamp(20px, 2.4vw, 28px);
	box-shadow: var(--ht-shadow-soft);
}

.ht-root .ht-dividend-calendar__head {
	margin-bottom: 18px;
}

.ht-root .ht-dividend-calendar__title {
	margin: 0 0 0.3em;
	font-size: 1.05rem;
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	gap: 0.4em;
}

.ht-root .ht-dividend-calendar__title::before {
	content: "🗓️";
	font-size: 1.1em;
}

.ht-root .ht-dividend-calendar__lead {
	margin: 0;
	color: var(--ht-color-text-sub);
	font-size: 0.88rem;
	line-height: 1.75;
}

/* ---- 今月の実り ---- */
.ht-root .ht-monthly-fruit {
	margin-bottom: 22px;
	padding: clamp(18px, 2.2vw, 24px);
	background:
		linear-gradient(135deg, rgba(108, 168, 112, 0.10) 0%, rgba(200, 169, 107, 0.08) 100%),
		var(--ht-color-card);
	border: 1px solid var(--ht-color-leaf-soft);
	border-radius: var(--ht-radius-card);
}

.ht-root .ht-monthly-fruit__head {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 14px;
}

.ht-root .ht-monthly-fruit__eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	font-weight: 700;
	color: var(--ht-color-leaf);
	text-transform: none;
}

.ht-root .ht-monthly-fruit__month {
	margin: 0;
	font-size: 1.05rem;
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
}

.ht-root .ht-monthly-fruit__amount {
	margin-top: 6px;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 700;
	color: var(--ht-color-deep);
	letter-spacing: 0.01em;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.ht-root .ht-monthly-fruit__vs-target {
	margin: 6px 0 0;
	font-size: 0.88rem;
	color: var(--ht-color-text-sub);
}

.ht-root .ht-monthly-fruit__vs-target [data-ht-month-vs-target-pct] {
	font-weight: 700;
	color: var(--ht-color-deep);
}

/* 銘柄リスト */
.ht-root .ht-monthly-fruit__list {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: grid;
	gap: 8px;
}

.ht-root .ht-monthly-fruit__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 0.55em 0.85em;
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
}

.ht-root .ht-monthly-fruit__item--none {
	justify-content: center;
	color: var(--ht-color-text-sub);
	font-size: 0.88rem;
	font-style: italic;
	background: transparent;
	border-style: dashed;
}

.ht-root .ht-monthly-fruit__item-head {
	display: flex;
	align-items: baseline;
	gap: 0.5em;
	min-width: 0;
}

.ht-root .ht-monthly-fruit__item-code {
	font-weight: 700;
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
}

.ht-root .ht-monthly-fruit__item-name {
	font-size: 0.88rem;
	color: var(--ht-color-text-sub);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ht-root .ht-monthly-fruit__item-amount {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: var(--ht-color-deep);
}

/* 空状態 */
.ht-root .ht-monthly-fruit__empty {
	margin: 0 0 12px;
	padding: 0.85em 1em;
	background: rgba(255, 255, 255, 0.6);
	border: 1px dashed var(--ht-color-leaf-soft);
	border-radius: var(--ht-radius-sm);
	color: var(--ht-color-text-sub);
	font-size: 0.9rem;
	line-height: 1.75;
	text-align: center;
}

/* マスコット一言 */
.ht-root .ht-monthly-fruit__mascot {
	margin: 0;
	padding: 0.7em 0.9em;
	background: rgba(200, 169, 107, 0.10);
	border-left: 3px solid var(--ht-color-gold);
	border-radius: 6px;
	color: var(--ht-color-note-fg);
	font-size: 0.88rem;
	line-height: 1.7;
	display: flex;
	align-items: center;
	gap: 0.4em;
}

/* ---- 12ヶ月グリッド ---- */
.ht-root .ht-dividend-calendar__year-title {
	margin: 0 0 10px;
	font-size: 0.9rem;
	color: var(--ht-color-text-sub);
	font-weight: 700;
	letter-spacing: 0.06em;
}

.ht-root .ht-dividend-calendar__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
}

.ht-root .ht-dividend-month {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 10px 6px;
	background: var(--ht-color-bg);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
	min-width: 0;
}

.ht-root .ht-dividend-month__label {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--ht-color-text-sub);
	letter-spacing: 0.04em;
}

.ht-root .ht-dividend-month__amount {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--ht-color-text-sub);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* 配当あり */
.ht-root .ht-dividend-month[data-active="true"] {
	background:
		linear-gradient(180deg, rgba(108, 168, 112, 0.14) 0%, rgba(200, 169, 107, 0.10) 100%),
		var(--ht-color-card);
	border-color: var(--ht-color-leaf-soft);
}

.ht-root .ht-dividend-month[data-active="true"] .ht-dividend-month__label,
.ht-root .ht-dividend-month[data-active="true"] .ht-dividend-month__amount {
	color: var(--ht-color-deep);
}

.ht-root .ht-dividend-month[data-active="true"] .ht-dividend-month__amount::before {
	content: "🌿 ";
	font-size: 0.85em;
}

/* 今月 (current) */
.ht-root .ht-dividend-month[data-current="true"] {
	border: 2px solid var(--ht-color-leaf);
	box-shadow: 0 0 0 3px rgba(108, 168, 112, 0.16);
	transform: translateY(-1px);
}

.ht-root .ht-dividend-month[data-current="true"] .ht-dividend-month__label::after {
	content: " (今月)";
	font-size: 0.7rem;
	color: var(--ht-color-leaf);
	font-weight: 600;
	letter-spacing: 0;
}

.ht-root .ht-dividend-calendar__note {
	margin: 14px 0 0;
	font-size: 0.78rem;
	color: var(--ht-color-text-sub);
}

/* ---- SP 調整 (v0.7) ---- */
@media (max-width: 760px) {
	.ht-root .ht-dividend-calendar__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.ht-root .ht-dividend-calendar__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ht-root .ht-dividend-month {
		padding: 8px 4px;
	}

	.ht-root .ht-dividend-month__amount {
		font-size: 0.74rem;
	}

	.ht-root .ht-dividend-month[data-current="true"] .ht-dividend-month__label::after {
		content: " (今月)";
		display: block;
		font-size: 0.62rem;
	}

	.ht-root .ht-monthly-fruit__item {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.ht-root .ht-monthly-fruit__item-name {
		white-space: normal;
	}
}

/* =========================================================
   v0.8: ウォッチリスト + 銘柄カルテ
   ---------------------------------------------------------
   保有株とは別に「気になる銘柄」をブラウザ内に置いておくための
   静かな比較空間。買いを煽らず、「まだ買わなくていい / 見ておく」
   トーンで構成する。
   ========================================================= */

.ht-root .ht-watchlist {
	grid-column: 1 / -1;
	background: var(--ht-color-bg);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-card);
	padding: clamp(20px, 2.4vw, 28px);
}

.ht-root .ht-watchlist__head {
	margin-bottom: 16px;
}

.ht-root .ht-watchlist__title {
	margin: 0 0 0.3em;
	font-size: 1.05rem;
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	gap: 0.4em;
}

.ht-root .ht-watchlist__title::before {
	content: "👀";
	font-size: 1.1em;
}

.ht-root .ht-watchlist__lead {
	margin: 0;
	color: var(--ht-color-text-sub);
	font-size: 0.88rem;
	line-height: 1.75;
}

/* ---- 追加フォーム ---- */
.ht-root .ht-watchlist-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: end;
	padding: 14px;
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
	margin-bottom: 16px;
}

.ht-root .ht-watchlist-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ht-root .ht-watchlist-form__label {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--ht-color-text-sub);
}

.ht-root .ht-watchlist-form__input {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	color: var(--ht-color-text);
	background: #fbfbf8;
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
	padding: 0.75em 0.9em;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ht-root .ht-watchlist-form__input::placeholder {
	color: #b3bab4;
}

.ht-root .ht-watchlist-form__input:focus {
	outline: 0;
	border-color: var(--ht-color-leaf);
	background: var(--ht-color-card);
	box-shadow: 0 0 0 3px rgba(108, 168, 112, 0.18);
}

.ht-root .ht-watchlist-form__submit {
	white-space: nowrap;
}

.ht-root .ht-watchlist-form__note {
	grid-column: 1 / -1;
	margin: 0;
	padding: 0.7em 0.9em;
	background: rgba(108, 168, 112, 0.10);
	border-left: 3px solid var(--ht-color-leaf);
	border-radius: 6px;
	color: var(--ht-color-deep);
	font-size: 0.9rem;
	line-height: 1.7;
}

.ht-root .ht-watchlist-form__note--warn {
	background: rgba(200, 169, 107, 0.14);
	border-left-color: var(--ht-color-gold);
	color: var(--ht-color-note-fg);
}

.ht-root .ht-watchlist-form__note--ok {
	background: rgba(108, 168, 112, 0.13);
	border-left-color: var(--ht-color-leaf);
	color: var(--ht-color-deep);
}

/* ---- 空状態 ---- */
.ht-root .ht-watchlist__empty {
	text-align: center;
	padding: clamp(22px, 3.5vw, 32px) 16px;
	background: var(--ht-color-card);
	border: 1px dashed var(--ht-color-leaf-soft);
	border-radius: var(--ht-radius-card);
}

.ht-root .ht-watchlist__empty-icon {
	margin: 0 0 0.4em;
	font-size: 1.8rem;
	line-height: 1;
}

.ht-root .ht-watchlist__empty-title {
	margin: 0 0 0.3em;
	font-size: 1rem;
	font-weight: 700;
	color: var(--ht-color-deep);
}

.ht-root .ht-watchlist__empty-desc {
	margin: 0;
	font-size: 0.88rem;
	color: var(--ht-color-text-sub);
	line-height: 1.75;
}

/* ---- カードグリッド ---- */
.ht-root .ht-watchlist-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
}

/* ---- 銘柄カルテカード ---- */
.ht-root .ht-watch-card,
.ht-root .ht-stock-karte {
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-card);
	padding: clamp(16px, 2vw, 22px);
	box-shadow: var(--ht-shadow-soft);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ht-root .ht-watch-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
}

.ht-root .ht-watch-card__symbol {
	display: flex;
	align-items: baseline;
	gap: 0.4em;
	flex-wrap: wrap;
	min-width: 0;
}

.ht-root .ht-watch-card__code {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
}

.ht-root .ht-watch-card__divider {
	color: var(--ht-color-border);
}

.ht-root .ht-watch-card__name {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--ht-color-text-sub);
}

.ht-root .ht-watch-card__delete {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--ht-color-text-sub);
	font-size: 1.1rem;
	line-height: 1;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	flex: 0 0 auto;
	transition: background 0.15s ease, color 0.15s ease;
}

.ht-root .ht-watch-card__delete:hover,
.ht-root .ht-watch-card__delete:focus-visible {
	background: rgba(200, 169, 107, 0.16);
	color: var(--ht-color-note-fg);
	outline: 0;
}

/* メタ情報 (dl) */
.ht-root .ht-stock-karte__meta {
	margin: 0;
	display: grid;
	gap: 4px 12px;
	grid-template-columns: max-content 1fr;
	font-size: 0.88rem;
}

.ht-root .ht-stock-karte__row {
	display: contents;
}

.ht-root .ht-stock-karte__row > dt {
	color: var(--ht-color-text-sub);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding-top: 2px;
}

.ht-root .ht-stock-karte__row > dd {
	margin: 0;
	color: var(--ht-color-text);
	font-weight: 500;
}

/* 一言メモ */
.ht-root .ht-stock-karte__note {
	margin: 4px 0 0;
	padding: 0.7em 0.85em;
	background: var(--ht-color-bg);
	border-left: 3px solid var(--ht-color-leaf-soft);
	border-radius: 6px;
	color: var(--ht-color-text);
	font-size: 0.88rem;
	line-height: 1.75;
}

/* 注意 chip */
.ht-root .ht-stock-karte__caution {
	margin: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5em;
	padding: 0.55em 0.85em;
	background: var(--ht-color-note-bg);
	border-radius: var(--ht-radius-pill);
	color: var(--ht-color-note-fg);
	font-size: 0.82rem;
	font-weight: 600;
}

.ht-root .ht-stock-karte__caution-text::before {
	content: "☁️ ";
	font-size: 0.85em;
}

/* 見ておく理由 */
.ht-root .ht-stock-karte__reason {
	margin: 0;
	color: var(--ht-color-text-sub);
	font-size: 0.84rem;
	line-height: 1.75;
}

.ht-root .ht-stock-karte__reason-label {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--ht-color-leaf);
	margin-right: 0.4em;
}

/* 詳しく見る (stub) */
.ht-root .ht-watch-card__foot {
	margin-top: 4px;
	display: flex;
	justify-content: flex-end;
}

.ht-root .ht-stock-karte__detail {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	padding: 0.4em 0.95em;
	background: transparent;
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-pill);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ht-color-text-sub);
	text-decoration: none;
	cursor: not-allowed;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ht-root .ht-stock-karte__detail::after {
	content: " →";
	opacity: 0.6;
}

.ht-root .ht-stock-karte__detail:hover,
.ht-root .ht-stock-karte__detail:focus-visible {
	background: #fbfbf8;
	color: var(--ht-color-deep);
	border-color: var(--ht-color-leaf-soft);
	outline: 0;
}

/* ---- リセット + 注記 ---- */
.ht-root .ht-watchlist__note {
	margin: 14px 0 0;
	font-size: 0.78rem;
	color: var(--ht-color-text-sub);
}

.ht-root .ht-watchlist__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}

/* ---- pick card 内のウォッチヒント ---- */
.ht-root .ht-personal-pick__watch-hint {
	margin: 10px 0 0;
	padding: 0.6em 0.85em;
	background: rgba(167, 201, 165, 0.16);
	border-radius: 6px;
	color: var(--ht-color-deep);
	font-size: 0.84rem;
	line-height: 1.7;
}

.ht-root .ht-personal-pick__watch-hint::before {
	content: "👀 ";
	margin-right: 0.2em;
}

.ht-root .ht-personal-pick__watch-hint--in-list {
	background: rgba(200, 169, 107, 0.16);
	color: var(--ht-color-note-fg);
}

/* ---- SP 調整 (v0.8) ---- */
@media (max-width: 600px) {
	.ht-root .ht-watchlist-form {
		grid-template-columns: 1fr;
	}

	.ht-root .ht-watchlist-form__submit {
		width: 100%;
	}

	.ht-root .ht-watchlist-grid {
		grid-template-columns: 1fr;
	}

	.ht-root .ht-stock-karte__meta {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.ht-root .ht-stock-karte__row {
		display: flex;
		flex-direction: column;
		gap: 2px;
	}
}

/* =========================================================
   v0.9: 銘柄カルテ詳細モーダル (.ht-stock-detail)
   ---------------------------------------------------------
   既存 .ht-modal__panel の内側にレンダリングされる。
   data-ht-modal-type="stock-detail" のモーダルで表示する。
   サンプルチャートは inline SVG。
   ========================================================= */

/* 詳しく見るリンクは v0.9 で有効化されるためカーソルを戻す */
.ht-root .ht-stock-karte__detail[data-ht-watch-detail-open] {
	cursor: pointer;
}

/* モーダル本体 (panel 内に描画される) */
.ht-modal[data-ht-modal-type="stock-detail"] .ht-modal__panel {
	width: min(640px, 100%);
}

.ht-modal[data-ht-modal-type="stock-detail"] .ht-modal__title {
	font-size: 1.25rem;
	letter-spacing: 0.02em;
}

.ht-stock-detail {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* メタ情報 (セクター / 配当感 / 長期保有適性) */
.ht-stock-detail__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	padding: 12px 14px;
	background: var(--ht-color-bg);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
	font-size: 0.86rem;
}

.ht-stock-detail__meta-item {
	display: inline-flex;
	align-items: baseline;
	gap: 0.3em;
}

.ht-stock-detail__meta-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--ht-color-text-sub);
}

.ht-stock-detail__meta-value {
	color: var(--ht-color-deep);
	font-weight: 600;
}

/* セクション共通 */
.ht-stock-detail__section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ht-stock-detail__heading {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--ht-color-deep);
	display: flex;
	align-items: center;
	gap: 0.4em;
}

.ht-stock-detail__heading::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 14px;
	background: var(--ht-color-leaf);
	border-radius: 2px;
}

/* --- サンプルチャート --- */
.ht-stock-detail__trend-label {
	margin: 0;
	display: inline-block;
	padding: 0.25em 0.85em;
	background: rgba(108, 168, 112, 0.14);
	color: var(--ht-color-deep);
	border-radius: var(--ht-radius-pill);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	align-self: flex-start;
}

.ht-stock-detail__chart-wrap {
	background:
		linear-gradient(180deg, rgba(108, 168, 112, 0.04) 0%, transparent 60%),
		var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
	padding: 8px 10px 6px;
}

.ht-stock-detail__chart {
	display: block;
	width: 100%;
	height: 110px;
}

.ht-stock-detail__chart-baseline {
	stroke: var(--ht-color-border);
	stroke-width: 1;
	stroke-dasharray: 3 4;
	opacity: 0.7;
}

.ht-stock-detail__chart-area {
	/* fill is set inline via gradient ref */
}

.ht-stock-detail__chart-line {
	stroke: var(--ht-color-leaf);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ht-stock-detail__chart-dot {
	fill: var(--ht-color-leaf);
	stroke: var(--ht-color-card);
	stroke-width: 1.5;
}

.ht-stock-detail__chart-note {
	margin: 4px 0 0;
	font-size: 0.74rem;
	color: var(--ht-color-text-sub);
	text-align: right;
	font-style: italic;
}

.ht-stock-detail__trend-desc {
	margin: 0;
	font-size: 0.9rem;
	color: var(--ht-color-text-sub);
	line-height: 1.8;
}

/* --- 配当履歴 --- */
.ht-stock-detail__dividends {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ht-stock-detail__dividend-row {
	display: grid;
	grid-template-columns: 4.5em 1fr;
	align-items: center;
	gap: 10px;
	padding: 6px 10px;
	background: var(--ht-color-bg);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
}

.ht-stock-detail__dividend-year {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--ht-color-text-sub);
	letter-spacing: 0.04em;
}

.ht-stock-detail__dividend-bar-wrap {
	margin: 0;
	display: grid;
	grid-template-columns: 1fr max-content;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ht-stock-detail__dividend-bar {
	display: block;
	height: 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ht-color-leaf-soft) 0%, var(--ht-color-leaf) 100%);
	width: var(--ht-div-bar-pct, 0%);
	min-width: 4px;
	transition: width 0.35s ease;
}

.ht-stock-detail__dividend-value {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: var(--ht-color-deep);
	font-size: 0.88rem;
	text-align: right;
}

/* --- チェックポイント --- */
.ht-stock-detail__checks {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ht-stock-detail__check {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
}

.ht-stock-detail__check > dt {
	margin: 0;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--ht-color-leaf);
}

.ht-stock-detail__check > dd {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.8;
	color: var(--ht-color-text);
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5em;
}

.ht-stock-detail__check--caution {
	background: var(--ht-color-note-bg);
	border-color: rgba(200, 169, 107, 0.55);
}

.ht-stock-detail__check--caution > dt {
	color: var(--ht-color-note-fg);
}

.ht-stock-detail__check--caution > dd {
	color: var(--ht-color-note-fg);
}

.ht-stock-detail__caution-text {
	flex: 1 1 auto;
	min-width: 0;
}

/* --- チェックリスト --- */
.ht-stock-detail__checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ht-stock-detail__checklist-item {
	position: relative;
	padding: 0.45em 0.65em 0.45em 1.85em;
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--ht-color-text);
}

.ht-stock-detail__checklist-item::before {
	content: "☐";
	position: absolute;
	left: 0.65em;
	top: 0.45em;
	color: var(--ht-color-leaf);
	font-size: 1rem;
	line-height: 1.5;
}

/* --- 注記 --- */
.ht-stock-detail__disclaimer {
	margin: 6px 0 0;
	padding: 8px 12px;
	background: var(--ht-color-bg);
	border-radius: var(--ht-radius-sm);
	font-size: 0.76rem;
	color: var(--ht-color-text-sub);
	line-height: 1.7;
}

/* ---- SP 調整 (v0.9 stock-detail) ---- */
@media (max-width: 600px) {
	.ht-modal[data-ht-modal-type="stock-detail"] .ht-modal__title {
		font-size: 1.1rem;
	}

	.ht-stock-detail__meta {
		flex-direction: column;
		gap: 4px;
	}

	.ht-stock-detail__chart {
		height: 90px;
	}

	.ht-stock-detail__dividend-row {
		grid-template-columns: 3.5em 1fr;
	}
}

/* =========================================================
   v0.10: 配当の森ナビ (.ht-mascot-guide)
   ---------------------------------------------------------
   保有株 / 投資ペース / ピックモード / 配当ステージ に応じて
   メッセージが変わる、穏やかな世界観カード。マスコット画像は
   未実装で、絵文字 (🦉) で代用。将来差し替えやすい構造にする。
   ========================================================= */

.ht-root .ht-mascot-guide {
	margin: clamp(22px, 3vw, 32px) auto 0;
	max-width: 760px;
	padding: clamp(16px, 2vw, 22px) clamp(18px, 2.5vw, 26px);
	background:
		linear-gradient(135deg, rgba(108, 168, 112, 0.07) 0%, rgba(200, 169, 107, 0.05) 100%),
		var(--ht-color-card);
	border: 1px solid var(--ht-color-leaf-soft);
	border-radius: var(--ht-radius-card);
	box-shadow: var(--ht-shadow-soft);
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: background 0.3s ease, border-color 0.3s ease;
}

.ht-root .ht-mascot-guide__head {
	display: flex;
	align-items: center;
	gap: 0.55em;
}

.ht-root .ht-mascot-guide__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-leaf-soft);
	font-size: 1.2rem;
	line-height: 1;
	flex: 0 0 auto;
	box-shadow: 0 2px 6px rgba(31, 92, 66, 0.08);
}

.ht-root .ht-mascot-guide__title {
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--ht-color-leaf);
}

.ht-root .ht-mascot-guide__message {
	margin: 0;
	font-size: clamp(1rem, 1.6vw, 1.1rem);
	font-weight: 600;
	line-height: 1.75;
	color: var(--ht-color-deep);
	letter-spacing: 0.01em;
}

.ht-root .ht-mascot-guide__sub {
	margin: 0;
	display: flex;
	gap: 0.55em;
	font-size: 0.84rem;
	line-height: 1.75;
	color: var(--ht-color-text-sub);
	padding-top: 8px;
	border-top: 1px dashed var(--ht-color-border);
}

.ht-root .ht-mascot-guide__sub-label {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	padding: 0.05em 0.65em;
	height: max-content;
	background: rgba(108, 168, 112, 0.12);
	border-radius: var(--ht-radius-pill);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--ht-color-leaf);
}

.ht-root .ht-mascot-guide__sub-text {
	flex: 1 1 auto;
	min-width: 0;
}

/* mode variant: wait → ゴールド寄りの落ち着き */
.ht-root .ht-mascot-guide[data-mascot-mode="wait"] {
	background:
		linear-gradient(135deg, rgba(200, 169, 107, 0.08) 0%, rgba(108, 168, 112, 0.04) 100%),
		var(--ht-color-card);
	border-color: rgba(200, 169, 107, 0.55);
}

.ht-root .ht-mascot-guide[data-mascot-mode="wait"] .ht-mascot-guide__title {
	color: var(--ht-color-gold);
}

.ht-root .ht-mascot-guide[data-mascot-mode="wait"] .ht-mascot-guide__icon {
	border-color: rgba(200, 169, 107, 0.55);
}

/* mode variant: concentration → 注意ベージュ寄り */
.ht-root .ht-mascot-guide[data-mascot-mode="concentration"] {
	background:
		linear-gradient(135deg, var(--ht-color-note-bg) 0%, rgba(108, 168, 112, 0.04) 100%),
		var(--ht-color-card);
	border-color: rgba(200, 169, 107, 0.45);
}

.ht-root .ht-mascot-guide[data-mascot-mode="concentration"] .ht-mascot-guide__title {
	color: var(--ht-color-note-fg);
}

/* mode variant: balanced → デフォルト緑のまま */

/* mode variant: empty → 薄い土色 (これから育つ感) */
.ht-root .ht-mascot-guide[data-mascot-mode="empty"] {
	background:
		linear-gradient(135deg, rgba(167, 201, 165, 0.16) 0%, rgba(255, 255, 255, 0.4) 100%),
		var(--ht-color-card);
	border-style: dashed;
}

/* ---- SP 調整 (v0.10) ---- */
@media (max-width: 600px) {
	.ht-root .ht-mascot-guide {
		margin-top: 20px;
	}

	.ht-root .ht-mascot-guide__message {
		font-size: 0.96rem;
	}

	.ht-root .ht-mascot-guide__sub {
		flex-direction: column;
		gap: 6px;
	}

	.ht-root .ht-mascot-guide__sub-label {
		align-self: flex-start;
	}
}

/* =========================================================
   v0.11: 初回ガイド (.ht-onboarding) + サンプル投入 / 一括リセット
   ---------------------------------------------------------
   ヒーロー直下に配置される導入カード。data-ht-onboarding-state で
   "empty" (体験データなし、サンプルボタンを目立たせる) と "active"
   (体験データあり、控えめ表示) を切り替える。
   ========================================================= */

.ht-root .ht-onboarding-section {
	padding-block: clamp(28px, 4vw, 48px);
	background: var(--ht-color-card);
}

.ht-root .ht-onboarding {
	padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px);
	background:
		linear-gradient(135deg, rgba(108, 168, 112, 0.08) 0%, rgba(200, 169, 107, 0.05) 100%),
		var(--ht-color-card);
	border: 1px solid var(--ht-color-leaf-soft);
	border-radius: var(--ht-radius-card);
	box-shadow: var(--ht-shadow-soft);
	display: flex;
	flex-direction: column;
	gap: 18px;
	transition: border-color 0.3s ease, background 0.3s ease;
}

/* empty 時は破線で「これから」感を出す */
.ht-root .ht-onboarding[data-ht-onboarding-state="empty"] {
	border-style: dashed;
}

/* active 時は淡い背景に寄せる */
.ht-root .ht-onboarding[data-ht-onboarding-state="active"] {
	background:
		linear-gradient(135deg, rgba(167, 201, 165, 0.08) 0%, rgba(255, 255, 255, 0.4) 100%),
		var(--ht-color-card);
}

/* ヘッダー (icon + title + lead) */
.ht-root .ht-onboarding__head {
	display: flex;
	align-items: flex-start;
	gap: clamp(14px, 2vw, 20px);
}

.ht-root .ht-onboarding__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-leaf-soft);
	border-radius: 50%;
	font-size: 1.4rem;
	line-height: 1;
	flex: 0 0 auto;
	box-shadow: 0 2px 6px rgba(31, 92, 66, 0.08);
}

.ht-root .ht-onboarding__head-text {
	flex: 1 1 auto;
	min-width: 0;
}

.ht-root .ht-onboarding__title {
	margin: 0 0 0.3em;
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
}

.ht-root .ht-onboarding__lead {
	margin: 0;
	color: var(--ht-color-text-sub);
	font-size: 0.92rem;
	line-height: 1.85;
}

/* ステップ一覧 */
.ht-root .ht-onboarding__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.ht-root .ht-onboarding__step {
	display: flex;
	align-items: center;
	gap: 0.55em;
	padding: 0.7em 0.9em;
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
	font-size: 0.86rem;
	color: var(--ht-color-text);
	line-height: 1.5;
}

.ht-root .ht-onboarding__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: rgba(108, 168, 112, 0.14);
	color: var(--ht-color-deep);
	border-radius: 50%;
	font-size: 0.78rem;
	font-weight: 700;
	flex: 0 0 auto;
}

.ht-root .ht-onboarding__step-text {
	flex: 1 1 auto;
	min-width: 0;
}

/* アクション (サンプル投入 / 一括リセット) */
.ht-root .ht-onboarding__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.ht-root .ht-sample-button {
	min-width: 200px;
}

.ht-root .ht-reset-all-button {
	margin-left: auto;
	font-size: 0.8rem;
}

/* empty 時はサンプルを目立たせる (パルス感のある box-shadow) */
.ht-root .ht-onboarding[data-ht-onboarding-state="empty"] .ht-sample-button {
	box-shadow: 0 0 0 0 rgba(108, 168, 112, 0.35);
	animation: ht-onboarding-pulse 2.4s ease-in-out infinite;
}

@keyframes ht-onboarding-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(108, 168, 112, 0.20); }
	50%      { box-shadow: 0 0 0 6px rgba(108, 168, 112, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.ht-root .ht-onboarding[data-ht-onboarding-state="empty"] .ht-sample-button {
		animation: none;
	}
}

/* active 時はサンプルボタンを控えめなアウトラインに */
.ht-root .ht-onboarding[data-ht-onboarding-state="active"] .ht-sample-button {
	background: transparent;
	color: var(--ht-color-deep);
	border: 1px solid var(--ht-color-leaf-soft);
	animation: none;
}

.ht-root .ht-onboarding[data-ht-onboarding-state="active"] .ht-sample-button:hover,
.ht-root .ht-onboarding[data-ht-onboarding-state="active"] .ht-sample-button:focus-visible {
	background: rgba(108, 168, 112, 0.08);
}

/* localStorage 注記 */
.ht-root .ht-local-note {
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 0.55em;
	padding: 0.85em 1em;
	background: var(--ht-color-bg);
	border-radius: var(--ht-radius-sm);
	color: var(--ht-color-text-sub);
	font-size: 0.82rem;
	line-height: 1.75;
}

.ht-root .ht-local-note__icon {
	font-size: 1rem;
	line-height: 1.6;
	flex: 0 0 auto;
}

.ht-root .ht-local-note__text {
	flex: 1 1 auto;
}

/* ---- SP 調整 (v0.11) ---- */
@media (max-width: 760px) {
	.ht-root .ht-onboarding__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ht-root .ht-onboarding__head {
		flex-direction: column;
		gap: 10px;
	}

	.ht-root .ht-onboarding__steps {
		grid-template-columns: 1fr;
	}

	.ht-root .ht-onboarding__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ht-root .ht-sample-button {
		width: 100%;
		min-width: 0;
	}

	.ht-root .ht-reset-all-button {
		width: 100%;
		margin-left: 0;
	}
}

/* =========================================================
   v0.12: セクションナビ (.ht-section-nav) + Bottom CTA 補強
   ---------------------------------------------------------
   ページ長くなった /haitou/ の体験導線整理。Onboarding と
   Section 2 の間に挿入される 5 リンクの一覧。data-ht-scroll-target
   を持つので、既存の click 委譲経由で URL hash を残さず移動する。
   ========================================================= */

.ht-root .ht-section-nav {
	padding-block: clamp(20px, 3vw, 32px);
	background: var(--ht-color-bg);
}

.ht-root .ht-section-nav__inner {
	padding: clamp(20px, 2.6vw, 28px) clamp(20px, 2.6vw, 32px);
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-card);
	box-shadow: var(--ht-shadow-soft);
}

.ht-root .ht-section-nav__head {
	margin-bottom: 14px;
	text-align: center;
}

.ht-root .ht-section-nav__title {
	margin: 0 0 0.3em;
	font-size: clamp(1rem, 1.8vw, 1.15rem);
	color: var(--ht-color-deep);
	letter-spacing: 0.03em;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}

.ht-root .ht-section-nav__title::before {
	content: "🌲";
	font-size: 0.95em;
}

.ht-root .ht-section-nav__lead {
	margin: 0;
	color: var(--ht-color-text-sub);
	font-size: 0.86rem;
	line-height: 1.75;
}

.ht-root .ht-section-nav__list {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.ht-root .ht-section-nav__item {
	min-width: 0;
}

.ht-root .ht-section-nav__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 14px 8px;
	text-align: center;
	text-decoration: none;
	background: var(--ht-color-bg);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
	color: var(--ht-color-text);
	font-size: 0.86rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	min-height: 76px;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.ht-root .ht-section-nav__link:hover,
.ht-root .ht-section-nav__link:focus-visible {
	background: rgba(108, 168, 112, 0.08);
	border-color: var(--ht-color-leaf-soft);
	color: var(--ht-color-deep);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(31, 92, 66, 0.08);
	outline: 0;
}

.ht-root .ht-section-nav__icon {
	font-size: 1.4rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: 50%;
	transition: border-color 0.15s ease;
}

.ht-root .ht-section-nav__link:hover .ht-section-nav__icon,
.ht-root .ht-section-nav__link:focus-visible .ht-section-nav__icon {
	border-color: var(--ht-color-leaf-soft);
}

.ht-root .ht-section-nav__text {
	display: inline-block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.ht-root .ht-section-nav__note {
	margin: 14px 0 0;
	font-size: 0.76rem;
	color: var(--ht-color-text-sub);
	text-align: center;
}

/* Bottom CTA: 2 ボタン構成 + 注記 */
.ht-root .ht-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.ht-root .ht-cta__note {
	margin: 16px 0 0;
	font-size: 0.78rem;
	color: var(--ht-color-text-sub);
}

/* ---- SP 調整 (v0.12) ---- */
@media (max-width: 760px) {
	.ht-root .ht-section-nav__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.ht-root .ht-section-nav__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ht-root .ht-section-nav__link {
		min-height: 68px;
		padding: 12px 6px;
		font-size: 0.82rem;
	}

	.ht-root .ht-section-nav__icon {
		width: 32px;
		height: 32px;
		font-size: 1.15rem;
	}

	.ht-root .ht-cta__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ht-root .ht-cta__actions .ht-btn {
		width: 100%;
	}
}

/* =========================================================
   v0.13: MVP デモ品質の最終磨き込み
   ---------------------------------------------------------
   新機能なし。disclaimer の読みやすさ・onboarding active 時の
   抑え気味な見た目・stock-detail モーダルの SP 余白・pick
   disclaimer の読みやすさ などを微調整する。
   ========================================================= */

/* pick disclaimer: 2 行になる場合の line-height を整える */
.ht-root .ht-pick-card__disclaimer {
	line-height: 1.75;
	font-size: 0.78rem;
	color: var(--ht-color-text-sub);
}

/* onboarding active 時: サンプルボタンを更に控えめに */
.ht-root .ht-onboarding[data-ht-onboarding-state="active"] .ht-sample-button {
	opacity: 0.92;
	font-weight: 500;
}

.ht-root .ht-onboarding[data-ht-onboarding-state="active"] .ht-sample-button:hover,
.ht-root .ht-onboarding[data-ht-onboarding-state="active"] .ht-sample-button:focus-visible {
	opacity: 1;
}

/* セクションナビ: 480px 以下でラベルが折り返しても OK のように */
@media (max-width: 480px) {
	.ht-root .ht-section-nav__text {
		white-space: normal;
		font-size: 0.8rem;
		line-height: 1.4;
	}

	.ht-root .ht-section-nav__lead {
		font-size: 0.82rem;
	}
}

/* Hero lead: SP の余裕 */
@media (max-width: 600px) {
	.ht-root .ht-hero__lead {
		font-size: 0.92rem;
		line-height: 1.85;
	}
}

/* stock-detail モーダル SP: 内余白を少し緩めて読みやすく */
@media (max-width: 480px) {
	.ht-modal[data-ht-modal-type="stock-detail"] .ht-modal__panel {
		padding: 22px 18px 26px;
	}

	.ht-stock-detail {
		gap: 14px;
	}

	.ht-stock-detail__check > dd {
		font-size: 0.88rem;
		line-height: 1.75;
	}

	.ht-stock-detail__checklist-item {
		font-size: 0.86rem;
	}
}

/* 配当カレンダー 12 ヶ月グリッド: 320px 級の極小 SP でも読める保険 */
@media (max-width: 360px) {
	.ht-root .ht-dividend-calendar__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ht-root .ht-dividend-month__amount {
		font-size: 0.78rem;
	}
}

/* =========================================================
   v0.15: ポポル画像 (10 段階成長マスコット)
   ---------------------------------------------------------
   配当の森ナビの 🦉 絵文字を img に置換し、配当の森ステージ
   内に「現在のポポル」カードを追加。年間配当に応じて Lv1〜LvMax
   の画像を JS が src と alt を差し替える。
   ========================================================= */

.ht-root .ht-poporu-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	max-width: 100%;
}

/* ---- 配当の森ナビ内のポポル (.ht-mascot-guide__icon を拡張) ---- */
.ht-root .ht-mascot-guide__icon--poporu {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	padding: 4px;
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-leaf-soft);
	box-shadow: 0 2px 6px rgba(31, 92, 66, 0.08);
	overflow: hidden;
	flex: 0 0 auto;
}

.ht-root .ht-poporu-img--nav {
	width: 56px;
	height: 56px;
}

/* ---- 配当の森ステージ内のポポルカード ---- */
.ht-root .ht-poporu-stage-card {
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 20px);
	margin: 14px 0 18px;
	padding: clamp(12px, 1.8vw, 18px) clamp(14px, 2vw, 22px);
	background:
		linear-gradient(135deg, rgba(108, 168, 112, 0.08) 0%, rgba(200, 169, 107, 0.06) 100%),
		var(--ht-color-card);
	border: 1px solid var(--ht-color-leaf-soft);
	border-radius: var(--ht-radius-card);
	box-shadow: var(--ht-shadow-soft);
}

.ht-root .ht-poporu-stage-card .ht-poporu-img--stage {
	width: 120px;
	height: 120px;
	flex: 0 0 120px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: var(--ht-radius-card);
	padding: 6px;
}

.ht-root .ht-poporu-stage-card__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ht-root .ht-poporu-stage-card__label {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--ht-color-text-sub);
}

.ht-root .ht-poporu-stage-card__level {
	font-size: 1.2rem;
	color: var(--ht-color-deep);
	letter-spacing: 0.02em;
}

.ht-root .ht-poporu-stage-card__annual {
	margin: 0;
	font-size: 0.86rem;
	color: var(--ht-color-text-sub);
}

.ht-root .ht-poporu-stage-card__annual [data-ht-poporu-annual] {
	color: var(--ht-color-deep);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	margin-left: 0.25em;
}

.ht-root .ht-poporu-stage-card__caption {
	margin: 4px 0 0;
	font-size: 0.88rem;
	color: var(--ht-color-text-sub);
	line-height: 1.75;
}

/* ---- SP 調整 (v0.15) ---- */
@media (max-width: 600px) {
	.ht-root .ht-mascot-guide__icon--poporu {
		width: 56px;
		height: 56px;
		border-radius: 14px;
	}

	.ht-root .ht-poporu-img--nav {
		width: 48px;
		height: 48px;
	}

	.ht-root .ht-poporu-stage-card {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.ht-root .ht-poporu-stage-card .ht-poporu-img--stage {
		width: 96px;
		height: 96px;
		flex: 0 0 96px;
		align-self: center;
	}
}

@media (max-width: 360px) {
	.ht-root .ht-poporu-stage-card .ht-poporu-img--stage {
		width: 88px;
		height: 88px;
		flex: 0 0 88px;
	}
}

/* =========================================================
   v0.16: ポポル表示の最終磨き込み
   ---------------------------------------------------------
   サイズや色味は維持。読みやすさのスペース、ナビ icon の
   ホバー時の穏やかな浮き、極小 SP のカードパディング微調整。
   ========================================================= */

/* ナビ icon: 画像読み込みアニメで点滅しないよう transparent な背景に */
.ht-root .ht-mascot-guide__icon--poporu .ht-poporu-img--nav {
	transition: transform 0.4s ease;
}

.ht-root .ht-mascot-guide:hover .ht-mascot-guide__icon--poporu .ht-poporu-img--nav,
.ht-root .ht-mascot-guide:focus-within .ht-mascot-guide__icon--poporu .ht-poporu-img--nav {
	transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
	.ht-root .ht-mascot-guide__icon--poporu .ht-poporu-img--nav {
		transition: none;
	}
}

/* ステージカード body: label と level の間に少しゆとり */
.ht-root .ht-poporu-stage-card__body {
	gap: 6px;
}

.ht-root .ht-poporu-stage-card__caption {
	margin-top: 6px;
}

/* ステージ image: 余白を整え、PC でほんの少しコンパクトに */
@media (min-width: 601px) {
	.ht-root .ht-poporu-stage-card .ht-poporu-img--stage {
		padding: 4px;
	}
}

/* 極小 SP のカード padding を引き締める */
@media (max-width: 360px) {
	.ht-root .ht-poporu-stage-card {
		padding: 14px 14px;
		gap: 10px;
	}

	.ht-root .ht-poporu-stage-card__level {
		font-size: 1.1rem;
	}

	.ht-root .ht-poporu-stage-card__caption {
		font-size: 0.84rem;
	}
}

/* =========================================================
   v0.24 (PR4c): localStorage → DB 移行カード
   ---------------------------------------------------------
   .ht-onboarding の直後に JS で挿入される。
   既存生成り・若葉・深緑トーンに馴染ませる。赤色は使わない。
   ========================================================= */
.ht-root .ht-migration-card {
	margin-top: 18px;
	padding: clamp(18px, 2.6vw, 26px) clamp(20px, 3vw, 30px);
	background:
		linear-gradient(135deg, rgba(108, 168, 112, 0.10) 0%, rgba(255, 255, 255, 0.6) 100%),
		var(--ht-color-card);
	border: 1px solid var(--ht-color-leaf-soft);
	border-radius: var(--ht-radius-card);
	box-shadow: var(--ht-shadow-soft);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ht-root .ht-migration-card__title {
	margin: 0;
	color: var(--ht-color-leaf);
	font-size: clamp(1.05rem, 2vw, 1.18rem);
	font-weight: 600;
	line-height: 1.4;
}

.ht-root .ht-migration-card__body {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.65;
	color: var(--ht-color-ink);
}

.ht-root .ht-migration-card__counts {
	margin: 0;
	padding: 12px 16px;
	background: rgba(167, 201, 165, 0.10);
	border-radius: 10px;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 0.9rem;
	line-height: 1.5;
}

.ht-root .ht-migration-card__count {
	margin: 0;
	color: var(--ht-color-ink);
}

.ht-root .ht-migration-card__count strong {
	color: var(--ht-color-leaf);
	font-weight: 600;
}

.ht-root .ht-migration-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 2px;
}

.ht-root .ht-migration-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 18px;
	border-radius: 999px;
	font-size: 0.93rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.ht-root .ht-migration-card__btn:focus {
	outline: 2px solid var(--ht-color-leaf-soft);
	outline-offset: 2px;
}

.ht-root .ht-migration-card__btn[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.ht-root .ht-migration-card__btn--primary {
	background: var(--ht-color-leaf);
	color: #ffffff;
	border-color: var(--ht-color-leaf);
}

.ht-root .ht-migration-card__btn--primary:hover:not([disabled]) {
	background: #5a9461;
	border-color: #5a9461;
}

.ht-root .ht-migration-card__btn--primary:active:not([disabled]) {
	transform: translateY(1px);
}

.ht-root .ht-migration-card__btn--secondary {
	background: transparent;
	color: var(--ht-color-leaf);
	border-color: var(--ht-color-leaf-soft);
}

.ht-root .ht-migration-card__btn--secondary:hover:not([disabled]) {
	background: rgba(167, 201, 165, 0.15);
}

.ht-root .ht-migration-card__note {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.55;
	color: rgba(31, 92, 66, 0.7);
}

.ht-root .ht-migration-card__status {
	margin: 0;
	padding: 10px 14px;
	background: rgba(167, 201, 165, 0.15);
	border-radius: 8px;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--ht-color-leaf);
}

/* state ごとの強調 (赤は使わない) */
.ht-root .ht-migration-card[data-state="working"] .ht-migration-card__status {
	background: rgba(108, 168, 112, 0.10);
}

.ht-root .ht-migration-card[data-state="done"] {
	background:
		linear-gradient(135deg, rgba(167, 201, 165, 0.16) 0%, rgba(255, 255, 255, 0.7) 100%),
		var(--ht-color-card);
}

.ht-root .ht-migration-card[data-state="done"] .ht-migration-card__status {
	background: rgba(108, 168, 112, 0.18);
	font-weight: 600;
}

.ht-root .ht-migration-card[data-state="error"] .ht-migration-card__status {
	background: rgba(200, 169, 107, 0.18);
	color: #8a6d3b;
}

/* =========================================================
   v0.25 (PR5A): データ鮮度バナー / 待機表示
   ---------------------------------------------------------
   今日のぜひ買いカード ([data-ht-pick-card]) 内に JS で
   遅延注入される要素。CSS で 3 状態 (fresh/stale/expired)
   を切り替える。赤は使わない。
   ========================================================= */
.ht-root .ht-pick-freshness {
	margin: 12px 0 0;
	padding: 6px 10px;
	background: rgba(167, 201, 165, 0.12);
	border-left: 3px solid var(--ht-color-leaf-soft);
	border-radius: 6px;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--ht-color-leaf);
}

.ht-root .ht-pick-card[data-ht-pick-freshness="stale"] .ht-pick-freshness {
	background: rgba(200, 169, 107, 0.14);
	border-left-color: #c8a96b;
	color: #8a6d3b;
}

.ht-root .ht-pick-disclaimer {
	margin: 8px 0 0;
	font-size: 0.78rem;
	line-height: 1.55;
	color: rgba(31, 92, 66, 0.65);
}

/* expired 時の待機表示。pick カード内既存コンテンツを CSS で隠して
   待機表示を見せる。既存 DOM 構造は変えず、display 切替のみ。 */
.ht-root .ht-pick-wait {
	padding: 18px 18px 14px;
	background:
		linear-gradient(135deg, rgba(167, 201, 165, 0.10) 0%, rgba(250, 246, 237, 0.6) 100%),
		var(--ht-color-card);
	border: 1px dashed var(--ht-color-leaf-soft);
	border-radius: var(--ht-radius-card);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ht-root .ht-pick-wait__title {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--ht-color-leaf);
}

.ht-root .ht-pick-wait__body {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--ht-color-ink);
}

.ht-root .ht-pick-wait__sub {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.55;
	color: rgba(31, 92, 66, 0.65);
}

/* expired のとき、pick カード内の既存表示を隠して待機表示だけ見せる */
.ht-root .ht-pick-card[data-ht-pick-freshness="expired"] .ht-personal-pick__label-row,
.ht-root .ht-pick-card[data-ht-pick-freshness="expired"] [data-ht-pick-comment],
.ht-root .ht-pick-card[data-ht-pick-freshness="expired"] [data-ht-pick-watch-hint],
.ht-root .ht-pick-card[data-ht-pick-freshness="expired"] [data-ht-pick-caution-row],
.ht-root .ht-pick-card[data-ht-pick-freshness="expired"] .ht-pick-card__head,
.ht-root .ht-pick-card[data-ht-pick-freshness="expired"] .ht-pick-card__body,
.ht-root .ht-pick-card[data-ht-pick-freshness="expired"] .ht-pick-card__footer {
	display: none;
}

/* =========================================================
   PR5D-4: pick 履歴 UI + 再生成 UI (haitou.js が動的に DOM 注入)
   ---------------------------------------------------------
   投資助言にならないトーン: 深緑 / 若葉 / 生成り / ゴールドのみ。
   赤は使わない。「推奨履歴」「的中率」「儲かった」は表現禁止。
   未ログイン / DB mode OFF 時は DOM 自体が無いので CSS は何も
   表示しない (no-op)。
   ========================================================= */

/* --- 再生成ボタン (pick カード footer に注入) --- */
.ht-root .ht-pick-regenerate {
	margin: 10px 0 6px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ht-root .ht-pick-regenerate__button {
	align-self: flex-start;
	padding: 6px 14px;
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-leaf-soft);
	border-radius: 999px;
	color: var(--ht-color-leaf);
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ht-root .ht-pick-regenerate__button:hover:not(:disabled) {
	background: rgba(167, 201, 165, 0.18);
}

.ht-root .ht-pick-regenerate__button:disabled {
	opacity: 0.55;
	cursor: progress;
}

.ht-root .ht-pick-regenerate__status {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.5;
	color: rgba(31, 92, 66, 0.7);
}

/* --- 履歴セクション (pick カード直後に注入) --- */
.ht-root .ht-pick-history {
	margin: 16px 0 0;
	padding: 16px 18px 14px;
	background:
		linear-gradient(135deg, rgba(167, 201, 165, 0.06) 0%, rgba(250, 246, 237, 0.55) 100%),
		var(--ht-color-card);
	border: 1px dashed var(--ht-color-leaf-soft);
	border-radius: var(--ht-radius-card);
}

.ht-root .ht-pick-history__header {
	margin-bottom: 10px;
}

.ht-root .ht-pick-history__title {
	margin: 0 0 4px;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ht-color-leaf);
}

.ht-root .ht-pick-history__lead {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.55;
	color: rgba(31, 92, 66, 0.65);
}

.ht-root .ht-pick-history__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ht-root .ht-pick-history__item {
	padding: 10px 12px;
	background: var(--ht-color-card);
	border-left: 3px solid var(--ht-color-leaf-soft);
	border-radius: 6px;
}

.ht-root .ht-pick-history__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 2px;
}

.ht-root .ht-pick-history__date {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ht-color-leaf);
	letter-spacing: 0.02em;
}

.ht-root .ht-pick-history__label {
	font-size: 0.78rem;
	color: rgba(31, 92, 66, 0.7);
}

.ht-root .ht-pick-history__stock {
	margin: 2px 0 4px;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--ht-color-ink);
}

.ht-root .ht-pick-history__summary {
	margin: 0 0 4px;
	font-size: 0.82rem;
	line-height: 1.55;
	color: var(--ht-color-ink);
}

.ht-root .ht-pick-history__meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 0.72rem;
	color: rgba(31, 92, 66, 0.55);
}

.ht-root .ht-pick-history__empty {
	margin: 0;
	padding: 12px 14px;
	background: rgba(250, 246, 237, 0.5);
	border-radius: 6px;
	font-size: 0.82rem;
	line-height: 1.55;
	color: rgba(31, 92, 66, 0.6);
	list-style: none;
}

/* =========================================================
   PR6C: 保存状態カード (plan status)
   ---------------------------------------------------------
   ログイン + DB mode ON のときだけ haitou.js が動的注入する。
   投資助言にならない穏やかなトーン。赤は使わない。上限到達は
   琥珀寄りの落ち着いた色で通知する。
   ========================================================= */
.ht-root .ht-plan-status {
	margin: 0 0 20px;
	padding: 16px 18px 14px;
	background:
		linear-gradient(135deg, rgba(167, 201, 165, 0.08) 0%, rgba(250, 246, 237, 0.55) 100%),
		var(--ht-color-card);
	border: 1px dashed var(--ht-color-leaf-soft);
	border-radius: var(--ht-radius-card);
}

.ht-root .ht-plan-status__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 12px;
	margin-bottom: 6px;
}

.ht-root .ht-plan-status__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ht-color-leaf);
}

.ht-root .ht-plan-status__badge {
	display: inline-block;
	padding: 2px 10px;
	background: var(--ht-color-leaf);
	color: #ffffff;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.ht-root .ht-plan-status[data-ht-plan-name="standard"] .ht-plan-status__badge {
	background: #c8a96b; /* gold tone */
	color: #ffffff;
}

.ht-root .ht-plan-status__lead {
	margin: 0 0 12px;
	font-size: 0.78rem;
	line-height: 1.55;
	color: rgba(31, 92, 66, 0.65);
}

.ht-root .ht-plan-status__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 12px;
}

@media (max-width: 600px) {
	.ht-root .ht-plan-status__grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

.ht-root .ht-plan-status__item {
	margin: 0;
	padding: 8px 10px;
	background: var(--ht-color-card);
	border-left: 3px solid var(--ht-color-leaf-soft);
	border-radius: 6px;
}

.ht-root .ht-plan-status__item[data-ht-plan-near] {
	border-left-color: #c8a96b; /* gold accent at 80%+ */
	background: rgba(200, 169, 107, 0.07);
}

.ht-root .ht-plan-status__label {
	margin: 0 0 2px;
	font-size: 0.74rem;
	color: rgba(31, 92, 66, 0.7);
}

.ht-root .ht-plan-status__value {
	margin: 0 0 6px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ht-color-ink);
}

.ht-root .ht-plan-status__bar {
	position: relative;
	width: 100%;
	height: 4px;
	background: rgba(31, 92, 66, 0.08);
	border-radius: 2px;
	overflow: hidden;
}

.ht-root .ht-plan-status__bar-fill {
	display: block;
	height: 100%;
	width: 0%;
	background: var(--ht-color-leaf-soft);
	transition: width 0.3s ease;
}

.ht-root .ht-plan-status__item[data-ht-plan-near] .ht-plan-status__bar-fill {
	background: #c8a96b;
}

/* --- Standard 案内 (Free + 80%+ のときだけ表示) --- */
.ht-root .ht-plan-status__upgrade {
	margin: 6px 0 0;
	padding: 10px 12px;
	background: rgba(200, 169, 107, 0.10);
	border-left: 3px solid #c8a96b;
	border-radius: 6px;
}

.ht-root .ht-plan-status__upgrade[hidden] {
	display: none;
}

.ht-root .ht-plan-status__upgrade-text {
	margin: 0 0 8px;
	font-size: 0.82rem;
	line-height: 1.6;
	color: var(--ht-color-ink);
}

.ht-root .ht-plan-status__upgrade-button {
	align-self: flex-start;
	padding: 6px 14px;
	background: var(--ht-color-card);
	border: 1px solid #c8a96b;
	border-radius: 999px;
	color: #8a6d3b;
	font-size: 0.8rem;
	font-weight: 500;
	cursor: not-allowed;
	transition: background-color 0.15s ease;
}

.ht-root .ht-plan-status__upgrade-button[aria-disabled="true"]:hover {
	background: rgba(200, 169, 107, 0.14);
}

/* --- 上限到達メッセージ (専用 DOM) --- */
.ht-root .ht-plan-limit-message {
	margin: 10px 0 0;
	padding: 10px 12px;
	background: rgba(200, 169, 107, 0.12);
	border-left: 3px solid #c8a96b;
	border-radius: 6px;
	font-size: 0.82rem;
	line-height: 1.6;
	color: #8a6d3b;
}

.ht-root .ht-plan-limit-message[hidden] {
	display: none;
}

/* =========================================================
   PR6E 関連学習・記録ツール (affiliate-ready placeholder)
   ---------------------------------------------------------
   方針:
   - 広告っぽくギラつかせない (赤や派手な黄色は使わない)
   - CTA を強くしない (準備中は控えめ)
   - 配色は深緑 / 若葉 / 生成り / ボーダーの落ち着いた系統
   - SP では 1 カラム
   - 「今日の判断材料」「PickEngine」のセクションとは
     視覚的に距離を取る
   ========================================================= */
.ht-root .ht-affiliate-section {
	background: var(--ht-color-bg);
}

.ht-root .ht-affiliate-section__header {
	text-align: center;
}

.ht-root .ht-affiliate-section__eyebrow {
	color: var(--ht-color-text-sub);
	letter-spacing: 0.04em;
}

.ht-root .ht-affiliate-section__title {
	margin-top: 0.4em;
	font-size: clamp(1.3rem, 2.6vw, 1.7rem);
	color: var(--ht-color-deep);
}

.ht-root .ht-affiliate-section__lead {
	color: var(--ht-color-text-sub);
}

.ht-root .ht-affiliate-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 28px;
	margin-bottom: 24px;
	padding: 0;
	list-style: none;
}

.ht-root .ht-affiliate-grid__item {
	display: flex;
	margin: 0;
	padding: 0;
}

@media (max-width: 768px) {
	.ht-root .ht-affiliate-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

.ht-root .ht-affiliate-card {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
	padding: 18px 20px;
	background: var(--ht-color-card);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-card);
	box-shadow: var(--ht-shadow-soft);
}

.ht-root .ht-affiliate-card[data-ht-affiliate-status="placeholder"] {
	opacity: 0.96;
}

.ht-root .ht-affiliate-card__badge {
	display: inline-block;
	align-self: flex-start;
	padding: 2px 10px;
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--ht-color-deep);
	background: rgba(108, 168, 112, 0.14); /* leaf-soft の薄いトーン */
	border-radius: var(--ht-radius-pill);
	letter-spacing: 0.03em;
}

.ht-root .ht-affiliate-card__title {
	margin: 4px 0 0;
	font-size: 1.02rem;
	line-height: 1.5;
	color: var(--ht-color-deep);
	font-weight: 700;
}

.ht-root .ht-affiliate-card__text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.75;
	color: var(--ht-color-text-sub);
}

.ht-root .ht-affiliate-card__action {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	margin-top: auto;
	padding: 6px 14px;
	font-size: 0.82rem;
	color: var(--ht-color-text-sub);
	background: rgba(0, 0, 0, 0.035);
	border: 1px solid var(--ht-color-border);
	border-radius: var(--ht-radius-pill);
	cursor: not-allowed;
}

/* Active affiliate link button.
   placeholder からの差は最小限。深緑文字 + 控えめな border。
   過度な強調 (赤・派手な gold・アニメーション) はしない。 */
.ht-root .ht-affiliate-card__action--active {
	color: var(--ht-color-deep);
	background: var(--ht-color-card);
	border-color: var(--ht-color-deep);
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease-out, color 0.15s ease-out;
}
.ht-root .ht-affiliate-card__action--active:hover,
.ht-root .ht-affiliate-card__action--active:focus-visible {
	color: var(--ht-color-card);
	background: var(--ht-color-deep);
	outline: none;
}

/* PR 表記 (セクションリード文の直下) */
.ht-root .ht-affiliate-note {
	margin: 0 0 20px;
	padding: 10px 14px;
	background: var(--ht-color-card);
	color: var(--ht-color-text-sub);
	font-size: 0.8rem;
	line-height: 1.7;
	border: 1px dashed var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
}
.ht-root .ht-affiliate-note a {
	color: var(--ht-color-deep);
	text-decoration: underline;
}

.ht-root .ht-affiliate-section__note {
	margin-top: 16px;
	padding: 14px 18px;
	background: var(--ht-color-card);
	color: var(--ht-color-text-sub);
	font-size: 0.82rem;
	line-height: 1.75;
	border: 1px dashed var(--ht-color-border);
	border-radius: var(--ht-radius-sm);
}
