/* ============================================================
   CANVAS AI – サブページ共通スタイル  sub.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #f4efe8;
  color: #2c2420;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }

img {
  display: block;
  max-width: 100%;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
a img, button img { pointer-events: auto; }

:root {
  --bg:     #f4efe8;
  --paper:  #ffffff;
  --ink:    #231e1b;
  --muted:  #917f74;
  --line:   rgba(44,36,32,.1);
  --accent: #c4a688;
  --r:      14px;
}

/* ============================================================
   Shell
   ============================================================ */
.sub-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
}

/* ============================================================
   Page Header
   ============================================================ */
.sub-page-head {
  position: relative;
  background: #1a1410;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
}

/* トップのアクセントライン */
.sub-page-head::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #e8c4a0 50%, var(--accent));
}

/* 右下の淡いグロー */
.sub-page-head::after {
  content: "";
  position: absolute;
  bottom: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,166,136,.14) 0%, transparent 70%);
  pointer-events: none;
}

.sub-page-head-inner {
  position: relative;
  z-index: 1;
  padding: 20px 20px 28px;
}

/* CANVAS AI キッカー */
.sub-page-head-inner::before {
  content: "AI ART GALLERY";
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .28em;
  color: rgba(255,255,255,.22);
  margin-bottom: 14px;
}

.sub-back {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.38);
  letter-spacing: .04em;
  margin-bottom: 12px;
  transition: color .15s;
}
.sub-back:hover { color: rgba(255,255,255,.65); }

.sub-page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1.3;
}

/* タイトル下のアクセントバー */
.sub-page-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 12px;
}

/* ============================================================
   Notice
   ============================================================ */
.sub-notice {
  margin: 16px 16px 0;
  padding: 13px 16px;
  border-radius: var(--r);
  background: rgba(196,166,136,.1);
  border: 1px solid rgba(196,166,136,.22);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.75;
}

/* ============================================================
   Card
   ============================================================ */
.sub-card {
  margin: 16px 16px 0;
  padding: 24px 20px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(44,36,32,.07);
  position: relative;
  overflow: hidden;
}

/* カード右下の装飾ドット */
.sub-card::after {
  content: "";
  position: absolute;
  bottom: -18px; right: -18px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,166,136,.12) 0%, transparent 70%);
  pointer-events: none;
}

.sub-lead {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.85;
}

/* ============================================================
   Form
   ============================================================ */
.sub-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sub-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sub-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}

.sub-input,
.sub-textarea,
.sub-select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid rgba(44,36,32,.1);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  appearance: none;
}
.sub-input:focus,
.sub-textarea:focus,
.sub-select:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196,166,136,.12);
}

.sub-textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.75;
}

.sub-radio-group,
.sub-check-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sub-radio-item,
.sub-check-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1.5px solid rgba(44,36,32,.1);
  border-radius: var(--r);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.sub-radio-item:has(input:checked),
.sub-check-item:has(input:checked) {
  border-color: var(--accent);
  background: rgba(196,166,136,.06);
}

.sub-radio-item input[type="radio"],
.sub-check-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.sub-radio-text,
.sub-check-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

/* ============================================================
   Primary Button
   ============================================================ */
.sub-btn-primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 20px rgba(35,30,27,.22);
  text-decoration: none;
}

/* シマー */
.sub-btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -55%;
  width: 35%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196,166,136,.18), transparent);
  transform: skewX(-18deg);
  animation: subShimmer 3.8s ease-in-out infinite;
}

@keyframes subShimmer {
  0%        { left: -55%; opacity: 0; }
  8%        { opacity: 1; }
  60%, 100% { left: 130%; opacity: 0; }
}

/* アクセントドット */
.sub-btn-primary::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px rgba(196,166,136,.9);
}

.sub-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(35,30,27,.3);
}
.sub-btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(35,30,27,.18);
}

/* ============================================================
   Registration Page
   ============================================================ */
.sub-regist-head {
  padding-bottom: 32px;
}

.sub-regist-carrier-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.sub-regist-carrier-sub {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  letter-spacing: .04em;
}

.sub-regist-notice {
  margin: 14px 16px 0;
  padding: 13px 16px;
  background: rgba(196,166,136,.07);
  border-radius: 12px;
  border: 1px solid rgba(196,166,136,.2);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sub-regist-notice-text {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.7;
}

.sub-regist-kiyaku-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sub-regist-billing {
  margin: 0;
  font-size: 11.5px;
  color: #c0392b;
  font-weight: 600;
}

.sub-regist-section-head {
  margin: 22px 16px 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.sub-regist-section-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--accent);
}

.sub-regist-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}

.sub-regist-list {
  margin: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-regist-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  text-decoration: none;
  position: relative;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 6px 24px rgba(35,30,27,.28);
}

.sub-regist-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #009fe8, rgba(0,159,232,.3));
}

.sub-regist-card:not(.sub-regist-card--done):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(35,30,27,.38);
}

.sub-regist-card--done {
  background: #2e2a27;
  opacity: .7;
}

.sub-regist-card--done::before {
  background: rgba(255,255,255,.08);
}

