/* 講師登録ページ — AICREW LABの登録画面と同じ構成（左に説明、右に固定の登録フォーム） */
.page-apply { --side: 380px; --ap-line: var(--line); --ap-field: var(--line-strong); --ap-muted: var(--text-2); background: var(--bg); }
.page-apply main { padding-top: 0; min-width: 0; }
.page-apply .site-header { background: var(--bg); border-bottom: 1px solid var(--ap-line); }
.page-apply .site-header.is-scrolled { background: var(--bg); border-bottom-color: var(--ap-line); }
.page-apply .site-footer { position: relative; z-index: 1; }
html:has(.page-apply) { scroll-padding-top: 80px; }

.ap-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); padding-top: 64px; }

/* hero */
.ap-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 780px; height: calc(100svh - 64px); background: var(--ink-deep); color: #fff; }
.ap-hero-content { position: relative; z-index: 2; padding: 48px 40px 16px; }
.ap-hero h1 { font-size: clamp(36px, 4vw, 60px); line-height: 1.4; font-weight: 500; letter-spacing: -0.04em; margin: 0; }
.ap-hero h1 span { display: inline-block; }
:lang(en) .ap-hero h1 { letter-spacing: -0.02em; }
.ap-hero p { font-size: 16px; line-height: 1.9; margin: 24px 0 0; color: var(--hover); }
.ap-hero-link { display: inline-flex; align-items: center; gap: 40px; margin-top: 32px; padding: 0 0 8px; font-size: 14px; font-weight: 500; color: #fff; text-decoration: none; border-bottom: 1px solid #ffffff90; }
.ap-hero-people { position: relative; z-index: 1; flex: 1 1 auto; min-height: 260px; display: flex; justify-content: center; align-items: flex-end; padding: 0 4%; pointer-events: none; }
.ap-hero-people img { height: 90%; width: auto; max-width: 36%; object-fit: contain; object-position: bottom; margin-inline: -2%; filter: drop-shadow(0 12px 32px #00000066); }
.ap-hero-people img:nth-child(2) { height: 100%; max-width: 40%; position: relative; z-index: 1; }
.ap-scroll { position: absolute; z-index: 3; left: 40px; bottom: 24px; padding: 6px 12px; font-size: 12px; color: #fff; text-decoration: none; background: #000000d9; }

/* strip */
.ap-strip { padding: 48px 28px; text-align: center; background: var(--bg); }
.ap-strip p { margin: 0 0 28px; font-size: 15px; font-weight: 500; }
.ap-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 32px; font-size: clamp(16px, 1.6vw, 24px); font-weight: 500; letter-spacing: -0.03em; }
.ap-words span::after { content: "／"; margin-left: 32px; color: var(--pink); font-weight: 400; }
.ap-words span:last-child::after { content: none; }

/* sections */
.ap-section { padding: 96px clamp(24px, 4vw, 64px); }
.ap-eyebrow { margin: 0 0 24px; font-size: 13px; font-weight: 500; }
.ap-section h2, .ap-closing h2 { margin: 0; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.5; font-weight: 500; letter-spacing: -0.04em; }
.ap-about { background: var(--surface); }
.ap-lead { max-width: 720px; margin: 32px 0 0; font-size: 16px; line-height: 2; }
.ap-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.ap-benefits article { padding-top: 24px; border-top: 2px solid var(--ink-deep); }
.ap-benefits h3 { margin: 0 0 16px; font-size: 20px; line-height: 1.6; font-weight: 500; }
.ap-benefits p { margin: 0; font-size: 14px; line-height: 2; color: var(--ap-muted); }

.ap-fee { background: var(--sunk); }
.ap-fee-table { width: 100%; max-width: 720px; margin-top: 48px; border-collapse: collapse; font-size: 15px; background: var(--surface); }
.ap-fee-table th, .ap-fee-table td { padding: 16px 20px; border-top: 1px solid var(--ap-line); text-align: left; font-weight: 400; }
.ap-fee-table thead th { font-size: 12px; color: var(--ap-muted); border-top: 0; }
.ap-fee-table thead th:last-child, .ap-fee-table td { text-align: right; }
.ap-fee-table td { font-weight: 500; }
.ap-note { max-width: 720px; margin: 20px 0 0; font-size: 13px; line-height: 1.9; color: var(--ap-muted); }

.ap-flow { background: var(--bg); }
.ap-flow-list { list-style: none; padding: 0; margin: 48px 0 40px; }
.ap-flow-list li { display: flex; gap: 28px; align-items: flex-start; padding: 28px 0; border-top: 1px solid var(--ap-line); }
.ap-flow-list li:last-child { border-bottom: 1px solid var(--ap-line); }
.ap-step { font: 400 32px/1.4 "Inter", Arial, sans-serif; flex: 0 0 48px; }
.ap-flow-list h3 { margin: 0 0 8px; font-size: 22px; font-weight: 500; }
.ap-flow-list p { margin: 0; max-width: 560px; font-size: 14px; line-height: 1.9; color: var(--ap-muted); }

.ap-faq { background: var(--surface); }
.ap-faq h2 { margin-bottom: 40px; }
.ap-faq details { border-top: 1px solid var(--ap-line); }
.ap-faq details:last-of-type { border-bottom: 1px solid var(--ap-line); }
.ap-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; list-style: none; cursor: pointer; font-size: 15px; font-weight: 500; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary > span:not(.q) { position: relative; flex: 0 0 16px; height: 16px; }
.ap-faq summary > span:not(.q)::before, .ap-faq summary > span:not(.q)::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 1px; background: var(--ink-deep); transition: transform 160ms var(--ease); }
.ap-faq summary > span:not(.q)::after { transform: rotate(90deg); }
.ap-faq details[open] summary > span:not(.q)::after { transform: rotate(0); }
.ap-faq details p { margin: 0; padding: 0 32px 24px 0; font-size: 14px; line-height: 2; color: var(--ap-muted); }

.ap-closing { padding: 80px 40px 96px; background: var(--ink-deep); color: #fff; }
.ap-closing p { margin: 0 0 24px; font-size: 15px; }
.ap-closing h2 { margin-bottom: 40px; font-size: clamp(32px, 3.8vw, 54px); line-height: 1.4; }

/* 発光ボタン（主CTAだけ） */
@property --ap-glow { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.ap-button, .ap-submit, .ap-mobile-cta > a { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: space-between; gap: 48px; min-height: 56px; padding: 16px 24px; border: 1px solid #ffffff30; border-radius: 12px; background: var(--ink-deep); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease), background 160ms; }
.ap-button::before, .ap-submit::before, .ap-mobile-cta > a::before,
.ap-button::after, .ap-submit::after, .ap-mobile-cta > a::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--ap-glow), transparent 0deg 235deg, #ef9fb4 260deg, #fbe3ea 280deg, #fff 300deg, #cfe6bf 315deg, #8fbf74 335deg, transparent 355deg); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; animation: ap-glow 5s linear infinite; }
.ap-button::after, .ap-submit::after, .ap-mobile-cta > a::after { inset: -4px; padding: 4px; filter: blur(5px); opacity: .55; }
@keyframes ap-glow { to { --ap-glow: 360deg; } }
.ap-button:hover, .ap-submit:hover:not(:disabled), .ap-mobile-cta > a:hover { background: var(--ink); }
.ap-button:active, .ap-submit:active:not(:disabled), .ap-mobile-cta > a:active { transform: scale(.98); }
.ap-button:focus-visible, .ap-submit:focus-visible, .ap-mobile-cta > a:focus-visible { outline: 2px solid #555; outline-offset: 6px; }
.ap-button-light:focus-visible { outline-color: #fff; }

/* 登録カード */
.ap-register { background: var(--surface); min-width: 0; border-left: 1px solid var(--ap-line); }
.ap-card { position: sticky; top: 64px; max-height: calc(100svh - 64px); overflow-y: auto; scrollbar-width: thin; background: var(--surface); }
.ap-card-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--ink-deep); color: #fff; }
.ap-card-head h2 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 500; }
.ap-card-head span { font-size: 12px; }
#tutor-form { padding: 20px; }
.ap-intro { margin: 0 0 8px; font-size: 13px; line-height: 1.8; color: var(--ap-muted); }
.ap-group-label { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--ap-line); font-size: 12px; color: var(--ap-muted); }
.ap-field { margin-top: 16px; }
.ap-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 400; line-height: 1.6; }
.ap-field small, .ap-consent small { margin-left: 4px; font-size: 11px; color: var(--ap-muted); }
#tutor-form input:not([type=checkbox]), #tutor-form textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--ap-field); border-radius: 8px; background: var(--surface); color: var(--ink-deep); font-size: 14px; font-weight: 400; line-height: 1.6; }
#tutor-form input:not([type=checkbox]) { height: 44px; }
#tutor-form textarea { min-height: 72px; resize: vertical; }
#tutor-form ::placeholder { color: var(--muted); }
#tutor-form :is(input, textarea):focus-visible { outline: 2px solid #777; outline-offset: 2px; border-radius: 8px; }
#tutor-form [aria-invalid=true] { border-color: var(--pink-deep); }
.ap-unit { position: relative; }
.ap-unit input { padding-right: 44px !important; }
.ap-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--ap-muted); pointer-events: none; }
.ap-help { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: var(--ap-muted); }
.ap-err { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--pink-deep); }
.ap-err:empty { display: none; }
.ap-hp { display: none; }
.ap-consent { display: flex; align-items: flex-start; gap: 8px; margin: 24px 0 0; font-size: 12px; line-height: 1.8; cursor: pointer; }
.ap-consent input { flex: 0 0 16px; width: 16px; height: 16px; margin: 3px 0 0; accent-color: #333; }
.ap-consent a { margin-left: 4px; }
.ap-message { margin: 12px 0 0; font-size: 13px; color: var(--pink-deep); }
.ap-message:empty { display: none; }
.ap-submit { width: 100%; margin-top: 16px; font: inherit; font-size: 14px; font-weight: 500; }
.ap-submit:disabled { cursor: wait; background: #555; }
.ap-submit:disabled::before, .ap-submit:disabled::after { animation-play-state: paused; opacity: .2; }
.ap-form-note { margin: 12px 0 0; font-size: 11px; line-height: 1.8; color: var(--ap-muted); }
.ap-card-brand { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 24px; background: var(--ink-deep); color: #fff; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }

.ap-success { padding: 40px 24px; }
.ap-success:focus { outline: none; }
.ap-success-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ap-success-head h3 { margin: 0; font-size: 21px; line-height: 1.5; font-weight: 500; }
.ap-success-mark svg { display: block; width: 40px; height: 40px; stroke: var(--ink-deep); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ap-ring, .ap-tick { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ap-success:not([hidden]) .ap-ring { animation: ap-draw 460ms cubic-bezier(.22,.61,.36,1) both; }
.ap-success:not([hidden]) .ap-tick { animation: ap-draw 320ms cubic-bezier(.22,.61,.36,1) 400ms both; }
@keyframes ap-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ap-success p { margin: 0; font-size: 14px; line-height: 2; color: var(--text-2); }
.ap-success a { display: inline-block; margin-top: 24px; font-size: 13px; text-underline-offset: 6px; }

.ap-mobile-cta { display: none; }

@media (max-width: 1150px) {
  .page-apply { --side: 340px; }
  .ap-benefits { grid-template-columns: 1fr; gap: 0; }
  .ap-benefits article { padding: 24px 0; }
}
@media (max-width: 960px) {
  .ap-layout { display: block; }
  .ap-hero { min-height: 0; height: auto; }
  .ap-hero-people { height: 380px; flex: none; }
  .ap-hero-content { padding: 40px 24px; }
  .ap-scroll { left: 24px; }
  .ap-register { padding: 48px 24px 96px; border-left: 0; background: var(--sunk); }
  .ap-card { position: static; max-height: none; overflow: visible; max-width: 560px; margin: 0 auto; border-radius: 0; }
  .ap-card-head { position: static; }
  .ap-intro, .ap-field label { font-size: 14px; }
  #tutor-form input:not([type=checkbox]), #tutor-form textarea { font-size: 16px; }
  #tutor-form input:not([type=checkbox]) { height: 48px; }
  .ap-consent { font-size: 13px; }
  .ap-form-note { font-size: 12px; }
  .ap-mobile-cta { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--ap-line); font-size: 12px; transition: opacity 160ms; }
  .ap-mobile-cta > a { min-height: 48px; padding: 12px 20px; gap: 24px; }
  .ap-mobile-cta.is-hidden { opacity: 0; visibility: hidden; }
  .page-apply .site-footer { padding-bottom: 88px; }
}
@media (max-width: 600px) {
  .ap-hero { min-height: 0; }
  .ap-hero h1 { font-size: 32px; }
  .ap-hero p { font-size: 15px; }
  .ap-hero-people { padding: 0; height: 280px; flex: none; }
  .ap-hero-people img { max-width: 46%; margin-inline: -7%; }
  .ap-hero-people img:nth-child(2) { max-width: 52%; }
  .ap-strip { padding: 40px 16px; }
  .ap-words { gap: 8px 16px; font-size: 16px; }
  .ap-words span::after { margin-left: 16px; }
  .ap-section { padding: 64px 16px; }
  .ap-lead { font-size: 15px; }
  .ap-fee-table th, .ap-fee-table td { padding: 14px 12px; font-size: 14px; }
  .ap-flow-list li { gap: 16px; }
  .ap-step { font-size: 24px; flex-basis: 36px; }
  .ap-flow-list h3 { font-size: 19px; }
  .ap-closing { padding: 64px 16px 80px; }
  .ap-register { padding: 40px 16px 88px; }
  #tutor-form { padding: 20px 16px; }
  .ap-mobile-cta { padding-inline: 16px; font-size: 11px; }
  .ap-mobile-cta > a { padding: 12px 16px; gap: 16px; }
}
@media (max-width: 360px) {
  .ap-mobile-cta > span { display: none; }
  .ap-mobile-cta > a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-button::before, .ap-submit::before, .ap-mobile-cta > a::before, .ap-button::after, .ap-submit::after, .ap-mobile-cta > a::after { animation: none; }
  .ap-button:active, .ap-submit:active, .ap-mobile-cta > a:active { transform: none; }
  .ap-success:not([hidden]) :is(.ap-ring, .ap-tick) { animation: none; }
  .ap-faq summary > span:not(.q)::after { transition: none; }
}

/* 三色団子の差し色 */
.ap-closing { background: var(--pink-soft); color: var(--text); }
.ap-closing .ap-button-light:focus-visible { outline-color: var(--ink-deep); }
.ap-benefits article { border-top-color: var(--ink); }
.ap-fee { background: var(--green-soft); }
.ap-step { color: var(--pink-deep); }
.ap-words span::after { color: var(--pink); }
.ap-card-brand .logo-mark { width: 44px; height: 36px; }
.ap-card-brand .logo-word { color: #fff; font-size: 18px; }
.ap-faq summary > span:not(.q)::before, .ap-faq summary > span:not(.q)::after { background: var(--ink); }
