/* static/css/prime_rate.css
   短期・長期プライムレートの推移ページ専用の独自CSS(他ツールのCSSは読み込まない・共有しない)。 */
.breadcrumbs {
    margin: 1rem 0 1.25rem;
    font-size: .875rem;
    text-align: left;
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumbs li {
    display: flex;
    align-items: center;
}
.breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin-left: .375rem;
    color: #666;
}
.breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span[aria-current="page"] {
    color: #333;
    font-weight: 600;
}

.pr-page {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem 2.5rem;
    box-sizing: border-box;
    background: #f6f8fb;
    font-family: 'M PLUS 1p', 'Sawarabi Gothic', sans-serif;
    line-height: 1.7;
    color: #1f2a44;
}
.pr-page h1 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin: 1.5rem 0 0.6rem;
    color: #111827;
}
.pr-page section {
    margin: 2rem 0 0;
}
.pr-page section > p {
    margin: 0 0 0.9rem;
    color: #374151;
}
.pr-page h2 {
    font-size: 1.15rem;
    margin: 0 0 0.9rem;
    color: #222222;
}
.pr-lead {
    color: #4b5563;
    margin: 0 0 1rem;
}
.pr-hint {
    font-size: 0.875rem;
    color: #4b5563;
}

/* ===== 最新値 ===== */
.pr-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
}
.pr-stat {
    padding: 0.9rem 1rem;
    background: #ffffff;
    border: 0.0625rem solid #dbe4f0;
    border-radius: 0.875rem;
}
.pr-stat--big {
    grid-column: 1 / -1;
    background: #eef4ff;
    border-color: #c7d9f7;
}
.pr-stat__label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.3rem;
}
.pr-stat__value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
}
.pr-stat--big .pr-stat__value {
    font-size: 1.9rem;
    color: #1d4ed8;
}
.pr-stat__sub {
    margin-top: 0.3rem;
    font-size: 0.8125rem;
    color: #4b5563;
}
.pr-note {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}
.pr-note a,
.pr-source a,

/* ===== パネル(グラフ・計算) ===== */
.pr-page .pr-panel {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(15, 23, 42, 0.08);
}
.pr-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}
.pr-switch--period {
    margin-bottom: 0.9rem;
}
.pr-chip {
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border: 0.0625rem solid #d6deeb;
    border-radius: 999px;
    background: #fbfdff;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pr-chip:hover {
    border-color: #9eb8ef;
    color: #2f6ae6;
}
.pr-chip.is-active {
    background: #2f6ae6;
    border-color: #2f6ae6;
    color: #fff;
}
.pr-switch--period .pr-chip.is-active {
    background: #1f2a44;
    border-color: #1f2a44;
}
.pr-chart-wrap {
    width: 100%;
}
.pr-chart {
    display: block;
    width: 100%;
}
.pr-chart-readout {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2a44;
}

.pr-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0 1rem;
}
.pr-field {
    margin-bottom: 1rem;
}
.pr-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.4rem;
}
.pr-input {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 0.9375rem;
    padding: 0.6rem 0.75rem;
    border: 0.0625rem solid #d6deeb;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #1f2a44;
}
.pr-input:focus {
    outline: none;
    border-color: #9eb8ef;
    box-shadow: 0 0 0 0.1875rem rgba(47, 106, 230, 0.18);
}
.pr-error {
    margin: 0 0 0.75rem;
    padding: 0.6rem 0.9rem;
    color: #b42318;
    background: #fffafa;
    border: 0.0625rem solid #f1c0c0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
}

/* ===== 表(article-table相当の見た目) ===== */
.pr-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pr-table {
    width: 100%;
    min-width: 26rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
    background: #fff;
}
.pr-table th,
.pr-table td {
    border: 0.0625rem solid #cfcfcf;
    padding: 0.5rem 0.75rem;
    text-align: left;
    line-height: 1.5;
}
.pr-table thead th {
    background: #f2f2f2;
    font-weight: 700;
    white-space: nowrap;
}
.pr-table tr:nth-child(even) td {
    background: #fcfcfc;
}
.pr-table a {
    color: #2f6ae6;
}

/* ===== 関連コラム(ほかのツールと同じカード) ===== */
.pr-other-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.75rem;
}
.pr-other-tools__card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 0.125rem 0.5rem rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: #222222;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pr-other-tools__card:hover,
.pr-other-tools__card:focus-visible {
    transform: translateY(-0.0938rem);
    box-shadow: 0 0.3125rem 1rem rgba(47, 106, 230, 0.16);
    outline: none;
}
.pr-other-tools__title {
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.5;
}
.pr-other-tools__more {
    margin-top: auto;
    padding-top: 0.5rem;
    color: #2f6ae6;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* ===== 出典 ===== */
.pr-source {
    margin: 2rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}

/* ===== このページだけの部品 ===== */
.pr-stat__unit {
    margin-left: 0.15rem;
    font-size: 0.6em;
    font-weight: 700;
}
.pr-stat--long {
    background: #fff7ed;
    border-color: #fed7aa;
}
.pr-stat--long .pr-stat__value {
    color: #c2410c;
}
.pr-stat-grid--latest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pr-stat-grid--latest .pr-stat--big {
    grid-column: auto;
}
.pr-stat-grid--latest .pr-stat--call {
    grid-column: 1 / -1;
}
.pr-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: 0 0 0.6rem;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    color: #374151;
}
.pr-legend li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.pr-legend__mark {
    display: inline-block;
    width: 1.1rem;
    height: 0.2rem;
    border-radius: 999px;
}
.pr-legend__mark--short { background: #2f6ae6; }
.pr-legend__mark--long { background: #c2410c; }
.pr-legend__mark--call { background: #64748b; height: 0.15rem; }
.pr-panel .pr-stat-grid {
    margin-top: 0.25rem;
}
.pr-panel .pr-stat--big {
    grid-column: 1 / -1;
}
.pr-table td,
.pr-table th {
    white-space: nowrap;
}
.pr-table td:not(:first-child),
.pr-table thead th:not(:first-child) {
    text-align: right;
}
.pr-table td.is-changed {
    font-weight: 700;
    color: #111827;
}
.pr-table td:not(.is-changed):not(:first-child) {
    color: #6b7280;
}
.pr-ad-mid {
    margin: 1.25rem 0;
}
.pr-page section > .pr-hint {
    margin: 0 0 0.75rem;
}

@media (max-width: 36rem) {
    .pr-page h1 {
        font-size: 1.3rem;
    }
    .pr-page .pr-panel {
        padding: 1rem 0.9rem 1.25rem;
        border-radius: 1rem;
    }
    .pr-table {
        font-size: 0.875rem;
    }
}