.sub-regist-card-inner {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-regist-card-carrier {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  letter-spacing: .06em;
}

.sub-regist-card-carrier .sub-sb-dot {
  background: #009fe8;
}

.sub-regist-card-pricing {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sub-regist-price-main {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.sub-regist-price-free {
  font-size: 26px;
  font-weight: 800;
  color: #009fe8;
}

.sub-regist-price-unit {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  letter-spacing: 0;
}

.sub-regist-price-sub {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

.sub-regist-point {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
}

.sub-regist-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.sub-regist-cta {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}

.sub-regist-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255,255,255,.7);
}

.sub-regist-registered {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  letter-spacing: .06em;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
}

/* ============================================================
   Retire Course List
   ============================================================ */
.sub-retire-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-retire-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--paper);
  border-radius: 14px;
  border: 1.5px solid rgba(44,36,32,.1);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.sub-retire-item:not(.sub-retire-item--pending):hover {
  border-color: var(--accent);
  background: rgba(196,166,136,.04);
}

.sub-retire-item--pending {
  background: var(--bg);
  border-color: var(--line);
  cursor: default;
}

.sub-retire-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sub-retire-carrier {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
}

.sub-retire-price {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.sub-retire-status {
  margin: 0;
  font-size: 11.5px;
  color: #c0392b;
  font-weight: 600;
}

.sub-retire-action {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
}

/* au ブランド */
.sub-au-logo {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  letter-spacing: .02em;
  background: #e6400a;
  padding: 4px 14px;
  border-radius: 6px;
}

.sub-au-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e6400a;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* docomo ブランド */
.sub-docomo-logo {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  background: #e60012;
  padding: 4px 12px;
  border-radius: 6px;
}

.sub-docomo-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e60012;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

.sub-retire-note {
  margin: 2px 0 0;
  font-size: 11px;
  color: #c0392b;
  line-height: 1.5;
}

/* Docomo ブランド */
.sub-docomo-logo {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  background: #e60012;
  padding: 4px 12px;
  border-radius: 6px;
}

.sub-docomo-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e60012;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Docomo カード上部ライン */
.sub-regist-card--docomo::before {
  background: linear-gradient(90deg, #e60012, rgba(230,0,18,.25));
}

/* Docomo 無料テキスト */
.sub-regist-price-free--docomo {
  color: #e60012;
}

/* ============================================================
   Registration Page - Campaign Block (single plan)
   ============================================================ */
.sub-regist-campaign {
  margin: 18px 16px 0;
  border-radius: 20px;
  background: var(--ink);
  padding: 30px 22px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(35,30,27,.30);
}

.sub-regist-campaign::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e60012, rgba(230,0,18,.3));
}

.sub-regist-campaign::after {
  content: "";
  position: absolute;
  bottom: -30px; right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(230,0,18,.05);
}

.sub-regist-campaign-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(255,255,255,.45);
}

.sub-regist-campaign-main {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.sub-regist-campaign-main .sub-regist-price-free--docomo {
  font-size: 36px;
  color: #e60012;
}

.sub-regist-campaign-sub {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}

/* Single-plan call-to-action */
.sub-regist-single {
  margin: 18px 16px 0;
  background: var(--paper);
  border-radius: 18px;
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 14px rgba(44,36,32,.06);
  border: 1.5px solid rgba(196,166,136,.18);
}

.sub-regist-single-point {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
}

.sub-regist-single-btn {
  width: 100%;
  text-align: center;
}

.sub-regist-single-done {
  padding: 14px 22px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
  width: 100%;
  text-align: center;
}

/* Fine print */
.sub-regist-fine {
  margin: 14px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sub-regist-fine p {
  margin: 0;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.75;
}

/* SoftBank ブランド */
.sub-sb-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-sb-logo {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  background: #009fe8;
  padding: 4px 12px;
  border-radius: 6px;
}

.sub-sb-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}

.sub-sb-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #009fe8;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ============================================================
   Download Detail
   ============================================================ */
.sub-dl-card {
  margin: 16px 16px 0;
  padding: 28px 20px;
  background: var(--paper);
  border-radius: 22px;
  box-shadow: 0 2px 16px rgba(44,36,32,.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.sub-dl-card::after {
  content: "";
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,166,136,.4), transparent);
}

.sub-dl-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(44,36,32,.18);
  width: 160px;
}

.sub-dl-img {
  display: block;
  width: 160px;
  height: 320px;
  object-fit: cover;
  pointer-events: auto;
}

.sub-dl-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  text-align: center;
}

.sub-dl-point {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.sub-dl-point strong {
  color: var(--ink);
  font-weight: 700;
}

.sub-dl-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.sub-dl-nopoint {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sub-dl-nopoint-msg {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #c0392b;
}

.sub-dl-nopoint-current {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.sub-dl-nopoint-current strong {
  color: var(--ink);
  font-weight: 700;
}

.sub-dl-confirm {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.75;
}

/* ============================================================
   Detail
   ============================================================ */
.sub-detail-wrap {
  margin: 12px 16px 0;
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(44,36,32,.07);
}

.sub-detail-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.sub-detail-row:last-child {
  border-bottom: none;
}

.sub-detail-label {
  flex-shrink: 0;
  width: 36%;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
}

.sub-detail-val {
  flex: 1;
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.7;
  word-break: break-all;
}

.sub-detail-subtitle {
  margin: 16px 16px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
  text-transform: uppercase;
}

.sub-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 16px 12px;
}

/* ============================================================
   List / Grid
   ============================================================ */
.sub-list-wrap {
  padding: 16px 16px 0;
}

/* 保持ポイント表示（マイページ） */
.mp-points {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: var(--r);
  background: linear-gradient(135deg, #2a2320 0%, #1a1410 100%);
  overflow: hidden;
  isolation: isolate;
}
.mp-points::before {
  content: "";
  position: absolute;
  top: -40px; right: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,166,136,.28) 0%, transparent 70%);
  z-index: -1;
}
.mp-points__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
}
.mp-points__value {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.mp-points__num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
  background: linear-gradient(120deg, #ffe9c2 0%, #e8c4a0 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffe9c2;
}
.mp-points__unit {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.7);
}

