/* ============================================================
   会員系ページ 共通スタイル (assets/css/member.css)
   signup / signin / mypage で共有
   ============================================================ */

.signup-page,
.signin-page,
.mypage {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.mypage { max-width: 900px; }

.signup-page__heading,
.signin-page__heading,
.mypage__heading {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
  color: #333;
}
.signup-page__lead,
.signin-page__lead {
  text-align: center;
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0 0 28px;
}

/* ステップインジケータ */
.signup-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.signup-step {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9aa3ab;
  background: #f0f2f4;
  border-radius: 8px;
}
.signup-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #cfd4d8;
  color: #fff;
  font-size: 0.78rem;
}
.signup-step.is-active { color: #333; background: #fde8a6; }
.signup-step.is-active span { background: #e0a800; }

/* フォーム */
.signup-form { position: relative; }
.signup-pane { display: none; }
.signup-pane.is-active { display: block; }

.signup-field { margin-bottom: 20px; }
.signup-field > label,
.signin-field > label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.signup-req {
  display: inline-block;
  font-size: 0.65rem;
  color: #fff;
  background: #d63b3b;
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.signup-field input[type="text"],
.signup-field input[type="email"],
.signup-field input[type="password"],
.signin-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd4d8;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
}
.signup-field input:focus,
.signin-field input:focus {
  outline: none;
  border-color: #e0a800;
  box-shadow: 0 0 0 3px rgba(224, 168, 0, 0.15);
}
.signup-hint {
  font-size: 0.76rem;
  color: #9aa3ab;
  margin: 6px 0 0;
}
.signup-error {
  font-size: 0.78rem;
  color: #d63b3b;
  margin: 6px 0 0;
  min-height: 0;
}

/* パスワード条件 */
.signup-pwcheck {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.signup-pwcheck li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #9aa3ab;
  margin-bottom: 4px;
}
.signup-pwcheck li.is-ok { color: #2e9e5b; }
.signup-pwcheck__mark {
  display: inline-flex;
  width: 16px;
  justify-content: center;
  font-weight: 700;
}

/* 同意チェック */
.signup-field--check { margin-top: 8px; }
.signup-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.5;
  cursor: pointer;
}
.signup-agree input { margin-top: 3px; }
.signup-agree a { color: #e0a800; text-decoration: underline; }

/* ボタン */
.signup-btn,
.signin-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease;
}
.signup-btn--primary,
.signin-btn--primary {
  background: #333;
  color: #fff;
}
/* v0.19.22: /logout/ などで <a> のときサイト共通の a:hover(--brand-dark)に
   文字色を奪われるため、 白を明示する */
.signup-btn--primary:hover,
.signin-btn--primary:hover { opacity: 0.85; color: #fff; }
.signup-btn--primary:disabled { opacity: 0.5; cursor: default; }
.signup-btn--secondary {
  background: #fff;
  color: #333;
  border: 1px solid #cfd4d8;
}
.signup-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.signup-actions .signup-btn { margin-top: 0; }

.signup-skip {
  text-align: center;
  margin: 16px 0 0;
}
.signup-link {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.84rem;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}

/* セクションリード (ステップ2) */
.signup-section-lead {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 16px;
}
.signup-pickcount {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px;
}
.signup-pickcount [data-pick-count] { color: #e0a800; }

/* 興味のある作品グリッド */
.signup-works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.signup-work {
  cursor: pointer;
  display: block;
}
.signup-work input { position: absolute; opacity: 0; pointer-events: none; }
.signup-work__inner { display: block; }
.signup-work__thumb {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f0f2f4;
  aspect-ratio: 16 / 9;
}
.signup-work__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.signup-work__noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.7rem;
  color: #9aa3ab;
}
.signup-work__check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e0a800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.15s ease;
}
.signup-work__title {
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
  margin-top: 5px;
  color: #333;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.signup-work.is-selected .signup-work__thumb {
  border-color: #e0a800;
}
.signup-work.is-selected .signup-work__check {
  opacity: 1;
  transform: scale(1);
}
.signup-work.is-disabled {
  opacity: 0.45;
  cursor: default;
}

/* 完了メッセージ */
.signup-verify {
  text-align: center;
  padding: 20px 0;
}
.signup-verify__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.signup-verify__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.signup-verify__msg {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

.signup-page__foot,
.signin-page__foot {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 28px;
}
.signup-page__foot a,
.signin-page__foot a { color: #e0a800; text-decoration: underline; }

/* ログイン: ログイン状態保持チェック */
.signin-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #4b5563;
  margin: 4px 0 20px;
  cursor: pointer;
}
.signin-field { margin-bottom: 20px; }
.signin-btn--secondary {
  background: #fff;
  color: #333;
  border: 1px solid #cfd4d8;
  display: inline-block;
  width: auto;
  padding: 10px 28px;
  text-decoration: none;
  text-align: center;
}
.signin-btn--primary {
  text-decoration: none;
  text-align: center;
}
/* マイページ プレースホルダ */
.mypage-placeholder {
  text-align: center;
  padding: 40px 20px;
  background: #f7f9fa;
  border-radius: 12px;
  margin-top: 20px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .signup-page, .signin-page, .mypage { padding: 24px 14px 60px; }
  .signup-works { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .signup-work__title { font-size: 0.66rem; }
}

/* ============================================================
   マイページ (フェーズ4)
   ============================================================ */
.mypage__welcome {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 24px;
}
/* タブ */
.mypage-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 2px solid #ececec;
}
.mypage-tab {
  flex: 1 1 0;
  padding: 12px 8px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #9aa3ab;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.mypage-tab:hover { color: #333; }
.mypage-tab.is-active {
  color: #333;
  border-bottom-color: #e0a800;
}
/* ペイン */
.mypage-pane { display: none; }
.mypage-pane.is-active { display: block; }

.mypage-section-lead {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 16px;
}

/* 作品グリッド */
.mypage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mypage-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.mypage-card .front-flat-card { flex: 1 1 auto; }
.mypage-card__remove {
  margin-top: 8px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #e0a800;
  border-radius: 6px;
  color: #c47d00;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.mypage-card__remove:hover { background: #fff8e6; }
.mypage-card__remove:disabled { opacity: 0.5; cursor: default; }

.mypage-empty {
  text-align: center;
  font-size: 0.88rem;
  color: #9aa3ab;
  line-height: 1.8;
  padding: 48px 20px;
  background: #f7f9fa;
  border-radius: 12px;
}

/* 設定フォーム */
.mypage-setting {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid #ececec;
}
.mypage-setting--logout {
  border-bottom: none;
  text-align: center;
}
.mypage-setting__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 18px;
  color: #333;
}
.mypage-form { max-width: 420px; }
.mypage-form__result {
  font-size: 0.84rem;
  margin: 4px 0 12px;
  min-height: 0;
}
.mypage-form__result.is-ok { color: #2e9e5b; }
.mypage-form__result.is-error { color: #d63b3b; }

@media (max-width: 768px) {
  .mypage-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mypage-tab { font-size: 0.82rem; padding: 10px 6px; }
}

/* ============================================================
   ログアウト確認
   ============================================================ */
.logout-confirm {
  text-align: center;
  padding: 20px 0;
}
.logout-confirm__icon {
  font-size: 3rem;
  margin-bottom: 8px;
}
.logout-confirm__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 28px auto 0;
}
.logout-confirm__actions .signin-btn {
  width: 100%;
  box-sizing: border-box;
}

/* v0.16.10: 退会セクション */
.signin-btn--danger {
  background: #fff;
  color: #c0392b;
  border: 1.5px solid #c0392b;
}
.signin-btn--danger:hover:not(:disabled) { background: #fdf0ee; }
.signin-btn--danger:disabled { opacity: 0.45; cursor: default; }
.mypage-setting--withdraw {
  border-bottom: none;
  background: #fcf7f6;
  border: 1px solid #f0d8d4;
  border-radius: 10px;
  padding: 20px;
}
.mypage-withdraw__note {
  font-size: 0.82rem;
  color: #a05047;
  line-height: 1.6;
  margin: 0 0 16px;
}
.mypage-withdraw__check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin: 0 0 14px;
  cursor: pointer;
}

/* ============================================================
   v0.16.11: 法務ページ (利用規約 / プライバシーポリシー)
   ============================================================ */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.legal-page__header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #ececec;
}
.legal-page__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px;
}
.legal-page__updated {
  font-size: 0.8rem;
  color: #9aa3ab;
  margin: 0;
}
.legal-page__body {
  font-size: 0.92rem;
  line-height: 1.9;
  color: #3a4047;
}
.legal-page__body h2 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #222;
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 4px solid #e0a800;
}
.legal-page__body p {
  margin: 0 0 16px;
}
.legal-page__body ul {
  margin: 0 0 16px;
  padding-left: 1.4em;
}
.legal-page__body li {
  margin-bottom: 8px;
}
.legal-page__body em {
  display: block;
  margin-top: 32px;
  padding: 12px 16px;
  background: #f7f9fa;
  border-radius: 8px;
  font-size: 0.82rem;
  font-style: normal;
  color: #6b7280;
}
@media (max-width: 768px) {
  .legal-page { padding: 32px 16px 60px; }
  .legal-page__title { font-size: 1.35rem; }
  .legal-page__body { font-size: 0.88rem; }
}

/* ============================================================
   v0.16.13: ソーシャルログイン (Gianism) ボタンエリア
   ============================================================ */
.dc-social-login {
  margin: 20px 0;
}
.dc-social-login--top { margin-top: 0; margin-bottom: 8px; }
.dc-social-login__divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #9aa3ab;
  font-size: 0.78rem;
  margin: 18px 0;
}
.dc-social-login__divider::before,
.dc-social-login__divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #e3e6e8;
}
.dc-social-login__divider span { padding: 0 12px; }
.dc-social-login__buttons {
  display: flex;
  flex-direction: column;
}
/* Gianism のデフォルトボタンを縦並び・全幅に整える */
.dc-social-login__buttons .wpg-buttons,
.dc-social-login__buttons ul.gianism-login-buttons {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dc-social-login__buttons li { margin: 0; list-style: none; }

/* 独自SNSボタン (dc-sns-btn) — 白背景・枠線・アイコン左 */
.dc-sns-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px; /* ボタン間の隙間 (gap が効かない出力構造のため margin で確保) */
  padding: 13px 16px;
  border: 1px solid #d6dadd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.dc-sns-btn:last-child { margin-bottom: 0; }
/* hover は背景のみ変化、 文字色は固定 */
.dc-sns-btn:hover { background: #f7f9fa; box-shadow: 0 1px 4px rgba(0,0,0,0.06); color: #333; }
.dc-sns-btn__icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.dc-sns-btn__text { line-height: 1; }

/* 並び順: Google → X → LINE */
.dc-sns-btn--google  { order: 1; }
.dc-sns-btn--twitter { order: 2; }
.dc-sns-btn--line    { order: 3; }

/* Google アイコン (公式 G マーク) */
.dc-sns-btn--google .dc-sns-btn__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M45.12 24.5c0-1.56-.14-3.06-.4-4.5H24v8.51h11.84c-.51 2.75-2.06 5.08-4.39 6.64v5.52h7.11c4.16-3.83 6.56-9.47 6.56-16.17z'/%3E%3Cpath fill='%2334A853' d='M24 46c5.94 0 10.92-1.97 14.56-5.33l-7.11-5.52c-1.97 1.32-4.49 2.1-7.45 2.1-5.73 0-10.58-3.87-12.31-9.07H4.34v5.7C7.96 41.07 15.4 46 24 46z'/%3E%3Cpath fill='%23FBBC05' d='M11.69 28.18C11.25 26.86 11 25.45 11 24s.25-2.86.69-4.18v-5.7H4.34C2.85 17.09 2 20.45 2 24s.85 6.91 2.34 9.88l7.35-5.7z'/%3E%3Cpath fill='%23EA4335' d='M24 10.75c3.23 0 6.13 1.11 8.41 3.29l6.31-6.31C34.91 4.18 29.93 2 24 2 15.4 2 7.96 6.93 4.34 14.12l7.35 5.7c1.73-5.2 6.58-9.07 12.31-9.07z'/%3E%3C/svg%3E");
}
/* X (Twitter) アイコン */
.dc-sns-btn--twitter {
  background: #000;
  border-color: #000;
  color: #fff;
}
.dc-sns-btn--twitter:hover { background: #1a1a1a; color: #fff; }
.dc-sns-btn--twitter .dc-sns-btn__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
}
/* LINE アイコン */
.dc-sns-btn--line {
  background: #06C755;
  border-color: #06C755;
  color: #fff;
}
.dc-sns-btn--line:hover { background: #05b34c; color: #fff; }
.dc-sns-btn--line .dc-sns-btn__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 3C6.9 3 2.75 6.34 2.75 10.46c0 3.69 3.29 6.78 7.73 7.37.3.06.71.2.81.46.09.24.06.61.03.85l-.13.79c-.04.24-.19.92.81.5s5.36-3.16 7.32-5.41h-.01c1.35-1.48 2-2.98 2-4.55C21.25 6.34 17.1 3 12 3zM8.36 12.4H6.53a.48.48 0 0 1-.48-.48V8.26a.48.48 0 0 1 .96 0v3.18h1.35a.48.48 0 0 1 0 .96zm1.88-.48a.48.48 0 0 1-.96 0V8.26a.48.48 0 0 1 .96 0v3.66zm4.4 0a.48.48 0 0 1-.33.46.5.5 0 0 1-.15.02.47.47 0 0 1-.39-.19l-1.87-2.54v2.25a.48.48 0 0 1-.96 0V8.26a.48.48 0 0 1 .33-.46.48.48 0 0 1 .54.17l1.87 2.54V8.26a.48.48 0 0 1 .96 0v3.66zm2.95-2.31a.48.48 0 0 1 0 .96h-1.35v.87h1.35a.48.48 0 0 1 0 .96h-1.83a.48.48 0 0 1-.48-.48V8.26a.48.48 0 0 1 .48-.48h1.83a.48.48 0 0 1 0 .96h-1.35v.87h1.35z'/%3E%3C/svg%3E");
}

/* メールマガジン配信 オプトイン */
.mypage-setting__desc { color: var(--text-secondary, #555); font-size: 0.9rem; margin: 0 0 12px; line-height: 1.7; }
.mypage-optin { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; color: #1f2933; }
.mypage-optin input { width: 18px; height: 18px; accent-color: var(--brand, #00aebe); cursor: pointer; }

/* v0.19.45: マイページのカードのレーベルバッジを /works/ と同じ見た目に固定
   (会員系ページで横幅いっぱいに広がる事象への対策・明示指定) */
.mypage-card .front-flat-card__banner {
  position: relative;
}
.mypage-card .front-flat-card__label-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 3;
  width: auto;
  max-width: calc(100% - 8px);
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  padding: 1px 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.mypage-card .front-flat-card__label-badge img {
  max-height: 10px;
  width: auto;
  height: auto;
  display: block;
  margin: 0;
}

/* v0.19.53: マイページ 毎日無料パネル */
.mypage-dailyfree__count {
  font-size: 1.05rem;
  color: #1f2933;
  margin: 8px 0 0;
}
.mypage-dailyfree__count strong {
  font-size: 1.4rem;
  color: #e0a800;
}
.mypage-dailyfree__limit {
  font-size: 0.85rem;
  color: #888;
}
.mypage-dailyfree__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.mypage-dailyfree__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #e5e7e9;
  border-radius: 6px;
  margin-bottom: 5px;
  background: #fff;
}
.mypage-dailyfree__link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1f2933;
  min-width: 0;
}
.mypage-dailyfree__thumb {
  flex-shrink: 0;
  height: 42px;
  min-width: 30px;
  max-width: 84px;
  border-radius: 3px;
  overflow: hidden;
  background: #f0f2f4;
  border: 1px solid #e5e7e9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mypage-dailyfree__thumb img {
  height: 100%;
  width: auto;           /* 縦横比を維持 */
  max-width: 84px;
  object-fit: contain;
  display: block;
}
.mypage-dailyfree__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.mypage-dailyfree__title {
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mypage-dailyfree__ep {
  font-size: 0.76rem;
  color: #666;
  line-height: 1.2;
}
.mypage-dailyfree__worklink {
  font-size: 0.72rem;
  color: var(--brand, #ff6b35);
  text-decoration: none;
  line-height: 1.2;
}
.mypage-dailyfree__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.mypage-dailyfree__extra {
  font-size: 0.72rem;
  color: #c47d00;
  white-space: nowrap;
}
.mypage-dailyfree__expires {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: #c47d00;
  background: #fffaf0;
  border: 1px solid #e0a800;
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* v0.19.62: マイページ チケット内訳 */
.mypage-dailyfree__tickets {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fffaf0;
  border: 1px solid #e0a800;
  border-radius: 8px;
  color: #1f2933;
}
.mypage-dailyfree__ticket-head { font-weight: 700; margin: 0 0 6px; }
.mypage-dailyfree__ticket-list { list-style: none; margin: 0; padding: 0; }
.mypage-dailyfree__ticket-item {
  font-size: 0.92rem;
  padding: 3px 0;
  border-bottom: 1px dashed #f0dca8;
}
.mypage-dailyfree__ticket-item:last-child { border-bottom: none; }
.mypage-dailyfree__ticket-scope { font-weight: 600; }
.mypage-dailyfree__ticket-item strong { color: #c47d00; font-size: 1.1rem; }
.mypage-dailyfree__ticket-exp { font-size: 0.82rem; color: #b26a00; }
.mypage-dailyfree__ticket-note { font-size: 0.8rem; color: #888; margin: 6px 0 0; }

/* v0.19.64: マイページ 設定ボタン(welcome の横) */
.mypage__welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mypage__welcome-row .mypage__welcome { margin: 0; }
.mypage-settings-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 999px;
  font-size: 0.85rem;
  font-family: inherit;
  color: #1f2933;
  cursor: pointer;
}
.mypage-settings-btn:hover { background: #f4f6f7; }
.mypage-settings-btn.is-active {
  background: #1f2933;
  border-color: #1f2933;
  color: #fff;
}
.mypage-settings-btn__icon { font-size: 0.95rem; line-height: 1; display: inline-flex; align-items: center; }
.mypage-settings-btn__icon svg { display: block; width: 16px; height: 16px; }

/* v0.19.64: 解放中リストの「＋〇話 閲覧可」 と 作品ページリンク */
.mypage-dailyfree__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mypage-dailyfree__extra {
  font-size: 0.78rem;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 4px;
  padding: 3px 7px;
  white-space: nowrap;
}
.mypage-dailyfree__worklink {
  font-size: 0.78rem;
  color: #0a7c8a;
  text-decoration: none;
  margin-top: 2px;
}
.mypage-dailyfree__worklink:hover { text-decoration: underline; }
.mypage-dailyfree__tickets { margin-top: 12px; }

@media (max-width: 600px) {
  .mypage-dailyfree__item {
    flex-wrap: wrap;
  }
  .mypage-dailyfree__meta {
    width: 100%;
    justify-content: flex-end;
  }
}

/* v0.19.70: 毎日無料の解説アコーディオン(Q&A) */
.mypage-dailyfree__help-toggle {
  margin-left: 10px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-family: inherit;
  color: #0a7c8a;
  background: #fff;
  border: 1px solid #b6e3e8;
  border-radius: 999px;
  cursor: pointer;
  vertical-align: middle;
}
.mypage-dailyfree__help-toggle::after {
  content: ' ▼';
  font-size: 0.7em;
}
.mypage-dailyfree__help-toggle.is-open::after { content: ' ▲'; }
.mypage-dailyfree__help-toggle:hover { background: #f0fbfc; }
.mypage-dailyfree__help {
  margin-top: 10px;
  padding: 14px 16px;
  background: #f8fafb;
  border: 1px solid #e5e7e9;
  border-radius: 8px;
}
.mypage-faq { margin: 12px 0 0; }
.mypage-faq__q {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1f2933;
  margin-top: 14px;
}
.mypage-faq__q::before {
  content: 'Q. ';
  color: #0a7c8a;
}
.mypage-faq__a {
  margin: 4px 0 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #4a5568;
}
.mypage-faq__a::before {
  content: 'A. ';
  font-weight: 700;
  color: #c47d00;
}

/* v0.20.67: チケット対象作品リンク(色は黒のまま) */
.mypage-dailyfree__ticket-scope--link { color: inherit; text-decoration: underline; }
.mypage-dailyfree__ticket-scope--link:hover { color: inherit; opacity: .75; }
