/* カスタム分析（/analysis）のブログデザイン版（2026-10-09）。blog.css の上に重ねる。
   方針は記事ページと同じ: 角丸カード・影を使わず、罫線で区切る。数字は Barlow Condensed。 */

.ta-page { max-width: 980px; margin: 0 auto; }
.ta-head .b-meta { font-size: 14px; }
.ta-head .b-meta a { color: #1E6B4E; font-weight: 700; text-decoration: none; }
.ta-head h1 { margin: 8px 0 0; font-size: clamp(24px, 3.2vw, 32px); line-height: 1.45; font-weight: 700; color: #111111; }
.ta-lead { margin: 16px 0 0; font-size: 17px; line-height: 1.9; }

/* 番号つき見出し（記事の「01 データで見る」と同じ形） */
.ta-body { counter-reset: tah2; }
.ta-h2 {
  margin: 52px 0 0; padding-bottom: 8px; border-bottom: 3px solid #1B2A47;
  font-size: 23px; line-height: 1.5; font-weight: 700; color: #111111; counter-increment: tah2;
}
.ta-h2::before {
  content: counter(tah2, decimal-leading-zero); font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; color: #1E6B4E; margin-right: 12px;
}
.ta-h3 { margin: 36px 0 0; font-size: 19px; line-height: 1.6; font-weight: 700; color: #111111; display: flex; align-items: center; gap: 10px; }
.ta-h3::before { content: ""; flex: 0 0 10px; width: 10px; height: 10px; background: #1E6B4E; }
.ta-note { margin: 10px 0 0; font-size: 14px; line-height: 1.75; color: #616161; }
.ta-note strong { color: #222222; }

/* フォーム */
.ta-group { margin-top: 24px; }
.ta-group-title { font-size: 16px; font-weight: 700; color: #111111; padding-bottom: 6px; border-bottom: 1px solid #BDBDBD; }
.ta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 20px; margin-top: 16px; }
.ta-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ta-field.is-wide { grid-column: span 2; }
.ta-field > label, .ta-field > .ta-label { font-size: 14px; font-weight: 700; color: #111111; line-height: 1.5; }
.ta-field input, .ta-field select {
  font: inherit; font-size: 16px; color: #222222; height: 44px; padding: 0 10px;
  border: 1px solid #9E9E9E; border-radius: 2px; background: #FFFFFF; width: 100%; min-width: 0;
}
.ta-field input:focus, .ta-field select:focus { outline: 2px solid #1A55A8; outline-offset: 1px; }
.ta-range { display: flex; align-items: center; gap: 6px; }
.ta-range span { flex: 0 0 auto; color: #616161; }
.ta-range input { flex: 1 1 0; }

/* 号艇ごとの条件（開閉） */
.ta-boats { margin-top: 12px; border-top: 1px solid #D6D6D6; }
.ta-boat { border-bottom: 1px solid #D6D6D6; }
.ta-boat > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; font-size: 16px; font-weight: 700; color: #111111;
}
.ta-boat > summary::-webkit-details-marker { display: none; }
.ta-boat > summary::before { content: "+"; flex: 0 0 18px; font-family: 'Barlow Condensed', sans-serif; font-size: 22px; line-height: 1; color: #1E6B4E; }
.ta-boat[open] > summary::before { content: "−"; }
.ta-boat-count { margin-left: auto; font-size: 13px; font-weight: 400; color: #616161; }
.ta-boat-count.is-set { color: #1E6B4E; font-weight: 700; }
.ta-boat .ta-grid { margin: 4px 0 20px; }

.ta-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ta-submit {
  height: 52px; min-width: 280px; padding: 0 28px; border: none; border-radius: 2px;
  background: #1B2A47; color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.ta-submit:hover { background: #24375C; }
.ta-submit:disabled { opacity: .55; cursor: not-allowed; }
.ta-reset { font-size: 15px; }

/* 結果の要約（罫線で区切った数字の並び） */
.ta-dataline { margin-top: 16px; }
.ta-stats {
  margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #D6D6D6; border-left: 1px solid #D6D6D6;
}
.ta-stat { border-right: 1px solid #D6D6D6; border-bottom: 1px solid #D6D6D6; padding: 12px 14px 10px; min-width: 0; }
.ta-stat .v { font-family: 'Barlow Condensed', 'BIZ UDPGothic', sans-serif; font-size: 28px; font-weight: 600; line-height: 1.2; color: #1B2A47; }
.ta-stat .v small { font-size: 16px; margin-left: 2px; }
.ta-stat .k { margin-top: 2px; font-size: 13px; line-height: 1.5; color: #424242; }
.ta-mark { color: #A23B00; font-weight: 700; }
.ta-error { margin-top: 20px; padding: 12px 16px; border: 1px solid #F1B5AE; background: #FEF3F2; color: #B42318; font-size: 15px; }

/* 保存 */
.ta-save { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ta-save p { margin: 0; font-size: 15px; line-height: 1.8; }
.ta-btn2 {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1px solid #1B2A47; border-radius: 2px;
  background: #FFFFFF; color: #1B2A47; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.ta-btn2:hover { background: #F2F4F8; color: #1B2A47; }
.ta-btn2:disabled { opacity: .5; cursor: not-allowed; }
.ta-saved { margin-top: 16px; border-top: 1px solid #D6D6D6; }
.ta-saved-item { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #D6D6D6; }
.ta-saved-title { font-weight: 700; color: #111111; }
.ta-saved-sub { font-size: 13px; color: #616161; line-height: 1.6; }
.ta-saved-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.ta-saved-actions button { height: 36px; padding: 0 12px; font-size: 14px; }
.ta-saved-actions .is-danger { border-color: #B42318; color: #B42318; }
.ta-empty { margin-top: 12px; font-size: 15px; color: #616161; }

/* 意見箱 */
.ta-lead2 { margin: 16px 0 0; font-size: 16px; line-height: 1.85; }
.ta-feedback { margin-top: 16px; }
.ta-feedback textarea {
  font: inherit; font-size: 16px; line-height: 1.8; color: #222222; width: 100%; min-height: 140px; resize: vertical;
  padding: 10px 12px; border: 1px solid #9E9E9E; border-radius: 2px; background: #FFFFFF;
}
.ta-feedback textarea:focus { outline: 2px solid #1A55A8; outline-offset: 1px; }
.ta-hint { font-size: 14px; color: #616161; line-height: 1.6; }
.ta-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ta-fb-status { margin: 12px 0 0; font-size: 15px; line-height: 1.7; }
.ta-fb-status.is-error { color: #B42318; font-weight: 700; }
.ta-fb-done { margin-top: 16px; padding: 14px 18px; border: 1px solid #A7D3BE; background: #F1F8F4; color: #1E6B4E; font-size: 16px; }

@media (max-width: 760px) {
  .ta-lead { font-size: 16px; }
  .ta-h2 { font-size: 20px; margin-top: 44px; }
  .ta-grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .ta-field.is-wide { grid-column: 1 / -1; }
  .ta-stats { grid-template-columns: repeat(2, 1fr); }
  .ta-stat .v { font-size: 24px; }
  .ta-submit { width: 100%; min-width: 0; }
  .ta-saved-item { flex-direction: column; }
}