.sub-list-msg {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.sub-item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sub-item-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(44,36,32,.07);
  text-decoration: none;
  transition: transform .15s;
}
.sub-item-card:active {
  transform: scale(.97);
}

.sub-item-img {
  aspect-ratio: 8 / 16;
  overflow: hidden;
  background: var(--bg);
}

.sub-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: auto;
}

.sub-item-name {
  margin: 0;
  padding: 0 6px 8px;
  font-size: 10.5px;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Fine Print（小テキスト）
   ============================================================ */
.sub-section-title {
  margin: 24px 16px 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  position: relative;
  padding-left: 12px;
}
.sub-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: calc(100% - 4px);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), #e8c4a0);
}

.sub-fine-print {
  margin-top: 12px;
}

.sub-fine-list {
  margin: 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-fine-list li {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.75;
  padding-left: 14px;
  position: relative;
}

.sub-fine-list li::before {
  content: "\00B7";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.sub-fine-terms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-fine-terms p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}

/* ============================================================
   Maintenance
   ============================================================ */
.sub-maintenance-card {
  text-align: center;
  padding: 36px 24px;
}

.sub-maintenance-icon {
  margin: 0 0 12px;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
}

.sub-maintenance-msg {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ============================================================
   Privacy
   ============================================================ */
.sub-privacy-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-privacy-sub {
  margin: 6px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}

.sub-privacy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-privacy-list li {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
  padding-left: 14px;
  position: relative;
}

.sub-privacy-list li::before {
  content: "\00B7";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   FAQ (Q&A)
   ============================================================ */
.sub-qa-list {
  margin: 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-qa-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(196,166,136,.2);
  background: var(--paper);
}

.sub-qa-q {
  margin: 0;
  position: relative;
  padding: 14px 16px 14px 44px;
  background: rgba(196,166,136,.1);
  border-bottom: 1px solid rgba(196,166,136,.18);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -.01em;
}

.sub-qa-q::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.5;
}

.sub-qa-a {
  margin: 0;
  position: relative;
  padding: 14px 16px 14px 44px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
}

.sub-qa-a::before {
  content: "A";
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  line-height: 1.5;
}

/* 回答内に外部スクリプトが差し込む段落・リンクの整形 */
.sub-qa-a p {
  margin: 12px 0 0;
}
.sub-qa-a a {
  color: var(--accent);
  text-decoration: underline;
  word-break: break-all;
}

/* ============================================================
   QR Code
   ============================================================ */
.sub-qr-card {
  text-align: center;
}

.sub-qr-site {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .06em;
}

.sub-qr-img-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.sub-qr-img {
  display: block;
  width: 160px;
  height: 160px;
  pointer-events: auto;
}

.sub-qr-url {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
  word-break: break-all;
}

/* ============================================================
   Contact / Tel
   ============================================================ */
.sub-select-wrap {
  position: relative;
}
.sub-select-wrap::after {
  content: "\203A";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 18px;
  color: var(--muted);
  pointer-events: none;
}

.sub-tell-note {
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.8;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 12px;
}

.sub-tell-time {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.sub-tell-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

/* ============================================================
   Thanks Page
   ============================================================ */
.sub-page-head--success::after {
  background: radial-gradient(circle, rgba(100,196,136,.14) 0%, transparent 70%);
}

.sub-thanks-icon {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.sub-thanks-tag {
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}

.sub-thanks-sent {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.sub-thanks-mark {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
}

.sub-thanks-sent p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.sub-thanks-reply {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.8;
}

.sub-thanks-reply strong {
  color: var(--accent);
  font-weight: 700;
}

.sub-check-block {
  border-bottom: none !important;
  padding: 16px !important;
  background: var(--bg);
  border-radius: 12px;
}

.sub-check-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-check-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
}

.sub-check-list li::before {
  content: "\2713";
  flex-shrink: 0;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   Tokutei（特定商取引）
   ============================================================ */
.sub-tokutei {
  margin: 12px 16px 0;
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(44,36,32,.07);
}

.sub-tokutei-item {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.sub-tokutei-item--last {
  border-bottom: none;
}

.sub-tokutei-label {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
}

.sub-tokutei-val {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.8;
}

.sub-tokutei-val p {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
}
.sub-tokutei-val p:last-child { margin-bottom: 0; }
.sub-tokutei-val p + .sub-privacy-list { margin-top: 8px; }
.sub-tokutei-val .sub-privacy-list + p { margin-top: 8px; }
.sub-tokutei-val a { color: var(--accent); text-decoration: underline; }

.sub-tokutei-company p {
  margin: 0 0 4px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.75;
}
.sub-tokutei-company p:last-child { margin-bottom: 0; }

.sub-tokutei-note {
  margin-top: 10px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}

/* ============================================================
   Confirm
   ============================================================ */
.sub-confirm-heading {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.5;
}

.sub-confirm-warn {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: #c0392b;
  line-height: 1.75;
}

.sub-warn-num {
  font-weight: 700;
}

.sub-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.sub-btn-danger {
  color: rgba(44,36,32,.4);
  font-size: 13px;
}
.sub-btn-danger:hover {
  color: #c0392b;
  border-color: rgba(192,57,43,.2);
}

/* ============================================================
   Links List
   ============================================================ */
.sub-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 4px;
}

.sub-link-item {
  display: flex;
  align-items: center;
  padding: 13px 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color .15s;
  gap: 6px;
}
.sub-link-item:last-child { border-bottom: none; }
.sub-link-item:hover { color: var(--ink); }

/* ============================================================
   Ghost Button
   ============================================================ */
.sub-btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color .18s, border-color .18s;
}
.sub-btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(44,36,32,.2);
}

/* ============================================================
   Bottom pad
   ============================================================ */
.sub-divider {
  margin: 24px 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.sub-bottom-pad { padding-bottom: 60px; }

/* ============================================================
   登録ページ共通 (dc-*)  ― キャンペーン × canvas AI 異世界テーマ
   .dc-page            … docomo（赤）
   .dc-page.dc-page--au … au（オレンジ）
   ============================================================ */

.dc-page {
  background: var(--bg);
  /* ---- テーマ変数（docomo） ---- */
  --dc-brand: #e60012;
  --dc-brand-2: #c10010;
  --dc-brandRGB: 230,0,18;
  --dc-kikan: #b07bff;
  --dc-kikanRGB: 176,123,255;
  --dc-aura: linear-gradient(135deg, #ffd36e 0%, #ff7eb3 26%, #b07bff 52%, #5ec8ff 76%, #8affc1 100%);
  --dc-badge: linear-gradient(120deg, #e60012 0%, #ff5a8a 22%, #b07bff 48%, #5ec8ff 72%, #e60012 100%);
  --dc-g1: rgba(255,148,200,.30);
  --dc-g2: rgba(120,180,255,.30);
  --dc-g3: rgba(176,123,255,.28);
  --dc-orb1: rgba(255,140,190,.55);
  --dc-orb2: rgba(120,180,255,.50);
  --dc-orb3: rgba(176,123,255,.45);
}

/* ---- au テーマ（オレンジ系の暖かいオーロラ） ---- */
.dc-page--au {
  --dc-brand: #ee7800;
  --dc-brand-2: #d35400;
  --dc-brandRGB: 238,120,0;
  --dc-kikan: #ff8a3d;
  --dc-kikanRGB: 255,138,61;
  --dc-aura: linear-gradient(135deg, #ffe08a 0%, #ff9a5a 28%, #ff6f91 54%, #ffb46b 78%, #ffe08a 100%);
  --dc-badge: linear-gradient(120deg, #ee7800 0%, #ff9a5a 24%, #ff5a8a 50%, #ffc04d 74%, #ee7800 100%);
  --dc-g1: rgba(255,180,110,.34);
  --dc-g2: rgba(255,130,140,.30);
  --dc-g3: rgba(255,205,110,.32);
  --dc-orb1: rgba(255,165,90,.55);
  --dc-orb2: rgba(255,120,140,.50);
  --dc-orb3: rgba(255,200,100,.50);
}

.dc-wrap { padding: 20px 16px 0; }

/* ===== キャンペーンカード（異世界 / オーロラ） ===== */
.dc-campaign {
  position: relative;
  margin: 0 0 18px;
  border-radius: 20px;
  padding: 2px;
  background: var(--dc-aura);
  background-size: 300% 300%;
  animation: dcAuroraBorder 9s ease infinite;
  box-shadow:
    0 14px 40px rgba(var(--dc-kikanRGB),.28),
    0 4px 14px rgba(var(--dc-brandRGB),.18);
}
@keyframes dcAuroraBorder {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 内側パネル：淡い夜明けのオーロラ */
.dc-campaign-inner {
  position: relative;
  z-index: 2;
  padding: 28px 20px 22px;
  text-align: center;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 18% 8%,  var(--dc-g1) 0%, transparent 60%),
    radial-gradient(ellipse 65% 55% at 88% 12%, var(--dc-g2) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 110%, var(--dc-g3) 0%, transparent 60%),
    linear-gradient(180deg, #fffdfb 0%, #fbf3ff 55%, #f3f7ff 100%);
}
.dc-campaign-inner::before {
  content: "";
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: rotate(18deg);
  animation: dcSweep 6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes dcSweep {
  0%   { left: -75%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}

/* 幻想デコ層（オーブ + スター） */
.dc-aura {
  position: absolute;
  inset: 2px;
  border-radius: 18px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.dc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  animation: dcFloat 9s ease-in-out infinite;
}
.dc-orb--1 {
  width: 120px; height: 120px;
  top: -30px; left: -20px;
  background: radial-gradient(circle, var(--dc-orb1), transparent 70%);
}
.dc-orb--2 {
  width: 100px; height: 100px;
  top: -20px; right: -25px;
  background: radial-gradient(circle, var(--dc-orb2), transparent 70%);
  animation-delay: 1.6s;
}
.dc-orb--3 {
  width: 140px; height: 140px;
  bottom: -50px; left: 40%;
  background: radial-gradient(circle, var(--dc-orb3), transparent 70%);
  animation-delay: 3.2s;
}
@keyframes dcFloat {
  0%,100% { transform: translate(0,0) scale(1); opacity: .8; }
  50%     { transform: translate(8px,-10px) scale(1.12); opacity: 1; }
}

/* 舞うスター */
.dc-star {
  position: absolute;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 1px;
  transform: rotate(45deg);
  box-shadow: 0 0 8px 2px rgba(255,255,255,.9), 0 0 14px 4px rgba(255,200,120,.5);
  animation: dcStar 3s ease-in-out infinite;
}
.dc-star--1 { top: 16%; left: 12%; animation-delay: .0s; }
.dc-star--2 { top: 10%; right: 18%; width: 6px; height: 6px; animation-delay: .6s; }
.dc-star--3 { top: 46%; left: 8%;  width: 5px; height: 5px; animation-delay: 1.2s; }
.dc-star--4 { top: 40%; right: 10%; animation-delay: 1.8s; }
.dc-star--5 { bottom: 18%; left: 22%; width: 6px; height: 6px; animation-delay: 2.4s; }
.dc-star--6 { bottom: 24%; right: 24%; width: 5px; height: 5px; animation-delay: .9s; }
@keyframes dcStar {
  0%,100% { opacity: 0; transform: rotate(45deg) scale(.3); }
  40%     { opacity: 1; transform: rotate(45deg) scale(1.2); }
  70%     { opacity: .6; transform: rotate(45deg) scale(1); }
}

/* キッカー */
.dc-kikan {
  position: relative; z-index: 2;
  margin: 0 0 14px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .24em;
  color: var(--dc-kikan);
  animation: dcKikanGlow 2.8s ease-in-out infinite;
}
@keyframes dcKikanGlow {
  0%,100% { text-shadow: 0 0 8px rgba(var(--dc-kikanRGB),.4); opacity: .85; }
  50%     { text-shadow: 0 0 16px rgba(var(--dc-kikanRGB),.9), 0 0 26px rgba(var(--dc-brandRGB),.4); opacity: 1; }
}

.dc-copy {
  position: relative; z-index: 2;
  margin: 0 0 6px;
  font-size: 13px; font-weight: 600;
  color: var(--ink); letter-spacing: .04em;
}
.dc-copy2 {
  position: relative; z-index: 2;
  margin: 14px 0 0;
  font-size: 13px; font-weight: 600;
  color: var(--ink); letter-spacing: .04em;
}

/* 無料バッジ（グラデが流れる + ふわっと浮遊） */
.dc-free-badge {
  position: relative; z-index: 2;
  display: inline-block;
  margin: 4px 0 0;
  font-size: 36px; font-weight: 700;
  letter-spacing: .02em; line-height: 1.15;
  background: var(--dc-badge);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 12px rgba(var(--dc-kikanRGB),.4));
  animation: dcBadgeFlow 5s linear infinite, dcBadgeFloat 4s ease-in-out infinite;
}
@keyframes dcBadgeFlow {
  0%   { background-position: 0% center; }
  100% { background-position: 220% center; }
}
@keyframes dcBadgeFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}
.dc-free-badge::after {
  content: "";
  display: block;
  width: 60px; height: 3px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--dc-kikan), transparent);
  animation: dcUnderline 3s ease-in-out infinite;
}
@keyframes dcUnderline {
  0%,100% { width: 40px; opacity: .6; }
  50%     { width: 72px; opacity: 1; }
}

/* 注意書き */
.dc-attention {
  position: relative; z-index: 2;
  margin: 18px 0 0;
  padding: 12px 14px;
  font-size: 11px; line-height: 1.7;
  color: var(--muted);
  text-align: left;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(var(--dc-kikanRGB),.25);
  border-radius: 10px;
}

/* 通常コース説明 */
.dc-single-desc {
  margin: 0 0 18px;
  font-size: 14px; font-weight: 600;
  color: var(--ink); text-align: center; line-height: 1.8;
}

/* ===== キャリアバッジ ===== */
.dc-carrier-badge {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.dc-carrier-badge img { height: 14px; width: auto; opacity: .85; }
.dc-carrier-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dc-brand); }

/* ===== 登録ボタン ===== */
.dc-regist-btn { margin: 16px 0 20px; }
.dc-btn-large {
  position: relative;
  display: block; width: 100%;
  padding: 17px 20px;
  background: linear-gradient(135deg, var(--dc-brand) 0%, var(--dc-brand-2) 100%);
  color: #fff !important;
  font-size: 17px; font-weight: 800; letter-spacing: .12em;
  text-align: center; text-decoration: none !important;
  border: none;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(var(--dc-brandRGB),.32);
  cursor: pointer; box-sizing: border-box;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.dc-btn-large::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: dcShine 3.2s ease-in-out infinite;
}
@keyframes dcShine {
  0%   { left: -60%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}
.dc-btn-large:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(var(--dc-brandRGB),.4); }
.dc-btn-large:active { transform: translateY(1px); box-shadow: 0 6px 16px rgba(var(--dc-brandRGB),.3); }
.dc-btn-registered {
  background: #d8d2cb; color: var(--muted) !important;
  box-shadow: none; cursor: not-allowed;
}
.dc-btn-registered::before { display: none; }

/* ===== 注記 ===== */
.dc-note-small { margin: 14px 0 0; font-size: 11px; line-height: 1.8; color: var(--muted); }
.dc-note-small a { color: var(--dc-brand); font-weight: 700; }
.dc-note { margin: 0 0 14px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.dc-note a { color: var(--dc-brand); font-weight: 700; }
.dc-billing-day { display: block; margin-top: 6px; font-weight: 700; color: var(--ink); }

/* ===== コース一覧 ===== */
.dc-course-title {
  position: relative;
  margin: 0 0 14px;
  padding: 0 0 10px 14px;
  font-size: 16px; font-weight: 800;
  color: var(--ink); letter-spacing: -.01em;
  border-bottom: 1px solid var(--line);
}
.dc-course-title::before {
  content: "";
  position: absolute;
  top: 2px; left: 0;
  width: 4px; height: 16px;
  border-radius: 2px;
  background: var(--dc-brand);
}

.dc-course-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 22px; }
.dc-course-card {
  display: block;
  padding: 15px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 6px 18px rgba(44,36,32,.06);
  text-decoration: none !important;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.dc-course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(44,36,32,.1);
  border-color: rgba(var(--dc-brandRGB),.3);
}
.dc-card-point {
  margin: 0 0 7px;
  font-size: 22px; font-weight: 800;
  color: var(--dc-brand); letter-spacing: .02em;
}
.dc-card-price { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.6; }
.dc-free-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--dc-brand);
  color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; margin-right: 6px;
}
.dc-course-card--done {
  opacity: .55;
  background: var(--bg);
  border-color: var(--line); pointer-events: none;
  box-shadow: none;
}
.dc-course-card--done .dc-card-point { color: var(--muted); }
.dc-registered-label {
  display: inline-block;
  padding: 2px 9px;
  background: rgba(44,36,32,.08);
  color: var(--muted); font-size: 11px; font-weight: 700;
  border-radius: 999px; margin-left: 8px;
}

/* ===== 決済説明 ===== */
.dc-info-section {
  margin: 22px 0 0; padding: 16px 0 0;
  border-top: 1px dashed var(--line);
}
.dc-info-section h3 { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.dc-info-link a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink) !important;
  font-size: 13px; font-weight: 600; text-decoration: none !important;
  transition: border-color .15s, color .15s;
}
.dc-info-link a:hover { border-color: var(--accent); color: var(--dc-brand) !important; }

/* ===== ホームへ戻る ===== */
.dc-home-wrap { margin: 22px 0 0; text-align: center; }
.dc-home-btn {
  display: inline-block;
  padding: 11px 30px;
  font-size: 13px; font-weight: 700;
  color: var(--muted); text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .15s, border-color .15s;
}
.dc-home-btn:hover { color: var(--ink); border-color: var(--accent); }

/* ============================================================
   no_login_sp_1  (lg-*)  ― ログインメニュー × 異世界テーマ
   ============================================================ */

.lg-page { background: var(--bg); }
.lg-wrap { padding: 24px 18px 0; }

/* 見出し */
.lg-head {
  position: relative;
  margin: 0 0 18px;
  padding-left: 14px;
}
.lg-head::before {
  content: "";
  position: absolute;
  top: 4px; left: 0;
  width: 4px; height: calc(100% - 6px);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), #e8c4a0);
}
.lg-kicker {
  display: block;
  font-size: 9px; font-weight: 700; letter-spacing: .22em;
  color: var(--muted);
  margin-bottom: 4px;
}
.lg-title { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }

/* イントロ */
.lg-intro {
  margin: 0 0 24px;
  text-align: center;
}
.lg-intro p {
  margin: 0 0 4px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink); line-height: 1.8;
}
.lg-intro p:last-child { margin: 0; color: var(--muted); font-weight: 500; }

/* キャリアリスト */
.lg-list { display: flex; flex-direction: column; gap: 16px; }
.lg-form { margin: 0; }

/* テーマ色 */
.lg-btn--docomo   { --lg-brand: #ff2942; --lg-brand-2: #c30012; --lg-brandRGB: 230,0,18; }
.lg-btn--au       { --lg-brand: #ff9a3d; --lg-brand-2: #e2670a; --lg-brandRGB: 238,120,0; }
.lg-btn--softbank { --lg-brand: #9aa2ad; --lg-brand-2: #5f6772; --lg-brandRGB: 127,136,147; }
.lg-btn--credit   { --lg-brand: #44c6a0; --lg-brand-2: #1f8f70; --lg-brandRGB: 47,158,125; }

/* ===== 華やかなキャリアボタン（ガラス × オーロラ縁） ===== */
.lg-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 16px 20px;
  border: 2px solid transparent;
  border-radius: 22px;
  cursor: pointer;
  text-decoration: none !important;
  overflow: hidden;
  isolation: isolate;
  /* 本体グラデ(padding-box) + オーロラ縁(border-box) */
  background:
    linear-gradient(150deg, var(--lg-brand) 0%, var(--lg-brand-2) 92%) padding-box,
    linear-gradient(125deg, #fff 0%, var(--lg-brand) 35%, var(--lg-brand-2) 65%, #ffe9c2 100%) border-box;
  background-size: 100% 100%, 220% 220%;
  box-shadow:
    0 14px 34px rgba(var(--lg-brandRGB),.42),
    inset 0 -12px 24px rgba(0,0,0,.16);
  animation: lgGlow 3.2s ease-in-out infinite, lgBorderFlow 7s linear infinite;
  transition: transform .18s;
}
@keyframes lgGlow {
  0%,100% { box-shadow: 0 12px 30px rgba(var(--lg-brandRGB),.38), inset 0 -12px 24px rgba(0,0,0,.16); }
  50%     { box-shadow: 0 18px 44px rgba(var(--lg-brandRGB),.62), inset 0 -12px 24px rgba(0,0,0,.16); }
}
@keyframes lgBorderFlow {
  0%   { background-position: 0% 0%, 0% 50%; }
  100% { background-position: 0% 0%, 220% 50%; }
}
.lg-btn:hover { transform: translateY(-3px) scale(1.01); }
.lg-btn:active { transform: translateY(0); }

/* 上半分のガラス光沢 */
.lg-btn::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 56%;
  background: linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.06) 100%);
  border-radius: 20px 20px 60% 60% / 20px 20px 26px 26px;
  z-index: 1; pointer-events: none;
}
/* 斜めシャイン */
.lg-btn::after {
  content: "";
  position: absolute;
  top: -20%; left: -70%;
  width: 45%; height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  transform: skewX(-18deg);
  animation: lgShine 4s ease-in-out infinite;
  z-index: 2; pointer-events: none;
}
@keyframes lgShine {
  0%   { left: -70%; }
  55%  { left: 150%; }
  100% { left: 150%; }
}

.lg-btn__texts {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start;
  line-height: 1.1;
}
.lg-btn__carrier {
  font-size: 24px; font-weight: 800; letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.22), 0 0 14px rgba(255,255,255,.35);
}
.lg-btn__label {
  margin-top: 5px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
  color: rgba(255,255,255,.9);
}

/* 右側のガラス円＋矢印 */
.lg-btn__arrow {
  position: relative; z-index: 3;
  margin-left: auto;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 1.5px solid rgba(255,255,255,.55);
  box-shadow: inset 0 1px 4px rgba(255,255,255,.5), 0 4px 10px rgba(0,0,0,.12);
  color: #fff; font-size: 19px; font-weight: 700;
  transition: background .18s, transform .18s;
}
.lg-btn:hover .lg-btn__arrow { background: rgba(255,255,255,.42); transform: translateX(4px); }

/* クレジットカード画像（任意） */
.lg-cards { text-align: center; margin: 0 0 10px; }
.lg-cards img { display: inline-block; max-width: 80%; height: auto; }

/* ============================================================
   login_ng_id_sp_1 / retire  (rt-*)
   ============================================================ */

.rt-page { background: var(--bg); }
.rt-wrap { padding: 18px 18px 0; }

.rt-back {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--muted); text-decoration: none;
  margin-bottom: 16px;
  transition: color .15s;
}
.rt-back:hover { color: var(--ink); }

