:root {
  color-scheme: light;
  --ink: #10284b;
  --muted: #687890;
  --paper: #edf1f3;
  --card: #faf9f4;
  --line: #ccd6e0;
  --teal: #177e94;
  --mint: #72d5d8;
  --amber: #caa34d;
  --navy: #0b2346;
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, input, select { font: inherit; }
/* グローバルメニュー（Allianceサイト本体・毎日の資産残高ページと同じ見た目） */
.siteHeader { min-height: 78px; display: flex; align-items: center; gap: 20px; padding: 16px max(24px, calc((100vw - 1200px) / 2)); color: white; background: #0d1f3c; border-bottom: 1px solid rgba(202,163,77,.65); position: sticky; top: 0; z-index: 20; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 46px; width: auto; }
.siteNav { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; }
.siteNav a, .siteNav .navParent { color: rgba(255,255,255,.72); white-space: nowrap; text-decoration: none; transition: color .16s ease; }
.siteNav a:hover, .siteNav .navParent:hover { color: #fff; }
.siteNav a:focus-visible, .siteNav button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.navSr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.navCta { background: var(--amber); color: #0d1f3c !important; padding: 10px 20px; border-radius: 2px; font-size: 14px; font-weight: 700; }
.navToggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 20px; line-height: 1; padding: 8px 12px; border-radius: 2px; cursor: pointer; flex: 0 0 auto; }

/* 現在地表示：ゴールド文字＋下線 */
.siteNav > a.isActive, .siteNavDropdown.isActive > a, .siteNavDropdown.isActive > .navParent { color: var(--amber); box-shadow: inset 0 -2px 0 var(--amber); }
.siteNav > a.isActive.navCta { box-shadow: 0 0 0 2px rgba(255,255,255,.65); }
.siteNavDropdownMenu a.isActive { color: var(--amber); background: rgba(255,255,255,.06); }

.siteNavDropdown { position: relative; display: flex; align-items: center; gap: 2px; }
.navParent, .navCaret { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; line-height: inherit; color: rgba(255,255,255,.72); }
.navParent::after, .navCaret::after { content: "▾"; font-size: 10px; opacity: .7; margin-left: 4px; }
.navCaret::after { margin-left: 0; }
.siteNavDropdownMenu { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 220px; padding: 6px 0; background: #16294d; box-shadow: 0 12px 24px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease, visibility .15s ease; }
.siteNavDropdown:hover .siteNavDropdownMenu, .siteNavDropdown:focus-within .siteNavDropdownMenu, .siteNavDropdown.is-open .siteNavDropdownMenu { opacity: 1; visibility: visible; transform: translateY(0); }
.siteNavDropdownMenu a { display: block; padding: 10px 18px; white-space: nowrap; }
.siteNavDropdownMenu a:hover { background: rgba(255,255,255,.08); color: var(--amber); }

/* 「毎日の資産残高」⇄「全商品の運用状況」の2択スイッチ（ヒーロー内は濃紺背景） */
.logSwitch { display: inline-flex; gap: 6px; margin-top: 30px; padding: 4px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); }
.logSwitch a { padding: 9px 18px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.72); white-space: nowrap; transition: background .16s ease, color .16s ease; }
.logSwitch a:hover { color: #fff; }
.logSwitch a[aria-current="page"] { background: #fff; color: var(--navy); }
.logSwitch a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { margin: 24px 0 18px; padding: clamp(22px, 3vw, 36px); border-radius: 20px; color: white; background: radial-gradient(circle at 82% 20%, rgba(114,213,216,.2), transparent 28%), linear-gradient(135deg, #071a35, #17365f); display: grid; grid-template-columns: 1.5fr .65fr; gap: 24px; overflow: hidden; }
.eyebrow { margin: 0 0 12px; font-size: 11px; letter-spacing: .19em; font-weight: 900; color: var(--teal); }
.hero .eyebrow { color: var(--amber); }
h1 { margin: 0; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.2; letter-spacing: -.035em; }
.lede { max-width: 680px; margin: 8px 0 0; line-height: 1.6; color: rgba(255,255,255,.76); }
.accountSwitch { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 7px 7px 7px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 800; }
.heroSummary { align-self: center; display: flex; flex-direction: column; padding: 15px 20px; border-radius: 15px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }
.heroSummary span { font-size: 13px; color: rgba(255,255,255,.68); }
.heroSummary strong { margin: 2px 0; font-family: Georgia, serif; font-size: 42px; line-height: 1.1; }
.heroSummary small { color: var(--mint); }
.hero .logSwitch { margin-top: 16px; }
.planSection { margin-bottom: 18px; padding: 22px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.planIntro { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.planIntro h2 { font-size: clamp(20px, 2.5vw, 27px); }
.planIntro p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.planChoices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.planChoices button { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.planChoices button[aria-pressed="true"] { border: 2px solid var(--teal); padding: 17px 19px; background: #e9f5f5; }
.planChoices button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.planChoices span { color: var(--muted); font-size: 11px; }
.planChoices strong { font-size: clamp(17px, 2vw, 22px); line-height: 1.35; }
.productFees { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 500; }
.feeExplanation { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.summaryGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.summaryGrid article { padding: 20px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.summaryGrid span { display: block; color: var(--muted); font-size: 12px; }
.summaryGrid strong { display: block; margin-top: 7px; font-family: Georgia, serif; font-size: 24px; }
.catalogSection { margin: 22px 0; padding: clamp(24px, 4vw, 46px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.sectionHeading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
h2 { margin: 0; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(28px, 4vw, 43px); letter-spacing: -.035em; }
.sectionHeading > p { margin: 0; color: var(--muted); font-size: 13px; }
.filters { display: grid; grid-template-columns: minmax(220px, 1fr) 170px 145px 205px; gap: 12px; margin: 28px 0 20px; }
.filters label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.filters input, .filters select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: white; color: var(--ink); }
.comparisonLimitNote { display: flex; align-items: center; gap: 10px; margin: -6px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.comparisonLimitNote strong { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: var(--teal); background: #e3f3ed; font-size: 11px; }
.stateCard { padding: 45px 24px; border: 1px dashed #b7c3be; border-radius: 16px; text-align: center; color: var(--muted); }
.stateCard strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 18px; }
.stateCard p { max-width: 650px; margin: 0 auto; line-height: 1.8; }
.tableWrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 880px; }
.productTable { min-width: 1020px; table-layout: fixed; }
.productTable th, .productTable td { padding-inline: 10px; }
.productTable th:nth-child(1) { width: 54px; }
.productTable th:nth-child(2) { width: 90px; }
.productTable th:nth-child(3) { width: 245px; }
.productTable th:nth-child(4) { width: 105px; }
.productTable th:nth-child(5) { width: 88px; }
.productTable th:nth-child(6) { width: 108px; }
.productTable th:nth-child(7) { width: 125px; }
.productTable th:nth-child(8) { width: 125px; }
.productTable th:nth-child(9) { width: 88px; }
th { padding: 12px 14px; color: var(--muted); background: #f3f4ef; font-size: 11px; text-align: left; letter-spacing: .04em; }
td { padding: 15px 14px; border-top: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
tbody tr:hover { background: #f3f8f4; }
.compareCell { width: 62px; text-align: center; }
.compareCheck { display: inline-grid; justify-items: center; gap: 4px; color: var(--teal); font-size: 10px; font-weight: 900; cursor: pointer; }
.compareCheck input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.notComparable { color: #a7b0ac; }
.typeBadge { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #e3f3ed; color: var(--teal); font-size: 10px; font-weight: 900; white-space: nowrap; }
.typeBadge.categoryTone0 { color: #176557; background: #dff2eb; }
.typeBadge.categoryTone1 { color: #315c94; background: #e2ebf8; }
.typeBadge.categoryTone2 { color: #8a4d2f; background: #f7e8dc; }
.typeBadge.categoryTone3 { color: #765184; background: #efe4f3; }
.typeBadge.categoryTone4 { color: #7b6118; background: #f5edcf; }
.typeBadge.categoryTone5 { color: #8c3f48; background: #f7e0e3; }
.typeBadge.categoryTone6 { color: #3e6d37; background: #e4f0dc; }
.typeBadge.categoryTone7 { color: #49606e; background: #e3ebef; }
.closedBadge { margin-left: 5px; background: #eee9e1; color: #7a6b59; }
.productName { max-width: 245px; font-size: 12px; font-weight: 800; line-height: 1.45; }
.productStyle { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.value { font-family: Georgia, serif; font-size: 17px; font-weight: 700; white-space: nowrap; }
.periodReturns { display: grid; grid-template-columns: 1fr; gap: 5px; }
.periodReturns span { display: grid; gap: 2px; padding: 6px 5px; border-radius: 8px; background: #f4f5f0; text-align: center; white-space: nowrap; }
.periodReturns small { color: var(--muted); font-size: 9px; font-weight: 800; }
.periodReturns strong { font-family: Georgia, serif; font-size: 11px; }
.periodReturns span[data-direction="up"] strong { color: var(--teal); }
.periodReturns span[data-direction="down"] strong { color: #a13b32; }
.periodReturns span[data-direction="none"] strong { color: #a7b0ac; }
.feeCell, .retentionCell { color: var(--ink); font-size: 11px; }
.feeCell strong, .retentionCell strong { font-weight: 800; }
.feeLabel { display: none; }
.feeReview { display: block; margin-top: 4px; color: #8a4d2f; font-size: 9px; font-weight: 800; }
.detailButton { border: 1px solid #afc9c1; border-radius: 999px; padding: 7px 11px; background: white; color: var(--teal); font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.sourceLinkButton { display: inline-flex; text-decoration: none; }
.providerLink { display: inline-flex; align-items: baseline; gap: 5px; color: var(--teal); font-weight: 800; text-underline-offset: 3px; }
.providerLink span { font-size: 10px; }
.sourceReview { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: #eee9e1; color: #7a6b59; font-size: 10px; font-weight: 900; white-space: nowrap; }
.resultCount { margin: 13px 0 0; color: var(--muted); font-size: 12px; text-align: right; }
.periodReturnsNote { margin: 9px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.comparisonSection { margin: 22px 0; padding: clamp(24px, 4vw, 46px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.comparisonHeading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.comparisonCount { padding: 8px 12px; border-radius: 999px; color: var(--teal); background: #e3f3ed; font-size: 12px; font-weight: 900; white-space: nowrap; }
.comparisonStatus { margin: 14px 0 18px; color: var(--muted); font-size: 13px; }
.comparisonToolbar { display: flex; justify-content: flex-end; margin: -4px 0 14px; }
.comparisonLegend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.comparisonLegend span { display: inline-grid; grid-template-columns: 10px minmax(80px, auto) auto; align-items: center; gap: 7px; max-width: 100%; color: var(--muted); font-size: 11px; }
.comparisonLegend i { width: 10px; height: 10px; border-radius: 50%; background: var(--series-color); }
.comparisonLegend strong { color: var(--ink); font-family: Georgia, serif; font-size: 12px; }
.comparisonChart { position: relative; min-height: 260px; display: grid; place-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fbfaf5; overflow: hidden; }
.comparisonChart svg { display: block; width: 100%; height: auto; }
.comparisonLine { fill: var(--series-color); stroke: var(--series-color); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.comparisonLine polyline { fill: none; }
.chartZero { stroke: #416a60; stroke-width: 2; stroke-dasharray: 7 4; }
.chartZeroLabel { fill: #31594f; font-size: 10px; font-weight: 900; font-family: "Yu Gothic UI", sans-serif; }
.comparisonNote { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.trendTableToggle { display: block; min-width: 154px; margin: 18px auto 0; padding: 10px 18px; border: 1px solid #afc9c1; border-radius: 999px; background: white; color: var(--teal); font-size: 12px; font-weight: 900; cursor: pointer; }
.comparisonTablePanel { margin-top: 14px; }
.comparisonTableWrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.comparisonTable { min-width: 760px; }
.comparisonTable th { min-width: 130px; }
.comparisonTable th:first-child { min-width: 110px; position: sticky; left: 0; z-index: 1; background: #f3f4ef; }
.comparisonTable tbody th { padding: 13px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: left; }
.comparisonTable td strong { display: block; color: var(--ink); font-family: Georgia, serif; font-size: 15px; }
.comparisonTable td small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.comparisonGuide, .chartGuide { position: absolute; top: 12px; bottom: 42px; z-index: 2; width: 1px; background: rgba(22,123,104,.5); pointer-events: none; }
.comparisonTooltip { position: absolute; top: 14px; z-index: 4; display: grid; gap: 7px; width: min(390px, calc(100% - 28px)); padding: 12px 14px; border-radius: 12px; color: white; background: rgba(22,49,45,.97); box-shadow: 0 10px 30px rgba(15,42,36,.24); pointer-events: none; }
.comparisonTooltip > strong { font-size: 13px; }
.comparisonTooltipLabels { display: grid; grid-template-columns: 9px minmax(120px,1fr) auto auto; gap: 8px; color: rgba(255,255,255,.58); font-size: 8px; text-align: right; }
.comparisonTooltipRow { display: grid; grid-template-columns: 9px minmax(120px,1fr) auto auto; gap: 8px; align-items: center; font-size: 10px; }
.comparisonTooltipRow i { width: 9px; height: 9px; border-radius: 50%; background: var(--series-color); }
.comparisonTooltipRow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.78); }
.comparisonTooltipRow b { font-family: Georgia, serif; font-size: 11px; }
.comparisonJump { position: fixed; left: 22px; top: 50%; z-index: 25; padding: 12px 17px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: white; background: var(--teal); box-shadow: 0 10px 28px rgba(15,42,36,.28); font-size: 12px; font-weight: 900; cursor: pointer; transform: translateY(-50%); animation: comparisonJumpIn .25s ease-out; }
.comparisonJump span { display: inline-block; margin-right: 4px; animation: comparisonArrow 1.4s ease-in-out infinite; }
.comparisonJump strong { margin-left: 5px; padding: 2px 6px; border-radius: 999px; color: var(--teal); background: white; font-size: 10px; }
@keyframes comparisonJumpIn {
  from { opacity: 0; transform: translateY(calc(-50% + 8px)); }
  to { opacity: 1; transform: translateY(-50%); }
}
@keyframes comparisonArrow { 50% { transform: translateY(3px); } }
.policySection { margin: 22px 0 40px; padding: clamp(28px, 5vw, 55px); border-radius: 24px; background: #e5eee9; display: grid; grid-template-columns: .85fr 1.4fr; gap: 28px 60px; }
.policySection > p { margin: 0; line-height: 2; color: #49625c; }
.policySection a { color: var(--teal); font-weight: 800; text-underline-offset: 3px; }
.policySection small { grid-column: 2; color: var(--muted); }
footer { display: flex; justify-content: space-between; padding: 28px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer a { color: inherit; }
dialog { width: min(1120px, calc(100% - 30px)); max-height: calc(100vh - 40px); padding: 42px; border: 0; border-radius: 22px; color: var(--ink); background: var(--card); box-shadow: 0 30px 90px rgba(15,42,36,.28); }
dialog::backdrop { background: rgba(12,31,27,.55); backdrop-filter: blur(4px); }
.dialogClose { position: absolute; top: 15px; right: 17px; border: 0; background: transparent; font-size: 25px; color: var(--muted); cursor: pointer; }
#dialog-provider { color: var(--muted); }
.dialogLatest { display: flex; align-items: baseline; gap: 12px; margin: 24px 0 14px; padding: 18px; border-radius: 13px; background: #edf4f0; }
.dialogLatest span, .dialogLatest small { color: var(--muted); font-size: 12px; }
.dialogLatest strong { font-family: Georgia, serif; font-size: 27px; }
.sourceDetails { margin: 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.sourceDetails div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 13px 16px; border-top: 1px solid var(--line); }
.sourceDetails div:first-child { border-top: 0; }
.sourceDetails dt { color: var(--muted); font-size: 12px; }
.sourceDetails dd { margin: 0; font-size: 13px; font-weight: 800; }
.sourceDetails a { color: var(--teal); text-underline-offset: 3px; }
.updatedStatus { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: var(--teal); background: #e3f3ed; font-size: 11px; font-weight: 900; }
.historySection { margin-top: 22px; }
.historyHeading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.historyHeading h3 { margin: 0; font-family: Georgia, "Yu Mincho", serif; font-size: 20px; }
.historyHeading span { color: var(--muted); font-size: 11px; }
.historyToolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 12px; }
.historyRange { display: inline-flex; flex-wrap: wrap; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #f3f4ef; }
.historyRange button { display: grid; min-width: 78px; gap: 1px; padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 900; cursor: pointer; }
.historyRange button strong { font-family: Georgia, serif; font-size: 10px; }
.historyRange button[aria-pressed="true"] { color: white; background: var(--teal); }
.historyTableToggle { padding: 8px 14px; border: 1px solid #afc9c1; border-radius: 999px; background: white; color: var(--teal); font-size: 11px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.historySummary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.historySummary article { padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: #f7f7f2; }
.historySummary span { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.historySummary small { font-size: 9px; }
.historySummary strong { display: block; margin-top: 4px; font-family: Georgia, serif; font-size: 19px; }
.historySummary #history-return-rate[data-direction="up"] { color: var(--teal); }
.historySummary #history-return-rate[data-direction="down"] { color: #a13b32; }
.historyChart { position: relative; min-height: 280px; display: grid; place-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fbfaf5; overflow: hidden; }
.historyChart svg, .comparisonChart svg { display: block; width: 100%; height: auto; cursor: default; }
.chartGrid line { stroke: #dce3de; stroke-width: 1; }
.chartGrid text, .chartDates text { fill: var(--muted); font-size: 10px; font-family: "Yu Gothic UI", sans-serif; }
.chartDateTick { stroke: #9fb0aa; stroke-width: 1; }
.chartLine { fill: var(--teal); stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chartLine polyline { fill: none; }
.chartPoint { cursor: default; transition: r .12s ease; }
.chartPoint:hover, .chartPoint:focus { r: 6px; outline: none; }
.chartTooltip { position: absolute; z-index: 3; display: grid; gap: 4px; min-width: 156px; padding: 10px 12px; border-radius: 10px; color: white; background: rgba(22,49,45,.96); box-shadow: 0 8px 24px rgba(15,42,36,.2); pointer-events: none; font-size: 11px; line-height: 1.45; }
.chartTooltip strong { font-size: 12px; }
.chartTooltip span { color: rgba(255,255,255,.78); }
.historyEmpty { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.historyTablePanel { margin-top: 14px; }
.historyTableWrap { max-height: 330px; overflow: auto; border: 1px solid var(--line); border-radius: 13px; }
.historyDataTable { min-width: 520px; }
.historyDataTable thead { position: sticky; top: 0; z-index: 1; }
.historyDataTable th, .historyDataTable td { text-align: right; }
.historyDataTable th:first-child, .historyDataTable td:first-child { text-align: left; }
.historyDataTable td { padding-block: 11px; }
.historyDataTable td:nth-child(2) { font-family: Georgia, serif; font-weight: 700; }
.historyTableNote { margin: 8px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
/* メニューが1行に収まらなくなる幅からハンバーガーに切り替える */
@media (max-width: 1540px) {
  .navToggle { display: block; }
  .siteNav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    margin-left: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #16294d; box-shadow: 0 12px 24px rgba(0,0,0,.25);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .siteNav.open { max-height: calc(100vh - 78px); overflow-y: auto; }
  .siteNav a { white-space: normal; padding: 14px 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
  .siteNav a.navCta { margin: 14px 24px; text-align: center; }
  .siteNav > a.isActive, .siteNavDropdown.isActive > a, .siteNavDropdown.isActive > .navParent { box-shadow: inset 3px 0 0 var(--amber); }
  .siteNavDropdown { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
  .siteNavDropdown > a { flex: 1 1 auto; }
  .navParent { flex: 1 1 auto; text-align: left; white-space: normal; padding: 14px 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
  /* スマホでは子メニューを最初から全部見せる（Allianceサイト・毎日の残高ページと同じ）。
     押すたびに開いたり閉じたりすると、どこにいるか迷うため。開閉ボタン（▾）は隠す。 */
  .navCaret { display: none; }
  .siteNavDropdownMenu {
    flex: 1 0 100%; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: rgba(0,0,0,.15); padding: 0; max-height: none; overflow: visible; transition: none;
  }
  .siteNavDropdownMenu a { padding: 12px 24px 12px 40px; border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .siteNav, .siteNavDropdownMenu { transition: none; }
}
@media (max-width: 820px) {
  .siteHeader { justify-content: space-between; }
  .logSwitch { width: 100%; }
  .logSwitch a { flex: 1; text-align: center; padding-inline: 10px; }
  main { width: min(100% - 24px, 1180px); }
  .hero { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
  .heroSummary { align-self: auto; }
  .planIntro { align-items: stretch; flex-direction: column; gap: 12px; }
  .planChoices { grid-template-columns: 1fr; }
  .summaryGrid { grid-template-columns: repeat(2, 1fr); }
  .sectionHeading { align-items: flex-start; flex-direction: column; }
  .comparisonHeading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .filters { grid-template-columns: 1fr; }
  .comparisonLimitNote { align-items: flex-start; flex-direction: column; gap: 6px; }
  .tableWrap { overflow: visible; border: 0; border-radius: 0; }
  .productTable { display: block; min-width: 0; }
  .productTable thead { display: none; }
  .productTable tbody { display: grid; gap: 10px; }
  .productTable tbody tr {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fffefa;
  }
  .productTable td { padding: 0; border: 0; }
  .productTable .compareCell { grid-column: 1; grid-row: 1 / 8; width: auto; align-self: start; }
  .productTable .categoryCell { grid-column: 2; grid-row: 1; }
  .productTable .valueCell { grid-column: 3; grid-row: 1; font-size: 16px; text-align: right; }
  .productTable .productName { grid-column: 2 / 4; grid-row: 2; max-width: none; font-size: 12px; }
  .productTable .dateCell { grid-column: 2; grid-row: 3; color: var(--muted); font-size: 10px; }
  .productTable .dateCell::before { content: "基準日 "; }
  .productTable .periodReturnsCell { grid-column: 2 / 4; grid-row: 4; }
  .productTable .feeCell { grid-column: 2 / 4; grid-row: 5; }
  .productTable .retentionCell { grid-column: 2 / 4; grid-row: 6; }
  .productTable .detailCell { grid-column: 3; grid-row: 7; text-align: right; }
  .periodReturns { min-width: 0; }
  .periodReturns span { grid-template-columns: auto 1fr; align-items: baseline; text-align: left; }
  .periodReturns strong { text-align: right; }
  .feeCell, .retentionCell { display: flex; justify-content: space-between; gap: 8px; }
  .feeLabel { display: inline; color: var(--muted); font-size: 10px; }
  .policySection { grid-template-columns: 1fr; }
  .policySection small { grid-column: 1; }
}
@media (max-width: 520px) {
  h1 { font-size: 31px; }
  .accountSwitch { border-radius: 16px; padding: 12px 16px; }
  .summaryGrid { grid-template-columns: 1fr 1fr; }
  .summaryGrid article { padding: 16px; }
  dialog { padding: 32px 20px 22px; }
  .sourceDetails div { grid-template-columns: 82px 1fr; }
  .historyHeading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .historyToolbar { align-items: stretch; flex-direction: column; }
  .historyRange { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 13px; }
  .historyRange button { min-width: 0; padding-inline: 5px; }
  .historyTableToggle { align-self: flex-end; }
  .historySummary { grid-template-columns: 1fr; }
  .historyChart { padding: 6px; }
  .comparisonChart { min-height: 220px; padding: 6px; }
  .comparisonLegend span { grid-template-columns: 10px minmax(60px, 1fr) auto; width: 100%; }
  .comparisonToolbar { justify-content: stretch; }
  .comparisonRange { width: 100%; }
  .comparisonJump { left: 12px; top: 50%; }
  .comparisonTooltipRow { grid-template-columns: 9px minmax(85px,1fr) auto; }
  .comparisonTooltipRow b:last-child { grid-column: 2 / 4; }
  .comparisonTooltipLabels { display: none; }
}

/* ── メニューの色：Allianceサイト本体と同じ白いメニューにそろえる（2026-10-15 高橋さん） ── */
.siteHeader { background: #fff; color: #0d1f3c; border-bottom: 1px solid rgba(13,31,60,.1); box-shadow: 0 3px 16px rgba(13,31,60,.08); }
.siteNav { font-size: 15px; }
.siteNav a, .siteNav .navParent, .navParent, .navCaret { color: #0d1f3c; font-weight: 600; }
.siteNav a:hover, .siteNav .navParent:hover { color: #9a741f; }
.siteNav > a.isActive, .siteNavDropdown.isActive > a, .siteNavDropdown.isActive > .navParent { color: #c4a35a; }
.navToggle { border-color: rgba(13,31,60,.28); color: #0d1f3c; }
.siteNavDropdownMenu { background: #fff; border: 1px solid rgba(13,31,60,.1); box-shadow: 0 12px 28px rgba(13,31,60,.16); }
.siteNavDropdownMenu a { font-size: 14px; }
.siteNavDropdownMenu a:hover { background: #faf6ed; color: #8d6c25; }
.siteNavDropdownMenu a.isActive { color: #c4a35a; background: #faf6ed; }
.headerMeta { color: #687890; }
@media (max-width: 1540px) {
  .siteNav { background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .siteNav a, .navParent { border-top-color: rgba(13,31,60,.1); font-size: 15px; }
  .siteNavDropdownMenu { background: #f4f7f8; border: 0; box-shadow: none; }
  .siteNavDropdownMenu a { border-top-color: rgba(13,31,60,.08); font-size: 14px; }
}

/* Alliance 本体の共通メニューと同じ寸法・文字組み・折り返し幅。 */
.siteHeader { min-height: 88px; padding: 15px max(28px, calc((100vw - 1484px) / 2)); display: flex; justify-content: space-between; gap: 24px; position: sticky; top: 0; z-index: 100; }
.brand img { height: 52px; }
.siteNav { gap: 0; flex-shrink: 0; font-size: 16px; }
.siteNav a, .siteNav .navParent { font: 600 16px Arial, "Hiragino Sans", "Yu Gothic Medium", Meiryo, sans-serif; letter-spacing: .01em; }
.siteNav > a:not(.navCta), .siteNav > .siteNavDropdown > a, .siteNav > .siteNavDropdown > .navParent { padding: 12px 18px; background-image: linear-gradient(#c4a35a, #c4a35a); background-position: center calc(100% - 5px); background-repeat: no-repeat; background-size: 0 2px; transition: color .15s ease, background-size .18s ease; }
.siteNav > .siteNavDropdown > .navCaret { padding: 12px 15px 12px 2px; }
.siteNav > * + * { position: relative; margin-left: 1px; }
.siteNav > * + *::before { content: ""; position: absolute; left: -1px; top: 50%; width: 1px; height: 22px; background: rgba(13,31,60,.18); transform: translateY(-50%); }
.siteNav > a:not(.navCta):hover, .siteNav > .siteNavDropdown > a:hover, .siteNav > .siteNavDropdown > .navParent:hover { background-size: calc(100% - 36px) 2px; }
.siteNavDropdownMenu { min-width: 240px; padding: 8px 0; }
.siteNavDropdownMenu a { padding: 11px 20px; font-size: 14px; }
.navCta { padding: 13px 22px; border: 1px solid #c4a35a; border-radius: 3px; font-size: 15px; font-weight: 600; }
@media (max-width: 1540px) {
  .siteNav > * + * { margin-left: 0; }
  .siteNav > * + *::before { display: none; }
  .siteNav > a:not(.navCta), .siteNav > .siteNavDropdown > a, .siteNav > .siteNavDropdown > .navParent { background-image: none; }
  .siteNav a { padding: 14px 24px; font-size: 15px; }
  .siteNavDropdownMenu a { padding: 12px 24px 12px 40px; font-size: 14px; }
}
