/**
 * Windows XP (Luna ブルー) デザインシステム エントリーポイント (xp.scss)
 * マイクロパーシャル統合（全ファイル150行以下厳守）
 */
/**
 * Windows XP Luna UI デザイントークン変数 (_variables.scss)
 * 2026年推奨ブレイクポイント (SP: ~599px / Tab: 600~1024px / PC: 1025px~)
 */



















/**
 * Windows XP Luna UI 共通Mixin (_mixins.scss)
 */
/* グラデーション定義 */










/**
 * 基本スタイル・共通レイアウトグリッド (_base.scss)
 * 全ページ共通の左右ガター（PC:32px / Tab:20px / SP:14px）を一元管理（150行以下厳守）
 */
@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&family=BIZ+UDGothic:wght@400;700&display=swap');

:root {
  --desk: #ECE9D8; --white: #FFFFFF;
  --ink: #1B1B1B; --ink-1: #1B1B1B; --ink-2: #3F3F46; --ink-3: #57534E;
  --line: #ACA899; --line-soft: #D6D3C4;
  --frame: #0055EA; --win-blue: #0055EA; --link: #0046D5;
  --xp-blue: #0055EA; --xp-blue-dark: #003DC4;
  --select: #316AC5; --hover-orange: #F8B636; --focus-blue: #98B8EA;
  --green: #3C9A2E; --green-dark: #1D6B13; --red: #D3471F; --balloon: #FFFFE1;
  --pane-a: #7BA2E7; --pane-b: #6375D6; --pane-head: #215DC6; --pane-body: #D6DFF7;
  --g-title: linear-gradient(180deg, #3B8CFF 0%, #0A5BE8 10%, #0055EA 45%, #0050E0 85%, #003DC4 100%);
  --g-title-off: linear-gradient(180deg, #9DB9EB 0%, #7A9FE3 12%, #7596DE 85%, #6A86D2 100%);
  --g-btn: linear-gradient(180deg, #FFFFFF 0%, #F6F5F0 45%, #E8E6DC 90%, #D8D5C7 100%);
  --g-start: linear-gradient(180deg, #6FCB5C 0%, #45A834 18%, #3C9A2E 55%, #2E8B22 90%, #25761B 100%);
  --g-taskbar: linear-gradient(180deg, #3168D5 0%, #4993E6 5%, #2157D7 12%, #2663E0 85%, #1941A5 100%);
  --g-tray: linear-gradient(180deg, #0C8BE9 0%, #139EE9 8%, #0F7ED9 50%, #0E6CC9 100%);
  --g-pane-head: linear-gradient(90deg, #FFFFFF 0%, #C6D3F7 100%);
  --g-list-head: linear-gradient(180deg, #FFFFFF 0%, #F2F1EA 70%, #E3E1D3 100%);
  --g-menubar: linear-gradient(180deg, #F7F6F0 0%, #ECE9D8 100%);
  --font: 'BIZ UDPGothic', 'Noto Sans JP', 'Meiryo', sans-serif;
  --font-system: 'BIZ UDPGothic', 'Noto Sans JP', 'Meiryo', sans-serif;
  --mono: 'BIZ UDGothic', 'MS Gothic', monospace;
  --gutter: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #DFDDD0; color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

.canvas {
  width: 100%; max-width: 1240px; margin: 0 auto; position: relative;
  background: var(--desk); border-left: 1px solid #C8C4B4; border-right: 1px solid #C8C4B4; overflow-x: hidden;
}

p { text-wrap: pretty; }

/* 共通パンくず・セクション・ページ導入部 */
.crumb { padding: 14px var(--gutter) 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.crumb a { color: var(--link); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.wrap { padding: 14px var(--gutter) 36px; box-sizing: border-box; }
.sec { padding: 28px var(--gutter); box-sizing: border-box; }

.intro { display: flex; gap: 16px; align-items: center; margin: 4px 0 20px; }
.intro h1 { font-size: 26px; color: #0A246A; line-height: 1.35; font-weight: 700; }
.intro p { font-size: 15.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.65; }

.h-sec {
  display: flex; align-items: center; gap: 12px; font-size: 21px;
  font-weight: 700; color: #0A246A; margin-bottom: 8px;
}
.h-sec::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, #4A7FDB, rgba(74, 127, 219, 0)); }

.lead { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 14px; }

/* 規約・記事ドキュメント共通タイポグラフィ（16px基準） */
.doc-body, .article-body { font-size: 16px; line-height: 1.85; color: var(--ink); }
.doc-body h2, .article-body h2 {
  font-size: 19px; font-weight: 700; color: #0A246A;
  border-bottom: 2px solid #0055EA; padding-bottom: 6px; margin: 24px 0 10px;
}
.doc-body h2:first-child, .article-body h2:first-child { margin-top: 0; }
.doc-body h3, .article-body h3 { font-size: 16.5px; font-weight: 700; color: #0F172A; margin: 16px 0 6px; }
.doc-body p, .article-body p { margin-bottom: 14px; }
.doc-body ul, .doc-body ol, .article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 14px; }
.doc-body li, .article-body li { margin-bottom: 6px; }
.doc-footer-date {
  margin-top: 24px; padding-top: 12px; border-top: 1px solid #D6D3C4;
  text-align: right; font-size: 13.5px; color: var(--ink-3);
}

/* Google AdSense 広告インテント完全ブロック */
.google-anno-sc, .google-anno-skip[role="link"], .google-anno-term,
[data-google-vignette="false"][role="link"], div[class*="google-anno"] {
  display: none !important; visibility: hidden !important; pointer-events: none !important;
  opacity: 0 !important; height: 0 !important; width: 0 !important;
}

/**
 * Windows XP Luna UI ウィンドウ・バー体系 (_win.scss)
 * .win / .xp-win / .xp-window の視覚仕様を100%統一（150行以下厳守）
 */
.win, .xp-win, .xp-window {
  background: var(--desk); border: 2px solid var(--frame); border-top: 0;
  border-radius: 7px 7px 3px 3px; overflow: hidden; margin-bottom: 24px;
}
.win.flat { margin-bottom: 0; }

.titlebar, .bar, .win-title, .xp-titlebar {
  min-height: 36px; background: var(--g-title); display: flex; align-items: center;
  justify-content: space-between; padding: 4px 8px 4px 12px; gap: 8px; color: #fff;
  border-radius: 6px 6px 0 0; border: 1px solid #0831D9; border-bottom: 0; user-select: none;
}

.titlebar .t, .bar-title, .win-title-text, .xp-titlebar-text {
  font-weight: 700; font-size: 15.5px; letter-spacing: 0.02em; text-shadow: 1px 1px 0 #0F1F6F;
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 6px; color: #fff;
}

.titlebar .ico, .win-title-icon {
  width: 22px; height: 22px; border-radius: 4px; background: #fff; color: var(--frame);
  font-size: 12.5px; font-weight: 700; display: grid; place-items: center;
  box-shadow: inset 0 -2px 0 #C6D3F7; flex-shrink: 0;
}

.tb-btns, .bar-btns, .win-controls, .xp-titlebar-buttons {
  display: flex; align-items: center; gap: 3px; flex-shrink: 0;
}

.tb-btns .tb-btn, .bar-btns .bar-b, .win-controls .win-btn, .xp-titlebar-buttons span {
  width: 22px; height: 22px; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 3px;
  background: linear-gradient(180deg, #5A9BFF, #2263E6 60%, #1B52CC);
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700;
  cursor: default; padding: 0; line-height: 20px;
}

.tb-btns .tb-btn.close, .bar-btns .bar-b:last-child, .win-controls .win-btn-close, .xp-titlebar-buttons .xp-btn-close {
  background: linear-gradient(180deg, #F0A086 0%, #E35A3C 45%, #C8401C 100%);
}

.tb-btns .tb-btn i, .win-controls .win-btn i { display: block; background: #fff; }
.tb-btns .tb-btn.min i, .win-controls .win-btn.min i { width: 8px; height: 2px; margin-top: 8px; }
.tb-btns .tb-btn.max i, .win-controls .win-btn.max i {
  width: 10px; height: 9px; background: transparent; border: 2px solid #fff; border-top-width: 3px;
}

.menubar {
  display: flex; align-items: center; gap: 2px; padding: 4px 10px;
  background: var(--g-menubar); border-bottom: 1px solid #D2CFBE;
  font-size: 14px; color: var(--ink); user-select: none;
}
.menubar span { padding: 2px 8px; border-radius: 2px; }
.menubar span.on { background: #E3E8F8; color: #0A246A; font-weight: 700; }

.win-toolbar {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px;
  background: #ECE9D8; border-bottom: 1px solid #C8C4B4; align-items: center; min-height: 42px;
}
.win-toolbar.xp-tab-bar {
  padding: 8px 12px 0; border-bottom: 2px solid #0055EA;
  align-items: flex-end; overflow-x: auto; flex-wrap: nowrap;
}

.xp-tab {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  flex: 0 0 auto; background: #DEDAD0; color: #334155; border: 1px solid #7F9DB9;
  border-bottom: none; border-radius: 5px 5px 0 0; padding: 8px 16px;
  font-size: 15px; font-weight: 700; cursor: pointer; min-height: 38px; text-decoration: none;
}
.xp-tab:hover { background: #EAE7DD; color: #003399; }
.xp-tab.active, .xp-tab.on {
  background: #fff; color: #0055EA; border: 2px solid #0055EA;
  border-bottom: 2px solid #fff; margin-bottom: -2px; position: relative; z-index: 2;
}

.win-body, .xp-content { padding: 18px 20px; background: #fff; }
.panel-sunken { background: #FAFAF5; border: 1px solid #B5C3E0; border-radius: 4px; padding: 12px; }

.win-stat, .statusbar, .win-status, .win-statusbar {
  background: var(--desk); border-top: 1px solid #ACA899; padding: 7px 14px;
  font-size: 13.5px; color: var(--ink-2); display: flex;
  justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.grow { flex: 1; min-width: 0; }

/**
 * Windows XP Luna UI ボタン・フォーム・テーブル・バッジ (_controls.scss)
 * 未定義だった .xp-btn / .lv / .badge / .tag 等を完全統合（150行以下厳守）
 */
.btn, .xp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #003C74;
  border-radius: 4px;
  background: var(--g-btn);
  color: #1B1B1B;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}
.btn:hover, .xp-btn:hover { box-shadow: inset 0 0 0 2px var(--hover-orange); }
.btn.default { box-shadow: inset 0 0 0 2px var(--focus-blue); }

.btn.lg { min-height: 50px; font-size: 17px; padding: 0 26px; }
.btn.sm, .btn-sm, .xp-btn.sm, .copybtn, .copype-btn, .sample-preset-btn, .preset-btn {
  min-height: 36px;
  font-size: 14px;
  padding: 4px 12px;
}

/* 主役CTAボタン（強い影と立体感は実行・成約CTAのみに限定） */
.btn.start, .btn-xp-accent, .btn-success {
  background: var(--g-start);
  border: 1px solid var(--green-dark);
  color: #fff !important;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(29, 107, 19, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.start:hover, .btn-xp-accent:hover, .btn-success:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn.blue, .btn-xp-primary, .xp-btn.primary, .btn-primary {
  background: linear-gradient(180deg, #4F94FF 0%, #1F66EA 50%, #0A50D0 100%);
  border: 1px solid #0831D9;
  color: #fff !important;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.28);
  border-radius: 4px;
  padding: 8px 18px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(10, 80, 208, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.blue:hover, .btn-xp-primary:hover, .xp-btn.primary:hover, .btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn[disabled], .btn.dis, .xp-btn[disabled] {
  color: #8E8C82 !important; border-color: #C9C7BA; background: #F4F3EE;
  box-shadow: none; cursor: not-allowed; transform: none;
}

.tb-btn:not(.win-btn):not(.min):not(.max):not(.close) {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 14px; background: #F6F5EE; color: #1B1B1B;
  border: 1px solid #7F9DB9; border-radius: 3px; font-size: 14.5px; font-weight: 700;
  cursor: pointer; min-height: 36px; text-decoration: none;
}
.tb-btn:not(.win-btn):not(.min):not(.max):not(.close):hover {
  background: #FFFFFF; border-color: #0055EA; color: #0055EA;
}

/* フォーム入力要素（全画面16px基準・iOSズーム防止） */
.modern-textarea, .modern-input, textarea.txt, textarea.inp, input.txt, input.inp, .field,
.win-body input[type="text"], .win-body input[type="number"], .win-body select, .win-body textarea {
  border: 1px solid #7F9DB9;
  border-radius: 3px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  padding: 9px 12px;
  color: var(--ink);
  line-height: 1.65;
  width: 100%;
  min-height: 42px;
}
.win-body textarea, .modern-textarea, textarea.txt, textarea.inp { min-height: 120px; }
.field.mono { font-family: var(--mono); line-height: 1.8; }
.modern-textarea:focus, .modern-input:focus, .field:focus,
.win-body input[type="text"]:focus, .win-body input[type="number"]:focus, .win-body select:focus, .win-body textarea:focus {
  border-color: #0055EA; box-shadow: 0 0 0 2px #C7DCF9; outline: none;
}

fieldset.group {
  border: 1px solid #C8C4B4; border-radius: 4px; padding: 12px 14px 14px; background: #FAFAF5;
}
fieldset.group legend { color: #0A246A; padding: 0 6px; font-size: 15.5px; font-weight: 700; }

label.chk, label.rad { display: flex; align-items: center; gap: 8px; font-size: 15.5px; min-height: 36px; cursor: pointer; }
.box { width: 16px; height: 16px; border: 1px solid #1C5180; background: #fff; flex: none; border-radius: 2px; text-align: center; line-height: 14px; font-size: 13px; }
.box.on { color: #1D6B13; font-weight: 700; background: #F0FDF4; }

/* XPリストビュー表 (.lv) */
table.lv { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
table.lv th {
  background: var(--g-list-head); color: #0A246A; font-weight: 700; text-align: left;
  padding: 10px 12px; border-bottom: 1px solid #ACA899; border-right: 1px solid #E3E1D3; font-size: 14.5px;
}
table.lv td { padding: 10px 12px; border-bottom: 1px solid #ECE9D8; color: var(--ink); vertical-align: middle; }
table.lv tr.sel td { background: #F0F6FF; }

/* バッジ・タグ */
.badge {
  display: inline-flex; align-items: center; gap: 6px; background: #FFFFFF;
  border: 1px solid #B5C3E0; border-radius: 4px; padding: 4px 10px;
  font-size: 13.5px; font-weight: 700; color: #0A246A;
}
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px;
  border-radius: 3px; line-height: 1.4; vertical-align: middle;
}
.tag.hot { background: #FEE2E2; color: #B91C1C; border: 1px solid #FCA5A5; }
.tag.new { background: #E0F2FE; color: #0369A1; border: 1px solid #7DD3FC; }
.tag.rec { background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }

/**
 * Windows XP Luna UI タスクペイン・漢字アイコン・タスクバー・共通枠 (_taskpane.scss)
 * 150行以下厳守
 */
/* 漢字アイコンタイル */
.kt {
  width: 48px; height: 48px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 23px; border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.16);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3); flex: none;
}
.kt.s { width: 32px; height: 32px; font-size: 16px; border-radius: 6px; }
.kt.xs { width: 22px; height: 22px; font-size: 12px; border-radius: 5px; }
.kt.l { width: 60px; height: 60px; font-size: 28px; border-radius: 11px; }

.c-blue { background: linear-gradient(180deg, #5C9BFF 0%, #2F6FE0 50%, #1B4FB8 100%); }
.c-orange { background: linear-gradient(180deg, #FFC45C 0%, #F5A623 50%, #D9771A 100%); }
.c-green { background: linear-gradient(180deg, #7ED46A 0%, #4CB848 50%, #2E8B22 100%); }
.c-purple { background: linear-gradient(180deg, #B293EE 0%, #8A63D2 50%, #5E3FA8 100%); }
.c-red { background: linear-gradient(180deg, #F58D70 0%, #E35A3C 50%, #B8341B 100%); }
.c-teal, .c-cyan { background: linear-gradient(180deg, #63D1D6 0%, #25A8B0 50%, #167A82 100%); }

/* タスクペイン */
.taskpane {
  background: linear-gradient(180deg, var(--pane-a), var(--pane-b));
  padding: 12px;
  border-radius: 4px;
}
.tp-box { margin-bottom: 12px; border-radius: 5px 5px 3px 3px; overflow: hidden; }
.tp-box:last-child { margin-bottom: 0; }

.tp-head {
  background: var(--g-pane-head); color: var(--pane-head); font-weight: 700;
  font-size: 15px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center;
}
.tp-head.blue { background: linear-gradient(90deg, #0C32B0, #2A5BD8); color: #fff; }
.tp-head .chev {
  width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid #9DB4E8;
  display: grid; place-items: center; font-size: 11px; color: var(--pane-head);
}

.tp-body { background: var(--pane-body); padding: 10px 12px; font-size: 15px; color: #1E3A8A; }
.tp-body a, .tp-link {
  display: flex; align-items: center; gap: 8px; color: var(--pane-head);
  text-decoration: none; padding: 6px 4px; min-height: 36px; border-radius: 3px; cursor: pointer;
}
.tp-body a:hover, .tp-link:hover { background: rgba(255, 255, 255, 0.55); color: #0A2E8A; }
.tp-link.on { font-weight: 700; color: #0A2E8A; background: rgba(255, 255, 255, 0.75); }
.tp-link .n { margin-left: auto; color: #3B5598; font-size: 13.5px; font-weight: 700; }

/* タスクバー（フッター下部） */
.taskbar {
  min-height: 46px; background: var(--g-taskbar); display: flex; align-items: stretch;
  color: #fff; font-size: 14.5px;
}
.startbtn {
  display: flex; align-items: center; gap: 8px; padding: 0 22px 0 14px;
  background: var(--g-start); border-radius: 0 18px 18px 0; font-weight: 700;
  font-size: 16px; color: #fff; text-decoration: none;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45); box-shadow: inset -2px 0 3px rgba(0, 0, 0, 0.25);
}
.taskitems { display: flex; gap: 5px; padding: 5px 10px; flex: 1; align-items: center; }
.taskitem {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 34px;
  border-radius: 3px; background: linear-gradient(180deg, #3C81F3, #2B6EE8 60%, #2560D8);
  border: 1px solid #1B4AB5; font-size: 14px; color: #fff; text-decoration: none; min-width: 136px;
}
.taskitem:hover { filter: brightness(1.08); }
.taskitem.on { background: linear-gradient(180deg, #1E52B7, #1A4AAE); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.4); font-weight: 700; }

.tray {
  display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: var(--g-tray); border-left: 1px solid #092E83;
  box-shadow: inset 1px 0 1px #18BBFF; font-size: 13.5px;
}

/* 安全バッジ・共通AdSense枠・回遊バナー */
.safe-tag, .sec-badge {
  background: #E8F5E9; color: #1B5E20; border: 1px solid #81C784;
  padding: 2px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 700;
}
.safe-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #2DC21B; box-shadow: 0 0 0 2px rgba(45, 194, 27, 0.25); margin-right: 6px; vertical-align: 1px;
}

.ad-slot-box {
  margin: 36px 0;
  background: #FFFFFF;
  border: 1px solid #B5C3E0;
  border-radius: 4px;
  padding: 10px 12px;
  text-align: center;
}
.adsense-result-block {
  margin: 44px 0;
  background: #FFFFFF;
  border: 1px solid #B5C3E0;
  border-radius: 4px;
  padding: 12px 14px;
  text-align: center;
  clear: both;
}
.ad-slot-label, .ad-label {
  font-size: 12px; color: #475569; font-weight: 700; display: block; margin-bottom: 6px;
}

.cross-nav-banner {
  margin: 20px 0; background: #F0F7FF; border: 1px solid #93C5FD; border-radius: 4px;
  padding: 14px 18px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.cross-nav-banner strong { font-size: 15.5px; color: #0A246A; display: block; margin-bottom: 3px; }
.cross-nav-banner span { font-size: 14px; color: var(--ink-2); display: block; }

/**
 * アフィリエイト・デュアルモール物販 統一Retro-OSスタイル (_affiliate_common.scss)
 * Card-in-Card排除・成約CTAボタン立体化（150行以下厳守）
 */
.affiliate-card-wrapper {
  margin: 28px 0; background: #FFFFFF; border: 2px solid #0055EA;
  border-radius: 6px 6px 4px 4px; overflow: hidden;
}
.affiliate-card-header-bar {
  background: linear-gradient(90deg, #E8F0FE 0%, #D6E4FF 100%); border-bottom: 1px solid #99B4E6;
  padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.affiliate-card-label {
  font-size: 12px !important; font-weight: 700 !important; color: #334155 !important;
  background: #FFFFFF !important; border: 1px solid #CBD5E1; padding: 2px 8px !important; border-radius: 3px !important;
}
.affiliate-card-badge {
  font-size: 12.5px; font-weight: 700; color: #0A246A; background: #DBEAFE;
  border: 1px solid #93C5FD; padding: 2px 10px; border-radius: 3px;
}
.affiliate-card-disclosure { font-size: 12px; color: #475569; }

.affiliate-card-container { padding: 20px; display: flex; gap: 16px; align-items: flex-start; background: #FFFFFF; }
.affiliate-card-icon {
  width: 44px; height: 44px; border-radius: 8px; background: #EFF6FF;
  border: 1px solid #BFDBFE; display: grid; place-items: center; flex-shrink: 0;
}
.affiliate-card-content { flex: 1; min-width: 0; }
.affiliate-card-title { font-size: 18px; font-weight: 700; color: #0A246A; margin: 0 0 8px; line-height: 1.45; }
.affiliate-card-desc { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; margin: 0 0 16px; }
.affiliate-card-action { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; }

.affiliate-card-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px;
  background: linear-gradient(180deg, #3B8CFF 0%, #0055EA 55%, #003DC4 100%);
  color: #FFFFFF !important; font-size: 16px; font-weight: 700;
  border: 1px solid #0831D9; border-radius: 4px; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 85, 234, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.affiliate-card-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.affiliate-card-subinfo { font-size: 13px; color: #475569; margin-top: 12px; text-align: center; }

.dreamway-banner-pc { display: block; }
.dreamway-banner-sp { display: none; }

/* デュアルモール物販セクション */
.dual-mall-product-section {
  margin: 28px 0; background: #FFFFFF; border: 1px solid #99B4E6; border-radius: 6px; overflow: hidden;
}
.dual-mall-head {
  background: var(--g-list-head); border-bottom: 1px solid #D6D3C4; padding: 10px 16px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.dual-mall-head h3 { font-size: 16.5px; font-weight: 700; color: #0A246A; margin: 0; display: flex; align-items: center; gap: 8px; }
.dual-mall-sub { font-size: 14px; color: #475569; padding: 10px 16px 0; margin: 0; }
.dual-mall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; padding: 12px 16px 16px; }
.dual-mall-item { padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.dual-mall-item + .dual-mall-item { border-left: 1px solid #E3E1D3; }
.dual-mall-badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: #78350F;
  background: #FEF3C7; padding: 2px 8px; border-radius: 3px; margin-bottom: 6px;
}
.dual-mall-item h4 { font-size: 16px; font-weight: 700; color: #0F172A; margin: 0 0 6px; line-height: 1.45; }
.dual-mall-item p { font-size: 14.5px; color: #3F3F46; line-height: 1.65; margin: 0 0 14px; }
.dual-mall-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.btn-mall-amz, .btn-mall-rak {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 42px; padding: 8px 10px; color: #FFFFFF !important; font-size: 14px; font-weight: 700;
  border-radius: 4px; text-decoration: none; text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16); transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn-mall-amz { background: #C2410C; border: 1px solid #9A3412; }
.btn-mall-rak { background: #BF0000; border: 1px solid #990000; }
.btn-mall-amz:hover, .btn-mall-rak:hover { opacity: 0.92; transform: translateY(-1px); }

/**
 * Windows XP Luna UI 共通レスポンシブ最適化 (_responsive.scss)
 * 2026年基準: SP (~599px) / Tab (600~1024px) / PC (1025px~)
 * 左右ガター変数 (--gutter) の切替で全ページの縦ラインを完全一致させる（150行以下厳守）
 */
@media (max-width: 1024px) {
  :root { --gutter: 20px; }

  .intro { gap: 14px; margin: 4px 0 16px; }
  .intro h1 { font-size: 23px; }
  .h-sec { font-size: 19.5px; }

  .titlebar, .bar, .win-title, .xp-titlebar { min-height: 36px; padding: 4px 8px 4px 10px; }
  .titlebar .t, .bar-title, .win-title-text, .xp-titlebar-text { font-size: 15px; }
  .win-toolbar.xp-tab-bar { flex-wrap: nowrap; overflow-x: auto; }
  .xp-tab { font-size: 14px; padding: 8px 12px; min-width: 80px; }
  .win-body, .xp-content { padding: 16px 14px; }
  .win-stat, .statusbar, .win-status, .win-statusbar { font-size: 13px; padding: 6px 10px; }

  /* タスクバー */
  .taskbar { height: auto; min-height: 44px; flex-wrap: wrap; }
  .startbtn { padding: 0 16px 0 12px; font-size: 15px; height: 42px; }
  .taskitems { padding: 4px 8px; flex: 1 1 auto; overflow-x: auto; }
  .taskitem { font-size: 13px; padding: 0 10px; min-width: auto; height: 32px; white-space: nowrap; }
  .tray { padding: 0 12px; font-size: 13px; height: 42px; margin-left: auto; }

  /* デュアルモール物販 1カラム化 */
  .dual-mall-grid { grid-template-columns: 1fr; padding: 8px 14px 14px; }
  .dual-mall-item { padding: 12px 0; }
  .dual-mall-item + .dual-mall-item { border-left: none; border-top: 1px solid #E3E1D3; }
}

@media (max-width: 599px) {
  :root { --gutter: 14px; }

  .canvas { border-left: none; border-right: none; }
  .sec { padding: 22px var(--gutter); }
  .wrap { padding: 12px var(--gutter) 28px; }

  .intro { gap: 12px; align-items: flex-start; }
  .intro .kt.l { width: 46px; height: 46px; font-size: 22px; border-radius: 9px; }
  .intro h1 { font-size: 20.5px; line-height: 1.35; }
  .intro p { font-size: 15px; }

  .titlebar .t, .bar-title, .win-title-text, .xp-titlebar-text { font-size: 14px; }
  .titlebar .ico, .win-title-icon { width: 20px; height: 20px; font-size: 11px; }
  .tb-btns .tb-btn, .bar-btns .bar-b, .win-controls .win-btn, .xp-titlebar-buttons span {
    width: 20px; height: 20px; font-size: 11px; line-height: 18px;
  }
  .xp-tab { font-size: 13.5px; padding: 6px 10px; min-height: 34px; }
  .win-body, .xp-content { padding: 14px 12px; }

  .tray { display: none; }
  .btn, .xp-btn { min-height: 42px; font-size: 15px; padding: 0 14px; }
  .btn.lg { min-height: 48px; font-size: 16px; padding: 0 20px; }

  /* アフィリエイト＆バナー SP最適化 */
  .affiliate-card-container { flex-direction: column; padding: 16px 14px; gap: 12px; }
  .affiliate-card-btn { width: 100%; padding: 12px 16px; font-size: 15px; text-align: center; }
  .dreamway-banner-pc { display: none; }
  .dreamway-banner-sp { display: block; }
  .dual-mall-btns { grid-template-columns: 1fr; }
  .cross-nav-banner .btn { width: 100%; }

  /* 比較表横スクロール安全化 */
  table.lv { display: block; overflow-x: auto; white-space: nowrap; }
}

/* 共通トースト安全定義 */
#toast, .toast-notification {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 99999;
  background: #1E293B; color: #fff; padding: 8px 18px; border-radius: 4px;
  font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none; opacity: 0; transition: opacity 0.2s ease;
}
#toast.show, .toast-notification.show { opacity: 1; }

/* 印刷・PDF出力時（広告完全除外保証） */
@media print {
  .adsbygoogle, .ad-container, .ad-slot-box, ins.adsbygoogle,
  .taskbar, .hdr, .crumb, .ftr, .affiliate-card-wrapper, .dual-mall-product-section,
  iframe[id^="google_ads_"], #google_center_div {
    display: none !important;
  }
}