/* 見出し */
.rt-head {
  position: relative;
  margin: 0 0 18px;
  padding-left: 14px;
}
.rt-head::before {
  content: "";
  position: absolute;
  top: 4px; left: 0;
  width: 4px; height: calc(100% - 6px);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), #e8c4a0);
}
.rt-kicker {
  display: block;
  font-size: 9px; font-weight: 700; letter-spacing: .22em;
  color: var(--muted);
  margin-bottom: 4px;
}
.rt-title { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }

/* 退会内容カード */
.rt-card {
  margin: 0 0 16px;
  padding: 4px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 6px 18px rgba(44,36,32,.06);
}
.rt-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.rt-row:last-child { border-bottom: none; }
.rt-row__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.rt-row__value { font-size: 14px; font-weight: 700; color: var(--ink); }
.rt-row__value--ng { color: #e60012; }

/* 警告 */
.rt-warn {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 0 0 18px;
  padding: 12px 14px;
  font-size: 12px; line-height: 1.7;
  color: var(--ink);
  background: rgba(230,0,18,.05);
  border: 1px solid rgba(230,0,18,.18);
  border-radius: 10px;
}
.rt-warn::before {
  content: "\26A0";
  color: #e60012; font-size: 14px; line-height: 1.5;
  flex-shrink: 0;
}

/* ログイン誘導文 */
.rt-lead {
  margin: 0 0 12px;
  font-size: 12.5px; line-height: 1.8; color: var(--muted);
  text-align: center;
}

/* ログインボタン（ダーク・上品） */
.rt-cta {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 17px 20px;
  margin: 0 0 18px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #3a322c 0%, #231e1b 100%);
  color: #fff !important;
  font-size: 16px; font-weight: 800; letter-spacing: .08em;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(35,30,27,.35);
  transition: transform .15s, box-shadow .15s;
}
.rt-cta::before {
  content: "";
  position: absolute;
  top: 0; left: -65%;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-20deg);
  animation: lgShine 3.6s ease-in-out infinite;
}
.rt-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(35,30,27,.45); }

