/* static/css/price_trend.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;
}

.pt-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;
}
.pt-page h1 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin: 1.5rem 0 0.6rem;
    color: #111827;
}
.pt-page section {
    margin: 2rem 0 0;
}
.pt-page section > p {
    margin: 0 0 0.9rem;
    color: #374151;
}
.pt-page h2 {
    font-size: 1.15rem;
    margin: 0 0 0.9rem;
    color: #222222;
}
.pt-subheading {
    font-size: 0.975rem;
    margin: 1rem 0 0.5rem;
    color: #374151;
}
.pt-lead {
    color: #4b5563;
    margin: 0 0 1rem;
}
.pt-hint {
    font-size: 0.875rem;
    color: #4b5563;
}

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

/* ===== パネル(グラフ・計算) ===== */
.pt-page .pt-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);
}
.pt-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}
.pt-switch--period {
    margin-bottom: 0.9rem;
}
.pt-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;
}
.pt-chip:hover {
    border-color: #9eb8ef;
    color: #2f6ae6;
}
.pt-chip.is-active {
    background: #2f6ae6;
    border-color: #2f6ae6;
    color: #fff;
}
.pt-switch--period .pt-chip.is-active {
    background: #1f2a44;
    border-color: #1f2a44;
}
.pt-chart-wrap {
    width: 100%;
}
.pt-chart {
    display: block;
    width: 100%;
}
.pt-chart-readout {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2a44;
}

.pt-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0 1rem;
}
.pt-field {
    margin-bottom: 1rem;
}
.pt-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.4rem;
}
.pt-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;
}
.pt-input:focus {
    outline: none;
    border-color: #9eb8ef;
    box-shadow: 0 0 0 0.1875rem rgba(47, 106, 230, 0.18);
}
.pt-result {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    padding: 0.8rem 1rem;
    background: #eef4ff;
    border: 0.0625rem solid #c7d9f7;
    border-radius: 0.75rem;
}
.pt-result__label {
    font-size: 0.8125rem;
    color: #64748b;
}
.pt-result__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d4ed8;
}
.pt-result__sub {
    flex-basis: 100%;
    font-size: 0.8125rem;
    color: #4b5563;
}
.pt-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相当の見た目) ===== */
.pt-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pt-table {
    width: 100%;
    min-width: 26rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
    background: #fff;
}
.pt-table th,
.pt-table td {
    border: 0.0625rem solid #cfcfcf;
    padding: 0.5rem 0.75rem;
    text-align: left;
    line-height: 1.5;
}
.pt-table thead th {
    background: #f2f2f2;
    font-weight: 700;
    white-space: nowrap;
}
.pt-table tr:nth-child(even) td {
    background: #fcfcfc;
}
.pt-table a {
    color: #2f6ae6;
}
.pt-more-btn {
    margin-top: 0.75rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border: 0.0625rem solid #2f6ae6;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #2f6ae6;
    cursor: pointer;
}
.pt-more-btn:hover {
    background: #eef4ff;
}

/* ===== リンク ===== */
.pt-links {
    margin: 0;
    padding-left: 1.2rem;
}
.pt-links li {
    margin-bottom: 0.35rem;
}
.pt-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 0.75rem;
}
.pt-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    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;
}
.pt-card:hover,
.pt-card:focus-visible {
    transform: translateY(-0.0938rem);
    box-shadow: 0 0.3125rem 1rem rgba(47, 106, 230, 0.16);
    outline: none;
}
.pt-card__title {
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.5;
}
.pt-card__meta {
    font-size: 0.8125rem;
    color: #4b5563;
}
.pt-card__more {
    margin-top: auto;
    padding-top: 0.4rem;
    color: #2f6ae6;
    font-size: 0.8125rem;
    font-weight: 700;
}
.pt-source {
    margin: 2rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}

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