/* static/css/useful_life.css
   耐用年数・減価償却のツール(検索・中古資産・減価償却費の3ページ)専用の独自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;
}

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

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

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

.ul-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0 1rem;
}
.ul-field {
    margin-bottom: 1rem;
}
.ul-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.4rem;
}
.ul-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;
}
.ul-input:focus {
    outline: none;
    border-color: #9eb8ef;
    box-shadow: 0 0 0 0.1875rem rgba(47, 106, 230, 0.18);
}
.ul-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相当の見た目) ===== */
.ul-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ul-table {
    width: 100%;
    min-width: 26rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
    background: #fff;
}
.ul-table th,
.ul-table td {
    border: 0.0625rem solid #cfcfcf;
    padding: 0.5rem 0.75rem;
    text-align: left;
    line-height: 1.5;
}
.ul-table thead th {
    background: #f2f2f2;
    font-weight: 700;
    white-space: nowrap;
}
.ul-table tr:nth-child(even) td {
    background: #fcfcfc;
}
.ul-table a {
    color: #2f6ae6;
}

/* ===== 関連コラム(ほかのツールと同じカード) ===== */
.ul-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.75rem;
}
.ul-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;
}
.ul-card:hover,
.ul-card:focus-visible {
    transform: translateY(-0.0938rem);
    box-shadow: 0 0.3125rem 1rem rgba(47, 106, 230, 0.16);
    outline: none;
}
.ul-card__title {
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.5;
}
.ul-card__more {
    margin-top: auto;
    padding-top: 0.5rem;
    color: #2f6ae6;
    font-size: 0.8125rem;
    font-weight: 700;
}

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

/* ===== このツールだけの部品 ===== */
.ul-subheading {
    font-size: 1rem;
    margin: 1.4rem 0 0.6rem;
    color: #1f2a44;
}
.ul-field__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.4rem;
}
.ul-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.6rem;
}
.ul-chips:empty {
    display: none;
}
.ul-chip {
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border: 0.0625rem solid #d6deeb;
    border-radius: 999px;
    background: #fbfdff;
    color: #4b5563;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ul-chip:hover {
    border-color: #9eb8ef;
    color: #2f6ae6;
}
.ul-chip.is-active {
    background: #2f6ae6;
    border-color: #2f6ae6;
    color: #ffffff;
}
.ul-chip:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.ul-results,
.ul-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ul-results li + li,
.ul-tree li + li {
    margin-top: 0.35rem;
}
.ul-result,
.ul-tree__leaf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 0.0625rem solid #dbe4f0;
    border-radius: 0.6rem;
    background: #ffffff;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1f2a44;
    text-align: left;
    cursor: pointer;
}
.ul-result:hover,
.ul-tree__leaf:hover,
.ul-result:focus-visible,
.ul-tree__leaf:focus-visible {
    border-color: #9eb8ef;
    box-shadow: 0 0 0 0.1875rem rgba(47, 106, 230, 0.12);
    outline: none;
}
.ul-result__years {
    flex: 0 0 auto;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-weight: 700;
    white-space: nowrap;
}
.ul-tree ul {
    list-style: none;
    margin: 0.3rem 0 0.4rem;
    padding: 0 0 0 1rem;
    border-left: 0.125rem solid #e5ebf3;
}
.ul-tree__head {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
}
.ul-result-card {
    margin-top: 1rem;
    padding: 1rem;
    border: 0.0625rem solid #c7d9f7;
    border-radius: 0.875rem;
    background: #f8fbff;
}
.ul-result-card[hidden] {
    display: none;
}
.ul-card__chain {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2a44;
}
.ul-result-card .ul-stat-grid {
    margin-bottom: 0.75rem;
}
.ul-result-card .ul-stat--big {
    grid-column: auto;
}
.ul-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.ul-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border: 0.0625rem solid #2f6ae6;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #2f6ae6;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}
.ul-btn:hover {
    background: #eef4ff;
}
.ul-btn[hidden] {
    display: none;
}
.ul-picked {
    margin: 0 0 0.9rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.6rem;
    background: #eef4ff;
    font-size: 0.875rem;
    color: #1f2a44;
}
.ul-check {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0 0 0.9rem;
    font-size: 0.875rem;
    color: #374151;
}
.ul-check input {
    margin-top: 0.3rem;
}
.ul-num {
    text-align: right;
    white-space: nowrap;
}
.ul-table--life tr.is-group-start td {
    border-top: 0.125rem solid #9eb8ef;
}
.ul-table--life td:first-child {
    font-weight: 700;
    min-width: 8rem;
}
.ul-table--rates td,
.ul-table--rates th {
    text-align: right;
    white-space: nowrap;
}
.ul-table--rates td:first-child,
.ul-table--rates th:first-child {
    text-align: left;
}
.ul-formula {
    margin: 0.4rem 0 0.8rem;
    padding: 0.6rem 0.9rem;
    border-left: 0.25rem solid #2f6ae6;
    background: #ffffff;
    font-weight: 700;
    color: #1f2a44;
}
.ul-list {
    margin: 0 0 0.9rem;
    padding-left: 1.2rem;
    color: #374151;
}
.ul-list li {
    margin-bottom: 0.35rem;
}
.ul-ad-mid {
    margin: 1.25rem 0;
}
.ul-table--example td:first-child {
    white-space: nowrap;
}
.ul-page section > p {
    margin: 0 0 0.9rem;
}

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