/* 区切り */
.rt-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 14px;
  font-size: 10px; font-weight: 700; letter-spacing: .2em; color: var(--muted);
}
.rt-divider::before, .rt-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* 補助テキスト + リンク */
.rt-note { margin: 0 0 14px; font-size: 12px; line-height: 1.8; color: var(--muted); text-align: center; }
.rt-note strong { color: var(--ink); font-weight: 700; }
.rt-sublink {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 22px;
  font-size: 13px; font-weight: 700;
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .15s, color .15s;
}
.rt-sublink:hover { border-color: var(--accent); color: #e60012; }
.rt-center { text-align: center; }

/* ============================================================
   login_info_sp_1 / ログイン情報  (li-*)
   ============================================================ */

.li-page { background: var(--bg); }
.li-wrap { padding: 18px 18px 0; }

.li-head {
  position: relative;
  margin: 0 0 18px;
  padding-left: 14px;
}
.li-head::before {
  content: "";
  position: absolute;
  top: 4px; left: 0;
  width: 4px; height: calc(100% - 6px);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), #e8c4a0);
}
.li-kicker {
  display: block;
  font-size: 9px; font-weight: 700; letter-spacing: .22em;
  color: var(--muted);
  margin-bottom: 4px;
}
.li-title { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }

/* 注意ボックス */
.li-notice {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 0 0 20px;
  padding: 12px 14px;
  font-size: 12.5px; line-height: 1.7;
  color: var(--ink);
  background: rgba(196,166,136,.12);
  border: 1px solid rgba(196,166,136,.28);
  border-radius: 10px;
}
.li-notice::before {
  content: "\1F512";
  font-size: 14px; line-height: 1.5;
  flex-shrink: 0;
}

