/* pti.css: アルバイト収入・時給計算ツールの追加スタイル。節ごとに担当が書く。 */

/* form */
html { scroll-padding-bottom: 160px; }
#calc-card [hidden] { display: none !important; }
#form-error { background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; padding: 10px 14px; margin: 8px 0 12px; color: #991b1b; font-size: 14px; }
#form-error ul { margin: 0; padding-left: 20px; }
#hours-warn { color: #92400e; font-size: 14px; margin-bottom: 8px; background: #fffbeb; padding: 8px; border-radius: 6px; border-left: 3px solid #f59e0b; display: none; }
.pti-howto { margin: 0 0 12px; }
.pti-howto > summary { font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; color: #1e40af; font-size: 14px; }
.pti-prereq { margin: 0 0 12px; }
.pti-prereq > summary { font-size: 14px; font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 4px 12px; border: 1px solid #c4b5fd; border-radius: 10px; background: #fff; color: #4c1d95; line-height: 1.5; }
.pti-fs { border: 1px solid #d8c9f5; border-radius: 10px; margin: 0 0 12px; padding: 8px 12px 10px; background: #fff; min-width: 0; }
.pti-fs > legend { font-size: 14px; font-weight: 700; padding: 0 6px; color: #1f2937; }
.pti-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.pti-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid #c4b5fd; border-radius: 10px; background: #faf5ff; font-size: 15px; cursor: pointer; box-sizing: border-box; max-width: 100%; }
.pti-opt input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
.pti-opt:has(input:checked) { background: #ede9fe; border-color: #7c3aed; font-weight: 700; }
.pti-opt:focus-within { outline: 2px solid #7c3aed; outline-offset: 2px; }
.pti-help { font-size: 14px; line-height: 1.6; color: #374151; margin: 4px 0 10px; }
.pti-sub { font-size: 14px; font-weight: 700; margin: 10px 0 6px; color: #1f2937; }
.pti-lab { display: block; font-size: 14px; font-weight: 700; margin: 8px 0 4px; color: #1f2937; }
.pti-req { color: #b91c1c; font-weight: 600; margin-left: 2px; }
.pti-ctl { display: block; width: 100%; min-height: 44px; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; box-sizing: border-box; margin-bottom: 6px; background: #fff; }
.pti-err { color: #b91c1c; font-size: 14px; margin-bottom: 4px; min-height: 0; }
.pti-warn { color: #92400e; font-size: 14px; margin-bottom: 8px; background: #fffbeb; padding: 8px; border-radius: 6px; border-left: 3px solid #f59e0b; display: none; }
.pti-job-title { font-size: 15px; font-weight: 800; margin: 12px 0 4px; color: #4c1d95; }
.pti-job2 { border-top: 2px dashed #c4b5fd; margin-top: 12px; padding-top: 4px; }
.pti-btn2 { display: block; width: 100%; min-height: 44px; padding: 10px 14px; margin: 8px 0; border: 1px solid #7c3aed; border-radius: 10px; background: #fff; color: #4c1d95; font-size: 15px; font-weight: 700; cursor: pointer; box-sizing: border-box; }
.pti-save { margin: 8px 0; }
.pti-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.pti-check input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; }
.pti-actions { margin: 8px 0 4px; }
#res-heading:focus { outline: 2px solid #047857; outline-offset: 3px; }

/* result */
#r-empty { color: #374151; font-size: 14px; line-height: 1.8; padding: 4px 2px; }
#r-content .result-grid { grid-template-columns: 1fr 1fr; }
#r-content .rc-main { grid-column: span 2; border: 3px solid #10b981; }
#r-content .rc-sub { font-size: 14px; margin-top: 4px; color: #065f46; }
#r-content .rc { background: #f1f5f9; color: #1e293b; }
#r-content .rc-green { background: #ECFDF5; color: #065f46; }
#r-content .rc-blue { background: #EDE9FE; color: #4c1d95; }
#r-content .rc-amber { background: #FFFBEB; color: #92400e; }
#res-reason { background: #fffbeb; border-left: 4px solid #f59e0b; border-radius: 6px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; color: #78350f; line-height: 1.7; }
#res-disclaimer { font-size: 14px; line-height: 1.7; color: #1f2937; background: #fff; border: 1px solid #a7f3d0; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; }
#res-status, #res-notes ul, #res-assump ul { margin: 0 0 12px; padding-left: 20px; font-size: 14px; line-height: 1.8; color: #1f2937; }
#res-assump { font-size: 14px; color: #1f2937; margin-bottom: 12px; }
#res-assump .pti-h { font-weight: 700; margin: 0 0 4px; }
.pti-walls { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 12px; }
.pti-walls caption { text-align: left; font-weight: 700; padding: 4px 0; }
.pti-walls th, .pti-walls td { border: 1px solid #d1d5db; padding: 6px 8px; text-align: left; vertical-align: top; }
.pti-dl { margin: 0; font-size: 14px; line-height: 1.7; }
.pti-dl dt { font-weight: 700; margin-top: 8px; color: #047857; }
.pti-dl dd { margin: 0; color: #1f2937; word-break: break-all; }
#res-breakdown-wrap > summary { font-weight: 700; cursor: pointer; padding: 10px 0; min-height: 44px; }
#chart-card canvas { max-width: 100%; height: auto; }
#sample-details { margin: 0 0 16px; }
#sample-details > summary { font-weight: 700; cursor: pointer; padding: 12px 8px; min-height: 44px; }

/* notes */
.pti-faq h2, .pti-about h2, .pti-guide h2, .pti-sources h2, .pti-notice h2 { font-size: 18px; font-weight: 800; margin: 0 0 12px; color: #1e293b; }
.pti-faq-item { border: 1px solid #e5e7eb; border-radius: 8px; padding: 4px 14px; margin-bottom: 10px; background: #fff; }
.pti-faq-item > summary { font-size: 15px; font-weight: 700; color: #1f2937; cursor: pointer; padding: 10px 0; min-height: 44px; line-height: 1.6; }
.pti-faq-item > p { font-size: 15px; color: #374151; line-height: 1.8; margin: 0 0 12px; }
.pti-about p, .pti-guide p, .pti-sources p { font-size: 15px; color: #374151; line-height: 1.8; margin: 0 0 10px; }
.pti-sources ul, .pti-notice ul { margin: 0 0 10px; padding-left: 20px; font-size: 15px; color: #374151; line-height: 1.8; }
.pti-sources a { color: #1d4ed8; text-decoration: underline; word-break: break-all; }
#res-notes a { color: #1d4ed8; text-decoration: underline; }
.pti-guide .pti-walls { margin-bottom: 18px; }
.pti-you { color: #065f46; font-weight: 600; }
.pti-sample { background: #f0f9ff; border: 2px solid #0ea5e9; border-radius: 8px; padding: 14px; margin-bottom: 14px; font-size: 15px; line-height: 1.8; color: #1f2937; }
.pti-sample .pti-h { font-weight: 700; margin: 0 0 6px; color: #0369a1; }
.pti-sample ul { margin: 6px 0 8px 20px; }
.pti-sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.pti-sample-tile { background: #e0f2fe; padding: 10px; border-radius: 6px; text-align: center; }
.pti-sample-tile.wide { grid-column: span 2; background: #dcfce7; }
.pti-sample-tile .l { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: #0c4a6e; }
.pti-sample-tile .v { font-size: 20px; font-weight: 700; margin: 0; color: #0c4a6e; }
.pti-walls td, .pti-walls th { overflow-wrap: anywhere; }
.pti-walls th[scope="row"] { width: 38%; font-weight: 600; }
.pti-walls td:nth-child(2) { width: 24%; white-space: nowrap; }

/* a11y */
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; margin: 0; overflow: visible; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; box-sizing: border-box; background: #4c1d95; color: #fff; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; z-index: 2147483647; }
:focus-visible { outline: 3px solid #1d4ed8 !important; outline-offset: 2px !important; }
#consent-banner-v2 :focus-visible { outline-color: #fff !important; }
#consent-banner-v2 { font-size: 14px !important; }
#consent-banner-v2 a { display: inline-flex !important; align-items: center; min-height: 44px; min-width: 44px; }
#back-to-top { bottom: calc(24px + var(--pti-banner-h, 0px)) !important; }
.pti-topbar a, .pti-blogbar a, nav[aria-label="パンくずリスト"] a, footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
footer a[href*="tech-and-brace"] { display: inline-flex !important; }
.pti-crumb1 { display: flex; align-items: center; padding-top: 0 !important; padding-bottom: 0 !important; }
nav[aria-label="パンくずリスト"] ol { row-gap: 0 !important; }
.pti-sources li a { display: inline-block; min-height: 44px; padding: 12px 0; box-sizing: border-box; }
#r-content .result-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
#r-content .rc-main { grid-column: 1 / -1; }
#r-content .rc-val { overflow-wrap: anywhere; }
#res-takehome { color: #064e3b; }
#res-status { list-style: none; padding-left: 0; }
#res-status > li { margin-bottom: 8px; }
.pti-tag { display: inline-block; font-size: 14px; font-weight: 800; line-height: 1.6; padding: 0 8px; margin-right: 8px; border: 1px solid currentColor; border-radius: 4px; }
.pti-tag-ok { background: #ecfdf5; color: #065f46; }
.pti-tag-warn { background: #fffbeb; color: #92400e; }
.pti-tag-check { background: #eff6ff; color: #1e3a8a; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ads */
#ads-block { max-width: 760px; margin: 32px auto 16px; padding: 16px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 12px; color: #1f2937; }
#ads-block .ads-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: #374151; }
#ads-block .ads-note { font-size: 14px; line-height: 1.7; margin: 0 0 12px; color: #374151; }
#ads-block .ads-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
#ads-block .ads-desc { font-size: 14px; line-height: 1.7; margin: 0 0 6px; color: #1f2937; }
#ads-block .ads-pr { display: inline-block; font-size: 14px; font-weight: 700; line-height: 1.4; padding: 0 8px; margin-right: 8px; color: #374151; background: #e5e7eb; border: 1px solid #6b7280; border-radius: 4px; }
#ads-block .ads-link { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; padding: 10px 16px; font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: underline; color: #1e40af; background: #fff; border: 2px solid #1e40af; border-radius: 10px; }
#ads-block .ads-link:hover { background: #eff6ff; }
#ads-block .ads-link:focus-visible { outline: 3px solid #1e3a8a; outline-offset: 2px; }
