/* 講師用ページ（月額・年額プラン）。フォームは1pxの線・文字400・角丸8px */
.page-ta .site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.page-ta .site-header.is-scrolled { background: var(--bg); border-bottom-color: var(--line); }
.ta { min-height: calc(100svh - 64px); padding: 64px 0 0; }
.ta-loading { padding: 64px clamp(16px, 3vw, 48px); color: var(--muted); }
.ta-eyebrow { margin: 0 0 12px; font-size: 13px; color: var(--text-2); }
.ta h1 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.4; font-weight: 500; letter-spacing: -0.02em; }
.ta h2 { margin: 0 0 16px; font-size: 18px; font-weight: 500; }

/* login */
.ta-login { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: calc(100svh - 64px); padding: 48px clamp(16px, 4vw, 80px); background: linear-gradient(135deg, var(--pink-soft), var(--bg) 60%, var(--green-soft)); }
.ta-login-copy p { max-width: 40em; color: var(--text-2); line-height: 1.9; margin: 20px 0 0; }
.ta-points { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 40em; }
.ta-points li { position: relative; padding-left: 20px; color: var(--text); font-size: 14px; line-height: 1.8; }
.ta-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.ta-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.ta-login-form { max-width: 440px; width: 100%; justify-self: end; }

/* fields */
.ta-field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.ta-field > label, .ta-field > legend { display: block; margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 400; color: var(--text); }
.ta-field small { margin-left: 4px; font-size: 11px; color: var(--muted); }
.ta input[type=email], .ta input[inputmode], .ta textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-size: 14px; font-weight: 400; line-height: 1.6; }
.ta input[type=email], .ta input[inputmode] { height: 44px; }
.ta textarea { resize: vertical; min-height: 72px; }
.ta ::placeholder { color: #a3a3a3; }
.ta :is(input, textarea):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ta [aria-invalid=true] { border-color: var(--pink-deep) !important; }
.ta-unit { position: relative; }
.ta-unit input { padding-right: 40px !important; }
.ta-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.ta-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.ta-seg label { position: relative; }
.ta-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ta-seg span { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 14px; font-weight: 400; transition: background .15s, border-color .15s; }
.ta-seg input:checked + span { border-color: var(--ink); background: var(--green-soft); color: var(--text); }
.ta-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.ta-seg label:hover span { border-color: #a89a84; }
.ta-help { margin: 6px 0 0; font-size: 12px; line-height: 1.8; color: var(--text-2); }
.ta-err { margin: 6px 0 0; font-size: 12px; color: var(--pink-deep); }
.ta-err:empty, .ta-msg:empty { display: none; }
.ta-msg { margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: var(--text); }
.ta-msg.is-error { color: var(--pink-deep); }
.ta-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 16px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 400; cursor: pointer; transition: background .15s, transform .12s; }
.ta-btn:hover:not(:disabled) { background: var(--ink-deep); }
.ta-btn:active:not(:disabled) { transform: scale(.98); }
.ta-btn:disabled { opacity: .55; cursor: wait; }
.ta-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.ta-link { padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* dashboard */
.ta-dash { padding: 40px clamp(16px, 3vw, 48px) 64px; }
.ta-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ta-head-actions { display: flex; gap: 20px; }
.ta-notice { margin: 0 0 20px; padding: 12px 16px; border-radius: 8px; background: var(--pink-soft); font-size: 14px; }
.ta-grid { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 24px; align-items: start; }
.ta-calc { padding: 14px 16px; border-radius: 8px; background: var(--sunk); font-size: 13px; line-height: 1.9; }
.ta-calc b { font-weight: 500; }
.ta-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.ta-plan { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ta-plan.is-stopped { background: var(--sunk); color: var(--text-2); }
.ta-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ta-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--green-soft); color: var(--ink-deep); }
.ta-plan.is-stopped .ta-badge { background: var(--line); color: var(--text-2); }
.ta-plan-price { font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ta-plan-price small { font-size: 13px; font-weight: 400; color: var(--text-2); margin-left: 4px; }
.ta-plan-meta { margin: 0; font-size: 13px; line-height: 1.8; color: var(--text-2); }
.ta-plan-note { margin: 0; font-size: 13px; line-height: 1.8; }
.ta-plan-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.ta-empty { color: var(--text-2); }

@media (max-width: 900px) {
  .ta-login { grid-template-columns: 1fr; align-content: start; min-height: 0; }
  .ta-login-form { justify-self: stretch; max-width: none; }
  .ta-grid { grid-template-columns: 1fr; }
  .ta input[type=email], .ta input[inputmode], .ta textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ta-btn:active:not(:disabled) { transform: none; } }