/* 認証情報カード */
.li-card {
  margin: 0 0 14px;
  padding: 18px 18px 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 8px 22px rgba(44,36,32,.07);
}
.li-cred { margin: 0 0 16px; }
.li-cred:last-child { margin-bottom: 12px; }
.li-cred__label {
  display: block;
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 7px;
}
.li-cred__value {
  display: block;
  padding: 13px 16px;
  font-size: 17px; font-weight: 700; letter-spacing: .02em;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(196,166,136,.08), rgba(196,166,136,.02));
  border: 1px dashed var(--line);
  border-radius: 10px;
  word-break: break-all;
}

/* ============================================================
   login_id_sp_1 / IDログインフォーム  (lf-*)
   ============================================================ */

.lf-page { background: var(--bg); }
.lf-wrap { padding: 18px 18px 0; }

.lf-head {
  position: relative;
  margin: 0 0 18px;
  padding-left: 14px;
}
.lf-head::before {
  content: "";
  position: absolute;
  top: 4px; left: 0;
  width: 4px; height: calc(100% - 6px);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), #e8c4a0);
}
.lf-kicker {
  display: block;
  font-size: 9px; font-weight: 700; letter-spacing: .22em;
  color: var(--muted);
  margin-bottom: 4px;
}
.lf-title { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }

