/* 無料ツールのページ。白地・細い線・べた塗り（glass.css と同じ考え方） */
.t-wrap { padding-top: 24px; padding-bottom: 48px; }
.t-main { max-width: 980px; margin: 0 auto; }
.t-head { margin-bottom: 18px; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: var(--radius); }
.t-kicker { display: flex; gap: 10px; align-items: center; margin: 0; font-size: .82rem; color: var(--muted); }
.t-kicker span { padding: 1px 8px; border-radius: 3px; background: var(--brand-dark); color: #fff; font-weight: 700; }
.t-head h1 { margin: 10px 0 6px; font-size: 1.9rem; font-weight: 900; color: var(--ink); }
.t-lead { margin: 0; color: #3a4150; }
.t-sec { margin-bottom: 18px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.t-sec h2 { margin: 0 0 12px; font-size: 1.15rem; padding-left: 10px; border-left: 4px solid var(--brand); }
.t-note { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }

/* 一覧 */
.t-index, .t-others { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.t-index a, .t-others a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; }
.t-index a:hover, .t-others a:hover { border-color: var(--brand); background: #f5f8ff; }
.t-index b, .t-others b { color: var(--brand-dark); font-size: 1.02rem; }
.t-index span, .t-others span { font-size: .85rem; color: #3a4150; }
.t-index em { align-self: flex-start; margin-top: 6px; padding: 4px 14px; border-radius: 3px; background: var(--brand); color: #fff; font-style: normal; font-weight: 700; font-size: .82rem; }

/* 入力 */
.t-form { display: grid; gap: 10px; }
.t-label { font-weight: 700; font-size: .92rem; }
.t-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.t-row label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); }
.t-row input { flex: 1 1 260px; }
.t-row .btn-main { width: auto; padding: 11px 28px; }
.t-arrow { width: 10px; height: 10px; margin-top: 18px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); }
select { font: inherit; padding: 9px 12px; border: 1px solid #c3c9d4; border-radius: var(--radius); background: #fff; }
#p8-code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85rem; line-height: 1.6; min-height: 260px; }

/* 結果 */
.t-result { margin-top: 18px; scroll-margin-top: 80px; }
.r-sum { padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); border-left: 5px solid var(--muted); font-size: .95rem; display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.r-sum b { font-size: 1.2rem; }
.r-sum span { margin-left: auto; font-size: .8rem; color: var(--muted); }
.r-sum.danger { border-left-color: var(--alert); background: #fff5f5; }
.r-sum.danger b { color: var(--alert); }
.r-sum.check { border-left-color: #d97706; background: #fffaeb; }
.r-sum.ok { border-left-color: #16a34a; background: #f0fbf4; }
.r-list { list-style: none; margin: 12px 0 0; padding: 0; }
.r-list li { padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid #d97706; border-radius: var(--radius); margin-bottom: 8px; }
.r-list li.error { border-left-color: var(--alert); }
.r-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 6px; font-size: .9rem; }
.r-lv { padding: 0 8px; border-radius: 3px; background: #d97706; color: #fff; font-size: .72rem; font-weight: 700; }
.error .r-lv { background: var(--alert); }
.r-line, .r-since { font-size: .78rem; color: var(--muted); }
.r-code { display: block; white-space: pre-wrap; word-break: break-all; padding: 6px 10px; margin-bottom: 6px; }
.r-fix { margin: 0; font-size: .85rem; color: #3a4150; }
.r-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .92rem; }
.r-table th, .r-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.r-table th { width: 30%; background: #f7f8fa; white-space: nowrap; }
.r-h { margin: 16px 0 6px; font-size: .95rem; }
.r-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; background: #fafbfc; }
.r-cta p { margin: 0; }

/* 保守期限の表と図 */
.t-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.t-table table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.t-table th, .t-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.t-table thead th { background: #f7f8fa; font-size: .76rem; color: var(--muted); }
.t-table tbody th { font-weight: 900; }
.t-table tr.danger td, .t-table tr.danger th { color: #6b7280; }
.t-table .days b { font-size: 1.1rem; color: var(--ink); }
.t-table tr.check .days b { color: var(--alert); }
.ics { display: block; margin-top: 4px; padding: 3px 8px; border: 1px solid var(--brand); border-radius: var(--radius); background: #fff; color: var(--brand); font-weight: 700; font-size: .78rem; cursor: pointer; }
.ics:hover { background: #eef3ff; }
.g-chart { margin-bottom: 16px; padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.g-years { position: relative; height: 22px; margin-left: 48px; font-size: .7rem; color: var(--muted); }
.g-years span { position: absolute; transform: translateX(-50%); }
.g-today { position: absolute; top: 0; height: 160px; border-left: 2px solid var(--alert); z-index: 1; }
.g-today em { position: absolute; bottom: -2px; left: 4px; padding: 0 4px; background: #fff; font-style: normal; font-size: .7rem; font-weight: 700; color: var(--alert); white-space: nowrap; }
.g-row { display: grid; grid-template-columns: 48px 1fr; align-items: center; height: 30px; font-weight: 900; font-size: .85rem; }
.g-track { position: relative; height: 14px; background: #f2f4f7; }
.g-track i { position: absolute; top: 0; bottom: 0; }
.g-active { background: var(--brand); }
.g-sec { background: #93b4f5; }
.g-legend { display: flex; gap: 14px; align-items: center; margin: 8px 0 0; font-size: .75rem; color: var(--muted); }
.g-legend i { display: inline-block; width: 14px; height: 10px; margin-right: 4px; vertical-align: -1px; }
.t-remind { grid-template-columns: 1fr auto; display: grid; gap: 10px; max-width: 560px; }
.t-remind .btn-main { width: auto; padding: 11px 24px; }
.t-remind .remind-msg { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .t-head, .t-sec { padding: 18px 16px; }
  .t-head h1 { font-size: 1.45rem; }
  .t-index, .t-others { grid-template-columns: 1fr; }
  .t-remind { grid-template-columns: 1fr; }
  .g-today { height: 150px; }
}
