/* =========================================================
   認証モーダル・ヘッダー・ペイウォール・カラフル英文解釈 styles
   ========================================================= */

/* ---- header auth ---- */
.head-auth { display: flex; align-items: center; gap: 10px; }
.head-login {
  font-family: var(--jp); font-weight: 700; font-size: 13.5px; cursor: pointer;
  background: var(--card); color: var(--ink-2);
  border: 1.5px solid var(--camel-soft); border-radius: var(--r-pill);
  padding: .55em 1.4em; transition: all .16s;
}
.head-login:hover { background: var(--peach-2); border-color: var(--camel); }
.plan-chip {
  font-family: var(--jp); font-weight: 800; font-size: 12px;
  color: var(--brown); background: var(--peach-2);
  border-radius: var(--r-pill); padding: .5em 1.1em;
}
/* 右上のプラン表示：プラン名チップ＋契約状態の補足行（2段・右寄せ） */
.head-plan { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; line-height: 1.15; }
.plan-sub { font-family: var(--jp); font-weight: 600; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
/* プラン管理・解約リンク（有料会員のみ・チップ下に控えめに） */
.head-manage { font-family: var(--jp); font-weight: 700; font-size: 10.5px; color: var(--brown); text-decoration: none; white-space: nowrap; border-bottom: 1px solid transparent; }
.head-manage:hover { border-bottom-color: var(--camel); }
@media (max-width: 560px) { .plan-sub { display: none; } }   /* スマホは簡潔（チップのみ）でヘッダの窮屈を回避 */

/* ---- auth modal ---- */
.auth-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex;
  align-items: center; justify-content: center;
  background: rgba(60, 40, 20, .45); backdrop-filter: blur(3px); padding: 20px;
}
.auth-modal {
  width: 100%; max-width: 430px; background: var(--peach-2, #fef6ea);
  border-radius: 18px; overflow: hidden; box-shadow: 0 18px 60px rgba(60, 38, 15, .35);
}
.auth-head {
  background: linear-gradient(135deg, #a4713d, #8a5a30);
  color: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; font-family: var(--jp); font-weight: 800; font-size: 17px; letter-spacing: .04em;
}
.auth-x { background: none; border: none; color: #fff; font-size: 17px; cursor: pointer; opacity: .85; }
.auth-x:hover { opacity: 1; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--peach-2, #fef6ea); }
.auth-tab {
  font-family: var(--jp); font-weight: 700; font-size: 15px; color: var(--muted);
  background: none; border: none; border-bottom: 2.5px solid var(--line); padding: 14px 0; cursor: pointer;
}
.auth-tab.on { color: var(--brown); border-bottom-color: var(--brown); }
.auth-body { padding: 24px 26px 28px; display: flex; flex-direction: column; }
.auth-label { font-family: var(--jp); font-weight: 700; font-size: 13.5px; color: var(--ink); margin: 10px 0 7px; }
.auth-input {
  font-family: var(--en); font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 15px; outline: none; transition: border-color .15s;
}
.auth-input:focus { border-color: var(--camel); }
.auth-terms { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); margin: 16px 0 0; cursor: pointer; }
.auth-terms a { color: var(--brown); font-weight: 700; }
.auth-err { color: var(--wrong, #c0392b); font-size: 12.5px; font-weight: 700; min-height: 1.2em; margin: 10px 0 4px; }
.auth-submit {
  font-family: var(--jp); font-weight: 800; font-size: 16px; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #b07a42, #8a5a30); border: none; border-radius: 99px;
  padding: 15px 0; transition: opacity .15s;
}
.auth-submit:hover { opacity: .88; }
.auth-note { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.6; }
/* パスワードリセット */
.auth-forgot { text-align: center; margin: 14px 0 0; font-size: 12.5px; }
.auth-forgot a { color: var(--brown); font-weight: 700; text-decoration: none; cursor: pointer; }
.auth-forgot a:hover { text-decoration: underline; }
.auth-reset-intro { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin: 2px 0 14px; background: var(--paper-2); border-radius: 10px; padding: 11px 13px; }
.auth-sent { font-size: 13px; color: #2c7a44; background: #e6f4e8; border: 1px solid #bfe2c6; border-radius: 10px; padding: 13px 15px; line-height: 1.7; margin: 6px 0 0; font-weight: 700; }

/* ---- lock card (paywall) ---- */
/* 会員限定/本日終了などの通知カード：直下のCTAセクション(.cta-inner)と同じ --paper-2 で統一（全パート共通・白い解説カードとも区別される） */
.lock-card { text-align: center; padding: 52px 28px !important; background: var(--paper-2); }
.lock-ico { font-size: 34px; margin-bottom: 10px; }
.lock-t { font-family: var(--jp); font-weight: 800; font-size: 19px; color: var(--ink); margin: 0 0 8px; }
.lock-p { font-size: 14px; color: var(--body, #6b5440); max-width: 460px; margin: 0 auto 22px; line-height: 1.9; }
.lock-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- colorful 英文解釈 (ck-) ---- */
.ck-card { padding: clamp(20px, 4vw, 32px); margin-bottom: 22px; }
.ck-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.ck-leg-label { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.ck-leg {
  font-family: var(--jp); font-weight: 800; font-size: 12px;
  border-radius: 7px; padding: .28em .7em;
}
.ck-full {
  font-family: var(--en); font-size: clamp(17px, 2.4vw, 20px); font-weight: 600;
  color: #3a2a1c; line-height: 1.75; margin: 0 0 16px;
}
.ck-chunks { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-start; margin-bottom: 14px; }
.ck-chunk { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.ck-text {
  font-family: var(--en); font-weight: 800; font-size: clamp(15px, 2vw, 17.5px);
  line-height: 1.55; border-radius: 8px; padding: .18em .5em;
}
.ck-role { font-family: var(--jp); font-size: 11px; font-weight: 700; color: var(--muted); }
.ck-formula { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 8px; font-family: var(--en); }
.ck-jp { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 18px; line-height: 1.85; }
.ck-notes { display: flex; flex-direction: column; gap: 11px; border-top: 1.5px dashed var(--line); padding-top: 16px; margin-bottom: 16px; }
.ck-note-en { font-family: var(--en); font-weight: 800; font-size: 14.5px; margin-right: 8px; }
.ck-note-jp { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.ck-note-p { font-size: 13px; color: var(--body, #6b5440); line-height: 1.8; margin: 3px 0 0; }
.ck-pin, .ck-target {
  display: flex; gap: 10px; align-items: flex-start;
  border-radius: 10px; padding: 13px 16px; margin-bottom: 10px;
}
.ck-pin { background: #fdf6df; border-left: 4px solid #d9a73a; }
.ck-target { background: #e9f1fb; border-left: 4px solid #4a7fc9; }
.ck-pin span, .ck-target span { font-size: 15px; line-height: 1.5; }
.ck-pin p, .ck-target p { font-size: 13.5px; color: #54402c; line-height: 1.85; margin: 0; font-weight: 500; }

@media (max-width: 560px) {
  .head-login { padding: .5em 1em; font-size: 12.5px; }
  .ck-chunks { gap: 8px 10px; }
}