.lf-intro { margin: 0 0 20px; text-align: center; }
.lf-intro p { margin: 0 0 4px; font-size: 13px; line-height: 1.8; color: var(--ink); font-weight: 600; }
.lf-intro p:last-child { margin: 0; color: var(--muted); font-weight: 500; }

/* フォームカード */
.lf-card {
  margin: 0 0 8px;
  padding: 20px 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 8px 22px rgba(44,36,32,.07);
}
.lf-card__title {
  margin: 0 0 18px;
  font-size: 13px; font-weight: 800; letter-spacing: .04em;
  color: var(--ink);
  text-align: center;
  position: relative;
  padding-bottom: 12px;
}
.lf-card__title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 40px; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), #e8c4a0);
}

.lf-field { margin: 0 0 16px; }
.lf-field__label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 7px;
}
.lf-field__input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lf-field__input::placeholder { color: #bcb0a4; }
.lf-field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,166,136,.18);
}

/* 送信ボタン（ダーク・上品） */
.lf-submit {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 16px 20px;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #3a322c 0%, #231e1b 100%);
  color: #fff;
  font-size: 16px; font-weight: 800; letter-spacing: .08em;
  box-shadow: 0 10px 26px rgba(35,30,27,.35);
  transition: transform .15s, box-shadow .15s;
}
.lf-submit::before {
  content: "";
  position: absolute;
  top: 0; left: -65%;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-20deg);
  animation: lgShine 3.6s ease-in-out infinite;
}
.lf-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(35,30,27,.45); }

/* ============================================================
   下層ページ用 固定ヘッダー（index.html と統一）  sub-header
   ============================================================ */

.sub-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,248,245,.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.sub-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #c4a688 0%, #e8c4a0 40%, #c4a688 100%);
  opacity: .9;
}
.sub-header__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  min-height: 56px;
  padding: 0 18px;
}
.sub-header__logo { display: inline-flex; align-items: center; }
.sub-header__logo img {
  height: 26px; width: auto; display: block;
  filter: brightness(0) saturate(100%);
}

/* ホームボタン（ダーク・上品） */
.sub-header__home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #3a322c 0%, #231e1b 100%);
  box-shadow: 0 4px 14px rgba(35,30,27,.28);
  transition: transform .15s, box-shadow .15s;
}
.sub-header__home svg { width: 14px; height: 14px; display: block; }
.sub-header__home:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(35,30,27,.38);
}

/* 固定ヘッダー分の余白（min-height 56px + border 1px に一致） */
.sub-header-spacer { height: 57px; }

/* ============================================================
   共通フッター（index.html と統一）  aift-*
   ============================================================ */

.aift-footer {
  background: #faf8f5;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.aift-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #c4a688 0%, #e8c4a0 40%, #c4a688 100%);
}
.aift-wrap {
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  padding: 36px 24px 0;
}

/* ── ブランド ── */
.aift-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.aift-brand__logo {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 5px;
  filter: brightness(0) saturate(100%);
}
.aift-brand__catch {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: .05em;
}
.aift-brand__badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--muted);
  align-self: flex-start;
  margin-top: 4px;
}

/* ── ナビリスト ── */
.aift-nav {
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--line);
}
.aift-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.aift-item { display: flex; }
.aift-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
  transition: color .15s;
  width: 100%;
}
.aift-link::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: .6;
}
.aift-link:hover { color: var(--ink); }

/* ── コピーライト ── */
.aift-copy {
  font-size: 10px;
  color: rgba(44,36,32,.28);
  letter-spacing: .06em;
  text-align: center;
  padding: 18px 24px 28px;
}
